Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cvtColor complaint #120

Open
kylemcdonald opened this issue Apr 6, 2016 · 4 comments
Open

cvtColor complaint #120

kylemcdonald opened this issue Apr 6, 2016 · 4 comments

Comments

@kylemcdonald
Copy link
Owner

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
Copy link
Collaborator

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

@Daandelange
Copy link

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

@HalfdanJ
Copy link
Contributor

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

@javl
Copy link
Contributor

javl commented Feb 17, 2017

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants