rekognition function

Amazon Rekognition

Amazon Rekognition

This is the API Reference for Amazon Rekognition Image, Amazon Rekognition Custom Labels, Amazon Rekognition Stored Video, Amazon Rekognition Streaming Video. It provides descriptions of actions, data types, common parameters, and common errors.

Amazon Rekognition Image

  • associate_faces
  • compare_faces
  • create_collection
  • create_user
  • delete_collection
  • delete_faces
  • delete_user
  • describe_collection
  • detect_faces
  • detect_labels
  • detect_moderation_labels
  • detect_protective_equipment
  • detect_text
  • disassociate_faces
  • get_celebrity_info
  • get_media_analysis_job
  • index_faces
  • list_collections
  • ListMediaAnalysisJob
  • list_faces
  • list_users
  • recognize_celebrities
  • search_faces
  • search_faces_by_image
  • search_users
  • search_users_by_image
  • start_media_analysis_job

Amazon Rekognition Custom Labels

  • copy_project_version
  • create_dataset
  • create_project
  • create_project_version
  • delete_dataset
  • delete_project
  • delete_project_policy
  • delete_project_version
  • describe_dataset
  • describe_projects
  • describe_project_versions
  • detect_custom_labels
  • distribute_dataset_entries
  • list_dataset_entries
  • list_dataset_labels
  • list_project_policies
  • put_project_policy
  • start_project_version
  • stop_project_version
  • update_dataset_entries

Amazon Rekognition Video Stored Video

  • get_celebrity_recognition
  • get_content_moderation
  • get_face_detection
  • get_face_search
  • get_label_detection
  • get_person_tracking
  • get_segment_detection
  • get_text_detection
  • start_celebrity_recognition
  • start_content_moderation
  • start_face_detection
  • start_face_search
  • start_label_detection
  • start_person_tracking
  • start_segment_detection
  • start_text_detection

Amazon Rekognition Video Streaming Video

  • create_stream_processor
  • delete_stream_processor
  • describe_stream_processor
  • list_stream_processors
  • start_stream_processor
  • stop_stream_processor
  • update_stream_processor
rekognition( config = list(), credentials = list(), endpoint = NULL, region = NULL )

Arguments

  • config: Optional configuration of credentials, endpoint, and/or region.

    • credentials :

      • creds :

        • access_key_id : AWS access key ID
        • secret_access_key : AWS secret access key
        • session_token : AWS temporary session token
      • profile : The name of a profile to use. If not given, then the default profile is used.

      • anonymous : Set anonymous credentials.

    • endpoint : The complete URL to use for the constructed client.

    • region : The AWS Region used in instantiating the client.

    • close_connection : Immediately close all HTTP connections.

    • timeout : The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

    • s3_force_path_style : Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

    • sts_regional_endpoint : Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

  • credentials: Optional credentials shorthand for the config parameter

    • creds :

      • access_key_id : AWS access key ID
      • secret_access_key : AWS secret access key
      • session_token : AWS temporary session token
    • profile : The name of a profile to use. If not given, then the default profile is used.

    • anonymous : Set anonymous credentials.

  • endpoint: Optional shorthand for complete URL to use for the constructed client.

  • region: Optional shorthand for AWS Region used in instantiating the client.

Returns

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Service syntax

