Datasets:
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 developmenttest/— 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:
{
"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 languagePairings= 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.