Ask Your Question
0

Android rotate opencv native camera

asked 2013-01-12 12:45:15 -0500

karthi gravatar image

updated 2013-01-13 10:39:12 -0500

I am developing an android application which uses the opencv native camera using opencv2.4.2 sdk face detection samples. Is it possible to rotate the native camera to other angle when it open initially?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-01-13 00:48:07 -0500

You need to modify view class for JavaCamera and call setDisplayOrientation() method for mCamera object. See Android documentation for details. There is code example there.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-01-12 12:45:15 -0500

Seen: 806 times

Last updated: Jan 13 '13