Description
A cross platform (iOS/Android/web) sample project to demonstrate Chinese (mainland) national ID OCR recognition with tesseract.js and Ionic Capacitor.
Prerequisites
- Install Node.js
Setup and Run
-
Clone the project and proceed to its directory in CLI
-
npm install
//run once to install dependencies -
npm start
//run the sample -
Browse to
http://localhost:4200
mobile
-
npx cap add android
and/ornpx cap add ios
//set up platform projects -
Open the project in your IDE of chocie to run on devices/simulators ...
Project Structure
src —
|- app //TS source
|- assets //assets incl. language models
|- environment //environment variables
e2e - //e2e tests
Written By
Bryan Huang