Skip to content

[BUG] preserve_ar unintended zoom/crop with IMX900 Framos GO Module #1331

@kovin-md

Description

@kovin-md

Describe the bug
When preserve_ar is set to True, image is SUPER zoomed in. When preserve_ar is set to False, image is as expected.

To Reproduce

  • Follow Framos instructions for IMX900 driver install
  • Follow Framos instructions for Framos Libcamera install.
  • sudo apt install python3-picamera2 python3-opencv
  • Run the attached imx900_test.py script and change the flags to see the difference/bug.

imx900_test.py

Expected behaviour
When preserve_ar is set to True, image will be SUPER zoomed in, and frame rate will be close to what is expected (higher, close to the hardware limit). When preserve_ar is set to False, image will look normal and frame rate will be alot lower.

This behavior tracks for all resolutions and camera configurations I've tried. Also for both preview_configuration and video_configuration.

Console Output, Screenshots
see test_false.jpg (1st picture) and test_true.jpg (2nd picture) - these pictures were taken with the camera pointing at the blinds by my window. Note just how mch more zoomed in test_true.jpg is. I was holding the camera with my hand during both pictures, so they are not pointing at the EXACT same spot in both pictures.
Image
Image

Hardware :
I'm using a Pi Compute Module 5, with the official Compute IO board, and using an IMX900 Framos GO module.

This is the version of bookworm on the module:
https://downloads.raspberrypi.com/raspios_arm64/images/raspios_arm64-2024-11-19/2024-11-19-raspios-bookworm-arm64.img.xz

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Additional context
None at this time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions