mbari-org / vars-annotation

Video Annotation Application for MBARI's Media Management (M3) software stack
https://docs.mbari.org/vars-annotation/
Apache License 2.0
16 stars 6 forks source link

indicate annotated files #45

Open lonnylundsten opened 6 years ago

lonnylundsten commented 6 years ago

Please implement a method for indicating that 'videos' have been annotated with VARS X. Perhaps color videos differently when they have been annotated at or add annotation count to the view -- or both?

videos_view

hohonuuli commented 5 years ago

I think it will be performant to get all annotations counts per video using the endpoint at http://myproxy.server.org/anno/v1/observations/counts and using that. I may have to make a new call everytime the dialog is opened though in order to keep it in sync. That call will return JSON like:

[
  {
    "video_reference_uuid": "e5bbee99-803d-4b73-9a25-f6710964eee9",
    "count": 633
  },
  {
    "video_reference_uuid": "e930aace-75bb-4bfd-ac93-0080009f80d7",
    "count": 84
  },
  {
    "video_reference_uuid": "908799e8-53a5-4ab1-9796-76b41529a993",
    "count": 292
  },
  {
    "video_reference_uuid": "9102df11-e684-41fe-959f-676e49c058d0",
    "count": 183
  }
]