{"id":549709,"date":"2021-12-17T20:02:59","date_gmt":"2021-12-17T12:02:59","guid":{"rendered":"http:\/\/4563.org\/?p=549709"},"modified":"2021-12-17T20:02:59","modified_gmt":"2021-12-17T12:02:59","slug":"%e6%9c%89%e6%b2%a1%e6%9c%89%e5%b0%86%e8%bf%91%e4%bc%bc%e7%9a%84-hash-%e8%ae%a4%e4%b8%ba%e6%98%af%e7%9b%b8%e5%90%8c-hash-%e7%9a%84-hashset%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=549709","title":{"rendered":"\u6709\u6ca1\u6709\u5c06\u8fd1\u4f3c\u7684 hash \u8ba4\u4e3a\u662f\u76f8\u540c hash \u7684 hashset\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1> \u6709\u6ca1\u6709\u5c06\u8fd1\u4f3c\u7684 hash \u8ba4\u4e3a\u662f\u76f8\u540c hash \u7684 hashset\uff1f <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <span><i><\/i> 18<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898\uff0c\u5341\u4e07\u5f20\u56fe\u7247\u67e5\u91cd\uff0c\u6bcf\u4e2a\u56fe\u7247\u751f\u6210\u4e00\u4e2a 100 \u4f4d\u7684 hash \u3002<\/p>\n<p>\u60f3\u8981\u5b9e\u73b0\u7684\u6548\u679c\u662f\u8bbe\u8ba1\u4e00\u4e2a\u9608\u503c\uff0c\u6bd4\u5982 100 \u4f4d\u91cc hamming distance \u5c0f\u4e8e 10 \u7684\u5c31\u8ba4\u4e3a\u662f\u540c\u4e00\u5f20\u56fe\u3002<\/p>\n<p>\u65b0\u5efa\u4e00\u4e2a hashset \uff0c\u4e0d\u5f80\u91cc\u9762\u6dfb\u52a0\u91cd\u590d\u7684 hash \uff0c\u76f8\u4f3c\u7684\u8ba4\u4e3a\u662f\u540c\u4e00\u4e2a\u3002<\/p>\n<p>\u5341\u4e07\u7684\u6570\u91cf\u7ea7\u4e0d\u662f\u5f88\u5927\uff0c\u76f4\u63a5\u904d\u5386\u7684\u8bdd\u4e5f\u4e0d\u4f1a\u7b97\u5f88\u4e45\uff0c\u4f46\u662f\u7c7b\u4f3c\u7684\u9700\u6c42\u6709\u4ec0\u4e48\u7b97\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u4e0d\u505a\u591a\u4f59\u8fd0\u7b97\u5417\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>39<\/span>) <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"7027713\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jdhao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> ?\u90a3\u4f60\u81ea\u5df1\u5199\u4e2a\u903b\u8f91\u4e0d\u5c31\u884c\u4e86\u5417\uff1f <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027714\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u8ddf\u4f60\u8bf4\u4e86\u5df2\u7ecf\u6709\u5f88\u591a\u56fe\u7247\u76f8\u4f3c hash \u7684\u7b97\u6cd5\u4e86\uff0c\u4f60\u8fd8\u8981\u95ee\u4e00\u4e2a Y \u95ee\u9898\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027715\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : loadingimg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u63a8\u8350\u4e2a\u5e93\uff1a https:\/\/github.com\/idealo\/imagededup\/ <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027716\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u8fd9\u95ee\u9898\u6709\u70b9\u590d\u6742\uff0c\u56e0\u4e3a\u5df2\u7ecf\u751f\u6210 hash \u4e86\uff0c\u95ee\u9898\u7684\u672c\u8d28\u662f\u5982\u4f55\u5bf9 hash \u503c\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff0c\u505a\u6a21\u7cca\u5339\u914d\u3002<br \/>\u6211\u4e2a\u4eba\u60f3\u6cd5\u662f\uff0c\u5148\u904d\u5386\u5341\u4e07\u6570\u7ec4\uff0c\u628a 100 \u4f4d\u505a bit \u51fa\u73b0\u6982\u7387\u5206\u6790\uff0c\u53bb\u6389\u6700\u4f4e\u9891\u7387\u7684 36 \u4f4d\u3002\u6700\u540e\u5f62\u6210\u5341\u4e07\u6570\u91cf\u7ea7\u7684 64 \u4f4d\u5b8c\u7f8e hash \uff0c\u76f4\u63a5\u4e22\u6389 hashtable \u8fdb\u884c\u4e00\u4e00\u5339\u914d\uff0c\u5904\u7406\u901f\u5ea6\u4f1a\u975e\u5e38\u5feb\u3002<br \/>\u5339\u914d\u6210\u529f\u540e\uff0c\u518d\u8fdb\u884c\u4e8c\u6b21 hamming distance \u7684\u4e25\u683c\u914d\u5bf9\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027717\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zcf0508 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> https: \/\/github. com\/JohannesBuchner\/imagehash<br \/>https: \/\/segmentfault. com\/a\/1190000021236326<br \/>\u76f8\u4f3c\u5ea6\u7b97\u6cd5\u7528\u5efa\u5355\u7684\u6c49\u660e\u8ddd\u79bb\u6216\u8005\u4f59\u5f26\u76f8\u4f3c\u5ea6\u90fd\u53ef\u4ee5\uff0c\u9608\u503c\u4f60\u81ea\u5df1\u8bbe\u7f6e\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027718\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4e3e\u4e2a\u4f8b\u5b50\uff0c\u600e\u4e48\u5bf9<br \/>hello world<br \/>healo world<br \/>heelo world<br \/>\u8fd9\u4e09\u4e2a\u5b57\u7b26\u4e32\u505a\u6a21\u7cca hash \uff0c\u5e76\u4e14\u8ba9 hash \u503c\u7684\u7ed3\u679c\u5b8c\u5168\u4e00\u81f4\uff1f <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027719\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u600e\u4e48\u5b9a\u4e49\u76f8\u4f3c\u7684 hash  <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027720\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @zxCoder &#8220;\u600e\u4e48\u5b9a\u4e49\u76f8\u4f3c\u7684 hash&#8221;<br \/>6 \u5c31\u662f\u76f8\u4f3c\u7684 hash \u6848\u4f8b\u3002\u4e24\u4e2a\u5b57\u7b26\u4e32\u9519\u4e00\u4e2a\u6216\u8005\u4e24\u4e2a\u82f1\u6587\uff0chash \u7ed3\u679c\u662f\u4e00\u6837\u7684\uff0c\u4f46\u9519\u4e09\u4e2a\u4ee5\u4e0a\uff0chash \u5c31\u4e0d\u4e00\u6837\u4e86\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027721\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yfugibr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @3dwelcome #8<br \/>aaaaa<br \/>aaaab<br \/>aaabb<br \/>aabbb<br \/>abbbb<br \/>bbbbb<br \/>\u8fd9\u6837\u7684\u8bdd\u76f8\u90bb\u4e24\u4e2a\u90fd\u662f\u76f8\u540c\u7684 hash \uff0c\u6240\u4ee5 aaaaa \u548c bbbbb \u4e5f\u662f\u76f8\u540c hash \u4e86 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027722\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @yfugibr \u5e94\u8be5\u8fd8\u662f\u6709\u8fd9\u79cd\u7b97\u6cd5\uff0c\u505a\u5b57\u7b26\u4e32\u5927\u91cf\u7684\u6a21\u7cca\u5339\u914d\u3002\u6bd4\u5982 word \u91cc\uff0c\u82f1\u6587\u5355\u8bcd\u62fc\u5199\u7ea0\u9519\uff0c\u5c31\u662f\u6a21\u7cca\u67e5\u627e\u82f1\u6587\u5b57\u5178\u7684\u4e00\u4e2a\u5178\u578b\u5e94\u7528\u3002<br \/>\u5c31\u662f\u8fd8\u6ca1\u60f3\u660e\u767d\uff0c\u5177\u4f53\u7b97\u6cd5\u5e94\u8be5\u600e\u4e48\u5199\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027723\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shylockhg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> hash \u7b97\u6cd5\u5c31\u662f\u8981\u5427\u8f93\u5165\u5747\u5300\u5206\u5e03\u5230\u8f93\u51fa\u7a7a\u95f4\u91cc\u9762\uff0c\u8fd9\u79cd\u60c5\u51b5\u8fd8\u7b97\u4ec0\u4e48\u76f8\u4f3c\u6027\uff1b\u4e0d\u662f\u5357\u8f95\u5317\u8f99\u4e48 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027724\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lithiumii <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u56fe\u7247\u53bb\u91cd\u7528 perceptual hash \u5440\uff0c\u5c31\u662f\u4e3a\u4e86\u53bb\u91cd\u6781\u5ea6\u76f8\u4f3c\u4f46\u4e0d\u5b8c\u5168\u4e00\u81f4\u7684\u56fe\u7247\u800c\u751f\u7684 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027725\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @shylockhg \u201c\u4e0d\u662f\u5357\u8f95\u5317\u8f99\u4e48\u201d\u6709\u8fd9\u79cd\u7b97\u6cd5\u7684\uff0c\u82f1\u6587\u91cc\u53eb fuzzy hashing \uff0c\u6700\u521d\u662f\u6bd4\u8f83\u4e24\u4e2a\u6587\u4ef6\u7684\u76f8\u4f3c\u6027\u3002<br \/>\u6bd4\u5982\u4e24\u4e2a\u6e90\u4ee3\u7801\u6587\u4ef6\uff0c\u5185\u5bb9\u80fd\u8fbe\u5230 99%\u7684\u76f8\u4f3c\u5ea6\uff0cfuzzy hashing \u7684\u7ed3\u679c\u5c31\u662f\u9ad8\u5ea6\u4e00\u81f4\u7684\u3002<br \/>hash \u7684\u672c\u8d28\uff0c\u5c31\u662f\u628a\u591a\u4f59\u7684\u6570\u636e\u7ed9\u6254\u6389\uff0c\u5269\u4e0b\u7684\u5747\u5300\u5206\u5e03\u5230\u8f93\u51fa\u7a7a\u95f4\u91cc\u3002\u81f3\u4e8e\u628a\u6570\u636e\u54ea\u4e00\u90e8\u5206\u7ed9\u600e\u4e48\u6254\u6389\uff0c\u5c31\u662f\u8fd9\u4e2a\u6280\u672f\u7684\u6838\u5fc3\uff0c\u9700\u8981\u5bf9\u6e90\u6570\u636e\u8fdb\u884c\u5206\u6790\u5904\u7406\u3002\u6bd4\u5982\u6e90\u4ee3\u7801\u9884\u5904\u7406\uff0c\u5c31\u53ef\u4ee5\u628a\u6ce8\u91ca\u5168\u90e8\u6254\u6389\uff0c\u8fd9\u662f\u6b21\u8981\u7684\u4fe1\u606f\u3002<br \/>\u6309\u4fe1\u606f\u7684\u91cd\u8981\u7a0b\u5ea6\u6392\u5e8f\uff0c\u53cd\u590d\u5bf9\u6570\u636e\u5904\u7406\uff0c\u91cd\u590d\u6254\u6389\u51e0\u6b21\u6b21\u8981\u4fe1\u606f\u540e\uff0c\u6700\u7ec8\u8ba1\u7b97\u7684 hash \uff0c\u8fd9\u5c31\u662f\u6a21\u7cca hash \u7b97\u6cd5\u4e86\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027726\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ruxuan1306 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u54c8\u5e0c\u6709\u96ea\u5d29\u6548\u5e94\uff0c\u8f93\u5165\u53d8\u4e00\u4e2a\u6bd4\u7279\u8f93\u51fa\u4f1a\u9762\u76ee\u5168\u975e\uff0c\u4f60\u8fd9\u79cd\u9700\u8981\u4f7f\u7528\u80fd\u591f\u5c06\u76f8\u4f3c\u56fe\u50cf\u6620\u5c04\u4e3a\u76f8\u4f3c\u54c8\u5e0c\u503c\u7684\u4e13\u7528\u51fd\u6570\u3002<br \/>\u4e00\u4e2a\u601d\u8def\u662f\uff0c\u76f4\u63a5\u4f7f\u7528\u522b\u4eba\u5728\u5927\u89c4\u6a21\u56fe\u50cf\u6570\u636e\u96c6\u4e0a\u9884\u8bad\u7ec3\u7684\u56fe\u50cf\u5206\u7c7b\u6a21\u578b\u4f5c\u4e3a\u8fd9\u4e2a\u4e13\u7528\u51fd\u6570\uff0c\u5c06\u8fd9\u4e2a\u6a21\u578b\u6700\u540e\u4e00\u4e2a\u9690\u85cf\u5c42\u7684\u8f93\u51fa\u4f5c\u4e3a\u8be5\u56fe\u50cf\u7684\u54c8\u5e0c\u503c\uff0c\u7136\u540e\u6bcf\u4e2a\u56fe\u50cf\u54c8\u5e0c\u503c\u4e4b\u95f4\u7684\u6b27\u6c0f\u8ddd\u79bb\u5c31\u53ef\u4ee5\u8868\u793a\u76f8\u4f3c\u5ea6\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027727\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> by the way, JPEG \u538b\u7f29\u7b97\u6cd5\uff0c\u4e5f\u662f\u628a\u9ad8\u9891\u4fe1\u606f\u4f5c\u4e3a\u6b21\u8981\u4fe1\u606f\u6254\u6389\u540e\uff0c\u8fbe\u5230\u538b\u7f29\u56fe\u7247\u6570\u636e\u7684\u76ee\u7684\u3002<br \/>\u628a\u56fe\u7247\u538b\u7f29\u5230\u6781\u81f4\u540e\uff0c\u4e5f\u80fd\u53d8\u76f8\u8fbe\u5230\u56fe\u7247\u6a21\u7cca hash \u7684\u76ee\u7684\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027728\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ruxuan1306 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @3dwelcome #15 \u786e\u5b9e\uff0c\u672c\u8d28\u4e0a\u5c31\u662f\u627e\u5230\u4e00\u79cd\u7279\u5f81\u63d0\u53d6\u65b9\u6cd5\uff0c\u6bd4\u5982\u76f4\u63a5\u7edf\u4e00\u7f29\u653e\u4e3a 32*32 \uff0c\u76f8\u4f3c\u7684\u56fe\u50cf\u8fd9\u65f6\u80af\u5b9a\u8fd9\u4e2a 32*32 \u7684\u7f29\u7565\u56fe\u4e5f\u76f8\u4f3c\uff0c\u8fd9\u4e2a\u7f29\u7565\u56fe\u5c31\u53ef\u4ee5\u4f5c\u4e3a\u7279\u5f81\uff08\u54c8\u5e0c\u503c\uff09\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027729\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u6211\u4e0d\u77e5\u9053\u8fd9\u4e2a\u95ee\u9898\u6709\u4ec0\u4e48\u597d\u8ba8\u8bba\u7684\uff0c\u65e0\u8bba\u662f\u56fe\u7247\u76f8\u4f3c hash \uff0cfuzzy match \u8fd8\u662f hash \u7684\u5b9a\u4e49\u90fd\u5df2\u7ecf\u6709\u5f88\u591a\u73b0\u6210\u7684\u7814\u7a76\uff0c\u7b97\u6cd5\uff0c\u6570\u636e\u7ed3\u6784\u4e86\u3002<br \/>\u7528\u5c31\u5b8c\u4e86\u554a\uff01\u6700\u591a\u4f60\u8bf4\u67d0\u4e2a\u7b97\u6cd5\u4e0d\u9002\u5408\u4f60\u7684\u573a\u666f\uff0c\u90a3\u4f60\u6d4b\u4e00\u4e0b\u4e0d\u5c31\u597d\u4e86\u3002\u600e\u4e48\u7740\uff1f\u4f60\u5bf9\u524d\u4efb\u7684\u6210\u679c\u770b\u90fd\u4e0d\u770b\u4e00\u773c\u5c31\u6253\u7b97\u81ea\u5df1\u53d1\u660e\u4e00\u4e2a\u5417\uff1f <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027730\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : GrayXu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @binux +1 \uff0c\u8fd9\u95ee\u9898\u7684\u9898\u5e72\u4e4d\u770b\u8fd8\u770b\u4e0d\u592a\u61c2\uff0c\u539f\u6765\u8981\u7684\u662f\u4e2a LSH \u3002\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027731\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @binux \u597d\u50cf\u662f\u6ca1\u6709\u8fd9\u79cd\u7b97\u6cd5\uff0c\u4e3b\u7684\u610f\u601d\uff0c\u662f\u60f3\u628a hash \u4f5c\u4e3a\u6587\u4ef6\u540d\u3002<br \/>\u5982\u679c\u591a\u4e2a\u56fe\u7247\u662f\u76f8\u4f3c\u7684\uff0c\u90a3\u4e48\u6587\u4ef6\u540d\u5c31\u4f1a\u51b2\u7a81\uff0c\u6700\u7ec8\u78c1\u76d8\u53ea\u80fd\u4fdd\u5b58\u4e00\u4e2a\u56fe\u7247\u3002<br \/>\u76ee\u524d\u5f00\u6e90\u7684\u7b97\u6cd5\uff0c\u90fd\u662f\u7ed9\u4e24\u4e2a\u56fe\u7247\uff0c\u6c42\u4ed6\u4eec\u7684\u76f8\u4f3c\u503c\u3002\u4f46\u8fd9\u4e2a\u76f8\u4f3c\u503c\u53c8\u4e0d\u80fd\u4f5c\u4e3a\u6587\u4ef6\u540d\uff0c\u7ed9\u4fdd\u5b58\u4e0b\u6765\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027732\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @3dwelcome \u600e\u4e48\u6ca1\u6709\uff0c\u524d\u9762\u90fd\u8bf4\u4e86\u597d\u51e0\u4e2a\u4e86\u3002\u76f4\u63a5\u641c\u201c\u56fe\u7247\u76f8\u4f3c hash\u201d\u5c31\u53ef\u4ee5\u3002<br \/>\u4f60\u8981\u641e hash \u8ddd\u79bb\u65e0\u8bba\u662f\u5728\u7ebf\u67e5\u627e\u8fd8\u662f\u805a\u7c7b\u90fd\u662f\u4e00\u5806\u7b97\u6cd5\u6570\u636e\u7ed3\u6784\u53ef\u4ee5\u7528\u3002<br \/>\u8fd9\u4e48\u5e38\u89c1\u7684\u9700\u6c42\u522b\u5c0f\u770b\u8ba1\u7b97\u673a\u79d1\u5b66\u4e86\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027733\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shengchen11 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> java \u7684\u8bdd\u91cd\u5199 hashCode \u65b9\u6cd5\u5e94\u8be5\u53ef\u4ee5\u5427\uff0c\u8c03\u7528 super.hashCode \uff0c\u518d\u52a0\u4e0a\u81ea\u5df1\u7684\u903b\u8f91 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027734\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @binux \u6211 google \u67e5\u4e86\u4e00\u4e0b\uff0c\u90a3\u4e48\u591a\u56fe\u7247\u76f8\u4f3c\u5ea6\u7b97\u6cd5\uff0c\u6700\u540e\u4e00\u6b65\u90fd\u662f\u8ba1\u7b97\u6c49\u660e\u8ddd\u79bb\uff0c<br \/>\u4e3b\u7684\u4e3b\u8bc9\u6c42\uff0c\u8c8c\u4f3c\u5c31\u662f\u4e3a\u4e86\u7701\u7565\u6389\u8fd9\u6700\u540e\u4e00\u6b65\u3002N x N (n=\u5341\u4e07), \u6570\u91cf\u4e0d\u5927\uff0c\u4e5f\u4e0d\u7b97\u5f88\u5c0f\u4e86\u3002<br \/>\u7406\u8bba\u4e0a\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b floor \u6280\u5de7\u5b9e\u73b0\u3002<br \/>\u6bd4\u5982\u56fe\u7247 1 \u7684 hash \u662f 3.5 \uff0c1.2 &#8230;<br \/>\u56fe\u7247 2 \u7684 hash \u662f 3.45, 1.02&#8230;<br \/>\u90fd floor \u540e\uff0c\u90fd\u53d8\u6210\u4e86 3, 1, &#8230;\u6574\u578b\uff0c\u90a3\u4e48\u5f53\u6570\u5b57\u53d8\u6210\u5b57\u7b26\u4e32\u6587\u4ef6\u540d\u540e\uff0c\u4e24\u8005\u5c31\u662f\u5339\u914d\u7684\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027735\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wakiki <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u5178\u578b\u7684 X-Y \u95ee\u9898\uff0c\u4e0a\u9762\u8fd8\u8ba8\u8bba\u5f97\u8fd9\u4e48\u8d77\u52b2\uff1a<br \/>1 \uff09\u4e3b\u60f3\u8981\u300c\u56fe\u7247\u67e5\u91cd\u300d<br \/>2 \uff09\u4e3b\u4ee5\u4e3a\u300c\u8fd1\u4f3c\u7684 hash \u8ba4\u4e3a\u662f\u76f8\u540c hash \u7684 hashset \u300d\u662f\u89e3\u51b3\u300c\u56fe\u7247\u67e5\u91cd\u300d\u7684\u65b9\u6cd5<br \/>3 \uff09\u4f46\u662f\u4e3b\u4e0d\u77e5\u9053\u300c\u8fd1\u4f3c\u7684 hash \u8ba4\u4e3a\u662f\u76f8\u540c hash \u7684 hashset \u300d\u5e94\u8be5\u600e\u4e48\u505a<br \/>4 \uff09\u4e8e\u662f\u4e3b\u6765 V2 \u95ee \u300c\u8fd1\u4f3c\u7684 hash \u8ba4\u4e3a\u662f\u76f8\u540c hash \u7684 hashset \u300d \u5e94\u8be5\u600e\u4e48\u505a\uff1f<br \/>\u4e0d\u662f\u5e94\u8be5\u7529\u7ed9\u4e3b\u56fe\u50cf\u76f8\u4f3c\u5ea6\u7b97\u6cd5\u4e48 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027736\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ryd994 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @3dwelcome \u90a3 2.99 \u548c 3.0 \u5462\uff1f<br \/>\u51ed\u4ec0\u4e48 2.1 \u548c 2.9 \u5c31\u76f8\u4f3c\uff0c2.99 \u548c 3.0 \u5c31\u4e0d\u76f8\u4f3c\uff1f <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027737\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ipwx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @3dwelcome \u8fd9\u79cd\u65f6\u5019\u5f53\u7136\u8981\u770b\u5927 postgresql<br \/>https:\/\/wiki.postgresql.org\/wiki\/What%27s_new_in_PostgreSQL_9.1#K-Nearest-Neighbor_Indexing<br \/>https:\/\/github.com\/fake-name\/pg-spgist_hamming\/ <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027738\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @ryd994 \u4f60\u8bf4\u7684\u5bf9\uff0c\u662f\u6709\u70b9\u95ee\u9898\u3002<br \/>\u4e8e\u662f\u8fd9\u95ee\u9898\u53c8\u53d8\u6210\u4e86\u5982\u4f55\u5bf9 float \u8fdb\u884c hash \u5904\u7406\uff0c\u5982\u4f55\u628a 2.99 \u548c 3.00 \u8ba1\u7b97\u6210\u540c\u4e00\u4e2a hash \u503c\u3002<br \/>hmm.. \u7b97\u4e86\uff0c\u6211\u8868\u793a\u653e\u5f03\u8ffd\u8d34\u4e86\u3002\u8d8a\u98d8\u8d8a\u8fdc\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027739\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @ryd994 \u6211\u4e0a\u9762\u63d0\u5230\u7684 floor \u7684\u6280\u5de7\uff0c\u4e25\u683c\u610f\u4e49\u4e0a\u6765\u8bf4\uff0c\u5e94\u8be5\u53eb\u677e\u6563\u56db\u53c9\u6811\u7b97\u6cd5\uff08 loose quadtree \uff09\u3002<br \/>\u5c31\u662f 2.99 \u65e2\u80fd\u5f52\u5c5e\u5230[1,2]\u8fd9\u4e2a\u533a\u57df\uff0c\u53c8\u80fd\u5f52\u5c5e\u5230[2,3]\uff0c\u540c\u65f6\u5360\u4e86\u4e24\u4e2a\u533a\u57df\uff0c\u5c31\u53eb loose \u3002<br \/>\u6709\u90a3\u4e48\u4e00\u70b9\u70b9\u7c7b\u4f3c 25 \u7684 vptree\/bktree \u7406\u5ff5\uff0c\u4e0d\u8fc7\u8fd8\u662f\u5f88\u590d\u6742\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027740\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ipwx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @3dwelcome \u90a3\u5c31 kd-tree <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027741\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ipwx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @3dwelcome https:\/\/www.2ndquadrant.com\/en\/blog\/postgresql-12-implementing-k-nearest-neighbor-space-partitioned-generalized-search-tree-indexes\/ <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027742\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : skies457 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> image embedding? <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027743\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ruanimal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> simhash <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027744\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @3dwelcome \u5b9e\u9645\u56fe\u7247\u53bb\u91cd\u7528\u4e0d\u5230\u90a3\u4e48\u5927\u7684\u8303\u56f4\uff0c\u5927\u90e8\u5206\u56fe\u7247\u76f8\u4f3c hash \u7684\u6458\u8981\u5df2\u7ecf\u662f\u76f8\u4f3c\u56fe\u7247 hash \u76f8\u540c\u4e86\uff0c\u66f4\u4f55\u51b5\u5f88\u591a\u7b97\u6cd5\u53ef\u4ee5\u8c03\u6574\u7cbe\u5ea6\uff0c\u4f60\u8bd5\u8bd5\u5c31\u77e5\u9053\u4e86\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027745\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @binux \u670b\u53cb\u4f60\u771f\u7684\u8ba4\u771f\u770b\u4e3b\u9898\u4e86\u5417\uff1f\u4e3b\u9898\u8be2\u95ee\u7684\u662f\u8fd1\u4f3c\u5b57\u7b26\u4e32\u53bb\u91cd\u7b97\u6cd5\uff0c\u800c\u4e0d\u662f\u56fe\u7247\u6458\u8981\u7b97\u6cd5\uff0c\u63d0\u5230\u56fe\u7247\u65e0\u975e\u662f\u4e3a\u4e86\u8fdb\u4e00\u6b65\u89e3\u91ca\u80cc\u666f\u800c\u5df2\uff0c\u4f60\u5728\u8fd9\u91cc\u53eb\u56b7\u8bf4\u6709\u5f88\u591a\u6210\u719f\u7b97\u6cd5\uff0c\u5982\u679c\u4f60\u5f88\u719f\u6089\uff0c\u4e0d\u5c51\u4e8e\u53c2\u4e0e\u8fd9\u79cd\u4f4e\u7ea7\u8ba8\u8bba\uff0c\u8bf7\u76f4\u63a5\u53d1\u5173\u952e\u5b57\u6216\u6587\u7ae0\u94fe\u63a5\uff0c\u800c\u4e0d\u662f\u53cd\u590d\u5730\u53d1\u201c\u6709\u5f88\u591a\uff0c\u4e3a\u4ec0\u4e48\u4f60\u4e0d\u7528\u201d\u3002\u5982\u679c\u4f60\u8ba4\u4e3a\u76f8\u540c\u56fe\u7247\u7ecf\u8fc7\u5408\u9002\u7b97\u6cd5\u7684\u6458\u8981\u672c\u8eab\u5c31\u662f\u76f8\u540c\u7684\uff0c\u90a3\u53ea\u80fd\u8bf4\u65e2\u7136\u662f\u611f\u77e5\u54c8\u5e0c\uff0c\u65e0\u975e\u662f\u7cbe\u5ea6\u95ee\u9898<br \/>@yfugibr aaaaa \u53d8\u6210 bbbbb \u7684\u95ee\u9898\u662f\u8f93\u5165\u987a\u5e8f\u5bfc\u81f4\u7684\uff0c\u6392\u5e8f\u540e\u5e94\u8be5\u95ee\u9898\u4e0d\u5927 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027746\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zoudm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> Locality-sensitive hashing? <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027747\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @LeeReamond \u4f60\u5230\u5e95\u662f\u5728\u95ee\u8fd1\u4f3c hash \u53bb\u91cd\u8fd8\u662f\u8fd1\u4f3c\u5b57\u7b26\u4e32\u53bb\u91cd\uff1f<br \/>\u6709\u95ee\u9898\u5c31\u76f4\u63a5\u95ee\uff0c\u4e0d\u8981\u4f60\u4ee5\u4e3a Y \u662f\u89e3\u51b3 X \u7684\u65b9\u6cd5\u5c31\u53bb\u95ee Y \u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027748\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @binux \u82b1\u4e86\u70b9\u65f6\u95f4\uff0c\u770b\u4e86\u4e00\u4e0b github \u4e0a\u7684 pHash \u7b97\u6cd5( https:\/\/github.com\/starkdg\/phash)\uff0c\u8fd8\u662f\u6709\u4e0d\u5c11\u95ee\u9898\u3002<br \/>\u7b2c\u4e00\uff0cdct \u91cc\u5747\u503c\u8ba1\u7b97( https:\/\/github.com\/starkdg\/phash\/blob\/master\/src\/pHash.cpp#L267)\uff0c\u5e94\u8be5\u6392\u9664\u6389\u7b2c\u4e00\u4e2a\u6d6e\u70b9\uff0c\u8fd9\u4e2a\u503c\u4ee3\u8868\u56fe\u7247\u80fd\u91cf\u7684\u603b\u548c\uff0c\u4e5f\u5c31\u662f\u5168\u5c40\u660e\u6697\uff0c\u800c\u4e0d\u662f\u56fe\u7247\u7ec6\u8282\u63cf\u8ff0\u3002<br \/>\u90a3\u4e2a pHash \u7b97\u6cd5\uff0c\u5c31 float median = subsec.median();\u6c42\u5747\u503c\uff0c\u7136\u540e if (current_pixel &gt; median) hash |= 0x01;\u8fd9\u6837\u8ba1\u7b97\u5e76\u4e0d\u7cbe\u786e\u3002<br \/>\u7b2c\u4e8c\uff0cdct \u7684\u7279\u6027\uff0c\u662f\u5de6\u4e0a\u89d2\u9ad8\u80fd\u91cf\uff0c\u4ee3\u8868\u4f4e\u9891\u4fe1\u53f7\u3002\u53f3\u4e0b\u89d2\u4f4e\u80fd\u91cf\uff0c\u4ee3\u8868\u9ad8\u9891\u4fe1\u53f7\u3002\u4e00\u822c\u4e22\u5f03\u53f3\u4e0b\u89d2\u662f\u6ca1\u95ee\u9898\u7684\uff0cJPEG DCT \u90fd\u662f\u7528 zig-zag \u5e8f\u5217\u6765\u5904\u7406\u3002<br \/>\u800c pHash \u7b97\u6cd5\uff0c\u8fd8\u662f\u7b80\u5355\u66b4\u529b\u7528\u4e86\u4e00\u4e2a 8&#215;8 \u7684\u6b63\u65b9\u5f62\uff0c\u5b8c\u5168\u6709\u6539\u8fdb\u7684\u4f59\u5730\u3002<br \/>\u7b2c\u4e09\uff0cdct \u7684 image hash, \u662f\u53ef\u4ee5\u505a\u6210\u4e0d\u7528\u8ba1\u7b97\u6c49\u660e\u8ddd\u79bb\uff0c\u76f4\u63a5\u9760\u5b57\u7b26\u4e32\u5339\u914d\uff0c\u6765\u9ad8\u901f\u9002\u914d\u7684\u3002<br \/>\u524d\u63d0\u662f\u8f93\u51fa\u7684 hash \u5b57\u7b26\u4e32\uff0c\u5fc5\u987b\u6839\u636e\u91cd\u8981\u6027\u6765\u6392\u5e8f\uff0c\u53ef\u4ee5\u672b\u5c3e\u4e22\u5f03\u3002\u4e3e\u4e2a\u4f8b\u5b50\u6bd4\u5982 hash \u662f CDEF \uff0c\u90a3\u4e48 CD \u5c31\u662f\u8981\u6bd4 EF \u91cd\u8981\uff0c\u5149\u5339\u914d CD \u524d\u7f00\u4e5f\u662f\u53ef\u4ee5\u7684\u3002\u53ef\u60dc pHash \u7684 8&#215;8 \u6b63\u65b9\u5f62\u505a\u4e0d\u5230\u8fd9\u70b9\uff0c\u5fc5\u987b\u6539\u6210 zig-zag \u5e8f\u5217\u8f93\u51fa\u3002<br \/>\u7b2c\u56db\uff0c\u53ea\u8981\u6709\u8d85\u9ad8\u901f hashset \u8bc6\u522b\u7b97\u6cd5\uff0c\u5c31\u80fd\u8fdb\u884c\u89c6\u9891\u5185\u5bb9\u8bc6\u522b\u4e86\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027749\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @3dwelcome \u4e0d\u505a\u7b97\u6cd5\u7814\u7a76\u771f\u6ca1\u5fc5\u8981\u6b7b\u78d5\u4e00\u4e2a\u7b97\u6cd5\u3002\u597d\u4e0d\u597d\u7528\uff0c\u54ea\u4e2a\u597d\u7528\u62ff\u6837\u4f8b\u6d4b\u4e00\u4e0b\u5c31\u77e5\u9053\u4e86\uff0c\u6bd5\u7adf\u5b9e\u9645\u4f7f\u7528\u4e2d\u4e5f\u4e0d\u4f1a\u8981\u540c\u65f6\u5bf9\u6297\u6a21\u7cca\u88c1\u5207\u7f29\u653e&#8230;\u554a\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027750\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @binux \u5efa\u8bae\u91cd\u4fee\u4e49\u52a1\u6559\u80b2\u8bed\u6587\uff0c\u672c\u5e16\u6807\u9898\u4e3a\u201c\u6709\u6ca1\u6709\u5c06\u8fd1\u4f3c\u7684 hash \u8ba4\u4e3a\u662f\u76f8\u540c hash \u7684 hashset \uff1f\u201d\uff0c\u4e00\u822c\u8ba4\u4e3a hash \u662f\u5b57\u7b26\u4e32\u7ed3\u6784\uff0c\u6807\u9898\u542b\u4e49\u4e3a\uff0c\u4f20\u7edf hashset \u7cbe\u786e\u5339\u914d\uff0c\u5982\u4f55\u5e94\u5bf9\u4e0d\u7cbe\u786e\u5339\u914d\u7684\u60c5\u51b5\uff0c\u4e0d\u77e5\u9053\u4f60\u5728\u6760\u4ec0\u4e48\u3002\u53e6\u5916\u5b9e\u9645\u4f7f\u7528\u4e2d\u56fe\u7247\u53bb\u91cd\u5c31\u662f\u8981\u5bf9\u6297\u6a21\u7cca\u526a\u88c1\u7f29\u653e\u3002\u5b9e\u9645\u4f7f\u7528\u573a\u666f\u5c31\u662f\u4e92\u8054\u7f51\u4e0a\u7684\u56fe\u7247\u6765\u6e90\uff0c\u76f8\u540c\u56fe\u7247\u4f1a\u88ab\u5404\u79cd\u88c1\u526a \/\u8c03\u6574\u6bd4\u4f8b \/\u53cd\u590d\u538b\u7f29\uff0c\u6211\u4e0d\u77e5\u9053\u4f60\u662f\u54ea\u91cc\u7684\u5b9e\u9645\u4f7f\u7528\u7ecf\u9a8c\uff0c\u53bb\u91cd\u65f6\u4e0d\u9700\u8981\u8003\u8651\u8fd9\u4e9b\u95ee\u9898\u3002<br \/>@3dwelcome \u8001\u54e5\u4f60\u662f\u91cc\u552f\u4e00\u4e00\u4e2a\u4e00\u76f4\u5728\u8ba4\u771f\u56de\u6211\u7684\uff0c\u6211\u6700\u540e\u7ed9\u4f60\u66f4\u65b0\u4e00\u4e0b\u6211\u7684\u89e3\u51b3\u529e\u6cd5\u3002\u9996\u5148\u6211\u4f7f\u7528\u7684 phash \u7b97\u6cd5\u6ca1\u6709\u8fdb\u884c dct \uff0c\u800c\u662f\u76f4\u63a5\u7528 rgb \u6a21\u5f0f\u4e0b\u7684\u4e09\u5e73\u9762\u7684\u5411\u91cf\u53d8\u5316\uff0c\u4e5f\u5c31\u662f\u5355\u4e2a\u5e73\u9762\u91cc\u9762 8*8 \u5411\u91cf\u7684\u589e\u52a0\u6216\u51cf\u5c11\u6765\u5f62\u6210 hash \u3002\u6211\u5bf9\u6211\u81ea\u5df1\u7684\u573a\u666f\u505a\u4e86\u4e00\u4e9b\u5c0f\u4fee\u6539\uff0c\u56e0\u4e3a\u6211\u7684\u56fe\u7247\u5927\u591a\u4e3a\u7535\u8111\u6216\u624b\u673a\u5c4f\u5e55\u9002\u914d\uff0c\u901a\u5e38\u4e3a 16:9 \u6216\u8005 9 \u6bd4 16 \u7684\u8fd1\u4f3c\u6bd4\u4f8b\uff0c\u6211\u628a 8*8 \u7a0d\u5fae\u6269\u5927\u4e86\u4e00\u4e9b\u3002<br \/>\u5173\u4e8e\u8fd1\u4f3c\u53bb\u91cd\uff0c\u6700\u540e\u91c7\u7528\u7684\u662f\u591a\u5e74\u524d\u8c37\u6b4c\u7684\u8fd1\u4f3c simhash \u641c\u7d22\u7684\u7b80\u5316\u65b9\u6cd5\uff0c\u9700\u8981\u50a8\u5b58\u7ed3\u6784\u505a\u5bf9\u5e94\u4f18\u5316\u3002\u5176\u539f\u7406\u662f\uff0c\u5982\u679c\u8981\u6c42\u4e00\u4e2a\u957f\u5ea6\u4e3a 64 \uff08\u6216\u4efb\u610f\uff09\u7684 binary \uff0c\u4e0e\u53e6\u4e00\u4e2a\u7b49\u957f binary \u7684\u6c49\u660e\u8ddd\u79bb\u5c0f\u4e8e 3 \uff08\u610f\u5473\u7740\u4ed6\u4eec\u4e4b\u95f4\u6709 0 \u5904\u6216 1\/2\/3 \u5904\u4e0d\u540c\uff09\uff0c\u90a3\u4e48\u53ea\u9700\u8981\u5c06 64 \u5e73\u5747\u5206\u5272\u4e3a 4 \u6bb5\uff0c\u5373\u4f7f\u51fa\u73b0 3 \u5904\u4e0d\u540c\uff0c4 \u6bb5\u4e2d\u7684\u67d0\u4e00\u6bb5\u4e00\u5b9a\u5b8c\u5168\u76f8\u540c\u3002\u540c\u7406\uff0c\u5982\u679c\u8981\u6c42\u8ddd\u79bb\u5c0f\u4e8e 20 \uff0c\u5219\u5e73\u5747\u5206\u5272\u4e3a 21 \u6bb5\u3002\u5c06\u5176\u8f6c\u5316\u4e3a\u5b8c\u5168\u76f8\u540c\u95ee\u9898\u540e\uff0c\u53ef\u4ee5\u5229\u7528 hash \u7ed3\u6784\u7684\u7d22\u5f15\u80fd\u529b\uff0c\u539f\u5148\u9700\u8981\u904d\u5386\u5341\u4e07\u6b21\u5bf9\u6bd4\uff0c\u73b0\u5728\u53ea\u9700\u8981\u8fdb\u884c 4 \u6b21\u7d22\u5f15\uff0c\u6311\u9009\u51fa\u5b8c\u5168\u76f8\u540c\u7684\u96c6\u5408\u7684\u5e76\u96c6\uff0c\u4ed6\u4eec\u4e4b\u4e2d\u6709\u53ef\u80fd\u5b58\u5728\u4e0d\u7b26\u5408\u9700\u6c42\u7684\u7ed3\u679c\uff0c\u4f46\u7b26\u5408\u9700\u6c42\u7684\uff08\u6c49\u660e\u8ddd\u79bb\u5c0f\u4e8e 3 \uff09\u4e00\u5b9a\u5728\u5176\u4e2d\uff0c\u5728\u6b64\u57fa\u7840\u4e0a\u8fdb\u884c\u5b8c\u5168\u641c\u7d22\uff0c\u5373\u53ef\u7cbe\u51c6\u5b9a\u4f4d\u3002<br \/>\u4f7f\u7528\u8fd9\u4e2a\u65b9\u6cd5\u540e\uff0c\u539f\u5148\u7684 100k \u6570\u91cf\u7ea7\u5bf9\u8c61\u603b\u5171\u9700\u8981\u8fdb\u884c 5 \u4ebf\u6b21\u904d\u5386\uff08\u52a0\u4e0a\u6211\u7684\u5411\u91cf\u6570\u91cf\u4e3a 800+\uff0c\u603b\u8ba1\u9700\u8981 4000 \u4ebf\u6b21\u5411\u91cf\u76f8\u7b49\u8ba1\u7b97\uff09\uff0c\u53ef\u4ee5\u4f18\u5316\u5230\u975e\u5e38\u4f4e\u7684\u6c34\u5e73\uff0c\u6211\u76ee\u524d\u7684\u6570\u636e\u96c6\u5927\u5c0f\u662f\u53ef\u4ee5 1s \u5185\u51fa\u7ed3\u679c\u7684\uff0c\u4f18\u5316\u4e4b\u524d\u901f\u5ea6\u975e\u5e38\u6162\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7027751\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @LeeReamond <br \/>&gt; \u4e00\u822c\u8ba4\u4e3a hash \u662f\u5b57\u7b26\u4e32\u7ed3\u6784<br \/>\u6ca1\u4eba\u8fd9\u4e48\u8ba4\u4e3a\uff0chash \u4e00\u822c\u662f\u5b9a\u957f binary \uff0c\u6bd4\u8f83\u4e5f\u662f\u6309\u4f4d\u6bd4\u8f83\u7684\uff0c\u5f53\u7136\u548c\u5b57\u7b26\u4e32\u4e0d\u540c\u4e86\u3002<br \/>\u800c\u4e14\u4f60\u8bf4\u4e86\u662f\u7535\u8111\u624b\u673a\u58c1\u7eb8\uff0c\u90a3\u5b83\u6700\u591a\u88c1\u526a\u8fb9\u6846\uff0c\u6216\u8005\u4ece\u7535\u8111\u6bd4\u4f8b\u88c1\u526a\u6210\u624b\u673a\u6bd4\u4f8b\uff08\u5b83\u4eec\u8fd8\u7b97\u4e0d\u7b97\u91cd\u590d\u8fd8\u53e6\u8bf4\u5462\uff09\uff0c\u4e0d\u4f1a\u51fa\u73b0\u88c1\u51fa\u4e2a\u4eba\u5934\u7684\u60c5\u51b5\uff0c\u4f60\u9009\u4e00\u4e2a\u5229\u7528 image feature \u4ea7\u751f hash \u7684\u7b97\u6cd5\u4e0d\u5c31\u5b8c\u4e86\u3002<br \/>\u58c1\u7eb8\u53bb\u91cd\u6211 8 \u5e74\u524d\u5c31\u505a\u8fc7\u4e86\uff0c\u4ece\u81ea\u5df1\u5199\u56fe\u7247\u7279\u5f81\u63d0\u53d6\u505a hash \u518d\u50cf\u4f60\u4e00\u6837 hash \u8ddd\u79bb\u53bb\u91cd\uff0c\u5230\u6700\u540e\u627e\u4e00\u4e2a\u5408\u9002\u7684 hash \u7b97\u6cd5\u5c31\u591f\u4e86\u3002<br \/>8 \u5e74\u524d\u8fd8\u6ca1\u6709\u90a3\u4e48\u591a\u5b9e\u73b0\u597d\u7684\u5e93\u53ef\u4ee5\u7528\u5462\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u6ca1\u6709\u5c06\u8fd1\u4f3c\u7684 hash \u8ba4\u4e3a\u662f\u76f8&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/549709"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=549709"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/549709\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=549709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=549709"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=549709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}