←选择平台

BCProcessStatus枚举

总结

代表了名片图像的识别状态。

语法
c#
VB
c++
公共枚举BCProcessStatus
公共枚举BCProcessStatus
公共:枚举BCProcessStatus密封
成员
无法识别的名片。
价值 成员 描述
0 失败的
1 BlurDetected 图像是模糊的。
2 GlareDetected 图像有眩光。
3 成功 形象是公认的成功。
讲话

BCProcessStatus提供了名片图像识别的状态。

例子
c#
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.Forms.Common;使用Leadtools.Ocr;使用Leadtools.Forms.Commands;使用Leadtools.Barcode;公共无效TestBusinessCardReader (){/ /初始化RasterCodecs类RasterCodecs编解码器=RasterCodecs ();/ /名片图像字符串chequePath = Path.Combine (LEAD_VARS.ImagesDir,“original.jpg”);RasterImage图像= codecs.Load (chequePath);/ /启动条形码BarcodeEngine BarcodeEngine =BarcodeEngine ();/ /启动Ocr引擎IOcrEngine ocrEngine = OcrEngineManager.CreateEngine (OcrEngineType.LEAD);ocrEngine.Startup(编解码器,,,LEAD_VARS.OcrLEADRuntimeDir);/ /初始化BusinessCardReader类BusinessCardReader BCReader =BusinessCardReader (ocrEngine barcodeEngine);BCProcessStatus状态= BCReader.Process(图片);如果(状态= = BCProcessStatus.BlurDetected)Console.WriteLine (模糊图像中发现:“+);其他的如果(状态= = BCProcessStatus.GlareDetected)Console.WriteLine (“眩光图像中发现:“+);其他的如果(状态= = BCProcessStatus.Failed)Console.WriteLine (“未能识别的形象:“+);其他的如果(状态= = BCProcessStatus.Success){如果(BCReader。结果! =){foreach(varresBCReader.Results){LeadRect边界= res.Value.Bounds;Console.WriteLine (字符串.Format (“字段名:{0}”res.Key));Console.WriteLine (字符串.Format (“字段值:{0}”res.Value.Value));Console.WriteLine (字符串.Format (”字段的信心:{0}”res.Value.Confidence));Console.WriteLine (字符串.Format (”字段范围:{0},{0},{0},{0}”、bounds.X.ToString () bounds.Y.ToString (), bounds.Width.ToString (), bounds.Height.ToString ()));Console.WriteLine (“* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *”);}}}ocrEngine.Shutdown ();}静态LEAD_VARS{公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;公共常量字符串OcrLEADRuntimeDir =@“C: \ LEADTOOLS21 \ Bin \常见\ OcrLEADRuntime”;}
需求
目标平台
Leadtools.Forms。命令大会
188金宝搏的网址客服|支持|联系我们|知识产权的通知
©1991 - 2021领先的技术公司。保留所有权利。