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