Skip to content

aws.rekognition.get_person_tracking

Example SQL Queries

SELECT * FROM
aws.rekognition.get_person_tracking
WHERE
"job_id" = 'VALUE';

Description

Gets the path tracking results of a Amazon Rekognition Video analysis started by StartPersonTracking.

The person path tracking operation is started by a call to StartPersonTracking which returns a job identifier (JobId). When the operation finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartPersonTracking.

To get the results of the person path tracking operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetPersonTracking and pass the job identifier (JobId) from the initial call to StartPersonTracking.

GetPersonTracking returns an array, Persons, of tracked persons and the time(s) their paths were tracked in the video.

GetPersonTracking only returns the default facial attributes (BoundingBox, Confidence, Landmarks, Pose, and Quality). The other facial attributes listed in the Face object of the following response syntax are not returned.

For more information, see FaceDetail in the Amazon Rekognition Developer Guide.

By default, the array is sorted by the time(s) a person's path is tracked in the video. You can sort by tracked persons by specifying INDEX for the SortBy input parameter.

Use the MaxResults parameter to limit the number of items returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetPersonTracking and populate the NextToken request parameter with the token value returned from the previous call to GetPersonTracking.

Table Definition

Column NameColumn Data Type
job_id Required Input Column

Job identifier for the person tracking operation for which you want to obtain results. The job identifer is returned by an initial call to StartPersonTracking.

VARCHAR
max_results Input Column

Maximum number of results to return per paginated call. The largest value you can specify is 1000. If you specify a value greater than 1000, a maximum of 1000 results is returned. The default value is 1000.

BIGINT
next_token Input Column

If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of persons.

VARCHAR
sort_by Input Column

Sort to use for elements in the Persons array. Use TIMESTAMP to sort array elements by the time persons are detected. Use INDEX to sort by the tracked persons. If you sort by INDEX, the array elements for each person are sorted by detection confidence. The default sort is by TIMESTAMP.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
job_status

The current status of the person tracking job.

VARCHAR
job_tag

A job identifier specified in the call to StartCelebrityRecognition and returned in the job completion notification sent to your Amazon Simple Notification Service topic.

VARCHAR
persons

An array of the persons detected in the video and the time(s) their path was tracked throughout the video. An array element will exist for each time a person's path is tracked.

STRUCT(
"timestamp" BIGINT,
"person" STRUCT(
"index" BIGINT,
"bounding_box" STRUCT(
"width" DOUBLE,
"height" DOUBLE,
"left" DOUBLE,
"top" DOUBLE
),
"face" STRUCT(
"bounding_box" STRUCT(
"width" DOUBLE,
"height" DOUBLE,
"left" DOUBLE,
"top" DOUBLE
),
"age_range" STRUCT(
"low" BIGINT,
"high" BIGINT
),
"smile" STRUCT(
"value" BOOLEAN,
"confidence" DOUBLE
),
"eyeglasses" STRUCT(
"value" BOOLEAN,
"confidence" DOUBLE
),
"sunglasses" STRUCT(
"value" BOOLEAN,
"confidence" DOUBLE
),
"gender" STRUCT(
"value" VARCHAR,
"confidence" DOUBLE
),
"beard" STRUCT(
"value" BOOLEAN,
"confidence" DOUBLE
),
"mustache" STRUCT(
"value" BOOLEAN,
"confidence" DOUBLE
),
"eyes_open" STRUCT(
"value" BOOLEAN,
"confidence" DOUBLE
),
"mouth_open" STRUCT(
"value" BOOLEAN,
"confidence" DOUBLE
),
"emotions" STRUCT(
"type" VARCHAR,
"confidence" DOUBLE
)[],
"landmarks" STRUCT(
"type" VARCHAR,
"x" DOUBLE,
"y" DOUBLE
)[],
"pose" STRUCT(
"roll" DOUBLE,
"yaw" DOUBLE,
"pitch" DOUBLE
),
"quality" STRUCT(
"brightness" DOUBLE,
"sharpness" DOUBLE
),
"confidence" DOUBLE,
"face_occluded" STRUCT(
"value" BOOLEAN,
"confidence" DOUBLE
),
"eye_direction" STRUCT(
"yaw" DOUBLE,
"pitch" DOUBLE,
"confidence" DOUBLE
)
)
)
)[]
Show child fields
persons[]
Show child fields
persons[].person

Details about a person whose path was tracked in a video.

Show child fields
persons[].person.bounding_box

Bounding box around the detected person.

Show child fields
persons[].person.bounding_box.height

Height of the bounding box as a ratio of the overall image height.

persons[].person.bounding_box.left

Left coordinate of the bounding box as a ratio of overall image width.

persons[].person.bounding_box.top

Top coordinate of the bounding box as a ratio of overall image height.

persons[].person.bounding_box.width

Width of the bounding box as a ratio of the overall image width.

persons[].person.face

Face details for the detected person.

Show child fields
persons[].person.face.age_range

The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.

Show child fields
persons[].person.face.age_range.high

The highest estimated age.

persons[].person.face.age_range.low

The lowest estimated age.

persons[].person.face.beard

Indicates whether or not the face has a beard, and the confidence level in the determination.

Show child fields
persons[].person.face.beard.confidence

Level of confidence in the determination.

persons[].person.face.beard.value

Boolean value that indicates whether the face has beard or not.

persons[].person.face.bounding_box

Bounding box of the face. Default attribute.

Show child fields
persons[].person.face.bounding_box.height

Height of the bounding box as a ratio of the overall image height.

persons[].person.face.bounding_box.left

Left coordinate of the bounding box as a ratio of overall image width.

persons[].person.face.bounding_box.top

