Fix for threshold mode and contour size minimum

Fixed the threshold mode, cv::findContours edits the inputed image but
we don’t need contours on this mode.
Added a minimum contour size when checking for markers, a contours
length must be at least 10 (in testing all the markers I found were
over 100).