2

So, I have implemented opencv to my android project, but when listing avaliable sizes for resolution I get the highest value of 1920x1080(im using Samsung Galaxy s6 Edge Plus). The highest resolution with default camera is 5312x2988, after that 3984x2988 and so on.

I have tried finding answer on the internet, but there is no explanation on how to do this and, if its not possible, why it isn't. Can someone help?

Im using OpenCV 3.2, Android Version 7.0

Miljan Vulovic
  • 1,586
  • 3
  • 20
  • 48

1 Answers1

1

Your device does not deliver its full camera capabilities through the deprecated camera API, which is supported for backwards compatibility with legacy apps. You should use the new camera2 API to unlock higher video resolutions. While the native interface to camera2 has been introduced recently, it is still not accommodated in OpenCV. Luckily, there is a Java class that can help. An official tutorial shows how this new API can be used in your app.

Alex Cohn
  • 56,089
  • 9
  • 113
  • 307
  • Alright, so, I need to use Androids camera2 api and use OpenCv's Camera2Renderer? – Miljan Vulovic May 10 '17 at 21:10
  • Thank you for tutorial. I read that not all devices support OpenCL, with some of the flagships being unable to process it. Is this true, or can I use it with all phones? – Miljan Vulovic May 11 '17 at 17:10