Author |
Topic  |
|
win568

Austria
16 Posts |
Posted - Jul 24 2013 : 00:08:35
|
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
|
Please send a test file. |
 |
|
win568

Austria
16 Posts |
Posted - Aug 26 2013 : 07:39:30
|
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. |
 |
|
xequte
    
39086 Posts |
|
win568

Austria
16 Posts |
Posted - Aug 28 2013 : 23:01:49
|
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 ??
|
 |
|
xequte
    
39086 Posts |
|
win568

Austria
16 Posts |
Posted - Sep 04 2013 : 23:13:46
|
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. |
 |
|
win568

Austria
16 Posts |
Posted - Sep 24 2013 : 00:11:57
|
Hi Guys
We have still no answer from you. Can you give us an advice. We still cannot use the new IEVision.dll. |
 |
|
xequte
    
39086 Posts |
Posted - Sep 24 2013 : 13:49:06
|
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
|
 |
|
win568

Austria
16 Posts |
Posted - Sep 24 2013 : 23:18:22
|
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.
|
 |
|
xequte
    
39086 Posts |
|
xequte
    
39086 Posts |
Posted - Sep 25 2013 : 18:46:47
|
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
|
 |
|
win568

Austria
16 Posts |
Posted - Sep 25 2013 : 23:05:02
|
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 |
 |
|
xequte
    
39086 Posts |
|
win568

Austria
16 Posts |
Posted - Sep 27 2013 : 00:11:58
|
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 !!! |
 |
|
xequte
    
39086 Posts |
Posted - Sep 29 2013 : 18:46:20
|
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
|
 |
|
win568

Austria
16 Posts |
Posted - Sep 30 2013 : 00:49:34
|
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 !!!! |
 |
|
fab
   
1310 Posts |
Posted - Oct 02 2013 : 01:35:40
|
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));
...
|
 |
|
win568

Austria
16 Posts |
Posted - Oct 02 2013 : 23:31:14
|
Hi Fab
Thanks for your post. Now it works with a few changes. |
 |
|
|
Topic  |
|