[ aws . rekognition ]
Allows you to update a stream processor. You can change some settings and regions of interest and delete certain parameters.
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
update-stream-processor
--name <value>
[--settings-for-update <value>]
[--regions-of-interest-for-update <value>]
[--data-sharing-preference-for-update <value>]
[--parameters-to-delete <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
--name
(string)
Name of the stream processor that you want to update.
--settings-for-update
(structure)
The stream processor settings that you want to update. Label detection settings can be updated to detect different labels with a different minimum confidence.
ConnectedHomeForUpdate -> (structure)
The label detection settings you want to use for your stream processor.
Labels -> (list)
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”.
(string)
MinConfidence -> (float)
The minimum confidence required to label an object in the video.
Shorthand Syntax:
ConnectedHomeForUpdate={Labels=[string,string],MinConfidence=float}
JSON Syntax:
{
"ConnectedHomeForUpdate": {
"Labels": ["string", ...],
"MinConfidence": float
}
}
--regions-of-interest-for-update
(list)
Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an optional parameter for label detection stream processors.
(structure)
Specifies a location within the frame that Rekognition checks for objects of interest such as text, labels, or faces. It uses a
BoundingBox
or object orPolygon
to set a region of the screen.A word, face, or label is included in the region if it is more than half in that region. If there is more than one region, the word, face, or label is compared with all regions of the screen. Any object of interest that is more than half in a region is kept in the results.
BoundingBox -> (structure)
The box representing a region of interest on screen.
Width -> (float)
Width of the bounding box as a ratio of the overall image width.
Height -> (float)
Height of the bounding box as a ratio of the overall image height.
Left -> (float)
Left coordinate of the bounding box as a ratio of overall image width.
Top -> (float)
Top coordinate of the bounding box as a ratio of overall image height.
Polygon -> (list)
Specifies a shape made up of up to 10
Point
objects to define a region of interest.(structure)
The X and Y coordinates of a point on an image or video frame. The X and Y values are ratios of the overall image size or video resolution. For example, if an input image is 700x200 and the values are X=0.5 and Y=0.25, then the point is at the (350,50) pixel coordinate on the image.
An array of
Point
objects makes up aPolygon
. APolygon
is returned by DetectText and by DetectCustomLabelsPolygon
represents a fine-grained polygon around a detected item. For more information, see Geometry in the Amazon Rekognition Developer Guide.X -> (float)
The value of the X coordinate for a point on a
Polygon
.Y -> (float)
The value of the Y coordinate for a point on a
Polygon
.
Shorthand Syntax:
BoundingBox={Width=float,Height=float,Left=float,Top=float},Polygon=[{X=float,Y=float},{X=float,Y=float}] ...
JSON Syntax:
[
{
"BoundingBox": {
"Width": float,
"Height": float,
"Left": float,
"Top": float
},
"Polygon": [
{
"X": float,
"Y": float
}
...
]
}
...
]
--data-sharing-preference-for-update
(structure)
Shows whether you are sharing data with Rekognition to improve model performance. You can choose this option at the account level or on a per-stream basis. Note that if you opt out at the account level this setting is ignored on individual streams.
OptIn -> (boolean)
If this option is set to true, you choose to share data with Rekognition to improve model performance.
Shorthand Syntax:
OptIn=boolean
JSON Syntax:
{
"OptIn": true|false
}
--parameters-to-delete
(list)
A list of parameters you want to delete from the stream processor.
(string)
Syntax:
"string" "string" ...
Where valid values are:
ConnectedHomeMinConfidence
RegionsOfInterest
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command.
See ‘aws help’ for descriptions of global parameters.
None