dnn(caffe): add DetectionOutputParameter.clip to .proto file
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Wed, 9 Dec 2020 05:12:18 +0000 (05:12 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Wed, 9 Dec 2020 05:21:07 +0000 (05:21 +0000)
- allow to load opencv_face_detector with external unpatched protobuf

modules/dnn/src/caffe/opencv-caffe.proto

index 8ab35ba..d540591 100644 (file)
@@ -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 {