【问题标题】:Autodesk Forge Reality capture photo scene id does not existAutodesk Forge Reality 捕获照片场景 ID 不存在
【发布时间】:2021-01-16 20:04:04
【问题描述】:

我正在尝试使用 autodesk forge api 从图像创建网格,但无法上传照片,错误代码为 19。

我试过了-

curl -X POST \


https://developer.api.autodesk.com/photo-to-3d/v1/file \
  -H 'authorization: Bearer xxx' \
  -H 'cache-control: no-cache' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -H 'postman-token: e25fbfb0-3754-e48f-4f0f-cac34bfd9df2' \
  -F 'file[0]=@IMG_20200930_180808.jpg' \
  -F 'file[1]=@IMG_20200930_180814.jpg' \
  -F 'file[2]=@IMG_20200930_180820.jpg' \
  -F 'file[3]=@IMG_20200930_180830.jpg' \
  -F type=image \
  -F photosceneid=<some sceneid>

如果有什么遗漏,请建议,我必须通过邮递员使用。

【问题讨论】:

  • 根据their documentation,错误码19表示Specified Photoscene ID doesn't exist in the database。这有帮助吗?

标签: postman autodesk-forge


【解决方案1】:

正如 Christian 所说,代码 19 表示您所指的 photoscene 不存在。确保在向其上传图像之前使用POST photoscene 端点创建照片场景,例如,如下所示:

curl -v 'https://developer.api.autodesk.com/photo-to-3d/v1/photoscene' \
  -X 'POST' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsImtpZCI6...' \
  -d 'scenename=testscene' \
  -d 'format=rcm,rcs,ortho' \
  -d 'metadata_name[0]=targetcs' \
  -d 'metadata_value[0]=UTM84-32N'

【讨论】:

    猜你喜欢
    • 2020-08-11
    • 2020-10-06
    • 2020-10-21
    • 2021-11-05
    • 2019-04-13
    • 2019-06-13
    • 2021-02-21
    • 2022-01-23
    • 2020-10-14
    相关资源
    最近更新 更多