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
 Face Recognizer demo in C++

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
AndreMurta Posted - Aug 28 2020 : 19:14:38
Is there a C++ Builder demo similar to the Face Recognizer application? I'm having some difficulties to port the following code to C++

m_faceRecognizer := IEVisionLib().createFaceRecognizer();
  m_faceRecognizer.selectEigenFaceRecognizer();
  if FileExists( IncludeTrailingPathDelimiter( ExtractFilePath( Application.ExeName )) + LEARN_FILENAME ) then
    m_faceRecognizer.load(PWideChar(WideString( IncludeTrailingPathDelimiter( ExtractFilePath( Application.ExeName )) + LEARN_FILENAME )))
  else
    TrainDataset();


I can't find a way to access the load method in the interface.

Thanks in advance,
Andre
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 30 2020 : 22:49:32
Hi Andre

I'm afraid there is not a BCB version of that demo at this time. But please let us know if you have any difficulty.

Nigel
Xequte Software
www.imageen.com
AndreMurta Posted - Aug 28 2020 : 19:46:23
I was able to port this part of the code. The problem was the parameter type.

IEVisionLib()->createFaceRecognizer(m_faceRecognizer);
m_faceRecognizer->selectEigenFaceRecognizer();
if (FileExists(IncludeTrailingPathDelimiter(ExtractFilePath(Application->ExeName)) + static_cast<String>(LEARN_FILENAME))) {
    String Filename = IncludeTrailingPathDelimiter(ExtractFilePath(Application->ExeName )) + static_cast<String>(LEARN_FILENAME);
    m_faceRecognizer->load(Filename.c_str());
} else {
    TrainDataset();
}


Anyway, if there is a port of the Face Recognizer demo to C++, it would be greatly appreciated.