This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Starterware/PROCESSOR-SDK-AM437X: Dual camera demo image rotation

Part Number: PROCESSOR-SDK-AM437X

Tool/software: Starterware

Hi all,

I am using AM437x ti-processor-sdk-linux-am437x-evm-03.01.00.06, and I took the dual-camera-demo-1.0 as reference,

I found the preview image was rotated 180 degree but when I capture one photo, the photo was right.

So I want to know if any method to rotate the preview image 180 degree?

Thanks.

The following image was my preview image:

  • Moving this thread to the Sitara forum to get assistance on PRSDK Linux.
  • Anyone can help me :(
    Thank you:)
  • 180 degree rotation isn't supported using dual-camera demo.

    Are you wanting to display the captured image with 180 degree rotation or take a snapshot (writing in memory) of the captured image with 180 degree rotation?

    Display rotation is supported by wayland window system.

    You can enable rotation through wayland by configuring /etc/weston.ini file. Add below lines to your weston file.. In my example, I used HDMI output named as HDMI-A-1. as below. Check for output name of your display by running modetest and modify the parameter accordingly.

    [output]
    name=HDMI-A-1
    transform=180

    You can rotate to different orientation following below settings -
    transform=normal
    The transformation applied to screen output (string). The
    transform key can be one of the following 8 strings:

    normal Normal output.
    90 90 degrees clockwise.
    180 Upside down.
    270 90 degrees counter clockwise.
    flipped Horizontally flipped
    flipped-90 Flipped and 90 degrees clockwise
    flipped-180 Flipped upside down
    flipped-270 Flipped and 90 degrees counter clockwise
  • Thank you very much!

    My issue is: the preview image was rotated 180 but the captured photo was in correct angle.

    So I want to rotate the preview 180.

    Since I have use the dual_camera demo as reference I want to know if there are some ways to do this, such as drm rotation? 

  • Captured snapshot should be same as the preview image shown on display. They shouldn't differ unless display rotation feature is turned on in DSS and that's not set in out of box dual camera demo. Please check how you are viewing the captured snapshot image and if the utility used to view the image itself is rotating the image.