I am using open-CV to take a live stream from a webcam.
Is there a way to show an IplImage in a picturebox?
I'm using opencv 2.3.1 in C++. I'm working with Visual Studio 2010 in window form application. Thank you
int main()
{
CvCapture* capture=cvCreateCameraCapture(0);
cvNamedWindow("Live",CV_WINDOW_AUTOSIZE);
IplImage *frame=cvCreateImage(cvSize(w,h),8,3); //Original Image
while(1)
{
IplImage *fram=cvQueryFrame(capture);
if(!fram)
break;
cvShowImage("Live",frame);
char c=cvWaitKey(33);
if(c==27)
break;
}
cvReleaseCapture(&capture);
cvDestroyAllWindows();
}
I know this was discussed at how to put an Iplimage on a picturebox?
but I am not understand how to write in window form.