Clarion ocr example problem

PDF-X OCR SDK is a New product from us and intended to compliment our existing PDF and Imaging Tools to provide the Developer with an expanding set of professional tools for Optical Character Recognition tasks

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Clarion ocr example problem

Post by tomislav »

I've downloaded 'PDF-XChange PRO SDK' for clarion. When I try 'ocrtest.app' it works well, but 'ocr2test.app' it trows a exception. I think that following line is a problem:
'rtn = OCR1.GetField(OCR_Options, ptrBSTR, OCR_FieldParams)' and probably something about 'ptrBSTR'.

I'm interesting in zone OCR, recognizing names, numbers, date at specific rect on paper. Can that be done with PDF-X OCR SDK ???


thanks in advance

Tomislav Tadin

p.s. sorry if my English is bad
p.s.s. clarion 6.3 & c8.0, xp+sp3
Walter-Tracker Supp
User
Posts: 381
Joined: Mon Jun 13, 2011 5:10 pm

Re: Clarion ocr example problem

Post by Walter-Tracker Supp »

Hi Tomislav:

Zonal OCR can certainly be done with the OCR SDK. You can create, save, and load templates for PDF pages (or files) and use them to retrieve zonal information.

However, I will have to notify our Clarion experts of your question here regarding the Clarion wrapper, you will get a response as soon as possible.

-Walter
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Clarion ocr example problem

Post by tomislav »

Thanks
Nico - Tracker Supp
User
Posts: 205
Joined: Fri May 18, 2012 8:41 pm

Re: Clarion ocr example problem

Post by Nico - Tracker Supp »

:D
Walter-Tracker Supp
User
Posts: 381
Joined: Mon Jun 13, 2011 5:10 pm

Re: Clarion ocr example problem

Post by Walter-Tracker Supp »

I would also like to point out that we have a template designer, although it is included as C++ code and a compiled executable in the main SDK distribution. I am unsure of its status in the clarion distribution; if you cannot find it please ask and we will be sure to provide it to you.

I have brought your post to the attention of the Clarion people and will await their response.
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Clarion ocr example problem

Post by Tracker - Clarion Support »

Hi Tomislav!

I have your problem and am looking at it now.

I've asked Walter to post the name of the compiled template generator to this thread.

I'll post my answer here as soon as I have it.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
Walter-Tracker Supp
User
Posts: 381
Joined: Mon Jun 13, 2011 5:10 pm

Re: Clarion ocr example problem

Post by Walter-Tracker Supp »

I've attached a compiled (Win32) executable for the template designer sample project. You can use this to create template files for OCR.

You must place ocrtools.dll and pxcview.dll (32-bit) in the executable directory.
Attachments
OCRTDesigner.Win32.7z
(1.19 MiB) Downloaded 237 times
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Clarion ocr example problem

Post by Tracker - Clarion Support »

Hi Walter!

Thanks very much!
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Clarion ocr example problem

Post by tomislav »

Thanks, I'll take a look :D
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6897
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Clarion ocr example problem

Post by Paul - Tracker Supp »

:)
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Clarion ocr example problem

Post by Tracker - Clarion Support »

Hi Tomislav!

I have a bit of a problem with this, and it''s going to need some additional time to fix. Since this is a major problem, and there are a couple of items in the support queue ahead of you, I should get them out first, and work on yours over the weekend.

I should have this fixed by early next week. I'll post Monday, at least to give you an update.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Clarion ocr example problem

Post by tomislav »

:( Thank You very much, waiting for monday then :D :D :D
Nico - Tracker Supp
User
Posts: 205
Joined: Fri May 18, 2012 8:41 pm

Re: Clarion ocr example problem

Post by Nico - Tracker Supp »

:D
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Clarion ocr example problem

Post by tomislav »

Sorry but my timeline is little bit short, any news??
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Clarion ocr example problem

Post by Tracker - Clarion Support »

Hi Tomislav!

I've been working on a prior project and I haven't had the time to really get into this yet, except to verify that yu do have a problem.

I'll finish this other thing in a couple of hours, and I should get into your problem this afternoon.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Clarion ocr example problem

Post by tomislav »

:D
Nico - Tracker Supp
User
Posts: 205
Joined: Fri May 18, 2012 8:41 pm

Re: Clarion ocr example problem

Post by Nico - Tracker Supp »

:)
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Clarion ocr example problem

Post by tomislav »

any news :?:
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Clarion ocr example problem

Post by Tracker - Clarion Support »

Hi!

I've identified the problem as being in the BSTRING handling, and correcting now.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Clarion ocr example problem

Post by Tracker - Clarion Support »

Hi Tomislav!

I got diverted by some other problems, will get back to this over the weekend.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Clarion ocr example problem

Post by tomislav »

OK, TNX :D
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Clarion ocr example problem

Post by Tracker - Clarion Support »

Hi Tomislav!

Got sidetracked by an earlier problem. Should have something Tuesday.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Clarion ocr example problem

Post by Tracker - Clarion Support »

Hi Tomislav!

I finished the code changes, but while tesing them, I ran into a really odd bug that seems to be changing a class instance's address in the interval between two contiguous lines of Clarion code. Naturally this is causing an Access Violation.

Not sure what's happening to cause that. Posting messages in NG.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Clarion ocr example problem

Post by tomislav »

Strange :?
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Clarion ocr example problem

Post by Tracker - Clarion Support »

Hi Tomislav!

I'm having to recode parts of the class files to fix this, so delayed a few days. :(
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Clarion ocr example problem

Post by tomislav »

OK, :D
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Clarion ocr example problem

Post by John - Tracker Supp »

Thanks for your patience.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
Tracker - Clarion Support
Site Admin
Posts: 64
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Clarion ocr example problem

Post by Tracker - Clarion Support »

Hi Tomislav!

IT'S UP! The recoded OCR class and templates were uploaded yesterday, but we have to make sure that all the mirror copies have also been updated.

You can download it now from the Downloads page, Developer tab.

Please let me know if any further problems develop.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Clarion ocr example problem

Post by tomislav »

Thanks
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17901
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Clarion ocr example problem

Post by Tracker Supp-Stefan »

:)
Post Reply