예제 #1
0
 /// <summary>
 /// 收到检测数据
 /// </summary>
 /// <param name="userName">用户名</param>
 /// <param name="dataType">检测类型</param>
 /// <param name="data">检测数据</param>
 private void RecvDetectData(string userName, int dataType, Data.Rect[] data)
 {
     if (userName != "detect" || dataType > 3)
     {
         return;                                    // 不是检测发来的数据
     }
     Data.Rect[][] temp = new Data.Rect[3][];
     temp[dataType - 1] = data;
     TrackMat.run(temp);
 }
예제 #2
0
 /// <summary>
 ///  初始化拼接和跟踪
 /// </summary>
 /// <param name="results">回调结果ram>
 /// <param name="nums">数组长度ram>
 private void InitTrackMat()
 {
     TrackMat.init(this.MatVideo.Handle);
     TrackMat.setCallback(new TrackResultCallBack(this.TrackCallBackFuncult));
     TrackMat.startMat();
 }