ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEVison Error: Unable to load CascadeClassifier

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
harry stahl Posted - Jun 05 2017 : 10:35:00
Hi, while the downloadable demo "FaceRecognizer" works, it is not whith the self compiled demo.

I get then at start the message "Unable to load CascaseClassifier".

What can I do?

HS
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 06 2017 : 17:54:14
I cannot reproduce that in Delphi 10.1 Berlin.

However I have implemented the changes.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
harry stahl Posted - Jun 05 2017 : 19:55:12
It was the same problem in XE7 and Delphi 10.1 Berlin

HS
xequte Posted - Jun 05 2017 : 19:24:48
Hi Harry

That looks like a quirk in Delphi. What version are you using?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
harry stahl Posted - Jun 05 2017 : 19:01:19
The PAnsichar (Classifier[i]) gives back only a ":" so it will not work.

I've modfied it, now it runs:

var
classifier: AnsiString;
begin

...

for i := 0 to High(CLASSIFIERS) do
begin
classifier := CLASSIFIERS[i];
m_objectsFinder.addClassifier(PAnsiChar (CLASSIFIER), IEVisionLib.createCascadeClassifier(PAnsiChar (CLASSIFIER)));
end;

HS
harry stahl Posted - Jun 05 2017 : 18:38:19
Yes, the whole zip was extracted. A Little bit strange is, that e.g. the "GetFaces" Demo runs, when I click there to add Classifiers, it works.

In Getfaces:

procedure TMainForm.CheckListBox1ClickCheck(Sender: TObject);
var
  objName:AnsiString;
  i:integer;
begin
  for i := 0 to CheckListBox1.Items.Count-1 do
  begin
    objName := AnsiString( CheckListBox1.Items[i] );
    // if selected and not already inserted (then add object)
    if (CheckListBox1.Checked[i]) and (not m_objectsFinder.classifierExists(PAnsiChar(objName))) then
      m_objectsFinder.addClassifier(PAnsiChar(objName), IEVisionLib.createCascadeClassifier(PAnsiChar(objName)))
    // if not selected but already inserted (then remove object)
    else if (not CheckListBox1.Checked[i]) and (m_objectsFinder.classifierExists(PAnsiChar(objName))) then
      m_objectsFinder.removeClassifier(PAnsiChar(objName));
  end;
end;

OK.

In FaceRecognizer:

m_objectsFinder := IEVisionLib().createObjectsFinder();

  for i := 0 to High(CLASSIFIERS) do
    m_objectsFinder.addClassifier(PAnsiChar(CLASSIFIERS[i]), IEVisionLib.createCascadeClassifier(PAnsiChar(CLASSIFIERS[i])));

is NOT OK




HS
xequte Posted - Jun 05 2017 : 18:17:31
Hi

I just tested the FaceRecognizer demo at:

https://www.imageen.com/demos/

And did not encounter an error. Are you sure you unzipped the whole zip to a folder?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com