How can I confirm if openCV is properly installed in my computer ? Is there any quick command line for it ? I am on Ubuntu 9.10
OpenCV libraries are installed as in . a(static library) or . so(dynamic library) format. You can find OpenCV2 (i.e. C++ version) libraries (e.g. libopencv_core.so,libopencv_highgui.so etc) at /usr/local/lib .
A proper answer to my own question !
pkg-config --modversion opencv
With OpenCV 2.4.x:
You can use "CV_VERSION" or "CV_MAJOR_VERSION", "CV_MINOR_VERSION", "CV_SUBMINOR_VERSION" from a C/C++ simple program.
Example of 'main.c':
#include <stdio.h> #include <cv.h> int main(void) { printf("%s\r\n", CV_VERSION); printf("%u.%u.%u\r\n", CV_MAJOR_VERSION, CV_MINOR_VERSION, CV_SUBMINOR_VERSION); }
Here is the compilation line:
g++ `pkg-config --cflags opencv` main.c `pkg-config --libs opencv` -o main
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With