Skip to content

Commit 5809c2e

Browse files
committed
vision: include original Likelihood score
Add the original likelihood value into the response from the vision api alongside the boolean values
1 parent 370d854 commit 5809c2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/vision/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,6 +1558,8 @@ Vision.formatFaceAnnotation_ = function(faceAnnotation) {
15581558

15591559
formattedFaceAnnotation[shortenedProp] =
15601560
Vision.gteLikelihood_(LIKELY, faceAnnotation[prop]);
1561+
1562+
formattedFaceAnnotation[prop] = faceAnnotation[prop];
15611563
}
15621564
}
15631565

0 commit comments

Comments
 (0)