AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates an Amazon Rekognition stream processor that you can use to detect and recognize faces or to detect labels in a streaming video.
Amazon Rekognition Video is a consumer of live video from Amazon Kinesis Video Streams. There are two different settings for stream processors in Amazon Rekognition: detecting faces and detecting labels.
If you are creating a stream processor for detecting faces, you provide as input a
Kinesis video stream (Input
) and a Kinesis data stream (Output
) stream
for receiving the output. You must use the FaceSearch
option in Settings
,
specifying the collection that contains the faces you want to recognize. After you
have finished analyzing a streaming video, use StopStreamProcessor to stop
processing.
If you are creating a stream processor to detect labels, you provide as input a Kinesis
video stream (Input
), Amazon S3 bucket information (Output
), and an
Amazon SNS topic ARN (NotificationChannel
). You can also provide a KMS key
ID to encrypt the data sent to your Amazon S3 bucket. You specify what you want to
detect by using the ConnectedHome
option in settings, and selecting one of
the following: PERSON
, PET
, PACKAGE
, ALL
You can also
specify where in the frame you want Amazon Rekognition to monitor with RegionsOfInterest
.
When you run the StartStreamProcessor operation on a label detection stream
processor, you input start and stop information to determine the length of the processing
time.
Use Name
to assign an identifier for the stream processor. You use Name
to manage the stream processor. For example, you can start processing the source video
by calling StartStreamProcessor with the Name
field.
This operation requires permissions to perform the rekognition:CreateStreamProcessor
action. If you want to tag your stream processor, you also require permission to perform
the rekognition:TagResource
operation.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateStreamProcessorAsync.
Namespace: Amazon.Rekognition
Assembly: AWSSDK.Rekognition.dll
Version: 3.x.y.z
public virtual CreateStreamProcessorResponse CreateStreamProcessor( CreateStreamProcessorRequest request )
Container for the necessary parameters to execute the CreateStreamProcessor service method.
Exception | Condition |
---|---|
AccessDeniedException | You are not authorized to perform the action. |
InternalServerErrorException | Amazon Rekognition experienced a service issue. Try your call again. |
InvalidParameterException | Input parameter violated a constraint. Validate your parameter before calling the API operation again. |
LimitExceededException | An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs concurrently, subsequent calls to start operations (ex: StartLabelDetection) will raise a LimitExceededException exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Rekognition service limit. |
ProvisionedThroughputExceededException | The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition. |
ResourceInUseException | The specified resource is already being used. |
ServiceQuotaExceededException | The size of the collection exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide. |
ThrottlingException | Amazon Rekognition is temporarily unable to process the request. Try your call again. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5