I had been trying so hard to find the shape of part on PCB by using Vision tools.I attached here a scanned image. Just wondering if someone got some ideas how to do this.Your ideas would be a great help
Have you looked into pattern matching? You basically train a template of each feature of interest, scan for matches, and get a 'score' of how each match rates against the trained template.
~~~~~~~~~~~~~~~~~~~~~~~~~~ "It’s the questions that drive us.” ~~~~~~~~~~~~~~~~~~~~~~~~~~
What I try to find is the Region Of Interest for the component.In this case it will be the rotated rectangle surrounding the component. Most of component are placed straight on PCB, so it is simply the bounding rectangle.