Fix ALPR pipeline. Ready for production
This commit is contained in:
@@ -743,6 +743,20 @@ extern "C" ANSLPR_API int ANSALPR_SetFormats(ANSCENTER::ANSALPR** Handle, co
|
||||
}
|
||||
|
||||
|
||||
// ALPRChecker: 1 = enabled (full-frame auto-detected), 0 = disabled (raw OCR)
|
||||
extern "C" ANSLPR_API int ANSALPR_SetALPRCheckerEnabled(ANSCENTER::ANSALPR** Handle, int enable) {
|
||||
if (!Handle || !*Handle) return -1;
|
||||
try {
|
||||
(*Handle)->SetALPRCheckerEnabled(enable != 0);
|
||||
ANS_DBG("ALPR_Checker", "SetALPRCheckerEnabled=%d (%s)",
|
||||
enable, enable ? "ON" : "OFF");
|
||||
return 1;
|
||||
}
|
||||
catch (...) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" ANSLPR_API int ANSALPR_GetFormats(ANSCENTER::ANSALPR** Handle, LStrHandle Lstrformats)// semi separated formats
|
||||
{
|
||||
if (!Handle || !*Handle) return -1;
|
||||
|
||||
Reference in New Issue
Block a user