Hello everyone! I am working on a program using the OpenCV library (though I am quite a noob on it). One of the things I need to do is to draw on the image. I looked at the OpenCV drawing functions and they all seem pretty simple (Circle, Line, etc), however the program won't compile! It says this to be exact: error C3861: 'Line': identifier not found. Is there something I haven't installed? I used the tutorial on http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2008 to install OpenCV on Visual Studio 2008 and so far this is the only real problem I have. Please help me! I need this program working as soon as possible!
+3
A:
The function to draw a line in the OpenCV C API is named cvLine
, not Line
.
Phil Ross
2010-08-25 10:52:09
Ok... That was easy. Nothing was said in the site -_- http://opencv.willowgarage.com/documentation/python/drawing_functions.htmlThank you very much!
Juls
2010-08-25 11:46:00
@Juls The link you posted is for the Python documentation, which is why the function names are different.
Phil Ross
2010-08-25 12:12:56
+1 Accurate. Juls, don't forget to vote up on his answer or accept it as the official solution.
karlphillip
2010-08-25 13:27:42
In OpenCV 2 it's `cv::line`
Geoff
2010-08-26 13:19:04