Top coordinate of the bounding box as a ratio of overall image height.

persons[].person.face.bounding_box.width

Width of the bounding box as a ratio of the overall image width.

persons[].person.face.confidence

Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.

persons[].person.face.emotions[]
Show child fields
persons[].person.face.emotions[].confidence

Level of confidence in the determination.

persons[].person.face.emotions[].type

Type of emotion detected.

persons[].person.face.eye_direction

Indicates the direction the eyes are gazing in, as defined by pitch and yaw.

Show child fields
persons[].person.face.eye_direction.confidence

The confidence that the service has in its predicted eye direction.

persons[].person.face.eye_direction.pitch

Value representing eye direction on the pitch axis.

persons[].person.face.eye_direction.yaw

Value representing eye direction on the yaw axis.

persons[].person.face.eyeglasses

Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.

Show child fields
persons[].person.face.eyeglasses.confidence

Level of confidence in the determination.

persons[].person.face.eyeglasses.value

Boolean value that indicates whether the face is wearing eye glasses or not.

persons[].person.face.eyes_open

Indicates whether or not the eyes on the face are open, and the confidence level in the determination.

Show child fields
persons[].person.face.eyes_open.confidence

Level of confidence in the determination.

persons[].person.face.eyes_open.value

Boolean value that indicates whether the eyes on the face are open.

persons[].person.face.face_occluded

FaceOccluded should return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects. FaceOccluded should return "false" with a high confidence score if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others.

Show child fields
persons[].person.face.face_occluded.confidence

The confidence that the service has detected the presence of a face occlusion.

persons[].person.face.face_occluded.value

True if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects. False if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others.

persons[].person.face.gender

The predicted gender of a detected face.

Show child fields
persons[].person.face.gender.confidence

Level of confidence in the prediction.

persons[].person.face.gender.value

The predicted gender of the face.

persons[].person.face.landmarks[]
Show child fields
persons[].person.face.landmarks[].type

Type of landmark.

persons[].person.face.landmarks[].x

The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.

persons[].person.face.landmarks[].y

The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.

persons[].person.face.mouth_open

Indicates whether or not the mouth on the face is open, and the confidence level in the determination.

Show child fields
persons[].person.face.mouth_open.confidence

Level of confidence in the determination.

persons[].person.face.mouth_open.value

Boolean value that indicates whether the mouth on the face is open or not.

persons[].person.face.mustache

Indicates whether or not the face has a mustache, and the confidence level in the determination.

Show child fields
persons[].person.face.mustache.confidence

Level of confidence in the determination.

persons[].person.face.mustache.value

Boolean value that indicates whether the face has mustache or not.

persons[].person.face.pose

Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.

Show child fields
persons[].person.face.pose.pitch

Value representing the face rotation on the pitch axis.

persons[].person.face.pose.roll

Value representing the face rotation on the roll axis.

persons[].person.face.pose.yaw

Value representing the face rotation on the yaw axis.

persons[].person.face.quality

Identifies image brightness and sharpness. Default attribute.

Show child fields
persons[].person.face.quality.brightness

Value representing brightness of the face. The service returns a value between 0 and 100 (inclusive). A higher value indicates a brighter face image.

persons[].person.face.quality.sharpness

Value representing sharpness of the face. The service returns a value between 0 and 100 (inclusive). A higher value indicates a sharper face image.

persons[].person.face.smile

Indicates whether or not the face is smiling, and the confidence level in the determination.

Show child fields
persons[].person.face.smile.confidence

Level of confidence in the determination.

persons[].person.face.smile.value

Boolean value that indicates whether the face is smiling or not.

persons[].person.face.sunglasses

Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.

Show child fields
persons[].person.face.sunglasses.confidence

Level of confidence in the determination.

persons[].person.face.sunglasses.value

Boolean value that indicates whether the face is wearing sunglasses or not.

persons[].person.index

Identifier for the person detected person within a video. Use to keep track of the person throughout the video. The identifier is not stored by Amazon Rekognition.

persons[].timestamp

The time, in milliseconds from the start of the video, that the person's path was tracked. Note that Timestamp is not guaranteed to be accurate to the individual frame where the person's path first appears.

status_message

If the job fails, StatusMessage provides a descriptive error message.

VARCHAR
video

Video file stored in an Amazon S3 bucket. Amazon Rekognition video start operations such as StartLabelDetection use Video to specify a video for analysis. The supported file formats are .mp4, .mov and .avi.

STRUCT(
"s3_object" STRUCT(
"bucket" VARCHAR,
"name" VARCHAR,
"version" VARCHAR
)
)
Show child fields
video.s3_object

The Amazon S3 bucket name and file name for the video.

Show child fields
video.s3_object.bucket

Name of the S3 bucket.

video.s3_object.name

S3 object key name.

video.s3_object.version

If the bucket is versioning enabled, you can specify the object version.

video_metadata

Information about a video that Amazon Rekognition Video analyzed. Videometadata is returned in every page of paginated responses from a Amazon Rekognition Video operation.

STRUCT(
"codec" VARCHAR,
"duration_millis" BIGINT,
"format" VARCHAR,
"frame_rate" DOUBLE,
"frame_height" BIGINT,
"frame_width" BIGINT,
"color_range" VARCHAR
)
Show child fields
video_metadata.codec

Type of compression used in the analyzed video.

video_metadata.color_range

A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255).

video_metadata.duration_millis

Length of the video in milliseconds.

video_metadata.format

Format of the analyzed video. Possible values are MP4, MOV and AVI.

video_metadata.frame_height

Vertical pixel dimension of the video.

video_metadata.frame_rate

Number of frames per second in the video.

video_metadata.frame_width

Horizontal pixel dimension of the video.