ubuntu18.04下的opencv卸载与安装

一、opencv卸载

1、查看opencv版本号、安装路径

查看版本号

pkg-config --modversion opencv  

查看安装路径

sudo find / -name opencv.pc

这是安装的路径: /usr/lib/x86_64-linux-gnu/pkgconfig/opencv.pc

cat /usr/lib/x86_64-linux-gnu/pkgconfig/opencv.pc

文件内容:
#Package Information for pkg-config
prefix=/usr
exec_prefix= p r e f i x l i b d i r = {prefix} libdir= prefixlibdir={exec_prefix}/lib/x86_64-linux-gnu
includedir_old= p r e f i x / i n c l u d e / o p e n c v i n c l u d e d i r n e w = {prefix}/include/opencv includedir_new= prefix/include/opencvincludedirnew={prefix}/include
Name: OpenCV
Description: Open Source Computer Vision Library
Version: 3.4.0
Libs: -L e x e c p r e f i x / l i b / x 8 6 6 4 − l i n u x − g n u − l o p e n c v d n n − l o p e n c v m l − l o p e n c v o b j d e t e c t − l o p e n c v s h a p e − l o p e n c v s t i t c h i n g − l o p e n c v s u p e r r e s − l o p e n c v v i d e o s t a b − l o p e n c v c a l i b 3 d − l o p e n c v f e a t u r e s 2 d − l o p e n c v h i g h g u i − l o p e n c v v i d e o i o − l o p e n c v i m g c o d e c s − l o p e n c v v i d e o − l o p e n c v p h o t o − l o p e n c v i m g p r o c − l o p e n c v f l a n n − l o p e n c v c o r e L i b s . p r i v a t e : − l d l − l m − l p t h r e a d − l r t C f l a g s : − I {exec_prefix}/lib/x86_64-linux-gnu -lopencv_dnn -lopencv_ml -lopencv_objdetect -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_video -lopencv_photo -lopencv_imgproc -lopencv_flann -lopencv_core Libs.private: -ldl -lm -lpthread -lrt Cflags: -I execprefix/lib/x8664linuxgnulopencvdnnlopencvmllopencvobjdetectlopencvshapelopencvstitchinglopencvsuperreslopencvvideostablopencvcalib3dlopencvfeatures2dlopencvhighguilopencvvideoiolopencvimgcodecslopencvvideolopencvphotolopencvimgproclopencvflannlopencvcoreLibs.private:ldllmlpthreadlrtCflags:I{includedir_old} -I${includedir_new}

二、opencv安装

你可能感兴趣的:(计算机视觉,opencv)