complete config for reading excel data
This commit is contained in:
@@ -39,6 +39,7 @@ using System.Windows.Documents;
|
||||
using System.Windows.Forms;
|
||||
using ThridLibray;
|
||||
using LibDataBase;
|
||||
using LibReadTetraExcel;
|
||||
|
||||
namespace TetraPackOCR
|
||||
{
|
||||
@@ -63,34 +64,11 @@ namespace TetraPackOCR
|
||||
/// 声明一个PaddleOCR对象
|
||||
/// </summary>
|
||||
PaddleOCREngine Engine;
|
||||
|
||||
/// <summary>
|
||||
///对应表格"P2生成数据"这一页
|
||||
/// </summary>
|
||||
ExcelWorksheet sheet1;
|
||||
/// <summary>
|
||||
/// 对应表格"QSV对应产品规格和梯度"这一页
|
||||
/// </summary>
|
||||
ExcelWorksheet sheet2;
|
||||
/// <summary>
|
||||
/// 对应"产品规格对应排布方式"这一页
|
||||
/// </summary>
|
||||
ExcelWorksheet sheet3;
|
||||
/// <summary>
|
||||
/// 表格路径
|
||||
/// </summary>
|
||||
string execlFileName = AppDomain.CurrentDomain.BaseDirectory + "Data\\Excle\\OCR文件0602.xlsx";
|
||||
|
||||
/// <summary>
|
||||
/// 共印依据 QSV Design, Layers, Colours,产品规格
|
||||
/// </summary>
|
||||
string m_ProductStandard;
|
||||
/// <summary>
|
||||
/// 幅数 包材宽 梯度 X距离 Y距离
|
||||
/// </summary>
|
||||
int NumberOfLanes;
|
||||
double m_width, m_Gradient, m_DistX, m_DistY, m_height;
|
||||
int m_ColorMax = 0;
|
||||
OrderConfig config = null;
|
||||
/// <summary>
|
||||
/// 定位Vpp文件
|
||||
/// </summary>
|
||||
@@ -666,131 +644,65 @@ namespace TetraPackOCR
|
||||
}
|
||||
|
||||
log.Info("当前订单号为:" + order);
|
||||
//读取表格内容
|
||||
ExcelPackage.License.SetNonCommercialOrganization("My Noncommercial organization");
|
||||
using (ExcelPackage package = new ExcelPackage(execlFileName))
|
||||
config = ExcelHelper.ReadOCROrder(execlFileName, order);
|
||||
if (config.ParseQSV)
|
||||
{
|
||||
sheet1 = package.Workbook.Worksheets["P2生成数据"];
|
||||
sheet2 = package.Workbook.Worksheets["QSV对应产品规格和梯度"];
|
||||
sheet3 = package.Workbook.Worksheets["产品规格对应排布方式"];
|
||||
//根据订单遍历sheet1 找Sequence QSV NumOFLanes 字符
|
||||
string currentQSV = "";
|
||||
for (int i = 1; i < sheet1.Dimension.Rows; i++)
|
||||
lbl_QSV.Text = config.QSV;
|
||||
log.Info("当前订单QSV:" + config.QSV);
|
||||
log.Info("当前订单Number Of Lanes:" + config.NumberOfLanes);
|
||||
lbl_NO.Text = config.NumberOfLanes.ToString();
|
||||
|
||||
var result = config.OCRDesign
|
||||
.GroupBy(kvp => kvp.Value, kvp => kvp.Key)
|
||||
.ToDictionary(g => g.Key, g => g.ToList());
|
||||
foreach (var kvp in result)
|
||||
{
|
||||
if (sheet1.GetValue(i, 3) != null)
|
||||
{
|
||||
if (sheet1.Cells[i, 3].Value.ToString() == order)
|
||||
{
|
||||
currentQSV = sheet1.Cells[i, 4].Value.ToString();
|
||||
lbl_QSV.Text = currentQSV;
|
||||
log.Info("当前订单QSV:" + currentQSV);
|
||||
NumberOfLanes = Convert.ToInt32(sheet1.Cells[i, 5].Value.ToString());
|
||||
log.Info("当前订单Number Of Lanes:" + NumberOfLanes);
|
||||
lbl_NO.Text = sheet1.Cells[i, 5].Value.ToString();
|
||||
|
||||
int num = 0;
|
||||
for (int k = 0; k < 10; k++)
|
||||
{
|
||||
string lanes = sheet1.Cells[i + k, 6].Value.ToString();
|
||||
string design = sheet1.Cells[i + k, 7].Value.ToString().Split('-')[1];
|
||||
lanes = lanes.Substring(1, lanes.Length - 2);
|
||||
string[] tmp = lanes.Split(',');
|
||||
num += tmp.Length;
|
||||
List<string> textOCR = ExecelGetOcrText(design, sheet1.Cells[i + k, 8].Value.ToString());
|
||||
foreach (string lan in tmp)
|
||||
{
|
||||
int lanInt = Convert.ToInt32(lan);
|
||||
ocrTextRequest[lanInt] = textOCR;
|
||||
ocrTextDesign[lanInt] = design;
|
||||
}
|
||||
listBox1.Items.Add(sheet1.Cells[i + k, 6].Value.ToString());
|
||||
listBox1.Items.Add(string.Join(",", textOCR));
|
||||
|
||||
if (num >= NumberOfLanes)
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(currentQSV))
|
||||
{
|
||||
string qsv;
|
||||
//根据得到的QSV遍历sheet2 找产品规格和宽度梯度
|
||||
for (int j = 1; j <= sheet2.Dimension.Rows; j++)
|
||||
{
|
||||
qsv = sheet2.Cells[j, 1].Value.ToString();
|
||||
if (qsv == currentQSV)
|
||||
{
|
||||
m_ProductStandard = sheet2.Cells[j, 2].Value.ToString();
|
||||
lbl_ProductStandard.Text = m_ProductStandard;
|
||||
log.Info("当前订单产品编号:" + m_ProductStandard);
|
||||
m_width = Convert.ToDouble(sheet2.Cells[j, 3].Value.ToString());
|
||||
lbl_width.Text = sheet2.Cells[j, 3].Value.ToString();
|
||||
log.Info("当前订单幅宽:" + m_width);
|
||||
m_height = Convert.ToDouble(sheet2.Cells[j, 4].Value.ToString());
|
||||
lbl_height.Text = sheet2.Cells[j, 4].Value.ToString();
|
||||
log.Info("当前订单幅高:" + m_height);
|
||||
m_Gradient = Convert.ToDouble(sheet2.Cells[j, 5].Value.ToString());
|
||||
lbl_Gradient.Text = sheet2.Cells[j, 5].Value.ToString();
|
||||
log.Info("当前订单梯度:" + m_Gradient);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (string.IsNullOrEmpty(m_ProductStandard))
|
||||
{
|
||||
log.Debug("ProductStandard未找到,请检查订单号是否正确");
|
||||
btn_OrderNum.Enabled = true;
|
||||
btn_OrderNum.BackColor = Color.DeepSkyBlue;
|
||||
return;
|
||||
}
|
||||
//根据产品规格获取距离坐标
|
||||
for (int n = 1; n < sheet3.Dimension.Rows; n++)
|
||||
{
|
||||
if (sheet3.GetValue(n, 1) != null)
|
||||
{
|
||||
if (sheet3.Cells[n, 1].Value.ToString() == m_ProductStandard)
|
||||
{
|
||||
string str = sheet3.Cells[n + ocrTextRequest[1].Count - 1, 4].Value.ToString();
|
||||
string[] x_y = str.Split(',');
|
||||
string[] X = x_y[0].Split(':');
|
||||
string[] Y = x_y[1].Split(':');
|
||||
m_DistX = Convert.ToDouble(X[1].Replace("mm", ""));
|
||||
lbl_DistX.Text = X[1].Replace("mm", "");
|
||||
log.Info("当前订单X偏移:" + m_DistX);
|
||||
m_DistY = Convert.ToDouble(Y[1].Replace("mm", ""));
|
||||
lbl_DistY.Text = Y[1].Replace("mm", "");
|
||||
log.Info("当前订单Y偏移:" + m_DistY);
|
||||
|
||||
string alignColor = sheet3.Cells[n + ocrTextRequest[1].Count - 1, 3].Value.ToString();
|
||||
if (alignColor.Contains("单排"))
|
||||
m_ColorMax = ocrTextRequest.Values.Select(x => x.Count).Max();// ocrTextRequest[1].Count;
|
||||
else
|
||||
m_ColorMax = alignColor.Replace("排布", "").Split(',').ToList().Select(int.Parse).Max();
|
||||
log.Info("当前排布方式:" + alignColor);
|
||||
log.Info("单行最大数量:" + m_ColorMax.ToString());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (m_DistX == 0 || m_DistY == 0)
|
||||
{
|
||||
log.Debug("DistX,DistY未找到,请检查订单号是否正确");
|
||||
btn_OrderNum.Enabled = true;
|
||||
btn_OrderNum.BackColor = Color.DeepSkyBlue;
|
||||
return;
|
||||
}
|
||||
log.Info("相关数据已获取完成,且已显示在界面中,请查看。");
|
||||
}
|
||||
else
|
||||
{
|
||||
log.Debug("QSV未找到,请检查订单号是否正确");
|
||||
btn_OrderNum.Enabled = true;
|
||||
btn_OrderNum.BackColor = Color.DeepSkyBlue;
|
||||
return;
|
||||
listBox1.Items.Add(string.Join(",", kvp.Value));
|
||||
listBox1.Items.Add(string.Join(",", config.OCRRequest[kvp.Value[0]]));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
log.Debug("QSV未找到,请检查订单号是否正确");
|
||||
btn_OrderNum.Enabled = true;
|
||||
btn_OrderNum.BackColor = Color.DeepSkyBlue;
|
||||
return;
|
||||
}
|
||||
if (config.ParseProduct)
|
||||
{
|
||||
lbl_ProductStandard.Text = config.ProductStandard;
|
||||
log.Info("当前订单产品编号:" + config.ProductStandard);
|
||||
lbl_width.Text = config.Width.ToString();
|
||||
log.Info("当前订单幅宽:" + config.Width);
|
||||
lbl_height.Text = config.Height.ToString();
|
||||
log.Info("当前订单幅高:" + config.Height);
|
||||
lbl_Gradient.Text = config.Gradient.ToString();
|
||||
log.Info("当前订单梯度:" + config.Gradient);
|
||||
}
|
||||
else
|
||||
{
|
||||
log.Debug("ProductStandard未找到,请检查订单号是否正确");
|
||||
btn_OrderNum.Enabled = true;
|
||||
btn_OrderNum.BackColor = Color.DeepSkyBlue;
|
||||
return;
|
||||
}
|
||||
if (config.ParseArrange)
|
||||
{
|
||||
lbl_DistX.Text = config.DistX.ToString();
|
||||
log.Info("当前订单X偏移:" + config.DistX);
|
||||
lbl_DistY.Text = config.DistY.ToString();
|
||||
log.Info("当前订单Y偏移:" + config.DistY);
|
||||
log.Info("当前排布方式:" + config.ColorArray);
|
||||
log.Info("单行最大数量:" + config.ColorMax.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
log.Debug("DistX,DistY未找到,请检查订单号是否正确");
|
||||
btn_OrderNum.Enabled = true;
|
||||
btn_OrderNum.BackColor = Color.DeepSkyBlue;
|
||||
return;
|
||||
}
|
||||
log.Info("相关数据已获取完成,且已显示在界面中,请查看。");
|
||||
|
||||
//判断当前Lans决定结果显示数量
|
||||
InitLableColumn();
|
||||
@@ -812,7 +724,7 @@ namespace TetraPackOCR
|
||||
}
|
||||
private void InitLableColumn()
|
||||
{
|
||||
switch (NumberOfLanes)
|
||||
switch (config.NumberOfLanes)
|
||||
{
|
||||
case 1:
|
||||
Invoke(new Action(() =>
|
||||
@@ -1004,7 +916,7 @@ namespace TetraPackOCR
|
||||
|
||||
m_GotoZero = false;
|
||||
m_startTime = DateTime.Now;
|
||||
m_textWidth = 18 - (NumberOfLanes - 5);
|
||||
m_textWidth = 18 - (config.NumberOfLanes - 5);
|
||||
//m_textWidth = Convert.ToDouble(textBox1.Text);
|
||||
ocrAcc.Clear();
|
||||
autorunFlag = check_Autorun.Checked;
|
||||
@@ -1039,9 +951,7 @@ namespace TetraPackOCR
|
||||
/// </summary>
|
||||
void ClearData()
|
||||
{
|
||||
m_ProductStandard = null;
|
||||
NumberOfLanes = 0; m_width = 0; m_Gradient = 0; m_DistX = 0; m_DistY = 0;
|
||||
m_height = 0;
|
||||
config = new OrderConfig();
|
||||
}
|
||||
/// <summary>
|
||||
/// 清空上次订单显示区
|
||||
@@ -1301,7 +1211,7 @@ namespace TetraPackOCR
|
||||
fs.Close();
|
||||
log.Info("OCR存图已完成");
|
||||
|
||||
CutPicture(savePath + '\\' + strTime + ".bmp", 400 + 200 * (6 - m_ColorMax), 2000, 3400 + 200 * m_ColorMax, 1600);
|
||||
CutPicture(savePath + '\\' + strTime + ".bmp", 400 + 200 * (6 - config.ColorMax), 2000, 3400 + 200 * config.ColorMax, 1600);
|
||||
if (Engine == null)
|
||||
{
|
||||
log.Error("Engine未初始化");
|
||||
@@ -1858,7 +1768,7 @@ namespace TetraPackOCR
|
||||
return;
|
||||
}
|
||||
|
||||
if (NumberOfLanes + 1 == mMatchingStr)
|
||||
if (config.NumberOfLanes + 1 == mMatchingStr)
|
||||
{
|
||||
Thread.Sleep(3000);
|
||||
EnableStartDetect();
|
||||
@@ -1964,27 +1874,27 @@ namespace TetraPackOCR
|
||||
if (ocrTextRequest[1].Count == 0)
|
||||
return;
|
||||
|
||||
double xx = x - (m_textWidth * m_ColorMax) / 2.0;
|
||||
double xx = x - (m_textWidth * config.ColorMax) / 2.0;
|
||||
double yy = y;
|
||||
double rr = r;
|
||||
|
||||
List<float> locationXY = new List<float>();
|
||||
double ocrx = 0, ocry = 0;
|
||||
locationXY.Add((float)NumberOfLanes);
|
||||
int nol = Convert.ToInt32(NumberOfLanes);
|
||||
locationXY.Add((float)config.NumberOfLanes);
|
||||
int nol = Convert.ToInt32(config.NumberOfLanes);
|
||||
log.Info("当前订单OCR区域共" + nol + "组:");
|
||||
double degree = (rr * Math.PI) / 180;
|
||||
for (int item = 0; item < nol; item++)
|
||||
{
|
||||
if (item == 0)
|
||||
{
|
||||
ocrx = xx - m_DistX * Math.Cos(degree) - m_DistY * Math.Sin(degree);
|
||||
ocry = yy + m_DistY * Math.Cos(degree) - m_DistX * Math.Sin(degree);
|
||||
ocrx = xx - config.DistX * Math.Cos(degree) - config.DistY * Math.Sin(degree);
|
||||
ocry = yy + config.DistY * Math.Cos(degree) - config.DistX * Math.Sin(degree);
|
||||
}
|
||||
else
|
||||
{
|
||||
ocrx = ocrx + m_width * Math.Cos(degree) + m_Gradient * Math.Sin(degree);
|
||||
ocry = ocry - m_Gradient * Math.Cos(degree) + m_width * Math.Sin(degree);
|
||||
ocrx = ocrx + config.Width * Math.Cos(degree) + config.Gradient * Math.Sin(degree);
|
||||
ocry = ocry - config.Gradient * Math.Cos(degree) + config.Width * Math.Sin(degree);
|
||||
}
|
||||
|
||||
log.Info("第" + (item + 1) + "组坐标为:X:" + ocrx + ",Y:" + ocry + "。");
|
||||
@@ -2001,14 +1911,14 @@ namespace TetraPackOCR
|
||||
|
||||
if (ocry < - 50)
|
||||
{
|
||||
ocrx = ocrx - m_height * Math.Sin(degree);
|
||||
ocry = ocry + m_height * Math.Cos(degree);
|
||||
ocrx = ocrx - config.Height * Math.Sin(degree);
|
||||
ocry = ocry + config.Height * Math.Cos(degree);
|
||||
log.Info("更新第" + (item + 1) + "组坐标为:X:" + ocrx + ",Y:" + ocry + "。");
|
||||
}
|
||||
else if (ocry > 400)
|
||||
{
|
||||
ocrx = ocrx + m_height * Math.Sin(degree);
|
||||
ocry = ocry - m_height * Math.Cos(degree);
|
||||
ocrx = ocrx + config.Height * Math.Sin(degree);
|
||||
ocry = ocry - config.Height * Math.Cos(degree);
|
||||
log.Info("更新第" + (item + 1) + "组坐标为:X:" + ocrx + ",Y:" + ocry + "。");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\packages\SixLabors.ImageSharp.3.1.12\build\SixLabors.ImageSharp.props" Condition="Exists('..\packages\SixLabors.ImageSharp.3.1.12\build\SixLabors.ImageSharp.props')" />
|
||||
<Import Project="..\packages\OpenCvSharp4.runtime.win.4.11.0.20250507\build\netstandard\OpenCvSharp4.runtime.win.props" Condition="Exists('..\packages\OpenCvSharp4.runtime.win.4.11.0.20250507\build\netstandard\OpenCvSharp4.runtime.win.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
@@ -80,12 +79,6 @@
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\dll\Bjcve.Comm.FFP.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0e99375e54769942, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Portable.BouncyCastle.1.9.0\lib\net40\BouncyCastle.Crypto.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="BouncyCastle.Cryptography, Version=2.0.0.0, Culture=neutral, PublicKeyToken=072edcf4a5328938, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\BouncyCastle.Cryptography.2.7.0-beta.98\lib\net461\BouncyCastle.Cryptography.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CLIDelegate">
|
||||
<HintPath>..\dll\CLIDelegate.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -125,9 +118,6 @@
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\dll\Cognex.VisionPro.ToolGroup.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Enums.NET, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7ea1c1650d506225, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Enums.NET.5.0.0\lib\net461\Enums.NET.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EPPlus, Version=8.4.0.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EPPlus.8.4.0\lib\net462\EPPlus.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -137,12 +127,6 @@
|
||||
<Reference Include="EPPlus.System.Drawing, Version=8.4.0.0, Culture=neutral, PublicKeyToken=2308d35469c9bac0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EPPlus.System.Drawing.8.4.0\lib\net462\EPPlus.System.Drawing.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ExtendedNumerics.BigDecimal, Version=3003.0.0.346, Culture=neutral, PublicKeyToken=65f1315a45ad8949, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ExtendedNumerics.BigDecimal.3003.0.0.346\lib\net472\ExtendedNumerics.BigDecimal.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.SharpZipLib, Version=1.4.2.13, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SharpZipLib.1.4.2\lib\netstandard2.0\ICSharpCode.SharpZipLib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="log4net, Version=2.0.14.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\dll\log4net.dll</HintPath>
|
||||
@@ -150,9 +134,6 @@
|
||||
<Reference Include="LogShowLib">
|
||||
<HintPath>..\dll\LogShowLib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MathNet.Numerics, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cd8b63ad3d691a37, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MathNet.Numerics.Signed.5.0.0\lib\net461\MathNet.Numerics.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Bcl.Cryptography, Version=10.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Bcl.Cryptography.10.0.1\lib\net462\Microsoft.Bcl.Cryptography.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -162,21 +143,6 @@
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NPOI.Core, Version=2.7.5.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NPOI.2.7.5\lib\net472\NPOI.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NPOI.OOXML, Version=2.7.5.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NPOI.2.7.5\lib\net472\NPOI.OOXML.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NPOI.OpenXml4Net, Version=2.7.5.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NPOI.2.7.5\lib\net472\NPOI.OpenXml4Net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NPOI.OpenXmlFormats, Version=2.7.5.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NPOI.2.7.5\lib\net472\NPOI.OpenXmlFormats.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NSax, Version=1.0.2.0, Culture=neutral, PublicKeyToken=0b3d9671cbd3c8d0, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NSax.1.0.2\lib\net472\NSax.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenCvSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6adad1e807fea099, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\OpenCvSharp4.4.11.0.20250507\lib\netstandard2.0\OpenCvSharp.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -192,9 +158,6 @@
|
||||
<Reference Include="QWhale.Editor, Version=1.62.4104.36377, Culture=neutral, PublicKeyToken=da632fd1713dff10" />
|
||||
<Reference Include="QWhale.Syntax, Version=1.62.4104.36376, Culture=neutral, PublicKeyToken=da632fd1713dff10" />
|
||||
<Reference Include="QWhale.Syntax.Parsers, Version=1.62.4104.36376, Culture=neutral, PublicKeyToken=da632fd1713dff10" />
|
||||
<Reference Include="SixLabors.Fonts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SixLabors.Fonts.1.0.1\lib\netstandard2.0\SixLabors.Fonts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Buffers, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.6.1\lib\net462\System.Buffers.dll</HintPath>
|
||||
@@ -211,21 +174,6 @@
|
||||
<Reference Include="System.Formats.Asn1, Version=10.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Formats.Asn1.10.0.1\lib\net462\System.Formats.Asn1.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.IO.Compression, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.IO.FileSystem.Primitives, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.IO.FileSystem.Primitives.4.3.0\lib\net46\System.IO.FileSystem.Primitives.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.IO.UnmanagedMemoryStream, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.IO.UnmanagedMemoryStream.4.3.0\lib\net46\System.IO.UnmanagedMemoryStream.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Memory, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Memory.4.6.3\lib\net462\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -241,13 +189,7 @@
|
||||
<Reference Include="System.Security.Cryptography.Xml, Version=10.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Security.Cryptography.Xml.10.0.1\lib\net462\System.Security.Cryptography.Xml.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Text.Encoding.CodePages, Version=10.0.0.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Text.Encoding.CodePages.10.0.1\lib\net462\System.Text.Encoding.CodePages.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Threading.Tasks" />
|
||||
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.6.3\lib\net462\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xaml" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
@@ -263,9 +205,6 @@
|
||||
</Reference>
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="WindowsFormsIntegration" />
|
||||
<Reference Include="ZString, Version=2.6.0.0, Culture=neutral, PublicKeyToken=df4c250b14d82627, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\ZString.2.6.0\lib\netstandard2.0\ZString.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="GetOCRImage.cs" />
|
||||
@@ -344,7 +283,6 @@
|
||||
<Error Condition="!Exists('..\packages\OpenCvSharp4.runtime.win.4.11.0.20250507\build\netstandard\OpenCvSharp4.runtime.win.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\OpenCvSharp4.runtime.win.4.11.0.20250507\build\netstandard\OpenCvSharp4.runtime.win.props'))" />
|
||||
<Error Condition="!Exists('..\packages\Paddle.Runtime.win_x64.3.2.2\build\Paddle.Runtime.win_x64.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Paddle.Runtime.win_x64.3.2.2\build\Paddle.Runtime.win_x64.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\PaddleOCRSharp.6.0.0\build\PaddleOCRSharp.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\PaddleOCRSharp.6.0.0\build\PaddleOCRSharp.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\SixLabors.ImageSharp.3.1.12\build\SixLabors.ImageSharp.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SixLabors.ImageSharp.3.1.12\build\SixLabors.ImageSharp.props'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\System.ValueTuple.4.6.1\build\net471\System.ValueTuple.targets" Condition="Exists('..\packages\System.ValueTuple.4.6.1\build\net471\System.ValueTuple.targets')" />
|
||||
<Import Project="..\packages\Paddle.Runtime.win_x64.3.2.2\build\Paddle.Runtime.win_x64.targets" Condition="Exists('..\packages\Paddle.Runtime.win_x64.3.2.2\build\Paddle.Runtime.win_x64.targets')" />
|
||||
|
||||
@@ -1,40 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="BouncyCastle.Cryptography" version="2.7.0-beta.98" targetFramework="net472" />
|
||||
<package id="Enums.NET" version="5.0.0" targetFramework="net472" />
|
||||
<package id="EPPlus" version="8.4.0" targetFramework="net472" />
|
||||
<package id="EPPlus.Interfaces" version="8.4.0" targetFramework="net472" />
|
||||
<package id="EPPlus.System.Drawing" version="8.4.0" targetFramework="net472" />
|
||||
<package id="ExtendedNumerics.BigDecimal" version="3003.0.0.346" targetFramework="net472" />
|
||||
<package id="MathNet.Numerics.Signed" version="5.0.0" targetFramework="net472" />
|
||||
<package id="Microsoft.Bcl.Cryptography" version="10.0.1" targetFramework="net472" />
|
||||
<package id="Microsoft.IO.RecyclableMemoryStream" version="3.0.1" targetFramework="net472" />
|
||||
<package id="Newtonsoft.Json" version="13.0.4" targetFramework="net472" />
|
||||
<package id="NPOI" version="2.7.5" targetFramework="net472" />
|
||||
<package id="NSax" version="1.0.2" targetFramework="net472" />
|
||||
<package id="OpenCvSharp4" version="4.11.0.20250507" targetFramework="net472" />
|
||||
<package id="OpenCvSharp4.Extensions" version="4.11.0.20250507" targetFramework="net472" />
|
||||
<package id="OpenCvSharp4.runtime.win" version="4.11.0.20250507" targetFramework="net472" />
|
||||
<package id="Paddle.Runtime.win_x64" version="3.2.2" targetFramework="net472" />
|
||||
<package id="PaddleOCRSharp" version="6.0.0" targetFramework="net472" />
|
||||
<package id="Portable.BouncyCastle" version="1.9.0" targetFramework="net472" />
|
||||
<package id="SharpZipLib" version="1.4.2" targetFramework="net472" />
|
||||
<package id="SixLabors.Fonts" version="1.0.1" targetFramework="net472" />
|
||||
<package id="SixLabors.ImageSharp" version="3.1.12" targetFramework="net472" />
|
||||
<package id="System.Buffers" version="4.6.1" targetFramework="net472" />
|
||||
<package id="System.ComponentModel.Annotations" version="5.0.0" targetFramework="net472" />
|
||||
<package id="System.Drawing.Common" version="10.0.1" targetFramework="net472" />
|
||||
<package id="System.Formats.Asn1" version="10.0.1" targetFramework="net472" />
|
||||
<package id="System.IO.Compression" version="4.3.0" targetFramework="net472" />
|
||||
<package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="net472" />
|
||||
<package id="System.IO.UnmanagedMemoryStream" version="4.3.0" targetFramework="net472" />
|
||||
<package id="System.Memory" version="4.6.3" targetFramework="net472" />
|
||||
<package id="System.Numerics.Vectors" version="4.6.1" targetFramework="net472" />
|
||||
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net472" />
|
||||
<package id="System.Security.Cryptography.Xml" version="10.0.1" targetFramework="net472" />
|
||||
<package id="System.Text.Encoding.CodePages" version="10.0.1" targetFramework="net472" />
|
||||
<package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net472" />
|
||||
<package id="System.Threading.Tasks.Parallel" version="4.3.0" targetFramework="net472" />
|
||||
<package id="System.ValueTuple" version="4.6.1" targetFramework="net472" />
|
||||
<package id="ZString" version="2.6.0" targetFramework="net472" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user