The design of the Abstract Camera class is not the best, we should opt into using dependency injection, however, the Pi camera and open cv cameras have different configurations so we should use a factory design pattern to configure our object before passing them into our respective camera classes.
The design of the Abstract Camera class is not the best, we should opt into using dependency injection, however, the Pi camera and open cv cameras have different configurations so we should use a factory design pattern to configure our object before passing them into our respective camera classes.