@@ -138,6 +138,38 @@ Output will be a list, each item contains text and recognition confidence
...
@@ -138,6 +138,38 @@ Output will be a list, each item contains text and recognition confidence
['PAIN', 0.990372]
['PAIN', 0.990372]
```
```
## Use custom model
When the built-in model cannot meet the needs, you need to use your own trained model.
First, refer to the first section of [inference_en.md](./inference_en.md) to convert your det and rec model to inference model, and then use it as follows
### 1. Use by code
```python
frompaddleocrimportPaddleOCR,draw_ocr
# The path of detection and recognition model must contain model and params files