:OpenCV의 오류 -> HIGHGUI ERROR : V4L/V4L2 : VIDIOC_S_CROP
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
또한 :
Corrupt JPEG data: 2 extraneous bytes before marker 0xd1 Corrupt JPEG data: 1 extraneous bytes before marker 0xd6 Corrupt JPEG data: 1 extraneous bytes before marker 0xd0 Corrupt JPEG data: 1 extraneous bytes before marker 0xd0
I 얻을 프레임 그러나 아래 참조 매트 오브젝트에 기록 할 때 교환 프레임 폭과 높이의 값 :
Mat frame;
videoCapture = new VideoCapture(camId);
if(!videoCapture->isOpened()) throw Exception();
cout << "Frame width: " << videoCapture->get(CV_CAP_PROP_FRAME_WIDTH) << endl;
cout << "Frame height: " << videoCapture->get(CV_CAP_PROP_FRAME_HEIGHT) << endl;
(*videoCapture) >> frame;
cout << "Mat width: " << frame.rows << endl;
cout << "Mat height: " << frame.cols << endl;
012,351,641을
출력 :
Frame width: 640
Frame height: 480
Mat width: 480
Mat height: 640
죄송합니다. 내 잘못 .- – user2192424
하지만 오류 메시지를 제거하는 방법을 모르겠습니다. 나는 그들도 내 기계에 가져다 준다. – carlito