Unifying picamera and cv2.VideoCapture into a single class with OpenCV – PyImageSearch