Repository navigation
fix(vision): remove deprecated emotion fields from face detection samples #10400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
b2835e9
e1b75dc
03f27f2
95137f6
2a8055b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -66,10 +66,10 @@ public static void detectFacesGcs(String gcsPath) throws IOException { | |||||||||||||||||||||
| // For full list of available annotations, see http://g.co/cloud/vision/docs | ||||||||||||||||||||||
| for (FaceAnnotation annotation : res.getFaceAnnotationsList()) { | ||||||||||||||||||||||
| System.out.format( | ||||||||||||||||||||||
| "anger: %s%njoy: %s%nsurprise: %s%nposition: %s", | ||||||||||||||||||||||
| annotation.getAngerLikelihood(), | ||||||||||||||||||||||
| annotation.getJoyLikelihood(), | ||||||||||||||||||||||
| annotation.getSurpriseLikelihood(), | ||||||||||||||||||||||
| "headwear: %s%nunder exposed: %s%nblurred: %s%nposition: %s", | ||||||||||||||||||||||
| annotation.getHeadwearLikelihood(), | ||||||||||||||||||||||
| annotation.getUnderExposedLikelihood()), | ||||||||||||||||||||||
| annotation.getBlurredLikelihood(), | ||||||||||||||||||||||
| annotation.getBoundingPoly()); | ||||||||||||||||||||||
|
Comment on lines
+69
to
73
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a syntax error due to an extra closing parenthesis after
Suggested change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, applied. |
||||||||||||||||||||||
| } | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.