Class: AWSCDK::Rekognition::CfnStreamProcessor::ConnectedHomeSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rekognition/cfn_stream_processor.rb

Overview

Connected home settings to use on a streaming video.

Defining the settings is required in the request parameter for CreateStreamProcessor . Including this setting in the CreateStreamProcessor request lets you use the stream processor for connected home features. You can then select what you want the stream processor to detect, such as people or pets.

When the stream processor has started, one notification is sent for each object class specified. For example, if packages and pets are selected, one SNS notification is published the first time a package is detected and one SNS notification is published the first time a pet is detected. An end-of-session summary is also published. For more information, see the ConnectedHome section of StreamProcessorSettings .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(labels:, min_confidence: nil) ⇒ ConnectedHomeSettingsProperty

Returns a new instance of ConnectedHomeSettingsProperty.

Parameters:

  • labels (Array<String>)

    Specifies what you want to detect in the video, such as people, packages, or pets.

  • min_confidence (Numeric, nil) (defaults to: nil)

    The minimum confidence required to label an object in the video.



782
783
784
785
786
787
# File 'rekognition/cfn_stream_processor.rb', line 782

def initialize(labels:, min_confidence: nil)
  @labels = labels
  Jsii::Type.check_type(@labels, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "labels")
  @min_confidence = min_confidence
  Jsii::Type.check_type(@min_confidence, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minConfidence") unless @min_confidence.nil?
end

Instance Attribute Details

#labelsArray<String> (readonly)

Specifies what you want to detect in the video, such as people, packages, or pets.

The current valid labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".



795
796
797
# File 'rekognition/cfn_stream_processor.rb', line 795

def labels
  @labels
end

#min_confidenceNumeric? (readonly)

The minimum confidence required to label an object in the video.



800
801
802
# File 'rekognition/cfn_stream_processor.rb', line 800

def min_confidence
  @min_confidence
end

Class Method Details

.jsii_propertiesObject



802
803
804
805
806
807
# File 'rekognition/cfn_stream_processor.rb', line 802

def self.jsii_properties
  {
    :labels => "labels",
    :min_confidence => "minConfidence",
  }
end

Instance Method Details

#to_jsiiObject



809
810
811
812
813
814
815
816
# File 'rekognition/cfn_stream_processor.rb', line 809

def to_jsii
  result = {}
  result.merge!({
    "labels" => @labels,
    "minConfidence" => @min_confidence,
  })
  result.compact
end