{"id":876,"date":"2022-03-04T21:55:56","date_gmt":"2022-03-04T13:55:56","guid":{"rendered":"http:\/\/eotstxtab.top\/?p=876"},"modified":"2022-03-12T15:59:01","modified_gmt":"2022-03-12T07:59:01","slug":"%e5%90%8c%e6%80%81%e5%8a%a0%e5%af%86%e7%9a%84%e4%ba%ba%e8%84%b8%e8%af%86%e5%88%ab-%e5%ae%9e%e7%8e%b0%e6%8e%a2%e7%a9%b6","status":"publish","type":"post","link":"http:\/\/43.142.23.155\/?p=876","title":{"rendered":"\u540c\u6001\u52a0\u5bc6\u7684\u4eba\u8138\u8bc6\u522b-\u65b9\u6848\u63a2\u7a76\u7bc7"},"content":{"rendered":"\n<h2 class=\"has-medium-font-size wp-block-heading\" id=\"\u4e00-\u6982\u8ff0\"> \u4e00\u3001\u6982\u8ff0<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:16px\"><strong>1. \u540c\u6001\u52a0\u5bc6\u7684\u6982\u5ff5<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u57281978\u5e74\uff0cRon Rivest, Leonard Adleman, \u4ee5\u53caMichael L. Dertouzos\u4ee5\u94f6\u884c\u4e3a\u5e94\u7528\u80cc\u666f\u63d0\u51fa\u4e86\u540c\u6001\u52a0\u5bc6\uff08Homomorphic Encryption\uff09\u3002\u5176\u4e2dRon Rivest\u548cLeonard Adleman\u5206\u522b\u5c31\u662f\u8457\u540d\u7684RSA\u7b97\u6cd5\u4e2d\u7684R\u548cA\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540c\u6001\u52a0\u5bc6\u662f\u57fa\u4e8e\u6570\u5b66\u96be\u9898\u7684\u8ba1\u7b97\u590d\u6742\u6027\u7406\u8bba\u7684\u5bc6\u7801\u5b66\u6280\u672f\u3002\u7b80\u5355\u6765\u8bf4\uff0c\u5bf9\u7ecf\u8fc7\u540c\u6001\u52a0\u5bc6\u7684\u6570\u636e\u8fdb\u884c\u5904\u7406\u5f97\u5230\u4e00\u4e2a\u8f93\u51fa\uff0c\u5c06\u8fd9\u4e00\u8f93\u51fa\u8fdb\u884c\u89e3\u5bc6\uff0c\u5176\u7ed3\u679c\u4e0e\u7528\u540c\u4e00\u65b9\u6cd5\u5904\u7406\u672a\u52a0\u5bc6\u7684\u539f\u59cb\u6570\u636e\u5f97\u5230\u7684\u8f93\u51fa\u7ed3\u679c\u662f\u4e00\u6837\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201cA way to delegate processing of your data, without giving away access to it.\u201d  \u2014\u2014\u4e00\u79cd\u4e0d\u9700\u8981\u8bbf\u95ee\u6570\u636e\u672c\u8eab\u5c31\u53ef\u4ee5\u52a0\u5de5\u6570\u636e\u7684\u65b9\u6cd5<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:16px\"><strong>2. \u540c\u6001\u52a0\u5bc6\u7684\u5206\u7c7b<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uff081\uff09\u6839\u636e\u8fd0\u7b97\u5206\u7c7b<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u6ee1\u8db3 f(A)+f(B)=f(A+B)  f(A)+f(B)=f(A+B) \uff0c \u6211\u4eec\u5c06\u8fd9\u79cd\u52a0\u5bc6\u51fd\u6570\u53eb\u505a\u52a0\u6cd5\u540c\u6001<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u6ee1\u8db3 f(A)\u00d7f(B)=f(A\u00d7B)  f(A)\u00d7f(B)=f(A\u00d7B) \uff0c\u6211\u4eec\u5c06\u8fd9\u79cd\u52a0\u5bc6\u51fd\u6570\u53eb\u505a\u4e58\u6cd5\u540c\u6001<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4e00\u4e2a\u52a0\u5bc6\u51fd\u6570f\u53ea\u6ee1\u8db3\u52a0\u6cd5\u540c\u6001\uff0c\u5c31\u53ea\u80fd\u8fdb\u884c\u52a0\u51cf\u6cd5\u8fd0\u7b97<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4e00\u4e2a\u52a0\u5bc6\u51fd\u6570f\u53ea\u6ee1\u8db3\u4e58\u6cd5\u540c\u6001\uff0c\u5c31\u53ea\u80fd\u8fdb\u884c\u4e58\u9664\u6cd5\u8fd0\u7b97<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4e00\u4e2a\u52a0\u5bc6\u51fd\u6570\u540c\u65f6\u6ee1\u8db3\u52a0\u6cd5\u540c\u6001\u548c\u4e58\u6cd5\u540c\u6001\uff0c\u79f0\u4e3a\u5168\u540c\u6001\u52a0\u5bc6\u3002\u90a3\u4e48\u8fd9\u4e2a\u4f7f\u7528\u8fd9\u4e2a\u52a0\u5bc6\u51fd\u6570\u5b8c\u6210\u5404\u79cd\u52a0\u5bc6\u540e\u7684\u8fd0\u7b97(\u52a0\u51cf\u4e58\u9664\u3001\u591a\u9879\u5f0f\u6c42\u503c\u3001\u6307\u6570\u3001\u5bf9\u6570\u3001\u4e09\u89d2\u51fd\u6570)\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uff082\uff09\u6839\u636e\u201c\u652f\u6301\u7684\u8fd0\u7b97\u8303\u56f4\u201d<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u534a\u540c\u6001\u52a0\u5bc6 \uff08Partial Homomorphic Encryption, PHE\uff09\uff1a\u53ea\u652f\u6301\u67d0\u4e9b\u7279\u5b9a\u7684\u8fd0\u7b97\u6cd5\u5219 f ,PHE \u7684\u4f18\u70b9\u662f\u539f\u7406\u7b80\u5355\u3001\u6613\u5b9e\u73b0\uff0c\u7f3a\u70b9\u662f\u4ec5\u652f\u6301\u4e00\u79cd\u8fd0\u7b97(\u52a0\u6cd5\u6216\u4e58\u6cd5)\uff1b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c42\u6b21\u540c\u6001\u52a0\u5bc6\uff08Liveled HE\uff0cLHE\uff09\uff1a\u4e00\u822c\u652f\u6301\u6709\u9650\u6b21\u6570\u7684\u52a0\u5bc6\u7b97\u6cd5,LHE \u7684\u4f18\u70b9\u662f\u540c\u65f6\u652f\u6301\u52a0\u6cd5\u548c\u4e58\u6cd5\uff0c\u5e76\u4e14\u56e0\u4e3a\u51fa\u73b0\u65f6\u95f4\u6bd4 PHE \u665a\uff0c\u6240\u4ee5\u6280\u672f\u66f4\u52a0\u6210\u719f\u3001\u4e00\u822c\u6548\u7387\u6bd4 FHE \u8981\u9ad8\u5f88\u591a\u3001\u548c PHE \u6548\u7387\u63a5\u8fd1\u6216\u9ad8\u4e8e PHE\uff0c\u7f3a\u70b9\u662f\u652f\u6301\u7684\u8ba1\u7b97\u6b21\u6570\u6709\u9650\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5168\u540c\u6001\u52a0\u5bc6 \uff08Fully Homomorphic Encryption, FHE\uff09\uff1a\u652f\u6301\u65e0\u9650\u6b21\u7684\u4efb\u610f\u8fd0\u7b97\u6cd5\u5219 f\uff0cFHE \u6709\u4ee5\u4e0b\u7c7b\u522b\uff1a\u57fa\u4e8e\u7406\u60f3\u683c\u7684 FHE \u65b9\u6848\u3001\u57fa\u4e8e LWE\/RLWE \u7684 FHE \u65b9\u6848\u7b49\u7b49\u3002FHE \u7684\u4f18\u70b9\u662f\u652f\u6301\u7684\u7b97\u5b50\u591a\u5e76\u4e14\u8fd0\u7b97\u6b21\u6570\u6ca1\u6709\u9650\u5236\uff0c\u7f3a\u70b9\u662f\u6548\u7387\u5f88\u4f4e\uff0c\u76ee\u524d\u8fd8\u65e0\u6cd5\u652f\u6491\u5927\u89c4\u6a21\u7684\u8ba1\u7b97\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:16px\"><strong>3. Paillier\u7b97\u6cd5\u6982\u8ff0<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9009\u62e9Paillier\u7684\u539f\u56e0\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b27\u6c0f\u8ddd\u79bb\u7684\u53d8\u4f53-\u5e73\u65b9\u6b27\u6c0f\u8ddd\u79bb\u516c\u5f0f\u4e2d\u4e3b\u8981\u8fd0\u7b97\u5728\u4e8e\u76f8\u52a0\u3001\u5e7f\u6cdb\u7684\u5e94\u7528\u6027\u3001\u6700\u91cd\u8981\u7684\uff1a\u8001\u5e08\u6307\u5b9a\u7684hhh<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\"><strong>(1) \u5bc6\u94a5\u751f\u6210<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">a.  \u968f\u673a\u9009\u62e9\u4e24\u4e2a\u8d28\u6570 p \u548c q \u6ee1\u8db3 gcd( pq, (p &#8211; 1)(q &#8211; 1) ) = 1\uff0c\u8fd9\u4e2a\u6761\u4ef6\u4fdd\u8bc1\u4e86 p \u548c q \u7684\u957f\u5ea6\u76f8\u7b49\uff1b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">b. \u8ba1\u7b97 N=pq \u548c \u03bb=lcm(p\u22121,q\u22121)\uff0c\u5176\u4e2d lcm \u8868\u793a\u6700\u5c0f\u516c\u500d\u6570\uff1b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">c. \u968f\u673a\u9009\u62e9 g\u2208Z\u2217N^2\uff0c\u6ee1\u8db3 <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image.png\" alt=\"\" class=\"wp-image-880\" width=\"155\" height=\"20\" srcset=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image.png 303w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-300x39.png 300w\" sizes=\"auto, (max-width: 155px) 100vw, 155px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u540e\u9762\u4f1a\u53d1\u73b0\u8fd9\u91cc\u7684 g = n+1\u3002\u5176\u4e2d Z \u8868\u793a\u6574\u6570\uff0c\u4e0b\u6807\u8868\u793a\u8be5\u6574\u6570\u96c6\u5408\u91cc\u6709\u591a\u5c11\u4e2a\u5143\u7d20\uff1b<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-1.png\" alt=\"\" class=\"wp-image-881\" width=\"225\" height=\"22\" srcset=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-1.png 603w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-1-300x29.png 300w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u516c\u94a5\u4e3a( N, g )\uff1b\u79c1\u94a5\u4e3a( \u03bb, \u03bc )\u3002<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\"><strong>(2) \u52a0\u5bc6\u8fc7\u7a0b<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u4efb\u610f\u660e\u6587\u6d88\u606fm\uff0c\u4efb\u610f\u9009\u62e9\u4e00\u968f\u673a\u6570 r <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8ba1\u7b97\u5f97\u5230\u5bc6\u6587 c \uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-2.png\" alt=\"\" class=\"wp-image-882\" width=\"210\" height=\"30\" srcset=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-2.png 549w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-2-300x43.png 300w\" sizes=\"auto, (max-width: 210px) 100vw, 210px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\"><strong>(3) \u89e3\u5bc6\u8fc7\u7a0b<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u5bc6\u6587c\uff0c\u8ba1\u7b97\u5f97\u5230\u660e\u6587 m \uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-3-1024x98.png\" alt=\"\" class=\"wp-image-883\" width=\"480\" height=\"45\" srcset=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-3-1024x98.png 1024w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-3-300x29.png 300w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-3-768x74.png 768w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-3-670x64.png 670w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-3.png 1144w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\" id=\"\u4e8c-paillier\u7b97\u6cd5\u6982\u8ff0\">\u4e8c\u3001\u540c\u6001\u52a0\u5bc6\u4e0b\u7684\u4eba\u8138\u8bc6\u522b\u65b9\u6848\u63a2\u7a76<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u6bd4\u8f83\u719f\u6089\u76f4\u63a5\u8c03\u7528dlib\u8fdb\u884c\u8bc6\u522b\uff0c\u56e0\u6b64\u6682\u4ee5\u4f5c\u4e3a\u4eba\u8138\u8bc6\u522b\u90e8\u5206\u7684\u57fa\u7840\u65b9\u6848<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:16px\"><strong>1. \u57fa\u672c\u8bc6\u522b\u8fc7\u7a0b<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff081\uff09\u751f\u6210\u5df2\u77e5\u4eba\u8138\u6570\u636e\u5e93<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8ba1\u7b97\u5df2\u77e5\u4eba\u8138\u7279\u5f81\u5411\u91cf\u5e76\u4fdd\u5b58<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff082\uff09\u8bc6\u522b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06\u5f85\u8bc6\u522b\u5bf9\u8c61\u7684\u4eba\u8138\u7279\u5f81\u4e0e\u6570\u636e\u5e93\u4e2d\u7684\u5df2\u77e5\u4eba\u8138\u7279\u5f81\u8ba1\u7b97\u6b27\u6c0f\u8ddd\u79bb\uff0c\u6839\u636e\u6b64\u5148\u8bbe\u8ba1\u597d\u7684\u9608\u503c\u5224\u5b9a\u662f\u5426\u4e3a\u540c\u4e00\u4eba\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:16px\"><strong>2. \u7ed3\u5408\u540c\u6001\u52a0\u5bc6\u7684\u8bc6\u522b\u8fc7\u7a0b<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u57fa\u672c\u8bbe\u60f3\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff081\uff09\u672c\u5730\u751f\u6210\u4eba\u8138\u6570\u636e\u5e93\u7684\u7279\u5f81 mi\uff0c\u7ecf\u52a0\u5bc6\u540e\u4e0a\u4f20\u81f3\u4e91\u670d\u52a1\u5668\u4eba\u8138\u7279\u5f81\u5bc6\u6587\u6570\u636e\u5e93 ci\uff0ci=1~n\uff1b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff082\uff09\u5f85\u8bc6\u522b\u5bf9\u8c61\u7684\u7279\u5f81\u5411\u91cfmt\u5728\u672c\u5730\u52a0\u5bc6\u4e3act\uff0c\u5c06ct\u4e0a\u4f20\u81f3\u4e91\u670d\u52a1\u5668\uff1b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff083\uff09\u4e91\u670d\u52a1\u5668\u4e2d\u5c06ct\u4e0en\u4e2a\u5df2\u6709\u4eba\u8138\u7279\u5f81ci\u8ba1\u7b97\u6b27\u6c0f\u8ddd\u79bb\uff0c\u5e76\u6839\u636e\u9608\u503c\u6bd4\u8f83\uff0c\u4ece\u800c\u8fd4\u56de\u7ed3\u679c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ps\uff1a\u8be5\u65b9\u6848\u5927\u591a\u4e3a\u81ea\u5df1\u7684\u8bbe\u60f3\uff0c\u671f\u95f4\u53c2\u8003\u4e86\u8bba\u6587\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u300aImproved Post-quantum-secure Face Template Protection System Based on Packed Homomorphic Encryption<\/em>\u300b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f46\u662f\u6211\u4eec\u6709\u5f88\u591a\u95ee\u9898\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u7279\u5f81\u5411\u91cf\u5f80\u5f80\u4e3a\u6d6e\u70b9\u578b\uff0c\u56e0\u6b64\u6211\u4eec\u5e94\u5c06\u5176\u538b\u7f29\u91cf\u5316\u4e3aINT8\u7684\u6574\u578b\u6570\u636e\uff0c\u5426\u5219\u65e0\u6cd5\u6ee1\u8db3\u540c\u6001\u52a0\u5bc6\u4e2d\u6a21\u8fd0\u7b97\uff1b<\/li><li>\u540c\u6001\u52a0\u5bc6\u4e0b\u7684\u5e73\u65b9\u6b27\u6c0f\u8ddd\u79bb\u5e94\u8be5\u600e\u4e48\u5b9e\u73b0\uff1b<\/li><li>&#8230;&#8230;<\/li><\/ul>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\" id=\"\u4e8c-paillier\u7b97\u6cd5\u6982\u8ff0\">\u4e09\u3001\u96be\u70b9\u89e3\u51b3<br><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:16px\"><strong> 1. \u91cf\u5316<\/strong>\uff08<em>Quantization<\/em>\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6839\u636e<em>Hiroto Tamiya<\/em>\u7b49\u4eba\u5728\u8bba\u6587<em>\u300aImproved Post-quantum-secure Face Template Protection System Based on Packed Homomorphic Encryption\u300b<\/em>\u4e2d\u6240\u5199\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-4.png\" alt=\"\" class=\"wp-image-901\" width=\"431\" height=\"238\" srcset=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-4.png 530w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-4-300x166.png 300w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u8be5\u65b9\u6cd5\u5c06\u6d6e\u70b9\u6570\u901a\u8fc7max\u548cmin\u503c\u5f52\u4e00\u5316\uff0c\u6309\u7167\u6587\u4e2d\u610f\u601d\u6211\u4eec\u5e94\u627e\u53d6\u6570\u636e\u96c6\u4e2d\u5404\u7279\u5f81\u7684max\u4e0emin\u503c\uff0c\u7531\u4e8e\u8be5\u8bba\u6587\u7528\u7684\u662fFacenet\u6a21\u578b\uff0c\u6211\u5c1d\u8bd5\u5bf9\u5176\u6240\u7528\u6570\u636e\u96c6\u8fdb\u884c\u63d0\u53d6\uff0c\u4f46\u9700\u8981\u505a\u7684\u5de5\u4f5c\u56e0\u4e0d\u719f\u800c\u6781\u5176\u590d\u6742\uff0c\u9000\u800c\u6c42\u5176\u6b21\uff0c\u4e89\u53d6\u91c7\u7528\u5176\u4ed6\u7684\u91cf\u5316\u65b9\u5f0f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u7531\u6b64\u57fa\u7840\uff0c\u6211\u5728\u7f51\u4e0a\u627e\u5bfb\u5230\u4e86\u8fd9\u6837\u7684\u91cf\u5316\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-5.png\" alt=\"\" class=\"wp-image-905\" width=\"575\" height=\"170\" srcset=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-5.png 872w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-5-300x89.png 300w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-5-768x227.png 768w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-5-670x198.png 670w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u53c2\u8003\u94fe\u63a5\u5982\u4e0b\uff1a<a href=\"https:\/\/blog.csdn.net\/niaolianjiulin\/article\/details\/82764511\">https:\/\/blog.csdn.net\/niaolianjiulin\/article\/details\/82764511<\/a><\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">\u56db\u3001\u5b9e\u73b0\u5c1d\u8bd5<\/h2>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">\u4e00\u3001\u91cf\u5316\uff08<em>Quantization<\/em>\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6682\u4e14\u6309\u7167\u5982\u56fe\u65b9\u6848<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-5.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5229\u7528python\u5b9e\u73b0\u672c\u65b9\u6848\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u91cf\u5316 \u5c06FLOAT32\u7279\u5f81\u8f6c\u5316\u4e3aINT8\n# Kisna 22.2.16\n\nimport cv2\nimport os\nimport dlib\nfrom pandas import read_csv\nfrom skimage import io\nimport csv\nimport numpy as np\n\n# \u91cf\u5316\u53c2\u6570\nk = 1e17 # \u6216\u800580\n\nclass Quantization():\n    def quan(x): # \u7b80\u5355\u7684\u91cf\u5316\n        y = x*k\n        y = int(y)\n        return y\n\n    def read_csv(): # \u8bfb\u53d6\u7279\u5f81.csv\u5165\u5217\u8868\uff0c\u65b9\u4fbf\u7edf\u4e00\u91cf\u5316\u8f93\u51fa\n        # f = open('.\/data\/features_all.csv', 'r')\n        nd = np.genfromtxt('.\/data\/features_all.csv', delimiter=',', skip_header=True)\n        final_list = nd.tolist()\n        return final_list\n\n    def quantization():\n        personlist = Quantization.read_csv()\n        for i in range(0,128):\n            personlist&#91;i] = Quantization.quan(personlist&#91;i])\n        return personlist\n\npersonlist = Quantization.quantization()\nprint(personlist)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6548\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"953\" height=\"557\" src=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-8.png\" alt=\"\" class=\"wp-image-980\" srcset=\"http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-8.png 953w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-8-300x175.png 300w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-8-768x449.png 768w, http:\/\/43.142.23.155\/wp-content\/uploads\/2022\/02\/image-8-670x392.png 670w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5173\u4e8e\u53c2\u6570\u7684\u9009\u53d6\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f88\u660e\u663e\u5f53\u524d\u8fd9\u4e2a\u53c2\u6570\u4f1a\u4f7f\u5f97\u4e4b\u540e\u7684\u540c\u6001\u52a0\u5bc6\u4e2d\u4ee3\u7801\u5b9e\u7528\u6027\u548c\u6548\u7387\u53d8\u5f97\u7279\u522b\u4f4e\uff0c\u4e0d\u8fc7\u8fd9\u81ea\u7136\u4e5f\u662f\u76ee\u524d\u4fdd\u62a4\u6570\u636e\u5b8c\u6574\u6027\u7684\u6700\u597d\u53c2\u6570<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540e\u7eed\u53ef\u4ee5\u6839\u636e\u60c5\u51b5\u914c\u60c580\u3001160\u751a\u81f3\u66f4\u9ad8\uff0c\u76f4\u81f3\u8c03\u6574\u51fa\u6700\u597d\u7684\u53c2\u6570<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">\u4e8c\u3001\u540c\u6001\u52a0\u5bc6\u5b9e\u73b0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6478\u9c7c\u4e2d&#8230;\u672a\u5b8c\u5f85\u7eed<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u65b0\u7684\u89e3\u51b3\u65b9\u6848\u5df2\u51fa\uff0c\u8be6\u60c5\u79fb\u6b65\u4e0b\u4e00\u7bc7\u6587\u7ae0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u6982\u8ff0 1. \u540c\u6001\u52a0\u5bc6\u7684\u6982\u5ff5 \u57281978\u5e74\uff0cRon Rivest, Leonard Adleman, \u4ee5\u53caMichael L. Dertouzos\u4ee5\u94f6\u884c\u4e3a\u5e94\u7528\u80cc\u666f\u63d0\u51fa\u4e86\u540c\u6001\u52a0\u5bc6\uff08Homomorphi&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47,7,39],"tags":[45,46,21,14,29],"class_list":["post-876","post","type-post","status-publish","format-standard","hentry","category-47","category-7","category-39","tag-cv","tag-46","tag-21","tag-14","tag-29"],"_links":{"self":[{"href":"http:\/\/43.142.23.155\/index.php?rest_route=\/wp\/v2\/posts\/876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/43.142.23.155\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/43.142.23.155\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/43.142.23.155\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/43.142.23.155\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=876"}],"version-history":[{"count":25,"href":"http:\/\/43.142.23.155\/index.php?rest_route=\/wp\/v2\/posts\/876\/revisions"}],"predecessor-version":[{"id":1390,"href":"http:\/\/43.142.23.155\/index.php?rest_route=\/wp\/v2\/posts\/876\/revisions\/1390"}],"wp:attachment":[{"href":"http:\/\/43.142.23.155\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/43.142.23.155\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=876"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/43.142.23.155\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}