fix json serialization error for license plate box coordinates (#22689)

This commit is contained in:
Josh Hawkins 2026-03-29 12:30:39 -05:00 committed by GitHub
parent decc8aa391
commit b04b1d0dc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1095,7 +1095,7 @@ class LicensePlateProcessingMixin:
logger.debug( logger.debug(
f"{camera}: Found license plate. Bounding box: {expanded_box.astype(int)}" 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: else:
return None # No detection above the threshold return None # No detection above the threshold