Skip to content

Commit c794f03

Browse files
committed
Fix
1 parent 9e7a1f4 commit c794f03

File tree

17 files changed

+36
-36
lines changed

17 files changed

+36
-36
lines changed

README_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PaddleOCR is being oversight by a [PMC](https://github.com/PaddlePaddle/PaddleOC
3131

3232
- **🔥 2024.10.18 release PaddleOCR v2.9, including**:
3333
- PaddleX, an All-in-One development tool based on PaddleOCR's advanced technology, supports low-code full-process development capabilities in the OCR field:
34-
- 🎨 [**Rich Model One-Click Call**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/quick_start.html): Integrates **17 models** related to text image intelligent analysis, general OCR, general layout parsing, table recognition, formula recognition, and seal recognition into 6 pipelines, which can be quickly experienced through a simple **Python API one-click call**. In addition, the same set of APIs also supports a total of **200+ models** in image classification, object detection, image segmentation, and time series forcasting, forming 20+ single-function modules, making it convenient for developers to use **model combinations**.
34+
- 🎨 [**Rich Model One-Click Call**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/quick_start.html): Integrates **17 models** related to text image intelligent analysis, general OCR, general layout parsing, table recognition, formula recognition, and seal recognition into 6 pipelines, which can be quickly experienced through a simple **Python API one-click call**. In addition, the same set of APIs also supports a total of **200+ models** in image classification, object detection, image segmentation, and time series forecasting, forming 20+ single-function modules, making it convenient for developers to use **model combinations**.
3535

3636
- 🚀 [**High Efficiency and Low barrier of entry**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/overview.html): Provides two methods based on **unified commands** and **GUI** to achieve simple and efficient use, combination, and customization of models. Supports multiple deployment methods such as **high-performance inference, service-oriented deployment, and edge deployment**. Additionally, for various mainstream hardware such as **NVIDIA GPU, Kunlunxin XPU, Ascend NPU, Cambricon MLU, and Haiguang DCU**, models can be developed with **seamless switching**.
3737

benchmark/PaddleOCR_DBNet/data_loader/modules/make_shrink_map.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ def shrink_polygon_pyclipper(polygon, shrink_ratio):
2424
subject = [tuple(l) for l in polygon]
2525
padding = pyclipper.PyclipperOffset()
2626
padding.AddPath(subject, pyclipper.JT_ROUND, pyclipper.ET_CLOSEDPOLYGON)
27-
shrinked = padding.Execute(-distance)
28-
if shrinked == []:
29-
shrinked = np.array(shrinked)
27+
shrunk = padding.Execute(-distance)
28+
if shrunk == []:
29+
shrunk = np.array(shrunk)
3030
else:
31-
shrinked = np.array(shrinked[0]).reshape(-1, 2)
32-
return shrinked
31+
shrunk = np.array(shrunk[0]).reshape(-1, 2)
32+
return shrunk
3333

3434

3535
class MakeShrinkMap:
@@ -69,12 +69,12 @@ def __call__(self, data: dict) -> dict:
6969
cv2.fillPoly(mask, polygon.astype(np.int32)[np.newaxis, :, :], 0)
7070
ignore_tags[i] = True
7171
else:
72-
shrinked = self.shrink_func(polygon, self.shrink_ratio)
73-
if shrinked.size == 0:
72+
shrunk = self.shrink_func(polygon, self.shrink_ratio)
73+
if shrunk.size == 0:
7474
cv2.fillPoly(mask, polygon.astype(np.int32)[np.newaxis, :, :], 0)
7575
ignore_tags[i] = True
7676
continue
77-
cv2.fillPoly(gt, [shrinked.astype(np.int32)], 1)
77+
cv2.fillPoly(gt, [shrunk.astype(np.int32)], 1)
7878

7979
data["shrink_map"] = gt
8080
data["shrink_mask"] = mask

deploy/cpp_infer/src/args.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
#include <gflags/gflags.h>
1616

1717
// common args
18-
DEFINE_bool(use_gpu, false, "Infering with GPU or CPU.");
18+
DEFINE_bool(use_gpu, false, "Inferring with GPU or CPU.");
1919
DEFINE_bool(use_tensorrt, false, "Whether use tensorrt.");
2020
DEFINE_int32(gpu_id, 0, "Device id of GPU to execute.");
21-
DEFINE_int32(gpu_mem, 4000, "GPU id when infering with GPU.");
21+
DEFINE_int32(gpu_mem, 4000, "GPU id when inferring with GPU.");
2222
DEFINE_int32(cpu_threads, 10, "Num of threads with CPU.");
2323
DEFINE_bool(enable_mkldnn, false, "Whether use mkldnn with CPU.");
2424
DEFINE_string(precision, "fp32", "Precision be one of fp32/fp16/int8");

docs/applications/光功率计数码管字符识别.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ python3 -m pip install paddleocr
5353
![](./images/8dca91f016884e16ad9216d416da72ea08190f97d87b4be883f15079b7ebab9a.jpeg)
5454

5555
```bash linenums="1"
56-
paddleocr --lang=ch --det=Fase --image_dir=data
56+
paddleocr --lang=ch --det=False --image_dir=data
5757
```
5858

5959
得到如下测试结果:

docs/applications/液晶屏读数识别.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ python tools/eval.py -c configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_student.yml -o G
182182

183183
```python linenums="1"
184184
cd ./pretrained_models/
185-
# transform teacher params in best_accuracy.pdparams into teacher_dml.paramers
185+
# transform teacher params in best_accuracy.pdparams into teacher_dml.pdparams
186186
import paddle
187187

188188
# load pretrained model

docs/index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PaddleOCR is being oversight by a [PMC](https://github.com/PaddlePaddle/PaddleOC
3232

3333
- **🔥 2024.10.18 release PaddleOCR v2.9, including**:
3434
- PaddleX, an All-in-One development tool based on PaddleOCR's advanced technology, supports low-code full-process development capabilities in the OCR field:
35-
- 🎨 [**Rich Model One-Click Call**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/quick_start.html): Integrates **17 models** related to text image intelligent analysis, general OCR, general layout parsing, table recognition, formula recognition, and seal recognition into 6 pipelines, which can be quickly experienced through a simple **Python API one-click call**. In addition, the same set of APIs also supports a total of **200+ models** in image classification, object detection, image segmentation, and time series forcasting, forming 20+ single-function modules, making it convenient for developers to use **model combinations**.
35+
- 🎨 [**Rich Model One-Click Call**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/quick_start.html): Integrates **17 models** related to text image intelligent analysis, general OCR, general layout parsing, table recognition, formula recognition, and seal recognition into 6 pipelines, which can be quickly experienced through a simple **Python API one-click call**. In addition, the same set of APIs also supports a total of **200+ models** in image classification, object detection, image segmentation, and time series forecasting, forming 20+ single-function modules, making it convenient for developers to use **model combinations**.
3636

3737
- 🚀 [**High Efficiency and Low barrier of entry**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/overview.html): Provides two methods based on **unified commands** and **GUI** to achieve simple and efficient use, combination, and customization of models. Supports multiple deployment methods such as **high-performance inference, service-oriented deployment, and edge deployment**. Additionally, for various mainstream hardware such as **NVIDIA GPU, Kunlunxin XPU, Ascend NPU, Cambricon MLU, and Haiguang DCU**, models can be developed with **seamless switching**.
3838

docs/paddlex/overview.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The All-in-One development tool [PaddleX](https://github.com/PaddlePaddle/PaddleX/tree/release/3.0-beta1), based on the advanced technology of PaddleOCR, supports **low-code full-process** development capabilities in the OCR field. Through low-code development, simple and efficient model use, combination, and customization can be achieved. This will significantly **reduce the time consumption** of model development, **lower its development difficulty**, and greatly accelerate the application and promotion speed of models in the industry. Features include:
44

5-
* 🎨 [**Rich Model One-Click Call**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/quick_start.html): Integrates **17 models** related to text image intelligent analysis, general OCR, general layout parsing, table recognition, formula recognition, and seal recognition into 6 pipelines, which can be quickly experienced through a simple **Python API one-click call**. In addition, the same set of APIs also supports a total of **200+ models** in image classification, object detection, image segmentation, and time series forcasting, forming 20+ single-function modules, making it convenient for developers to use **model combinations**.
5+
* 🎨 [**Rich Model One-Click Call**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/quick_start.html): Integrates **17 models** related to text image intelligent analysis, general OCR, general layout parsing, table recognition, formula recognition, and seal recognition into 6 pipelines, which can be quickly experienced through a simple **Python API one-click call**. In addition, the same set of APIs also supports a total of **200+ models** in image classification, object detection, image segmentation, and time series forecasting, forming 20+ single-function modules, making it convenient for developers to use **model combinations**.
66

77
* 🚀 [**High Efficiency and Low barrier of entry**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/overview.html): Provides two methods based on **unified commands** and **GUI** to achieve simple and efficient use, combination, and customization of models. Supports multiple deployment methods such as **high-performance inference, service-oriented deployment, and edge deployment**. Additionally, for various mainstream hardware such as **NVIDIA GPU, Kunlunxin XPU, Ascend NPU, Cambricon MLU, and Haiguang DCU**, models can be developed with **seamless switching**.
88

docs/ppocr/model_train/tricks.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ Here we have sorted out some Chinese OCR training and prediction tricks, which a
6060

6161
- **Tips**
6262

63-
There are two possible methods for space recognition. (1) Optimize the text detection. For spliting the text at the space in detection results, it needs to divide the text line with space into many segments when label the data for detection. (2) Optimize the text recognition. The space character is introduced into the recognition dictionary. Label the blank line in the training data for text recognition. In addition, we can also concat multiple word lines to synthesize the training data with spaces. PaddleOCR currently uses the second method.
63+
There are two possible methods for space recognition. (1) Optimize the text detection. For splitting the text at the space in detection results, it needs to divide the text line with space into many segments when label the data for detection. (2) Optimize the text recognition. The space character is introduced into the recognition dictionary. Label the blank line in the training data for text recognition. In addition, we can also concat multiple word lines to synthesize the training data with spaces. PaddleOCR currently uses the second method.

docs/ppstructure/infer_deploy/index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Paddle provides a variety of deployment schemes to meet the deployment requireme
1010

1111
![img](./images/deployment-20240704135743247.png)
1212

13-
PP-OCR has supported muti deployment schemes. Click the link to get the specific tutorial.
13+
PP-OCR has supported multi deployment schemes. Click the link to get the specific tutorial.
1414

1515
- [Python Inference](./python_infer.en.md)
1616
- [C++ Inference](./cpp_infer.en.md)

docs/update.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hide:
99

1010
- **🔥 2024.10.18 release PaddleOCR v2.9, including**:
1111
* PaddleX, an All-in-One development tool based on PaddleOCR's advanced technology, supports low-code full-process development capabilities in the OCR field:
12-
* 🎨 [**Rich Model One-Click Call**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/quick_start.html): Integrates **17 models** related to text image intelligent analysis, general OCR, general layout parsing, table recognition, formula recognition, and seal recognition into 6 pipelines, which can be quickly experienced through a simple **Python API one-click call**. In addition, the same set of APIs also supports a total of **200+ models** in image classification, object detection, image segmentation, and time series forcasting, forming 20+ single-function modules, making it convenient for developers to use **model combinations**.
12+
* 🎨 [**Rich Model One-Click Call**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/quick_start.html): Integrates **17 models** related to text image intelligent analysis, general OCR, general layout parsing, table recognition, formula recognition, and seal recognition into 6 pipelines, which can be quickly experienced through a simple **Python API one-click call**. In addition, the same set of APIs also supports a total of **200+ models** in image classification, object detection, image segmentation, and time series forecasting, forming 20+ single-function modules, making it convenient for developers to use **model combinations**.
1313

1414
* 🚀 [**High Efficiency and Low barrier of entry**](https://paddlepaddle.github.io/PaddleOCR/latest/en/paddlex/overview.html): Provides two methods based on **unified commands** and **GUI** to achieve simple and efficient use, combination, and customization of models. Supports multiple deployment methods such as **high-performance inference, service-oriented deployment, and edge deployment**. Additionally, for various mainstream hardware such as **NVIDIA GPU, Kunlunxin XPU, Ascend NPU, Cambricon MLU, and Haiguang DCU**, models can be developed with **seamless switching**.
1515

0 commit comments

Comments
 (0)