A simple tool for unwrapping 360 degrees omnidirectional images.
Project description
Overview
This is a python package using Scaramuzza model to rectify omnidirectional images
Prerequisite
$ pip install opencv-python
Installation
$ pip install pyomniunwarp
Parameters
Prepare the parameters as the following format
kwargs = {
"mode": "cuboid", # cuboid or cylinder
"version": "0.2.2", # https://pypi.org/project/pyomniunwarp/
"calib_results_path": calib_results_path,
"FOV": 90,
"output_height": 365
}
Region of Interest
| Region | Direction |
|---|---|
| A | Front |
| B | Right |
| C | Back |
| D | Left |
| E | Full(B+C+D+A) |
| F | Front-Left |
| G | Front-Right |
Version Specification
In version 0.2.1, default ROI is (A, D, C, B, E)
In version 0.2.2 and later, default ROI is (A, D, C, B, E, F, G)
Usage
To run the example in python
import pyomniunwarp.example
pyomniunwarp.example.run_example()
To use the calibrated model in python, prepare calib_results.txt from OCamCalib toolbox.
Edit calib_results.txt as the following example here
Put calib_results.txt under the same folder with the python script
Then in python, import as
from pyomniunwarp import OmniUnwarp
unwarper = OmniUnwarp(**kwargs)
Initialize will take several seconds. After the initializtion, perform unwarping by
imgs, masks, labels = unwarper.rectify(original_img)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyomniunwarp-0.2.5.tar.gz.
File metadata
- Download URL: pyomniunwarp-0.2.5.tar.gz
- Upload date:
- Size: 166.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce6f47bbfeca751cb0c4512ded4ab20bee79a7df6dc76fcf5c81abbd3c925af8
|
|
| MD5 |
52036ac7eccae4a7f8e5e2b2f911b758
|
|
| BLAKE2b-256 |
95a5c15b58aef250ef82771a5d1a335291fbd329513bfb675716caf8c4f05f0b
|
File details
Details for the file pyomniunwarp-0.2.5-py2.py3-none-any.whl.
File metadata
- Download URL: pyomniunwarp-0.2.5-py2.py3-none-any.whl
- Upload date:
- Size: 164.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9019ba373db950940397f8c75e2636b237f6bd5421cf38b0d574dda7ffc8ebe2
|
|
| MD5 |
781bce0468cfa6dee907d990359d594f
|
|
| BLAKE2b-256 |
9513be5058ee084cbe49207fb4d78030b1db7a1e213570e10724865b4f5f926f
|