Update README.md
Browse files
README.md
CHANGED
|
@@ -51,7 +51,7 @@ This method doesn't need to install pix2text, but can only recognize pure formul
|
|
| 51 |
|
| 52 |
这种方法无需安装 pix2text,但只能识别纯公式图片。
|
| 53 |
|
| 54 |
-
```
|
| 55 |
#! pip install pillow transformers optimum
|
| 56 |
from PIL import Image
|
| 57 |
from transformers import TrOCRProcessor
|
|
@@ -83,7 +83,7 @@ This method requires the installation of pix2text, utilizing the Mathematical Fo
|
|
| 83 |
$ pip install pix2text
|
| 84 |
```
|
| 85 |
|
| 86 |
-
```
|
| 87 |
#! pip install pix2text
|
| 88 |
|
| 89 |
from pix2text import Pix2Text, merge_line_texts
|
|
|
|
| 51 |
|
| 52 |
这种方法无需安装 pix2text,但只能识别纯公式图片。
|
| 53 |
|
| 54 |
+
```python
|
| 55 |
#! pip install pillow transformers optimum
|
| 56 |
from PIL import Image
|
| 57 |
from transformers import TrOCRProcessor
|
|
|
|
| 83 |
$ pip install pix2text
|
| 84 |
```
|
| 85 |
|
| 86 |
+
```python
|
| 87 |
#! pip install pix2text
|
| 88 |
|
| 89 |
from pix2text import Pix2Text, merge_line_texts
|