In this section, we will learn about one of the techniques that helps in creating a panoramic view by combining multiple images.
Imagine a scenario where you are capturing the panorama of a place using your camera. Essentially, you are taking multiple shots, and in the backend, the algorithm is mapping the common elements present across the images (moving from the leftmost to the rightmost side) into a single image.
To perform the stitching of images, we will leverage the ORB (Oriented FAST and Rotated BRIEF) method available in cv2. Getting into the details of how these algorithms work is beyond the scope of this book – we encourage you to go through the documentation and the paper available at https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_feature2d/py_orb/py_orb.html.
At a high level, the method identifies keypoints within a query image (image1) and then associates them with the keypoints identified in another training...