Tracking checkerboard cube pose into a unitary operation with opencv