node-camera
node-camera copied to clipboard
resolution always 640x480
how do i modify the streaming resolution? Regardless the size passed, the frame gets properly resized but the content remains 640x480.
Found the fix. Added the following lines after line 221 in the camera.cpp file.
message->capture->set(cv::CAP_PROP_FRAME_WIDTH, message->width);
message->capture->set(cv::CAP_PROP_FRAME_HEIGHT, message->height);