Answer the question
In order to leave comments, you need to log in
How to get video from camera in YUYV format using OpenCV?
Greetings!
There is a USB camera that accurately supports YUYV output.
I'm trying to capture video through OpenCV, while in the usual RGB everything is fine, but I can't set it to YUYV.
Tried it: cap.set(CV_CAP_PROP_MODE, CV_CAP_MODE_YUYV);
says it doesn't support O_o cap.set(CV_CAP_PROP_CONVERT_RGB, false);
Doesn't output anything at all, but there are no errors either.
Tell me where to look to get YUYV and at the same time it is desirable cross-platform?
Answer the question
In order to leave comments, you need to log in
В чём проблема захватить в RGB и конвертировать в YUV через cvtColor?
Камера действительно может не уметь выдавать видео в этом формате. По-хорошему, нужно определить список поддерживаемых режимов камерой, выбрать наиболее подходящий, выполнить захват, а потом конвертировать как угодно.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question