Comments (7)
Greetings! I could be wrong, but I don't think you shouldn't need the .v1p3beta1
. Will this work without it?
from nodejs-vision.
When I remove .v1p3beta1. and try I get an error "TypeError: vision.ImageAnnotatorClient is not a constructor"
from nodejs-vision.
Hi @JustinBeckwith, can you please suggest if this is a bug in vision api.
from nodejs-vision.
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.
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.
https://cloud.google.com/docs/authentication/getting-started#auth-cloud-implicit-nodejs has some good information about getting started with authorization.
from nodejs-vision.
Thanks @stephenplusplus its working now.
from nodejs-vision.
Related Issues (20)
- Vision: "after all" hook for "should detect from a Buffer" failed
- detect v1 p4 beta1: "before all" hook for "should annotate the remote landmark.jpg sample" failed
- detect v1 p4 beta1: "after all" hook for "should annotate the remote landmark.jpg sample" failed
- detect v1 p4 beta1: "before all" hook for "should annotate the remote pdf-ocr.pdf in GCS bucket" failed
- detect v1 p4 beta1: "after all" hook for "should annotate the remote pdf-ocr.pdf in GCS bucket" failed
- detect v1 p4 beta1: "before all" hook for "should annotate the local pdf-ocr.pdf sample" failed
- detect v1 p4 beta1: "after all" hook for "should annotate the local pdf-ocr.pdf sample" failed
- detect: "before all" hook for "should detect faces in a local file" failed
- detect: "after all" hook for "should detect objects in a remote file" failed
- detect v1 p1 beta1: should extract text from image file and print confidence failed
- detect v1 p1 beta1: should detect web entities using geographical metadata failed
- detect v1 p3 beta1: "before all" hook for "should read handwriting in local handwritten.jpg sample" failed
- detect v1 p3 beta1: "after all" hook for "should read handwriting from handwritten.jpg in GCS bucket" failed
- face detection: should detect faces failed
- import product sets: should import a Product Set failed
- product sets: "before all" hook for "should create product set" failed
- products: "before all" hook for "should create product" failed
- quickstart: should detect labels in a remote file failed
- set endpoint for vision api call: should detect text in a remote file from a pre-set api endpoint failed HOT 1
- Configuration error for release-please
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodejs-vision.