Ask Your Question
0

JavaCameraView terrible on OpenCV above 2.4.3

asked 2013-05-15 02:08:05 -0600

Marde gravatar image

I already asked that question, but without response. So Im gonna ask again and make the problem clearer this time, so everybody should be able to reproduce it.

If Im running "OpenCV Tutorial 5 - CameraControl" which can be found in the samples from the OpenCV 2.4.3 release everything is fine, that means, the JavaCameraPreview is smooth and looks as good as the NativeCameraView or the standard app camera preview that comes with my phone to take pictures.

But if Im now running "OpenCV Tutorial 3 - CameraControl" which can be found in the samples from the OpenCV 2.4.5 release, the CameraPreview now looks horrible. Its slow and blury and it stutters and it hurts to see it.

I dont want to start speculating what could be going wrong, because I really dont know it. But it should be possible for some of you to tell me if your having the same problen with it.

Maybe its a bug and it would be a good idea if some developer realize that problem if they already didn't.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-05-15 03:31:25 -0600

Rafael Sierra gravatar image

What you are observing seems right to me. If I remember correctly the old code had a fixed image size, if I'm not mistaken it was 640x480. The new code appears to use the maximum resolution available and that probably makes rendering slow.

When running "OpenCV Tutorial 3 - CameraControl", press the menu control (three dots), select Resolution and lower it to something like 640x480 and see if it works as it did before.

edit flag offensive delete link more

Comments

1

Thank you very much for your answer. Its a good idea, and Im glad anyone answering. But unfortunately its not the solution. I testet it in both versions and even with the lowest resolution possible its still terrible with version 2.4.5. With 2.4.3. theres no problem even with higher resolution.

So it must be something else. I really hope the developers will fix this.

Marde gravatar imageMarde ( 2013-05-15 06:09:58 -0600 )edit

@Marde Yes. I'm using 2.4.6 and it's still slow and blurry. Any way to fix this? I've had to write a lot of extra code just to get the Mat of the current frame.

TimeManx gravatar imageTimeManx ( 2013-09-13 16:45:02 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-05-15 02:08:05 -0600

Seen: 551 times

Last updated: May 15 '13