"'toCv' not declared in the scope"? #4

brianputz opened this Issue Mar 17, 2012 · 4 comments


None yet

4 participants


I've been trying to compile the FaceSubstitution but keep being met with the error "'toCv' not declared in the scope." I am using the most recent version of ofxCv and dug through it and found that there is in fact something called toCv in there. I'm not the best coder in the world and I am stuck as to what is happening here. Any advice would be awesome!



Was including the namespace cv

@brianputz brianputz closed this Mar 20, 2012

Thanks for the solution, but what exactly do you mean? I'm getting the same issue right now.


seconded, what does this mean? I see the toCv() functions, but no toCV(ofImage& myImage)
what's the namespace issue?


if you see "'toCv' not declared in the scope" you need to either say:


or add to the top of the file:

using namespace ofxCv;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment