Commit b0ce97a0 authored by YONG-LIN SU's avatar YONG-LIN SU

call API 辨識比對結果 v0.1

parent de21c7d3
{
"CurrentProjectSetting": null
}
\ No newline at end of file
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\NHPBSolution1.sln",
"PreviewInSolutionExplorer": false
}
\ No newline at end of file
File added
...@@ -141,6 +141,7 @@ namespace ETC_App1 ...@@ -141,6 +141,7 @@ namespace ETC_App1
{ {
if (result == plate || plate.Contains(result)) if (result == plate || plate.Contains(result))
{ {
// 辨識成功,比對正確
json.message1 = data[i]["車牌號碼"]; json.message1 = data[i]["車牌號碼"];
json.success = true; json.success = true;
...@@ -153,11 +154,12 @@ namespace ETC_App1 ...@@ -153,11 +154,12 @@ namespace ETC_App1
} }
else else
{ {
// 辨識成功,比對錯誤
json.message1 = data[i]["車牌號碼"]; json.message1 = data[i]["車牌號碼"];
json.success = true; json.success = true;
json.failed = false; json.failed = true;
json.tickoff = false; json.tickoff = false;
......
...@@ -212,6 +212,14 @@ namespace ETC_App1 ...@@ -212,6 +212,14 @@ namespace ETC_App1
button1.Text = json.lost2 ? "缺少比對資料!" : button1.Text; button1.Text = json.lost2 ? "缺少比對資料!" : button1.Text;
button1.ForeColor = json.lost2 ? ErrorColor : button1.ForeColor; button1.ForeColor = json.lost2 ? ErrorColor : button1.ForeColor;
button1.Text = json.success && json.failed ? "正確" : button1.Text;
button1.ForeColor = json.success ? Color.Green : button1.ForeColor;
button2.Text = json.success && json.failed ? "錯誤" : "下一筆";
button2.ForeColor = json.success ? Color.Red : Color.Black;
} }
listBox2.SelectedIndex = listBox1.SelectedIndex; listBox2.SelectedIndex = listBox1.SelectedIndex;
......
...@@ -17,9 +17,11 @@ namespace ETC_App1 ...@@ -17,9 +17,11 @@ namespace ETC_App1
{ {
if (!File.Exists("server.json")) if (!File.Exists("server.json"))
{ {
server.Host = "192.168.6.58"; //server.Host = "192.168.6.58";
server.Host = "192.168.5.103";
server.Port = 80; //server.Port = 80;
server.Port = 8001;
server.Resource = "recognition"; server.Resource = "recognition";
} }
...@@ -34,7 +36,7 @@ namespace ETC_App1 ...@@ -34,7 +36,7 @@ namespace ETC_App1
//request.Timeout = 60; //request.Timeout = 60;
request.AddFile("image", filename); request.AddFile("file", filename);
RestResponse response = client.Execute(request) as RestResponse; RestResponse response = client.Execute(request) as RestResponse;
......
cc70368284f9ad7e7ac9f837bd7ff0ac1b027d13 20af047b28ab6c4cf1b6e3c0dd90f71e4169e178
...@@ -57,3 +57,62 @@ C:\Users\SHUO-CHEN\source\repos\NHPBSolution1\ETC_App1\bin\Debug\sv\ZedGraph.res ...@@ -57,3 +57,62 @@ C:\Users\SHUO-CHEN\source\repos\NHPBSolution1\ETC_App1\bin\Debug\sv\ZedGraph.res
C:\Users\SHUO-CHEN\source\repos\NHPBSolution1\ETC_App1\bin\Debug\tr\ZedGraph.resources.dll C:\Users\SHUO-CHEN\source\repos\NHPBSolution1\ETC_App1\bin\Debug\tr\ZedGraph.resources.dll
C:\Users\SHUO-CHEN\source\repos\NHPBSolution1\ETC_App1\bin\Debug\zh-cn\ZedGraph.resources.dll C:\Users\SHUO-CHEN\source\repos\NHPBSolution1\ETC_App1\bin\Debug\zh-cn\ZedGraph.resources.dll
C:\Users\SHUO-CHEN\source\repos\NHPBSolution1\ETC_App1\bin\Debug\zh-tw\ZedGraph.resources.dll C:\Users\SHUO-CHEN\source\repos\NHPBSolution1\ETC_App1\bin\Debug\zh-tw\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\x64\concrt140.dll
D:\C#\e-eye\ETC_App1\bin\Debug\x64\cvextern.dll
D:\C#\e-eye\ETC_App1\bin\Debug\x64\msvcp140.dll
D:\C#\e-eye\ETC_App1\bin\Debug\x64\opencv_ffmpeg401_64.dll
D:\C#\e-eye\ETC_App1\bin\Debug\x64\vcruntime140.dll
D:\C#\e-eye\ETC_App1\bin\Debug\x86\concrt140.dll
D:\C#\e-eye\ETC_App1\bin\Debug\x86\cvextern.dll
D:\C#\e-eye\ETC_App1\bin\Debug\x86\msvcp140.dll
D:\C#\e-eye\ETC_App1\bin\Debug\x86\opencv_ffmpeg401.dll
D:\C#\e-eye\ETC_App1\bin\Debug\x86\vcruntime140.dll
D:\C#\e-eye\ETC_App1\bin\Debug\ETC_App1.exe.config
D:\C#\e-eye\ETC_App1\bin\Debug\ETC_App1.exe
D:\C#\e-eye\ETC_App1\bin\Debug\ETC_App1.pdb
D:\C#\e-eye\ETC_App1\bin\Debug\Aspose.BarCode.dll
D:\C#\e-eye\ETC_App1\bin\Debug\Emgu.CV.UI.dll
D:\C#\e-eye\ETC_App1\bin\Debug\Emgu.CV.World.dll
D:\C#\e-eye\ETC_App1\bin\Debug\ICSharpCode.SharpZipLib.dll
D:\C#\e-eye\ETC_App1\bin\Debug\Newtonsoft.Json.dll
D:\C#\e-eye\ETC_App1\bin\Debug\NPOI.dll
D:\C#\e-eye\ETC_App1\bin\Debug\NPOI.OOXML.dll
D:\C#\e-eye\ETC_App1\bin\Debug\NPOI.OpenXml4Net.dll
D:\C#\e-eye\ETC_App1\bin\Debug\NPOI.OpenXmlFormats.dll
D:\C#\e-eye\ETC_App1\bin\Debug\RestSharp.dll
D:\C#\e-eye\ETC_App1\bin\Debug\ZedGraph.dll
D:\C#\e-eye\ETC_App1\bin\Debug\Aspose.BarCode.xml
D:\C#\e-eye\ETC_App1\bin\Debug\Emgu.CV.UI.xml
D:\C#\e-eye\ETC_App1\bin\Debug\Emgu.CV.World.xml
D:\C#\e-eye\ETC_App1\bin\Debug\ICSharpCode.SharpZipLib.xml
D:\C#\e-eye\ETC_App1\bin\Debug\Newtonsoft.Json.xml
D:\C#\e-eye\ETC_App1\bin\Debug\RestSharp.xml
D:\C#\e-eye\ETC_App1\bin\Debug\ZedGraph.xml
D:\C#\e-eye\ETC_App1\bin\Debug\de\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\es\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\fr\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\hu\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\it\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\ja\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\pt\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\ru\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\sk\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\sv\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\tr\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\zh-cn\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\bin\Debug\zh-tw\ZedGraph.resources.dll
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.csprojAssemblyReference.cache
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCBackgroundWorker1.resources
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCBackgroundWorker2.resources
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCBackgroundWorker3.resources
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCPictureBox.resources
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCPictureCheckBox.resources
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCStatusStrip.resources
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCToolStrip.resources
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.Form1.resources
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.Properties.Resources.resources
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.GenerateResource.cache
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CoreCompileInputs.cache
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CopyComplete
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.exe
D:\C#\e-eye\ETC_App1\obj\Debug\ETC_App1.pdb
1203d141cde98d64945785ddc4e5c9b022236dda b08e3868ed1213effb645a1dcef78633f660be4b
bcbfca6c522520e7604882990012b5db6bf39214 20af047b28ab6c4cf1b6e3c0dd90f71e4169e178
217508568aff3bd7bdefc962f8a7d71120078a49 68b17283f877db405cc276ee20cdb836bc8420b7
e8522f57fe4dbd0c2303e3318ffd1dc1ab3c77ff e50d0a9450d92cfc5544254c056288dd2689216b
0c62065e075bb83a4a89dc22ef5d99aa3e89e76a 26237647b74ccd9c962a1be50bd84e9a9d74becf
82070efb0697e6e34449e257961dca8f43c7c80e f42123a1de85bf1ac59f39a2e5659b3052a67797
96977e901f77dff536ebcf202b9b1a482a81f5e1 aa4c1c0c43c2733a95130f18a90549e96879dddb
eff81e2791a6992366e570ca0d38f4bf279ac839 4877b989beaca9ef14fdd1ecce79a5cf50d2d8e5
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment