16. Lex - 仕組み: Prompt
I’d like to book a hotel
What date do you check in?
New York City
Sure what city do you want to book?
Nov 30th Check In
11/30/201
6
City
New York City
Amazon Rekognition では、IndexFaces API 関数を使用して顔のメタデータを保存することにより、似ている顔の画像コレクションの検索を簡単にします。
それから、SearchFaces 関数を使用して信頼性の高い一致を返すことができます。顔コレクションはお客様が所有および管理する顔のインデックスです。
A mobile app uploads new images to S3
An S3 notification triggers a Lambda function which calls Rekognition’s DetectLabels API with an S3 url
DetectLabels analyzes the image and returns labels for objects and scenes detected in the image
This output is persisted as metadata into DynamoDB to ensure durability and into Elasticsearch to power a smart search index. The application serves selected images directly from S3.
Options on this configuration include: writing to Elasticsearch directly from the Lambda function, and using CloudFront to serve the image to the user.
Amazon Rekognition では、IndexFaces API 関数を使用して顔のメタデータを保存することにより、似ている顔の画像コレクションの検索を簡単にします。
それから、SearchFaces 関数を使用して信頼性の高い一致を返すことができます。顔コレクションはお客様が所有および管理する顔のインデックスです。
A mobile app uploads new images to S3
An S3 notification triggers a Lambda function which calls Rekognition’s DetectLabels API with an S3 url
DetectLabels analyzes the image and returns labels for objects and scenes detected in the image
This output is persisted as metadata into DynamoDB to ensure durability and into Elasticsearch to power a smart search index. The application serves selected images directly from S3.
Options on this configuration include: writing to Elasticsearch directly from the Lambda function, and using CloudFront to serve the image to the user.
まずは、物体とシーンの検出機能です。
DetectLables API を利用することで、画像から車、ペット、家具など、数千もの物体を識別し、信頼スコアを取得することができます。信頼スコアは 0~100 の値で示され、識別結果が正しいかどうかの可能性を意味する値です。
この画像からもかえでの木や庭、プールなどが識別されます。この機能を利用することで大規模な画像ライブラリに物体やシーンの情報を追加することができ、より充実した検索・フィルタリング機能、カテゴリわけなどの管理機能を付加することができるようになると考えられます。
次は顔分析機能についてご紹介します。
DetectFaces API を利用することで画像内の顔の位置を検出し、感情、ポーズ、 瞳が開いているかどうかなどの顔属性を分析することが可能です。
画像のトリミングや広告を重ねる機能で自動的に顔をさけるようにしたり、分析結果から、ユーザを年代や性別で分類する、大量にある自分の写真から一番ハッピーな写真を探すといったことが可能になります。
実際にホテルを予約する会話の流れをトレースしてみましょう。
“Book a Hotel in NYC” という音声を自動音声認識と自然言語理解の機能を通じ、Hotel Booking という intent が起動され、City Slot にNew York City が当てはまります。
まだ、checkin と checkout の変数が確定していないので、会話をつづけ、全ての slot が確定したのち、
ラムダ関数で fulfillment が実行され、New York City で11月30日にホテルが予約できたことがユーザに伝えられます。
実際にホテルを予約する会話の流れをトレースしてみましょう。
“Book a Hotel in NYC” という音声を自動音声認識と自然言語理解の機能を通じ、Hotel Booking という intent が起動され、City Slot にNew York City が当てはまります。
まだ、checkin と checkout の変数が確定していないので、会話をつづけ、全ての slot が確定したのち、
ラムダ関数で fulfillment が実行され、New York City で11月30日にホテルが予約できたことがユーザに伝えられます。
AWS IoT is a service that enables secure, bi-directional messaging between internet-connected things [examples] and the cloud [protocols]. At the core of the system is THE MESSAGE BROKER.
AWS IoT is a service that enables secure, bi-directional messaging between internet-connected things [examples] and the cloud [protocols]. At the core of the system is THE MESSAGE BROKER.
Amazon Rekognition では、
API 関数を使用して顔のメタデータを保存することにより、似ている顔の画像コレクションの検索を簡単にします。
それから、SearchFaces 関数を使用して信頼性の高い一致を返すことができます。顔コレクションはお客様が所有および管理する顔のインデックスです。
A mobile app uploads new images to S3
An S3 notification triggers a Lambda function which calls Rekognition’s DetectLabels API with an S3 url
DetectLabels analyzes the image and returns labels for objects and scenes detected in the image
This output is persisted as metadata into DynamoDB to ensure durability and into Elasticsearch to power a smart search index. The application serves selected images directly from S3.
Options on this configuration include: writing to Elasticsearch directly from the Lambda function, and using CloudFront to serve the image to the user.