The way image recognition works is we first need to "train" a classifier.
To do this, we generally need to compile a massive set of images of what we're looking to detect (In this case face). For a lot of the image recognition tasks, people have already built data sets to use for the training part. Face Detection is very popular, so there are already a lot of datasets for face data (money.xml for this project).
So based on a cascade file (money.xml) it can detect a face picture on the money.
and after that it checks if the money is at the center of the frame or not.
If not, raspberry pi controls two servo motors to allow the Pi camera to pan/tilt while tracking the money in real time.
You can download the code from the YouTube video description.
This robot, which was created based on Raspberry Pi 3 B+ and using OpenCV, is really interesting and very original. I like everything that has to do with money and games. Recently found $5 Deposit Casinos, used Best $5 Deposit Casinos in Canada ▷ Deposit $5 play with $50 for this. I was immediately attracted to it actually. I would like to come up with a robot and somehow connect it with a casino, but I have no ideas yet.