From e754f207da5cc33fdabbe8421defa97a50a445f8 Mon Sep 17 00:00:00 2001 From: Walter Perdan Date: Fri, 8 Mar 2024 15:30:43 +0100 Subject: [PATCH] move marker dected message inside processFrame --- .../WebARKitOpticalTracking/WebARKitTracker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WebARKit/WebARKitTrackers/WebARKitOpticalTracking/WebARKitTracker.cpp b/WebARKit/WebARKitTrackers/WebARKitOpticalTracking/WebARKitTracker.cpp index 7dd5b23..479a94c 100644 --- a/WebARKit/WebARKitTrackers/WebARKitOpticalTracking/WebARKitTracker.cpp +++ b/WebARKit/WebARKitTrackers/WebARKitOpticalTracking/WebARKitTracker.cpp @@ -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> knnMatches; _matcher->knnMatch(frameDescr, refDescr, knnMatches, 2); @@ -250,6 +248,7 @@ class WebARKitTracker::WebARKitTrackerImpl { } else { this->_valid = track(); } + WEBARKIT_LOG("Marker detected : %s\n", _isDetected ? "true" : "false"); swapImagePyramid(); };