Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Character reads in OCR Training, but not labview program

Solved!
Go to solution
I'm training characters, then verifying my program is able to read the same characters. Each item I'm reading has 8 of the same characters in different parts of the roi. Due to it being a curved surface, each position is being trained independently. In 3 of the posistions, I have trained the character '5' and it will recognize it with no problems in the ocr training program. Using the exact same roi, it will not read the characters in my program. All settings, ie Read resolution, read strategy, erosions, etc are the same in both programs. It finds the character, just doesn't know what it is. I'm using non linear thresholding. On the character report indicator, I took the threshold values it uses in my program, and entered those as a fixed range threshold on the ocr training. This turned the character blue just as expected and read with no problems. Unless there is a setting I'm missing, it seems the OCR Training Application is not using the same OCR Read Text 3 I'm using in my program. Any suggestions? I know this is complicated, I'll add the image and a screenshot showing what I mean
Download All
0 Kudos
Message 1 of 6
(5,218 Views)
Can you post the image you're using? I want to give this a try.
0 Kudos
Message 2 of 6
(5,185 Views)
The image I'm using is a bmp, but the ni forums don't like bmp, so I changed the extension to txt. Just change back to bmp to use.
0 Kudos
Message 3 of 6
(5,182 Views)
***Message deleted****
Message Edited by muks on 12-18-2009 12:18 PM
0 Kudos
Message 4 of 6
(5,171 Views)
Solution
Accepted by topic author JimRapier
I've fixed it! I went crazy and set all the ocr properties, even ones that I was just using the default setting. Weird.
0 Kudos
Message 5 of 6
(5,164 Views)

Jim,

 

I am doing same project as yours ( develop a program using NI vision to recognize number from 0 -9.but unfortunately i do not have experience enough to understand the step which i need to use to able for OCR to detect my number?.

 

1- can you please advice me what are the step that i need to use in ni vision to able to recognize my number???.

 

2- after the ocr has being trained to recognize the number. can you please guide how can i take the ocr program that i just develop and take it to LAVwindow or LAvview the same way as you did??.

 

I really appreciate your help.

 

Thanks

 

Dine

 

 

0 Kudos
Message 6 of 6
(4,668 Views)