I get these errors trying to open camera for a color tracking program. It works fine on windows but after compiling on PI3 it does not run. How can I fix it?  libv4l2: error setting pixformat: Device or resource busyHIGHGUI ERROR: libv4l unable to ioctl S_FMTlibv4l2: error setting pixformat: Device or resource busylibv4l1: error setting pixformat: Device or resource busyHIGHGUI ERROR: libv4l unable to ioctl VIDIOCSPICTThis is what I am trying to do in the code:VideoCapture cam (0);cv::Mat cam_img;cam.read(cam_img);cvtColor(cam_img, HSV_img, CV_RGB2HSV);inRange(HSV_img, Scalar(H_MIN, V_MIN, S_MIN), Scalar(H_MAX, V_MAX, S_MAX), tracked_img);imshow(cam_img, cam_img);cv::waitKey(1);
Linux error to access webcam camera with openCV: (libv4l2: error setting pixformat: Device or resource busy)
linux;camera;opencv