Skip to content

Commit

Permalink
move marker dected message inside processFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Mar 8, 2024
1 parent 63946b4 commit e754f20
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ class WebARKitTracker::WebARKitTrackerImpl {
this->_featureDetector->detect(currIm, frameKeyPts, featureMask);
this->_featureDescriptor->compute(currIm, frameKeyPts, frameDescr);

WEBARKIT_LOG("Marker detected : %s\n", _isDetected ? "true" : "false");

if (!_isDetected) {
std::vector<std::vector<cv::DMatch>> knnMatches;
_matcher->knnMatch(frameDescr, refDescr, knnMatches, 2);
Expand Down Expand Up @@ -250,6 +248,7 @@ class WebARKitTracker::WebARKitTrackerImpl {
} else {
this->_valid = track();
}
WEBARKIT_LOG("Marker detected : %s\n", _isDetected ? "true" : "false");
swapImagePyramid();
};

Expand Down

0 comments on commit e754f20

Please sign in to comment.