mirror of
https://github.com/StefBuwalda/ProjectIOT.git
synced 2025-10-29 18:59:57 +00:00
Update image_processing.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user