Commit
·
fd48a0f
1
Parent(s):
b9ce6e0
Add Json Parsed example
Browse files
README.md
CHANGED
@@ -22,8 +22,15 @@ This model is based on the `naver-clova-ix/donut-base` model. The training datas
|
|
22 |
The model could be used to detect the nutritional facts or compositions from images of food or drug packages. It is capable to create a json format of the components described in the image. However, due to lack of data, the texts in the image must be concisely upright.
|
23 |
|
24 |
### Output Example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
```python
|
26 |
-
'
|
27 |
```
|
28 |
|
29 |
### How to use
|
|
|
22 |
The model could be used to detect the nutritional facts or compositions from images of food or drug packages. It is capable to create a json format of the components described in the image. However, due to lack of data, the texts in the image must be concisely upright.
|
23 |
|
24 |
### Output Example
|
25 |
+
|
26 |
+
Model Output :
|
27 |
+
```python
|
28 |
+
'<s_kmpsi><s_komposisi><s_obat>Vitamin E</s_obat><s_takaran>30 I.U.</s_takaran><sep/><s_obat>Tiamin HCl (B1)</s_obat><s_takaran>100 mg</s_takaran><sep/><s_obat>Piridoksin HCl (B6)</s_obat><s_takaran>50 mg</s_takaran><sep/><s_obat>Sianokobalamin (B12)</s_obat><s_takaran>100 mcg</s_takaran><sep/><s_obat>K-l-aspartat</s_obat><s_takaran>100 mg</s_takaran><sep/><s_obat>Mg-l-aspartat</s_obat><s_takaran>100 mg</s_takaran></s_komposisi><s_desc></s_desc></s_kmpsi>'
|
29 |
+
```
|
30 |
+
|
31 |
+
Json Parsed Output :
|
32 |
```python
|
33 |
+
{'komposisi': [{'obat': 'Vitamin E', 'takaran': '30 I.U.'}, {'obat': 'Tiamin HCl (B1)', 'takaran': '100 mg'}, {'obat': 'Piridoksin HCl (B6)', 'takaran': '50 mg'}, {'obat': 'Sianokobalamin (B12)', 'takaran': '100 mcg'}, {'obat': 'K-l-aspartat', 'takaran': '100 mg'}, {'obat': 'Mg-l-aspartat', 'takaran': '100 mg'}], 'desc': ''}
|
34 |
```
|
35 |
|
36 |
### How to use
|