Skip to main content

A package to convert video sequences into panoramic images

Project description

video2panorama

video2panorama

video2panorama is a Python-based tool designed to transform video sequences into panoramic images. It automates the stitching process by analyzing frames from input video files and producing panoramic outputs.

How to install

1. install with pip

For users who want to install the package directly from PyPI:

pip install video2panorama

2. Cloning the repo and installing locally

For those who prefer to work with the latest code or contribute to the project, you can clone the GitHub repository and install it locally.

Clone the repo:

git clone https://github.com/RaduBolbo/video_to_panorama.git

Navigate into the cloned directory:

cd video_to_panorama

Create a conda environemnt:

conda create --name v2p python==3.10

Activate the conda environemnt:

conda activate v2p 

Install the package:

pip install .

How to use

2. Using the terminal

Run the following command in the terimanl:

video2panorama  --input_path path/to/your/video.mp4 --output_path path/to/the/output/panoramic_image.png

Additionally, if you wantto try other hyperparameters, you can include them in a .json file whos path you can send to the comman:

video2panorama  --input_path path/to/your/video.mp4 --output_path path/to/the/output/panoramic_image.png --hyperparameters_path path/to/your/config/file.json

The config file should have the following format:

{
    "feature_extraction_algo" : "sift",
    "ratio" : 0.75,
    "reprojectionThresh" : 2,
    "adaptive_shift_pixels" : 2,
    "non_dominant_direction_pixels_freedom_degree" : 0
}

The hyperparameters are explained in ****

2. Using the Python Api

from video2panorama.panorama import Video2Panorama

tts = Video2Panorama()
tts.convert('path/to/your/video.mp', 'path/to/the/output/panoramic_image.png')

If you want to overwrite the default parameters you can specify them in the constructor:

tts = Video2Panorama(feature_extraction_algo="sift",
                    ratio=0.75,
                    reprojectionThresh=2,
                    adaptive_shift_pixels=2,
                    non_dominant_direction_pixels_freedom_degree=0
                    )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video2panorama-1.0.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

video2panorama-1.0.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file video2panorama-1.0.1.tar.gz.

File metadata

  • Download URL: video2panorama-1.0.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for video2panorama-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fb1dd0eb4058ccf97817169ae33a9e19b5c94234dd7405210ebe754cefa277df
MD5 1aaa091b13db3a5a0aacd5899ef77cfa
BLAKE2b-256 cce2a24de9abbd3b6a789d8649764ac9bba132567c0a2e5156d9abe008a8ac05

See more details on using hashes here.

File details

Details for the file video2panorama-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: video2panorama-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for video2panorama-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c9535f0511873c02f61aa2fcd36e6057fb1ea2fb55c3526406a785e4014de91
MD5 7ab4dd09abb7c61833f2d1e618678402
BLAKE2b-256 fd67d0d41e25c2a9d991eeced6150e494d6534743d1cd37cf84b7857bf0af544

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page