You need to use [PyRotationWarper](https://docs.opencv.org/4.x/d5/d76/classcv_1_1PyRotationWarper.html) with type 'spherical'. It [will be mapped](https://github.com/opencv/opencv/blob/4.x/modules/stitching/src/warpers.cpp#L58) to SphericalWarper