Add CPU/GPU gate and support new ANSALPR using OCR
This commit is contained in:
@@ -65,6 +65,30 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# ── DebugView logging toggle ────────────────────────────────────
|
||||
# When ON, every ANS_DBG(...) call across the whole tree expands to an
|
||||
# OutputDebugStringA() call visible in Sysinternals DebugView (Dbgview.exe).
|
||||
# This is the single switch for verbose runtime diagnostics in ANSLPR,
|
||||
# ANSCV (RTSP lifecycle, HW decoder auto-config), ANSODEngine (NV12 fast
|
||||
# path, ORT/TRT engine selection), ANSFR (face recognizer state), etc.
|
||||
#
|
||||
# Enable it to diagnose field issues (e.g. "ALPR worked for a while then
|
||||
# stopped"), then turn it back OFF for production because every ANS_DBG
|
||||
# call adds a kernel round-trip and string formatting cost.
|
||||
#
|
||||
# Usage:
|
||||
# cmake -B build -DANSCORE_DEBUGVIEW=ON # enable
|
||||
# cmake -B build -DANSCORE_DEBUGVIEW=OFF # disable (default)
|
||||
#
|
||||
# Or toggle in CLion/VS: edit the cache variable ANSCORE_DEBUGVIEW.
|
||||
option(ANSCORE_DEBUGVIEW "Enable ANS_DBG OutputDebugString logging for DebugView" OFF)
|
||||
if(ANSCORE_DEBUGVIEW)
|
||||
add_compile_definitions(ANSCORE_DEBUGVIEW=1)
|
||||
message(STATUS "ANSCORE_DEBUGVIEW = ON — ANS_DBG verbose logging ENABLED (DebugView)")
|
||||
else()
|
||||
message(STATUS "ANSCORE_DEBUGVIEW = OFF — ANS_DBG verbose logging disabled (production)")
|
||||
endif()
|
||||
|
||||
# ── External Dependencies ───────────────────────────────────────
|
||||
include(cmake/Dependencies.cmake)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user