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)
Metadata
Release files for pyomniunwarp 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyomniunwarp-0.2.5.tar.gz | 166.4 kB | Without provenance | Details for pyomniunwarp-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyomniunwarp-0.2.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pyomniunwarp-0.2.5-py2.py3-none-any.whl |
Total release size: 330.5 kB
Release files / pyomniunwarp-0.2.5.tar.gz
| Download URL | pyomniunwarp-0.2.5.tar.gz |
|---|---|
| Size | 166.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce6f47bbfeca751cb0c4512ded4ab20bee79a7df6dc76fcf5c81abbd3c925af8
|
|
BLAKE2b-256 checksum How to use checksums |
95a5c15b58aef250ef82771a5d1a335291fbd329513bfb675716caf8c4f05f0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / pyomniunwarp-0.2.5-py2.py3-none-any.whl
| Download URL | pyomniunwarp-0.2.5-py2.py3-none-any.whl |
|---|---|
| Size | 164.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9019ba373db950940397f8c75e2636b237f6bd5421cf38b0d574dda7ffc8ebe2
|
|
BLAKE2b-256 checksum How to use checksums |
9513be5058ee084cbe49207fb4d78030b1db7a1e213570e10724865b4f5f926f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for pyomniunwarp 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.