我正在尝试使用Camera API为三星Galaxy S5设置ISO。 包含相机参数中ISO标记的参数(使用camera.getParameters.flatten();进行检索)是:
我认为exif_iso参数与Meta文件有关,所以我不需要它。 iso设置是我需要的,我可以选择iso值下的所有值。如果我设置其中一个参数,则接受参数(不会抛出任何异常)。如果我使用未在值下声明的参数,则抛出异常。所以iso的值已经设定好了!
但是......奇怪的是,当你拍照时,iso设置似乎被忽略了。白平衡和分辨率等设置就像魅力一样,但我不能让iso改变。在另一部手机(星系S2)上,iso设置确实有效。
在三星的官方相机应用程序中,iso值是可编辑的,所以在api的某个地方应该是可能的!我已经尝试了一些来自游戏商店的相机应用程序(包括开放式相机1.20),但同样的事情;你可以改变它,但它会被忽略。
有谁知道为什么价值被忽略了?是否有其他参数可以启用或禁用此类设置?
非常感谢:)
更新 我更进一步了。它似乎是由我在我的应用程序中使用的OpenCV引起的。特别是类CameraBridgeViewBase似乎导致iso设置问题。即使我在拍照前禁用了视图,iso设置也会被忽略。我在没有使用OpenCV的情况下构建了一个小型相机应用程序,而iso设置就像它应该的那样。
如果使用CameraBridgeViewBase的应用程序正在运行(即使您之后清除了内存),我的相机测试应用程序iso设置将再次被忽略。我也尝试了应用程序'打开相机',iso设置再次被忽略。如果我启动官方三星相机应用程序,它似乎重置整个相机;之后我的相机测试应用程序和'打开相机'iso设置再次工作。
奇怪的是,我的三星Galaxy S2上根本没有出现这个问题。它只发生在三星Galaxy S5上......
CameraBridgeViewBase:OpenCV类,用于从相机捕获(视频)帧,显示它并实现'onFrameListener'功能。
Parameters =
phase-af-values
focallength-value-denominator=100
brightness-step=1
zoom=0
redeye-reduction-values=enable,disable
exif_iso=0
max-num-detected-faces-hw=10
scene-detect-values=off,on
qc-camera-features=542
face-detection-values=off,on
dynamic-range-control-values=
whitebalance=auto
max-sharpness=36
focallength-value-numerator=480
preview-format-values=yuv420sp,yuv420p
jpeg-thumbnail-quality=85
preview-format=yuv420sp
face-detection=off
auto-exposure-values=matrix,center,spot
iso=auto
fast-fps-mode=0
mce-values=enable,disable
flash-mode-values=off,auto,on,torch
preview-frame-rate=30
jpeg-thumbnail-width=512
video-size=1920x1080
scene-mode-values=auto,hdr
redeye-reduction=disable
preview-fps-range-values=(10000,30000)
histogram=disable
face-recognition=off
camera-mode=0
preview-size-values=1920x1080,1440x1080,1280x720,1056x864,960x720,800x480,720x480,640x480,352x288,320x240,176x144
maxaperture-value-denominator=100
saturation-step=1
touch-af-aec=touch-off
smart-screen-exposure-values=vision-ae-normal,vision-ac-backlight
preview-fps-range=10000,30000
auto-whitebalance-lock=false
min-exposure-compensation=-4
llv_mode=0
antibanding=auto
max-num-focus-areas=1
face-recognition-values=off,on
vertical-view-angle=38
video-stabilization-supported=false
sce-factor-step=10
maxaperture-value-numerator=228
qc-max-num-requested-faces=10
min-saturation=0
max-saturation=10
contrast-step=1
raw-size=5328x3000
max-brightness=6
supported-live-snapshot-sizes=5312x2988,4128x2322,4000x3000,3264x2448,3264x1836,3200x2400,2592x1944,2048x1536,2048x1152,1920x1080,1600x1200,1440x1080,1280x768,1280x720,1024x768,800x600,800x480,800x450,720x480,640x480,352x288,320x240,176x144
max-contrast=10
min-sce-factor=-100
picture-format-values=jpeg,bayer-qcom-10gbrg,bayer-qcom-10grbg,bayer-qcom-10rggb,bayer-qcom-10bggr,bayer-mipi-10gbrg,bayer-mipi-10grbg,bayer-mipi-10rggb,bayer-mipi-10bggr,yuv422sp
video-hfr=off
supported-shot-modes=normal-shot,panorama-burst
exposure-compensation-step=0.5
scene-detect=off
fnumber-value-numerator=220
picture-size=1920x1080
saturation=5
whitebalance-values=auto,incandescent,fluorescent,daylight,cloudy-daylight
picture-format=jpeg
zsl=off
lensshade-values=enable,disable
selectable-zone-af=auto
video-hfr-values=60,90,150
iso-values=auto,ISO_HJR,100,200,400,800,1600
selectable-zone-af-values=
lensshade=enable
preferred-preview-size-for-video=1920x1080
anti-shake=0
min-sharpness=0
intelligent-mode=0
mce=enable
hfr-size-values=2664x1500,1328x748,824x496
snapshot-picture-flip=off
zoom-supported=true
metering=center
denoise-values=denoise-off,denoise-on
zsl-values=off,on
sharpness=36
phase-af=off
contrast=5
scene-mode=auto
jpeg-quality=96
dynamic-range-control=off
histogram-values=enable,disable
exif_exptime=0
metering-areas=(0,0,0,0,0)
min-contrast=0
video-size-values=1920x1080,1440x1080,1280x720,800x450,800x480,720x480,640x480,352x288,320x240,176x144
skinToneEnhancement=0
rt-hdr=off
preview-size=1920x1080
focal-length=4.80
ae-bracket-hdr-values=Off,AE-Bracket
denoise=denoise-on
video-flip=off
max-sce-factor=100
preview-frame-rate-values=15,24,30
max-num-metering-areas=10
preview-flip=off
focus-mode-values=auto,infinity,macro,continuous-video,continuous-picture
vtmode=0
jpeg-thumbnail-size-values=512x288,480x288,256x154,432x288,512x384,352x288,320x240,176x144,0x0
zoom-ratios=100,104,109,114,119,125,129,134,139,144,150,154,159,164,169,175,179,184,189,194,200,204,209,214,219,225,229,234,239,244,250,254,259,264,269,275,279,284,289,294,300,304,309,314,319,325,329,334,339,344,350,354,359,364,369,375,379,384,389,394,400,404,409,414
dis-values=enable,disable
dual_mode=0
picture-size-values=5312x2988,3984x2988,3264x2448,3264x1836,2560x1920,2048x1152,1920x1080,1280x960,1280x720,800x480,640x480
touch-af-aec-values=touch-off,touch-on
smart-screen-exposure=0
luma-adaptation=3
min-brightness=0
horizontal-view-angle=62
firmware-mode=none
imageuniqueid-value=F16QLHF01GB