可以通过鼠标输入改变绘图模式 #include<opencv2\core\core.hpp> #include<opencv2\highgui\highgui_c.h> #include<opencv2\opencv.hpp> #include<opencv2\imgproc\imgproc.hpp> using namespace cv; char *window_name = "test"; bool mode = true; void drawByMouse(int event, int x, int y, int f...