You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternative title "Option to get and update camera parameters"
Hi @livotov first, thanks for your work on this Library.
In some devices when taking a picture, the resulting picture has really small resolution although the preview looks good.
After some searching I found that parameters.getPictureSize() is different to parameters.getPreviewSize() . So the preview image can look ok, but the photo taken has really low resolution.
It is because the default parameters gotten from the camera are set to this low resolution values. They are the default settings point 2 on the list and I could not find how are they set in the device or where they come from. It is something that the user set on its device?, or it depends on the device itself? I have a list of the devices where I found this issue and there are from low to top quality devices, so I would say that is more a user thing than a device.
Is this a problem?
Is the library intention to behave this way?
If the answer is no, to fix this specific problem, setting proper picture size when it is lower than the preview size, I added some methods to the DefaultCameraV1Controller I let them here and if you think they are ok I can make a pull request.
I added updatePictureSizeIfPreviewSizeIsBigger() at the end of the startPreview method before the setupSurfaceAndCameraForPreview call
Another solution and an enhancement is to have access to the parameters of the camera, directly from the CameraLiveView.
I hope I was clear enough :)
Thanks again for your work.
The text was updated successfully, but these errors were encountered:
HugoMatilla
changed the title
Default camera picture size is the smallest one in some cases.
Default camera picture size has low resolution in some cases.
Feb 29, 2016
HugoMatilla
changed the title
Default camera picture size has low resolution in some cases.
Default camera picture size has lower resolution than preview size.
Feb 29, 2016
Alternative title "Option to get and update camera parameters"
Hi @livotov first, thanks for your work on this Library.
In some devices when taking a picture, the resulting picture has really small resolution although the preview looks good.
After some searching I found that
parameters.getPictureSize()
is different toparameters.getPreviewSize()
. So the preview image can look ok, but the photo taken has really low resolution.It is because the default parameters gotten from the camera are set to this low resolution values. They are the default settings point 2 on the list and I could not find how are they set in the device or where they come from. It is something that the user set on its device?, or it depends on the device itself? I have a list of the devices where I found this issue and there are from low to top quality devices, so I would say that is more a user thing than a device.
Is this a problem?
Is the library intention to behave this way?
If the answer is no, to fix this specific problem, setting proper picture size when it is lower than the preview size, I added some methods to the
DefaultCameraV1Controller
I let them here and if you think they are ok I can make a pull request.I added
updatePictureSizeIfPreviewSizeIsBigger()
at the end of thestartPreview
method before thesetupSurfaceAndCameraForPreview
callAnother solution and an enhancement is to have access to the parameters of the camera, directly from the CameraLiveView.
I hope I was clear enough :)
Thanks again for your work.
The text was updated successfully, but these errors were encountered: