ausocean / openfish

OpenFish is an open-source system written in GoLang for classifying marine species. Tasks involve importing video or image data, classifying and annotating data (both manually and automatically), searching, and more. It is expected that OpenFish will use utilize computer vision and machine learning techniques.
https://ausocean.github.io/openfish/
Other
6 stars 0 forks source link

Use playback time instead of timestamps for annotations (API only) #135

Closed scott97 closed 4 months ago

scott97 commented 4 months ago

Closes issue #113.

In many of our APIs we use timestamps to specify moments in a video. This is calculated as start timestamp + time elapsed. This was a mistake, as we are needlessly converting times backwards and forwards. It would be much easier to store the video time (e.g. 01:03:22.500) rather than ISO 8601 timestamp (2024-03-03T09:03:22.500Z).

This PR adds a new type - videotime which unlike time.Time does not have a date component or timezones.

Note, changes to the frontend will be needed too, that is another PR