Ask Your Question
1

Odroid-U2 + OpenCV = image only with moving mouse

asked 2013-12-13 12:04:33 -0600

pva gravatar image

I'm using an ODROID-U2 that I upgraded to Android version 4.2.1.8., openCV 2.4.7.1, USB web-camera After the running examples(camerapreview) the frames don't move.But if we move the mouse,the frames begin exchange(only when the mouse is moved).And when the mouse stop moving,the exchange of frames stop too.

edit retag flag offensive close merge delete

Comments

I have the same problem with ODROID-XU with Android 4.2.2 , OpenCV 2.4.8 and Odroid USB-CAM 720P.

martin.kubik gravatar imagemartin.kubik ( 2014-03-24 06:37:36 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-03-24 07:53:11 -0600

martin.kubik gravatar image

I solved the same problem by changing following lines in JavaCameraView.java (in OpenCV4Android Library):

1) Size frameSize = calculateCameraFrameSize(sizes, new JavaCameraSizeAccessor(), width, height);

to

Size frameSize = new Size(width,height);

2) Log.d(TAG, "Set preview size to " + Integer.valueOf((int)frameSize.width) + "x" + Integer.valueOf((int)frameSize.height));

to

Log.d(TAG, "Set preview size to " + Integer.valueOf(640) + "x" + Integer.valueOf(480));

3) params.setPreviewSize((int)frameSize.width, (int)frameSize.height);

to

params.setPreviewSize((int)640, (int)480);

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-12-13 12:04:33 -0600

Seen: 727 times

Last updated: Mar 24 '14