Commit aa572d03 authored by tr's avatar tr

1、图片搜索:基础Hash算法

parent 5b78eadc
...@@ -44,6 +44,10 @@ namespace Tools.MyUtils ...@@ -44,6 +44,10 @@ namespace Tools.MyUtils
/// 临时文件目录 /// 临时文件目录
/// </summary> /// </summary>
public static string TempPath => $@"{Application.StartupPath}\temp"; public static string TempPath => $@"{Application.StartupPath}\temp";
/// <summary>
/// 测试文件目录
/// </summary>
public static string TestPath => $@"{Application.StartupPath}\test";
#endregion #endregion
#region 常用日期 #region 常用日期
......
...@@ -86,6 +86,12 @@ ...@@ -86,6 +86,12 @@
<Compile Include="MyData\DBHelper.cs" /> <Compile Include="MyData\DBHelper.cs" />
<Compile Include="MyData\SqlHelper.cs" /> <Compile Include="MyData\SqlHelper.cs" />
<Compile Include="MyUtils\DrawHelper.cs" /> <Compile Include="MyUtils\DrawHelper.cs" />
<Compile Include="UI\wImageSearch.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\wImageSearch.Designer.cs">
<DependentUpon>wImageSearch.cs</DependentUpon>
</Compile>
<Compile Include="UI\wAuditDemo.cs"> <Compile Include="UI\wAuditDemo.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -210,6 +216,9 @@ ...@@ -210,6 +216,9 @@
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
</Compile> </Compile>
<EmbeddedResource Include="UI\wImageSearch.resx">
<DependentUpon>wImageSearch.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\wAppModel.resx"> <EmbeddedResource Include="UI\wAppModel.resx">
<DependentUpon>wAppModel.cs</DependentUpon> <DependentUpon>wAppModel.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
namespace Tools.UI
{
partial class wImageSearch
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.pictureBox1_b = new System.Windows.Forms.PictureBox();
this.pictureBox2_b = new System.Windows.Forms.PictureBox();
this.pictureBox3_b = new System.Windows.Forms.PictureBox();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.pictureBox4_b = new System.Windows.Forms.PictureBox();
this.label4 = new System.Windows.Forms.Label();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.label5 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.label6 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.pictureBox1_s = new System.Windows.Forms.PictureBox();
this.label16 = new System.Windows.Forms.Label();
this.pictureBox2_s = new System.Windows.Forms.PictureBox();
this.pictureBox3_s = new System.Windows.Forms.PictureBox();
this.pictureBox4_s = new System.Windows.Forms.PictureBox();
this.label1_d = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.label2_d = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.label3_d = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.label4_d = new System.Windows.Forms.Label();
this.label24 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.dataGridView2 = new System.Windows.Forms.DataGridView();
this.label19 = new System.Windows.Forms.Label();
this.dataGridView3 = new System.Windows.Forms.DataGridView();
this.label21 = new System.Windows.Forms.Label();
this.label1_p = new System.Windows.Forms.Label();
this.label23 = new System.Windows.Forms.Label();
this.label2_p = new System.Windows.Forms.Label();
this.label25 = new System.Windows.Forms.Label();
this.label3_p = new System.Windows.Forms.Label();
this.label27 = new System.Windows.Forms.Label();
this.label4_p = new System.Windows.Forms.Label();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1_b)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2_b)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3_b)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4_b)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1_s)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2_s)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3_s)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4_s)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView3)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Location = new System.Drawing.Point(96, 29);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(128, 128);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// pictureBox2
//
this.pictureBox2.Location = new System.Drawing.Point(96, 232);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(128, 128);
this.pictureBox2.TabIndex = 1;
this.pictureBox2.TabStop = false;
//
// pictureBox3
//
this.pictureBox3.Location = new System.Drawing.Point(96, 441);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(128, 128);
this.pictureBox3.TabIndex = 2;
this.pictureBox3.TabStop = false;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(94, 163);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 3;
this.label1.Text = "label1";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(94, 365);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 4;
this.label2.Text = "label2";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(94, 574);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 12);
this.label3.TabIndex = 5;
this.label3.Text = "label3";
//
// pictureBox1_b
//
this.pictureBox1_b.Location = new System.Drawing.Point(256, 29);
this.pictureBox1_b.Name = "pictureBox1_b";
this.pictureBox1_b.Size = new System.Drawing.Size(128, 128);
this.pictureBox1_b.TabIndex = 7;
this.pictureBox1_b.TabStop = false;
//
// pictureBox2_b
//
this.pictureBox2_b.Location = new System.Drawing.Point(256, 232);
this.pictureBox2_b.Name = "pictureBox2_b";
this.pictureBox2_b.Size = new System.Drawing.Size(128, 128);
this.pictureBox2_b.TabIndex = 8;
this.pictureBox2_b.TabStop = false;
//
// pictureBox3_b
//
this.pictureBox3_b.Location = new System.Drawing.Point(256, 441);
this.pictureBox3_b.Name = "pictureBox3_b";
this.pictureBox3_b.Size = new System.Drawing.Size(128, 128);
this.pictureBox3_b.TabIndex = 9;
this.pictureBox3_b.TabStop = false;
//
// label7
//
this.label7.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(26, 79);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(62, 23);
this.label7.TabIndex = 10;
this.label7.Text = "图1:";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label8
//
this.label8.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.Location = new System.Drawing.Point(26, 282);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(62, 23);
this.label8.TabIndex = 11;
this.label8.Text = "图2:";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label9
//
this.label9.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(26, 491);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(62, 23);
this.label9.TabIndex = 12;
this.label9.Text = "图3:";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label10
//
this.label10.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.Location = new System.Drawing.Point(26, 707);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(62, 23);
this.label10.TabIndex = 17;
this.label10.Text = "图4:";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// pictureBox4_b
//
this.pictureBox4_b.Location = new System.Drawing.Point(256, 657);
this.pictureBox4_b.Name = "pictureBox4_b";
this.pictureBox4_b.Size = new System.Drawing.Size(128, 128);
this.pictureBox4_b.TabIndex = 16;
this.pictureBox4_b.TabStop = false;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(94, 790);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(41, 12);
this.label4.TabIndex = 15;
this.label4.Text = "label4";
//
// pictureBox4
//
this.pictureBox4.Location = new System.Drawing.Point(96, 657);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(128, 128);
this.pictureBox4.TabIndex = 13;
this.pictureBox4.TabStop = false;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(791, 16);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(95, 12);
this.label5.TabIndex = 19;
this.label5.Text = "aHash测试结果:";
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Window;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column2,
this.Column3});
this.dataGridView1.Location = new System.Drawing.Point(793, 30);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(404, 187);
this.dataGridView1.TabIndex = 20;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(53, 163);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(35, 12);
this.label6.TabIndex = 21;
this.label6.Text = "aHash";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(53, 365);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(35, 12);
this.label11.TabIndex = 22;
this.label11.Text = "aHash";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(53, 574);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(35, 12);
this.label12.TabIndex = 23;
this.label12.Text = "aHash";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(53, 790);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(35, 12);
this.label13.TabIndex = 24;
this.label13.Text = "aHash";
//
// label14
//
this.label14.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.Location = new System.Drawing.Point(126, 4);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(62, 23);
this.label14.TabIndex = 25;
this.label14.Text = "原图";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label15
//
this.label15.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label15.Location = new System.Drawing.Point(277, 5);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(85, 23);
this.label15.TabIndex = 26;
this.label15.Text = "采样8*8";
this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// pictureBox1_s
//
this.pictureBox1_s.Location = new System.Drawing.Point(414, 30);
this.pictureBox1_s.Name = "pictureBox1_s";
this.pictureBox1_s.Size = new System.Drawing.Size(128, 128);
this.pictureBox1_s.TabIndex = 27;
this.pictureBox1_s.TabStop = false;
//
// label16
//
this.label16.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label16.Location = new System.Drawing.Point(429, 4);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(91, 23);
this.label16.TabIndex = 28;
this.label16.Text = "灰度降噪";
this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// pictureBox2_s
//
this.pictureBox2_s.Location = new System.Drawing.Point(414, 232);
this.pictureBox2_s.Name = "pictureBox2_s";
this.pictureBox2_s.Size = new System.Drawing.Size(128, 128);
this.pictureBox2_s.TabIndex = 29;
this.pictureBox2_s.TabStop = false;
//
// pictureBox3_s
//
this.pictureBox3_s.Location = new System.Drawing.Point(414, 441);
this.pictureBox3_s.Name = "pictureBox3_s";
this.pictureBox3_s.Size = new System.Drawing.Size(128, 128);
this.pictureBox3_s.TabIndex = 30;
this.pictureBox3_s.TabStop = false;
//
// pictureBox4_s
//
this.pictureBox4_s.Location = new System.Drawing.Point(414, 657);
this.pictureBox4_s.Name = "pictureBox4_s";
this.pictureBox4_s.Size = new System.Drawing.Size(128, 128);
this.pictureBox4_s.TabIndex = 31;
this.pictureBox4_s.TabStop = false;
//
// label1_d
//
this.label1_d.AutoSize = true;
this.label1_d.Location = new System.Drawing.Point(94, 183);
this.label1_d.Name = "label1_d";
this.label1_d.Size = new System.Drawing.Size(53, 12);
this.label1_d.TabIndex = 32;
this.label1_d.Text = "label1_d";
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(53, 183);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(35, 12);
this.label18.TabIndex = 33;
this.label18.Text = "dHash";
//
// label2_d
//
this.label2_d.AutoSize = true;
this.label2_d.Location = new System.Drawing.Point(94, 387);
this.label2_d.Name = "label2_d";
this.label2_d.Size = new System.Drawing.Size(53, 12);
this.label2_d.TabIndex = 34;
this.label2_d.Text = "label2_d";
//
// label20
//
this.label20.AutoSize = true;
this.label20.Location = new System.Drawing.Point(53, 387);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(35, 12);
this.label20.TabIndex = 35;
this.label20.Text = "dHash";
//
// label3_d
//
this.label3_d.AutoSize = true;
this.label3_d.Location = new System.Drawing.Point(94, 597);
this.label3_d.Name = "label3_d";
this.label3_d.Size = new System.Drawing.Size(53, 12);
this.label3_d.TabIndex = 36;
this.label3_d.Text = "label3_d";
//
// label22
//
this.label22.AutoSize = true;
this.label22.Location = new System.Drawing.Point(53, 597);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(35, 12);
this.label22.TabIndex = 37;
this.label22.Text = "dHash";
//
// label4_d
//
this.label4_d.AutoSize = true;
this.label4_d.Location = new System.Drawing.Point(94, 813);
this.label4_d.Name = "label4_d";
this.label4_d.Size = new System.Drawing.Size(53, 12);
this.label4_d.TabIndex = 38;
this.label4_d.Text = "label4_d";
//
// label24
//
this.label24.AutoSize = true;
this.label24.Location = new System.Drawing.Point(53, 813);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(35, 12);
this.label24.TabIndex = 39;
this.label24.Text = "dHash";
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(791, 266);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(95, 12);
this.label17.TabIndex = 40;
this.label17.Text = "dHash测试结果:";
//
// dataGridView2
//
this.dataGridView2.AllowUserToAddRows = false;
this.dataGridView2.BackgroundColor = System.Drawing.SystemColors.Window;
this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2});
this.dataGridView2.Location = new System.Drawing.Point(793, 280);
this.dataGridView2.Name = "dataGridView2";
this.dataGridView2.RowHeadersVisible = false;
this.dataGridView2.RowTemplate.Height = 23;
this.dataGridView2.Size = new System.Drawing.Size(404, 187);
this.dataGridView2.TabIndex = 41;
//
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(791, 516);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(95, 12);
this.label19.TabIndex = 42;
this.label19.Text = "pHash测试结果:";
//
// dataGridView3
//
this.dataGridView3.AllowUserToAddRows = false;
this.dataGridView3.BackgroundColor = System.Drawing.SystemColors.Window;
this.dataGridView3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn5,
this.dataGridViewTextBoxColumn6});
this.dataGridView3.Location = new System.Drawing.Point(793, 530);
this.dataGridView3.Name = "dataGridView3";
this.dataGridView3.RowHeadersVisible = false;
this.dataGridView3.RowTemplate.Height = 23;
this.dataGridView3.Size = new System.Drawing.Size(404, 187);
this.dataGridView3.TabIndex = 43;
//
// label21
//
this.label21.AutoSize = true;
this.label21.Location = new System.Drawing.Point(53, 203);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(35, 12);
this.label21.TabIndex = 45;
this.label21.Text = "pHash";
//
// label1_p
//
this.label1_p.AutoSize = true;
this.label1_p.Location = new System.Drawing.Point(94, 203);
this.label1_p.Name = "label1_p";
this.label1_p.Size = new System.Drawing.Size(53, 12);
this.label1_p.TabIndex = 44;
this.label1_p.Text = "label1_p";
//
// label23
//
this.label23.AutoSize = true;
this.label23.Location = new System.Drawing.Point(53, 408);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(35, 12);
this.label23.TabIndex = 47;
this.label23.Text = "pHash";
//
// label2_p
//
this.label2_p.AutoSize = true;
this.label2_p.Location = new System.Drawing.Point(94, 408);
this.label2_p.Name = "label2_p";
this.label2_p.Size = new System.Drawing.Size(53, 12);
this.label2_p.TabIndex = 46;
this.label2_p.Text = "label2_p";
//
// label25
//
this.label25.AutoSize = true;
this.label25.Location = new System.Drawing.Point(53, 618);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(35, 12);
this.label25.TabIndex = 49;
this.label25.Text = "pHash";
//
// label3_p
//
this.label3_p.AutoSize = true;
this.label3_p.Location = new System.Drawing.Point(94, 618);
this.label3_p.Name = "label3_p";
this.label3_p.Size = new System.Drawing.Size(53, 12);
this.label3_p.TabIndex = 48;
this.label3_p.Text = "label3_p";
//
// label27
//
this.label27.AutoSize = true;
this.label27.Location = new System.Drawing.Point(53, 834);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(35, 12);
this.label27.TabIndex = 51;
this.label27.Text = "pHash";
//
// label4_p
//
this.label4_p.AutoSize = true;
this.label4_p.Location = new System.Drawing.Point(94, 834);
this.label4_p.Name = "label4_p";
this.label4_p.Size = new System.Drawing.Size(53, 12);
this.label4_p.TabIndex = 50;
this.label4_p.Text = "label4_p";
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "name";
this.dataGridViewTextBoxColumn1.HeaderText = "名称";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "similar";
this.dataGridViewTextBoxColumn2.HeaderText = "相似度";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
//
// Column2
//
this.Column2.DataPropertyName = "name";
this.Column2.HeaderText = "名称";
this.Column2.Name = "Column2";
//
// Column3
//
this.Column3.DataPropertyName = "similar";
this.Column3.HeaderText = "相似度";
this.Column3.Name = "Column3";
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "name";
this.dataGridViewTextBoxColumn5.HeaderText = "名称";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
//
// dataGridViewTextBoxColumn6
//
this.dataGridViewTextBoxColumn6.DataPropertyName = "similar";
this.dataGridViewTextBoxColumn6.HeaderText = "相似度";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
//
// Form2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1237, 873);
this.Controls.Add(this.label27);
this.Controls.Add(this.label4_p);
this.Controls.Add(this.label25);
this.Controls.Add(this.label3_p);
this.Controls.Add(this.label23);
this.Controls.Add(this.label2_p);
this.Controls.Add(this.label21);
this.Controls.Add(this.label1_p);
this.Controls.Add(this.label19);
this.Controls.Add(this.dataGridView3);
this.Controls.Add(this.label17);
this.Controls.Add(this.dataGridView2);
this.Controls.Add(this.label24);
this.Controls.Add(this.label4_d);
this.Controls.Add(this.label22);
this.Controls.Add(this.label3_d);
this.Controls.Add(this.label20);
this.Controls.Add(this.label2_d);
this.Controls.Add(this.label18);
this.Controls.Add(this.label1_d);
this.Controls.Add(this.pictureBox4_s);
this.Controls.Add(this.pictureBox3_s);
this.Controls.Add(this.pictureBox2_s);
this.Controls.Add(this.label16);
this.Controls.Add(this.pictureBox1_s);
this.Controls.Add(this.label15);
this.Controls.Add(this.label14);
this.Controls.Add(this.label13);
this.Controls.Add(this.label12);
this.Controls.Add(this.label11);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label10);
this.Controls.Add(this.pictureBox4_b);
this.Controls.Add(this.label4);
this.Controls.Add(this.pictureBox4);
this.Controls.Add(this.label9);
this.Controls.Add(this.label8);
this.Controls.Add(this.label7);
this.Controls.Add(this.pictureBox3_b);
this.Controls.Add(this.pictureBox2_b);
this.Controls.Add(this.pictureBox1_b);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox3);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.dataGridView1);
this.Name = "Form2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form2";
this.Load += new System.EventHandler(this.Form2_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1_b)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2_b)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3_b)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4_b)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1_s)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2_s)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3_s)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4_s)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGridView3)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.PictureBox pictureBox1_b;
private System.Windows.Forms.PictureBox pictureBox2_b;
private System.Windows.Forms.PictureBox pictureBox3_b;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.PictureBox pictureBox4_b;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.PictureBox pictureBox4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.PictureBox pictureBox1_s;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.PictureBox pictureBox2_s;
private System.Windows.Forms.PictureBox pictureBox3_s;
private System.Windows.Forms.PictureBox pictureBox4_s;
private System.Windows.Forms.Label label1_d;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label2_d;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label3_d;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.Label label4_d;
private System.Windows.Forms.Label label24;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.DataGridView dataGridView2;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.DataGridView dataGridView3;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.Label label1_p;
private System.Windows.Forms.Label label23;
private System.Windows.Forms.Label label2_p;
private System.Windows.Forms.Label label25;
private System.Windows.Forms.Label label3_p;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.Label label4_p;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
//
using Tools.MyUtils;
namespace Tools.UI
{
public partial class wImageSearch : Form
{
public wImageSearch()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
//初始化图片框
List<PictureBox> boxs = new List<PictureBox> {
this.pictureBox1, this.pictureBox2, this.pictureBox3, this.pictureBox4,
this.pictureBox1_b, this.pictureBox2_b, this.pictureBox3_b, this.pictureBox4_b,
this.pictureBox1_s, this.pictureBox2_s, this.pictureBox3_s, this.pictureBox4_s,
};
this.InitPictureBox(boxs.ToArray());
//采样并计算图片Hash指纹
this.Sampling(1, this.pictureBox1, this.pictureBox1_b, this.pictureBox1_s, this.label1, this.label1_d, this.label1_p);
this.Sampling(2, this.pictureBox2, this.pictureBox2_b, this.pictureBox2_s, this.label2, this.label2_d, this.label2_p);
this.Sampling(3, this.pictureBox3, this.pictureBox3_b, this.pictureBox3_s, this.label3, this.label3_d, this.label3_p);
this.Sampling(4, this.pictureBox4, this.pictureBox4_b, this.pictureBox4_s, this.label4, this.label4_d, this.label4_p);
//生成对比结果
List<Label> labels = new List<Label> { this.label1, this.label2, this.label3, this.label4 };
List<Label> labels_d = new List<Label> { this.label1_d, this.label2_d, this.label3_d, this.label4_d };
List<Label> labels_p = new List<Label> { this.label1_p, this.label2_p, this.label3_p, this.label4_p };
this.GenResultView(labels, this.dataGridView1);
this.GenResultView(labels_d, this.dataGridView2);
this.GenResultView(labels_p, this.dataGridView3);
}
/// <summary>
/// 初始化图片框
/// </summary>
/// <param name="pboxs">图片框数据组</param>
private void InitPictureBox(params PictureBox[] pboxs)
{
Array.ForEach(pboxs,
box => {
box.SizeMode = PictureBoxSizeMode.Zoom;
});
}
/// <summary>
/// 采样并计算图片Hash指纹
/// </summary>
/// <param name="pbox">原图</param>
/// <param name="pbox_b">采样图</param>
/// <param name="pbox_s">采样降噪图</param>
/// <param name="lb">指纹显示标签</param>
private void Sampling(int index, PictureBox pbox, PictureBox pbox_b, PictureBox pbox_s, Label lb, Label lb_d, Label lb_p)
{
//原图
string path = $@"{Utils.TestPath}\timg{index}.jpg";
Image img = Image.FromFile(path);
pbox.Image = img;
//采样图片显示
Image thumbnail = MyUtil.ResizeImage(img, 8, 8);
pbox_b.Image = thumbnail;
pbox_s.Image = thumbnail.GrayImage2Bitmap();
//获取图片指纹
lb.Text = ImageSearch.aHash(img);
lb_d.Text = ImageSearch.dHash(img);
lb_p.Text = ImageSearch.pHash(img);
}
/// <summary>
/// 生成结果视图并显示
/// </summary>
/// <param name="labels"></param>
/// <param name="dgv"></param>
private void GenResultView(List<Label> labels, DataGridView dgv)
{
//初始化结果表
DataTable dt = new DataTable("Test")
{
Columns = {
{ "name", typeof(string) },
{ "similar", typeof(decimal) },
},
};
//生成相似度结果
for (int i = 0; i < labels.Count - 1; i++)
{
for (int j = i + 1; j < labels.Count; j++)
{
var similar = MyUtil.SimilarDegree(labels[i].Text, labels[j].Text).ToString("0.##"); //相似度
DataRow drNew = dt.NewRow();
drNew["name"] = $"图{i + 1}与图{j + 1}";
drNew["similar"] = similar;
drNew.EndEdit();
dt.Rows.Add(drNew);
}
}
//显示结果
dt.DefaultView.Sort = "similar desc";
dgv.DataSource = dt.DefaultView;
}
}
public static class MyUtil
{
/// <summary>
/// 图片尺寸调整:一般缩小为8*8
/// </summary>
/// <param name="img"></param>
/// <param name="width"></param>
/// <param name="height"></param>
/// <returns></returns>
public static Image ResizeImage(this Image img, int width, int height)
{
return img.GetThumbnailImage(width, height, () => false, IntPtr.Zero);
}
/// <summary>
/// 图片灰度调整,并将结果转为位图
/// </summary>
/// <param name="img"></param>
/// <returns></returns>
public static Bitmap GrayImage2Bitmap(this Image img)
{
Bitmap bmp = new Bitmap(img);
Bitmap result = new Bitmap(bmp.Width, bmp.Height);
for (int x = 0; x < bmp.Width; x++)
{
for (int y = 0; y < bmp.Height; y++)
{
var gray = bmp.GetPixel(x, y).ToGray();
result.SetPixel(x, y, Color.FromArgb(gray, gray, gray));
}
}
return result;
}
/// <summary>
/// 图片灰度调整,并将结果转为字节数组
/// </summary>
/// <param name="img">图片</param>
/// <param name="redRate">红色比率</param>
/// <param name="greenRate">绿色比率</param>
/// <param name="blueRate">蓝色比率</param>
/// <returns></returns>
public static byte[] GrayImage2ByteArray(this Image img)
{
Bitmap bmp = new Bitmap(img);
byte[] grayValues = new byte[img.Width * img.Height];
for (int x = 0; x < img.Width; x++)
{
for (int y = 0; y < img.Height; y++)
{
Color color = bmp.GetPixel(x, y);
byte grayValue = (byte)color.ToGray();
grayValues[x * img.Height + y] = grayValue;
}
}
return grayValues;
}
/// <summary>
/// 图片灰度调整,并将结果转为二维矩阵
/// </summary>
/// <param name="img"></param>
/// <returns></returns>
public static float[,] GrayImage2Matrix(this Image img)
{
Bitmap bmp = new Bitmap(img);
int width = bmp.Width;
int height = bmp.Height;
float[,] matrix = new float[width, height];
for (int i = 0; i < width; i++)
{
for (int j = 0; j < height; j++)
{
Color color = bmp.GetPixel(i, j);
matrix[i, j] = (float)color.ToGray();
}
}
return matrix;
}
/// <summary>
/// 转为灰度颜色
/// </summary>
/// <param name="color"></param>
/// <returns></returns>
public static int ToGray(this Color color)
{
//灰度:红色30%,绿色59%,蓝色11%
return (color.R * 30 + color.G * 59 + color.B * 11) / 100;
}
/// <summary>
/// 相似度计算
/// </summary>
/// <param name="a"></param>
/// <param name="b"></param>
/// <returns></returns>
public static decimal SimilarDegree(string a, string b)
{
if (a.Length != b.Length)
throw new ArgumentException();
//计算汉明距离
decimal count = 0;
for (int i = 0; i < a.Length; i++)
{
if (a[i] == b[i])
count++;
}
//计算相似比例
return count / a.Length;
}
}
/// <summary>
/// 图片指纹生成
/// </summary>
class ImageSearch
{
/// <summary>
/// aHash:均值hash算法
/// </summary>
/// <param name="img"></param>
/// <param name="size"></param>
/// <returns></returns>
public static string aHash(Image img, int size = 8)
{
//转为缩略图
Image thumbnail = img.ResizeImage(size, size);
//调整图片灰度
byte[] values = thumbnail.GrayImage2ByteArray();
//求和
int sum = 0;
for (int i = 0; i < values.Length; i++)
sum += (int)values[i];
//求平均
int averageValue = sum / values.Length;
//大于平均数为1,否则为0
string feature = "";
for (int i = 0; i < values.Length; i++)
{
feature += values[i] > averageValue ? "1" : "0";
}
return feature;
}
/// <summary>
/// dHash:差异哈希算法
/// </summary>
/// <param name="img"></param>
/// <param name="size"></param>
/// <returns></returns>
public static string dHash(Image img, int size = 8)
{
//转为缩略图
Image thumbnail = img.ResizeImage(size + 1, size);
//调整图片灰度
float[,] matrix = thumbnail.GrayImage2Matrix();
//计算差异
string feature = "";
for (int i = 0; i < size; i++)
{
for (int j = 0; j < size; j++)
{
feature += matrix[i, j] > matrix[i + 1, j] ? "1" : "0";
}
}
return feature;
}
/// <summary>
/// pHash:感知哈希算法
/// </summary>
/// <param name="img"></param>
/// <param name="size"></param>
/// <returns></returns>
public static string pHash(Image img, int size = 8)
{
//转为缩略图
Image thumbnail = img.ResizeImage(size, size);
//调整图片灰度
float[,] grayMatrix = thumbnail.GrayImage2Matrix();
//DCT变换
float[,] dct_origin = CreateDCTMatrix(size);
float[,] dct_trans = TransMatrix(dct_origin);
float[,] dct_result = Multiply(Multiply(dct_origin, grayMatrix), dct_trans);
//求平均
float sum = 0;
for (int i = 0; i < size; i++)
{
for (int j = 0; j < size; j++)
{
sum += dct_result[i, j];
}
}
float avg = sum / (size * size);
//生成特征
string feature = "";
for (int i = 0; i < size; i++)
{
for (int j = 0; j < size; j++)
{
feature += dct_result[i, j] > avg ? "1" : "0";
}
}
return feature;
}
/// <summary>
/// 创建DCT矩阵
/// </summary>
/// <param name="size"></param>
/// <returns></returns>
private static float[,] CreateDCTMatrix(int size)
{
float[,] matrix = new float[size, size];
for (int i = 0; i < size; i++)
{
for (int j = 0; j < size; j++)
{
float angle = (float)((j + 0.5f) * Math.PI * i / size);
matrix[i, j] = Change(i, size) * (float)Math.Cos(angle);
}
}
return matrix;
}
/// <summary>
/// DCT调节器
/// </summary>
/// <param name="i"></param>
/// <param name="size"></param>
/// <returns></returns>
private static float Change(int i, int size)
{
float scalar = i == 0 ? 1f : 2f;
return (float)Math.Sqrt(scalar / size);
}
/// <summary>
/// 矩阵转置
/// </summary>
/// <param name="matrix"></param>
/// <returns></returns>
private static float[,] TransMatrix(float[,] matrix)
{
int size = matrix.GetLength(0);
float[,] result = new float[size, size];
for (var i = 0; i < size; i++)
{
for (var j = 0; j < size; j++)
{
result[j, i] = matrix[i, j];
}
}
return result;
}
/// <summary>
/// 矩阵相乘
/// </summary>
/// <param name="left"></param>
/// <param name="right"></param>
/// <returns></returns>
public static float[,] Multiply(float[,] left, float[,] right)
{
int size = left.GetLength(0);
float[,] result = new float[size, size];
for (var y = 0; y < size; y++) //
{
for (var x = 0; x < size; x++)
{
float sum = 0;
for (int k = 0; k < size; k++)
{
sum += left[x, k] * right[k, y];
}
result[x, y] = sum;
}
}
return result;
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
\ No newline at end of file
...@@ -22,14 +22,15 @@ namespace Tools ...@@ -22,14 +22,15 @@ namespace Tools
{ {
this.CreateModule(typeof(UpdateExecuter.frmMain), "更新执行工具"), this.CreateModule(typeof(UpdateExecuter.frmMain), "更新执行工具"),
this.CreateModule(typeof(Ftt.PatchPack.FrmMain), "自动打包工具"), this.CreateModule(typeof(Ftt.PatchPack.FrmMain), "自动打包工具"),
this.CreateModule(typeof(UI.wDBTools), "数据库开发工具"), this.CreateModule(typeof(UI.wDBTools), "数据库开发工具", "tr"),
this.CreateModule(typeof(UI.wDbAnlysis), "简易SQL效率分析"), this.CreateModule(typeof(UI.wDbAnlysis), "简易SQL效率分析", "tr"),
this.CreateModule(typeof(UI.wSysChecker), "系统检查配置工具"), this.CreateModule(typeof(UI.wSysChecker), "系统检查配置工具", "tr"),
this.CreateModule(typeof(UI.wMonitorVisit), "APP模块访问监控"), this.CreateModule(typeof(UI.wMonitorVisit), "APP模块访问监控"),
this.CreateModule(typeof(UI.wAppModel), "APP模块管理"), this.CreateModule(typeof(UI.wAppModel), "APP模块管理"),
this.CreateModule(typeof(UI.wSysModule), "功能模块管理"), this.CreateModule(typeof(UI.wSysModule), "功能模块管理"),
this.CreateModule(typeof(UI.wAutoClass), "类生成工具"), this.CreateModule(typeof(UI.wAutoClass), "类生成工具"),
this.CreateModule(typeof(UI.wAuditDemo), "审批示例"), this.CreateModule(typeof(UI.wAuditDemo), "审批示例", "tr"),
this.CreateModule(typeof(UI.wImageSearch), "图片搜索", "tr"),
}; };
} }
......
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