/Zhang-s-Method

Implementation of Camera Calibration using Zhang’s Method.

Primary LanguagePythonMIT LicenseMIT

Zhang-s-Method

Zhang's Method is one of the camera calibration techniques.

Demo

Figure_1 Figure_2

Installation

You can install the required packages using requirements.txt file.

pip install -r /path/to/requirements.txt

Also, install next to packages manually.

opencv
numpy
pytransform3d

Usage

# image_points are lists of points that get a feature extractor on a checkboard.
# world_points are lists of generated get_world_point() function.
Homography = compute_homography(image_points, world_points)

Intrinsic matrix, Inverse of Intrinsic matrix = compute_intrinsic(list of Homograpy)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.