Create a VideoProcessor class from OpenCV's VideoCapture class to process the video frames.