Skip to content

Exception has occurred: cv2.error #15

Description

@mertbegkan

Hello, I am trying your code on a dash cam video that I found on youtube and I get this error:

OpenCV(3.4.1) C:\Miniconda3\conda-bld\opencv-suite_1533128839831\work\modules\imgproc\src\resize.cpp:4044: error: (-215) ssize.width > 0 && ssize.height > 0 in function cv::resize
File "C:\MT_Denemeler2\01\vehicle-detection-master\visualizations.py", line 38, in draw_thumbnails
vehicle_thumb = cv2.resize(thumbnail, dsize=(thumb_w, thumb_h))
File "C:\MT_Denemeler2\01\vehicle-detection-master\yolo_pipeline.py", line 190, in draw_results
draw_thumbnails(img_cp, img, window_list)
File "C:\Users\mbk\Desktop\MT_Denemeler2\01\vehicle-detection-master\yolo_pipeline.py", line 219, in vehicle_detection_yolo
yolo_result = draw_results(image, image_lane, yolo, fps, lane_info)
File "C:\Users\mbk\Desktop\MT_Denemeler2\01\vehicle-detection-master\main.py", line 10, in pipeline_yolo
output = vehicle_detection_yolo(img_undist, img_lane_augmented, lane_info)
File "C:\users\mbk\desktop\mt_denemeler2\01\vehicle-detection-master<decorator-gen-129>", line 2, in get_frame

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions