Converting YUV into BGR or RGB in OpenCV

后端 未结 6 594
时光说笑
时光说笑 2020-11-30 04:35

I have a TV capture card that has a feed coming in as a YUV format. I\'ve seen other posts here similar to this question and attempted to try every possible method stated, b

6条回答
  •  没有蜡笔的小新
    2020-11-30 05:05

    In newer version of OPENCV there is a built in function can be used to do YUV to RGB conversion

    cvtColor(src,dst,CV_YUV2BGR_YUY2);

    specify the YUV format after the underscore, like this CV_YUYV2BGR_xxxx

提交回复
热议问题