Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 553 Bytes

File metadata and controls

40 lines (27 loc) · 553 Bytes

English

ocr_detect

ocr_detect模型用于检测图像中文字区域。

安装

npm install

编译

npm run dev

构建

npm run build

使用

import * as ocr from '@paddlejs-models/ocrdet';

// ocr_detect模型加载
await ocr.load();

// 获取文字区域坐标
const res = await ocr.detect(img);

在线体验

https://paddlejs.baidu.com/ocrdet

效果

image