Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

picamera alternative in openCV(C++)

Hi,

There is a python package available for controlling Raspberry Pi camera called picamera which exposes all the options available in raspistill.

I need to access/change the "sensor mode" (which changes the resolution) for capturing. I am using openCV (C++) for my application but there is no option to change "sensor mode" available in cv::VideoCapture::set. There is a field of CV_CAP_PROP_MODE but that is not the same. So my question is:

  1. Is there a way to change the "sensor mode" in openCV?

  2. If not, then is there a C++ alternative available like picamera?

  3. If not, then is there a way to use this python package in my C++ program?