|
void | correctBbox (cv::Rect &bbox, const cv::Size &paddedSize) const |
|
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 |
|
◆ DNNFaceDetectorSSD()
Digikam::DNNFaceDetectorSSD::DNNFaceDetectorSSD |
( |
| ) |
|
|
explicit |
◆ ~DNNFaceDetectorSSD()
Digikam::DNNFaceDetectorSSD::~DNNFaceDetectorSSD |
( |
| ) |
|
|
override |
◆ correctBbox()
void Digikam::DNNFaceDetectorBase::correctBbox |
( |
cv::Rect & |
bbox, |
|
|
const cv::Size & |
paddedSize |
|
) |
| const |
|
protectedinherited |
◆ detectFaces()
void Digikam::DNNFaceDetectorSSD::detectFaces |
( |
const cv::Mat & |
inputImage, |
|
|
const cv::Size & |
paddedSize, |
|
|
std::vector< cv::Rect > & |
detectedBboxes |
|
) |
| |
|
overridevirtual |
◆ loadModels()
bool Digikam::DNNFaceDetectorSSD::loadModels |
( |
| ) |
|
◆ nnInputSizeRequired()
cv::Size Digikam::DNNFaceDetectorBase::nnInputSizeRequired |
( |
| ) |
const |
|
inherited |
◆ selectBbox()
void Digikam::DNNFaceDetectorBase::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 |
|
protectedinherited |
Classify bounding boxes detected. Good bounding boxes are defined as boxes that reside within the non-padded zone or those that are out only for min of (10% of padded range, 10% of bbox dim).
Bad bounding boxes are defined as boxes that have at maximum 25% of each dimension out of non-padded zone.
References Digikam::DNNFaceDetectorBase::inputImageSize.
◆ confidenceThreshold
float Digikam::DNNFaceDetectorBase::confidenceThreshold = 0.6F |
|
staticinherited |
Threshold for bbox detection. It can be init and changed in the GUI.
◆ inputImageSize
cv::Size Digikam::DNNFaceDetectorBase::inputImageSize |
|
protectedinherited |
◆ meanValToSubtract
cv::Scalar Digikam::DNNFaceDetectorBase::meanValToSubtract |
|
protectedinherited |
◆ mutex
QMutex Digikam::DNNFaceDetectorBase::mutex |
|
protectedinherited |
◆ net
cv::dnn::Net Digikam::DNNFaceDetectorBase::net |
|
protectedinherited |
◆ nmsThreshold
float Digikam::DNNFaceDetectorBase::nmsThreshold = 0.4F |
|
staticinherited |
Threshold for nms suppression.
◆ scaleFactor
float Digikam::DNNFaceDetectorBase::scaleFactor |
|
protectedinherited |
The documentation for this class was generated from the following files: