-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
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
cv::VideoCapture::read cannot read any frame at all #10378
Comments
Just to make it clear:
Below is my updated code (cap.isOpened() added) & the result it produced:
Result (Same as before):
|
Try to run with |
Hi Sir,
Thank you. |
Hi Sir, Code: int main()
} Result: Thank you. |
This mean that ffmpeg backend is selected and opencv_ffmpeg330_64.dll is loaded successfully. |
In next time you should start from using samples from OpenCV.
+std::cout << frame.size() << std::endl; // check real frame size
-if (frame.empty());
+if (frame.empty())
{
Usage questions should go to Users OpenCV Q/A forum: http://answers.opencv.org |
Hi Sir,
Thanks for your help and it's really a great experience learning from you.
Thank you and have a wonderful Merry Christmas.
Your sincerely,
Teongleng
On Dec 22, 2017 6:33 PM, Alexander Alekhin <notifications@github.com> wrote:
In next time you should start from using samples from OpenCV.
You sample have several issues:
* invalid semicolon in this line:
+std::cout << frame.size() << std::endl;
-if (frame.empty());
+if (frame.empty())
{
* "cv::waitKey(0);" must be placed right after "cv::imshow()" with some non-zero delay:
cv::imshow("Example 3", frame);
cv::waitKey(30); // ~30 fps
Usage questions should go to Users OpenCV Q/A forum: http://answers.opencv.org
Only confirmed issues should be reported here. This tracker is for issues and bugs that needs fix in OpenCV.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#10378 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AhIu-RXWxynL94wFARo6QKnuIBVvAX_fks5tC4V_gaJpZM4RKB85>.
|
System information (version)
Detailed description
Steps to reproduce
Duplicate of #10377
The text was updated successfully, but these errors were encountered: