Files
FastDeploy/examples/application/js/package/packages/paddlejs-models/ocrdetection/README_cn.md
Double_V a823d4eebf [Doc] add readme for js packages (#421)
* add contributor

* add package readme

* refine ocr readme

* refine ocr readme
2022-10-24 16:18:00 +08:00

1.1 KiB
Raw Blame History

English

ocr_detection

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

version size downloads downloads

ocr_detection模型是PaddleOCR发布PP-OCRv3模型的压缩版本压缩后的模型仅0.47M在损失一小部分精度的情况下大幅提升在js上的运行速度。

使用

import * as ocr from '@paddle-js-models/ocrdet';
// ocr_detect模型加载
await ocr.load();
// 获取文字区域坐标
const res = await ocr.detect(img);

效果

image