Skip to content

The First Part of the code consists of a pipeline to detect the page corners in a video frame. The Second Part of the code is stitching an image taken from different perspectives using Homography Calculation and Warp Perspective

Notifications You must be signed in to change notification settings

robosac333/Image-Stitching

Repository files navigation

Corner-Detection-and-Image-Stitching-to-create-Panorama-View

The First Part of the code consists of a pipeline to detect the page corners in a video frame. The Second Part of the code is stitching an image taken from different perspectives using Homography Calculation and Warp Perspective

For Corner Detection the Video can be found at here

  1. Read the video and extract individual frames using OpenCV.
  2. Skip blurry frames (use Variance of the Laplacian and decide a suitable threshold) Note: Any value below 150 for the Variance of the Laplacian, suggests that it’s a blurry image.
  3. Segment out the unwanted background area (example: convert to gray scale and keep white regions)
  4. Detect edges pixels in each frame using Canny Edge Detector
image
  1. Use the detected edge pixels to extract straight lines in each frame (hint: use Hough Transform)
  2. Filter out “short” lines and only keep a few dominant lines.
  3. Compute the intersections of the Hough Lines – these are the putative corners of the paper.
  4. Verify the existence of those corners with Harris corner detector. (use OpenCV built-in function)
image
  1. Filter out remaining extraneous corners that are not the 4 corners of the paper.
image
  1. Generate the output video in which you have to overlay the 4 blue boundary lines and 4 red corners of the paperin each frame (excluding the blurry frames)

For Image Stitching the Images can be found here

  1. Load the images

    image
  2. Obtain the best best Matches between conscutive images using FLANN based KNN matches

    image
  3. Obtaining Homographies between adjacent images and Warping perspective.

  4. Attching the warped perspective along the destination image.

    image

About

The First Part of the code consists of a pipeline to detect the page corners in a video frame. The Second Part of the code is stitching an image taken from different perspectives using Homography Calculation and Warp Perspective

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published