Skip to content

Commit c31ce2f

Browse files
committed
update documentation about the installation
1 parent 56fc05e commit c31ce2f

File tree

6 files changed

+20
-19
lines changed

6 files changed

+20
-19
lines changed

doc/doc_ch/multi_languages.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ pip install paddlepaddle-gpu
5757

5858
pip 安装
5959
```
60-
pip install "paddleocr>=2.0.6" # 推荐使用2.0.6版本
60+
pip install paddleocr
6161
```
62+
6263
本地构建并安装
6364
```
64-
python3 setup.py bdist_wheel
65+
python3 -m build
6566
pip3 install dist/paddleocr-x.x.x-py3-none-any.whl # x.x.x是paddleocr的版本号
6667
```
6768

doc/doc_ch/quickstart.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222

2323
> 如果您没有基础的Python运行环境,请参考[运行环境准备](./environment.md)
2424
25-
- 您的机器安装的是CUDA9或CUDA10,请运行以下命令安装
25+
- 您的机器安装的是CUDA 11,请运行以下命令安装
2626

2727
```bash
28-
python3 -m pip install paddlepaddle-gpu -i https://mirror.baidu.com/pypi/simple
28+
python3 -m pip install paddlepaddle-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple
2929
```
3030

3131
- 您的机器是CPU,请运行以下命令安装
3232

3333
```bash
34-
python3 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
34+
python3 -m pip install paddlepaddle -i https://pypi.tuna.tsinghua.edu.cn/simple
3535
```
3636

3737
更多的版本需求,请参照[飞桨官网安装文档](https://www.paddlepaddle.org.cn/install/quick)中的说明进行操作。
@@ -40,7 +40,7 @@
4040
### 1.2 安装PaddleOCR whl包
4141

4242
```bash
43-
pip install "paddleocr>=2.0.1" # 推荐使用2.0.1+版本
43+
pip install paddleocr
4444
```
4545

4646
- 对于Windows环境用户:直接通过pip安装的shapely库可能出现`[winRrror 126] 找不到指定模块的问题`。建议从[这里](https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely)下载shapely安装包完成安装。
@@ -276,8 +276,8 @@ font = ImageFont.truetype("./doc/fonts/simfang.ttf", size=20) # 根据需要调
276276
# 处理并绘制结果
277277
for res in results:
278278
for line in res:
279-
box = [tuple(point) for point in line[0]] # 将列表转换为元组列表
280-
# 将四个角转换为两个角
279+
box = [tuple(point) for point in line[0]]
280+
# 找出边界框
281281
box = [(min(point[0] for point in box), min(point[1] for point in box)),
282282
(max(point[0] for point in box), max(point[1] for point in box))]
283283
txt = line[1][0]

doc/doc_ch/whl.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
pip安装
88

99
```bash
10-
pip install "paddleocr>=2.0.1" # 推荐使用2.0.1+版本
10+
pip install paddleocr
1111
```
1212

1313
本地构建并安装
1414

1515
```bash
16-
python3 setup.py bdist_wheel
16+
python3 -m build
1717
pip3 install dist/paddleocr-x.x.x-py3-none-any.whl # x.x.x是paddleocr的版本号
1818
```
1919

doc/doc_en/multi_languages_en.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ pip install paddlepaddle-gpu
5858

5959
pip install
6060
```
61-
pip install "paddleocr>=2.0.6" # 2.0.6 version is recommended
61+
pip install paddleocr
6262
```
6363
Build and install locally
6464
```
65-
python3 setup.py bdist_wheel
65+
python3 -m build
6666
pip3 install dist/paddleocr-x.x.x-py3-none-any.whl # x.x.x is the version number of paddleocr
6767
```
6868

doc/doc_en/quickstart_en.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525

2626
> If you do not have a Python environment, please refer to [Environment Preparation](./environment_en.md).
2727
28-
- If you have CUDA 9 or CUDA 10 installed on your machine, please run the following command to install
28+
- If you have CUDA 11 installed on your machine, please run the following command to install
2929

3030
```bash
31-
python -m pip install paddlepaddle-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple
31+
python -m pip install paddlepaddle-gpu
3232
```
3333

3434
- If you have no available GPU on your machine, please run the following command to install the CPU version
3535

3636
```bash
37-
python -m pip install paddlepaddle -i https://pypi.tuna.tsinghua.edu.cn/simple
37+
python -m pip install paddlepaddle
3838
```
3939

40-
For more software version requirements, please refer to the instructions in [Installation Document](https://www.paddlepaddle.org.cn/install/quick) for operation.
40+
For more software version requirements, please refer to the instructions in [Installation Document](https://www.paddlepaddle.org.cn/en/install/quick) for operation.
4141

4242
<a name="12-install-paddleocr-whl-package"></a>
4343

@@ -289,8 +289,8 @@ font = ImageFont.truetype("./doc/fonts/simfang.ttf", size=20) # Adjust size as
289289
# Process and draw results
290290
for res in results:
291291
for line in res:
292-
box = [tuple(point) for point in line[0]] # Convert list of lists to list of tuples
293-
# Convert four corners to two corners
292+
box = [tuple(point) for point in line[0]]
293+
# Finding the bounding box
294294
box = [(min(point[0] for point in box), min(point[1] for point in box)),
295295
(max(point[0] for point in box), max(point[1] for point in box))]
296296
txt = line[1][0]

doc/doc_en/whl_en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pip install "paddleocr>=2.0.1" # Recommend to use version 2.0.1+
99

1010
build own whl package and install
1111
```bash
12-
python3 setup.py bdist_wheel
12+
python3 -m build
1313
pip3 install dist/paddleocr-x.x.x-py3-none-any.whl # x.x.x is the version of paddleocr
1414
```
1515
## 2 Use

0 commit comments

Comments
 (0)