AWS之Rekognition检测image-text
Prerequisite: 添加IAM用户、安装AWS CLI
-
通过 AWS CLI 调用rekognition检测 image-text
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: 对象名称
-
通过Java API调用rekognition检测image-text
添加依赖:
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-rekognition</artifactId>
<version>1.11.467</version>
</dependency> -
demo:https://github.com/vwater/java-rekognition.git