Chessboard detector for python