Android Camera API ISO设置?

Android Camera API ISO设置?,第1张

概述有没有人知道在 Android SDK中控制相机的ISO设置?  HTC Desire上的本地摄像头应用程序可以进行ISO设置. 你应该看看android.hardware.Camera.Parameters中的flatten(),unflatten(),get(String key),set(String key,String value)的方法. 还要考虑 source code of tha 有没有人知道在 Android SDK中控制相机的ISO设置?
HTC Desire上的本地摄像头应用程序可以进行ISO设置.解决方法 你应该看看androID.harDWare.Camera.Parameters中的flatten(),unflatten(),get(String key),set(String key,String value)的方法.
还要考虑 source code of that class.它可能会使事情更清楚.

首先你需要获取Camera.Parameters.将其缩短到字符串并进行调查.我正在开发HTC Desire以及获得以下字符串:

sharpness-max=30;zoom=0;taking-picture-zoom=0;zoom-supported=true;sharpness-min=0;sharpness=10;contrast=5;whitebalance=auto;jpeg-quality=100;prevIEw-format-values=yuv420sp;jpeg-thumbnail-quality=75;prevIEw-format=yuv420sp;prevIEw-size=640x480;focal-length=3.53;iso=auto;meter-mode=meter-center;front-camera-mode=mirror;flash-mode-values=off,auto,on,torch;prevIEw-frame-rate-values=15;prevIEw-frame-rate=15;focus-mode-values=auto,infinity;jpeg-thumbnail-wIDth=640;jpeg-thumbnail-size-values=640x480,512x384,384x288,0x0;zoom-ratios=100,114,131,151,174,200;saturation-def=5;prevIEw-size-values=1280x720,800x480,768x432,720x480,640x480,576x432,480x320,400x240,352x288,320x240,272x272,240x240,240x160,176x144,160x120;smart-contrast=off;picture-size-values=2592x1952,2592x1456,2592x1936,2592x1728,2592x1552,2048x1536,2048x1360,2048x1216,2048x1152,1600x1200,1584x1056,1280x960,1280x848,1280x768,1280x720,1024x768,640x416,640x384,640x368,400x400,272x272;contrast-min=0;min-exposure-compensation=-4;brightness-min=0;antibanding=auto;taking-picture-zoom-min=0;saturation-min=1;contrast-max=10;vertical-vIEw-angle=42.5;taking-picture-zoom-max=21;contrast-def=5;brightness-max=6;horizontal-vIEw-angle=54.8;brightness=3;jpeg-thumbnail-height=480;cam-mode=0;focus-mode=auto;sharpness-def=10;front-camera-mode-values=mirror,reverse;picture-format-values=jpeg;saturation-max=10;max-exposure-compensation=4;exposure-compensation=0;exposure-compensation-step=0.5;flash-mode=off;effect-values=none,mono,negative,solarize,sepia,posterize,aqua;meter-mode-values=meter-average,meter-center,meter-spot;picture-size=2592x1952;max-zoom=5;effect=none;saturation=5;whitebalance-values=auto,incandescent,fluorescent,daylight,cloudy-daylight;picture-format=jpeg;brightness-def=3;iso-values=auto,deblur,100,200,400,800,1250;enable-caf=off;antibanding-values=off,50hz,60hz,auto

因此,基本上有一个名为iso-values的密钥来检索支持的值和保存当前值的密钥iso.

您可以执行以下 *** 作:

Camera cam = Camera.open();Camera.Parameters camParams = cam.getParameters();String supportedisovalues = camParams.get("iso-values"); //supported values,comma separated StringcamParams.set("iso",(String)newValue);cam.setParameters(camParams);

并参考未平坦的参数,我将假设在iso和曝光补偿设置之间存在差异.

总结

以上是内存溢出为你收集整理的Android Camera API ISO设置?全部内容,希望文章能够帮你解决Android Camera API ISO设置?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1131640.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存