questo messaggio appare erorr a correre fotocamera cattura semplici su Ubuntu con Logitech C270 (OpenCV 2.4.2/C++):Errore Opencv su Ubuntu webcam (Logitech C270) Capture -> HIGHGUI ERRORE: V4L/V4L2: VIDIOC_S_CROP
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
e in seguito:
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
ottengo fotogrammi ma i valori di larghezza ed altezza telaio scambiati durante la scrittura di un oggetto Mat vedere qui:
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;
uscita:
Frame width: 640
Frame height: 480
Mat width: 480
Mat height: 640
Mi dispiace, colpa mia -.- – user2192424
Ma non so come sbarazzarmi dei messaggi di errore che ottieni. Li ho anche sulla mia macchina. – carlito