Skip to content

varun-suresh/imagestitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stitch Images

Given 2 images (left and right in that order), stitch the image to create a panorama image.

Initial State |Upload Images | Result

Baseline approach

To stitch two images

  1. Find the keypoints in the first and second image. In this case, I used ORB from the CV2 library.
  2. Find the keypoint matches between the two images and sort them by distance.
  3. Estimate the homography matrix using the keypoint matches.
  4. Using the homography matrix, project the second image in the reference frame of the first image.
  5. Put the first image and the projected second image side by side.

Setup

  1. Install UV.
  2. Clone this repository by running
git clone https://github.com/varun-suresh/imagestitch.py
  1. From the cloned repository, run
uv sync
  1. To run image stitch, run
uv run fastapi main.py

and navigate to localhost:8000/static/index.html.

You should now be able to stitch images!

About

Create a panorama image

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published