A lifetime ago I wrote an OpenCV blob detection auto-mining tool for it:
https://gitlab.com/mtekman/runescape-motiondetector
It worked for about an hour before having the nasty habit of attacking monsters, chasing them out into the wilderness where you'd check in on your character and find him dead, barren, and lost.
Fun though.