简体   繁体   English

在Android Eclipse项目中导入OpenCV

[英]Importing OpenCV in Android Eclipse Project

I have a rather simple question. 我有一个相当简单的问题。 I built the OpenCV library with the help of MacPorts. 我在MacPorts的帮助下构建了OpenCV库。 All the files are in my opt directory as they should be. 所有文件都应该在我的opt目录中。 I'd like to use the libopencv_core.2.2.0.dylib in my Android project in Eclipse. 我想在Eclipse的Android项目中使用libopencv_core.2.2.0.dylib。 There is a method cvnorm() in that library which I want to use. 我要使用该库中的方法cvnorm()。 I'm writing a simple little Android app which will need to use some of the methods from OpenCV. 我正在编写一个简单的小型Android应用程序,该应用程序将需要使用OpenCV中的某些方法。 I can't seem to add this library to the project, it says it's invalid file type. 我似乎无法将此库添加到项目中,它说它是无效的文件类型。 Would appreciate any help you could give. 希望您能提供任何帮助。 Thanks! 谢谢!

There is a special OpenCV trunk for Android. Android有一个特殊的OpenCV干线。 Try this tutorial. 试试教程。

Even it's written for Windows, it worked like a charm in my MacBook Air. 即使是为Windows编写的,它也像我的MacBook Air一样具有魅力。

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

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