Here's the software that runs on a hat that counts cards in Blackjack via openCV
All c++ code in this repo runs on a laptop that the raspberry-pi communicates with. The image recognicition code itself runs on the pi. I will upload the python files here eventually.