/// <summary> /// 初始化 /// </summary> /// <returns></returns> public static MvSMattingConfigParam GetInstance() { MvSMattingConfigParam param = new MvSMattingConfigParam(); param.reserve = new IntPtr[MVConst.Len_28]; return(param); }
/// <summary> /// 第一帧条码图像需要setconfig /// </summary> public void SetConfig() { MvSMattingConfigParam omConfigParam = MvSMattingConfigParam.GetInstance(); MVAPI.mattingGetConfig(m_handle, ref omConfigParam); omConfigParam.isEmphasis = 2; //参数可自定义 omConfigParam.isNewPackage = 1; //参数可自定义 omConfigParam.offsetHorizon = 0; //参数可自定义 omConfigParam.offsetVertical = 0; //参数可自定义 MVAPI.mattingSetConfig(m_handle, ref omConfigParam); }
public static extern int mattingSetConfig(IntPtr handle, ref MvSMattingConfigParam param);