-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Description
I am getting this error when I try to run this code. I know the error is related to Open CV but can't understand what the error actually is:
Here the code and the error:
import cv2
video = cv2.VideoCapture('video.mp4')
success, image = video.read()
ret, jpeg = cv2.imencode('.jpg', image)
Traceback (most recent call last):
File "", line 1, in
cv2.error: OpenCV(3.4.3) /home/conda/feedstock_root/build_artifacts/opencv_1537056344807/work/modules/imgcodecs/src/grfmt_base.cpp:145: error: (-10:Unknown error code -10) Raw image encoder error: Empty JPEG image (DNL not supported) in function 'throwOnEror'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels