Skip to content

Start Stream Processor

rekognition_start_stream_processor R Documentation

Starts processing a stream processor

Description

Starts processing a stream processor. You create a stream processor by calling create_stream_processor. To tell start_stream_processor which stream processor to start, use the value of the Name field specified in the call to create_stream_processor.

If you are using a label detection stream processor to detect labels, you need to provide a ⁠Start selector⁠ and a ⁠Stop selector⁠ to determine the length of the stream processing time.

Usage

rekognition_start_stream_processor(Name, StartSelector, StopSelector)

Arguments

Name

[required] The name of the stream processor to start processing.

StartSelector

Specifies the starting point in the Kinesis stream to start processing. You can use the producer timestamp or the fragment number. If you use the producer timestamp, you must put the time in milliseconds. For more information about fragment numbers, see Fragment.

This is a required parameter for label detection stream processors and should not be used to start a face search stream processor.

StopSelector

Specifies when to stop processing the stream. You can specify a maximum amount of time to process the video.

This is a required parameter for label detection stream processors and should not be used to start a face search stream processor.

Value

A list with the following syntax:

list(
  SessionId = "string"
)

Request syntax

svc$start_stream_processor(
  Name = "string",
  StartSelector = list(
    KVSStreamStartSelector = list(
      ProducerTimestamp = 123,
      FragmentNumber = "string"
    )
  ),
  StopSelector = list(
    MaxDurationInSeconds = 123
  )
)