Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception has occurred: cv2.error #15

Open
mertbegkan opened this issue Dec 25, 2018 · 1 comment
Open

Exception has occurred: cv2.error #15

mertbegkan opened this issue Dec 25, 2018 · 1 comment

Comments

@mertbegkan
Copy link

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

@mertbegkan
Copy link
Author

Could you help me solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant