$echo `pkg-config --cflags --libs opencv`
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
$ ls /usr/local/lib/pkgconfig
libnl-1.pc libnl-3.0.pc libnl-cli-3.0.pc libnl-genl-3.0.pc libnl-nf-3.0.pc libnl-route-3.0.pc opencv.pc
$export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
$ echo `pkg-config --cflags --libs opencv`
-I/usr/local/include/opencv -I/usr/local/include /usr/local/lib/libopencv_calib3d.so /usr/local/lib/libopencv_contrib.so /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_features2d.so /usr/local/lib/libopencv_flann.so /usr/local/lib/libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so /usr/local/lib/libopencv_ml.so /usr/local/lib/libopencv_nonfree.so /usr/local/lib/libopencv_objdetect.so /usr/local/lib/libopencv_ocl.so /usr/local/lib/libopencv_photo.so /usr/local/lib/libopencv_stitching.so /usr/local/lib/libopencv_superres.so /usr/local/lib/libopencv_ts.a /usr/local/lib/libopencv_video.so /usr/local/lib/libopencv_videostab.so -lrt -lpthread -lm -ldl
$g++ letter_recog.cpp -o letter_recog `pkg-config --cflags --libs opencv`
$./letter_recog
./letter_recog: error while loading shared libraries: libopencv_calib3d.so.2.4: cannot open shared object file: No such file or directory
$export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
Showing posts with label Visão Computacional. Show all posts
Showing posts with label Visão Computacional. Show all posts
Sunday, October 12, 2014
Tuesday, May 06, 2014
Morphological operations using OpenCV
cv::erode(image,eroded,cv::Mat(),cv::Point(-1,-1),3); //3 times
cv::dilate(image,dilated,cv::Mat(),cv::Point(-1,-1),3); //3 times
References
[1] http://www.packtpub.com/article/opencv-image-processing-morphological-filters
[2] http://qtandopencv.blogspot.com/2013/09/morphological-operations-and-opencv2-00.html
Wednesday, November 07, 2012
OpenCV 2.4 - Visual Studio 10 - Setting
Configuration Properties
C/C++
+ General settings
+ Additional include properties (*.h/*.hpp)
VC++ Directory
+ Library Directories (*.lib)
Linker
+ Additional dependencies (namep.lib nameq.lib namer.lib ... )
C/C++
+ General settings
+ Additional include properties (*.h/*.hpp)
VC++ Directory
+ Library Directories (*.lib)
Linker
+ Additional dependencies (namep.lib nameq.lib namer.lib ... )
Wednesday, March 28, 2012
Subscribe to:
Posts (Atom)
-
Resources: [1] Hela https://ome.grc.nia.nih.gov/iicbu2008/hela/index.html
-
mas plugins http://devsnippets.com/reviews/using-jquery-to-style-design-elements-20-impressive-plugins.html http://www.extjs.com/deploy/dev/...
-
Episodios: Épisode 1 : La Libertina de calidad (Le Libertin de qualité) Épisode 2 : La Apuesta de las tres cotillas (La Gageure des tr...
Python3 version alternatives and virtual environments
Solving multiple python installation: sudo update-alternatives --install /usr/ bin /python3 python3 /usr/ bin /python3 .5 1 sudo update...