March 2020
Intermediate to advanced
366 pages
9h 8m
English
You can either play with the script that we already have and add or remove certain features (for example, you can add a white balance compensator, to make sure you have a smoother transition from one picture to another), or you can tweak other parameters to learn.
But know this—when you need a quick panorama, OpenCV also has a handy Stitcher class that does most of what we have discussed already:
images = [load_image(p, bps=8) for p in args.images] stitcher = cv2.Stitcher_create() (status, stitched) = stitcher.stitch(images)
This code snippet is probably a lot faster than uploading your photos to a panorama service to get a good picture—so enjoy creating panoramas!
Don't forget to add some code to crop the panorama ...