Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poker Video Parser

Parse poker hands from YouTube videos and export clean CSV hand histories.

Quick Start

uv run poker-parser --help

Subcommands

Command Purpose Status
poker-parser fetch <url> Download video from YouTube Stub
poker-parser extract <video> Extract key frames via ffmpeg scene-detect Stub
poker-parser reconstruct <frames-dir> Reconstruct hands from existing frames
poker-parser profile list List available source profiles

Roadmap

  • Phase 1 ✅ — Repo scaffold, Pydantic models, FSM, CSV export, CLI
  • Phase 2 — yt-dlp downloader + ffmpeg frame extraction + dHash dedup
  • Phase 3 — PaddleOCR integration + card CNN
  • Phase 4 — End-to-end pipeline wiring + source profiles
  • Phase 5 — 40+ tests, fixtures, 2-min test video

Architecture

See architecture diagram.

poker-parser/
├── src/poker_parser/
│   ├── cli.py                    # CLI entry point
│   ├── models/                   # Pydantic data models
│   │   ├── enums.py
│   │   └── hand.py               # Card, Action, PlayerState, Hand
│   ├── core/
│   │   └── state_machine.py      # FSM + EvidenceBuffer + PokerGrammar
│   ├── export/
│   │   └── csv_exporter.py       # 3 CSV export formats
│   ├── ingestion/                # (stubs) downloader, extractor, deduper
│   └── vision/                   # (stubs) OCR, card classifier, registration
├── profiles/                     # Source layout profiles (YAML)
├── tests/
│   ├── fixtures/                 # Ground truth + test frames
│   ├── test_state_machine.py
│   └── test_csv_export.py
└── pyproject.toml

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages