简体   繁体   English

使用OpenCV访问移动立体相机

[英]Access to mobile stereo camera using OpenCV

I have bought this new phone (Huawei P9) which has two cameras at the back and one in the front. 我买了这款新手机(华为P9),后面有两个摄像头,前面有一个摄像头。 I am able to capture one of the back cameras and the front camera just changing the camera ID from 0 (back camera) to 1 (front camera) 我能够捕获其中一个后置摄像头和前置摄像头,只需将摄像头ID从0(后置摄像头)更改为1(前置摄像头)

mOpenCvCameraView.setCameraIndex(mCameraId);
mOpenCvCameraView.enableView();

I have tried other camera indexes (-1, 2...) to capture the other back camera but without any success. 我已经尝试过其他相机索引(-1,2 ......)来捕获另一个后置摄像头但没有任何成功。

Anyone know how to capture the two back cameras? 谁知道如何捕捉两个后置摄像头? Or some old example using for example the LG optimus 3D? 或者使用例如LG optimus 3D的一些旧例子?

尝试的一个想法是将捕获模式设置为单色以激活单色相机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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