Hello All,
I have been trying to set my camera resolution to lower than the default resolution of the camera. For that, I have written following code after the video capture object initialization,
videoStream.set(cv::CAP_PROP_FRAME_WIDTH, frameWidth); videoStream.set(cv::CAP_PROP_FRAME_HEIGHT, frameHeight);
Initially, I was getting error compiling this piece of code but after some online surfing I could figure out the solution. However, even after successful compilation when I am printing the pixel resolution of the frame that is being read from the web camera it is showing the default resolution of the camera only.
When the same logic is implemented with OpenCV python it worked well.
Your thoughts and inputs will be appreciated.