public override bool Close(ConnectionConfiguration configuration)
        {
            if (configuration.CameraHwnd != (int)IntPtr.Zero)
            {
                int iRet = HuoYanSDK.VzLPRClient_StopRealPlay(configuration.PlayHwnd);
                if (iRet == 0)
                {
                    HuoYanSDK.VzLPRClient_SetPlateInfoCallBack(configuration.CameraHwnd, null, IntPtr.Zero, 1);

                    HuoYanSDK.VzLPRClient_Close(configuration.CameraHwnd);
                    return(true);
                }
            }
            return(false);
        }
        public override bool Connection(ConnectionConfiguration configuration)
        {
            int m_hLPRClinet = HuoYanSDK.VzLPRClient_Open(configuration.IP, configuration.Port, "admin", "admin");

            if (m_hLPRClinet != 0)
            {
                configuration.CameraHwnd = m_hLPRClinet;

                int m_hPlay = HuoYanSDK.VzLPRClient_StartRealPlay(m_hLPRClinet, configuration.ContainerHwnd);
                if (m_hPlay > -1)
                {
                    HuoYanSDK.VzLPRClient_SetPlateInfoCallBack(m_hLPRClinet, CameraPlateReceivedCallBack, IntPtr.Zero, 1);

                    configuration.PlayHwnd = m_hPlay;
                    return(true);
                }
                else
                {
                    HuoYanSDK.VzLPRClient_Close(m_hLPRClinet);
                }
            }
            return(false);
        }