Learn R Programming

paws (version 0.4.0)

rekognition: Amazon Rekognition

Description

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

  • index_faces

  • list_collections

  • list_faces

  • list_users

  • recognize_celebrities

  • search_faces

  • search_faces_by_image

  • search_users

  • search_users_by_image

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

Usage

rekognition(
  config = list(),
  credentials = list(),
  endpoint = NULL,
  region = NULL
)

Value

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.

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.

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_versionCopies a version of an Amazon Rekognition Custom Labels model from a source project to a destination project
create_collectionCreates a collection in an AWS Region
create_datasetCreates a new Amazon Rekognition Custom Labels dataset
create_face_liveness_sessionThis API operation initiates a Face Liveness session
create_projectCreates a new Amazon Rekognition Custom Labels project
create_project_versionCreates a new version of a model 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_datasetDeletes an existing Amazon Rekognition Custom Labels dataset
delete_facesDeletes faces from a collection
delete_projectDeletes an Amazon Rekognition Custom Labels project
delete_project_policyDeletes an existing project policy
delete_project_versionDeletes an Amazon Rekognition Custom Labels model
delete_stream_processorDeletes the stream processor identified by Name
delete_userDeletes the specified UserID within the collection
describe_collectionDescribes the specified collection
describe_datasetDescribes an Amazon Rekognition Custom Labels dataset
describe_projectsGets information about your Amazon Rekognition Custom Labels projects
describe_project_versionsLists and describes the versions of a model in an Amazon Rekognition Custom Labels project
describe_stream_processorProvides information about a stream processor created by CreateStreamProcessor
detect_custom_labelsDetects custom labels in a supplied image by using an Amazon Rekognition Custom Labels model
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_entriesDistributes the entries (images) in a training dataset across the training dataset and the test dataset for a project
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_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_entriesLists the entries (images) within a dataset
list_dataset_labelsLists the labels in a dataset
list_facesReturns metadata for faces in the specified collection
list_project_policiesGets a list of the project policies attached to a project
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_policyAttaches a project policy to a Amazon Rekognition Custom Labels project in a trusting AWS account
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_person_trackingStarts the asynchronous tracking of a person's path in a stored video
start_project_versionStarts the running of the version of a model
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_versionStops a running model
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_entriesAdds or updates one or more entries (images) in a dataset
update_stream_processorAllows you to update a stream processor

Examples

Run this code
if (FALSE) {
svc <- rekognition()
# This operation associates one or more faces with an existing UserID.
svc$associate_faces(
  ClientRequestToken = "550e8400-e29b-41d4-a716-446655440002",
  CollectionId = "MyCollection",
  FaceIds = list(
    "f5817d37-94f6-4335-bfee-6cf79a3d806e",
    "851cb847-dccc-4fea-9309-9f4805967855",
    "35ebbb41-7f67-4263-908d-dd0ecba05ab9"
  ),
  UserId = "DemoUser",
  UserMatchThreshold = 70L
)
}

Run the code above in your browser using DataLab