OCR in Qwoppy
Reinforcement Learning Qwoppy is based on reinforcement learning. That means the agent chooses an action based on an input, and then gets some feedback to indicate whether the action was good or bad. In particular Qwoppy is a model-free agent. Qwop is an HTML5 game which means I could look at the Javascript source code and use the physics calculations to derive a model, but where's the fun in that? Qwoppy is model-free, all the agent will have as input is the current score. But how do we get the score? YouTube mad scientist Suckerpinch whose Mario-playing AI inspired this project allowed his code direct access to the memory (not to make it sound like he took an easy route, since he actually runs the agent in a modified Mario NES cartridge). For this project I decided to use OCR. OCR I originally tried to avoid implementing the OCR myself because the goal of the project was to teach myself about reinforcement learning. I started using Tesseract with Python bindings but ...