Add the option to focus on a spcific person
This commit is contained in:
@ -11,6 +11,13 @@ class FaceRecognizer
|
||||
{
|
||||
public:
|
||||
|
||||
struct Detection
|
||||
{
|
||||
int person;
|
||||
float confidence;
|
||||
cv::Rect rect;
|
||||
};
|
||||
|
||||
class LoadException : public std::exception
|
||||
{
|
||||
private:
|
||||
@ -33,7 +40,7 @@ private:
|
||||
public:
|
||||
FaceRecognizer(std::filesystem::path recognizerPath = "", const std::filesystem::path& detectorPath = "", const std::vector<cv::Mat>& referances = std::vector<cv::Mat>());
|
||||
cv::Mat detectFaces(const cv::Mat& input);
|
||||
std::pair<int, double> isMatch(const cv::Mat& input, bool alone = false);
|
||||
Detection isMatch(const cv::Mat& input, bool alone = false);
|
||||
bool addReferances(const std::vector<cv::Mat>& referances);
|
||||
void setThreshold(double threashold);
|
||||
double getThreshold();
|
||||
|
Reference in New Issue
Block a user