Quantcast
Viewing all articles
Browse latest Browse all 4513

Ubuntu 22.04 - Raspberry Pi - IMX219 Camera - How to use camera stack?

I need to use Ubuntu 22.04 (due to ROS) and would like to use the IMX219 camera with it.First of all, everything worls just fine with the newest Raspbian.

When I try this minimal example, the image content is empty.

import cv2# open cameracap = cv2.VideoCapture('/dev/video0', cv2.CAP_V4L)# set dimensionscap.set(cv2.CAP_PROP_FRAME_WIDTH, 2560)cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 1440)# take frameret, frame = cap.read()# write frame to filecv2.imwrite('image.jpg', frame)# release cameracap.release()

It seems like the camera is not working correctly with Ubuntu 22-04.

What camera stack is used? How do I use it?Can you point me in the right direction?

Thanks for your help!


Viewing all articles
Browse latest Browse all 4513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>