A common task in indoor robotics is line-following. This code detects and tracks arbitrarily shaped curves in digital images at a rate of 15 Hz on images of size 600x320, which makes it usable for real-time tasks. It is written in C++ and tested on linux