06-18-2014 04:00 AM
how should i extract numbers from 7 segment display????help me out
06-18-2014 04:06 AM
Something like OCR?
06-18-2014 07:58 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-18-2014 08:00 AM
@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?
06-18-2014 08:03 AM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-18-2014 08:04 AM
@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. 😉
06-18-2014 08:07 AM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-18-2014 08:20 AM
@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
07-02-2014 10:08 PM
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
07-02-2014 10:30 PM
Why don't you try to Zoom out and use the same method to find the numbers?