@Stability(value=Stable)
public static interface CfnStreamProcessor.ConnectedHomeSettingsProperty
extends software.amazon.jsii.JsiiSerializable
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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rekognition.*;
ConnectedHomeSettingsProperty connectedHomeSettingsProperty = ConnectedHomeSettingsProperty.builder()
.labels(List.of("labels"))
// the properties below are optional
.minConfidence(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnStreamProcessor.ConnectedHomeSettingsProperty.Builder
A builder for
CfnStreamProcessor.ConnectedHomeSettingsProperty |
static class |
CfnStreamProcessor.ConnectedHomeSettingsProperty.Jsii$Proxy
An implementation for
CfnStreamProcessor.ConnectedHomeSettingsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnStreamProcessor.ConnectedHomeSettingsProperty.Builder |
builder() |
List<String> |
getLabels()
Specifies what you want to detect in the video, such as people, packages, or pets.
|
default Number |
getMinConfidence()
The minimum confidence required to label an object in the video.
|
@Stability(value=Stable) @NotNull List<String> getLabels()
The current valid labels you can include in this list are: "PERSON", "PET", "PACKAGE", and "ALL".
@Stability(value=Stable) @Nullable default Number getMinConfidence()
@Stability(value=Stable) static CfnStreamProcessor.ConnectedHomeSettingsProperty.Builder builder()
Copyright © 2022. All rights reserved.