Ask Your Question

Convert NV12 to RGB

asked 2016-08-25 13:35:48 -0600

        Mat yuv(720,1280, CV_8UC3);//I am reading NV12 format from a camera
         Mat rgb;

       The resolution of rgb after conversion is 480X720

       The resolution of rgb after conversion is 720X1280

However, using the above conversion I am not able to display a proper view of the images

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-10 05:34:45 -0600

Tuomx gravatar image

I make it with this answer from stackoverflow(

Understanding the nv12 format will help you to understand the code.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-08-25 13:35:48 -0600

Seen: 1,461 times

Last updated: Jun 10 '17