label-maker
label-maker copied to clipboard
Counting Total Number of Objects detected using tf_od_predict.py?
Dear All,
Has anyone worked on counting the total number of detected objects using tf_od_record.py ?
Thanks in advance.
Best, Suman
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.