I’m working on a simple project that will be used for a bigger project. The simple problem at hand is that I’m trying to have my M7 see and recognize black/white checkerboard from any rotation angle, know that it is what it is (and not other random rectangles in a picture), and turn an LED on. To do this, I’ll be outputting 1s and 0s depending on if it recognizes the checkerboard. I figured I could do a histogram equalization on the image, set it to binary with a threshold of around (250, 255), and use erode(1), the same way it’s used for the “Donkey Car”. From here, I thought about just using the find_rectangle method, but it ended up seeing other rects where there wasn’t checkerboard. I also considered having it learn the checkerboard as a basic QR code or April tag.
Does this seem like a good approach to my problem at hand? Any tips for my plan or adjustments I ought to make? Should I consider a different method? I’d be grateful for any help. Thanks!