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

Error !_img.empty() in function 'imwrite' #10

Open
Oh-JongJin opened this issue Feb 11, 2022 · 1 comment · Fixed by #23
Open

Error !_img.empty() in function 'imwrite' #10

Oh-JongJin opened this issue Feb 11, 2022 · 1 comment · Fixed by #23
Assignees
Labels
bug Something isn't working

Comments

@Oh-JongJin
Copy link
Contributor

[h264 @ 000001d53c84e740] error while decoding MB 4 6, bytestream -9
OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:801: error: (-215:Assertion failed) !_img.empty() in function 'cv::imwrite'
@Oh-JongJin Oh-JongJin added the bug Something isn't working label Feb 11, 2022
@Oh-JongJin Oh-JongJin self-assigned this Feb 11, 2022
@Oh-JongJin Oh-JongJin changed the title Error !_img.empty() in function 'imwrite Error !_img.empty() in function 'imwrite' Feb 11, 2022
@Oh-JongJin
Copy link
Contributor Author

The first method is append cap.isOpened()
Check video before read frame,

cap = cv2.VideoCapture(' RTSP ADDRESS ')
if cap.isOpened():
    while True:
        ...

@Oh-JongJin Oh-JongJin linked a pull request Mar 15, 2022 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant