Image stitching Python

前端 未结 2 542
南旧
南旧 2021-02-11 08:46

I have to stitch two or more images together using python and openCV. I found this code for finding keypoints and matches, but I don\'t know how to continue. Help me please!

2条回答
  •  面向向阳花
    2021-02-11 09:09

    One approach to image stitching consists of the following steps.

    Firstly, as you've already figured out, you need a feature point detector and the some way to find correspondences between feature points on both images. It's typically a good idea to eliminate a lot of correspondences because they will likely contain a lot of noise. A super simple way to eliminate a lot of noise is to look for symmetry in the matches.

    This is roughly what your code does up to this point.

    Next, to stitch images together, you need to warp one of the images to match the perspective of the other image. This is done by estimating the homography using the correspondences. Because your correspondences will still likely contain a lot of noise, we typically use RANSAC to robustly estimate the homography.

    A quick google search provides many examples of this being implemented.

提交回复
热议问题