Skip to content

Commit 31666ee

Browse files
authored
chore: changes person and face detection comments (#444)
1 parent e6e29aa commit 31666ee

4 files changed

+6
-8
lines changed

video-intelligence/analyze_face_detection.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ function main(path = 'YOUR_LOCAL_FILE') {
8282
const [firstTimestapedObject] = timestampedObjects;
8383

8484
for (const {name} of firstTimestapedObject.attributes) {
85-
// Attributes include unique pieces of clothing, like glasses,
86-
// poses, or hair color.
85+
// Attributes include 'glasses', 'headwear', 'smiling'.
8786
console.log(`\tAttribute: ${name}; `);
8887
}
8988
}

video-intelligence/analyze_face_detection_gcs.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ function main(gcsUri = 'YOUR_STORAGE_URI') {
7979
const [firstTimestapedObject] = timestampedObjects;
8080

8181
for (const {name} of firstTimestapedObject.attributes) {
82-
// Attributes include unique pieces of clothing, like glasses,
83-
// poses, or hair color.
82+
// Attributes include 'glasses', 'headwear', 'smiling'.
8483
console.log(`\tAttribute: ${name}; `);
8584
}
8685
}

video-intelligence/analyze_person_detection.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ function main(path = 'YOUR_LOCAL_FILE') {
8989
// of the person detected.
9090
const [firstTimestampedObject] = timestampedObjects;
9191

92-
// Attributes include unique pieces of clothing,
93-
// poses, or hair color.
92+
// Attributes include unique pieces of clothing, poses (i.e., body
93+
// landmarks) of the person detected.
9494
for (const {name, value} of firstTimestampedObject.attributes) {
9595
console.log(`\tAttribute: ${name}; Value: ${value}`);
9696
}

video-intelligence/analyze_person_detection_gcs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ function main(gcsUri = 'YOUR_STORAGE_URI') {
8080
// of the person detected.
8181
const [firstTimestampedObject] = timestampedObjects;
8282

83-
// Attributes include unique pieces of clothing,
84-
// poses, or hair color.
83+
// Attributes include unique pieces of clothing, poses (i.e., body
84+
// landmarks) of the person detected.
8585
for (const {name, value} of firstTimestampedObject.attributes) {
8686
console.log(`\tAttribute: ${name}; Value: ${value}`);
8787
}

0 commit comments

Comments
 (0)