-1

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......

desertnaut
  • 57,590
  • 26
  • 140
  • 166
Hùng Kj
  • 3
  • 2
  • what have you tried ? the question needs sufficient code for a minimum reproducable example: https://stackoverflow.com/help/minimal-reproducible-example – D.L Aug 28 '22 at 13:54
  • I don't know yolov5/yolov7 by maybe it gives you output with coordinates - and then you could sort them by `x, y` – furas Aug 28 '22 at 19:51

1 Answers1

0

enter image description here

By changing the detect.py file like this, you will get the result you want.

Result: enter image description here