Update image_processing.py

This commit is contained in:
2025-06-19 20:00:35 +02:00
parent d074c9bf27
commit f009226b1b

View File

@@ -30,6 +30,8 @@ async def process_image(image: bytes) -> str:
if cars == []:
return ""
# Get the biggest car box
if not cars:
return ""
size, corners = max(cars, key=lambda x: x[0])
# Crop biggest car