Android setPictureSize is not respected in takePicture (Bug #3698)
Description
I'm working with opencv4android and am using org.opencv.android.JavaCameraView class to display the image after processing. So far so good, but when I do a camera.takePicture () defined in the resolution parameters with parameters.setPictureSize (width, height) is not respected (get a lower resolution). Debugging the class code I found that the problem occurs because the call params.setRecordingHint (true) inside the initializeCamera method JavaCameraView class.
Looking JavaCameraView class review on github bug was discovered that caused the commit 98cb1dc
googled found a question where that commit had already caused problems [[http://answers.opencv.org/question/27600/camera-distorted-on-android-442/]]
the solution (bad) was to copy the code and remove the line
sorry my bad english
Associated revisions
Merge pull request #3698 from SpecLad:avcodec-free-frame
History
Updated by Renato Lorenzi almost 11 years ago
- Status changed from New to Open
Updated by Alexander Smorkalov over 10 years ago
What is your device? We approve pull request that turn this option off for Samsung Galaxy S2. It the patch applicable for you?
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4747