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
 Face Recognizer demo in C++
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndreMurta

Brazil
3 Posts

Posted - Aug 28 2020 :  19:14:38  Show Profile  Reply
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

AndreMurta

Brazil
3 Posts

Posted - Aug 28 2020 :  19:46:23  Show Profile  Reply
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.
Go to Top of Page

xequte

38615 Posts

Posted - Aug 30 2020 :  22:49:32  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: