Eureceboesseserrostentandoabriracâmeraparaumprogramaderastreamentodecores.ElefuncionabemnoWindows,masdepoisdecompilarnoPI3elenãoroda.Comopossoconsertarisso?
libv4l2:errorsettingpixformat:DeviceorresourcebusyHIGHGUIERROR:libv4lunabletoioctlS_FMTlibv4l2:errorsettingpixformat:Deviceorresourcebusylibv4l1:errorsettingpixformat:DeviceorresourcebusyHIGHGUIERROR:libv4lunabletoioctlVIDIOCSPICT
Issoéoqueestoutentandofazernocódigo:
VideoCapturecam(0);cv::Matcam_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);