Ejemplo n.º 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        public override void init()
        {
            base.init();

            #region  实例化结果类
            _result = new OCRTextShuJu_Result();
            #endregion

            #region 读取ocr字库
            HOperatorSet.CreateTextModelReader(this.Mode, this.Hv_FileName + ".omc", out this._textMode);
            #endregion

            #region  提取ocv检测的region 点位
            this.IOutSide.Mid_col_x = (HTuple)this.mid_col_x_1;
            this.IOutSide.Mid_row_y = (HTuple)this.mid_row_y_1;
            this.IOutSide.Len1      = (HTuple)this.len1_1;
            this.IOutSide.Len2      = (HTuple)this.len2_1;
            this.IOutSide.Phi       = (HTuple)this.angle_1;
            #endregion

            #region  创建文本时的参数
            this.Mode = (HTuple)_mode_1;
            #endregion

            #region  获取结果的格式
            this.ResultName = (HTuple)_resultName_1;
            #endregion
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public OCRTextShuJu()
        {
            #region  实例化结果类
            _result = new OCRTextShuJu_Result();
            #endregion

            #region 创建ocr字库
            HOperatorSet.CreateTextModelReader(this.Mode, this.Hv_FileName + ".omc", out this._textMode);
            #endregion
        }