ibaiGorordo / ONNX-YOLOv8-Object-Detection

Python scripts performing object detection using the YOLOv8 model in ONNX.
MIT License
369 stars 93 forks source link

correction of 'type' object is not subscriptable #24

Open ShashwatVC opened 2 months ago

ShashwatVC commented 2 months ago

python .\webcam_object_detection.py Traceback (most recent call last): File ".\webcam_object_detection.py", line 3, in from yolov8 import YOLOv8 File "D:\ProJects\ESA\ONNX-YOLOv8-Object-Detection\yolov8__init__.py", line 1, in from .YOLOv8 import YOLOv8 File "D:\ProJects\ESA\ONNX-YOLOv8-Object-Detection\yolov8\YOLOv8.py", line 6, in from yolov8.utils import xywh2xyxy, draw_detections, multiclass_nms File "D:\ProJects\ESA\ONNX-YOLOv8-Object-Detection\yolov8\utils.py", line 110, in def draw_box( image: np.ndarray, box: np.ndarray, color: tuple[int, int, int] = (0, 0, 255), TypeError: 'type' object is not subscriptable