ocr_detect model is used to detect the text area in the image.
npm install
npm run dev
npm run build
import * as ocr from '@paddlejs-models/ocrdet';
// Load ocr_detect model
await ocr.load();
// Get text area points
const res = await ocr.detect(img);