Merge branch 'docs/OPS-92' of https://github.com/senju1337/senju into docs/OPS-92

This commit is contained in:
Christoph J. Scherr 2025-03-27 15:23:23 +01:00
commit 4fbfcf2d00
No known key found for this signature in database
GPG key ID: 9EB784BB202BB7BB

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