简体   繁体   English

如何在Amazon Rekognition中实施“类似产品图像”

[英]how to implement “similar product images” in Amazon Rekognition

i am using Amazon Rekognition when i upload an image to my s3 bucket , the api resonse i get is 当我将图像上传到s3存储桶时,我正在使用Amazon Rekognition,我得到的api共振是

{
    "Labels": [
        {
            "Confidence": 99.30213165283203,
            "Name": "Human"
        },
        {
            "Confidence": 99.30457305908203,
            "Name": "People"
        },
        {
            "Confidence": 99.30457305908203,
            "Name": "Person"
        },
        {
            "Confidence": 92.39805603027344,
            "Name": "Clothing"
        },
        {
            "Confidence": 92.39805603027344,
            "Name": "Denim"
        },
        {
            "Confidence": 92.39805603027344,
            "Name": "Jeans"
        },
        {
            "Confidence": 92.39805603027344,
            "Name": "Pants"
        },
        {
            "Confidence": 51.34967041015625,
            "Name": "Accessories"
        },
        {
            "Confidence": 51.27912902832031,
            "Name": "Footwear"
        },
        {
            "Confidence": 51.27912902832031,
            "Name": "Shoe"
        }
    ],
    "OrientationCorrection": "ROTATE_0"
}

is there any api to search for similar product (eg. search: 'striped blue t shirts' when i upload a blue striped tshirt) among images in my bucket. 在我的存储桶中的图片中,是否有任何API可以搜索类似的产品(例如,当我上传蓝色条纹的T恤时搜索:“条纹的蓝色T恤”)。

单独的识别不会进行该搜索,但是您可以创建一个小的RDS数据库,以将上述结果与单个图像相关联,然后在进行识别搜索时,您也可以快速查询具有相同标签的图像。

Here's a suggestion on how to set it up. 这是有关设置方法的建议。

  1. S3 upload calls a Lambda function. S3上传调用Lambda函数。
  2. Lambda uses Rekognition to get possible labels for uploaded image. Lambda使用Rekognition来获取上载图像的可能标签。
  3. Rekognition returns the labels. 重新识别将返回标签。
  4. Lambda stores labels into a DB (RDS, Dynamo, or ElasticSearch, etc.) Lambda将标签存储到数据库(RDS,Dynamo或ElasticSearch等)中

For your API, you can also create an API Gateway and Lambda-powered API that will connect to the above DB and retrieve matches for you. 对于您的API,您还可以创建一个API网关和Lambda支持的API,这些API将连接到上述数据库并为您检索匹配项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM