anatomic-google-vision
v0.3.0
Published
An anatomic component that wraps the `@google-cloud/vision` package.
Downloads
1
Readme
anatomic-google-vision
An anatomic component that wraps the @google-cloud/vision
package.
Install
npm install anatomic-google-vision
Usage
const Vision = require("anatomic-google-vision");
process.env.GOOGLE_APPLICATION_CREDENTIALS =
"/PATH/TO/service-account-credentials.json";
async function read() {
const ocr = await Vision().start();
const path = "tmp/1sV3pgFBkcpgqAiIBo4lG2QdUB9n1qmCx";
const result = await ocr.detect({ path });
console.log(result);
}