Datasets:

Languages:
English
License:
File size: 1,362 Bytes
2715fae
 
e7f21c8
 
16ec76d
 
70e421a
16ec76d
 
 
 
 
 
 
70e421a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
license: apache-2.0
language:
- en
---

## Dataset Introduction
This dataset has bounding boxes for ~6000 hand annotated pages with bounding boxes for figures, figure captions, tables, and math formulas.

More coverage is available for figures + captions (some pages might not have all tables and math formulas annotated).

Format is JSON and includes lists (so it looks like HuggingFace doesn't necessarily like this format for display), with rows that look like:

![image/png](https://cdn-uploads.huggingface.co/production/uploads/6488a2de10af27fd305cb3dd/XdbA_YXAqNmurh-OBhvJO.png)

## How to use this data

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.

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.

The following packages will have to be installed:
```python
matplotlib
numpy
pandas
wand
PIL
wget
cv2 # OpenCV
```

On Google Colab, to install `wand` we found we had to do the following (this is not in the linked notebook):

```python
!apt install imagemagick
!apt-get install libmagickwand-dev

!pip install Wand

!rm /etc/ImageMagick-6/policy.xml

!pip install wget
```