nextjs reimplementation of doctr-tfjs-demo
- clone the project
git clone https://github.com/animebing/doctr-tfjs-nextjs.git
- install dependencies
cd doctr-tfjs-nextjs
npm install
- get model files
cd ../ && git clone https://github.com/mindee/doctr-tfjs-demo.git
cd doctr-tfjs-demo.git && cp -r public/models ../doctr-tfjs-nextjs/public
cd ../doctr-tfjs-nextjs
- local development
npm run dev
-
use
headers
instead ofreact-device-detect
to determine the device of the request -
use
tailwindcss
to make the UI -
in model loading stage, do warmup inference to make later inference much smoother
- do inference usinng paddleocr model
- do inference using web worker