📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
Optim python version
SWHL31a388872ba8
diff --git a/docs/FAQ.md b/docs/FAQ.mdnew file mode 100644index 0000000..f7390d1--- /dev/null+++ b/docs/FAQ.md@@ -0,0 +1,51 @@+## 常见问题+#### Q15: 装完环境之后,运行python main.py之后,报错OSError: [WinError 126] 找不到指定的模組+**A**: 原因是Shapely库没有正确安装,如果是在Windows,可以在[Shapely whl](https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely)下载对应的whl包,离线安装即可;另外一种解决办法是用conda安装也可。++#### Q14: Linux部署python的程序时,import cv2,会报`ImportError: ligGL.so.1: cannot open shared object file: No such file or directory`?+**A:**: [解决方法](https://stackoverflow.com/a/63978454/3335415+) 有两个(来自群友ddeef):+ 1. 安装`opencv-python-headless`取代`opencv-python`;+ 2. 运行`sudo apt-get install -y libgl1-mesa-dev`++#### Q13: 询问下,我编译出来的进程在win7下面通过cmd调用,发生了崩溃的情况?+**A:**: 不支持win7 (by @如果我有時光機)++#### Q12: 能不能搞个openmmlab类似的那个提取信息的?+**A:** 这个目前正在调研测试当中,如果mmocr中关键信息提取效果还可以,后期会考虑整合进来++#### Q11: RapidOCR和PaddleOCR是什么关系呢?+**A:** RapidOCR是将PaddleOCR的预训练模型转为onnx模型,不依赖paddle框架,方便各个平台部署++#### Q10: onnxruntime arm32 有人编译过吗? 我编译成功了,但是使用的时候libonnxruntime.so:-1: error: file not recognized: File format not recognized 应该是版本不匹配+**A:** 没遇到过。我是直接在当前平台编译的,我们用的是arm。估计是平台不兼容,建议在本身平台上编译。没遇到过问题。通常出在交叉编译方式下。++#### Q9: 请问一下c++ demo必须要vs2017及以上版本吗?+**A:** 最好用vs2019++#### Q8: 可以达到百度EasyEdge Free App的效果吗?+**A:** edge的模型应该没有开源。百度开源的模型里server det的识别效果可以达到,但是模型比较大。++#### Q7: 我用c++推理onnx貌似是cpu推理的,gpu没有反应?+**A:** 如果想用GPU的话,需要安装onnxruntime-gpu版,自己在onnxruntime的代码中添加EP (execution provider)。我们的定位是通用,只用cpu推理。++#### Q6: 您好,我想部署下咱们的ocr识别,有提供linux版本的ocr部署包吗?+**A:** linux版本的自己编译即可, 可以参考我们的action中的脚本;其实编译非常容易,安装个opencv后,在cmakelists.txt中修改一下onnxruntime的路径即可,具体参考这个: https://github.com/RapidOCR/RapidOCR/blob/main/.github/workflows/make-linux.yml++#### Q5: onnxruntime编译好的C++库,哪里可以下载到?+**A:** 从这里:https://github.com/RapidOCR/OnnxruntimeBuilder/releases/tag/1.7.0++#### Q4: 目前简单测试环境是 Win10 + Cygwin + gcc + 纯C编程,可以在C程序中直接接入简单OCR功能吗?+**A:** 直接使用API就行,API就是由c导出的++#### Q3: 模型下载地址++**A:** [提取码:30jv](https://pan.baidu.com/s/1qkqWK4wRdMjqGGbzR-FyWg)++#### Q2: onnxruntime 1.7 下出错:onnxruntime::SequentialExecutor::Execute] Non-zero status code returned while running ScatterND node. Name:'ScatterND@1' Status Message: updates++**A:** 由于模型只支持`onnxruntime=1.5.0`导致,请更新模型,下载地址见`Q3`++#### Q1: 边缘总有一行文字无法识别,怎么办?++**A:** 在 padding 参数中添加一个值 ,默认是0,你可以添加5或10, 甚至更大,直到能识别为止。注意不要添加过大,会浪费内存。\ No newline at end of filediff --git a/docs/README_en.md b/docs/README_en.mdnew file mode 100644index 0000000..4035c92--- /dev/null+++ b/docs/README_en.md@@ -0,0 +1,192 @@++<div align="center">+ <img src="./assets/RapidOCR_LOGO.png" width="45%" height="45%"/>+</div>++# RapidOCR++[简体中文](../README.md) | English++<p align="left">+ <a href="https://colab.research.google.com/github/RapidAI/RapidOCR/blob/main/assets/RapidOCRDemo.ipynb" target="_blank"><img src="./assets/colab-badge.svg" alt="Open in Colab"></a>+ <a href="./LICENSE"><img src="https://img.shields.io/badge/License-Apache%202-dfd.svg"></a>+ <a href=""><img src="https://img.shields.io/badge/Python-3.6+-aff.svg"></a>+ <a href=""><img src="https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg"></a>+ <a href="https://github.com/RapidAI/RapidOCR/graphs/contributors"><img src="https://img.shields.io/github/contributors/RapidAI/RapidOCR?color=9ea"></a>+ <a href="https://github.com/RapidAI/RapidOCR/stargazers"><img src="https://img.shields.io/github/stars/RapidAI/RapidOCR?color=ccf"></a>+</p>++<details>+ <summary>Contents</summary>++- [RapidOCR](#rapidocr)+ - [Introduction](#introduction)+ - [Recently updates(more)](#recently-updatesmore)+ - [🍿2022-05-15 update](#2022-05-15-update)+ - [😀2022-05-12 upadte](#2022-05-12-upadte)+ - [🎧2022-04-04 update](#2022-04-04-update)+ - [FAQ](#faq)+ - [SDK compilation status](#sdk-compilation-status)+ - [Online demo](#online-demo)+ - [Directory structure](#directory-structure)+ - [Current Progress](#current-progress)+ - [Model related](#model-related)+ - [Download models( Google Drive|[Baidu NetDisk](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) )](#download-models-google-drivebaidu-netdisk-)+ - [Model to onnx](#model-to-onnx)+ - [Compared](#compared)+ - [Text Det](#text-det)+ - [Text Recognition](#text-recognition)+ - [PaddleOCR-FAQ](#paddleocr-faq)+ - [Original initiator and start-up author](#original-initiator-and-start-up-author)+ - [Authorization](#authorization)+ - [Contact us](#contact-us)+ - [Demo](#demo)+ - [Demonstration with C++/JVM](#demonstration-with-cjvm)+ - [Demonstration with .Net](#demonstration-with-net)+ - [Demonstratioin with multi_language](#demonstratioin-with-multi_language)+</details>+++## Introduction+- Completely open source, free and support offline deployment of multi-platform and multi-language OCR SDK+- **Chinese Advertising**: Welcome to join our QQ group to download the model and test program, QQ group number: 887298230+- **Cause**: Baidu paddlepaddle engineering is not very good, in order to facilitate everyone to perform OCR reasoning on various terminals, we convert it to onnx format, use ``python/c++/java/swift/c#'' to change It is ported to various platforms.++- **Name Source**: Light, fast, economical and smart. OCR technology based on deep learning technology focuses on artificial intelligence advantages and small models, with speed as the mission and effect as the leading role.++- Based on Baidu's open source PaddleOCR model and training, anyone can use this inference library, or use Baidu's paddlepaddle framework for model optimization according to their own needs.++## Recently updates([more](./change_log_en.md))+#### 🍿2022-05-15 update+- Add the ONNX model converted from the PaddleOCR v3 rec model, just go to the network disk to download and replace it. ([Baidu Netdisk](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing ))+- Added a comparison table of the effects of each version of the text recognition model. For details, click [Comparison of the effects of various versions of ONNX models] (#Comparison of the effects of various versions of onnx models). The text recognition model of v3 is not as good as the previous one in terms of the indicators on the test set constructed by itself.++#### 😀2022-05-12 upadte+- Add the ONNX model converted from the PaddleOCR v3 det model, download it directly from the network disk, and replace it. ([Baidu Netdisk](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing ))+- Added a comparison table of text detection model effects of various versions. For details, click [Comparison of the effects of various versions of ONNX models] (#Comparison of the effects of various versions of onnx models). The text detection model of v3 is better than the previous v2 in terms of the indicators on the test set constructed by itself, and it is recommended to use it.++#### 🎧2022-04-04 update+- Add suport for OpenVINO under python+- Give the performance comparison table of OpenVINO and ONNXRuntime+- For details:[python/README](./python/README.md)++## [FAQ](./doc/FAQ.md)++## SDK compilation status+Since ubuntu users are all commercial users and have the ability to compile, pre-compiled packages are not provided for the time being, and they can be compiled by themselves.++| Platform | Compilation Status | Offer Status |+| --------------- | -------- | -------- |+| Windows x86/x64 | [](https://github.com/RapidOCR/RapidOCR/actions/workflows/windows-all-build.yaml) | [Download Link](https://github.com/RapidAI/RapidOCR/releases) |+| Linux x64 | [](https://github.com/RapidOCR/RapidOCR/actions/workflows/make-linux.yml) | Not available yet, compile by yourself |++## Online demo+- [Web demo](http://rapidocr.51pda.cn:9003/)+- The model combination used in the demo is: **ch_PP-OCRv2 det** + **mobile cls** + **mobile rec**+- Environment: `4 Core AMD EPYC 7K62 48-Core Processor `+- **Gif Demo**:+ <div align="center">+ <img src="./assets/demo.gif" width="100%" height="100%">+ </div>++## Directory structure+<details>+ <summary>click to expand</summary>++ RapidOCR+ ├── android # Android project directory+ ├── api4cpp # C language cross-platform interface library source code directory, directly compile with CMakelists.txt under the root+ ├── assets # Some pictures for demonstration, not a test set+ ├── commonlib # common library+ ├── cpp # C++-based project folder+ ├── datasets # Additional training datasets+ ├── dotnet # .Net program directory+ ├── FAQ.md # Some questions and answers+ ├── images # Test pictures, two typical test pictures, one is a natural scene, the other is a long text+ ├── include # The header file directory when compiling the c language interface library+ ├── ios # Apple mobile phone platform project directory+ ├── jvm # java-based project directory+ ├── lib # Compilation library file directory, used to compile the C language interface library. Binary files are not uploaded by default+ ├── ocrweb # Based on python and Flask web+ ├── python # python reasoning code directory+ ├── release #+ └── tools # Some conversion scripts and the like++</details>+++## Current Progress+- [x] C++ example (Windows/Linux/macOS): [demo](./cpp)+- [x] Jvm example (Java/Kotlin): [demo](./jvm)+- [x] .Net example (C#): [demo](./dotnet)+- [x] Android example: [demo](./android)+- [x] python example: [demo](./python)+- [ ] IOS example: waiting for someone to contribute code+- [ ] Rewrite the C++ reasoning code according to the python version to improve the reasoning effect, and add support for gif/tga/webp format pictures++## Model related+#### Download models( [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing)|[Baidu NetDisk](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) )++#### Model to onnx+ - ⭐[PaddleOCRModelConverter](https://github.com/RapidAI/PaddleOCRModelConverter) by @[SWHL](https://github.com/SWHL)+ - [Paddle2OnnxConvertor](https://github.com/RapidAI/Paddle2OnnxConvertor) by @[benjaminwan](https://github.com/benjaminwan)+ - [Teach you to use ONNXRunTime to deploy PP-OCR](https://aistudio.baidu.com/aistudio/projectdetail/1479970?channelType=0&channel=0) by @Channingss++### Compared+#### Text Det+- test dataset: `Chinese and English (111, including cards, documents and natural images)`++| Model | infer_Speed(s/img) | precision | recall | hmean | Model Size |+| :---------------------------------: | :----------------: | :-------: | :----: | :----: | :------: |+| ch_ppocr_mobile_v2.0_det_infer.onnx | 0.4345742 | 0.7277 | 0.8413 | 0.7785 | 2.3M |+| ch_PP-OCRv2_det_infer.onnx | 0.5116553 | 0.7817 | 0.8472 | 0.8123 | 2.3M |+| ch_PP-OCRv3_det_infer.onnx | 0.5723512 | **0.7740** | **0.8837** | **0.8237** | 2.4M |++#### Text Recognition+- test dataset: `Chinese and English (168)`++| Model | infer_speed(s/img) | Score | Exact_Match | Char_Match | Model Size |+| :---------------------------------: | ------------------: | :-------: | :--------------: | :-------------: | :--: |+| ch_ppocr_mobile_v2.0_rec_infer.onnx | 0.0111 | **0.7287** | **0.5595** | 0.8979 | 4.3M |+| ch_PP-OCRv2_rec_infer.onnx | 0.0193 | 0.6955 | 0.4881 | **0.9029** | 8.0M |+| ch_PP-OCRv3_rec_infer.onnx | 0.0145 | 0.5537 | 0.3274 | 0.7800 | 11M |+| ch_PP-OCRv3_rec_train_student.onnx | 0.0157 | 0.5537 | 0.3274 | 0.7800 | 11M |+| ch_PP-OCRv3_rec_train_teacher.onnx | 0.0140 | 0.5381 | 0.3095 | 0.7667 | 11M |++## [PaddleOCR-FAQ](https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.1/doc/doc_ch/FAQ.md)++## Original initiator and start-up author+<p align="left">+ <a href="https://github.com/benjaminwan"><img src="https://avatars.githubusercontent.com/u/2362051?v=4" width=65 height=65></a>+ <a href="https://github.com/znsoftm"><img src="https://avatars.githubusercontent.com/u/15354249?v=4" width=65 height=65></a>+ <a href="https://github.com/SWHL"><img src="https://avatars.githubusercontent.com/u/28639377?v=4" width=65 height=65></a>+</p>++## Authorization+- The copyright of the OCR model belongs to Baidu, and the copyright of other engineering codes belongs to the owner of this warehouse.+- This software is licensed under LGPL. You are welcome to contribute code, submit an issue or even pr.++## Contact us+- You can contact us through QQ group: **887298230**+- If you can’t find the group number, please click here [**link**](https://jq.qq.com/?_wv=1027&k=P9b3olx6) to find the organization+- Scan the following QR code with QQ:++ <div align="center">+ <img src="./assets/qq_team.bmp" width="25%" height="25%" align="center">+ </div>++## Demo+#### Demonstration with C++/JVM+<div align="center">+ <img src="./assets/demo_cpp.png" width="100%" height="100%">+</div>++#### Demonstration with .Net+<div align="center">+ <img src="./assets/demo_cs.png" width="100%" height="100%">+</div>++#### Demonstratioin with multi_language+<div align="center">+ <img src="./assets/demo_multi_language.png" width="80%" height="80%">+</div>diff --git a/docs/change_log.md b/docs/change_log.mdnew file mode 100644index 0000000..04d2300--- /dev/null+++ b/docs/change_log.md@@ -0,0 +1,78 @@+#### 🍿2022-05-15 update+- 增加PaddleOCR v3 rec模型转换后的ONNX模型,直接去网盘下载替换即可。([百度网盘](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing))+- 增加文本识别模型各个版本效果对比表格,详情点击[各个版本ONNX模型效果对比](#各个版本onnx模型效果对比)。v3的文本识别模型从自己构建测试集上的指标来看不如之前的好。++#### 😀2022-05-12 upadte+- 增加PaddleOCR v3 det模型转换的ONNX模型,直接去网盘下载,替换即可。([百度网盘](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing))+- 增加各个版本文本检测模型效果对比表格,详情点击[各个版本ONNX模型效果对比](#各个版本onnx模型效果对比)。v3的文本检测模型从指标来看是好于之前的v2的,推荐使用。++#### 🎧2022-04-04 update+- 增加python下的基于OpenVINO推理引擎的支持+- 给出OpenVINO和ONNXRuntime的性能对比表格+- 详情参见:[python/README](./python/README.md)++#### 2022-02-24 update+- 优化python目录下的推理代码+- 添加调用不同语言模型的推理代码示例+- 详情参见:[python/onnxruntime_infer/README](./python/onnxruntime_infer/README.md)++#### 2021-12-18 update+- 添加[Google Colab Demo](https://colab.research.google.com/github/RapidAI/RapidOCR/blob/main/RapidOCRDemo.ipynb)++#### 2021-11-28 update+- 更新[ocrweb](http://rapidocr.51pda.cn:9003/)部分+ - 添加显示各个阶段处理时间+ - 更新说明文档+ - 更换文本检测模型为`ch_PP-OCRv2_det_infer.onnx`,推理更快,更准++#### 2021-11-13 update+- 添加python版本中文本检测和识别可调节的超参数,主要有`box_thresh|unclip_ratio|text_score`,详情见[参数调节](python/README.md#相关调节参数)+- 将文本识别中字典位置以参数方式给出,便于灵活配置,详情见[keys_path](python/rapidOCR.sh)++#### 2021-10-27 update+- 添加使用onnxruntime-gpu版推理的代码(不过gpu版本的onnxruntime不太好用,按照[官方教程](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html)配置,感觉没有调用起来GPU)+- 具体使用步骤参见: [onnxruntime-gpu推理配置](python/README.md)++#### 2021-09-13 update+- 添加基于`python`的whl文件,便于使用,详情参见`release/python_sdk`++#### 2021-09-11 update+- 添加PP-OCRv2新增模型onnx版本+ - 使用方法推理代码不变,直接替换对应模型即可。+- 经过在自有测试集上评测:+ - PP-OCRv2检测模型效果有大幅度提升,模型大小没变。+ - PP-OCRv2识别模型效果无明显提升,模型大小增加了3.58M。+- 模型上传到[百度网盘 提取码:30jv](https://pan.baidu.com/s/1qkqWK4wRdMjqGGbzR-FyWg)++#### 2021-08-07 update+- 现在正在做的+ - [ ] PP-Structure 表格结构和cell坐标预测 正在整理中++- 之前做的,未完成的,欢迎提PR+ - [ ] 打Dokcer镜像+ - [x] 尝试onnxruntime-gpu推理++#### 2021-07-17 update+- 完善README文档+- 增加**英文、数字识别**onnx模型,具体参见`python/en_number_ppocr_mobile_v2_rec`,用法同其他+- 整理一下[模型转onnx](#模型转onnx)++#### 2021-07-04 update+- 目前仓库下的python程序已经可以在树莓派4B上,成功运行,详细信息请进群,询问群主+- 更新整体结构图,添加树莓派的支持++#### 2021-06-20 update+- 优化ocrweb中识别结果显示,同时添加识别动图演示+- 更新`datasets`目录,添加一些常用数据库链接(搬运一下^-^)+- 更新[FAQ](./FAQ.md)++#### 2021-06-10 update+- 添加server版文本识别模型,详情见[提取码:30jv](https://pan.baidu.com/s/1qkqWK4wRdMjqGGbzR-FyWg)++#### 2021-06-08 update+- 整理仓库,统一模型下载路径+- 完善相关说明文档++#### 2021-03-24 update+- 新模型已经完全兼容ONNXRuntime 1.7 或更高版本。 特别感谢:@Channingss+- 新版onnxruntime比1.6.0 性能提升40%以上。diff --git a/docs/change_log_en.md b/docs/change_log_en.mdnew file mode 100644index 0000000..2f26bdd--- /dev/null+++ b/docs/change_log_en.md@@ -0,0 +1,75 @@+#### 🍿2022-05-15 update+- Add the ONNX model converted from the PaddleOCR v3 rec model, just go to the network disk to download and replace it. ([Baidu Netdisk](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing ))+- Added a comparison table of the effects of each version of the text recognition model. For details, click [Comparison of the effects of various versions of ONNX models] (#Comparison of the effects of various versions of onnx models). The text recognition model of v3 is not as good as the previous one in terms of the indicators on the test set constructed by itself.++#### 😀2022-05-12 upadte+- Add the ONNX model converted from the PaddleOCR v3 det model, download it directly from the network disk, and replace it. ([Baidu Netdisk](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing ))+- Added a comparison table of text detection model effects of various versions. For details, click [Comparison of the effects of various versions of ONNX models] (#Comparison of the effects of various versions of onnx models). The text detection model of v3 is better than the previous v2 in terms of the indicators on the test set constructed by itself, and it is recommended to use it.++#### 2022-02-24 update+- Optimize the inference code of the python part.+- Add inference code examples that use the different language models.+- For details, see: [python/README](./python/README.md)++#### 2021-12-18 update+- Add [Google Colab Demo](https://colab.research.google.com/github/RapidAI/RapidOCR/blob/main/RapidOCRDemo.ipynb).+- Change the default det model of the `python/rapidOCR.sh`++#### 2021-11-28 update+- Update the [ocrweb](http://rapidocr.51pda.cn:9003/) part+ - Add the display of the inference time of each stage.+ - Add docs of the ocrweb.+ - Change the det model(`ch_PP-OCRv2_det_infer.onnx`), faster and more accurate.++#### 2021-11-13 update+- Add adjustable super parameters for text detection and recognition in Python version, mainly `box_thresh|unclip_ratio|text_score`, see [parameter adjustment](python/README.md#相关调节参数) for details+- The dictionary position in text recognition is given in parameter mode to facilitate flexible configuration. See [keys_path](python/rapidOCR.sh) for details++#### 2021-10-27 update+- Add the code that uses the onnxruntime GPU version of infering follow the [official tutorial](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html) Configuration. (however, the onnxruntime GPU version is not stable to use)++- See: `python/README.md` for specific steps.++#### 2021-09-13 update+- Add a whl file based on `Python` for ease of use. See `release/python` for details.++#### 2021-09-11 update+- Add `PP-OCRv2` new model onnx version.+- The infering code of the method is unchanged, and the corresponding model can be directly replaced.+- After evaluation on its own test set:+ - The effect of `PP-OCRv2` detection model has been greatly improved, and the model size has not changed.+ - The effect of `PP-OCRv2` recognition model was not significantly improved, and the model size increased by 3.58M.++- Upload the model to [Baidu online disk extraction code: 30jv](https://pan.baidu.com/s/1qkqWK4wRdMjqGGbzR-FyWg) or [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing)++#### 2021-08-07 update+- TODO:+ - [ ] PP structure table structure and cell coordinate prediction are being sorted out.++- Previously done, unfinished, welcome to PR+ - [ ] make dokcer image+ - [x] try onnxruntime GPU reasoning++#### 2021-07-17 update+- Improve the README document+- Add **English, number recognition**onnx model, please refer to `python/en_number_ppocr_mobile_v2_rec` for details, the usage is the same as others+- Organize [Model to onnx](#model-related)++#### 2021-07-04 update+- The python program under the repository can be successfully run on the Raspberry Pi 4B. For more information, please enter the QQ group and ask the group owner+- Update the overall structure diagram and add support for Raspberry Pi++#### 2021-06-20 update+- Optimize the display of recognition results in ocrweb, and add recognition animations to demonstrate at the same time+- Update the `datasets` directory, add some commonly used database links++#### 2021-06-10 update+- Add server version text recognition model, see details [Extract code:30jv](https://pan.baidu.com/s/1qkqWK4wRdMjqGGbzR-FyWg)++#### 2021-06-08 update+- Organize the warehouse and unify the model download path+- Improve related documentation++#### 2021-03-24 update+- The new model is fully compatible with ONNXRuntime 1.7 or higher. Special thanks: @Channingss+- The performance of the new version of onnxruntime is improved by more than 40% compared to 1.6.0.\ No newline at end of filediff --git a/python/README.md b/python/README.mdindex 2c375fc..0dca742 100755--- a/python/README.md+++ b/python/README.md@@ -1,3 +1,155 @@+### 使用步骤+1. 下载`python/onnxruntime_infer`目录到本地+2. 下载相应模型和用于显示的字体文件+ - 网盘下对应模型可直接替换([百度网盘](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing))++ - 下载之后模型和相应字体文件放在`fonts`和`models`下,最终目录结构如下:+ ```text+ models+ |-- ch_PP-OCRv2_det_infer.onnx+ |-- ch_ppocr_mobile_v2.0_cls_infer.onnx+ |-- ch_ppocr_mobile_v2.0_det_infer.onnx+ |-- ch_ppocr_server_v2.0_det_infer.onnx+ |-- ch_ppocr_server_v2.0_rec_infer.onnx+ |-- en_number_mobile_v2.0_rec_infer.onnx+ |-- korean_mobile_v2.0_rec_infer.onnx+ `-- japan_rec_crnn.onnx++ fonts+ |-- msyh.ttc+ `-- korean.ttf+ ```++1. 运行+ - 接口调用方式运行+ - 如果想要使用其他语言的识别模型,可以只对`rec_model_path`和`keys_path`作对应更改即可+ - **!!!各个不同语言的推理代码区别只在于模型和字典文件!!!**+ ```python+ from rapid_ocr_api import TextSystem, visualize++ det_model_path = 'models/ch_ppocr_mobile_v2.0_det_infer.onnx'+ cls_model_path = 'models/ch_ppocr_mobile_v2.0_cls_infer.onnx'++ # 中英文识别+ rec_model_path = 'models/ch_ppocr_mobile_v2.0_rec_infer.onnx'+ keys_path = 'rec_dict/ppocr_keys_v1.txt'++ text_sys = TextSystem(det_model_path,+ rec_model_path,+ use_angle_cls=True,+ cls_model_path=cls_model_path,+ keys_path=keys_path)++ image_path = r'test_images/det_images/ch_en_num.jpg'+ dt_boxes, rec_res = text_sys(image_path)+ visualize(image_path, dt_boxes, rec_res)+++ # 只有中英文和数字识别+ rec_model_path = 'models/en_number_mobile_v2.0_rec_infer.onnx'+ keys_path = 'rec_dict/en_dict.txt'++ text_sys = TextSystem(det_model_path,+ rec_model_path,+ use_angle_cls=True,+ cls_model_path=cls_model_path,+ keys_path=keys_path)++ image_path = r'test_images/det_images/en_num.png'+ dt_boxes, rec_res = text_sys(image_path)+ visualize(image_path, dt_boxes, rec_res)+++ # 日语识别+ rec_model_path = 'models/japan_rec_crnn.onnx'+ keys_path = 'rec_dict/japan_dict.txt'++ text_sys = TextSystem(det_model_path,+ rec_model_path,+ use_angle_cls=True,+ cls_model_path=cls_model_path,+ keys_path=keys_path)++ image_path = r'test_images/det_images/japan.png'+ dt_boxes, rec_res = text_sys(image_path)+ visualize(image_path, dt_boxes, rec_res)+++ # 韩语识别+ rec_model_path = 'models/korean_mobile_v2.0_rec_infer.onnx'+ keys_path = 'rec_dict/korean_dict.txt'+ font_path = 'fonts/korean.ttf'++ text_sys = TextSystem(det_model_path,+ rec_model_path,+ use_angle_cls=True,+ cls_model_path=cls_model_path,+ keys_path=keys_path)++ image_path = r'test_images/det_images/korean_1.jpg'+ dt_boxes, rec_res = text_sys(image_path)+ visualize(image_path, dt_boxes, rec_res, font_path)+ ```++ - 命令行运行+ ```shell+ $ bash test_demo.sh+ ```++### 相关调节参数+|参数名称|作用|建议取值范围|默认值|代码位置|+|:---:|:---:|:---:|:---:|:---:|+|box_thresh|文本检测所得框是否保留的阈值,值越大,召回率越低|[0, 1]|0.5|[text_detect.py](https://github.com/RapidAI/RapidOCR/blob/6aa79aa390c9c9e8f41df0f0c35f3dca97e6dc93/python/ch_ppocr_mobile_v2_det/text_detect.py?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L55)|+|unclip_ratio|控制文本检测框的大小,值越大,检测框整体越大|[1.6, 2.0]|1.6|[text_detect.py](https://github.com/RapidAI/RapidOCR/blob/6aa79aa390c9c9e8f41df0f0c35f3dca97e6dc93/python/ch_ppocr_mobile_v2_det/text_detect.py?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L57)|+|text_score|文本识别结果置信度,值越大,把握越大|[0, 1]|0.5|[rapidOCR.py](https://github.com/RapidAI/RapidOCR/blob/6aa79aa390c9c9e8f41df0f0c35f3dca97e6dc93/python/rapidOCR.py?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L270)|+++### onnxruntime-gpu版推理配置++1. **onnxruntime-gpu**需要严格按照与cuda、cudnn版本对应来安装,具体参考[文档](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements),**这一步关乎后面是否可以成功调用GPU**+ ```bash+ $ pip install onnxruntime-gpu==1.xxx+ ```+3. 推理代码中,加载onnx模型部分,用以下对应语言代码替换即可,详细参见:[官方教程](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html)+ - python版本+ ```python+ # 根据机器配置,安装对应版本的onnxruntime-gpu+ # pip install onnxruntime-gpu==xxxx++ import onnxruntime as ort++ model_path = '<path to model>'++ providers = ['CUDAExecutionProvider', 'CPUExecutionProvider']+ session = ort.InferenceSession(model_path, providers=providers)+ ```+ - C/C++版本+ ```c+++ OrtSessionOptions* session_options = /* ... */;++ OrtCUDAProviderOptions options;+ options.device_id = 0;+ options.arena_extend_strategy = 0;+ options.gpu_mem_limit = 2 * 1024 * 1024 * 1024;+ options.cudnn_conv_algo_search = OrtCudnnConvAlgoSearch::EXHAUSTIVE;+ options.do_copy_in_default_stream = 1;++ SessionOptionsAppendExecutionProvider_CUDA(session_options, &options);+ ```+3. 推理时间粗略对比(完整跑完一张图像)++ |推理方式|推理图像数目|耗费时间|+ |:---:|:---:|:---:|+ |CPU|46张图像|191 s|+ |GPU|46张图像|52.38 s|+++++++----------------------------------------------------------------+### 目录说明- [onnxruntime_infer](./onnxruntime_infer): 基于ONNXRuntime推理引擎推理- [openvino_infer](./openvino_infer): 基于OpenVINO推理引擎推理diff --git a/python/config.yaml b/python/config.yamlnew file mode 100644index 0000000..1a9b1f4--- /dev/null+++ b/python/config.yaml@@ -0,0 +1,48 @@+Global:+ text_score: 0.5+ use_angle_cls: true+ print_verbose: true++Det:+ module_name: ch_ppocr_v2_det+ class_name: TextDetector+ model_path: resources/models/ch_PP-OCRv2_det_infer.onnx.onnx++ pre_process:+ DetResizeForTest:+ limit_side_len: 736+ limit_type: min+ NormalizeImage:+ std: [0.229, 0.224, 0.225]+ mean: [0.485, 0.456, 0.406]+ scale: 1./255.+ order: hwc+ ToCHWImage:+ KeepKeys:+ keep_keys: ['image', 'shape']++ post_process:+ thresh: 0.3+ box_thresh: 0.5+ max_candidates: 1000+ unclip_ratio: 1.6+ use_dilation: true++Cls:+ module_name: ch_ppocr_v2_cls+ class_name: TextClassifier+ model_path: resources/models/ch_ppocr_mobile_v2.0_cls_infer.onnx++ cls_image_shape: [3, 48, 192]+ cls_batch_num: 6+ cls_thresh: 0.9+ label_list: ['0', '180']++Rec:+ module_name: ch_ppocr_v2_rec+ class_name: TextRecognizer+ model_path: resources/models/ch_ppocr_mobile_v2.0_rec_infer.onnx++ rec_img_shape: [3, 32, 320]+ rec_batch_num: 6+ keys_path: resources/rec_dict/ppocr_keys_v1.txtdiff --git a/python/onnxruntime_infer/README.md b/python/onnxruntime_infer/README.mddeleted file mode 100644index fd49a78..0000000--- a/python/onnxruntime_infer/README.md+++ /dev/null@@ -1,144 +0,0 @@-### 使用步骤-1. 下载`python/onnxruntime_infer`目录到本地-2. 下载相应模型和用于显示的字体文件- - 网盘下对应模型可直接替换([百度网盘](https://pan.baidu.com/s/1mkirNltJS481In4g81jP3w?pwd=zy37) | [Google Drive](https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY?usp=sharing))-- - 下载之后模型和相应字体文件放在`fonts`和`models`下,最终目录结构如下:- ```text- models- |-- ch_PP-OCRv2_det_infer.onnx- |-- ch_ppocr_mobile_v2.0_cls_infer.onnx- |-- ch_ppocr_mobile_v2.0_det_infer.onnx- |-- ch_ppocr_server_v2.0_det_infer.onnx- |-- ch_ppocr_server_v2.0_rec_infer.onnx- |-- en_number_mobile_v2.0_rec_infer.onnx- |-- korean_mobile_v2.0_rec_infer.onnx- `-- japan_rec_crnn.onnx-- fonts- |-- msyh.ttc- `-- korean.ttf- ```--1. 运行- - 接口调用方式运行- - 如果想要使用其他语言的识别模型,可以只对`rec_model_path`和`keys_path`作对应更改即可- - **!!!各个不同语言的推理代码区别只在于模型和字典文件!!!**- ```python- from rapid_ocr_api import TextSystem, visualize-- det_model_path = 'models/ch_ppocr_mobile_v2.0_det_infer.onnx'- cls_model_path = 'models/ch_ppocr_mobile_v2.0_cls_infer.onnx'-- # 中英文识别- rec_model_path = 'models/ch_ppocr_mobile_v2.0_rec_infer.onnx'- keys_path = 'rec_dict/ppocr_keys_v1.txt'-- text_sys = TextSystem(det_model_path,- rec_model_path,- use_angle_cls=True,- cls_model_path=cls_model_path,- keys_path=keys_path)-- image_path = r'test_images/det_images/ch_en_num.jpg'- dt_boxes, rec_res = text_sys(image_path)- visualize(image_path, dt_boxes, rec_res)--- # 只有中英文和数字识别- rec_model_path = 'models/en_number_mobile_v2.0_rec_infer.onnx'- keys_path = 'rec_dict/en_dict.txt'-- text_sys = TextSystem(det_model_path,- rec_model_path,- use_angle_cls=True,- cls_model_path=cls_model_path,- keys_path=keys_path)-- image_path = r'test_images/det_images/en_num.png'- dt_boxes, rec_res = text_sys(image_path)- visualize(image_path, dt_boxes, rec_res)--- # 日语识别- rec_model_path = 'models/japan_rec_crnn.onnx'- keys_path = 'rec_dict/japan_dict.txt'-- text_sys = TextSystem(det_model_path,- rec_model_path,- use_angle_cls=True,- cls_model_path=cls_model_path,- keys_path=keys_path)-- image_path = r'test_images/det_images/japan.png'- dt_boxes, rec_res = text_sys(image_path)- visualize(image_path, dt_boxes, rec_res)--- # 韩语识别- rec_model_path = 'models/korean_mobile_v2.0_rec_infer.onnx'- keys_path = 'rec_dict/korean_dict.txt'- font_path = 'fonts/korean.ttf'-- text_sys = TextSystem(det_model_path,- rec_model_path,- use_angle_cls=True,- cls_model_path=cls_model_path,- keys_path=keys_path)-- image_path = r'test_images/det_images/korean_1.jpg'- dt_boxes, rec_res = text_sys(image_path)- visualize(image_path, dt_boxes, rec_res, font_path)- ```-- - 命令行运行- ```shell- $ bash test_demo.sh- ```--### 相关调节参数-|参数名称|作用|建议取值范围|默认值|代码位置|-|:---:|:---:|:---:|:---:|:---:|-|box_thresh|文本检测所得框是否保留的阈值,值越大,召回率越低|[0, 1]|0.5|[text_detect.py](https://github.com/RapidAI/RapidOCR/blob/6aa79aa390c9c9e8f41df0f0c35f3dca97e6dc93/python/ch_ppocr_mobile_v2_det/text_detect.py?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L55)|-|unclip_ratio|控制文本检测框的大小,值越大,检测框整体越大|[1.6, 2.0]|1.6|[text_detect.py](https://github.com/RapidAI/RapidOCR/blob/6aa79aa390c9c9e8f41df0f0c35f3dca97e6dc93/python/ch_ppocr_mobile_v2_det/text_detect.py?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L57)|-|text_score|文本识别结果置信度,值越大,把握越大|[0, 1]|0.5|[rapidOCR.py](https://github.com/RapidAI/RapidOCR/blob/6aa79aa390c9c9e8f41df0f0c35f3dca97e6dc93/python/rapidOCR.py?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L270)|---### onnxruntime-gpu版推理配置--1. **onnxruntime-gpu**需要严格按照与cuda、cudnn版本对应来安装,具体参考[文档](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements),**这一步关乎后面是否可以成功调用GPU**- ```bash- $ pip install onnxruntime-gpu==1.xxx- ```-3. 推理代码中,加载onnx模型部分,用以下对应语言代码替换即可,详细参见:[官方教程](https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html)- - python版本- ```python- # 根据机器配置,安装对应版本的onnxruntime-gpu- # pip install onnxruntime-gpu==xxxx-- import onnxruntime as ort-- model_path = '<path to model>'-- providers = ['CUDAExecutionProvider', 'CPUExecutionProvider']- session = ort.InferenceSession(model_path, providers=providers)- ```- - C/C++版本- ```c++- OrtSessionOptions* session_options = /* ... */;-- OrtCUDAProviderOptions options;- options.device_id = 0;- options.arena_extend_strategy = 0;- options.gpu_mem_limit = 2 * 1024 * 1024 * 1024;- options.cudnn_conv_algo_search = OrtCudnnConvAlgoSearch::EXHAUSTIVE;- options.do_copy_in_default_stream = 1;-- SessionOptionsAppendExecutionProvider_CUDA(session_options, &options);- ```-3. 推理时间粗略对比(完整跑完一张图像)-- |推理方式|推理图像数目|耗费时间|- |:---:|:---:|:---:|- |CPU|46张图像|191 s|- |GPU|46张图像|52.38 s|diff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/__init__.py b/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/__init__.pydeleted file mode 100644index 3ecae8d..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/__init__.py+++ /dev/null@@ -1,6 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--# @File: __init__.py-# @Time: 2021/01/31 11:02:53-# @Author: Max-from .text_cls import TextClassifier\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/run.sh b/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/run.shdeleted file mode 100644index 963d8e3..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/run.sh+++ /dev/null@@ -1,9 +0,0 @@-#! /bin/bash-set -e errexit--root_path=$(cd $(dirname $0); pwd)-image_path=${root_path}"/test_images/rec_images/2021-01-18_14-22-32.png"-model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_cls_infer.onnx"--python text_cls.py --image_path ${image_path} \- --model_path ${model_path}\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/utils.py b/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/utils.pydeleted file mode 100644index 6fd2865..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/utils.py+++ /dev/null@@ -1,65 +0,0 @@-# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.-#-# Licensed under the Apache License, Version 2.0 (the "License");-# you may not use this file except in compliance with the License.-# You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.-import os-import cv2-import imghdr---def get_image_file_list(img_file):- imgs_lists = []- if img_file is None or not os.path.exists(img_file):- raise FileNotFoundError(f"not found any img file in {img_file}")-- img_end = {'jpg', 'bmp', 'png', 'jpeg', 'rgb', 'tif', 'tiff', 'gif', 'GIF'}- if os.path.isfile(img_file) and imghdr.what(img_file) in img_end:- imgs_lists.append(img_file)- elif os.path.isdir(img_file):- for single_file in os.listdir(img_file):- file_path = os.path.join(img_file, single_file)- if os.path.isfile(file_path) and imghdr.what(file_path) in img_end:- imgs_lists.append(file_path)- if len(imgs_lists) == 0:- raise FileNotFoundError(f"not found any img file in {img_file}")- return imgs_lists---def check_and_read_gif(img_path):- if os.path.basename(img_path)[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, False---class ClsPostProcess(object):- """ Convert between text-label and text-index """-- def __init__(self, label_list, **kwargs):- super(ClsPostProcess, self).__init__()- self.label_list = label_list-- def __call__(self, preds, label=None, *args, **kwargs):- pred_idxs = preds.argmax(axis=1)- decode_out = [(self.label_list[idx], preds[i, idx])- for i, idx in enumerate(pred_idxs)]- if label is None:- return decode_out- label = [(self.label_list[idx], 1.0) for idx in label]- return decode_out, label\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/__init__.py b/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/__init__.pydeleted file mode 100644index d7a3e0b..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/__init__.py+++ /dev/null@@ -1,6 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--# @File: __init__.py-# @Time: 2021/01/23 15:24:27-# @Author: Max-from .text_detect import TextDetector\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/run.sh b/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/run.shdeleted file mode 100644index 99fc806..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/run.sh+++ /dev/null@@ -1,9 +0,0 @@-#! /bin/bash-set -e errexit--root_path=$(cd $(dirname $0); pwd)-image_path=${root_path}"/test_images/det_images/1.jpg"-model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_det_infer.onnx"--python text_detect.py --image_path ${image_path} \- --model_path ${model_path}\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/text_detect.py b/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/text_detect.pydeleted file mode 100644index 87bb51a..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/text_detect.py+++ /dev/null@@ -1,159 +0,0 @@-# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.-#-# Licensed under the Apache License, Version 2.0 (the "License");-# you may not use this file except in compliance with the License.-# You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.-# !/usr/bin/env python-# -*- encoding: utf-8 -*--import argparse-import time--import cv2-import numpy as np-import onnxruntime--try:- from .utils import (DBPostProcess, check_and_read_gif, create_operators,- draw_text_det_res, transform)-except:- from utils import (DBPostProcess, check_and_read_gif, create_operators,- draw_text_det_res, transform)---class TextDetector(object):- def __init__(self, det_model_path):- pre_process_list = [{- 'DetResizeForTest': {- 'limit_side_len': 736,- 'limit_type': 'min'- }- }, {- 'NormalizeImage': {- 'std': [0.229, 0.224, 0.225],- 'mean': [0.485, 0.456, 0.406],- 'scale': '1./255.',- 'order': 'hwc'- }- }, {- 'ToCHWImage': None- }, {- 'KeepKeys': {- 'keep_keys': ['image', 'shape']- }- }]-- self.preprocess_op = create_operators(pre_process_list)- self.postprocess_op = DBPostProcess(thresh=0.3,- box_thresh=0.5,- max_candidates=1000,- unclip_ratio=1.6,- use_dilation=True)- sess_opt = onnxruntime.SessionOptions()- sess_opt.log_severity_level = 4- sess_opt.enable_cpu_mem_arena = False- self.session = onnxruntime.InferenceSession(det_model_path, sess_opt)- self.input_name = self.session.get_inputs()[0].name- self.output_name = self.session.get_outputs()[0].name-- def order_points_clockwise(self, pts):- """- reference from: https://github.com/jrosebr1/imutils/blob/master/imutils/perspective.py- # sort the points based on their x-coordinates- """- xSorted = pts[np.argsort(pts[:, 0]), :]-- # grab the left-most and right-most points from the sorted- # x-roodinate points- leftMost = xSorted[:2, :]- rightMost = xSorted[2:, :]-- # now, sort the left-most coordinates according to their- # y-coordinates so we can grab the top-left and bottom-left- # points, respectively- leftMost = leftMost[np.argsort(leftMost[:, 1]), :]- (tl, bl) = leftMost-- rightMost = rightMost[np.argsort(rightMost[:, 1]), :]- (tr, br) = rightMost-- rect = np.array([tl, tr, br, bl], dtype="float32")- return rect-- def clip_det_res(self, points, img_height, img_width):- for pno in range(points.shape[0]):- points[pno, 0] = int(min(max(points[pno, 0], 0), img_width - 1))- points[pno, 1] = int(min(max(points[pno, 1], 0), img_height - 1))- return points-- def filter_tag_det_res(self, dt_boxes, image_shape):- img_height, img_width = image_shape[0:2]- dt_boxes_new = []- for box in dt_boxes:- box = self.order_points_clockwise(box)- box = self.clip_det_res(box, img_height, img_width)- rect_width = int(np.linalg.norm(box[0] - box[1]))- rect_height = int(np.linalg.norm(box[0] - box[3]))- if rect_width <= 3 or rect_height <= 3:- continue- dt_boxes_new.append(box)- dt_boxes = np.array(dt_boxes_new)- return dt_boxes-- def filter_tag_det_res_only_clip(self, dt_boxes, image_shape):- img_height, img_width = image_shape[0:2]- dt_boxes_new = []- for box in dt_boxes:- box = self.clip_det_res(box, img_height, img_width)- dt_boxes_new.append(box)- dt_boxes = np.array(dt_boxes_new)- return dt_boxes-- def __call__(self, img):- ori_im = img.copy()- data = {'image': img}- data = transform(data, self.preprocess_op)- img, shape_list = data- if img is None:- return None, 0- img = np.expand_dims(img, axis=0)- img = img.astype(np.float32)- shape_list = np.expand_dims(shape_list, axis=0)-- starttime = time.time()- preds = self.session.run([self.output_name],- {self.input_name: img})-- post_result = self.postprocess_op(preds[0], shape_list)- dt_boxes = post_result[0]['points']- dt_boxes = self.filter_tag_det_res(dt_boxes, ori_im.shape)- elapse = time.time() - starttime- return dt_boxes, elapse---if __name__ == "__main__":- parser = argparse.ArgumentParser()- parser.add_argument('--image_path', type=str, help='image_path|image_dir')- parser.add_argument('--model_path', type=str, help='model_path')- args = parser.parse_args()-- text_detector = TextDetector(args.model_path)-- img, flag = check_and_read_gif(args.image_path)- if not flag:- img = cv2.imread(args.image_path)- if img is None:- raise ValueError(f"error in loading image:{args.image_path}")-- dt_boxes, elapse = text_detector(img)-- src_im = draw_text_det_res(dt_boxes, args.image_path)- cv2.imwrite('det_results.jpg', src_im)- print('图像已经保存为det_results.jpg了')diff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/utils.py b/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/utils.pydeleted file mode 100644index dfbea6c..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_det/utils.py+++ /dev/null@@ -1,414 +0,0 @@-"""-# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved-#-# Licensed under the Apache License, Version 2.0 (the "License");-# you may not use this file except in compliance with the License.-# You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.-"""-# coding:utf-8-from __future__ import (absolute_import, division, print_function,- unicode_literals)--import os-import sys--import cv2-import numpy as np-import pyclipper-import six-from shapely.geometry import Polygon---class DecodeImage(object):- """ decode image """-- def __init__(self, img_mode='RGB', channel_first=False, **kwargs):- self.img_mode = img_mode- self.channel_first = channel_first-- def __call__(self, data):- img = data['image']- if six.PY2:- assert type(img) is str and len(- img) > 0, "invalid input 'img' in DecodeImage"- else:- assert type(img) is bytes and len(- img) > 0, "invalid input 'img' in DecodeImage"- img = np.frombuffer(img, dtype='uint8')- img = cv2.imdecode(img, 1)- if img is None:- return None- if self.img_mode == 'GRAY':- img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)- elif self.img_mode == 'RGB':- assert img.shape[2] == 3, 'invalid shape of image[%s]' % (- img.shape)- img = img[:, :, ::-1]-- if self.channel_first:- img = img.transpose((2, 0, 1))-- data['image'] = img- return data---class NormalizeImage(object):- """ normalize image such as substract mean, divide std- """-- def __init__(self, scale=None, mean=None, std=None, order='chw', **kwargs):- if isinstance(scale, str):- scale = eval(scale)- self.scale = np.float32(scale if scale is not None else 1.0 / 255.0)- mean = mean if mean is not None else [0.485, 0.456, 0.406]- std = std if std is not None else [0.229, 0.224, 0.225]-- shape = (3, 1, 1) if order == 'chw' else (1, 1, 3)- self.mean = np.array(mean).reshape(shape).astype('float32')- self.std = np.array(std).reshape(shape).astype('float32')-- def __call__(self, data):- img = data['image']- from PIL import Image- if isinstance(img, Image.Image):- img = np.array(img)-- assert isinstance(img,- np.ndarray), "invalid input 'img' in NormalizeImage"- data['image'] = (- img.astype('float32') * self.scale - self.mean) / self.std- return data---class ToCHWImage(object):- """ convert hwc image to chw image- """-- def __init__(self, **kwargs):- pass-- def __call__(self, data):- img = data['image']- from PIL import Image- if isinstance(img, Image.Image):- img = np.array(img)- data['image'] = img.transpose((2, 0, 1))- return data---class KeepKeys(object):- def __init__(self, keep_keys, **kwargs):- self.keep_keys = keep_keys-- def __call__(self, data):- data_list = []- for key in self.keep_keys:- data_list.append(data[key])- return data_list---class DetResizeForTest(object):- def __init__(self, **kwargs):- super(DetResizeForTest, self).__init__()- self.resize_type = 0- if 'image_shape' in kwargs:- self.image_shape = kwargs['image_shape']- self.resize_type = 1- elif 'limit_side_len' in kwargs:- self.limit_side_len = kwargs['limit_side_len']- self.limit_type = kwargs.get('limit_type', 'min')-- if 'resize_long' in kwargs:- self.resize_type = 2- self.resize_long = kwargs.get('resize_long', 960)- else:- self.limit_side_len = 736- self.limit_type = 'min'-- def __call__(self, data):- img = data['image']- src_h, src_w, _ = img.shape-- if self.resize_type == 0:- # img, shape = self.resize_image_type0(img)- img, [ratio_h, ratio_w] = self.resize_image_type0(img)- elif self.resize_type == 2:- img, [ratio_h, ratio_w] = self.resize_image_type2(img)- else:- # img, shape = self.resize_image_type1(img)- img, [ratio_h, ratio_w] = self.resize_image_type1(img)- data['image'] = img- data['shape'] = np.array([src_h, src_w, ratio_h, ratio_w])- return data-- def resize_image_type1(self, img):- resize_h, resize_w = self.image_shape- ori_h, ori_w = img.shape[:2] # (h, w, c)- ratio_h = float(resize_h) / ori_h- ratio_w = float(resize_w) / ori_w- img = cv2.resize(img, (int(resize_w), int(resize_h)))- # return img, np.array([ori_h, ori_w])- return img, [ratio_h, ratio_w]-- def resize_image_type0(self, img):- """- resize image to a size multiple of 32 which is required by the network- args:- img(array): array with shape [h, w, c]- return(tuple):- img, (ratio_h, ratio_w)- """- limit_side_len = self.limit_side_len- h, w, _ = img.shape-- # limit the max side- if self.limit_type == 'max':- if max(h, w) > limit_side_len:- if h > w:- ratio = float(limit_side_len) / h- else:- ratio = float(limit_side_len) / w- else:- ratio = 1.- else:- if min(h, w) < limit_side_len:- if h < w:- ratio = float(limit_side_len) / h- else:- ratio = float(limit_side_len) / w- else:- ratio = 1.- resize_h = int(h * ratio)- resize_w = int(w * ratio)-- resize_h = int(round(resize_h / 32) * 32)- resize_w = int(round(resize_w / 32) * 32)-- try:- if int(resize_w) <= 0 or int(resize_h) <= 0:- return None, (None, None)- img = cv2.resize(img, (int(resize_w), int(resize_h)))- except:- print(img.shape, resize_w, resize_h)- sys.exit(0)- ratio_h = resize_h / float(h)- ratio_w = resize_w / float(w)- return img, [ratio_h, ratio_w]-- def resize_image_type2(self, img):- h, w, _ = img.shape-- resize_w = w- resize_h = h-- # Fix the longer side- if resize_h > resize_w:- ratio = float(self.resize_long) / resize_h- else:- ratio = float(self.resize_long) / resize_w-- resize_h = int(resize_h * ratio)- resize_w = int(resize_w * ratio)-- max_stride = 128- resize_h = (resize_h + max_stride - 1) // max_stride * max_stride- resize_w = (resize_w + max_stride - 1) // max_stride * max_stride- img = cv2.resize(img, (int(resize_w), int(resize_h)))- ratio_h = resize_h / float(h)- ratio_w = resize_w / float(w)-- return img, [ratio_h, ratio_w]---def transform(data, ops=None):- """ transform """- if ops is None:- ops = []- for op in ops:- data = op(data)- if data is None:- return None- return data---def check_and_read_gif(img_path):- if os.path.basename(img_path)[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, False---def create_operators(op_param_list, global_config=None):- """- create operators based on the config-- Args:- params(list): a dict list, used to create some operators- """- assert isinstance(- op_param_list, list), ('operator config should be a list')- ops = []- for operator in op_param_list:- assert isinstance(operator,- dict) and len(operator) == 1, "yaml format error"- op_name = list(operator)[0]- param = {} if operator[op_name] is None else operator[op_name]- if global_config is not None:- param.update(global_config)- op = eval(op_name)(**param)- ops.append(op)- return ops---def draw_text_det_res(dt_boxes, img_path):- src_im = cv2.imread(img_path)- for box in dt_boxes:- box = np.array(box).astype(np.int32).reshape(-1, 2)- cv2.polylines(src_im, [box], True,- color=(255, 255, 0), thickness=2)- return src_im---class DBPostProcess(object):- """- The post process for Differentiable Binarization (DB).- """-- def __init__(self,- thresh=0.3,- box_thresh=0.7,- max_candidates=1000,- unclip_ratio=2.0,- use_dilation=False,- **kwargs):- self.thresh = thresh- self.box_thresh = box_thresh- self.max_candidates = max_candidates- self.unclip_ratio = unclip_ratio- self.min_size = 3- self.dilation_kernel = None if not use_dilation else np.array(- [[1, 1], [1, 1]])-- def boxes_from_bitmap(self, pred, _bitmap, dest_width, dest_height):- '''- _bitmap: single map with shape (1, H, W),- whose values are binarized as {0, 1}- '''-- bitmap = _bitmap- height, width = bitmap.shape-- outs = cv2.findContours((bitmap * 255).astype(np.uint8), cv2.RETR_LIST,- cv2.CHAIN_APPROX_SIMPLE)- if len(outs) == 3:- img, contours, _ = outs[0], outs[1], outs[2]- elif len(outs) == 2:- contours, _ = outs[0], outs[1]-- num_contours = min(len(contours), self.max_candidates)-- boxes = []- scores = []- for index in range(num_contours):- contour = contours[index]- points, sside = self.get_mini_boxes(contour)- if sside < self.min_size:- continue- points = np.array(points)- score = self.box_score_fast(pred, points.reshape(-1, 2))- if self.box_thresh > score:- continue-- box = self.unclip(points).reshape(-1, 1, 2)- box, sside = self.get_mini_boxes(box)- if sside < self.min_size + 2:- continue- box = np.array(box)-- box[:, 0] = np.clip(- np.round(box[:, 0] / width * dest_width), 0, dest_width)- box[:, 1] = np.clip(- np.round(box[:, 1] / height * dest_height), 0, dest_height)- boxes.append(box.astype(np.int16))- scores.append(score)- return np.array(boxes, dtype=np.int16), scores-- def unclip(self, box):- unclip_ratio = self.unclip_ratio- poly = Polygon(box)- distance = poly.area * unclip_ratio / poly.length- offset = pyclipper.PyclipperOffset()- offset.AddPath(box, pyclipper.JT_ROUND, pyclipper.ET_CLOSEDPOLYGON)- expanded = np.array(offset.Execute(distance))- return expanded-- def get_mini_boxes(self, contour):- bounding_box = cv2.minAreaRect(contour)- points = sorted(list(cv2.boxPoints(bounding_box)), key=lambda x: x[0])-- index_1, index_2, index_3, index_4 = 0, 1, 2, 3- if points[1][1] > points[0][1]:- index_1 = 0- index_4 = 1- else:- index_1 = 1- index_4 = 0- if points[3][1] > points[2][1]:- index_2 = 2- index_3 = 3- else:- index_2 = 3- index_3 = 2-- box = [- points[index_1], points[index_2], points[index_3], points[index_4]- ]- return box, min(bounding_box[1])-- def box_score_fast(self, bitmap, _box):- h, w = bitmap.shape[:2]- box = _box.copy()- xmin = np.clip(np.floor(box[:, 0].min()).astype(np.int), 0, w - 1)- xmax = np.clip(np.ceil(box[:, 0].max()).astype(np.int), 0, w - 1)- ymin = np.clip(np.floor(box[:, 1].min()).astype(np.int), 0, h - 1)- ymax = np.clip(np.ceil(box[:, 1].max()).astype(np.int), 0, h - 1)-- mask = np.zeros((ymax - ymin + 1, xmax - xmin + 1), dtype=np.uint8)- box[:, 0] = box[:, 0] - xmin- box[:, 1] = box[:, 1] - ymin- cv2.fillPoly(mask, box.reshape(1, -1, 2).astype(np.int32), 1)- return cv2.mean(bitmap[ymin:ymax + 1, xmin:xmax + 1], mask)[0]-- def __call__(self, pred, shape_list):- pred = pred[:, 0, :, :]- segmentation = pred > self.thresh-- boxes_batch = []- for batch_index in range(pred.shape[0]):- src_h, src_w, ratio_h, ratio_w = shape_list[batch_index]- if self.dilation_kernel is not None:- mask = cv2.dilate(- np.array(segmentation[batch_index]).astype(np.uint8),- self.dilation_kernel)- else:- mask = segmentation[batch_index]- boxes, scores = self.boxes_from_bitmap(pred[batch_index], mask,- src_w, src_h)-- boxes_batch.append({'points': boxes})- return boxes_batchdiff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/run.sh b/python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/run.shdeleted file mode 100644index f519b8b..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/run.sh+++ /dev/null@@ -1,9 +0,0 @@-#! /bin/bash-set -e errexit--root_path=$(cd $(dirname $0); pwd)-image_path=${root_path}"/test_images/rec_images/2021-01-18_14-22-32.png"-model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_rec_infer.onnx"--python text_recognize.py --image_path ${image_path} \- --model_path ${model_path}\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/utils.py b/python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/utils.pydeleted file mode 100644index cb8c8d9..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/utils.py+++ /dev/null@@ -1,109 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--# @File: utils.py-# @Time: 2021/05/22 10:53:17-# @Author: Max-import cv2-import os-import imghdr-import numpy as np---def get_image_file_list(img_file):- imgs_lists = []- if img_file is None or not os.path.exists(img_file):- raise FileNotFoundError("not found any img file in {}".format(img_file))-- img_end = {'jpg', 'bmp', 'png', 'jpeg', 'rgb', 'tif', 'tiff', 'gif', 'GIF'}- if os.path.isfile(img_file) and imghdr.what(img_file) in img_end:- imgs_lists.append(img_file)- elif os.path.isdir(img_file):- for single_file in os.listdir(img_file):- file_path = os.path.join(img_file, single_file)- if imghdr.what(file_path) in img_end:- imgs_lists.append(file_path)- if len(imgs_lists) == 0:- raise FileNotFoundError("not found any img file in {}".format(img_file))- return imgs_lists---def check_and_read_gif(img_path):- if os.path.basename(img_path)[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, False---class CTCLabelDecode(object):- """ Convert between text-label and text-index """-- def __init__(self, character_dict_path):- super(CTCLabelDecode, self).__init__()- self.character_str = []- assert character_dict_path is not None, "character_dict_path should not be None"- with open(character_dict_path, "rb") as fin:- lines = fin.readlines()- for line in lines:- line = line.decode('utf-8').strip("\n").strip("\r\n")- self.character_str.append(line)- self.character_str.append(' ')- dict_character = self.character_str-- dict_character = self.add_special_char(dict_character)- self.dict = {}- for i, char in enumerate(dict_character):- self.dict[char] = i- self.character = dict_character-- def __call__(self, preds, label=None, *args, **kwargs):- preds_idx = preds.argmax(axis=2)- preds_prob = preds.max(axis=2)- text = self.decode(preds_idx, preds_prob,- is_remove_duplicate=True)- if label is None:- return text- label = self.decode(label)- return text, label-- def add_special_char(self, dict_character):- dict_character = ['blank'] + dict_character- return dict_character-- def get_ignored_tokens(self):- return [0] # for ctc blank-- def decode(self, text_index,- text_prob=None,- is_remove_duplicate=False):- """ convert text-index into text-label. """- result_list = []- ignored_tokens = self.get_ignored_tokens()- batch_size = len(text_index)- for batch_idx in range(batch_size):- char_list = []- conf_list = []- for idx in range(len(text_index[batch_idx])):- if text_index[batch_idx][idx] in ignored_tokens:- continue- if is_remove_duplicate:- # only for predict- if idx > 0 and text_index[batch_idx][idx - 1] == text_index[- batch_idx][idx]:- continue- char_list.append(self.character[int(text_index[batch_idx][- idx])])- if text_prob is not None:- conf_list.append(text_prob[batch_idx][idx])- else:- conf_list.append(1)- text = ''.join(char_list)- result_list.append((text, np.mean(conf_list)))- return result_list-diff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/__init__.py b/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/__init__.pydeleted file mode 100644index 686ffdd..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/__init__.py+++ /dev/null@@ -1 +0,0 @@-from .text_recognize import TextRecognizer\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/ppocr_keys_v1.txt b/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/ppocr_keys_v1.txtdeleted file mode 100644index 84b885d..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/ppocr_keys_v1.txt+++ /dev/null@@ -1,6623 +0,0 @@-'-疗-绚-诚-娇-溜-题-贿-者-廖-更-纳-加-奉-公-一-就-汴-计-与-路-房-原-妇-2-0-8---7-其->-:-]-,-,-骑-刈-全-消-昏-傈-安-久-钟-嗅-不-影-处-驽-蜿-资-关-椤-地-瘸-专-问-忖-票-嫉-炎-韵-要-月-田-节-陂-鄙-捌-备-拳-伺-眼-网-盎-大-傍-心-东-愉-汇-蹿-科-每-业-里-航-晏-字-平-录-先-1-3-彤-鲶-产-稍-督-腴-有-象-岳-注-绍-在-泺-文-定-核-名-水-过-理-让-偷-率-等-这-发-”-为-含-肥-酉-相-鄱-七-编-猥-锛-日-镀-蒂-掰-倒-辆-栾-栗-综-涩-州-雌-滑-馀-了-机-块-司-宰-甙-兴-矽-抚-保-用-沧-秩-如-收-息-滥-页-疑-埠-!-!-姥-异-橹-钇-向-下-跄-的-椴-沫-国-绥-獠-报-开-民-蜇-何-分-凇-长-讥-藏-掏-施-羽-中-讲-派-嘟-人-提-浼-间-世-而-古-多-倪-唇-饯-控-庚-首-赛-蜓-味-断-制-觉-技-替-艰-溢-潮-夕-钺-外-摘-枋-动-双-单-啮-户-枇-确-锦-曜-杜-或-能-效-霜-盒-然-侗-电-晁-放-步-鹃-新-杖-蜂-吒-濂-瞬-评-总-隍-对-独-合-也-是-府-青-天-诲-墙-组-滴-级-邀-帘-示-已-时-骸-仄-泅-和-遨-店-雇-疫-持-巍-踮-境-只-亨-目-鉴-崤-闲-体-泄-杂-作-般-轰-化-解-迂-诿-蛭-璀-腾-告-版-服-省-师-小-规-程-线-海-办-引-二-桧-牌-砺-洄-裴-修-图-痫-胡-许-犊-事-郛-基-柴-呼-食-研-奶-律-蛋-因-葆-察-戏-褒-戒-再-李-骁-工-貂-油-鹅-章-啄-休-场-给-睡-纷-豆-器-捎-说-敏-学-会-浒-设-诊-格-廓-查-来-霓-室-溆-¢-诡-寥-焕-舜-柒-狐-回-戟-砾-厄-实-翩-尿-五-入-径-惭-喹-股-宇-篝-|-;-美-期-云-九-祺-扮-靠-锝-槌-系-企-酰-阊-暂-蚕-忻-豁-本-羹-执-条-钦-H-獒-限-进-季-楦-于-芘-玖-铋-茯-未-答-粘-括-样-精-欠-矢-甥-帷-嵩-扣-令-仔-风-皈-行-支-部-蓉-刮-站-蜡-救-钊-汗-松-嫌-成-可-.-鹤-院-从-交-政-怕-活-调-球-局-验-髌-第-韫-谗-串-到-圆-年-米-/-*-友-忿-检-区-看-自-敢-刃-个-兹-弄-流-留-同-没-齿-星-聆-轼-湖-什-三-建-蛔-儿-椋-汕-震-颧-鲤-跟-力-情-璺-铨-陪-务-指-族-训-滦-鄣-濮-扒-商-箱-十-召-慷-辗-所-莞-管-护-臭-横-硒-嗓-接-侦-六-露-党-馋-驾-剖-高-侬-妪-幂-猗-绺-骐-央-酐-孝-筝-课-徇-缰-门-男-西-项-句-谙-瞒-秃-篇-教-碲-罚-声-呐-景-前-富-嘴-鳌-稀-免-朋-啬-睐-去-赈-鱼-住-肩-愕-速-旁-波-厅-健-茼-厥-鲟-谅-投-攸-炔-数-方-击-呋-谈-绩-别-愫-僚-躬-鹧-胪-炳-招-喇-膨-泵-蹦-毛-结-5-4-谱-识-陕-粽-婚-拟-构-且-搜-任-潘-比-郢-妨-醪-陀-桔-碘-扎-选-哈-骷-楷-亿-明-缆-脯-监-睫-逻-婵-共-赴-淝-凡-惦-及-达-揖-谩-澹-减-焰-蛹-番-祁-柏-员-禄-怡-峤-龙-白-叽-生-闯-起-细-装-谕-竟-聚-钙-上-导-渊-按-艾-辘-挡-耒-盹-饪-臀-记-邮-蕙-受-各-医-搂-普-滇-朗-茸-带-翻-酚-(-光-堤-墟-蔷-万-幻-〓-瑙-辈-昧-盏-亘-蛀-吉-铰-请-子-假-闻-税-井-诩-哨-嫂-好-面-琐-校-馊-鬣-缂-营-访-炖-占-农-缀-否-经-钚-棵-趟-张-亟-吏-茶-谨-捻-论-迸-堂-玉-信-吧-瞠-乡-姬-寺-咬-溏-苄-皿-意-赉-宝-尔-钰-艺-特-唳-踉-都-荣-倚-登-荐-丧-奇-涵-批-炭-近-符-傩-感-道-着-菊-虹-仲-众-懈-濯-颞-眺-南-释-北-缝-标-既-茗-整-撼-迤-贲-挎-耱-拒-某-妍-卫-哇-英-矶-藩-治-他-元-领-膜-遮-穗-蛾-飞-荒-棺-劫-么-市-火-温-拈-棚-洼-转-果-奕-卸-迪-伸-泳-斗-邡-侄-涨-屯-萋-胭-氡-崮-枞-惧-冒-彩-斜-手-豚-随-旭-淑-妞-形-菌-吲-沱-争-驯-歹-挟-兆-柱-传-至-包-内-响-临-红-功-弩-衡-寂-禁-老-棍-耆-渍-织-害-氵-渑-布-载-靥-嗬-虽-苹-咨-娄-库-雉-榜-帜-嘲-套-瑚-亲-簸-欧-边-6-腿-旮-抛-吹-瞳-得-镓-梗-厨-继-漾-愣-憨-士-策-窑-抑-躯-襟-脏-参-贸-言-干-绸-鳄-穷-藜-音-折-详-)-举-悍-甸-癌-黎-谴-死-罩-迁-寒-驷-袖-媒-蒋-掘-模-纠-恣-观-祖-蛆-碍-位-稿-主-澧-跌-筏-京-锏-帝-贴-证-糠-才-黄-鲸-略-炯-饱-四-出-园-犀-牧-容-汉-杆-浈-汰-瑷-造-虫-瘩-怪-驴-济-应-花-沣-谔-夙-旅-价-矿-以-考-s-u-呦-晒-巡-茅-准-肟-瓴-詹-仟-褂-译-桌-混-宁-怦-郑-抿-些-余-鄂-饴-攒-珑-群-阖-岔-琨-藓-预-环-洮-岌-宀-杲-瀵-最-常-囡-周-踊-女-鼓-袭-喉-简-范-薯-遐-疏-粱-黜-禧-法-箔-斤-遥-汝-奥-直-贞-撑-置-绱-集-她-馅-逗-钧-橱-魉-[-恙-躁-唤-9-旺-膘-待-脾-惫-购-吗-依-盲-度-瘿-蠖-俾-之-镗-拇-鲵-厝-簧-续-款-展-啃-表-剔-品-钻-腭-损-清-锶-统-涌-寸-滨-贪-链-吠-冈-伎-迥-咏-吁-览-防-迅-失-汾-阔-逵-绀-蔑-列-川-凭-努-熨-揪-利-俱-绉-抢-鸨-我-即-责-膦-易-毓-鹊-刹-玷-岿-空-嘞-绊-排-术-估-锷-违-们-苟-铜-播-肘-件-烫-审-鲂-广-像-铌-惰-铟-巳-胍-鲍-康-憧-色-恢-想-拷-尤-疳-知-S-Y-F-D-A-峄-裕-帮-握-搔-氐-氘-难-墒-沮-雨-叁-缥-悴-藐-湫-娟-苑-稠-颛-簇-后-阕-闭-蕤-缚-怎-佞-码-嘤-蔡-痊-舱-螯-帕-赫-昵-升-烬-岫-、-疵-蜻-髁-蕨-隶-烛-械-丑-盂-梁-强-鲛-由-拘-揉-劭-龟-撤-钩-呕-孛-费-妻-漂-求-阑-崖-秤-甘-通-深-补-赃-坎-床-啪-承-吼-量-暇-钼-烨-阂-擎-脱-逮-称-P-神-属-矗-华-届-狍-葑-汹-育-患-窒-蛰-佼-静-槎-运-鳗-庆-逝-曼-疱-克-代-官-此-麸-耧-蚌-晟-例-础-榛-副-测-唰-缢-迹-灬-霁-身-岁-赭-扛-又-菡-乜-雾-板-读-陷-徉-贯-郁-虑-变-钓-菜-圾-现-琢-式-乐-维-渔-浜-左-吾-脑-钡-警-T-啵-拴-偌-漱-湿-硕-止-骼-魄-积-燥-联-踢-玛-则-窿-见-振-畿-送-班-钽-您-赵-刨-印-讨-踝-籍-谡-舌-崧-汽-蔽-沪-酥-绒-怖-财-帖-肱-私-莎-勋-羔-霸-励-哼-帐-将-帅-渠-纪-婴-娩-岭-厘-滕-吻-伤-坝-冠-戊-隆-瘁-介-涧-物-黍-并-姗-奢-蹑-掣-垸-锴-命-箍-捉-病-辖-琰-眭-迩-艘-绌-繁-寅-若-毋-思-诉-类-诈-燮-轲-酮-狂-重-反-职-筱-县-委-磕-绣-奖-晋-濉-志-徽-肠-呈-獐-坻-口-片-碰-几-村-柿-劳-料-获-亩-惕-晕-厌-号-罢-池-正-鏖-煨-家-棕-复-尝-懋-蜥-锅-岛-扰-队-坠-瘾-钬-@-卧-疣-镇-譬-冰-彷-频-黯-据-垄-采-八-缪-瘫-型-熹-砰-楠-襁-箐-但-嘶-绳-啤-拍-盥-穆-傲-洗-盯-塘-怔-筛-丿-台-恒-喂-葛-永-¥-烟-酒-桦-书-砂-蚝-缉-态-瀚-袄-圳-轻-蛛-超-榧-遛-姒-奘-铮-右-荽-望-偻-卡-丶-氰-附-做-革-索-戚-坨-桷-唁-垅-榻-岐-偎-坛-莨-山-殊-微-骇-陈-爨-推-嗝-驹-澡-藁-呤-卤-嘻-糅-逛-侵-郓-酌-德-摇-※-鬃-被-慨-殡-羸-昌-泡-戛-鞋-河-宪-沿-玲-鲨-翅-哽-源-铅-语-照-邯-址-荃-佬-顺-鸳-町-霭-睾-瓢-夸-椁-晓-酿-痈-咔-侏-券-噎-湍-签-嚷-离-午-尚-社-锤-背-孟-使-浪-缦-潍-鞅-军-姹-驶-笑-鳟-鲁-》-孽-钜-绿-洱-礴-焯-椰-颖-囔-乌-孔-巴-互-性-椽-哞-聘-昨-早-暮-胶-炀-隧-低-彗-昝-铁-呓-氽-藉-喔-癖-瑗-姨-权-胱-韦-堑-蜜-酋-楝-砝-毁-靓-歙-锲-究-屋-喳-骨-辨-碑-武-鸠-宫-辜-烊-适-坡-殃-培-佩-供-走-蜈-迟-翼-况-姣-凛-浔-吃-飘-债-犟-金-促-苛-崇-坂-莳-畔-绂-兵-蠕-斋-根-砍-亢-欢-恬-崔-剁-餐-榫-快-扶-‖-濒-缠-鳜-当-彭-驭-浦-篮-昀-锆-秸-钳-弋-娣-瞑-夷-龛-苫-拱-致-%-嵊-障-隐-弑-初-娓-抉-汩-累-蓖-"-唬-助-苓-昙-押-毙-破-城-郧-逢-嚏-獭-瞻-溱-婿-赊-跨-恼-璧-萃-姻-貉-灵-炉-密-氛-陶-砸-谬-衔-点-琛-沛-枳-层-岱-诺-脍-榈-埂-征-冷-裁-打-蹴-素-瘘-逞-蛐-聊-激-腱-萘-踵-飒-蓟-吆-取-咙-簋-涓-矩-曝-挺-揣-座-你-史-舵-焱-尘-苏-笈-脚-溉-榨-诵-樊-邓-焊-义-庶-儋-蟋-蒲-赦-呷-杞-诠-豪-还-试-颓-茉-太-除-紫-逃-痴-草-充-鳕-珉-祗-墨-渭-烩-蘸-慕-璇-镶-穴-嵘-恶-骂-险-绋-幕-碉-肺-戳-刘-潞-秣-纾-潜-銮-洛-须-罘-销-瘪-汞-兮-屉-r-林-厕-质-探-划-狸-殚-善-煊-烹-〒-锈-逯-宸-辍-泱-柚-袍-远-蹋-嶙-绝-峥-娥-缍-雀-徵-认-镱-谷-=-贩-勉-撩-鄯-斐-洋-非-祚-泾-诒-饿-撬-威-晷-搭-芍-锥-笺-蓦-候-琊-档-礁-沼-卵-荠-忑-朝-凹-瑞-头-仪-弧-孵-畏-铆-突-衲-车-浩-气-茂-悖-厢-枕-酝-戴-湾-邹-飚-攘-锂-写-宵-翁-岷-无-喜-丈-挑-嗟-绛-殉-议-槽-具-醇-淞-笃-郴-阅-饼-底-壕-砚-弈-询-缕-庹-翟-零-筷-暨-舟-闺-甯-撞-麂-茌-蔼-很-珲-捕-棠-角-阉-媛-娲-诽-剿-尉-爵-睬-韩-诰-匣-危-糍-镯-立-浏-阳-少-盆-舔-擘-匪-申-尬-铣-旯-抖-赘-瓯-居-ˇ-哮-游-锭-茏-歌-坏-甚-秒-舞-沙-仗-劲-潺-阿-燧-郭-嗖-霏-忠-材-奂-耐-跺-砀-输-岖-媳-氟-极-摆-灿-今-扔-腻-枝-奎-药-熄-吨-话-q-额-慑-嘌-协-喀-壳-埭-视-著-於-愧-陲-翌-峁-颅-佛-腹-聋-侯-咎-叟-秀-颇-存-较-罪-哄-岗-扫-栏-钾-羌-己-璨-枭-霉-煌-涸-衿-键-镝-益-岢-奏-连-夯-睿-冥-均-糖-狞-蹊-稻-爸-刿-胥-煜-丽-肿-璃-掸-跚-灾-垂-樾-濑-乎-莲-窄-犹-撮-战-馄-软-络-显-鸢-胸-宾-妲-恕-埔-蝌-份-遇-巧-瞟-粒-恰-剥-桡-博-讯-凯-堇-阶-滤-卖-斌-骚-彬-兑-磺-樱-舷-两-娱-福-仃-差-找-桁-÷-净-把-阴-污-戬-雷-碓-蕲-楚-罡-焖-抽-妫-咒-仑-闱-尽-邑-菁-爱-贷-沥-鞑-牡-嗉-崴-骤-塌-嗦-订-拮-滓-捡-锻-次-坪-杩-臃-箬-融-珂-鹗-宗-枚-降-鸬-妯-阄-堰-盐-毅-必-杨-崃-俺-甬-状-莘-货-耸-菱-腼-铸-唏-痤-孚-澳-懒-溅-翘-疙-杷-淼-缙-骰-喊-悉-砻-坷-艇-赁-界-谤-纣-宴-晃-茹-归-饭-梢-铡-街-抄-肼-鬟-苯-颂-撷-戈-炒-咆-茭-瘙-负-仰-客-琉-铢-封-卑-珥-椿-镧-窨-鬲-寿-御-袤-铃-萎-砖-餮-脒-裳-肪-孕-嫣-馗-嵇-恳-氯-江-石-褶-冢-祸-阻-狈-羞-银-靳-透-咳-叼-敷-芷-啥-它-瓤-兰-痘-懊-逑-肌-往-捺-坊-甩-呻-〃-沦-忘-膻-祟-菅-剧-崆-智-坯-臧-霍-墅-攻-眯-倘-拢-骠-铐-庭-岙-瓠-′-缺-泥-迢-捶-?-?-郏-喙-掷-沌-纯-秘-种-听-绘-固-螨-团-香-盗-妒-埚-蓝-拖-旱-荞-铀-血-遏-汲-辰-叩-拽-幅-硬-惶-桀-漠-措-泼-唑-齐-肾-念-酱-虚-屁-耶-旗-砦-闵-婉-馆-拭-绅-韧-忏-窝-醋-葺-顾-辞-倜-堆-辋-逆-玟-贱-疾-董-惘-倌-锕-淘-嘀-莽-俭-笏-绑-鲷-杈-择-蟀-粥-嗯-驰-逾-案-谪-褓-胫-哩-昕-颚-鲢-绠-躺-鹄-崂-儒-俨-丝-尕-泌-啊-萸-彰-幺-吟-骄-苣-弦-脊-瑰-〈-诛-镁-析-闪-剪-侧-哟-框-螃-守-嬗-燕-狭-铈-缮-概-迳-痧-鲲-俯-售-笼-痣-扉-挖-满-咋-援-邱-扇-歪-便-玑-绦-峡-蛇-叨-〖-泽-胃-斓-喋-怂-坟-猪-该-蚬-炕-弥-赞-棣-晔-娠-挲-狡-创-疖-铕-镭-稷-挫-弭-啾-翔-粉-履-苘-哦-楼-秕-铂-土-锣-瘟-挣-栉-习-享-桢-袅-磨-桂-谦-延-坚-蔚-噗-署-谟-猬-钎-恐-嬉-雒-倦-衅-亏-璩-睹-刻-殿-王-算-雕-麻-丘-柯-骆-丸-塍-谚-添-鲈-垓-桎-蚯-芥-予-飕-镦-谌-窗-醚-菀-亮-搪-莺-蒿-羁-足-J-真-轶-悬-衷-靛-翊-掩-哒-炅-掐-冼-妮-l-谐-稚-荆-擒-犯-陵-虏-浓-崽-刍-陌-傻-孜-千-靖-演-矜-钕-煽-杰-酗-渗-伞-栋-俗-泫-戍-罕-沾-疽-灏-煦-芬-磴-叱-阱-榉-湃-蜀-叉-醒-彪-租-郡-篷-屎-良-垢-隗-弱-陨-峪-砷-掴-颁-胎-雯-绵-贬-沐-撵-隘-篙-暖-曹-陡-栓-填-臼-彦-瓶-琪-潼-哪-鸡-摩-啦-俟-锋-域-耻-蔫-疯-纹-撇-毒-绶-痛-酯-忍-爪-赳-歆-嘹-辕-烈-册-朴-钱-吮-毯-癜-娃-谀-邵-厮-炽-璞-邃-丐-追-词-瓒-忆-轧-芫-谯-喷-弟-半-冕-裙-掖-墉-绮-寝-苔-势-顷-褥-切-衮-君-佳-嫒-蚩-霞-佚-洙-逊-镖-暹-唛-&-殒-顶-碗-獗-轭-铺-蛊-废-恹-汨-崩-珍-那-杵-曲-纺-夏-薰-傀-闳-淬-姘-舀-拧-卷-楂-恍-讪-厩-寮-篪-赓-乘-灭-盅-鞣-沟-慎-挂-饺-鼾-杳-树-缨-丛-絮-娌-臻-嗳-篡-侩-述-衰-矛-圈-蚜-匕-筹-匿-濞-晨-叶-骋-郝-挚-蚴-滞-增-侍-描-瓣-吖-嫦-蟒-匾-圣-赌-毡-癞-恺-百-曳-需-篓-肮-庖-帏-卿-驿-遗-蹬-鬓-骡-歉-芎-胳-屐-禽-烦-晌-寄-媾-狄-翡-苒-船-廉-终-痞-殇-々-畦-饶-改-拆-悻-萄-£-瓿-乃-訾-桅-匮-溧-拥-纱-铍-骗-蕃-龋-缬-父-佐-疚-栎-醍-掳-蓄-x-惆-颜-鲆-榆-〔-猎-敌-暴-谥-鲫-贾-罗-玻-缄-扦-芪-癣-落-徒-臾-恿-猩-托-邴-肄-牵-春-陛-耀-刊-拓-蓓-邳-堕-寇-枉-淌-啡-湄-兽-酷-萼-碚-濠-萤-夹-旬-戮-梭-琥-椭-昔-勺-蜊-绐-晚-孺-僵-宣-摄-冽-旨-萌-忙-蚤-眉-噼-蟑-付-契-瓜-悼-颡-壁-曾-窕-颢-澎-仿-俑-浑-嵌-浣-乍-碌-褪-乱-蔟-隙-玩-剐-葫-箫-纲-围-伐-决-伙-漩-瑟-刑-肓-镳-缓-蹭-氨-皓-典-畲-坍-铑-檐-塑-洞-倬-储-胴-淳-戾-吐-灼-惺-妙-毕-珐-缈-虱-盖-羰-鸿-磅-谓-髅-娴-苴-唷-蚣-霹-抨-贤-唠-犬-誓-逍-庠-逼-麓-籼-釉-呜-碧-秧-氩-摔-霄-穸-纨-辟-妈-映-完-牛-缴-嗷-炊-恩-荔-茆-掉-紊-慌-莓-羟-阙-萁-磐-另-蕹-辱-鳐-湮-吡-吩-唐-睦-垠-舒-圜-冗-瞿-溺-芾-囱-匠-僳-汐-菩-饬-漓-黑-霰-浸-濡-窥-毂-蒡-兢-驻-鹉-芮-诙-迫-雳-厂-忐-臆-猴-鸣-蚪-栈-箕-羡-渐-莆-捍-眈-哓-趴-蹼-埕-嚣-骛-宏-淄-斑-噜-严-瑛-垃-椎-诱-压-庾-绞-焘-廿-抡-迄-棘-夫-纬-锹-眨-瞌-侠-脐-竞-瀑-孳-骧-遁-姜-颦-荪-滚-萦-伪-逸-粳-爬-锁-矣-役-趣-洒-颔-诏-逐-奸-甭-惠-攀-蹄-泛-尼-拼-阮-鹰-亚-颈-惑-勒-〉-际-肛-爷-刚-钨-丰-养-冶-鲽-辉-蔻-画-覆-皴-妊-麦-返-醉-皂-擀-〗-酶-凑-粹-悟-诀-硖-港-卜-z-杀-涕-±-舍-铠-抵-弛-段-敝-镐-奠-拂-轴-跛-袱-e-t-沉-菇-俎-薪-峦-秭-蟹-历-盟-菠-寡-液-肢-喻-染-裱-悱-抱-氙-赤-捅-猛-跑-氮-谣-仁-尺-辊-窍-烙-衍-架-擦-倏-璐-瑁-币-楞-胖-夔-趸-邛-惴-饕-虔-蝎-§-哉-贝-宽-辫-炮-扩-饲-籽-魏-菟-锰-伍-猝-末-琳-哚-蛎-邂-呀-姿-鄞-却-歧-仙-恸-椐-森-牒-寤-袒-婆-虢-雅-钉-朵-贼-欲-苞-寰-故-龚-坭-嘘-咫-礼-硷-兀-睢-汶-’-铲-烧-绕-诃-浃-钿-哺-柜-讼-颊-璁-腔-洽-咐-脲-簌-筠-镣-玮-鞠-谁-兼-姆-挥-梯-蝴-谘-漕-刷-躏-宦-弼-b-垌-劈-麟-莉-揭-笙-渎-仕-嗤-仓-配-怏-抬-错-泯-镊-孰-猿-邪-仍-秋-鼬-壹-歇-吵-炼-<-尧-射-柬-廷-胧-霾-凳-隋-肚-浮-梦-祥-株-堵-退-L-鹫-跎-凶-毽-荟-炫-栩-玳-甜-沂-鹿-顽-伯-爹-赔-蛴-徐-匡-欣-狰-缸-雹-蟆-疤-默-沤-啜-痂-衣-禅-w-i-h-辽-葳-黝-钗-停-沽-棒-馨-颌-肉-吴-硫-悯-劾-娈-马-啧-吊-悌-镑-峭-帆-瀣-涉-咸-疸-滋-泣-翦-拙-癸-钥-蜒-+-尾-庄-凝-泉-婢-渴-谊-乞-陆-锉-糊-鸦-淮-I-B-N-晦-弗-乔-庥-葡-尻-席-橡-傣-渣-拿-惩-麋-斛-缃-矮-蛏-岘-鸽-姐-膏-催-奔-镒-喱-蠡-摧-钯-胤-柠-拐-璋-鸥-卢-荡-倾-^-_-珀-逄-萧-塾-掇-贮-笆-聂-圃-冲-嵬-M-滔-笕-值-炙-偶-蜱-搐-梆-汪-蔬-腑-鸯-蹇-敞-绯-仨-祯-谆-梧-糗-鑫-啸-豺-囹-猾-巢-柄-瀛-筑-踌-沭-暗-苁-鱿-蹉-脂-蘖-牢-热-木-吸-溃-宠-序-泞-偿-拜-檩-厚-朐-毗-螳-吞-媚-朽-担-蝗-橘-畴-祈-糟-盱-隼-郜-惜-珠-裨-铵-焙-琚-唯-咚-噪-骊-丫-滢-勤-棉-呸-咣-淀-隔-蕾-窈-饨-挨-煅-短-匙-粕-镜-赣-撕-墩-酬-馁-豌-颐-抗-酣-氓-佑-搁-哭-递-耷-涡-桃-贻-碣-截-瘦-昭-镌-蔓-氚-甲-猕-蕴-蓬-散-拾-纛-狼-猷-铎-埋-旖-矾-讳-囊-糜-迈-粟-蚂-紧-鲳-瘢-栽-稼-羊-锄-斟-睁-桥-瓮-蹙-祉-醺-鼻-昱-剃-跳-篱-跷-蒜-翎-宅-晖-嗑-壑-峻-癫-屏-狠-陋-袜-途-憎-祀-莹-滟-佶-溥-臣-约-盛-峰-磁-慵-婪-拦-莅-朕-鹦-粲-裤-哎-疡-嫖-琵-窟-堪-谛-嘉-儡-鳝-斩-郾-驸-酊-妄-胜-贺-徙-傅-噌-钢-栅-庇-恋-匝-巯-邈-尸-锚-粗-佟-蛟-薹-纵-蚊-郅-绢-锐-苗-俞-篆-淆-膀-鲜-煎-诶-秽-寻-涮-刺-怀-噶-巨-褰-魅-灶-灌-桉-藕-谜-舸-薄-搀-恽-借-牯-痉-渥-愿-亓-耘-杠-柩-锔-蚶-钣-珈-喘-蹒-幽-赐-稗-晤-莱-泔-扯-肯-菪-裆-腩-豉-疆-骜-腐-倭-珏-唔-粮-亡-润-慰-伽-橄-玄-誉-醐-胆-龊-粼-塬-陇-彼-削-嗣-绾-芽-妗-垭-瘴-爽-薏-寨-龈-泠-弹-赢-漪-猫-嘧-涂-恤-圭-茧-烽-屑-痕-巾-赖-荸-凰-腮-畈-亵-蹲-偃-苇-澜-艮-换-骺-烘-苕-梓-颉-肇-哗-悄-氤-涠-葬-屠-鹭-植-竺-佯-诣-鲇-瘀-鲅-邦-移-滁-冯-耕-癔-戌-茬-沁-巩-悠-湘-洪-痹-锟-循-谋-腕-鳃-钠-捞-焉-迎-碱-伫-急-榷-奈-邝-卯-辄-皲-卟-醛-畹-忧-稳-雄-昼-缩-阈-睑-扌-耗-曦-涅-捏-瞧-邕-淖-漉-铝-耦-禹-湛-喽-莼-琅-诸-苎-纂-硅-始-嗨-傥-燃-臂-赅-嘈-呆-贵-屹-壮-肋-亍-蚀-卅-豹-腆-邬-迭-浊-}-童-螂-捐-圩-勐-触-寞-汊-壤-荫-膺-渌-芳-懿-遴-螈-泰-蓼-蛤-茜-舅-枫-朔-膝-眙-避-梅-判-鹜-璜-牍-缅-垫-藻-黔-侥-惚-懂-踩-腰-腈-札-丞-唾-慈-顿-摹-荻-琬-~-斧-沈-滂-胁-胀-幄-莜-Z-匀-鄄-掌-绰-茎-焚-赋-萱-谑-汁-铒-瞎-夺-蜗-野-娆-冀-弯-篁-懵-灞-隽-芡-脘-俐-辩-芯-掺-喏-膈-蝈-觐-悚-踹-蔗-熠-鼠-呵-抓-橼-峨-畜-缔-禾-崭-弃-熊-摒-凸-拗-穹-蒙-抒-祛-劝-闫-扳-阵-醌-踪-喵-侣-搬-仅-荧-赎-蝾-琦-买-婧-瞄-寓-皎-冻-赝-箩-莫-瞰-郊-笫-姝-筒-枪-遣-煸-袋-舆-痱-涛-母-〇-启-践-耙-绲-盘-遂-昊-搞-槿-诬-纰-泓-惨-檬-亻-越-C-o-憩-熵-祷-钒-暧-塔-阗-胰-咄-娶-魔-琶-钞-邻-扬-杉-殴-咽-弓-〆-髻-】-吭-揽-霆-拄-殖-脆-彻-岩-芝-勃-辣-剌-钝-嘎-甄-佘-皖-伦-授-徕-憔-挪-皇-庞-稔-芜-踏-溴-兖-卒-擢-饥-鳞-煲-‰-账-颗-叻-斯-捧-鳍-琮-讹-蛙-纽-谭-酸-兔-莒-睇-伟-觑-羲-嗜-宜-褐-旎-辛-卦-诘-筋-鎏-溪-挛-熔-阜-晰-鳅-丢-奚-灸-呱-献-陉-黛-鸪-甾-萨-疮-拯-洲-疹-辑-叙-恻-谒-允-柔-烂-氏-逅-漆-拎-惋-扈-湟-纭-啕-掬-擞-哥-忽-涤-鸵-靡-郗-瓷-扁-廊-怨-雏-钮-敦-E-懦-憋-汀-拚-啉-腌-岸-f-痼-瞅-尊-咀-眩-飙-忌-仝-迦-熬-毫-胯-篑-茄-腺-凄-舛-碴-锵-诧-羯-後-漏-汤-宓-仞-蚁-壶-谰-皑-铄-棰-罔-辅-晶-苦-牟-闽-\-烃-饮-聿-丙-蛳-朱-煤-涔-鳖-犁-罐-荼-砒-淦-妤-黏-戎-孑-婕-瑾-戢-钵-枣-捋-砥-衩-狙-桠-稣-阎-肃-梏-诫-孪-昶-婊-衫-嗔-侃-塞-蜃-樵-峒-貌-屿-欺-缫-阐-栖-诟-珞-荭-吝-萍-嗽-恂-啻-蜴-磬-峋-俸-豫-谎-徊-镍-韬-魇-晴-U-囟-猜-蛮-坐-囿-伴-亭-肝-佗-蝠-妃-胞-滩-榴-氖-垩-苋-砣-扪-馏-姓-轩-厉-夥-侈-禀-垒-岑-赏-钛-辐-痔-披-纸-碳-“-坞-蠓-挤-荥-沅-悔-铧-帼-蒌-蝇-a-p-y-n-g-哀-浆-瑶-凿-桶-馈-皮-奴-苜-佤-伶-晗-铱-炬-优-弊-氢-恃-甫-攥-端-锌-灰-稹-炝-曙-邋-亥-眶-碾-拉-萝-绔-捷-浍-腋-姑-菖-凌-涞-麽-锢-桨-潢-绎-镰-殆-锑-渝-铬-困-绽-觎-匈-糙-暑-裹-鸟-盔-肽-迷-綦-『-亳-佝-俘-钴-觇-骥-仆-疝-跪-婶-郯-瀹-唉-脖-踞-针-晾-忒-扼-瞩-叛-椒-疟-嗡-邗-肆-跆-玫-忡-捣-咧-唆-艄-蘑-潦-笛-阚-沸-泻-掊-菽-贫-斥-髂-孢-镂-赂-麝-鸾-屡-衬-苷-恪-叠-希-粤-爻-喝-茫-惬-郸-绻-庸-撅-碟-宄-妹-膛-叮-饵-崛-嗲-椅-冤-搅-咕-敛-尹-垦-闷-蝉-霎-勰-败-蓑-泸-肤-鹌-幌-焦-浠-鞍-刁-舰-乙-竿-裔-。-茵-函-伊-兄-丨-娜-匍-謇-莪-宥-似-蝽-翳-酪-翠-粑-薇-祢-骏-赠-叫-Q-噤-噻-竖-芗-莠-潭-俊-羿-耜-O-郫-趁-嗪-囚-蹶-芒-洁-笋-鹑-敲-硝-啶-堡-渲-揩-』-携-宿-遒-颍-扭-棱-割-萜-蔸-葵-琴-捂-饰-衙-耿-掠-募-岂-窖-涟-蔺-瘤-柞-瞪-怜-匹-距-楔-炜-哆-秦-缎-幼-茁-绪-痨-恨-楸-娅-瓦-桩-雪-嬴-伏-榔-妥-铿-拌-眠-雍-缇-‘-卓-搓-哌-觞-噩-屈-哧-髓-咦-巅-娑-侑-淫-膳-祝-勾-姊-莴-胄-疃-薛-蜷-胛-巷-芙-芋-熙-闰-勿-窃-狱-剩-钏-幢-陟-铛-慧-靴-耍-k-浙-浇-飨-惟-绗-祜-澈-啼-咪-磷-摞-诅-郦-抹-跃-壬-吕-肖-琏-颤-尴-剡-抠-凋-赚-泊-津-宕-殷-倔-氲-漫-邺-涎-怠-$-垮-荬-遵-俏-叹-噢-饽-蜘-孙-筵-疼-鞭-羧-牦-箭-潴-c-眸-祭-髯-啖-坳-愁-芩-驮-倡-巽-穰-沃-胚-怒-凤-槛-剂-趵-嫁-v-邢-灯-鄢-桐-睽-檗-锯-槟-婷-嵋-圻-诗-蕈-颠-遭-痢-芸-怯-馥-竭-锗-徜-恭-遍-籁-剑-嘱-苡-龄-僧-桑-潸-弘-澶-楹-悲-讫-愤-腥-悸-谍-椹-呢-桓-葭-攫-阀-翰-躲-敖-柑-郎-笨-橇-呃-魁-燎-脓-葩-磋-垛-玺-狮-沓-砜-蕊-锺-罹-蕉-翱-虐-闾-巫-旦-茱-嬷-枯-鹏-贡-芹-汛-矫-绁-拣-禺-佃-讣-舫-惯-乳-趋-疲-挽-岚-虾-衾-蠹-蹂-飓-氦-铖-孩-稞-瑜-壅-掀-勘-妓-畅-髋-W-庐-牲-蓿-榕-练-垣-唱-邸-菲-昆-婺-穿-绡-麒-蚱-掂-愚-泷-涪-漳-妩-娉-榄-讷-觅-旧-藤-煮-呛-柳-腓-叭-庵-烷-阡-罂-蜕-擂-猖-咿-媲-脉-【-沏-貅-黠-熏-哲-烁-坦-酵-兜-×-潇-撒-剽-珩-圹-乾-摸-樟-帽-嗒-襄-魂-轿-憬-锡-〕-喃-皆-咖-隅-脸-残-泮-袂-鹂-珊-囤-捆-咤-误-徨-闹-淙-芊-淋-怆-囗-拨-梳-渤-R-G-绨-蚓-婀-幡-狩-麾-谢-唢-裸-旌-伉-纶-裂-驳-砼-咛-澄-樨-蹈-宙-澍-倍-貔-操-勇-蟠-摈-砧-虬-够-缁-悦-藿-撸-艹-摁-淹-豇-虎-榭-ˉ-吱-d-°-喧-荀-踱-侮-奋-偕-饷-犍-惮-坑-璎-徘-宛-妆-袈-倩-窦-昂-荏-乖-K-怅-撰-鳙-牙-袁-酞-X-痿-琼-闸-雁-趾-荚-虻-涝-《-杏-韭-偈-烤-绫-鞘-卉-症-遢-蓥-诋-杭-荨-匆-竣-簪-辙-敕-虞-丹-缭-咩-黟-m-淤-瑕-咂-铉-硼-茨-嶂-痒-畸-敬-涿-粪-窘-熟-叔-嫔-盾-忱-裘-憾-梵-赡-珙-咯-娘-庙-溯-胺-葱-痪-摊-荷-卞-乒-髦-寐-铭-坩-胗-枷-爆-溟-嚼-羚-砬-轨-惊-挠-罄-竽-菏-氧-浅-楣-盼-枢-炸-阆-杯-谏-噬-淇-渺-俪-秆-墓-泪-跻-砌-痰-垡-渡-耽-釜-讶-鳎-煞-呗-韶-舶-绷-鹳-缜-旷-铊-皱-龌-檀-霖-奄-槐-艳-蝶-旋-哝-赶-骞-蚧-腊-盈-丁-`-蜚-矸-蝙-睨-嚓-僻-鬼-醴-夜-彝-磊-笔-拔-栀-糕-厦-邰-纫-逭-纤-眦-膊-馍-躇-烯-蘼-冬-诤-暄-骶-哑-瘠-」-臊-丕-愈-咱-螺-擅-跋-搏-硪-谄-笠-淡-嘿-骅-谧-鼎-皋-姚-歼-蠢-驼-耳-胬-挝-涯-狗-蒽-孓-犷-凉-芦-箴-铤-孤-嘛-坤-V-茴-朦-挞-尖-橙-诞-搴-碇-洵-浚-帚-蜍-漯-柘-嚎-讽-芭-荤-咻-祠-秉-跖-埃-吓-糯-眷-馒-惹-娼-鲑-嫩-讴-轮-瞥-靶-褚-乏-缤-宋-帧-删-驱-碎-扑-俩-俄-偏-涣-竹-噱-皙-佰-渚-唧-斡-#-镉-刀-崎-筐-佣-夭-贰-肴-峙-哔-艿-匐-牺-镛-缘-仡-嫡-劣-枸-堀-梨-簿-鸭-蒸-亦-稽-浴-{-衢-束-槲-j-阁-揍-疥-棋-潋-聪-窜-乓-睛-插-冉-阪-苍-搽-「-蟾-螟-幸-仇-樽-撂-慢-跤-幔-俚-淅-覃-觊-溶-妖-帛-侨-曰-妾-泗-·-:-瀘-風-Ë-(-)-∶-紅-紗-瑭-雲-頭-鶏-財-許-•-¥-樂-焗-麗-—-;-滙-東-榮-繪-興-…-門-業-π-楊-國-顧-é-盤-寳-Λ-龍-鳳-島-誌-緣-結-銭-萬-勝-祎-璟-優-歡-臨-時-購-=-★-藍-昇-鐵-觀-勅-農-聲-畫-兿-術-發-劉-記-專-耑-園-書-壴-種-Ο-●-褀-號-銀-匯-敟-锘-葉-橪-廣-進-蒄-鑽-阝-祙-貢-鍋-豊-夬-喆-團-閣-開-燁-賓-館-酡-沔-順-+-硚-劵-饸-陽-車-湓-復-萊-氣-軒-華-堃-迮-纟-戶-馬-學-裡-電-嶽-獨-マ-シ-サ-ジ-燘-袪-環-❤-臺-灣-専-賣-孖-聖-攝-線-▪-α-傢-俬-夢-達-莊-喬-貝-薩-劍-羅-壓-棛-饦-尃-璈-囍-醫-G-I-A-#-N-鷄-髙-嬰-啓-約-隹-潔-賴-藝-~-寶-籣-麺--嶺-√-義-網-峩-長-∧-魚-機-構-②-鳯-偉-L-B-㙟-畵-鴿-'-詩-溝-嚞-屌-藔-佧-玥-蘭-織-1-3-9-0-7-點-砭-鴨-鋪-銘-廳-弍-‧-創-湯-坶-℃-卩-骝-&-烜-荘-當-潤-扞-係-懷-碶-钅-蚨-讠-☆-叢-爲-埗-涫-塗-→-楽-現-鯨-愛-瑪-鈺-忄-悶-藥-飾-樓-視-孬-ㆍ-燚-苪-師-①-丼-锽-│-韓-標-è-兒-閏-匋-張-漢-Ü-髪-會-閑-檔-習-裝-の-峯-菘-輝-И-雞-釣-億-浐-K-O-R-8-H-E-P-T-W-D-S-C-M-F-姌-饹-»-晞-廰-ä-嵯-鷹-負-飲-絲-冚-楗-澤-綫-區-❋-←-質-靑-揚-③-滬-統-産-協-﹑-乸-畐-經-運-際-洺-岽-為-粵-諾-崋-豐-碁-ɔ-V-2-6-齋-誠-訂-´-勑-雙-陳-無-í-泩-媄-夌-刂-i-c-t-o-r-a-嘢-耄-燴-暃-壽-媽-靈-抻-體-唻-É-冮-甹-鎮-錦-ʌ-蜛-蠄-尓-駕-戀-飬-逹-倫-貴-極-Я-Й-寬-磚-嶪-郎-職-|-間-n-d-剎-伈-課-飛-橋-瘊-№-譜-骓-圗-滘-縣-粿-咅-養-濤-彳-®-%-Ⅱ-啰-㴪-見-矞-薬-糁-邨-鲮-顔-罱-З-選-話-贏-氪-俵-競-瑩-繡-枱-β-綉-á-獅-爾-™-麵-戋-淩-徳-個-劇-場-務-簡-寵-h-實-膠-轱-圖-築-嘣-樹-㸃-營-耵-孫-饃-鄺-飯-麯-遠-輸-坫-孃-乚-閃-鏢-㎡-題-廠-關-↑-爺-將-軍-連-篦-覌-參-箸---窠-棽-寕-夀-爰-歐-呙-閥-頡-熱-雎-垟-裟-凬-勁-帑-馕-夆-疌-枼-馮-貨-蒤-樸-彧-旸-靜-龢-暢-㐱-鳥-珺-鏡-灡-爭-堷-廚-Ó-騰-診-┅-蘇-褔-凱-頂-豕-亞-帥-嘬-⊥-仺-桖-複-饣-絡-穂-顏-棟-納-▏-濟-親-設-計-攵-埌-烺-ò-頤-燦-蓮-撻-節-講-濱-濃-娽-洳-朿-燈-鈴-護-膚-铔-過-補-Z-U-5-4-坋-闿-䖝-餘-缐-铞-貿-铪-桼-趙-鍊-[-㐂-垚-菓-揸-捲-鐘-滏-𣇉-爍-輪-燜-鴻-鮮-動-鹞-鷗-丄-慶-鉌-翥-飮-腸-⇋-漁-覺-來-熘-昴-翏-鲱-圧-鄉-萭-頔-爐-嫚-г-貭-類-聯-幛-輕-訓-鑒-夋-锨-芃-珣-䝉-扙-嵐-銷-處-ㄱ-語-誘-苝-歸-儀-燒-楿-內-粢-葒-奧-麥-礻-滿-蠔-穵-瞭-態-鱬-榞-硂-鄭-黃-煙-祐-奓-逺-*-瑄-獲-聞-薦-讀-這-樣-決-問-啟-們-執-説-轉-單-隨-唘-帶-倉-庫-還-贈-尙-皺-■-餅-產-○-∈-報-狀-楓-賠-琯-嗮-禮-`-傳->-≤-嗞-Φ-≥-換-咭-∣-↓-曬-ε-応-寫-″-終-様-純-費-療-聨-凍-壐-郵-ü-黒-∫-製-塊-調-軽-確-撃-級-馴-Ⅲ-涇-繹-數-碼-證-狒-処-劑-<-晧-賀-衆-]-櫥-兩-陰-絶-對-鯉-憶-◎-p-e-Y-蕒-煖-頓-測-試-鼽-僑-碩-妝-帯-≈-鐡-舖-權-喫-倆-ˋ-該-悅-ā-俫-.-f-s-b-m-k-g-u-j-貼-淨-濕-針-適-備-l-/-給-謢-強-觸-衛-與-⊙-$-緯-變-⑴-⑵-⑶-㎏-殺-∩-幚-─-價-▲-離-ú-ó-飄-烏-関-閟-﹝-﹞-邏-輯-鍵-驗-訣-導-歷-屆-層-▼-儱-錄-熳-ē-艦-吋-錶-辧-飼-顯-④-禦-販-気-対-枰-閩-紀-幹-瞓-貊-淚-△-眞-墊-Ω-獻-褲-縫-緑-亜-鉅-餠-{-}-◆-蘆-薈-█-◇-溫-彈-晳-粧-犸-穩-訊-崬-凖-熥-П-舊-條-紋-圍-Ⅳ-筆-尷-難-雜-錯-綁-識-頰-鎖-艶-□-殁-殼-⑧-├-▕-鵬-ǐ-ō-ǒ-糝-綱-▎-μ-盜-饅-醬-籤-蓋-釀-鹽-據-à-ɡ-辦-◥-彐-┌-婦-獸-鲩-伱-ī-蒟-蒻-齊-袆-腦-寧-凈-妳-煥-詢-偽-謹-啫-鯽-騷-鱸-損-傷-鎻-髮-買-冏-儥-両-﹢-∞-載-喰-z-羙-悵-燙-曉-員-組-徹-艷-痠-鋼-鼙-縮-細-嚒-爯-≠-維-"-鱻-壇-厍-帰-浥-犇-薡-軎-²-應-醜-刪-緻-鶴-賜-噁-軌-尨-镔-鷺-槗-彌-葚-濛-請-溇-緹-賢-訪-獴-瑅-資-縤-陣-蕟-栢-韻-祼-恁-伢-謝-劃-涑-總-衖-踺-砋-凉-籃-駿-苼-瘋-昽-紡-驊-腎-﹗-響-杋-剛-嚴-禪-歓-槍-傘-檸-檫-炣-勢-鏜-鎢-銑-尐-減-奪-惡-θ-僮-婭-臘-ū-ì-殻-鉄-∑-蛲-焼-緖-續-紹-懮\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/text_recognize.py b/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/text_recognize.pydeleted file mode 100644index b548d0f..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/text_recognize.py+++ /dev/null@@ -1,156 +0,0 @@-# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.-#-# Licensed under the Apache License, Version 2.0 (the "License");-# you may not use this file except in compliance with the License.-# You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.-import argparse-import math-import time-from pathlib import Path--import cv2-import numpy as np-import onnxruntime--try:- from .utils import CTCLabelDecode, check_and_read_gif, get_image_file_list-except:- from utils import CTCLabelDecode, check_and_read_gif, get_image_file_list---root_path = Path(__file__).parent---class TextRecognizer(object):- def __init__(self, rec_model_path, keys_path=None):- self.rec_image_shape = [3, 48, 320]- self.character_type = 'ch'- self.rec_batch_num = 6-- if keys_path is None:- self.character_dict_path = str(root_path / 'ppocr_keys_v1.txt')- else:- self.character_dict_path = keys_path-- self.use_space_char = True- self.postprocess_op = CTCLabelDecode(self.character_dict_path,- self.character_type,- self.use_space_char)-- sess_opt = onnxruntime.SessionOptions()- sess_opt.log_severity_level = 4- sess_opt.enable_cpu_mem_arena = False- self.session = onnxruntime.InferenceSession(rec_model_path, sess_opt)-- def resize_norm_img(self, img, max_wh_ratio):- img_channel, img_height, img_width = self.rec_image_shape- assert img_channel == img.shape[2]- if self.character_type == "ch":- img_width = int((32 * max_wh_ratio))- max_wh_ratio = 1- h, w = img.shape[:2]- ratio = w / float(h)- if math.ceil(img_height * ratio) > img_width:- resized_w = img_width- else:- resized_w = int(math.ceil(img_height * ratio))- resized_image = cv2.resize(img, (resized_w, img_height))- resized_image = resized_image.astype('float32')- resized_image = resized_image.transpose((2, 0, 1)) / 255- resized_image -= 0.5- resized_image /= 0.5- padding_im = np.zeros((img_channel, img_height, img_width),- dtype=np.float32)- padding_im[:, :, 0:resized_w] = resized_image- return padding_im-- def resize_norm_img_svtr(self, img, image_shape):- imgC, imgH, imgW = image_shape- resized_image = cv2.resize(- img, (imgW, imgH), interpolation=cv2.INTER_LINEAR)- resized_image = resized_image.astype('float32')- resized_image = resized_image.transpose((2, 0, 1)) / 255- resized_image -= 0.5- resized_image /= 0.5- return resized_image-- @staticmethod- def load_image(image_dir):- image_file_list = get_image_file_list(image_dir)- valid_image_file_list = []- img_list = []- for image_file in image_file_list:- img, flag = check_and_read_gif(image_file)- if not flag:- img = cv2.imread(image_file)- if img is None:- print(f"error in loading image:{image_file}")- continue- valid_image_file_list.append(image_file)- img_list.append(img)- return img_list-- def __call__(self, image_dir):- if not isinstance(image_dir, list):- img_list = self.load_image(image_dir)- else:- img_list = image_dir- img_num = len(img_list)- # Calculate the aspect ratio of all text bars- width_list = []- for img in img_list:- width_list.append(img.shape[1] / float(img.shape[0]))- # Sorting can speed up the recognition process- indices = np.argsort(np.array(width_list))-- rec_res = [['', 0.0]] * img_num- batch_num = self.rec_batch_num- elapse = 0- for beg_img_no in range(0, img_num, batch_num):- end_img_no = min(img_num, beg_img_no + batch_num)- norm_img_batch = []- max_wh_ratio = 0- for ino in range(beg_img_no, end_img_no):- h, w = img_list[indices[ino]].shape[0:2]- wh_ratio = w * 1.0 / h- max_wh_ratio = max(max_wh_ratio, wh_ratio)-- for ino in range(beg_img_no, end_img_no):- norm_img = self.resize_norm_img(img_list[indices[ino]],- max_wh_ratio)- # norm_img = self.resize_norm_img_svtr(img_list[indices[ino]],- # self.rec_image_shape)- norm_img = norm_img[np.newaxis, :]- norm_img_batch.append(norm_img)- norm_img_batch = np.concatenate(norm_img_batch)- norm_img_batch = norm_img_batch.astype(np.float32)-- # onnx模型推理- starttime = time.time()- onnx_inputs = {self.session.get_inputs()[0].name: norm_img_batch}- preds = self.session.run(None, onnx_inputs)[0]-- rec_result = self.postprocess_op(preds)- for rno in range(len(rec_result)):- rec_res[indices[beg_img_no + rno]] = rec_result[rno]- elapse += time.time() - starttime- return rec_res, elapse---if __name__ == "__main__":- parser = argparse.ArgumentParser()- parser.add_argument('image_dir', type=str, help='image_dir|image_path')- parser.add_argument('model_path', type=str, help='rec_model_path')- args = parser.parse_args()-- text_recognizer = TextRecognizer(args.model_path)- rec_res, predict_time = text_recognizer(args.image_dir)- print(f'识别结果: {rec_res}\t cost: {predict_time}s')diff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/utils.py b/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/utils.pydeleted file mode 100644index bf9e731..0000000--- a/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/utils.py+++ /dev/null@@ -1,109 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--# @File: PostProcess.py-# @Time: 2021/01/19 14:12:35-# @Author: Max-import imghdr-import os--import cv2-import numpy as np---class CTCLabelDecode(object):- """ Convert between text-label and text-index """-- def __init__(self, character_dict_path):- super(CTCLabelDecode, self).__init__()- self.character_str = []- assert character_dict_path is not None, "character_dict_path should not be None"- with open(character_dict_path, "rb") as fin:- lines = fin.readlines()- for line in lines:- line = line.decode('utf-8').strip("\n").strip("\r\n")- self.character_str.append(line)- self.character_str.append(' ')- dict_character = self.character_str-- dict_character = self.add_special_char(dict_character)- self.dict = {}- for i, char in enumerate(dict_character):- self.dict[char] = i- self.character = dict_character-- def __call__(self, preds, label=None, *args, **kwargs):- preds_idx = preds.argmax(axis=2)- preds_prob = preds.max(axis=2)- text = self.decode(preds_idx, preds_prob,- is_remove_duplicate=True)- if label is None:- return text- label = self.decode(label)- return text, label-- def add_special_char(self, dict_character):- dict_character = ['blank'] + dict_character- return dict_character-- def get_ignored_tokens(self):- return [0] # for ctc blank-- def decode(self, text_index,- text_prob=None,- is_remove_duplicate=False):- """ convert text-index into text-label. """- result_list = []- ignored_tokens = self.get_ignored_tokens()- batch_size = len(text_index)- for batch_idx in range(batch_size):- char_list = []- conf_list = []- for idx in range(len(text_index[batch_idx])):- if text_index[batch_idx][idx] in ignored_tokens:- continue- if is_remove_duplicate:- # only for predict- if idx > 0 and text_index[batch_idx][idx - 1] == text_index[- batch_idx][idx]:- continue- char_list.append(self.character[int(text_index[batch_idx][- idx])])- if text_prob is not None:- conf_list.append(text_prob[batch_idx][idx])- else:- conf_list.append(1)- text = ''.join(char_list)- result_list.append((text, np.mean(conf_list)))- return result_list---def get_image_file_list(img_file):- imgs_lists = []- if img_file is None or not os.path.exists(img_file):- raise FileNotFoundError("not found any img file in {}".format(img_file))-- img_end = {'jpg', 'bmp', 'png', 'jpeg', 'rgb', 'tif', 'tiff', 'gif', 'GIF'}- if os.path.isfile(img_file) and imghdr.what(img_file) in img_end:- imgs_lists.append(img_file)- elif os.path.isdir(img_file):- for single_file in os.listdir(img_file):- file_path = os.path.join(img_file, single_file)- if imghdr.what(file_path) in img_end:- imgs_lists.append(file_path)- if len(imgs_lists) == 0:- raise FileNotFoundError("not found any img file in {}".format(img_file))- return imgs_lists---def check_and_read_gif(img_path):- if os.path.basename(img_path)[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, Falsediff --git a/python/onnxruntime_infer/ch_ppocr_server_v2_det/__init__.py b/python/onnxruntime_infer/ch_ppocr_server_v2_det/__init__.pydeleted file mode 100644index d7a3e0b..0000000--- a/python/onnxruntime_infer/ch_ppocr_server_v2_det/__init__.py+++ /dev/null@@ -1,6 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--# @File: __init__.py-# @Time: 2021/01/23 15:24:27-# @Author: Max-from .text_detect import TextDetector\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_server_v2_det/run.sh b/python/onnxruntime_infer/ch_ppocr_server_v2_det/run.shdeleted file mode 100644index 6fd4f40..0000000--- a/python/onnxruntime_infer/ch_ppocr_server_v2_det/run.sh+++ /dev/null@@ -1,9 +0,0 @@-#! /bin/bash-set -e errexit--root_path=$(cd $(dirname $0); pwd)-image_path=${root_path}"/test_images/det_images/1.jpg"-model_path=${root_path}"/models/ch_ppocr_server_v2.0_det_infer.onnx"--python text_detect.py --image_path ${image_path} \- --model_path ${model_path}\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_server_v2_det/utils.py b/python/onnxruntime_infer/ch_ppocr_server_v2_det/utils.pydeleted file mode 100644index 4ed6e55..0000000--- a/python/onnxruntime_infer/ch_ppocr_server_v2_det/utils.py+++ /dev/null@@ -1,416 +0,0 @@-# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.-#-# Licensed under the Apache License, Version 2.0 (the "License");-# you may not use this file except in compliance with the License.-# You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.-# !/usr/bin/env python-# -*- encoding: utf-8 -*--# @File: utils.py-# coding:utf-8-from __future__ import (absolute_import, division, print_function,- unicode_literals)--import os-import sys--import cv2-import numpy as np-import pyclipper-import six-from shapely.geometry import Polygon---class DecodeImage(object):- """ decode image """-- def __init__(self, img_mode='RGB', channel_first=False, **kwargs):- self.img_mode = img_mode- self.channel_first = channel_first-- def __call__(self, data):- img = data['image']- if six.PY2:- assert type(img) is str and len(- img) > 0, "invalid input 'img' in DecodeImage"- else:- assert type(img) is bytes and len(- img) > 0, "invalid input 'img' in DecodeImage"- img = np.frombuffer(img, dtype='uint8')- img = cv2.imdecode(img, 1)- if img is None:- return None- if self.img_mode == 'GRAY':- img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)- elif self.img_mode == 'RGB':- assert img.shape[2] == 3, 'invalid shape of image[%s]' % (- img.shape)- img = img[:, :, ::-1]-- if self.channel_first:- img = img.transpose((2, 0, 1))-- data['image'] = img- return data---class NormalizeImage(object):- """ normalize image such as substract mean, divide std- """-- def __init__(self, scale=None, mean=None, std=None, order='chw', **kwargs):- if isinstance(scale, str):- scale = eval(scale)- self.scale = np.float32(scale if scale is not None else 1.0 / 255.0)- mean = mean if mean is not None else [0.485, 0.456, 0.406]- std = std if std is not None else [0.229, 0.224, 0.225]-- shape = (3, 1, 1) if order == 'chw' else (1, 1, 3)- self.mean = np.array(mean).reshape(shape).astype('float32')- self.std = np.array(std).reshape(shape).astype('float32')-- def __call__(self, data):- img = data['image']- from PIL import Image- if isinstance(img, Image.Image):- img = np.array(img)-- assert isinstance(img,- np.ndarray), "invalid input 'img' in NormalizeImage"- data['image'] = (- img.astype('float32') * self.scale - self.mean) / self.std- return data---class ToCHWImage(object):- """ convert hwc image to chw image- """-- def __init__(self, **kwargs):- pass-- def __call__(self, data):- img = data['image']- from PIL import Image- if isinstance(img, Image.Image):- img = np.array(img)- data['image'] = img.transpose((2, 0, 1))- return data---class KeepKeys(object):- def __init__(self, keep_keys, **kwargs):- self.keep_keys = keep_keys-- def __call__(self, data):- data_list = []- for key in self.keep_keys:- data_list.append(data[key])- return data_list---class DetResizeForTest(object):- def __init__(self, **kwargs):- super(DetResizeForTest, self).__init__()- self.resize_type = 0- if 'image_shape' in kwargs:- self.image_shape = kwargs['image_shape']- self.resize_type = 1- elif 'limit_side_len' in kwargs:- self.limit_side_len = kwargs['limit_side_len']- self.limit_type = kwargs.get('limit_type', 'min')-- if 'resize_long' in kwargs:- self.resize_type = 2- self.resize_long = kwargs.get('resize_long', 960)- else:- self.limit_side_len = 736- self.limit_type = 'min'-- def __call__(self, data):- img = data['image']- src_h, src_w, _ = img.shape-- if self.resize_type == 0:- # img, shape = self.resize_image_type0(img)- img, [ratio_h, ratio_w] = self.resize_image_type0(img)- elif self.resize_type == 2:- img, [ratio_h, ratio_w] = self.resize_image_type2(img)- else:- # img, shape = self.resize_image_type1(img)- img, [ratio_h, ratio_w] = self.resize_image_type1(img)- data['image'] = img- data['shape'] = np.array([src_h, src_w, ratio_h, ratio_w])- return data-- def resize_image_type1(self, img):- resize_h, resize_w = self.image_shape- ori_h, ori_w = img.shape[:2] # (h, w, c)- ratio_h = float(resize_h) / ori_h- ratio_w = float(resize_w) / ori_w- img = cv2.resize(img, (int(resize_w), int(resize_h)))- # return img, np.array([ori_h, ori_w])- return img, [ratio_h, ratio_w]-- def resize_image_type0(self, img):- """- resize image to a size multiple of 32 which is required by the network- args:- img(array): array with shape [h, w, c]- return(tuple):- img, (ratio_h, ratio_w)- """- limit_side_len = self.limit_side_len- h, w, _ = img.shape-- # limit the max side- if self.limit_type == 'max':- if max(h, w) > limit_side_len:- if h > w:- ratio = float(limit_side_len) / h- else:- ratio = float(limit_side_len) / w- else:- ratio = 1.- else:- if min(h, w) < limit_side_len:- if h < w:- ratio = float(limit_side_len) / h- else:- ratio = float(limit_side_len) / w- else:- ratio = 1.- resize_h = int(h * ratio)- resize_w = int(w * ratio)-- resize_h = int(round(resize_h / 32) * 32)- resize_w = int(round(resize_w / 32) * 32)-- try:- if int(resize_w) <= 0 or int(resize_h) <= 0:- return None, (None, None)- img = cv2.resize(img, (int(resize_w), int(resize_h)))- except:- print(img.shape, resize_w, resize_h)- sys.exit(0)- ratio_h = resize_h / float(h)- ratio_w = resize_w / float(w)- return img, [ratio_h, ratio_w]-- def resize_image_type2(self, img):- h, w, _ = img.shape-- resize_w = w- resize_h = h-- # Fix the longer side- if resize_h > resize_w:- ratio = float(self.resize_long) / resize_h- else:- ratio = float(self.resize_long) / resize_w-- resize_h = int(resize_h * ratio)- resize_w = int(resize_w * ratio)-- max_stride = 128- resize_h = (resize_h + max_stride - 1) // max_stride * max_stride- resize_w = (resize_w + max_stride - 1) // max_stride * max_stride- img = cv2.resize(img, (int(resize_w), int(resize_h)))- ratio_h = resize_h / float(h)- ratio_w = resize_w / float(w)-- return img, [ratio_h, ratio_w]---def transform(data, ops=None):- """ transform """- if ops is None:- ops = []- for op in ops:- data = op(data)- if data is None:- return None- return data---def check_and_read_gif(img_path):- if os.path.basename(img_path)[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, False---def create_operators(op_param_list, global_config=None):- """- create operators based on the config-- Args:- params(list): a dict list, used to create some operators- """- assert isinstance(- op_param_list, list), ('operator config should be a list')- ops = []- for operator in op_param_list:- assert isinstance(operator,- dict) and len(operator) == 1, "yaml format error"- op_name = list(operator)[0]- param = {} if operator[op_name] is None else operator[op_name]- if global_config is not None:- param.update(global_config)- op = eval(op_name)(**param)- ops.append(op)- return ops---def draw_text_det_res(dt_boxes, img_path):- src_im = cv2.imread(img_path)- for box in dt_boxes:- box = np.array(box).astype(np.int32).reshape(-1, 2)- cv2.polylines(src_im, [box], True,- color=(255, 255, 0), thickness=2)- return src_im---class DBPostProcess(object):- """- The post process for Differentiable Binarization (DB).- """-- def __init__(self,- thresh=0.3,- box_thresh=0.7,- max_candidates=1000,- unclip_ratio=2.0,- use_dilation=False,- **kwargs):- self.thresh = thresh- self.box_thresh = box_thresh- self.max_candidates = max_candidates- self.unclip_ratio = unclip_ratio- self.min_size = 3- self.dilation_kernel = None if not use_dilation else np.array(- [[1, 1], [1, 1]])-- def boxes_from_bitmap(self, pred, _bitmap, dest_width, dest_height):- '''- _bitmap: single map with shape (1, H, W),- whose values are binarized as {0, 1}- '''-- bitmap = _bitmap- height, width = bitmap.shape-- outs = cv2.findContours((bitmap * 255).astype(np.uint8),- cv2.RETR_LIST,- cv2.CHAIN_APPROX_SIMPLE)- if len(outs) == 3:- img, contours, _ = outs[0], outs[1], outs[2]- elif len(outs) == 2:- contours, _ = outs[0], outs[1]-- num_contours = min(len(contours), self.max_candidates)-- boxes = []- scores = []- for index in range(num_contours):- contour = contours[index]- points, sside = self.get_mini_boxes(contour)- if sside < self.min_size:- continue- points = np.array(points)- score = self.box_score_fast(pred, points.reshape(-1, 2))- if self.box_thresh > score:- continue-- box = self.unclip(points).reshape(-1, 1, 2)- box, sside = self.get_mini_boxes(box)- if sside < self.min_size + 2:- continue- box = np.array(box)-- box[:, 0] = np.clip(- np.round(box[:, 0] / width * dest_width), 0, dest_width)- box[:, 1] = np.clip(- np.round(box[:, 1] / height * dest_height), 0, dest_height)- boxes.append(box.astype(np.int16))- scores.append(score)- return np.array(boxes, dtype=np.int16), scores-- def unclip(self, box):- unclip_ratio = self.unclip_ratio- poly = Polygon(box)- distance = poly.area * unclip_ratio / poly.length- offset = pyclipper.PyclipperOffset()- offset.AddPath(box, pyclipper.JT_ROUND, pyclipper.ET_CLOSEDPOLYGON)- expanded = np.array(offset.Execute(distance))- return expanded-- def get_mini_boxes(self, contour):- bounding_box = cv2.minAreaRect(contour)- points = sorted(list(cv2.boxPoints(bounding_box)), key=lambda x: x[0])-- index_1, index_2, index_3, index_4 = 0, 1, 2, 3- if points[1][1] > points[0][1]:- index_1 = 0- index_4 = 1- else:- index_1 = 1- index_4 = 0- if points[3][1] > points[2][1]:- index_2 = 2- index_3 = 3- else:- index_2 = 3- index_3 = 2-- box = [- points[index_1], points[index_2], points[index_3], points[index_4]- ]- return box, min(bounding_box[1])-- def box_score_fast(self, bitmap, _box):- h, w = bitmap.shape[:2]- box = _box.copy()- xmin = np.clip(np.floor(box[:, 0].min()).astype(np.int), 0, w - 1)- xmax = np.clip(np.ceil(box[:, 0].max()).astype(np.int), 0, w - 1)- ymin = np.clip(np.floor(box[:, 1].min()).astype(np.int), 0, h - 1)- ymax = np.clip(np.ceil(box[:, 1].max()).astype(np.int), 0, h - 1)-- mask = np.zeros((ymax - ymin + 1, xmax - xmin + 1), dtype=np.uint8)- box[:, 0] = box[:, 0] - xmin- box[:, 1] = box[:, 1] - ymin- cv2.fillPoly(mask, box.reshape(1, -1, 2).astype(np.int32), 1)- return cv2.mean(bitmap[ymin:ymax + 1, xmin:xmax + 1], mask)[0]-- def __call__(self, pred, shape_list):- pred = pred[:, 0, :, :]- segmentation = pred > self.thresh-- boxes_batch = []- for batch_index in range(pred.shape[0]):- src_h, src_w, ratio_h, ratio_w = shape_list[batch_index]- if self.dilation_kernel is not None:- mask = cv2.dilate(- np.array(segmentation[batch_index]).astype(np.uint8),- self.dilation_kernel)- else:- mask = segmentation[batch_index]- boxes, scores = self.boxes_from_bitmap(pred[batch_index], mask,- src_w, src_h)-- boxes_batch.append({'points': boxes})- return boxes_batchdiff --git a/python/onnxruntime_infer/ch_ppocr_server_v2_rec/__init__.py b/python/onnxruntime_infer/ch_ppocr_server_v2_rec/__init__.pydeleted file mode 100644index 8c082c6..0000000--- a/python/onnxruntime_infer/ch_ppocr_server_v2_rec/__init__.py+++ /dev/null@@ -1,6 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--# @File: __init__.py-# @Time: 2021/02/03 08:15:19-# @Author: Max-from .text_recognize import TextRecognizerdiff --git a/python/onnxruntime_infer/ch_ppocr_server_v2_rec/ppocr_keys_v1.txt b/python/onnxruntime_infer/ch_ppocr_server_v2_rec/ppocr_keys_v1.txtdeleted file mode 100644index 84b885d..0000000--- a/python/onnxruntime_infer/ch_ppocr_server_v2_rec/ppocr_keys_v1.txt+++ /dev/null@@ -1,6623 +0,0 @@-'-疗-绚-诚-娇-溜-题-贿-者-廖-更-纳-加-奉-公-一-就-汴-计-与-路-房-原-妇-2-0-8---7-其->-:-]-,-,-骑-刈-全-消-昏-傈-安-久-钟-嗅-不-影-处-驽-蜿-资-关-椤-地-瘸-专-问-忖-票-嫉-炎-韵-要-月-田-节-陂-鄙-捌-备-拳-伺-眼-网-盎-大-傍-心-东-愉-汇-蹿-科-每-业-里-航-晏-字-平-录-先-1-3-彤-鲶-产-稍-督-腴-有-象-岳-注-绍-在-泺-文-定-核-名-水-过-理-让-偷-率-等-这-发-”-为-含-肥-酉-相-鄱-七-编-猥-锛-日-镀-蒂-掰-倒-辆-栾-栗-综-涩-州-雌-滑-馀-了-机-块-司-宰-甙-兴-矽-抚-保-用-沧-秩-如-收-息-滥-页-疑-埠-!-!-姥-异-橹-钇-向-下-跄-的-椴-沫-国-绥-獠-报-开-民-蜇-何-分-凇-长-讥-藏-掏-施-羽-中-讲-派-嘟-人-提-浼-间-世-而-古-多-倪-唇-饯-控-庚-首-赛-蜓-味-断-制-觉-技-替-艰-溢-潮-夕-钺-外-摘-枋-动-双-单-啮-户-枇-确-锦-曜-杜-或-能-效-霜-盒-然-侗-电-晁-放-步-鹃-新-杖-蜂-吒-濂-瞬-评-总-隍-对-独-合-也-是-府-青-天-诲-墙-组-滴-级-邀-帘-示-已-时-骸-仄-泅-和-遨-店-雇-疫-持-巍-踮-境-只-亨-目-鉴-崤-闲-体-泄-杂-作-般-轰-化-解-迂-诿-蛭-璀-腾-告-版-服-省-师-小-规-程-线-海-办-引-二-桧-牌-砺-洄-裴-修-图-痫-胡-许-犊-事-郛-基-柴-呼-食-研-奶-律-蛋-因-葆-察-戏-褒-戒-再-李-骁-工-貂-油-鹅-章-啄-休-场-给-睡-纷-豆-器-捎-说-敏-学-会-浒-设-诊-格-廓-查-来-霓-室-溆-¢-诡-寥-焕-舜-柒-狐-回-戟-砾-厄-实-翩-尿-五-入-径-惭-喹-股-宇-篝-|-;-美-期-云-九-祺-扮-靠-锝-槌-系-企-酰-阊-暂-蚕-忻-豁-本-羹-执-条-钦-H-獒-限-进-季-楦-于-芘-玖-铋-茯-未-答-粘-括-样-精-欠-矢-甥-帷-嵩-扣-令-仔-风-皈-行-支-部-蓉-刮-站-蜡-救-钊-汗-松-嫌-成-可-.-鹤-院-从-交-政-怕-活-调-球-局-验-髌-第-韫-谗-串-到-圆-年-米-/-*-友-忿-检-区-看-自-敢-刃-个-兹-弄-流-留-同-没-齿-星-聆-轼-湖-什-三-建-蛔-儿-椋-汕-震-颧-鲤-跟-力-情-璺-铨-陪-务-指-族-训-滦-鄣-濮-扒-商-箱-十-召-慷-辗-所-莞-管-护-臭-横-硒-嗓-接-侦-六-露-党-馋-驾-剖-高-侬-妪-幂-猗-绺-骐-央-酐-孝-筝-课-徇-缰-门-男-西-项-句-谙-瞒-秃-篇-教-碲-罚-声-呐-景-前-富-嘴-鳌-稀-免-朋-啬-睐-去-赈-鱼-住-肩-愕-速-旁-波-厅-健-茼-厥-鲟-谅-投-攸-炔-数-方-击-呋-谈-绩-别-愫-僚-躬-鹧-胪-炳-招-喇-膨-泵-蹦-毛-结-5-4-谱-识-陕-粽-婚-拟-构-且-搜-任-潘-比-郢-妨-醪-陀-桔-碘-扎-选-哈-骷-楷-亿-明-缆-脯-监-睫-逻-婵-共-赴-淝-凡-惦-及-达-揖-谩-澹-减-焰-蛹-番-祁-柏-员-禄-怡-峤-龙-白-叽-生-闯-起-细-装-谕-竟-聚-钙-上-导-渊-按-艾-辘-挡-耒-盹-饪-臀-记-邮-蕙-受-各-医-搂-普-滇-朗-茸-带-翻-酚-(-光-堤-墟-蔷-万-幻-〓-瑙-辈-昧-盏-亘-蛀-吉-铰-请-子-假-闻-税-井-诩-哨-嫂-好-面-琐-校-馊-鬣-缂-营-访-炖-占-农-缀-否-经-钚-棵-趟-张-亟-吏-茶-谨-捻-论-迸-堂-玉-信-吧-瞠-乡-姬-寺-咬-溏-苄-皿-意-赉-宝-尔-钰-艺-特-唳-踉-都-荣-倚-登-荐-丧-奇-涵-批-炭-近-符-傩-感-道-着-菊-虹-仲-众-懈-濯-颞-眺-南-释-北-缝-标-既-茗-整-撼-迤-贲-挎-耱-拒-某-妍-卫-哇-英-矶-藩-治-他-元-领-膜-遮-穗-蛾-飞-荒-棺-劫-么-市-火-温-拈-棚-洼-转-果-奕-卸-迪-伸-泳-斗-邡-侄-涨-屯-萋-胭-氡-崮-枞-惧-冒-彩-斜-手-豚-随-旭-淑-妞-形-菌-吲-沱-争-驯-歹-挟-兆-柱-传-至-包-内-响-临-红-功-弩-衡-寂-禁-老-棍-耆-渍-织-害-氵-渑-布-载-靥-嗬-虽-苹-咨-娄-库-雉-榜-帜-嘲-套-瑚-亲-簸-欧-边-6-腿-旮-抛-吹-瞳-得-镓-梗-厨-继-漾-愣-憨-士-策-窑-抑-躯-襟-脏-参-贸-言-干-绸-鳄-穷-藜-音-折-详-)-举-悍-甸-癌-黎-谴-死-罩-迁-寒-驷-袖-媒-蒋-掘-模-纠-恣-观-祖-蛆-碍-位-稿-主-澧-跌-筏-京-锏-帝-贴-证-糠-才-黄-鲸-略-炯-饱-四-出-园-犀-牧-容-汉-杆-浈-汰-瑷-造-虫-瘩-怪-驴-济-应-花-沣-谔-夙-旅-价-矿-以-考-s-u-呦-晒-巡-茅-准-肟-瓴-詹-仟-褂-译-桌-混-宁-怦-郑-抿-些-余-鄂-饴-攒-珑-群-阖-岔-琨-藓-预-环-洮-岌-宀-杲-瀵-最-常-囡-周-踊-女-鼓-袭-喉-简-范-薯-遐-疏-粱-黜-禧-法-箔-斤-遥-汝-奥-直-贞-撑-置-绱-集-她-馅-逗-钧-橱-魉-[-恙-躁-唤-9-旺-膘-待-脾-惫-购-吗-依-盲-度-瘿-蠖-俾-之-镗-拇-鲵-厝-簧-续-款-展-啃-表-剔-品-钻-腭-损-清-锶-统-涌-寸-滨-贪-链-吠-冈-伎-迥-咏-吁-览-防-迅-失-汾-阔-逵-绀-蔑-列-川-凭-努-熨-揪-利-俱-绉-抢-鸨-我-即-责-膦-易-毓-鹊-刹-玷-岿-空-嘞-绊-排-术-估-锷-违-们-苟-铜-播-肘-件-烫-审-鲂-广-像-铌-惰-铟-巳-胍-鲍-康-憧-色-恢-想-拷-尤-疳-知-S-Y-F-D-A-峄-裕-帮-握-搔-氐-氘-难-墒-沮-雨-叁-缥-悴-藐-湫-娟-苑-稠-颛-簇-后-阕-闭-蕤-缚-怎-佞-码-嘤-蔡-痊-舱-螯-帕-赫-昵-升-烬-岫-、-疵-蜻-髁-蕨-隶-烛-械-丑-盂-梁-强-鲛-由-拘-揉-劭-龟-撤-钩-呕-孛-费-妻-漂-求-阑-崖-秤-甘-通-深-补-赃-坎-床-啪-承-吼-量-暇-钼-烨-阂-擎-脱-逮-称-P-神-属-矗-华-届-狍-葑-汹-育-患-窒-蛰-佼-静-槎-运-鳗-庆-逝-曼-疱-克-代-官-此-麸-耧-蚌-晟-例-础-榛-副-测-唰-缢-迹-灬-霁-身-岁-赭-扛-又-菡-乜-雾-板-读-陷-徉-贯-郁-虑-变-钓-菜-圾-现-琢-式-乐-维-渔-浜-左-吾-脑-钡-警-T-啵-拴-偌-漱-湿-硕-止-骼-魄-积-燥-联-踢-玛-则-窿-见-振-畿-送-班-钽-您-赵-刨-印-讨-踝-籍-谡-舌-崧-汽-蔽-沪-酥-绒-怖-财-帖-肱-私-莎-勋-羔-霸-励-哼-帐-将-帅-渠-纪-婴-娩-岭-厘-滕-吻-伤-坝-冠-戊-隆-瘁-介-涧-物-黍-并-姗-奢-蹑-掣-垸-锴-命-箍-捉-病-辖-琰-眭-迩-艘-绌-繁-寅-若-毋-思-诉-类-诈-燮-轲-酮-狂-重-反-职-筱-县-委-磕-绣-奖-晋-濉-志-徽-肠-呈-獐-坻-口-片-碰-几-村-柿-劳-料-获-亩-惕-晕-厌-号-罢-池-正-鏖-煨-家-棕-复-尝-懋-蜥-锅-岛-扰-队-坠-瘾-钬-@-卧-疣-镇-譬-冰-彷-频-黯-据-垄-采-八-缪-瘫-型-熹-砰-楠-襁-箐-但-嘶-绳-啤-拍-盥-穆-傲-洗-盯-塘-怔-筛-丿-台-恒-喂-葛-永-¥-烟-酒-桦-书-砂-蚝-缉-态-瀚-袄-圳-轻-蛛-超-榧-遛-姒-奘-铮-右-荽-望-偻-卡-丶-氰-附-做-革-索-戚-坨-桷-唁-垅-榻-岐-偎-坛-莨-山-殊-微-骇-陈-爨-推-嗝-驹-澡-藁-呤-卤-嘻-糅-逛-侵-郓-酌-德-摇-※-鬃-被-慨-殡-羸-昌-泡-戛-鞋-河-宪-沿-玲-鲨-翅-哽-源-铅-语-照-邯-址-荃-佬-顺-鸳-町-霭-睾-瓢-夸-椁-晓-酿-痈-咔-侏-券-噎-湍-签-嚷-离-午-尚-社-锤-背-孟-使-浪-缦-潍-鞅-军-姹-驶-笑-鳟-鲁-》-孽-钜-绿-洱-礴-焯-椰-颖-囔-乌-孔-巴-互-性-椽-哞-聘-昨-早-暮-胶-炀-隧-低-彗-昝-铁-呓-氽-藉-喔-癖-瑗-姨-权-胱-韦-堑-蜜-酋-楝-砝-毁-靓-歙-锲-究-屋-喳-骨-辨-碑-武-鸠-宫-辜-烊-适-坡-殃-培-佩-供-走-蜈-迟-翼-况-姣-凛-浔-吃-飘-债-犟-金-促-苛-崇-坂-莳-畔-绂-兵-蠕-斋-根-砍-亢-欢-恬-崔-剁-餐-榫-快-扶-‖-濒-缠-鳜-当-彭-驭-浦-篮-昀-锆-秸-钳-弋-娣-瞑-夷-龛-苫-拱-致-%-嵊-障-隐-弑-初-娓-抉-汩-累-蓖-"-唬-助-苓-昙-押-毙-破-城-郧-逢-嚏-獭-瞻-溱-婿-赊-跨-恼-璧-萃-姻-貉-灵-炉-密-氛-陶-砸-谬-衔-点-琛-沛-枳-层-岱-诺-脍-榈-埂-征-冷-裁-打-蹴-素-瘘-逞-蛐-聊-激-腱-萘-踵-飒-蓟-吆-取-咙-簋-涓-矩-曝-挺-揣-座-你-史-舵-焱-尘-苏-笈-脚-溉-榨-诵-樊-邓-焊-义-庶-儋-蟋-蒲-赦-呷-杞-诠-豪-还-试-颓-茉-太-除-紫-逃-痴-草-充-鳕-珉-祗-墨-渭-烩-蘸-慕-璇-镶-穴-嵘-恶-骂-险-绋-幕-碉-肺-戳-刘-潞-秣-纾-潜-銮-洛-须-罘-销-瘪-汞-兮-屉-r-林-厕-质-探-划-狸-殚-善-煊-烹-〒-锈-逯-宸-辍-泱-柚-袍-远-蹋-嶙-绝-峥-娥-缍-雀-徵-认-镱-谷-=-贩-勉-撩-鄯-斐-洋-非-祚-泾-诒-饿-撬-威-晷-搭-芍-锥-笺-蓦-候-琊-档-礁-沼-卵-荠-忑-朝-凹-瑞-头-仪-弧-孵-畏-铆-突-衲-车-浩-气-茂-悖-厢-枕-酝-戴-湾-邹-飚-攘-锂-写-宵-翁-岷-无-喜-丈-挑-嗟-绛-殉-议-槽-具-醇-淞-笃-郴-阅-饼-底-壕-砚-弈-询-缕-庹-翟-零-筷-暨-舟-闺-甯-撞-麂-茌-蔼-很-珲-捕-棠-角-阉-媛-娲-诽-剿-尉-爵-睬-韩-诰-匣-危-糍-镯-立-浏-阳-少-盆-舔-擘-匪-申-尬-铣-旯-抖-赘-瓯-居-ˇ-哮-游-锭-茏-歌-坏-甚-秒-舞-沙-仗-劲-潺-阿-燧-郭-嗖-霏-忠-材-奂-耐-跺-砀-输-岖-媳-氟-极-摆-灿-今-扔-腻-枝-奎-药-熄-吨-话-q-额-慑-嘌-协-喀-壳-埭-视-著-於-愧-陲-翌-峁-颅-佛-腹-聋-侯-咎-叟-秀-颇-存-较-罪-哄-岗-扫-栏-钾-羌-己-璨-枭-霉-煌-涸-衿-键-镝-益-岢-奏-连-夯-睿-冥-均-糖-狞-蹊-稻-爸-刿-胥-煜-丽-肿-璃-掸-跚-灾-垂-樾-濑-乎-莲-窄-犹-撮-战-馄-软-络-显-鸢-胸-宾-妲-恕-埔-蝌-份-遇-巧-瞟-粒-恰-剥-桡-博-讯-凯-堇-阶-滤-卖-斌-骚-彬-兑-磺-樱-舷-两-娱-福-仃-差-找-桁-÷-净-把-阴-污-戬-雷-碓-蕲-楚-罡-焖-抽-妫-咒-仑-闱-尽-邑-菁-爱-贷-沥-鞑-牡-嗉-崴-骤-塌-嗦-订-拮-滓-捡-锻-次-坪-杩-臃-箬-融-珂-鹗-宗-枚-降-鸬-妯-阄-堰-盐-毅-必-杨-崃-俺-甬-状-莘-货-耸-菱-腼-铸-唏-痤-孚-澳-懒-溅-翘-疙-杷-淼-缙-骰-喊-悉-砻-坷-艇-赁-界-谤-纣-宴-晃-茹-归-饭-梢-铡-街-抄-肼-鬟-苯-颂-撷-戈-炒-咆-茭-瘙-负-仰-客-琉-铢-封-卑-珥-椿-镧-窨-鬲-寿-御-袤-铃-萎-砖-餮-脒-裳-肪-孕-嫣-馗-嵇-恳-氯-江-石-褶-冢-祸-阻-狈-羞-银-靳-透-咳-叼-敷-芷-啥-它-瓤-兰-痘-懊-逑-肌-往-捺-坊-甩-呻-〃-沦-忘-膻-祟-菅-剧-崆-智-坯-臧-霍-墅-攻-眯-倘-拢-骠-铐-庭-岙-瓠-′-缺-泥-迢-捶-?-?-郏-喙-掷-沌-纯-秘-种-听-绘-固-螨-团-香-盗-妒-埚-蓝-拖-旱-荞-铀-血-遏-汲-辰-叩-拽-幅-硬-惶-桀-漠-措-泼-唑-齐-肾-念-酱-虚-屁-耶-旗-砦-闵-婉-馆-拭-绅-韧-忏-窝-醋-葺-顾-辞-倜-堆-辋-逆-玟-贱-疾-董-惘-倌-锕-淘-嘀-莽-俭-笏-绑-鲷-杈-择-蟀-粥-嗯-驰-逾-案-谪-褓-胫-哩-昕-颚-鲢-绠-躺-鹄-崂-儒-俨-丝-尕-泌-啊-萸-彰-幺-吟-骄-苣-弦-脊-瑰-〈-诛-镁-析-闪-剪-侧-哟-框-螃-守-嬗-燕-狭-铈-缮-概-迳-痧-鲲-俯-售-笼-痣-扉-挖-满-咋-援-邱-扇-歪-便-玑-绦-峡-蛇-叨-〖-泽-胃-斓-喋-怂-坟-猪-该-蚬-炕-弥-赞-棣-晔-娠-挲-狡-创-疖-铕-镭-稷-挫-弭-啾-翔-粉-履-苘-哦-楼-秕-铂-土-锣-瘟-挣-栉-习-享-桢-袅-磨-桂-谦-延-坚-蔚-噗-署-谟-猬-钎-恐-嬉-雒-倦-衅-亏-璩-睹-刻-殿-王-算-雕-麻-丘-柯-骆-丸-塍-谚-添-鲈-垓-桎-蚯-芥-予-飕-镦-谌-窗-醚-菀-亮-搪-莺-蒿-羁-足-J-真-轶-悬-衷-靛-翊-掩-哒-炅-掐-冼-妮-l-谐-稚-荆-擒-犯-陵-虏-浓-崽-刍-陌-傻-孜-千-靖-演-矜-钕-煽-杰-酗-渗-伞-栋-俗-泫-戍-罕-沾-疽-灏-煦-芬-磴-叱-阱-榉-湃-蜀-叉-醒-彪-租-郡-篷-屎-良-垢-隗-弱-陨-峪-砷-掴-颁-胎-雯-绵-贬-沐-撵-隘-篙-暖-曹-陡-栓-填-臼-彦-瓶-琪-潼-哪-鸡-摩-啦-俟-锋-域-耻-蔫-疯-纹-撇-毒-绶-痛-酯-忍-爪-赳-歆-嘹-辕-烈-册-朴-钱-吮-毯-癜-娃-谀-邵-厮-炽-璞-邃-丐-追-词-瓒-忆-轧-芫-谯-喷-弟-半-冕-裙-掖-墉-绮-寝-苔-势-顷-褥-切-衮-君-佳-嫒-蚩-霞-佚-洙-逊-镖-暹-唛-&-殒-顶-碗-獗-轭-铺-蛊-废-恹-汨-崩-珍-那-杵-曲-纺-夏-薰-傀-闳-淬-姘-舀-拧-卷-楂-恍-讪-厩-寮-篪-赓-乘-灭-盅-鞣-沟-慎-挂-饺-鼾-杳-树-缨-丛-絮-娌-臻-嗳-篡-侩-述-衰-矛-圈-蚜-匕-筹-匿-濞-晨-叶-骋-郝-挚-蚴-滞-增-侍-描-瓣-吖-嫦-蟒-匾-圣-赌-毡-癞-恺-百-曳-需-篓-肮-庖-帏-卿-驿-遗-蹬-鬓-骡-歉-芎-胳-屐-禽-烦-晌-寄-媾-狄-翡-苒-船-廉-终-痞-殇-々-畦-饶-改-拆-悻-萄-£-瓿-乃-訾-桅-匮-溧-拥-纱-铍-骗-蕃-龋-缬-父-佐-疚-栎-醍-掳-蓄-x-惆-颜-鲆-榆-〔-猎-敌-暴-谥-鲫-贾-罗-玻-缄-扦-芪-癣-落-徒-臾-恿-猩-托-邴-肄-牵-春-陛-耀-刊-拓-蓓-邳-堕-寇-枉-淌-啡-湄-兽-酷-萼-碚-濠-萤-夹-旬-戮-梭-琥-椭-昔-勺-蜊-绐-晚-孺-僵-宣-摄-冽-旨-萌-忙-蚤-眉-噼-蟑-付-契-瓜-悼-颡-壁-曾-窕-颢-澎-仿-俑-浑-嵌-浣-乍-碌-褪-乱-蔟-隙-玩-剐-葫-箫-纲-围-伐-决-伙-漩-瑟-刑-肓-镳-缓-蹭-氨-皓-典-畲-坍-铑-檐-塑-洞-倬-储-胴-淳-戾-吐-灼-惺-妙-毕-珐-缈-虱-盖-羰-鸿-磅-谓-髅-娴-苴-唷-蚣-霹-抨-贤-唠-犬-誓-逍-庠-逼-麓-籼-釉-呜-碧-秧-氩-摔-霄-穸-纨-辟-妈-映-完-牛-缴-嗷-炊-恩-荔-茆-掉-紊-慌-莓-羟-阙-萁-磐-另-蕹-辱-鳐-湮-吡-吩-唐-睦-垠-舒-圜-冗-瞿-溺-芾-囱-匠-僳-汐-菩-饬-漓-黑-霰-浸-濡-窥-毂-蒡-兢-驻-鹉-芮-诙-迫-雳-厂-忐-臆-猴-鸣-蚪-栈-箕-羡-渐-莆-捍-眈-哓-趴-蹼-埕-嚣-骛-宏-淄-斑-噜-严-瑛-垃-椎-诱-压-庾-绞-焘-廿-抡-迄-棘-夫-纬-锹-眨-瞌-侠-脐-竞-瀑-孳-骧-遁-姜-颦-荪-滚-萦-伪-逸-粳-爬-锁-矣-役-趣-洒-颔-诏-逐-奸-甭-惠-攀-蹄-泛-尼-拼-阮-鹰-亚-颈-惑-勒-〉-际-肛-爷-刚-钨-丰-养-冶-鲽-辉-蔻-画-覆-皴-妊-麦-返-醉-皂-擀-〗-酶-凑-粹-悟-诀-硖-港-卜-z-杀-涕-±-舍-铠-抵-弛-段-敝-镐-奠-拂-轴-跛-袱-e-t-沉-菇-俎-薪-峦-秭-蟹-历-盟-菠-寡-液-肢-喻-染-裱-悱-抱-氙-赤-捅-猛-跑-氮-谣-仁-尺-辊-窍-烙-衍-架-擦-倏-璐-瑁-币-楞-胖-夔-趸-邛-惴-饕-虔-蝎-§-哉-贝-宽-辫-炮-扩-饲-籽-魏-菟-锰-伍-猝-末-琳-哚-蛎-邂-呀-姿-鄞-却-歧-仙-恸-椐-森-牒-寤-袒-婆-虢-雅-钉-朵-贼-欲-苞-寰-故-龚-坭-嘘-咫-礼-硷-兀-睢-汶-’-铲-烧-绕-诃-浃-钿-哺-柜-讼-颊-璁-腔-洽-咐-脲-簌-筠-镣-玮-鞠-谁-兼-姆-挥-梯-蝴-谘-漕-刷-躏-宦-弼-b-垌-劈-麟-莉-揭-笙-渎-仕-嗤-仓-配-怏-抬-错-泯-镊-孰-猿-邪-仍-秋-鼬-壹-歇-吵-炼-<-尧-射-柬-廷-胧-霾-凳-隋-肚-浮-梦-祥-株-堵-退-L-鹫-跎-凶-毽-荟-炫-栩-玳-甜-沂-鹿-顽-伯-爹-赔-蛴-徐-匡-欣-狰-缸-雹-蟆-疤-默-沤-啜-痂-衣-禅-w-i-h-辽-葳-黝-钗-停-沽-棒-馨-颌-肉-吴-硫-悯-劾-娈-马-啧-吊-悌-镑-峭-帆-瀣-涉-咸-疸-滋-泣-翦-拙-癸-钥-蜒-+-尾-庄-凝-泉-婢-渴-谊-乞-陆-锉-糊-鸦-淮-I-B-N-晦-弗-乔-庥-葡-尻-席-橡-傣-渣-拿-惩-麋-斛-缃-矮-蛏-岘-鸽-姐-膏-催-奔-镒-喱-蠡-摧-钯-胤-柠-拐-璋-鸥-卢-荡-倾-^-_-珀-逄-萧-塾-掇-贮-笆-聂-圃-冲-嵬-M-滔-笕-值-炙-偶-蜱-搐-梆-汪-蔬-腑-鸯-蹇-敞-绯-仨-祯-谆-梧-糗-鑫-啸-豺-囹-猾-巢-柄-瀛-筑-踌-沭-暗-苁-鱿-蹉-脂-蘖-牢-热-木-吸-溃-宠-序-泞-偿-拜-檩-厚-朐-毗-螳-吞-媚-朽-担-蝗-橘-畴-祈-糟-盱-隼-郜-惜-珠-裨-铵-焙-琚-唯-咚-噪-骊-丫-滢-勤-棉-呸-咣-淀-隔-蕾-窈-饨-挨-煅-短-匙-粕-镜-赣-撕-墩-酬-馁-豌-颐-抗-酣-氓-佑-搁-哭-递-耷-涡-桃-贻-碣-截-瘦-昭-镌-蔓-氚-甲-猕-蕴-蓬-散-拾-纛-狼-猷-铎-埋-旖-矾-讳-囊-糜-迈-粟-蚂-紧-鲳-瘢-栽-稼-羊-锄-斟-睁-桥-瓮-蹙-祉-醺-鼻-昱-剃-跳-篱-跷-蒜-翎-宅-晖-嗑-壑-峻-癫-屏-狠-陋-袜-途-憎-祀-莹-滟-佶-溥-臣-约-盛-峰-磁-慵-婪-拦-莅-朕-鹦-粲-裤-哎-疡-嫖-琵-窟-堪-谛-嘉-儡-鳝-斩-郾-驸-酊-妄-胜-贺-徙-傅-噌-钢-栅-庇-恋-匝-巯-邈-尸-锚-粗-佟-蛟-薹-纵-蚊-郅-绢-锐-苗-俞-篆-淆-膀-鲜-煎-诶-秽-寻-涮-刺-怀-噶-巨-褰-魅-灶-灌-桉-藕-谜-舸-薄-搀-恽-借-牯-痉-渥-愿-亓-耘-杠-柩-锔-蚶-钣-珈-喘-蹒-幽-赐-稗-晤-莱-泔-扯-肯-菪-裆-腩-豉-疆-骜-腐-倭-珏-唔-粮-亡-润-慰-伽-橄-玄-誉-醐-胆-龊-粼-塬-陇-彼-削-嗣-绾-芽-妗-垭-瘴-爽-薏-寨-龈-泠-弹-赢-漪-猫-嘧-涂-恤-圭-茧-烽-屑-痕-巾-赖-荸-凰-腮-畈-亵-蹲-偃-苇-澜-艮-换-骺-烘-苕-梓-颉-肇-哗-悄-氤-涠-葬-屠-鹭-植-竺-佯-诣-鲇-瘀-鲅-邦-移-滁-冯-耕-癔-戌-茬-沁-巩-悠-湘-洪-痹-锟-循-谋-腕-鳃-钠-捞-焉-迎-碱-伫-急-榷-奈-邝-卯-辄-皲-卟-醛-畹-忧-稳-雄-昼-缩-阈-睑-扌-耗-曦-涅-捏-瞧-邕-淖-漉-铝-耦-禹-湛-喽-莼-琅-诸-苎-纂-硅-始-嗨-傥-燃-臂-赅-嘈-呆-贵-屹-壮-肋-亍-蚀-卅-豹-腆-邬-迭-浊-}-童-螂-捐-圩-勐-触-寞-汊-壤-荫-膺-渌-芳-懿-遴-螈-泰-蓼-蛤-茜-舅-枫-朔-膝-眙-避-梅-判-鹜-璜-牍-缅-垫-藻-黔-侥-惚-懂-踩-腰-腈-札-丞-唾-慈-顿-摹-荻-琬-~-斧-沈-滂-胁-胀-幄-莜-Z-匀-鄄-掌-绰-茎-焚-赋-萱-谑-汁-铒-瞎-夺-蜗-野-娆-冀-弯-篁-懵-灞-隽-芡-脘-俐-辩-芯-掺-喏-膈-蝈-觐-悚-踹-蔗-熠-鼠-呵-抓-橼-峨-畜-缔-禾-崭-弃-熊-摒-凸-拗-穹-蒙-抒-祛-劝-闫-扳-阵-醌-踪-喵-侣-搬-仅-荧-赎-蝾-琦-买-婧-瞄-寓-皎-冻-赝-箩-莫-瞰-郊-笫-姝-筒-枪-遣-煸-袋-舆-痱-涛-母-〇-启-践-耙-绲-盘-遂-昊-搞-槿-诬-纰-泓-惨-檬-亻-越-C-o-憩-熵-祷-钒-暧-塔-阗-胰-咄-娶-魔-琶-钞-邻-扬-杉-殴-咽-弓-〆-髻-】-吭-揽-霆-拄-殖-脆-彻-岩-芝-勃-辣-剌-钝-嘎-甄-佘-皖-伦-授-徕-憔-挪-皇-庞-稔-芜-踏-溴-兖-卒-擢-饥-鳞-煲-‰-账-颗-叻-斯-捧-鳍-琮-讹-蛙-纽-谭-酸-兔-莒-睇-伟-觑-羲-嗜-宜-褐-旎-辛-卦-诘-筋-鎏-溪-挛-熔-阜-晰-鳅-丢-奚-灸-呱-献-陉-黛-鸪-甾-萨-疮-拯-洲-疹-辑-叙-恻-谒-允-柔-烂-氏-逅-漆-拎-惋-扈-湟-纭-啕-掬-擞-哥-忽-涤-鸵-靡-郗-瓷-扁-廊-怨-雏-钮-敦-E-懦-憋-汀-拚-啉-腌-岸-f-痼-瞅-尊-咀-眩-飙-忌-仝-迦-熬-毫-胯-篑-茄-腺-凄-舛-碴-锵-诧-羯-後-漏-汤-宓-仞-蚁-壶-谰-皑-铄-棰-罔-辅-晶-苦-牟-闽-\-烃-饮-聿-丙-蛳-朱-煤-涔-鳖-犁-罐-荼-砒-淦-妤-黏-戎-孑-婕-瑾-戢-钵-枣-捋-砥-衩-狙-桠-稣-阎-肃-梏-诫-孪-昶-婊-衫-嗔-侃-塞-蜃-樵-峒-貌-屿-欺-缫-阐-栖-诟-珞-荭-吝-萍-嗽-恂-啻-蜴-磬-峋-俸-豫-谎-徊-镍-韬-魇-晴-U-囟-猜-蛮-坐-囿-伴-亭-肝-佗-蝠-妃-胞-滩-榴-氖-垩-苋-砣-扪-馏-姓-轩-厉-夥-侈-禀-垒-岑-赏-钛-辐-痔-披-纸-碳-“-坞-蠓-挤-荥-沅-悔-铧-帼-蒌-蝇-a-p-y-n-g-哀-浆-瑶-凿-桶-馈-皮-奴-苜-佤-伶-晗-铱-炬-优-弊-氢-恃-甫-攥-端-锌-灰-稹-炝-曙-邋-亥-眶-碾-拉-萝-绔-捷-浍-腋-姑-菖-凌-涞-麽-锢-桨-潢-绎-镰-殆-锑-渝-铬-困-绽-觎-匈-糙-暑-裹-鸟-盔-肽-迷-綦-『-亳-佝-俘-钴-觇-骥-仆-疝-跪-婶-郯-瀹-唉-脖-踞-针-晾-忒-扼-瞩-叛-椒-疟-嗡-邗-肆-跆-玫-忡-捣-咧-唆-艄-蘑-潦-笛-阚-沸-泻-掊-菽-贫-斥-髂-孢-镂-赂-麝-鸾-屡-衬-苷-恪-叠-希-粤-爻-喝-茫-惬-郸-绻-庸-撅-碟-宄-妹-膛-叮-饵-崛-嗲-椅-冤-搅-咕-敛-尹-垦-闷-蝉-霎-勰-败-蓑-泸-肤-鹌-幌-焦-浠-鞍-刁-舰-乙-竿-裔-。-茵-函-伊-兄-丨-娜-匍-謇-莪-宥-似-蝽-翳-酪-翠-粑-薇-祢-骏-赠-叫-Q-噤-噻-竖-芗-莠-潭-俊-羿-耜-O-郫-趁-嗪-囚-蹶-芒-洁-笋-鹑-敲-硝-啶-堡-渲-揩-』-携-宿-遒-颍-扭-棱-割-萜-蔸-葵-琴-捂-饰-衙-耿-掠-募-岂-窖-涟-蔺-瘤-柞-瞪-怜-匹-距-楔-炜-哆-秦-缎-幼-茁-绪-痨-恨-楸-娅-瓦-桩-雪-嬴-伏-榔-妥-铿-拌-眠-雍-缇-‘-卓-搓-哌-觞-噩-屈-哧-髓-咦-巅-娑-侑-淫-膳-祝-勾-姊-莴-胄-疃-薛-蜷-胛-巷-芙-芋-熙-闰-勿-窃-狱-剩-钏-幢-陟-铛-慧-靴-耍-k-浙-浇-飨-惟-绗-祜-澈-啼-咪-磷-摞-诅-郦-抹-跃-壬-吕-肖-琏-颤-尴-剡-抠-凋-赚-泊-津-宕-殷-倔-氲-漫-邺-涎-怠-$-垮-荬-遵-俏-叹-噢-饽-蜘-孙-筵-疼-鞭-羧-牦-箭-潴-c-眸-祭-髯-啖-坳-愁-芩-驮-倡-巽-穰-沃-胚-怒-凤-槛-剂-趵-嫁-v-邢-灯-鄢-桐-睽-檗-锯-槟-婷-嵋-圻-诗-蕈-颠-遭-痢-芸-怯-馥-竭-锗-徜-恭-遍-籁-剑-嘱-苡-龄-僧-桑-潸-弘-澶-楹-悲-讫-愤-腥-悸-谍-椹-呢-桓-葭-攫-阀-翰-躲-敖-柑-郎-笨-橇-呃-魁-燎-脓-葩-磋-垛-玺-狮-沓-砜-蕊-锺-罹-蕉-翱-虐-闾-巫-旦-茱-嬷-枯-鹏-贡-芹-汛-矫-绁-拣-禺-佃-讣-舫-惯-乳-趋-疲-挽-岚-虾-衾-蠹-蹂-飓-氦-铖-孩-稞-瑜-壅-掀-勘-妓-畅-髋-W-庐-牲-蓿-榕-练-垣-唱-邸-菲-昆-婺-穿-绡-麒-蚱-掂-愚-泷-涪-漳-妩-娉-榄-讷-觅-旧-藤-煮-呛-柳-腓-叭-庵-烷-阡-罂-蜕-擂-猖-咿-媲-脉-【-沏-貅-黠-熏-哲-烁-坦-酵-兜-×-潇-撒-剽-珩-圹-乾-摸-樟-帽-嗒-襄-魂-轿-憬-锡-〕-喃-皆-咖-隅-脸-残-泮-袂-鹂-珊-囤-捆-咤-误-徨-闹-淙-芊-淋-怆-囗-拨-梳-渤-R-G-绨-蚓-婀-幡-狩-麾-谢-唢-裸-旌-伉-纶-裂-驳-砼-咛-澄-樨-蹈-宙-澍-倍-貔-操-勇-蟠-摈-砧-虬-够-缁-悦-藿-撸-艹-摁-淹-豇-虎-榭-ˉ-吱-d-°-喧-荀-踱-侮-奋-偕-饷-犍-惮-坑-璎-徘-宛-妆-袈-倩-窦-昂-荏-乖-K-怅-撰-鳙-牙-袁-酞-X-痿-琼-闸-雁-趾-荚-虻-涝-《-杏-韭-偈-烤-绫-鞘-卉-症-遢-蓥-诋-杭-荨-匆-竣-簪-辙-敕-虞-丹-缭-咩-黟-m-淤-瑕-咂-铉-硼-茨-嶂-痒-畸-敬-涿-粪-窘-熟-叔-嫔-盾-忱-裘-憾-梵-赡-珙-咯-娘-庙-溯-胺-葱-痪-摊-荷-卞-乒-髦-寐-铭-坩-胗-枷-爆-溟-嚼-羚-砬-轨-惊-挠-罄-竽-菏-氧-浅-楣-盼-枢-炸-阆-杯-谏-噬-淇-渺-俪-秆-墓-泪-跻-砌-痰-垡-渡-耽-釜-讶-鳎-煞-呗-韶-舶-绷-鹳-缜-旷-铊-皱-龌-檀-霖-奄-槐-艳-蝶-旋-哝-赶-骞-蚧-腊-盈-丁-`-蜚-矸-蝙-睨-嚓-僻-鬼-醴-夜-彝-磊-笔-拔-栀-糕-厦-邰-纫-逭-纤-眦-膊-馍-躇-烯-蘼-冬-诤-暄-骶-哑-瘠-」-臊-丕-愈-咱-螺-擅-跋-搏-硪-谄-笠-淡-嘿-骅-谧-鼎-皋-姚-歼-蠢-驼-耳-胬-挝-涯-狗-蒽-孓-犷-凉-芦-箴-铤-孤-嘛-坤-V-茴-朦-挞-尖-橙-诞-搴-碇-洵-浚-帚-蜍-漯-柘-嚎-讽-芭-荤-咻-祠-秉-跖-埃-吓-糯-眷-馒-惹-娼-鲑-嫩-讴-轮-瞥-靶-褚-乏-缤-宋-帧-删-驱-碎-扑-俩-俄-偏-涣-竹-噱-皙-佰-渚-唧-斡-#-镉-刀-崎-筐-佣-夭-贰-肴-峙-哔-艿-匐-牺-镛-缘-仡-嫡-劣-枸-堀-梨-簿-鸭-蒸-亦-稽-浴-{-衢-束-槲-j-阁-揍-疥-棋-潋-聪-窜-乓-睛-插-冉-阪-苍-搽-「-蟾-螟-幸-仇-樽-撂-慢-跤-幔-俚-淅-覃-觊-溶-妖-帛-侨-曰-妾-泗-·-:-瀘-風-Ë-(-)-∶-紅-紗-瑭-雲-頭-鶏-財-許-•-¥-樂-焗-麗-—-;-滙-東-榮-繪-興-…-門-業-π-楊-國-顧-é-盤-寳-Λ-龍-鳳-島-誌-緣-結-銭-萬-勝-祎-璟-優-歡-臨-時-購-=-★-藍-昇-鐵-觀-勅-農-聲-畫-兿-術-發-劉-記-專-耑-園-書-壴-種-Ο-●-褀-號-銀-匯-敟-锘-葉-橪-廣-進-蒄-鑽-阝-祙-貢-鍋-豊-夬-喆-團-閣-開-燁-賓-館-酡-沔-順-+-硚-劵-饸-陽-車-湓-復-萊-氣-軒-華-堃-迮-纟-戶-馬-學-裡-電-嶽-獨-マ-シ-サ-ジ-燘-袪-環-❤-臺-灣-専-賣-孖-聖-攝-線-▪-α-傢-俬-夢-達-莊-喬-貝-薩-劍-羅-壓-棛-饦-尃-璈-囍-醫-G-I-A-#-N-鷄-髙-嬰-啓-約-隹-潔-賴-藝-~-寶-籣-麺--嶺-√-義-網-峩-長-∧-魚-機-構-②-鳯-偉-L-B-㙟-畵-鴿-'-詩-溝-嚞-屌-藔-佧-玥-蘭-織-1-3-9-0-7-點-砭-鴨-鋪-銘-廳-弍-‧-創-湯-坶-℃-卩-骝-&-烜-荘-當-潤-扞-係-懷-碶-钅-蚨-讠-☆-叢-爲-埗-涫-塗-→-楽-現-鯨-愛-瑪-鈺-忄-悶-藥-飾-樓-視-孬-ㆍ-燚-苪-師-①-丼-锽-│-韓-標-è-兒-閏-匋-張-漢-Ü-髪-會-閑-檔-習-裝-の-峯-菘-輝-И-雞-釣-億-浐-K-O-R-8-H-E-P-T-W-D-S-C-M-F-姌-饹-»-晞-廰-ä-嵯-鷹-負-飲-絲-冚-楗-澤-綫-區-❋-←-質-靑-揚-③-滬-統-産-協-﹑-乸-畐-經-運-際-洺-岽-為-粵-諾-崋-豐-碁-ɔ-V-2-6-齋-誠-訂-´-勑-雙-陳-無-í-泩-媄-夌-刂-i-c-t-o-r-a-嘢-耄-燴-暃-壽-媽-靈-抻-體-唻-É-冮-甹-鎮-錦-ʌ-蜛-蠄-尓-駕-戀-飬-逹-倫-貴-極-Я-Й-寬-磚-嶪-郎-職-|-間-n-d-剎-伈-課-飛-橋-瘊-№-譜-骓-圗-滘-縣-粿-咅-養-濤-彳-®-%-Ⅱ-啰-㴪-見-矞-薬-糁-邨-鲮-顔-罱-З-選-話-贏-氪-俵-競-瑩-繡-枱-β-綉-á-獅-爾-™-麵-戋-淩-徳-個-劇-場-務-簡-寵-h-實-膠-轱-圖-築-嘣-樹-㸃-營-耵-孫-饃-鄺-飯-麯-遠-輸-坫-孃-乚-閃-鏢-㎡-題-廠-關-↑-爺-將-軍-連-篦-覌-參-箸---窠-棽-寕-夀-爰-歐-呙-閥-頡-熱-雎-垟-裟-凬-勁-帑-馕-夆-疌-枼-馮-貨-蒤-樸-彧-旸-靜-龢-暢-㐱-鳥-珺-鏡-灡-爭-堷-廚-Ó-騰-診-┅-蘇-褔-凱-頂-豕-亞-帥-嘬-⊥-仺-桖-複-饣-絡-穂-顏-棟-納-▏-濟-親-設-計-攵-埌-烺-ò-頤-燦-蓮-撻-節-講-濱-濃-娽-洳-朿-燈-鈴-護-膚-铔-過-補-Z-U-5-4-坋-闿-䖝-餘-缐-铞-貿-铪-桼-趙-鍊-[-㐂-垚-菓-揸-捲-鐘-滏-𣇉-爍-輪-燜-鴻-鮮-動-鹞-鷗-丄-慶-鉌-翥-飮-腸-⇋-漁-覺-來-熘-昴-翏-鲱-圧-鄉-萭-頔-爐-嫚-г-貭-類-聯-幛-輕-訓-鑒-夋-锨-芃-珣-䝉-扙-嵐-銷-處-ㄱ-語-誘-苝-歸-儀-燒-楿-內-粢-葒-奧-麥-礻-滿-蠔-穵-瞭-態-鱬-榞-硂-鄭-黃-煙-祐-奓-逺-*-瑄-獲-聞-薦-讀-這-樣-決-問-啟-們-執-説-轉-單-隨-唘-帶-倉-庫-還-贈-尙-皺-■-餅-產-○-∈-報-狀-楓-賠-琯-嗮-禮-`-傳->-≤-嗞-Φ-≥-換-咭-∣-↓-曬-ε-応-寫-″-終-様-純-費-療-聨-凍-壐-郵-ü-黒-∫-製-塊-調-軽-確-撃-級-馴-Ⅲ-涇-繹-數-碼-證-狒-処-劑-<-晧-賀-衆-]-櫥-兩-陰-絶-對-鯉-憶-◎-p-e-Y-蕒-煖-頓-測-試-鼽-僑-碩-妝-帯-≈-鐡-舖-權-喫-倆-ˋ-該-悅-ā-俫-.-f-s-b-m-k-g-u-j-貼-淨-濕-針-適-備-l-/-給-謢-強-觸-衛-與-⊙-$-緯-變-⑴-⑵-⑶-㎏-殺-∩-幚-─-價-▲-離-ú-ó-飄-烏-関-閟-﹝-﹞-邏-輯-鍵-驗-訣-導-歷-屆-層-▼-儱-錄-熳-ē-艦-吋-錶-辧-飼-顯-④-禦-販-気-対-枰-閩-紀-幹-瞓-貊-淚-△-眞-墊-Ω-獻-褲-縫-緑-亜-鉅-餠-{-}-◆-蘆-薈-█-◇-溫-彈-晳-粧-犸-穩-訊-崬-凖-熥-П-舊-條-紋-圍-Ⅳ-筆-尷-難-雜-錯-綁-識-頰-鎖-艶-□-殁-殼-⑧-├-▕-鵬-ǐ-ō-ǒ-糝-綱-▎-μ-盜-饅-醬-籤-蓋-釀-鹽-據-à-ɡ-辦-◥-彐-┌-婦-獸-鲩-伱-ī-蒟-蒻-齊-袆-腦-寧-凈-妳-煥-詢-偽-謹-啫-鯽-騷-鱸-損-傷-鎻-髮-買-冏-儥-両-﹢-∞-載-喰-z-羙-悵-燙-曉-員-組-徹-艷-痠-鋼-鼙-縮-細-嚒-爯-≠-維-"-鱻-壇-厍-帰-浥-犇-薡-軎-²-應-醜-刪-緻-鶴-賜-噁-軌-尨-镔-鷺-槗-彌-葚-濛-請-溇-緹-賢-訪-獴-瑅-資-縤-陣-蕟-栢-韻-祼-恁-伢-謝-劃-涑-總-衖-踺-砋-凉-籃-駿-苼-瘋-昽-紡-驊-腎-﹗-響-杋-剛-嚴-禪-歓-槍-傘-檸-檫-炣-勢-鏜-鎢-銑-尐-減-奪-惡-θ-僮-婭-臘-ū-ì-殻-鉄-∑-蛲-焼-緖-續-紹-懮\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_server_v2_rec/run.sh b/python/onnxruntime_infer/ch_ppocr_server_v2_rec/run.shdeleted file mode 100644index f519b8b..0000000--- a/python/onnxruntime_infer/ch_ppocr_server_v2_rec/run.sh+++ /dev/null@@ -1,9 +0,0 @@-#! /bin/bash-set -e errexit--root_path=$(cd $(dirname $0); pwd)-image_path=${root_path}"/test_images/rec_images/2021-01-18_14-22-32.png"-model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_rec_infer.onnx"--python text_recognize.py --image_path ${image_path} \- --model_path ${model_path}\ No newline at end of filediff --git a/python/onnxruntime_infer/rapid_ocr_api.py b/python/onnxruntime_infer/rapid_ocr_api.pydeleted file mode 100644index 4bf8703..0000000--- a/python/onnxruntime_infer/rapid_ocr_api.py+++ /dev/null@@ -1,308 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--import argparse-import copy-import imghdr-import math-import random-from pathlib import Path--import cv2-import numpy as np-from PIL import Image, ImageDraw, ImageFont--from ch_ppocr_mobile_v2_cls import TextClassifier-from ch_ppocr_mobile_v2_det import TextDetector-from ch_ppocr_mobile_v2_rec import TextRecognizer---def get_image_file_list(img_file):- if img_file is None or not Path(img_file).exists():- raise FileExistsError(f"not found any img file in {img_file}")-- imgs_lists = []- img_end = ['jpg', 'bmp', 'png', 'jpeg', 'rgb', 'tif', 'tiff', 'gif']-- def _get_img_path(img_file):- # 真实后缀- real_img_suffix = imghdr.what(img_file)-- # 现在后缀- now_img_suffix = img_file.suffix[1:].lower()-- if real_img_suffix in img_end:- # 真实后缀与现有后缀不一致- if now_img_suffix in img_end:- return img_file- else:- # 按照真实后缀重命名- new_img_file = img_file.with_suffix(f'.{real_img_suffix}')- img_file.rename(new_img_file)- return new_img_file- else:- return None-- img_file = Path(img_file)- if img_file.is_file():- tmp_img_path = _get_img_path(img_file)- if tmp_img_path is not None:- imgs_lists.append(str(tmp_img_path))-- elif img_file.is_dir():- for img_path in img_file.iterdir():- tmp_file_path = _get_img_path(img_path)- if tmp_file_path is not None:- imgs_lists.append(str(tmp_file_path))- else:- raise ValueError(f"The {img_file}'s format is not support!")-- if len(imgs_lists) == 0:- raise FileExistsError(f"not found any img file in {img_file}")-- return imgs_lists---def check_and_read_gif(img_path):- if Path(img_path).name[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, False---def draw_ocr_box_txt(image, boxes, txts, font_path,- scores=None, text_score=0.5,- ):- if not Path(font_path).exists():- raise FileNotFoundError(f'The {font_path} does not exists! \n'- f'Please download the file in the https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY')-- h, w = image.height, image.width- img_left = image.copy()- img_right = Image.new('RGB', (w, h), (255, 255, 255))-- random.seed(0)- draw_left = ImageDraw.Draw(img_left)- draw_right = ImageDraw.Draw(img_right)- for idx, (box, txt) in enumerate(zip(boxes, txts)):- if scores is not None and scores[idx] < text_score:- continue-- color = (random.randint(0, 255),- random.randint(0, 255),- random.randint(0, 255))- draw_left.polygon(box, fill=color)- draw_right.polygon([box[0][0], box[0][1],- box[1][0], box[1][1],- box[2][0], box[2][1],- box[3][0], box[3][1]],- outline=color)-- box_height = math.sqrt((box[0][0] - box[3][0])**2- + (box[0][1] - box[3][1])**2)-- box_width = math.sqrt((box[0][0] - box[1][0])**2- + (box[0][1] - box[1][1])**2)-- if box_height > 2 * box_width:- font_size = max(int(box_width * 0.9), 10)- font = ImageFont.truetype(font_path, font_size,- encoding="utf-8")- cur_y = box[0][1]- for c in txt:- char_size = font.getsize(c)- draw_right.text((box[0][0] + 3, cur_y), c,- fill=(0, 0, 0), font=font)- cur_y += char_size[1]- else:- font_size = max(int(box_height * 0.8), 10)- font = ImageFont.truetype(font_path, font_size, encoding="utf-8")- draw_right.text([box[0][0], box[0][1]], txt,- fill=(0, 0, 0), font=font)-- img_left = Image.blend(image, img_left, 0.5)- img_show = Image.new('RGB', (w * 2, h), (255, 255, 255))- img_show.paste(img_left, (0, 0, w, h))- img_show.paste(img_right, (w, 0, w * 2, h))- return np.array(img_show)---def visualize(image_path, boxes, rec_res,- font_path="fonts/msyh.ttc"):- image = Image.open(image_path)- txts = [rec_res[i][0] for i in range(len(rec_res))]- scores = [rec_res[i][1] for i in range(len(rec_res))]-- draw_img = draw_ocr_box_txt(image, boxes,- txts, font_path,- scores,- text_score=0.5)-- draw_img_save = Path("./inference_results/")- if not draw_img_save.exists():- draw_img_save.mkdir(parents=True, exist_ok=True)-- image_save = str(draw_img_save / f'infer_{Path(image_path).name}')- cv2.imwrite(image_save, draw_img[:, :, ::-1])- print(f'The infer result has saved in {image_save}')---class TextSystem(object):- def __init__(self, det_model_path,- rec_model_path,- use_angle_cls=False,- cls_model_path=None,- keys_path=None):- super(TextSystem).__init__()- self.text_score = 0.5-- self.text_detector = TextDetector(det_model_path)- self.text_recognizer = TextRecognizer(rec_model_path, keys_path)- self.use_angle_cls = use_angle_cls- if self.use_angle_cls:- self.text_classifier = TextClassifier(cls_model_path)-- def get_rotate_crop_image(self, img, points):- '''- img_height, img_width = img.shape[0:2]- left = int(np.min(points[:, 0]))- right = int(np.max(points[:, 0]))- top = int(np.min(points[:, 1]))- bottom = int(np.max(points[:, 1]))- img_crop = img[top:bottom, left:right, :].copy()- points[:, 0] = points[:, 0] - left- points[:, 1] = points[:, 1] - top- '''- img_crop_width = int(- max(- np.linalg.norm(points[0] - points[1]),- np.linalg.norm(points[2] - points[3])))- img_crop_height = int(- max(- np.linalg.norm(points[0] - points[3]),- np.linalg.norm(points[1] - points[2])))- pts_std = np.float32([[0, 0], [img_crop_width, 0],- [img_crop_width, img_crop_height],- [0, img_crop_height]])- M = cv2.getPerspectiveTransform(points, pts_std)- dst_img = cv2.warpPerspective(- img,- M, (img_crop_width, img_crop_height),- borderMode=cv2.BORDER_REPLICATE,- flags=cv2.INTER_CUBIC)- dst_img_height, dst_img_width = dst_img.shape[0:2]- if dst_img_height * 1.0 / dst_img_width >= 1.5:- dst_img = np.rot90(dst_img)- return dst_img-- @staticmethod- def sorted_boxes(dt_boxes):- """- Sort text boxes in order from top to bottom, left to right- args:- dt_boxes(array):detected text boxes with shape [4, 2]- return:- sorted boxes(array) with shape [4, 2]- """- num_boxes = dt_boxes.shape[0]- sorted_boxes = sorted(dt_boxes, key=lambda x: (x[0][1], x[0][0]))- _boxes = list(sorted_boxes)-- for i in range(num_boxes - 1):- if abs(_boxes[i + 1][0][1] - _boxes[i][0][1]) < 10 and \- (_boxes[i + 1][0][0] < _boxes[i][0][0]):- tmp = _boxes[i]- _boxes[i] = _boxes[i + 1]- _boxes[i + 1] = tmp- return _boxes-- @staticmethod- def load_image(image_path):- img, flag = check_and_read_gif(image_path)- if not flag:- img = cv2.imread(image_path)- if img is None:- raise ValueError(f"error in loading image:{image_path}")- return img-- def __call__(self, image_path):- img = self.load_image(image_path)- dt_boxes, elapse = self.text_detector(img)- print("dt_boxes num : {}, elapse : {}".format(- len(dt_boxes), elapse))- if dt_boxes is None or len(dt_boxes) < 1:- return None, None- dt_boxes = self.sorted_boxes(dt_boxes)-- img_crop_list = []- for bno in range(len(dt_boxes)):- tmp_box = copy.deepcopy(dt_boxes[bno])- img_crop = self.get_rotate_crop_image(img, tmp_box)- img_crop_list.append(img_crop)-- if self.use_angle_cls:- img_crop_list, angle_list, elapse = self.text_classifier(- img_crop_list)- print("cls num : {}, elapse : {}".format(- len(img_crop_list), elapse))-- rec_res, elapse = self.text_recognizer(img_crop_list)- print("rec_res num : {}, elapse : {}".format(- len(rec_res), elapse))-- filter_boxes, filter_rec_res = [], []- for box, rec_reuslt in zip(dt_boxes, rec_res):- text, score = rec_reuslt- if score >= self.text_score:- filter_boxes.append(box)- filter_rec_res.append(rec_reuslt)- return filter_boxes, filter_rec_res---if __name__ == '__main__':- parser = argparse.ArgumentParser()-- parser.add_argument('--det_model_path', type=str,- default='models/ch_ppocr_mobile_v2.0_det_infer.onnx')- parser.add_argument('--cls_model_path', type=str,- default='models/ch_ppocr_mobile_v2.0_cls_infer.onnx')- parser.add_argument('--rec_model_path', type=str,- default='models/ch_ppocr_mobile_v2.0_rec_infer.onnx')-- parser.add_argument('--image_path', type=str,- default='test_images/det_images/')-- parser.add_argument('--keys_path', type=str,- default="ch_ppocr_mobile_v2_rec/ppocr_keys_v1.txt")- args = parser.parse_args()-- if args.det_model_path.find('server') != -1:- from ch_ppocr_server_v2_det import TextDetector- else:- from ch_ppocr_mobile_v2_det import TextDetector-- if args.rec_model_path.find('server') != -1:- from ch_ppocr_server_v2_rec import TextRecognizer- else:- if args.rec_model_path.find('v2') != -1:- from ch_ppocr_mobile_v2_rec import TextRecognizer- elif args.rec_model_path.find('v3') != -1:- from ch_ppocr_mobile_v3_rec import TextRecognizer-- text_sys = TextSystem(args.det_model_path,- args.rec_model_path,- use_angle_cls=True,- cls_model_path=args.cls_model_path,- keys_path=args.keys_path)-- image_file_list = get_image_file_list(args.image_path)- for image_path in image_file_list:- dt_boxes, rec_res = text_sys(image_path)- visualize(image_path, dt_boxes, rec_res)- print('=' * 10)diff --git a/python/onnxruntime_infer/rec_dict/ppocr_keys_v1.txt b/python/onnxruntime_infer/rec_dict/ppocr_keys_v1.txtdeleted file mode 100644index 84b885d..0000000--- a/python/onnxruntime_infer/rec_dict/ppocr_keys_v1.txt+++ /dev/null@@ -1,6623 +0,0 @@-'-疗-绚-诚-娇-溜-题-贿-者-廖-更-纳-加-奉-公-一-就-汴-计-与-路-房-原-妇-2-0-8---7-其->-:-]-,-,-骑-刈-全-消-昏-傈-安-久-钟-嗅-不-影-处-驽-蜿-资-关-椤-地-瘸-专-问-忖-票-嫉-炎-韵-要-月-田-节-陂-鄙-捌-备-拳-伺-眼-网-盎-大-傍-心-东-愉-汇-蹿-科-每-业-里-航-晏-字-平-录-先-1-3-彤-鲶-产-稍-督-腴-有-象-岳-注-绍-在-泺-文-定-核-名-水-过-理-让-偷-率-等-这-发-”-为-含-肥-酉-相-鄱-七-编-猥-锛-日-镀-蒂-掰-倒-辆-栾-栗-综-涩-州-雌-滑-馀-了-机-块-司-宰-甙-兴-矽-抚-保-用-沧-秩-如-收-息-滥-页-疑-埠-!-!-姥-异-橹-钇-向-下-跄-的-椴-沫-国-绥-獠-报-开-民-蜇-何-分-凇-长-讥-藏-掏-施-羽-中-讲-派-嘟-人-提-浼-间-世-而-古-多-倪-唇-饯-控-庚-首-赛-蜓-味-断-制-觉-技-替-艰-溢-潮-夕-钺-外-摘-枋-动-双-单-啮-户-枇-确-锦-曜-杜-或-能-效-霜-盒-然-侗-电-晁-放-步-鹃-新-杖-蜂-吒-濂-瞬-评-总-隍-对-独-合-也-是-府-青-天-诲-墙-组-滴-级-邀-帘-示-已-时-骸-仄-泅-和-遨-店-雇-疫-持-巍-踮-境-只-亨-目-鉴-崤-闲-体-泄-杂-作-般-轰-化-解-迂-诿-蛭-璀-腾-告-版-服-省-师-小-规-程-线-海-办-引-二-桧-牌-砺-洄-裴-修-图-痫-胡-许-犊-事-郛-基-柴-呼-食-研-奶-律-蛋-因-葆-察-戏-褒-戒-再-李-骁-工-貂-油-鹅-章-啄-休-场-给-睡-纷-豆-器-捎-说-敏-学-会-浒-设-诊-格-廓-查-来-霓-室-溆-¢-诡-寥-焕-舜-柒-狐-回-戟-砾-厄-实-翩-尿-五-入-径-惭-喹-股-宇-篝-|-;-美-期-云-九-祺-扮-靠-锝-槌-系-企-酰-阊-暂-蚕-忻-豁-本-羹-执-条-钦-H-獒-限-进-季-楦-于-芘-玖-铋-茯-未-答-粘-括-样-精-欠-矢-甥-帷-嵩-扣-令-仔-风-皈-行-支-部-蓉-刮-站-蜡-救-钊-汗-松-嫌-成-可-.-鹤-院-从-交-政-怕-活-调-球-局-验-髌-第-韫-谗-串-到-圆-年-米-/-*-友-忿-检-区-看-自-敢-刃-个-兹-弄-流-留-同-没-齿-星-聆-轼-湖-什-三-建-蛔-儿-椋-汕-震-颧-鲤-跟-力-情-璺-铨-陪-务-指-族-训-滦-鄣-濮-扒-商-箱-十-召-慷-辗-所-莞-管-护-臭-横-硒-嗓-接-侦-六-露-党-馋-驾-剖-高-侬-妪-幂-猗-绺-骐-央-酐-孝-筝-课-徇-缰-门-男-西-项-句-谙-瞒-秃-篇-教-碲-罚-声-呐-景-前-富-嘴-鳌-稀-免-朋-啬-睐-去-赈-鱼-住-肩-愕-速-旁-波-厅-健-茼-厥-鲟-谅-投-攸-炔-数-方-击-呋-谈-绩-别-愫-僚-躬-鹧-胪-炳-招-喇-膨-泵-蹦-毛-结-5-4-谱-识-陕-粽-婚-拟-构-且-搜-任-潘-比-郢-妨-醪-陀-桔-碘-扎-选-哈-骷-楷-亿-明-缆-脯-监-睫-逻-婵-共-赴-淝-凡-惦-及-达-揖-谩-澹-减-焰-蛹-番-祁-柏-员-禄-怡-峤-龙-白-叽-生-闯-起-细-装-谕-竟-聚-钙-上-导-渊-按-艾-辘-挡-耒-盹-饪-臀-记-邮-蕙-受-各-医-搂-普-滇-朗-茸-带-翻-酚-(-光-堤-墟-蔷-万-幻-〓-瑙-辈-昧-盏-亘-蛀-吉-铰-请-子-假-闻-税-井-诩-哨-嫂-好-面-琐-校-馊-鬣-缂-营-访-炖-占-农-缀-否-经-钚-棵-趟-张-亟-吏-茶-谨-捻-论-迸-堂-玉-信-吧-瞠-乡-姬-寺-咬-溏-苄-皿-意-赉-宝-尔-钰-艺-特-唳-踉-都-荣-倚-登-荐-丧-奇-涵-批-炭-近-符-傩-感-道-着-菊-虹-仲-众-懈-濯-颞-眺-南-释-北-缝-标-既-茗-整-撼-迤-贲-挎-耱-拒-某-妍-卫-哇-英-矶-藩-治-他-元-领-膜-遮-穗-蛾-飞-荒-棺-劫-么-市-火-温-拈-棚-洼-转-果-奕-卸-迪-伸-泳-斗-邡-侄-涨-屯-萋-胭-氡-崮-枞-惧-冒-彩-斜-手-豚-随-旭-淑-妞-形-菌-吲-沱-争-驯-歹-挟-兆-柱-传-至-包-内-响-临-红-功-弩-衡-寂-禁-老-棍-耆-渍-织-害-氵-渑-布-载-靥-嗬-虽-苹-咨-娄-库-雉-榜-帜-嘲-套-瑚-亲-簸-欧-边-6-腿-旮-抛-吹-瞳-得-镓-梗-厨-继-漾-愣-憨-士-策-窑-抑-躯-襟-脏-参-贸-言-干-绸-鳄-穷-藜-音-折-详-)-举-悍-甸-癌-黎-谴-死-罩-迁-寒-驷-袖-媒-蒋-掘-模-纠-恣-观-祖-蛆-碍-位-稿-主-澧-跌-筏-京-锏-帝-贴-证-糠-才-黄-鲸-略-炯-饱-四-出-园-犀-牧-容-汉-杆-浈-汰-瑷-造-虫-瘩-怪-驴-济-应-花-沣-谔-夙-旅-价-矿-以-考-s-u-呦-晒-巡-茅-准-肟-瓴-詹-仟-褂-译-桌-混-宁-怦-郑-抿-些-余-鄂-饴-攒-珑-群-阖-岔-琨-藓-预-环-洮-岌-宀-杲-瀵-最-常-囡-周-踊-女-鼓-袭-喉-简-范-薯-遐-疏-粱-黜-禧-法-箔-斤-遥-汝-奥-直-贞-撑-置-绱-集-她-馅-逗-钧-橱-魉-[-恙-躁-唤-9-旺-膘-待-脾-惫-购-吗-依-盲-度-瘿-蠖-俾-之-镗-拇-鲵-厝-簧-续-款-展-啃-表-剔-品-钻-腭-损-清-锶-统-涌-寸-滨-贪-链-吠-冈-伎-迥-咏-吁-览-防-迅-失-汾-阔-逵-绀-蔑-列-川-凭-努-熨-揪-利-俱-绉-抢-鸨-我-即-责-膦-易-毓-鹊-刹-玷-岿-空-嘞-绊-排-术-估-锷-违-们-苟-铜-播-肘-件-烫-审-鲂-广-像-铌-惰-铟-巳-胍-鲍-康-憧-色-恢-想-拷-尤-疳-知-S-Y-F-D-A-峄-裕-帮-握-搔-氐-氘-难-墒-沮-雨-叁-缥-悴-藐-湫-娟-苑-稠-颛-簇-后-阕-闭-蕤-缚-怎-佞-码-嘤-蔡-痊-舱-螯-帕-赫-昵-升-烬-岫-、-疵-蜻-髁-蕨-隶-烛-械-丑-盂-梁-强-鲛-由-拘-揉-劭-龟-撤-钩-呕-孛-费-妻-漂-求-阑-崖-秤-甘-通-深-补-赃-坎-床-啪-承-吼-量-暇-钼-烨-阂-擎-脱-逮-称-P-神-属-矗-华-届-狍-葑-汹-育-患-窒-蛰-佼-静-槎-运-鳗-庆-逝-曼-疱-克-代-官-此-麸-耧-蚌-晟-例-础-榛-副-测-唰-缢-迹-灬-霁-身-岁-赭-扛-又-菡-乜-雾-板-读-陷-徉-贯-郁-虑-变-钓-菜-圾-现-琢-式-乐-维-渔-浜-左-吾-脑-钡-警-T-啵-拴-偌-漱-湿-硕-止-骼-魄-积-燥-联-踢-玛-则-窿-见-振-畿-送-班-钽-您-赵-刨-印-讨-踝-籍-谡-舌-崧-汽-蔽-沪-酥-绒-怖-财-帖-肱-私-莎-勋-羔-霸-励-哼-帐-将-帅-渠-纪-婴-娩-岭-厘-滕-吻-伤-坝-冠-戊-隆-瘁-介-涧-物-黍-并-姗-奢-蹑-掣-垸-锴-命-箍-捉-病-辖-琰-眭-迩-艘-绌-繁-寅-若-毋-思-诉-类-诈-燮-轲-酮-狂-重-反-职-筱-县-委-磕-绣-奖-晋-濉-志-徽-肠-呈-獐-坻-口-片-碰-几-村-柿-劳-料-获-亩-惕-晕-厌-号-罢-池-正-鏖-煨-家-棕-复-尝-懋-蜥-锅-岛-扰-队-坠-瘾-钬-@-卧-疣-镇-譬-冰-彷-频-黯-据-垄-采-八-缪-瘫-型-熹-砰-楠-襁-箐-但-嘶-绳-啤-拍-盥-穆-傲-洗-盯-塘-怔-筛-丿-台-恒-喂-葛-永-¥-烟-酒-桦-书-砂-蚝-缉-态-瀚-袄-圳-轻-蛛-超-榧-遛-姒-奘-铮-右-荽-望-偻-卡-丶-氰-附-做-革-索-戚-坨-桷-唁-垅-榻-岐-偎-坛-莨-山-殊-微-骇-陈-爨-推-嗝-驹-澡-藁-呤-卤-嘻-糅-逛-侵-郓-酌-德-摇-※-鬃-被-慨-殡-羸-昌-泡-戛-鞋-河-宪-沿-玲-鲨-翅-哽-源-铅-语-照-邯-址-荃-佬-顺-鸳-町-霭-睾-瓢-夸-椁-晓-酿-痈-咔-侏-券-噎-湍-签-嚷-离-午-尚-社-锤-背-孟-使-浪-缦-潍-鞅-军-姹-驶-笑-鳟-鲁-》-孽-钜-绿-洱-礴-焯-椰-颖-囔-乌-孔-巴-互-性-椽-哞-聘-昨-早-暮-胶-炀-隧-低-彗-昝-铁-呓-氽-藉-喔-癖-瑗-姨-权-胱-韦-堑-蜜-酋-楝-砝-毁-靓-歙-锲-究-屋-喳-骨-辨-碑-武-鸠-宫-辜-烊-适-坡-殃-培-佩-供-走-蜈-迟-翼-况-姣-凛-浔-吃-飘-债-犟-金-促-苛-崇-坂-莳-畔-绂-兵-蠕-斋-根-砍-亢-欢-恬-崔-剁-餐-榫-快-扶-‖-濒-缠-鳜-当-彭-驭-浦-篮-昀-锆-秸-钳-弋-娣-瞑-夷-龛-苫-拱-致-%-嵊-障-隐-弑-初-娓-抉-汩-累-蓖-"-唬-助-苓-昙-押-毙-破-城-郧-逢-嚏-獭-瞻-溱-婿-赊-跨-恼-璧-萃-姻-貉-灵-炉-密-氛-陶-砸-谬-衔-点-琛-沛-枳-层-岱-诺-脍-榈-埂-征-冷-裁-打-蹴-素-瘘-逞-蛐-聊-激-腱-萘-踵-飒-蓟-吆-取-咙-簋-涓-矩-曝-挺-揣-座-你-史-舵-焱-尘-苏-笈-脚-溉-榨-诵-樊-邓-焊-义-庶-儋-蟋-蒲-赦-呷-杞-诠-豪-还-试-颓-茉-太-除-紫-逃-痴-草-充-鳕-珉-祗-墨-渭-烩-蘸-慕-璇-镶-穴-嵘-恶-骂-险-绋-幕-碉-肺-戳-刘-潞-秣-纾-潜-銮-洛-须-罘-销-瘪-汞-兮-屉-r-林-厕-质-探-划-狸-殚-善-煊-烹-〒-锈-逯-宸-辍-泱-柚-袍-远-蹋-嶙-绝-峥-娥-缍-雀-徵-认-镱-谷-=-贩-勉-撩-鄯-斐-洋-非-祚-泾-诒-饿-撬-威-晷-搭-芍-锥-笺-蓦-候-琊-档-礁-沼-卵-荠-忑-朝-凹-瑞-头-仪-弧-孵-畏-铆-突-衲-车-浩-气-茂-悖-厢-枕-酝-戴-湾-邹-飚-攘-锂-写-宵-翁-岷-无-喜-丈-挑-嗟-绛-殉-议-槽-具-醇-淞-笃-郴-阅-饼-底-壕-砚-弈-询-缕-庹-翟-零-筷-暨-舟-闺-甯-撞-麂-茌-蔼-很-珲-捕-棠-角-阉-媛-娲-诽-剿-尉-爵-睬-韩-诰-匣-危-糍-镯-立-浏-阳-少-盆-舔-擘-匪-申-尬-铣-旯-抖-赘-瓯-居-ˇ-哮-游-锭-茏-歌-坏-甚-秒-舞-沙-仗-劲-潺-阿-燧-郭-嗖-霏-忠-材-奂-耐-跺-砀-输-岖-媳-氟-极-摆-灿-今-扔-腻-枝-奎-药-熄-吨-话-q-额-慑-嘌-协-喀-壳-埭-视-著-於-愧-陲-翌-峁-颅-佛-腹-聋-侯-咎-叟-秀-颇-存-较-罪-哄-岗-扫-栏-钾-羌-己-璨-枭-霉-煌-涸-衿-键-镝-益-岢-奏-连-夯-睿-冥-均-糖-狞-蹊-稻-爸-刿-胥-煜-丽-肿-璃-掸-跚-灾-垂-樾-濑-乎-莲-窄-犹-撮-战-馄-软-络-显-鸢-胸-宾-妲-恕-埔-蝌-份-遇-巧-瞟-粒-恰-剥-桡-博-讯-凯-堇-阶-滤-卖-斌-骚-彬-兑-磺-樱-舷-两-娱-福-仃-差-找-桁-÷-净-把-阴-污-戬-雷-碓-蕲-楚-罡-焖-抽-妫-咒-仑-闱-尽-邑-菁-爱-贷-沥-鞑-牡-嗉-崴-骤-塌-嗦-订-拮-滓-捡-锻-次-坪-杩-臃-箬-融-珂-鹗-宗-枚-降-鸬-妯-阄-堰-盐-毅-必-杨-崃-俺-甬-状-莘-货-耸-菱-腼-铸-唏-痤-孚-澳-懒-溅-翘-疙-杷-淼-缙-骰-喊-悉-砻-坷-艇-赁-界-谤-纣-宴-晃-茹-归-饭-梢-铡-街-抄-肼-鬟-苯-颂-撷-戈-炒-咆-茭-瘙-负-仰-客-琉-铢-封-卑-珥-椿-镧-窨-鬲-寿-御-袤-铃-萎-砖-餮-脒-裳-肪-孕-嫣-馗-嵇-恳-氯-江-石-褶-冢-祸-阻-狈-羞-银-靳-透-咳-叼-敷-芷-啥-它-瓤-兰-痘-懊-逑-肌-往-捺-坊-甩-呻-〃-沦-忘-膻-祟-菅-剧-崆-智-坯-臧-霍-墅-攻-眯-倘-拢-骠-铐-庭-岙-瓠-′-缺-泥-迢-捶-?-?-郏-喙-掷-沌-纯-秘-种-听-绘-固-螨-团-香-盗-妒-埚-蓝-拖-旱-荞-铀-血-遏-汲-辰-叩-拽-幅-硬-惶-桀-漠-措-泼-唑-齐-肾-念-酱-虚-屁-耶-旗-砦-闵-婉-馆-拭-绅-韧-忏-窝-醋-葺-顾-辞-倜-堆-辋-逆-玟-贱-疾-董-惘-倌-锕-淘-嘀-莽-俭-笏-绑-鲷-杈-择-蟀-粥-嗯-驰-逾-案-谪-褓-胫-哩-昕-颚-鲢-绠-躺-鹄-崂-儒-俨-丝-尕-泌-啊-萸-彰-幺-吟-骄-苣-弦-脊-瑰-〈-诛-镁-析-闪-剪-侧-哟-框-螃-守-嬗-燕-狭-铈-缮-概-迳-痧-鲲-俯-售-笼-痣-扉-挖-满-咋-援-邱-扇-歪-便-玑-绦-峡-蛇-叨-〖-泽-胃-斓-喋-怂-坟-猪-该-蚬-炕-弥-赞-棣-晔-娠-挲-狡-创-疖-铕-镭-稷-挫-弭-啾-翔-粉-履-苘-哦-楼-秕-铂-土-锣-瘟-挣-栉-习-享-桢-袅-磨-桂-谦-延-坚-蔚-噗-署-谟-猬-钎-恐-嬉-雒-倦-衅-亏-璩-睹-刻-殿-王-算-雕-麻-丘-柯-骆-丸-塍-谚-添-鲈-垓-桎-蚯-芥-予-飕-镦-谌-窗-醚-菀-亮-搪-莺-蒿-羁-足-J-真-轶-悬-衷-靛-翊-掩-哒-炅-掐-冼-妮-l-谐-稚-荆-擒-犯-陵-虏-浓-崽-刍-陌-傻-孜-千-靖-演-矜-钕-煽-杰-酗-渗-伞-栋-俗-泫-戍-罕-沾-疽-灏-煦-芬-磴-叱-阱-榉-湃-蜀-叉-醒-彪-租-郡-篷-屎-良-垢-隗-弱-陨-峪-砷-掴-颁-胎-雯-绵-贬-沐-撵-隘-篙-暖-曹-陡-栓-填-臼-彦-瓶-琪-潼-哪-鸡-摩-啦-俟-锋-域-耻-蔫-疯-纹-撇-毒-绶-痛-酯-忍-爪-赳-歆-嘹-辕-烈-册-朴-钱-吮-毯-癜-娃-谀-邵-厮-炽-璞-邃-丐-追-词-瓒-忆-轧-芫-谯-喷-弟-半-冕-裙-掖-墉-绮-寝-苔-势-顷-褥-切-衮-君-佳-嫒-蚩-霞-佚-洙-逊-镖-暹-唛-&-殒-顶-碗-獗-轭-铺-蛊-废-恹-汨-崩-珍-那-杵-曲-纺-夏-薰-傀-闳-淬-姘-舀-拧-卷-楂-恍-讪-厩-寮-篪-赓-乘-灭-盅-鞣-沟-慎-挂-饺-鼾-杳-树-缨-丛-絮-娌-臻-嗳-篡-侩-述-衰-矛-圈-蚜-匕-筹-匿-濞-晨-叶-骋-郝-挚-蚴-滞-增-侍-描-瓣-吖-嫦-蟒-匾-圣-赌-毡-癞-恺-百-曳-需-篓-肮-庖-帏-卿-驿-遗-蹬-鬓-骡-歉-芎-胳-屐-禽-烦-晌-寄-媾-狄-翡-苒-船-廉-终-痞-殇-々-畦-饶-改-拆-悻-萄-£-瓿-乃-訾-桅-匮-溧-拥-纱-铍-骗-蕃-龋-缬-父-佐-疚-栎-醍-掳-蓄-x-惆-颜-鲆-榆-〔-猎-敌-暴-谥-鲫-贾-罗-玻-缄-扦-芪-癣-落-徒-臾-恿-猩-托-邴-肄-牵-春-陛-耀-刊-拓-蓓-邳-堕-寇-枉-淌-啡-湄-兽-酷-萼-碚-濠-萤-夹-旬-戮-梭-琥-椭-昔-勺-蜊-绐-晚-孺-僵-宣-摄-冽-旨-萌-忙-蚤-眉-噼-蟑-付-契-瓜-悼-颡-壁-曾-窕-颢-澎-仿-俑-浑-嵌-浣-乍-碌-褪-乱-蔟-隙-玩-剐-葫-箫-纲-围-伐-决-伙-漩-瑟-刑-肓-镳-缓-蹭-氨-皓-典-畲-坍-铑-檐-塑-洞-倬-储-胴-淳-戾-吐-灼-惺-妙-毕-珐-缈-虱-盖-羰-鸿-磅-谓-髅-娴-苴-唷-蚣-霹-抨-贤-唠-犬-誓-逍-庠-逼-麓-籼-釉-呜-碧-秧-氩-摔-霄-穸-纨-辟-妈-映-完-牛-缴-嗷-炊-恩-荔-茆-掉-紊-慌-莓-羟-阙-萁-磐-另-蕹-辱-鳐-湮-吡-吩-唐-睦-垠-舒-圜-冗-瞿-溺-芾-囱-匠-僳-汐-菩-饬-漓-黑-霰-浸-濡-窥-毂-蒡-兢-驻-鹉-芮-诙-迫-雳-厂-忐-臆-猴-鸣-蚪-栈-箕-羡-渐-莆-捍-眈-哓-趴-蹼-埕-嚣-骛-宏-淄-斑-噜-严-瑛-垃-椎-诱-压-庾-绞-焘-廿-抡-迄-棘-夫-纬-锹-眨-瞌-侠-脐-竞-瀑-孳-骧-遁-姜-颦-荪-滚-萦-伪-逸-粳-爬-锁-矣-役-趣-洒-颔-诏-逐-奸-甭-惠-攀-蹄-泛-尼-拼-阮-鹰-亚-颈-惑-勒-〉-际-肛-爷-刚-钨-丰-养-冶-鲽-辉-蔻-画-覆-皴-妊-麦-返-醉-皂-擀-〗-酶-凑-粹-悟-诀-硖-港-卜-z-杀-涕-±-舍-铠-抵-弛-段-敝-镐-奠-拂-轴-跛-袱-e-t-沉-菇-俎-薪-峦-秭-蟹-历-盟-菠-寡-液-肢-喻-染-裱-悱-抱-氙-赤-捅-猛-跑-氮-谣-仁-尺-辊-窍-烙-衍-架-擦-倏-璐-瑁-币-楞-胖-夔-趸-邛-惴-饕-虔-蝎-§-哉-贝-宽-辫-炮-扩-饲-籽-魏-菟-锰-伍-猝-末-琳-哚-蛎-邂-呀-姿-鄞-却-歧-仙-恸-椐-森-牒-寤-袒-婆-虢-雅-钉-朵-贼-欲-苞-寰-故-龚-坭-嘘-咫-礼-硷-兀-睢-汶-’-铲-烧-绕-诃-浃-钿-哺-柜-讼-颊-璁-腔-洽-咐-脲-簌-筠-镣-玮-鞠-谁-兼-姆-挥-梯-蝴-谘-漕-刷-躏-宦-弼-b-垌-劈-麟-莉-揭-笙-渎-仕-嗤-仓-配-怏-抬-错-泯-镊-孰-猿-邪-仍-秋-鼬-壹-歇-吵-炼-<-尧-射-柬-廷-胧-霾-凳-隋-肚-浮-梦-祥-株-堵-退-L-鹫-跎-凶-毽-荟-炫-栩-玳-甜-沂-鹿-顽-伯-爹-赔-蛴-徐-匡-欣-狰-缸-雹-蟆-疤-默-沤-啜-痂-衣-禅-w-i-h-辽-葳-黝-钗-停-沽-棒-馨-颌-肉-吴-硫-悯-劾-娈-马-啧-吊-悌-镑-峭-帆-瀣-涉-咸-疸-滋-泣-翦-拙-癸-钥-蜒-+-尾-庄-凝-泉-婢-渴-谊-乞-陆-锉-糊-鸦-淮-I-B-N-晦-弗-乔-庥-葡-尻-席-橡-傣-渣-拿-惩-麋-斛-缃-矮-蛏-岘-鸽-姐-膏-催-奔-镒-喱-蠡-摧-钯-胤-柠-拐-璋-鸥-卢-荡-倾-^-_-珀-逄-萧-塾-掇-贮-笆-聂-圃-冲-嵬-M-滔-笕-值-炙-偶-蜱-搐-梆-汪-蔬-腑-鸯-蹇-敞-绯-仨-祯-谆-梧-糗-鑫-啸-豺-囹-猾-巢-柄-瀛-筑-踌-沭-暗-苁-鱿-蹉-脂-蘖-牢-热-木-吸-溃-宠-序-泞-偿-拜-檩-厚-朐-毗-螳-吞-媚-朽-担-蝗-橘-畴-祈-糟-盱-隼-郜-惜-珠-裨-铵-焙-琚-唯-咚-噪-骊-丫-滢-勤-棉-呸-咣-淀-隔-蕾-窈-饨-挨-煅-短-匙-粕-镜-赣-撕-墩-酬-馁-豌-颐-抗-酣-氓-佑-搁-哭-递-耷-涡-桃-贻-碣-截-瘦-昭-镌-蔓-氚-甲-猕-蕴-蓬-散-拾-纛-狼-猷-铎-埋-旖-矾-讳-囊-糜-迈-粟-蚂-紧-鲳-瘢-栽-稼-羊-锄-斟-睁-桥-瓮-蹙-祉-醺-鼻-昱-剃-跳-篱-跷-蒜-翎-宅-晖-嗑-壑-峻-癫-屏-狠-陋-袜-途-憎-祀-莹-滟-佶-溥-臣-约-盛-峰-磁-慵-婪-拦-莅-朕-鹦-粲-裤-哎-疡-嫖-琵-窟-堪-谛-嘉-儡-鳝-斩-郾-驸-酊-妄-胜-贺-徙-傅-噌-钢-栅-庇-恋-匝-巯-邈-尸-锚-粗-佟-蛟-薹-纵-蚊-郅-绢-锐-苗-俞-篆-淆-膀-鲜-煎-诶-秽-寻-涮-刺-怀-噶-巨-褰-魅-灶-灌-桉-藕-谜-舸-薄-搀-恽-借-牯-痉-渥-愿-亓-耘-杠-柩-锔-蚶-钣-珈-喘-蹒-幽-赐-稗-晤-莱-泔-扯-肯-菪-裆-腩-豉-疆-骜-腐-倭-珏-唔-粮-亡-润-慰-伽-橄-玄-誉-醐-胆-龊-粼-塬-陇-彼-削-嗣-绾-芽-妗-垭-瘴-爽-薏-寨-龈-泠-弹-赢-漪-猫-嘧-涂-恤-圭-茧-烽-屑-痕-巾-赖-荸-凰-腮-畈-亵-蹲-偃-苇-澜-艮-换-骺-烘-苕-梓-颉-肇-哗-悄-氤-涠-葬-屠-鹭-植-竺-佯-诣-鲇-瘀-鲅-邦-移-滁-冯-耕-癔-戌-茬-沁-巩-悠-湘-洪-痹-锟-循-谋-腕-鳃-钠-捞-焉-迎-碱-伫-急-榷-奈-邝-卯-辄-皲-卟-醛-畹-忧-稳-雄-昼-缩-阈-睑-扌-耗-曦-涅-捏-瞧-邕-淖-漉-铝-耦-禹-湛-喽-莼-琅-诸-苎-纂-硅-始-嗨-傥-燃-臂-赅-嘈-呆-贵-屹-壮-肋-亍-蚀-卅-豹-腆-邬-迭-浊-}-童-螂-捐-圩-勐-触-寞-汊-壤-荫-膺-渌-芳-懿-遴-螈-泰-蓼-蛤-茜-舅-枫-朔-膝-眙-避-梅-判-鹜-璜-牍-缅-垫-藻-黔-侥-惚-懂-踩-腰-腈-札-丞-唾-慈-顿-摹-荻-琬-~-斧-沈-滂-胁-胀-幄-莜-Z-匀-鄄-掌-绰-茎-焚-赋-萱-谑-汁-铒-瞎-夺-蜗-野-娆-冀-弯-篁-懵-灞-隽-芡-脘-俐-辩-芯-掺-喏-膈-蝈-觐-悚-踹-蔗-熠-鼠-呵-抓-橼-峨-畜-缔-禾-崭-弃-熊-摒-凸-拗-穹-蒙-抒-祛-劝-闫-扳-阵-醌-踪-喵-侣-搬-仅-荧-赎-蝾-琦-买-婧-瞄-寓-皎-冻-赝-箩-莫-瞰-郊-笫-姝-筒-枪-遣-煸-袋-舆-痱-涛-母-〇-启-践-耙-绲-盘-遂-昊-搞-槿-诬-纰-泓-惨-檬-亻-越-C-o-憩-熵-祷-钒-暧-塔-阗-胰-咄-娶-魔-琶-钞-邻-扬-杉-殴-咽-弓-〆-髻-】-吭-揽-霆-拄-殖-脆-彻-岩-芝-勃-辣-剌-钝-嘎-甄-佘-皖-伦-授-徕-憔-挪-皇-庞-稔-芜-踏-溴-兖-卒-擢-饥-鳞-煲-‰-账-颗-叻-斯-捧-鳍-琮-讹-蛙-纽-谭-酸-兔-莒-睇-伟-觑-羲-嗜-宜-褐-旎-辛-卦-诘-筋-鎏-溪-挛-熔-阜-晰-鳅-丢-奚-灸-呱-献-陉-黛-鸪-甾-萨-疮-拯-洲-疹-辑-叙-恻-谒-允-柔-烂-氏-逅-漆-拎-惋-扈-湟-纭-啕-掬-擞-哥-忽-涤-鸵-靡-郗-瓷-扁-廊-怨-雏-钮-敦-E-懦-憋-汀-拚-啉-腌-岸-f-痼-瞅-尊-咀-眩-飙-忌-仝-迦-熬-毫-胯-篑-茄-腺-凄-舛-碴-锵-诧-羯-後-漏-汤-宓-仞-蚁-壶-谰-皑-铄-棰-罔-辅-晶-苦-牟-闽-\-烃-饮-聿-丙-蛳-朱-煤-涔-鳖-犁-罐-荼-砒-淦-妤-黏-戎-孑-婕-瑾-戢-钵-枣-捋-砥-衩-狙-桠-稣-阎-肃-梏-诫-孪-昶-婊-衫-嗔-侃-塞-蜃-樵-峒-貌-屿-欺-缫-阐-栖-诟-珞-荭-吝-萍-嗽-恂-啻-蜴-磬-峋-俸-豫-谎-徊-镍-韬-魇-晴-U-囟-猜-蛮-坐-囿-伴-亭-肝-佗-蝠-妃-胞-滩-榴-氖-垩-苋-砣-扪-馏-姓-轩-厉-夥-侈-禀-垒-岑-赏-钛-辐-痔-披-纸-碳-“-坞-蠓-挤-荥-沅-悔-铧-帼-蒌-蝇-a-p-y-n-g-哀-浆-瑶-凿-桶-馈-皮-奴-苜-佤-伶-晗-铱-炬-优-弊-氢-恃-甫-攥-端-锌-灰-稹-炝-曙-邋-亥-眶-碾-拉-萝-绔-捷-浍-腋-姑-菖-凌-涞-麽-锢-桨-潢-绎-镰-殆-锑-渝-铬-困-绽-觎-匈-糙-暑-裹-鸟-盔-肽-迷-綦-『-亳-佝-俘-钴-觇-骥-仆-疝-跪-婶-郯-瀹-唉-脖-踞-针-晾-忒-扼-瞩-叛-椒-疟-嗡-邗-肆-跆-玫-忡-捣-咧-唆-艄-蘑-潦-笛-阚-沸-泻-掊-菽-贫-斥-髂-孢-镂-赂-麝-鸾-屡-衬-苷-恪-叠-希-粤-爻-喝-茫-惬-郸-绻-庸-撅-碟-宄-妹-膛-叮-饵-崛-嗲-椅-冤-搅-咕-敛-尹-垦-闷-蝉-霎-勰-败-蓑-泸-肤-鹌-幌-焦-浠-鞍-刁-舰-乙-竿-裔-。-茵-函-伊-兄-丨-娜-匍-謇-莪-宥-似-蝽-翳-酪-翠-粑-薇-祢-骏-赠-叫-Q-噤-噻-竖-芗-莠-潭-俊-羿-耜-O-郫-趁-嗪-囚-蹶-芒-洁-笋-鹑-敲-硝-啶-堡-渲-揩-』-携-宿-遒-颍-扭-棱-割-萜-蔸-葵-琴-捂-饰-衙-耿-掠-募-岂-窖-涟-蔺-瘤-柞-瞪-怜-匹-距-楔-炜-哆-秦-缎-幼-茁-绪-痨-恨-楸-娅-瓦-桩-雪-嬴-伏-榔-妥-铿-拌-眠-雍-缇-‘-卓-搓-哌-觞-噩-屈-哧-髓-咦-巅-娑-侑-淫-膳-祝-勾-姊-莴-胄-疃-薛-蜷-胛-巷-芙-芋-熙-闰-勿-窃-狱-剩-钏-幢-陟-铛-慧-靴-耍-k-浙-浇-飨-惟-绗-祜-澈-啼-咪-磷-摞-诅-郦-抹-跃-壬-吕-肖-琏-颤-尴-剡-抠-凋-赚-泊-津-宕-殷-倔-氲-漫-邺-涎-怠-$-垮-荬-遵-俏-叹-噢-饽-蜘-孙-筵-疼-鞭-羧-牦-箭-潴-c-眸-祭-髯-啖-坳-愁-芩-驮-倡-巽-穰-沃-胚-怒-凤-槛-剂-趵-嫁-v-邢-灯-鄢-桐-睽-檗-锯-槟-婷-嵋-圻-诗-蕈-颠-遭-痢-芸-怯-馥-竭-锗-徜-恭-遍-籁-剑-嘱-苡-龄-僧-桑-潸-弘-澶-楹-悲-讫-愤-腥-悸-谍-椹-呢-桓-葭-攫-阀-翰-躲-敖-柑-郎-笨-橇-呃-魁-燎-脓-葩-磋-垛-玺-狮-沓-砜-蕊-锺-罹-蕉-翱-虐-闾-巫-旦-茱-嬷-枯-鹏-贡-芹-汛-矫-绁-拣-禺-佃-讣-舫-惯-乳-趋-疲-挽-岚-虾-衾-蠹-蹂-飓-氦-铖-孩-稞-瑜-壅-掀-勘-妓-畅-髋-W-庐-牲-蓿-榕-练-垣-唱-邸-菲-昆-婺-穿-绡-麒-蚱-掂-愚-泷-涪-漳-妩-娉-榄-讷-觅-旧-藤-煮-呛-柳-腓-叭-庵-烷-阡-罂-蜕-擂-猖-咿-媲-脉-【-沏-貅-黠-熏-哲-烁-坦-酵-兜-×-潇-撒-剽-珩-圹-乾-摸-樟-帽-嗒-襄-魂-轿-憬-锡-〕-喃-皆-咖-隅-脸-残-泮-袂-鹂-珊-囤-捆-咤-误-徨-闹-淙-芊-淋-怆-囗-拨-梳-渤-R-G-绨-蚓-婀-幡-狩-麾-谢-唢-裸-旌-伉-纶-裂-驳-砼-咛-澄-樨-蹈-宙-澍-倍-貔-操-勇-蟠-摈-砧-虬-够-缁-悦-藿-撸-艹-摁-淹-豇-虎-榭-ˉ-吱-d-°-喧-荀-踱-侮-奋-偕-饷-犍-惮-坑-璎-徘-宛-妆-袈-倩-窦-昂-荏-乖-K-怅-撰-鳙-牙-袁-酞-X-痿-琼-闸-雁-趾-荚-虻-涝-《-杏-韭-偈-烤-绫-鞘-卉-症-遢-蓥-诋-杭-荨-匆-竣-簪-辙-敕-虞-丹-缭-咩-黟-m-淤-瑕-咂-铉-硼-茨-嶂-痒-畸-敬-涿-粪-窘-熟-叔-嫔-盾-忱-裘-憾-梵-赡-珙-咯-娘-庙-溯-胺-葱-痪-摊-荷-卞-乒-髦-寐-铭-坩-胗-枷-爆-溟-嚼-羚-砬-轨-惊-挠-罄-竽-菏-氧-浅-楣-盼-枢-炸-阆-杯-谏-噬-淇-渺-俪-秆-墓-泪-跻-砌-痰-垡-渡-耽-釜-讶-鳎-煞-呗-韶-舶-绷-鹳-缜-旷-铊-皱-龌-檀-霖-奄-槐-艳-蝶-旋-哝-赶-骞-蚧-腊-盈-丁-`-蜚-矸-蝙-睨-嚓-僻-鬼-醴-夜-彝-磊-笔-拔-栀-糕-厦-邰-纫-逭-纤-眦-膊-馍-躇-烯-蘼-冬-诤-暄-骶-哑-瘠-」-臊-丕-愈-咱-螺-擅-跋-搏-硪-谄-笠-淡-嘿-骅-谧-鼎-皋-姚-歼-蠢-驼-耳-胬-挝-涯-狗-蒽-孓-犷-凉-芦-箴-铤-孤-嘛-坤-V-茴-朦-挞-尖-橙-诞-搴-碇-洵-浚-帚-蜍-漯-柘-嚎-讽-芭-荤-咻-祠-秉-跖-埃-吓-糯-眷-馒-惹-娼-鲑-嫩-讴-轮-瞥-靶-褚-乏-缤-宋-帧-删-驱-碎-扑-俩-俄-偏-涣-竹-噱-皙-佰-渚-唧-斡-#-镉-刀-崎-筐-佣-夭-贰-肴-峙-哔-艿-匐-牺-镛-缘-仡-嫡-劣-枸-堀-梨-簿-鸭-蒸-亦-稽-浴-{-衢-束-槲-j-阁-揍-疥-棋-潋-聪-窜-乓-睛-插-冉-阪-苍-搽-「-蟾-螟-幸-仇-樽-撂-慢-跤-幔-俚-淅-覃-觊-溶-妖-帛-侨-曰-妾-泗-·-:-瀘-風-Ë-(-)-∶-紅-紗-瑭-雲-頭-鶏-財-許-•-¥-樂-焗-麗-—-;-滙-東-榮-繪-興-…-門-業-π-楊-國-顧-é-盤-寳-Λ-龍-鳳-島-誌-緣-結-銭-萬-勝-祎-璟-優-歡-臨-時-購-=-★-藍-昇-鐵-觀-勅-農-聲-畫-兿-術-發-劉-記-專-耑-園-書-壴-種-Ο-●-褀-號-銀-匯-敟-锘-葉-橪-廣-進-蒄-鑽-阝-祙-貢-鍋-豊-夬-喆-團-閣-開-燁-賓-館-酡-沔-順-+-硚-劵-饸-陽-車-湓-復-萊-氣-軒-華-堃-迮-纟-戶-馬-學-裡-電-嶽-獨-マ-シ-サ-ジ-燘-袪-環-❤-臺-灣-専-賣-孖-聖-攝-線-▪-α-傢-俬-夢-達-莊-喬-貝-薩-劍-羅-壓-棛-饦-尃-璈-囍-醫-G-I-A-#-N-鷄-髙-嬰-啓-約-隹-潔-賴-藝-~-寶-籣-麺--嶺-√-義-網-峩-長-∧-魚-機-構-②-鳯-偉-L-B-㙟-畵-鴿-'-詩-溝-嚞-屌-藔-佧-玥-蘭-織-1-3-9-0-7-點-砭-鴨-鋪-銘-廳-弍-‧-創-湯-坶-℃-卩-骝-&-烜-荘-當-潤-扞-係-懷-碶-钅-蚨-讠-☆-叢-爲-埗-涫-塗-→-楽-現-鯨-愛-瑪-鈺-忄-悶-藥-飾-樓-視-孬-ㆍ-燚-苪-師-①-丼-锽-│-韓-標-è-兒-閏-匋-張-漢-Ü-髪-會-閑-檔-習-裝-の-峯-菘-輝-И-雞-釣-億-浐-K-O-R-8-H-E-P-T-W-D-S-C-M-F-姌-饹-»-晞-廰-ä-嵯-鷹-負-飲-絲-冚-楗-澤-綫-區-❋-←-質-靑-揚-③-滬-統-産-協-﹑-乸-畐-經-運-際-洺-岽-為-粵-諾-崋-豐-碁-ɔ-V-2-6-齋-誠-訂-´-勑-雙-陳-無-í-泩-媄-夌-刂-i-c-t-o-r-a-嘢-耄-燴-暃-壽-媽-靈-抻-體-唻-É-冮-甹-鎮-錦-ʌ-蜛-蠄-尓-駕-戀-飬-逹-倫-貴-極-Я-Й-寬-磚-嶪-郎-職-|-間-n-d-剎-伈-課-飛-橋-瘊-№-譜-骓-圗-滘-縣-粿-咅-養-濤-彳-®-%-Ⅱ-啰-㴪-見-矞-薬-糁-邨-鲮-顔-罱-З-選-話-贏-氪-俵-競-瑩-繡-枱-β-綉-á-獅-爾-™-麵-戋-淩-徳-個-劇-場-務-簡-寵-h-實-膠-轱-圖-築-嘣-樹-㸃-營-耵-孫-饃-鄺-飯-麯-遠-輸-坫-孃-乚-閃-鏢-㎡-題-廠-關-↑-爺-將-軍-連-篦-覌-參-箸---窠-棽-寕-夀-爰-歐-呙-閥-頡-熱-雎-垟-裟-凬-勁-帑-馕-夆-疌-枼-馮-貨-蒤-樸-彧-旸-靜-龢-暢-㐱-鳥-珺-鏡-灡-爭-堷-廚-Ó-騰-診-┅-蘇-褔-凱-頂-豕-亞-帥-嘬-⊥-仺-桖-複-饣-絡-穂-顏-棟-納-▏-濟-親-設-計-攵-埌-烺-ò-頤-燦-蓮-撻-節-講-濱-濃-娽-洳-朿-燈-鈴-護-膚-铔-過-補-Z-U-5-4-坋-闿-䖝-餘-缐-铞-貿-铪-桼-趙-鍊-[-㐂-垚-菓-揸-捲-鐘-滏-𣇉-爍-輪-燜-鴻-鮮-動-鹞-鷗-丄-慶-鉌-翥-飮-腸-⇋-漁-覺-來-熘-昴-翏-鲱-圧-鄉-萭-頔-爐-嫚-г-貭-類-聯-幛-輕-訓-鑒-夋-锨-芃-珣-䝉-扙-嵐-銷-處-ㄱ-語-誘-苝-歸-儀-燒-楿-內-粢-葒-奧-麥-礻-滿-蠔-穵-瞭-態-鱬-榞-硂-鄭-黃-煙-祐-奓-逺-*-瑄-獲-聞-薦-讀-這-樣-決-問-啟-們-執-説-轉-單-隨-唘-帶-倉-庫-還-贈-尙-皺-■-餅-產-○-∈-報-狀-楓-賠-琯-嗮-禮-`-傳->-≤-嗞-Φ-≥-換-咭-∣-↓-曬-ε-応-寫-″-終-様-純-費-療-聨-凍-壐-郵-ü-黒-∫-製-塊-調-軽-確-撃-級-馴-Ⅲ-涇-繹-數-碼-證-狒-処-劑-<-晧-賀-衆-]-櫥-兩-陰-絶-對-鯉-憶-◎-p-e-Y-蕒-煖-頓-測-試-鼽-僑-碩-妝-帯-≈-鐡-舖-權-喫-倆-ˋ-該-悅-ā-俫-.-f-s-b-m-k-g-u-j-貼-淨-濕-針-適-備-l-/-給-謢-強-觸-衛-與-⊙-$-緯-變-⑴-⑵-⑶-㎏-殺-∩-幚-─-價-▲-離-ú-ó-飄-烏-関-閟-﹝-﹞-邏-輯-鍵-驗-訣-導-歷-屆-層-▼-儱-錄-熳-ē-艦-吋-錶-辧-飼-顯-④-禦-販-気-対-枰-閩-紀-幹-瞓-貊-淚-△-眞-墊-Ω-獻-褲-縫-緑-亜-鉅-餠-{-}-◆-蘆-薈-█-◇-溫-彈-晳-粧-犸-穩-訊-崬-凖-熥-П-舊-條-紋-圍-Ⅳ-筆-尷-難-雜-錯-綁-識-頰-鎖-艶-□-殁-殼-⑧-├-▕-鵬-ǐ-ō-ǒ-糝-綱-▎-μ-盜-饅-醬-籤-蓋-釀-鹽-據-à-ɡ-辦-◥-彐-┌-婦-獸-鲩-伱-ī-蒟-蒻-齊-袆-腦-寧-凈-妳-煥-詢-偽-謹-啫-鯽-騷-鱸-損-傷-鎻-髮-買-冏-儥-両-﹢-∞-載-喰-z-羙-悵-燙-曉-員-組-徹-艷-痠-鋼-鼙-縮-細-嚒-爯-≠-維-"-鱻-壇-厍-帰-浥-犇-薡-軎-²-應-醜-刪-緻-鶴-賜-噁-軌-尨-镔-鷺-槗-彌-葚-濛-請-溇-緹-賢-訪-獴-瑅-資-縤-陣-蕟-栢-韻-祼-恁-伢-謝-劃-涑-總-衖-踺-砋-凉-籃-駿-苼-瘋-昽-紡-驊-腎-﹗-響-杋-剛-嚴-禪-歓-槍-傘-檸-檫-炣-勢-鏜-鎢-銑-尐-減-奪-惡-θ-僮-婭-臘-ū-ì-殻-鉄-∑-蛲-焼-緖-續-紹-懮\ No newline at end of filediff --git a/python/onnxruntime_infer/requirements.txt b/python/onnxruntime_infer/requirements.txtdeleted file mode 100644index fe8d176..0000000--- a/python/onnxruntime_infer/requirements.txt+++ /dev/null@@ -1,7 +0,0 @@-pyclipper==1.2.0-Shapely==1.7.1-onnxruntime>=1.7.0-opencv_python==4.5.1.48-six==1.15.0-numpy>=1.19.2-Pillow==8.3.0\ No newline at end of filediff --git a/python/onnxruntime_infer/test_demo.py b/python/onnxruntime_infer/test_demo.pydeleted file mode 100644index 2673f8d..0000000--- a/python/onnxruntime_infer/test_demo.py+++ /dev/null@@ -1,67 +0,0 @@-# -*- encoding: utf-8 -*--# @Author: SWHL-# @Contact: [email protected]-from rapid_ocr_api import TextSystem, visualize--det_model_path = 'models/PPOCRv3/ch_PP-OCRv3_det_infer.onnx'-cls_model_path = 'models/ch_ppocr_mobile_v2.0_cls_infer.onnx'--# 中英文识别-rec_model_path = 'models/ch_ppocr_mobile_v2.0_rec_infer.onnx'-keys_path = 'rec_dict/ppocr_keys_v1.txt'--text_sys = TextSystem(det_model_path,- rec_model_path,- use_angle_cls=True,- cls_model_path=cls_model_path,- keys_path=keys_path)--image_path = r'test_images/det_images/ch_en_num.jpg'-dt_boxes, rec_res = text_sys(image_path)-visualize(image_path, dt_boxes, rec_res)---# # 只有中英文和数字识别-# rec_model_path = 'models/en_number_mobile_v2.0_rec_infer.onnx'-# keys_path = 'rec_dict/en_dict.txt'--# text_sys = TextSystem(det_model_path,-# rec_model_path,-# use_angle_cls=True,-# cls_model_path=cls_model_path,-# keys_path=keys_path)--# image_path = r'test_images/det_images/en_num.png'-# dt_boxes, rec_res = text_sys(image_path)-# visualize(image_path, dt_boxes, rec_res)---# # 日语识别-# rec_model_path = 'models/japan_rec_crnn.onnx'-# keys_path = 'rec_dict/japan_dict.txt'--# text_sys = TextSystem(det_model_path,-# rec_model_path,-# use_angle_cls=True,-# cls_model_path=cls_model_path,-# keys_path=keys_path)--# image_path = r'test_images/det_images/japan.png'-# dt_boxes, rec_res = text_sys(image_path)-# visualize(image_path, dt_boxes, rec_res)---# # 韩语识别-# rec_model_path = 'models/korean_mobile_v2.0_rec_infer.onnx'-# keys_path = 'rec_dict/korean_dict.txt'-# font_path = 'fonts/korean.ttf'--# text_sys = TextSystem(det_model_path,-# rec_model_path,-# use_angle_cls=True,-# cls_model_path=cls_model_path,-# keys_path=keys_path)--# image_path = r'test_images/det_images/korean_1.jpg'-# dt_boxes, rec_res = text_sys(image_path)-# visualize(image_path, dt_boxes, rec_res, font_path)diff --git a/python/onnxruntime_infer/test_demo.sh b/python/onnxruntime_infer/test_demo.shdeleted file mode 100644index e905249..0000000--- a/python/onnxruntime_infer/test_demo.sh+++ /dev/null@@ -1,16 +0,0 @@-#! /bin/bash--det_model_path="models/ch_PP-OCRv2_det_infer.onnx"-cls_model_path="models/ch_ppocr_mobile_v2.0_cls_infer.onnx"--# 这里可以按照自己需求,做相关更改-rec_model_path="models/ch_ppocr_mobile_v2.0_rec_infer.onnx"-keys_path="ch_ppocr_mobile_v2_rec/ppocr_keys_v1.txt"--img_path="test_images/det_images/ch_en_num.jpg"--python rapid_ocr_api.py --det_model_path ${det_model_path} \- --cls_model_path ${cls_model_path} \- --rec_model_path ${rec_model_path} \- --image_path ${img_path} \- --keys_path ${keys_path}diff --git a/python/openvino_infer/README.md b/python/openvino_infer/README.mddeleted file mode 100644index cc8d650..0000000--- a/python/openvino_infer/README.md+++ /dev/null@@ -1,22 +0,0 @@-#### 安装-```bash-# Windows端-pip install openvino==2022.1.0--# 里面含有mo-pip install openvino-dev==2022.1.0-```--#### 模型问题-- 因为OpenVINO可以直接推理ONNX模型,故这里暂时不作转换,直接推理之前ONNX模型即可-- 这里仍然给出转换的代码,用作参考:- ```bash- mo --input_model models/ch_PP-OCRv2_det_infer.onnx --output_dir models/IR/-- mo --input_model models/ch_PP-OCRv2_det_infer.onnx \- --output_dir models/IR/static \- --input_shape "[1,3,12128,800]"- ```--#### 使用步骤-同[onnxruntime_infer](../onnxruntime_infer/README.md)\ No newline at end of filediff --git a/python/openvino_infer/ch_ppocr_mobile_v2_cls/__init__.py b/python/openvino_infer/ch_ppocr_mobile_v2_cls/__init__.pydeleted file mode 100644index 3ecae8d..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_cls/__init__.py+++ /dev/null@@ -1,6 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--# @File: __init__.py-# @Time: 2021/01/31 11:02:53-# @Author: Max-from .text_cls import TextClassifier\ No newline at end of filediff --git a/python/openvino_infer/ch_ppocr_mobile_v2_cls/run.sh b/python/openvino_infer/ch_ppocr_mobile_v2_cls/run.shdeleted file mode 100644index 963d8e3..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_cls/run.sh+++ /dev/null@@ -1,9 +0,0 @@-#! /bin/bash-set -e errexit--root_path=$(cd $(dirname $0); pwd)-image_path=${root_path}"/test_images/rec_images/2021-01-18_14-22-32.png"-model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_cls_infer.onnx"--python text_cls.py --image_path ${image_path} \- --model_path ${model_path}\ No newline at end of filediff --git a/python/openvino_infer/ch_ppocr_mobile_v2_cls/text_cls.py b/python/openvino_infer/ch_ppocr_mobile_v2_cls/text_cls.pydeleted file mode 100644index b5f02e0..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_cls/text_cls.py+++ /dev/null@@ -1,147 +0,0 @@-# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.-#-# Licensed under the Apache License, Version 2.0 (the "License");-# you may not use this file except in compliance with the License.-# You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.-import argparse-import copy-import math-import time--import cv2-import numpy as np-import onnxruntime as ort-from openvino.runtime import Core--try:- from .utils import ClsPostProcess, check_and_read_gif, get_image_file_list-except:- from utils import ClsPostProcess, check_and_read_gif, get_image_file_list---class TextClassifier(object):- def __init__(self, cls_model_path):- self.cls_image_shape = [3, 48, 192]- self.cls_batch_num = 6- self.cls_thresh = 0.9- self.postprocess_op = ClsPostProcess(label_list=['0', '180'])-- # ie = Core()- # model_onnx = ie.read_model(cls_model_path)- # compile_model = ie.compile_model(model=model_onnx, device_name='CPU')- # self.session = compile_model.create_infer_request()-- sess_opt = ort.SessionOptions()- sess_opt.log_severity_level = 4- sess_opt.enable_cpu_mem_arena = False- self.session = ort.InferenceSession(cls_model_path, sess_opt)-- def resize_norm_img(self, img):- imgC, imgH, imgW = self.cls_image_shape- h = img.shape[0]- w = img.shape[1]- ratio = w / float(h)- if math.ceil(imgH * ratio) > imgW:- resized_w = imgW- else:- resized_w = int(math.ceil(imgH * ratio))- resized_image = cv2.resize(img, (resized_w, imgH))- resized_image = resized_image.astype('float32')- if self.cls_image_shape[0] == 1:- resized_image = resized_image / 255- resized_image = resized_image[np.newaxis, :]- else:- resized_image = resized_image.transpose((2, 0, 1)) / 255- resized_image -= 0.5- resized_image /= 0.5- padding_im = np.zeros((imgC, imgH, imgW), dtype=np.float32)- padding_im[:, :, 0:resized_w] = resized_image- return padding_im-- def load_image(self, image_dir):- image_file_list = get_image_file_list(image_dir)- valid_image_file_list = []- img_list = []- for image_file in image_file_list:- img, flag = check_and_read_gif(image_file)- if not flag:- img = cv2.imread(image_file)- if img is None:- print(f"error in loading image:{image_file}")- continue- valid_image_file_list.append(image_file)- img_list.append(img)- return img_list-- def __call__(self, image_dir):- if isinstance(image_dir[0], (list, str)):- img_list = self.load_image(image_dir)- else:- img_list = image_dir-- img_list = copy.deepcopy(img_list)- img_num = len(img_list)-- # Calculate the aspect ratio of all text bars- width_list = []- for img in img_list:- width_list.append(img.shape[1] / float(img.shape[0]))-- # Sorting can speed up the cls process- indices = np.argsort(np.array(width_list))-- cls_res = [['', 0.0]] * img_num- batch_num = self.cls_batch_num- elapse = 0- for beg_img_no in range(0, img_num, batch_num):- end_img_no = min(img_num, beg_img_no + batch_num)- norm_img_batch = []- max_wh_ratio = 0- for ino in range(beg_img_no, end_img_no):- h, w = img_list[indices[ino]].shape[0:2]- wh_ratio = w * 1.0 / h- max_wh_ratio = max(max_wh_ratio, wh_ratio)- for ino in range(beg_img_no, end_img_no):- norm_img = self.resize_norm_img(img_list[indices[ino]])- norm_img = norm_img[np.newaxis, :]- norm_img_batch.append(norm_img)- norm_img_batch = np.concatenate(norm_img_batch)-- starttime = time.time()- onnx_inputs = {self.session.get_inputs()[0].name: norm_img_batch}- prob_out = self.session.run(None, onnx_inputs)[0]-- # self.session.infer(inputs=[norm_img_batch])- # prob_out = self.session.get_output_tensor().data-- cls_result = self.postprocess_op(prob_out)- elapse += time.time() - starttime-- for rno in range(len(cls_result)):- label, score = cls_result[rno]- cls_res[indices[beg_img_no + rno]] = [label, score]- if '180' in label and score > self.cls_thresh:- img_list[indices[beg_img_no + rno]] = cv2.rotate(- img_list[indices[beg_img_no + rno]], 1)- return img_list, cls_res, elapse---if __name__ == "__main__":- parser = argparse.ArgumentParser()- parser.add_argument('--image_path', type=str, help='image_dir|image_path')- parser.add_argument('--model_path', type=str, help='model_path')- args = parser.parse_args()-- text_classifier = TextClassifier(args.model_path)-- img_list, cls_res, predict_time = text_classifier(args.image_path)- for ino in range(len(img_list)):- print(f"分类结果:{cls_res[ino]}")diff --git a/python/openvino_infer/ch_ppocr_mobile_v2_cls/utils.py b/python/openvino_infer/ch_ppocr_mobile_v2_cls/utils.pydeleted file mode 100644index 6fd2865..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_cls/utils.py+++ /dev/null@@ -1,65 +0,0 @@-# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.-#-# Licensed under the Apache License, Version 2.0 (the "License");-# you may not use this file except in compliance with the License.-# You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.-import os-import cv2-import imghdr---def get_image_file_list(img_file):- imgs_lists = []- if img_file is None or not os.path.exists(img_file):- raise FileNotFoundError(f"not found any img file in {img_file}")-- img_end = {'jpg', 'bmp', 'png', 'jpeg', 'rgb', 'tif', 'tiff', 'gif', 'GIF'}- if os.path.isfile(img_file) and imghdr.what(img_file) in img_end:- imgs_lists.append(img_file)- elif os.path.isdir(img_file):- for single_file in os.listdir(img_file):- file_path = os.path.join(img_file, single_file)- if os.path.isfile(file_path) and imghdr.what(file_path) in img_end:- imgs_lists.append(file_path)- if len(imgs_lists) == 0:- raise FileNotFoundError(f"not found any img file in {img_file}")- return imgs_lists---def check_and_read_gif(img_path):- if os.path.basename(img_path)[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, False---class ClsPostProcess(object):- """ Convert between text-label and text-index """-- def __init__(self, label_list, **kwargs):- super(ClsPostProcess, self).__init__()- self.label_list = label_list-- def __call__(self, preds, label=None, *args, **kwargs):- pred_idxs = preds.argmax(axis=1)- decode_out = [(self.label_list[idx], preds[i, idx])- for i, idx in enumerate(pred_idxs)]- if label is None:- return decode_out- label = [(self.label_list[idx], 1.0) for idx in label]- return decode_out, label\ No newline at end of filediff --git a/python/openvino_infer/ch_ppocr_mobile_v2_det/__init__.py b/python/openvino_infer/ch_ppocr_mobile_v2_det/__init__.pydeleted file mode 100644index d7a3e0b..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_det/__init__.py+++ /dev/null@@ -1,6 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--# @File: __init__.py-# @Time: 2021/01/23 15:24:27-# @Author: Max-from .text_detect import TextDetector\ No newline at end of filediff --git a/python/openvino_infer/ch_ppocr_mobile_v2_det/run.sh b/python/openvino_infer/ch_ppocr_mobile_v2_det/run.shdeleted file mode 100644index 99fc806..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_det/run.sh+++ /dev/null@@ -1,9 +0,0 @@-#! /bin/bash-set -e errexit--root_path=$(cd $(dirname $0); pwd)-image_path=${root_path}"/test_images/det_images/1.jpg"-model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_det_infer.onnx"--python text_detect.py --image_path ${image_path} \- --model_path ${model_path}\ No newline at end of filediff --git a/python/openvino_infer/ch_ppocr_mobile_v2_det/text_detect.py b/python/openvino_infer/ch_ppocr_mobile_v2_det/text_detect.pydeleted file mode 100644index eb13be3..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_det/text_detect.py+++ /dev/null@@ -1,149 +0,0 @@-# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.-#-# Licensed under the Apache License, Version 2.0 (the "License");-# you may not use this file except in compliance with the License.-# You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.-# !/usr/bin/env python-# -*- encoding: utf-8 -*--import argparse-import time--import cv2-import numpy as np-from openvino.runtime import Core--try:- from .utils import (DBPostProcess, check_and_read_gif, create_operators,- draw_text_det_res, transform)-except:- from utils import (DBPostProcess, check_and_read_gif, create_operators,- draw_text_det_res, transform)---class TextDetector(object):- def __init__(self, det_model_path):- pre_process_list = [{- 'DetResizeForTest': {- 'limit_side_len': 736,- 'limit_type': 'min'- }- }, {- 'NormalizeImage': {- 'std': [0.229, 0.224, 0.225],- 'mean': [0.485, 0.456, 0.406],- 'scale': '1./255.',- 'order': 'hwc'- }- }, {- 'ToCHWImage': None- }, {- 'KeepKeys': {- 'keep_keys': ['image', 'shape']- }- }]-- self.preprocess_op = create_operators(pre_process_list)- self.postprocess_op = DBPostProcess(thresh=0.3,- box_thresh=0.5,- max_candidates=1000,- unclip_ratio=1.6,- use_dilation=True)- ie = Core()- model_onnx = ie.read_model(det_model_path)- compile_model = ie.compile_model(model=model_onnx,- device_name='CPU')- self.vino_session = compile_model.create_infer_request()-- def order_points_clockwise(self, pts):- """- reference from: https://github.com/jrosebr1/imutils/blob/master/imutils/perspective.py- # sort the points based on their x-coordinates- """- xSorted = pts[np.argsort(pts[:, 0]), :]-- # grab the left-most and right-most points from the sorted- # x-roodinate points- leftMost = xSorted[:2, :]- rightMost = xSorted[2:, :]-- # now, sort the left-most coordinates according to their- # y-coordinates so we can grab the top-left and bottom-left- # points, respectively- leftMost = leftMost[np.argsort(leftMost[:, 1]), :]- (tl, bl) = leftMost-- rightMost = rightMost[np.argsort(rightMost[:, 1]), :]- (tr, br) = rightMost-- rect = np.array([tl, tr, br, bl], dtype="float32")- return rect-- def clip_det_res(self, points, img_height, img_width):- for pno in range(points.shape[0]):- points[pno, 0] = int(min(max(points[pno, 0], 0), img_width - 1))- points[pno, 1] = int(min(max(points[pno, 1], 0), img_height - 1))- return points-- def filter_tag_det_res(self, dt_boxes, image_shape):- img_height, img_width = image_shape[0:2]- dt_boxes_new = []- for box in dt_boxes:- box = self.order_points_clockwise(box)- box = self.clip_det_res(box, img_height, img_width)- rect_width = int(np.linalg.norm(box[0] - box[1]))- rect_height = int(np.linalg.norm(box[0] - box[3]))- if rect_width <= 3 or rect_height <= 3:- continue- dt_boxes_new.append(box)- dt_boxes = np.array(dt_boxes_new)- return dt_boxes-- def __call__(self, img):- ori_im = img.copy()- data = {'image': img}- data = transform(data, self.preprocess_op)- img, shape_list = data- if img is None:- return None, 0- img = np.expand_dims(img, axis=0)- img = img.astype(np.float32)- shape_list = np.expand_dims(shape_list, axis=0)-- start_time = time.time()- self.vino_session.infer(inputs=[img])- vino_preds = self.vino_session.get_output_tensor().data-- post_result = self.postprocess_op(vino_preds, shape_list)- dt_boxes = post_result[0]['points']- dt_boxes = self.filter_tag_det_res(dt_boxes, ori_im.shape)- elapse = time.time() - start_time- return dt_boxes, elapse---if __name__ == "__main__":- parser = argparse.ArgumentParser()- parser.add_argument('--image_path', type=str, help='image_path|image_dir')- parser.add_argument('--model_path', type=str, help='model_path')- args = parser.parse_args()-- text_detector = TextDetector(args.model_path)-- img, flag = check_and_read_gif(args.image_path)- if not flag:- img = cv2.imread(args.image_path)- if img is None:- raise ValueError(f"error in loading image:{args.image_path}")-- dt_boxes, elapse = text_detector(img)-- src_im = draw_text_det_res(dt_boxes, args.image_path)- cv2.imwrite('det_results.jpg', src_im)- print(f'图像已经保存为det_results.jpg了\t{elapse:.6f}s')diff --git a/python/openvino_infer/ch_ppocr_mobile_v2_rec/__init__.py b/python/openvino_infer/ch_ppocr_mobile_v2_rec/__init__.pydeleted file mode 100644index 686ffdd..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_rec/__init__.py+++ /dev/null@@ -1 +0,0 @@-from .text_recognize import TextRecognizer\ No newline at end of filediff --git a/python/openvino_infer/ch_ppocr_mobile_v2_rec/ppocr_keys_v1.txt b/python/openvino_infer/ch_ppocr_mobile_v2_rec/ppocr_keys_v1.txtdeleted file mode 100644index 84b885d..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_rec/ppocr_keys_v1.txt+++ /dev/null@@ -1,6623 +0,0 @@-'-疗-绚-诚-娇-溜-题-贿-者-廖-更-纳-加-奉-公-一-就-汴-计-与-路-房-原-妇-2-0-8---7-其->-:-]-,-,-骑-刈-全-消-昏-傈-安-久-钟-嗅-不-影-处-驽-蜿-资-关-椤-地-瘸-专-问-忖-票-嫉-炎-韵-要-月-田-节-陂-鄙-捌-备-拳-伺-眼-网-盎-大-傍-心-东-愉-汇-蹿-科-每-业-里-航-晏-字-平-录-先-1-3-彤-鲶-产-稍-督-腴-有-象-岳-注-绍-在-泺-文-定-核-名-水-过-理-让-偷-率-等-这-发-”-为-含-肥-酉-相-鄱-七-编-猥-锛-日-镀-蒂-掰-倒-辆-栾-栗-综-涩-州-雌-滑-馀-了-机-块-司-宰-甙-兴-矽-抚-保-用-沧-秩-如-收-息-滥-页-疑-埠-!-!-姥-异-橹-钇-向-下-跄-的-椴-沫-国-绥-獠-报-开-民-蜇-何-分-凇-长-讥-藏-掏-施-羽-中-讲-派-嘟-人-提-浼-间-世-而-古-多-倪-唇-饯-控-庚-首-赛-蜓-味-断-制-觉-技-替-艰-溢-潮-夕-钺-外-摘-枋-动-双-单-啮-户-枇-确-锦-曜-杜-或-能-效-霜-盒-然-侗-电-晁-放-步-鹃-新-杖-蜂-吒-濂-瞬-评-总-隍-对-独-合-也-是-府-青-天-诲-墙-组-滴-级-邀-帘-示-已-时-骸-仄-泅-和-遨-店-雇-疫-持-巍-踮-境-只-亨-目-鉴-崤-闲-体-泄-杂-作-般-轰-化-解-迂-诿-蛭-璀-腾-告-版-服-省-师-小-规-程-线-海-办-引-二-桧-牌-砺-洄-裴-修-图-痫-胡-许-犊-事-郛-基-柴-呼-食-研-奶-律-蛋-因-葆-察-戏-褒-戒-再-李-骁-工-貂-油-鹅-章-啄-休-场-给-睡-纷-豆-器-捎-说-敏-学-会-浒-设-诊-格-廓-查-来-霓-室-溆-¢-诡-寥-焕-舜-柒-狐-回-戟-砾-厄-实-翩-尿-五-入-径-惭-喹-股-宇-篝-|-;-美-期-云-九-祺-扮-靠-锝-槌-系-企-酰-阊-暂-蚕-忻-豁-本-羹-执-条-钦-H-獒-限-进-季-楦-于-芘-玖-铋-茯-未-答-粘-括-样-精-欠-矢-甥-帷-嵩-扣-令-仔-风-皈-行-支-部-蓉-刮-站-蜡-救-钊-汗-松-嫌-成-可-.-鹤-院-从-交-政-怕-活-调-球-局-验-髌-第-韫-谗-串-到-圆-年-米-/-*-友-忿-检-区-看-自-敢-刃-个-兹-弄-流-留-同-没-齿-星-聆-轼-湖-什-三-建-蛔-儿-椋-汕-震-颧-鲤-跟-力-情-璺-铨-陪-务-指-族-训-滦-鄣-濮-扒-商-箱-十-召-慷-辗-所-莞-管-护-臭-横-硒-嗓-接-侦-六-露-党-馋-驾-剖-高-侬-妪-幂-猗-绺-骐-央-酐-孝-筝-课-徇-缰-门-男-西-项-句-谙-瞒-秃-篇-教-碲-罚-声-呐-景-前-富-嘴-鳌-稀-免-朋-啬-睐-去-赈-鱼-住-肩-愕-速-旁-波-厅-健-茼-厥-鲟-谅-投-攸-炔-数-方-击-呋-谈-绩-别-愫-僚-躬-鹧-胪-炳-招-喇-膨-泵-蹦-毛-结-5-4-谱-识-陕-粽-婚-拟-构-且-搜-任-潘-比-郢-妨-醪-陀-桔-碘-扎-选-哈-骷-楷-亿-明-缆-脯-监-睫-逻-婵-共-赴-淝-凡-惦-及-达-揖-谩-澹-减-焰-蛹-番-祁-柏-员-禄-怡-峤-龙-白-叽-生-闯-起-细-装-谕-竟-聚-钙-上-导-渊-按-艾-辘-挡-耒-盹-饪-臀-记-邮-蕙-受-各-医-搂-普-滇-朗-茸-带-翻-酚-(-光-堤-墟-蔷-万-幻-〓-瑙-辈-昧-盏-亘-蛀-吉-铰-请-子-假-闻-税-井-诩-哨-嫂-好-面-琐-校-馊-鬣-缂-营-访-炖-占-农-缀-否-经-钚-棵-趟-张-亟-吏-茶-谨-捻-论-迸-堂-玉-信-吧-瞠-乡-姬-寺-咬-溏-苄-皿-意-赉-宝-尔-钰-艺-特-唳-踉-都-荣-倚-登-荐-丧-奇-涵-批-炭-近-符-傩-感-道-着-菊-虹-仲-众-懈-濯-颞-眺-南-释-北-缝-标-既-茗-整-撼-迤-贲-挎-耱-拒-某-妍-卫-哇-英-矶-藩-治-他-元-领-膜-遮-穗-蛾-飞-荒-棺-劫-么-市-火-温-拈-棚-洼-转-果-奕-卸-迪-伸-泳-斗-邡-侄-涨-屯-萋-胭-氡-崮-枞-惧-冒-彩-斜-手-豚-随-旭-淑-妞-形-菌-吲-沱-争-驯-歹-挟-兆-柱-传-至-包-内-响-临-红-功-弩-衡-寂-禁-老-棍-耆-渍-织-害-氵-渑-布-载-靥-嗬-虽-苹-咨-娄-库-雉-榜-帜-嘲-套-瑚-亲-簸-欧-边-6-腿-旮-抛-吹-瞳-得-镓-梗-厨-继-漾-愣-憨-士-策-窑-抑-躯-襟-脏-参-贸-言-干-绸-鳄-穷-藜-音-折-详-)-举-悍-甸-癌-黎-谴-死-罩-迁-寒-驷-袖-媒-蒋-掘-模-纠-恣-观-祖-蛆-碍-位-稿-主-澧-跌-筏-京-锏-帝-贴-证-糠-才-黄-鲸-略-炯-饱-四-出-园-犀-牧-容-汉-杆-浈-汰-瑷-造-虫-瘩-怪-驴-济-应-花-沣-谔-夙-旅-价-矿-以-考-s-u-呦-晒-巡-茅-准-肟-瓴-詹-仟-褂-译-桌-混-宁-怦-郑-抿-些-余-鄂-饴-攒-珑-群-阖-岔-琨-藓-预-环-洮-岌-宀-杲-瀵-最-常-囡-周-踊-女-鼓-袭-喉-简-范-薯-遐-疏-粱-黜-禧-法-箔-斤-遥-汝-奥-直-贞-撑-置-绱-集-她-馅-逗-钧-橱-魉-[-恙-躁-唤-9-旺-膘-待-脾-惫-购-吗-依-盲-度-瘿-蠖-俾-之-镗-拇-鲵-厝-簧-续-款-展-啃-表-剔-品-钻-腭-损-清-锶-统-涌-寸-滨-贪-链-吠-冈-伎-迥-咏-吁-览-防-迅-失-汾-阔-逵-绀-蔑-列-川-凭-努-熨-揪-利-俱-绉-抢-鸨-我-即-责-膦-易-毓-鹊-刹-玷-岿-空-嘞-绊-排-术-估-锷-违-们-苟-铜-播-肘-件-烫-审-鲂-广-像-铌-惰-铟-巳-胍-鲍-康-憧-色-恢-想-拷-尤-疳-知-S-Y-F-D-A-峄-裕-帮-握-搔-氐-氘-难-墒-沮-雨-叁-缥-悴-藐-湫-娟-苑-稠-颛-簇-后-阕-闭-蕤-缚-怎-佞-码-嘤-蔡-痊-舱-螯-帕-赫-昵-升-烬-岫-、-疵-蜻-髁-蕨-隶-烛-械-丑-盂-梁-强-鲛-由-拘-揉-劭-龟-撤-钩-呕-孛-费-妻-漂-求-阑-崖-秤-甘-通-深-补-赃-坎-床-啪-承-吼-量-暇-钼-烨-阂-擎-脱-逮-称-P-神-属-矗-华-届-狍-葑-汹-育-患-窒-蛰-佼-静-槎-运-鳗-庆-逝-曼-疱-克-代-官-此-麸-耧-蚌-晟-例-础-榛-副-测-唰-缢-迹-灬-霁-身-岁-赭-扛-又-菡-乜-雾-板-读-陷-徉-贯-郁-虑-变-钓-菜-圾-现-琢-式-乐-维-渔-浜-左-吾-脑-钡-警-T-啵-拴-偌-漱-湿-硕-止-骼-魄-积-燥-联-踢-玛-则-窿-见-振-畿-送-班-钽-您-赵-刨-印-讨-踝-籍-谡-舌-崧-汽-蔽-沪-酥-绒-怖-财-帖-肱-私-莎-勋-羔-霸-励-哼-帐-将-帅-渠-纪-婴-娩-岭-厘-滕-吻-伤-坝-冠-戊-隆-瘁-介-涧-物-黍-并-姗-奢-蹑-掣-垸-锴-命-箍-捉-病-辖-琰-眭-迩-艘-绌-繁-寅-若-毋-思-诉-类-诈-燮-轲-酮-狂-重-反-职-筱-县-委-磕-绣-奖-晋-濉-志-徽-肠-呈-獐-坻-口-片-碰-几-村-柿-劳-料-获-亩-惕-晕-厌-号-罢-池-正-鏖-煨-家-棕-复-尝-懋-蜥-锅-岛-扰-队-坠-瘾-钬-@-卧-疣-镇-譬-冰-彷-频-黯-据-垄-采-八-缪-瘫-型-熹-砰-楠-襁-箐-但-嘶-绳-啤-拍-盥-穆-傲-洗-盯-塘-怔-筛-丿-台-恒-喂-葛-永-¥-烟-酒-桦-书-砂-蚝-缉-态-瀚-袄-圳-轻-蛛-超-榧-遛-姒-奘-铮-右-荽-望-偻-卡-丶-氰-附-做-革-索-戚-坨-桷-唁-垅-榻-岐-偎-坛-莨-山-殊-微-骇-陈-爨-推-嗝-驹-澡-藁-呤-卤-嘻-糅-逛-侵-郓-酌-德-摇-※-鬃-被-慨-殡-羸-昌-泡-戛-鞋-河-宪-沿-玲-鲨-翅-哽-源-铅-语-照-邯-址-荃-佬-顺-鸳-町-霭-睾-瓢-夸-椁-晓-酿-痈-咔-侏-券-噎-湍-签-嚷-离-午-尚-社-锤-背-孟-使-浪-缦-潍-鞅-军-姹-驶-笑-鳟-鲁-》-孽-钜-绿-洱-礴-焯-椰-颖-囔-乌-孔-巴-互-性-椽-哞-聘-昨-早-暮-胶-炀-隧-低-彗-昝-铁-呓-氽-藉-喔-癖-瑗-姨-权-胱-韦-堑-蜜-酋-楝-砝-毁-靓-歙-锲-究-屋-喳-骨-辨-碑-武-鸠-宫-辜-烊-适-坡-殃-培-佩-供-走-蜈-迟-翼-况-姣-凛-浔-吃-飘-债-犟-金-促-苛-崇-坂-莳-畔-绂-兵-蠕-斋-根-砍-亢-欢-恬-崔-剁-餐-榫-快-扶-‖-濒-缠-鳜-当-彭-驭-浦-篮-昀-锆-秸-钳-弋-娣-瞑-夷-龛-苫-拱-致-%-嵊-障-隐-弑-初-娓-抉-汩-累-蓖-"-唬-助-苓-昙-押-毙-破-城-郧-逢-嚏-獭-瞻-溱-婿-赊-跨-恼-璧-萃-姻-貉-灵-炉-密-氛-陶-砸-谬-衔-点-琛-沛-枳-层-岱-诺-脍-榈-埂-征-冷-裁-打-蹴-素-瘘-逞-蛐-聊-激-腱-萘-踵-飒-蓟-吆-取-咙-簋-涓-矩-曝-挺-揣-座-你-史-舵-焱-尘-苏-笈-脚-溉-榨-诵-樊-邓-焊-义-庶-儋-蟋-蒲-赦-呷-杞-诠-豪-还-试-颓-茉-太-除-紫-逃-痴-草-充-鳕-珉-祗-墨-渭-烩-蘸-慕-璇-镶-穴-嵘-恶-骂-险-绋-幕-碉-肺-戳-刘-潞-秣-纾-潜-銮-洛-须-罘-销-瘪-汞-兮-屉-r-林-厕-质-探-划-狸-殚-善-煊-烹-〒-锈-逯-宸-辍-泱-柚-袍-远-蹋-嶙-绝-峥-娥-缍-雀-徵-认-镱-谷-=-贩-勉-撩-鄯-斐-洋-非-祚-泾-诒-饿-撬-威-晷-搭-芍-锥-笺-蓦-候-琊-档-礁-沼-卵-荠-忑-朝-凹-瑞-头-仪-弧-孵-畏-铆-突-衲-车-浩-气-茂-悖-厢-枕-酝-戴-湾-邹-飚-攘-锂-写-宵-翁-岷-无-喜-丈-挑-嗟-绛-殉-议-槽-具-醇-淞-笃-郴-阅-饼-底-壕-砚-弈-询-缕-庹-翟-零-筷-暨-舟-闺-甯-撞-麂-茌-蔼-很-珲-捕-棠-角-阉-媛-娲-诽-剿-尉-爵-睬-韩-诰-匣-危-糍-镯-立-浏-阳-少-盆-舔-擘-匪-申-尬-铣-旯-抖-赘-瓯-居-ˇ-哮-游-锭-茏-歌-坏-甚-秒-舞-沙-仗-劲-潺-阿-燧-郭-嗖-霏-忠-材-奂-耐-跺-砀-输-岖-媳-氟-极-摆-灿-今-扔-腻-枝-奎-药-熄-吨-话-q-额-慑-嘌-协-喀-壳-埭-视-著-於-愧-陲-翌-峁-颅-佛-腹-聋-侯-咎-叟-秀-颇-存-较-罪-哄-岗-扫-栏-钾-羌-己-璨-枭-霉-煌-涸-衿-键-镝-益-岢-奏-连-夯-睿-冥-均-糖-狞-蹊-稻-爸-刿-胥-煜-丽-肿-璃-掸-跚-灾-垂-樾-濑-乎-莲-窄-犹-撮-战-馄-软-络-显-鸢-胸-宾-妲-恕-埔-蝌-份-遇-巧-瞟-粒-恰-剥-桡-博-讯-凯-堇-阶-滤-卖-斌-骚-彬-兑-磺-樱-舷-两-娱-福-仃-差-找-桁-÷-净-把-阴-污-戬-雷-碓-蕲-楚-罡-焖-抽-妫-咒-仑-闱-尽-邑-菁-爱-贷-沥-鞑-牡-嗉-崴-骤-塌-嗦-订-拮-滓-捡-锻-次-坪-杩-臃-箬-融-珂-鹗-宗-枚-降-鸬-妯-阄-堰-盐-毅-必-杨-崃-俺-甬-状-莘-货-耸-菱-腼-铸-唏-痤-孚-澳-懒-溅-翘-疙-杷-淼-缙-骰-喊-悉-砻-坷-艇-赁-界-谤-纣-宴-晃-茹-归-饭-梢-铡-街-抄-肼-鬟-苯-颂-撷-戈-炒-咆-茭-瘙-负-仰-客-琉-铢-封-卑-珥-椿-镧-窨-鬲-寿-御-袤-铃-萎-砖-餮-脒-裳-肪-孕-嫣-馗-嵇-恳-氯-江-石-褶-冢-祸-阻-狈-羞-银-靳-透-咳-叼-敷-芷-啥-它-瓤-兰-痘-懊-逑-肌-往-捺-坊-甩-呻-〃-沦-忘-膻-祟-菅-剧-崆-智-坯-臧-霍-墅-攻-眯-倘-拢-骠-铐-庭-岙-瓠-′-缺-泥-迢-捶-?-?-郏-喙-掷-沌-纯-秘-种-听-绘-固-螨-团-香-盗-妒-埚-蓝-拖-旱-荞-铀-血-遏-汲-辰-叩-拽-幅-硬-惶-桀-漠-措-泼-唑-齐-肾-念-酱-虚-屁-耶-旗-砦-闵-婉-馆-拭-绅-韧-忏-窝-醋-葺-顾-辞-倜-堆-辋-逆-玟-贱-疾-董-惘-倌-锕-淘-嘀-莽-俭-笏-绑-鲷-杈-择-蟀-粥-嗯-驰-逾-案-谪-褓-胫-哩-昕-颚-鲢-绠-躺-鹄-崂-儒-俨-丝-尕-泌-啊-萸-彰-幺-吟-骄-苣-弦-脊-瑰-〈-诛-镁-析-闪-剪-侧-哟-框-螃-守-嬗-燕-狭-铈-缮-概-迳-痧-鲲-俯-售-笼-痣-扉-挖-满-咋-援-邱-扇-歪-便-玑-绦-峡-蛇-叨-〖-泽-胃-斓-喋-怂-坟-猪-该-蚬-炕-弥-赞-棣-晔-娠-挲-狡-创-疖-铕-镭-稷-挫-弭-啾-翔-粉-履-苘-哦-楼-秕-铂-土-锣-瘟-挣-栉-习-享-桢-袅-磨-桂-谦-延-坚-蔚-噗-署-谟-猬-钎-恐-嬉-雒-倦-衅-亏-璩-睹-刻-殿-王-算-雕-麻-丘-柯-骆-丸-塍-谚-添-鲈-垓-桎-蚯-芥-予-飕-镦-谌-窗-醚-菀-亮-搪-莺-蒿-羁-足-J-真-轶-悬-衷-靛-翊-掩-哒-炅-掐-冼-妮-l-谐-稚-荆-擒-犯-陵-虏-浓-崽-刍-陌-傻-孜-千-靖-演-矜-钕-煽-杰-酗-渗-伞-栋-俗-泫-戍-罕-沾-疽-灏-煦-芬-磴-叱-阱-榉-湃-蜀-叉-醒-彪-租-郡-篷-屎-良-垢-隗-弱-陨-峪-砷-掴-颁-胎-雯-绵-贬-沐-撵-隘-篙-暖-曹-陡-栓-填-臼-彦-瓶-琪-潼-哪-鸡-摩-啦-俟-锋-域-耻-蔫-疯-纹-撇-毒-绶-痛-酯-忍-爪-赳-歆-嘹-辕-烈-册-朴-钱-吮-毯-癜-娃-谀-邵-厮-炽-璞-邃-丐-追-词-瓒-忆-轧-芫-谯-喷-弟-半-冕-裙-掖-墉-绮-寝-苔-势-顷-褥-切-衮-君-佳-嫒-蚩-霞-佚-洙-逊-镖-暹-唛-&-殒-顶-碗-獗-轭-铺-蛊-废-恹-汨-崩-珍-那-杵-曲-纺-夏-薰-傀-闳-淬-姘-舀-拧-卷-楂-恍-讪-厩-寮-篪-赓-乘-灭-盅-鞣-沟-慎-挂-饺-鼾-杳-树-缨-丛-絮-娌-臻-嗳-篡-侩-述-衰-矛-圈-蚜-匕-筹-匿-濞-晨-叶-骋-郝-挚-蚴-滞-增-侍-描-瓣-吖-嫦-蟒-匾-圣-赌-毡-癞-恺-百-曳-需-篓-肮-庖-帏-卿-驿-遗-蹬-鬓-骡-歉-芎-胳-屐-禽-烦-晌-寄-媾-狄-翡-苒-船-廉-终-痞-殇-々-畦-饶-改-拆-悻-萄-£-瓿-乃-訾-桅-匮-溧-拥-纱-铍-骗-蕃-龋-缬-父-佐-疚-栎-醍-掳-蓄-x-惆-颜-鲆-榆-〔-猎-敌-暴-谥-鲫-贾-罗-玻-缄-扦-芪-癣-落-徒-臾-恿-猩-托-邴-肄-牵-春-陛-耀-刊-拓-蓓-邳-堕-寇-枉-淌-啡-湄-兽-酷-萼-碚-濠-萤-夹-旬-戮-梭-琥-椭-昔-勺-蜊-绐-晚-孺-僵-宣-摄-冽-旨-萌-忙-蚤-眉-噼-蟑-付-契-瓜-悼-颡-壁-曾-窕-颢-澎-仿-俑-浑-嵌-浣-乍-碌-褪-乱-蔟-隙-玩-剐-葫-箫-纲-围-伐-决-伙-漩-瑟-刑-肓-镳-缓-蹭-氨-皓-典-畲-坍-铑-檐-塑-洞-倬-储-胴-淳-戾-吐-灼-惺-妙-毕-珐-缈-虱-盖-羰-鸿-磅-谓-髅-娴-苴-唷-蚣-霹-抨-贤-唠-犬-誓-逍-庠-逼-麓-籼-釉-呜-碧-秧-氩-摔-霄-穸-纨-辟-妈-映-完-牛-缴-嗷-炊-恩-荔-茆-掉-紊-慌-莓-羟-阙-萁-磐-另-蕹-辱-鳐-湮-吡-吩-唐-睦-垠-舒-圜-冗-瞿-溺-芾-囱-匠-僳-汐-菩-饬-漓-黑-霰-浸-濡-窥-毂-蒡-兢-驻-鹉-芮-诙-迫-雳-厂-忐-臆-猴-鸣-蚪-栈-箕-羡-渐-莆-捍-眈-哓-趴-蹼-埕-嚣-骛-宏-淄-斑-噜-严-瑛-垃-椎-诱-压-庾-绞-焘-廿-抡-迄-棘-夫-纬-锹-眨-瞌-侠-脐-竞-瀑-孳-骧-遁-姜-颦-荪-滚-萦-伪-逸-粳-爬-锁-矣-役-趣-洒-颔-诏-逐-奸-甭-惠-攀-蹄-泛-尼-拼-阮-鹰-亚-颈-惑-勒-〉-际-肛-爷-刚-钨-丰-养-冶-鲽-辉-蔻-画-覆-皴-妊-麦-返-醉-皂-擀-〗-酶-凑-粹-悟-诀-硖-港-卜-z-杀-涕-±-舍-铠-抵-弛-段-敝-镐-奠-拂-轴-跛-袱-e-t-沉-菇-俎-薪-峦-秭-蟹-历-盟-菠-寡-液-肢-喻-染-裱-悱-抱-氙-赤-捅-猛-跑-氮-谣-仁-尺-辊-窍-烙-衍-架-擦-倏-璐-瑁-币-楞-胖-夔-趸-邛-惴-饕-虔-蝎-§-哉-贝-宽-辫-炮-扩-饲-籽-魏-菟-锰-伍-猝-末-琳-哚-蛎-邂-呀-姿-鄞-却-歧-仙-恸-椐-森-牒-寤-袒-婆-虢-雅-钉-朵-贼-欲-苞-寰-故-龚-坭-嘘-咫-礼-硷-兀-睢-汶-’-铲-烧-绕-诃-浃-钿-哺-柜-讼-颊-璁-腔-洽-咐-脲-簌-筠-镣-玮-鞠-谁-兼-姆-挥-梯-蝴-谘-漕-刷-躏-宦-弼-b-垌-劈-麟-莉-揭-笙-渎-仕-嗤-仓-配-怏-抬-错-泯-镊-孰-猿-邪-仍-秋-鼬-壹-歇-吵-炼-<-尧-射-柬-廷-胧-霾-凳-隋-肚-浮-梦-祥-株-堵-退-L-鹫-跎-凶-毽-荟-炫-栩-玳-甜-沂-鹿-顽-伯-爹-赔-蛴-徐-匡-欣-狰-缸-雹-蟆-疤-默-沤-啜-痂-衣-禅-w-i-h-辽-葳-黝-钗-停-沽-棒-馨-颌-肉-吴-硫-悯-劾-娈-马-啧-吊-悌-镑-峭-帆-瀣-涉-咸-疸-滋-泣-翦-拙-癸-钥-蜒-+-尾-庄-凝-泉-婢-渴-谊-乞-陆-锉-糊-鸦-淮-I-B-N-晦-弗-乔-庥-葡-尻-席-橡-傣-渣-拿-惩-麋-斛-缃-矮-蛏-岘-鸽-姐-膏-催-奔-镒-喱-蠡-摧-钯-胤-柠-拐-璋-鸥-卢-荡-倾-^-_-珀-逄-萧-塾-掇-贮-笆-聂-圃-冲-嵬-M-滔-笕-值-炙-偶-蜱-搐-梆-汪-蔬-腑-鸯-蹇-敞-绯-仨-祯-谆-梧-糗-鑫-啸-豺-囹-猾-巢-柄-瀛-筑-踌-沭-暗-苁-鱿-蹉-脂-蘖-牢-热-木-吸-溃-宠-序-泞-偿-拜-檩-厚-朐-毗-螳-吞-媚-朽-担-蝗-橘-畴-祈-糟-盱-隼-郜-惜-珠-裨-铵-焙-琚-唯-咚-噪-骊-丫-滢-勤-棉-呸-咣-淀-隔-蕾-窈-饨-挨-煅-短-匙-粕-镜-赣-撕-墩-酬-馁-豌-颐-抗-酣-氓-佑-搁-哭-递-耷-涡-桃-贻-碣-截-瘦-昭-镌-蔓-氚-甲-猕-蕴-蓬-散-拾-纛-狼-猷-铎-埋-旖-矾-讳-囊-糜-迈-粟-蚂-紧-鲳-瘢-栽-稼-羊-锄-斟-睁-桥-瓮-蹙-祉-醺-鼻-昱-剃-跳-篱-跷-蒜-翎-宅-晖-嗑-壑-峻-癫-屏-狠-陋-袜-途-憎-祀-莹-滟-佶-溥-臣-约-盛-峰-磁-慵-婪-拦-莅-朕-鹦-粲-裤-哎-疡-嫖-琵-窟-堪-谛-嘉-儡-鳝-斩-郾-驸-酊-妄-胜-贺-徙-傅-噌-钢-栅-庇-恋-匝-巯-邈-尸-锚-粗-佟-蛟-薹-纵-蚊-郅-绢-锐-苗-俞-篆-淆-膀-鲜-煎-诶-秽-寻-涮-刺-怀-噶-巨-褰-魅-灶-灌-桉-藕-谜-舸-薄-搀-恽-借-牯-痉-渥-愿-亓-耘-杠-柩-锔-蚶-钣-珈-喘-蹒-幽-赐-稗-晤-莱-泔-扯-肯-菪-裆-腩-豉-疆-骜-腐-倭-珏-唔-粮-亡-润-慰-伽-橄-玄-誉-醐-胆-龊-粼-塬-陇-彼-削-嗣-绾-芽-妗-垭-瘴-爽-薏-寨-龈-泠-弹-赢-漪-猫-嘧-涂-恤-圭-茧-烽-屑-痕-巾-赖-荸-凰-腮-畈-亵-蹲-偃-苇-澜-艮-换-骺-烘-苕-梓-颉-肇-哗-悄-氤-涠-葬-屠-鹭-植-竺-佯-诣-鲇-瘀-鲅-邦-移-滁-冯-耕-癔-戌-茬-沁-巩-悠-湘-洪-痹-锟-循-谋-腕-鳃-钠-捞-焉-迎-碱-伫-急-榷-奈-邝-卯-辄-皲-卟-醛-畹-忧-稳-雄-昼-缩-阈-睑-扌-耗-曦-涅-捏-瞧-邕-淖-漉-铝-耦-禹-湛-喽-莼-琅-诸-苎-纂-硅-始-嗨-傥-燃-臂-赅-嘈-呆-贵-屹-壮-肋-亍-蚀-卅-豹-腆-邬-迭-浊-}-童-螂-捐-圩-勐-触-寞-汊-壤-荫-膺-渌-芳-懿-遴-螈-泰-蓼-蛤-茜-舅-枫-朔-膝-眙-避-梅-判-鹜-璜-牍-缅-垫-藻-黔-侥-惚-懂-踩-腰-腈-札-丞-唾-慈-顿-摹-荻-琬-~-斧-沈-滂-胁-胀-幄-莜-Z-匀-鄄-掌-绰-茎-焚-赋-萱-谑-汁-铒-瞎-夺-蜗-野-娆-冀-弯-篁-懵-灞-隽-芡-脘-俐-辩-芯-掺-喏-膈-蝈-觐-悚-踹-蔗-熠-鼠-呵-抓-橼-峨-畜-缔-禾-崭-弃-熊-摒-凸-拗-穹-蒙-抒-祛-劝-闫-扳-阵-醌-踪-喵-侣-搬-仅-荧-赎-蝾-琦-买-婧-瞄-寓-皎-冻-赝-箩-莫-瞰-郊-笫-姝-筒-枪-遣-煸-袋-舆-痱-涛-母-〇-启-践-耙-绲-盘-遂-昊-搞-槿-诬-纰-泓-惨-檬-亻-越-C-o-憩-熵-祷-钒-暧-塔-阗-胰-咄-娶-魔-琶-钞-邻-扬-杉-殴-咽-弓-〆-髻-】-吭-揽-霆-拄-殖-脆-彻-岩-芝-勃-辣-剌-钝-嘎-甄-佘-皖-伦-授-徕-憔-挪-皇-庞-稔-芜-踏-溴-兖-卒-擢-饥-鳞-煲-‰-账-颗-叻-斯-捧-鳍-琮-讹-蛙-纽-谭-酸-兔-莒-睇-伟-觑-羲-嗜-宜-褐-旎-辛-卦-诘-筋-鎏-溪-挛-熔-阜-晰-鳅-丢-奚-灸-呱-献-陉-黛-鸪-甾-萨-疮-拯-洲-疹-辑-叙-恻-谒-允-柔-烂-氏-逅-漆-拎-惋-扈-湟-纭-啕-掬-擞-哥-忽-涤-鸵-靡-郗-瓷-扁-廊-怨-雏-钮-敦-E-懦-憋-汀-拚-啉-腌-岸-f-痼-瞅-尊-咀-眩-飙-忌-仝-迦-熬-毫-胯-篑-茄-腺-凄-舛-碴-锵-诧-羯-後-漏-汤-宓-仞-蚁-壶-谰-皑-铄-棰-罔-辅-晶-苦-牟-闽-\-烃-饮-聿-丙-蛳-朱-煤-涔-鳖-犁-罐-荼-砒-淦-妤-黏-戎-孑-婕-瑾-戢-钵-枣-捋-砥-衩-狙-桠-稣-阎-肃-梏-诫-孪-昶-婊-衫-嗔-侃-塞-蜃-樵-峒-貌-屿-欺-缫-阐-栖-诟-珞-荭-吝-萍-嗽-恂-啻-蜴-磬-峋-俸-豫-谎-徊-镍-韬-魇-晴-U-囟-猜-蛮-坐-囿-伴-亭-肝-佗-蝠-妃-胞-滩-榴-氖-垩-苋-砣-扪-馏-姓-轩-厉-夥-侈-禀-垒-岑-赏-钛-辐-痔-披-纸-碳-“-坞-蠓-挤-荥-沅-悔-铧-帼-蒌-蝇-a-p-y-n-g-哀-浆-瑶-凿-桶-馈-皮-奴-苜-佤-伶-晗-铱-炬-优-弊-氢-恃-甫-攥-端-锌-灰-稹-炝-曙-邋-亥-眶-碾-拉-萝-绔-捷-浍-腋-姑-菖-凌-涞-麽-锢-桨-潢-绎-镰-殆-锑-渝-铬-困-绽-觎-匈-糙-暑-裹-鸟-盔-肽-迷-綦-『-亳-佝-俘-钴-觇-骥-仆-疝-跪-婶-郯-瀹-唉-脖-踞-针-晾-忒-扼-瞩-叛-椒-疟-嗡-邗-肆-跆-玫-忡-捣-咧-唆-艄-蘑-潦-笛-阚-沸-泻-掊-菽-贫-斥-髂-孢-镂-赂-麝-鸾-屡-衬-苷-恪-叠-希-粤-爻-喝-茫-惬-郸-绻-庸-撅-碟-宄-妹-膛-叮-饵-崛-嗲-椅-冤-搅-咕-敛-尹-垦-闷-蝉-霎-勰-败-蓑-泸-肤-鹌-幌-焦-浠-鞍-刁-舰-乙-竿-裔-。-茵-函-伊-兄-丨-娜-匍-謇-莪-宥-似-蝽-翳-酪-翠-粑-薇-祢-骏-赠-叫-Q-噤-噻-竖-芗-莠-潭-俊-羿-耜-O-郫-趁-嗪-囚-蹶-芒-洁-笋-鹑-敲-硝-啶-堡-渲-揩-』-携-宿-遒-颍-扭-棱-割-萜-蔸-葵-琴-捂-饰-衙-耿-掠-募-岂-窖-涟-蔺-瘤-柞-瞪-怜-匹-距-楔-炜-哆-秦-缎-幼-茁-绪-痨-恨-楸-娅-瓦-桩-雪-嬴-伏-榔-妥-铿-拌-眠-雍-缇-‘-卓-搓-哌-觞-噩-屈-哧-髓-咦-巅-娑-侑-淫-膳-祝-勾-姊-莴-胄-疃-薛-蜷-胛-巷-芙-芋-熙-闰-勿-窃-狱-剩-钏-幢-陟-铛-慧-靴-耍-k-浙-浇-飨-惟-绗-祜-澈-啼-咪-磷-摞-诅-郦-抹-跃-壬-吕-肖-琏-颤-尴-剡-抠-凋-赚-泊-津-宕-殷-倔-氲-漫-邺-涎-怠-$-垮-荬-遵-俏-叹-噢-饽-蜘-孙-筵-疼-鞭-羧-牦-箭-潴-c-眸-祭-髯-啖-坳-愁-芩-驮-倡-巽-穰-沃-胚-怒-凤-槛-剂-趵-嫁-v-邢-灯-鄢-桐-睽-檗-锯-槟-婷-嵋-圻-诗-蕈-颠-遭-痢-芸-怯-馥-竭-锗-徜-恭-遍-籁-剑-嘱-苡-龄-僧-桑-潸-弘-澶-楹-悲-讫-愤-腥-悸-谍-椹-呢-桓-葭-攫-阀-翰-躲-敖-柑-郎-笨-橇-呃-魁-燎-脓-葩-磋-垛-玺-狮-沓-砜-蕊-锺-罹-蕉-翱-虐-闾-巫-旦-茱-嬷-枯-鹏-贡-芹-汛-矫-绁-拣-禺-佃-讣-舫-惯-乳-趋-疲-挽-岚-虾-衾-蠹-蹂-飓-氦-铖-孩-稞-瑜-壅-掀-勘-妓-畅-髋-W-庐-牲-蓿-榕-练-垣-唱-邸-菲-昆-婺-穿-绡-麒-蚱-掂-愚-泷-涪-漳-妩-娉-榄-讷-觅-旧-藤-煮-呛-柳-腓-叭-庵-烷-阡-罂-蜕-擂-猖-咿-媲-脉-【-沏-貅-黠-熏-哲-烁-坦-酵-兜-×-潇-撒-剽-珩-圹-乾-摸-樟-帽-嗒-襄-魂-轿-憬-锡-〕-喃-皆-咖-隅-脸-残-泮-袂-鹂-珊-囤-捆-咤-误-徨-闹-淙-芊-淋-怆-囗-拨-梳-渤-R-G-绨-蚓-婀-幡-狩-麾-谢-唢-裸-旌-伉-纶-裂-驳-砼-咛-澄-樨-蹈-宙-澍-倍-貔-操-勇-蟠-摈-砧-虬-够-缁-悦-藿-撸-艹-摁-淹-豇-虎-榭-ˉ-吱-d-°-喧-荀-踱-侮-奋-偕-饷-犍-惮-坑-璎-徘-宛-妆-袈-倩-窦-昂-荏-乖-K-怅-撰-鳙-牙-袁-酞-X-痿-琼-闸-雁-趾-荚-虻-涝-《-杏-韭-偈-烤-绫-鞘-卉-症-遢-蓥-诋-杭-荨-匆-竣-簪-辙-敕-虞-丹-缭-咩-黟-m-淤-瑕-咂-铉-硼-茨-嶂-痒-畸-敬-涿-粪-窘-熟-叔-嫔-盾-忱-裘-憾-梵-赡-珙-咯-娘-庙-溯-胺-葱-痪-摊-荷-卞-乒-髦-寐-铭-坩-胗-枷-爆-溟-嚼-羚-砬-轨-惊-挠-罄-竽-菏-氧-浅-楣-盼-枢-炸-阆-杯-谏-噬-淇-渺-俪-秆-墓-泪-跻-砌-痰-垡-渡-耽-釜-讶-鳎-煞-呗-韶-舶-绷-鹳-缜-旷-铊-皱-龌-檀-霖-奄-槐-艳-蝶-旋-哝-赶-骞-蚧-腊-盈-丁-`-蜚-矸-蝙-睨-嚓-僻-鬼-醴-夜-彝-磊-笔-拔-栀-糕-厦-邰-纫-逭-纤-眦-膊-馍-躇-烯-蘼-冬-诤-暄-骶-哑-瘠-」-臊-丕-愈-咱-螺-擅-跋-搏-硪-谄-笠-淡-嘿-骅-谧-鼎-皋-姚-歼-蠢-驼-耳-胬-挝-涯-狗-蒽-孓-犷-凉-芦-箴-铤-孤-嘛-坤-V-茴-朦-挞-尖-橙-诞-搴-碇-洵-浚-帚-蜍-漯-柘-嚎-讽-芭-荤-咻-祠-秉-跖-埃-吓-糯-眷-馒-惹-娼-鲑-嫩-讴-轮-瞥-靶-褚-乏-缤-宋-帧-删-驱-碎-扑-俩-俄-偏-涣-竹-噱-皙-佰-渚-唧-斡-#-镉-刀-崎-筐-佣-夭-贰-肴-峙-哔-艿-匐-牺-镛-缘-仡-嫡-劣-枸-堀-梨-簿-鸭-蒸-亦-稽-浴-{-衢-束-槲-j-阁-揍-疥-棋-潋-聪-窜-乓-睛-插-冉-阪-苍-搽-「-蟾-螟-幸-仇-樽-撂-慢-跤-幔-俚-淅-覃-觊-溶-妖-帛-侨-曰-妾-泗-·-:-瀘-風-Ë-(-)-∶-紅-紗-瑭-雲-頭-鶏-財-許-•-¥-樂-焗-麗-—-;-滙-東-榮-繪-興-…-門-業-π-楊-國-顧-é-盤-寳-Λ-龍-鳳-島-誌-緣-結-銭-萬-勝-祎-璟-優-歡-臨-時-購-=-★-藍-昇-鐵-觀-勅-農-聲-畫-兿-術-發-劉-記-專-耑-園-書-壴-種-Ο-●-褀-號-銀-匯-敟-锘-葉-橪-廣-進-蒄-鑽-阝-祙-貢-鍋-豊-夬-喆-團-閣-開-燁-賓-館-酡-沔-順-+-硚-劵-饸-陽-車-湓-復-萊-氣-軒-華-堃-迮-纟-戶-馬-學-裡-電-嶽-獨-マ-シ-サ-ジ-燘-袪-環-❤-臺-灣-専-賣-孖-聖-攝-線-▪-α-傢-俬-夢-達-莊-喬-貝-薩-劍-羅-壓-棛-饦-尃-璈-囍-醫-G-I-A-#-N-鷄-髙-嬰-啓-約-隹-潔-賴-藝-~-寶-籣-麺--嶺-√-義-網-峩-長-∧-魚-機-構-②-鳯-偉-L-B-㙟-畵-鴿-'-詩-溝-嚞-屌-藔-佧-玥-蘭-織-1-3-9-0-7-點-砭-鴨-鋪-銘-廳-弍-‧-創-湯-坶-℃-卩-骝-&-烜-荘-當-潤-扞-係-懷-碶-钅-蚨-讠-☆-叢-爲-埗-涫-塗-→-楽-現-鯨-愛-瑪-鈺-忄-悶-藥-飾-樓-視-孬-ㆍ-燚-苪-師-①-丼-锽-│-韓-標-è-兒-閏-匋-張-漢-Ü-髪-會-閑-檔-習-裝-の-峯-菘-輝-И-雞-釣-億-浐-K-O-R-8-H-E-P-T-W-D-S-C-M-F-姌-饹-»-晞-廰-ä-嵯-鷹-負-飲-絲-冚-楗-澤-綫-區-❋-←-質-靑-揚-③-滬-統-産-協-﹑-乸-畐-經-運-際-洺-岽-為-粵-諾-崋-豐-碁-ɔ-V-2-6-齋-誠-訂-´-勑-雙-陳-無-í-泩-媄-夌-刂-i-c-t-o-r-a-嘢-耄-燴-暃-壽-媽-靈-抻-體-唻-É-冮-甹-鎮-錦-ʌ-蜛-蠄-尓-駕-戀-飬-逹-倫-貴-極-Я-Й-寬-磚-嶪-郎-職-|-間-n-d-剎-伈-課-飛-橋-瘊-№-譜-骓-圗-滘-縣-粿-咅-養-濤-彳-®-%-Ⅱ-啰-㴪-見-矞-薬-糁-邨-鲮-顔-罱-З-選-話-贏-氪-俵-競-瑩-繡-枱-β-綉-á-獅-爾-™-麵-戋-淩-徳-個-劇-場-務-簡-寵-h-實-膠-轱-圖-築-嘣-樹-㸃-營-耵-孫-饃-鄺-飯-麯-遠-輸-坫-孃-乚-閃-鏢-㎡-題-廠-關-↑-爺-將-軍-連-篦-覌-參-箸---窠-棽-寕-夀-爰-歐-呙-閥-頡-熱-雎-垟-裟-凬-勁-帑-馕-夆-疌-枼-馮-貨-蒤-樸-彧-旸-靜-龢-暢-㐱-鳥-珺-鏡-灡-爭-堷-廚-Ó-騰-診-┅-蘇-褔-凱-頂-豕-亞-帥-嘬-⊥-仺-桖-複-饣-絡-穂-顏-棟-納-▏-濟-親-設-計-攵-埌-烺-ò-頤-燦-蓮-撻-節-講-濱-濃-娽-洳-朿-燈-鈴-護-膚-铔-過-補-Z-U-5-4-坋-闿-䖝-餘-缐-铞-貿-铪-桼-趙-鍊-[-㐂-垚-菓-揸-捲-鐘-滏-𣇉-爍-輪-燜-鴻-鮮-動-鹞-鷗-丄-慶-鉌-翥-飮-腸-⇋-漁-覺-來-熘-昴-翏-鲱-圧-鄉-萭-頔-爐-嫚-г-貭-類-聯-幛-輕-訓-鑒-夋-锨-芃-珣-䝉-扙-嵐-銷-處-ㄱ-語-誘-苝-歸-儀-燒-楿-內-粢-葒-奧-麥-礻-滿-蠔-穵-瞭-態-鱬-榞-硂-鄭-黃-煙-祐-奓-逺-*-瑄-獲-聞-薦-讀-這-樣-決-問-啟-們-執-説-轉-單-隨-唘-帶-倉-庫-還-贈-尙-皺-■-餅-產-○-∈-報-狀-楓-賠-琯-嗮-禮-`-傳->-≤-嗞-Φ-≥-換-咭-∣-↓-曬-ε-応-寫-″-終-様-純-費-療-聨-凍-壐-郵-ü-黒-∫-製-塊-調-軽-確-撃-級-馴-Ⅲ-涇-繹-數-碼-證-狒-処-劑-<-晧-賀-衆-]-櫥-兩-陰-絶-對-鯉-憶-◎-p-e-Y-蕒-煖-頓-測-試-鼽-僑-碩-妝-帯-≈-鐡-舖-權-喫-倆-ˋ-該-悅-ā-俫-.-f-s-b-m-k-g-u-j-貼-淨-濕-針-適-備-l-/-給-謢-強-觸-衛-與-⊙-$-緯-變-⑴-⑵-⑶-㎏-殺-∩-幚-─-價-▲-離-ú-ó-飄-烏-関-閟-﹝-﹞-邏-輯-鍵-驗-訣-導-歷-屆-層-▼-儱-錄-熳-ē-艦-吋-錶-辧-飼-顯-④-禦-販-気-対-枰-閩-紀-幹-瞓-貊-淚-△-眞-墊-Ω-獻-褲-縫-緑-亜-鉅-餠-{-}-◆-蘆-薈-█-◇-溫-彈-晳-粧-犸-穩-訊-崬-凖-熥-П-舊-條-紋-圍-Ⅳ-筆-尷-難-雜-錯-綁-識-頰-鎖-艶-□-殁-殼-⑧-├-▕-鵬-ǐ-ō-ǒ-糝-綱-▎-μ-盜-饅-醬-籤-蓋-釀-鹽-據-à-ɡ-辦-◥-彐-┌-婦-獸-鲩-伱-ī-蒟-蒻-齊-袆-腦-寧-凈-妳-煥-詢-偽-謹-啫-鯽-騷-鱸-損-傷-鎻-髮-買-冏-儥-両-﹢-∞-載-喰-z-羙-悵-燙-曉-員-組-徹-艷-痠-鋼-鼙-縮-細-嚒-爯-≠-維-"-鱻-壇-厍-帰-浥-犇-薡-軎-²-應-醜-刪-緻-鶴-賜-噁-軌-尨-镔-鷺-槗-彌-葚-濛-請-溇-緹-賢-訪-獴-瑅-資-縤-陣-蕟-栢-韻-祼-恁-伢-謝-劃-涑-總-衖-踺-砋-凉-籃-駿-苼-瘋-昽-紡-驊-腎-﹗-響-杋-剛-嚴-禪-歓-槍-傘-檸-檫-炣-勢-鏜-鎢-銑-尐-減-奪-惡-θ-僮-婭-臘-ū-ì-殻-鉄-∑-蛲-焼-緖-續-紹-懮\ No newline at end of filediff --git a/python/openvino_infer/ch_ppocr_mobile_v2_rec/run.sh b/python/openvino_infer/ch_ppocr_mobile_v2_rec/run.shdeleted file mode 100644index f519b8b..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_rec/run.sh+++ /dev/null@@ -1,9 +0,0 @@-#! /bin/bash-set -e errexit--root_path=$(cd $(dirname $0); pwd)-image_path=${root_path}"/test_images/rec_images/2021-01-18_14-22-32.png"-model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_rec_infer.onnx"--python text_recognize.py --image_path ${image_path} \- --model_path ${model_path}\ No newline at end of filediff --git a/python/openvino_infer/ch_ppocr_mobile_v2_rec/text_recognize.py b/python/openvino_infer/ch_ppocr_mobile_v2_rec/text_recognize.pydeleted file mode 100644index 0266ad2..0000000--- a/python/openvino_infer/ch_ppocr_mobile_v2_rec/text_recognize.py+++ /dev/null@@ -1,140 +0,0 @@-# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.-#-# Licensed under the Apache License, Version 2.0 (the "License");-# you may not use this file except in compliance with the License.-# You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing, software-# distributed under the License is distributed on an "AS IS" BASIS,-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-# See the License for the specific language governing permissions and-# limitations under the License.-import argparse-import math-import time-from pathlib import Path--import cv2-import numpy as np-import onnxruntime-from openvino.runtime import Core--try:- from .utils import CTCLabelDecode, check_and_read_gif, get_image_file_list-except:- from utils import CTCLabelDecode, check_and_read_gif, get_image_file_list---root_path = Path(__file__).parent---class TextRecognizer(object):- def __init__(self, rec_model_path, keys_path=None):- self.rec_image_shape = [3, 32, 320]- self.rec_batch_num = 6-- if keys_path is not None:- self.character_dict_path = keys_path- else:- self.character_dict_path = str(root_path / 'ppocr_keys_v1.txt')- self.postprocess_op = CTCLabelDecode(self.character_dict_path)-- ie = Core()- model_onnx = ie.read_model(rec_model_path)- compile_model = ie.compile_model(model=model_onnx, device_name='CPU')- self.session = compile_model.create_infer_request()-- def resize_norm_img(self, img, max_wh_ratio):- img_channel, img_height, img_width = self.rec_image_shape- assert img_channel == img.shape[2]-- img_width = int((32 * max_wh_ratio))- max_wh_ratio = 1-- h, w = img.shape[:2]- ratio = w / float(h)- if math.ceil(img_height * ratio) > img_width:- resized_w = img_width- else:- resized_w = int(math.ceil(img_height * ratio))- resized_image = cv2.resize(img, (resized_w, img_height))- resized_image = resized_image.astype('float32')- resized_image = resized_image.transpose((2, 0, 1)) / 255- resized_image -= 0.5- resized_image /= 0.5- padding_im = np.zeros((img_channel, img_height, img_width),- dtype=np.float32)- padding_im[:, :, 0:resized_w] = resized_image- return padding_im-- @staticmethod- def load_image(image_dir):- image_file_list = get_image_file_list(image_dir)- valid_image_file_list = []- img_list = []- for image_file in image_file_list:- img, flag = check_and_read_gif(image_file)- if not flag:- img = cv2.imread(image_file)- if img is None:- print(f"error in loading image:{image_file}")- continue- valid_image_file_list.append(image_file)- img_list.append(img)- return img_list-- def __call__(self, image_dir):- if not isinstance(image_dir, list):- img_list = self.load_image(image_dir)- else:- img_list = image_dir- img_num = len(img_list)- # Calculate the aspect ratio of all text bars- width_list = []- for img in img_list:- width_list.append(img.shape[1] / float(img.shape[0]))- # Sorting can speed up the recognition process- indices = np.argsort(np.array(width_list))-- rec_res = [['', 0.0]] * img_num- batch_num = self.rec_batch_num- elapse = 0- for beg_img_no in range(0, img_num, batch_num):- end_img_no = min(img_num, beg_img_no + batch_num)- norm_img_batch = []- max_wh_ratio = 0- for ino in range(beg_img_no, end_img_no):- h, w = img_list[indices[ino]].shape[0:2]- wh_ratio = w * 1.0 / h- max_wh_ratio = max(max_wh_ratio, wh_ratio)- for ino in range(beg_img_no, end_img_no):- norm_img = self.resize_norm_img(img_list[indices[ino]],- max_wh_ratio)- norm_img = norm_img[np.newaxis, :]- norm_img_batch.append(norm_img)- norm_img_batch = np.concatenate(norm_img_batch)- norm_img_batch = norm_img_batch.astype(np.float32)-- # onnx模型推理- starttime = time.time()- self.session.infer(inputs=[norm_img_batch])- preds = self.session.get_output_tensor().data-- rec_result = self.postprocess_op(preds)- for rno in range(len(rec_result)):- rec_res[indices[beg_img_no + rno]] = rec_result[rno]- elapse += time.time() - starttime- return rec_res, elapse---if __name__ == "__main__":- parser = argparse.ArgumentParser()- parser.add_argument('--image_path', type=str, help='image_dir|image_path')- parser.add_argument('--model_path', type=str, help='rec_model_path')- args = parser.parse_args()-- text_recognizer = TextRecognizer(args.model_path)- rec_res, predict_time = text_recognizer(args.image_path)- print(f'识别结果: {rec_res}\t cost: {predict_time}s')diff --git a/python/openvino_infer/fonts/.gitkeep b/python/openvino_infer/fonts/.gitkeepdeleted file mode 100644index e69de29..0000000diff --git a/python/openvino_infer/models/.gitkeep b/python/openvino_infer/models/.gitkeepdeleted file mode 100644index e69de29..0000000diff --git a/python/openvino_infer/rapid_ocr_api.py b/python/openvino_infer/rapid_ocr_api.pydeleted file mode 100644index 7bd3a14..0000000--- a/python/openvino_infer/rapid_ocr_api.py+++ /dev/null@@ -1,305 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--import argparse-import copy-import imghdr-import math-import random-from pathlib import Path--import cv2-import numpy as np-from PIL import Image, ImageDraw, ImageFont--from ch_ppocr_mobile_v2_cls import TextClassifier-from ch_ppocr_mobile_v2_det import TextDetector-from ch_ppocr_mobile_v2_rec import TextRecognizer---def get_image_file_list(img_file):- if img_file is None or not Path(img_file).exists():- raise FileExistsError(f"not found any img file in {img_file}")-- imgs_lists = []- img_end = ['jpg', 'bmp', 'png', 'jpeg', 'rgb', 'tif', 'tiff', 'gif']-- def _get_img_path(img_file):- # 真实后缀- real_img_suffix = imghdr.what(img_file)-- # 现在后缀- now_img_suffix = img_file.suffix[1:].lower()-- if real_img_suffix in img_end:- # 真实后缀与现有后缀不一致- if now_img_suffix in img_end:- return img_file- else:- # 按照真实后缀重命名- new_img_file = img_file.with_suffix(f'.{real_img_suffix}')- img_file.rename(new_img_file)- return new_img_file- else:- return None-- img_file = Path(img_file)- if img_file.is_file():- tmp_img_path = _get_img_path(img_file)- if tmp_img_path is not None:- imgs_lists.append(str(tmp_img_path))-- elif img_file.is_dir():- for img_path in img_file.iterdir():- tmp_file_path = _get_img_path(img_path)- if tmp_file_path is not None:- imgs_lists.append(str(tmp_file_path))- else:- raise ValueError(f"The {img_file}'s format is not support!")-- if len(imgs_lists) == 0:- raise FileExistsError(f"not found any img file in {img_file}")-- return imgs_lists---def check_and_read_gif(img_path):- if Path(img_path).name[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, False---def draw_ocr_box_txt(image, boxes, txts, font_path,- scores=None, text_score=0.5,- ):- if not Path(font_path).exists():- raise FileNotFoundError(f'The {font_path} does not exists! \n'- f'Please download the file in the https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY')-- h, w = image.height, image.width- img_left = image.copy()- img_right = Image.new('RGB', (w, h), (255, 255, 255))-- random.seed(0)- draw_left = ImageDraw.Draw(img_left)- draw_right = ImageDraw.Draw(img_right)- for idx, (box, txt) in enumerate(zip(boxes, txts)):- if scores is not None and scores[idx] < text_score:- continue-- color = (random.randint(0, 255),- random.randint(0, 255),- random.randint(0, 255))- draw_left.polygon(box, fill=color)- draw_right.polygon([box[0][0], box[0][1],- box[1][0], box[1][1],- box[2][0], box[2][1],- box[3][0], box[3][1]],- outline=color)-- box_height = math.sqrt((box[0][0] - box[3][0])**2- + (box[0][1] - box[3][1])**2)-- box_width = math.sqrt((box[0][0] - box[1][0])**2- + (box[0][1] - box[1][1])**2)-- if box_height > 2 * box_width:- font_size = max(int(box_width * 0.9), 10)- font = ImageFont.truetype(font_path, font_size,- encoding="utf-8")- cur_y = box[0][1]- for c in txt:- char_size = font.getsize(c)- draw_right.text((box[0][0] + 3, cur_y), c,- fill=(0, 0, 0), font=font)- cur_y += char_size[1]- else:- font_size = max(int(box_height * 0.8), 10)- font = ImageFont.truetype(font_path, font_size, encoding="utf-8")- draw_right.text([box[0][0], box[0][1]], txt,- fill=(0, 0, 0), font=font)-- img_left = Image.blend(image, img_left, 0.5)- img_show = Image.new('RGB', (w * 2, h), (255, 255, 255))- img_show.paste(img_left, (0, 0, w, h))- img_show.paste(img_right, (w, 0, w * 2, h))- return np.array(img_show)---def visualize(image_path, boxes, rec_res,- font_path="fonts/msyh.ttc"):- image = Image.open(image_path)- txts = [rec_res[i][0] for i in range(len(rec_res))]- scores = [rec_res[i][1] for i in range(len(rec_res))]-- draw_img = draw_ocr_box_txt(image, boxes,- txts, font_path,- scores,- text_score=0.5)-- draw_img_save = Path("./inference_results/")- if not draw_img_save.exists():- draw_img_save.mkdir(parents=True, exist_ok=True)-- image_save = str(draw_img_save / f'infer_{Path(image_path).name}')- cv2.imwrite(image_save, draw_img[:, :, ::-1])- print(f'The infer result has saved in {image_save}')---class TextSystem(object):- def __init__(self, det_model_path,- rec_model_path,- use_angle_cls=False,- cls_model_path=None,- keys_path=None):- super(TextSystem).__init__()- self.text_score = 0.5-- self.text_detector = TextDetector(det_model_path)- self.text_recognizer = TextRecognizer(rec_model_path, keys_path)- self.use_angle_cls = use_angle_cls- if self.use_angle_cls:- self.text_classifier = TextClassifier(cls_model_path)-- def get_rotate_crop_image(self, img, points):- '''- img_height, img_width = img.shape[0:2]- left = int(np.min(points[:, 0]))- right = int(np.max(points[:, 0]))- top = int(np.min(points[:, 1]))- bottom = int(np.max(points[:, 1]))- img_crop = img[top:bottom, left:right, :].copy()- points[:, 0] = points[:, 0] - left- points[:, 1] = points[:, 1] - top- '''- img_crop_width = int(- max(- np.linalg.norm(points[0] - points[1]),- np.linalg.norm(points[2] - points[3])))- img_crop_height = int(- max(- np.linalg.norm(points[0] - points[3]),- np.linalg.norm(points[1] - points[2])))- pts_std = np.float32([[0, 0], [img_crop_width, 0],- [img_crop_width, img_crop_height],- [0, img_crop_height]])- M = cv2.getPerspectiveTransform(points, pts_std)- dst_img = cv2.warpPerspective(- img,- M, (img_crop_width, img_crop_height),- borderMode=cv2.BORDER_REPLICATE,- flags=cv2.INTER_CUBIC)- dst_img_height, dst_img_width = dst_img.shape[0:2]- if dst_img_height * 1.0 / dst_img_width >= 1.5:- dst_img = np.rot90(dst_img)- return dst_img-- @staticmethod- def sorted_boxes(dt_boxes):- """- Sort text boxes in order from top to bottom, left to right- args:- dt_boxes(array):detected text boxes with shape [4, 2]- return:- sorted boxes(array) with shape [4, 2]- """- num_boxes = dt_boxes.shape[0]- sorted_boxes = sorted(dt_boxes, key=lambda x: (x[0][1], x[0][0]))- _boxes = list(sorted_boxes)-- for i in range(num_boxes - 1):- if abs(_boxes[i + 1][0][1] - _boxes[i][0][1]) < 10 and \- (_boxes[i + 1][0][0] < _boxes[i][0][0]):- tmp = _boxes[i]- _boxes[i] = _boxes[i + 1]- _boxes[i + 1] = tmp- return _boxes-- @staticmethod- def load_image(image_path):- img, flag = check_and_read_gif(image_path)- if not flag:- img = cv2.imread(image_path)- if img is None:- raise ValueError(f"error in loading image:{image_path}")- return img-- def __call__(self, image_path):- img = self.load_image(image_path)- dt_boxes, elapse = self.text_detector(img)- print("dt_boxes num : {}, elapse : {}".format(- len(dt_boxes), elapse))- if dt_boxes is None or len(dt_boxes) < 1:- return None, None- dt_boxes = self.sorted_boxes(dt_boxes)-- img_crop_list = []- for bno in range(len(dt_boxes)):- tmp_box = copy.deepcopy(dt_boxes[bno])- img_crop = self.get_rotate_crop_image(img, tmp_box)- img_crop_list.append(img_crop)-- if self.use_angle_cls:- img_crop_list, angle_list, elapse = self.text_classifier(- img_crop_list)- print("cls num : {}, elapse : {}".format(- len(img_crop_list), elapse))-- rec_res, elapse = self.text_recognizer(img_crop_list)- print("rec_res num : {}, elapse : {}".format(- len(rec_res), elapse))-- filter_boxes, filter_rec_res = [], []- for box, rec_reuslt in zip(dt_boxes, rec_res):- text, score = rec_reuslt- if score >= self.text_score:- filter_boxes.append(box)- filter_rec_res.append(rec_reuslt)- return filter_boxes, filter_rec_res---if __name__ == '__main__':- parser = argparse.ArgumentParser()-- parser.add_argument('--det_model_path', type=str,- default='models/ch_ppocr_mobile_v2.0_det_infer.onnx')- parser.add_argument('--cls_model_path', type=str,- default='models/ch_ppocr_mobile_v2.0_cls_infer.onnx')- parser.add_argument('--rec_model_path', type=str,- default='models/ch_ppocr_mobile_v2.0_rec_infer.onnx')-- parser.add_argument('--image_path', type=str,- default='test_images/det_images/')-- parser.add_argument('--keys_path', type=str,- default="ch_ppocr_mobile_v2_rec/ppocr_keys_v1.txt")- args = parser.parse_args()-- if args.det_model_path.find('server') != -1:- from ch_ppocr_server_v2_det import TextDetector- else:- from ch_ppocr_mobile_v2_det import TextDetector-- if args.rec_model_path.find('server') != -1:- from ch_ppocr_server_v2_rec import TextRecognizer- else:- from ch_ppocr_mobile_v2_rec import TextRecognizer-- text_sys = TextSystem(args.det_model_path,- args.rec_model_path,- use_angle_cls=True,- cls_model_path=args.cls_model_path,- keys_path=args.keys_path)-- image_file_list = get_image_file_list(args.image_path)- for image_path in image_file_list:- dt_boxes, rec_res = text_sys(image_path)- visualize(image_path, dt_boxes, rec_res)- print('=' * 10)diff --git a/python/openvino_infer/rec_dict/en_dict.txt b/python/openvino_infer/rec_dict/en_dict.txtdeleted file mode 100644index 7677d31..0000000--- a/python/openvino_infer/rec_dict/en_dict.txt+++ /dev/null@@ -1,95 +0,0 @@-0-1-2-3-4-5-6-7-8-9-:-;-<-=->-?-@-A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z-[-\-]-^-_-`-a-b-c-d-e-f-g-h-i-j-k-l-m-n-o-p-q-r-s-t-u-v-w-x-y-z-{-|-}-~-!-"-#-$-%-&-'-(-)-*-+-,---.-/-diff --git a/python/openvino_infer/rec_dict/japan_dict.txt b/python/openvino_infer/rec_dict/japan_dict.txtdeleted file mode 100644index 339d4b8..0000000--- a/python/openvino_infer/rec_dict/japan_dict.txt+++ /dev/null@@ -1,4399 +0,0 @@-!-"-#-$-%-&-'-(-)-*-+-,---.-/-0-1-2-3-4-5-6-7-8-9-:-;-<-=->-?-A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z-[-]-_-`-a-b-c-d-e-f-g-h-i-j-k-l-m-n-o-p-q-r-s-t-u-v-w-x-y-z-©-°-²-´-½-Á-Ä-Å-Ç-È-É-Í-Ó-Ö-×-Ü-ß-à-á-â-ã-ä-å-æ-ç-è-é-ê-ë-í-ð-ñ-ò-ó-ô-õ-ö-ø-ú-û-ü-ý-ā-ă-ą-ć-Č-č-đ-ē-ė-ę-ğ-ī-ı-Ł-ł-ń-ň-ō-ř-Ş-ş-Š-š-ţ-ū-ż-Ž-ž-Ș-ș-ț-Δ-α-λ-μ-φ-Г-О-а-в-л-о-р-с-т-я-ồ--—-―-’-“-”-…-℃-→-∇-−-■-☆--、-。-々-〆-〈-〉-「-」-『-』-〔-〕-〜-ぁ-あ-ぃ-い-う-ぇ-え-ぉ-お-か-が-き-ぎ-く-ぐ-け-げ-こ-ご-さ-ざ-し-じ-す-ず-せ-ぜ-そ-ぞ-た-だ-ち-ぢ-っ-つ-づ-て-で-と-ど-な-に-ぬ-ね-の-は-ば-ぱ-ひ-び-ぴ-ふ-ぶ-ぷ-へ-べ-ぺ-ほ-ぼ-ぽ-ま-み-む-め-も-ゃ-や-ゅ-ゆ-ょ-よ-ら-り-る-れ-ろ-わ-ゑ-を-ん-ゝ-ゞ-ァ-ア-ィ-イ-ゥ-ウ-ェ-エ-ォ-オ-カ-ガ-キ-ギ-ク-グ-ケ-ゲ-コ-ゴ-サ-ザ-シ-ジ-ス-ズ-セ-ゼ-ソ-ゾ-タ-ダ-チ-ヂ-ッ-ツ-ヅ-テ-デ-ト-ド-ナ-ニ-ヌ-ネ-ノ-ハ-バ-パ-ヒ-ビ-ピ-フ-ブ-プ-ヘ-ベ-ペ-ホ-ボ-ポ-マ-ミ-ム-メ-モ-ャ-ヤ-ュ-ユ-ョ-ヨ-ラ-リ-ル-レ-ロ-ワ-ヰ-ン-ヴ-ヵ-ヶ-・-ー-㈱-一-丁-七-万-丈-三-上-下-不-与-丑-且-世-丘-丙-丞-両-並-中-串-丸-丹-主-丼-丿-乃-久-之-乎-乏-乗-乘-乙-九-乞-也-乱-乳-乾-亀-了-予-争-事-二-于-互-五-井-亘-亙-些-亜-亟-亡-交-亥-亦-亨-享-京-亭-亮-人-什-仁-仇-今-介-仍-仏-仔-仕-他-仗-付-仙-代-令-以-仮-仰-仲-件-任-企-伊-伍-伎-伏-伐-休-会-伝-伯-估-伴-伶-伸-伺-似-伽-佃-但-位-低-住-佐-佑-体-何-余-佚-佛-作-佩-佳-併-佶-使-侈-例-侍-侏-侑-侘-供-依-侠-価-侮-侯-侵-侶-便-係-促-俄-俊-俔-俗-俘-保-信-俣-俤-修-俯-俳-俵-俸-俺-倉-個-倍-倒-候-借-倣-値-倫-倭-倶-倹-偃-假-偈-偉-偏-偐-偕-停-健-側-偵-偶-偽-傀-傅-傍-傑-傘-備-催-傭-傲-傳-債-傷-傾-僊-働-像-僑-僕-僚-僧-僭-僮-儀-億-儇-儒-儛-償-儡-優-儲-儺-儼-兀-允-元-兄-充-兆-先-光-克-兌-免-兎-児-党-兜-入-全-八-公-六-共-兵-其-具-典-兼-内-円-冊-再-冑-冒-冗-写-冠-冤-冥-冨-冬-冲-决-冶-冷-准-凉-凋-凌-凍-凛-凝-凞-几-凡-処-凪-凰-凱-凶-凸-凹-出-函-刀-刃-分-切-刈-刊-刎-刑-列-初-判-別-利-刪-到-制-刷-券-刹-刺-刻-剃-則-削-剋-前-剖-剛-剣-剤-剥-剪-副-剰-割-創-剽-劇-劉-劔-力-功-加-劣-助-努-劫-劭-励-労-効-劾-勃-勅-勇-勉-勒-動-勘-務-勝-募-勢-勤-勧-勲-勺-勾-勿-匁-匂-包-匏-化-北-匙-匝-匠-匡-匣-匯-匲-匹-区-医-匿-十-千-升-午-卉-半-卍-卑-卒-卓-協-南-単-博-卜-占-卦-卯-印-危-即-却-卵-卸-卿-厄-厚-原-厠-厨-厩-厭-厳-去-参-又-叉-及-友-双-反-収-叔-取-受-叙-叛-叟-叡-叢-口-古-句-叩-只-叫-召-可-台-叱-史-右-叶-号-司-吃-各-合-吉-吊-同-名-后-吏-吐-向-君-吝-吟-吠-否-含-吸-吹-吻-吽-吾-呂-呆-呈-呉-告-呑-周-呪-呰-味-呼-命-咀-咄-咋-和-咒-咫-咲-咳-咸-哀-品-哇-哉-員-哨-哩-哭-哲-哺-唄-唆-唇-唐-唖-唯-唱-唳-唸-唾-啄-商-問-啓-啼-善-喋-喚-喜-喝-喧-喩-喪-喫-喬-單-喰-営-嗅-嗇-嗔-嗚-嗜-嗣-嘆-嘉-嘗-嘘-嘩-嘯-嘱-嘲-嘴-噂-噌-噛-器-噴-噺-嚆-嚢-囀-囃-囉-囚-四-回-因-団-困-囲-図-固-国-圀-圃-國-圏-園-圓-團-圜-土-圧-在-圭-地-址-坂-均-坊-坐-坑-坡-坤-坦-坪-垂-型-垢-垣-埃-埋-城-埒-埔-域-埠-埴-埵-執-培-基-埼-堀-堂-堅-堆-堕-堤-堪-堯-堰-報-場-堵-堺-塀-塁-塊-塑-塔-塗-塘-塙-塚-塞-塩-填-塵-塾-境-墉-墓-増-墜-墟-墨-墳-墺-墻-墾-壁-壇-壊-壌-壕-士-壬-壮-声-壱-売-壷-壹-壺-壽-変-夏-夕-外-夙-多-夜-夢-夥-大-天-太-夫-夬-夭-央-失-夷-夾-奄-奇-奈-奉-奎-奏-契-奔-奕-套-奘-奠-奢-奥-奨-奪-奮-女-奴-奸-好-如-妃-妄-妊-妍-妓-妖-妙-妥-妨-妬-妲-妹-妻-妾-姉-始-姐-姓-委-姚-姜-姞-姥-姦-姨-姪-姫-姶-姻-姿-威-娑-娘-娟-娠-娩-娯-娼-婆-婉-婚-婢-婦-婬-婿-媄-媒-媓-媚-媛-媞-媽-嫁-嫄-嫉-嫌-嫐-嫗-嫡-嬉-嬌-嬢-嬪-嬬-嬾-孁-子-孔-字-存-孚-孝-孟-季-孤-学-孫-孵-學-宅-宇-守-安-宋-完-宍-宏-宕-宗-官-宙-定-宛-宜-宝-実-客-宣-室-宥-宮-宰-害-宴-宵-家-宸-容-宿-寂-寄-寅-密-寇-富-寒-寓-寔-寛-寝-察-寡-實-寧-審-寮-寵-寶-寸-寺-対-寿-封-専-射-将-尉-尊-尋-對-導-小-少-尖-尚-尤-尪-尭-就-尹-尺-尻-尼-尽-尾-尿-局-居-屈-届-屋-屍-屎-屏-屑-屓-展-属-屠-層-履-屯-山-岐-岑-岡-岩-岫-岬-岳-岷-岸-峠-峡-峨-峯-峰-島-峻-崇-崋-崎-崑-崖-崗-崛-崩-嵌-嵐-嵩-嵯-嶂-嶋-嶠-嶺-嶼-嶽-巀-巌-巒-巖-川-州-巡-巣-工-左-巧-巨-巫-差-己-巳-巴-巷-巻-巽-巾-市-布-帆-希-帖-帚-帛-帝-帥-師-席-帯-帰-帳-帷-常-帽-幄-幅-幇-幌-幔-幕-幟-幡-幢-幣-干-平-年-并-幸-幹-幻-幼-幽-幾-庁-広-庄-庇-床-序-底-庖-店-庚-府-度-座-庫-庭-庵-庶-康-庸-廂-廃-廉-廊-廓-廟-廠-廣-廬-延-廷-建-廻-廼-廿-弁-弄-弉-弊-弌-式-弐-弓-弔-引-弖-弗-弘-弛-弟-弥-弦-弧-弱-張-強-弼-弾-彈-彊-彌-彎-当-彗-彙-彝-形-彦-彩-彫-彬-彭-彰-影-彷-役-彼-往-征-徂-径-待-律-後-徐-徑-徒-従-得-徠-御-徧-徨-復-循-徭-微-徳-徴-德-徹-徽-心-必-忉-忌-忍-志-忘-忙-応-忠-快-忯-念-忻-忽-忿-怒-怖-思-怠-怡-急-性-怨-怪-怯-恂-恋-恐-恒-恕-恣-恤-恥-恨-恩-恬-恭-息-恵-悉-悌-悍-悔-悟-悠-患-悦-悩-悪-悲-悼-情-惇-惑-惚-惜-惟-惠-惣-惧-惨-惰-想-惹-惺-愈-愉-愍-意-愔-愚-愛-感-愷-愿-慈-態-慌-慎-慕-慢-慣-慧-慨-慮-慰-慶-憂-憎-憐-憑-憙-憤-憧-憩-憬-憲-憶-憾-懇-應-懌-懐-懲-懸-懺-懽-懿-戈-戊-戌-戎-成-我-戒-戔-或-戚-戟-戦-截-戮-戯-戴-戸-戻-房-所-扁-扇-扈-扉-手-才-打-払-托-扮-扱-扶-批-承-技-抄-把-抑-抓-投-抗-折-抜-択-披-抱-抵-抹-押-抽-担-拇-拈-拉-拍-拏-拐-拒-拓-拘-拙-招-拝-拠-拡-括-拭-拳-拵-拶-拾-拿-持-挂-指-按-挑-挙-挟-挨-振-挺-挽-挿-捉-捕-捗-捜-捧-捨-据-捺-捻-掃-掄-授-掌-排-掖-掘-掛-掟-採-探-掣-接-控-推-掩-措-掬-掲-掴-掻-掾-揃-揄-揆-揉-描-提-揖-揚-換-握-揮-援-揶-揺-損-搦-搬-搭-携-搾-摂-摘-摩-摸-摺-撃-撒-撞-撤-撥-撫-播-撮-撰-撲-撹-擁-操-擔-擦-擬-擾-攘-攝-攣-支-收-改-攻-放-政-故-敏-救-敗-教-敢-散-敦-敬-数-整-敵-敷-斂-文-斉-斎-斐-斑-斗-料-斜-斟-斤-斥-斧-斬-断-斯-新-方-於-施-旁-旅-旋-旌-族-旗-旛-无-旡-既-日-旦-旧-旨-早-旬-旭-旺-旻-昂-昆-昇-昉-昌-明-昏-易-昔-星-映-春-昧-昨-昪-昭-是-昵-昼-晁-時-晃-晋-晏-晒-晟-晦-晧-晩-普-景-晴-晶-智-暁-暇-暈-暉-暑-暖-暗-暘-暢-暦-暫-暮-暲-暴-暹-暾-曄-曇-曉-曖-曙-曜-曝-曠-曰-曲-曳-更-書-曹-曼-曽-曾-替-最-會-月-有-朋-服-朏-朔-朕-朗-望-朝-期-朧-木-未-末-本-札-朱-朴-机-朽-杁-杉-李-杏-材-村-杓-杖-杜-杞-束-条-杢-杣-来-杭-杮-杯-東-杲-杵-杷-杼-松-板-枅-枇-析-枓-枕-林-枚-果-枝-枠-枡-枢-枯-枳-架-柄-柊-柏-某-柑-染-柔-柘-柚-柯-柱-柳-柴-柵-査-柾-柿-栂-栃-栄-栖-栗-校-株-栲-栴-核-根-栻-格-栽-桁-桂-桃-框-案-桐-桑-桓-桔-桜-桝-桟-桧-桴-桶-桾-梁-梅-梆-梓-梔-梗-梛-條-梟-梢-梧-梨-械-梱-梲-梵-梶-棄-棋-棒-棗-棘-棚-棟-棠-森-棲-棹-棺-椀-椅-椋-植-椎-椏-椒-椙-検-椥-椹-椿-楊-楓-楕-楚-楞-楠-楡-楢-楨-楪-楫-業-楮-楯-楳-極-楷-楼-楽-概-榊-榎-榕-榛-榜-榮-榱-榴-槃-槇-槊-構-槌-槍-槐-様-槙-槻-槽-槿-樂-樋-樓-樗-標-樟-模-権-横-樫-樵-樹-樺-樽-橇-橋-橘-機-橿-檀-檄-檎-檐-檗-檜-檣-檥-檬-檮-檸-檻-櫃-櫓-櫛-櫟-櫨-櫻-欄-欅-欠-次-欣-欧-欲-欺-欽-款-歌-歎-歓-止-正-此-武-歩-歪-歯-歳-歴-死-殆-殉-殊-残-殖-殯-殴-段-殷-殺-殻-殿-毀-毅-母-毎-毒-比-毘-毛-毫-毬-氈-氏-民-気-水-氷-永-氾-汀-汁-求-汎-汐-汗-汚-汝-江-池-汪-汰-汲-決-汽-沂-沃-沅-沆-沈-沌-沐-沓-沖-沙-没-沢-沱-河-沸-油-治-沼-沽-沿-況-泉-泊-泌-法-泗-泡-波-泣-泥-注-泯-泰-泳-洋-洒-洗-洛-洞-津-洩-洪-洲-洸-洹-活-洽-派-流-浄-浅-浙-浚-浜-浣-浦-浩-浪-浮-浴-海-浸-涅-消-涌-涙-涛-涯-液-涵-涼-淀-淄-淆-淇-淋-淑-淘-淡-淤-淨-淫-深-淳-淵-混-淹-添-清-済-渉-渋-渓-渕-渚-減-渟-渠-渡-渤-渥-渦-温-渫-測-港-游-渾-湊-湖-湘-湛-湧-湫-湯-湾-湿-満-源-準-溜-溝-溢-溥-溪-溶-溺-滄-滅-滋-滌-滑-滕-滝-滞-滴-滸-滹-滿-漁-漂-漆-漉-漏-漑-演-漕-漠-漢-漣-漫-漬-漱-漸-漿-潅-潔-潙-潜-潟-潤-潭-潮-潰-潴-澁-澂-澄-澎-澗-澤-澪-澱-澳-激-濁-濃-濟-濠-濡-濤-濫-濯-濱-濾-瀉-瀋-瀑-瀕-瀞-瀟-瀧-瀬-瀾-灌-灑-灘-火-灯-灰-灸-災-炉-炊-炎-炒-炭-炮-炷-点-為-烈-烏-烙-烝-烹-焔-焙-焚-無-焦-然-焼-煇-煉-煌-煎-煕-煙-煤-煥-照-煩-煬-煮-煽-熈-熊-熙-熟-熨-熱-熹-熾-燃-燈-燎-燔-燕-燗-燥-燭-燻-爆-爐-爪-爬-爲-爵-父-爺-爼-爽-爾-片-版-牌-牒-牘-牙-牛-牝-牟-牡-牢-牧-物-牲-特-牽-犂-犠-犬-犯-状-狂-狄-狐-狗-狙-狛-狡-狩-独-狭-狷-狸-狼-猊-猛-猟-猥-猨-猩-猪-猫-献-猴-猶-猷-猾-猿-獄-獅-獏-獣-獲-玄-玅-率-玉-王-玖-玩-玲-珀-珂-珈-珉-珊-珍-珎-珞-珠-珣-珥-珪-班-現-球-理-琉-琢-琥-琦-琮-琲-琳-琴-琵-琶-瑁-瑋-瑙-瑚-瑛-瑜-瑞-瑠-瑤-瑩-瑪-瑳-瑾-璃-璋-璜-璞-璧-璨-環-璵-璽-璿-瓊-瓔-瓜-瓢-瓦-瓶-甍-甑-甕-甘-甚-甞-生-産-甥-用-甫-田-由-甲-申-男-町-画-界-畏-畑-畔-留-畜-畝-畠-畢-略-番-異-畳-當-畷-畸-畺-畿-疆-疇-疋-疎-疏-疑-疫-疱-疲-疹-疼-疾-病-症-痒-痔-痕-痘-痙-痛-痢-痩-痴-痺-瘍-瘡-瘧-療-癇-癌-癒-癖-癡-癪-発-登-白-百-的-皆-皇-皋-皐-皓-皮-皺-皿-盂-盃-盆-盈-益-盒-盗-盛-盞-盟-盡-監-盤-盥-盧-目-盲-直-相-盾-省-眉-看-県-眞-真-眠-眷-眺-眼-着-睡-督-睦-睨-睿-瞋-瞑-瞞-瞬-瞭-瞰-瞳-瞻-瞼-瞿-矍-矛-矜-矢-知-矧-矩-短-矮-矯-石-砂-砌-研-砕-砥-砦-砧-砲-破-砺-硝-硫-硬-硯-碁-碇-碌-碑-碓-碕-碗-碣-碧-碩-確-碾-磁-磐-磔-磧-磨-磬-磯-礁-礎-礒-礙-礫-礬-示-礼-社-祀-祁-祇-祈-祉-祐-祓-祕-祖-祗-祚-祝-神-祟-祠-祢-祥-票-祭-祷-祺-禁-禄-禅-禊-禍-禎-福-禔-禖-禛-禦-禧-禮-禰-禹-禽-禿-秀-私-秋-科-秒-秘-租-秤-秦-秩-称-移-稀-程-税-稔-稗-稙-稚-稜-稠-種-稱-稲-稷-稻-稼-稽-稿-穀-穂-穆-積-穎-穏-穗-穜-穢-穣-穫-穴-究-空-突-窃-窄-窒-窓-窟-窠-窩-窪-窮-窯-竃-竄-竈-立-站-竜-竝-竟-章-童-竪-竭-端-竴-競-竹-竺-竽-竿-笄-笈-笏-笑-笙-笛-笞-笠-笥-符-第-笹-筅-筆-筇-筈-等-筋-筌-筍-筏-筐-筑-筒-答-策-筝-筥-筧-筬-筮-筯-筰-筵-箆-箇-箋-箏-箒-箔-箕-算-箙-箜-管-箪-箭-箱-箸-節-篁-範-篆-篇-築-篋-篌-篝-篠-篤-篥-篦-篩-篭-篳-篷-簀-簒-簡-簧-簪-簫-簺-簾-簿-籀-籃-籌-籍-籐-籟-籠-籤-籬-米-籾-粂-粉-粋-粒-粕-粗-粘-粛-粟-粥-粧-粮-粳-精-糊-糖-糜-糞-糟-糠-糧-糯-糸-糺-系-糾-紀-約-紅-紋-納-紐-純-紗-紘-紙-級-紛-素-紡-索-紫-紬-累-細-紳-紵-紹-紺-絁-終-絃-組-絅-経-結-絖-絞-絡-絣-給-統-絲-絵-絶-絹-絽-綏-經-継-続-綜-綟-綬-維-綱-網-綴-綸-綺-綽-綾-綿-緊-緋-総-緑-緒-線-締-緥-編-緩-緬-緯-練-緻-縁-縄-縅-縒-縛-縞-縢-縣-縦-縫-縮-縹-總-績-繁-繊-繋-繍-織-繕-繝-繦-繧-繰-繹-繼-纂-纈-纏-纐-纒-纛-缶-罔-罠-罧-罪-置-罰-署-罵-罷-罹-羂-羅-羆-羇-羈-羊-羌-美-群-羨-義-羯-羲-羹-羽-翁-翅-翌-習-翔-翛-翠-翡-翫-翰-翺-翻-翼-耀-老-考-者-耆-而-耐-耕-耗-耨-耳-耶-耽-聊-聖-聘-聚-聞-聟-聡-聨-聯-聰-聲-聴-職-聾-肄-肆-肇-肉-肋-肌-肖-肘-肛-肝-股-肢-肥-肩-肪-肯-肱-育-肴-肺-胃-胆-背-胎-胖-胚-胝-胞-胡-胤-胱-胴-胸-能-脂-脅-脆-脇-脈-脊-脚-脛-脩-脱-脳-腋-腎-腐-腑-腔-腕-腫-腰-腱-腸-腹-腺-腿-膀-膏-膚-膜-膝-膠-膣-膨-膩-膳-膵-膾-膿-臂-臆-臈-臍-臓-臘-臚-臣-臥-臨-自-臭-至-致-臺-臼-舂-舅-與-興-舌-舍-舎-舒-舖-舗-舘-舜-舞-舟-舩-航-般-舳-舶-船-艇-艘-艦-艮-良-色-艶-芋-芒-芙-芝-芥-芦-芬-芭-芯-花-芳-芸-芹-芻-芽-芿-苅-苑-苔-苗-苛-苞-苡-若-苦-苧-苫-英-苴-苻-茂-范-茄-茅-茎-茗-茘-茜-茨-茲-茵-茶-茸-茹-草-荊-荏-荒-荘-荷-荻-荼-莞-莪-莫-莬-莱-莵-莽-菅-菊-菌-菓-菖-菘-菜-菟-菩-菫-華-菱-菴-萄-萊-萌-萍-萎-萠-萩-萬-萱-落-葉-著-葛-葡-董-葦-葩-葬-葭-葱-葵-葺-蒋-蒐-蒔-蒙-蒟-蒡-蒲-蒸-蒻-蒼-蒿-蓄-蓆-蓉-蓋-蓑-蓬-蓮-蓼-蔀-蔑-蔓-蔚-蔡-蔦-蔬-蔭-蔵-蔽-蕃-蕉-蕊-蕎-蕨-蕩-蕪-蕭-蕾-薄-薇-薊-薔-薗-薙-薛-薦-薨-薩-薪-薫-薬-薭-薮-藁-藉-藍-藏-藐-藝-藤-藩-藪-藷-藹-藺-藻-蘂-蘆-蘇-蘊-蘭-虎-虐-虔-虚-虜-虞-號-虫-虹-虻-蚊-蚕-蛇-蛉-蛍-蛎-蛙-蛛-蛟-蛤-蛭-蛮-蛸-蛹-蛾-蜀-蜂-蜃-蜆-蜊-蜘-蜜-蜷-蜻-蝉-蝋-蝕-蝙-蝠-蝦-蝶-蝿-螂-融-螣-螺-蟄-蟇-蟠-蟷-蟹-蟻-蠢-蠣-血-衆-行-衍-衒-術-街-衙-衛-衝-衞-衡-衢-衣-表-衫-衰-衵-衷-衽-衾-衿-袁-袈-袋-袍-袒-袖-袙-袞-袢-被-袰-袱-袴-袷-袿-裁-裂-裃-装-裏-裔-裕-裘-裙-補-裟-裡-裲-裳-裴-裸-裹-製-裾-褂-褄-複-褌-褐-褒-褥-褪-褶-褻-襄-襖-襞-襟-襠-襦-襪-襲-襴-襷-西-要-覆-覇-覈-見-規-視-覗-覚-覧-親-覲-観-覺-觀-角-解-触-言-訂-計-討-訓-託-記-訛-訟-訢-訥-訪-設-許-訳-訴-訶-診-註-証-詐-詔-評-詛-詞-詠-詢-詣-試-詩-詫-詮-詰-話-該-詳-誄-誅-誇-誉-誌-認-誓-誕-誘-語-誠-誡-誣-誤-誥-誦-説-読-誰-課-誼-誾-調-談-請-諌-諍-諏-諒-論-諚-諜-諟-諡-諦-諧-諫-諭-諮-諱-諶-諷-諸-諺-諾-謀-謄-謌-謎-謗-謙-謚-講-謝-謡-謫-謬-謹-證-識-譚-譛-譜-警-譬-譯-議-譲-譴-護-讀-讃-讐-讒-谷-谿-豅-豆-豊-豎-豐-豚-象-豪-豫-豹-貌-貝-貞-負-財-貢-貧-貨-販-貪-貫-責-貯-貰-貴-買-貸-費-貼-貿-賀-賁-賂-賃-賄-資-賈-賊-賎-賑-賓-賛-賜-賞-賠-賢-賣-賤-賦-質-賭-購-賽-贄-贅-贈-贋-贔-贖-赤-赦-走-赴-起-超-越-趙-趣-足-趺-趾-跋-跏-距-跡-跨-跪-路-跳-践-踊-踏-踐-踞-踪-踵-蹄-蹉-蹊-蹟-蹲-蹴-躅-躇-躊-躍-躑-躙-躪-身-躬-躯-躰-車-軋-軌-軍-軒-軟-転-軸-軻-軽-軾-較-載-輌-輔-輜-輝-輦-輩-輪-輯-輸-輿-轄-轍-轟-轢-辛-辞-辟-辥-辦-辨-辰-辱-農-辺-辻-込-迂-迅-迎-近-返-迢-迦-迪-迫-迭-述-迷-迹-追-退-送-逃-逅-逆-逍-透-逐-逓-途-逕-逗-這-通-逝-逞-速-造-逢-連-逮-週-進-逸-逼-遁-遂-遅-遇-遊-運-遍-過-遐-道-達-違-遙-遜-遠-遡-遣-遥-適-遭-遮-遯-遵-遷-選-遺-遼-避-邀-邁-邂-邃-還-邇-邉-邊-邑-那-邦-邨-邪-邯-邵-邸-郁-郊-郎-郡-郢-部-郭-郴-郵-郷-都-鄂-鄙-鄭-鄰-鄲-酉-酋-酌-配-酎-酒-酔-酢-酥-酪-酬-酵-酷-酸-醍-醐-醒-醗-醜-醤-醪-醵-醸-采-釈-釉-釋-里-重-野-量-釐-金-釘-釜-針-釣-釧-釿-鈍-鈎-鈐-鈔-鈞-鈦-鈴-鈷-鈸-鈿-鉄-鉇-鉉-鉋-鉛-鉢-鉤-鉦-鉱-鉾-銀-銃-銅-銈-銑-銕-銘-銚-銜-銭-鋏-鋒-鋤-鋭-鋲-鋳-鋸-鋺-鋼-錆-錍-錐-錘-錠-錣-錦-錫-錬-錯-録-錵-鍋-鍍-鍑-鍔-鍛-鍬-鍮-鍵-鍼-鍾-鎌-鎖-鎗-鎚-鎧-鎬-鎮-鎰-鎹-鏃-鏑-鏡-鐃-鐇-鐐-鐔-鐘-鐙-鐚-鐡-鐵-鐸-鑁-鑊-鑑-鑒-鑚-鑠-鑢-鑰-鑵-鑷-鑼-鑽-鑿-長-門-閃-閇-閉-開-閏-閑-間-閔-閘-関-閣-閤-閥-閦-閨-閬-閲-閻-閼-閾-闇-闍-闔-闕-闘-關-闡-闢-闥-阜-阪-阮-阯-防-阻-阿-陀-陂-附-陌-降-限-陛-陞-院-陣-除-陥-陪-陬-陰-陳-陵-陶-陸-険-陽-隅-隆-隈-隊-隋-階-随-隔-際-障-隠-隣-隧-隷-隻-隼-雀-雁-雄-雅-集-雇-雉-雊-雋-雌-雍-雑-雖-雙-雛-離-難-雨-雪-雫-雰-雲-零-雷-雹-電-需-震-霊-霍-霖-霜-霞-霧-霰-露-靈-青-靖-静-靜-非-面-革-靫-靭-靱-靴-靺-鞁-鞄-鞆-鞋-鞍-鞏-鞘-鞠-鞨-鞭-韋-韓-韜-韮-音-韶-韻-響-頁-頂-頃-項-順-須-頌-預-頑-頒-頓-領-頚-頬-頭-頴-頸-頻-頼-顆-題-額-顎-顔-顕-顗-願-顛-類-顧-顯-風-飛-食-飢-飩-飫-飯-飲-飴-飼-飽-飾-餃-餅-餉-養-餌-餐-餓-餘-餝-餡-館-饂-饅-饉-饋-饌-饒-饗-首-馗-香-馨-馬-馳-馴-駄-駅-駆-駈-駐-駒-駕-駝-駿-騁-騎-騏-騒-験-騙-騨-騰-驕-驚-驛-驢-骨-骸-髄-體-高-髙-髢-髪-髭-髮-髷-髻-鬘-鬚-鬢-鬨-鬯-鬱-鬼-魁-魂-魄-魅-魏-魔-魚-魯-鮎-鮑-鮒-鮪-鮫-鮭-鮮-鯉-鯔-鯖-鯛-鯨-鯰-鯱-鰐-鰒-鰭-鰯-鰰-鰹-鰻-鱈-鱒-鱗-鱧-鳥-鳩-鳰-鳳-鳴-鳶-鴈-鴉-鴎-鴛-鴟-鴦-鴨-鴫-鴻-鵄-鵜-鵞-鵡-鵬-鵲-鵺-鶉-鶏-鶯-鶴-鷄-鷙-鷲-鷹-鷺-鸚-鸞-鹸-鹽-鹿-麁-麒-麓-麗-麝-麞-麟-麦-麩-麹-麺-麻-麾-麿-黄-黌-黍-黒-黙-黛-黠-鼈-鼉-鼎-鼓-鼠-鼻-齊-齋-齟-齢-齬-龍-龕-龗-!-#-%-&-(-)-+-,---.-/-0-1-2-3-4-5-6-7-8-9-:-;-=-?-@-A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-R-S-T-U-V-W-X-Z-a-c-d-e-f-h-i-j-k-l-m-n-o-p-r-s-t-u-y-z-~-・-diff --git a/python/openvino_infer/rec_dict/korean_dict.txt b/python/openvino_infer/rec_dict/korean_dict.txtdeleted file mode 100644index a13899f..0000000--- a/python/openvino_infer/rec_dict/korean_dict.txt+++ /dev/null@@ -1,3688 +0,0 @@-!-"-#-$-%-&-'-*-+---/-0-1-2-3-4-5-6-7-8-9-:-;-<-=->-?-A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z-[-\-]-^-_-`-a-b-c-d-e-f-g-h-i-j-k-l-m-n-o-p-q-r-s-t-u-v-w-x-y-z-{-|-}-~-©-°-²-½-Á-Ä-Å-Ç-É-Í-Î-Ó-Ö-×-Ü-ß-à-á-â-ã-ä-å-æ-ç-è-é-ê-ë-ì-í-î-ï-ð-ñ-ò-ó-ô-õ-ö-ø-ú-û-ü-ý-ā-ă-ą-ć-Č-č-đ-ē-ė-ę-ě-ğ-ī-İ-ı-Ł-ł-ń-ň-ō-ř-Ş-ş-Š-š-ţ-ū-ź-ż-Ž-ž-Ș-ș-Α-Δ-α-λ-φ-Г-О-а-в-л-о-р-с-т-я--’-“-”-→-∇-∼-「-」-ア-カ-グ-ニ-ラ-ン-ㄱ-ㄴ-ㄷ-ㄸ-ㄹ-ㅂ-ㅅ-ㅆ-ㅇ-ㅈ-ㅊ-ㅋ-ㅌ-ㅎ-ㅓ-ㅜ-ㅣ-一-丁-七-三-上-下-不-丑-世-丘-丞-中-丸-丹-主-乃-久-之-乎-乘-九-也-乳-乾-事-二-云-互-五-井-亞-亡-交-亥-亨-享-京-亭-人-仁-今-他-仙-代-令-以-仰-仲-件-任-企-伊-伍-伎-伏-伐-休-伯-伴-伸-佃-佈-位-低-住-佐-何-佛-作-使-來-供-依-侯-侵-侶-便-俗-保-俠-信-修-俱-俳-倉-個-倍-倒-候-借-値-倫-倭-假-偈-偉-偏-停-偶-傅-傑-傳-傷-傾-像-僞-僥-僧-價-儀-儉-儒-優-儼-兀-允-元-兆-先-光-克-兒-入-內-全-八-公-六-共-兵-其-具-典-兼-再-冠-冥-冶-准-凞-凡-凱-出-函-刀-分-刊-刑-列-初-判-別-利-到-制-券-刺-刻-則-前-剛-副-創-劃-劑-力-功-加-劣-助-劫-勇-動-務-勝-勢-勳-勸-匈-化-北-匠-區-十-千-午-半-卍-卑-卒-卓-南-博-卜-占-卦-印-危-卵-卷-卽-卿-厄-原-厦-去-參-又-叉-友-反-叔-受-口-古-句-可-台-史-右-司-各-合-吉-同-名-后-吏-吐-君-吠-吳-呂-告-周-味-呵-命-和-咳-咸-咽-哀-品-哨-哮-哲-唐-唯-唱-商-問-啼-善-喆-喉-喜-喩-喪-嘗-器-嚴-囊-四-回-因-困-固-圈-國-圍-園-圓-圖-團-土-在-地-均-坊-坐-坑-坵-型-垢-城-域-埴-執-培-基-堂-堅-堆-堤-堯-報-場-塔-塚-塞-塵-境-墜-墟-墨-墳-墾-壁-壇-壓-壤-士-壬-壯-壺-壽-夏-夕-外-多-夜-夢-大-天-太-夫-央-失-夷-奄-奇-奉-奎-奏-契-奔-奮-女-奴-好-如-妄-妊-妖-妙-始-姑-姓-姚-姜-威-婆-婚-婦-媒-媚-子-孔-字-存-孝-孟-季-孤-孫-學-孺-宇-守-安-宋-宗-官-宙-定-客-宣-室-宮-害-家-容-寂-寃-寄-寅-密-寇-富-寒-寓-實-審-寫-寬-寶-寸-寺-封-將-專-尊-對-小-少-尙-尹-尼-尿-局-居-屈-屋-屍-屎-屛-層-屬-山-岐-岡-岩-岳-岸-峙-峰-島-峻-峽-崇-崔-崖-崩-嶋-巖-川-州-巢-工-左-巧-巨-巫-差-己-巷-市-布-帝-師-帶-常-帽-幕-干-平-年-幹-幻-幼-幽-庇-序-店-府-度-座-庫-庭-康-廟-廣-廳-延-廷-建-廻-弁-式-弑-弓-引-弘-弟-弱-張-强-弼-彌-彛-形-彬-影-役-彼-彿-往-征-待-律-後-徐-徑-得-從-循-微-德-徹-心-必-忌-忍-志-忠-思-怡-急-性-恐-恒-恨-恩-悅-悖-患-悲-情-惑-惟-惠-惡-想-惺-愁-意-愚-愛-感-愼-慈-態-慕-慣-慧-慾-憂-憤-憺-應-懸-戎-成-我-戟-戮-戰-戴-戶-房-所-手-才-打-批-承-技-抄-把-抗-抱-抽-拇-拓-拘-拙-拜-拾-持-指-捌-捨-捿-授-掌-排-接-推-提-揚-揭-援-損-搗-摩-播-操-擒-擔-擘-據-擧-攘-攝-攬-支-改-攻-放-政-故-敍-敎-救-敗-散-敬-整-數-文-斗-料-斛-斜-斧-斯-新-斷-方-於-施-旋-族-旗-日-旨-早-旱-昌-明-易-昔-星-春-昧-昭-是-時-晉-晋-晩-普-景-晴-晶-智-暈-暑-暗-暘-曉-曜-曠-曦-曰-曲-書-曹-曼-曾-最-會-月-有-朋-服-望-朝-期-木-未-末-本-朱-朴-李-材-村-杖-杜-杞-杭-杯-東-松-板-林-果-枝-枯-枰-枾-柏-柑-柱-栗-校-栢-核-根-格-桀-桂-案-桎-桑-桓-桔-梁-梏-梓-梗-條-梨-梵-棗-棟-森-植-椒-楊-楓-楚-業-楮-極-榮-槃-槍-樂-樓-樗-樣-樸-樹-樺-樽-橄-橋-橘-機-橡-檀-檎-權-欌-欖-次-欲-歌-歐-止-正-此-步-武-歲-歸-死-殖-段-殷-殺-殿-毅-母-毒-比-毛-氏-民-氣-水-永-求-汎-汗-江-池-沅-沒-沖-沙-沛-河-油-治-沼-沿-泉-泊-法-泗-泡-波-注-泰-洋-洙-洛-洞-津-洲-活-派-流-浅-浦-浮-浴-海-涅-涇-消-涌-液-淑-淡-淨-淫-深-淳-淵-淸-渠-渡-游-渾-湖-湯-源-溪-溫-溶-滄-滅-滋-滯-滿-漁-漆-漢-漫-漸-潑-潤-潭-澄-澎-澤-澳-澹-濁-濕-濟-濤-濯-瀋-瀝-灣-火-灰-灸-災-炎-炭-点-烈-烏-烙-焚-無-焦-然-煌-煎-照-煬-煮-熟-熱-燁-燈-燔-燕-燥-燧-燮-爲-爵-父-片-版-牌-牛-牝-牟-牡-物-特-犧-犬-狀-狗-猥-猩-猪-獨-獵-獸-獻-玄-玉-王-玲-珍-珠-珪-班-現-球-理-琴-瑞-瑟-瑪-璃-璋-璽-瓜-瓦-甑-甘-生-産-用-甫-田-由-甲-申-男-界-畏-留-畜-畢-略-番-異-畵-當-畸-疏-疑-疫-疹-疼-病-症-痔-痛-痺-瘀-瘍-瘡-療-癌-癖-登-發-白-百-的-皆-皇-皮-盂-盆-益-盛-盜-盟-盡-盤-盧-目-直-相-省-看-眞-眼-睡-督-瞋-矢-矣-知-短-石-破-碍-碑-磁-磨-磬-示-社-祇-祖-祝-神-祥-祭-祺-禁-禅-禍-福-禦-禪-禮-禹-禽-禾-秀-私-秉-秋-科-秘-秤-秦-秩-移-稀-稗-種-稱-稷-稼-稽-穀-穆-積-空-窮-竅-立-章-童-竭-端-竹-笑-符-第-筆-等-筍-答-策-箋-箕-管-箱-節-篇-簡-米-粉-粘-粥-精-糖-糞-系-紀-紂-約-紅-紋-純-紙-級-素-索-紫-紬-累-細-紳-終-組-結-絡-統-絲-絶-絹-經-綠-維-綱-網-綸-綽-緖-線-緣-緯-縣-縱-總-織-繡-繩-繪-繭-纂-續-罕-置-罰-羅-羊-美-群-義-羽-翁-習-翟-老-考-者-而-耐-耕-耳-聃-聖-聞-聰-聲-職-肇-肉-肖-肝-股-肥-育-肺-胃-胎-胚-胞-胡-胥-能-脂-脈-脚-脛-脣-脩-脫-脯-脾-腋-腎-腫-腸-腹-膜-膠-膨-膽-臆-臟-臣-臥-臨-自-至-致-臺-臼-臾-與-興-舊-舌-舍-舒-舜-舟-般-船-艦-良-色-芋-花-芳-芽-苑-苔-苕-苛-苞-若-苦-英-茂-茵-茶-茹-荀-荇-草-荒-荷-莊-莫-菊-菌-菜-菩-菫-華-菴-菽-萊-萍-萬-落-葉-著-葛-董-葬-蒙-蒜-蒲-蒸-蒿-蓮-蔓-蔘-蔡-蔬-蕃-蕉-蕓-薄-薑-薛-薩-薪-薺-藏-藝-藤-藥-藩-藻-蘆-蘇-蘊-蘚-蘭-虎-處-虛-虞-虹-蜀-蜂-蜜-蝕-蝶-融-蟬-蟲-蠶-蠻-血-衆-行-術-衛-衡-衣-表-袁-裔-裕-裙-補-製-複-襄-西-要-見-視-親-覺-觀-角-解-言-訂-訊-訓-託-記-訣-設-診-註-評-詩-話-詵-誅-誌-認-誕-語-誠-誤-誥-誦-說-調-談-諍-論-諡-諫-諭-諸-謙-講-謝-謠-證-識-譚-譜-譯-議-護-讀-變-谷-豆-豊-豚-象-豪-豫-貝-貞-財-貧-貨-貪-貫-貴-貸-費-資-賊-賓-賞-賢-賣-賦-質-贍-赤-赫-走-起-超-越-趙-趣-趨-足-趾-跋-跡-路-踏-蹟-身-躬-車-軍-軒-軟-載-輓-輕-輪-輯-輸-輻-輿-轅-轉-辨-辭-辯-辰-農-近-迦-述-追-逆-透-逐-通-逝-造-逢-連-進-逵-遂-遊-運-遍-過-道-達-遠-遡-適-遷-選-遺-遽-還-邊-邑-那-邪-郞-郡-部-都-鄒-鄕-鄭-鄲-配-酒-酸-醉-醫-醯-釋-里-重-野-量-釐-金-針-鈍-鈴-鉞-銀-銅-銘-鋼-錄-錢-錦-鎭-鏡-鐘-鐵-鑑-鑛-長-門-閃-開-間-閔-閣-閥-閭-閻-闕-關-阪-防-阿-陀-降-限-陝-院-陰-陳-陵-陶-陸-陽-隆-隊-隋-階-際-障-隣-隨-隱-隷-雀-雄-雅-集-雇-雌-雖-雙-雜-離-難-雨-雪-雲-電-霜-露-靈-靑-靖-靜-非-面-革-靴-鞏-韓-音-韶-韻-順-須-頊-頌-領-頭-顔-願-顚-類-顯-風-飛-食-飢-飮-飯-飾-養-餓-餘-首-香-馨-馬-駒-騫-騷-驕-骨-骸-髓-體-高-髥-髮-鬪-鬱-鬼-魏-魔-魚-魯-鮮-鰍-鰐-鳥-鳧-鳳-鴨-鵲-鶴-鷄-鷹-鹽-鹿-麗-麥-麻-黃-黑-默-點-黨-鼎-齊-齋-齒-龍-龜-가-각-간-갇-갈-갉-감-갑-값-갓-갔-강-갖-갗-같-갚-갛-개-객-갠-갤-갬-갭-갯-갰-갱-갸-걀-걔-걘-거-걱-건-걷-걸-검-겁-것-겄-겅-겆-겉-겊-겋-게-겐-겔-겟-겠-겡-겨-격-겪-견-결-겸-겹-겻-겼-경-곁-계-곕-곗-고-곡-곤-곧-골-곪-곬-곯-곰-곱-곳-공-곶-과-곽-관-괄-괌-광-괘-괜-괭-괴-괸-굉-교-구-국-군-굳-굴-굵-굶-굼-굽-굿-궁-궂-궈-권-궐-궜-궝-궤-귀-귄-귈-귓-규-균-귤-그-극-근-글-긁-금-급-긋-긍-기-긴-길-김-깁-깃-깅-깊-까-깍-깎-깐-깔-깜-깝-깟-깡-깥-깨-깬-깰-깻-깼-깽-꺄-꺼-꺽-꺾-껀-껄-껌-껍-껏-껐-껑-께-껴-꼈-꼍-꼐-꼬-꼭-꼴-꼼-꼽-꼿-꽁-꽂-꽃-꽉-꽝-꽤-꽥-꾀-꾜-꾸-꾹-꾼-꿀-꿇-꿈-꿉-꿋-꿍-꿎-꿔-꿨-꿩-꿰-꿴-뀄-뀌-뀐-뀔-뀜-뀝-끄-끈-끊-끌-끓-끔-끕-끗-끙-끝-끼-끽-낀-낄-낌-낍-낏-낑-나-낙-낚-난-낟-날-낡-남-납-낫-났-낭-낮-낯-낱-낳-내-낵-낸-낼-냄-냅-냇-냈-냉-냐-냔-냘-냥-너-넉-넋-넌-널-넓-넘-넙-넛-넜-넝-넣-네-넥-넨-넬-넴-넵-넷-넸-넹-녀-녁-년-념-녔-녕-녘-녜-노-녹-논-놀-놈-놋-농-높-놓-놔-놨-뇌-뇨-뇩-뇽-누-눅-눈-눌-눔-눕-눗-눠-눴-뉘-뉜-뉩-뉴-늄-늅-늉-느-늑-는-늘-늙-늠-늡-능-늦-늪-늬-니-닉-닌-닐-님-닙-닛-닝-닢-다-닥-닦-단-닫-달-닭-닮-닯-닳-담-답-닷-당-닻-닿-대-댁-댄-댈-댐-댑-댓-댔-댕-댜-더-덕-덖-던-덜-덟-덤-덥-덧-덩-덫-덮-데-덱-덴-델-뎀-뎃-뎅-뎌-뎠-뎨-도-독-돈-돋-돌-돔-돕-돗-동-돛-돝-돼-됐-되-된-될-됨-됩-됴-두-둑-둔-둘-둠-둡-둣-둥-둬-뒀-뒤-뒬-뒷-뒹-듀-듈-듐-드-득-든-듣-들-듦-듬-듭-듯-등-듸-디-딕-딘-딛-딜-딤-딥-딧-딨-딩-딪-따-딱-딴-딸-땀-땄-땅-때-땐-땔-땜-땝-땠-땡-떠-떡-떤-떨-떫-떰-떱-떳-떴-떵-떻-떼-떽-뗀-뗄-뗍-뗏-뗐-뗑-또-똑-똘-똥-뙤-뚜-뚝-뚤-뚫-뚱-뛰-뛴-뛸-뜀-뜁-뜨-뜩-뜬-뜯-뜰-뜸-뜻-띄-띈-띌-띔-띕-띠-띤-띨-띱-띵-라-락-란-랄-람-랍-랏-랐-랑-랒-랗-래-랙-랜-랠-램-랩-랫-랬-랭-랴-략-량-러-럭-런-럴-럼-럽-럿-렀-렁-렇-레-렉-렌-렐-렘-렙-렛-렝-려-력-련-렬-렴-렵-렷-렸-령-례-로-록-론-롤-롬-롭-롯-롱-롸-롹-뢰-뢴-뢸-룃-료-룐-룡-루-룩-룬-룰-룸-룹-룻-룽-뤄-뤘-뤼-류-륙-륜-률-륨-륭-르-륵-른-를-름-릅-릇-릉-릎-리-릭-린-릴-림-립-릿-링-마-막-만-많-맏-말-맑-맘-맙-맛-망-맞-맡-맣-매-맥-맨-맬-맴-맵-맷-맸-맹-맺-먀-먁-머-먹-먼-멀-멈-멋-멍-멎-메-멕-멘-멜-멤-멥-멧-멩-며-멱-면-멸-몄-명-몇-모-목-몫-몬-몰-몸-몹-못-몽-뫼-묘-무-묵-묶-문-묻-물-묽-뭄-뭅-뭇-뭉-뭍-뭏-뭐-뭔-뭘-뭡-뭣-뮈-뮌-뮐-뮤-뮬-므-믈-믐-미-믹-민-믿-밀-밈-밉-밋-밌-밍-및-밑-바-박-밖-반-받-발-밝-밟-밤-밥-밧-방-밭-배-백-밴-밸-뱀-뱁-뱃-뱄-뱅-뱉-뱍-뱐-버-벅-번-벌-범-법-벗-벙-벚-베-벡-벤-벨-벰-벱-벳-벵-벼-벽-변-별-볍-볏-볐-병-볕-보-복-볶-본-볼-봄-봅-봇-봉-봐-봤-뵈-뵐-뵙-부-북-분-붇-불-붉-붐-붓-붕-붙-뷔-뷰-뷴-뷸-브-븐-블-비-빅-빈-빌-빔-빕-빗-빙-빚-빛-빠-빡-빤-빨-빳-빴-빵-빻-빼-빽-뺀-뺄-뺌-뺏-뺐-뺑-뺨-뻐-뻑-뻔-뻗-뻘-뻣-뻤-뻥-뻬-뼈-뼉-뼘-뽀-뽈-뽐-뽑-뽕-뾰-뿌-뿍-뿐-뿔-뿜-쁘-쁜-쁠-쁨-삐-삔-삘-사-삭-삯-산-살-삵-삶-삼-삽-삿-샀-상-샅-새-색-샌-샐-샘-샙-샛-샜-생-샤-샨-샬-샴-샵-샷-샹-서-석-섞-선-섣-설-섬-섭-섯-섰-성-섶-세-섹-센-셀-셈-셉-셋-셌-셍-셔-션-셜-셨-셰-셴-셸-소-속-손-솔-솜-솝-솟-송-솥-쇄-쇠-쇤-쇳-쇼-숀-숄-숍-수-숙-순-숟-술-숨-숩-숫-숭-숯-숱-숲-숴-쉐-쉘-쉬-쉭-쉰-쉴-쉼-쉽-슈-슐-슘-슛-슝-스-슥-슨-슬-슭-슴-습-슷-승-시-식-신-싣-실-싫-심-십-싯-싱-싶-싸-싹-싼-쌀-쌈-쌉-쌌-쌍-쌓-쌔-쌘-쌩-써-썩-썬-썰-썸-썹-썼-썽-쎄-쎈-쏘-쏙-쏜-쏟-쏠-쏭-쏴-쐈-쐐-쐬-쑤-쑥-쑨-쒀-쒔-쓰-쓱-쓴-쓸-씀-씁-씌-씨-씩-씬-씰-씸-씹-씻-씽-아-악-안-앉-않-알-앎-앓-암-압-앗-았-앙-앞-애-액-앤-앨-앰-앱-앳-앴-앵-야-약-얀-얄-얇-얌-얍-얏-양-얕-얗-얘-얜-어-억-언-얹-얻-얼-얽-엄-업-없-엇-었-엉-엊-엌-엎-에-엑-엔-엘-엠-엡-엣-엥-여-역-엮-연-열-엷-염-엽-엾-엿-였-영-옅-옆-옇-예-옌-옐-옙-옛-오-옥-온-올-옭-옮-옳-옴-옵-옷-옹-옻-와-왁-완-왈-왑-왓-왔-왕-왜-왠-왱-외-왼-요-욕-욘-욜-욤-용-우-욱-운-울-움-웁-웃-웅-워-웍-원-월-웜-웠-웡-웨-웬-웰-웸-웹-위-윅-윈-윌-윔-윗-윙-유-육-윤-율-윱-윳-융-으-윽-은-을-읊-음-읍-응-의-읜-읠-이-익-인-일-읽-잃-임-입-잇-있-잉-잊-잎-자-작-잔-잖-잘-잠-잡-잣-잤-장-잦-재-잭-잰-잴-잽-잿-쟀-쟁-쟈-쟉-쟤-저-적-전-절-젊-점-접-젓-정-젖-제-젝-젠-젤-젬-젭-젯-져-젼-졀-졌-졍-조-족-존-졸-좀-좁-종-좇-좋-좌-좍-좽-죄-죠-죤-주-죽-준-줄-줌-줍-줏-중-줘-줬-쥐-쥔-쥘-쥬-쥴-즈-즉-즌-즐-즘-즙-증-지-직-진-짇-질-짊-짐-집-짓-징-짖-짙-짚-짜-짝-짠-짢-짤-짧-짬-짭-짰-짱-째-짹-짼-쨀-쨉-쨋-쨌-쨍-쩄-쩌-쩍-쩐-쩔-쩜-쩝-쩡-쩨-쪄-쪘-쪼-쪽-쪾-쫀-쫄-쫑-쫓-쫙-쬐-쭈-쭉-쭐-쭙-쯔-쯤-쯧-찌-찍-찐-찔-찜-찝-찡-찢-찧-차-착-찬-찮-찰-참-찹-찻-찼-창-찾-채-책-챈-챌-챔-챕-챗-챘-챙-챠-챤-처-척-천-철-첨-첩-첫-청-체-첵-첸-첼-쳄-쳇-쳉-쳐-쳔-쳤-초-촉-촌-촘-촛-총-촨-촬-최-쵸-추-축-춘-출-춤-춥-춧-충-춰-췄-췌-취-췬-츄-츠-측-츨-츰-층-치-칙-친-칠-칡-침-칩-칫-칭-카-칵-칸-칼-캄-캅-캇-캉-캐-캔-캘-캠-캡-캣-캤-캥-캬-커-컥-컨-컫-컬-컴-컵-컷-컸-컹-케-켄-켈-켐-켓-켕-켜-켠-켤-켭-켯-켰-코-콕-콘-콜-콤-콥-콧-콩-콰-콱-콴-콸-쾅-쾌-쾡-쾨-쾰-쿄-쿠-쿡-쿤-쿨-쿰-쿵-쿼-퀀-퀄-퀘-퀭-퀴-퀵-퀸-퀼-큐-큘-크-큰-클-큼-큽-키-킥-킨-킬-킴-킵-킷-킹-타-탁-탄-탈-탉-탐-탑-탓-탔-탕-태-택-탠-탤-탬-탭-탯-탰-탱-터-턱-턴-털-텀-텁-텃-텄-텅-테-텍-텐-텔-템-텝-텡-텨-톈-토-톡-톤-톨-톰-톱-톳-통-퇴-툇-투-툭-툰-툴-툼-퉁-퉈-퉜-튀-튄-튈-튕-튜-튠-튤-튬-트-특-튼-튿-틀-틈-틉-틋-틔-티-틱-틴-틸-팀-팁-팅-파-팍-팎-판-팔-팜-팝-팟-팠-팡-팥-패-팩-팬-팰-팸-팻-팼-팽-퍼-퍽-펀-펄-펌-펍-펐-펑-페-펙-펜-펠-펨-펩-펫-펭-펴-편-펼-폄-폈-평-폐-포-폭-폰-폴-폼-폿-퐁-표-푭-푸-푹-푼-풀-품-풋-풍-퓨-퓬-퓰-퓸-프-픈-플-픔-픕-피-픽-핀-필-핌-핍-핏-핑-하-학-한-할-핥-함-합-핫-항-해-핵-핸-핼-햄-햅-햇-했-행-햐-향-헀-허-헉-헌-헐-험-헙-헛-헝-헤-헥-헨-헬-헴-헵-헷-헹-혀-혁-현-혈-혐-협-혓-혔-형-혜-호-혹-혼-홀-홈-홉-홋-홍-홑-화-확-환-활-홧-황-홰-홱-횃-회-획-횝-횟-횡-효-후-훅-훈-훌-훑-훔-훗-훤-훨-훼-휄-휑-휘-휙-휜-휠-휩-휭-휴-휼-흄-흉-흐-흑-흔-흘-흙-흠-흡-흣-흥-흩-희-흰-흽-히-힉-힌-힐-힘-힙-힝-車-滑-金-奈-羅-洛-卵-欄-蘭-郎-來-盧-老-魯-綠-鹿-論-雷-樓-縷-凌-樂-不-參-葉-沈-若-兩-凉-梁-呂-女-廬-麗-黎-曆-歷-戀-蓮-連-列-烈-裂-念-獵-靈-領-例-禮-醴-惡-尿-料-遼-龍-暈-柳-流-類-六-陸-倫-律-栗-利-李-梨-理-離-燐-林-臨-立-茶-切-宅-diff --git a/python/openvino_infer/rec_dict/ppocr_keys_v1.txt b/python/openvino_infer/rec_dict/ppocr_keys_v1.txtdeleted file mode 100644index 84b885d..0000000--- a/python/openvino_infer/rec_dict/ppocr_keys_v1.txt+++ /dev/null@@ -1,6623 +0,0 @@-'-疗-绚-诚-娇-溜-题-贿-者-廖-更-纳-加-奉-公-一-就-汴-计-与-路-房-原-妇-2-0-8---7-其->-:-]-,-,-骑-刈-全-消-昏-傈-安-久-钟-嗅-不-影-处-驽-蜿-资-关-椤-地-瘸-专-问-忖-票-嫉-炎-韵-要-月-田-节-陂-鄙-捌-备-拳-伺-眼-网-盎-大-傍-心-东-愉-汇-蹿-科-每-业-里-航-晏-字-平-录-先-1-3-彤-鲶-产-稍-督-腴-有-象-岳-注-绍-在-泺-文-定-核-名-水-过-理-让-偷-率-等-这-发-”-为-含-肥-酉-相-鄱-七-编-猥-锛-日-镀-蒂-掰-倒-辆-栾-栗-综-涩-州-雌-滑-馀-了-机-块-司-宰-甙-兴-矽-抚-保-用-沧-秩-如-收-息-滥-页-疑-埠-!-!-姥-异-橹-钇-向-下-跄-的-椴-沫-国-绥-獠-报-开-民-蜇-何-分-凇-长-讥-藏-掏-施-羽-中-讲-派-嘟-人-提-浼-间-世-而-古-多-倪-唇-饯-控-庚-首-赛-蜓-味-断-制-觉-技-替-艰-溢-潮-夕-钺-外-摘-枋-动-双-单-啮-户-枇-确-锦-曜-杜-或-能-效-霜-盒-然-侗-电-晁-放-步-鹃-新-杖-蜂-吒-濂-瞬-评-总-隍-对-独-合-也-是-府-青-天-诲-墙-组-滴-级-邀-帘-示-已-时-骸-仄-泅-和-遨-店-雇-疫-持-巍-踮-境-只-亨-目-鉴-崤-闲-体-泄-杂-作-般-轰-化-解-迂-诿-蛭-璀-腾-告-版-服-省-师-小-规-程-线-海-办-引-二-桧-牌-砺-洄-裴-修-图-痫-胡-许-犊-事-郛-基-柴-呼-食-研-奶-律-蛋-因-葆-察-戏-褒-戒-再-李-骁-工-貂-油-鹅-章-啄-休-场-给-睡-纷-豆-器-捎-说-敏-学-会-浒-设-诊-格-廓-查-来-霓-室-溆-¢-诡-寥-焕-舜-柒-狐-回-戟-砾-厄-实-翩-尿-五-入-径-惭-喹-股-宇-篝-|-;-美-期-云-九-祺-扮-靠-锝-槌-系-企-酰-阊-暂-蚕-忻-豁-本-羹-执-条-钦-H-獒-限-进-季-楦-于-芘-玖-铋-茯-未-答-粘-括-样-精-欠-矢-甥-帷-嵩-扣-令-仔-风-皈-行-支-部-蓉-刮-站-蜡-救-钊-汗-松-嫌-成-可-.-鹤-院-从-交-政-怕-活-调-球-局-验-髌-第-韫-谗-串-到-圆-年-米-/-*-友-忿-检-区-看-自-敢-刃-个-兹-弄-流-留-同-没-齿-星-聆-轼-湖-什-三-建-蛔-儿-椋-汕-震-颧-鲤-跟-力-情-璺-铨-陪-务-指-族-训-滦-鄣-濮-扒-商-箱-十-召-慷-辗-所-莞-管-护-臭-横-硒-嗓-接-侦-六-露-党-馋-驾-剖-高-侬-妪-幂-猗-绺-骐-央-酐-孝-筝-课-徇-缰-门-男-西-项-句-谙-瞒-秃-篇-教-碲-罚-声-呐-景-前-富-嘴-鳌-稀-免-朋-啬-睐-去-赈-鱼-住-肩-愕-速-旁-波-厅-健-茼-厥-鲟-谅-投-攸-炔-数-方-击-呋-谈-绩-别-愫-僚-躬-鹧-胪-炳-招-喇-膨-泵-蹦-毛-结-5-4-谱-识-陕-粽-婚-拟-构-且-搜-任-潘-比-郢-妨-醪-陀-桔-碘-扎-选-哈-骷-楷-亿-明-缆-脯-监-睫-逻-婵-共-赴-淝-凡-惦-及-达-揖-谩-澹-减-焰-蛹-番-祁-柏-员-禄-怡-峤-龙-白-叽-生-闯-起-细-装-谕-竟-聚-钙-上-导-渊-按-艾-辘-挡-耒-盹-饪-臀-记-邮-蕙-受-各-医-搂-普-滇-朗-茸-带-翻-酚-(-光-堤-墟-蔷-万-幻-〓-瑙-辈-昧-盏-亘-蛀-吉-铰-请-子-假-闻-税-井-诩-哨-嫂-好-面-琐-校-馊-鬣-缂-营-访-炖-占-农-缀-否-经-钚-棵-趟-张-亟-吏-茶-谨-捻-论-迸-堂-玉-信-吧-瞠-乡-姬-寺-咬-溏-苄-皿-意-赉-宝-尔-钰-艺-特-唳-踉-都-荣-倚-登-荐-丧-奇-涵-批-炭-近-符-傩-感-道-着-菊-虹-仲-众-懈-濯-颞-眺-南-释-北-缝-标-既-茗-整-撼-迤-贲-挎-耱-拒-某-妍-卫-哇-英-矶-藩-治-他-元-领-膜-遮-穗-蛾-飞-荒-棺-劫-么-市-火-温-拈-棚-洼-转-果-奕-卸-迪-伸-泳-斗-邡-侄-涨-屯-萋-胭-氡-崮-枞-惧-冒-彩-斜-手-豚-随-旭-淑-妞-形-菌-吲-沱-争-驯-歹-挟-兆-柱-传-至-包-内-响-临-红-功-弩-衡-寂-禁-老-棍-耆-渍-织-害-氵-渑-布-载-靥-嗬-虽-苹-咨-娄-库-雉-榜-帜-嘲-套-瑚-亲-簸-欧-边-6-腿-旮-抛-吹-瞳-得-镓-梗-厨-继-漾-愣-憨-士-策-窑-抑-躯-襟-脏-参-贸-言-干-绸-鳄-穷-藜-音-折-详-)-举-悍-甸-癌-黎-谴-死-罩-迁-寒-驷-袖-媒-蒋-掘-模-纠-恣-观-祖-蛆-碍-位-稿-主-澧-跌-筏-京-锏-帝-贴-证-糠-才-黄-鲸-略-炯-饱-四-出-园-犀-牧-容-汉-杆-浈-汰-瑷-造-虫-瘩-怪-驴-济-应-花-沣-谔-夙-旅-价-矿-以-考-s-u-呦-晒-巡-茅-准-肟-瓴-詹-仟-褂-译-桌-混-宁-怦-郑-抿-些-余-鄂-饴-攒-珑-群-阖-岔-琨-藓-预-环-洮-岌-宀-杲-瀵-最-常-囡-周-踊-女-鼓-袭-喉-简-范-薯-遐-疏-粱-黜-禧-法-箔-斤-遥-汝-奥-直-贞-撑-置-绱-集-她-馅-逗-钧-橱-魉-[-恙-躁-唤-9-旺-膘-待-脾-惫-购-吗-依-盲-度-瘿-蠖-俾-之-镗-拇-鲵-厝-簧-续-款-展-啃-表-剔-品-钻-腭-损-清-锶-统-涌-寸-滨-贪-链-吠-冈-伎-迥-咏-吁-览-防-迅-失-汾-阔-逵-绀-蔑-列-川-凭-努-熨-揪-利-俱-绉-抢-鸨-我-即-责-膦-易-毓-鹊-刹-玷-岿-空-嘞-绊-排-术-估-锷-违-们-苟-铜-播-肘-件-烫-审-鲂-广-像-铌-惰-铟-巳-胍-鲍-康-憧-色-恢-想-拷-尤-疳-知-S-Y-F-D-A-峄-裕-帮-握-搔-氐-氘-难-墒-沮-雨-叁-缥-悴-藐-湫-娟-苑-稠-颛-簇-后-阕-闭-蕤-缚-怎-佞-码-嘤-蔡-痊-舱-螯-帕-赫-昵-升-烬-岫-、-疵-蜻-髁-蕨-隶-烛-械-丑-盂-梁-强-鲛-由-拘-揉-劭-龟-撤-钩-呕-孛-费-妻-漂-求-阑-崖-秤-甘-通-深-补-赃-坎-床-啪-承-吼-量-暇-钼-烨-阂-擎-脱-逮-称-P-神-属-矗-华-届-狍-葑-汹-育-患-窒-蛰-佼-静-槎-运-鳗-庆-逝-曼-疱-克-代-官-此-麸-耧-蚌-晟-例-础-榛-副-测-唰-缢-迹-灬-霁-身-岁-赭-扛-又-菡-乜-雾-板-读-陷-徉-贯-郁-虑-变-钓-菜-圾-现-琢-式-乐-维-渔-浜-左-吾-脑-钡-警-T-啵-拴-偌-漱-湿-硕-止-骼-魄-积-燥-联-踢-玛-则-窿-见-振-畿-送-班-钽-您-赵-刨-印-讨-踝-籍-谡-舌-崧-汽-蔽-沪-酥-绒-怖-财-帖-肱-私-莎-勋-羔-霸-励-哼-帐-将-帅-渠-纪-婴-娩-岭-厘-滕-吻-伤-坝-冠-戊-隆-瘁-介-涧-物-黍-并-姗-奢-蹑-掣-垸-锴-命-箍-捉-病-辖-琰-眭-迩-艘-绌-繁-寅-若-毋-思-诉-类-诈-燮-轲-酮-狂-重-反-职-筱-县-委-磕-绣-奖-晋-濉-志-徽-肠-呈-獐-坻-口-片-碰-几-村-柿-劳-料-获-亩-惕-晕-厌-号-罢-池-正-鏖-煨-家-棕-复-尝-懋-蜥-锅-岛-扰-队-坠-瘾-钬-@-卧-疣-镇-譬-冰-彷-频-黯-据-垄-采-八-缪-瘫-型-熹-砰-楠-襁-箐-但-嘶-绳-啤-拍-盥-穆-傲-洗-盯-塘-怔-筛-丿-台-恒-喂-葛-永-¥-烟-酒-桦-书-砂-蚝-缉-态-瀚-袄-圳-轻-蛛-超-榧-遛-姒-奘-铮-右-荽-望-偻-卡-丶-氰-附-做-革-索-戚-坨-桷-唁-垅-榻-岐-偎-坛-莨-山-殊-微-骇-陈-爨-推-嗝-驹-澡-藁-呤-卤-嘻-糅-逛-侵-郓-酌-德-摇-※-鬃-被-慨-殡-羸-昌-泡-戛-鞋-河-宪-沿-玲-鲨-翅-哽-源-铅-语-照-邯-址-荃-佬-顺-鸳-町-霭-睾-瓢-夸-椁-晓-酿-痈-咔-侏-券-噎-湍-签-嚷-离-午-尚-社-锤-背-孟-使-浪-缦-潍-鞅-军-姹-驶-笑-鳟-鲁-》-孽-钜-绿-洱-礴-焯-椰-颖-囔-乌-孔-巴-互-性-椽-哞-聘-昨-早-暮-胶-炀-隧-低-彗-昝-铁-呓-氽-藉-喔-癖-瑗-姨-权-胱-韦-堑-蜜-酋-楝-砝-毁-靓-歙-锲-究-屋-喳-骨-辨-碑-武-鸠-宫-辜-烊-适-坡-殃-培-佩-供-走-蜈-迟-翼-况-姣-凛-浔-吃-飘-债-犟-金-促-苛-崇-坂-莳-畔-绂-兵-蠕-斋-根-砍-亢-欢-恬-崔-剁-餐-榫-快-扶-‖-濒-缠-鳜-当-彭-驭-浦-篮-昀-锆-秸-钳-弋-娣-瞑-夷-龛-苫-拱-致-%-嵊-障-隐-弑-初-娓-抉-汩-累-蓖-"-唬-助-苓-昙-押-毙-破-城-郧-逢-嚏-獭-瞻-溱-婿-赊-跨-恼-璧-萃-姻-貉-灵-炉-密-氛-陶-砸-谬-衔-点-琛-沛-枳-层-岱-诺-脍-榈-埂-征-冷-裁-打-蹴-素-瘘-逞-蛐-聊-激-腱-萘-踵-飒-蓟-吆-取-咙-簋-涓-矩-曝-挺-揣-座-你-史-舵-焱-尘-苏-笈-脚-溉-榨-诵-樊-邓-焊-义-庶-儋-蟋-蒲-赦-呷-杞-诠-豪-还-试-颓-茉-太-除-紫-逃-痴-草-充-鳕-珉-祗-墨-渭-烩-蘸-慕-璇-镶-穴-嵘-恶-骂-险-绋-幕-碉-肺-戳-刘-潞-秣-纾-潜-銮-洛-须-罘-销-瘪-汞-兮-屉-r-林-厕-质-探-划-狸-殚-善-煊-烹-〒-锈-逯-宸-辍-泱-柚-袍-远-蹋-嶙-绝-峥-娥-缍-雀-徵-认-镱-谷-=-贩-勉-撩-鄯-斐-洋-非-祚-泾-诒-饿-撬-威-晷-搭-芍-锥-笺-蓦-候-琊-档-礁-沼-卵-荠-忑-朝-凹-瑞-头-仪-弧-孵-畏-铆-突-衲-车-浩-气-茂-悖-厢-枕-酝-戴-湾-邹-飚-攘-锂-写-宵-翁-岷-无-喜-丈-挑-嗟-绛-殉-议-槽-具-醇-淞-笃-郴-阅-饼-底-壕-砚-弈-询-缕-庹-翟-零-筷-暨-舟-闺-甯-撞-麂-茌-蔼-很-珲-捕-棠-角-阉-媛-娲-诽-剿-尉-爵-睬-韩-诰-匣-危-糍-镯-立-浏-阳-少-盆-舔-擘-匪-申-尬-铣-旯-抖-赘-瓯-居-ˇ-哮-游-锭-茏-歌-坏-甚-秒-舞-沙-仗-劲-潺-阿-燧-郭-嗖-霏-忠-材-奂-耐-跺-砀-输-岖-媳-氟-极-摆-灿-今-扔-腻-枝-奎-药-熄-吨-话-q-额-慑-嘌-协-喀-壳-埭-视-著-於-愧-陲-翌-峁-颅-佛-腹-聋-侯-咎-叟-秀-颇-存-较-罪-哄-岗-扫-栏-钾-羌-己-璨-枭-霉-煌-涸-衿-键-镝-益-岢-奏-连-夯-睿-冥-均-糖-狞-蹊-稻-爸-刿-胥-煜-丽-肿-璃-掸-跚-灾-垂-樾-濑-乎-莲-窄-犹-撮-战-馄-软-络-显-鸢-胸-宾-妲-恕-埔-蝌-份-遇-巧-瞟-粒-恰-剥-桡-博-讯-凯-堇-阶-滤-卖-斌-骚-彬-兑-磺-樱-舷-两-娱-福-仃-差-找-桁-÷-净-把-阴-污-戬-雷-碓-蕲-楚-罡-焖-抽-妫-咒-仑-闱-尽-邑-菁-爱-贷-沥-鞑-牡-嗉-崴-骤-塌-嗦-订-拮-滓-捡-锻-次-坪-杩-臃-箬-融-珂-鹗-宗-枚-降-鸬-妯-阄-堰-盐-毅-必-杨-崃-俺-甬-状-莘-货-耸-菱-腼-铸-唏-痤-孚-澳-懒-溅-翘-疙-杷-淼-缙-骰-喊-悉-砻-坷-艇-赁-界-谤-纣-宴-晃-茹-归-饭-梢-铡-街-抄-肼-鬟-苯-颂-撷-戈-炒-咆-茭-瘙-负-仰-客-琉-铢-封-卑-珥-椿-镧-窨-鬲-寿-御-袤-铃-萎-砖-餮-脒-裳-肪-孕-嫣-馗-嵇-恳-氯-江-石-褶-冢-祸-阻-狈-羞-银-靳-透-咳-叼-敷-芷-啥-它-瓤-兰-痘-懊-逑-肌-往-捺-坊-甩-呻-〃-沦-忘-膻-祟-菅-剧-崆-智-坯-臧-霍-墅-攻-眯-倘-拢-骠-铐-庭-岙-瓠-′-缺-泥-迢-捶-?-?-郏-喙-掷-沌-纯-秘-种-听-绘-固-螨-团-香-盗-妒-埚-蓝-拖-旱-荞-铀-血-遏-汲-辰-叩-拽-幅-硬-惶-桀-漠-措-泼-唑-齐-肾-念-酱-虚-屁-耶-旗-砦-闵-婉-馆-拭-绅-韧-忏-窝-醋-葺-顾-辞-倜-堆-辋-逆-玟-贱-疾-董-惘-倌-锕-淘-嘀-莽-俭-笏-绑-鲷-杈-择-蟀-粥-嗯-驰-逾-案-谪-褓-胫-哩-昕-颚-鲢-绠-躺-鹄-崂-儒-俨-丝-尕-泌-啊-萸-彰-幺-吟-骄-苣-弦-脊-瑰-〈-诛-镁-析-闪-剪-侧-哟-框-螃-守-嬗-燕-狭-铈-缮-概-迳-痧-鲲-俯-售-笼-痣-扉-挖-满-咋-援-邱-扇-歪-便-玑-绦-峡-蛇-叨-〖-泽-胃-斓-喋-怂-坟-猪-该-蚬-炕-弥-赞-棣-晔-娠-挲-狡-创-疖-铕-镭-稷-挫-弭-啾-翔-粉-履-苘-哦-楼-秕-铂-土-锣-瘟-挣-栉-习-享-桢-袅-磨-桂-谦-延-坚-蔚-噗-署-谟-猬-钎-恐-嬉-雒-倦-衅-亏-璩-睹-刻-殿-王-算-雕-麻-丘-柯-骆-丸-塍-谚-添-鲈-垓-桎-蚯-芥-予-飕-镦-谌-窗-醚-菀-亮-搪-莺-蒿-羁-足-J-真-轶-悬-衷-靛-翊-掩-哒-炅-掐-冼-妮-l-谐-稚-荆-擒-犯-陵-虏-浓-崽-刍-陌-傻-孜-千-靖-演-矜-钕-煽-杰-酗-渗-伞-栋-俗-泫-戍-罕-沾-疽-灏-煦-芬-磴-叱-阱-榉-湃-蜀-叉-醒-彪-租-郡-篷-屎-良-垢-隗-弱-陨-峪-砷-掴-颁-胎-雯-绵-贬-沐-撵-隘-篙-暖-曹-陡-栓-填-臼-彦-瓶-琪-潼-哪-鸡-摩-啦-俟-锋-域-耻-蔫-疯-纹-撇-毒-绶-痛-酯-忍-爪-赳-歆-嘹-辕-烈-册-朴-钱-吮-毯-癜-娃-谀-邵-厮-炽-璞-邃-丐-追-词-瓒-忆-轧-芫-谯-喷-弟-半-冕-裙-掖-墉-绮-寝-苔-势-顷-褥-切-衮-君-佳-嫒-蚩-霞-佚-洙-逊-镖-暹-唛-&-殒-顶-碗-獗-轭-铺-蛊-废-恹-汨-崩-珍-那-杵-曲-纺-夏-薰-傀-闳-淬-姘-舀-拧-卷-楂-恍-讪-厩-寮-篪-赓-乘-灭-盅-鞣-沟-慎-挂-饺-鼾-杳-树-缨-丛-絮-娌-臻-嗳-篡-侩-述-衰-矛-圈-蚜-匕-筹-匿-濞-晨-叶-骋-郝-挚-蚴-滞-增-侍-描-瓣-吖-嫦-蟒-匾-圣-赌-毡-癞-恺-百-曳-需-篓-肮-庖-帏-卿-驿-遗-蹬-鬓-骡-歉-芎-胳-屐-禽-烦-晌-寄-媾-狄-翡-苒-船-廉-终-痞-殇-々-畦-饶-改-拆-悻-萄-£-瓿-乃-訾-桅-匮-溧-拥-纱-铍-骗-蕃-龋-缬-父-佐-疚-栎-醍-掳-蓄-x-惆-颜-鲆-榆-〔-猎-敌-暴-谥-鲫-贾-罗-玻-缄-扦-芪-癣-落-徒-臾-恿-猩-托-邴-肄-牵-春-陛-耀-刊-拓-蓓-邳-堕-寇-枉-淌-啡-湄-兽-酷-萼-碚-濠-萤-夹-旬-戮-梭-琥-椭-昔-勺-蜊-绐-晚-孺-僵-宣-摄-冽-旨-萌-忙-蚤-眉-噼-蟑-付-契-瓜-悼-颡-壁-曾-窕-颢-澎-仿-俑-浑-嵌-浣-乍-碌-褪-乱-蔟-隙-玩-剐-葫-箫-纲-围-伐-决-伙-漩-瑟-刑-肓-镳-缓-蹭-氨-皓-典-畲-坍-铑-檐-塑-洞-倬-储-胴-淳-戾-吐-灼-惺-妙-毕-珐-缈-虱-盖-羰-鸿-磅-谓-髅-娴-苴-唷-蚣-霹-抨-贤-唠-犬-誓-逍-庠-逼-麓-籼-釉-呜-碧-秧-氩-摔-霄-穸-纨-辟-妈-映-完-牛-缴-嗷-炊-恩-荔-茆-掉-紊-慌-莓-羟-阙-萁-磐-另-蕹-辱-鳐-湮-吡-吩-唐-睦-垠-舒-圜-冗-瞿-溺-芾-囱-匠-僳-汐-菩-饬-漓-黑-霰-浸-濡-窥-毂-蒡-兢-驻-鹉-芮-诙-迫-雳-厂-忐-臆-猴-鸣-蚪-栈-箕-羡-渐-莆-捍-眈-哓-趴-蹼-埕-嚣-骛-宏-淄-斑-噜-严-瑛-垃-椎-诱-压-庾-绞-焘-廿-抡-迄-棘-夫-纬-锹-眨-瞌-侠-脐-竞-瀑-孳-骧-遁-姜-颦-荪-滚-萦-伪-逸-粳-爬-锁-矣-役-趣-洒-颔-诏-逐-奸-甭-惠-攀-蹄-泛-尼-拼-阮-鹰-亚-颈-惑-勒-〉-际-肛-爷-刚-钨-丰-养-冶-鲽-辉-蔻-画-覆-皴-妊-麦-返-醉-皂-擀-〗-酶-凑-粹-悟-诀-硖-港-卜-z-杀-涕-±-舍-铠-抵-弛-段-敝-镐-奠-拂-轴-跛-袱-e-t-沉-菇-俎-薪-峦-秭-蟹-历-盟-菠-寡-液-肢-喻-染-裱-悱-抱-氙-赤-捅-猛-跑-氮-谣-仁-尺-辊-窍-烙-衍-架-擦-倏-璐-瑁-币-楞-胖-夔-趸-邛-惴-饕-虔-蝎-§-哉-贝-宽-辫-炮-扩-饲-籽-魏-菟-锰-伍-猝-末-琳-哚-蛎-邂-呀-姿-鄞-却-歧-仙-恸-椐-森-牒-寤-袒-婆-虢-雅-钉-朵-贼-欲-苞-寰-故-龚-坭-嘘-咫-礼-硷-兀-睢-汶-’-铲-烧-绕-诃-浃-钿-哺-柜-讼-颊-璁-腔-洽-咐-脲-簌-筠-镣-玮-鞠-谁-兼-姆-挥-梯-蝴-谘-漕-刷-躏-宦-弼-b-垌-劈-麟-莉-揭-笙-渎-仕-嗤-仓-配-怏-抬-错-泯-镊-孰-猿-邪-仍-秋-鼬-壹-歇-吵-炼-<-尧-射-柬-廷-胧-霾-凳-隋-肚-浮-梦-祥-株-堵-退-L-鹫-跎-凶-毽-荟-炫-栩-玳-甜-沂-鹿-顽-伯-爹-赔-蛴-徐-匡-欣-狰-缸-雹-蟆-疤-默-沤-啜-痂-衣-禅-w-i-h-辽-葳-黝-钗-停-沽-棒-馨-颌-肉-吴-硫-悯-劾-娈-马-啧-吊-悌-镑-峭-帆-瀣-涉-咸-疸-滋-泣-翦-拙-癸-钥-蜒-+-尾-庄-凝-泉-婢-渴-谊-乞-陆-锉-糊-鸦-淮-I-B-N-晦-弗-乔-庥-葡-尻-席-橡-傣-渣-拿-惩-麋-斛-缃-矮-蛏-岘-鸽-姐-膏-催-奔-镒-喱-蠡-摧-钯-胤-柠-拐-璋-鸥-卢-荡-倾-^-_-珀-逄-萧-塾-掇-贮-笆-聂-圃-冲-嵬-M-滔-笕-值-炙-偶-蜱-搐-梆-汪-蔬-腑-鸯-蹇-敞-绯-仨-祯-谆-梧-糗-鑫-啸-豺-囹-猾-巢-柄-瀛-筑-踌-沭-暗-苁-鱿-蹉-脂-蘖-牢-热-木-吸-溃-宠-序-泞-偿-拜-檩-厚-朐-毗-螳-吞-媚-朽-担-蝗-橘-畴-祈-糟-盱-隼-郜-惜-珠-裨-铵-焙-琚-唯-咚-噪-骊-丫-滢-勤-棉-呸-咣-淀-隔-蕾-窈-饨-挨-煅-短-匙-粕-镜-赣-撕-墩-酬-馁-豌-颐-抗-酣-氓-佑-搁-哭-递-耷-涡-桃-贻-碣-截-瘦-昭-镌-蔓-氚-甲-猕-蕴-蓬-散-拾-纛-狼-猷-铎-埋-旖-矾-讳-囊-糜-迈-粟-蚂-紧-鲳-瘢-栽-稼-羊-锄-斟-睁-桥-瓮-蹙-祉-醺-鼻-昱-剃-跳-篱-跷-蒜-翎-宅-晖-嗑-壑-峻-癫-屏-狠-陋-袜-途-憎-祀-莹-滟-佶-溥-臣-约-盛-峰-磁-慵-婪-拦-莅-朕-鹦-粲-裤-哎-疡-嫖-琵-窟-堪-谛-嘉-儡-鳝-斩-郾-驸-酊-妄-胜-贺-徙-傅-噌-钢-栅-庇-恋-匝-巯-邈-尸-锚-粗-佟-蛟-薹-纵-蚊-郅-绢-锐-苗-俞-篆-淆-膀-鲜-煎-诶-秽-寻-涮-刺-怀-噶-巨-褰-魅-灶-灌-桉-藕-谜-舸-薄-搀-恽-借-牯-痉-渥-愿-亓-耘-杠-柩-锔-蚶-钣-珈-喘-蹒-幽-赐-稗-晤-莱-泔-扯-肯-菪-裆-腩-豉-疆-骜-腐-倭-珏-唔-粮-亡-润-慰-伽-橄-玄-誉-醐-胆-龊-粼-塬-陇-彼-削-嗣-绾-芽-妗-垭-瘴-爽-薏-寨-龈-泠-弹-赢-漪-猫-嘧-涂-恤-圭-茧-烽-屑-痕-巾-赖-荸-凰-腮-畈-亵-蹲-偃-苇-澜-艮-换-骺-烘-苕-梓-颉-肇-哗-悄-氤-涠-葬-屠-鹭-植-竺-佯-诣-鲇-瘀-鲅-邦-移-滁-冯-耕-癔-戌-茬-沁-巩-悠-湘-洪-痹-锟-循-谋-腕-鳃-钠-捞-焉-迎-碱-伫-急-榷-奈-邝-卯-辄-皲-卟-醛-畹-忧-稳-雄-昼-缩-阈-睑-扌-耗-曦-涅-捏-瞧-邕-淖-漉-铝-耦-禹-湛-喽-莼-琅-诸-苎-纂-硅-始-嗨-傥-燃-臂-赅-嘈-呆-贵-屹-壮-肋-亍-蚀-卅-豹-腆-邬-迭-浊-}-童-螂-捐-圩-勐-触-寞-汊-壤-荫-膺-渌-芳-懿-遴-螈-泰-蓼-蛤-茜-舅-枫-朔-膝-眙-避-梅-判-鹜-璜-牍-缅-垫-藻-黔-侥-惚-懂-踩-腰-腈-札-丞-唾-慈-顿-摹-荻-琬-~-斧-沈-滂-胁-胀-幄-莜-Z-匀-鄄-掌-绰-茎-焚-赋-萱-谑-汁-铒-瞎-夺-蜗-野-娆-冀-弯-篁-懵-灞-隽-芡-脘-俐-辩-芯-掺-喏-膈-蝈-觐-悚-踹-蔗-熠-鼠-呵-抓-橼-峨-畜-缔-禾-崭-弃-熊-摒-凸-拗-穹-蒙-抒-祛-劝-闫-扳-阵-醌-踪-喵-侣-搬-仅-荧-赎-蝾-琦-买-婧-瞄-寓-皎-冻-赝-箩-莫-瞰-郊-笫-姝-筒-枪-遣-煸-袋-舆-痱-涛-母-〇-启-践-耙-绲-盘-遂-昊-搞-槿-诬-纰-泓-惨-檬-亻-越-C-o-憩-熵-祷-钒-暧-塔-阗-胰-咄-娶-魔-琶-钞-邻-扬-杉-殴-咽-弓-〆-髻-】-吭-揽-霆-拄-殖-脆-彻-岩-芝-勃-辣-剌-钝-嘎-甄-佘-皖-伦-授-徕-憔-挪-皇-庞-稔-芜-踏-溴-兖-卒-擢-饥-鳞-煲-‰-账-颗-叻-斯-捧-鳍-琮-讹-蛙-纽-谭-酸-兔-莒-睇-伟-觑-羲-嗜-宜-褐-旎-辛-卦-诘-筋-鎏-溪-挛-熔-阜-晰-鳅-丢-奚-灸-呱-献-陉-黛-鸪-甾-萨-疮-拯-洲-疹-辑-叙-恻-谒-允-柔-烂-氏-逅-漆-拎-惋-扈-湟-纭-啕-掬-擞-哥-忽-涤-鸵-靡-郗-瓷-扁-廊-怨-雏-钮-敦-E-懦-憋-汀-拚-啉-腌-岸-f-痼-瞅-尊-咀-眩-飙-忌-仝-迦-熬-毫-胯-篑-茄-腺-凄-舛-碴-锵-诧-羯-後-漏-汤-宓-仞-蚁-壶-谰-皑-铄-棰-罔-辅-晶-苦-牟-闽-\-烃-饮-聿-丙-蛳-朱-煤-涔-鳖-犁-罐-荼-砒-淦-妤-黏-戎-孑-婕-瑾-戢-钵-枣-捋-砥-衩-狙-桠-稣-阎-肃-梏-诫-孪-昶-婊-衫-嗔-侃-塞-蜃-樵-峒-貌-屿-欺-缫-阐-栖-诟-珞-荭-吝-萍-嗽-恂-啻-蜴-磬-峋-俸-豫-谎-徊-镍-韬-魇-晴-U-囟-猜-蛮-坐-囿-伴-亭-肝-佗-蝠-妃-胞-滩-榴-氖-垩-苋-砣-扪-馏-姓-轩-厉-夥-侈-禀-垒-岑-赏-钛-辐-痔-披-纸-碳-“-坞-蠓-挤-荥-沅-悔-铧-帼-蒌-蝇-a-p-y-n-g-哀-浆-瑶-凿-桶-馈-皮-奴-苜-佤-伶-晗-铱-炬-优-弊-氢-恃-甫-攥-端-锌-灰-稹-炝-曙-邋-亥-眶-碾-拉-萝-绔-捷-浍-腋-姑-菖-凌-涞-麽-锢-桨-潢-绎-镰-殆-锑-渝-铬-困-绽-觎-匈-糙-暑-裹-鸟-盔-肽-迷-綦-『-亳-佝-俘-钴-觇-骥-仆-疝-跪-婶-郯-瀹-唉-脖-踞-针-晾-忒-扼-瞩-叛-椒-疟-嗡-邗-肆-跆-玫-忡-捣-咧-唆-艄-蘑-潦-笛-阚-沸-泻-掊-菽-贫-斥-髂-孢-镂-赂-麝-鸾-屡-衬-苷-恪-叠-希-粤-爻-喝-茫-惬-郸-绻-庸-撅-碟-宄-妹-膛-叮-饵-崛-嗲-椅-冤-搅-咕-敛-尹-垦-闷-蝉-霎-勰-败-蓑-泸-肤-鹌-幌-焦-浠-鞍-刁-舰-乙-竿-裔-。-茵-函-伊-兄-丨-娜-匍-謇-莪-宥-似-蝽-翳-酪-翠-粑-薇-祢-骏-赠-叫-Q-噤-噻-竖-芗-莠-潭-俊-羿-耜-O-郫-趁-嗪-囚-蹶-芒-洁-笋-鹑-敲-硝-啶-堡-渲-揩-』-携-宿-遒-颍-扭-棱-割-萜-蔸-葵-琴-捂-饰-衙-耿-掠-募-岂-窖-涟-蔺-瘤-柞-瞪-怜-匹-距-楔-炜-哆-秦-缎-幼-茁-绪-痨-恨-楸-娅-瓦-桩-雪-嬴-伏-榔-妥-铿-拌-眠-雍-缇-‘-卓-搓-哌-觞-噩-屈-哧-髓-咦-巅-娑-侑-淫-膳-祝-勾-姊-莴-胄-疃-薛-蜷-胛-巷-芙-芋-熙-闰-勿-窃-狱-剩-钏-幢-陟-铛-慧-靴-耍-k-浙-浇-飨-惟-绗-祜-澈-啼-咪-磷-摞-诅-郦-抹-跃-壬-吕-肖-琏-颤-尴-剡-抠-凋-赚-泊-津-宕-殷-倔-氲-漫-邺-涎-怠-$-垮-荬-遵-俏-叹-噢-饽-蜘-孙-筵-疼-鞭-羧-牦-箭-潴-c-眸-祭-髯-啖-坳-愁-芩-驮-倡-巽-穰-沃-胚-怒-凤-槛-剂-趵-嫁-v-邢-灯-鄢-桐-睽-檗-锯-槟-婷-嵋-圻-诗-蕈-颠-遭-痢-芸-怯-馥-竭-锗-徜-恭-遍-籁-剑-嘱-苡-龄-僧-桑-潸-弘-澶-楹-悲-讫-愤-腥-悸-谍-椹-呢-桓-葭-攫-阀-翰-躲-敖-柑-郎-笨-橇-呃-魁-燎-脓-葩-磋-垛-玺-狮-沓-砜-蕊-锺-罹-蕉-翱-虐-闾-巫-旦-茱-嬷-枯-鹏-贡-芹-汛-矫-绁-拣-禺-佃-讣-舫-惯-乳-趋-疲-挽-岚-虾-衾-蠹-蹂-飓-氦-铖-孩-稞-瑜-壅-掀-勘-妓-畅-髋-W-庐-牲-蓿-榕-练-垣-唱-邸-菲-昆-婺-穿-绡-麒-蚱-掂-愚-泷-涪-漳-妩-娉-榄-讷-觅-旧-藤-煮-呛-柳-腓-叭-庵-烷-阡-罂-蜕-擂-猖-咿-媲-脉-【-沏-貅-黠-熏-哲-烁-坦-酵-兜-×-潇-撒-剽-珩-圹-乾-摸-樟-帽-嗒-襄-魂-轿-憬-锡-〕-喃-皆-咖-隅-脸-残-泮-袂-鹂-珊-囤-捆-咤-误-徨-闹-淙-芊-淋-怆-囗-拨-梳-渤-R-G-绨-蚓-婀-幡-狩-麾-谢-唢-裸-旌-伉-纶-裂-驳-砼-咛-澄-樨-蹈-宙-澍-倍-貔-操-勇-蟠-摈-砧-虬-够-缁-悦-藿-撸-艹-摁-淹-豇-虎-榭-ˉ-吱-d-°-喧-荀-踱-侮-奋-偕-饷-犍-惮-坑-璎-徘-宛-妆-袈-倩-窦-昂-荏-乖-K-怅-撰-鳙-牙-袁-酞-X-痿-琼-闸-雁-趾-荚-虻-涝-《-杏-韭-偈-烤-绫-鞘-卉-症-遢-蓥-诋-杭-荨-匆-竣-簪-辙-敕-虞-丹-缭-咩-黟-m-淤-瑕-咂-铉-硼-茨-嶂-痒-畸-敬-涿-粪-窘-熟-叔-嫔-盾-忱-裘-憾-梵-赡-珙-咯-娘-庙-溯-胺-葱-痪-摊-荷-卞-乒-髦-寐-铭-坩-胗-枷-爆-溟-嚼-羚-砬-轨-惊-挠-罄-竽-菏-氧-浅-楣-盼-枢-炸-阆-杯-谏-噬-淇-渺-俪-秆-墓-泪-跻-砌-痰-垡-渡-耽-釜-讶-鳎-煞-呗-韶-舶-绷-鹳-缜-旷-铊-皱-龌-檀-霖-奄-槐-艳-蝶-旋-哝-赶-骞-蚧-腊-盈-丁-`-蜚-矸-蝙-睨-嚓-僻-鬼-醴-夜-彝-磊-笔-拔-栀-糕-厦-邰-纫-逭-纤-眦-膊-馍-躇-烯-蘼-冬-诤-暄-骶-哑-瘠-」-臊-丕-愈-咱-螺-擅-跋-搏-硪-谄-笠-淡-嘿-骅-谧-鼎-皋-姚-歼-蠢-驼-耳-胬-挝-涯-狗-蒽-孓-犷-凉-芦-箴-铤-孤-嘛-坤-V-茴-朦-挞-尖-橙-诞-搴-碇-洵-浚-帚-蜍-漯-柘-嚎-讽-芭-荤-咻-祠-秉-跖-埃-吓-糯-眷-馒-惹-娼-鲑-嫩-讴-轮-瞥-靶-褚-乏-缤-宋-帧-删-驱-碎-扑-俩-俄-偏-涣-竹-噱-皙-佰-渚-唧-斡-#-镉-刀-崎-筐-佣-夭-贰-肴-峙-哔-艿-匐-牺-镛-缘-仡-嫡-劣-枸-堀-梨-簿-鸭-蒸-亦-稽-浴-{-衢-束-槲-j-阁-揍-疥-棋-潋-聪-窜-乓-睛-插-冉-阪-苍-搽-「-蟾-螟-幸-仇-樽-撂-慢-跤-幔-俚-淅-覃-觊-溶-妖-帛-侨-曰-妾-泗-·-:-瀘-風-Ë-(-)-∶-紅-紗-瑭-雲-頭-鶏-財-許-•-¥-樂-焗-麗-—-;-滙-東-榮-繪-興-…-門-業-π-楊-國-顧-é-盤-寳-Λ-龍-鳳-島-誌-緣-結-銭-萬-勝-祎-璟-優-歡-臨-時-購-=-★-藍-昇-鐵-觀-勅-農-聲-畫-兿-術-發-劉-記-專-耑-園-書-壴-種-Ο-●-褀-號-銀-匯-敟-锘-葉-橪-廣-進-蒄-鑽-阝-祙-貢-鍋-豊-夬-喆-團-閣-開-燁-賓-館-酡-沔-順-+-硚-劵-饸-陽-車-湓-復-萊-氣-軒-華-堃-迮-纟-戶-馬-學-裡-電-嶽-獨-マ-シ-サ-ジ-燘-袪-環-❤-臺-灣-専-賣-孖-聖-攝-線-▪-α-傢-俬-夢-達-莊-喬-貝-薩-劍-羅-壓-棛-饦-尃-璈-囍-醫-G-I-A-#-N-鷄-髙-嬰-啓-約-隹-潔-賴-藝-~-寶-籣-麺--嶺-√-義-網-峩-長-∧-魚-機-構-②-鳯-偉-L-B-㙟-畵-鴿-'-詩-溝-嚞-屌-藔-佧-玥-蘭-織-1-3-9-0-7-點-砭-鴨-鋪-銘-廳-弍-‧-創-湯-坶-℃-卩-骝-&-烜-荘-當-潤-扞-係-懷-碶-钅-蚨-讠-☆-叢-爲-埗-涫-塗-→-楽-現-鯨-愛-瑪-鈺-忄-悶-藥-飾-樓-視-孬-ㆍ-燚-苪-師-①-丼-锽-│-韓-標-è-兒-閏-匋-張-漢-Ü-髪-會-閑-檔-習-裝-の-峯-菘-輝-И-雞-釣-億-浐-K-O-R-8-H-E-P-T-W-D-S-C-M-F-姌-饹-»-晞-廰-ä-嵯-鷹-負-飲-絲-冚-楗-澤-綫-區-❋-←-質-靑-揚-③-滬-統-産-協-﹑-乸-畐-經-運-際-洺-岽-為-粵-諾-崋-豐-碁-ɔ-V-2-6-齋-誠-訂-´-勑-雙-陳-無-í-泩-媄-夌-刂-i-c-t-o-r-a-嘢-耄-燴-暃-壽-媽-靈-抻-體-唻-É-冮-甹-鎮-錦-ʌ-蜛-蠄-尓-駕-戀-飬-逹-倫-貴-極-Я-Й-寬-磚-嶪-郎-職-|-間-n-d-剎-伈-課-飛-橋-瘊-№-譜-骓-圗-滘-縣-粿-咅-養-濤-彳-®-%-Ⅱ-啰-㴪-見-矞-薬-糁-邨-鲮-顔-罱-З-選-話-贏-氪-俵-競-瑩-繡-枱-β-綉-á-獅-爾-™-麵-戋-淩-徳-個-劇-場-務-簡-寵-h-實-膠-轱-圖-築-嘣-樹-㸃-營-耵-孫-饃-鄺-飯-麯-遠-輸-坫-孃-乚-閃-鏢-㎡-題-廠-關-↑-爺-將-軍-連-篦-覌-參-箸---窠-棽-寕-夀-爰-歐-呙-閥-頡-熱-雎-垟-裟-凬-勁-帑-馕-夆-疌-枼-馮-貨-蒤-樸-彧-旸-靜-龢-暢-㐱-鳥-珺-鏡-灡-爭-堷-廚-Ó-騰-診-┅-蘇-褔-凱-頂-豕-亞-帥-嘬-⊥-仺-桖-複-饣-絡-穂-顏-棟-納-▏-濟-親-設-計-攵-埌-烺-ò-頤-燦-蓮-撻-節-講-濱-濃-娽-洳-朿-燈-鈴-護-膚-铔-過-補-Z-U-5-4-坋-闿-䖝-餘-缐-铞-貿-铪-桼-趙-鍊-[-㐂-垚-菓-揸-捲-鐘-滏-𣇉-爍-輪-燜-鴻-鮮-動-鹞-鷗-丄-慶-鉌-翥-飮-腸-⇋-漁-覺-來-熘-昴-翏-鲱-圧-鄉-萭-頔-爐-嫚-г-貭-類-聯-幛-輕-訓-鑒-夋-锨-芃-珣-䝉-扙-嵐-銷-處-ㄱ-語-誘-苝-歸-儀-燒-楿-內-粢-葒-奧-麥-礻-滿-蠔-穵-瞭-態-鱬-榞-硂-鄭-黃-煙-祐-奓-逺-*-瑄-獲-聞-薦-讀-這-樣-決-問-啟-們-執-説-轉-單-隨-唘-帶-倉-庫-還-贈-尙-皺-■-餅-產-○-∈-報-狀-楓-賠-琯-嗮-禮-`-傳->-≤-嗞-Φ-≥-換-咭-∣-↓-曬-ε-応-寫-″-終-様-純-費-療-聨-凍-壐-郵-ü-黒-∫-製-塊-調-軽-確-撃-級-馴-Ⅲ-涇-繹-數-碼-證-狒-処-劑-<-晧-賀-衆-]-櫥-兩-陰-絶-對-鯉-憶-◎-p-e-Y-蕒-煖-頓-測-試-鼽-僑-碩-妝-帯-≈-鐡-舖-權-喫-倆-ˋ-該-悅-ā-俫-.-f-s-b-m-k-g-u-j-貼-淨-濕-針-適-備-l-/-給-謢-強-觸-衛-與-⊙-$-緯-變-⑴-⑵-⑶-㎏-殺-∩-幚-─-價-▲-離-ú-ó-飄-烏-関-閟-﹝-﹞-邏-輯-鍵-驗-訣-導-歷-屆-層-▼-儱-錄-熳-ē-艦-吋-錶-辧-飼-顯-④-禦-販-気-対-枰-閩-紀-幹-瞓-貊-淚-△-眞-墊-Ω-獻-褲-縫-緑-亜-鉅-餠-{-}-◆-蘆-薈-█-◇-溫-彈-晳-粧-犸-穩-訊-崬-凖-熥-П-舊-條-紋-圍-Ⅳ-筆-尷-難-雜-錯-綁-識-頰-鎖-艶-□-殁-殼-⑧-├-▕-鵬-ǐ-ō-ǒ-糝-綱-▎-μ-盜-饅-醬-籤-蓋-釀-鹽-據-à-ɡ-辦-◥-彐-┌-婦-獸-鲩-伱-ī-蒟-蒻-齊-袆-腦-寧-凈-妳-煥-詢-偽-謹-啫-鯽-騷-鱸-損-傷-鎻-髮-買-冏-儥-両-﹢-∞-載-喰-z-羙-悵-燙-曉-員-組-徹-艷-痠-鋼-鼙-縮-細-嚒-爯-≠-維-"-鱻-壇-厍-帰-浥-犇-薡-軎-²-應-醜-刪-緻-鶴-賜-噁-軌-尨-镔-鷺-槗-彌-葚-濛-請-溇-緹-賢-訪-獴-瑅-資-縤-陣-蕟-栢-韻-祼-恁-伢-謝-劃-涑-總-衖-踺-砋-凉-籃-駿-苼-瘋-昽-紡-驊-腎-﹗-響-杋-剛-嚴-禪-歓-槍-傘-檸-檫-炣-勢-鏜-鎢-銑-尐-減-奪-惡-θ-僮-婭-臘-ū-ì-殻-鉄-∑-蛲-焼-緖-續-紹-懮\ No newline at end of filediff --git a/python/openvino_infer/requirements.txt b/python/openvino_infer/requirements.txtdeleted file mode 100644index b65da24..0000000--- a/python/openvino_infer/requirements.txt+++ /dev/null@@ -1,7 +0,0 @@-pyclipper==1.2.0-Shapely==1.7.1-opencv_python==4.5.1.48-six==1.15.0-numpy>=1.19.2-Pillow==8.3.0-openvino==2022.1.0\ No newline at end of filediff --git a/python/openvino_infer/test_demo.py b/python/openvino_infer/test_demo.pydeleted file mode 100644index 2f33cee..0000000--- a/python/openvino_infer/test_demo.py+++ /dev/null@@ -1,67 +0,0 @@-# -*- encoding: utf-8 -*--# @Author: SWHL-# @Contact: [email protected]-from rapid_ocr_api import TextSystem, visualize--det_model_path = 'models/ch_ppocr_mobile_v2.0_det_infer.onnx'-cls_model_path = 'models/ch_ppocr_mobile_v2.0_cls_infer.onnx'--# 中英文识别-rec_model_path = 'models/ch_ppocr_mobile_v2.0_rec_infer.onnx'-keys_path = 'rec_dict/ppocr_keys_v1.txt'--text_sys = TextSystem(det_model_path,- rec_model_path,- use_angle_cls=True,- cls_model_path=cls_model_path,- keys_path=keys_path)--image_path = r'test_images/ch_en_num.jpg'-dt_boxes, rec_res = text_sys(image_path)-visualize(image_path, dt_boxes, rec_res)---# # 只有中英文和数字识别-# rec_model_path = 'models/en_number_mobile_v2.0_rec_infer.onnx'-# keys_path = 'rec_dict/en_dict.txt'--# text_sys = TextSystem(det_model_path,-# rec_model_path,-# use_angle_cls=True,-# cls_model_path=cls_model_path,-# keys_path=keys_path)--# image_path = r'test_images/det_images/en_num.png'-# dt_boxes, rec_res = text_sys(image_path)-# visualize(image_path, dt_boxes, rec_res)---# # 日语识别-# rec_model_path = 'models/japan_rec_crnn.onnx'-# keys_path = 'rec_dict/japan_dict.txt'--# text_sys = TextSystem(det_model_path,-# rec_model_path,-# use_angle_cls=True,-# cls_model_path=cls_model_path,-# keys_path=keys_path)--# image_path = r'test_images/det_images/japan.png'-# dt_boxes, rec_res = text_sys(image_path)-# visualize(image_path, dt_boxes, rec_res)---# # 韩语识别-# rec_model_path = 'models/korean_mobile_v2.0_rec_infer.onnx'-# keys_path = 'rec_dict/korean_dict.txt'-# font_path = 'fonts/korean.ttf'--# text_sys = TextSystem(det_model_path,-# rec_model_path,-# use_angle_cls=True,-# cls_model_path=cls_model_path,-# keys_path=keys_path)--# image_path = r'test_images/det_images/korean_1.jpg'-# dt_boxes, rec_res = text_sys(image_path)-# visualize(image_path, dt_boxes, rec_res, font_path)diff --git a/python/openvino_infer/test_demo.sh b/python/openvino_infer/test_demo.shdeleted file mode 100644index e905249..0000000--- a/python/openvino_infer/test_demo.sh+++ /dev/null@@ -1,16 +0,0 @@-#! /bin/bash--det_model_path="models/ch_PP-OCRv2_det_infer.onnx"-cls_model_path="models/ch_ppocr_mobile_v2.0_cls_infer.onnx"--# 这里可以按照自己需求,做相关更改-rec_model_path="models/ch_ppocr_mobile_v2.0_rec_infer.onnx"-keys_path="ch_ppocr_mobile_v2_rec/ppocr_keys_v1.txt"--img_path="test_images/det_images/ch_en_num.jpg"--python rapid_ocr_api.py --det_model_path ${det_model_path} \- --cls_model_path ${cls_model_path} \- --rec_model_path ${rec_model_path} \- --image_path ${img_path} \- --keys_path ${keys_path}diff --git a/python/openvino_infer/test_openvino.py b/python/openvino_infer/test_openvino.pydeleted file mode 100644index 0b78a60..0000000--- a/python/openvino_infer/test_openvino.py+++ /dev/null@@ -1,65 +0,0 @@-# !/usr/bin/env python-# -*- encoding: utf-8 -*--# @File: test_openvino.py-# @Author: SWHL-# @Contact: [email protected]-import numpy as np-from openvino.runtime import Core--cls_model_path = r'models/ch_ppocr_mobile_v2.0_cls_infer.onnx'-ie = Core()-model_onnx = ie.read_model(cls_model_path)-compile_model = ie.compile_model(model_onnx, device_name='CPU')-pass--# Infer ONNXRuntime-# import cv2--# from ch_ppocr_mobile_v2_det import TextDetector--# det_model_path = 'models/ch_PP-OCRv2_det_infer.onnx'--# img_path = 'test_images/long1.jpg'-# img = cv2.imread(img_path)--# text_detect_onnx = TextDetector(det_model_path)-# dt_boxes, elapse = text_detect_onnx(img)-# print(f'onnxruntime: {elapse}')---# # Infer ONNX-# import cv2-# from ch_ppocr_mobile_v2_det_openvino_onnx import TextDetector as TextDetectorVino--# det_model_path = 'models/ch_PP-OCRv2_det_infer.onnx'-# img_path = 'test_images/det_images/ch_en_num.jpg'-# img = cv2.imread(img_path)--# text_detect_vino = TextDetectorVino(det_model_path)-# dt_boxes, elapse = text_detect_vino(img)-# print(f'openvino ONNX: {elapse}\tdt_boxes:{np.mean(dt_boxes)}')--# # # Infer IR-# import cv2-# from ch_ppocr_mobile_v2_det_openvino_ir import TextDetector as TextDetectorIR--# det_model_path = 'models/IR/static/ch_PP-OCRv2_det_infer.xml'-# img_path = 'test_images/long1.jpg'-# img = cv2.imread(img_path)--# text_detect_ir = TextDetectorIR(det_model_path)-# dt_boxes, elapse = text_detect_ir(img)-# print(f'FP16 openvino IR: {elapse}\tdt_boxes:{np.mean(dt_boxes)}')--# Infer paddle 有误-# RuntimeError: Can't SetBlob with name: x, because model input (shape={?,3,960,960}) and blob (shape=(1.3.12128.800)) are incompatible-# import cv2-# from ch_ppocr_mobile_v2_det_openvino_paddle import TextDetector as TextDetectorPaddle--# det_model_path = 'models/ch_PP-OCRv2_det_infer/ch_PP-OCRv2_det_infer/inference.pdmodel'-# img_path = 'test_images/long1.jpg'-# img = cv2.imread(img_path)--# text_detect_ir = TextDetectorPaddle(det_model_path)-# dt_boxes, elapse = text_detect_ir(img)-# print(f'openvino IR: {elapse}')diff --git a/python/rapidocr_onnxruntime/__init__.py b/python/rapidocr_onnxruntime/__init__.pynew file mode 100644index 0000000..90121b5--- /dev/null+++ b/python/rapidocr_onnxruntime/__init__.py@@ -0,0 +1,4 @@+# -*- encoding: utf-8 -*-+# @Author: SWHL+# @Contact: [email protected]+from .rapid_ocr_api import TextSystem\ No newline at end of filediff --git a/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/__init__.py b/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/__init__.pynew file mode 100644index 0000000..c5a5e1f--- /dev/null+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/__init__.py@@ -0,0 +1,4 @@+# -*- encoding: utf-8 -*-+# @Author: SWHL+# @Contact: [email protected]+from .text_cls import TextClassifier\ No newline at end of filediff --git a/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/config.yaml b/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/config.yamlnew file mode 100644index 0000000..2c2182a--- /dev/null+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/config.yaml@@ -0,0 +1,6 @@+model_path: E:\PythonProjects\RapidOCR\python\onnxruntime_infer\models\ch_ppocr_mobile_v2.0_cls_infer.onnx++cls_image_shape: [3, 48, 192]+cls_batch_num: 6+cls_thresh: 0.9+label_list: ['0', '180']\ No newline at end of filediff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/text_cls.py b/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/text_cls.pysimilarity index 60%rename from python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/text_cls.pyrename to python/rapidocr_onnxruntime/ch_ppocr_v2_cls/text_cls.pyindex 6c706cd..fc06ac1 100644--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_cls/text_cls.py+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/text_cls.py@@ -15,102 +15,89 @@ import argparseimport copyimport mathimport time+from typing import Listimport cv2import numpy as npimport onnxruntime as orttry:- from .utils import ClsPostProcess, check_and_read_gif, get_image_file_list+ from .utils import ClsPostProcess, read_yamlexcept:- from utils import ClsPostProcess, check_and_read_gif, get_image_file_list+ from utils import ClsPostProcess, read_yamlclass TextClassifier(object):- def __init__(self, cls_model_path):- self.cls_image_shape = [3, 48, 192]- self.cls_batch_num = 6- self.cls_thresh = 0.9- self.postprocess_op = ClsPostProcess(label_list=['0', '180'])+ def __init__(self, config):+ self.cls_image_shape = config['cls_image_shape']+ self.cls_batch_num = config['cls_batch_num']+ self.cls_thresh = config['cls_thresh']+ self.postprocess_op = ClsPostProcess(config['label_list'])sess_opt = ort.SessionOptions()sess_opt.log_severity_level = 4sess_opt.enable_cpu_mem_arena = False- self.session = ort.InferenceSession(cls_model_path, sess_opt)+ self.session = ort.InferenceSession(config['model_path'], sess_opt)+ self.input_name = self.session.get_inputs()[0].namedef resize_norm_img(self, img):- imgC, imgH, imgW = self.cls_image_shape- h = img.shape[0]- w = img.shape[1]+ img_c, img_h, img_w = self.cls_image_shape+ h, w = img.shape[:2]ratio = w / float(h)- if math.ceil(imgH * ratio) > imgW:- resized_w = imgW+ if math.ceil(img_h * ratio) > img_w:+ resized_w = img_welse:- resized_w = int(math.ceil(imgH * ratio))- resized_image = cv2.resize(img, (resized_w, imgH))+ resized_w = int(math.ceil(img_h * ratio))++ resized_image = cv2.resize(img, (resized_w, img_h))resized_image = resized_image.astype('float32')- if self.cls_image_shape[0] == 1:+ if img_c == 1:resized_image = resized_image / 255resized_image = resized_image[np.newaxis, :]else:resized_image = resized_image.transpose((2, 0, 1)) / 255+resized_image -= 0.5resized_image /= 0.5- padding_im = np.zeros((imgC, imgH, imgW), dtype=np.float32)- padding_im[:, :, 0:resized_w] = resized_image+ padding_im = np.zeros((img_c, img_h, img_w), dtype=np.float32)+ padding_im[:, :, :resized_w] = resized_imagereturn padding_im- def load_image(self, image_dir):- image_file_list = get_image_file_list(image_dir)- valid_image_file_list = []- img_list = []- for image_file in image_file_list:- img, flag = check_and_read_gif(image_file)- if not flag:- img = cv2.imread(image_file)- if img is None:- print(f"error in loading image:{image_file}")- continue- valid_image_file_list.append(image_file)- img_list.append(img)- return img_list-- def __call__(self, image_dir):- if isinstance(image_dir[0], (list, str)):- img_list = self.load_image(image_dir)- else:- img_list = image_dir++ def __call__(self, img_list: List[np.ndarray]):+ if isinstance(img_list, np.ndarray):+ img_list = [img_list]img_list = copy.deepcopy(img_list)- img_num = len(img_list)+# Calculate the aspect ratio of all text bars- width_list = []- for img in img_list:- width_list.append(img.shape[1] / float(img.shape[0]))+ width_list = [img.shape[1] / float(img.shape[0]) for img in img_list]+# Sorting can speed up the cls processindices = np.argsort(np.array(width_list))+ img_num = len(img_list)cls_res = [['', 0.0]] * img_numbatch_num = self.cls_batch_numelapse = 0for beg_img_no in range(0, img_num, batch_num):end_img_no = min(img_num, beg_img_no + batch_num)- norm_img_batch = []max_wh_ratio = 0for ino in range(beg_img_no, end_img_no):h, w = img_list[indices[ino]].shape[0:2]wh_ratio = w * 1.0 / hmax_wh_ratio = max(max_wh_ratio, wh_ratio)++ norm_img_batch = []for ino in range(beg_img_no, end_img_no):norm_img = self.resize_norm_img(img_list[indices[ino]])norm_img = norm_img[np.newaxis, :]norm_img_batch.append(norm_img)- norm_img_batch = np.concatenate(norm_img_batch)+ norm_img_batch = np.concatenate(norm_img_batch).astype(np.float32)starttime = time.time()- onnx_inputs = {self.session.get_inputs()[0].name: norm_img_batch}+ onnx_inputs = {self.input_name: norm_img_batch}prob_out = self.session.run(None, onnx_inputs)[0]-cls_result = self.postprocess_op(prob_out)elapse += time.time() - starttime@@ -126,11 +113,14 @@ class TextClassifier(object):if __name__ == "__main__":parser = argparse.ArgumentParser()parser.add_argument('--image_path', type=str, help='image_dir|image_path')- parser.add_argument('--model_path', type=str, help='model_path')+ parser.add_argument('--config_path', type=str, default='config.yaml')args = parser.parse_args()- text_classifier = TextClassifier(args.model_path)+ config = read_yaml(args.config_path)++ text_classifier = TextClassifier(config)- img_list, cls_res, predict_time = text_classifier(args.image_path)+ img = cv2.imread(args.image_path)+ img_list, cls_res, predict_time = text_classifier(img)for ino in range(len(img_list)):print(f"分类结果:{cls_res[ino]}")diff --git a/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/utils.py b/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/utils.pynew file mode 100644index 0000000..dae9175--- /dev/null+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_cls/utils.py@@ -0,0 +1,38 @@+# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+import yaml+++def read_yaml(yaml_path):+ with open(yaml_path, 'rb') as f:+ data = yaml.load(f, Loader=yaml.Loader)+ return data+++class ClsPostProcess(object):+ """ Convert between text-label and text-index """++ def __init__(self, label_list):+ super(ClsPostProcess, self).__init__()+ self.label_list = label_list++ def __call__(self, preds, label=None):+ pred_idxs = preds.argmax(axis=1)+ decode_out = [(self.label_list[idx], preds[i, idx])+ for i, idx in enumerate(pred_idxs)]+ if label is None:+ return decode_out++ label = [(self.label_list[idx], 1.0) for idx in label]+ return decode_out, label\ No newline at end of filediff --git a/python/rapidocr_onnxruntime/ch_ppocr_v2_det/__init__.py b/python/rapidocr_onnxruntime/ch_ppocr_v2_det/__init__.pynew file mode 100644index 0000000..dd23c8b--- /dev/null+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_det/__init__.py@@ -0,0 +1,4 @@+# -*- encoding: utf-8 -*-+# @Author: SWHL+# @Contact: [email protected]+from .text_detect import TextDetector\ No newline at end of filediff --git a/python/rapidocr_onnxruntime/ch_ppocr_v2_det/config.yaml b/python/rapidocr_onnxruntime/ch_ppocr_v2_det/config.yamlnew file mode 100644index 0000000..cb7cfa8--- /dev/null+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_det/config.yaml@@ -0,0 +1,21 @@+model_path: E:\PythonProjects\RapidOCR\python\onnxruntime_infer\models\ch_ppocr_server_v2.0_det_infer.onnx++pre_process:+ DetResizeForTest:+ limit_side_len: 736+ limit_type: min+ NormalizeImage:+ std: [0.229, 0.224, 0.225]+ mean: [0.485, 0.456, 0.406]+ scale: 1./255.+ order: hwc+ ToCHWImage:+ KeepKeys:+ keep_keys: ['image', 'shape']++post_process:+ thresh: 0.3+ box_thresh: 0.5+ max_candidates: 1000+ unclip_ratio: 1.6+ use_dilation: truediff --git a/python/onnxruntime_infer/ch_ppocr_server_v2_det/text_detect.py b/python/rapidocr_onnxruntime/ch_ppocr_v2_det/text_detect.pysimilarity index 62%rename from python/onnxruntime_infer/ch_ppocr_server_v2_det/text_detect.pyrename to python/rapidocr_onnxruntime/ch_ppocr_v2_det/text_detect.pyindex d586766..30af2e3 100644--- a/python/onnxruntime_infer/ch_ppocr_server_v2_det/text_detect.py+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_det/text_detect.py@@ -11,6 +11,7 @@# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.+# -*- encoding: utf-8 -*-import argparseimport time@@ -19,45 +20,23 @@ import numpy as npimport onnxruntimetry:- from .utils import (DBPostProcess, check_and_read_gif, create_operators,- draw_text_det_res, transform)+ from .utils import (DBPostProcess, create_operators,+ draw_text_det_res, transform, read_yaml)except:- from utils import (DBPostProcess, check_and_read_gif, create_operators,- draw_text_det_res, transform)+ from utils import (DBPostProcess, create_operators,+ draw_text_det_res, transform, read_yaml)class TextDetector(object):- def __init__(self, det_model_path):- pre_process_list = [{- 'DetResizeForTest': {- 'limit_side_len': 736,- 'limit_type': 'min'- }- }, {- 'NormalizeImage': {- 'std': [0.229, 0.224, 0.225],- 'mean': [0.485, 0.456, 0.406],- 'scale': '1./255.',- 'order': 'hwc'- }- }, {- 'ToCHWImage': None- }, {- 'KeepKeys': {- 'keep_keys': ['image', 'shape']- }- }]- self.preprocess_op = create_operators(pre_process_list)- self.postprocess_op = DBPostProcess(thresh=0.3,- box_thresh=0.5,- max_candidates=1000,- unclip_ratio=1.6,- use_dilation=True)+ def __init__(self, config):+ self.preprocess_op = create_operators(config['pre_process'])+ self.postprocess_op = DBPostProcess(**config['post_process'])sess_opt = onnxruntime.SessionOptions()sess_opt.log_severity_level = 4sess_opt.enable_cpu_mem_arena = False- self.session = onnxruntime.InferenceSession(det_model_path, sess_opt)+ self.session = onnxruntime.InferenceSession(config['model_path'],+ sess_opt)self.input_name = self.session.get_inputs()[0].nameself.output_name = self.session.get_outputs()[0].name@@ -92,7 +71,7 @@ class TextDetector(object):return pointsdef filter_tag_det_res(self, dt_boxes, image_shape):- img_height, img_width = image_shape[0:2]+ img_height, img_width = image_shape[:2]dt_boxes_new = []for box in dt_boxes:box = self.order_points_clockwise(box)@@ -105,15 +84,6 @@ class TextDetector(object):dt_boxes = np.array(dt_boxes_new)return dt_boxes- def filter_tag_det_res_only_clip(self, dt_boxes, image_shape):- img_height, img_width = image_shape[0:2]- dt_boxes_new = []- for box in dt_boxes:- box = self.clip_det_res(box, img_height, img_width)- dt_boxes_new.append(box)- dt_boxes = np.array(dt_boxes_new)- return dt_boxes-def __call__(self, img):ori_im = img.copy()data = {'image': img}@@ -121,8 +91,8 @@ class TextDetector(object):img, shape_list = dataif img is None:return None, 0- img = np.expand_dims(img, axis=0)- img = img.astype(np.float32)++ img = np.expand_dims(img, axis=0).astype(np.float32)shape_list = np.expand_dims(shape_list, axis=0)starttime = time.time()@@ -130,6 +100,7 @@ class TextDetector(object):{self.input_name: img})post_result = self.postprocess_op(preds[0], shape_list)+dt_boxes = post_result[0]['points']dt_boxes = self.filter_tag_det_res(dt_boxes, ori_im.shape)elapse = time.time() - starttime@@ -138,20 +109,16 @@ class TextDetector(object):if __name__ == "__main__":parser = argparse.ArgumentParser()- parser.add_argument('--image_path', type=str, help='image_path|image_dir')- parser.add_argument('--model_path', type=str, help='model_path')+ parser.add_argument('--config_path', type=str, default='config.yaml')+ parser.add_argument('--image_path', type=str, default=None)args = parser.parse_args()- text_detector = TextDetector(args.model_path)+ config = read_yaml(args.config_path)- img, flag = check_and_read_gif(args.image_path)- if not flag:- img = cv2.imread(args.image_path)- if img is None:- raise ValueError(f"error in loading image:{args.image_path}")+ text_detector = TextDetector(config)+ img = cv2.imread(args.image_path)dt_boxes, elapse = text_detector(img)-src_im = draw_text_det_res(dt_boxes, args.image_path)cv2.imwrite('det_results.jpg', src_im)print('图像已经保存为det_results.jpg了')diff --git a/python/openvino_infer/ch_ppocr_mobile_v2_det/utils.py b/python/rapidocr_onnxruntime/ch_ppocr_v2_det/utils.pysimilarity index 83%rename from python/openvino_infer/ch_ppocr_mobile_v2_det/utils.pyrename to python/rapidocr_onnxruntime/ch_ppocr_v2_det/utils.pyindex dfbea6c..ffbd17f 100644--- a/python/openvino_infer/ch_ppocr_mobile_v2_det/utils.py+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_det/utils.py@@ -25,46 +25,50 @@ import numpy as npimport pyclipperimport sixfrom shapely.geometry import Polygon+import yaml+++def read_yaml(yaml_path):+ with open(yaml_path, 'rb') as f:+ data = yaml.load(f, Loader=yaml.Loader)+ return dataclass DecodeImage(object):""" decode image """- def __init__(self, img_mode='RGB', channel_first=False, **kwargs):+ def __init__(self, img_mode='RGB', channel_first=False):self.img_mode = img_modeself.channel_first = channel_firstdef __call__(self, data):img = data['image']if six.PY2:- assert type(img) is str and len(- img) > 0, "invalid input 'img' in DecodeImage"+ assert type(img) is str and len(img) > 0, "invalid input 'img' in DecodeImage"else:- assert type(img) is bytes and len(- img) > 0, "invalid input 'img' in DecodeImage"+ assert type(img) is bytes and len(img) > 0, "invalid input 'img' in DecodeImage"+img = np.frombuffer(img, dtype='uint8')img = cv2.imdecode(img, 1)if img is None:return None+if self.img_mode == 'GRAY':img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)elif self.img_mode == 'RGB':- assert img.shape[2] == 3, 'invalid shape of image[%s]' % (- img.shape)+ assert img.shape[2] == 3, f'invalid shape of image[{img.shape}]'img = img[:, :, ::-1]if self.channel_first:img = img.transpose((2, 0, 1))-data['image'] = imgreturn dataclass NormalizeImage(object):- """ normalize image such as substract mean, divide std- """+ """ normalize image such as substract mean, divide std"""- def __init__(self, scale=None, mean=None, std=None, order='chw', **kwargs):+ def __init__(self, scale=None, mean=None, std=None, order='chw'):if isinstance(scale, str):scale = eval(scale)self.scale = np.float32(scale if scale is not None else 1.0 / 255.0)@@ -76,23 +80,14 @@ class NormalizeImage(object):self.std = np.array(std).reshape(shape).astype('float32')def __call__(self, data):- img = data['image']- from PIL import Image- if isinstance(img, Image.Image):- img = np.array(img)-- assert isinstance(img,- np.ndarray), "invalid input 'img' in NormalizeImage"- data['image'] = (- img.astype('float32') * self.scale - self.mean) / self.std+ img = np.array(data['image']).astype(np.float32)+ data['image'] = (img * self.scale - self.mean) / self.stdreturn dataclass ToCHWImage(object):- """ convert hwc image to chw image- """-- def __init__(self, **kwargs):+ """ convert hwc image to chw image"""+ def __init__(self):passdef __call__(self, data):@@ -105,7 +100,7 @@ class ToCHWImage(object):class KeepKeys(object):- def __init__(self, keep_keys, **kwargs):+ def __init__(self, keep_keys):self.keep_keys = keep_keysdef __call__(self, data):@@ -239,37 +234,14 @@ def transform(data, ops=None):return data-def check_and_read_gif(img_path):- if os.path.basename(img_path)[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, False---def create_operators(op_param_list, global_config=None):+def create_operators(op_param_dict):"""create operators based on the config-- Args:- params(list): a dict list, used to create some operators"""- assert isinstance(- op_param_list, list), ('operator config should be a list')ops = []- for operator in op_param_list:- assert isinstance(operator,- dict) and len(operator) == 1, "yaml format error"- op_name = list(operator)[0]- param = {} if operator[op_name] is None else operator[op_name]- if global_config is not None:- param.update(global_config)+ for op_name, param in op_param_dict.items():+ if param is None:+ param = {}op = eval(op_name)(**param)ops.append(op)return ops@@ -285,24 +257,24 @@ def draw_text_det_res(dt_boxes, img_path):class DBPostProcess(object):- """- The post process for Differentiable Binarization (DB).- """+ """The post process for Differentiable Binarization (DB)."""def __init__(self,thresh=0.3,box_thresh=0.7,max_candidates=1000,unclip_ratio=2.0,- use_dilation=False,- **kwargs):+ use_dilation=False):self.thresh = threshself.box_thresh = box_threshself.max_candidates = max_candidatesself.unclip_ratio = unclip_ratioself.min_size = 3- self.dilation_kernel = None if not use_dilation else np.array(- [[1, 1], [1, 1]])++ if use_dilation:+ self.dilation_kernel = np.array([[1, 1], [1, 1]])+ else:+ self.dilation_kernel = Nonedef boxes_from_bitmap(self, pred, _bitmap, dest_width, dest_height):'''diff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/__init__.py b/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/__init__.pysimilarity index 100%rename from python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/__init__.pyrename to python/rapidocr_onnxruntime/ch_ppocr_v2_rec/__init__.pydiff --git a/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/config.yaml b/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/config.yamlnew file mode 100644index 0000000..2233f7a--- /dev/null+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/config.yaml@@ -0,0 +1,5 @@+model_path: E:\PythonProjects\RapidOCR\python\onnxruntime_infer\models\ch_ppocr_server_v2.0_rec_infer.onnx++rec_img_shape: [3, 32, 320]+rec_batch_num: 6+keys_path: E:\PythonProjects\RapidOCR\python\onnxruntime_infer\rec_dict\ppocr_keys_v1.txtdiff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/text_recognize.py b/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/text_recognize.pysimilarity index 64%rename from python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/text_recognize.pyrename to python/rapidocr_onnxruntime/ch_ppocr_v2_rec/text_recognize.pyindex ea0c967..19af358 100644--- a/python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/text_recognize.py+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/text_recognize.py@@ -15,36 +15,31 @@ import argparseimport mathimport timefrom pathlib import Path+from typing import Listimport cv2import numpy as npimport onnxruntimetry:- from .utils import CTCLabelDecode, check_and_read_gif, get_image_file_list+ from .utils import CTCLabelDecode, read_yamlexcept:- from utils import CTCLabelDecode, check_and_read_gif, get_image_file_list---root_path = Path(__file__).parent+ from utils import CTCLabelDecode, read_yamlclass TextRecognizer(object):- def __init__(self, rec_model_path, keys_path=None):- self.rec_image_shape = [3, 32, 320]- self.rec_batch_num = 6-- if keys_path is None:- self.character_dict_path = str(root_path / 'ppocr_keys_v1.txt')- else:- self.character_dict_path = keys_path-+ def __init__(self, config):+ self.rec_image_shape = config['rec_img_shape']+ self.rec_batch_num = config['rec_batch_num']+ self.character_dict_path = config['keys_path']self.postprocess_op = CTCLabelDecode(self.character_dict_path)sess_opt = onnxruntime.SessionOptions()sess_opt.log_severity_level = 4sess_opt.enable_cpu_mem_arena = False- self.session = onnxruntime.InferenceSession(rec_model_path, sess_opt)+ self.session = onnxruntime.InferenceSession(config['model_path'],+ sess_opt)+ self.input_name = self.session.get_inputs()[0].namedef resize_norm_img(self, img, max_wh_ratio):img_channel, img_height, img_width = self.rec_image_shape@@ -59,70 +54,53 @@ class TextRecognizer(object):resized_w = img_widthelse:resized_w = int(math.ceil(img_height * ratio))+resized_image = cv2.resize(img, (resized_w, img_height))resized_image = resized_image.astype('float32')resized_image = resized_image.transpose((2, 0, 1)) / 255resized_image -= 0.5resized_image /= 0.5+padding_im = np.zeros((img_channel, img_height, img_width),dtype=np.float32)padding_im[:, :, 0:resized_w] = resized_imagereturn padding_im- @staticmethod- def load_image(image_dir):- image_file_list = get_image_file_list(image_dir)- valid_image_file_list = []- img_list = []- for image_file in image_file_list:- img, flag = check_and_read_gif(image_file)- if not flag:- img = cv2.imread(image_file)- if img is None:- print(f"error in loading image:{image_file}")- continue- valid_image_file_list.append(image_file)- img_list.append(img)- return img_list-- def __call__(self, image_dir):- if not isinstance(image_dir, list):- img_list = self.load_image(image_dir)- else:- img_list = image_dir- img_num = len(img_list)+ def __call__(self, img_list: List[np.ndarray]):+ if isinstance(img_list, np.ndarray):+ img_list = [img_list]+# Calculate the aspect ratio of all text bars- width_list = []- for img in img_list:- width_list.append(img.shape[1] / float(img.shape[0]))+ width_list = [img.shape[1] / float(img.shape[0]) for img in img_list]+# Sorting can speed up the recognition processindices = np.argsort(np.array(width_list))+ img_num = len(img_list)rec_res = [['', 0.0]] * img_num+batch_num = self.rec_batch_numelapse = 0for beg_img_no in range(0, img_num, batch_num):end_img_no = min(img_num, beg_img_no + batch_num)- norm_img_batch = []max_wh_ratio = 0for ino in range(beg_img_no, end_img_no):h, w = img_list[indices[ino]].shape[0:2]wh_ratio = w * 1.0 / hmax_wh_ratio = max(max_wh_ratio, wh_ratio)++ norm_img_batch = []for ino in range(beg_img_no, end_img_no):norm_img = self.resize_norm_img(img_list[indices[ino]],max_wh_ratio)- norm_img = norm_img[np.newaxis, :]- norm_img_batch.append(norm_img)- norm_img_batch = np.concatenate(norm_img_batch)- norm_img_batch = norm_img_batch.astype(np.float32)+ norm_img_batch.append(norm_img[np.newaxis, :])+ norm_img_batch = np.concatenate(norm_img_batch).astype(np.float32)- # onnx模型推理starttime = time.time()- onnx_inputs = {self.session.get_inputs()[0].name: norm_img_batch}+ onnx_inputs = {self.input_name: norm_img_batch}preds = self.session.run(None, onnx_inputs)[0]-rec_result = self.postprocess_op(preds)+for rno in range(len(rec_result)):rec_res[indices[beg_img_no + rno]] = rec_result[rno]elapse += time.time() - starttime@@ -133,8 +111,12 @@ if __name__ == "__main__":parser = argparse.ArgumentParser()parser.add_argument('--image_path', type=str, help='image_dir|image_path')parser.add_argument('--model_path', type=str, help='rec_model_path')+ parser.add_argument('--config_path', type=str, default='config.yaml')args = parser.parse_args()- text_recognizer = TextRecognizer(args.model_path)- rec_res, predict_time = text_recognizer(args.image_path)+ config = read_yaml(args.config_path)+ text_recognizer = TextRecognizer(config)++ img = cv2.imread(args.image_path)+ rec_res, predict_time = text_recognizer(img)print(f'识别结果: {rec_res}\t cost: {predict_time}s')diff --git a/python/onnxruntime_infer/ch_ppocr_server_v2_rec/utils.py b/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/utils.pysimilarity index 58%rename from python/onnxruntime_infer/ch_ppocr_server_v2_rec/utils.pyrename to python/rapidocr_onnxruntime/ch_ppocr_v2_rec/utils.pyindex dcb6167..c6edeb6 100644--- a/python/onnxruntime_infer/ch_ppocr_server_v2_rec/utils.py+++ b/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/utils.py@@ -1,44 +1,14 @@-# !/usr/bin/env python# -*- encoding: utf-8 -*--# @File: PostProcess.py-# @Time: 2021/01/19 14:12:35-# @Author: Max-import cv2-import os-import imghdr+# @Author: SWHL+# @Contact: [email protected]import numpy as np+import yaml-def get_image_file_list(img_file):- imgs_lists = []- if img_file is None or not os.path.exists(img_file):- raise FileNotFoundError("not found any img file in {}".format(img_file))-- img_end = {'jpg', 'bmp', 'png', 'jpeg', 'rgb', 'tif', 'tiff', 'gif', 'GIF'}- if os.path.isfile(img_file) and imghdr.what(img_file) in img_end:- imgs_lists.append(img_file)- elif os.path.isdir(img_file):- for single_file in os.listdir(img_file):- file_path = os.path.join(img_file, single_file)- if imghdr.what(file_path) in img_end:- imgs_lists.append(file_path)- if len(imgs_lists) == 0:- raise FileNotFoundError("not found any img file in {}".format(img_file))- return imgs_lists---def check_and_read_gif(img_path):- if os.path.basename(img_path)[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, False+def read_yaml(yaml_path):+ with open(yaml_path, 'rb') as f:+ data = yaml.load(f, Loader=yaml.Loader)+ return dataclass CTCLabelDecode(object):@@ -46,6 +16,7 @@ class CTCLabelDecode(object):def __init__(self, character_dict_path):super(CTCLabelDecode, self).__init__()+self.character_str = []assert character_dict_path is not None, "character_dict_path should not be None"with open(character_dict_path, "rb") as fin:@@ -54,18 +25,19 @@ class CTCLabelDecode(object):line = line.decode('utf-8').strip("\n").strip("\r\n")self.character_str.append(line)self.character_str.append(' ')- dict_character = self.character_str- dict_character = self.add_special_char(dict_character)+ dict_character = self.add_special_char(self.character_str)+ self.character = dict_character+self.dict = {}for i, char in enumerate(dict_character):self.dict[char] = i- self.character = dict_character- def __call__(self, preds, label=None, *args, **kwargs):+ def __call__(self, preds, label=None):preds_idx = preds.argmax(axis=2)preds_prob = preds.max(axis=2)- text = self.decode(preds_idx, preds_prob, is_remove_duplicate=True)+ text = self.decode(preds_idx, preds_prob,+ is_remove_duplicate=True)if label is None:return textlabel = self.decode(label)@@ -80,6 +52,7 @@ class CTCLabelDecode(object):def decode(self, text_index, text_prob=None, is_remove_duplicate=False):""" convert text-index into text-label. """+result_list = []ignored_tokens = self.get_ignored_tokens()batch_size = len(text_index)diff --git a/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/word_1.jpg b/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/word_1.jpgnew file mode 100644index 0000000..934cc1cBinary files /dev/null and b/python/rapidocr_onnxruntime/ch_ppocr_v2_rec/word_1.jpg differdiff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/README.md b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/README.mdsimilarity index 100%rename from python/onnxruntime_infer/ch_ppocr_mobile_v3_rec/README.mdrename to python/rapidocr_onnxruntime/ch_ppocr_v3_rec/README.mddiff --git a/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/__init__.py b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/__init__.pynew file mode 100644index 0000000..ea54cd3--- /dev/null+++ b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/__init__.py@@ -0,0 +1,4 @@+# -*- encoding: utf-8 -*-+# @Author: SWHL+# @Contact: [email protected]+from .text_recognize import TextRecognizer\ No newline at end of filediff --git a/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/config.yaml b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/config.yamlnew file mode 100644index 0000000..43a1f04--- /dev/null+++ b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/config.yaml@@ -0,0 +1,5 @@+model_path: E:\PythonProjects\RapidOCR\python\onnxruntime_infer\models\PPOCRv3\ch_PP-OCRv3_rec_infer.onnx++rec_img_shape: [3, 48, 320]+rec_batch_num: 6+keys_path: E:\PythonProjects\RapidOCR\python\onnxruntime_infer\rec_dict\ppocr_keys_v1.txtdiff --git a/python/onnxruntime_infer/ch_ppocr_server_v2_rec/text_recognize.py b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/text_recognize.pysimilarity index 59%rename from python/onnxruntime_infer/ch_ppocr_server_v2_rec/text_recognize.pyrename to python/rapidocr_onnxruntime/ch_ppocr_v3_rec/text_recognize.pyindex eeba39f..ca88ce5 100644--- a/python/onnxruntime_infer/ch_ppocr_server_v2_rec/text_recognize.py+++ b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/text_recognize.py@@ -15,36 +15,33 @@ import argparseimport mathimport timefrom pathlib import Path+from typing import Listimport cv2import numpy as npimport onnxruntimetry:- from .utils import CTCLabelDecode, check_and_read_gif, get_image_file_list+ from .utils import CTCLabelDecode, read_yamlexcept:- from utils import CTCLabelDecode, check_and_read_gif, get_image_file_list-+ from utils import CTCLabelDecode, read_yamlroot_path = Path(__file__).parentclass TextRecognizer(object):- def __init__(self, rec_model_path, keys_path=None):- self.rec_image_shape = [3, 32, 320]- self.rec_batch_num = 6-- if keys_path is None:- self.character_dict_path = str(root_path / 'ppocr_keys_v1.txt')- else:- self.character_dict_path = keys_path-+ def __init__(self, config):+ self.rec_image_shape = config['rec_img_shape']+ self.rec_batch_num = config['rec_batch_num']+ self.character_dict_path = config['keys_path']self.postprocess_op = CTCLabelDecode(self.character_dict_path)sess_opt = onnxruntime.SessionOptions()sess_opt.log_severity_level = 4sess_opt.enable_cpu_mem_arena = False- self.session = onnxruntime.InferenceSession(rec_model_path, sess_opt)+ self.session = onnxruntime.InferenceSession(config['model_path'],+ sess_opt)+ self.input_name = self.session.get_inputs()[0].namedef resize_norm_img(self, img, max_wh_ratio):img_channel, img_height, img_width = self.rec_image_shape@@ -59,71 +56,63 @@ class TextRecognizer(object):resized_w = img_widthelse:resized_w = int(math.ceil(img_height * ratio))+resized_image = cv2.resize(img, (resized_w, img_height))resized_image = resized_image.astype('float32')resized_image = resized_image.transpose((2, 0, 1)) / 255resized_image -= 0.5resized_image /= 0.5+padding_im = np.zeros((img_channel, img_height, img_width),dtype=np.float32)padding_im[:, :, 0:resized_w] = resized_imagereturn padding_im- @staticmethod- def load_image(image_dir):- image_file_list = get_image_file_list(image_dir)- valid_image_file_list = []- img_list = []- for image_file in image_file_list:- img, flag = check_and_read_gif(image_file)- if not flag:- img = cv2.imread(image_file)- if img is None:- print(f"error in loading image:{image_file}")- continue- valid_image_file_list.append(image_file)- img_list.append(img)- return img_list-- def __call__(self, image_dir):- if not isinstance(image_dir, list):- img_list = self.load_image(image_dir)- else:- img_list = image_dir- img_num = len(img_list)+ def resize_norm_img_svtr(self, img, max_wh_ratio=None):+ img_c, img_h, img_w = self.rec_image_shape+ resized_image = cv2.resize(img, (img_w, img_h),+ interpolation=cv2.INTER_LINEAR)++ resized_image = resized_image.astype('float32')+ resized_image = resized_image.transpose((2, 0, 1)) / 255+ resized_image -= 0.5+ resized_image /= 0.5+ return resized_image++ def __call__(self, img_list: List[np.ndarray]):+ if isinstance(img_list, np.ndarray):+ img_list = [img_list]+# Calculate the aspect ratio of all text bars- width_list = []- for img in img_list:- width_list.append(img.shape[1] / float(img.shape[0]))+ width_list = [img.shape[1] / float(img.shape[0]) for img in img_list]+# Sorting can speed up the recognition processindices = np.argsort(np.array(width_list))- # rec_res = []+ img_num = len(img_list)rec_res = [['', 0.0]] * img_num+batch_num = self.rec_batch_numelapse = 0for beg_img_no in range(0, img_num, batch_num):end_img_no = min(img_num, beg_img_no + batch_num)- norm_img_batch = []max_wh_ratio = 0for ino in range(beg_img_no, end_img_no):- # h, w = img_list[ino].shape[0:2]h, w = img_list[indices[ino]].shape[0:2]wh_ratio = w * 1.0 / hmax_wh_ratio = max(max_wh_ratio, wh_ratio)++ norm_img_batch = []for ino in range(beg_img_no, end_img_no):- norm_img = self.resize_norm_img(img_list[indices[ino]],- max_wh_ratio)- norm_img = norm_img[np.newaxis, :]- norm_img_batch.append(norm_img)- norm_img_batch = np.concatenate(norm_img_batch)- norm_img_batch = norm_img_batch.copy()+ norm_img = self.resize_norm_img_svtr(img_list[indices[ino]])+ norm_img_batch.append(norm_img[np.newaxis, :])+ norm_img_batch = np.concatenate(norm_img_batch).astype(np.float32)starttime = time.time()- ort_inputs = {self.session.get_inputs()[0].name: norm_img_batch}- preds = self.session.run(None, ort_inputs)[0]-+ onnx_inputs = {self.input_name: norm_img_batch}+ preds = self.session.run(None, onnx_inputs)[0]rec_result = self.postprocess_op(preds)+for rno in range(len(rec_result)):rec_res[indices[beg_img_no + rno]] = rec_result[rno]elapse += time.time() - starttime@@ -133,9 +122,12 @@ class TextRecognizer(object):if __name__ == "__main__":parser = argparse.ArgumentParser()parser.add_argument('--image_path', type=str, help='image_dir|image_path')- parser.add_argument('--model_path', type=str, help='rec_model_path')+ parser.add_argument('--config_path', type=str, default='config.yaml')args = parser.parse_args()- text_recognizer = TextRecognizer(args.model_path)- rec_res, predict_time = text_recognizer(args.image_path)+ config = read_yaml(args.config_path)+ text_recognizer = TextRecognizer(config)++ img = cv2.imread(args.image_path)+ rec_res, predict_time = text_recognizer(img)print(f'识别结果: {rec_res}\t cost: {predict_time}s')diff --git a/python/openvino_infer/ch_ppocr_mobile_v2_rec/utils.py b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.pysimilarity index 58%rename from python/openvino_infer/ch_ppocr_mobile_v2_rec/utils.pyrename to python/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.pyindex cb8c8d9..c6edeb6 100644--- a/python/openvino_infer/ch_ppocr_mobile_v2_rec/utils.py+++ b/python/rapidocr_onnxruntime/ch_ppocr_v3_rec/utils.py@@ -1,44 +1,14 @@-# !/usr/bin/env python# -*- encoding: utf-8 -*--# @File: utils.py-# @Time: 2021/05/22 10:53:17-# @Author: Max-import cv2-import os-import imghdr+# @Author: SWHL+# @Contact: [email protected]import numpy as np+import yaml-def get_image_file_list(img_file):- imgs_lists = []- if img_file is None or not os.path.exists(img_file):- raise FileNotFoundError("not found any img file in {}".format(img_file))-- img_end = {'jpg', 'bmp', 'png', 'jpeg', 'rgb', 'tif', 'tiff', 'gif', 'GIF'}- if os.path.isfile(img_file) and imghdr.what(img_file) in img_end:- imgs_lists.append(img_file)- elif os.path.isdir(img_file):- for single_file in os.listdir(img_file):- file_path = os.path.join(img_file, single_file)- if imghdr.what(file_path) in img_end:- imgs_lists.append(file_path)- if len(imgs_lists) == 0:- raise FileNotFoundError("not found any img file in {}".format(img_file))- return imgs_lists---def check_and_read_gif(img_path):- if os.path.basename(img_path)[-3:] in ['gif', 'GIF']:- gif = cv2.VideoCapture(img_path)- ret, frame = gif.read()- if not ret:- print("Cannot read {}. This gif image maybe corrupted.")- return None, False- if len(frame.shape) == 2 or frame.shape[-1] == 1:- frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2RGB)- imgvalue = frame[:, :, ::-1]- return imgvalue, True- return None, False+def read_yaml(yaml_path):+ with open(yaml_path, 'rb') as f:+ data = yaml.load(f, Loader=yaml.Loader)+ return dataclass CTCLabelDecode(object):@@ -46,6 +16,7 @@ class CTCLabelDecode(object):def __init__(self, character_dict_path):super(CTCLabelDecode, self).__init__()+self.character_str = []assert character_dict_path is not None, "character_dict_path should not be None"with open(character_dict_path, "rb") as fin:@@ -54,15 +25,15 @@ class CTCLabelDecode(object):line = line.decode('utf-8').strip("\n").strip("\r\n")self.character_str.append(line)self.character_str.append(' ')- dict_character = self.character_str- dict_character = self.add_special_char(dict_character)+ dict_character = self.add_special_char(self.character_str)+ self.character = dict_character+self.dict = {}for i, char in enumerate(dict_character):self.dict[char] = i- self.character = dict_character- def __call__(self, preds, label=None, *args, **kwargs):+ def __call__(self, preds, label=None):preds_idx = preds.argmax(axis=2)preds_prob = preds.max(axis=2)text = self.decode(preds_idx, preds_prob,@@ -79,10 +50,9 @@ class CTCLabelDecode(object):def get_ignored_tokens(self):return [0] # for ctc blank- def decode(self, text_index,- text_prob=None,- is_remove_duplicate=False):+ def decode(self, text_index, text_prob=None, is_remove_duplicate=False):""" convert text-index into text-label. """+result_list = []ignored_tokens = self.get_ignored_tokens()batch_size = len(text_index)diff --git a/python/rapidocr_onnxruntime/rapid_ocr_api.py b/python/rapidocr_onnxruntime/rapid_ocr_api.pynew file mode 100644index 0000000..59647db--- /dev/null+++ b/python/rapidocr_onnxruntime/rapid_ocr_api.py@@ -0,0 +1,143 @@+# !/usr/bin/env python+# -*- encoding: utf-8 -*-+import copy+import importlib+import sys+from pathlib import Path++import cv2+import numpy as np+import yaml++root_dir = Path(__file__).resolve().parent+sys.path.append(str(root_dir))+++class TextSystem(object):+ def __init__(self, config_path=str(root_dir / 'config.yaml')):+ super(TextSystem).__init__()+ config = self.read_yaml(config_path)++ self.print_verbose = config['Global']['print_verbose']+ self.text_score = config['Global']['text_score']++ TextDetector = self.init_module(config['Det']['module_name'],+ config['Det']['class_name'])+ self.text_detector = TextDetector(config['Det'])++ TextRecognizer = self.init_module(config['Rec']['module_name'],+ config['Rec']['class_name'])+ self.text_recognizer = TextRecognizer(config['Rec'])++ self.use_angle_cls = config['Global']['use_angle_cls']+ if self.use_angle_cls:+ TextClassifier = self.init_module(config['Cls']['module_name'],+ config['Cls']['class_name'])+ self.text_cls = TextClassifier(config['Cls'])++ @staticmethod+ def read_yaml(yaml_path):+ with open(yaml_path, 'rb') as f:+ data = yaml.load(f, Loader=yaml.Loader)+ return data++ @staticmethod+ def init_module(module_name, class_name):+ module_part = importlib.import_module(module_name)+ return getattr(module_part, class_name)++ def get_rotate_crop_image(self, img, points):+ '''+ img_height, img_width = img.shape[0:2]+ left = int(np.min(points[:, 0]))+ right = int(np.max(points[:, 0]))+ top = int(np.min(points[:, 1]))+ bottom = int(np.max(points[:, 1]))+ img_crop = img[top:bottom, left:right, :].copy()+ points[:, 0] = points[:, 0] - left+ points[:, 1] = points[:, 1] - top+ '''+ img_crop_width = int(+ max(+ np.linalg.norm(points[0] - points[1]),+ np.linalg.norm(points[2] - points[3])))+ img_crop_height = int(+ max(+ np.linalg.norm(points[0] - points[3]),+ np.linalg.norm(points[1] - points[2])))+ pts_std = np.float32([[0, 0], [img_crop_width, 0],+ [img_crop_width, img_crop_height],+ [0, img_crop_height]])+ M = cv2.getPerspectiveTransform(points, pts_std)+ dst_img = cv2.warpPerspective(+ img,+ M, (img_crop_width, img_crop_height),+ borderMode=cv2.BORDER_REPLICATE,+ flags=cv2.INTER_CUBIC)+ dst_img_height, dst_img_width = dst_img.shape[0:2]+ if dst_img_height * 1.0 / dst_img_width >= 1.5:+ dst_img = np.rot90(dst_img)+ return dst_img++ @staticmethod+ def sorted_boxes(dt_boxes):+ """+ Sort text boxes in order from top to bottom, left to right+ args:+ dt_boxes(array):detected text boxes with shape [4, 2]+ return:+ sorted boxes(array) with shape [4, 2]+ """+ num_boxes = dt_boxes.shape[0]+ sorted_boxes = sorted(dt_boxes, key=lambda x: (x[0][1], x[0][0]))+ _boxes = list(sorted_boxes)++ for i in range(num_boxes - 1):+ if abs(_boxes[i + 1][0][1] - _boxes[i][0][1]) < 10 and \+ (_boxes[i + 1][0][0] < _boxes[i][0][0]):+ tmp = _boxes[i]+ _boxes[i] = _boxes[i + 1]+ _boxes[i + 1] = tmp+ return _boxes++ def __call__(self, img: np.ndarray):+ dt_boxes, elapse = self.text_detector(img)+ if self.print_verbose:+ print(f'dt_boxes num: { len(dt_boxes)}, elapse: {elapse}')++ if dt_boxes is None or len(dt_boxes) < 1:+ return None, None+ dt_boxes = self.sorted_boxes(dt_boxes)++ img_crop_list = []+ for bno in range(len(dt_boxes)):+ tmp_box = copy.deepcopy(dt_boxes[bno])+ img_crop = self.get_rotate_crop_image(img, tmp_box)+ img_crop_list.append(img_crop)++ if self.use_angle_cls:+ img_crop_list, angle_list, elapse = self.text_cls(img_crop_list)+ if self.print_verbose:+ print(f'cls num: {len(img_crop_list)}, elapse: {elapse}')++ rec_res, elapse = self.text_recognizer(img_crop_list)+ if self.print_verbose:+ print(f'rec_res num: {len(rec_res)}, elapse: {elapse}')++ filter_boxes, filter_rec_res = [], []+ for box, rec_reuslt in zip(dt_boxes, rec_res):+ text, score = rec_reuslt+ if score >= self.text_score:+ filter_boxes.append(box)+ filter_rec_res.append(rec_reuslt)+ return filter_boxes, filter_rec_res+++if __name__ == '__main__':+ text_sys = TextSystem('config.yaml')++ import cv2+ img = cv2.imread('resources/test_images/det_images/ch_en_num.jpg')++ result = text_sys(img)+ print(result)diff --git a/python/rapidocr_onnxruntime/test_demo.py b/python/rapidocr_onnxruntime/test_demo.pynew file mode 100644index 0000000..19b2a00--- /dev/null+++ b/python/rapidocr_onnxruntime/test_demo.py@@ -0,0 +1,98 @@+# -*- encoding: utf-8 -*-+# @Author: SWHL+# @Contact: [email protected]+import math+import random+from pathlib import Path++import cv2+import numpy as np+from PIL import Image, ImageDraw, ImageFont++from rapid_ocr_api import TextSystem+++def draw_ocr_box_txt(image, boxes, txts, font_path,+ scores=None, text_score=0.5):+ if not Path(font_path).exists():+ raise FileNotFoundError(f'The {font_path} does not exists! \n'+ f'Please download the file in the https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY')++ h, w = image.height, image.width+ img_left = image.copy()+ img_right = Image.new('RGB', (w, h), (255, 255, 255))++ random.seed(0)+ draw_left = ImageDraw.Draw(img_left)+ draw_right = ImageDraw.Draw(img_right)+ for idx, (box, txt) in enumerate(zip(boxes, txts)):+ if scores is not None and scores[idx] < text_score:+ continue++ color = (random.randint(0, 255),+ random.randint(0, 255),+ random.randint(0, 255))+ draw_left.polygon(box, fill=color)+ draw_right.polygon([box[0][0], box[0][1],+ box[1][0], box[1][1],+ box[2][0], box[2][1],+ box[3][0], box[3][1]],+ outline=color)++ box_height = math.sqrt((box[0][0] - box[3][0])**2+ + (box[0][1] - box[3][1])**2)++ box_width = math.sqrt((box[0][0] - box[1][0])**2+ + (box[0][1] - box[1][1])**2)++ if box_height > 2 * box_width:+ font_size = max(int(box_width * 0.9), 10)+ font = ImageFont.truetype(font_path, font_size,+ encoding="utf-8")+ cur_y = box[0][1]+ for c in txt:+ char_size = font.getsize(c)+ draw_right.text((box[0][0] + 3, cur_y), c,+ fill=(0, 0, 0), font=font)+ cur_y += char_size[1]+ else:+ font_size = max(int(box_height * 0.8), 10)+ font = ImageFont.truetype(font_path, font_size, encoding="utf-8")+ draw_right.text([box[0][0], box[0][1]], txt,+ fill=(0, 0, 0), font=font)++ img_left = Image.blend(image, img_left, 0.5)+ img_show = Image.new('RGB', (w * 2, h), (255, 255, 255))+ img_show.paste(img_left, (0, 0, w, h))+ img_show.paste(img_right, (w, 0, w * 2, h))+ return np.array(img_show)+++def visualize(image_path, boxes, rec_res, font_path="fonts/msyh.ttc"):+ image = Image.open(image_path)+ txts = [rec_res[i][0] for i in range(len(rec_res))]+ scores = [rec_res[i][1] for i in range(len(rec_res))]++ draw_img = draw_ocr_box_txt(image, boxes,+ txts, font_path,+ scores,+ text_score=0.5)++ draw_img_save = Path("./inference_results/")+ if not draw_img_save.exists():+ draw_img_save.mkdir(parents=True, exist_ok=True)++ image_save = str(draw_img_save / f'infer_{Path(image_path).name}')+ cv2.imwrite(image_save, draw_img[:, :, ::-1])+ print(f'The infer result has saved in {image_save}')+++if __name__ == '__main__':+ config_path = 'config.yaml'+ text_sys = TextSystem(config_path)++ image_path = r'resources/test_images/det_images/ch_en_num.jpg'+ img = cv2.imread(image_path)+ dt_boxes, rec_res = text_sys(img)+ visualize(image_path, dt_boxes, rec_res,+ font_path='resources/fonts/msyh.ttc')diff --git a/python/requirements.txt b/python/requirements.txtnew file mode 100644index 0000000..95ebc08--- /dev/null+++ b/python/requirements.txt@@ -0,0 +1,8 @@+pyclipper>=1.2.0+Shapely>=1.7.1+onnxruntime>=1.7.0+opencv_python==4.5.1.48+six>=1.15.0+numpy>=1.19.2+Pillow==8.3.0+PyYAML\ No newline at end of filediff --git a/python/resources/config.yaml b/python/resources/config.yamlnew file mode 100644index 0000000..6a590c9--- /dev/null+++ b/python/resources/config.yaml@@ -0,0 +1,48 @@+Global:+ text_score: 0.5+ use_angle_cls: true+ print_verbose: true++Det:+ module_name: ch_ppocr_v2_det+ class_name: TextDetector+ model_path: resources/models/ch_ppocr_mobile_v2.0_det_infer.onnx++ pre_process:+ DetResizeForTest:+ limit_side_len: 736+ limit_type: min+ NormalizeImage:+ std: [0.229, 0.224, 0.225]+ mean: [0.485, 0.456, 0.406]+ scale: 1./255.+ order: hwc+ ToCHWImage:+ KeepKeys:+ keep_keys: ['image', 'shape']++ post_process:+ thresh: 0.3+ box_thresh: 0.5+ max_candidates: 1000+ unclip_ratio: 1.6+ use_dilation: true++Cls:+ module_name: ch_ppocr_v2_cls+ class_name: TextClassifier+ model_path: resources/models/ch_ppocr_mobile_v2.0_cls_infer.onnx++ cls_image_shape: [3, 48, 192]+ cls_batch_num: 6+ cls_thresh: 0.9+ label_list: ['0', '180']++Rec:+ module_name: ch_ppocr_v2_rec+ class_name: TextRecognizer+ model_path: resources/models/ch_ppocr_mobile_v2.0_rec_infer.onnx++ rec_img_shape: [3, 32, 320]+ rec_batch_num: 6+ keys_path: resources/rec_dict/ppocr_keys_v1.txtdiff --git a/python/onnxruntime_infer/fonts/.gitkeep b/python/resources/fonts/.gitkeepsimilarity index 100%rename from python/onnxruntime_infer/fonts/.gitkeeprename to python/resources/fonts/.gitkeepdiff --git a/python/onnxruntime_infer/models/.gitkeep b/python/resources/models/.gitkeepsimilarity index 100%rename from python/onnxruntime_infer/models/.gitkeeprename to python/resources/models/.gitkeepdiff --git a/python/onnxruntime_infer/rec_dict/en_dict.txt b/python/resources/rec_dict/en_dict.txtsimilarity index 100%rename from python/onnxruntime_infer/rec_dict/en_dict.txtrename to python/resources/rec_dict/en_dict.txtdiff --git a/python/onnxruntime_infer/rec_dict/japan_dict.txt b/python/resources/rec_dict/japan_dict.txtsimilarity index 100%rename from python/onnxruntime_infer/rec_dict/japan_dict.txtrename to python/resources/rec_dict/japan_dict.txtdiff --git a/python/onnxruntime_infer/rec_dict/korean_dict.txt b/python/resources/rec_dict/korean_dict.txtsimilarity index 100%rename from python/onnxruntime_infer/rec_dict/korean_dict.txtrename to python/resources/rec_dict/korean_dict.txtdiff --git a/python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/ppocr_keys_v1.txt b/python/resources/rec_dict/ppocr_keys_v1.txtsimilarity index 100%rename from python/onnxruntime_infer/ch_ppocr_mobile_v2_rec/ppocr_keys_v1.txtrename to python/resources/rec_dict/ppocr_keys_v1.txtdiff --git a/python/onnxruntime_infer/test_images/det_images/ch_en_num.jpg b/python/resources/test_images/det_images/ch_en_num.jpgsimilarity index 100%rename from python/onnxruntime_infer/test_images/det_images/ch_en_num.jpgrename to python/resources/test_images/det_images/ch_en_num.jpgdiff --git a/python/onnxruntime_infer/test_images/det_images/en_num.png b/python/resources/test_images/det_images/en_num.pngsimilarity index 100%rename from python/onnxruntime_infer/test_images/det_images/en_num.pngrename to python/resources/test_images/det_images/en_num.pngdiff --git a/python/onnxruntime_infer/test_images/det_images/japan.png b/python/resources/test_images/det_images/japan.pngsimilarity index 100%rename from python/onnxruntime_infer/test_images/det_images/japan.pngrename to python/resources/test_images/det_images/japan.pngdiff --git a/python/onnxruntime_infer/test_images/det_images/korean_1.jpg b/python/resources/test_images/det_images/korean_1.jpgsimilarity index 100%rename from python/onnxruntime_infer/test_images/det_images/korean_1.jpgrename to python/resources/test_images/det_images/korean_1.jpgdiff --git a/python/onnxruntime_infer/test_images/rec_images/imgs_words_ch/1.png b/python/resources/test_images/rec_images/imgs_words_ch/1.pngsimilarity index 100%rename from python/onnxruntime_infer/test_images/rec_images/imgs_words_ch/1.pngrename to python/resources/test_images/rec_images/imgs_words_ch/1.pngdiff --git a/python/onnxruntime_infer/test_images/rec_images/imgs_words_ch/2.png b/python/resources/test_images/rec_images/imgs_words_ch/2.pngsimilarity index 100%rename from python/onnxruntime_infer/test_images/rec_images/imgs_words_ch/2.pngrename to python/resources/test_images/rec_images/imgs_words_ch/2.pngdiff --git a/python/onnxruntime_infer/test_images/rec_images/imgs_words_en/word_10.png b/python/resources/test_images/rec_images/imgs_words_en/word_10.pngsimilarity index 100%rename from python/onnxruntime_infer/test_images/rec_images/imgs_words_en/word_10.pngrename to python/resources/test_images/rec_images/imgs_words_en/word_10.pngdiff --git a/python/onnxruntime_infer/test_images/rec_images/imgs_words_japan/1.jpg b/python/resources/test_images/rec_images/imgs_words_japan/1.jpgsimilarity index 100%rename from python/onnxruntime_infer/test_images/rec_images/imgs_words_japan/1.jpgrename to python/resources/test_images/rec_images/imgs_words_japan/1.jpgdiff --git a/python/onnxruntime_infer/test_images/rec_images/imgs_words_korean/1.jpg b/python/resources/test_images/rec_images/imgs_words_korean/1.jpgsimilarity index 100%rename from python/onnxruntime_infer/test_images/rec_images/imgs_words_korean/1.jpgrename to python/resources/test_images/rec_images/imgs_words_korean/1.jpgdiff --git a/python/test_demo.py b/python/test_demo.pynew file mode 100644index 0000000..71d5c01--- /dev/null+++ b/python/test_demo.py@@ -0,0 +1,95 @@+import math+import random+from pathlib import Path++import cv2+import numpy as np+from PIL import Image, ImageDraw, ImageFont++from rapidocr_onnxruntime import TextSystem+++def draw_ocr_box_txt(image, boxes, txts, font_path,+ scores=None, text_score=0.5):+ if not Path(font_path).exists():+ raise FileNotFoundError(f'The {font_path} does not exists! \n'+ f'Please download the file in the https://drive.google.com/drive/folders/1x_a9KpCo_1blxH1xFOfgKVkw1HYRVywY')++ h, w = image.height, image.width+ img_left = image.copy()+ img_right = Image.new('RGB', (w, h), (255, 255, 255))++ random.seed(0)+ draw_left = ImageDraw.Draw(img_left)+ draw_right = ImageDraw.Draw(img_right)+ for idx, (box, txt) in enumerate(zip(boxes, txts)):+ if scores is not None and scores[idx] < text_score:+ continue++ color = (random.randint(0, 255),+ random.randint(0, 255),+ random.randint(0, 255))+ draw_left.polygon(box, fill=color)+ draw_right.polygon([box[0][0], box[0][1],+ box[1][0], box[1][1],+ box[2][0], box[2][1],+ box[3][0], box[3][1]],+ outline=color)++ box_height = math.sqrt((box[0][0] - box[3][0])**2+ + (box[0][1] - box[3][1])**2)++ box_width = math.sqrt((box[0][0] - box[1][0])**2+ + (box[0][1] - box[1][1])**2)++ if box_height > 2 * box_width:+ font_size = max(int(box_width * 0.9), 10)+ font = ImageFont.truetype(font_path, font_size,+ encoding="utf-8")+ cur_y = box[0][1]+ for c in txt:+ char_size = font.getsize(c)+ draw_right.text((box[0][0] + 3, cur_y), c,+ fill=(0, 0, 0), font=font)+ cur_y += char_size[1]+ else:+ font_size = max(int(box_height * 0.8), 10)+ font = ImageFont.truetype(font_path, font_size, encoding="utf-8")+ draw_right.text([box[0][0], box[0][1]], txt,+ fill=(0, 0, 0), font=font)++ img_left = Image.blend(image, img_left, 0.5)+ img_show = Image.new('RGB', (w * 2, h), (255, 255, 255))+ img_show.paste(img_left, (0, 0, w, h))+ img_show.paste(img_right, (w, 0, w * 2, h))+ return np.array(img_show)+++def visualize(image_path, boxes, rec_res, font_path="fonts/msyh.ttc"):+ image = Image.open(image_path)+ txts = [rec_res[i][0] for i in range(len(rec_res))]+ scores = [rec_res[i][1] for i in range(len(rec_res))]++ draw_img = draw_ocr_box_txt(image, boxes,+ txts, font_path,+ scores,+ text_score=0.5)++ draw_img_save = Path("./inference_results/")+ if not draw_img_save.exists():+ draw_img_save.mkdir(parents=True, exist_ok=True)++ image_save = str(draw_img_save / f'infer_{Path(image_path).name}')+ cv2.imwrite(image_save, draw_img[:, :, ::-1])+ print(f'The infer result has saved in {image_save}')+++if __name__ == '__main__':+ config_path = 'resources/config.yaml'+ text_sys = TextSystem(config_path)++ image_path = r'resources/test_images/det_images/ch_en_num.jpg'+ img = cv2.imread(image_path)+ dt_boxes, rec_res = text_sys(img)+ visualize(image_path, dt_boxes, rec_res,+ font_path='resources/fonts/msyh.ttc')\ No newline at end of filediff --git a/python/test_images/det_images/ch_en_num.jpg b/python/test_images/det_images/ch_en_num.jpgnew file mode 100644index 0000000..d352416Binary files /dev/null and b/python/test_images/det_images/ch_en_num.jpg differdiff --git a/python/test_images/det_images/en_num.png b/python/test_images/det_images/en_num.pngnew file mode 100644index 0000000..6ef7767Binary files /dev/null and b/python/test_images/det_images/en_num.png differdiff --git a/python/test_images/det_images/japan.png b/python/test_images/det_images/japan.pngnew file mode 100644index 0000000..733c64eBinary files /dev/null and b/python/test_images/det_images/japan.png differdiff --git a/python/test_images/det_images/korean_1.jpg b/python/test_images/det_images/korean_1.jpgnew file mode 100644index 0000000..4259c04Binary files /dev/null and b/python/test_images/det_images/korean_1.jpg differ