basics of an AR marker-detection example: adaptive thresholding, contour detection, polygon approximation, etc