Count Interested points
Hi, I´m trying to count interested points, for example: (http://thumbs3.ebaystatic.com/d/l225/m/mDzzU7Q0f5mSJYu7XPW_GQw.jpg) Any idea of how can I know how many legs the transistor have?
Hi, I´m trying to count interested points, for example: (http://thumbs3.ebaystatic.com/d/l225/m/mDzzU7Q0f5mSJYu7XPW_GQw.jpg) Any idea of how can I know how many legs the transistor have?
If the transistors are all the same shape (all with the legs
in the bottom part of the image/detection), you can binarize the image (with Otsu threshold) and count the number of passing from 0 to 1 (or 255) in the row 2*img.rows/3
(or something like this) and divide it by 2 for getting the number of legs
.
If the background is not always white, then you shall try to find some improvements...
Asked: 2014-08-02 12:38:38 -0600
Seen: 291 times
Last updated: Aug 04 '14
legs
(lines) have same length ? or they can change ? and you work for just this specific devicelegs
?I mean how to know if the transistor has 3 legs(lines), and discard transistors that has 2 or 1 leg(because some of them can be broken). I want to start first with this specific device and later make a bigger functionality