Skip to main content

OCR and optional Ollama-assisted eFootball result analyzer

Project description

eFootball Result Analyzer

Local eFootball screenshot analysis using OCR, with an optional Ollama vision fallback.

Features

  • OCR-first result extraction from eFootball screenshots
  • Optional Ollama refinement pass for harder screenshots
  • Importable Python API for reuse in other apps
  • Desktop GUI uploader
  • CLI entrypoint

Install

pip install efootball-result-analyzer

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

Python Usage

from efootball_analyzer import OllamaSettings, analyze_match_result

result = analyze_match_result(
    "result.jpg",
    username="I clear ball",
    team="United",
    ollama=OllamaSettings(
        model="gemma3",
        base_url="http://127.0.0.1:11434",
        mode="fallback",
    ),
)

print(result["winner"], result["scoreline"])

Ollama Cloud

For local Ollama, no API key is needed.

For Ollama Cloud, set an environment variable and point the base URL at Ollama:

export OLLAMA_API_KEY="your-key"
from efootball_analyzer import OllamaSettings, analyze_match_result

result = analyze_match_result(
    "result.jpg",
    ollama=OllamaSettings(
        model="gemma3",
        base_url="https://ollama.com",
        mode="fallback",
        api_key=None,
    ),
)

When api_key is omitted, the CLI and GUI read OLLAMA_API_KEY from the environment.

CLI

efootball-analyze --image result.jpg --use-ollama --ollama-model gemma3
efootball-analyze-gui

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.1.0.tar.gz (18.7 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.1.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for efootball_result_analyzer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9e9800f05777da922bdca6d15603862626f0a35727b2c869de4fe6f9fe0e9628
MD5 5b9eae789dfcc3cf97bc5f18033cd4c5
BLAKE2b-256 48d3ef914aef3d597de1b00371aee5ad46db1d5ed10fd00c4a7f94e7368128f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for efootball_result_analyzer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d03830e1a6734c1314d1ba1a804bbabb4968419cde39cc30fc3bacd8929dce82
MD5 f991b35de960e3fa9350fe8028cc7ccf
BLAKE2b-256 39ced8d47daddb5ec17a3dc91ff469f46b38e6eaf1e5a0d324bc57f29a0ccb48

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