Skip to main content

`img360_transformer` is a Python tool for batch processing and recentering 360-degree images. It provides both a command-line interface and a graphical user interface for ease of use.

Project description

img360_transformer

img360_transformer is a Python tool for batch processing and recentering 360-degree images. It provides both a command-line interface and a graphical user interface for ease of use.

Installation

  1. Install the required dependencies:
    pip install -r requirements.txt
    
  2. Ensure exiftool is installed and available in your system's PATH. You can download it from ExifTool website.

Usage

Command-Line Interface

To use the command-line interface, run the following command:

python main.py <pitch> <yaw> <roll> <image1_or_glob> [<image2_or_glob> ...]
  • <pitch>: The pitch adjustment in degrees.
  • <yaw>: The yaw adjustment in degrees.
  • <roll>: The roll adjustment in degrees.
  • <image1_or_glob>: The path to the first image or a glob pattern to match multiple images.
  • [<image2_or_glob> ...]: Additional image paths or glob patterns.

Example:

python main.py 0 -30 0 "images/*.jpg"

Graphical User Interface

To launch the graphical user interface, run the following command:

python main.py <image>
  • <image>: The path to a single image.

Example:

python main.py "images/sample.jpg"

Help

For help and usage instructions, run:

python main.py --help

Potential errors

On Windows

You may encounter the following error when running the program on Windows:

ImportError: DLL load failed: The specified module could not be found.

If this happens on Windows, make sure you have Visual C++ redistributable 2015 installed. If you are using older Windows version than Windows 10 and latest system updates are not installed, Universal C Runtime might be also required.

On Linux

When running with GUI, you may encounter the following error:

cv2.error: OpenCV(4.6.0) ./modules/highgui/src/window_QT.cpp:495: error: (-27:Null pointer) NULL window handler in function 'icvFindTrackBarByName'

I don't know how to fix this yet. If you know how to fix this, please let me know.

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

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

img360_transformer-0.1.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

img360_transformer-0.1.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file img360_transformer-0.1.1.tar.gz.

File metadata

  • Download URL: img360_transformer-0.1.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Windows/11

File hashes

Hashes for img360_transformer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d52a3efd3253ba7fb71a980638809305577c9dc487fa331d11a5942ead5cbc51
MD5 109134dd8f92586c3bf81f9ff20e1268
BLAKE2b-256 cd6f4ed1d698cefee53e8c414f419839cad4f8066c52c66a2dd0501ee12e4d86

See more details on using hashes here.

File details

Details for the file img360_transformer-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for img360_transformer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f7fa898369f66389bf8bd255b599dfc4a94a3456308cf9c4f2663100fed84dc
MD5 ef5dbdc79a44301a7c1534b9d833671b
BLAKE2b-256 d86923e34364fa84da0daf35485a020d501284240d47740f70b5e1ff4860b071

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