Skip to content

Commit

Permalink
docs: generate sample code in the Java microgenerator (#395)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/b5715173-fa09-4f29-8c69-530ae787b970/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 356341083
Source-Link: googleapis/googleapis@8d8c008
  • Loading branch information
yoshi-automation authored Feb 16, 2021
1 parent c6ab32a commit eb80dab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion video/src/main/java/video/DetectPerson.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public static void detectPerson(String localFilePath) throws Exception {
// posture of the person detected.
TimestampedObject firstTimestampedObject = track.getTimestampedObjects(0);

// Attributes include unique pieces of clothing, poses (i.e., body landmarks) of the person detected.
// Attributes include unique pieces of clothing, poses (i.e., body landmarks)
// of the person detected.
for (DetectedAttribute attribute : firstTimestampedObject.getAttributesList()) {
System.out.printf(
"\tAttribute: %s; Value: %s\n", attribute.getName(), attribute.getValue());
Expand Down
3 changes: 2 additions & 1 deletion video/src/main/java/video/DetectPersonGcs.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public static void detectPersonGcs(String gcsUri) throws Exception {
// posture of the person detected.
TimestampedObject firstTimestampedObject = track.getTimestampedObjects(0);

// Attributes include unique pieces of clothing, poses (i.e., body landmarks) of the person detected.
// Attributes include unique pieces of clothing, poses (i.e., body landmarks)
// of the person detected.
for (DetectedAttribute attribute : firstTimestampedObject.getAttributesList()) {
System.out.printf(
"\tAttribute: %s; Value: %s\n", attribute.getName(), attribute.getValue());
Expand Down

0 comments on commit eb80dab

Please sign in to comment.