Skip to content

OpenCv 3.4.1 for Android: Bad JavaCamera2View performance  #11261

@ansanders

Description

@ansanders

#I recently upgraded to 3.4.1 and build it to support new JavaCamera2View.
On my Nexus 7 (2013) I resolved a FPS decrease over time bug with JavaCameraView.
JavaCamera2View now gives slow, but stable ~10 FPS . Not acceptable but maybe improvable.
Performance on my Galaxy S8 differs much. ~30 FPS with JavaCameraView, without any processing.
But only 2 FPS! with JavaCamera2View, which is not usable for any needs.
In both test cases, JavaCamera2View has a very improved behaviour in resolution settings, scaling / zooming behaviour and image quality (removed some blurry and bad quality effects) and maybe that is some kind of the problem.
As far as I can say the resolution, quality and autofocus behaviour is so good, that it drops the FPS to a minimum. But that is just my "newbie" opinion.
Buffer managment could also be a problem, but I can't imagine why the performance is better on an older Device than S8 (Nexus 7).

really need to solve this issue because I'd love to use the new JavaCamera2View since the quality of camera is much better

ty in advance

System information (version)
  • OpenCV => 3.4.1 with contrib
  • Operating System / Platform => Ubuntu 16.04
  • Compiler Settings => build_sdk.py with ndk-config.16 - downgraded android SDK

Edit

the devices get really really hot after a few minutes of running a simple Java2CameraView

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions