camera image reversion

17 views
Skip to first unread message

Goodwin

unread,
Jan 10, 2011, 4:10:43 AM1/10/11
to android-platform
Dear all,
I came up against a problem. We ported the Camera to our
board, but the camera preview is not correct. The preview image is
mirror reverse. It seem the preview image rotates 180 degrees on
the Y center axis.
Any idears will be appreciated.

Ashwin Bihari

unread,
Jan 10, 2011, 9:29:01 AM1/10/11
to android-...@googlegroups.com
Have you confirmed that it's the preview that's rotating it and not
the image coming from the sensor itself? Can you check the camera
image in the Kernel? I have a V4L2 sample app that can take the camera
information from /dev/video0 and loop it back to /dev/video1 if
that'll help..

Regards
-- Ashwin

> --
> You received this message because you are subscribed to the Google Groups "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
>
>

Goodwin

unread,
Jan 10, 2011, 8:02:49 PM1/10/11
to android-platform
Thanks!

Our platform is Android2.2 and we set the camera as the front camera.I
check that the camera image is correct if we set the camera as the
back camera. so, I think the image coming from the sensor is ok.
But,we want set it as the front camera. any idears?
> > For more options, visit this group athttp://groups.google.com/group/android-platform?hl=en.- 隐藏被引用文字 -
>
> - 显示引用的文字 -

Jon Shemitz

unread,
Apr 28, 2011, 7:02:40 PM4/28/11
to android-...@googlegroups.com
Check out the dox at http://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int): "preview display of front-facing cameras is flipped horizontally before the rotation, that is, the image is reflected along the central vertical axis of the camera sensor. So the users can see themselves as looking into a mirror."
Reply all
Reply to author
Forward
0 new messages