HUAWEI P9双摄像头API(CAM API 2) - Caputre B/W视频

问题描述:

现在我们面临的问题是,带有黑白传感器的华为P9能够拍摄照片,而不是视频。我想写一个快速和肮脏的解决方案,以获得第二台相机的工作,但发现,手机只有“2”相机(前/后?!)HUAWEI P9双摄像头API(CAM API 2) - Caputre B/W视频

有谁知道如何访问黑白传感器?我知道,CAM API 2没有双摄像头支持(还)。华为开发者页面建议使用API​​/SDK,但该按钮呈灰色。

任何帮助非常感谢!

我发现一个已经包含在APP“FreedCam”中的工作。 华为有一些隐藏的参数:

Regarding P9, it'sinteresting to see, that it shows only two cameras even though it has3. Any idea if the camera API 2 has the ability to use only the black and white sensor? 

com.huawei.device.capabilities.availbaleDualPrimary 
com.huawei.capture.metadata.dualSensorMode 

凸轮1

hw-dual-primary-supported=primary,secondary,dual //primary =color, secondary = mono 
hw-dual-primary-mode=primary 

所以你不能选择它作为一个第三相机。

看一看: https://github.com/troop/FreeDcam/blob/42152a8e6b948dc1a05ebb99ecc6fe999c953b1e/app/src/main/java/freed/cam/featuredetector/Camera1FeatureDetectorTask.java