disable ALPR checker by default

This commit is contained in:
2026-05-05 04:37:23 +10:00
parent 91d81cbd88
commit d03c2c1138
8 changed files with 1192 additions and 12 deletions
+3 -2
View File
@@ -1041,8 +1041,9 @@ namespace ANSCENTER {
// voting and ensureUniquePlateText dedup in all Inference/RunInference paths.
if (!_enableTrackerVoting) return false;
// Force disabled → never use
if (!_enableALPRChecker) return false;
// Force disabled → never use. Relaxed load is fine: tear-free read of a
// single bool is all we need; "next frame sees the new value" is the contract.
if (!_enableALPRChecker.load(std::memory_order_relaxed)) return false;
// Small images are always pipeline crops — skip auto-detection
if (imageSize.width < ImageSizeTracker::MIN_FULLFRAME_WIDTH) return false;