cv2.createStitcher builds an instance of the panorama stitching algorithm. To apply it to the panorama creation, you need to call its stitch method. This method accepts an array of images to combine, and returns a stitching result status as well as a panorama image. The status may have one of the following values:
- cv2.STITCHER_OK
- cv2.STITCHER_ERR_NEED_MORE_IMGS
- cv2.STITCHER_ERR_HOMOGRAPHY_EST_FAIL
- cv2.STITCHER_ERR_CAMERA_PARAMS_ADJUST_FAIL
The first value means the panorama was successfully created. The other values tell you that the panorama wasn't composed and gives you some hints about possible reasons.
The success of the stitching depends on the input images. They should have overlapping regions. The more overlapping areas ...