This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, January 8, 2009 2:43:42 AM(UTC)
Groups: Registered
Posts: 2
Hi
i am using vbOcrMainDemo sdk to get text and text coordinates.
i am having a tiff image. this image has text and pictures.
i want to check that i am in text zone or picture zone when i recognize the image through OCR.
if i am in text zone then i want to get text line's width, height,HPOS,VPOS etc and words from text line,word's coordinates, HPOS,VPOS,Word Accuracy
etc.
if i am in picture zone then i want to get picture size, picture HPOS, VPOS etc.
please let me know what classes and methods to be used to get my requirements which are oversaid.
basically i am making mets/Alto format xml files.
am i able to get ocr engine's information at runtime?
like:- predicted accuracy, character error ratio, ocr version name, monkey timeout etc.
#2
Posted
:
Thursday, January 8, 2009 6:49:46 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
After you perform OCR recognition, you can check the recognized Characters by using the GetRecognizedCharacters Method. Also, you can check the recognized words as follows:
+-----------+
Dim ocrPageCharacters As IOcrPageCharacters = ocrPage.GetRecognizedCharacters()
For Each ocrZoneCharacters As IOcrZoneCharacters In ocrPageCharacters
' Show the words found in this zone. Get the word boundaries in inches
Dim words As ICollection(Of OcrWord) = ocrZoneCharacters.GetWords(ocrPage.DpiX, ocrPage.DpiY, LogicalUnit.Inch)
+-----------+
For each word, you can examine the properties, including which zone the word is in and the exact position of the word. You can also examine the accuracy of the word letters.
About the zone type, you can check the zone type by the checking OcrZone.ZoneType Property.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.