摘要: #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 阅读全文
posted @ 2012-06-04 20:42 Epirus 阅读(4849) 评论(0) 推荐(0) 编辑
摘要: #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 , 阅读全文
posted @ 2012-06-04 20:08 Epirus 阅读(1620) 评论(0) 推荐(0) 编辑