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

add ignore

parent 272b38dc
/img/test
\ No newline at end of file
...@@ -9,7 +9,7 @@ namespace ETC_App1 ...@@ -9,7 +9,7 @@ namespace ETC_App1
{ {
internal static bool Authentication_1(string ID_in, string password_in) //使用者輸入的帳號密碼 internal static bool Authentication_1(string ID_in, string password_in) //使用者輸入的帳號密碼
{ {
MySqlConnection conn = new MySqlConnection("server=192.168.5.17;user=root;database=eye_test;port=3306;password=root;");//連線位置;使用者;資料庫;阜號;密碼; MySqlConnection conn = new MySqlConnection("server=192.168.6.59;user=root;database=eye;port=3306;password=Ecom84253675;");//連線位置;使用者;資料庫;阜號;密碼;
conn.Open(); //連線資料庫 conn.Open(); //連線資料庫
string sql_ID = String.Format("SELECT password FROM account WHERE username = \"{0}\"", ID_in);//輸入ID得到對應密碼 string sql_ID = String.Format("SELECT password FROM account WHERE username = \"{0}\"", ID_in);//輸入ID得到對應密碼
MySqlCommand cmd_ID = new MySqlCommand(sql_ID, conn); //下達SQL語法和資料庫連線 MySqlCommand cmd_ID = new MySqlCommand(sql_ID, conn); //下達SQL語法和資料庫連線
......
...@@ -101,8 +101,10 @@ namespace ETC_App1 ...@@ -101,8 +101,10 @@ namespace ETC_App1
string plate = data[i]["車牌號碼"].Replace("-", ""); string plate = data[i]["車牌號碼"].Replace("-", "");
Json json = File.Exists(filename) ? server.Process(filename) : new Json() { message2 = "影像遺失", lost1 = true, }; Json json = File.Exists(filename) ? server.Process(filename) : new Json() { message2 = "影像遺失", lost1 = true, };
if (Images.ContainsKey(key) && !Processed.ContainsKey(key)) if (Images.ContainsKey(key) && !Processed.ContainsKey(key))
{ {
Processed.Add(key, Images[key]); Processed.Add(key, Images[key]);
......
...@@ -19,8 +19,11 @@ namespace ETC_App1 ...@@ -19,8 +19,11 @@ namespace ETC_App1
{ {
public partial class ETCPictureCheckBox : UserControl public partial class ETCPictureCheckBox : UserControl
{ {
//private Image LostImage = new Bitmap("data" + Path.DirectorySeparatorChar + "lost.jpg");
private Image LostImage = new Bitmap("data" + Path.DirectorySeparatorChar + "lost.jpg"); private Image LostImage = new Bitmap("data" + Path.DirectorySeparatorChar + "lost.jpg");
private Image BrokeImage = new Bitmap("data" + Path.DirectorySeparatorChar + "broke.jpg"); private Image BrokeImage = new Bitmap("data" + Path.DirectorySeparatorChar + "broke.jpg");
public List<Json> Data = new List<Json>(); public List<Json> Data = new List<Json>();
......
...@@ -18,14 +18,20 @@ namespace ETC_App1 ...@@ -18,14 +18,20 @@ 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.Host = "192.168.6.59";
//server.Port = 80; //server.Port = 80;
server.Port = 8001; server.Port = 80;
server.Resource = "recognition"; server.Resource = "recognition";
Save();
}
else {
StreamReader f = new StreamReader("server.json");
server = JsonConvert.DeserializeObject<Server>(f.ReadToEnd());
f.Close();
} }
else { server = JsonConvert.DeserializeObject<Server>("server.json"); }
} }
public Json Process(string filename) public Json Process(string filename)
...@@ -58,7 +64,7 @@ namespace ETC_App1 ...@@ -58,7 +64,7 @@ namespace ETC_App1
{ {
StreamWriter stream = new StreamWriter("server.json"); StreamWriter stream = new StreamWriter("server.json");
stream.Write(JsonConvert.SerializeObject(server)); stream.Write(JsonConvert.SerializeObject(server,Formatting.Indented));
stream.Flush(); stream.Flush();
......
This diff is collapsed.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<publisherPolicy apply="yes" />
<probing privatePath="lib" />
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
{"ROI":{"X":1143,"Y":185,"Width":377,"Height":83}}
{
"Host": "192.168.6.59",
"Port": 80,
"Resource": "recognition"
}
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<publisherPolicy apply="yes" />
<probing privatePath="lib" />
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
b66c9576fb8ce4f62cb9bb554b89ffd693447181 8b1b907e8c3800c92d408435201aae3d729c7e1f
...@@ -238,3 +238,64 @@ C:\Users\admin\e-eye\ETC_App1\bin\Debug\tr\ZedGraph.resources.dll ...@@ -238,3 +238,64 @@ C:\Users\admin\e-eye\ETC_App1\bin\Debug\tr\ZedGraph.resources.dll
C:\Users\admin\e-eye\ETC_App1\bin\Debug\zh-cn\ZedGraph.resources.dll C:\Users\admin\e-eye\ETC_App1\bin\Debug\zh-cn\ZedGraph.resources.dll
C:\Users\admin\e-eye\ETC_App1\bin\Debug\zh-tw\ZedGraph.resources.dll C:\Users\admin\e-eye\ETC_App1\bin\Debug\zh-tw\ZedGraph.resources.dll
C:\Users\admin\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CopyComplete C:\Users\admin\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CopyComplete
D:\e-eye\ETC_App1\bin\Debug\x64\concrt140.dll
D:\e-eye\ETC_App1\bin\Debug\x64\cvextern.dll
D:\e-eye\ETC_App1\bin\Debug\x64\msvcp140.dll
D:\e-eye\ETC_App1\bin\Debug\x64\opencv_ffmpeg401_64.dll
D:\e-eye\ETC_App1\bin\Debug\x64\vcruntime140.dll
D:\e-eye\ETC_App1\bin\Debug\x86\concrt140.dll
D:\e-eye\ETC_App1\bin\Debug\x86\cvextern.dll
D:\e-eye\ETC_App1\bin\Debug\x86\msvcp140.dll
D:\e-eye\ETC_App1\bin\Debug\x86\opencv_ffmpeg401.dll
D:\e-eye\ETC_App1\bin\Debug\x86\vcruntime140.dll
D:\e-eye\ETC_App1\bin\Debug\ETC_App1.exe.config
D:\e-eye\ETC_App1\bin\Debug\ETC_App1.exe
D:\e-eye\ETC_App1\bin\Debug\ETC_App1.pdb
D:\e-eye\ETC_App1\bin\Debug\Aspose.BarCode.dll
D:\e-eye\ETC_App1\bin\Debug\Emgu.CV.UI.dll
D:\e-eye\ETC_App1\bin\Debug\Emgu.CV.World.dll
D:\e-eye\ETC_App1\bin\Debug\ICSharpCode.SharpZipLib.dll
D:\e-eye\ETC_App1\bin\Debug\MySql.Data.dll
D:\e-eye\ETC_App1\bin\Debug\Newtonsoft.Json.dll
D:\e-eye\ETC_App1\bin\Debug\NPOI.dll
D:\e-eye\ETC_App1\bin\Debug\NPOI.OOXML.dll
D:\e-eye\ETC_App1\bin\Debug\NPOI.OpenXml4Net.dll
D:\e-eye\ETC_App1\bin\Debug\NPOI.OpenXmlFormats.dll
D:\e-eye\ETC_App1\bin\Debug\RestSharp.dll
D:\e-eye\ETC_App1\bin\Debug\ZedGraph.dll
D:\e-eye\ETC_App1\bin\Debug\Aspose.BarCode.xml
D:\e-eye\ETC_App1\bin\Debug\Emgu.CV.UI.xml
D:\e-eye\ETC_App1\bin\Debug\Emgu.CV.World.xml
D:\e-eye\ETC_App1\bin\Debug\ICSharpCode.SharpZipLib.xml
D:\e-eye\ETC_App1\bin\Debug\MySql.Data.xml
D:\e-eye\ETC_App1\bin\Debug\Newtonsoft.Json.xml
D:\e-eye\ETC_App1\bin\Debug\RestSharp.xml
D:\e-eye\ETC_App1\bin\Debug\ZedGraph.xml
D:\e-eye\ETC_App1\bin\Debug\de\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\es\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\fr\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\hu\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\it\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\ja\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\pt\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\ru\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\sk\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\sv\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\tr\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\zh-cn\ZedGraph.resources.dll
D:\e-eye\ETC_App1\bin\Debug\zh-tw\ZedGraph.resources.dll
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.csprojAssemblyReference.cache
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCBackgroundWorker1.resources
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCBackgroundWorker2.resources
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCBackgroundWorker3.resources
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCPictureBox.resources
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCPictureCheckBox.resources
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCStatusStrip.resources
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.ETCToolStrip.resources
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.Form1.resources
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.Properties.Resources.resources
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.GenerateResource.cache
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CoreCompileInputs.cache
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.csproj.CopyComplete
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.exe
D:\e-eye\ETC_App1\obj\Debug\ETC_App1.pdb
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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