I have a custom camera application with the deprecated camera api and a surfaceview. I want to be able to magnify the live feed returned from the camera. I have tried with zoom but I am only limited to the maximum zoom value which is normally 4x but I want more than that. Any ideas on how to do that? I know it is possible because of an app called 30x Zoom in google play. How is that possible? What am I missing?
Related
so I need to modify certain properties about the way this app is taking/processing a picture. Yet, I would like to just use the standard buttons that the android has for taking pictures, so that i don't have to code them all myself. is this possible when doing such with a surface view and the Camera API? like, zoom, flash, choose camera, and such
I would like to implement android camera zoom by loosing quality. So I want to achieve result to zoom more than provided or allowed in built in camera. The same thing I want to do also for rear camera. Are there ideas?
p.s. I know how it works setZoom by camera parameters. but it gives to me maxZoom = 30, actually 4x zoom. I need more.
we are developing an Android App to be used on 1 of 2 Android cameras. Specifically the Nikon S800C.
We are able to use digital zoom but as yet we have not found a way of handling the hardware zoom which is the whole point of using a camera rather than a basic smart phone.
We cannot use the internal camera app as we have to make a custom camera overlay and preview screen. As such we have had to compose our own camera app.
It seems from what I have been advised it is not technically possible to control the camera hardware zoom from within our own app.
So my question is: Is this really the case? Is there absolutely no way of building a custom camera app that has a custom camera capture experience and also a camera HARDWARE zoom?
If this is the case, is there a way of creating a custom preview and camera overlay screen for the existing internal camera app on our device? Which would negate the need to build our own.
Thanks.
I am using the custom camera application with preview, using the sdk example on nexus s (2.3)
everything works fine, including taking sharp picture, but the preview does not seem to adjust his level (intensity) like the built in camera does:
when I preview dark objects, the built in camera compensates and increases the intensity, while the custom preview stays in the default intensity, making the preview pretty dark. The images turns out in the correct intensity.
It is not related to white balancing, nor to camera exposure.
I do not want to have a full preview processing chain - just enable the luminance automatic level control - is it possible using the standard API?
Thanks
If you use the autofocus on preview I believe you will get the results you expect.
See Camera.autofocus and Camera.AutoFocusCallback
I believe you'll get one autofocus per call. That is, it's not continuous. You can either implement a way to call it continuously using handlers or simply put a touchlistener on your surfaceview and do autofocus when the user taps the preview.
I developed a camera application that takes a picture, stores it to cache, then loads it
to a server. Everything works perfect. However, when I went to test it on a real phone, I noticed that zooming the camera crashing the app. I have spent 2 weeks trying to get the zoom to work and researching it. I have tried setOnZoomListener, isSmoothZoomSupported etc.
however, no matter what I do, I can't find a way to implement the zoom feature in the app without it crashing. Any point in the right direction to put this together would save my sanity!! Thank you so much in advance!!!!!
The zoom feature of mobile camera is digital zoom not the optical zooming.
So, the zooming is dependent on the camera hardware.
try to get the max zoom value of the camera by using Camera.Parameters.getMaxZoom()
if this method returns zoom value>1 then you are able to zoom the picture preview.
And this is hardware dependent. So, some devices may support some may not.
thanks
Vikash