I tested with random images and the output like this:
3 Cars,4 persons,5 Dogs
how to print all class from left to right from top to bottom:
car,person,person,person,dog,person,car,dog......
I tested with random images and the output like this:
3 Cars,4 persons,5 Dogs
how to print all class from left to right from top to bottom:
car,person,person,person,dog,person,car,dog......
By changing the detect.py file like this, you will get the result you want.
Result: enter image description here