This thesis presents work on the use of intelligent algorithms to solve a real-world machine vision problem in the automotive industry. Compared to commercial systems, the algorithm developed is both more robust to changes in the inspection environment and more intuitive for the user to configure.