flo-schu / peek

Peek is short for photography enhanced environmental knowledge. It contains algorithms for detecting organisms on photographs
GNU General Public License v3.0
0 stars 0 forks source link

avoid saving all tags as images #3

Closed flo-schu closed 1 year ago

flo-schu commented 1 year ago

Why would this be necessary?

Currently, when tags are imported, their slices and contours are saved to the disk. When sliders should be used meaningfully, the set of imported images should be large. This consumes a lot of disk space (up to 10mb per image).

Instead, the tagging could be completely moved inside the annotation process (also because it is fast). Instead of saving the whole image, the non white pixels could be saved as a flattened array separated by whitespace. From this, contours could be extracted with ease, together with this the box margin is saved to make it easy to re-construct the tag