Login using Social Account
     Continue with GoogleLogin using your credentials
And finally comes the last part, the stitching of the images.
We shall place the left image on the dst
whose shape is left-image width plus right-mage width.
Then, we shall save the resultant file - the final stitched panorama image - and display it.
Note:
cv2.imwrite
method saves the given image as a file with the given name.
We are placing the left image on the dst
whose shape is left-image width plus right-mage width.
dst[0:img_left.shape[0], 0:img_left.shape[1]] = img_left
Now let us store the resultant stitched image dst
as resultant_stitched_panorama.jpg
using imwrite
method of cv2
.
cv2.<< your code comes here >>('resultant_stitched_panorama.jpg',dst)
Let us display the stitched image using plt.imshow
.
plt.figure(figsize=(30,20))
plt.title('Stitched Image')
plt.imshow(fixColor(dst))
Taking you to the next topic in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...