mirror of
https://github.com/senju1337/senju.git
synced 2025-12-23 23:39:27 +00:00
Merge branch 'docs/OPS-92' of https://github.com/senju1337/senju into docs/OPS-92
This commit is contained in:
commit
4fbfcf2d00
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue