Search code examples
iosswiftuiimagepickercontrollerpanoramas

Creating a panoramic photo


I want to be able to create a panoramic photo app or something that will be able to stitch multiple photos together (much like google photo sphere), but before I start I want to get a bit more information how it is done.

Is it done using the UIImagePickerController framework?

Is there any other useful API's or anything out there I can use?

Can somebody give me a brief overview of how this works.


Solution

  • There is no available native API with stitching algorithm. You should dig into the 3rd party OpenCV library and check their stitcher documentation

    Basic Key steps of stitching algorithm:

    • Detect keypoints in each input image (eg. Harris corners) and extract the invariant descriptors of the images (eg. SIFT)
    • Match the descriptors between images
    • Using RANSACcalculate the homography matrix and apply the transformation