-
Notifications
You must be signed in to change notification settings - Fork 1.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
OSX 10.10: OpenCVFrameGrabber freezes the application #92
Comments
Does the same thing happen if you use the new C++ API of OpenCV directly? |
No. Neither using the native C++ API (version 2.4.10) nor the Python bindings. |
Are you saying there is no problem if you use the following |
I have not tried this. I'm new to opencv in general, can you please give me a sample program? |
Just do it the same way you would do it from C++ or Python. |
Using the VideoCapture I am able to display the frames, so I suppose it works. However, the FrameGrabber still hangs. I also forgot to mention that the code I was testing it with was a stripped down version of the MotionDetection sample. |
So, maybe it's only the old C API of OpenCV that doesn't work well anymore. What happens when if you call the following? CvCapture capture = cvCreateCameraCapture(0);
IplImage image = cvQueryFrame(capture); |
It does work, however, the canvas is blank about every second frame. |
Right, so it works with |
Don't ask me. I'm new to this. |
Does this still happen with JavaCV 0.11 and OpenCV 2.4.11? |
OpenCV still doesn't support AVFoundation, but FFmpeg does, so I would say the fix to this issue is simply to use FFmpegFrameGrabber with the AVFoundation device: bytedeco/javacpp-presets#39 |
I wanted to play around with JavaCV and I tried to compile some sample code. After linking the native binaries, it did compile, however, it didn't work. After doing some research, I pinned down the problem might be the OpenCVFrameGrabber class.
To reproduce compile the following code:
The webcam will turn on and the app will freeze, with the console output 'Before'.
I've been unable to reproduce this issue on the python bindings, so I believe this is a JavaCV issue. Also, it runs fine on Windows.
I'm using JavaCV 0.10 with OpenCV 2.4.10 and Java 8. OS is OSX 10.10 Yosemite.
The text was updated successfully, but these errors were encountered: