recognition.cpp

Test it when you have time.