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.dll not loading or initialising
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Ogaere

Nigeria
2 Posts

Posted - Jul 13 2026 :  15:24:36  Show Profile  Reply





Below is my code, is there any out of the ordinary that is causing the error. The library ievision.dll is in the application folder:

function TfrmTokenSales.CountFaces(ABitmap: TBitmap): Integer;
var
ieBmp: TIEBitmap;
origImage, workImage: TIEVisionImage;
classifier: TIEVisionCascadeClassifier;
objects: TIEVisionVectorRect;
begin
ieBmp := TIEBitmap.Create;
try
ieBmp.Assign(ABitmap);

// Convert to single-channel grayscale
origImage := ieBmp.GetIEVisionImage();
workImage := IEVisionLib.createImage(origImage.getWidth(),
origImage.getHeight(), ievUINT8, 1);
origImage.convertColor(workImage, ievBGR2GRAY);
workImage.equalizeHistogram();

classifier := IEVisionLib.createCascadeClassifier(IEVC_FRONTAL_FACE_ALT_2);
objects :=classifier.detectObjects(
workImage,
1.05, // scaleFactor
5, // minNeighbors
ievDO_CANNY_PRUNING, // flags
IEVisionSize(workImage.getWidth() div 5,
workImage.getHeight() div 5), // minSize
IEVisionSize(workImage.getWidth(),
workImage.getHeight())); // maxSize

Result := objects.size();
finally
ieBmp.Free; // only the TIEBitmap needs freeing
end;
end;

Ogaere

Nigeria
2 Posts

Posted - Jul 14 2026 :  02:03:42  Show Profile  Reply
I have resolved the issue by using the following:

IEGlobalSettings().RegisterPlugIns( [iepiIEVision], 'me@mycompany.com', 'ievis-12345-67890-12345-67890-12345-67890' );
if not ( iepiIEVision in IEGlobalSettings().ActivePlugIns ) then
begin
ShowMessage( 'This application requires the ievision.dll plug-in, v' + IEGlobalSettings().ImageEnVersion.IELibVersionStr +'. Please download it from www.imageen.com' );
exit;
end;

instead of:

IEVisionSetSerialNumber(const sUserEmail, sUserSerial: WideString);

It reminds me that I should have RTFM first at the first sign of trouble.
Go to Top of Page

xequte

39564 Posts

Posted - Jul 14 2026 :  16:02:25  Show Profile  Reply
Hi

Yes, because IEVision requires input of a serial number, it must be manually instantiated once by your application.


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