0

我是 openIMAJ 的新手,我想用它处理一些图片。有很多可用的教程,但它们都使用 Maven。有谁知道我可以从哪里下载 openIMAJ 的 jar 文件以直接在我的 Java 项目中使用?谢谢!

4

3 回答 3

3

For all the features of OpenIMAJ there are more than 50 Jar file that you need to Download individually. Also if you somehow manage to find all those files manually on internet you may end up mixing some or other version which will make some classes incompatible. Although I would strongly suggest you to try understand what maven is and its capabilities, you can follow the below steps if you dont want to add dependencies using maven or even don't even want to know what it is.

1.) Go to Help Menu -> Open MarketPlace.

2.) Search for maven and download the plugin.

3.) In file menu create new-> new maven project

4.) Select your workspace and click next

5.) In the select an Archetype window look for add archetype and enter the following details

GroupID: org.openimaj
ArtifactID: openimaj-quickstart-archetype
version: 1.1
URL: http://maven.openimaj.org/

6.) Click next and give details of your own project and click finish

All the jars will be downloaded which you can see in your project structure. You can now stop worrying about maven and start concentrating on openimaj.

于 2014-09-20T18:21:17.603 回答
2

OpenIMAJ 相当复杂,包含许多您可能不需要在项目中使用的模块(即,如果您要进行图像处理,您可能不太关心音频分析或网络内容分析- 页)。此外,每个 OpenIMAJ 模块都依赖于许多其他项目(它们本身也有依赖关系,等等)。由于这些原因,提供所有模块及其依赖项的直接下载实际上并不那么实际,因为用户需要付出难以置信的努力才能尝试找出需要哪些位,哪些位不需要。

指定您需要哪些 OpenIMAJ 位的理想方法是使用自动依赖管理系统;然而,这不需要是 Maven - 任何与 Maven 兼容的依赖管理器都可以工作(即 Ivy、SBT、Grape 等)。在右侧框中的OpenIMAJ 首页上有一些您需要添加到构建系统配置中的片段示例(您可能需要向下滚动一点)。

如果您确实想在现有项目中手动包含相关的 jar 文件,我建议您使用以下方法,它使用 Maven 根据您需要的确切 OpenIMAJ 模块构建一组自定义的 jar:

  1. 运行mvn -DarchetypeRepository=http://maven.openimaj.org -DarchetypeArtifactId=openimaj-quickstart-archetype -DarchetypeGroupId=org.openimaj -DarchetypeVersion=1.2.1 -DartifactId=oi-deps -DgroupId=oi-deps -Dversion=1.0-SNAPSHOT -DinteractiveMode=false archetype:generate以创建一个基本的 OpenIMAJ 项目(oi-deps在本例中称为)。
  2. 进入oi-deps目录:cd oi-deps
  3. 通过删除任何不必要的部分,编辑pom.xml文件以仅包含您需要的 OpenIMAJ 位。<dependency>
  4. 运行mvn dependency:copy-dependencies。这将创建一个target/dependencies文件夹,其中包含您需要添加到项目中的所有 jar。
于 2014-09-07T12:55:27.383 回答
1

我也没有找到任何“全部下载”网站。而且我认为原因是一些jar文件中有很多依赖。

我最近提取了一些 jars 用于没有 maven 的项目,但那是相当复杂的。我只能使用另一个带有 maven 的项目来做到这一点。

我认为 maven 是好东西,并且易于在 ie 中使用。网豆。所以试试吧。

于 2014-09-03T18:39:55.450 回答