aws-sdk-rekognition 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-rekognition.rb +1 -1
- data/lib/aws-sdk-rekognition/client.rb +66 -25
- data/lib/aws-sdk-rekognition/client_api.rb +18 -0
- data/lib/aws-sdk-rekognition/types.rb +100 -29
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b69d3f2dcfb6e15adb8d4025d2dec808bfb3aeb
|
4
|
+
data.tar.gz: d6436cc0bf622e71424a52944a64b61687e03c72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b7765b6a96526d4b10d072754be543167fe7560ce8226d5d4c0b3c92bbb5a029b1eb34e3258c1c7b6128ce870b50338f0fd1e2ba5a24247769d8b3bff216507
|
7
|
+
data.tar.gz: a5a06d8e5c90b6515d6feb9dda540e933bc5901ac9c5457469e35ce0edd4802115744458eac7dcbd2a805730194652b9baa7839a63a9091a9a6b38b6b8164372
|
data/lib/aws-sdk-rekognition.rb
CHANGED
@@ -959,6 +959,19 @@ module Aws::Rekognition
|
|
959
959
|
#
|
960
960
|
# </note>
|
961
961
|
#
|
962
|
+
# `DetectLabels` returns bounding boxes for instances of common object
|
963
|
+
# labels in an array of objects. An `Instance` object contains a object,
|
964
|
+
# for the location of the label on the image. It also includes the
|
965
|
+
# confidence by which the bounding box was detected.
|
966
|
+
#
|
967
|
+
# `DetectLabels` also returns a hierarchical taxonomy of detected
|
968
|
+
# labels. For example, a detected car might be assigned the label *car*.
|
969
|
+
# The label *car* has two parent labels: *Vehicle* (its parent) and
|
970
|
+
# *Transportation* (its grandparent). The response returns the entire
|
971
|
+
# list of ancestors for a label. Each ancestor is a unique label in the
|
972
|
+
# response. In the previous example, *Car*, *Vehicle*, and
|
973
|
+
# *Transportation* are returned as unique labels in the response.
|
974
|
+
#
|
962
975
|
# This is a stateless API operation. That is, the operation does not
|
963
976
|
# persist any data.
|
964
977
|
#
|
@@ -987,6 +1000,7 @@ module Aws::Rekognition
|
|
987
1000
|
#
|
988
1001
|
# * {Types::DetectLabelsResponse#labels #labels} => Array<Types::Label>
|
989
1002
|
# * {Types::DetectLabelsResponse#orientation_correction #orientation_correction} => String
|
1003
|
+
# * {Types::DetectLabelsResponse#label_model_version #label_model_version} => String
|
990
1004
|
#
|
991
1005
|
#
|
992
1006
|
# @example Example: To detect labels
|
@@ -1038,7 +1052,16 @@ module Aws::Rekognition
|
|
1038
1052
|
# resp.labels #=> Array
|
1039
1053
|
# resp.labels[0].name #=> String
|
1040
1054
|
# resp.labels[0].confidence #=> Float
|
1055
|
+
# resp.labels[0].instances #=> Array
|
1056
|
+
# resp.labels[0].instances[0].bounding_box.width #=> Float
|
1057
|
+
# resp.labels[0].instances[0].bounding_box.height #=> Float
|
1058
|
+
# resp.labels[0].instances[0].bounding_box.left #=> Float
|
1059
|
+
# resp.labels[0].instances[0].bounding_box.top #=> Float
|
1060
|
+
# resp.labels[0].instances[0].confidence #=> Float
|
1061
|
+
# resp.labels[0].parents #=> Array
|
1062
|
+
# resp.labels[0].parents[0].name #=> String
|
1041
1063
|
# resp.orientation_correction #=> String, one of "ROTATE_0", "ROTATE_90", "ROTATE_180", "ROTATE_270"
|
1064
|
+
# resp.label_model_version #=> String
|
1042
1065
|
#
|
1043
1066
|
# @overload detect_labels(params = {})
|
1044
1067
|
# @param [Hash] params ({})
|
@@ -1765,6 +1788,13 @@ module Aws::Rekognition
|
|
1765
1788
|
# with the token value returned from the previous call to
|
1766
1789
|
# `GetLabelDetection`.
|
1767
1790
|
#
|
1791
|
+
# <note markdown="1"> `GetLabelDetection` doesn't return a hierarchical taxonomy, or
|
1792
|
+
# bounding box information, for detected labels. `GetLabelDetection`
|
1793
|
+
# returns `null` for the `Parents` and `Instances` attributes of the
|
1794
|
+
# object which is returned in the `Labels` array.
|
1795
|
+
#
|
1796
|
+
# </note>
|
1797
|
+
#
|
1768
1798
|
# @option params [required, String] :job_id
|
1769
1799
|
# Job identifier for the label detection operation for which you want
|
1770
1800
|
# results returned. You get the job identifer from an initial call to
|
@@ -1821,6 +1851,14 @@ module Aws::Rekognition
|
|
1821
1851
|
# resp.labels[0].timestamp #=> Integer
|
1822
1852
|
# resp.labels[0].label.name #=> String
|
1823
1853
|
# resp.labels[0].label.confidence #=> Float
|
1854
|
+
# resp.labels[0].label.instances #=> Array
|
1855
|
+
# resp.labels[0].label.instances[0].bounding_box.width #=> Float
|
1856
|
+
# resp.labels[0].label.instances[0].bounding_box.height #=> Float
|
1857
|
+
# resp.labels[0].label.instances[0].bounding_box.left #=> Float
|
1858
|
+
# resp.labels[0].label.instances[0].bounding_box.top #=> Float
|
1859
|
+
# resp.labels[0].label.instances[0].confidence #=> Float
|
1860
|
+
# resp.labels[0].label.parents #=> Array
|
1861
|
+
# resp.labels[0].label.parents[0].name #=> String
|
1824
1862
|
#
|
1825
1863
|
# @overload get_label_detection(params = {})
|
1826
1864
|
# @param [Hash] params ({})
|
@@ -1829,22 +1867,22 @@ module Aws::Rekognition
|
|
1829
1867
|
req.send_request(options)
|
1830
1868
|
end
|
1831
1869
|
|
1832
|
-
# Gets the
|
1833
|
-
#
|
1870
|
+
# Gets the path tracking results of a Amazon Rekognition Video analysis
|
1871
|
+
# started by .
|
1834
1872
|
#
|
1835
|
-
# The person
|
1873
|
+
# The person path tracking operation is started by a call to
|
1836
1874
|
# `StartPersonTracking` which returns a job identifier (`JobId`). When
|
1837
|
-
# the
|
1838
|
-
#
|
1839
|
-
#
|
1875
|
+
# the operation finishes, Amazon Rekognition Video publishes a
|
1876
|
+
# completion status to the Amazon Simple Notification Service topic
|
1877
|
+
# registered in the initial call to `StartPersonTracking`.
|
1840
1878
|
#
|
1841
|
-
# To get the results of the person tracking operation, first check
|
1842
|
-
# the status value published to the Amazon SNS topic is
|
1843
|
-
# so, call and pass the job identifier (`JobId`) from
|
1844
|
-
# to `StartPersonTracking`.
|
1879
|
+
# To get the results of the person path tracking operation, first check
|
1880
|
+
# that the status value published to the Amazon SNS topic is
|
1881
|
+
# `SUCCEEDED`. If so, call and pass the job identifier (`JobId`) from
|
1882
|
+
# the initial call to `StartPersonTracking`.
|
1845
1883
|
#
|
1846
1884
|
# `GetPersonTracking` returns an array, `Persons`, of tracked persons
|
1847
|
-
# and the time(s)
|
1885
|
+
# and the time(s) their paths were tracked in the video.
|
1848
1886
|
#
|
1849
1887
|
# <note markdown="1"> `GetPersonTracking` only returns the default facial attributes
|
1850
1888
|
# (`BoundingBox`, `Confidence`, `Landmarks`, `Pose`, and `Quality`). The
|
@@ -1856,9 +1894,9 @@ module Aws::Rekognition
|
|
1856
1894
|
#
|
1857
1895
|
# </note>
|
1858
1896
|
#
|
1859
|
-
# By default, the array is sorted by the time(s) a person is
|
1860
|
-
# the video. You can sort by tracked persons by specifying
|
1861
|
-
# the `SortBy` input parameter.
|
1897
|
+
# By default, the array is sorted by the time(s) a person's path is
|
1898
|
+
# tracked in the video. You can sort by tracked persons by specifying
|
1899
|
+
# `INDEX` for the `SortBy` input parameter.
|
1862
1900
|
#
|
1863
1901
|
# Use the `MaxResults` parameter to limit the number of items returned.
|
1864
1902
|
# If there are more results than specified in `MaxResults`, the value of
|
@@ -3158,7 +3196,9 @@ module Aws::Rekognition
|
|
3158
3196
|
# certain Amazon Rekognition is that the moderated content is correctly
|
3159
3197
|
# identified. 0 is the lowest confidence. 100 is the highest confidence.
|
3160
3198
|
# Amazon Rekognition doesn't return any moderated content labels with a
|
3161
|
-
# confidence level lower than this specified value.
|
3199
|
+
# confidence level lower than this specified value. If you don't
|
3200
|
+
# specify `MinConfidence`, `GetContentModeration` returns labels with
|
3201
|
+
# confidence values greater than or equal to 50 percent.
|
3162
3202
|
#
|
3163
3203
|
# @option params [String] :client_request_token
|
3164
3204
|
# Idempotent token used to identify the start request. If you use the
|
@@ -3216,7 +3256,7 @@ module Aws::Rekognition
|
|
3216
3256
|
# (`JobId`) that you use to get the results of the operation. When face
|
3217
3257
|
# detection is finished, Amazon Rekognition Video publishes a completion
|
3218
3258
|
# status to the Amazon Simple Notification Service topic that you
|
3219
|
-
# specify in `NotificationChannel`. To get the results of the
|
3259
|
+
# specify in `NotificationChannel`. To get the results of the face
|
3220
3260
|
# detection operation, first check that the status value published to
|
3221
3261
|
# the Amazon SNS topic is `SUCCEEDED`. If so, call and pass the job
|
3222
3262
|
# identifier (`JobId`) from the initial call to `StartFaceDetection`.
|
@@ -3444,15 +3484,16 @@ module Aws::Rekognition
|
|
3444
3484
|
req.send_request(options)
|
3445
3485
|
end
|
3446
3486
|
|
3447
|
-
# Starts the asynchronous tracking of
|
3487
|
+
# Starts the asynchronous tracking of a person's path in a stored
|
3488
|
+
# video.
|
3448
3489
|
#
|
3449
|
-
# Amazon Rekognition Video can track
|
3450
|
-
# Amazon S3 bucket. Use Video to specify the bucket name
|
3451
|
-
# filename of the video. `StartPersonTracking` returns a job
|
3452
|
-
# (`JobId`) which you use to get the results of the
|
3453
|
-
# label detection is finished, Amazon Rekognition
|
3454
|
-
# status to the Amazon Simple Notification
|
3455
|
-
# specify in `NotificationChannel`.
|
3490
|
+
# Amazon Rekognition Video can track the path of people in a video
|
3491
|
+
# stored in an Amazon S3 bucket. Use Video to specify the bucket name
|
3492
|
+
# and the filename of the video. `StartPersonTracking` returns a job
|
3493
|
+
# identifier (`JobId`) which you use to get the results of the
|
3494
|
+
# operation. When label detection is finished, Amazon Rekognition
|
3495
|
+
# publishes a completion status to the Amazon Simple Notification
|
3496
|
+
# Service topic that you specify in `NotificationChannel`.
|
3456
3497
|
#
|
3457
3498
|
# To get the results of the person detection operation, first check that
|
3458
3499
|
# the status value published to the Amazon SNS topic is `SUCCEEDED`. If
|
@@ -3566,7 +3607,7 @@ module Aws::Rekognition
|
|
3566
3607
|
params: params,
|
3567
3608
|
config: config)
|
3568
3609
|
context[:gem_name] = 'aws-sdk-rekognition'
|
3569
|
-
context[:gem_version] = '1.
|
3610
|
+
context[:gem_version] = '1.14.0'
|
3570
3611
|
Seahorse::Client::Request.new(handlers, context)
|
3571
3612
|
end
|
3572
3613
|
|
@@ -110,6 +110,8 @@ module Aws::Rekognition
|
|
110
110
|
ImageTooLargeException = Shapes::StructureShape.new(name: 'ImageTooLargeException')
|
111
111
|
IndexFacesRequest = Shapes::StructureShape.new(name: 'IndexFacesRequest')
|
112
112
|
IndexFacesResponse = Shapes::StructureShape.new(name: 'IndexFacesResponse')
|
113
|
+
Instance = Shapes::StructureShape.new(name: 'Instance')
|
114
|
+
Instances = Shapes::ListShape.new(name: 'Instances')
|
113
115
|
InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
|
114
116
|
InvalidImageFormatException = Shapes::StructureShape.new(name: 'InvalidImageFormatException')
|
115
117
|
InvalidPaginationTokenException = Shapes::StructureShape.new(name: 'InvalidPaginationTokenException')
|
@@ -147,6 +149,8 @@ module Aws::Rekognition
|
|
147
149
|
OrientationCorrection = Shapes::StringShape.new(name: 'OrientationCorrection')
|
148
150
|
PageSize = Shapes::IntegerShape.new(name: 'PageSize')
|
149
151
|
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
152
|
+
Parent = Shapes::StructureShape.new(name: 'Parent')
|
153
|
+
Parents = Shapes::ListShape.new(name: 'Parents')
|
150
154
|
Percent = Shapes::FloatShape.new(name: 'Percent')
|
151
155
|
PersonDetail = Shapes::StructureShape.new(name: 'PersonDetail')
|
152
156
|
PersonDetection = Shapes::StructureShape.new(name: 'PersonDetection')
|
@@ -377,6 +381,7 @@ module Aws::Rekognition
|
|
377
381
|
|
378
382
|
DetectLabelsResponse.add_member(:labels, Shapes::ShapeRef.new(shape: Labels, location_name: "Labels"))
|
379
383
|
DetectLabelsResponse.add_member(:orientation_correction, Shapes::ShapeRef.new(shape: OrientationCorrection, location_name: "OrientationCorrection"))
|
384
|
+
DetectLabelsResponse.add_member(:label_model_version, Shapes::ShapeRef.new(shape: String, location_name: "LabelModelVersion"))
|
380
385
|
DetectLabelsResponse.struct_class = Types::DetectLabelsResponse
|
381
386
|
|
382
387
|
DetectModerationLabelsRequest.add_member(:image, Shapes::ShapeRef.new(shape: Image, required: true, location_name: "Image"))
|
@@ -574,6 +579,12 @@ module Aws::Rekognition
|
|
574
579
|
IndexFacesResponse.add_member(:unindexed_faces, Shapes::ShapeRef.new(shape: UnindexedFaces, location_name: "UnindexedFaces"))
|
575
580
|
IndexFacesResponse.struct_class = Types::IndexFacesResponse
|
576
581
|
|
582
|
+
Instance.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
|
583
|
+
Instance.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
584
|
+
Instance.struct_class = Types::Instance
|
585
|
+
|
586
|
+
Instances.member = Shapes::ShapeRef.new(shape: Instance)
|
587
|
+
|
577
588
|
KinesisDataStream.add_member(:arn, Shapes::ShapeRef.new(shape: KinesisDataArn, location_name: "Arn"))
|
578
589
|
KinesisDataStream.struct_class = Types::KinesisDataStream
|
579
590
|
|
@@ -582,6 +593,8 @@ module Aws::Rekognition
|
|
582
593
|
|
583
594
|
Label.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
584
595
|
Label.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
596
|
+
Label.add_member(:instances, Shapes::ShapeRef.new(shape: Instances, location_name: "Instances"))
|
597
|
+
Label.add_member(:parents, Shapes::ShapeRef.new(shape: Parents, location_name: "Parents"))
|
585
598
|
Label.struct_class = Types::Label
|
586
599
|
|
587
600
|
LabelDetection.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
|
@@ -645,6 +658,11 @@ module Aws::Rekognition
|
|
645
658
|
NotificationChannel.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "RoleArn"))
|
646
659
|
NotificationChannel.struct_class = Types::NotificationChannel
|
647
660
|
|
661
|
+
Parent.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
662
|
+
Parent.struct_class = Types::Parent
|
663
|
+
|
664
|
+
Parents.member = Shapes::ShapeRef.new(shape: Parent)
|
665
|
+
|
648
666
|
PersonDetail.add_member(:index, Shapes::ShapeRef.new(shape: PersonIndex, location_name: "Index"))
|
649
667
|
PersonDetail.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
|
650
668
|
PersonDetail.add_member(:face, Shapes::ShapeRef.new(shape: FaceDetail, location_name: "Face"))
|
@@ -46,10 +46,10 @@ module Aws::Rekognition
|
|
46
46
|
include Aws::Structure
|
47
47
|
end
|
48
48
|
|
49
|
-
# Identifies the bounding box around the face or text. The
|
50
|
-
# (x-coordinate) and `top` (y-coordinate) are coordinates
|
51
|
-
# the top and left sides of the bounding box. Note that the
|
52
|
-
# corner of the image is the origin (0,0).
|
49
|
+
# Identifies the bounding box around the label, face, or text. The
|
50
|
+
# `left` (x-coordinate) and `top` (y-coordinate) are coordinates
|
51
|
+
# representing the top and left sides of the bounding box. Note that the
|
52
|
+
# upper-left corner of the image is the origin (0,0).
|
53
53
|
#
|
54
54
|
# The `top` and `left` values returned are ratios of the overall image
|
55
55
|
# size. For example, if the input image is 700x200 pixels, and the
|
@@ -809,22 +809,31 @@ module Aws::Rekognition
|
|
809
809
|
# @return [Array<Types::Label>]
|
810
810
|
#
|
811
811
|
# @!attribute [rw] orientation_correction
|
812
|
-
# The
|
813
|
-
# your application displays the image, you can use this value to
|
814
|
-
# correct the orientation. If Amazon Rekognition detects that the
|
815
|
-
# input image was rotated (for example, by 90 degrees), it first
|
816
|
-
# corrects the orientation before detecting the labels.
|
812
|
+
# The value of `OrientationCorrection` is always null.
|
817
813
|
#
|
818
|
-
#
|
819
|
-
#
|
820
|
-
#
|
814
|
+
# If the input image is in .jpeg format, it might contain exchangeable
|
815
|
+
# image (Exif) metadata that includes the image's orientation. Amazon
|
816
|
+
# Rekognition uses this orientation information to perform image
|
817
|
+
# correction - the bounding box coordinates are translated to
|
818
|
+
# represent object locations after the orientation information in the
|
819
|
+
# Exif metadata is used to correct the image orientation. Images in
|
820
|
+
# .png format don't contain Exif metadata.
|
821
821
|
#
|
822
|
-
#
|
822
|
+
# Amazon Rekognition doesn’t perform image correction for images in
|
823
|
+
# .png format and .jpeg images without orientation information in the
|
824
|
+
# image Exif metadata. The bounding box coordinates are not translated
|
825
|
+
# and represent the object locations before the image is rotated.
|
826
|
+
# @return [String]
|
827
|
+
#
|
828
|
+
# @!attribute [rw] label_model_version
|
829
|
+
# Version number of the label detection model that was used to detect
|
830
|
+
# labels.
|
823
831
|
# @return [String]
|
824
832
|
#
|
825
833
|
class DetectLabelsResponse < Struct.new(
|
826
834
|
:labels,
|
827
|
-
:orientation_correction
|
835
|
+
:orientation_correction,
|
836
|
+
:label_model_version)
|
828
837
|
include Aws::Structure
|
829
838
|
end
|
830
839
|
|
@@ -1211,7 +1220,7 @@ module Aws::Rekognition
|
|
1211
1220
|
include Aws::Structure
|
1212
1221
|
end
|
1213
1222
|
|
1214
|
-
# Information about where text detected by is located on an image.
|
1223
|
+
# Information about where the text detected by is located on an image.
|
1215
1224
|
#
|
1216
1225
|
# @!attribute [rw] bounding_box
|
1217
1226
|
# An axis-aligned coarse representation of the detected text's
|
@@ -1720,9 +1729,9 @@ module Aws::Rekognition
|
|
1720
1729
|
# @return [String]
|
1721
1730
|
#
|
1722
1731
|
# @!attribute [rw] persons
|
1723
|
-
# An array of the persons detected in the video and the
|
1724
|
-
# tracked throughout the video. An array element will exist
|
1725
|
-
# time
|
1732
|
+
# An array of the persons detected in the video and the time(s) their
|
1733
|
+
# path was tracked throughout the video. An array element will exist
|
1734
|
+
# for each time a person's path is tracked.
|
1726
1735
|
# @return [Array<Types::PersonDetection>]
|
1727
1736
|
#
|
1728
1737
|
class GetPersonTrackingResponse < Struct.new(
|
@@ -1947,6 +1956,23 @@ module Aws::Rekognition
|
|
1947
1956
|
include Aws::Structure
|
1948
1957
|
end
|
1949
1958
|
|
1959
|
+
# An instance of a label detected by .
|
1960
|
+
#
|
1961
|
+
# @!attribute [rw] bounding_box
|
1962
|
+
# The position of the label instance on the image.
|
1963
|
+
# @return [Types::BoundingBox]
|
1964
|
+
#
|
1965
|
+
# @!attribute [rw] confidence
|
1966
|
+
# The confidence that Amazon Rekognition Image has in the accuracy of
|
1967
|
+
# the bounding box.
|
1968
|
+
# @return [Float]
|
1969
|
+
#
|
1970
|
+
class Instance < Struct.new(
|
1971
|
+
:bounding_box,
|
1972
|
+
:confidence)
|
1973
|
+
include Aws::Structure
|
1974
|
+
end
|
1975
|
+
|
1950
1976
|
# The Kinesis data stream Amazon Rekognition to which the analysis
|
1951
1977
|
# results of a Amazon Rekognition stream processor are streamed. For
|
1952
1978
|
# more information, see CreateStreamProcessor in the Amazon Rekognition
|
@@ -1989,20 +2015,52 @@ module Aws::Rekognition
|
|
1989
2015
|
include Aws::Structure
|
1990
2016
|
end
|
1991
2017
|
|
1992
|
-
# Structure containing details about the detected label, including
|
1993
|
-
# and level of confidence.
|
2018
|
+
# Structure containing details about the detected label, including the
|
2019
|
+
# name, and level of confidence.
|
2020
|
+
#
|
2021
|
+
# The Amazon Rekognition Image operation operation returns a
|
2022
|
+
# hierarchical taxonomy (`Parents`) for detected labels and also
|
2023
|
+
# bounding box information (`Instances`) for detected labels. Amazon
|
2024
|
+
# Rekognition Video doesn't return this information and returns `null`
|
2025
|
+
# for the `Parents` and `Instances` attributes.
|
1994
2026
|
#
|
1995
2027
|
# @!attribute [rw] name
|
1996
|
-
# The name (label) of the object.
|
2028
|
+
# The name (label) of the object or scene.
|
1997
2029
|
# @return [String]
|
1998
2030
|
#
|
1999
2031
|
# @!attribute [rw] confidence
|
2000
2032
|
# Level of confidence.
|
2001
2033
|
# @return [Float]
|
2002
2034
|
#
|
2035
|
+
# @!attribute [rw] instances
|
2036
|
+
# If `Label` represents an object, `Instances` contains the bounding
|
2037
|
+
# boxes for each instance of the detected object. Bounding boxes are
|
2038
|
+
# returned for common object labels such as people, cars, furniture,
|
2039
|
+
# apparel or pets.
|
2040
|
+
#
|
2041
|
+
# <note markdown="1"> Amazon Rekognition Video does not support bounding box information
|
2042
|
+
# for detected labels. The value of `Instances` is returned as `null`
|
2043
|
+
# by `GetLabelDetection`.
|
2044
|
+
#
|
2045
|
+
# </note>
|
2046
|
+
# @return [Array<Types::Instance>]
|
2047
|
+
#
|
2048
|
+
# @!attribute [rw] parents
|
2049
|
+
# The parent labels for a label. The response includes all ancestor
|
2050
|
+
# labels.
|
2051
|
+
#
|
2052
|
+
# <note markdown="1"> Amazon Rekognition Video does not support a hierarchical taxonomy of
|
2053
|
+
# detected labels. The value of `Parents` is returned as `null` by
|
2054
|
+
# `GetLabelDetection`.
|
2055
|
+
#
|
2056
|
+
# </note>
|
2057
|
+
# @return [Array<Types::Parent>]
|
2058
|
+
#
|
2003
2059
|
class Label < Struct.new(
|
2004
2060
|
:name,
|
2005
|
-
:confidence
|
2061
|
+
:confidence,
|
2062
|
+
:instances,
|
2063
|
+
:parents)
|
2006
2064
|
include Aws::Structure
|
2007
2065
|
end
|
2008
2066
|
|
@@ -2285,6 +2343,17 @@ module Aws::Rekognition
|
|
2285
2343
|
include Aws::Structure
|
2286
2344
|
end
|
2287
2345
|
|
2346
|
+
# A parent label for a label. A label can have 0, 1, or more parents.
|
2347
|
+
#
|
2348
|
+
# @!attribute [rw] name
|
2349
|
+
# The name of the parent label.
|
2350
|
+
# @return [String]
|
2351
|
+
#
|
2352
|
+
class Parent < Struct.new(
|
2353
|
+
:name)
|
2354
|
+
include Aws::Structure
|
2355
|
+
end
|
2356
|
+
|
2288
2357
|
# Details about a person detected in a video analysis request.
|
2289
2358
|
#
|
2290
2359
|
# @!attribute [rw] index
|
@@ -2308,21 +2377,21 @@ module Aws::Rekognition
|
|
2308
2377
|
include Aws::Structure
|
2309
2378
|
end
|
2310
2379
|
|
2311
|
-
# Details and tracking information for a single time a person
|
2312
|
-
# in a video. Amazon Rekognition operations that track
|
2313
|
-
# array of `PersonDetection` objects with
|
2314
|
-
# person is tracked in a video.
|
2380
|
+
# Details and path tracking information for a single time a person's
|
2381
|
+
# path is tracked in a video. Amazon Rekognition operations that track
|
2382
|
+
# people's paths return an array of `PersonDetection` objects with
|
2383
|
+
# elements for each time a person's path is tracked in a video.
|
2315
2384
|
#
|
2316
2385
|
# For more information, see API\_GetPersonTracking in the Amazon
|
2317
2386
|
# Rekognition Developer Guide.
|
2318
2387
|
#
|
2319
2388
|
# @!attribute [rw] timestamp
|
2320
2389
|
# The time, in milliseconds from the start of the video, that the
|
2321
|
-
# person was tracked.
|
2390
|
+
# person's path was tracked.
|
2322
2391
|
# @return [Integer]
|
2323
2392
|
#
|
2324
2393
|
# @!attribute [rw] person
|
2325
|
-
# Details about a person tracked in a video.
|
2394
|
+
# Details about a person whose path was tracked in a video.
|
2326
2395
|
# @return [Types::PersonDetail]
|
2327
2396
|
#
|
2328
2397
|
class PersonDetection < Struct.new(
|
@@ -2742,7 +2811,9 @@ module Aws::Rekognition
|
|
2742
2811
|
# how certain Amazon Rekognition is that the moderated content is
|
2743
2812
|
# correctly identified. 0 is the lowest confidence. 100 is the highest
|
2744
2813
|
# confidence. Amazon Rekognition doesn't return any moderated content
|
2745
|
-
# labels with a confidence level lower than this specified value.
|
2814
|
+
# labels with a confidence level lower than this specified value. If
|
2815
|
+
# you don't specify `MinConfidence`, `GetContentModeration` returns
|
2816
|
+
# labels with confidence values greater than or equal to 50 percent.
|
2746
2817
|
# @return [Float]
|
2747
2818
|
#
|
2748
2819
|
# @!attribute [rw] client_request_token
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-rekognition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|