标签:命令 end spl water 9.1 ima back depend order
prepare: 添加IAM用户、安装AWS CLI
window命令行下输入如下命令:
aws rekognition detect-labels ^ --image "{\"S3Object\":{\"Bucket\":\"photo-collection\",\"Name\":\"photo.jpg\"}}" ^ --region us-west-2
注:us-west-2:可提供rekognition访问的区域, s3的位置应也与此区域相同
photo-collection: 桶名称
photo: 对象名称
添加依赖:
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-rekognition</artifactId>
<version>1.11.467</version>
</dependency>
标签:命令 end spl water 9.1 ima back depend order
原文地址:https://www.cnblogs.com/vwater/p/10120484.html