thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.09k forks source link

Counting objects that leave the frame. #275

Open cpena107 opened 7 years ago

cpena107 commented 7 years ago

I am trying to count the number of objects coming in and out of the frame, but I notice that the prediction boxes are arranged in a list going from left to right and top to bottom of the frame. How can I single out each prediction box as a separate entity?

I also notice that the memory allocation of each, no matter if a new item was added to the list, it changes every iteration.

abagshaw commented 7 years ago

@astaroth106 To be clear, are you talking about generating predictions for a video (camera or saved video file) - or for an image?

cpena107 commented 7 years ago

@abagshaw Yes it is for a video (either save it or not does not matter)

jubjamie commented 7 years ago

I've tried doing some object tracking myself and it's quite difficult because sometimes the prediction is lost in frames and isn't maintained throughout the object's presence. I am going to try and do more object tracking work which will partly solve your problem but I don't think it will work or that i'll be able to share it. Good luck!