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 — getLabelAnnotationsList is returing empty map · Issue #644 · GoogleCloudPlatform/java-docs-samples

getLabelAnnotationsList is returing empty map #644

New issue
Copy link
New issue
Copy link
Closed
Closed
getLabelAnnotationsList is returing empty map#644
Copy link
Assignees
gguuss

Description

@buddhapuneeth
buddhapuneeth
opened on May 3, 2017
Issue body actions

In which file did you encounter the issue?

java-docs-samples/vision/cloud-client/src/main/java/com/example/vision/QuickstartSample.java

Did you change the file? If so, how?

no. running on Tomcat 7 in java 1.8

Describe the issue

EntityAnnotation annotation : res.getLabelAnnotationsList()
there are no items in that. It was working fine some time back, now stopped working. I'm using:
com.google.cloud
google-cloud-vision
0.17.1-beta

Activity

  1. lesv
    assigned
    gguuss
    on May 8, 2017
  2. lesv commented on May 8, 2017

    @lesv
    lesv
    on May 8, 2017
    Contributor
    More actions

    @gguuss PTAL

  3. gguuss commented on May 8, 2017

    @gguuss
    gguuss
    on May 8, 2017
    Contributor
    More actions

    It's possible that the results returned from ML APIs change, meaning an image that returned labels before no longer returns labels. I'm very surprised that you are not seeing any labels returned though. For me, sending a transparent image with just a few pixels in it returns labels.

    Is the issue occurring with all images or just a specific one? Are you seeing any errors from the API?

  4. gguuss commented on May 16, 2017

    @gguuss
    gguuss
    on May 16, 2017
    Contributor
    More actions

    This looks related to this issue. @buddhapuneeth it may be helpful for the Google Cloud Client library team to have your input.

  5. buddhapuneeth commented on May 16, 2017

    @buddhapuneeth
    buddhapuneeth
    on May 16, 2017
    Author
    More actions

    @gguuss it was the same behavior for all the images, those images when uploaded in google vision API home page is showing labels correctly. Even actual response from the API is having labels. I took the raw response and passed it to my custom parser to bypass.
    One more issue with APIs is the raw response of APIs is different from REST response. For example, in one it has 'Joy_Likelihood' and other has 'joylikelihood'. I noticed this because of my custom parser. As ML libraries are not working in GAE environment, I replaced APIs with REST calls then my parser started giving issues.

  6. gguuss commented on May 16, 2017

    @gguuss
    gguuss
    on May 16, 2017
    Contributor
    More actions

    In short, the issue you're experiencing is that we do not have good support for Tomcat in the Cloud Client library for Java (those in the com.google.cloud namespace). The issue I linked is collecting feedback on what behavior you're experiencing from the API so they can resolve those behaviors in a future release of the client library.

    As you have effectively moved to your own client libraries (built around REST), it is expected that some of the behaviors will be different from those provided by the client libraries team. You might want to try using the Apiary client library for Vision as a middle ground solution with constants more idiomatic to Java and broader current platform support.

  7. nnegrey
    added
    Data Analytics / ML / IoT
    on Nov 30, 2018
  8. nnegrey commented on Dec 5, 2018

    @nnegrey
    nnegrey
    on Dec 5, 2018
    Contributor
    More actions

    This appears to have been resolved. Please feel free to reopen if this is not true. :)

  9. nnegrey
    closed this as completedon Dec 5, 2018
  10. Sita04
    added 2 commits that reference this issue on Nov 11, 2022

    deps: update dependency org.springframework.boot:spring-boot-starter-…

    e468e7a

    deps: update dependency org.springframework.boot:spring-boot-starter-…

    9606dd1
  11. charlieyu1996
    added a commit that references this issue on Nov 15, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v24.…

    69c45a5
  12. Shabirmean
    added a commit that references this issue on Nov 18, 2022

    deps: update dependency com.google.cloud:google-cloud-storage to v2.1…

    69a9605
  13. gcf-merge-on-green
    added a commit that references this issue on Dec 20, 2022

    samples: migrate code from googleapis/java-aiplatform (#7451)

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

Metadata

Metadata

Assignees

  • @gguuss
    gguuss

Labels

No labels
No labels

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.