yash42828 / YOLO-object-detection-with-OpenCV

Object detection using YOLO object detector
105 stars 74 forks source link

IndexError #3

Open ZhangCiYin opened 2 years ago

ZhangCiYin commented 2 years ago

when i run yolo_video.py I get the following output

Traceback (most recent call last): File "yolo_video.py", line 140, in color = [int(c) for c in COLORS[classIDs[i]]] IndexError: index 5 is out of bounds for axis 0 with size 3

Why is it occuring ? please help me 🙏