Old School RuneScape Computer Vision Bot

View source on GitHub

A Python and OpenCV bot for Old School RuneScape. It captures the game client from the Windows desktop, runs a cascade classifier I trained on 200+ positive and 1,000+ negative samples, and converts detections into mouse actions — a complete capture → detect → act loop. I built it as a learning project because game botting gives computer vision instant feedback: the detector either finds the target on screen or it doesn't.

How it works

Stack: Python, OpenCV, NumPy, PyWin32, PyAutoGUI.

What I'd improve

Detection quality is currently verified by eye, not by measurement. Next: unit tests for the rectangle-to-click-point math and capture offsets, a reviewed image batch for repeatable detection-quality checks, timing instrumentation on the detection loop, and a config file to replace the hard-coded window title.

Code is on GitHub.