diff --git a/Software/object classification by sound with k-nn algorithm/.vs/SmartCane_Monitoring/v14/.suo b/Software/object classification by sound with k-nn algorithm/.vs/SmartCane_Monitoring/v14/.suo new file mode 100644 index 0000000..ccdda06 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/.vs/SmartCane_Monitoring/v14/.suo differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring.sln b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring.sln new file mode 100644 index 0000000..37022ba --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SmartCane_Monitoring", "SmartCane_Monitoring\SmartCane_Monitoring.csproj", "{7B3019F8-AA04-4263-B396-2EC263BE2BE2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7B3019F8-AA04-4263-B396-2EC263BE2BE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7B3019F8-AA04-4263-B396-2EC263BE2BE2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7B3019F8-AA04-4263-B396-2EC263BE2BE2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7B3019F8-AA04-4263-B396-2EC263BE2BE2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/App.config b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/App.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Form1.Designer.cs b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Form1.Designer.cs new file mode 100644 index 0000000..090de50 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Form1.Designer.cs @@ -0,0 +1,238 @@ +namespace SmartCane_Monitoring +{ + partial class Form1 + { + /// + /// 필수 디자이너 변수입니다. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 사용 중인 모든 리소스를 정리합니다. + /// + /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form 디자이너에서 생성한 코드 + + /// + /// 디자이너 지원에 필요한 메서드입니다. + /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); + System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); + System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.Series series4 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.Series series5 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.Series series6 = new System.Windows.Forms.DataVisualization.Charting.Series(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.label1 = new System.Windows.Forms.Label(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.serialPort_conboBox = new System.Windows.Forms.ComboBox(); + this.Serial_connect = new System.Windows.Forms.Button(); + this.Serial_Stop = new System.Windows.Forms.Button(); + this.Serial_Port_COM = new System.IO.Ports.SerialPort(this.components); + this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); + this.groupBox4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); + this.SuspendLayout(); + // + // groupBox4 + // + this.groupBox4.Controls.Add(this.label1); + this.groupBox4.Controls.Add(this.comboBox1); + this.groupBox4.Controls.Add(this.serialPort_conboBox); + this.groupBox4.Controls.Add(this.Serial_connect); + this.groupBox4.Controls.Add(this.Serial_Stop); + this.groupBox4.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.groupBox4.Location = new System.Drawing.Point(855, 13); + this.groupBox4.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.groupBox4.Size = new System.Drawing.Size(224, 203); + this.groupBox4.TabIndex = 29; + this.groupBox4.TabStop = false; + this.groupBox4.Text = "Serial Port"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(20, 127); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(73, 17); + this.label1.TabIndex = 38; + this.label1.Text = "K-Value"; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Items.AddRange(new object[] { + "1", + "3", + "5", + "7", + "9", + "11"}); + this.comboBox1.Location = new System.Drawing.Point(9, 148); + this.comboBox1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(91, 24); + this.comboBox1.TabIndex = 37; + this.comboBox1.Text = "3"; + // + // serialPort_conboBox + // + this.serialPort_conboBox.FormattingEnabled = true; + this.serialPort_conboBox.Location = new System.Drawing.Point(9, 25); + this.serialPort_conboBox.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.serialPort_conboBox.Name = "serialPort_conboBox"; + this.serialPort_conboBox.Size = new System.Drawing.Size(91, 24); + this.serialPort_conboBox.TabIndex = 24; + this.serialPort_conboBox.DropDown += new System.EventHandler(this.serialPort_conboBox_DropDown); + // + // Serial_connect + // + this.Serial_connect.Font = new System.Drawing.Font("굴림", 9F); + this.Serial_connect.Location = new System.Drawing.Point(9, 69); + this.Serial_connect.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.Serial_connect.Name = "Serial_connect"; + this.Serial_connect.Size = new System.Drawing.Size(89, 37); + this.Serial_connect.TabIndex = 5; + this.Serial_connect.Text = "Connect"; + this.Serial_connect.UseVisualStyleBackColor = true; + this.Serial_connect.Click += new System.EventHandler(this.Serial_connect_Click); + // + // Serial_Stop + // + this.Serial_Stop.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.Serial_Stop.Location = new System.Drawing.Point(112, 69); + this.Serial_Stop.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.Serial_Stop.Name = "Serial_Stop"; + this.Serial_Stop.Size = new System.Drawing.Size(89, 35); + this.Serial_Stop.TabIndex = 7; + this.Serial_Stop.Text = "Disconnect"; + this.Serial_Stop.UseVisualStyleBackColor = true; + this.Serial_Stop.Click += new System.EventHandler(this.Serial_Stop_Click); + // + // Serial_Port_COM + // + this.Serial_Port_COM.BaudRate = 115200; + this.Serial_Port_COM.PortName = "COM8"; + this.Serial_Port_COM.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.Serial_Port_COM_DataReceived); + // + // chart1 + // + chartArea1.Name = "ChartArea1"; + this.chart1.ChartAreas.Add(chartArea1); + legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top; + legend1.Name = "Legend1"; + this.chart1.Legends.Add(legend1); + this.chart1.Location = new System.Drawing.Point(0, 0); + this.chart1.Name = "chart1"; + series1.BorderWidth = 5; + series1.ChartArea = "ChartArea1"; + series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point; + series1.Legend = "Legend1"; + series1.MarkerBorderWidth = 5; + series1.MarkerSize = 10; + series1.Name = "Wood"; + series2.BorderWidth = 5; + series2.ChartArea = "ChartArea1"; + series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point; + series2.Legend = "Legend1"; + series2.MarkerBorderWidth = 5; + series2.MarkerSize = 10; + series2.Name = "Paper"; + series3.BorderWidth = 5; + series3.ChartArea = "ChartArea1"; + series3.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point; + series3.Legend = "Legend1"; + series3.MarkerBorderWidth = 5; + series3.MarkerSize = 10; + series3.Name = "Plastic"; + series4.ChartArea = "ChartArea1"; + series4.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point; + series4.Legend = "Legend1"; + series4.MarkerSize = 10; + series4.Name = "Metal"; + series5.ChartArea = "ChartArea1"; + series5.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point; + series5.Legend = "Legend1"; + series5.MarkerBorderColor = System.Drawing.Color.Red; + series5.MarkerBorderWidth = 2; + series5.MarkerColor = System.Drawing.Color.Yellow; + series5.MarkerSize = 20; + series5.Name = "New"; + series6.ChartArea = "ChartArea1"; + series6.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bubble; + series6.Legend = "Legend1"; + series6.MarkerBorderColor = System.Drawing.Color.Red; + series6.MarkerBorderWidth = 3; + series6.MarkerColor = System.Drawing.Color.Transparent; + series6.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; + series6.Name = "KNN"; + series6.YValuesPerPoint = 2; + this.chart1.Series.Add(series1); + this.chart1.Series.Add(series2); + this.chart1.Series.Add(series3); + this.chart1.Series.Add(series4); + this.chart1.Series.Add(series5); + this.chart1.Series.Add(series6); + this.chart1.Size = new System.Drawing.Size(849, 555); + this.chart1.TabIndex = 30; + this.chart1.Text = "chart1"; + // + // richTextBox1 + // + this.richTextBox1.Location = new System.Drawing.Point(855, 223); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(224, 332); + this.richTextBox1.TabIndex = 32; + this.richTextBox1.Text = ""; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1091, 565); + this.Controls.Add(this.richTextBox1); + this.Controls.Add(this.chart1); + this.Controls.Add(this.groupBox4); + this.Name = "Form1"; + this.Text = "Form1"; + this.groupBox4.ResumeLayout(false); + this.groupBox4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupBox4; + private System.Windows.Forms.ComboBox serialPort_conboBox; + private System.Windows.Forms.Button Serial_connect; + private System.Windows.Forms.Button Serial_Stop; + private System.IO.Ports.SerialPort Serial_Port_COM; + private System.Windows.Forms.DataVisualization.Charting.Chart chart1; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.ToolTip toolTip1; + } +} + diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Form1.cs b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Form1.cs new file mode 100644 index 0000000..e3be35f --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Form1.cs @@ -0,0 +1,320 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SmartCane_Monitoring +{ + public partial class Form1 : Form + { + public const int Datalength = 400; //4096 + public const int R = 50; + + string[] strWONSU0513 = new string[3]; + string[,] total_data = new string[Datalength, 5]; + string[] recevier_data = new string[2]; + + + + public Form1() + { + InitializeComponent(); + + chart1.ChartAreas[0].AxisX.Minimum = 0; + chart1.ChartAreas[0].AxisX.Maximum = 1000; + chart1.ChartAreas[0].AxisY.Minimum = 50; + chart1.ChartAreas[0].AxisY.Maximum = 100; + + + + string input_1_path = @"C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\wood.txt"; + string[] input_1_name = System.IO.File.ReadAllLines(input_1_path); + + for (int i = 0; i < input_1_name.Length; i++) + { + string[] split_data = input_1_name[i].Split(';'); + string[] second_split_data = split_data[0].Split(','); + + chart1.Series["Wood"].Points.AddXY(int.Parse(second_split_data[0]), float.Parse(second_split_data[1])); + + + total_data[i, 0] = second_split_data[0]; + total_data[i, 1] = second_split_data[1]; + total_data[i, 2] = "wood"; //types + total_data[i, 3] = ""; //distance + total_data[i, 4] = ""; //rank + + + } + + string input_2_path = @"C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\paper.txt"; + string[] input_2_name = System.IO.File.ReadAllLines(input_2_path); + + for (int i = 0; i < input_2_name.Length; i++) + { + string[] split_data = input_2_name[i].Split(';'); + string[] second_split_data = split_data[0].Split(','); + + chart1.Series["Paper"].Points.AddXY(int.Parse(second_split_data[0]), float.Parse(second_split_data[1])); + total_data[i + Datalength / 4, 0] = second_split_data[0]; + total_data[i + Datalength / 4, 1] = second_split_data[1]; + total_data[i + Datalength / 4, 2] = "paper"; //types + total_data[i + Datalength / 4, 3] = ""; //distance + total_data[i + Datalength / 4, 4] = ""; //rank + + } + + + string input_3_path = @"C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\plastic.txt"; + string[] input_3_name = System.IO.File.ReadAllLines(input_3_path); + + for (int i = 0; i < input_3_name.Length; i++) + { + string[] split_data = input_3_name[i].Split(';'); + string[] second_split_data = split_data[0].Split(','); + + chart1.Series["Plastic"].Points.AddXY(int.Parse(second_split_data[0]), float.Parse(second_split_data[1])); + total_data[i + Datalength / 2, 0] = second_split_data[0]; + total_data[i + Datalength / 2, 1] = second_split_data[1]; + total_data[i + Datalength / 2, 2] = "plastic"; //types + total_data[i + Datalength / 2, 3] = ""; //distance + total_data[i + Datalength / 2, 4] = ""; //rank + + } + + string input_4_path = @"C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\metal.txt"; + + string[] input_4_name = System.IO.File.ReadAllLines(input_4_path); + + for (int i = 0; i < input_4_name.Length; i++) + { + string[] split_data = input_4_name[i].Split(';'); + string[] second_split_data = split_data[0].Split(','); + + chart1.Series["Metal"].Points.AddXY(int.Parse(second_split_data[0]), float.Parse(second_split_data[1])); + total_data[i + Datalength / 4 * 3, 0] = second_split_data[0]; + total_data[i + Datalength / 4 * 3, 1] = second_split_data[1]; + total_data[i + Datalength / 4 * 3, 2] = "metal"; //types + total_data[i + Datalength / 4 * 3, 3] = ""; //distance + total_data[i + Datalength / 4 * 3, 4] = ""; //rank + + + } + + } + + private void Serial_Port_COM_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) + { + string strReceivedData = Serial_Port_COM.ReadLine(); + if (strReceivedData.Length == 0) + return; + else + { + strWONSU0513 = strReceivedData.Split(',',';'); + recevier_data[0] = strWONSU0513[0]; + recevier_data[1] = strWONSU0513[1]; + + this.Invoke(new EventHandler(KNN_Method)); + } + } + + + private void KNN_Method(object s, EventArgs e) + { + richTextBox1.Clear(); + + chart1.Series["New"].Points.Clear(); + chart1.Series["KNN"].Points.Clear(); + + //for TEST + + chart1.Series["New"].Points.AddXY(int.Parse(recevier_data[0]), float.Parse(recevier_data[1])); + Invoke(new Action(() => richTextBox1.AppendText(recevier_data[0] + "," + recevier_data[1] + "\n"))); + + Distance_KNN(); + SortRank_KNN(); + FindDataName_KNN(); + } + + + private void Distance_KNN() + { + double distance = 0; + double X, Y; + + for(int i=0;i< Datalength; i++) + { + if (total_data[i, 0] == null) + return; + + X = Math.Pow( double.Parse(recevier_data[0])- double.Parse(total_data[i, 0]), 2);//(x1-x2)^2 + Y =Math.Pow(double.Parse(recevier_data[1])-double.Parse(total_data[i, 1]), 2);//(y1-y2)^2 + distance = Math.Round(Math.Sqrt(X + Y),2); + total_data[i, 3] = System.Convert.ToString(distance); + } + } + + + private void SortRank_KNN() + { + string temp0,temp1,temp2, temp3, temp4 ; + + + for (int i = 0; i < Datalength; i++) + { + for (int j = i + 1; j < Datalength; j++) + { + if (double.Parse(total_data[i, 3]) > double.Parse(total_data[j, 3])) + { + temp0 = total_data[i, 0]; + temp1 = total_data[i, 1]; + temp2 = total_data[i, 2]; + temp3 = total_data[i, 3]; + temp4 = total_data[i, 4]; + + total_data[i, 0] = total_data[j, 0]; + total_data[i, 1] = total_data[j, 1]; + total_data[i, 2] = total_data[j, 2]; + total_data[i, 3] = total_data[j, 3]; + total_data[i, 4] = total_data[j, 4]; + + total_data[j, 0] = temp0; + total_data[j, 1] = temp1; + total_data[j, 2] = temp2; + total_data[j, 3] = temp3; + total_data[j, 4] =temp4; + + } + } + } + + } + + private void FindDataName_KNN() + { + double K_value = double.Parse(comboBox1.Text); + double wood_Num = 0; + double paper_Num = 0; + double plastic_Num = 0; + double metal_Num = 0; + + for (int i = 0; i < K_value; i++) + { + if (total_data[i, 2] == "wood") + wood_Num++; + else if (total_data[i, 2] == "paper") + paper_Num++; + else if (total_data[i, 2] == "plastic") + plastic_Num++; + else if (total_data[i, 2] == "metal") + metal_Num++; + } + + + double[] Count_num = { wood_Num, paper_Num, plastic_Num, metal_Num }; + + richTextBox1.AppendText("Wood=" + wood_Num); + richTextBox1.AppendText(System.Environment.NewLine); + richTextBox1.AppendText("Paper=" + paper_Num); + richTextBox1.AppendText(System.Environment.NewLine); + richTextBox1.AppendText("Plastic=" + plastic_Num); + richTextBox1.AppendText(System.Environment.NewLine); + richTextBox1.AppendText("Metal=" + metal_Num); + richTextBox1.AppendText(System.Environment.NewLine); + + + + for (int i = 0; i < K_value; i++) + { + chart1.Series["KNN"].Points.AddXY(int.Parse(total_data[i, 0]), float.Parse(total_data[i, 1])); + richTextBox1.AppendText("("+1+")" + total_data[i, 0] + "/" + total_data[i, 1] + "/" + total_data[i, 3]); + richTextBox1.AppendText(System.Environment.NewLine); + + } + + double maxValue = Count_num.Max(); + double maxIndex = Count_num.ToList().IndexOf(maxValue); + + if (maxIndex == 0) + { + richTextBox1.AppendText("Wood"); + richTextBox1.AppendText(System.Environment.NewLine); + } + + else if (maxIndex == 1) + { + richTextBox1.AppendText("Paper"); + richTextBox1.AppendText(System.Environment.NewLine); + + } + + else if (maxIndex == 2) + { + richTextBox1.AppendText("Plastic"); + richTextBox1.AppendText(System.Environment.NewLine); + + } + + else if (maxIndex == 3) + { + richTextBox1.AppendText("Metal"); + richTextBox1.AppendText(System.Environment.NewLine); + } + + + } + + private void Serial_connect_Click(object sender, EventArgs e) + { + + try + { + Serial_Port_COM.PortName = serialPort_conboBox.Text; + Serial_Port_COM.Open(); //시리얼 열기 + + if (Serial_Port_COM.IsOpen) + { + Invoke(new Action(() => richTextBox1.Clear())); + Invoke(new Action(() => MessageBox.Show("Connect to Serial port" + serialPort_conboBox.Text + "\n"))); + } + + } + catch (Exception ex) + { + MessageBox.Show("Select the number of serial"); + return; + } + } + + + private void Serial_Stop_Click(object sender, EventArgs e) + { + try + { + Serial_Port_COM.Close(); + richTextBox1.AppendText("Disconnect" + '\n'); + } + catch + { + + } + } + + private void serialPort_conboBox_DropDown(object sender, EventArgs e) + { + serialPort_conboBox.Text = ""; + serialPort_conboBox.Items.Clear(); + string[] s; + s = System.IO.Ports.SerialPort.GetPortNames(); + for (int i = 0; i < s.Length; i++) + { + serialPort_conboBox.Items.Add(s[i]); + } + } + } +} diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Form1.resx b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Form1.resx new file mode 100644 index 0000000..7660861 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Form1.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 9, 18 + + + 181, 18 + + \ No newline at end of file diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Program.cs b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Program.cs new file mode 100644 index 0000000..049412f --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SmartCane_Monitoring +{ + static class Program + { + /// + /// 해당 응용 프로그램의 주 진입점입니다. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/AssemblyInfo.cs b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5d5e78c --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 +// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 +// 이러한 특성 값을 변경하세요. +[assembly: AssemblyTitle("SmartCane_Monitoring")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SmartCane_Monitoring")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 +// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 +// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. +[assembly: ComVisible(false)] + +// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. +[assembly: Guid("7b3019f8-aa04-4263-b396-2ec263be2be2")] + +// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. +// +// 주 버전 +// 부 버전 +// 빌드 번호 +// 수정 버전 +// +// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 +// 지정되도록 할 수 있습니다. +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Resources.Designer.cs b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Resources.Designer.cs new file mode 100644 index 0000000..8339698 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 도구를 사용하여 생성되었습니다. +// 런타임 버전:4.0.30319.42000 +// +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 +// 이러한 변경 내용이 손실됩니다. +// +//------------------------------------------------------------------------------ + +namespace SmartCane_Monitoring.Properties +{ + + + /// + /// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. + /// + // 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder + // 클래스에서 자동으로 생성되었습니다. + // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 + // ResGen을 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SmartCane_Monitoring.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 + /// 현재 스레드의 CurrentUICulture 속성을 재정의합니다. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Resources.resx b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Settings.Designer.cs b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Settings.Designer.cs new file mode 100644 index 0000000..c83a6f7 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace SmartCane_Monitoring.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Settings.settings b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/SmartCane_Monitoring.csproj b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/SmartCane_Monitoring.csproj new file mode 100644 index 0000000..41d9005 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/SmartCane_Monitoring.csproj @@ -0,0 +1,91 @@ + + + + + Debug + AnyCPU + {7B3019F8-AA04-4263-B396-2EC263BE2BE2} + WinExe + Properties + SmartCane_Monitoring + SmartCane_Monitoring + v4.5.2 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + \ No newline at end of file diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.exe b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.exe new file mode 100644 index 0000000..66ea890 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.exe differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.exe.config b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.exe.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.pdb b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.pdb new file mode 100644 index 0000000..21c3fc1 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.pdb differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.vshost.exe b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.vshost.exe new file mode 100644 index 0000000..681ab77 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.vshost.exe differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.vshost.exe.config b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.vshost.exe.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.vshost.exe.manifest b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/bin/Debug/SmartCane_Monitoring.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/metal.txt b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/metal.txt new file mode 100644 index 0000000..d0b09c3 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/metal.txt @@ -0,0 +1,100 @@ +539,86.5; +539,87.2; +539,86.8; +554,86.7; +554,86.4; +558,75.8; +554,93.0; +554,93.3; +554,85.3; +554,91.1; +439,93.7; +546,99.1; +428,97.5; +553,96.1; +529,95.4; +531,100.5; +531,96.9; +533,100.6; +532,93.8; +537,95.6; +448,93.0; +529,93.6; +529,94.3; +530,99.0; +532,99.4; +532,94.3; +413,91.2; +580,87.3; +422,94.5; +489,95.7; +385,93.4; +386,94.5; +385,96.2; +386,92.7; +416,95.1; +516,92.8; +433,94.7; +422,92.2; +386,92.7; +458,93.7; +487,95.4; +498,96.8; +532,99.5; +531,97.4; +557,89.7; +426,88.9; +459,94.4; +492,95.1; +525,93.8; +530,96.9; +541,91.6; +383,91.8; +532,96.1; +555,94.2; +531,94.0; +556,94.9; +494,96.0; +532,94.2; +459,96.6; +531,97.9; +547,94.3; +406,92.1; +486,91.5; +397,92.1; +499,91.8; +400,94.9; +495,94.0; +521,98.8; +452,91.8; +490,89.8; +472,92.2; +522,90.4; +340,93.3; +292,96.9; +428,84.7; +391,93.6; +393,92.6; +415,90.9; +460,90.1; +533,91.8; +387,90.0; +474,95.2; +534,93.2; +392,91.0; +489,92.2; +533,93.3; +565,92.5; +484,91.7; +498,91.5; +426,96.7; +423,92.2; +405,94.3; +423,97.7; +388,87.0; +532,93.4; +452,91.7; +394,92.8; +499,93.5; +532,91.0; +495,96.5; \ No newline at end of file diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..529cfd8 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..2da341b Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.Form1.resources b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.Form1.resources differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.Properties.Resources.resources b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.Properties.Resources.resources differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.csproj.FileListAbsolute.txt b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..1d1ab7b --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.csproj.FileListAbsolute.txt @@ -0,0 +1,9 @@ +C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\bin\Debug\SmartCane_Monitoring.exe.config +C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\bin\Debug\SmartCane_Monitoring.exe +C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\bin\Debug\SmartCane_Monitoring.pdb +C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\obj\Debug\SmartCane_Monitoring.csprojResolveAssemblyReference.cache +C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\obj\Debug\SmartCane_Monitoring.Properties.Resources.resources +C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\obj\Debug\SmartCane_Monitoring.csproj.GenerateResource.Cache +C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\obj\Debug\SmartCane_Monitoring.exe +C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\obj\Debug\SmartCane_Monitoring.pdb +C:\Users\wonsu\Documents\GitHub\MonitoringSensorData\soundMonitoring\SmartCane_Monitoring\SmartCane_Monitoring\obj\Debug\SmartCane_Monitoring.Form1.resources diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.csproj.GenerateResource.Cache b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.csproj.GenerateResource.Cache new file mode 100644 index 0000000..dcaf203 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.csproj.GenerateResource.Cache differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.csprojResolveAssemblyReference.cache b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..7597350 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.csprojResolveAssemblyReference.cache differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.exe b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.exe new file mode 100644 index 0000000..66ea890 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.exe differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.pdb b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.pdb new file mode 100644 index 0000000..21c3fc1 Binary files /dev/null and b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/SmartCane_Monitoring.pdb differ diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29 diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/paper.txt b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/paper.txt new file mode 100644 index 0000000..cde3e08 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/paper.txt @@ -0,0 +1,100 @@ +398,84.7; +398,84.5; +402,86.1; +398,85.9; +367,86.4; +359,86.8; +363,87.1; +390,85.6; +406,84.6; +324,80.3; +362,83.2; +395,86.2; +402,88.6; +401,89.1; +404,88.7; +392,87.0; +402,87.6; +395,87.9; +398,88.5; +392,88.1; +386,87.2; +391,86.9; +391,86.6; +372,84.4; +380,86.6; +354,80.0; +395,85.7; +367,87.0; +372,86.4; +368,85.2; +360,84.9; +348,81.4; +400,84.3; +389,86.1; +360,86.8; +391,86.8; +381,87.4; +374,86.4; +368,85.8; +386,87.3; +399,83.9; +400,87.2; +389,87.9; +393,87.8; +394,89.0; +406,86.9; +383,86.8; +394,87.2; +395,85.6; +399,86.3; +390,83.9; +398,84.5; +374,84.4; +390,87.5; +384,88.0; +366,85.8; +383,85.1; +399,87.4; +379,86.7; +375,86.8; +397,86.5; +400,87.1; +389,85.6; +398,86.6; +394,85.5; +368,86.6; +342,84.7; +337,82.8; +299,83.7; +353,84.1; +361,86.4; +343,88.5; +343,89.9; +367,88.9; +369,91.8; +364,89.3; +308,85.5; +400,85.8; +414,89.6; +378,85.4; +400,87.7; +375,84.7; +396,86.6; +392,87.5; +393,88.0; +397,87.6; +406,84.8; +385,88.6; +382,85.6; +400,87.7; +389,88.8; +388,84.7; +402,84.9; +402,87.4; +391,85.7; +400,87.5; +366,88.0; +369,89.6; +368,88.7; +369,88.8; \ No newline at end of file diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/plastic.txt b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/plastic.txt new file mode 100644 index 0000000..2da1413 --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/plastic.txt @@ -0,0 +1,100 @@ +160,90.0; +164,89.9; +167,89.8; +164,88.6; +164,89.4; +164,89.6; +164,91.2; +167,91.1; +164,89.3; +164,89.3; +127,87.2; +174,89.0; +177,86.2; +171,89.9; +174,88.6; +168,85.2; +174,86.8; +164,88.7; +170,86.3; +167,88.7; +177,88.3; +159,87.4; +168,87.8; +175,87.7; +171,89.7; +163,88.6; +166,88.5; +167,88.6; +173,87.0; +173,87.1; +167,88.6; +168,86.3; +168,86.5; +174,85.7; +169,86.8; +170,88.1; +171,90.5; +167,88.7; +181,88.7; +179,86.5; +154,84.4; +147,86.1; +139,85.4; +148,85.8; +134,86.5; +134,85.6; +148,87.3; +155,86.1; +142,81.5; +174,89.2; +176,90.1; +175,89.8; +183,90.4; +178,89.8; +174,87.3; +176,91.1; +173,90.2; +173,91.0; +164,90.0; +180,91.8; +161,90.0; +168,88.8; +162,88.1; +165,89.0; +175,89.0; +173,90.0; +167,90.7; +168,89.1; +161,87.5; +159,88.2; +169,88.8; +166,87.6; +166,89.3; +168,89.4; +175,89.6; +162,89.8; +171,88.2; +173,90.6; +175,91.0; +170,90.2; +175,90.8; +176,90.9; +182,91.0; +169,90.6; +176,90.1; +177,89.3; +178,92.4; +174,92.2; +170,92.6; +148,88.9; +109,86.5; +108,86.4; +165,82.3; +179,86.8; +176,93.7; +177,89.0; +169,91.4; +168,92.6; +169,92.1; +168,92.2; \ No newline at end of file diff --git a/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/wood.txt b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/wood.txt new file mode 100644 index 0000000..712fa3b --- /dev/null +++ b/Software/object classification by sound with k-nn algorithm/SmartCane_Monitoring/wood.txt @@ -0,0 +1,100 @@ +174,97.1; +162,80.4; +147,80.5; +142,80.9; +170,80.0; +152,79.3; +137,79.5; +144,79.6; +127,80.7; +148,80.9; +142,83.0; +149,82.2; +161,80.5; +143,80.2; +166,83.2; +147,82.9; +143,82.5; +147,81.2; +179,81.2; +163,80.0; +168,80.9; +180,80.5; +188,80.3; +181,79.9; +162,81.5; +176,80.8; +186,81.0; +115,82.1; +165,80.6; +188,81.0; +158,82.2; +173,81.2; +190,79.6; +183,80.5; +192,80.4; +163,80.7; +181,80.2; +178,80.8; +180,80.3; +171,81.0; +179,79.5; +177,79.2; +167,79.5; +177,80.6; +182,81.1; +169,79.8; +179,80.9; +164,80.5; +151,80.5; +155,78.2; +162,79.2; +163,81.1; +174,80.5; +176,79.5; +185,79.6; +168,79.9; +152,77.9; +195,76.8; +131,77.4; +139,77.0; +151,78.8; +164,77.6; +108,81.4; +109,83.2; +123,81.9; +126,79.0; +108,78.7; +152,79.0; +111,81.7; +151,77.1; +113,80.1; +107,81.6; +115,81.3; +114,78.9; +133,80.2; +159,78.4; +187,78.9; +160,78.6; +299,80.6; +128,80.6; +116,82.4; +123,78.1; +157,78.3; +111,83.1; +142,82.4; +116,82.2; +136,81.2; +165,81.6; +122,79.6; +134,78.6; +116,78.1; +130,83.2; +133,80.3; +167,79.4; +156,80.0; +112,81.1; +151,80.9; +178,80.0; +150,79.9; +165,81.7; \ No newline at end of file