public int Video_StartRealPlay(PictureBox videoHwnd, string IP) { if (this.m_hLPRClient > 0) { this.m_nPlayHandle = CVzClientSDK.VzLPRClient_StartRealPlay(this.m_hLPRClient, videoHwnd.Handle); } else { return(-1); } return(0); }
public int Video_Connect(string Ip, int Port, string userName, string Pwd) { try { this.IP = Ip; this.m_NotifyCB = new CVzClientSDK.VZLPRC_COMMON_NOTIFY_CALLBACK(this.OnNotifyCallBack); CVzClientSDK.VZLPRClient_SetCommonNotifyCallBack(this.m_NotifyCB, IntPtr.Zero); this.m_hLPRClient = CVzClientSDK.VzLPRClient_Open(this.IP, (ushort)Port, userName, Pwd); if (this.m_hLPRClient == 0) { return(0); } int bEnableImage = 1; CVzClientSDK.VzLPRClient_SetPlateInfoCallBack(this.m_hLPRClient, this.m_PlateResultCB, IntPtr.Zero, bEnableImage); this.m_SerialRecvDataCB = new CVzClientSDK.VZDEV_SERIAL_RECV_DATA_CALLBACK(this.OnSerialRecvDataCallback); this.m_hSerialHandle = CVzClientSDK.VzLPRClient_SerialStart(this.m_hLPRClient, 0, this.m_SerialRecvDataCB, IntPtr.Zero); } catch (Exception) { } return(0); }
public void StopRealTimeVideo(string Ip) { CVzClientSDK.VzLPRClient_CloseByIP(Ip); }
public void CapturePicture(string Ip, out string strPicName, string textFont = "") { strPicName = string.Empty; base.getCapturePicturePath(Ip, out strPicName); CVzClientSDK.VzLPRClient_GetSnapShootToJpeg2(this.m_nPlayHandle, strPicName, 0); }
public ZSCamera() { CVzClientSDK.VzLPRClient_Setup(); this.m_PlateResultCB = new CVzClientSDK.VZLPRC_PLATE_INFO_CALLBACK(this.OnPlateResult); }