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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file efootball_result_analyzer-0.1.0.tar.gz.
File metadata
- Download URL: efootball_result_analyzer-0.1.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e9800f05777da922bdca6d15603862626f0a35727b2c869de4fe6f9fe0e9628
|
|
| MD5 |
5b9eae789dfcc3cf97bc5f18033cd4c5
|
|
| BLAKE2b-256 |
48d3ef914aef3d597de1b00371aee5ad46db1d5ed10fd00c4a7f94e7368128f9
|
File details
Details for the file efootball_result_analyzer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: efootball_result_analyzer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d03830e1a6734c1314d1ba1a804bbabb4968419cde39cc30fc3bacd8929dce82
|
|
| MD5 |
f991b35de960e3fa9350fe8028cc7ccf
|
|
| BLAKE2b-256 |
39ced8d47daddb5ec17a3dc91ff469f46b38e6eaf1e5a0d324bc57f29a0ccb48
|