API for annotation / more metadata on pictures (like detections)
Goals
We want to be able to display some detection stuff on the pictures (and maybe show them on a map).
We also want to be able to filter detected objects, and it would be nice if anyone could add some detections, automatically or not. This would make it open to external contributions, and various models being made to detect specific objects, and the results could be shared in panoramax.
Data modeling
In the database, we could add a table like pictures_detections
with:
-
picture_id: id of the pictures -
geometry: optional polygon of the detected stuff. If not present, the description applies to the whole picture -
detected_key: key of the detection, discussed by the community like the OSM tags -
detected_value: value of the detection, discussed by the community like the OSM tags -
author: account that created this description -
createdat: time of the creation of this description -
change_set: id of the change, useful to group many pictures_description together
There would be an unique constraint on picture_id/detected_key/detected_value/geometry.
We would need history on this. I don't really know how we would do this.
API
We can start with a basic CRUD on those detections.
Should we handle bulk update ? -> we can see later if it's needed.
Questions
Would this model be enough for us? Do you see better ways to handle this?