Giter VIP home page Giter VIP logo

Comments (7)

JustinBeckwith avatar JustinBeckwith commented on May 18, 2024

Greetings! I could be wrong, but I don't think you shouldn't need the .v1p3beta1. Will this work without it?

from nodejs-vision.

sandrapavankumar avatar sandrapavankumar commented on May 18, 2024

When I remove .v1p3beta1. and try I get an error "TypeError: vision.ImageAnnotatorClient is not a constructor"

from nodejs-vision.

sandrapavankumar avatar sandrapavankumar commented on May 18, 2024

Hi @JustinBeckwith, can you please suggest if this is a bug in vision api.

from nodejs-vision.

stephenplusplus avatar stephenplusplus commented on May 18, 2024

I believe you just need to upgrade to the latest version of this library, which is currently 0.22.0.

With that version, this works for me:

const vision = require('@google-cloud/vision')
const client = new vision.ImageAnnotatorClient()

Please let me know if you still have issues after the upgrade.

from nodejs-vision.

sandrapavankumar avatar sandrapavankumar commented on May 18, 2024

Hi @stephenplusplus , I just tried with the latest version, and facing new errors. Kindly suggest me if anything wrong in code.
(node:8904) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
(node:8904) UnhandledPromiseRejectionWarning: Error: Unexpected error while acquiring application default credentials: Could not load
the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information.
at GoogleAuth. (C:\Users\sandrpa\Downloads\nodejs-docs-samples-master\functions\ocr\app\node_modules@google-cloud\vision\node_modules\google-auth-library\build\src\auth\googleauth.js:248:31)

from nodejs-vision.

stephenplusplus avatar stephenplusplus commented on May 18, 2024

https://cloud.google.com/docs/authentication/getting-started#auth-cloud-implicit-nodejs has some good information about getting started with authorization.

from nodejs-vision.

sandrapavankumar avatar sandrapavankumar commented on May 18, 2024

Thanks @stephenplusplus its working now.

from nodejs-vision.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.