gpt4 book ai didi

java - 升级到最新版本的 Boofcv

转载 作者:行者123 更新时间:2023-11-30 06:42:07 27 4
gpt4 key购买 nike

我目前正在运行旧版本 (0.17) 的 Boofcv 并且想要升级。文档 ( https://boofcv.org/index.php?title=Download) 令人困惑:

The easiest way to use boofcv is to reference its jars on Maven Central. See below for Maven and Gradle code. BoofCV is broken up into many modules. To make it easier to use BoofCV all of its core functionality can be referenced using the 'all' module. Individual modules in "integration" still must be referenced individually.

Artifact List

boofcv-core : All the core functionality of BoofCV
boofcv-all : All the core and integration packages in BoofCV. YOU PROBABLY WANT CORE AND NOT THIS

这是自相矛盾的——我们是用“全部”还是“核心”?

当我引入 0.32 版本的 boofcv-core 时,我得到了许多 Unresolved 引用,例如描述资源路径位置类型
ImageFloat32 无法解析为类型 BoofCVTest.java

我的问题的三个部分:图像的基本类型是否已重命名?遗留代码需要如何编辑?Maven 中的默认库集是什么?

最佳答案

自 0.17 以来已经进行了大量的重构,因为事情变得越来越冗长并简化了 API。例如,ImageFloat32 现在是 GrayF32。找出所有更改的最简单方法是查看相关示例代码。

对于模块,从 boofcv-core 开始。然后根据需要添加集成中列出的模块。例如,如果您需要 android 支持,请添加 boofcv-android。如果包含 boofcv-all,您将拥有很多可能不需要的东西,例如 Kinect 支持。

关于java - 升级到最新版本的 Boofcv,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54035630/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com