Unable to detect `Aprilgrid` board

I wrote a pure python version of aprilgrid detection.