ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to do OCR for an Rotatioanl String

Problem in tarining OCR for Roational String  for eg. "HELLO WORLD"OCR_Test.jpg

 

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 9
(5,625 Views)

Problem is in training step or detection step?

-I think in training step you can use rotated rectangle and select characters.

-In detection i don't see any way other than maybe using pattern match and get the text orientation and rotate image back to that and see.

-Did you try giving rotated rectangle as ROI descriptor during detection step and check? (I'm not sure if it works).

Thanks
uday
0 Kudos
Message 2 of 9
(5,612 Views)

Its not a problem unless and until you share what you are doing.

If you are manually teaching/training each character in LabVIEW then you can set the orientation for the search alphabet.

In past we had worked on rotated patterns and mirror patterns as well so I dont think this will resist you if you are using NI VISION VIs.

Please share what exactly you are doing this training.

0 Kudos
Message 3 of 9
(5,600 Views)

I am trying to teach via Vision Assistant but couldnt able to get the characters  being extracted to train single character.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 9
(5,597 Views)

Looking like a bug or i might be missing something.

-Instead of training from Vision assistant try the ocr training interface separately.

-You can select the rotated rectangle and rotate and train.

-Where as when called in Vision assistant not able to use rotated rectangle.

Thanks
uday
Message 5 of 9
(5,590 Views)

Thanks udka,

I used NI OCR Training Interface and i can able to rotate the rectangular tool, can able to detect character and train.

Is there a way to set the ROI dynamically/ Programmatically based on the Rotated angle as used in training portion

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 6 of 9
(5,548 Views)

As i previously stated you might use pattern matching to get the orientation of text and then give the result ROI Descriptor of OCR Read Text VI.

Thanks
uday
0 Kudos
Message 7 of 9
(5,545 Views)

As I know about OCR you should have good pattern of Alphabets that you would like to teach.

Since you are teaching a rotated pattern and then struggling to set the rotated ROI programatically inspite of this you can teach a straight pattern and set the rotated angle within which you want to find the rotated alphabet.

 

Example:

Suppose I have an alphabet 'A'. I will teach 'A' as it is(without rotation) with a default ROI rectangle.Now during a search OCR operation I would put the same ROI rectangle by adding +/- rotation angle suppose 45 degree. This will give me a freedom of searching  a pattern 45 degree left and right rotated alphabet.

I hope this might help.

0 Kudos
Message 8 of 9
(5,541 Views)

Thanks for all your replies, i will try and get back if i face issue or if my issue gets resolved

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 9 of 9
(5,535 Views)