Skip to content

nighthack/htr-vision-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTR using Vision API & nodeJS

Pre-requesits

Set up a Cloud Console project

  1. Create or select a project.
  2. Enable the Vision API for that project.
  3. Create a service account.
  4. Download a private key as JSON.
  5. Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the path of the JSON file.
## Linux or MacOS
export GOOGLE_APPLICATION_CREDENTIALS="[your-path]/my-key.json"

## Windows
set GOOGLE_APPLICATION_CREDENTIALS="[your path]\my-key.json"

Project Setup

  1. Clone repo
  2. Install dependencies
yarn install
  1. Run project
yarn start
  1. Send POST request to http://localhost:5000/api/detect with the image in form data field "image".

About

HTR API built using Google vision API built using node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published