diff --git a/.gitignore b/.gitignore
index 281d24c..9f277f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -88,3 +88,4 @@ exe/releases/OpenFace_0.3.0_win_x64/
exe/releases/OpenFace_0.3.0_win_x86/
lib/3rdParty/CameraEnumerator/x64/
lib/local/Utilities/Debug/
+lib/3rdParty/CameraEnumerator/Debug/
diff --git a/lib/3rdParty/OpenCV3.4/openCV3.4.props b/lib/3rdParty/OpenCV3.4/openCV3.4.props
index 82104c0..3121edc 100644
--- a/lib/3rdParty/OpenCV3.4/openCV3.4.props
+++ b/lib/3rdParty/OpenCV3.4/openCV3.4.props
@@ -9,10 +9,11 @@
$(SolutionDir)lib\3rdParty\OpenCV3.4\$(PlatformTarget)\$(PlatformToolset)\lib;%(AdditionalLibraryDirectories)
- opencv_world340.lib;%(AdditionalDependencies)
+ opencv_world340.lib;opencv_world340d.lib;%(AdditionalDependencies)
xcopy /I /E /Y /D /C "$(SolutionDir)lib\3rdParty\OpenCV3.4\$(PlatformTarget)\$(PlatformToolset)\bin\opencv_world340.dll" "$(OutDir)"
+xcopy /I /E /Y /D /C "$(SolutionDir)lib\3rdParty\OpenCV3.4\$(PlatformTarget)\$(PlatformToolset)\bin\opencv_world340d.dll" "$(OutDir)"
xcopy /I /E /Y /D /C "$(SolutionDir)lib\3rdParty\OpenCV3.4\bin\opencv_ffmpeg340.dll" "$(OutDir)"
xcopy /I /E /Y /D /C "$(SolutionDir)lib\3rdParty\OpenCV3.4\bin\opencv_ffmpeg340_64.dll" "$(OutDir)"
xcopy /I /E /Y /D /C "$(SolutionDir)lib\3rdParty\OpenCV3.4\classifiers" "$(OutDir)classifiers"
diff --git a/lib/3rdParty/OpenCV3.4/x64/v140/bin/opencv_world340d.dll b/lib/3rdParty/OpenCV3.4/x64/v140/bin/opencv_world340d.dll
new file mode 100644
index 0000000..36f8903
Binary files /dev/null and b/lib/3rdParty/OpenCV3.4/x64/v140/bin/opencv_world340d.dll differ
diff --git a/lib/3rdParty/OpenCV3.4/x64/v140/lib/opencv_world340d.lib b/lib/3rdParty/OpenCV3.4/x64/v140/lib/opencv_world340d.lib
new file mode 100644
index 0000000..191c174
Binary files /dev/null and b/lib/3rdParty/OpenCV3.4/x64/v140/lib/opencv_world340d.lib differ
diff --git a/lib/local/FaceAnalyser/src/FaceAnalyser.cpp b/lib/local/FaceAnalyser/src/FaceAnalyser.cpp
index 7409e74..f1fc511 100644
--- a/lib/local/FaceAnalyser/src/FaceAnalyser.cpp
+++ b/lib/local/FaceAnalyser/src/FaceAnalyser.cpp
@@ -1069,8 +1069,6 @@ void FaceAnalyser::Read(std::string model_loc)
void FaceAnalyser::ReadAU(std::string au_model_location)
{
-
-
// Open the list of the regressors in the file
ifstream locations(au_model_location.c_str(), ios::in);
@@ -1107,12 +1105,8 @@ void FaceAnalyser::ReadAU(std::string au_model_location)
if(index >= 0)
{
name = name.substr(index+1);
-
// remove carriage return at the end for compatibility with unix systems
- if(name.size() > 0 && name.at(name.size()-1) == '\r')
- {
- name = name.substr(0, location.size()-1);
- }
+ name.erase(name.find_last_not_of(" \n\r\t") + 1);
}
vector au_names;
boost::split(au_names, name, boost::is_any_of(","));