Ask Your Question
0

why my JavaCameraView show a half photo

asked 2014-04-24 19:49:23 -0500

rainNight gravatar image

I miss a problem when I use the org.opencv.android.JavaCameraView. I just get half image as follow.image description.

I need not the black region,I want to have full screen for preview. I hope someone can help me. Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-28 01:20:26 -0500

itay gravatar image

You should set the screen as landscape, you can do it by changing your code in "OnCreate" method and put this lines(if you don't need some of the lines just don't use them) :

// Set window fullscreen and remove title bar, and force landscape orientation this.requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

else if you don't want to change orientation, then you can follow this question that i ask in order to change only the camera orientation.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-04-24 19:49:23 -0500

Seen: 437 times

Last updated: Apr 28 '14