Commit 16d4ed76 authored by tr's avatar tr

1、图片搜索:本地测试路径调整

parent 93679137
......@@ -130,7 +130,7 @@ namespace Tools.UI
string original_dhash = "";
string original_phash = "";
//图片库路径
string imgPath = $@"F:\图片查询\ImageSearch-master\images";
string imgPath = $@"F:\ImageSearch\images";
//预处理缓存
DataTable dtHash = null;
......@@ -319,7 +319,7 @@ namespace Tools.UI
}
/// <summary>
///
/// 图片查询-工具类
/// </summary>
public static class ImageSearchUtil
{
......@@ -430,8 +430,6 @@ namespace Tools.UI
}
}
/// <summary>
/// 图片指纹生成
/// </summary>
......@@ -481,7 +479,7 @@ namespace Tools.UI
{
for (int j = 0; j < size; j++)
{
feature += matrix[i, j] > matrix[i + 1, j] ? "1" : "0";
feature += matrix[i, j] < matrix[i + 1, j] ? "1" : "0";
}
}
return feature;
......
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