Skip to content

📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

Update README and fix issue #85

SWHL9ed67f888f2c
diff --git a/README.md b/README.md
index 3295407..294763a 100755
--- a/README.md
+++ b/README.md
@@ -32,9 +32,9 @@
- [简介](#简介)
- [文档导航](#文档导航)
- [近期更新(more)](#近期更新more)
+ - [🌹2023-05-14 ocrweb v0.1.5 update:](#2023-05-14-ocrweb-v015-update)
- [🏸2023-04-16 ocrweb v0.1.1 update:](#2023-04-16-ocrweb-v011-update)
- [🎮2023-03-11 v1.2.2 update:](#2023-03-11-v122-update)
- - [🧢2023-03-07 v1.2.1 update:](#2023-03-07-v121-update)
- [生态框架](#生态框架)
- [在线demo](#在线demo)
- [TODO以及任务认领](#todo以及任务认领)
@@ -102,19 +102,17 @@
## 近期更新([more](https://github.com/RapidAI/RapidOCR/blob/main/docs/change_log.md))
+#### 🌹2023-05-14 ocrweb v0.1.5 update:
+- 增加界面版返回坐标框的返回值([issue #85](https://github.com/RapidAI/RapidOCR/issues/85))
+- API模式增加base64格式传入
+- 详情参见:[link](https://github.com/RapidAI/RapidOCR/blob/main/ocrweb/README.md)
#### 🏸2023-04-16 ocrweb v0.1.1 update:
- API部署改为FastAPI库支持
- 将API模式与Web解耦合,可通过`pip install rapidocr_web[api]`来选择性安装
- 详情参见:[link](https://github.com/RapidAI/RapidOCR/blob/main/ocrweb/README.md)
-
#### 🎮2023-03-11 v1.2.2 update:
- 修复实例化python中RapidOCR类传入参数错误
-#### 🧢2023-03-07 v1.2.1 update:
-- 优化python下rapidocr系列包的接口传入参数,支持实例化类时,动态给定各个参数,更加灵活。
-- 如果不指定,则用`config.yaml`下的默认参数。
-- 具体可参见:[传入参数](https://github.com/RapidAI/RapidOCR/blob/0a603b4e8919386f3647eca5cdeba7620b4988e0/python/README.md#%E6%8E%A8%E8%8D%90pip%E5%AE%89%E8%A3%85%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8)
-
## 生态框架
```mermaid
flowchart LR
diff --git a/docs/README_en.md b/docs/README_en.md
index 7887c78..303533e 100644
--- a/docs/README_en.md
+++ b/docs/README_en.md
@@ -30,9 +30,9 @@
- [Introduction](#introduction)
- [Navigation](#navigation)
- [Recently updates(more)](#recently-updatesmore)
+ - [🌹 2023-05-14 ocrweb v0.1.5 update:](#-2023-05-14-ocrweb-v015-update)
- [🏸2023-04-16 ocrweb v0.1.1 update:](#2023-04-16-ocrweb-v011-update)
- [🎮2023-03-11 v1.2.2 update:](#2023-03-11-v122-update)
- - [🧢2023-03-07 v1.2.1 update:](#2023-03-07-v121-update)
- [Overall Framework](#overall-framework)
- [Demo](#demo)
- [TODO and Task Claim](#todo-and-task-claim)
@@ -98,20 +98,17 @@
- [FAQ](https://github.com/RapidAI/RapidOCR/blob/main/docs/FAQ.md)
## Recently updates([more](https://github.com/RapidAI/RapidOCR/blob/main/docs/change_log_en.md))
+#### 🌹 2023-05-14 ocrweb v0.1.5 update:
+- Add the return value of the interface version's return coordinate box ([issue #85](https://github.com/RapidAI/RapidOCR/issues/85))
+- API mode adds base64 format input
+- For details, please refer to: [link](https://github.com/RapidAI/RapidOCR/blob/main/ocrweb/README.md)
#### 🏸2023-04-16 ocrweb v0.1.1 update:
- API deployment changed to FastAPI library support.
- Decouple the API mode from the Web, which can be installed selectively through `pip install rapidocr_web[api]`.
- See details for [link](https://github.com/RapidAI/RapidOCR/blob/main/ocrweb/README.md).
-
#### 🎮2023-03-11 v1.2.2 update:
- Fix the incoming parameter error of RapidOCR class in instantiation python
-#### 🧢2023-03-07 v1.2.1 update:
-- `rapidocr` series package updated to `v1.2.0`
-- Optimize the interface input parameters of the rapidocr series package under python, and support the dynamic setting of each parameter when instantiating a class, which is more flexible.
-- If not specified, the default parameters under `config.yaml` will be used.
-- For details, please refer to: [Input parameters](https://github.com/RapidAI/RapidOCR/blob/0a603b4e8919386f3647eca5cdeba7620b4988e0/python/README.md#%E6%8E%A8%E8%8D%90pip%E5%AE%89%E8%A3%85%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8)
-
## Overall Framework
```mermaid
flowchart LR
diff --git a/docs/change_log.md b/docs/change_log.md
index 861cffa..6b17307 100644
--- a/docs/change_log.md
+++ b/docs/change_log.md
@@ -1,3 +1,8 @@
+#### 🌹2023-05-14 ocrweb v0.1.5 update:
+- 增加界面版返回坐标框的返回值([issue #85](https://github.com/RapidAI/RapidOCR/issues/85))
+- API模式增加base64格式传入
+- 详情参见:[link](https://github.com/RapidAI/RapidOCR/blob/main/ocrweb/README.md)
+
#### 🏸2023-04-16 ocrweb v0.1.1 update:
- API部署改为FastAPI库支持
- 将API模式与Web解耦合,可通过`pip install rapidocr_web[api]`来选择性安装
diff --git a/docs/change_log_en.md b/docs/change_log_en.md
index e16d25a..49ea967 100644
--- a/docs/change_log_en.md
+++ b/docs/change_log_en.md
@@ -1,3 +1,8 @@
+#### 🌹 2023-05-14 ocrweb v0.1.5 update:
+- Add the return value of the interface version's return coordinate box ([issue #85](https://github.com/RapidAI/RapidOCR/issues/85))
+- API mode adds base64 format input
+- For details, please refer to: [link](https://github.com/RapidAI/RapidOCR/blob/main/ocrweb/README.md)
+
#### 🏸2023-04-16 ocrweb v0.1.1 update:
- API deployment changed to FastAPI library support.
- Decouple the API mode from the Web, which can be installed selectively through `pip install rapidocr_web[api]`.
diff --git a/docs/doc_whl_rapidocr_web.md b/docs/doc_whl_rapidocr_web.md
index e5c3394..928e4ec 100644
--- a/docs/doc_whl_rapidocr_web.md
+++ b/docs/doc_whl_rapidocr_web.md
@@ -50,19 +50,35 @@
$ rapidocr_api -ip 0.0.0.0 -p 9003
```
3. Use
- ```python
- import requests
+ - Send image data by file format.
+ ```python
+ import requests
- url = 'http://localhost:9003/ocr'
- img_path = '../python/tests/test_files/ch_en_num.jpg'
+ url = 'http://localhost:9003/ocr'
+ img_path = '../python/tests/test_files/ch_en_num.jpg'
- with open(img_path, 'rb') as f:
- file_dict = {'image': (img_path, f, 'image/png')}
- response = requests.post(url, files=file_dict, timeout=60)
+ with open(img_path, 'rb') as f:
+ file_dict = {'image_file': (img_path, f, 'image/png')}
+ response = requests.post(url, files=file_dict, timeout=60)
- res_rec = response.json()
- print(res_rec)
- ```
+ print(response.json())
+ ```
+ - Send image data by base64 format.
+ ```python
+ import base64
+ import requests
+
+ url = 'http://localhost:9003/ocr'
+ img_path = '../python/tests/test_files/ch_en_num.jpg'
+
+ with open(img_path, 'rb') as fa:
+ img_str = base64.b64encode(fa.read())
+
+ payload = {'image_data': img_str}
+ resp = requests.post(url, data=payload)
+
+ print(resp.json())
+ ```
4. Output
<details>
<summary>Click to expand</summary>