【opencv】图片标注文字

IplImage* pstImg;
HI_CHAR as8Title[25];
CvFont stTimeFont;//字体信息
cvInitFont(&stTimeFont,CV_FONT_HERSHEY_COMPLEX,0.5f,0.5f,0,1,8); 
sprintf_s(as8Title,"GMM:%d",g_u32FrameNum);
cvPutText(pstImg,as8Title,cvPoint(0,15),&stTimeFont,CV_RGB(255,0,0));
posted @ 2014-04-03 14:44  匡子语  阅读(878)  评论(0编辑  收藏  举报