Dataset Viewer
Auto-converted to Parquet Duplicate
image
imagewidth (px)
557
1.08k
id
stringlengths
3
3
text
stringlengths
43
74
font
stringclasses
4 values
000
Mọi tranh chấp được giải quyết thông qua thương lượng và hoà giải.
DejaVuSerif.ttf
001
Văn bản này được ban hành theo thẩm quyền của Giám đốc Sở.
DejaVuSans.ttf
002
Cuối tuần này tôi muốn về thăm bố mẹ ở quê.
Lato-Medium.ttf
003
Triển lãm mỹ thuật quốc tế khai mạc tại Bảo tàng Mỹ thuật Hà Nội.
FreeSerif.ttf
004
Sáng nay tôi dậy sớm để đi tập thể dục cùng con.
DejaVuSerif.ttf
005
Hai bên đã đọc, hiểu và đồng ý ký vào hợp đồng này.
DejaVuSans.ttf
006
Bên cung cấp dịch vụ cam kết hoàn thành đúng tiến độ đã thoả thuận.
Lato-Medium.ttf
007
Tôi mới chuyển nhà, mấy hôm nay vẫn đang sắp xếp đồ đạc.
FreeSerif.ttf
008
Hè này gia đình tôi sẽ đi nghỉ ở Đà Nẵng một tuần.
DejaVuSerif.ttf
009
Tôi nghĩ chúng ta nên hẹn nhau cà phê vào sáng mai.
DejaVuSans.ttf
010
Đề nghị Quý Phòng Tổ chức Cán bộ duyệt và phản hồi sớm.
Lato-Medium.ttf
011
Năm nay con bé học lớp năm, kết quả khá tốt.
FreeSerif.ttf
012
Đại học Quốc gia thành phố Hồ Chí Minh tuyển sinh đại trà từ tháng ba.
DejaVuSerif.ttf
013
Đường này hôm nay tắc lắm, đi đường khác cho nhanh đi.
DejaVuSans.ttf
014
Trời đẹp quá, mình đi dạo công viên một chút nhé.
Lato-Medium.ttf
015
Mình đang đi học về, sẽ ghé qua nhà bạn vào lúc bảy giờ tối.
FreeSerif.ttf
016
Kính gửi Quý Sở Lao động Thương binh và Xã hội thành phố.
DejaVuSerif.ttf
017
Hợp đồng số 02/HĐ/2025 được lập ngày 14 tháng 3 năm 2025 tại Hà Nội.
DejaVuSans.ttf
018
Phương thức thanh toán bằng chuyển khoản, chia làm ba đợt.
Lato-Medium.ttf
019
Khoảng năm ngoái, công nghệ trí tuệ nhân tạo đã thay đổi nhiều ngành nghề.
FreeSerif.ttf

vn-synthetic-ocr

Procedurally-rendered Vietnamese text-line images for OCR evaluation. Each row pairs a UTF-8 NFC ground-truth string with a PNG line crop in two conditions:

  • clean — single-font, white background, no degradation
  • noisy — same content with bell-curve gaussian noise + jitter

20 lines per condition (40 images total, ~3 MB).

Splits

Config n Conditions
clean 20 Single-font rendered text on white
noisy 20 Same lines with synthetic noise / blur / jitter

Each row carries image (PNG bytes), text (UTF-8 NFC ground truth), font (TTF used), and id (3-digit string, matching across configs).

Usage

from datasets import load_dataset

ds = load_dataset("nrl-ai/vn-synthetic-ocr", "clean", split="test")
sample = ds[0]
print(sample["text"])  # NFC ground truth

# Inference example with Vintern-1B-v3_5
from PIL import Image
from io import BytesIO
img = Image.open(BytesIO(sample["image"]["bytes"]))  # or sample["image"] depending on decoding
# ... (see nom-vn's nom.ocr.handwriting wrapper for the InternVL preprocess)

Honesty notes

  • 20 images per condition is small. Use for smoke-tests + CER regression checks; bench against a 200+-image set (brianhuster/VietnameseOCRdataset, ~7 k images, Apache-2.0) for any adoption claim.
  • Single-font clean ≠ real document. Real-world VN documents have multi-font pages, table layouts, header/footer noise that this set doesn't exercise.
  • CER counts diacritic variants as errors. hoàhòa (both valid VN spellings, regional preference) shows up as a 1-character edit distance even though the meaning is identical. Manual review the failures before adopting a CER threshold.

Reference baseline

Latest in-house bench (source): 5CD-AI/Vintern-1B-v3_5 zero-shot via nom.ocr.handwriting wrapper:

Condition Mean CER Exact-match n
clean 0.47 % 16/20 20
noisy 0.37 % 17/20 20

Most "errors" are valid VN diacritic variants.

Citation

@dataset{nguyen_vn_synthetic_ocr_2026,
  author = {Nguyen, Viet-Anh and {Neural Research Lab}},
  title  = {{vn-synthetic-ocr: Procedurally-rendered Vietnamese text-line
             images for OCR evaluation}},
  year   = {2026},
  url    = {https://huggingface.co/datasets/nrl-ai/vn-synthetic-ocr}
}

Released CC0 — public domain dedication.

Maintained as part of the nom-vn project by Viet-Anh Nguyen (vietanh@nrl.ai) and Neural Research Lab.

Downloads last month
28