📷 This repository provides a script to generate the distortion matrix used in VSS-Vision.
- Save a minimum of 10 frames taken from the camera to be used, using an image of a chessboard. (Example)
- The "img" folder contains a script for capturing frames.
To Run:
python capture_frames.py
or python3 capture_frames.py
- To capture a frame, press 's'.
- After capturing a minimum of 10 frames, press 'q'.
To Run:
python camera_calibration.py
or python3 camera_calibration.py
- After the script execution, the matrix will be saved in the root of the repository in an XML file.
- A visualization of the distortion removal will be displayed; to exit, press 'q'.