Detecting a lego baseplate in an image
问题 I want my code to find the corners of a square lego plate in an image like the one attached. I also want to find its dimensions, i.e. the number of "blops" in both dimensions (48x48 in the attached image). I am currently looking at detecting the individual "blops", and the result so far is pretty good: a combination of blur, adaptiveThreshold, findContours and selection based on area finds the contours rendered in the second attached image (coloring is random). I'm now looking for an