问题描述
我正在尝试使用自动桌面伪造api从图像创建网格,但是无法上传出现错误代码19的照片。
我尝试过-
PCollection<Map<String,Object>> sideinputSnapshot = sideInput
.apply(Window.<Map<String,Object>>into(new GlobalWindows())
.triggering(Repeatedly.forever(AfterPane.elementCountAtLeast(1)))
.withAllowedLateness(Duration.ZERO).discardingFiredPanes());
this.view = sideinputSnapshot.apply(View.asSingleton());
请提出建议,如果有任何遗漏,我必须通过邮递员使用。
解决方法
正如克里斯蒂安所说,代码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'