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:
@@ -9,6 +9,7 @@ async def process_image(image: bytes) -> str:
|
|||||||
image_file = io.BytesIO(image)
|
image_file = io.BytesIO(image)
|
||||||
|
|
||||||
img = Image.open(image_file)
|
img = Image.open(image_file)
|
||||||
|
img.save("received_image.jpg")
|
||||||
|
|
||||||
results = car_model.predict(source=img)
|
results = car_model.predict(source=img)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user