ocr_detect model is used to detect the text area in the image.
import * as ocr from '@paddle-js-models/ocrdet';
// Load ocr_detect model
await ocr.load();
// Get text area points
const res = await ocr.detect(img);
ocr_detect model is used to detect the text area in the image.
import * as ocr from '@paddle-js-models/ocrdet';
// Load ocr_detect model
await ocr.load();
// Get text area points
const res = await ocr.detect(img);
npm i ocrdettest
0
0.0.5
ISC
6.3 kB
4