public void StartViewPlay() { //创建视频模式的人脸识别引擎 if (faceVideoRecognizer == null) { faceVideoRecognizer = new FaceVideoRecognizer(); } faceVideoRecognizer.initFaceEngine(); if (faceInfo == null) { faceInfo = new List <FaceInfo>(); } if (taskStartRealPlay == null) { //创建一个任务进行视频预览,多线程任务 taskStartRealPlay = Task.Factory.StartNew(RealPreview); } }
public Camera() { ip = "192.168.0.103"; user = "******"; pwd = "HikZTTXNQ"; port = 8000; m_lReadHandle = -1; m_lUserId = -1; m_lPort = -1; PictrueBoxId = null; ChannelNum = 1; imageCover = new ImageCover(); faceVideoRecognizer = new FaceVideoRecognizer(); AppSettingsReader appSetting = new AppSettingsReader(); threshold = (float)appSetting.GetValue("Threshold", typeof(float)); }