How to convert form yuv to rgb using opencv

If you want to convert from YV12 to RGB using OpenCV, you would better to use below code

It also available to use another format NV12 and etc