https://github.com/kalfasyan/undistort
Simple package to remove spatial distortion from images.
https://github.com/kalfasyan/undistort
computer-vision lens-correction lens-distortion
Last synced: 12 months ago
JSON representation
Simple package to remove spatial distortion from images.
- Host: GitHub
- URL: https://github.com/kalfasyan/undistort
- Owner: kalfasyan
- License: mit
- Created: 2021-03-08T15:12:44.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-05-09T13:44:55.000Z (about 4 years ago)
- Last Synced: 2025-07-05T00:12:33.389Z (about 1 year ago)
- Topics: computer-vision, lens-correction, lens-distortion
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# undistort
Simple package to undistort images.
1. Place all chessboard images in `chessboard_images/` folder.
2. Place all your sticky plate images (or whatever you want to undistort) in `stickyplate_images/` folder.
3. Run ```python main.py```. All undistorted images will be stored in an automatically created folder named `undistorted_images/`.
4. (optional) Run ```python clean_all.py``` to clean all your directories and prepare them for copying the new session.
Dependencies: `numpy`,`opencv`
**NOTE**: If you work on Windows, you will encounter issues with the file-paths. To solve them you have some options: 1) replace strings with "raw strings" (example: r"this is a raw string"), 2) make sure to replace all "/" characters in `main.py` and `clean_all.py` with "\\\\" (ignore the quotes) or 3) try using Python's pathlib to handle paths.