LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extract numbers from image

how should i extract numbers from 7 segment display????help me out

0 Kudos
Message 1 of 11
(4,892 Views)

Something like OCR?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 11
(4,881 Views)

I don't have the vision toolkit installed right now, but I know that there is a function for reading a 7 segment display, and there is an example in the example finder.  The trick I remember using this is that the first time you use it all segments must be on.  Then the next read can have some of them off and it will tell you the number from the image.

 

Of course in the end this solution didn't work for me.  I couldn't control my display enough to set all segments to on.  Instead I took a baseline image when all segments are off (I turned the power off to them) then turn the device on and subtracted the two images.  Then setup a threshold to a binary image.  Then setup edge detection on 3 lines, one going vertical (right down the center to find the 3 segments) and two going horizontal (each finding 2 segments).  For a segment to be on the edge detection needed to see both a low to high, and a high to low in the space expected.  Then there was a conversion from what segments were on to what the number was.  The requirement was that we could detect if a segment was out which was more important then the actual number which is another reason why I ended up making my own routine.

0 Kudos
Message 3 of 11
(4,857 Views)

@Hooovahh wrote:

I don't have the vision toolkit installed right now, but I know that there is a function for reading a 7 segment display, and there is an example in the example finder.  The trick I remember using this is that the first time you use it all segments must be on.  Then the next read can have some of them off and it will tell you the number from the image.

 

Of course in the end this solution didn't work for me.  I couldn't control my display enough to set all segments to on.  Instead I took a baseline image when all segments are off (I turned the power off to them) then turn the device on and subtracted the two images.  Then setup a threshold to a binary image.  Then setup edge detection on 3 lines, one going vertical (right down the center to find the 3 segments) and two going horizontal (each finding 2 segments).  For a segment to be on the edge detection needed to see both a low to high, and a high to low in the space expected.  Then there was a conversion from what segments were on to what the number was.  The requirement was that we could detect if a segment was out which was more important then the actual number which is another reason why I ended up making my own routine.


Wouldn't the number "8" turn them all on?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 11
(4,854 Views)

@billko wrote:

Wouldn't the number "8" turn them all on?


I had no control over the device other then to power it on or off.

0 Kudos
Message 5 of 11
(4,851 Views)

@Hooovahh wrote:

@billko wrote:

Wouldn't the number "8" turn them all on?


I had no control over the device other then to power it on or off.


Wow, I didn't know that it was THAT drastic.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 11
(4,847 Views)

It was a consumer electronic device that was all packaged up.  End of line testing type of thing.

 

Still the technique was quite robust and only relied on the fact that you had an image before the device was turned on, then take a picture after it was turned on, and that the UUT hadn't moved between pictures.  The lens, mirror and lighting were all mediocre but the technique was so good it over came these short comings.

0 Kudos
Message 7 of 11
(4,843 Views)

@nishar10 wrote:

how should i extract numbers from 7 segment display????help me out


Try OCR as suggested. Post an image if you have any difficulty

0 Kudos
Message 8 of 11
(4,840 Views)

i am able to read only small lcd well...but i cant read the bigger lcd ...because each segment is divided into many small search area

 

0 Kudos
Message 9 of 11
(4,732 Views)

Why don't you try to Zoom out and use the same method to find the numbers?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 10 of 11
(4,725 Views)