Skip to content

Commit

Permalink
_isDetected = false should be outside clear_output()
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Nov 18, 2023
1 parent a68af51 commit bd21912
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ class WebARKitTracker::WebARKitTrackerImpl {

clear_output();

_isDetected = false;

cv::Mat frameDescr;
std::vector<cv::KeyPoint> frameKeyPts;
bool valid;
Expand Down Expand Up @@ -336,7 +338,6 @@ class WebARKitTracker::WebARKitTrackerImpl {

void clear_output() {
output = std::vector<double>(17, 0.0);
_isDetected = false;
};

void buildImagePyramid(cv::Mat frame) { cv::buildOpticalFlowPyramid(frame, _pyramid, winSize, maxLevel); }
Expand Down

0 comments on commit bd21912

Please sign in to comment.