Update main.py

description image recognition
This commit is contained in:
Amrasil 2025-03-27 15:22:59 +01:00 committed by GitHub
parent 97b57916de
commit a1d44646ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -168,6 +168,9 @@ def scan_view():
@app.route("/api/v1/image_reco", methods=['POST'])
def image_recognition():
"""
returns json formatted description of an image
"""
# note that the classifier is a singleton
if 'image' not in request.files:
return "No image file provided", 400