Skip to main content

OCR-only eFootball screenshot analyzer with scoreboard-region and card-layout detection

Project description

eFootball Result Analyzer

OCR-only eFootball screenshot analysis with dedicated support for:

  • classic yellow-and-blue eFootball result screens
  • penalty result screens such as 4 PK 3
  • compact dark scoreboard-card screenshots

Features

  • Local OCR extraction for usernames, scoreline, winner, loser, and match stats
  • Explicit detection of scoreboard regions for:
    • left username or team
    • left score box
    • right score box
    • right username or team
    • penalty score band when present
  • Penalty-aware result parsing
  • Compact card-layout scoreline parsing
  • Importable Python API
  • Desktop GUI uploader
  • CLI entrypoints

Install

pip install efootball-result-analyzer

You also need the native Tesseract executable installed on your machine.

Python Usage

from efootball_analyzer import analyze_match_result

result = analyze_match_result("result.jpg")

print(result["winner"], result["scoreline"])
print(result.get("penalty_scoreline"))
print(result["scoreboard_regions"])

CLI

efootball-analyze --image result.jpg
efootball-analyze --image result.jpg --team "United"
efootball-analyze --image result.jpg --username "I clear ball"
efootball-analyze-gui

Output

The analyzer returns a dictionary with fields such as:

  • team1, team2
  • team1_label, team2_label
  • score1, score2
  • winner, loser, margin
  • result_type
  • penalty_score1, penalty_score2, penalty_scoreline
  • scoreline
  • stats
  • scoreboard_regions
  • raw_text

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

efootball_result_analyzer-0.2.2.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

efootball_result_analyzer-0.2.2-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file efootball_result_analyzer-0.2.2.tar.gz.

File metadata

File hashes

Hashes for efootball_result_analyzer-0.2.2.tar.gz
Algorithm Hash digest
SHA256 6396fd1242dfe64470139fa1a5e7424bddb70d083877fcd7ccf6d4ca0a1864bb
MD5 85894bcc98f68c751420ff6d2dfa1eb7
BLAKE2b-256 0e102491386f401f292eb8994a1bfaddc392be10fcc72b38e358df0870e5d74a

See more details on using hashes here.

File details

Details for the file efootball_result_analyzer-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for efootball_result_analyzer-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4e1f9d98cdb0b7630ee531db9fbda28ce345f41ded1d7d70b43392ec111cec8
MD5 08c45401c9dacd989fcd3c86448da239
BLAKE2b-256 6ca1733c7b4afe89570255bc4c3e7c7a546167b47607412037705c8fffb8000d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page