10-19-2015 01:48 AM
Hi this is my first go at machine vision and the Vision Assistant tool. I am trying to find a rectangle shape in an image, and determine its centre and rotation about that centre. I have started off with this image:
and I have boosted the saturation and contrast to make a clearer target area:
I am interested in the main red rectangle rotated about 5 degrees clockwise. To me it looks like it has suitably contrasty edges, but I have quickly tried a few of the edge detection (including rake) and pattern matching algorithms and I am not getting any useful results. It may be that the white lines are interfering. I tried to extract just the red color plane but since white also contains red these lines are still appearing.
I am hoping to get some ideas for various approaches to accurately get the center and rotation of this part, along with any tips needed to achieve success. Thanks for any advice!
Solved! Go to Solution.
10-19-2015 10:51 AM
I would try using color thresholding to extract the rectangle. Use particle analysis on the rectangular blob and you should be able to get a rotation value.
Bruce