{"id":29321,"date":"2025-04-20T07:41:10","date_gmt":"2025-04-19T23:41:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/29321.html"},"modified":"2025-04-20T07:41:10","modified_gmt":"2025-04-19T23:41:10","slug":"%e5%86%8d%e8%b0%88esp32_cam%e8%a7%86%e9%a2%91%e4%bc%a0%e8%be%93%e8%87%b3%e5%85%ac%e7%bd%91%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/29321.html","title":{"rendered":"\u518d\u8c08ESP32_CAM\u89c6\u9891\u4f20\u8f93\u81f3\u516c\u7f51\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5f88\u4e45\u6ca1\u5199\u6587\u7ae0\u4e86&#xff0c;\u6700\u8fd1\u95f2\u6765\u65e0\u4e8b&#xff0c;\u53c8\u7814\u7a76\u4e86\u4e0b\u5173\u4e8eesp32_cam&#xff0c;\u4e4b\u524d\u4e5f\u5199\u8fc7\u4e00\u7bc7\u6587\u7ae0&#xff0c;\u8bb2\u8ff0\u4e86\u5982\u4f55\u628a\u89c6\u9891\u6d41\u63a8\u9001\u81f3\u516c\u7f51\u670d\u52a1\u5668&#xff0c;\u4f46\u662f\u7528\u5230\u7684\u4ee3\u7801\u5f88\u4e0d\u7edf\u4e00&#xff0c;esp32_cam\u7aef\u7528\u7684\u662fc\u8bed\u8a00&#xff0c;\u670d\u52a1\u5668\u7528\u7684\u662fnodejs&#xff0c;\u62c9\u6d41\u5ba2\u6237\u7aef\u7528\u7684\u662fpython&#xff0c;\u770b\u4e0a\u53bb\u5f88\u522b\u626d&#xff0c;\u66f4\u91cd\u8981\u7684\u662f&#xff0c;\u867d\u7136\u80fd\u63a8\u6d41\u81f3\u670d\u52a1\u5668&#xff0c;\u4f46\u4f20\u8f93\u6548\u679c\u4e5f\u4e0d\u662f\u5f88\u7406\u60f3&#xff0c;\u4e8e\u662f\u628a\u4e09\u7aef\u7684\u4ee3\u7801\u7edf\u4e00\u6210\u4e86python&#xff0c;\u8bdd\u4e0d\u591a\u8bf4&#xff0c;\u76f4\u63a5\u4e0a\u4ee3\u7801\u3002<\/p>\n<p><span style=\"color:#fe2c24\">\u8fd9\u91cc\u91cd\u70b9\u8bf4\u660e\u4e00\u4e0b&#xff0c;\u4f7f\u7528\u7684esp32_cam\u56fa\u4ef6\u662f\u56fd\u5916\u4e00\u4e2a\u8001\u54e5\u5f00\u53d1\u7684&#xff0c;\u91cc\u9762\u5e26\u6709camera\u5e93&#xff0c;\u4f7f\u7528\u5176\u4ed6\u7684\u56fa\u4ef6\u662f\u6ca1\u6709camera\u5e93\u7684&#xff0c;\u9700\u8981\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u7559\u8a00\u6216\u8005\u79c1\u4fe1\u6211\u7559\u4e0b\u90ae\u7bb1&#xff0c;\u6211\u4f1a\u53d1\u7ed9\u4f60\u4eec\u3002<\/span><\/p>\n<p><span style=\"color:#fe2c24\">\u9996\u5148\u662fesp32_cam\u7aef\u4ee3\u7801&#xff08;\u4f7f\u7528thonny\u5f00\u53d1\u5e76\u70e7\u5f55&#xff09;&#xff1a;<\/span><\/p>\n<p>import socket<br \/>\nimport network<br \/>\nimport camera<br \/>\nimport time<\/p>\n<p># \u8fde\u63a5wifi<br \/>\nwlan &#061; network.WLAN(network.STA_IF)<br \/>\nwlan.active(True)<br \/>\nif not wlan.isconnected():<br \/>\n    print(&#039;connecting to network&#8230;&#039;)<br \/>\n    wlan.connect(&#039;xxxx&#039;, &#039;xxxx&#039;)  # \u6b64\u5904\u66ff\u6362\u6210\u81ea\u5df1\u7684wifi\u548c\u5bc6\u7801<\/p>\n<p>    while not wlan.isconnected():<br \/>\n        pass<br \/>\nprint(&#039;\u7f51\u7edc\u914d\u7f6e:&#039;, wlan.ifconfig())<\/p>\n<p># \u6444\u50cf\u5934\u521d\u59cb\u5316<br \/>\ntry:<br \/>\n    camera.init(0, format&#061;camera.JPEG)<br \/>\n    time.sleep(0.5)<br \/>\nexcept Exception as e:<br \/>\n    camera.deinit()<br \/>\n    # camera.init(0, format&#061;camera.JPEG)<\/p>\n<p># \u5176\u4ed6\u8bbe\u7f6e&#xff1a;<br \/>\n# \u4e0a\u7ffb\u4e0b\u7ffb<br \/>\ncamera.flip(1)<br \/>\n#\u5de6\/\u53f3<br \/>\ncamera.mirror(1)<\/p>\n<p># \u5206\u8fa8\u7387<br \/>\ncamera.framesize(camera.FRAME_CIF)<br \/>\n# \u9009\u9879\u5982\u4e0b&#xff1a;<br \/>\n# FRAME_96X96 FRAME_QQVGA FRAME_QCIF FRAME_HQVGA FRAME_240X240<br \/>\n# FRAME_QVGA FRAME_CIF FRAME_HVGA FRAME_VGA FRAME_SVGA<br \/>\n# FRAME_XGA FRAME_HD FRAME_SXGA FRAME_UXGA FRAME_FHD<br \/>\n# FRAME_P_HD FRAME_P_3MP FRAME_QXGA FRAME_QHD FRAME_WQXGA<br \/>\n# FRAME_P_FHD FRAME_QSXGA<br \/>\n# \u6709\u5173\u8be6\u7ec6\u4fe1\u606f&#xff0c;\u8bf7\u67e5\u770b\u6b64\u94fe\u63a5&#xff1a;https:\/\/bit.ly\/2YOzizz<\/p>\n<p># \u7279\u6548<br \/>\ncamera.speffect(camera.EFFECT_NONE)<br \/>\n#\u9009\u9879\u5982\u4e0b&#xff1a;<br \/>\n# \u6548\u679c\\\\\u65e0&#xff08;\u9ed8\u8ba4&#xff09;\u6548\u679c\\\\\u8d1f\u6548\u679c\\\\ BW\u6548\u679c\\\\\u7ea2\u8272\u6548\u679c\\\\\u7eff\u8272\u6548\u679c\\\\\u84dd\u8272\u6548\u679c\\\\\u590d\u53e4\u6548\u679c<br \/>\n# EFFECT_NONE (default) EFFECT_NEG \\\\EFFECT_BW\\\\ EFFECT_RED\\\\ EFFECT_GREEN\\\\ EFFECT_BLUE\\\\ EFFECT_RETRO<\/p>\n<p># \u767d\u5e73\u8861<br \/>\n# camera.whitebalance(camera.WB_HOME)<br \/>\n#\u9009\u9879\u5982\u4e0b&#xff1a;<br \/>\n# WB_NONE (default) WB_SUNNY WB_CLOUDY WB_OFFICE WB_HOME<\/p>\n<p># \u9971\u548c<br \/>\ncamera.saturation(0)<br \/>\n#-2,2&#xff08;\u9ed8\u8ba4\u4e3a0&#xff09;. -2\u7070\u5ea6<br \/>\n# -2,2 (default 0). -2 grayscale <\/p>\n<p># \u4eae\u5ea6<br \/>\ncamera.brightness(0)<br \/>\n#-2,2&#xff08;\u9ed8\u8ba4\u4e3a0&#xff09;. 2\u4eae\u5ea6<br \/>\n# -2,2 (default 0). 2 brightness<\/p>\n<p># \u5bf9\u6bd4\u5ea6<br \/>\ncamera.contrast(0)<br \/>\n#-2,2&#xff08;\u9ed8\u8ba4\u4e3a0&#xff09;.2\u9ad8\u5bf9\u6bd4\u5ea6<br \/>\n#-2,2 (default 0). 2 highcontrast<\/p>\n<p># \u8d28\u91cf<br \/>\ncamera.quality(30)<br \/>\n#10-63\u6570\u5b57\u8d8a\u5c0f\u8d28\u91cf\u8d8a\u9ad8<\/p>\n<p># socket TCP \u7684\u521b\u5efa<br \/>\ns &#061; socket.socket(socket.AF_INET,socket.SOCK_STREAM)<br \/>\ns.connect((&#039;xxx.xxx.xxx.xxx&#039;, xxxx))  # \u6b64\u5904\u66ff\u6362\u6210\u81ea\u5df1\u7684\u516c\u7f51ip\u548c\u7aef\u53e3\u53f7&#xff08;\u7aef\u53e3\u53f7\u662f\u81ea\u5b9a\u4e49&#xff09;<br \/>\ntime.sleep(0.5)<\/p>\n<p>try:<br \/>\n    while True:<br \/>\n        buf &#061; camera.capture()  # \u83b7\u53d6\u56fe\u50cf\u6570\u636e<br \/>\n        len_buf &#061; len(buf)  # \u53d1\u9001\u6570\u636e\u957f\u5ea6<br \/>\n        s.sendall(str.encode(&#039;%-10s&#039; % len_buf))<br \/>\n        s.sendall(buf)  # \u5411\u670d\u52a1\u5668\u53d1\u9001\u56fe\u50cf\u6570\u636e<br \/>\n        # time.sleep_ms(50)<br \/>\nexcept Exception as e:<br \/>\n    print(e)<br \/>\n    camera.deinit()<br \/>\nfinally:<br \/>\n    camera.deinit()<\/p>\n<p><span style=\"color:#fe2c24\">\u9700\u8981\u66ff\u6362\u7684\u6709\u4e24\u5904&#xff0c;wifi\u540d\u79f0\u548c\u5bc6\u7801\u4ee5\u53ca\u516c\u7f51ip\u548c\u7aef\u53e3\u53f7\u3002<\/span><\/p>\n<p><span style=\"color:#fe2c24\">\u7136\u540e\u4e0a\u670d\u52a1\u5668\u7aef\u4ee3\u7801&#xff1a;<\/span><\/p>\n<p>import socket<br \/>\nimport time<\/p>\n<p>import cv2<br \/>\nimport io<br \/>\nfrom PIL import Image<br \/>\nimport numpy as np<br \/>\nimport threading<\/p>\n<p>cc &#061; []  # \u7528\u6765\u4fdd\u5b58\u5df2\u7ecf\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u6444\u50cf\u5934socket<br \/>\ncp &#061; []  # \u7528\u6765\u4fdd\u5b58\u5df2\u7ecf\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u7535\u8111socket<\/p>\n<p>s &#061; socket.socket(socket.AF_INET, socket.SOCK_STREAM)<br \/>\ns.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)<br \/>\ns.bind((&#034;0.0.0.0&#034;, xxxx))  # \u6b64\u5904\u586b\u5199\u81ea\u5b9a\u4e49\u7684\u7aef\u53e3\u53f7&#xff0c;\u6ce8\u610f&#xff0c;\u8981\u8ddfesp32_cam\u4e2d\u5b9a\u4e49\u7684\u7aef\u53e3\u53f7\u4e00\u81f4<br \/>\ns.listen(10)<\/p>\n<p>def receive_all(sock, count):<br \/>\n    buf &#061; b&#039;&#039;<br \/>\n    while count:<br \/>\n        recv_data_temp &#061; sock.recv(count)<br \/>\n        if not recv_data_temp:<br \/>\n            return None<br \/>\n        buf &#043;&#061; recv_data_temp<br \/>\n        count -&#061; len(recv_data_temp)<br \/>\n    return buf<\/p>\n<p>def client_camera(clientsocket):<br \/>\n    global cp<br \/>\n    global cc<br \/>\n    print(&#039;\u6444\u50cf\u5934\u5df2\u8fde\u63a5&#039;)<br \/>\n    while True:<br \/>\n        # \u6ce8\u91ca\u8c03\u4e24\u4e2aif\u8bed\u53e5\u540e&#xff0c;\u89c6\u9891\u6d41\u4f1a\u76f8\u5bf9\u6d41\u7545\u4e00\u4e9b<br \/>\n        if clientsocket.recv(1024) &#061;&#061; b&#039;&#039;:<br \/>\n            print(&#039;\u6444\u50cf\u5934\u5df2\u9000\u51fa&#039;)<br \/>\n            cc &#061; []<br \/>\n            break<br \/>\n        if len(cp) &#061;&#061; 0:<br \/>\n            time.sleep(1)<br \/>\n            continue<br \/>\n        try:<br \/>\n            length &#061; receive_all(clientsocket, 10)<br \/>\n            data &#061; receive_all(clientsocket, int(length))  # \u76ee\u524d\u53ea\u8bbe\u8ba1\u4e3a\u4e00\u4e2a\u6444\u50cf\u5934\u548c\u4e00\u53f0pc<br \/>\n            len_buf &#061; len(data)  # \u53d1\u9001\u6570\u636e\u957f\u5ea6<br \/>\n            cp[0].sendall(str.encode(&#039;%-10s&#039; % len_buf))<br \/>\n            cp[0].sendall(data)<br \/>\n        except Exception as e:<br \/>\n            pass<br \/>\n            # print(f&#039;\u6444\u50cf\u5934\u4ee5\u9000\u51fa&#xff1a;{e}&#039;)<\/p>\n<p>def client_pc(clientsocket):<br \/>\n    global cp<br \/>\n    while True:<br \/>\n        time.sleep(1)<br \/>\n        if clientsocket.recv(1024) &#061;&#061; b&#039;&#039;:<br \/>\n            print(&#039;\u5ba2\u6237\u7aef\u5df2\u9000\u51fa&#039;)<br \/>\n            cp &#061; []<br \/>\n            break<\/p>\n<p>while True:<br \/>\n    # \u63a5\u6536\u6240\u6709\u8fde\u63a5&#xff0c;\u6bcf\u53d7\u5230\u4e00\u4e2a\u5ba2\u6237\u7aef&#xff0c;\u5c31\u542f\u52a8\u4e00\u4e2a\u65b0\u7ebf\u7a0b<br \/>\n    clientsocket, addr &#061; s.accept()<br \/>\n    try:<br \/>\n        if clientsocket.recv(1024).decode(&#039;utf-8&#039;) &#061;&#061; &#039;client&#039;:  # \u8bf4\u660e\u8be5\u6d88\u606f\u662f\u5ba2\u6237\u7aefpc\u53d1\u9001\u7684\u62c9\u6d41\u8bf7\u6c42<br \/>\n            cp.append(clientsocket)<br \/>\n            print(cp)<br \/>\n            threading.Thread(target&#061;client_pc, args&#061;(clientsocket,)).start()<br \/>\n        else:  # \u8bf4\u660e\u662f\u6444\u50cf\u5934\u63a8\u6d41\u7684\u8bf7\u6c42<br \/>\n            cc.append(clientsocket)<br \/>\n            threading.Thread(target&#061;client_camera, args&#061;(clientsocket,)).start()<br \/>\n            print(cc)<br \/>\n    except Exception as e:<br \/>\n        clientsocket.close()<\/p>\n<p><span style=\"color:#fe2c24\">\u6b64\u5904\u8981\u4fee\u6539\u7684\u662f\u7aef\u53e3\u53f7&#xff0c;\u8981\u8ddfesp32_cam\u4e2d\u81ea\u5b9a\u4e49\u7684\u7aef\u53e3\u53f7\u4e00\u81f4&#xff0c;\u5176\u5b83\u7684\u770b\u6ce8\u91ca\u5373\u53ef<\/span><\/p>\n<p><span style=\"color:#fe2c24\">\u6700\u540e\u4e0a\u62c9\u6d41\u7684\u5ba2\u6237\u7aef\u4ee3\u7801&#xff1a;<\/span><\/p>\n<p>import socket<br \/>\nimport cv2<br \/>\nimport io<br \/>\nfrom PIL import Image<br \/>\nimport numpy as np<br \/>\nimport time<\/p>\n<p>def receive_all(sock, count):<br \/>\n    buf &#061; b&#039;&#039;<br \/>\n    while count:<br \/>\n        recv_data_temp &#061; sock.recv(count)<br \/>\n        if not recv_data_temp:<br \/>\n            return None<br \/>\n        buf &#043;&#061; recv_data_temp<br \/>\n        count -&#061; len(recv_data_temp)<br \/>\n    return buf<\/p>\n<p>s &#061; socket.socket(socket.AF_INET, socket.SOCK_STREAM)<br \/>\ns.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)<br \/>\ns.connect((&#039;xxx.xxx.xxx.xxx&#039;, xxx))  # \u6b64\u5904\u8bbe\u7f6e\u516c\u7f51\u7684ip\u5730\u5740\u4ee5\u53ca\u81ea\u5b9a\u4e49\u7684\u7aef\u53e3\u53f7<br \/>\ns.send(&#039;client&#039;.encode(&#039;utf-8&#039;))<br \/>\ntime.sleep(0.5)<br \/>\nwhile True:<br \/>\n    try:<br \/>\n        length &#061; receive_all(s, 10)<br \/>\n        data &#061; receive_all(s, int(length))<br \/>\n        bytes_stream &#061; io.BytesIO(data)<br \/>\n        image &#061; Image.open(bytes_stream)<br \/>\n        img &#061; np.asarray(image)<br \/>\n        img &#061; cv2.cvtColor(img, cv2.COLOR_RGB2BGR)  # ESP32\u91c7\u96c6\u7684\u662fRGB\u683c\u5f0f&#xff0c;\u8981\u8f6c\u6362\u4e3aBGR&#xff08;opencv\u7684\u683c\u5f0f&#xff09;<br \/>\n        cv2.imshow(&#034;ESP32 Capture Image&#034;, img)<br \/>\n        if cv2.waitKey(1) &#061;&#061; ord(&#034;q&#034;):<br \/>\n            break<br \/>\n    except Exception as e:<br \/>\n        print(e)<\/p>\n<p><span style=\"color:#fe2c24\">\u6b64\u5904\u8981\u4fee\u6539\u7684\u662f\u516c\u7f51ip\u548c\u81ea\u5b9a\u4e49\u7684\u7aef\u53e3\u53f7<\/span><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u76ee\u524d\u4ee3\u7801\u5982\u679c\u90fd\u8dd1\u5728\u5c40\u7f51\u5185&#xff0c;\u6548\u679c\u8fd8\u662f\u5f88\u4e0d\u9519\u7684&#xff0c;\u6211\u4f7f\u7528\u7684\u516c\u7f51\u5e26\u5bbd\u662f3m&#xff0c;\u6548\u679c\u561b\u4f60\u4eec\u81ea\u5df1\u90e8\u7f72\u540e\u81ea\u5df1\u770b\u5427&#xff0c;\u6709\u65f6\u95f4\u6211\u8fd8\u4f1a\u518d\u4f18\u5316\u8fd9\u4e00\u5957\u6d41\u7a0b&#xff0c;\u5982\u679c\u6709\u597d\u60f3\u6cd5\u7684\u5c0f\u4f19\u4f34\u4e5f\u53ef\u4ee5\u7ed9\u6211\u7559\u8a00\u4e00\u8d77\u8ba8\u8bba\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.5k\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u4f5c\u8005\u5c06ESP32Cam\u7684\u89c6\u9891\u6d41\u5904\u7406\u4eceC\u8bed\u8a00\u3001Node.js\u548cPython\u5206\u522b\u7f16\u5199\u7edf\u4e00\u5230Python\u7684\u8fc7\u7a0b\uff0c\u5c55\u793a\u4e86\u4eceESP32\u8fde\u63a5WiFi\u3001\u6444\u50cf\u5934\u521d\u59cb\u5316\u5230\u5efa\u7acbTCP\u8fde\u63a5\u3001\u53d1\u9001\u89c6\u9891\u6d41\u7684\u5b8c\u6574\u4ee3\u7801\uff0c\u4ee5\u53ca\u670d\u52a1\u5668\u7aef\u7684\u63a5\u6536\u548c\u5904\u7406\u7b56\u7565\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1460,270,269,43,214],"topic":[],"class_list":["post-29321","post","type-post","status-publish","format-standard","hentry","category-server","tag-opencv","tag-270","tag-269","tag-43","tag-214"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u518d\u8c08ESP32_CAM\u89c6\u9891\u4f20\u8f93\u81f3\u516c\u7f51\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/29321.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u518d\u8c08ESP32_CAM\u89c6\u9891\u4f20\u8f93\u81f3\u516c\u7f51\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.5k\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u4f5c\u8005\u5c06ESP32Cam\u7684\u89c6\u9891\u6d41\u5904\u7406\u4eceC\u8bed\u8a00\u3001Node.js\u548cPython\u5206\u522b\u7f16\u5199\u7edf\u4e00\u5230Python\u7684\u8fc7\u7a0b\uff0c\u5c55\u793a\u4e86\u4eceESP32\u8fde\u63a5WiFi\u3001\u6444\u50cf\u5934\u521d\u59cb\u5316\u5230\u5efa\u7acbTCP\u8fde\u63a5\u3001\u53d1\u9001\u89c6\u9891\u6d41\u7684\u5b8c\u6574\u4ee3\u7801\uff0c\u4ee5\u53ca\u670d\u52a1\u5668\u7aef\u7684\u63a5\u6536\u548c\u5904\u7406\u7b56\u7565\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/29321.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T23:41:10+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/29321.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/29321.html\",\"name\":\"\u518d\u8c08ESP32_CAM\u89c6\u9891\u4f20\u8f93\u81f3\u516c\u7f51\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T23:41:10+00:00\",\"dateModified\":\"2025-04-19T23:41:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/29321.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/29321.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/29321.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u518d\u8c08ESP32_CAM\u89c6\u9891\u4f20\u8f93\u81f3\u516c\u7f51\u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u518d\u8c08ESP32_CAM\u89c6\u9891\u4f20\u8f93\u81f3\u516c\u7f51\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/29321.html","og_locale":"zh_CN","og_type":"article","og_title":"\u518d\u8c08ESP32_CAM\u89c6\u9891\u4f20\u8f93\u81f3\u516c\u7f51\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.5k\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u4f5c\u8005\u5c06ESP32Cam\u7684\u89c6\u9891\u6d41\u5904\u7406\u4eceC\u8bed\u8a00\u3001Node.js\u548cPython\u5206\u522b\u7f16\u5199\u7edf\u4e00\u5230Python\u7684\u8fc7\u7a0b\uff0c\u5c55\u793a\u4e86\u4eceESP32\u8fde\u63a5WiFi\u3001\u6444\u50cf\u5934\u521d\u59cb\u5316\u5230\u5efa\u7acbTCP\u8fde\u63a5\u3001\u53d1\u9001\u89c6\u9891\u6d41\u7684\u5b8c\u6574\u4ee3\u7801\uff0c\u4ee5\u53ca\u670d\u52a1\u5668\u7aef\u7684\u63a5\u6536\u548c\u5904\u7406\u7b56\u7565\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/29321.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T23:41:10+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/29321.html","url":"https:\/\/www.wsisp.com\/helps\/29321.html","name":"\u518d\u8c08ESP32_CAM\u89c6\u9891\u4f20\u8f93\u81f3\u516c\u7f51\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T23:41:10+00:00","dateModified":"2025-04-19T23:41:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/29321.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/29321.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/29321.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u518d\u8c08ESP32_CAM\u89c6\u9891\u4f20\u8f93\u81f3\u516c\u7f51\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/29321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=29321"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/29321\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=29321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=29321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=29321"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=29321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}