google-cloud-platformvision-api

Google Vision web entities returns score higher than 1


I'm trying to find documentation on what is the highest score for web entities.

Some docs show that the range is from 0 to 1.
But the issue is that I see results that have score higher than 1...

For example if you use this image: https://ih1.redbubble.net/image.172866450.9713/ra,fitted_v_neck,x1950,dd2121:8219e99865,front-c,275,133,750,1000-bg,f8f8f8.u5.jpg

In https://cloud.google.com/vision/ drag & drop section you'll see in web entities section that T-shirt score is 1.9978.


Solution

  • Google Vision API always return a value between 0 and 1. It's similar to confidence level in statistics or chance in probability; it's always between 0 and 1. 1 is already "certainty".

    If you do somehow see a value bigger than 1, it's likely just a bug.