Skip to main content

EOIAddStreamInputs

Encapsulates inputs for the call to the EyesOnIt.AddStream method.

Namespace: EyesOnItSDK.Data.Inputs

Properties

NameTypeDescription
StreamUrlstringthe RTSP URL for the stream including credentials required to connect to the stream
Namestringa friendly name for the stream used in the EyesOnIt Web UI and in alerts
RegionsEOIRegion[]an array of rectangle detection regions
ObjectSizeintthe estimated object size in pixels
ObjectDescriptionsEOIObjectDescription[]an array of object descriptions describing objects to detect
AlertingEOIAlertingthe alerting settings for this stream
MotionDetectionEOIMotionDetectionthe motion detection settings for this stream
BoundingBoxEOIBoundingBoxthe common object detection settings for this stream
FrameRateint?the frame rate for this stream.

Constructor

Supports simple construction of an EOIAddStreamInputs object.

Signature 1

Creates an EOIAddStreamInputs object from provided parameters.

public EOIAddStreamInputs(
string streamUrl,
string name,
EOIRegion[] regions,
int objectSize,
EOIObjectDescription[] objectDescriptions,
EOIAlerting alerting,
EOIMotionDetection motionDetection = null,
EOIBoundingBox boundingBox = null,
int? frameRate = 5)

Parameters

NameTypeDescription
streamUrlstringthe RTSP URL for the stream including credentials required to connect to the stream
namestringa friendly name for the stream used in the EyesOnIt Web UI and in alerts
regionsEOIRegion[]an array of rectangle detection regions
objectSizeintthe estimated object size in pixels
objectDescriptionsEOIObjectDescription[]an array of object descriptions describing objects to detect
alertingEOIAlertingthe alerting settings for this stream
motionDetectionEOIMotionDetectionthe motion detection settings for this stream
boundingBoxEOIBoundingBoxthe common object detection settings for this stream
frameRateint?the frame rate for this stream. Set

Signature 2

Creates an EOIAddStreamInputs object with default values

public EOIAddStreamInputs()

Parameters

This method has no parameters

Methods

ToJson

Provides a JSON representation of the EOIAddStreamInputs object

Signature

public string ToJson()

Parameters

This method does not have parameters

Return

Type: string - the JSON string representation of the EOIAddStreamInputs object

FromJson

Creates a EOIAddStreamInputs object from a JSON string

Signature

public static EOIAddStreamInputs FromJson(string jsonString)

Parameters

NameTypeDescription
jsonStringstringthe JSON string representing a EOIAddStreamInputs object

Return

Type: EOIAddStreamInputs - the EOIAddStreamInputs object created from the JSON string