本文介绍了使用OpenCV访问移动立体摄像机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经购买了这款新手机(Huawei P9),该手机的背面有两个摄像头,前面有一个摄像头.我只需将摄像机ID从0(后置摄像头)更改为1(前置摄像头)即可捕获后置摄像头和前置摄像头之一

I have bought this new phone (Huawei P9) which has two cameras at the back and one in the front. 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)

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

我尝试使用其他摄像机索引(-1、2 ...)来捕获其他后置摄像机,但没有成功.

I have tried other camera indexes (-1, 2...) to capture the other back camera but without any success.

有人知道如何捕获两个后置摄像头吗?还是使用LG optimus 3D等旧示例?

Anyone know how to capture the two back cameras? Or some old example using for example the LG optimus 3D?

推荐答案

尝试的一种方法是将捕获模式设置为单色以激活单色相机.

One idea to try is to set the capture mode to monochrome to activate the monochrome camera.

这篇关于使用OpenCV访问移动立体摄像机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 02:28
查看更多