svc <- rekognition(
  config = list(
    credentials = list(
 creds = list(
   access_key_id = "string",
   secret_access_key = "string",
   session_token = "string"
 ),
 profile = "string",
 anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
 access_key_id = "string",
 secret_access_key = "string",
 session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

associate_facesAssociates one or more faces with an existing UserID
compare_facesCompares a face in the source input image with each of the 100 largest faces detected in the target input image
copy_project_versionThis operation applies only to Amazon Rekognition Custom Labels
create_collectionCreates a collection in an AWS Region
create_datasetThis operation applies only to Amazon Rekognition Custom Labels
create_face_liveness_sessionThis API operation initiates a Face Liveness session
create_projectCreates a new Amazon Rekognition project
create_project_versionCreates a new version of Amazon Rekognition project (like a Custom Labels model or a custom adapter) and begins training
create_stream_processorCreates an Amazon Rekognition stream processor that you can use to detect and recognize faces or to detect labels in a streaming video
create_userCreates a new User within a collection specified by CollectionId
delete_collectionDeletes the specified collection
delete_datasetThis operation applies only to Amazon Rekognition Custom Labels
delete_facesDeletes faces from a collection
delete_projectDeletes a Amazon Rekognition project
delete_project_policyThis operation applies only to Amazon Rekognition Custom Labels
delete_project_versionDeletes a Rekognition project model or project version, like a Amazon Rekognition Custom Labels model or a custom adapter
delete_stream_processorDeletes the stream processor identified by Name
delete_userDeletes the specified UserID within the collection
describe_collectionDescribes the specified collection
describe_datasetThis operation applies only to Amazon Rekognition Custom Labels
describe_projectsGets information about your Rekognition projects
describe_project_versionsLists and describes the versions of an Amazon Rekognition project
describe_stream_processorProvides information about a stream processor created by CreateStreamProcessor
detect_custom_labelsThis operation applies only to Amazon Rekognition Custom Labels
detect_facesDetects faces within an image that is provided as input
detect_labelsDetects instances of real-world entities within an image (JPEG or PNG) provided as input
detect_moderation_labelsDetects unsafe content in a specified JPEG or PNG format image
detect_protective_equipmentDetects Personal Protective Equipment (PPE) worn by people detected in an image
detect_textDetects text in the input image and converts it into machine-readable text
disassociate_facesRemoves the association between a Face supplied in an array of FaceIds and the User
distribute_dataset_entriesThis operation applies only to Amazon Rekognition Custom Labels
get_celebrity_infoGets the name and additional information about a celebrity based on their Amazon Rekognition ID
get_celebrity_recognitionGets the celebrity recognition results for a Amazon Rekognition Video analysis started by StartCelebrityRecognition
get_content_moderationGets the inappropriate, unwanted, or offensive content analysis results for a Amazon Rekognition Video analysis started by StartContentModeration
get_face_detectionGets face detection results for a Amazon Rekognition Video analysis started by StartFaceDetection
get_face_liveness_session_resultsRetrieves the results of a specific Face Liveness session
get_face_searchGets the face search results for Amazon Rekognition Video face search started by StartFaceSearch
get_label_detectionGets the label detection results of a Amazon Rekognition Video analysis started by StartLabelDetection
get_media_analysis_jobRetrieves the results for a given media analysis job
get_person_trackingGets the path tracking results of a Amazon Rekognition Video analysis started by StartPersonTracking
get_segment_detectionGets the segment detection results of a Amazon Rekognition Video analysis started by StartSegmentDetection
get_text_detectionGets the text detection results of a Amazon Rekognition Video analysis started by StartTextDetection
index_facesDetects faces in the input image and adds them to the specified collection
list_collectionsReturns list of collection IDs in your account
list_dataset_entriesThis operation applies only to Amazon Rekognition Custom Labels
list_dataset_labelsThis operation applies only to Amazon Rekognition Custom Labels
list_facesReturns metadata for faces in the specified collection
list_media_analysis_jobsReturns a list of media analysis jobs
list_project_policiesThis operation applies only to Amazon Rekognition Custom Labels
list_stream_processorsGets a list of stream processors that you have created with CreateStreamProcessor
list_tags_for_resourceReturns a list of tags in an Amazon Rekognition collection, stream processor, or Custom Labels model
list_usersReturns metadata of the User such as UserID in the specified collection
put_project_policyThis operation applies only to Amazon Rekognition Custom Labels
recognize_celebritiesReturns an array of celebrities recognized in the input image
search_facesFor a given input face ID, searches for matching faces in the collection the face belongs to
search_faces_by_imageFor a given input image, first detects the largest face in the image, and then searches the specified collection for matching faces
search_usersSearches for UserIDs within a collection based on a FaceId or UserId
search_users_by_imageSearches for UserIDs using a supplied image
start_celebrity_recognitionStarts asynchronous recognition of celebrities in a stored video
start_content_moderationStarts asynchronous detection of inappropriate, unwanted, or offensive content in a stored video
start_face_detectionStarts asynchronous detection of faces in a stored video
start_face_searchStarts the asynchronous search for faces in a collection that match the faces of persons detected in a stored video
start_label_detectionStarts asynchronous detection of labels in a stored video
start_media_analysis_jobInitiates a new media analysis job
start_person_trackingStarts the asynchronous tracking of a person's path in a stored video
start_project_versionThis operation applies only to Amazon Rekognition Custom Labels
start_segment_detectionStarts asynchronous detection of segment detection in a stored video
start_stream_processorStarts processing a stream processor
start_text_detectionStarts asynchronous detection of text in a stored video
stop_project_versionThis operation applies only to Amazon Rekognition Custom Labels
stop_stream_processorStops a running stream processor that was created by CreateStreamProcessor
tag_resourceAdds one or more key-value tags to an Amazon Rekognition collection, stream processor, or Custom Labels model
untag_resourceRemoves one or more tags from an Amazon Rekognition collection, stream processor, or Custom Labels model
update_dataset_entriesThis operation applies only to Amazon Rekognition Custom Labels
update_stream_processorAllows you to update a stream processor

Examples

## Not run: svc <- rekognition() # This operation compares the largest face detected in the source image # with each face detected in the target image. svc$compare_faces( SimilarityThreshold = 90L, SourceImage = list( S3Object = list( Bucket = "mybucket", Name = "mysourceimage" ) ), TargetImage = list( S3Object = list( Bucket = "mybucket", Name = "mytargetimage" ) ) ) ## End(Not run)
  • Maintainer: Dyfan Jones
  • License: Apache License (>= 2.0)
  • Last published: 2025-03-17