使用arcoreimg工具创建img数据库

问题描述 投票:1回答:2

我在为arcore项目创建图像数据库(.imgdb)时遇到问题。我已经为Android下载了arcore sdk,并且在文件夹工具中为mac下载了arcoreimg。当我尝试按照此处的步骤操作时:

https://developers.google.com/ar/develop/c/augmented-images/arcoreimg

以下内容无效:

./arcoreimg build-db --input_image_list_path=/path/to/image_list_file.txt \
                   --output_db_path=/path/to/myimages.imgdb

(显然更改了我的图像的路径)

它说我在终端中执行时找不到arcoreimg命令。我该怎么办?有什么想法吗?

android database arcore android-augmented-reality
2个回答
0
投票

遇到相同的问题,使文件可执行文件对我来说解决了这个问题:

sudo chmod +x arcoreimg


0
投票

我相信使用此功能的官方文档可能不太清楚,因为示例代码的这一部分./arcoreimg指的是您的arcoreimage cli工具所在的确切目录,以及它的名称。因此,您可以像这样正确运行代码;

/Users/.../GoogleARCore/CLI/augmented_image_cli_osx build-db --input_image_list_path=/path/to/image_list_file.txt \ --output_db_path=/path/to/myimages.imgdb

© www.soinside.com 2019 - 2024. All rights reserved.