Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

OCR read sideway

Good day, 

 

I have a problem with EVS VBAI's OCR reading. I need it to recognize characters in sideway position and I can't find the proper setting for this. I have tried OCR in backward position but did just fine. The characters however also reverses. If you'll ask me to reposition my camera, that's not possible since I need to read characters in sideway and backward combined. Please refer to the attached images.


Thank you very much,

Andrei K

0 Kudos
Message 1 of 3
(3,153 Views)

You cannot have characters at different orientations trained in the same OCR file and associated with the same character. I would recommend you learn all the characters for one orientation in one OCR file, and in a different OCR file learn the characters at the other orientation. It seems like you will know which orientation you want to read since you need to create an ROI around the letters and then in VBAI, you can use some logic and branch to a state that reads the characters horizontally using the horizontal OCR file or branches to a state that reads the characters vertically and uses the vertical OCR file. Another option would be to have different characters associated with a horisontal vs. vertical letter (i.e. use 'e' for vertical e and 'E' for horizontal e, but this could get confusing and you'd need a calculator step to convert the read text to all lower case or something to use this method.

 

It also looks like you might want to do some preprocessing cleanup of the image so the characters are easier to differentiate from the background.

 

Hope that helps,

Brad

Message 2 of 3
(3,149 Views)

Sorry I forgot that if you build a coord system and the ROI rotates with your part, when the part is on it's side and the text is vertical, the OCR step will actually read it correctly. Here is a sample inspection with some sample images to illustrate that. Make sure to look at the results of the OCR step and not the overlay because when the paert is rotated 180 degrees, the overlay looks like it's reading it backwards, but the OCR step correctly reads it the right way.

 

Hope that helps,

Brad

0 Kudos
Message 3 of 3
(3,144 Views)