How to give YUV data input to Opencv?
I am a beginner to Opencv. In my new opencv project I have to capture video frames from a camera device and need to give them to the opencv for processing, But now my camera is not working(hardware issue). And I need to test the opencv application with a YUV file obtained from another camera device of the same type. So my questions are: How can i give YUV data to opencv? Does opencv support YUV data? From my investigation I could know that The opencv converts the captured frames to a format Mat.So Is there any way to convert the YUV data directly to Mat object and given to the opencv for