Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, June 2, 2006 2:06:08 PM(UTC)
pnguyen535

Groups: Registered
Posts: 8


I am successfully retrieved the RasterOcrRecognizedWords. However, the word is separated by a Space.

Is the a way that I can get a full phrase:

Example: "Hello OCR World"

Output: "Hello OCR World" instead of RasterOcrRecognizedWords[0] = Hello, RasterOcrRecognizedWords[1] = OCR, RasterOcrRecognizedWords[2] = World

 

Thank you

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, June 6, 2006 1:05:49 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

The details depend on programming interface (COM, API, .Net, etc.) that you use?
However, you could save the full results to memory in ASCII text format. This will give a string that contains all the phrases in the result, which you can search for the phrase you need.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Tuesday, June 6, 2006 11:20:46 AM(UTC)
pnguyen535

Groups: Registered
Posts: 8


Hello Maen,

Thank you for the response.

I am using .NET to get the words. I have include the function that get Words in the specific Zone. Can you take a look?

//----------------------------------

protected RasterOcrRecognizedWords[] ZoneRecognizeWords(int x, int y, int width, int height) {

this._RasterOrc.ZoneRectangle = new Rectangle(x, y, width, height);

this._RasterOrc.ZoneParser = RasterOcrPageParser.Standard;

this._RasterOrc.FindZones(0);

RasterOcrZoneData data = this._RasterOrc.GetZone(0, 0);

this._RasterOrc.Recognize(0, 1);

return this._RasterOrc.GetRecognizedWords(0);

}

 
#4 Posted : Wednesday, June 7, 2006 1:01:12 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

You need to use the SaveResultsToMemory method as follows:
+------------------+
string recogText = _rasterOcr.SaveResultsToMemory();
+------------------+
The returned string will contain the results of the last recognition process to memory.

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.096 seconds.