如何在Android应用程序使用的OpenCV在纵向模式下打开相机 [英] How to open Camera in Portrait Mode using OpenCV in Android Application
问题描述
我使用的 OpveCV 2.4.7库:当我在使用Android应用程序作为开放式摄像机 OpenCV的话,就说明在风景模式下相机。我试图通过活动方向设置为纵向模式,但它仍然没有显示全屏摄像头,是他们的任何方式使用Android的开放在纵向模式下相机OpenCV库
的目前,我得到以下屏幕默认在Android中使用OpvenCV库的
的我需要在纵向模式全屏摄像头的看法,但我得到这个的
我已经试过矩阵转换,但我需要设置本地摄像机参数,我使用的OpenCV打开相机,所以我不能直接访问摄像机。我用下面的code
mOpenCvCameraView =(CameraBridgeViewBase)findViewById(R.id.image_manipulations_activity_surface_view);
mOpenCvCameraView.setCvCameraViewListener(本);
我觉得这是不可能的,因为OpenCV的DEOS不提供直接操控相机给你,你需要的修改的opven简历库类 CameraBridgeViewBase
I am using OpveCV 2.4.7 library When i use OpenCV in Android Application for open Camera then it shows the camera in Landscape mode. I tried by setting Activity Orientation to Portrait mode, but still it is not showing camera in full screen, is their any way to open camera in Portrait mode in Android using OpenCV Library
Currently I am getting following screen default In android using OpvenCV Library
I need full screen camera view in Portrait mode but i am getting this
I have tried Matrix transformation but i need to set Native Camera Parameters , i am using OpenCV to open camera so i can't directly access the camera. I have used following code
mOpenCvCameraView=(CameraBridgeViewBase) findViewById(R.id.image_manipulations_activity_surface_view);
mOpenCvCameraView.setCvCameraViewListener(this);
I think this is not possible because openCV deos not provides direct camera control to you , you need to modify the opven CV library class CameraBridgeViewBase
这篇关于如何在Android应用程序使用的OpenCV在纵向模式下打开相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!