fixnig json import error

This commit is contained in:
Nandhini Anand Jeyahar 2025-05-02 00:15:46 +02:00
parent d543713082
commit 87d2ef717b
2 changed files with 3 additions and 1 deletions

View file

@ -3,10 +3,11 @@
#* File Name : anpr_yolo_v8.py
#* Purpose :
#* Creation Date : 21-04-2025
#* Last Modified : Thu 01 May 2025 11:45:10 PM CEST
#* Last Modified : Fri 02 May 2025 12:13:17 AM CEST
#* Created By : Yaay Nands
#_._._._._._._._._._._._._._._._._._._._._.#
import glob
import json
import logging
import os
import pprint as pp
@ -241,6 +242,7 @@ async def capture_number_plate(db, signal_received):
curr_record = record
logger.debug("processing video file %s"%record['filename'])
plates = anprm.infer(record['filename'])
logger.debug("found plates %s"%json.dumps(plates))
cursor = await db.execute(SQL["UPDATE_NUMBERS"],
(True, json.dumps(plates), record['model'],
record['filename'], record['ts'])

Binary file not shown.