Home > Software engineering >  Rookie help!!!!!! Opencv1.0 how open the camera shows on the designated picture control
Rookie help!!!!!! Opencv1.0 how open the camera shows on the designated picture control

Time:10-27

Void CMymfcDlg: : OnOpen ()
{
The HWND MyWin;
Int ncams=cvcamGetCamerasCount ();
CvcamSetProperty (0, CVCAM_PROP_ENABLE, CVCAMTRUE);


MyWin=(HWND) cvGetWindowHandle (" Camera ");
CvcamSetProperty (0, CVCAM_PROP_WINDOW, & amp; MyWin);
CvcamInit ();
CvcamStart ();

CvWaitKey (0);
CvcamStop ();
CvcamExit ();
return ;
}
Click on the run after a new pop up a window display, I want to show it on the picture of the dialog box controls, the great god, please do me a favor,
I rookie, please speak a little bit in detail,

CodePudding user response:

Your code has obtained images? To obtain the image first, and then can be converted into CImage class, after the show
  • Related