Skip to content

DittoOne/Capture-The-Scene

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ₯ Video to Panorama Generator

Convert any video into a beautiful panoramic image using OpenCV and Python.
This tool extracts key frames from a video and stitches them together to generate a wide-angle panoramic view.


✨ Features

  • βœ… Extracts up to 30 evenly spaced frames for stitching
  • 🧠 Uses OpenCV’s Stitcher API to generate panorama
  • πŸ“‰ Automatically resizes large frames for better performance
  • πŸ”„ Fallback: If stitching fails, falls back to horizontal concatenation
  • πŸ’Ύ Saves output image in the same directory as the input video
  • πŸ–ΌοΈ Displays final panorama using matplotlib

πŸ“¦ Tech Stack

  • Python 3.x
  • OpenCV (cv2)
  • NumPy
  • Matplotlib
  • OS, pathlib

πŸš€ Getting Started

πŸ› οΈ Prerequisites

Ensure the following Python packages are installed: -- pip install opencv-python numpy matplotlib

🧠 How It Works Extracts evenly spaced frames (max 30) from input video

Downscales frames for speed if width > 800px

Attempts to stitch using cv2.Stitcher.create()

If stitching fails, performs simple np.hstack() horizontal concatenation

Displays the result using matplotlib

πŸŽ₯ Demo

βœ… Check out how it works in this video: ![Watch the Demo]

🌐 LinkedIn Profile Md Shahriar Rahman Bhuiyan

About

This python scripts gets paneromic view of from a recorded video

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published