Getting to know OpenCV (Ubuntu)

  1. sudo apt-get install libopencv-dev,Online installation library, [yes/no] encountered during the process, press Enter directly, default yes
    Insert picture description here
    2.dpkg -s libopencv-dev, Check if the installation is successful
    Insert picture description here
  2. https://opencv.org/ inOnline help documentation, many, many methods above
C++: void putText(Mat& img,//要处理的图像名字
 const string& text, //需要写的字
 Point org, //文字的坐标
 int fontFace,//字体,
  double fontScale,//字号
   Scalar color, //颜色
   int thickness=1, //线条粗细
   int lineType=8,//行类型
    bool bottomLeftOrigin=false )
 C++: void cvtColor(InputArray src,//要转换的图像 OutputArray dst,//生成的图像
  int code,//转换方式,颜色变化
   int dstCn=0 )
C++: void CascadeClassifier::detectMultiScale(const Mat& image,//要检测的图像
 vector<Rect>& objects, //存储圈起来的人脸,存储方框的容器double scaleFactor=1.1, //默认的值
 int minNeighbors=3, int flags=0, Size minSize=Size(), Size maxSize=Size())
C++: void rectangle(Mat& img,//传入的图
 Rect rec, //画的矩形
 const Scalar& color,//颜色
  int thickness=1, int lineType=8, int shift=0 )
C++: bool imencode(const string& ext, //转换后的扩展名如.jpg
InputArray img, //输入的图
vector<uchar>& buf, //转换后存储
const vector<int>& params=vector<int>())
C++: void putText(Mat& img, //图像名
const string& text, //图像上写的字
Point org,//坐标
 int fontFace, //字体
 double fontScale,//字号
  Scalar color, //颜色
  int thickness=1, int lineType=8, bool bottomLeftOrigin=false )```

Guess you like

Origin blog.csdn.net/weixin_43722052/article/details/114031812