- Remove ALPR_OD Tracker and voting system.

- Disable debugview
This commit is contained in:
2026-04-19 23:15:50 +10:00
parent 51fe507dfd
commit 3418090042
13 changed files with 1266 additions and 129 deletions

View File

@@ -164,6 +164,12 @@ namespace ANSCENTER
// Tri-state: -1 = auto-detect (default), 0 = explicitly disabled, 1 = explicitly enabled
// _enableALPRChecker is inherited from ANSALPR base class
// Master switch for tracker + voting post-processing inside
// RunInference / RunInferenceSingleFrame. When false, these methods
// return raw per-frame OCR output (no alprChecker.checkPlateByTrackId
// voting, no spatial ensureUniquePlateText dedup). Default: disabled.
bool _enableTrackerVoting{ false };
struct ImageSizeTracker {
cv::Size lastSize{0, 0};
int consistentCount = 0;
@@ -252,6 +258,9 @@ namespace ANSCENTER
}
// SetALPRCheckerEnabled() and IsALPRCheckerEnabled() inherited from ANSALPR base class
void SetTrackerVotingEnabled(bool enable) { _enableTrackerVoting = enable; }
[[nodiscard]] bool IsTrackerVotingEnabled() const { return _enableTrackerVoting; }
};
}
#endif