Ask Your Question

MarcVO's profile - activity

2016-03-27 14:50:08 -0600 received badge  Notable Question (source)
2015-06-23 04:48:56 -0600 received badge  Popular Question (source)
2013-06-02 16:13:47 -0600 commented answer putText with opencv 2.4

thanks again, sorry for my c++ low level and thanks for your patience… but, whats the meaning of &lt and &gt? I have written: cv::Mat img = cv::imread("/users/sunny/image.jpg"); and now the error is: Undefined symbols for architecture x86_64: "cv::imread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Marc

2013-06-02 07:38:09 -0600 commented answer putText with opencv 2.4

Thanks! as you suggest already write cv::putText()….. but now the error is: Non-const Ivalue reference to type 'cv::Mat cannot bind to a value of unrelated type 'IplImage' (aka'_IplImage') why? my image is perfectly showed before the putText

2013-06-02 07:31:07 -0600 received badge  Critic (source)
2013-06-02 07:09:40 -0600 asked a question 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)