breezedeus
commited on
Commit
•
bea257e
1
Parent(s):
43f1c64
Update README.md
Browse files
README.md
CHANGED
@@ -41,7 +41,9 @@ The resulting MFR model can be used to convert images of mathematical formulas i
|
|
41 |
- [Pix2Text V1.0 New Release: The Best Open-Source Formula Recognition Model | Breezedeus.com](https://www.breezedeus.com/article/p2t-v1.0) ;
|
42 |
- Pix2Text (P2T) Github: [breezedeus/pix2text](https://github.com/breezedeus/Pix2Text) ;
|
43 |
- Pix2Text Online Free Service: [p2t.breezedeus.com](https://p2t.breezedeus.com/) ;
|
44 |
-
- Pix2Text
|
|
|
|
|
45 |
|
46 |
|
47 |
## Examples / 示例
|
@@ -93,11 +95,11 @@ This method requires the installation of pix2text, utilizing the Mathematical Fo
|
|
93 |
这种方法需要安装 pix2text,借助 Pix2Text 中的数学公式检测模型(MFD),它不仅可以识别纯公式图片,还可以识别包含文本的混合图片。
|
94 |
|
95 |
```bash
|
96 |
-
$ pip install pix2text>=1.
|
97 |
```
|
98 |
|
99 |
```python
|
100 |
-
#! pip install pix2text>=1.
|
101 |
|
102 |
from pix2text import Pix2Text, merge_line_texts
|
103 |
|
@@ -106,16 +108,16 @@ image_fps = [
|
|
106 |
'examples/42.png',
|
107 |
'examples/0000186.png',
|
108 |
]
|
109 |
-
p2t = Pix2Text()
|
110 |
outs = p2t.recognize_formula(image_fps) # recognize pure formula images
|
111 |
|
112 |
-
outs2 = p2t.recognize('examples/mixed.jpg') # recognize mixed images
|
113 |
-
print(
|
114 |
```
|
115 |
|
116 |
### Method 3: Notebook
|
117 |
|
118 |
-
Just try Pix2Text with this notebook: [https://github.com/breezedeus/Pix2Text/blob/main/
|
119 |
|
120 |
|
121 |
## Performance / 性能
|
@@ -145,6 +147,6 @@ As can be seen from the figure above, the Pix2Text V1.0 MFR open-source free ver
|
|
145 |
|
146 |
> Where to send questions or comments about the model.
|
147 |
|
148 |
-
Welcome to contact the author [Breezedeus](https://www.breezedeus.com/join-group).
|
149 |
|
150 |
-
欢迎联系作者 [Breezedeus](https://www.breezedeus.com/join-group) 。
|
|
|
41 |
- [Pix2Text V1.0 New Release: The Best Open-Source Formula Recognition Model | Breezedeus.com](https://www.breezedeus.com/article/p2t-v1.0) ;
|
42 |
- Pix2Text (P2T) Github: [breezedeus/pix2text](https://github.com/breezedeus/Pix2Text) ;
|
43 |
- Pix2Text Online Free Service: [p2t.breezedeus.com](https://p2t.breezedeus.com/) ;
|
44 |
+
- Pix2Text Online Docs: [Docs](https://pix2text.readthedocs.io) ;
|
45 |
+
- Pix2Text More: [breezedeus.com/pix2text](https://breezedeus.com/article/pix2text) ;
|
46 |
+
- Pix2Text Discard: https://discord.gg/GgD87WM8Tf
|
47 |
|
48 |
|
49 |
## Examples / 示例
|
|
|
95 |
这种方法需要安装 pix2text,借助 Pix2Text 中的数学公式检测模型(MFD),它不仅可以识别纯公式图片,还可以识别包含文本的混合图片。
|
96 |
|
97 |
```bash
|
98 |
+
$ pip install pix2text>=1.1
|
99 |
```
|
100 |
|
101 |
```python
|
102 |
+
#! pip install pix2text>=1.1
|
103 |
|
104 |
from pix2text import Pix2Text, merge_line_texts
|
105 |
|
|
|
108 |
'examples/42.png',
|
109 |
'examples/0000186.png',
|
110 |
]
|
111 |
+
p2t = Pix2Text.from_config()
|
112 |
outs = p2t.recognize_formula(image_fps) # recognize pure formula images
|
113 |
|
114 |
+
outs2 = p2t.recognize('examples/mixed.jpg', file_type='text_formula', return_text=True, save_analysis_res='mixed-out.jpg') # recognize mixed images
|
115 |
+
print(outs2)
|
116 |
```
|
117 |
|
118 |
### Method 3: Notebook
|
119 |
|
120 |
+
Just try Pix2Text with this notebook: [https://github.com/breezedeus/Pix2Text/blob/main/pix2text_v1_1.ipynb](https://github.com/breezedeus/Pix2Text/blob/main/pix2text_v1_1.ipynb).
|
121 |
|
122 |
|
123 |
## Performance / 性能
|
|
|
147 |
|
148 |
> Where to send questions or comments about the model.
|
149 |
|
150 |
+
Welcome to contact the author [Breezedeus](https://www.breezedeus.com/article/join-group).
|
151 |
|
152 |
+
欢迎联系作者 [Breezedeus](https://www.breezedeus.com/article/join-group) 。
|