Chess Result Analyzer Ollama
OCR-first chess screenshot analysis with an optional Ollama fallback.
Features
- OCR-first flow that skips Ollama when OCR confidence is already high
- Optional Ollama fallback for uncertain screenshots
- Chess.com mobile and desktop result parsing
- Importable Python API
- Desktop GUI uploader
- CLI entrypoints
Install
pip install chess-result-analyzer-ollama
You also need the native Tesseract executable installed on your machine.
Python Usage
from chess_result_analyzer import OllamaSettings, analyze_chess_result
result = analyze_chess_result(
"result.png",
username="isco-olad",
ollama=OllamaSettings(
model="gemma3:4b",
base_url="http://127.0.0.1:11434",
mode="fallback",
),
)
print(result["winner"], result["winner_color"])
print(result["ollama_decision"], result["ollama_reason"])
Hosted Ollama
export OLLAMA_BASE_URL="https://ollama.com"
export OLLAMA_API_KEY="your-key"
CLI
chess-analyze --image result.png --username isco-olad
chess-analyze --image result.png --use-ollama --ollama-model gemma3:4b
chess-analyze-gui
Metadata
Release files for chess-result-analyzer-ollama 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chess_result_analyzer_ollama-0.1.1.tar.gz | 21.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chess_result_analyzer_ollama-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.6 kB
Release files / chess_result_analyzer_ollama-0.1.1.tar.gz
| Download URL | chess_result_analyzer_ollama-0.1.1.tar.gz |
|---|---|
| Size | 21.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e868341d37e6039e16163660464bb3c6a4872a1476a0ed7c0c71f6c2a5d8bed9
|
|
BLAKE2b-256 checksum How to use checksums |
e1fb364f1e580c7ffd6ddef553616c4e4f895f4d91dea1d7dc06eb7d78e61db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / chess_result_analyzer_ollama-0.1.1-py3-none-any.whl
| Download URL | chess_result_analyzer_ollama-0.1.1-py3-none-any.whl |
|---|---|
| Size | 23.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93f11c15ff5628e53fd69b96a1f3af2ccf20725e09f2336906e4a5b4fd533c19
|
|
BLAKE2b-256 checksum How to use checksums |
071564bf113cada7fc9bbd4022bf98fd2e608ed0f5cbb8451ee5a8b03b821927
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|