vision-ocr

1.0.11 • Public • Published

vision-ocr

This is an OCR demo application using Google Cloud Vision.

Driver's license number check demo:

Insurance card number mask demo:

Getting Started

Clone the project.

cd /var/www/html;
git clone https://github.com/takuya-motoshima/vision-ocr.git;

Build an OCR API WEB server.
If you are using Nginx, change the server_name in the configuration file docs/nginx.conf and copy it to "/etc/nginx/conf.d/" and restart Nginx.

sudo cp -a docs/nginx.conf /etc/nginx/conf.d/example.conf;
sudo systemctl restart nginx;

Copy "credentials.json.sample" to "credentials.json" and set your Google Cloud Vision credentials to "credentials.json".
Install Node.js and PM2 and start the API.

cd /var/www/html/vision-ocr;
npm run start;

Examples

There is a demo application in ./demo of this package.
Copy ./demo/config.js.sample to ./demo/config.js and set the baseUrl of config.js to the base URL of the API you built.

You can test OCR as soon as you open the demo in your browser.

https://<Your host name>/demo

Reference

License

MIT licensed

Dependents (0)

Package Sidebar

Install

npm i vision-ocr

Weekly Downloads

1

Version

1.0.11

License

MIT

Unpacked Size

75.2 MB

Total Files

5011

Last publish

Collaborators

  • takuya-motoshima