25 #ifndef DIGIKAM_FACESENGINE_DNN_FACE_DETECTOR_BASE_H
26 #define DIGIKAM_FACESENGINE_DNN_FACE_DETECTOR_BASE_H
38 #include "digikam_opencv.h"
49 explicit DNNFaceDetectorBase(
float scale,
const cv::Scalar& val,
const cv::Size& inputImgSize);
53 const cv::Size& paddedSize,
54 std::vector<cv::Rect>& detectedBboxes) = 0;
66 std::vector<float>& goodConfidences, std::vector<cv::Rect>& goodBoxes,
67 std::vector<float>& doubtConfidences, std::vector<cv::Rect>& doubtBoxes)
const;
70 const cv::Size& paddedSize)
const;
Definition: dnnfacedetectorbase.h:44
cv::dnn::Net net
Definition: dnnfacedetectorbase.h:83
void correctBbox(cv::Rect &bbox, const cv::Size &paddedSize) const
Definition: dnnfacedetectorbase.cpp:128
cv::Size nnInputSizeRequired() const
Definition: dnnfacedetectorbase.cpp:63
static float confidenceThreshold
Threshold for bbox detection. It can be init and changed in the GUI.
Definition: dnnfacedetectorbase.h:74
float scaleFactor
Definition: dnnfacedetectorbase.h:79
DNNFaceDetectorBase()
Definition: dnnfacedetectorbase.cpp:45
virtual ~DNNFaceDetectorBase()
Definition: dnnfacedetectorbase.cpp:59
cv::Size inputImageSize
Definition: dnnfacedetectorbase.h:81
virtual void detectFaces(const cv::Mat &inputImage, const cv::Size &paddedSize, std::vector< cv::Rect > &detectedBboxes)=0
cv::Scalar meanValToSubtract
Definition: dnnfacedetectorbase.h:80
static float nmsThreshold
Threshold for nms suppression.
Definition: dnnfacedetectorbase.h:75
void selectBbox(const cv::Size &paddedSize, float confidence, int left, int right, int top, int bottom, std::vector< float > &goodConfidences, std::vector< cv::Rect > &goodBoxes, std::vector< float > &doubtConfidences, std::vector< cv::Rect > &doubtBoxes) const
Definition: dnnfacedetectorbase.cpp:70
QMutex mutex
Definition: dnnfacedetectorbase.h:85
Definition: datefolderview.cpp:43