Closed rambalachandran closed 3 years ago
You might have to change the code in this function def here.
@rambalachandran any update on how you get it done. if not add the following code in the visualization_utils.py
create a dic above as count = {}
if class_name not in count: count[class_name]=1 else: count[class_name] = count[class_name] +1
Hope this may help. if you have done share your method for other to benefit.
You should parse the string [counting_result], that keep the counted objects, and push that parsed key, value pairs to dictionary variable.
Hi,
I'm able to reproduce your object counting code
single_image_object_counting.py
. However, my requirements are that I need the class name and counts to be available separately in a datastructure (like a dictionary) and not necessarily on the image. How can I modify the code to obtain this