diff --git a/src/tracker.cpp b/src/tracker.cpp index baba8898719dde7ecb3aed267d4352c396236ba6..148457b23e58bc6455f8b2b55849c92a1957d9ea 100644 --- a/src/tracker.cpp +++ b/src/tracker.cpp @@ -1171,7 +1171,7 @@ size_t Tracker::calcPrevFeaturePoints(int prevFrame, cv::Rect &rect, int frame, * and replace better ones, under the assumption we only get to a wrong point * due to a low-quality tracking earlier. */ - bool applyReTrack = true; + bool applyReTrack = reTrack; int dir = (frame - prevFrame); // direction of tracking - forward/backwards dir /= std::abs(dir); // theoretically possible to omit MAX_STEP_TRACK frames constexpr int minQualReco = 90;