Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

putText with opencv 2.4

I'm trying to use putText as openCV doc explains:

string text = "Funny text inside the box";
int fontFace = cv::FONT_HERSHEY_SCRIPT_SIMPLEX;
double fontScale = 2;
int thickness = 3;

cvPutText(img1, text, cvPoint(30,30), fontFace, fontScale, cvScalar(200,200,250), thickness, 8);

but I can't compile because I receive the message: no matching function for call 'cvPutText'

if I use: putText(img1, text, cvPoint(30,30), fontFace, fontScale, cvScalar(200,200,250), thickness, 8); the error is: use of undeclared identifier 'putText', did you mean cv::putText?

I'm using xCode over OS X 10.8.3

where is my error? (I just want to write some text in my image)