Merge pull request #61 from Affectiva/classifier-path-fixup
Moving the setting of the classifier path before initializing the cla…
This commit is contained in:
commit
e85b169301
2 changed files with 6 additions and 6 deletions
|
@ -19,9 +19,9 @@
|
|||
using namespace std;
|
||||
using namespace affdex;
|
||||
|
||||
/// <summary>
|
||||
/// Project for demoing the Windows SDK CameraDetector class (grabbing and processing frames from the camera).
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// Project for demoing the Windows SDK CameraDetector class (grabbing and processing frames from the camera).
|
||||
/// </summary>
|
||||
int main(int argsc, char ** argsv)
|
||||
{
|
||||
namespace po = boost::program_options; // abbreviate namespace
|
||||
|
@ -113,11 +113,11 @@ int main(int argsc, char ** argsv)
|
|||
frameDetector = make_shared<FrameDetector>(buffer_length, process_framerate, nFaces, (affdex::FaceDetectorMode) faceDetectorMode); // Init the FrameDetector Class
|
||||
|
||||
//Initialize detectors
|
||||
frameDetector->setClassifierPath(DATA_FOLDER);
|
||||
frameDetector->setDetectAllEmotions(true);
|
||||
frameDetector->setDetectAllExpressions(true);
|
||||
frameDetector->setDetectAllEmojis(true);
|
||||
frameDetector->setDetectAllAppearances(true);
|
||||
frameDetector->setClassifierPath(DATA_FOLDER);
|
||||
frameDetector->setImageListener(listenPtr.get());
|
||||
frameDetector->setFaceListener(faceListenPtr.get());
|
||||
frameDetector->setProcessStatusListener(videoListenPtr.get());
|
||||
|
|
|
@ -135,11 +135,11 @@ int main(int argsc, char ** argsv)
|
|||
std::cout << "Face detector mode set to: " << mode << std::endl;
|
||||
shared_ptr<PlottingImageListener> listenPtr(new PlottingImageListener(csvFileStream, draw_display));
|
||||
|
||||
detector->setClassifierPath(DATA_FOLDER);
|
||||
detector->setDetectAllEmotions(true);
|
||||
detector->setDetectAllExpressions(true);
|
||||
detector->setDetectAllEmojis(true);
|
||||
detector->setDetectAllEmojis(true);
|
||||
detector->setDetectAllAppearances(true);
|
||||
detector->setClassifierPath(DATA_FOLDER);
|
||||
detector->setImageListener(listenPtr.get());
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue