Skip to content

cv2.error: OpenCV(3.4.3) #7

@yasersakkaf

Description

@yasersakkaf

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'

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