Detection of hamming markers for OpenCV written in python