{"id":123218,"date":"2026-11-06T21:32:56","date_gmt":"2026-11-06T13:32:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/123218.html"},"modified":"2026-11-06T21:32:56","modified_gmt":"2026-11-06T13:32:56","slug":"%e5%9f%ba%e4%ba%8eyolo%e7%9a%84%e8%88%b9%e8%88%b6%e8%af%86%e5%88%ab%e7%b3%bb%e7%bb%9f%e7%9a%84%e8%ae%be%e8%ae%a1%e4%b8%8e%e5%ae%9e%e7%8e%b0%ef%bc%88%e6%ba%90%e7%a0%81%e6%96%87%e6%a1%a3%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/123218.html","title":{"rendered":"\u57fa\u4e8eYOLO\u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\uff08\u6e90\u7801+\u6587\u6863\uff09"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<p><font size=\"3\" color=\"#a3151\">\u6e29\u99a8\u63d0\u793a&#xff1a;\u672c\u4eba\u4e3b\u9875\u7f6e\u9876\u6587\u7ae0(\u70b9\u6211)\u5f00\u5934\u6709 CSDN \u5e73\u53f0\u5b98\u65b9\u63d0\u4f9b\u7684\u5b66\u957f\u8054\u7cfb\u65b9\u5f0f\u7684\u540d\u7247&#xff01;<\/font><\/p>\n<h3>\u8bfe\u9898\u4ecb\u7ecd<\/h3>\n<p>\u5185\u6cb3\u3001\u6e2f\u53e3\u6c34\u57df\u73af\u5883\u590d\u6742&#xff0c;\u8239\u8236\u79cd\u7c7b\u7e41\u591a&#xff0c;\u4f9d\u9760\u4eba\u5de5\u77ad\u671b\u548c\u76d1\u63a7\u67e5\u770b\u8239\u8236\u4fe1\u606f&#xff0c;\u5bb9\u6613\u51fa\u73b0\u6f0f\u68c0\u3001\u8bc6\u522b\u4e0d\u53ca\u65f6\u7684\u95ee\u9898&#xff0c;\u96be\u4ee5\u6ee1\u8db3\u6c34\u57df\u667a\u80fd\u5316\u76d1\u7ba1\u9700\u6c42\u3002\u672c\u6587\u8bbe\u8ba1\u5b9e\u73b0\u57fa\u4e8eYOLO\u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf&#xff0c;\u91c7\u7528Python\u8bed\u8a00&#043;Flask\u6846\u67b6\u5f00\u53d1&#xff0c;\u642d\u914dWeb\u524d\u7aef&#xff0c;MySQL\u4f5c\u4e3a\u6570\u636e\u5e93&#xff0c;\u4f7f\u7528YOLO\u76ee\u6807\u68c0\u6d4b\u7b97\u6cd5\u5bf9\u6cb3\u9053\u3001\u6e2f\u53e3\u76d1\u63a7\u89c6\u9891\u753b\u9762\u8fdb\u884c\u8bc6\u522b&#xff0c;\u81ea\u52a8\u68c0\u6d4b\u8239\u8236\u76ee\u6807\u3002\u7cfb\u7edf\u5305\u542b\u5de1\u67e5\u4eba\u5458\u3001\u7ba1\u7406\u5458\u4e24\u7c7b\u89d2\u8272&#xff0c;\u652f\u6301RTSP\u89c6\u9891\u6d41\u63a5\u5165\u3001\u5b9e\u65f6\u8239\u8236\u68c0\u6d4b\u3001\u8fdd\u89c4\u6293\u62cd\u4fdd\u5b58\u3001\u8bc6\u522b\u8bb0\u5f55\u5165\u5e93\u3001\u5386\u53f2\u8bb0\u5f55\u67e5\u8be2\u3001\u76d1\u63a7\u70b9\u4f4d\u7ba1\u7406\u7b49\u529f\u80fd\u3002\u7ecf\u8fc7\u9700\u6c42\u5206\u6790\u3001\u7cfb\u7edf\u8bbe\u8ba1\u3001\u7f16\u7801\u5f00\u53d1\u4e0e\u6d4b\u8bd5&#xff0c;\u7cfb\u7edf\u53ef\u4ee5\u5168\u5929\u5019\u81ea\u52a8\u8bc6\u522b\u753b\u9762\u4e2d\u7684\u8239\u8236&#xff0c;\u964d\u4f4e\u4eba\u5de5\u5de1\u67e5\u6210\u672c&#xff0c;\u52a9\u529b\u6c34\u57df\u667a\u80fd\u76d1\u7ba1\u3002<\/p>\n<h3>\u6280\u672f\u6808<\/h3>\n<p>Python\u3001Flask\u3001YOLO\u3001OpenCV\u3001MySQL\u3001PyMySQL\u3001Vue3\u3001Element Plus\u3001RTSP\u89c6\u9891\u6d41\u89e3\u6790<\/p>\n<h3>\u9879\u76ee\u5b9e\u73b0<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133247-6aedd6ff8d9d4.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133248-6aedd700567cc.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133248-6aedd700ddd26.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133249-6aedd70173f9d.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133249-6aedd701ef8a3.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133250-6aedd70276a56.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133250-6aedd702f12ed.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133251-6aedd7038ecb6.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133252-6aedd7042319b.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133252-6aedd704966f3.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133253-6aedd70519a0f.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133253-6aedd705a20b0.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133254-6aedd70622605.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133254-6aedd706bdc19.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6587\u6863\u622a\u56fe<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133255-6aedd70750dce.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>## \u6838\u5fc3\u4ee3\u7801<br \/>\n&#096;&#096;&#096;python<br \/>\n# YOLO &#043; Flask \u8239\u8236\u8bc6\u522b\u6838\u5fc3\u4ee3\u7801<br \/>\nfrom ultralytics import YOLO<br \/>\nimport cv2<br \/>\nfrom flask import Flask, request, jsonify<br \/>\nimport pymysql<br \/>\nimport time<\/p>\n<p>app &#061; Flask(__name__)<br \/>\nmodel &#061; YOLO(&#034;yolov11n_ship.pt&#034;)<br \/>\n# \u8239\u8236\u7c7b\u522b&#xff1a;ship\u8239\u8236<br \/>\nclass_names &#061; [&#034;ship&#034;]<\/p>\n<p># \u6570\u636e\u5e93\u8fde\u63a5<br \/>\ndef get_db_conn():<br \/>\n    conn &#061; pymysql.connect(host&#061;&#034;127.0.0.1&#034;, user&#061;&#034;root&#034;, password&#061;&#034;123456&#034;, database&#061;&#034;ship_monitor&#034;, charset&#061;&#034;utf8mb4&#034;)<br \/>\n    return conn<\/p>\n<p># \u8239\u8236\u68c0\u6d4b\u51fd\u6570<br \/>\ndef detect_ship(frame):<br \/>\n    results &#061; model(frame, conf&#061;0.5)<br \/>\n    detect_list &#061; []<br \/>\n    for res in results:<br \/>\n        boxes &#061; res.boxes<br \/>\n        for box in boxes:<br \/>\n            cls_id &#061; int(box.cls[0])<br \/>\n            cls_name &#061; class_names[cls_id]<br \/>\n            detect_list.append(cls_name)<br \/>\n            x1, y1, x2, y2 &#061; map(int, box.xyxy[0])<br \/>\n            cv2.rectangle(frame, (x1, y1), (x2, y2), (0, 255, 0), 2)<br \/>\n            cv2.putText(frame, cls_name, (x1, y1 &#8211; 10), cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0, 255, 0), 2)<br \/>\n    return frame, detect_list<\/p>\n<p># \u8bc6\u522b\u8bb0\u5f55\u5165\u5e93<br \/>\ndef save_record(target_type, device_id):<br \/>\n    conn &#061; get_db_conn()<br \/>\n    cur &#061; conn.cursor()<br \/>\n    sql &#061; &#034;insert into detect_record(target_type,device_id,create_time,status) values (%s,%s,%s,%s)&#034;<br \/>\n    cur.execute(sql, (target_type, device_id, time.strftime(&#034;%Y-%m-%d %H:%M:%S&#034;), &#034;\u5df2\u8bc6\u522b&#034;))<br \/>\n    conn.commit()<br \/>\n    cur.close()<br \/>\n    conn.close()<\/p>\n<p>&#064;app.route(&#034;\/start_detect&#034;, methods&#061;[&#034;POST&#034;])<br \/>\ndef start_detect():<br \/>\n    data &#061; request.get_json()<br \/>\n    rtsp_url &#061; data.get(&#034;rtsp_url&#034;)<br \/>\n    device_id &#061; data.get(&#034;device_id&#034;)<br \/>\n    cap &#061; cv2.VideoCapture(rtsp_url)<br \/>\n    if not cap.isOpened():<br \/>\n        return jsonify({&#034;code&#034;:500, &#034;msg&#034;:&#034;\u89c6\u9891\u6d41\u6253\u5f00\u5931\u8d25&#034;})<br \/>\n    while cap.isOpened():<br \/>\n        ret, frame &#061; cap.read()<br \/>\n        if not ret:<br \/>\n            break<br \/>\n        frame, targets &#061; detect_ship(frame)<br \/>\n        if targets:<br \/>\n            for item in targets:<br \/>\n                save_record(item, device_id)<br \/>\n        cv2.imshow(&#034;ship-monitor&#034;, frame)<br \/>\n        if cv2.waitKey(1) &amp; 0xFF &#061;&#061; ord(&#039;q&#039;):<br \/>\n            break<br \/>\n    cap.release()<br \/>\n    cv2.destroyAllWindows()<br \/>\n    return jsonify({&#034;code&#034;:200, &#034;msg&#034;:&#034;\u68c0\u6d4b\u7ed3\u675f&#034;})<\/p>\n<p>&#064;app.route(&#034;\/record_list&#034;, methods&#061;[&#034;GET&#034;])<br \/>\ndef record_list():<br \/>\n    conn &#061; get_db_conn()<br \/>\n    cur &#061; conn.cursor(pymysql.cursors.DictCursor)<br \/>\n    cur.execute(&#034;select * from detect_record order by create_time desc&#034;)<br \/>\n    rows &#061; cur.fetchall()<br \/>\n    cur.close()<br \/>\n    conn.close()<br \/>\n    return jsonify({&#034;code&#034;:200, &#034;data&#034;:rows})<\/p>\n<p>if __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    app.run(host&#061;&#034;0.0.0.0&#034;, port&#061;5000, debug&#061;True)<\/p>\n<h3>\u7cfb\u7edf\u6d4b\u8bd5<\/h3>\n<p>\u7cfb\u7edf\u4ee5\u9ed1\u76d2\u6d4b\u8bd5\u4e3a\u4e3b&#xff0c;\u56f4\u7ed5\u5de1\u67e5\u4eba\u5458\u3001\u7ba1\u7406\u5458\u4e24\u4e2a\u89d2\u8272\u7684\u4e1a\u52a1\u6d41\u7a0b\u8bbe\u8ba1\u6d4b\u8bd5\u7528\u4f8b\u3002\u91cd\u70b9\u6d4b\u8bd5 RTSP \u89c6\u9891\u6d41\u63a5\u5165\u3001YOLO \u8239\u8236\u76ee\u6807\u68c0\u6d4b\u3001\u76ee\u6807\u6846\u9009\u6807\u6ce8\u3001\u8bc6\u522b\u8bb0\u5f55\u5b58\u50a8\u3001\u5386\u53f2\u8bb0\u5f55\u67e5\u8be2\u3001\u76d1\u63a7\u70b9\u4f4d\u7ba1\u7406\u7b49\u6838\u5fc3\u529f\u80fd&#xff0c;\u6821\u9a8c\u8f93\u5165\u53c2\u6570&#xff0c;\u62e6\u622a\u65e0\u6548\u89c6\u9891\u5730\u5740\u3001\u7a7a\u70b9\u4f4d\u540d\u79f0\u7b49\u5f02\u5e38\u6570\u636e\u3002\u6d4b\u8bd5\u8bb0\u5f55\u72b6\u6001\u6d41\u8f6c&#xff0c;\u533a\u5206\u5df2\u8bc6\u522b\u3001\u5df2\u67e5\u770b\u3002\u6d4b\u8bd5\u9875\u9762\u9002\u914d&#xff0c;\u5b9e\u65f6\u76d1\u63a7\u753b\u9762\u3001\u6807\u6ce8\u6548\u679c\u3001\u8bc6\u522b\u8bb0\u5f55\u5217\u8868\u5c55\u793a\u6b63\u5e38\u3002\u6a21\u62df\u591a\u8def\u6c34\u57df\u6444\u50cf\u5934\u540c\u65f6\u63a8\u6d41&#xff0c;\u9a8c\u8bc1\u7b97\u6cd5\u63a8\u7406\u7a33\u5b9a&#xff0c;\u5728\u6c34\u9762\u53cd\u5149\u3001\u8f7b\u5fae\u96fe\u6c14\u573a\u666f\u4e0b\u4e0d\u4f1a\u51fa\u73b0\u4e25\u91cd\u6f0f\u68c0\u3002\u9488\u5bf9\u975e\u6cd5\u63a5\u53e3\u8bf7\u6c42\u8fdb\u884c\u6d4b\u8bd5&#xff0c;\u6355\u83b7\u5f02\u5e38\u5e76\u7ed9\u51fa\u53cb\u597d\u63d0\u793a\u3002\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u7f3a\u9677\u53ca\u65f6\u4fee\u590d\u5e76\u56de\u5f52\u9a8c\u8bc1&#xff0c;\u4fdd\u969c\u8239\u8236\u8bc6\u522b\u4e1a\u52a1\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n<h3>\u7ed3\u8bba<\/h3>\n<p>\u672c\u6587\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e86\u57fa\u4e8e YOLO \u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf&#xff0c;\u91c7\u7528 Python&#043;Flask \u6846\u67b6\u5f00\u53d1&#xff0c;\u9488\u5bf9\u6e2f\u53e3\u3001\u6cb3\u9053\u4eba\u5de5\u76d1\u63a7\u8239\u8236\u8bc6\u522b\u6548\u7387\u4f4e\u3001\u5bb9\u6613\u6f0f\u68c0\u7684\u75db\u70b9&#xff0c;\u7ed3\u5408 YOLO \u76ee\u6807\u68c0\u6d4b\u7b97\u6cd5\u5b9e\u73b0\u6c34\u57df\u8239\u8236\u81ea\u52a8\u8bc6\u522b\u3002\u7cfb\u7edf\u5b9e\u73b0\u5b9e\u65f6\u89c6\u9891\u76d1\u6d4b\u3001\u8239\u8236\u76ee\u6807\u68c0\u6d4b\u6807\u6ce8\u3001\u8bc6\u522b\u8bb0\u5f55\u5b58\u50a8\u3001\u76d1\u63a7\u70b9\u4f4d\u7ba1\u7406\u7b49\u529f\u80fd&#xff0c;\u6ee1\u8db3\u5de1\u67e5\u4eba\u5458\u67e5\u770b\u8bc6\u522b\u8bb0\u5f55\u3001\u7ba1\u7406\u5458\u7edf\u4e00\u7ba1\u63a7\u7684\u9700\u6c42\u3002\u7ecf\u8fc7\u6d4b\u8bd5&#xff0c;\u7cfb\u7edf\u529f\u80fd\u5b8c\u6574\u3001\u8fd0\u884c\u7a33\u5b9a&#xff0c;\u8bc6\u522b\u901f\u5ea6\u5feb&#xff0c;\u9002\u7528\u4e8e\u5185\u6cb3\u3001\u6e2f\u53e3\u6c34\u57df\u76d1\u63a7\u573a\u666f\u3002\u540e\u7eed\u53ef\u4ee5\u589e\u52a0\u8239\u8236\u7ec6\u5206\u7c7b\u578b\u8bc6\u522b\u3001\u6293\u62cd\u56fe\u7247\u4fdd\u5b58\u3001\u8d8a\u754c\u544a\u8b66\u3001\u68c0\u6d4b\u533a\u57df\u5212\u5b9a\u3001\u6570\u636e\u5bfc\u51fa\u7b49\u529f\u80fd&#xff0c;\u8fdb\u4e00\u6b65\u5b8c\u5584\u7cfb\u7edf\u670d\u52a1\u80fd\u529b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/p>\n","protected":false},"author":2,"featured_media":123203,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[156],"topic":[],"class_list":["post-123218","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-yolo"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8eYOLO\u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\uff08\u6e90\u7801+\u6587\u6863\uff09 - \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\/123218.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8eYOLO\u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\uff08\u6e90\u7801+\u6587\u6863\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/123218.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-06T13:32:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133247-6aedd6ff8d9d4.jpg\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123218.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/123218.html\",\"name\":\"\u57fa\u4e8eYOLO\u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\uff08\u6e90\u7801+\u6587\u6863\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-06T13:32:56+00:00\",\"dateModified\":\"2026-11-06T13:32:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/123218.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/123218.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123218.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8eYOLO\u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\uff08\u6e90\u7801+\u6587\u6863\uff09\"}]},{\"@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":"\u57fa\u4e8eYOLO\u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\uff08\u6e90\u7801+\u6587\u6863\uff09 - \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\/123218.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8eYOLO\u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\uff08\u6e90\u7801+\u6587\u6863\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/123218.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-06T13:32:56+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261106133247-6aedd6ff8d9d4.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/123218.html","url":"https:\/\/www.wsisp.com\/helps\/123218.html","name":"\u57fa\u4e8eYOLO\u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\uff08\u6e90\u7801+\u6587\u6863\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-06T13:32:56+00:00","dateModified":"2026-11-06T13:32:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/123218.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/123218.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/123218.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8eYOLO\u7684\u8239\u8236\u8bc6\u522b\u7cfb\u7edf\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\uff08\u6e90\u7801+\u6587\u6863\uff09"}]},{"@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\/123218","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=123218"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123218\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/123203"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=123218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=123218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=123218"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=123218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}