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 Problem after upgrading to XE3 c++
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

gajendra

16 Posts

Posted - Nov 11 2012 :  05:14:38  Show Profile  Reply
Hi ,
this code work perfectly in C++builder XE Rad Studio

now upgraded to c++builder XE3 and is giving error messages

if (!IEVisionAvailable()) {
ShowMessage("ievision.dll not loaded!");
exit;
}

Screen->Cursor = crHourGlass;
_di_TIEVisionObjectsFinder objectsFinder;
IEVisionLib->createObjectsFinder(false, objectsFinder);

E2288 Pointer to structure required on left side of -> ot ->*
How can this be fixed. Any c++ coding in the help file for IEVision.
Thanks.

rest of code:

_di_TIEVisionCascadeClassifier faceDetector1, faceDetector2;

objectsFinder->removeAllClassifiers(false);

IEVisionLib->createCascadeClassifier(":FRONTALFACEALT2", false, faceDetector1);
objectsFinder->addClassifier("face detector 1", static_cast<TIEVisionBase *>(faceDetector1));
objectsFinder->setDivisor(2);





gajendra

16 Posts

Posted - Nov 11 2012 :  05:53:38  Show Profile  Reply
worked it out

had to add:

TIEVisionLibrary *IEVisionLib;

before all the code
Go to Top of Page

gajendra

16 Posts

Posted - Nov 11 2012 :  06:03:06  Show Profile  Reply
Now compiles fine but when run

IEVisionLib->createObjectsFinder(false, objectsFinder);

gives access violation error
Go to Top of Page

gajendra

16 Posts

Posted - Nov 11 2012 :  22:39:26  Show Profile  Reply
Any advice on this?

IEVisionLib->createObjectsFinder(false, objectsFinder);

gives access violation error using the Imageen latest version and IEVision latest in C++Builder XE3.

Thanks.
Go to Top of Page

fab

1310 Posts

Posted - Nov 14 2012 :  11:55:05  Show Profile  Reply
IEVisionLib now is a function, so you should do:

IEVisionLib()->createObjectsFinder(....etc...

Go to Top of Page

gajendra

16 Posts

Posted - Nov 15 2012 :  03:21:55  Show Profile  Reply
Thanks, that did the job.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: