Skip to content

Commit

Permalink
docs: Add docstring for label view
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe-Heffer-Shef committed Jun 17, 2024
1 parent 8363577 commit caad431
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backend/btviewer/blueprints/label/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
def detail():
"""
Get all the tags associated with this image
Usage:
/label/detail?path=1970-01-01/set_A/device_1234/camera_1/20200101_094359.123456_000002.np
:returns: List of labels
[
{"confidence": "Unsure", "x": 321, "y": 789},
{"confidence": "Sure", "x": 123, "y": 6564},
{"confidence": "Unsure", "x": 456, "y": 789}
]
"""
photo_path = flask.request.args['path']
photo = Photo(photo_path)
Expand Down

0 comments on commit caad431

Please sign in to comment.