ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEVision 1.0.4
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

win568

Austria
16 Posts

Posted - Jul 24 2013 :  00:08:35  Show Profile  Reply
Hi Guys

As I read in the Forum, we have the same problems with the IEVision Demos. The Tiff File in the Demos runs, but if you try another one, we got serial problems. First of all, if we try to use Accurate instead of Fast as second parameter in CreateOCR, we got an exception in the recognize, sometimes in the GetRegions Routine. This happens with your Tiff Files too. In Fast Mode your Demo Example works well.

As we use our Tiff Files (colorized but optimized to black and white)
in Fast Mode, than the recognize Routine passed without an error. But as we use getTextBoxes to get the Text with Position Data, we got every time an exception.

This does not happens with the previous version. To solve this problem, we need urgent advises from your side.

fab

1310 Posts

Posted - Aug 01 2013 :  23:33:24  Show Profile  Reply
Please send a test file.
Go to Top of Page

win568

Austria
16 Posts

Posted - Aug 26 2013 :  07:39:30  Show Profile  Reply
Hi Fabrizio

You can download the Files from our FTP:

Servername: upload.bmd.at
UserName: embarcadero
Password: BMD2Embarcadero

When you Need more examples -> no Problem.
Go to Top of Page

xequte

39086 Posts

Posted - Aug 28 2013 :  14:49:53  Show Profile  Reply
Hi

I have uploaded a new version of the demo compiled with the latest source:

www.ImageEn.com/Files/demos/Run/IEVision/OCR/OCR.zip


I tested your files against this version and it did not get any errors.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

win568

Austria
16 Posts

Posted - Aug 28 2013 :  23:01:49  Show Profile  Reply
Hi

With this Demo Version the OCR Processing now works. Your demo example is not the same as the source in the Demos Folder. Before OCR.Recognize we add layers with the coordinates we got from OCR.GetRegions. I did not see, that in your example layers are added.
Futhermore we use GetWordBoxes to detect the Text and the Position in the document. This causes Problems to with your latest code.

Can i test your latest code, if it does work in our program ??
Go to Top of Page

xequte

39086 Posts

Posted - Aug 29 2013 :  00:28:30  Show Profile  Reply
Hi

Please email sales@xequte.com for the latest source.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

win568

Austria
16 Posts

Posted - Sep 04 2013 :  23:13:46  Show Profile  Reply
Hi xequte

I habe received the latest source and tested it. We got the same Errors as before. I have zipped the compiled OCRWithLayout Demo and put it on our FTP, so you can see that it does not work.
Go to Top of Page

win568

Austria
16 Posts

Posted - Sep 24 2013 :  00:11:57  Show Profile  Reply
Hi Guys

We have still no answer from you. Can you give us an advice. We still cannot use the new IEVision.dll.
Go to Top of Page

xequte

39086 Posts

Posted - Sep 24 2013 :  13:49:06  Show Profile  Reply
Hi

Can you please email me the demo project that reproduces the error (I can no longer access your FTP).





Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

win568

Austria
16 Posts

Posted - Sep 24 2013 :  23:18:22  Show Profile  Reply
Hi Nigel

I tried to send you the Demo Example. Unfortunatelly your email Provider send it back to me with:

The Demo Example was zipped. The same issue was, when i tared the example.
Go to Top of Page

xequte

39086 Posts

Posted - Sep 25 2013 :  03:10:19  Show Profile  Reply
I'll email you an alternative address...

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

xequte

39086 Posts

Posted - Sep 25 2013 :  18:46:47  Show Profile  Reply
Hi

Your demo does cause an error. I assume this is compiled with the v5.0.0 update? What version of Delphi do you use?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

win568

Austria
16 Posts

Posted - Sep 25 2013 :  23:05:02  Show Profile  Reply
Hi Nigel

Currently we use DelphiXE. We are still going to Change in the near future to XE4/5. The Demo i compiled is with ImageEn 4.3 and IEVision 1.0.4
Go to Top of Page

xequte

39086 Posts

Posted - Sep 26 2013 :  02:49:13  Show Profile  Reply
You should download v5.0.0 and compile it in that version.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

win568

Austria
16 Posts

Posted - Sep 27 2013 :  00:11:58  Show Profile  Reply
Hi Nigel

I habe downloaded the ImageEn Version 5 and IEVision 1.0.4 and compiled it with DXE. Than i compiled the OCR Demo in the Demos Folder of IEVision. When i recognize your Tif Files, it works well. When i test it with our Files, we got the Exception like before .

OK. I copied than my Files in the same Folder, as your Demo Tif exists and tried to recognize the Files -> it works .

Ah. Whats going wrong ? After futher testing i found the Problem. As I copied the eng.* Files in the original Folder, it works too.

I think the IEVision.dll tries to load the Files from the wrong Folder !!!! Instead of the Exe Folder, it tries to load from the Image Folder.

Ok. I wait for your Response !!! And we Need it as soon as possible !!!
Go to Top of Page

xequte

39086 Posts

Posted - Sep 29 2013 :  18:46:20  Show Profile  Reply
Hi

It should not load language files from any other folder other than that of the IEVision.DLL. At any rate, the files should be same versions, so it would not matter where they were loaded.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

win568

Austria
16 Posts

Posted - Sep 30 2013 :  00:49:34  Show Profile  Reply
Hi Nigel

The Problem is, that the Exception come, when the Images and the Binaray are in different Folders and in the Image Folder there are no eng.* Files. It is easy to test. Put the Demo Exe and the IEVision.dll Files in the Binary Folder and the Images in the Image Folder and try your example. It only works when you copy the eng.* Files in the Image Folder !!!!
Go to Top of Page

fab

1310 Posts

Posted - Oct 02 2013 :  01:35:40  Show Profile  Reply
Hi,
it is just an example and assumes the application .exe is in the same directory of trained data.
You could change the code to:

// Recognize
procedure TMainForm.Button1Click(Sender: TObject);
var
  ocrrect: TIERectangle;
  langPath: string;
  langCode: string;
begin
  Screen.Cursor := crHourglass;

  // look for ?.traineddata directory
  langCode := string(IEOCRLanguageList[OCR_English_language].Code);
  langPath := ExtractFilePath(Application.ExeName);
  while not FileExists(langPath + langCode + '.traineddata') do // Warning! This is a just an example, may loop forever!!
    langPath := langPath + '..\';

  // create OCR object
  m_OCR := IEVisionLib.createOCR(PAnsiChar(AnsiString(langPath)), PAnsiChar(AnsiString(langCode)), TIEVisionOCREngine(ComboBox1.ItemIndex));
  ...
Go to Top of Page

win568

Austria
16 Posts

Posted - Oct 02 2013 :  23:31:14  Show Profile  Reply
Hi Fab

Thanks for your post. Now it works with a few changes.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: