File size: 9,160 Bytes
0dc390f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
---
license: cc-by-sa-4.0
task_categories:
- translation
language:
- en
- fr
- de
- it
- hu
- pl
- ru
- es
- cs
- tr
- sv
- nl
- fi
- 'no'
- ro
- la
- kn
- id
- zh
- ko
- ka
- ja
- vi
- sq
- be
- et
pretty_name: Multilingual Vector Image Dataset for Machine Translation
size_categories:
- 1K<n<10K
configs:
- config_name: default
  data_files:
  - split: dev
    path:
    - dev/metadata.jsonl
    - dev/*/png/**
  - split: test
    path:
    - test/metadata.jsonl
    - test/*/png/**
dataset_info:
  features:
  - name: source_language
    dtype: string
  - name: target_language
    dtype: string
  - name: source_image_file_name
    dtype: image
  - name: target_image_file_name
    dtype: image
  - name: texts
    sequence: string
  - name: translated_texts
    sequence: string
  - name: bounding_boxes
    sequence:
      struct:
      - name: x
        dtype: float64
      - name: 'y'
        dtype: float64
      - name: w
        dtype: float64
      - name: h
        dtype: float64
tags:
- image
- text
---

# Dataset Card for HuggingFaceFW/Multilingual-Vector-Image-Dataset-for-Machine-Translation

## Dataset Summary

The IMG-MT dataset is a multilingual dataset of images containing text, where visually identical images differ only in the language of the embedded text. The texts appearing at the same positions across images are translations of each other.

The dataset was created to support the evaluation of systems that perform **text detection, translation and rendering in images**, such as pipelines for image-based machine translation or OCR-based translation systems.

All images originate from Wikimedia Commons and are grouped into language groups consisting of visually identical images that differ only in the language of the text.

The dataset contains **26 languages** and supports evaluation of translation between multiple language pairs.


## Dataset Details

### Dataset Description

The dataset consists of pairs of images containing translated text. Each pair contains:

- a **source image** with text in one language
- a **target image** with the translated text in another language

Bounding boxes for text regions are provided, along with the corresponding source and translated text strings.

### Dataset characteristics

- Images contain text embedded in graphics – e.g., diagrams, maps, educational illustrations (no natural scene text).
- Images in a group are visually identical except for the language of the text.
- Text blocks are aligned across images using bounding boxes.

### Dataset Sources

- **Source of images:** Images were collected from **Wikimedia Commons**


## Uses

The dataset is suitable for:

- Evaluation of **image translation pipelines**
- Evaluation of **OCR + machine translation systems**
- Benchmarking **text detection in images**
- Testing **text rendering after translation**
- Multilingual **visual-language research**


## Dataset Structure

### Dataset Organization

The dataset is divided into two parts:

- `dev/` — development set used for tuning and development
- `test/` — test set used for final evaluation

Each of these sets contains several numbered folders (`{languageGroupNumber}/`), each representing a language group.

These folders store images (in `png/` folder) and reference JSON files (`{sourceLangCode}-{targetLangCode}.json`).


| Folder/File | Description |
|---|---|
| `dev/` | Development dataset |
| `test/` | Test dataset |
| `{languageGroupNumber}/` | Group of images that differ only by language |
| `png/` | Images in different languages |
| `{sourceLangCode}-{targetLangCode}.json` | Reference translation data |


### Data Format

Reference translation data are stored in **JSON format** with the following structure:

```json
{
  "source_language": "language code",

  "source_PNG": {
    "size": {
      "width": px,
      "height": px
    },
    "path_to_image": "path",
    "wikimedia_url": "url",
    "licensing": {
        "license": "license_name",
        "original_license": "license_name",
        "author": "user_name"
    }
  },

  "text_bounding_box": [
    {
      "x": float,
      "y": float,
      "w": float,
      "h": float
    }
  ],

  "texts": ["string"],

  "target_language": "language code",

  "translated_texts": ["string"],

  "target_PNG": {
    "size": {
      "width": px,
      "height": px
    },
    "path_to_image": "path",
    "wikimedia_url": "url",
    "licensing": {
        "license": "license_name",
        "original_license": "license_name",
        "author": "user_name"
    }
  }
}

```

| Field               | Description                                  |
| ------------------- | -------------------------------------------- |
| `source_language`   | Language code of the source text             |
| `source_PNG`        | Information about the source image           |
| `text_bounding_box` | Bounding boxes of text regions               |
| `texts`             | Source texts extracted from the image        |
| `target_language`   | Language code of the translated text         |
| `translated_texts`  | Translated texts corresponding to the source |
| `target_PNG`        | Information about the translated image       |


The lists: `text_bounding_box`, `texts`, `translated_texts` are aligned — items at the same index correspond to the same text region.


## Dataset Statistics

The dataset contains 26 languages and multiple language groups of varying sizes.

Example language statistics:


| Language  | Code | Groups | Pairings |
| --------- | ---- | ------ | -------- |
| English   | en   | 435    | 1530     |
| French    | fr   | 204    | 796      |
| German    | de   | 160    | 668      |
| Italian   | it   | 120    | 604      |
| Hungarian | hu   | 79     | 368      |
| Polish    | pl   | 67     | 398      |
| Russian   | ru   | 67     | 296      |
| Spanish   | es   | 62     | 266      |
| Czech     | cs   | 59     | 314      |
| Turkish   | tr   | 50     | 260      |
| Swedish   | sv   | 49     | 284      |
| Dutch     | nl   | 37     | 200      |
| Finnish   | fi   | 31     | 184      |
| Norwegian | no   | 28     | 146      |
| Romanian  | ro   | 28     | 146      |
| Latin     | la   |  9     |  70      |

- `Groups` = number of image groups containing the given language
- `Pairings` = number of language pairs in the dataset where the given language is either the source or target language

Smaller language groups also include languages such as: Kannada, Indonesian, Chinese, Korean, Georgian, Japanese, Vietnamese, Albanian, Belarusian and Estonian.

Language groups range in size from 2 to 12 images.



## Dataset Creation

### Source Data

Images were collected from Wikimedia Commons.

#### Data Collection and Processing

The collection process involved:

- Searching for images that exist in multiple languages

- Selecting images that are visually identical except for the text language

- Grouping images into language groups

- Extracting text regions using bounding boxes

- Recording corresponding source and translated texts

Each language group contains images representing the same graphic with text translated into different languages.


## Bias, Risks and Limitations

Several limitations should be considered:

- Language distribution is imbalanced, with English and major European languages being overrepresented.

- Some languages appear only in a small number of examples.

- The dataset size is relatively small, which limits its use for large-scale training.


## Licensing

### Dataset Licensing

This dataset is distributed under a CC BY-SA 4.0 license. This license applies specifically to the annotations (bounding boxes, text alignments and structured JSON metadata) created for this project.


### Image Licensing

Please note that the images included in this dataset originate from Wikimedia Commons. While the dataset as a whole is provided under CC BY-SA 4.0, individual source images are subject to their own respective licenses as specified by their original authors (e.g., various versions of CC BY, CC BY-SA, or Public Domain). Detailed attribution for every image, including the specific author and original license, can be found in the corresponding JSON files.


## Citation

If you use this dataset in your research, please cite the following work (Note: The linked thesis is written in Czech language):

URAMOVÁ, Šárka. Vyhodnocování překladu textů v obrázcích [Evaluation of Text Translation in Images]. Bachelor's Thesis. Supervisor: Michal Novák. Prague: Charles University, Faculty of Mathematics and Physics, Institute of Formal and Applied Linguistics, 2024. Available at: https://dspace.cuni.cz/handle/20.500.11956/193059

## Credits

Proper attribution is essential to our project. We would like to acknowledge the community of creators on Wikimedia Commons whose work made this dataset possible.
For a complete list of image titles and their respective authors/contributors, please refer to the credits.md file included in this repository. This file provides a mapping between the dataset filenames and the original creators to ensure full transparency and compliance with original image licenses.