In this chapter, we created a Smart Doorbell application that will announce who is at the door once they are picked up by a webcam. By sticking to an object-oriented approach, we were able to organize our edge code into three separate components, the Face class, the Message class, and the Camera script. At the heart of the Smart Doorbell application is the Face class. Using the object-oriented approach, we were able to write the code and test the functionality of this class quickly. We were also able to build and test the Message class the same way.
In the construction of our edge code, we were introduced to the OpenCV and face_recognition libraries. Having these libraries made our task so much easier as they did the majority of the heavy lifting for us. The paho.mqtt library made it very easy to connect to the outside world through the use of the MQTT protocol.
An MQTT...