Update README.md
Browse files
README.md
CHANGED
@@ -19,22 +19,22 @@ git checkout f7c6c04
|
|
19 |
|
20 |
### Install Dependencies
|
21 |
|
22 |
-
The author has not provided requirements.txt file, but `environment.yml` from our conda environment has been uploaded, This file can be used to recreate environment for
|
23 |
|
24 |
|
25 |
### Suryolo Pipeline
|
26 |
|
27 |
-
Download `
|
28 |
-
Place `
|
29 |
|
30 |
```python
|
31 |
-
from
|
32 |
from surya.postprocessing.heatmap import draw_bboxes_on_image
|
33 |
from PIL import Image
|
34 |
|
35 |
image_path = "sample.jpg"
|
36 |
image = Image.open(image_path)
|
37 |
-
bboxes =
|
38 |
plotted_image = draw_bboxes_on_image(bboxes,image)
|
39 |
```
|
40 |
#### Refer to `benchmark.ipynb` for comparison between Traditional Surya Layout Model and Suryolo Layout Model.
|
|
|
19 |
|
20 |
### Install Dependencies
|
21 |
|
22 |
+
The author has not provided requirements.txt file, but `environment.yml` from our conda environment has been uploaded, This file can be used to recreate environment for arabic_layout_model model.
|
23 |
|
24 |
|
25 |
### Suryolo Pipeline
|
26 |
|
27 |
+
Download `ArabicDoc.cpython-310-x86_64-linux-gnu.so` , `10x_best.pt` and `surya folder` from the Repository.
|
28 |
+
Place `ArabicDoc.cpython-310-x86_64-linux-gnu.so`, `10x_best.pt` and `surya folder` in same directory (They are dependent on each other).
|
29 |
|
30 |
```python
|
31 |
+
from ArabicDoc import arabic_layout_model # This import will originate from ArabicDoc.cpython-310-x86_64-linux-gnu.so , which is present in the repo. Also this works with Linux based OS only.
|
32 |
from surya.postprocessing.heatmap import draw_bboxes_on_image
|
33 |
from PIL import Image
|
34 |
|
35 |
image_path = "sample.jpg"
|
36 |
image = Image.open(image_path)
|
37 |
+
bboxes = arabic_layout_model(image_path)
|
38 |
plotted_image = draw_bboxes_on_image(bboxes,image)
|
39 |
```
|
40 |
#### Refer to `benchmark.ipynb` for comparison between Traditional Surya Layout Model and Suryolo Layout Model.
|