simple_fisheye_calibrator
Simple GUI-based correction of fisheye images. The correction parameters specified on the screen can be diverted to opencv's fisheye correction parameters. Supports execution via Docker.
- Fisheye image before calibration
- (Sample) Fisheye image after calibration
1. Install
1-1. Launching with Docker (with USB Camera / HostPC GUI, Docker Image size: 1.4GB)
- simple_capture
xhost +local: && \
docker run -it --rm \
-v `pwd`:/home/user/workdir \
-v /tmp/.X11-unix/:/tmp/.X11-unix:rw \
--device /dev/video0:/dev/video0:mwr \
--net=host \
-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
-e DISPLAY=$DISPLAY \
--privileged \
pinto0309/simple_fisheye_calibrator:0.0.11 \
/bin/bash -c 'sudo simple_capture'
# 1. Capture one test image from the USB camera with "c" on the keyboard
# 2. Exit the capture application with "q" on the keyboard
- simple_fisheye_calibrator
# Still image
xhost +local: && \
docker run -it --rm \
-v `pwd`:/home/user/workdir \
-v /tmp/.X11-unix/:/tmp/.X11-unix:rw \
--device /dev/video0:/dev/video0:mwr \
--net=host \
-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
-e DISPLAY=$DISPLAY \
--privileged \
pinto0309/simple_fisheye_calibrator:0.0.11 \
simple_fisheye_calibrator --file_path fisheye_test.jpg
or
# USB Camera: video0
xhost +local: && \
docker run -it --rm \
-v `pwd`:/home/user/workdir \
-v /tmp/.X11-unix/:/tmp/.X11-unix:rw \
--device /dev/video0:/dev/video0:mwr \
--net=host \
-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
-e DISPLAY=$DISPLAY \
--privileged \
pinto0309/simple_fisheye_calibrator:0.0.11 \
/bin/bash -c 'sudo simple_fisheye_calibrator --file_path 0'
1-2. Installation on the host PC
$ pip3 install -U simple_fisheye_calibrator
2. Usage
$ simple_capture
# 1. Capture one test image from the USB camera with "c" on the keyboard
# 2. Exit the capture application with "q" on the keyboard
# Still image
$ simple_fisheye_calibrator --file_path xxx.jpg
# USB Camera: video0
$ simple_fisheye_calibrator --file_path 0
or
$ sudo pip3 install cvui Pillow opencv_python numpy --upgrade
$ git clone https://github.com/PINTO0309/simple_fisheye_calibrator.git && \
cd simple_fisheye_calibrator
$ python3 simple_fisheye_calibrator/simple_capture.py
# 1. Capture one test image from the USB camera with "c" on the keyboard
# 2. Exit the capture application with "q" on the keyboard
# USB Camera: video0
$ python3 simple_fisheye_calibrator/simple_fisheye_calibrator.py --file_path 0
3. Parameter
usage:
simple_fisheye_calibrator.py \
[-h] \
[--file_path FILE_PATH] \
[--window_size_width WINDOW_SIZE_WIDTH] \
[--window_size_height WINDOW_SIZE_HEIGHT]
optional arguments:
-h, --help
show this help message and exit
--file_path FILE_PATH
File path of the still image (e.g. xxx.jpg) or device number of the camera (e.g. 0)
--window_size_width WINDOW_SIZE_WIDTH
Default window size width
--window_size_height WINDOW_SIZE_HEIGHT
Default window size height
Metadata
Release files for simple-fisheye-calibrator 0.0.11
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 |
|---|---|---|---|---|
| simple_fisheye_calibrator-0.0.11.tar.gz | 5.8 kB | Without provenance | Details for simple_fisheye_calibrator-0.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_fisheye_calibrator-0.0.11-py3-none-any.whl | Python 3 | none | any | Details for simple_fisheye_calibrator-0.0.11-py3-none-any.whl |
Total release size: 11.6 kB
Release files / simple_fisheye_calibrator-0.0.11.tar.gz
| Download URL | simple_fisheye_calibrator-0.0.11.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0810bbae15e69b323bbbf03fa817a3a2310c039b9dfc33aef01eeda612469fd7
|
|
BLAKE2b-256 checksum How to use checksums |
605a167c34d7347ea7d822c75a089148e64a70c8a1614e6d6d33652aab4d6399
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/56.0.0 requests-toolbelt/0.8.0 tqdm/4.40.0 CPython/3.8.5
|
Release files / simple_fisheye_calibrator-0.0.11-py3-none-any.whl
| Download URL | simple_fisheye_calibrator-0.0.11-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89a0a05df93db9329245d9dfd804d628bb776c1d025c837d1eb44db524674882
|
|
BLAKE2b-256 checksum How to use checksums |
615a22008c9ca486a147c35705d318a9e7e0f6eaa71e97573e7a1b6a7e8a6412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/56.0.0 requests-toolbelt/0.8.0 tqdm/4.40.0 CPython/3.8.5
|
Security for simple-fisheye-calibrator 0.0.11
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.