how to - detect right object in right position? Answered
I have a small square object (6cm x 6cm) that I must put in a mold, but how it's square, is possible put it in any position, but only 1 is the right one. The reference is a 5mm label in the top. I want detect if the object in the mold has the right position.
Actually I have 5 different objects, the difference between them is the number in the label. My idea is use a Raspberry Pi + Pi Camera + openCV. There will be a collection of images for reference and the camera will be recording jpgs (maybe 1fps) and comparing with the images in the collection. There will be a red led lighting, but if the RPi detect the right object in the right position will light a green led.
Maybe somebody knows a similar project? is possible with this hardware/software? some recommendation?
For better idea, I'm attaching a mock-up