c++ opencv函数putText用法详解

c++ opencv函数putText用法详解

#include 
#include 
#include 
#include 
#include 
#include 
using namespace cv;
using namespace std;

#define w 800

int main(int argc, char **argv) {
	Point pt(20, 500);
	Mat img = Mat::zeros( w, w, CV_8UC3);
	namedWindow("opencv", WINDOW_FREERATIO);

	putText(img, "In the above example:", pt, 1, 4, Scalar(0, 0, 255), 4,
			LINE_8);
	imshow("111", img);
	int k = waitKey(0);
	return 0;
}

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