In my continuing effort to create Rainman 2.0, a Raspberry Pi-powered, blackjack-playing robot, I discovered that the best way to detect playing cards is using a TensorFlow object detection neural network. I trained a network specifically to detect cards (and made a YouTube video explaining how to train your own). To use the network on the Raspberry Pi, I needed to install TensorFlow and its Object Detection API. It turns out its not very easy to do!
After figuring out how to install TensorFlow, I made this video about how to do it yourself. Please check it out if you're interested in using a Raspberry Pi for your own machine learning applications!