Update README.md
Browse files
README.md
CHANGED
|
@@ -4,6 +4,7 @@ language:
|
|
| 4 |
- en
|
| 5 |
---
|
| 6 |
|
|
|
|
| 7 |
This dataset has bounding boxes for ~6000 hand annotated pages with bounding boxes for figures, figure captions, tables, and math formulas.
|
| 8 |
|
| 9 |
More coverage is available for figures + captions (some pages might not have all tables and math formulas annotated).
|
|
@@ -11,3 +12,33 @@ More coverage is available for figures + captions (some pages might not have all
|
|
| 11 |
Format is JSON and includes lists (so it looks like HuggingFace doesn't necessarily like this format for display), with rows that look like:
|
| 12 |
|
| 13 |

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
- en
|
| 5 |
---
|
| 6 |
|
| 7 |
+
## Dataset Introduction
|
| 8 |
This dataset has bounding boxes for ~6000 hand annotated pages with bounding boxes for figures, figure captions, tables, and math formulas.
|
| 9 |
|
| 10 |
More coverage is available for figures + captions (some pages might not have all tables and math formulas annotated).
|
|
|
|
| 12 |
Format is JSON and includes lists (so it looks like HuggingFace doesn't necessarily like this format for display), with rows that look like:
|
| 13 |
|
| 14 |

|
| 15 |
+
|
| 16 |
+
## How to use this data
|
| 17 |
+
|
| 18 |
+
To plot an example check out the [trial_example_from_data.ipynb](https://huggingface.co/datasets/ReadingTimeMachine/historical_dla/blob/main/trial_example_from_data.ipynb) notebook.
|
| 19 |
+
|
| 20 |
+
This assumes you have the data and the [data_utils.py](https://huggingface.co/datasets/ReadingTimeMachine/historical_dla/blob/main/data_utils.py) file in the same location as your notebook.
|
| 21 |
+
|
| 22 |
+
The following packages will have to be installed:
|
| 23 |
+
```python
|
| 24 |
+
matplotlib
|
| 25 |
+
numpy
|
| 26 |
+
pandas
|
| 27 |
+
wand
|
| 28 |
+
PIL
|
| 29 |
+
wget
|
| 30 |
+
cv2 # OpenCV
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
On Google Colab, to install `wand` we found we had to do the following (this is not in the linked notebook):
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
!apt install imagemagick
|
| 37 |
+
!apt-get install libmagickwand-dev
|
| 38 |
+
|
| 39 |
+
!pip install Wand
|
| 40 |
+
|
| 41 |
+
!rm /etc/ImageMagick-6/policy.xml
|
| 42 |
+
|
| 43 |
+
!pip install wget
|
| 44 |
+
```
|