查找 Caltech101 class 并在 OpenImaj 中记录
Finding the Caltech101 class and Record in OpenImaj
我正在尝试本教程 http://www.openimaj.org/tutorial/classification101.html,但这段代码对我来说失败了:
GroupedDataset<String, VFSListDataset<Record<FImage>>, Record<FImage>> allData =
Caltech101.getData(ImageUtilities.FIMAGE_READER);
原因是Record和Caltech101无法识别,无法导入。所有其他 类 工作正常。
这是我的 Maven 依赖项:
<dependencies>
<dependency>
<artifactId>image-processing</artifactId>
<groupId>org.openimaj</groupId>
<version>1.3.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
我还尝试从他们的网站添加所有其他依赖项,http://www.openimaj.org/index.html 但没有成功。
如果有人对 OpenImaj 有经验,如果他们能提供帮助那就太好了。
您需要添加 image-annotation
Maven 依赖项。
<dependency>
<groupId>org.openimaj</groupId>
<artifactId>image-annotation</artifactId>
<version>1.3.1</version>
</dependency>
请注意,compile
范围是默认范围,因此您不能省略它。
我正在尝试本教程 http://www.openimaj.org/tutorial/classification101.html,但这段代码对我来说失败了:
GroupedDataset<String, VFSListDataset<Record<FImage>>, Record<FImage>> allData =
Caltech101.getData(ImageUtilities.FIMAGE_READER);
原因是Record和Caltech101无法识别,无法导入。所有其他 类 工作正常。
这是我的 Maven 依赖项:
<dependencies>
<dependency>
<artifactId>image-processing</artifactId>
<groupId>org.openimaj</groupId>
<version>1.3.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
我还尝试从他们的网站添加所有其他依赖项,http://www.openimaj.org/index.html 但没有成功。
如果有人对 OpenImaj 有经验,如果他们能提供帮助那就太好了。
您需要添加 image-annotation
Maven 依赖项。
<dependency>
<groupId>org.openimaj</groupId>
<artifactId>image-annotation</artifactId>
<version>1.3.1</version>
</dependency>
请注意,compile
范围是默认范围,因此您不能省略它。