Ask Your Question

Adikse's profile - activity

2017-04-30 06:11:07 -0500 received badge  Enthusiast
2016-12-29 17:58:21 -0500 received badge  Editor (source)
2016-12-29 17:57:57 -0500 asked a question USB Camera capture is slow


I'm trying to capture the image from my USB camera but it is slow (about 6 fps) due to the pixel format chosen by OpenCV for capturing.

My camera supports YUYV format and MJPEG format (which can provide the 30 fps) but OpenCV only use the first format.

What can I do for opening my camera with MJPG format in OpenCV ? Or should I use another method, have you an advice on which one ?

Thank you!

BTW I'm running OpenCV 3.2.0 with linux if there is a link with this problem.

2015-06-02 03:01:46 -0500 asked a question MJPG stream with Android

Hi !

I want use an IP camera in my project opencv running on Android. I did a sample code on pc and it's running perfectly with a URL of my camera when I create the VideoCapture object. But when I do the same thing for my Android project in my native code it doesn't work.

capture = new cv::VideoCapture("http://user:pass@my.ip/video/mjpg.cgi?val=.mjpeg");

if (!capture->isOpened())
    cout << "Cannot open the video cam" << endl;

There is a way to open a video stream on Android with opencv or do I have to integrate other library like GStreamer ?