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

Add OpenCVFrameGrabber support for setting capture format (such as MJPG) #651

Merged
merged 2 commits into from
Mar 25, 2017

Conversation

AmnonOwed
Copy link
Contributor

Fixes #650

Adds the ability to OpenCVFrameGrabber to set the capture format to MJPEG, which (if supported by the webcam) provides much better performance than the default YUY2.

@saudet
Copy link
Member

saudet commented Mar 25, 2017

Great! Please make this more general, not limited to "MJPEG" only, and I'll merge this. Thanks!

@AmnonOwed
Copy link
Contributor Author

Do you mean general in the sense that the first four letters of the format are used to set the CV_FOURCC byte identifier?

Because I found a lot of FOURCC identifiers, but I don't know which ones are supported by OpenCV...

@saudet
Copy link
Member

saudet commented Mar 25, 2017 via email

@AmnonOwed AmnonOwed changed the title Add OpenCVFrameGrabber MJPEG support Add OpenCVFrameGrabber support for setting capture format (such as MJPG) Mar 25, 2017
@AmnonOwed
Copy link
Contributor Author

Ok, I have updated the branch providing a more generalized solution.

@saudet
Copy link
Member

saudet commented Mar 25, 2017

Looks great! Thanks a lot

@saudet saudet merged commit 775ce2a into bytedeco:master Mar 25, 2017
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

Successfully merging this pull request may close these issues.

2 participants