kylemcdonald / ofxFaceTracker

CLM face tracking addon for openFrameworks based on Jason Saragih's FaceTracker.
http://facetracker.net/
Other
1.39k stars 371 forks source link

cvtColor complaint #120

Open kylemcdonald opened 8 years ago

kylemcdonald commented 8 years ago

with the current ofxCv and current OF from github, i get three compile errors about some imgproc functions that are missing. adding #include <imgproc.hpp> fixes it for me, if anyone else has a problem please make a note below. this is a weird change, i'm not sure why it's needed and i'd like to understand before pushing code.

diff --git a/libs/FaceTracker/include/FaceTracker/IO.h b/libs/FaceTracker/include/FaceTracker/IO.h
index d9b5715..f16cb89 100644
--- a/libs/FaceTracker/include/FaceTracker/IO.h
+++ b/libs/FaceTracker/include/FaceTracker/IO.h
@@ -40,6 +40,7 @@
 #ifndef __IO_h_
 #define __IO_h_
 #include <opencv/cv.h>
+#include <imgproc.hpp>
 #include <fstream>
 namespace FACETRACKER
 {
genekogan commented 8 years ago

from latest release (0.9.3 osx) it compiles for me without issues

Daandelange commented 8 years ago

Thanks, it works for me too adding that line. (using latest OF master [0.9.4] + mac osx 10.10.2)

HalfdanJ commented 8 years ago

Got same issue with oF from master branch, and this fix solved it.

javl commented 7 years ago

Spent quite some time on trying to fix this error, thinking it was an error with my opencv install. Your fix works, though I had to add the opencv2/ path for some reason, must have messed something up reinstalling everything (running Debian Jessie).

#include <opencv2/imgproc.hpp> // note the '2'