[英]What is the Android Camera2 API equivalent of Camera.Parameters.getHorizontalViewAngle() and Camera.Parameters.getVerticalViewAngle()?
[英]What are all the automatic parameters of android's camera2 API
我正在使用 Android camera2 API 開發相機應用程序,並且我需要相機始終具有相同的配置,例如對焦、白平衡、曝光等。
我已經禁用了AF、AE和AWB,但它似乎仍然會自動設置白平衡。 我想知道是否還有其他一些我應該禁用的自動配置。
我在谷歌上沒有找到類似的東西。
我剛剛遇到了同樣的問題......在我的情況下,我使用的模板中有一個功能,它將控制模式重置為自動。
protected void updatePreview() {
if(null == cameraDevice) {
Log.e(TAG, "updatePreview error, return");
}
captureRequestBuilder.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_AUTO);
try {
cameraCaptureSessions.setRepeatingRequest(captureRequestBuilder.build(), null, mBackgroundHandler);
} catch (CameraAccessException e) {
e.printStackTrace();
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.