fixnig json import error
This commit is contained in:
parent
d543713082
commit
87d2ef717b
2 changed files with 3 additions and 1 deletions
|
|
@ -3,10 +3,11 @@
|
||||||
#* File Name : anpr_yolo_v8.py
|
#* File Name : anpr_yolo_v8.py
|
||||||
#* Purpose :
|
#* Purpose :
|
||||||
#* Creation Date : 21-04-2025
|
#* 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
|
#* Created By : Yaay Nands
|
||||||
#_._._._._._._._._._._._._._._._._._._._._.#
|
#_._._._._._._._._._._._._._._._._._._._._.#
|
||||||
import glob
|
import glob
|
||||||
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import pprint as pp
|
import pprint as pp
|
||||||
|
|
@ -241,6 +242,7 @@ async def capture_number_plate(db, signal_received):
|
||||||
curr_record = record
|
curr_record = record
|
||||||
logger.debug("processing video file %s"%record['filename'])
|
logger.debug("processing video file %s"%record['filename'])
|
||||||
plates = anprm.infer(record['filename'])
|
plates = anprm.infer(record['filename'])
|
||||||
|
logger.debug("found plates %s"%json.dumps(plates))
|
||||||
cursor = await db.execute(SQL["UPDATE_NUMBERS"],
|
cursor = await db.execute(SQL["UPDATE_NUMBERS"],
|
||||||
(True, json.dumps(plates), record['model'],
|
(True, json.dumps(plates), record['model'],
|
||||||
record['filename'], record['ts'])
|
record['filename'], record['ts'])
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Reference in a new issue