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 : Tuesday, November 20, 2007 5:18:18 AM(UTC)

mib4  
mib4

Groups: Registered
Posts: 3


Hi

For the application i need to create a zone with the mouse on the image and than get the Text in the zone. I need to past this text in a table and this a few times.

What is the best way to create a "drag & drop" functionality?

I works with the sdk for the .NET Framework 2.0.
 

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, November 20, 2007 9:19:49 AM(UTC)

BoydP  
Guest

Groups: Guests
Posts: 3,034

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

What do you mean by drag & drop fucntionality?  Have you looked at the C# OCR demo, it shows you exactly how to create zones and edit them with the mouse.  Please have a look at that demo and if you have a specific questions about the OCR toolkit please let me know.
 
#3 Posted : Wednesday, November 21, 2007 4:46:51 AM(UTC)

mib4  
mib4

Groups: Registered
Posts: 3


Thanks for the replay.

My descripton was not so good, sorry.

I search an easier way to iterate trough the finded zones.
I search the finded zone like this way:
_rasterEngine.FindZones(0, Rectangle.Empty);
Now i need only the zone from the document type Table.
Whats the best way to iterate trough the found zones?

My solution is to count the found zones and make a for loop and remove all other zones there are a differnt type than a table.

{
RasterDocumentZoneData zoneData = _rasterEngine.GetZone(0, currentTableCount);
if (zoneData.Type != RasterDocumentZoneType.Table)
{
_rasterEngine.RemoveZone(0, currentTableCount);
}
else
{
currentTableCount++;
}
}


I think this solution is not the best way.

For you i have attached the method of my function, for a better understanding. :-)

1: Paint settings
2: load tif image
3: insert image page
4: page auto rotated Landscape/portrait
5: analyze the zones, i need only the Type Table
6: set up OCR
7: get text from the zone

Is this the right way to do this? Or see you a better way?

File Attachment(s):
Test.txt (7kb) downloaded 21 time(s).
 
#4 Posted : Wednesday, November 21, 2007 6:16:24 AM(UTC)

BoydP  
Guest

Groups: Guests
Posts: 3,034

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

That works as intended and is the fastest way to accomplish the task so I see no problem with it.  If you have anymore questions please do not hesitate to ask.
 
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-2020, Yet Another Forum.NET
This page was generated in 0.191 seconds.