Textscan is a web app that detects and extracts text from any image using OCR(optical character recognition), a feature from Google Cloud Vision API.
- Clone this project.
- Run
npm install
. - Rename
.env.example
to.env
. - Go to Vision API to create an account and generate your credentials.json file.
- Open your credentials file and copy the following values:
client_id
,client_email
,private_key
,project_id
to the corresponding environment variables. Keep in mind that when you're working on localhost you'll need to haveGOOGLE_CLIENT_PRIVATE_KEY
in double quotes. - Run
npm run dev
and go to localhost:3000.