DoubangoTelecom / ultimateALPR-SDK

World's fastest ANPR / ALPR implementation for CPUs, GPUs, VPUs and NPUs using deep learning (Tensorflow, Tensorflow lite, TensorRT, OpenVX, OpenVINO). Multi-Charset (Latin, Korean, Chinese) & Multi-OS (Jetson, Android, Raspberry Pi, Linux, Windows) & Multi-Arch (ARM, x86).
https://www.doubango.org/webapps/alpr/
Other
597 stars 157 forks source link

Confidences in JSON 8 values => API Python instead of 2 values API C++ #240

Closed ccs2epro closed 2 years ago

ccs2epro commented 2 years ago

Hey, I am migrating from the C++ API to the python API, and I noticed that the confidences field in the JSON has 8 values against 2 for C++ (you told me that this corresponds to [OCR recognition score, plate detection score]). What do these 8 values correspond to? Is it a mistake?

DoubangoTelecom commented 2 years ago

Hi, There is no difference between the languages. If there are 2 values it means there is no OCR result. The length for the confidence array is variable, check https://www.doubango.org/SDKs/anpr/docs/Frequently_Asked_Questions_(FAQ).html#could-you-explain-what-each-field-in-the-json-result-mean

You may not have OCR result when Parallel mode is enabled, read documentation about it. Probably have Parallel mode enabled in c++ and disabled in python which produce different results.

Please attach the logs.