Skip to content

About

This python scripts gets paneromic view of from a recorded video

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages