Update README.md
Browse files
README.md
CHANGED
@@ -43,7 +43,18 @@ The resulting MFR model can be used to convert images of mathematical formulas i
|
|
43 |
- Pix2Text Online Free Service: [p2t.breezedeus.com](https://p2t.breezedeus.com/) ;
|
44 |
- Pix2Text More: [breezedeus.com/pix2text](https://breezedeus.com/pix2text) ;
|
45 |
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
## Model Use / 模型使用
|
49 |
|
@@ -54,7 +65,7 @@ This method doesn't need to install pix2text, but can only recognize pure formul
|
|
54 |
这种方法无需安装 pix2text,但只能识别纯公式图片。
|
55 |
|
56 |
```python
|
57 |
-
#! pip install transformers>=4.37.0 pillow optimum
|
58 |
from PIL import Image
|
59 |
from transformers import TrOCRProcessor
|
60 |
from optimum.onnxruntime import ORTModelForVision2Seq
|
|
|
43 |
- Pix2Text Online Free Service: [p2t.breezedeus.com](https://p2t.breezedeus.com/) ;
|
44 |
- Pix2Text More: [breezedeus.com/pix2text](https://breezedeus.com/pix2text) ;
|
45 |
|
46 |
+
|
47 |
+
## Examples / 示例
|
48 |
+
|
49 |
+
### Printed Math Formula Images / 印刷体公式图片
|
50 |
+
|
51 |
+

|
52 |
+
|
53 |
+
|
54 |
+
### Handwritten Math Formula Images / 印刷体公式图片
|
55 |
+
|
56 |
+

|
57 |
+
|
58 |
|
59 |
## Model Use / 模型使用
|
60 |
|
|
|
65 |
这种方法无需安装 pix2text,但只能识别纯公式图片。
|
66 |
|
67 |
```python
|
68 |
+
#! pip install transformers>=4.37.0 pillow optimum[onnxruntime]
|
69 |
from PIL import Image
|
70 |
from transformers import TrOCRProcessor
|
71 |
from optimum.onnxruntime import ORTModelForVision2Seq
|