linux下调用opencv接口函数,在一张图片上面画框

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiewenhao12/article/details/74418878
#include <opencv2/highgui/highgui.hpp>


int main(int argc,char** argv)
{
cvNamedWindow("picture",CV_WINDOW_AUTOSIZE);


IplImage* image =cvLoadImage(argv[1]);

cvRectangle(image,cvPoint(5,5),cvPoint(200,200),cvScalar(255,255,255));


cvShowImage("picture",image);


cvWaitKey(0);


cvReleaseImage(&image);


cvDestroyWindow("picture");


return 0;
}
展开阅读全文

没有更多推荐了,返回首页