fix json serialization error for license plate box coordinates

This commit is contained in:
Josh Hawkins 2026-03-29 11:43:08 -05:00
parent 148e11afc5
commit 2b73ce0537

View File

@ -1095,7 +1095,7 @@ class LicensePlateProcessingMixin:
logger.debug(
f"{camera}: Found license plate. Bounding box: {expanded_box.astype(int)}"
)
return tuple(expanded_box.astype(int)) # type: ignore[return-value]
return tuple(int(x) for x in expanded_box) # type: ignore[return-value]
else:
return None # No detection above the threshold