Ask Your Question
1

OpenCV JavaCameraView is not full screen

asked 2013-03-03 04:43:32 -0600

s4eed gravatar image

updated 2013-03-03 04:46:06 -0600

I defined a camera view in .xml user interface file using opencv Camera view like this :

 <org.opencv.android.JavaCameraView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:visibility="visible"
        android:id="@+id/tutorial1_activity_java_surface_view"
         />

Although I set width and height to be as large as parent and parent is full-screen but my captured frame is really small, some thing like 150*200 pixel. How can I get bigger frame?

edit retag flag offensive close merge delete

Comments

1

What is you device model and Android version? What version of OpenCV4Android SDK do you use? There is tutorial-3-camera control example that allows to change camera resolution. Does it work properly?

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-03-03 08:21:35 -0600 )edit

Take a look at the color blob detection sample, it is full screen. I haven't checked out much of it, I just recall that being a difference between the HelloWorld and that sample. Sorry I can't help more.

PJPS gravatar imagePJPS ( 2013-03-03 13:20:42 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-08-23 01:46:57 -0600

TimeManx gravatar image

You're probably not running it in fullscreen Add this to your onCreate

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-03 04:43:32 -0600

Seen: 6,320 times

Last updated: Aug 23 '13