使用 Eclipse 在 Android 上的 OpenCV

2024-08-25Java开发问题
5

本文介绍了使用 Eclipse 在 Android 上的 OpenCV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我在将 OpenCV 导入我的 Android 项目时遇到了麻烦.我已经尝试过这个教程:

I'm having a hell of a time importing OpenCV into my Android project. I've already tried this tutorial:

http://opencv.itseez.com/doc/tutorials/介绍/android_binary_package/android_binary_package.html

它不起作用,因为 Eclipse 无法识别目录中的现有项目.所以经过大量搜索,我发现了这个树干:

and it did not work because Eclipse would not recognize the existing projects in the directory. So after much searching I came across this trunk:

https://code.ros.org/svn/opencv/trunk/opencv/

并且能够将它导入到我在 Eclipse 中的工作区中.Eclipse 现在可以识别示例项目,但现在的问题是没有 OpenCV 库文件.因此,所有导入不同类的调用都会导致错误.某处不应该有一个opencv.jar吗?我看过各种帖子提到必须建立图书馆,但不幸的是我没有丝毫线索如何做到这一点.我需要一些有分步说明的东西.我正在运行 Windows 7 64 位.

and was able to import it into my workspace in Eclipse. Eclipse now recognizes the sample projects, but now the problem is that there are no OpenCV library files. So all the calls to import different classes result in errors. Shouldn't there be a opencv.jar somewhere? I've seen various posts that mention having to build the library but unfortunately I don't have the slightest clue how to do that. I need something with step by step instructions. I'm running Windows 7 64-bit.

谢谢!

推荐答案

你应该在这里下载最新的 OpenCV 4 Android:

You should download the latest OpenCV 4 Android here:

http://opencv.org/downloads.html

并阅读这些教程以帮助您入门(大致按此顺序):

And read these tutorials to get you started (in this order roughly):

Android 开发简介

OpenCV4Android SDK

使用 OpenCV 进行 Android 开发

OpenCV4Android 参考

这篇关于使用 Eclipse 在 Android 上的 OpenCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

如何在java中找出依赖于语言环境的文本方向?
How to find out locale-dependent text orientation in java?(如何在java中找出依赖于语言环境的文本方向?)...
2024-08-25 Java开发问题
24

Eclipse 在尝试启动 Android 应用程序时卡住了
Eclipse gets stuck when trying to launch Android app(Eclipse 在尝试启动 Android 应用程序时卡住了)...
2024-08-25 Java开发问题
14

使用 Launch4j 将 Java 应用程序固定到 Windows 7 任务栏
Pinning a Java application using Launch4j to the Windows 7 taskbar(使用 Launch4j 将 Java 应用程序固定到 Windows 7 任务栏)...
2024-08-25 Java开发问题
11

从 Java 的 processbuilder 执行的 ffmpeg 在 windows 7 下不返回
ffmpeg executed from Java#39;s processbuilder does not return under windows 7(从 Java 的 processbuilder 执行的 ffmpeg 在 windows 7 下不返回)...
2024-08-25 Java开发问题
9

JavaExe 和 Java 应用程序作为与桌面交互的 Windows 系统服务
JavaExe and Java application as windows system service interactive to desktop(JavaExe 和 Java 应用程序作为与桌面交互的 Windows 系统服务)...
2024-08-25 Java开发问题
10