From d7e936de5c9d403e8392507cb3b30b5cbdf710e5 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 9 Dec 2020 05:12:18 +0000 Subject: [PATCH] dnn(caffe): add DetectionOutputParameter.clip to .proto file - allow to load opencv_face_detector with external unpatched protobuf --- modules/dnn/src/caffe/opencv-caffe.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/dnn/src/caffe/opencv-caffe.proto b/modules/dnn/src/caffe/opencv-caffe.proto index 8ab35bac99..d540591f82 100644 --- a/modules/dnn/src/caffe/opencv-caffe.proto +++ b/modules/dnn/src/caffe/opencv-caffe.proto @@ -181,6 +181,8 @@ message DetectionOutputParameter { optional float confidence_threshold = 9; // If prior boxes are normalized to [0, 1] or not. optional bool normalized_bbox = 10 [default = true]; + // OpenCV custom parameter + optional bool clip = 1000 [default = false]; } message Datum {