class VideoStitcher:
def init(self, left_video_in_path, right_video_in_path, video_out_path, video_out_width=800, display=False):
# Initialize arguments
self.left_video_in_path = left_video_in_path
self.right_video_in_path = right_video_in_path
self.video_out_path = video_out_path
self.video_out_width = video_out_width
self.display = display
# Initialize the saved homography matrix
self.saved_homo_matrix = None
and
def run(self):
# Set up video capture
left_video = cv2.VideoCapture(self.left_video_in_path)
right_video = cv2.VideoCapture(self.right_video_in_path)
I am trying to implement with the changes marked in bold part.