Datasets:
crop_path stringlengths 32 48 | signal stringclasses 5
values | label stringclasses 98
values | teacher_engine stringclasses 2
values | teacher_conf float64 0 1 | dem_verified bool 2
classes | clip_id stringclasses 17
values | frame_idx int64 0 8.81k | width_px int64 92 384 | height_px int64 17 71 |
|---|---|---|---|---|---|---|---|---|---|
crops/hp_sample1_r07_f000000.png | hp | 100 | dem | 1 | true | sample1_r07 | 0 | 92 | 45 |
crops/money_sample1_r07_f000000.png | money | 250 | dem | 1 | true | sample1_r07 | 0 | 119 | 32 |
crops/killfeed_sample1_r07_f000000_row0.png | killfeed | unlabeled | 0 | false | sample1_r07 | 0 | 320 | 35 | |
crops/killfeed_sample1_r07_f000000_row1.png | killfeed | unlabeled | 0 | false | sample1_r07 | 0 | 320 | 35 | |
crops/killfeed_sample1_r07_f000000_row2.png | killfeed | unlabeled | 0 | false | sample1_r07 | 0 | 320 | 35 | |
crops/killfeed_sample1_r07_f000000_row3.png | killfeed | unlabeled | 0 | false | sample1_r07 | 0 | 320 | 35 | |
crops/killfeed_sample1_r07_f000000_row4.png | killfeed | unlabeled | 0 | false | sample1_r07 | 0 | 320 | 17 | |
crops/friendly_chat_sample1_r07_f000000_row0.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 0 | 384 | 31 | |
crops/friendly_chat_sample1_r07_f000000_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 0 | 384 | 30 | |
crops/hp_sample1_r07_f000012.png | hp | 100 | dem | 1 | true | sample1_r07 | 12 | 92 | 45 |
crops/ammo_sample1_r07_f000012.png | ammo | 30 | dem | 1 | true | sample1_r07 | 12 | 154 | 71 |
crops/killfeed_sample1_r07_f000012_row0.png | killfeed | unlabeled | 0 | false | sample1_r07 | 12 | 320 | 35 | |
crops/killfeed_sample1_r07_f000012_row1.png | killfeed | unlabeled | 0 | false | sample1_r07 | 12 | 320 | 35 | |
crops/killfeed_sample1_r07_f000012_row2.png | killfeed | unlabeled | 0 | false | sample1_r07 | 12 | 320 | 35 | |
crops/killfeed_sample1_r07_f000012_row3.png | killfeed | unlabeled | 0 | false | sample1_r07 | 12 | 320 | 35 | |
crops/killfeed_sample1_r07_f000012_row4.png | killfeed | unlabeled | 0 | false | sample1_r07 | 12 | 320 | 17 | |
crops/friendly_chat_sample1_r07_f000012_row0.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 12 | 384 | 31 | |
crops/friendly_chat_sample1_r07_f000012_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 12 | 384 | 30 | |
crops/hp_sample1_r07_f000024.png | hp | 100 | dem | 1 | true | sample1_r07 | 24 | 92 | 45 |
crops/ammo_sample1_r07_f000024.png | ammo | 0 | dem | 1 | true | sample1_r07 | 24 | 154 | 71 |
crops/killfeed_sample1_r07_f000024_row0.png | killfeed | unlabeled | 0 | false | sample1_r07 | 24 | 320 | 35 | |
crops/killfeed_sample1_r07_f000024_row1.png | killfeed | unlabeled | 0 | false | sample1_r07 | 24 | 320 | 35 | |
crops/killfeed_sample1_r07_f000024_row2.png | killfeed | unlabeled | 0 | false | sample1_r07 | 24 | 320 | 35 | |
crops/killfeed_sample1_r07_f000024_row3.png | killfeed | unlabeled | 0 | false | sample1_r07 | 24 | 320 | 35 | |
crops/killfeed_sample1_r07_f000024_row4.png | killfeed | unlabeled | 0 | false | sample1_r07 | 24 | 320 | 17 | |
crops/friendly_chat_sample1_r07_f000024_row0.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 24 | 384 | 31 | |
crops/friendly_chat_sample1_r07_f000024_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 24 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000036_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 36 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000036_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 36 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000048_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 48 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000060_row0.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 60 | 384 | 31 | |
crops/friendly_chat_sample1_r07_f000072_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 72 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000072_row7.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 72 | 384 | 22 | |
crops/hp_sample1_r07_f000084.png | hp | 100 | dem | 1 | true | sample1_r07 | 84 | 92 | 45 |
crops/friendly_chat_sample1_r07_f000084_row0.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 84 | 384 | 31 | |
crops/friendly_chat_sample1_r07_f000084_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 84 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000084_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 84 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000084_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 84 | 384 | 30 | |
crops/hp_sample1_r07_f000096.png | hp | 100 | dem | 1 | true | sample1_r07 | 96 | 92 | 45 |
crops/friendly_chat_sample1_r07_f000096_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 96 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000096_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 96 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000096_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 96 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000096_row6.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 96 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000096_row7.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 96 | 384 | 22 | |
crops/hp_sample1_r07_f000108.png | hp | 100 | dem | 1 | true | sample1_r07 | 108 | 92 | 45 |
crops/killfeed_sample1_r07_f000108_row1.png | killfeed | unlabeled | 0 | false | sample1_r07 | 108 | 320 | 35 | |
crops/killfeed_sample1_r07_f000108_row2.png | killfeed | unlabeled | 0 | false | sample1_r07 | 108 | 320 | 35 | |
crops/killfeed_sample1_r07_f000108_row3.png | killfeed | unlabeled | 0 | false | sample1_r07 | 108 | 320 | 35 | |
crops/friendly_chat_sample1_r07_f000108_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 108 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000108_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 108 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000108_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 108 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000108_row4.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 108 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000108_row7.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 108 | 384 | 22 | |
crops/friendly_chat_sample1_r07_f000120_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 120 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000120_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 120 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000120_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 120 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000120_row4.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 120 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000132_row0.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 132 | 384 | 31 | |
crops/friendly_chat_sample1_r07_f000132_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 132 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000132_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 132 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000132_row4.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 132 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000144_row0.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 144 | 384 | 31 | |
crops/friendly_chat_sample1_r07_f000144_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 144 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000144_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 144 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000144_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 144 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000144_row4.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 144 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000156_row0.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 156 | 384 | 31 | |
crops/friendly_chat_sample1_r07_f000156_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 156 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000156_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 156 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000156_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 156 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000156_row4.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 156 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000168_row0.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 168 | 384 | 31 | |
crops/friendly_chat_sample1_r07_f000168_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 168 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000168_row4.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 168 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000180_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 180 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000180_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 180 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000180_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 180 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000180_row4.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 180 | 384 | 30 | |
crops/hp_sample1_r07_f000192.png | hp | 100 | dem | 1 | true | sample1_r07 | 192 | 92 | 45 |
crops/friendly_chat_sample1_r07_f000192_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 192 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000192_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 192 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000192_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 192 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000192_row4.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 192 | 384 | 30 | |
crops/hp_sample1_r07_f000204.png | hp | 100 | dem | 1 | true | sample1_r07 | 204 | 92 | 45 |
crops/friendly_chat_sample1_r07_f000204_row0.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 204 | 384 | 31 | |
crops/friendly_chat_sample1_r07_f000204_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 204 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000204_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 204 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000204_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 204 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000204_row4.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 204 | 384 | 30 | |
crops/hp_sample1_r07_f000216.png | hp | 100 | dem | 1 | true | sample1_r07 | 216 | 92 | 45 |
crops/killfeed_sample1_r07_f000216_row0.png | killfeed | unlabeled | 0 | false | sample1_r07 | 216 | 320 | 35 | |
crops/killfeed_sample1_r07_f000216_row1.png | killfeed | unlabeled | 0 | false | sample1_r07 | 216 | 320 | 35 | |
crops/killfeed_sample1_r07_f000216_row2.png | killfeed | unlabeled | 0 | false | sample1_r07 | 216 | 320 | 35 | |
crops/killfeed_sample1_r07_f000216_row3.png | killfeed | unlabeled | 0 | false | sample1_r07 | 216 | 320 | 35 | |
crops/killfeed_sample1_r07_f000216_row4.png | killfeed | unlabeled | 0 | false | sample1_r07 | 216 | 320 | 17 | |
crops/friendly_chat_sample1_r07_f000216_row1.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 216 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000216_row2.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 216 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000216_row3.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 216 | 384 | 30 | |
crops/friendly_chat_sample1_r07_f000216_row4.png | friendly_chat | unlabeled | 0 | false | sample1_r07 | 216 | 384 | 30 | |
crops/hp_sample1_r07_f000228.png | hp | 100 | dem | 1 | true | sample1_r07 | 228 | 92 | 45 |
CS2 HUD OCR Crops
Per-region HUD crops sliced from three Counter-Strike 2 match recordings,
labelled where possible from the demo file's parse_ticks state. Built
to train a specialist CRNN that replaces the EasyOCR killfeed reader
(currently ~6 s p95 on CPU) with a sub-30 ms specialist.
Source
Three matches by the same POV player (farouqqq), recorded in CS2's
built-in DVR + the corresponding .dem files:
| sample | map | dem | rounds | resolution | fps |
|---|---|---|---|---|---|
| sample1 | Ancient | ancent.dem | 8 | 1280 Γ 1024 | 60 |
| sample2 | Dust 2 | dust_2.dem | 10 | 1280 Γ 1024 | 60 |
| sample3 | Overpass | overpass.dem | 9 | 1280 Γ 1024 | 60 |
Frames sampled at 5 fps. Per-region ROIs slice via the
hud_extractor package's
calibrated hud_template.json.
Signals + label sources
| signal | label source | gate |
|---|---|---|
hp |
dem health (POV-filtered, alive only) |
v_mask brightness + phash dedupe |
money |
dem balance |
v_mask brightness + phash dedupe |
ammo |
dem m_iClip1 (alive only) |
v_mask brightness + phash dedupe |
timer |
tesserocr text (β₯ 0.70 conf) β optional | v_mask brightness + phash dedupe |
killcam |
tesserocr binary (β₯ 0.50 conf) β optional | v_mask + phash + Β±5 s POV death window |
killfeed |
unlabeled in this v1 (use Colab GPU) | v_mask brightness + phash dedupe; one crop per row slot |
friendly_chat |
unlabeled in this v1 (use Colab GPU) | v_mask brightness + phash dedupe; one crop per row slot |
killfeed and friendly_chat are saved without text labels in this
release because the EasyOCR teacher (~600 ms / row on CPU) made a single
pass impractical. The crops are ready for a GPU-side labeling sweep
(EasyOCR gpu=True is ~10Γ faster on a single T4).
File layout
dataset/cs2_ocr/
βββ crops/ # PNG, one per labeled crop
β βββ hp_sample1_r07_f000048.png
β βββ money_sample2_r03_f000132.png
β βββ killfeed_sample3_r05_f000240_row2.png
β βββ friendly_chat_sample1_r10_f000600_row3.png
β βββ ...
βββ train.parquet
βββ val.parquet
βββ test.parquet
βββ manifest.json
Split key = (sample, round), so no frame leak across splits.
| split | composition |
|---|---|
| train | sample1 r07-r10 Β· sample2 r01-r07 Β· sample3 r01-r06 |
| val | sample1 r11 Β· sample2 r08 Β· sample3 r07 |
| test | sample1 r12-r14 Β· sample2 r09-r10 Β· sample3 r08-r09 |
Parquet schema
| column | type | notes |
|---|---|---|
crop_path |
str | relative to dataset root, e.g. crops/hp_sample1_r07_f000048.png |
signal |
str | one of hp money ammo timer killcam killfeed friendly_chat |
label |
str | ground-truth string; "" for unlabeled rows |
teacher_engine |
str | dem / tesserocr / easyocr / unlabeled |
teacher_conf |
float | 0-1; 1.0 for dem, 0.0 for unlabeled |
dem_verified |
bool | True iff label came from the dem (the dem is ground truth) |
clip_id |
str | source clip, e.g. sample1_r07 |
frame_idx |
int | original frame ordinal inside the clip |
width_px |
int | crop width in pixels |
height_px |
int | crop height in pixels |
How to load
from datasets import load_dataset
ds = load_dataset("ybashir/CS2-HUD-OCR-Crops")
To get an actual image rather than a path you'll need to join the
crop_path column with the downloaded crops/ directory.
Build details
- Frame extractor + dem alignment + ROI slicer:
scripts/build_crnn_dataset.py - Clip cutter (per-round mp4s):
scripts/cut_clips.py - HUD template (calibrated ROIs + row slots):
hud_extractor/hud_extractor/config/hud_template.json
Known limitations
- POV-only labels. The
demground truth applies tofarouqqq's state; other players' HUDs are not in scope. sample3round 1 begins before the dem started recording. Itsdem_freeze_sis negative β the dem-truth labels begin partway into the clip.parse_eventis broken on these dem files (EntityNotFoundacross every version ofdemoparser2), soplayer_deathcorrelations for killfeed verification are not available. EasyOCR remains the only signal source for killfeed/chat.- Re-encoded clips (
-c libx264 -crf 20) lose a few decibels vs. the source DVR; not visible at HUD resolution but flagged for transparency.
License
CC-BY-4.0. The underlying gameplay footage is captured from a personal Counter-Strike 2 session (Valve Corp.) β the dataset is published for non-commercial research on HUD-region OCR distillation.
- Downloads last month
- 5