<?php // This file was auto-generated from sdk-root/src/data/rekognition/2016-06-27/examples-1.json return [ 'version' => '1.0', 'examples' => [ 'AssociateFaces' => [ [ 'input' => [ 'ClientRequestToken' => '550e8400-e29b-41d4-a716-446655440002', 'CollectionId' => 'MyCollection', 'FaceIds' => [ 'f5817d37-94f6-4335-bfee-6cf79a3d806e', '851cb847-dccc-4fea-9309-9f4805967855', '35ebbb41-7f67-4263-908d-dd0ecba05ab9', ], 'UserId' => 'DemoUser', 'UserMatchThreshold' => 70, ], 'output' => [ 'AssociatedFaces' => [ [ 'FaceId' => '35ebbb41-7f67-4263-908d-dd0ecba05ab9', ], ], 'UnsuccessfulFaceAssociations' => [ [ 'Confidence' => 0.9375374913215637, 'FaceId' => 'f5817d37-94f6-4335-bfee-6cf79a3d806e', 'Reasons' => [ 'LOW_MATCH_CONFIDENCE', ], ], [ 'FaceId' => '851cb847-dccc-4fea-9309-9f4805967855', 'Reasons' => [ 'ASSOCIATED_TO_A_DIFFERENT_USER', ], 'UserId' => 'demoUser2', ], ], 'UserStatus' => 'UPDATING', ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation associates one or more faces with an existing UserID.', 'id' => 'associatefaces-1686181269281', 'title' => 'AssociateFaces', ], ], 'CompareFaces' => [ [ 'input' => [ 'SimilarityThreshold' => 90, 'SourceImage' => [ 'S3Object' => [ 'Bucket' => 'mybucket', 'Name' => 'mysourceimage', ], ], 'TargetImage' => [ 'S3Object' => [ 'Bucket' => 'mybucket', 'Name' => 'mytargetimage', ], ], ], 'output' => [ 'FaceMatches' => [ [ 'Face' => [ 'BoundingBox' => [ 'Height' => 0.33481481671333313, 'Left' => 0.31888890266418457, 'Top' => 0.4933333396911621, 'Width' => 0.25, ], 'Confidence' => 99.9991226196289, ], 'Similarity' => 100, ], ], 'SourceImageFace' => [ 'BoundingBox' => [ 'Height' => 0.33481481671333313, 'Left' => 0.31888890266418457, 'Top' => 0.4933333396911621, 'Width' => 0.25, ], 'Confidence' => 99.9991226196289, ], ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation compares the largest face detected in the source image with each face detected in the target image.', 'id' => 'to-compare-two-images-1482181985581', 'title' => 'To compare two images', ], ], 'CopyProjectVersion' => [ [ 'input' => [ 'DestinationProjectArn' => 'arn:aws:rekognition:us-east-1:555555555555:project/DestinationProject/1656705098765', 'KmsKeyId' => 'arn:1234abcd-12ab-34cd-56ef-1234567890ab', 'OutputConfig' => [ 'S3Bucket' => 'bucket-name', 'S3KeyPrefix' => 'path_to_folder', ], 'SourceProjectArn' => 'arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/16565123456', 'SourceProjectVersionArn' => 'arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/version/model_1/1656611123456', 'Tags' => [ 'key1' => 'val1', ], 'VersionName' => 'DestinationVersionName_cross_account', ], 'output' => [ 'ProjectVersionArn' => 'arn:aws:rekognition:us-east-1:555555555555:project/DestinationProject/version/DestinationVersionName_cross_account/16567050987651', ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination project.', 'id' => 'copyprojectversion-1658203943815', 'title' => 'CopyProjectVersion', ], ], 'CreateCollection' => [ [ 'input' => [ 'CollectionId' => 'myphotos', ], 'output' => [ 'CollectionArn' => 'aws:rekognition:us-west-2:123456789012:collection/myphotos', 'StatusCode' => 200, ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation creates a Rekognition collection for storing image data.', 'id' => 'to-create-a-collection-1481833313674', 'title' => 'To create a collection', ], ], 'CreateUser' => [ [ 'input' => [ 'CollectionId' => 'MyCollection', 'UserId' => 'DemoUser', ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'Creates a new User within a collection specified by CollectionId.', 'id' => 'createuser-1686181562299', 'title' => 'CreateUser', ], ], 'DeleteCollection' => [ [ 'input' => [ 'CollectionId' => 'myphotos', ], 'output' => [ 'StatusCode' => 200, ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation deletes a Rekognition collection.', 'id' => 'to-delete-a-collection-1481838179973', 'title' => 'To delete a collection', ], ], 'DeleteFaces' => [ [ 'input' => [ 'CollectionId' => 'myphotos', 'FaceIds' => [ 'ff43d742-0c13-5d16-a3e8-03d3f58e980b', ], ], 'output' => [ 'DeletedFaces' => [ 'ff43d742-0c13-5d16-a3e8-03d3f58e980b', ], ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation deletes one or more faces from a Rekognition collection.', 'id' => 'to-delete-a-face-1482182799377', 'title' => 'To delete a face', ], ], 'DeleteProjectPolicy' => [ [ 'input' => [ 'PolicyName' => 'testPolicy1', 'PolicyRevisionId' => '3b274c25e9203a56a99e00e3ff205fbc', 'ProjectArn' => 'arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/1656557123456', ], 'output' => [], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation deletes a revision of an existing project policy from an Amazon Rekognition Custom Labels project.', 'id' => 'deleteprojectpolicy-1658204413810', 'title' => 'DeleteProjectPolicy', ], ], 'DeleteUser' => [ [ 'input' => [ 'ClientRequestToken' => '550e8400-e29b-41d4-a716-446655440001', 'CollectionId' => 'MyCollection', 'UserId' => 'DemoUser', ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'Deletes the specified UserID within the collection.', 'id' => 'deleteuser-1686181913475', 'title' => 'DeleteUser', ], ], 'DetectFaces' => [ [ 'input' => [ 'Image' => [ 'S3Object' => [ 'Bucket' => 'mybucket', 'Name' => 'myphoto', ], ], ], 'output' => [ 'FaceDetails' => [ [ 'BoundingBox' => [ 'Height' => 0.18000000715255737, 'Left' => 0.5555555820465088, 'Top' => 0.33666667342185974, 'Width' => 0.23999999463558197, ], 'Confidence' => 100, 'Landmarks' => [ [ 'Type' => 'eyeLeft', 'X' => 0.6394737362861633, 'Y' => 0.40819624066352844, ], [ 'Type' => 'eyeRight', 'X' => 0.7266660928726196, 'Y' => 0.41039225459098816, ], [ 'Type' => 'eyeRight', 'X' => 0.6912462115287781, 'Y' => 0.44240960478782654, ], [ 'Type' => 'mouthDown', 'X' => 0.6306198239326477, 'Y' => 0.46700039505958557, ], [ 'Type' => 'mouthUp', 'X' => 0.7215608954429626, 'Y' => 0.47114261984825134, ], ], 'Pose' => [ 'Pitch' => 4.050806522369385, 'Roll' => 0.9950747489929199, 'Yaw' => 13.693790435791016, ], 'Quality' => [ 'Brightness' => 37.60169982910156, 'Sharpness' => 80, ], ], ], 'OrientationCorrection' => 'ROTATE_0', ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation detects faces in an image stored in an AWS S3 bucket.', 'id' => 'to-detect-faces-in-an-image-1481841782793', 'title' => 'To detect faces in an image', ], ], 'DetectLabels' => [ [ 'input' => [ 'Image' => [ 'S3Object' => [ 'Bucket' => 'mybucket', 'Name' => 'myphoto', ], ], 'MaxLabels' => 123, 'MinConfidence' => 70, ], 'output' => [ 'Labels' => [ [ 'Confidence' => 99.25072479248047, 'Name' => 'People', ], [ 'Confidence' => 99.25074005126953, 'Name' => 'Person', ], ], ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation detects labels in the supplied image', 'id' => 'to-detect-labels-1481834255770', 'title' => 'To detect labels', ], ], 'DisassociateFaces' => [ [ 'input' => [ 'ClientRequestToken' => '550e8400-e29b-41d4-a716-446655440003', 'CollectionId' => 'MyCollection', 'FaceIds' => [ 'f5817d37-94f6-4335-bfee-6cf79a3d806e', 'c92265d4-5f9c-43af-a58e-12be0ce02bc3', ], 'UserId' => 'DemoUser', ], 'output' => [ 'DisassociatedFaces' => [ [ 'FaceId' => 'c92265d4-5f9c-43af-a58e-12be0ce02bc3', ], ], 'UnsuccessfulFaceDisassociations' => [ [ 'FaceId' => 'f5817d37-94f6-4335-bfee-6cf79a3d806e', 'Reasons' => [ 'ASSOCIATED_TO_A_DIFFERENT_USER', ], 'UserId' => 'demoUser1', ], ], 'UserStatus' => 'UPDATING', ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'Removes the association between a Face supplied in an array of FaceIds and the User.', 'id' => 'disassociatefaces-1686182627295', 'title' => 'DisassociateFaces', ], ], 'IndexFaces' => [ [ 'input' => [ 'CollectionId' => 'myphotos', 'DetectionAttributes' => [], 'ExternalImageId' => 'myphotoid', 'Image' => [ 'S3Object' => [ 'Bucket' => 'mybucket', 'Name' => 'myphoto', ], ], ], 'output' => [ 'FaceRecords' => [ [ 'Face' => [ 'BoundingBox' => [ 'Height' => 0.33481481671333313, 'Left' => 0.31888890266418457, 'Top' => 0.4933333396911621, 'Width' => 0.25, ], 'Confidence' => 99.9991226196289, 'FaceId' => 'ff43d742-0c13-5d16-a3e8-03d3f58e980b', 'ImageId' => '465f4e93-763e-51d0-b030-b9667a2d94b1', ], 'FaceDetail' => [ 'BoundingBox' => [ 'Height' => 0.33481481671333313, 'Left' => 0.31888890266418457, 'Top' => 0.4933333396911621, 'Width' => 0.25, ], 'Confidence' => 99.9991226196289, 'Landmarks' => [ [ 'Type' => 'eyeLeft', 'X' => 0.3976764678955078, 'Y' => 0.6248345971107483, ], [ 'Type' => 'eyeRight', 'X' => 0.4810936450958252, 'Y' => 0.6317117214202881, ], [ 'Type' => 'noseLeft', 'X' => 0.41986238956451416, 'Y' => 0.7111940383911133, ], [ 'Type' => 'mouthDown', 'X' => 0.40525302290916443, 'Y' => 0.7497701048851013, ], [ 'Type' => 'mouthUp', 'X' => 0.4753248989582062, 'Y' => 0.7558549642562866, ], ], 'Pose' => [ 'Pitch' => -9.713645935058594, 'Roll' => 4.707281112670898, 'Yaw' => -24.438663482666016, ], 'Quality' => [ 'Brightness' => 29.23358917236328, 'Sharpness' => 80, ], ], ], [ 'Face' => [ 'BoundingBox' => [ 'Height' => 0.32592591643333435, 'Left' => 0.5144444704055786, 'Top' => 0.15111111104488373, 'Width' => 0.24444444477558136, ], 'Confidence' => 99.99950408935547, 'FaceId' => '8be04dba-4e58-520d-850e-9eae4af70eb2', 'ImageId' => '465f4e93-763e-51d0-b030-b9667a2d94b1', ], 'FaceDetail' => [ 'BoundingBox' => [ 'Height' => 0.32592591643333435, 'Left' => 0.5144444704055786, 'Top' => 0.15111111104488373, 'Width' => 0.24444444477558136, ], 'Confidence' => 99.99950408935547, 'Landmarks' => [ [ 'Type' => 'eyeLeft', 'X' => 0.6006892323493958, 'Y' => 0.290842205286026, ], [ 'Type' => 'eyeRight', 'X' => 0.6808141469955444, 'Y' => 0.29609042406082153, ], [ 'Type' => 'noseLeft', 'X' => 0.6395332217216492, 'Y' => 0.3522595763206482, ], [ 'Type' => 'mouthDown', 'X' => 0.5892083048820496, 'Y' => 0.38689887523651123, ], [ 'Type' => 'mouthUp', 'X' => 0.674560010433197, 'Y' => 0.394125759601593, ], ], 'Pose' => [ 'Pitch' => -4.683138370513916, 'Roll' => 2.1029529571533203, 'Yaw' => 6.716655254364014, ], 'Quality' => [ 'Brightness' => 34.951698303222656, 'Sharpness' => 160, ], ], ], ], 'OrientationCorrection' => 'ROTATE_0', ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation detects faces in an image and adds them to the specified Rekognition collection.', 'id' => 'to-add-a-face-to-a-collection-1482179542923', 'title' => 'To add a face to a collection', ], ], 'ListCollections' => [ [ 'input' => [], 'output' => [ 'CollectionIds' => [ 'myphotos', ], ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation returns a list of Rekognition collections.', 'id' => 'to-list-the-collections-1482179199088', 'title' => 'To list the collections', ], ], 'ListFaces' => [ [ 'input' => [ 'CollectionId' => 'myphotos', 'MaxResults' => 20, ], 'output' => [ 'FaceModelVersion' => '6.0', 'Faces' => [ [ 'BoundingBox' => [ 'Height' => 0.056759100407361984, 'Left' => 0.3453829884529114, 'Top' => 0.36568498611450195, 'Width' => 0.03177810087800026, ], 'Confidence' => 99.76940155029297, 'FaceId' => 'c92265d4-5f9c-43af-a58e-12be0ce02bc3', 'ImageId' => '56a0ca74-1c83-39dd-b363-051a64168a65', 'IndexFacesModelVersion' => '6.0', 'UserId' => 'demoUser2', ], [ 'BoundingBox' => [ 'Height' => 0.06347999721765518, 'Left' => 0.5160620212554932, 'Top' => 0.6080359816551208, 'Width' => 0.03254450112581253, ], 'Confidence' => 99.94369506835938, 'FaceId' => '851cb847-dccc-4fea-9309-9f4805967855', 'ImageId' => 'a8aed589-ceec-35f7-9c04-82e0b546b024', 'IndexFacesModelVersion' => '6.0', ], [ 'BoundingBox' => [ 'Height' => 0.05266290158033371, 'Left' => 0.6513839960098267, 'Top' => 0.4218429923057556, 'Width' => 0.03094629943370819, ], 'Confidence' => 99.82969665527344, 'FaceId' => 'c0eb3b65-24a0-41e1-b23a-1908b1aaeac1', 'ImageId' => '56a0ca74-1c83-39dd-b363-051a64168a65', 'IndexFacesModelVersion' => '6.0', ], ], ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation lists the faces in a Rekognition collection.', 'id' => 'to-list-the-faces-in-a-collection-1482181416530', 'title' => 'To list the faces in a collection', ], ], 'ListProjectPolicies' => [ [ 'input' => [ 'MaxResults' => 5, 'NextToken' => '', 'ProjectArn' => 'arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929', ], 'output' => [ 'NextToken' => '', 'ProjectPolicies' => [ [ 'CreationTimestamp' => '2022-07-01T11:51:27.086000-07:00', 'LastUpdatedTimestamp' => '2022-07-01T11:51:27.086000-07:00', 'PolicyDocument' => '{"Version":"2012-10-17","Statement":[{"Sid":"Statemented1","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::111122223333:root"},"Action":"rekognition:CopyProjectVersion","Resource":"*"}]}', 'PolicyName' => 'testPolicy', 'PolicyRevisionId' => '3b274c25e9203a56a99e00e3ff205fbc', 'ProjectArn' => 'arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929', ], ], ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation lists the project policies that are attached to an Amazon Rekognition Custom Labels project.', 'id' => 'listprojectpolicies-1658202290173', 'title' => 'ListProjectPolicies', ], ], 'ListUsers' => [ [ 'input' => [ 'CollectionId' => 'MyCollection', ], 'output' => [ 'NextToken' => 'MGYZLAHX1T5a....', 'Users' => [ [ 'UserId' => 'demoUser4', 'UserStatus' => 'CREATED', ], [ 'UserId' => 'demoUser2', 'UserStatus' => 'CREATED', ], ], ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'Returns metadata of the User such as UserID in the specified collection.', 'id' => 'listusers-1686182360075', 'title' => 'ListUsers', ], ], 'PutProjectPolicy' => [ [ 'input' => [ 'PolicyDocument' => '\'{"Version":"2012-10-17","Statement":[{"Effect":"ALLOW","Principal":{"AWS":"principal"},"Action":"rekognition:CopyProjectVersion","Resource":"arn:aws:rekognition:us-east-1:123456789012:project/my-sdk-project/version/DestinationVersionName/1627045542080"}]}\'', 'PolicyName' => 'SamplePolicy', 'PolicyRevisionId' => '0123456789abcdef', 'ProjectArn' => 'arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929', ], 'output' => [ 'PolicyRevisionId' => '0123456789abcdef', ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation attaches a project policy to a Amazon Rekognition Custom Labels project in a trusting AWS account.', 'id' => 'putprojectpolicy-1658201727623', 'title' => 'PutProjectPolicy', ], ], 'SearchFaces' => [ [ 'input' => [ 'CollectionId' => 'myphotos', 'FaceId' => '70008e50-75e4-55d0-8e80-363fb73b3a14', 'FaceMatchThreshold' => 90, 'MaxFaces' => 10, ], 'output' => [ 'FaceMatches' => [ [ 'Face' => [ 'BoundingBox' => [ 'Height' => 0.3259260058403015, 'Left' => 0.5144439935684204, 'Top' => 0.15111100673675537, 'Width' => 0.24444399774074554, ], 'Confidence' => 99.99949645996094, 'FaceId' => '8be04dba-4e58-520d-850e-9eae4af70eb2', 'ImageId' => '465f4e93-763e-51d0-b030-b9667a2d94b1', ], 'Similarity' => 99.97222137451172, ], [ 'Face' => [ 'BoundingBox' => [ 'Height' => 0.16555599868297577, 'Left' => 0.30963000655174255, 'Top' => 0.7066670060157776, 'Width' => 0.22074100375175476, ], 'Confidence' => 100, 'FaceId' => '29a75abe-397b-5101-ba4f-706783b2246c', 'ImageId' => '147fdf82-7a71-52cf-819b-e786c7b9746e', ], 'Similarity' => 97.04154968261719, ], [ 'Face' => [ 'BoundingBox' => [ 'Height' => 0.18888899683952332, 'Left' => 0.3783380091190338, 'Top' => 0.2355560064315796, 'Width' => 0.25222599506378174, ], 'Confidence' => 99.9999008178711, 'FaceId' => '908544ad-edc3-59df-8faf-6a87cc256cf5', 'ImageId' => '3c731605-d772-541a-a5e7-0375dbc68a07', ], 'Similarity' => 95.94520568847656, ], ], 'SearchedFaceId' => '70008e50-75e4-55d0-8e80-363fb73b3a14', ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation searches for matching faces in the collection the supplied face belongs to.', 'id' => 'to-delete-a-face-1482182799377', 'title' => 'To delete a face', ], ], 'SearchFacesByImage' => [ [ 'input' => [ 'CollectionId' => 'myphotos', 'FaceMatchThreshold' => 95, 'Image' => [ 'S3Object' => [ 'Bucket' => 'mybucket', 'Name' => 'myphoto', ], ], 'MaxFaces' => 5, ], 'output' => [ 'FaceMatches' => [ [ 'Face' => [ 'BoundingBox' => [ 'Height' => 0.3234420120716095, 'Left' => 0.3233329951763153, 'Top' => 0.5, 'Width' => 0.24222199618816376, ], 'Confidence' => 99.99829864501953, 'FaceId' => '38271d79-7bc2-5efb-b752-398a8d575b85', 'ImageId' => 'd5631190-d039-54e4-b267-abd22c8647c5', ], 'Similarity' => 99.97036743164062, ], ], 'SearchedFaceBoundingBox' => [ 'Height' => 0.33481481671333313, 'Left' => 0.31888890266418457, 'Top' => 0.4933333396911621, 'Width' => 0.25, ], 'SearchedFaceConfidence' => 99.9991226196289, ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'This operation searches for faces in a Rekognition collection that match the largest face in an S3 bucket stored image.', 'id' => 'to-search-for-faces-matching-a-supplied-image-1482175994491', 'title' => 'To search for faces matching a supplied image', ], ], 'SearchUsers' => [ [ 'input' => [ 'CollectionId' => 'MyCollection', 'MaxUsers' => 2, 'UserId' => 'DemoUser', 'UserMatchThreshold' => 70, ], 'output' => [ 'FaceModelVersion' => '6', 'SearchedUser' => [ 'UserId' => 'DemoUser', ], 'UserMatches' => [ [ 'Similarity' => 99.88186645507812, 'User' => [ 'UserId' => 'demoUser1', 'UserStatus' => 'ACTIVE', ], ], ], ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'Searches for UserIDs within a collection based on a FaceId or UserId.', 'id' => 'searchusers-1686182912030', 'title' => 'SearchUsers', ], ], 'SearchUsersByImage' => [ [ 'input' => [ 'CollectionId' => 'MyCollection', 'Image' => [ 'S3Object' => [ 'Bucket' => 'bucket', 'Name' => 'input.jpg', ], ], 'MaxUsers' => 2, 'QualityFilter' => 'MEDIUM', 'UserMatchThreshold' => 70, ], 'output' => [ 'FaceModelVersion' => '6', 'SearchedFace' => [ 'FaceDetail' => [ 'BoundingBox' => [ 'Height' => 0.07510016113519669, 'Left' => 0.3598678708076477, 'Top' => 0.5391526818275452, 'Width' => 0.03692837432026863, ], ], ], 'UnsearchedFaces' => [ [ 'FaceDetails' => [ 'BoundingBox' => [ 'Height' => 0.0682177022099495, 'Left' => 0.6102562546730042, 'Top' => 0.5593535900115967, 'Width' => 0.031677018851041794, ], ], 'Reasons' => [ 'FACE_NOT_LARGEST', ], ], [ 'FaceDetails' => [ 'BoundingBox' => [ 'Height' => 0.06347997486591339, 'Left' => 0.516062319278717, 'Top' => 0.6080358028411865, 'Width' => 0.03254449740052223, ], ], 'Reasons' => [ 'FACE_NOT_LARGEST', ], ], ], 'UserMatches' => [ [ 'Similarity' => 99.88186645507812, 'User' => [ 'UserId' => 'demoUser1', 'UserStatus' => 'ACTIVE', ], ], ], ], 'comments' => [ 'input' => [], 'output' => [], ], 'description' => 'Searches for UserIDs using a supplied image.', 'id' => 'searchusersbyimage-1686183178610', 'title' => 'SearchUsersByImage', ], ], ],];