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
 External exception
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

chouk

Algeria
28 Posts

Posted - May 27 2024 :  14:01:14  Show Profile  Reply
Hi,
ImageEn 12 and IEvision 7.0 (32bits).
The problem comes from the error message:
External exception C000001D.
Here is the PC configuration.



The problem occurs on 2 PCs with the same configuration in local network no antivirus.
Is there a minimum configuration (memory, CPU, etc.) to use IEVision?
Thanks
Chouk

xequte

38610 Posts

Posted - May 27 2024 :  16:59:56  Show Profile  Reply
Hi Chouk

When specifically does this exception arise. What IEVision call are you making? Does it occur with other IEVision demos on those systems?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

chouk

Algeria
28 Posts

Posted - May 28 2024 :  03:42:39  Show Profile  Reply
Hi Nigel,
I forgot to specify that this problem only appeared with this customer, the others have no problem so I cannot blame the code).
The client is far away, I can't debug, but with showmessage I think the problem arises when executing createOCR
The code is :
// create OCR object
m_OCR := IEVisionLib.createOCR(PAnsiChar( AnsiString( langPath )), PAnsiChar(AnsiString( langCode )), ievOCRDefault );

// set page layout
m_OCR.setSegmentationMode( TIEVisionOCRPageSegmentationMode( cmbLayout.ItemIndex ));

// perform OCR
ocrrect := ImageEnView1.SelectedRect;
Resultat_Tesserract_OCR.Lines.Text := m_OCR.recognize( ImageEnView1.IEBitmap.GetIEVisionImage(),
IEVisionRect( ocrrect.x, ocrrect.y, ocrrect.width, ocrrect.height )).c_str();

The Windows was reinstalled and the problem persists, I think the problem is hardware related (memory or processor).

Chouk
Go to Top of Page

xequte

38610 Posts

Posted - May 28 2024 :  21:34:16  Show Profile  Reply
Hi Chouk

Yes, it could be a resource issue if the system is very lower low on resources, but can you add the following line after your CreateOCR() call:

// Check language files are available
if m_OCR.langLoaded() = False then
  raise Exception.create( 'Language is not loaded!' );

Which will catch the most common failing for OCR.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: