I’ve downloaded and flashed the new JetPack package to my TX1, and having the following problem with opencv4tegra. I am unable to set the resolution of my usb webcam using the following code:
cv::VideoCapture capture(CAMERA_INDEX); capture.set(CV_CAP_PROP_FRAME_WIDTH, SCREEN_WIDTH); capture.set(CV_CAP_PROP_FRAME_HEIGHT, SCREEN_HEIGHT);
I receive the following error:
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
After googling it appears the error is related to compiling OpenCV without V4L… It also seems like this has been an error in previous opencv4tegra releases: https://devtalk.nvidia.com/default/topic/790032/opencv4tegra-for-l4t-has-problem/
The video feed is still captured correctly, but at the wrong resolution.