Ask Your Question
1

OpenCV JavaCameraView is not full screen

asked Mar 3 '13

s4eed gravatar image

updated Mar 3 '13

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?

Preview: (hide)

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?

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 (Mar 3 '13)edit

1 answer

Sort by » oldest newest most voted
2

answered Aug 23 '13

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);
Preview: (hide)

Question Tools

Stats

Asked: Mar 3 '13

Seen: 6,419 times

Last updated: Aug 23 '13