node-camera icon indicating copy to clipboard operation
node-camera copied to clipboard

resolution always 640x480

Open haimiko opened this issue 5 years ago • 1 comments

how do i modify the streaming resolution? Regardless the size passed, the frame gets properly resized but the content remains 640x480.

haimiko avatar Dec 17 '20 01:12 haimiko

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);

haimiko avatar Dec 17 '20 05:12 haimiko