private static TextResult[] DecodeFile(BarcodeReader _br, string strImagePath)
        {
            //modifiy the default template and decode file.
            PublicParameterSettings settings = _br.GetTemplateSettings("");

            //set max barcode count.
            settings.mMaxBarcodesCount = 1;
            _br.SetTemplateSettings(settings);
            TextResult[] result = _br.DecodeFile(strImagePath, "");
            return(result);
        }
示例#2
0
        private static TextResult[] DecodeFile(BarcodeReader _br, string strImagePath)
        {
            //modifiy the default template and decode file.
            PublicParameterSettings settings = _br.GetTemplateSettings("");

            //set excepted barcode count.
            settings.mExpectedBarcodesCount  = 0x7ffffff;
            settings.mRegionPredetectionMode = RegionPredetectionMode.RPM_Enable;
            _br.SetTemplateSettings(settings);
            TextResult[] result = _br.DecodeFile(strImagePath, "");
            return(result);
        }