You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We have noticed that, when going from RPI4->RPI5, the numpy array returned from capture_array has changed shape. Specifically, the width has doubled and the height as remained the same. Originally, this output a junk image. We found if we only take the odd columns, we get the correct image. We assume this is due to a bit related error. Though, both the numpy array and our sensor mode are 8 bit.
To Reproduce
Initialize the camera on RPI5.
Make a capture via capture_array('raw')
Examine the size and compare to the sensor mode (these should be unequal).
Expected behaviour
The camera properly returns the size of image as defined by the sensor mode (480, 640) instead of (480, 1280).
Hardware :
We are using an RPI5 with a Sony IMX 219 camera connected via HDMI.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Raw formats are different on Pi 5 compared to all earlier Pis. Definitely worth reading section 4.2.2.3. "Raw streams and the Sensor Configuration" on page 21 of the manual. There's quite a lot about the differences between Pi 4 and Pi 5 there.
As always, if you can supply a specific example, just a few lines of code, where you configure a raw stream and it's not what you expect, that would be helpful. I would start with something like this:
from picamera2 import Picamera2
cam = Picamera2()
config = ... # however you make your configuration
cam.configure(config)
print(cam.camera_configuration()[raw]) # is this what you expect?
Please only report one bug per issue!
Describe the bug
We have noticed that, when going from RPI4->RPI5, the numpy array returned from
capture_array
has changed shape. Specifically, the width has doubled and the height as remained the same. Originally, this output a junk image. We found if we only take the odd columns, we get the correct image. We assume this is due to a bit related error. Though, both the numpy array and our sensor mode are 8 bit.To Reproduce
Expected behaviour
The camera properly returns the size of image as defined by the sensor mode (480, 640) instead of (480, 1280).
Hardware :
We are using an RPI5 with a Sony IMX 219 camera connected via HDMI.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: