Let's open the Cameo.py file, which contains the Cameo class that we last modified in Chapter 3, Processing Images with OpenCV. This class implements an application that works well with regular cameras. We do not necessarily want to replace this class, but rather we want to create a variant of it that changes the implementations of some methods in order to work with depth cameras instead. For this purpose, we will make a subclass, which inherits some of the Cameo behaviors and overrides other behaviors. Let's call it a CameoDepth subclass. Add the following line to Cameo.py (after the Cameo class and before the __main__ code block) in order to declare CameoDepth as a subclass of Cameo:
class CameoDepth(Cameo):
We will override or reimplement the __init__ method in CameoDepth. Whereas Cameo instantiates our CaptureManager class with a device...