Ask Your Question

Odroid-U2 + OpenCV = image only with moving mouse

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

pva gravatar image

I'm using an ODROID-U2 that I upgraded to Android version, openCV, 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


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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

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

martin.kubik gravatar image

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

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


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));


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

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


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

edit flag offensive delete link more

Question Tools


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

Seen: 621 times

Last updated: Mar 24 '14