Jump to content
Sign in to follow this  

CSi camera, how do I change the format or convert the format

Recommended Posts

I have a pcDuino4 with the 5MP CSI camera.  Guvcview shows the output format to be YU12 and gives a good image.  I want to write a python program to capture and image and save it with a specific name at a fixed interval.  The issue is that OpenCV is having trouble with the YU12 format.  The camera is supposed to be able to have the RGB3 format but I can't change it.  cv.get(9) returns a -1 value.  I can change the image size using the cv.set but not the format.I can't find any documentation that helps and no examples on how to change the format for that camera.  OpenCV does not have a YU12 converter (420p is supposed to be YU12 but that is not working) or atleast not one I can find.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this