Android setPictureSize is not respected in takePicture (Bug #3698)


Added by Renato Lorenzi almost 11 years ago. Updated over 9 years ago.


Status:Open Start date:2014-05-16
Priority:Normal Due date:
Assignee:Alexander Smorkalov % Done:

0%

Category:android
Target version:2.4.10
Affected version:2.4.9 (latest release) Operating System:Android
Difficulty: HW Platform:Any
Pull request:

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

Revision 6a3a6416
Added by Vadim Pisarevsky about 10 years ago

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

Also available in: Atom PDF