{"id":14954,"date":"2022-04-28T17:31:33","date_gmt":"2022-04-28T09:31:33","guid":{"rendered":"https:\/\/www.circuspi.com\/?p=14954"},"modified":"2022-05-17T08:46:45","modified_gmt":"2022-05-17T00:46:45","slug":"pixelbit-unit3","status":"publish","type":"post","link":"https:\/\/www.circuspi.com\/index.php\/2022\/04\/28\/pixelbit-unit3\/","title":{"rendered":"Pixel:Bit \u6559\u5b78(\u4e09)\uff0d\u624b\u628a\u624b\u6559\u5b78 Camera Web Server \u76f8\u6a5f\u61c9\u7528"},"content":{"rendered":"\n<p><style>\n\/* ###\u5be6\u9a57\u4e0b\u4e00\u5217### *\/\n\na:link {color:#0695e4\n;}    \/* \u8a2d\u5b9a\u5c1a\u672a\u9ede\u95b1\u904e\u7684\u9023\u7d50\u6a23\u5f0f *\/\na:visited {color:#0695e4\n;} \/* \u8a2d\u5b9a\u904e\u53bb\u66fe\u7d93\u95b1\u904e\u7684\u9023\u7d50 *\/\na:hover {color:#0695e4\n;}   \/* \u8a2d\u5b9a\u6ed1\u9f20\u6e38\u6a19\u6307\u5728\u9023\u7d50\u4f4d\u7f6e\u4e0a\u7684\u6a23\u5f0f *\/\na:active {color:#0000BB;}  \/* \u8a2d\u5b9a\u4e0a\u9ede\u64ca\u904e\u7684\u9023\u7d50\u6a23\u5f0f *\/\n<\/style><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"526\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2022\/05\/0512_1000x526.jpg\" alt=\"\" class=\"wp-image-15436\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u7c21\u4ecb<\/h2>\n\n\n\n<p>\u672c\u7bc7\u6559\u5b78\u8981\u5e36\u9818\u8b80\u8005\u5011\u4e00\u8d77\u904b\u7528 Pixel:Bit \u4e0a\u5167\u5efa\u7684 500 \u842c\u50cf\u7d20\u93e1\u982d\uff0c\u5be6\u4f5c ESP32 \u5b98\u65b9\u7bc4\u4f8b CameraWebServer\uff0c\u5c07\u6703\u624b\u628a\u624b\u7684\u5e36\u8457\u5927\u5bb6\u9032\u884c\u7d30\u90e8\u4f7f\u7528\u6559\u5b78\uff0c\u9664\u4e86\u76f8\u6a5f\u7684\u8a2d\u5b9a\u64cd\u4f5c\u5916\uff0c\u9084\u5305\u542b\u4e86\u4eba\u81c9\u5075\u6e2c\u8207\u4eba\u81c9\u8b58\u5225\u7b49\u64cd\u4f5c\u3002\u85c9\u7531\u719f\u6089\u76f8\u6a5f\u529f\u80fd\u7684\u64cd\u4f5c\uff0c\u5c07\u6703\u6709\u52a9\u65bc\u5f8c\u7e8c\u958b\u767c\u4f7f\u7528 Pixel:Bit \u5be6\u4f5c\u5404\u985e\u578b\u7684\u76f8\u6a5f\u5c08\u6848\uff01\u672c\u6559\u5b78\u70ba ESP32 \u539f\u751f\u7bc4\u4f8b\u4fee\u6539\u800c\u4f86\uff0c\u82e5\u662f\u4f7f\u7528 ESP32-CAM \u64cd\u4f5c\u4e5f\u662f\u76f8\u5bb9\u7684\uff0c\u53ea\u5728\u4f7f\u7528\u4e0d\u540c\u7684\u651d\u5f71\u93e1\u982d\u4e4b\u5dee\u7570\u800c\u5df2\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u6240\u9700\u8a2d\u5099<\/h2>\n\n\n\n<p>1. Pixel:Bit x1<\/p>\n\n\n\n<p>2. Micro USB to USB Type-A \u6578\u64da\u50b3\u8f38\u7dda x1<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u7bc4\u4f8b\u7a0b\u5f0f\u78bc<\/h2>\n\n\n\n<p>\u9996\u5148\u9700\u8981\u5728 <a href=\"https:\/\/www.arduino.cc\/en\/software\/\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino IDE<\/a> \u4e0a\u5b89\u88dd\u597d ESP32 \u958b\u767c\u677f\u652f\u63f4\u7a0b\u5f0f\u5eab\uff0c\u82e5\u4e0d\u6e05\u695a\u5982\u4f55\u5b89\u88dd\u7684\u5925\u4f34\u5011\u53ef\u4ee5\u53c3\u8003\u300c<a href=\"https:\/\/www.circuspi.com\/index.php\/2022\/04\/27\/pixelbit-unit2\/\" target=\"_blank\" rel=\"noreferrer noopener\">Pixel:Bit \u6559\u5b78(\u4e8c) \u2013 ESP32 \u8207 ATmega328P \u7684 UART \u901a\u8a0a<\/a>\u300d\u6559\u5b78\u3002\u672c\u6559\u5b78\u5b8c\u6574\u7bc4\u4f8b\u7a0b\u5f0f\u53ef\u7531 <a href=\"https:\/\/github.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub<\/a> \u4e0a\u53d6\u5f97 <a href=\"https:\/\/github.com\/CIRCUSPi\/PixelBit_Example\">PixelBit \u7bc4\u4f8b\u7a0b\u5f0f<\/a>\uff0c\u5167\u542b Pixel:Bit \u6240\u6709\u7bc4\u4f8b\uff0c\u4e26\u4e14\u6703\u4e0d\u5b9a\u6642\u66f4\u65b0\u3002<\/p>\n\n\n\n<p>\u672c\u7bc7\u6587\u7ae0\u5c07\u6703\u4f7f\u7528\u5230\u5176\u4e2d\u300c02_CameraWebServer\u300d\u7684\u7a0b\u5f0f\u78bc\u3002\u70ba\u65b9\u4fbf\u8d77\u898b\uff0c\u6211\u5011\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f09\u6574\u500b\u7bc4\u4f8b\u7a0b\u5f0f\u58d3\u7e2e\u6a94\uff0c\u518d\u89e3\u58d3\u7e2e\u5230\u96fb\u8166\u88e1\u7684 Arduino \u8cc7\u6599\u593e\u4e0b\uff0c \u7bc4\u4f8b\u7a0b\u5f0f\u5982\u4e0b\u5716\u6240\u793a\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2022\/04\/1.jpg\" alt=\"Pixel:Bit \u6559\u5b78(\u4e09)\uff0dCamera Web Server \u76f8\u6a5f\u61c9\u7528\" class=\"wp-image-14955\" width=\"648\" height=\"409\"\/><figcaption>Pixel:Bit \u7bc4\u4f8b\u7a0b\u5f0f\u6a94\u6848\u5eab<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u7bc4\u4f8b\u7a0b\u5f0f\u4f7f\u7528<\/h3>\n\n\n\n<p>\u4f7f\u7528 Arduino IDE \u958b\u555f PixelBit_CameraWebServer_ESP32\uff0c\u5728\u7a0b\u5f0f\u78bc 25\u300126 \u884c\u7684\u5730\u65b9\uff0c\u586b\u5165\u6240\u8655\u74b0\u5883 Wi-Fi \u7684 SSID \u8207\u5bc6\u78bc\u8a2d\u5b9a\uff08<strong>\u6ce8\u610f\uff01\u5927\u5c0f\u5beb\u6709\u5206\u5225<\/strong>\uff09\uff0c\u5b8c\u6210\u5f8c\u9078\u5b9a\u5c0d\u61c9\u7684\u958b\u767c\u677f\uff08AI Thinker ESP32-CAM\uff09\u4ee5\u53ca\u5e8f\u5217\u57e0\u5f8c\uff0c\u4e26\u5c07 UART Selector \u5207\u5230 ESP32 \u7684\u4f4d\u7f6e\uff0c\u9ede\u9078 Arduino IDE \u7684\u4e0a\u50b3\u5716\u793a\u9032\u884c\u7a0b\u5f0f\u7684\u4e0a\u50b3\u8207\u71d2\u9304\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2022\/04\/2.jpg\" alt=\"Pixel:Bit \u6559\u5b78(\u4e09)\uff0dCamera Web Server \u76f8\u6a5f\u61c9\u7528\" class=\"wp-image-14956\" width=\"440\" height=\"266\"\/><figcaption>\u586b\u5165 Wi-Fi SSID \u540d\u7a31\u8207\u5bc6\u78bc<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u71d2\u9304\u5b8c\u6210\u5f8c Pixel:Bit \u6703\u81ea\u52d5\u91cd\u65b0\u958b\u6a5f\uff0c\u53ef\u4ee5\u5728 Arduino IDE \u5e8f\u5217\u57e0\u76e3\u63a7\u8996\u7a97\u4e0a\u770b\u5230\u5176\u6240\u5f97\u5230\u7684 IP \u4f4d\u7f6e\u3002\u82e5\u4e00\u76f4\u91cd\u8907\u986f\u793a\u300c.\u300d\u7684\u7b26\u865f\uff0c\u53ef\u80fd\u662f SSID \u8207\u5bc6\u78bc\u8f38\u5165\u932f\u8aa4\uff0c\u6216\u8005\u662f\u6240\u5728\u4f4d\u7f6e Wi-Fi \u8a0a\u865f\u4e0d\u826f\uff0c\u9020\u6210\u9023\u7dda\u6642\u9593\u8f03\u9577\u3002\u63a5\u8457\u958b\u555f\u700f\u89bd\u5668\u8f38\u5165 IP \u4f4d\u7f6e\uff0c\u5c31\u53ef\u4ee5\u986f\u793a Camera WEB UI \u7684\u4ecb\u9762\u4e86\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2022\/04\/3.jpg\" alt=\"Pixel:Bit \u6559\u5b78(\u4e09)\uff0dCamera Web Server \u76f8\u6a5f\u61c9\u7528\" class=\"wp-image-14957\" width=\"596\" height=\"400\"\/><figcaption>\u5e8f\u5217\u57e0\u986f\u793a Pixel:Bit \u4e4b IP \u4f4d\u7f6e<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u76f8\u6a5f\u53c3\u6578\u8a2d\u5b9a Camera Setting<\/h3>\n\n\n\n<p>\u7db2\u9801\u958b\u555f\u5f8c\u53ef\u4ee5\u770b\u5230\u5de6\u5074\u6709\u4e00\u6574\u6392\u7684\u53c3\u6578\u8a2d\u5b9a\u9078\u9805\uff0c\u5404\u9805\u76f8\u6a5f\u7d30\u90e8\u53c3\u6578\u53ef\u4ee5\u85c9\u7531\u4e0b\u62c9\u5f0f\u9078\u55ae\u6216\u662f\u6ed1\u687f\u9032\u884c\u8a2d\u5b9a\uff0c\u53f3\u5074\u7a7a\u767d\u8655\u4e5f\u53ef\u4ee5\u986f\u793a\u5373\u6642\u7684\u756b\u9762\u9810\u89bd\u3002\u4e0b\u65b9\u6709\u4e09\u500b\u6309\u9215\u300cGet Still\u300d\u3001\u300cStrat Stream\u300d\u3001\u300cEnroll Face\u300d\u5206\u5225\u53ef\u4ee5\u53d6\u5f97\u55ae\u5f35\u7167\u7247\u622a\u5716\u3001\u958b\u555f\u5373\u6642\u4e32\u6d41\u3001\u52a0\u5165\u4eba\u81c9\u8a2d\u5b9a\uff08\u5f8c\u7e8c\u6703\u9032\u884c\u8a73\u7d30\u7684\u8aaa\u660e\uff09\u7b49\u529f\u80fd\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2022\/04\/4.jpg\" alt=\"Pixel:Bit \u6559\u5b78(\u4e09)\uff0dCamera Web Server \u76f8\u6a5f\u61c9\u7528\" class=\"wp-image-14958\" width=\"628\" height=\"536\"\/><figcaption>Camera WEB Server \u7684\u7db2\u9801\u5716\u5f62\u5316\u4ecb\u9762<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u63a5\u4e0b\u4f86\u4ecb\u7d39\u5e7e\u500b\u5e38\u7528\u7684\u76f8\u6a5f\u8a2d\u5b9a\uff1a<\/p>\n\n\n\n<ul><li>Resolution \u5f71\u50cf\u89e3\u6790\u5ea6\uff1aPixel:Bit \u6240\u642d\u914d\u7684 500 \u842c\u756b\u7d20\u76f8\u6a5f OV5640\uff0c\u6700\u9ad8\u89e3\u6790\u5ea6\u53ef\u9054 2560&#215;1920 \u7684 2K \u5f71\u50cf\uff0c\u76f8\u8f03\u65bc\u6700\u9ad8 FHD\uff081920 x 1080\uff09\u7684 OV2640\uff0c\u9664\u4e86\u50cf\u7d20\u8f03\u9ad8\u5916\uff0cOV5640 \u9084\u53ef\u4ee5\u505a\u5230\u76f4\u7acb\u5f0f\u7684 P FHD\uff081080 x 1920\uff09\uff0c\u4e5f\u6709\u5229\u65bc\u884c\u52d5\u88dd\u7f6e\u5f71\u7247\u7d20\u6750\u7684\u62cd\u651d\u3002\u7576\u7136\u89e3\u6790\u5ea6\u8d8a\u9ad8\u6240\u4f9d\u8cf4\u7684\u8655\u7406\u80fd\u529b\u4e5f\u8d8a\u9ad8\uff0c\u9810\u89bd\u756b\u9762\u4e2d\u7684\u5ef6\u9072\u4e5f\u6703\u8d8a\u9ad8\u3002\u9019\u908a\u5c31\u53ef\u4ee5\u4f9d\u64da\u8981\u505a\u55ae\u5f35\u7167\u7247\u62cd\u651d\u6216\u662f\u5373\u6642\u4e32\u6d41\u4f86\u6c7a\u5b9a\u5f71\u50cf\u7684\u89e3\u6790\u5ea6\u3002<\/li><li>Quality \u5f71\u50cf\u54c1\u8cea\uff1a\u7bc4\u570d\u70ba 4~63 \u4e4b\u9593\uff0c\u6578\u503c\u8d8a\u5c0f\u4ee3\u8868\u5f71\u50cf\u54c1\u8cea\u8d8a\u597d\uff0c\u4f46\u76f8\u5c0d\u4e5f\u6703\u8017\u8cbb\u66f4\u591a\u7684\u904b\u7b97\u8cc7\u6e90\uff0c\u4e00\u822c\u5efa\u8b70\u8a2d\u5b9a\u5728<strong> 10 ~ 20 <\/strong>\u4e4b\u9593\uff0c\u53d6\u5f97\u6548\u80fd\u8207\u54c1\u8cea\u4e4b\u9593\u7684\u5e73\u8861\u3002<\/li><li>Brightness \u4eae\u5ea6\uff1a\u6578\u503c\u7bc4\u570d -3 ~ 3 \u4e4b\u9593\uff0c\u6578\u503c\u8d8a\u5927\u4ee3\u8868\u4eae\u5ea6\u8d8a\u9ad8\u3002<\/li><li>Contrast \u5c0d\u6bd4\uff1a\u6578\u503c\u7bc4\u570d -3 ~ 3 \u4e4b\u9593\uff0c\u6578\u503c\u8d8a\u5927\u4ee3\u8868\u5c0d\u6bd4\u8d8a\u9ad8\u3002<\/li><li>Saturation \u98fd\u548c\uff1a\u6578\u503c\u7bc4\u570d -4 ~ 4 \u4e4b\u9593\uff0c\u6578\u503c\u8d8a\u5927\u4ee3\u8868\u8272\u5f69\u8d8a\u5448\u98fd\u548c\u7d05\u6f64\u3002<\/li><li>Special Effect \u7279\u6548\uff1a\u53ef\u4ee5\u9078\u64c7\u8ca0\u7247\u3001\u7070\u968e\u3001\u7d05\u8272\u8abf\u3001\u7da0\u8272\u8abf\u3001\u85cd\u8272\u8abf\u7b49\u6548\u679c\u3002<\/li><li>AWB Enable \u767d\u5e73\u8861\uff1a\u958b\u555f\u5f8c\u6703\u555f\u7528\u81ea\u52d5\u767d\u5e73\u8861\uff0c\u4e5f\u53ef\u540c\u6642\u958b\u555f\u4e0b\u65b9 Manual AWB \u624b\u52d5\u767d\u5e73\u8861\uff0c\u9032\u884c\u624b\u52d5\u9078\u64c7\u767d\u5e73\u8861 profile\uff0c\u5982\u6674\u5929\uff08Sunny\uff09\u3001\u9670\u5929\uff08Cloudy\uff09\u3001\u65e5\u5149\u71c8\uff08Office\uff09\u3001\u93a2\u7d72\u71c8\uff08Home\uff09\u7b49\u3002<\/li><li>H-Mirror &amp; V-Flip\uff1a\u6c34\u5e73\u93e1\u50cf\u8207\u5782\u76f4\u7ffb\u8f49\uff0c\u82e5\u5c07 Pixel:Bit \u7576\u4f5c\u76f8\u6a5f\u6216\u662f\u5012\u7f6e\u64fa\u653e\u7684\u60c5\u6cc1\u4e0b\u6b64\u5169\u500b\u9078\u9805\u975e\u5e38\u5be6\u7528\u3002<\/li><\/ul>\n\n\n\n<p>\u5176\u9918\u9032\u968e\u529f\u80fd\u4e00\u822c\u72c0\u6cc1\u4e0b\u6bd4\u8f03\u7528\u4e0d\u5230\uff0c\u6709\u8208\u8da3\u7684\u8b80\u8005\u4e5f\u53ef\u4ee5\u81ea\u884c\u7814\u7a76\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u5f71\u50cf\u4e32\u6d41\u8207\u622a\u5716 Stream and Capture<\/h2>\n\n\n\n<p>\u9664\u4e86\u524d\u9762\u63d0\u53ca\u7684\u76f8\u6a5f\u53c3\u6578\u8a2d\u5b9a\u8207\u9810\u89bd\u4e4b\u5916\uff0c\u6b64\u7bc4\u4f8b\u4e5f\u63d0\u4f9b HTTP API \u53ef\u4ee5\u76f4\u63a5\u900f\u904e\u7db2\u5740\u547c\u53eb\u9032\u884c\u6307\u4ee4\u64cd\u4f5c\u3001\u5f71\u50cf\u4e32\u6d41\u6216\u662f\u5f71\u50cf\u622a\u5716\u3002\u5728\u7db2\u5740\u5217\u8f38\u5165\u300c<strong>http:\/\/&lt;IP&gt;:81\/stream<\/strong>\u300d\uff0c\u5373\u53ef\u7528\u4e32\u6d41\u7684\u65b9\u5f0f\u986f\u793a\u5f71\u50cf\uff0c\u5f71\u50cf\u6703\u5982\u540c\u524d\u9801\u6240\u8a2d\u5b9a\u7684\u53c3\u6578\uff08\u5982\u89e3\u6790\u5ea6\u3001\u756b\u8cea\u7b49\uff09\u5448\u73fe\u3002\u9019\u7a2e\u65b9\u5f0f\u7684\u597d\u8655\u5c31\u662f\u53ef\u4ee5\u4e32\u63a5\u7d66\u5176\u4ed6\u7cfb\u7d71\u9032\u884c\u4f7f\u7528\uff0c\u50cf\u662f\u63a5\u5165 Home Assistant \u667a\u6167\u5bb6\u5ead\u7cfb\u7d71\uff0c\u5c31\u80fd\u8b93\u5b83\u8b8a\u6210\u4e00\u500b\u76e3\u8996\u5668\u88dd\u7f6e\uff0c\u5f8c\u7e8c\u6709\u6a5f\u6703\u6211\u5011\u6703\u5c07\u6b64\u61c9\u7528\u7368\u7acb\u505a\u4e00\u7bc7\u6559\u5b78\u6587\u8207\u5927\u5bb6\u5206\u4eab\u3002<\/p>\n\n\n\n<p>\u82e5\u662f\u5728\u7db2\u5740\u5217\u8f38\u5165\u300c<strong>http:\/\/&lt;IP&gt;\/capture<\/strong>\u300d\u5247\u53ef\u4ee5\u986f\u793a JPG \u683c\u5f0f\u7684\u5f71\u50cf\u622a\u5716\uff0c\u9664\u4e86\u80fd\u5132\u5b58\u5716\u7247\u6a94\u6848\uff0c\u4e5f\u80fd\u65b9\u4fbf\u5176\u4ed6\u8edf\u9ad4\u547c\u53eb\u6b64 API \u4f86\u53d6\u5f97 Pixel:Bit \u4e0a\u7684\u5373\u6642\u5f71\u50cf\u622a\u5716\u3002\u82e5\u8981\u6293\u53d6 BMP \u683c\u5f0f\u7684\u622a\u5716\u5247\u4f7f\u7528\u300c<strong>http:\/\/&lt;IP&gt;\/bmp<\/strong>\u300d\u3002<\/p>\n\n\n\n<p>\u9664\u6b64\u4e4b\u5916\uff0c\u4e5f\u53ef\u4ee5\u547c\u53eb\u300c<strong>http:\/\/&lt;IP&gt;\/control?var=&lt;key&gt;&amp;val=&lt;val&gt;<\/strong>\u300d\u4f86\u8abf\u6574\u76f8\u6a5f\u53c3\u6578\uff0c\u5176\u4e2d &lt;key&gt; \u4ee3\u8868\u6307\u4ee4\u540d\u7a31\uff0c &lt;val&gt; \u4ee3\u8868\u6578\u503c\uff0c\u8209\u4f8b\u4f86\u8aaa\uff0c\u60f3\u8981\u4fee\u6539\u4eae\u5ea6\u53c3\u6578\u70ba 2\uff0c\u5247\u547c\u53eb\u300chttp:\/\/&lt;IP&gt;\/control?var=brightness&amp;val=2\u300d\uff1b\u6216\u662f\u60f3\u8981\u5c07\u89e3\u6790\u5ea6\u4fee\u6539\u70ba HD \u5927\u5c0f\uff0c\u5247\u8f38\u5165\u300chttp:\/\/&lt;IP&gt;\/control?var=framesize&amp;val=11\u300d\u3002\u9019\u4e9b API \u90fd\u53ef\u4ee5\u8b93\u4f7f\u7528\u8005\u5728\u9060\u7aef\u4e0d\u9700\u8981\u767b\u5165 WEB \u4ecb\u9762\u7684\u60c5\u6cc1\u4e0b\uff0c\u5373\u53ef\u4ee5\u8b8a\u66f4\u76f8\u6a5f\u53c3\u6578\uff0c\u76f8\u7576\u65b9\u4fbf\u3002\u82e5\u8981\u6df1\u5165\u4e86\u89e3\u5b8c\u6574 API \u53c3\u6578\u53ef\u4ee5\u53c3\u95b1<a href=\"https:\/\/github.com\/easytarget\/esp32-cam-webserver\/blob\/master\/API.md\" target=\"_blank\" rel=\"noreferrer noopener\">\u6b64\u6587\u4ef6<\/a>\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"480\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2022\/04\/2.gif\" alt=\"Pixel:Bit \u6559\u5b78(\u4e09)\uff0dCamera Web Server \u76f8\u6a5f\u61c9\u7528\" class=\"wp-image-14961\"\/><figcaption>Pixel:Bit \u4e32\u6d41\u5f71\u50cf<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"478\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2022\/04\/1-1.gif\" alt=\"Pixel:Bit \u6559\u5b78(\u4e09)\uff0dCamera Web Server \u76f8\u6a5f\u61c9\u7528\" class=\"wp-image-14960\"\/><figcaption> \u85c9\u7531 control API \u4fee\u6539 Pxiel:Bit\u53c3\u6578 <\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u4eba\u81c9\u5075\u6e2c\u8207\u4eba\u81c9\u8b58\u5225 Face Detection &amp; Face Recognition<\/h2>\n\n\n\n<p>\u9664\u4e86\u5f71\u50cf\u7684\u9060\u7aef\u4e32\u6d41\u8207\u63a7\u5236\uff0c\u7bc4\u4f8b\u4e2d\u9084\u6709\u4e00\u500b\u5f88\u6709\u8da3\u7684\u529f\u80fd\u5c31\u662f\u4eba\u81c9\u7684\u5075\u6e2c\u8207\u8b58\u5225\uff01\u60f3\u4e0d\u5230\u5728 ESP32 \u9019\u6a23\u7684 MCU \u88e1\u4e5f\u53ef\u4ee5\u505a\u5230\u4eba\u81c9\u5075\u6e2c\u5427\uff1f\u5728 WEB UI \u7684\u4e0b\u65b9\u6709\u5169\u500b\u6ed1\u52d5\u958b\u95dc Face Detection \u8207 Face Recognition\uff0c\u5206\u5225\u53ef\u4ee5\u555f\u7528\u4eba\u81c9\u5075\u6e2c\u8207\u4eba\u81c9\u8b58\u5225\u3002\u5728\u958b\u555f Face Detection \u4e4b\u524d\u9700\u8981\u5148\u5c07\u89e3\u6790\u5ea6\u8abf\u6574\u5230 QVGA (320&#215;240) \u4e4b\u4e0b\uff0c\u5426\u5247\u6703\u51fa\u73fe\u932f\u8aa4\u8a0a\u606f\uff0c\u7562\u7adf\u5728\u505a\u795e\u7d93\u7db2\u8def\u6f14\u7b97\u7684\u5f71\u50cf\u90fd\u4e0d\u9700\u8981\u592a\u5927\uff0c\u9069\u5ea6\u7684\u7bc0\u7701\u4e00\u4e0b\u8655\u7406\u5668\u8cc7\u6e90\u4e5f\u662f\u5fc5\u9700\u7684\u3002\u958b\u555f\u4e4b\u5f8c\u5373\u53ef\u4ee5\u770b\u5230\u9810\u89bd\u5f71\u97ff\u9806\u5229\u5730\u6846\u9078\u51fa\u4eba\u81c9\uff0c\u5373\u4fbf\u66f4\u65b0\u7387\u7d04\u7565\u53ea\u6709\u6bcf\u79d2 2~3 \u5f35 fps\uff0c\u4f46\u6548\u679c\u76f8\u7576\u4e0d\u932f\uff0c\u5373\u4f7f\u7a0d\u5fae\u628a\u81c9\u906e\u853d\u4f4f\uff0c\u4f9d\u7136\u53ef\u4ee5\u8fa8\u8b58\u7684\u51fa\u4eba\u81c9\uff01<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2022\/04\/5-1.jpg\" alt=\"\" class=\"wp-image-14965\" width=\"553\" height=\"401\"\/><figcaption>Face Detection \u4eba\u81c9\u5075\u6e2c<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u63a5\u8457\u518d\u958b\u555f\u4eba\u81c9\u8b58\u5225\u529f\u80fd\uff0c\u6703\u767c\u73fe\u5728\u539f\u672c\u9ec3\u6846\u5916\u570d\u591a\u4e86\u4e00\u500b\u7d05\u8272 <span style=\"color:#cf2e2e\" class=\"tadv-color\"><strong>Intruder Alert<\/strong><\/span>\uff08\u5165\u4fb5\u8005\u8b66\u544a\uff09\u8a0a\u606f\uff0c\u9019\u662f\u56e0\u70ba\u4eba\u81c9\u8cc7\u6599\u5eab\u5c1a\u672a\u5efa\u7acb\u3002\u9ede\u9078\u4e0b\u65b9 Enroll Face \u6309\u9215\uff0cPixel:Bit \u6703\u9023\u7e8c\u62cd\u651d\u6578\u5f35\u5f71\u50cf\u9032\u884c\u53d6\u6a23\uff0c\u5b8c\u6210\u5f8c\u5efa\u7acb\u4eba\u81c9\u8cc7\u6599\u5eab\u5373\u53ef\u4ee5\u770b\u5230<span style=\"color:#fcb900\" class=\"tadv-color\">\u9ec3\u6846<\/span>\u65c1\u908a\u7684\u6587\u5b57\u8b8a\u6210\u300c<span style=\"color:#fcb900\" class=\"tadv-color\"><strong>Hello SubJect<\/strong><\/span> <span style=\"color:#fcb900\" class=\"tadv-color\"><strong>0<\/strong><\/span>\u300d\uff0c\u4ee3\u8868\u5df2\u7d93\u9806\u5229\u8fa8\u8b58\u5230\u4e86\u7b2c\u4e00\u4f4d\u4eba\u81c9\uff0c\u5404\u4f4d\u4e5f\u53ef\u4ee5\u591a\u589e\u52a0\u5e7e\u5f35\u4eba\u81c9\u4f86\u770b\u770b\u8fa8\u8b58\u6548\u679c\u5982\u4f55\u5594\uff01<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-default\"><p><strong>\u5c0f\u63d0\u9192<\/strong><\/p><cite>\u4eba\u81c9\u5075\u6e2c\u8207\u4eba\u81c9\u8b58\u5225\u529f\u80fd\u76ee\u524d\u50c5\u80fd\u9069\u7528\u5728 Arduino ESP32 1.0.6 \u7684\u7248\u672c\uff08\u5c0d\u61c9 ESP-IDF \u7248\u672c\u70ba 3.3.5\uff09\u3002\u6700\u65b0\u7248\u672c 2.0.2\uff08\u5c0d\u61c9 ESP-IDF \u7248\u672c\u70ba 4.4\uff09\u56e0\u70ba\u4e2d\u9593\u5c64 middle ware library \u4e0d\u76f8\u5bb9\uff0c\u56e0\u6b64\u662f\u7121\u6cd5\u4f7f\u7528\u4eba\u81c9\u5075\u6e2c\u529f\u80fd\u7684\u5594\uff01<\/cite><\/blockquote>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuspi.com\/wp-content\/uploads\/2022\/04\/6-1.jpg\" alt=\"\" class=\"wp-image-14964\" width=\"560\" height=\"410\"\/><figcaption>Face Recognition \u4eba\u81c9\u8b58\u5225<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u5c0f\u7d50<\/h2>\n\n\n\n<p>\u672c\u7bc7\u6559\u5b78\u6240\u4f7f\u7528\u7684\u7bc4\u4f8b\u4e0d\u4f46\u6709\u4e92\u52d5\u5f0f\u7684\u7db2\u9801\u4ecb\u9762\uff0c\u53ef\u4ee5\u5373\u6642\u4e32\u6d41\u5f71\u50cf\u8207\u622a\u5716\uff0c\u4e26\u4e14\u900f\u904e HTTP API \u7684\u547c\u53eb\u8abf\u6574\u93e1\u982d\u53c3\u6578\u7b49\uff0c\u4e5f\u53ef\u4ee5\u652f\u63f4\u4eba\u81c9\u5075\u6e2c\u8207\u4eba\u81c9\u8b58\u5225\u7684\u529f\u80fd\uff0c\u5c0d\u65bc\u60f3\u8981\u88fd\u4f5c\u5f71\u50cf\u76f8\u95dc\u5c08\u6848\u4e5f\u662f\u5f88\u597d\u7684\u5165\u9580\u7684\u7bc4\u4f8b\u3002\u5f8c\u7e8c\u6211\u5011\u5c07\u4ecb\u7d39\u66f4\u591a\u95dc\u65bc Pixel:Bit \u7684\u5c08\u6848\u61c9\u7528\u6587\u7ae0\uff0c\u6709\u8208\u8da3\u7684\u5404\u4f4d\u5343\u842c\u4e0d\u8981\u932f\u904e\u4e86\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pixel:Bit \u6559\u5b78(\u4e09) \u8981\u6559\u5927\u5bb6\u4f7f\u7528\u5167\u5efa\u7684 500 \u842c\u50cf\u7d20\u93e1\u982d\uff0c\u5be6\u4f5c ESP32 \u5b98\u65b9\u7bc4\u4f8b CameraWebServer\uff0c\u9664\u4e86\u76f8\u6a5f\u7684\u8a2d\u5b9a\u64cd\u4f5c\u5916\uff0c\u9084\u5305\u542b\u4e86\u4eba\u81c9\u5075\u6e2c(Face Detection)\u8207\u4eba\u81c9\u8b58\u5225(Face Recognition)\u7b49\u64cd\u4f5c\u3002<\/p>\n","protected":false},"author":1,"featured_media":15437,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[274,238],"tags":[36,275,109],"table_tags":[],"_links":{"self":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/14954"}],"collection":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/comments?post=14954"}],"version-history":[{"count":18,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/14954\/revisions"}],"predecessor-version":[{"id":15438,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/posts\/14954\/revisions\/15438"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/media\/15437"}],"wp:attachment":[{"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/media?parent=14954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/categories?post=14954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/tags?post=14954"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/www.circuspi.com\/index.php\/wp-json\/wp\/v2\/table_tags?post=14954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}