Commit f5152a5a 刘韬

1

1 个父辈 35dcc71a
...@@ -87,7 +87,7 @@ namespace ScanCodeServer ...@@ -87,7 +87,7 @@ namespace ScanCodeServer
} }
public static List<CodeInfo> DecodeCode(HObject ho_Image, string symbolType, string hv_model_path, int codeCount, int timeOut = 1500) public static List<CodeInfo> DecodeCode(HObject ho_Image, string symbolType, string hv_model_path, int codeCount, int timeOut = 1500)
{ {
Common.log.Debug("开始 DecodeCode[" + symbolType + "][" + codeCount + "][" + hv_model_path + "]"); Common.log.Info("开始 DecodeCode[" + symbolType + "][" + codeCount + "][" + hv_model_path + "]");
Stopwatch sw = new Stopwatch(); Stopwatch sw = new Stopwatch();
sw.Start(); sw.Start();
List<CodeInfo> codeList = new List<CodeInfo>(); List<CodeInfo> codeList = new List<CodeInfo>();
...@@ -154,7 +154,7 @@ namespace ScanCodeServer ...@@ -154,7 +154,7 @@ namespace ScanCodeServer
} }
} }
sw.Stop(); sw.Stop();
Common.log.Debug("结束 DecodeCode[" + symbolType + "][" + codeCount + "]["+ (sw.ElapsedMilliseconds/1000f).ToString("0.00")+ "]返回数量:" + codeList.Count); Common.log.Info("结束 DecodeCode[" + symbolType + "][" + codeCount + "]["+ (sw.ElapsedMilliseconds/1000f).ToString("0.00")+ "]返回数量:" + codeList.Count);
if (hv_Area != null) if (hv_Area != null)
{ {
...@@ -197,7 +197,7 @@ namespace ScanCodeServer ...@@ -197,7 +197,7 @@ namespace ScanCodeServer
{ {
Common.log.Error("DecodeCode出错:" + ex.ToString()); Common.log.Error("DecodeCode出错:" + ex.ToString());
Console.WriteLine("DecodeCode出错:" + ex.ToString()); Console.WriteLine("DecodeCode出错:" + ex.ToString());
Common.log.Debug(" DecodeCode[" + symbolType + "][" + hv_model_path + "][" + codeCount + "] 结束,返回数量:" + codeList.Count); Common.log.Info(" DecodeCode[" + symbolType + "][" + hv_model_path + "][" + codeCount + "] 结束,返回数量:" + codeList.Count);
return codeList; return codeList;
} }
...@@ -316,7 +316,7 @@ namespace ScanCodeServer ...@@ -316,7 +316,7 @@ namespace ScanCodeServer
} }
public static List<CodeInfo> DecodeBarCode(HObject ho_Image) public static List<CodeInfo> DecodeBarCode(HObject ho_Image)
{ {
Common.log.Debug("开始 DecodeCode[barcode]"); Common.log.Info("开始 DecodeCode[barcode]");
Stopwatch sw = new Stopwatch(); Stopwatch sw = new Stopwatch();
sw.Start(); sw.Start();
List<CodeInfo> codeList = new List<CodeInfo>(); List<CodeInfo> codeList = new List<CodeInfo>();
...@@ -378,7 +378,7 @@ namespace ScanCodeServer ...@@ -378,7 +378,7 @@ namespace ScanCodeServer
} }
sw.Stop(); sw.Stop();
Common.log.Debug("结束 DecodeCode[barcode][" + (sw.ElapsedMilliseconds / 1000f).ToString("0.00") + "]返回数量:" + codeList.Count); Common.log.Info("结束 DecodeCode[barcode][" + (sw.ElapsedMilliseconds / 1000f).ToString("0.00") + "]返回数量:" + codeList.Count);
HOperatorSet.ClearBarCodeModel(hv_BarCodeHandle); HOperatorSet.ClearBarCodeModel(hv_BarCodeHandle);
if (hv_Area != null) if (hv_Area != null)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!