#include "highgui.h"
int main(int argc,char** argv)
{
cvNamedWindow("Example7",1);
CvCapture* capture = cvCreateCameraCapture(-1);
IplImage* frame;
while(1)
{
frame = cvQueryFrame(capture);
if (!frame)
{
break;
}
cvShowImage("Example7",frame);
char c = cvWaitKey(10);
if (c == 27)
{
break;
}
}
cvReleaseCapture(&capture);
cvDestroyWindow("Example7");
}
opencv:打开摄像头
最新推荐文章于 2023-12-25 09:46:59 发布