label-maker icon indicating copy to clipboard operation
label-maker copied to clipboard

Counting Total Number of Objects detected using tf_od_predict.py?

Open Geo-Trackers opened this issue 6 years ago • 1 comments
trafficstars

Dear All,

Has anyone worked on counting the total number of detected objects using tf_od_record.py ?

Thanks in advance.

Best, Suman

Geo-Trackers avatar Jan 09 '19 10:01 Geo-Trackers

yes, @Geo-Trackers, go to these few lines from here.

You can write a simple helper function to loop through and write down each bbox, the associated class, and the tile ID to either a dataframe, list or dictionary, and you can count the total number of bboxes (group by their classes).

Additionally, you would want to write a function to get rid the double counting too. Assuming you will see duplicated bboxes over the tile borders. I would write something like, if neighboring two bboxes' IOU > 80%, you will count them as one bbox instead of two.

Hope this is helpful.

Geoyi avatar Jan 11 '19 19:01 Geoyi