ocean-data-factory-sweden / kso

Notebooks to upload/download marine footage, connect to a citizen science project, train machine learning models and publish marine biological observations.
GNU General Public License v3.0
4 stars 12 forks source link

Run YOLO detection models within the survey start and survey end #341

Closed victor-wildlife closed 4 months ago

victor-wildlife commented 6 months ago

At the moment tut#9 runs all the way from the beginning of the video to the end. We need to implement a way to check the sampling_start and sampling_end points of the movies and run the detection for the frames between those two points

jannesgg commented 4 months ago

@victor-wildlife I don't think it is currently practical to run detection only over sections of video. Instead, we can run the detection over the whole video (which means we don't need to cut it up or create any additional files), and then filter the output instead, e.g. the csv of detections we get out has the frame_no as a column, and we just filter by min and max?

Does that seem workable?

victor-wildlife commented 4 months ago

yeah, that approach will fix the issue, could you implement it?