Skip to content

Commit

Permalink
chore: changes person and face detection comments (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
telpirion authored and ahrarmonsur committed Nov 17, 2022
1 parent b5cbf5b commit 1234222
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions video-intelligence/analyze_face_detection.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ function main(path = 'YOUR_LOCAL_FILE') {
const [firstTimestapedObject] = timestampedObjects;

for (const {name} of firstTimestapedObject.attributes) {
// Attributes include unique pieces of clothing, like glasses,
// poses, or hair color.
// Attributes include 'glasses', 'headwear', 'smiling'.
console.log(`\tAttribute: ${name}; `);
}
}
Expand Down
3 changes: 1 addition & 2 deletions video-intelligence/analyze_face_detection_gcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ function main(gcsUri = 'YOUR_STORAGE_URI') {
const [firstTimestapedObject] = timestampedObjects;

for (const {name} of firstTimestapedObject.attributes) {
// Attributes include unique pieces of clothing, like glasses,
// poses, or hair color.
// Attributes include 'glasses', 'headwear', 'smiling'.
console.log(`\tAttribute: ${name}; `);
}
}
Expand Down
4 changes: 2 additions & 2 deletions video-intelligence/analyze_person_detection.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ function main(path = 'YOUR_LOCAL_FILE') {
// of the person detected.
const [firstTimestampedObject] = timestampedObjects;

// Attributes include unique pieces of clothing,
// poses, or hair color.
// Attributes include unique pieces of clothing, poses (i.e., body
// landmarks) of the person detected.
for (const {name, value} of firstTimestampedObject.attributes) {
console.log(`\tAttribute: ${name}; Value: ${value}`);
}
Expand Down
4 changes: 2 additions & 2 deletions video-intelligence/analyze_person_detection_gcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ function main(gcsUri = 'YOUR_STORAGE_URI') {
// of the person detected.
const [firstTimestampedObject] = timestampedObjects;

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

0 comments on commit 1234222

Please sign in to comment.