问题描述
我试图建立相关的增强现实(AR)应用一,并能配置我与Metaio SDK和OpenCV库应用程序已成功在两个单独的应用程序。
Hi i'm trying to create a application related to the Augmented Reality (AR) and was able to configure my application with Metaio SDK and OpenCV library successfully in two separate application.
但事情是我想使用的OpenCV和Metaio双方的库连成一个应用程序。所以任何一个可以帮助我与它的集成。
but the thing is i want to use both the library of OpenCV and Metaio together into one application. so can any one help me with its integration.
在我的单应用程序,我想用OpenCV进行无标记检测和MetaIO的3D模型渲染。
In my single application I want to use OpenCV for markerless detection and MetaIO for 3D Model rendering.
Metaio: http://www.metaio.com/
OpenCV的: http://opencv.org/
=====>
我使用OpenCV的检测形状的摄像机图像,并希望显示在这些形状呈现由metaio 3D对象。类似的标记跟踪。
I'm using opencv to detect shapes in a camera image and want to display 3D objects rendered by metaio on those shapes. Similar to marker tracking.
Metaio和OpenCV,每个人都有自己的cameraview。我的OpenCV禁用cameraview。
Metaio and openCV, each have their own cameraview. I have disabled cameraview of openCV.
我想转换在Android中的 onNewCameraFrame()
方法接收到的OpenCV的垫一个ImageStruct对象。对于这一点,我已经注册MetaioSDKCallback连续地接收摄像机架。
I want to convert an ImageStruct object received in onNewCameraFrame()
method into an OpenCV Mat in Android. For this, I have registered MetaioSDKCallback to continuously receive camera frame.
但 onSDKReady()
和 onNewCameraFrame()
这个回调方法不会被调用,虽然我已经加入metaioSDK.requestCameraImage()'。
But onSDKReady()
and onNewCameraFrame()
method of this callback is not being called,though I have added 'metaioSDK.requestCameraImage()'.
这在那里我坚持了下来。
This where i'm stuck with it.
推荐答案
我建议你整合Opencv4android的SDK,并查看样品配备,他们教你如何轻松地使用相机很好的例子
I suggest you to integrate the sdk of Opencv4android, and to see the samples come with, they are very good examples to teach you how to use the camera easily
有关你的目标可能是人脸检测的例子就是很好的检查。
For your objective probably face detection example is good to check.
这里是政党成员,帮助您安装和配置OpenCV的SDK
Here is the tuto that help you to install and configure opencv SDK
有关AR我也帮不了你那么多,但看看这个讨论,它可能是有帮助的。
For AR I can't help you so much, but have look at this discussion, it could be helpful.
这篇关于如何整合metaio +打开CV为Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!