Il_parentHandle=al_parentHandle
String lpszName
LpszName='pictures... '
If isNull (lhand) or lhand & lt; 1 then
//262144 + 12582912 + 1073741824 + 268435456
Lhand=capCreateCaptureWindowA (lpszName, 262144 + 12582912 + 1073741824 + 268435456, 0, 0, il_width, il_height, al_parentHandle, 0)
//messagebox (" lhand ", string (lhand))
If lhand & lt;> 0 then
Send (lhand WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, 0)//set the callback video
Send (lhand WM_CAP_SET_CALLBACK_ERROR, 0, 0)//set the callback error
Send (lhand WM_CAP_SET_CALLBACK_STATUSA, 0, 0)
Send (lhand WM_CAP_DRIVER_CONNECT, 0, 0)
Send (lhand WM_CAP_SET_SCALE, 1, 0)
Send (lhand WM_CAP_SET_PREVIEWRATE, 66, 0)
Send (lhand WM_CAP_SET_OVERLAY, 1, 0)
Send (lhand WM_CAP_SET_PREVIEW, 1, 0)
End the if
End the if
Camera to ensure that only one USB, QQ call properly, PB is open again a for a long time, sometimes called a second time after the normal not open again, tears,
CodePudding user response:
I have encountered this problem, not fix, then change to be able to use pbni + opencvCodePudding user response:
Can I try thishttps://download.csdn.net/download/ganzhenyu/12377744