- Create or select a project.
- Enable the Vision API for that project.
- Create a service account.
- Download a private key as JSON.
- 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"
- Clone repo
- Install dependencies
yarn install
- Run project
yarn start
- Send POST request to http://localhost:5000/api/detect with the image in form data field "image".