This question already has an answer here:
- Using OpenCV with RasPiCam and python 2 answers
I am trying to use the raspberry pi camera module as the live video feed in my opencv code(c++). However, the pi camera module does not work the same as the USB camera. eg: for USB webcam:
VideoCapture cam(0); cam >> captured_frame;
will simply return me the new frame which I can perform algorithms on.
I found some libraries/tutorials online, but most of them are for either C or python based program.