Ask Your Question
0

Count Interested points

asked 2014-08-02 12:38:38 -0600

sergio gravatar image

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?

edit retag flag offensive close merge delete

Comments

legs (lines) have same length ? or they can change ? and you work for just this specific device legs ?

FLY gravatar imageFLY ( 2014-08-02 15:43:47 -0600 )edit

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

sergio gravatar imagesergio ( 2014-08-02 15:55:47 -0600 )edit

1 answer

Sort by » oldest newest most voted
2

answered 2014-08-04 07:36:23 -0600

thdrksdfthmn gravatar image

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...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-08-02 12:38:38 -0600

Seen: 291 times

Last updated: Aug 04 '14