---
title: PP-OCRv5_mobile_rec_safetensors
canonical_url: "https://www.modelscope.cn/models/PaddlePaddle/PP-OCRv5_mobile_rec_safetensors"
md_url: "https://www.modelscope.cn/models/PaddlePaddle/PP-OCRv5_mobile_rec_safetensors.md"
repository: PaddlePaddle/PP-OCRv5_mobile_rec_safetensors
last_updated: 2026-04-15
license: apache-2.0
model_type:
  - pp_ocrv5_mobile_rec
parameters: 7.8M
tensor_type:
  - F32
library_name:
  - transformer
  - safetensors
language:
  - en
  - zh
downloads: 803
stars: 0
tags:
  - OCR
  - PaddlePaddle
  - PaddleOCR
  - textline_recognition
---

# PP-OCRv5_mobile_rec_safetensors

> PP-OCRv5_mobile_rec_safetensors - PaddlePaddle 在 ModelScope 开源的模型。PP-OCRv5mobilerec is one of the PP-OCRv5rec that are the latest generation text line recognition models developed by PaddleOCR team. It aims to efficiently and accurately support the…

PaddlePaddle/PP-OCRv5_mobile_rec_safetensors 是 ModelScope 魔搭社区上的 7.8M 参数机器学习模型，采用 apache-2.0 许可。

- **Repository**: PaddlePaddle/PP-OCRv5_mobile_rec_safetensors
- **License**: apache-2.0
- **Parameters**: 7.8M
- **Tags**: OCR, PaddlePaddle, PaddleOCR, textline_recognition
- **Downloads**: 803
- **Stars**: 0
- **Last updated**: 2026-04-15

Source: https://www.modelscope.cn/models/PaddlePaddle/PP-OCRv5_mobile_rec_safetensors

---

# PP-OCRv5_mobile_rec

## Introduction

PP-OCRv5_mobile_rec is one of the PP-OCRv5_rec that are the latest generation text line recognition models developed by PaddleOCR team. It aims to efficiently and accurately support the recognition of four major languages—Simplified Chinese, Traditional Chinese, English, and Japanese—as well as complex text scenarios such as handwriting, vertical text, pinyin, and rare characters using a single model. The key accuracy metrics are as follow:

| Handwritten Chinese | Handwritten English | Printed Chinese | Printed English | Traditional Chinese | Ancient Text | Japanese | General Scenario | Pinyin | Rotation | Distortion | Artistic Text | Average | 
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 0.4166 | 0.4944 | 0.8605 | 0.8753 | 0.7199 | 0.5786 | 0.7577 | 0.5570 | 0.7703 | 0.7248 | 0.8089 | 0.5398 | 0.8015 |

**Note**: If any character (including punctuation) in a line is incorrect, the entire line is marked as wrong. This ensures higher accuracy in practical applications.

## Model Usage

```python
import requests
from PIL import Image
from transformers import AutoImageProcessor, AutoModelForTextRecognition

model_path = "PaddlePaddle/PP-OCRv5_mobile_rec_safetensors"
model = AutoModelForTextRecognition.from_pretrained(model_path, device_map="auto")
image_processor = AutoImageProcessor.from_pretrained(model_path)

image = Image.open(requests.get("https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/general_ocr_rec_001.png", stream=True).raw).convert("RGB")
inputs = image_processor(images=image, return_tensors="pt").to(model.device)
outputs = model(**inputs)

results = image_processor.post_process_text_recognition(outputs)

for result in results:
    print(result)
```
