简体   繁体   English

在SearchFacesByImage成功进行亚马逊识别中的人脸匹配之后,检索个人信息

[英]Retrieving personal information after the SearchFacesByImage is successful for the face match in amazon rekognition

I am trying to create an app which makes use of Amazon Rekogition in AWS for identification of a person and retrieving the personal information for an internal storage system. 我正在尝试创建一个利用AWS中的Amazon Rekogition来识别个人身份并为内部存储系统检索个人信息的应用程序。

I wanted to know how to connect the Amazon Rekognition part and the information stored in the database. 我想知道如何连接Amazon Rekognition部分和数据库中存储的信息。 The face detection part will be done by Amazon Rekognition, but how will my app store and retrieve the personal information after detection of face? 人脸检测部分将由Amazon Rekognition完成,但是在检测到人脸后,我的应用程序将如何存储和检索个人信息?

Can anyone give me a sample code in Java for retrieving the information stored in dynamodb using externalImageId ? 谁能给我一个Java示例代码,以使用externalImageId检索dynamodb存储的信息?

That is totally up to you and how you code your application! 这完全取决于您以及如何编写应用程序!

Presumably you will want to store information about the person when the Face is initially stored in Rekognition. 大概当您将面部最初存储在Rekognition中时,您将要存储有关该人的信息。 Therefore, your application should: 因此,您的应用程序应:

  • Store the person's details in Amazon DynamoDB (or a database of your choice) 将人员的详细信息存储在Amazon DynamoDB(或您选择的数据库)中
  • Add the face to the Face Collection in Amazon Rekognition, using an externalImageId that links the face to the person's entry in the database 使用将面部与人在数据库中的条目相关联的externalImageId将面部添加到Amazon Rekognition中的Face Collection中

When a face is later provided for lookup: 以后提供面孔进行查找时:

  • Search for the face in Amazon Rekognition, which will return the externalImageId 在Amazon Rekognition中搜索人脸,这将返回externalImageId
  • Retrieve the matching data from the database using the externalImageId 使用externalImageId从数据库中检索匹配的数据

All of that logic is your responsibility to code into an application. 所有这些逻辑是编写应用程序代码的责任 You can search the web for code samples of how to use DynamoDB and Rekognition. 您可以在网上搜索有关如何使用DynamoDB和Rekognition的代码示例。

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

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