Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
Not sure which is better yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
brian8544 committed Jun 8, 2023
1 parent a7c66f2 commit d56d146
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Main.cpp
Expand Up @@ -131,9 +131,9 @@ void detectAndDraw(cv::Mat& img, cv::CascadeClassifier& cascade, double scale)

// Set a threshold for the match
double threshold = 0.1; // 0.8 = default
double minVal;
cv::Point minLoc;
cv::minMaxLoc(result, &minVal, &maxVal, &minLoc);
double minVal; // double maxVal;
cv::Point minLoc; // cv::Point maxLoc;
cv::minMaxLoc(result, &minVal, &maxVal, &minLoc); // cv::minMaxLoc(result, nullptr, &maxVal, nullptr, &maxLoc);

if (maxVal > threshold)
{
Expand Down

0 comments on commit d56d146

Please sign in to comment.