简体   繁体   中英

android camera preview screen intensity

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM