0.3.0 • Published 3 years ago
anatomic-google-vision v0.3.0
anatomic-google-vision
An anatomic component that wraps the @google-cloud/vision package.
Install
npm install anatomic-google-visionUsage
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);
}