摘要:
#include "stdafx.h"#include <atltime.h>#include <highgui.h>int main(){ int c; CTime time; IplImage *img; CvCapture* capture = cvCaptureFromCAM(1); cvNamedWindow("mainWin", CV_WINDOW_AUTOSIZE); cvMoveWindow("mainWin", 50, 50); while(1) { img=cvQueryFrame(capt 阅读全文
摘要:
#include "stdafx.h"#include "cv.h"#include "highgui.h"CvRect box;bool drawing_box=false;void draw_box(IplImage* img,CvRect rect){ cvRectangle(img,cvPoint(box.x,box.y),cvPoint(box.x+box.width,box.y+box.height),cvScalar(0xff,0x00,0x00));}void my_mouse_callback(int event , 阅读全文