mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-08 10:00:29 +08:00
[Doc] add readme for js packages (#421)
* add contributor * add package readme * refine ocr readme * refine ocr readme
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
[中文版](./README_cn.md)
|
||||
|
||||
# ocr_detection
|
||||
|
||||
ocr_detection model is used to detect the text area in the image.
|
||||
|
||||
<img src="https://img.shields.io/npm/v/@paddle-js-models/ocrdet?color=success" alt="version"> <img src="https://img.shields.io/bundlephobia/min/@paddle-js-models/ocrdet" alt="size"> <img src="https://img.shields.io/npm/dm/@paddle-js-models/ocrdet?color=orange" alt="downloads"> <img src="https://img.shields.io/npm/dt/@paddle-js-models/ocrdet" alt="downloads">
|
||||
|
||||
|
||||
The ocr_detection model is compressed from [PP-OCRv3](https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_en/PP-OCRv3_introduction_en.md) which released by [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR), which greatly improves the running speed on js at a small loss of accuracy.
|
||||
|
||||
|
||||
# Usage
|
||||
|
||||
```js
|
||||
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);
|
||||
```
|
||||
|
||||
# Online experience
|
||||
|
||||
https://paddlejs.baidu.com/ocrdet
|
||||
|
||||
# Performance
|
||||
<img alt="image" src="https://user-images.githubusercontent.com/43414102/156394295-5650b6c5-65c4-42a7-bccc-3ed459577b9d.png">
|
||||
Reference in New Issue
Block a user