File size: 2,512 Bytes
003671d
 
 
 
464f59d
 
 
003671d
 
 
 
 
 
 
 
 
d8416c3
 
 
 
 
 
 
 
 
 
003671d
d8416c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language: ru
license: mit
task_categories:
- image-to-text
- document-question-answering
- visual-document-retrieval
size_categories:
- 1K<n<10K
annotations_creators:
- human
- machine-assisted
---

# Russian Receipts OCR (Semantic)

## Overview

This repository contains a dataset of Russian retail receipts with semantic OCR annotations.

⚠️ **Important note**  
This repository is used primarily as a **data storage and distribution location**.  
The dataset is consumed by **external inference, evaluation and training pipelines** and is **not intended to be loaded directly via `datasets.load_dataset()`** without a custom loader.

---

## Description

Each sample consists of:
- a receipt image
- a corresponding JSON annotation with structured OCR information

The dataset is designed for:
- OCR and document understanding
- semantic information extraction
- evaluation of receipt parsing pipelines

---

## Dataset structure

The data is organized as a simple and explicit file-based structure:

images/
├── train/
├── validation/
└── test/

annotations/
├── train/
├── validation/
└── test/

For each image file:
images/<split>/<image_id>.jpg

there exists a corresponding annotation file:
annotations/<split>/<image_id>.json

## Annotations format

Each annotation JSON contains structured information extracted from a receipt, including:

- `seller`
- `inn`
- `date`
- `total`
- `items` (list of line items, if available)

Fields may be missing and are represented as `null`.

Bounding boxes are taken directly from OCR output and are not manually corrected.

---

## Completeness rule

A receipt is considered **complete** if:

- `total` is present  
- `date` is present  
- **either** `seller` **or** `inn` is present

## Usage notes

This dataset is intentionally stored in a **file-based format** and is consumed by custom pipelines that:

- explicitly load images from disk
- load annotation JSON files by filename
- perform OCR and semantic parsing separately

This design ensures:
- transparent data loading
- reproducible evaluation
- full control over preprocessing and inference steps

---

## Related resources

- OCR model checkpoint:  
  https://huggingface.co/SvetaLana25/dek-receipt-donut-stage1

- Evaluation and inference code:  
  Provided as part of the project submission.

---

## Disclaimer

This dataset is provided for educational and research purposes.

Sensitive information is anonymized or originates from user-provided examples.