More robust checkerboard detection, similar algorithm to libcbdetect
Project description
Checkerboard
I could not find any libraries to find checkerboards robustly in Python, except for OpenCV. However, OpenCV's checkerboard tends to fail when the checkerboard is somewhat blurred or rotated.
Hence, this library was born. It may be slightly slower than OpenCV, but it will find that checkerboard.
Comparison of OpenCV vs this library (OpenCV on the left, checkerboard on the right):
Quickstart
You can install checkerboard easily through pip:
pip install checkerboard
Then you can go ahead and detect checkerboards like so:
from checkerboard import detect_checkerboard size = (9, 6) # size of checkerboard image = ... # obtain checkerboard corners = detect_checkerboard(image, size)
References
The implementation of checkerboard detection is mainly based on libcbdetect and accompanying paper:
@INPROCEEDINGS{Geiger2012ICRA,
author = {Andreas Geiger and Frank Moosmann and Oemer Car and Bernhard Schuster},
title = {Automatic Calibration of Range and Camera Sensors using a single Shot},
booktitle = {International Conference on Robotics and Automation (ICRA)},
year = {2012}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size checkerboard-0.2.0-py3-none-any.whl (8.9 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Hashes for checkerboard-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4b55f88e1e26cbfa31c35426bb2db603bdc8f46bccd1041a49c4c9d6976629b |
|
MD5 | 48db402c1e558d88d8fd4ba4879e64e7 |
|
BLAKE2-256 | 1a43c9e9768d9d91d7f5a2cfbbc2aba1734069c92b2057e0948a31b8a4dac401 |