* add contributor * add package readme * refine ocr readme * refine ocr readme
English
ocr_detection模型用于检测图像中文字区域。
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);