Datasets:
File size: 10,629 Bytes
d7f8cf6 | 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 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 | ---
license: other
license_name: idrbt-dataset-license
license_link: https://www.idrbt.ac.in
language:
- en
tags:
- object-detection
- document-understanding
- cheque-processing
- bounding-box
- ocr
- banking
- indian-banking
- annotations-only
task_categories:
- object-detection
pretty_name: IDRBT Cheque Field Annotations
size_categories:
- n<1K
annotations_creators:
- expert-generated
source_datasets:
- original
dataset_info:
features:
- name: image_id
dtype: string
- name: filename
dtype: string
- name: image_width
dtype: int32
- name: image_height
dtype: int32
- name: date
dtype:
struct:
- name: xmin
dtype: int32
- name: ymin
dtype: int32
- name: xmax
dtype: int32
- name: ymax
dtype: int32
- name: amount
dtype:
struct:
- name: xmin
dtype: int32
- name: ymin
dtype: int32
- name: xmax
dtype: int32
- name: ymax
dtype: int32
- name: ifsc
dtype:
struct:
- name: xmin
dtype: int32
- name: ymin
dtype: int32
- name: xmax
dtype: int32
- name: ymax
dtype: int32
- name: acno
dtype:
struct:
- name: xmin
dtype: int32
- name: ymin
dtype: int32
- name: xmax
dtype: int32
- name: ymax
dtype: int32
- name: sign
dtype:
struct:
- name: xmin
dtype: int32
- name: ymin
dtype: int32
- name: xmax
dtype: int32
- name: ymax
dtype: int32
- name: name
dtype:
struct:
- name: xmin
dtype: int32
- name: ymin
dtype: int32
- name: xmax
dtype: int32
- name: ymax
dtype: int32
splits:
- name: train
num_bytes: 16384
num_examples: 90
- name: validation
num_bytes: 2048
num_examples: 11
- name: test
num_bytes: 2048
num_examples: 11
download_size: 20480
dataset_size: 112
configs:
- config_name: default
data_files:
- split: train
path: data/train-*.parquet
- split: validation
path: data/validation-*.parquet
- split: test
path: data/test-*.parquet
---
# IDRBT Cheque Field Annotations
Bounding-box annotations for six standard fields in Indian bank cheques,
derived from the publicly released
[IDRBT Cheque Image Dataset](https://www.idrbt.ac.in).
> **Images are not included.** This dataset contains annotations only.
> The original TIFF images must be obtained directly from IDRBT under
> their terms of use. Filenames in this dataset correspond 1-to-1 with
> the images in the IDRBT release.
---
## Dataset Summary
| Property | Value |
|---|---|
| Total annotated cheques | 112 |
| Splits | Train 90 / Validation 11 / Test 11 |
| Fields per cheque | 6 (fixed) |
| Annotation format | Bounding box [xmin, ymin, xmax, ymax] (absolute pixels) |
| Original image format | TIFF, RGB, ~2365 × 1087 px |
| Original annotation format | Pascal VOC XML |
---
## Fields
Each cheque is annotated with exactly one bounding box per field:
| Field | Key | Description |
|-------|-----|-------------|
| Date | `date` | Cheque date (typically top-right) |
| Amount (figures) | `amount` | Numeric amount (right column) |
| IFSC / branch code | `ifsc` | Bank branch identifier (mid-left) |
| Account number | `acno` | Full account number (centre) |
| Signature | `sign` | Handwritten signature region (bottom-right) |
| Payee name | `name` | "Pay to" name (full-width band) |
---
## Dataset Structure
### Data Fields
| Field | Type | Description |
|-------|------|-------------|
| `image_id` | `string` | Cheque identifier (filename without extension) |
| `filename` | `string` | Original TIFF filename (e.g. `Cheque 083654.tif`) |
| `image_width` | `int32` | Original image width in pixels |
| `image_height` | `int32` | Original image height in pixels |
| `date` | `struct` | `{xmin, ymin, xmax, ymax}` |
| `amount` | `struct` | `{xmin, ymin, xmax, ymax}` |
| `ifsc` | `struct` | `{xmin, ymin, xmax, ymax}` |
| `acno` | `struct` | `{xmin, ymin, xmax, ymax}` |
| `sign` | `struct` | `{xmin, ymin, xmax, ymax}` |
| `name` | `struct` | `{xmin, ymin, xmax, ymax}` |
All coordinates are in **absolute pixels** relative to the original image.
### Data Splits
| Split | Examples |
|-------|---------|
| Train | 90 |
| Validation | 11 |
| Test | 11 |
| **Total** | **112** |
Splits are reproducible (random seed 42).
---
## Usage
```python
from datasets import load_dataset
dataset = load_dataset("jaganadhg/cheque-field-annotations")
print(dataset)
# DatasetDict({
# train: Dataset({features: [...], num_rows: 90}),
# validation: Dataset({features: [...], num_rows: 11}),
# test: Dataset({features: [...], num_rows: 11})
# })
sample = dataset["train"][0]
print(sample["filename"]) # 'Cheque 083654.tif'
print(sample["image_width"]) # 2372
print(sample["date"]) # {'xmin': 1762, 'ymin': 65, 'xmax': 2329, 'ymax': 186}
```
### Convert to COCO format
```python
from datasets import load_dataset
FIELD_NAMES = ["date", "amount", "ifsc", "acno", "sign", "name"]
LABEL2ID = {f: i + 1 for i, f in enumerate(FIELD_NAMES)} # 1-indexed
dataset = load_dataset("jaganadhg/cheque-field-annotations")
def to_coco_row(example):
"""Convert one dataset row to a COCO-style annotation list."""
annotations = []
for field in FIELD_NAMES:
bb = example[field]
w = bb["xmax"] - bb["xmin"]
h = bb["ymax"] - bb["ymin"]
annotations.append({
"category_id": LABEL2ID[field],
"category": field,
"bbox": [bb["xmin"], bb["ymin"], w, h], # COCO: [x, y, w, h]
"area": w * h,
"iscrowd": 0,
})
example["annotations"] = annotations
return example
coco_dataset = dataset.map(to_coco_row)
```
### Normalise coordinates for model training
```python
def normalise(example):
"""Normalise boxes to [0,1] relative to image dimensions."""
W, H = example["image_width"], example["image_height"]
for field in ["date", "amount", "ifsc", "acno", "sign", "name"]:
bb = example[field]
example[f"{field}_norm"] = {
"xmin": bb["xmin"] / W,
"ymin": bb["ymin"] / H,
"xmax": bb["xmax"] / W,
"ymax": bb["ymax"] / H,
}
return example
normalised = dataset.map(normalise)
```
### Use with IDRBT images (after downloading)
```python
import os
from datasets import load_dataset
from PIL import Image
IMAGE_DIR = "/path/to/IDRBT_Cheque_Image_Dataset/300"
dataset = load_dataset("jaganadhg/cheque-field-annotations")
def add_image(example):
img_path = os.path.join(IMAGE_DIR, example["filename"])
example["image"] = Image.open(img_path).convert("RGB")
return example
dataset_with_images = dataset.map(add_image)
```
---
## Field Layout
The spatial distribution of fields across cheques (normalised coordinates,
mean ± std over all 112 cheques):
| Field | Centre-x | Centre-y | Width | Height |
|-------|----------|----------|-------|--------|
| date | 0.85 ± 0.01 | 0.13 ± 0.01 | 0.26 ± 0.02 | 0.14 ± 0.01 |
| amount | 0.85 ± 0.01 | 0.42 ± 0.01 | 0.27 ± 0.01 | 0.14 ± 0.01 |
| ifsc | 0.22 ± 0.01 | 0.16 ± 0.01 | 0.13 ± 0.01 | 0.05 ± 0.01 |
| acno | 0.21 ± 0.05 | 0.53 ± 0.02 | 0.32 ± 0.05 | 0.11 ± 0.02 |
| sign | 0.90 ± 0.02 | 0.72 ± 0.04 | 0.14 ± 0.02 | 0.22 ± 0.04 |
| name | 0.51 ± 0.01 | 0.25 ± 0.01 | 0.96 ± 0.01 | 0.11 ± 0.01 |
Cheques follow a consistent layout: `name` is a full-width band near the top,
`date` and `amount` are stacked on the right, `ifsc` and `acno` span the
centre-left, and `sign` sits in the bottom-right.
---
## Benchmark Results
A ResNet-50 regression model trained on the same annotations achieves the
following on a held-out test set of 10 images. (The model was trained from
an earlier HDF5 consolidation of these annotations in which 7 rows were
corrupted and excluded — 105 usable images, 85/10/10 split — so its splits
differ slightly from the 90/11/11 splits of this release.)
| Field | IoU | Acc@0.5 |
|-------|-----|---------|
| date | 0.528 | 50% |
| amount | 0.572 | 80% |
| ifsc | 0.506 | 60% |
| acno | 0.579 | 90% |
| sign | 0.437 | 30% |
| name | 0.658 | 90% |
| **Mean** | **0.547** | **67%** |
These are indicative single-run numbers, not a strong benchmark. A no-learning
baseline that predicts each field's mean training box already reaches **0.691
mIoU / 80% accuracy** on this task, so cheque layout is highly regular and
absolute IoU should be read with that prior in mind. See the accompanying
paper for the full controlled analysis (including a negative result on
synthetic-data augmentation).
Pre-trained model: [`jaganadhg/cheque-field-regressor`](https://huggingface.co/jaganadhg/cheque-field-regressor)
---
## Source Data
Original dataset published by the **Institute for Development and Research
in Banking Technology (IDRBT)**, Hyderabad, India.
- **Original release**: IDRBT Cheque Image Dataset
- **Original URL**: https://www.idrbt.ac.in
- **Original format**: TIFF images + Pascal VOC XML annotations
Annotations were converted from Pascal VOC XML to Parquet format for this
release. No image data is included.
---
## License
The annotations in this dataset are derived from the IDRBT Cheque Image
Dataset. Please refer to [IDRBT's terms of use](https://www.idrbt.ac.in)
before using this dataset for commercial purposes.
---
## Citation
If you use this dataset in your research, please cite:
```bibtex
@dataset{idrbt-cheque-annotations-2026,
title = {IDRBT Cheque Field Annotations},
author = {Gopinadhan, Jaganadh},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/datasets/jaganadhg/cheque-field-annotations},
note = {Annotations derived from the IDRBT Cheque Image Dataset}
}
```
For the original IDRBT dataset, please also cite:
```bibtex
@misc{idrbt-cheque-dataset,
title = {IDRBT Cheque Image Dataset},
author = {{Institute for Development and Research in Banking Technology}},
howpublished = {\url{https://www.idrbt.ac.in}},
year = {2020}
}
```
|