This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, June 2, 2006 2:06:08 PM(UTC)
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
#2
Posted
:
Tuesday, June 6, 2006 1:05:49 AM(UTC)
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)
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)
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.