Ruzel AbdrakhmanovAvailable for work
All projects
Automation Bot

CoC Loot Finder — a Vision Bot for Clash of Clans

A Python vision bot that drives an Android emulator over ADB, reads each base’s loot with neural OCR, and auto-scans for high-value targets — pinging Telegram the moment it finds one.

Year
2025
Client
Personal product
Role
Product & Automation
Duration
Personal
PythonADBEasyOCRPillowTelegram API

Problem :

In Clash of Clans, finding a base worth attacking means tapping “Next” hundreds of times and squinting at tiny loot numbers on every screen. It’s slow, mind-numbing, and you still miss the good ones.

Solution :

A vision bot that does the scanning for you. It drives an Android emulator (LDPlayer) over ADB — screen-capturing each base and reading the available gold, elixir and dark elixir with neural OCR — then auto-taps “Next” until a base clears your loot thresholds. When it finds one, it stops, beeps, and sends the base screenshot plus the loot to Telegram.

My Role :

Everything — the idea, the ADB automation, the OCR pipeline and its calibration, the threshold logic and the Telegram notifications.

Process :

It works purely over ADB (screencap + input tap), so it never touches the real mouse and the emulator window can stay minimised. A calibration mode dumps the OCR regions and detected numbers for quick re-tuning; the main loop reads the loot, compares it against thresholds, and either advances to the next base or halts. Stop any time with F9 or Ctrl+C.

Outcome :

Hands-free loot scanning: it quietly hunts through bases and pings my phone the moment a fat one shows up — no attacking, just finding. A small but complete computer-vision automation.

Tech Stack :

Python with ADB driving LDPlayer, EasyOCR (neural OCR) to read loot off the screen, Pillow for image handling, global F9 / Ctrl+C hotkeys, and the Telegram Bot API for photo notifications.