Skip to content

carlostbanks/phantomParlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🏈 PhantomParlay

PhantomParlay is a sports betting tracker that lets users upload bet slip screenshots and auto-parses the details to simulate real betting—no money involved, just bragging rights. It's fantasy sports for the sports betting world.


🔧 Tech Stack

  • Frontend: React, TypeScript, Tailwind CSS
  • Backend: Node.js, Express
  • Database: PostgreSQL (via Supabase)
  • Image Processing: Tesseract.js (OCR), Sharp
  • Auth & Storage: Supabase (Auth, File Storage)
  • Hosting: Vercel (Frontend), Supabase (Backend/Auth)

🧠 How It Works

Users upload screenshots of betting slips (e.g. from DraftKings or FanDuel), and PhantomParlay automatically reads and processes them to populate virtual parlay bets.

Here's how the image parsing pipeline works:

  1. Upload Slip:
    User uploads a screenshot via the frontend UI. Files are stored in Supabase Storage.

  2. Preprocessing (Sharp):
    We use Sharp to resize, convert, and enhance image contrast to improve OCR accuracy.

  3. OCR with Tesseract.js:
    The enhanced image is parsed using Tesseract.js, a JavaScript-based OCR engine, to extract bet information such as:

    • Teams
    • Wager amounts
    • Odds
    • Payouts
    • Dates
  4. Parsing & Matching:
    We run basic regex and string matching to identify known team names and normalize the data into structured parlay entries.

  5. Bet Creation:
    The extracted info is saved to the user's virtual betting history, where they can track outcomes over time.

💡 We're currently optimizing OCR accuracy and exploring model fine-tuning for sports betting slip formats.


✨ Features

  • 📸 Upload betting slips for auto-parsing
  • 🧠 OCR-driven bet creation (no manual input needed)
  • 📊 Track wins, losses, payouts, and betting history
  • 🏆 Leaderboard & streak tracking (coming soon)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages