OpenCV的添加到已经存在的项目 [英] Add opencv to an already existing project

查看:143
本文介绍了OpenCV的添加到已经存在的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎是告诉你如何安装OpenCV为Android大多数资源,假设你是从头开始。 (参见:<一href=\"http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html\" rel=\"nofollow\">http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html)我有我一直在努力的最后几个星期。现在我想添加OpenCV的库项目。这是可能的吗?

Most resources that tell you how to install OpenCV for Android seem to assume that you are starting from scratch. (see: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html) I have a project that I have been working on for the last couple of weeks. Now I want to add OpenCv libraries. Is this possible?

推荐答案

好吧,你链接的教程有你需要的一切。
通读你好OpenCV的样品部分,但是从第5步开始。

Well, the tutorial you linked has everything you need. Read through Hello OpenCV Sample part, but start from step 5.

5。进口OpenCV库到当前工作区,并建立它。

5 . Import OpenCV library to the current workspace and build it.

6。添加它作为项目的项目属性库。

6 . Add it as library in the project properties of YOUR project.

然后在你的MainActivity导入包在必要时,请务必如果你想使用手机摄像头添加权限和功能的体现。
而最重要的是,在你MainActivity添加OpenCV库的初始化。正如教程介绍了。

Then import packages in your MainActivity as necessary, make sure to add permissions and features in the manifest if you want to use camera. And most importantly, add OpenCV library initialization in you MainActivity. Just as the tutorial describes.

如果您遇到任何特别的问题更新你的问题。
希望帮助!

Update your question if you run into any particular problems. Hope that helps!

这篇关于OpenCV的添加到已经存在的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