Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Compares a face in the source input image with each face detected in the target input image.
In response, the operation returns an array of face matches ordered by similarity score with the highest similarity scores first. For each face match, the response provides a bounding box of the face and confidence
value (indicating the level of confidence that the bounding box contains a face). The response also provides a similarity
score, which indicates how closely the faces match.
In addition to the face matches, the response returns information about the face in the source image, including the bounding box of the face and confidence value.
For an example, see 'get-started-exercise-compare-faces'
This operation requires permissions to perform the rekognition:CompareFaces
action.
- compareFaces :: Image -> Image -> CompareFaces
- data CompareFaces
- cfSimilarityThreshold :: Lens' CompareFaces (Maybe Double)
- cfSourceImage :: Lens' CompareFaces Image
- cfTargetImage :: Lens' CompareFaces Image
- compareFacesResponse :: Int -> CompareFacesResponse
- data CompareFacesResponse
- cfrsFaceMatches :: Lens' CompareFacesResponse [CompareFacesMatch]
- cfrsSourceImageFace :: Lens' CompareFacesResponse (Maybe ComparedSourceImageFace)
- cfrsResponseStatus :: Lens' CompareFacesResponse Int
Creating a Request
Creates a value of CompareFaces
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cfSimilarityThreshold
- The minimum level of confidence in the match you want included in the result.cfSourceImage
- Source image either as bytes or an Amazon S3 objectcfTargetImage
- Target image either as bytes or an Amazon S3 object
data CompareFaces Source #
See: compareFaces
smart constructor.
Request Lenses
cfSimilarityThreshold :: Lens' CompareFaces (Maybe Double) Source #
The minimum level of confidence in the match you want included in the result.
cfSourceImage :: Lens' CompareFaces Image Source #
Source image either as bytes or an Amazon S3 object
cfTargetImage :: Lens' CompareFaces Image Source #
Target image either as bytes or an Amazon S3 object
Destructuring the Response
Creates a value of CompareFacesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cfrsFaceMatches
- Provides an array ofCompareFacesMatch
objects. Each object provides the bounding box, confidence that the bounding box contains a face, and the similarity between the face in the bounding box and the face in the source image.cfrsSourceImageFace
- The face from the source image that was used for comparison.cfrsResponseStatus
- -- | The response status code.
data CompareFacesResponse Source #
See: compareFacesResponse
smart constructor.
Response Lenses
cfrsFaceMatches :: Lens' CompareFacesResponse [CompareFacesMatch] Source #
Provides an array of CompareFacesMatch
objects. Each object provides the bounding box, confidence that the bounding box contains a face, and the similarity between the face in the bounding box and the face in the source image.
cfrsSourceImageFace :: Lens' CompareFacesResponse (Maybe ComparedSourceImageFace) Source #
The face from the source image that was used for comparison.
cfrsResponseStatus :: Lens' CompareFacesResponse Int Source #
- - | The response status code.