Has anyone else seen this issue? The CPAI reads the plate correctly, and it's burned into the image correctly (see bottom right), but it's taken into the database incorrectly (see top left).
View attachment 219215
When this happens, CPAI has some tracebacks:
SyntaxError: invalid syntax
18:07:49:License Plate Reader (RKNN): [SyntaxError] : Error during main_loop: Traceback (most recent call last):
File "/app/modules/ALPR-RKNN/bin/ubuntu/python39/venv/lib/python3.9/site-packages/codeproject_ai_sdk/module_runner.py", line 576, in main_loop
output = await callbacktask
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/app/modules/ALPR-RKNN/ALPR_adapter.py", line 43, in process
result = detect_platenumber(self, self.opts, image)
File "/app/modules/ALPR-RKNN/ALPR.py", line 267, in detect_platenumber
read_plate_chars_PaddleOCR(module_runner, numpy_plate)
File "/app/modules/ALPR-RKNN/ALPR.py", line 447, in read_plate_chars_PaddleOCR
ocr_response = ast.literal_eval(ocr_response)
File "/usr/lib/python3.9/ast.py", line 64, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/lib/python3.9/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
File "", line 1
[, ('NO', 0.206848)]]
^
I can't confirm if the traceback above is for the same error above. I can fix this by shutting down CPAI and restarting it, or sometimes it recovers by itself. Happens every 1000 or so reads? It looks pretty random.