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
  • post-match menu screens with centered score and player names below

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.3.tar.gz (22.2 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.3-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for efootball_result_analyzer-0.2.3.tar.gz
Algorithm Hash digest
SHA256 cb1e5947409e258fb569a2892f1e797ea7388a48129fcf3d49ec5119fb44a9c8
MD5 4bc19a774d34d74a3379d99d61a78b54
BLAKE2b-256 9312439c7ecbdbd8edc2ff68e1e295afe711faf028c06f65af5dc1c99ce2d1fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for efootball_result_analyzer-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 54b92e27d41fada163b714c09a0e983ea769fc6626f9ac22c136684666db7c6d
MD5 9a307a034a752b0b81d8996f4ef9941e
BLAKE2b-256 597882bd10155baa1cdee1be304b6711b692adf48e7be580e7269624937374dd

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