GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — vision: include original Likelihood score · Issue #1881 · googleapis/google-cloud-node

vision: include original Likelihood score #1881

New issue
Copy link
New issue
Copy link
Closed
Closed
vision: include original Likelihood score#1881
Copy link
Assignees
stephenplusplus
Labels
api: visionIssues related to the Cloud Vision API.priority: p2Moderately-important priority. Fix may not be included in next release.

Description

@rtw
rtw
opened on Dec 12, 2016
Issue body actions

It would be great if the likelihood of emotions was send back in the response from the visionClient.detectFaces function. It is useful to the client code so that it can make decisions on the comparison of emotions.

It's intentionally removed replaced with Booleans in the gteLikelihood_ function.

Is there a reason this is done? Do you want me to update it and submit a pull request?

Activity

  1. stephenplusplus commented on Dec 14, 2016

    @stephenplusplus
    stephenplusplus
    on Dec 14, 2016
    Contributor
    More actions

    I agree, we should return that original value. A PR would be great and very appreciated! While you're in there, can you keep our current boolean conversion, and simply add back in the sorrowLikelihood property? In other words:

    vision.detectFaces('image.jpg', function(err, faces, apiResponse) {
      // faces = [
      //   {
      //     ...
      //     confidence: 56.748849,
      //     anger: false,
      //     angerLikelihood: 1,
      //     blurred: false,
      //     blurredLikelihood: 1,
      //     headwear: false,
      //     headwearLikelihood: 1,
      //     joy: false,
      //     joyLikelihood: 1,
      //     sorrow: false,
      //     sorrowLikelihood: 1,
      //     surprise: false,
      //     surpriseLikelihood: 1,
      //     underExposed: false,
      //     underExposedLikelihood: 1
      //   }
      // ]
    });

    Thanks for bringing this up!

  2. stephenplusplus
    added
    enhancement
    api: visionIssues related to the Cloud Vision API.
    on Dec 14, 2016
  3. stephenplusplus
    changed the title [-]Likelihood[/-] [+]vision: include original Likelihood score[/+] on Dec 14, 2016
  4. bjwatson
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    Status: Acknowledged
    on Mar 2, 2017
  5. stephenplusplus
    closed this as completedin #1887on Mar 13, 2017
  6. stephenplusplus
    added a commit that references this issue on Mar 13, 2017

    #1881 vision: include original Likelihood score (#1887)

    3e943e9
  7. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  8. sofisl
    added a commit that references this issue on Jan 17, 2023

    #1881 vision: include original Likelihood score (#1887)

    de32ea4
  9. sofisl
    added 2 commits that reference this issue on Feb 24, 2026

    chore(deps): update dependency jsdoc-region-tag to v3 (#1881)

    2c55c91

    chore(main): release 5.19.3 (#1881)

    a5ee106
  10. GautamSharda
    added a commit that references this issue on Mar 11, 2026

    chore(main): release 4.3.0 (#1881)

    1823295
  11. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    chore(main): release 5.19.3 (googleapis#1881)

    773068d
  12. feywind
    added a commit that references this issue on Mar 27, 2026

    chore(main): release 4.3.0 (#1881)

    3b97cc5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

api: visionIssues related to the Cloud Vision API.priority: p2Moderately-important priority. Fix may not be included in next release.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.