I am developing a project using OPENCV. I have some process on onCameraFrame. While it shows a preview, the user can take a picture. But on some devices, I accept the error after calling the takePicture (...) method. What should I do?
E/Camera-JNI(11783): Manually set buffer was too small! Expected 539380 bytes, but got 460800!
new symptom: this buffer size is my frame size, 460800. I registered the frame size on onCameraFrame. Each frame size is 460800. As far as I understand, takePicture is trying to use the preview buffer. And their sizes are different.
atasoyh
source share