Author |
Topic  |
|
gajendra

16 Posts |
Posted - Nov 11 2012 : 05:14:38
|
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
|
worked it out
had to add:
TIEVisionLibrary *IEVisionLib;
before all the code
|
 |
|
gajendra

16 Posts |
Posted - Nov 11 2012 : 06:03:06
|
Now compiles fine but when run
IEVisionLib->createObjectsFinder(false, objectsFinder);
gives access violation error |
 |
|
gajendra

16 Posts |
Posted - Nov 11 2012 : 22:39:26
|
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. |
 |
|
fab
   
1310 Posts |
Posted - Nov 14 2012 : 11:55:05
|
IEVisionLib now is a function, so you should do:
IEVisionLib()->createObjectsFinder(....etc...
|
 |
|
gajendra

16 Posts |
Posted - Nov 15 2012 : 03:21:55
|
Thanks, that did the job. |
 |
|
|
Topic  |
|