ONNX-YOLOv8-Object-Detection icon indicating copy to clipboard operation
ONNX-YOLOv8-Object-Detection copied to clipboard

correction of 'type' object is not subscriptable

Open ShashwatVC opened this issue 8 months ago • 0 comments

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

ShashwatVC avatar Jun 02 '24 16:06 ShashwatVC