This recipe will be quite verbose in terms of the amount of code we'll be seeing, but everything will be done in Docker. You can use VS Code's Docker extension to work directly within the Docker container. You will also need a device with a webcam attached to it. This could be a laptop or a Raspberry Pi with a webcam – it doesn't really matter. For this recipe, we are going to set up a machine learning service, a camera streaming service, and a service that allows the devices to know where other devices are, and allow you to view your classification across your entire fleet of devices.
Although this is fairly simple, listing the code for all of the containers would take dozens of pages. For the sake of brevity, in this recipe, we are going to show the computer vision module. The rest of the modules can be run using Docker and the code in the GitHub repository for this book.