ToupCam SDK camera opening process?
Enumerate cameras
Function: Toupcam_EnumV2
Example: ToupcamDeviceV2 devices[TOUPCAM_MAX];
int cnt = Toupcam_EnumV2(devices);
Description: cnt represents the number of detected camera devices
Open camera
Function: Toupcam_Open
Example: HToupcam hcam = Toupcam_Open(devices[0]->id);
Description: devices[0]->id represents the ID number of the first enumerated camera, hcam represents the handle
Run camera
Function: Toupcam_StartPullModeWithWndMsg or Toupcam_StartPullModeWithCallback
I do not know if vb6.0 supports messaging mechanism, if not supported, use Toupcam_StartPullModeWithCallback
Example 1: Toupcam_StartPullModeWithWndMsg(hcam, hwnd, msg);
Close camera
Function: Toupcam_Close
Example: Toupcam_Close(hcam);
See details:
Have Other Questions?
If your questions remain unanswered, please feel free to contact our technical support team at any time.