{"id":69094,"date":"2026-01-31T04:42:21","date_gmt":"2026-01-30T20:42:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/69094.html"},"modified":"2026-01-31T04:42:21","modified_gmt":"2026-01-30T20:42:21","slug":"%e5%9f%ba%e4%ba%8e%e6%b7%b1%e5%ba%a6%e5%ad%a6%e4%b9%a0yolov12%e7%9a%84%e5%ad%a6%e7%94%9f%e8%af%be%e5%a0%82%e8%a1%8c%e4%b8%ba%e8%af%86%e5%88%ab%e6%a3%80%e6%b5%8b%e7%b3%bb%e7%bb%9f%ef%bc%88yolov12yolo","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/69094.html","title":{"rendered":"\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf\uff08YOLOv12+YOLO\u6570\u636e\u96c6+UI\u754c\u9762+\u767b\u5f55\u6ce8\u518c\u754c\u9762+Python\u9879\u76ee\u6e90\u7801+\u6a21\u578b\uff09"},"content":{"rendered":"<h3 id=\"%E4%B8%80%E3%80%81%E9%A1%B9%E7%9B%AE%E4%BB%8B%E7%BB%8D\">\u00a0\u4e00\u3001\u9879\u76ee\u4ecb\u7ecd<\/h3>\n<\/p>\n<p>\u672c\u6587\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e86\u4e00\u79cd\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u68c0\u6d4b\u7cfb\u7edf&#xff0c;\u65e8\u5728\u5b9e\u65f6\u8bc6\u522b\u8bfe\u5802\u4e2d\u7684\u5b66\u751f\u884c\u4e3a&#xff0c;\u63d0\u5347\u6559\u5b66\u7ba1\u7406\u4e0e\u8bfe\u5802\u4e92\u52a8\u6548\u7387\u3002\u7cfb\u7edf\u652f\u63016\u7c7b\u884c\u4e3a\u68c0\u6d4b&#xff0c;\u5305\u62ec\u4e3e\u624b&#xff08;hand-raising&#xff09;\u3001\u9605\u8bfb&#xff08;reading&#xff09;\u3001\u4e66\u5199&#xff08;writing&#xff09;\u3001\u4f7f\u7528\u624b\u673a&#xff08;using phone&#xff09;\u3001\u4f4e\u5934&#xff08;bowing the head&#xff09;\u548c\u8db4\u684c\u5b50&#xff08;leaning over the table&#xff09;\u3002\u6570\u636e\u96c6\u5305\u542b\u8bad\u7ec3\u96c61,422\u5f20\u3001\u9a8c\u8bc1\u96c6203\u5f20\u548c\u6d4b\u8bd5\u96c6407\u5f20\u56fe\u50cf&#xff0c;\u7ecf\u8fc7\u6807\u6ce8\u548c\u589e\u5f3a\u5904\u7406\u4ee5\u4f18\u5316\u6a21\u578b\u6cdb\u5316\u80fd\u529b\u3002<\/p>\n<p>\u7cfb\u7edf\u91c7\u7528Python\u5f00\u53d1&#xff0c;\u96c6\u6210YOLOv12\u7b97\u6cd5\u5b9e\u73b0\u9ad8\u6548\u76ee\u6807\u68c0\u6d4b&#xff0c;\u5e76\u914d\u5907\u7528\u6237\u53cb\u597d\u7684UI\u754c\u9762&#xff0c;\u652f\u6301\u767b\u5f55\u6ce8\u518c\u529f\u80fd&#xff0c;\u4fbf\u4e8e\u6559\u5e08\u548c\u7ba1\u7406\u5458\u4f7f\u7528\u3002\u5b9e\u9a8c\u8868\u660e&#xff0c;\u8be5\u7cfb\u7edf\u5728\u6d4b\u8bd5\u96c6\u4e0a\u8868\u73b0\u826f\u597d&#xff0c;\u80fd\u591f\u51c6\u786e\u8bc6\u522b\u591a\u79cd\u8bfe\u5802\u884c\u4e3a&#xff0c;\u4e3a\u8bfe\u5802\u7eaa\u5f8b\u5206\u6790\u4e0e\u6559\u5b66\u8bc4\u4f30\u63d0\u4f9b\u6570\u636e\u652f\u6301\u3002\u9879\u76ee\u5f00\u6e90\u5b8c\u6574\u4ee3\u7801\u3001\u6a21\u578b\u53ca\u6570\u636e\u96c6&#xff0c;\u53ef\u4f9b\u540e\u7eed\u7814\u7a76\u6269\u5c55\u4e0e\u5e94\u7528\u3002<\/p>\n<p>\u5173\u952e\u8bcd&#xff1a;YOLOv12&#xff1b;\u8bfe\u5802\u884c\u4e3a\u68c0\u6d4b&#xff1b;\u6df1\u5ea6\u5b66\u4e60&#xff1b;\u76ee\u6807\u68c0\u6d4b&#xff1b;\u6559\u80b2\u6280\u672f<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80%E3%80%81%E9%A1%B9%E7%9B%AE%E4%BB%8B%E7%BB%8D-toc\" style=\"margin-left:40px\">\u00a0\u4e00\u3001\u9879\u76ee\u4ecb\u7ecd<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E9%A1%B9%E7%9B%AE%E5%8A%9F%E8%83%BD%E5%B1%95%E7%A4%BA-toc\" style=\"margin-left:40px\">\u4e8c\u3001\u9879\u76ee\u529f\u80fd\u5c55\u793a<\/p>\n<p id=\"2.1%20%E7%94%A8%E6%88%B7%E7%99%BB%E5%BD%95%E7%B3%BB%E7%BB%9F-toc\" style=\"margin-left:80px\">2.1 \u7528\u6237\u767b\u5f55\u7cfb\u7edf<\/p>\n<p id=\"2.2%20%E6%A3%80%E6%B5%8B%E5%8A%9F%E8%83%BD-toc\" style=\"margin-left:80px\">2.2 \u68c0\u6d4b\u529f\u80fd<\/p>\n<p id=\"2.3%20%E6%A3%80%E6%B5%8B%E7%BB%93%E6%9E%9C%E6%98%BE%E7%A4%BA-toc\" style=\"margin-left:80px\">2.3 \u68c0\u6d4b\u7ed3\u679c\u663e\u793a<\/p>\n<p id=\"2.4%20%E5%8F%82%E6%95%B0%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:80px\">2.4 \u53c2\u6570\u914d\u7f6e<\/p>\n<p id=\"2.5%20%E5%85%B6%E4%BB%96%E5%8A%9F%E8%83%BD-toc\" style=\"margin-left:80px\">2.5 \u5176\u4ed6\u529f\u80fd<\/p>\n<p id=\"3.%20%E6%8A%80%E6%9C%AF%E7%89%B9%E7%82%B9-toc\" style=\"margin-left:40px\">3. \u6280\u672f\u7279\u70b9<\/p>\n<p id=\"4.%20%E7%B3%BB%E7%BB%9F%E6%B5%81%E7%A8%8B-toc\" style=\"margin-left:40px\">4. \u7cfb\u7edf\u6d41\u7a0b<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E6%95%B0%E6%8D%AE%E9%9B%86%E4%BB%8B%E7%BB%8D-toc\" style=\"margin-left:40px\">\u4e09\u3001\u6570\u636e\u96c6\u4ecb\u7ecd<\/p>\n<p id=\"1.%20%E6%95%B0%E6%8D%AE%E9%9B%86%E7%B1%BB%E5%88%AB-toc\" style=\"margin-left:120px\">1. \u6570\u636e\u96c6\u7c7b\u522b<\/p>\n<p id=\"2.%20%E6%95%B0%E6%8D%AE%E9%9B%86%E5%88%92%E5%88%86-toc\" style=\"margin-left:120px\">2. \u6570\u636e\u96c6\u5212\u5206<\/p>\n<p id=\"%E6%95%B0%E6%8D%AE%E9%9B%86%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:80px\">\u6570\u636e\u96c6\u914d\u7f6e\u6587\u4ef6<\/p>\n<p id=\"%E5%9B%9B%E3%80%81%E9%A1%B9%E7%9B%AE%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:40px\">\u56db\u3001\u9879\u76ee\u73af\u5883\u914d\u7f6e<\/p>\n<p id=\"%E5%88%9B%E5%BB%BA%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83-toc\" style=\"margin-left:80px\">\u521b\u5efa\u865a\u62df\u73af\u5883<\/p>\n<p id=\"%E5%AE%89%E8%A3%85%E6%89%80%E9%9C%80%E8%A6%81%E5%BA%93-toc\" style=\"margin-left:80px\">\u5b89\u88c5\u6240\u9700\u8981\u5e93<\/p>\n<p id=\"%E4%BA%94%E3%80%81%E6%A8%A1%E5%9E%8B%E8%AE%AD%E7%BB%83-toc\" style=\"margin-left:40px\">\u4e94\u3001\u6a21\u578b\u8bad\u7ec3<\/p>\n<p id=\"%E8%AE%AD%E7%BB%83%E4%BB%A3%E7%A0%81-toc\" style=\"margin-left:80px\">\u8bad\u7ec3\u4ee3\u7801<\/p>\n<p id=\"%E8%AE%AD%E7%BB%83%E7%BB%93%E6%9E%9C-toc\" style=\"margin-left:80px\">\u8bad\u7ec3\u7ed3\u679c<\/p>\n<p id=\"%E5%85%AD%E3%80%81%E6%A0%B8%E5%BF%83%E4%BB%A3%E7%A0%81-toc\" style=\"margin-left:40px\">\u516d\u3001\u6838\u5fc3\u4ee3\u7801<\/p>\n<p id=\"%F0%9F%94%90%E7%99%BB%E5%BD%95%E6%B3%A8%E5%86%8C%E9%AA%8C%E8%AF%81-toc\" style=\"margin-left:80px\">&#x1f510;\u767b\u5f55\u6ce8\u518c\u9a8c\u8bc1<\/p>\n<p id=\"%F0%9F%8E%AF%C2%A0%E5%A4%9A%E9%87%8D%E6%A3%80%E6%B5%8B%E6%A8%A1%E5%BC%8F-toc\" style=\"margin-left:80px\">&#x1f3af;\u00a0\u591a\u91cd\u68c0\u6d4b\u6a21\u5f0f<\/p>\n<p id=\"%F0%9F%96%BC%EF%B8%8F%C2%A0%E6%B2%89%E6%B5%B8%E5%BC%8F%E5%8F%AF%E8%A7%86%E5%8C%96-toc\" style=\"margin-left:80px\">&#x1f5bc;\ufe0f\u00a0\u6c89\u6d78\u5f0f\u53ef\u89c6\u5316<\/p>\n<p id=\"%E2%9A%99%EF%B8%8F%C2%A0%E5%8F%82%E6%95%B0%E9%85%8D%E7%BD%AE%E7%B3%BB%E7%BB%9F-toc\" style=\"margin-left:80px\">\u2699\ufe0f\u00a0\u53c2\u6570\u914d\u7f6e\u7cfb\u7edf<\/p>\n<p id=\"%E2%9C%A8%C2%A0UI%E7%BE%8E%E5%AD%A6%E8%AE%BE%E8%AE%A1-toc\" style=\"margin-left:80px\">\u2728\u00a0UI\u7f8e\u5b66\u8bbe\u8ba1<\/p>\n<p id=\"%F0%9F%94%84%C2%A0%E6%99%BA%E8%83%BD%E5%B7%A5%E4%BD%9C%E6%B5%81-toc\" style=\"margin-left:80px\">&#x1f504;\u00a0\u667a\u80fd\u5de5\u4f5c\u6d41<\/p>\n<p id=\"%E4%B8%83%E3%80%81%E9%A1%B9%E7%9B%AE%E6%BA%90%E7%A0%81(%E8%A7%86%E9%A2%91%E7%AE%80%E4%BB%8B%E5%86%85)-toc\" style=\"margin-left:0px\">\u4e03\u3001\u9879\u76ee\u6e90\u7801(\u89c6\u9891\u7b80\u4ecb)<\/p>\n<hr id=\"hr-toc\" \/>\n<p><span>\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf&#xff08;YOLOv12&#043;YOLO\u6570\u636e\u96c6&#043;UI\u754c\u9762&#043;\u767b\u5f55\u6ce8\u518c\u754c\u9762&#043;Python\u9879\u76ee\u6e90\u7801&#043;\u6a21\u578b&#xff09;_\u54d4\u54e9\u54d4\u54e9_bilibili<\/span><\/p>\n<p>\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf&#xff08;YOLOv12&#043;YOLO\u6570\u636e\u96c6&#043;UI\u754c\u9762&#043;\u767b\u5f55\u6ce8\u518c\u754c\u9762&#043;Python\u9879\u76ee\u6e90\u7801&#043;\u6a21\u578b&#xff09;<\/p>\n<h3 id=\"%E4%BA%8C%E3%80%81%E9%A1%B9%E7%9B%AE%E5%8A%9F%E8%83%BD%E5%B1%95%E7%A4%BA\">\u4e8c\u3001\u9879\u76ee\u529f\u80fd\u5c55\u793a<\/h3>\n<\/p>\n<p>\u2705\u00a0\u7528\u6237\u767b\u5f55\u6ce8\u518c&#xff1a;\u652f\u6301\u5bc6\u7801\u68c0\u6d4b\u548c\u5b89\u5168\u6027\u9a8c\u8bc1\u3002<\/p>\n<p>\u2705\u00a0\u4e09\u79cd\u68c0\u6d4b\u6a21\u5f0f&#xff1a;\u57fa\u4e8eYOLOv12\u6a21\u578b&#xff0c;\u652f\u6301\u56fe\u7247\u3001\u89c6\u9891\u548c\u5b9e\u65f6\u6444\u50cf\u5934\u4e09\u79cd\u68c0\u6d4b&#xff0c;\u7cbe\u51c6\u8bc6\u522b\u76ee\u6807\u3002<\/p>\n<p>\u2705\u00a0\u53cc\u753b\u9762\u5bf9\u6bd4&#xff1a;\u540c\u5c4f\u663e\u793a\u539f\u59cb\u753b\u9762\u4e0e\u68c0\u6d4b\u7ed3\u679c\u3002<\/p>\n<p>\u2705\u00a0\u6570\u636e\u53ef\u89c6\u5316&#xff1a;\u5b9e\u65f6\u8868\u683c\u5c55\u793a\u68c0\u6d4b\u76ee\u6807\u7684\u7c7b\u522b\u3001\u7f6e\u4fe1\u5ea6\u53ca\u5750\u6807\u3002<\/p>\n<p>\u2705\u667a\u80fd\u53c2\u6570\u8c03\u8282&#xff1a;\u63d0\u4f9b\u7f6e\u4fe1\u5ea6\u6ed1\u5757&#xff0c;\u52a8\u6001\u4f18\u5316\u68c0\u6d4b\u7cbe\u5ea6&#xff0c;\u9002\u5e94\u4e0d\u540c\u573a\u666f\u9700\u6c42\u3002<\/p>\n<p>\u2705\u79d1\u5e7b\u98ce\u4ea4\u4e92\u754c\u9762&#xff1a;\u6df1\u8272\u4e3b\u9898\u642d\u914d\u52a8\u6001\u5149\u6548&#xff0c;\u51cf\u5c11\u89c6\u89c9\u75b2\u52b3&#xff0c;\u63d0\u5347\u64cd\u4f5c\u4f53\u9a8c\u3002<\/p>\n<p>\u2705\u591a\u7ebf\u7a0b\u9ad8\u6027\u80fd\u67b6\u6784&#xff1a;\u72ec\u7acb\u68c0\u6d4b\u7ebf\u7a0b\u4fdd\u969c\u6d41\u7545\u8fd0\u884c&#xff0c;\u5b9e\u65f6\u72b6\u6001\u63d0\u793a&#xff0c;\u54cd\u5e94\u8fc5\u901f\u65e0\u5361\u987f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"532\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204205-697d179d9f017.png\" width=\"466\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1122\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204205-697d179dc7968.png\" width=\"1200\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1122\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204206-697d179ee49f6.png\" width=\"1200\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1122\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204207-697d179fb608f.png\" width=\"1200\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1122\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204208-697d17a08b538.png\" width=\"1200\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1122\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204209-697d17a15cb7d.png\" width=\"1200\" \/><\/p>\n<\/p>\n<h4 id=\"2.1%20%E7%94%A8%E6%88%B7%E7%99%BB%E5%BD%95%E7%B3%BB%E7%BB%9F\">2.1 \u7528\u6237\u767b\u5f55\u7cfb\u7edf<\/h4>\n<ul>\n<li>\n<p>\u63d0\u4f9b\u7528\u6237\u767b\u5f55\u548c\u6ce8\u518c\u529f\u80fd<\/p>\n<\/li>\n<li>\n<p>\u7528\u6237\u540d\u548c\u5bc6\u7801\u9a8c\u8bc1<\/p>\n<\/li>\n<li>\n<p>\u8d26\u6237\u4fe1\u606f\u672c\u5730\u5b58\u50a8(accounts.json)<\/p>\n<\/li>\n<li>\n<p>\u5bc6\u7801\u957f\u5ea6\u81f3\u5c116\u4f4d\u7684\u5b89\u5168\u8981\u6c42<\/p>\n<\/li>\n<\/ul>\n<h4 id=\"2.2%20%E6%A3%80%E6%B5%8B%E5%8A%9F%E8%83%BD\">2.2 \u68c0\u6d4b\u529f\u80fd<\/h4>\n<ul>\n<li>\n<p>\u56fe\u7247\u68c0\u6d4b&#xff1a;\u652f\u6301JPG\/JPEG\/PNG\/BMP\u683c\u5f0f\u56fe\u7247\u7684\u706b\u7130\u70df\u96fe\u68c0\u6d4b<\/p>\n<\/li>\n<li>\n<p>\u89c6\u9891\u68c0\u6d4b&#xff1a;\u652f\u6301MP4\/AVI\/MOV\u683c\u5f0f\u89c6\u9891\u7684\u9010\u5e27\u68c0\u6d4b<\/p>\n<\/li>\n<li>\n<p>\u6444\u50cf\u5934\u68c0\u6d4b&#xff1a;\u5b9e\u65f6\u6444\u50cf\u5934\u6d41\u68c0\u6d4b(\u9ed8\u8ba4\u6444\u50cf\u59340)<\/p>\n<\/li>\n<li>\n<p>\u68c0\u6d4b\u7ed3\u679c\u4fdd\u5b58\u5230&#034;results&#034;\u76ee\u5f55<\/p>\n<\/li>\n<\/ul>\n<h4 id=\"2.3%20%E6%A3%80%E6%B5%8B%E7%BB%93%E6%9E%9C%E6%98%BE%E7%A4%BA\">2.3 \u68c0\u6d4b\u7ed3\u679c\u663e\u793a<\/h4>\n<ul>\n<li>\n<p>\u663e\u793a\u539f\u59cb\u56fe\u50cf\u548c\u68c0\u6d4b\u7ed3\u679c\u56fe\u50cf<\/p>\n<\/li>\n<li>\n<p>\u68c0\u6d4b\u7ed3\u679c\u8868\u683c\u5c55\u793a&#xff0c;\u5305\u542b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u68c0\u6d4b\u5230\u7684\u7c7b\u522b<\/p>\n<\/li>\n<li>\n<p>\u7f6e\u4fe1\u5ea6\u5206\u6570<\/p>\n<\/li>\n<li>\n<p>\u7269\u4f53\u4f4d\u7f6e\u5750\u6807(x,y)\u3001<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4 id=\"2.4%20%E5%8F%82%E6%95%B0%E9%85%8D%E7%BD%AE\">2.4 \u53c2\u6570\u914d\u7f6e<\/h4>\n<ul>\n<li>\n<p>\u6a21\u578b\u9009\u62e9<\/p>\n<\/li>\n<li>\n<p>\u7f6e\u4fe1\u5ea6\u9608\u503c\u8c03\u8282(0-1.0)<\/p>\n<\/li>\n<li>\n<p>IoU(\u4ea4\u5e76\u6bd4)\u9608\u503c\u8c03\u8282(0-1.0)<\/p>\n<\/li>\n<li>\n<p>\u5b9e\u65f6\u540c\u6b65\u6ed1\u5757\u548c\u6570\u503c\u8f93\u5165\u6846<\/p>\n<\/li>\n<\/ul>\n<h4 id=\"2.5%20%E5%85%B6%E4%BB%96%E5%8A%9F%E8%83%BD\">2.5 \u5176\u4ed6\u529f\u80fd<\/h4>\n<ul>\n<li>\n<p>\u68c0\u6d4b\u7ed3\u679c\u4fdd\u5b58\u529f\u80fd<\/p>\n<\/li>\n<li>\n<p>\u89c6\u9891\u68c0\u6d4b\u65f6\u81ea\u52a8\u4fdd\u5b58\u7ed3\u679c\u89c6\u9891<\/p>\n<\/li>\n<li>\n<p>\u72b6\u6001\u680f\u663e\u793a\u7cfb\u7edf\u72b6\u6001\u548c\u6700\u540e\u66f4\u65b0\u65f6\u95f4<\/p>\n<\/li>\n<li>\n<p>\u65e0\u8fb9\u6846\u7a97\u53e3\u8bbe\u8ba1&#xff0c;\u53ef\u62d6\u52a8\u548c\u8c03\u6574\u5927\u5c0f<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"3.%20%E6%8A%80%E6%9C%AF%E7%89%B9%E7%82%B9\">3. \u6280\u672f\u7279\u70b9<\/h3>\n<ul>\n<li>\n<p>\u91c7\u7528\u591a\u7ebf\u7a0b\u5904\u7406\u68c0\u6d4b\u4efb\u52a1&#xff0c;\u907f\u514d\u754c\u9762\u5361\u987f<\/p>\n<\/li>\n<li>\n<p>\u7cbe\u7f8e\u7684UI\u8bbe\u8ba1&#xff0c;\u5177\u6709\u79d1\u6280\u611f\u7684\u89c6\u89c9\u6548\u679c&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u53d1\u5149\u8fb9\u6846\u548c\u6309\u94ae<\/p>\n<\/li>\n<li>\n<p>\u60ac\u505c\u548c\u6309\u4e0b\u72b6\u6001\u6548\u679c<\/p>\n<\/li>\n<li>\n<p>\u81ea\u5b9a\u4e49\u6ed1\u5757\u3001\u8868\u683c\u548c\u4e0b\u62c9\u6846\u6837\u5f0f<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u68c0\u6d4b\u7ed3\u679c\u4fdd\u5b58\u673a\u5236<\/p>\n<\/li>\n<li>\n<p>\u54cd\u5e94\u5f0f\u5e03\u5c40&#xff0c;\u9002\u5e94\u4e0d\u540c\u7a97\u53e3\u5927\u5c0f<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"4.%20%E7%B3%BB%E7%BB%9F%E6%B5%81%E7%A8%8B\">4. \u7cfb\u7edf\u6d41\u7a0b<\/h3>\n<li>\n<p>\u7528\u6237\u767b\u5f55\/\u6ce8\u518c<\/p>\n<\/li>\n<li>\n<p>\u9009\u62e9\u68c0\u6d4b\u6a21\u5f0f(\u56fe\u7247\/\u89c6\u9891\/\u6444\u50cf\u5934)<\/p>\n<\/li>\n<li>\n<p>\u8c03\u6574\u68c0\u6d4b\u53c2\u6570(\u53ef\u9009)<\/p>\n<\/li>\n<li>\n<p>\u5f00\u59cb\u68c0\u6d4b\u5e76\u67e5\u770b\u7ed3\u679c<\/p>\n<\/li>\n<li>\n<p>\u53ef\u9009\u62e9\u4fdd\u5b58\u68c0\u6d4b\u7ed3\u679c<\/p>\n<\/li>\n<li>\n<p>\u505c\u6b62\u68c0\u6d4b\u6216\u5207\u6362\u5176\u4ed6\u6a21\u5f0f<\/p>\n<\/li>\n<\/p>\n<h3 id=\"%E4%B8%89%E3%80%81%E6%95%B0%E6%8D%AE%E9%9B%86%E4%BB%8B%E7%BB%8D\">\u4e09\u3001\u6570\u636e\u96c6\u4ecb\u7ecd<\/h3>\n<\/p>\n<p>\u672c\u7cfb\u7edf\u91c7\u7528YOLO\u683c\u5f0f\u6807\u6ce8\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u6570\u636e\u96c6&#xff0c;\u5171\u5305\u542b\u00a06 \u7c7b\u884c\u4e3a&#xff0c;\u7528\u4e8e\u8bad\u7ec3\u3001\u9a8c\u8bc1\u548c\u6d4b\u8bd5\u57fa\u4e8e\u00a0YOLOv12\u00a0\u7684\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\u3002\u6570\u636e\u96c6\u7ecf\u8fc7\u4e25\u683c\u7b5b\u9009\u548c\u6807\u6ce8&#xff0c;\u786e\u4fdd\u6a21\u578b\u80fd\u591f\u51c6\u786e\u8bc6\u522b\u8bfe\u5802\u73af\u5883\u4e2d\u7684\u5b66\u751f\u884c\u4e3a\u3002<\/p>\n<h5 id=\"1.%20%E6%95%B0%E6%8D%AE%E9%9B%86%E7%B1%BB%E5%88%AB\">1. \u6570\u636e\u96c6\u7c7b\u522b<\/h5>\n<p>\u6570\u636e\u96c6\u4e2d\u5305\u542b\u4ee5\u4e0b\u00a06 \u79cd\u8bfe\u5802\u884c\u4e3a&#xff1a;<\/p>\n<li>\n<p>hand-raising&#xff08;\u4e3e\u624b&#xff09;<\/p>\n<\/li>\n<li>\n<p>reading&#xff08;\u9605\u8bfb&#xff09;<\/p>\n<\/li>\n<li>\n<p>writing&#xff08;\u4e66\u5199&#xff09;<\/p>\n<\/li>\n<li>\n<p>using phone&#xff08;\u4f7f\u7528\u624b\u673a&#xff09;<\/p>\n<\/li>\n<li>\n<p>bowing the head&#xff08;\u4f4e\u5934&#xff09;<\/p>\n<\/li>\n<li>\n<p>leaning over the table&#xff08;\u8db4\u684c\u5b50&#xff09;<\/p>\n<\/li>\n<h5 id=\"2.%20%E6%95%B0%E6%8D%AE%E9%9B%86%E5%88%92%E5%88%86\">2. \u6570\u636e\u96c6\u5212\u5206<\/h5>\n<p>\u6570\u636e\u96c6\u6309\u7167\u00a0\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u3001\u6d4b\u8bd5\u96c6\u00a0\u8fdb\u884c\u5212\u5206&#xff0c;\u786e\u4fdd\u6a21\u578b\u8bad\u7ec3\u548c\u8bc4\u4f30\u7684\u79d1\u5b66\u6027&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u8bad\u7ec3\u96c6&#xff08;Train&#xff09;&#xff1a;1,422 \u5f20\u56fe\u50cf&#xff08;\u7528\u4e8e\u6a21\u578b\u8bad\u7ec3&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u9a8c\u8bc1\u96c6&#xff08;Validation&#xff09;&#xff1a;203 \u5f20\u56fe\u50cf&#xff08;\u7528\u4e8e\u8d85\u53c2\u6570\u8c03\u4f18&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u6d4b\u8bd5\u96c6&#xff08;Test&#xff09;&#xff1a;407 \u5f20\u56fe\u50cf&#xff08;\u7528\u4e8e\u6700\u7ec8\u6a21\u578b\u8bc4\u4f30&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h4 id=\"%E6%95%B0%E6%8D%AE%E9%9B%86%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\">\u6570\u636e\u96c6\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>\u6570\u636e\u96c6\u91c7\u7528\u6807\u51c6\u5316YOLO\u683c\u5f0f\u7ec4\u7ec7&#xff1a;<\/p>\n<p>train: F:\\\\\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u68c0\u6d4b\u6570\u636e\u96c6\/images\/train<br \/>\nval: F:\\\\\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u68c0\u6d4b\u6570\u636e\u96c6\/images\/val<br \/>\ntest: F:\\\\\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u68c0\u6d4b\u6570\u636e\u96c6\/images\/test<\/p>\n<p>##\/datasets\/dataset\/images\/test<br \/>\n# number of classes<br \/>\nnc: 6<\/p>\n<p># class names<br \/>\nnames:  [ &#039;hand-raising&#039;, &#039;reading&#039;, &#039;writing&#039;,&#039;using phone&#039;, &#039;bowing the head&#039;, &#039;leaning over the table&#039;] <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"733\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204210-697d17a22429f.png\" width=\"1530\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"756\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204211-697d17a3160c9.png\" width=\"779\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"556\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204211-697d17a378b9c.png\" width=\"879\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1600\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204211-697d17a3f0614.jpg\" width=\"1600\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"2000\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204213-697d17a53e820.jpg\" width=\"2000\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1920\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204214-697d17a66f9fb.jpg\" width=\"1920\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1920\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204215-697d17a7db7fa.jpg\" width=\"1920\" \/><\/p>\n<\/p>\n<\/p>\n<h3 id=\"%E5%9B%9B%E3%80%81%E9%A1%B9%E7%9B%AE%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE\">\u56db\u3001\u9879\u76ee\u73af\u5883\u914d\u7f6e<\/h3>\n<h4 id=\"%E5%88%9B%E5%BB%BA%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83\">\u521b\u5efa\u865a\u62df\u73af\u5883<\/h4>\n<p>\u9996\u5148\u65b0\u5efa\u4e00\u4e2aAnaconda\u73af\u5883&#xff0c;\u6bcf\u4e2a\u9879\u76ee\u7528\u4e0d\u540c\u7684\u73af\u5883&#xff0c;\u8fd9\u6837\u9879\u76ee\u4e2d\u6240\u7528\u7684\u4f9d\u8d56\u5305\u4e92\u4e0d\u5e72\u6270\u3002<\/p>\n<\/p>\n<p>\u7ec8\u7aef\u8f93\u5165<\/p>\n<p>conda create -n yolov12 python&#061;&#061;3.9<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"628\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204217-697d17a9876d9.png\" width=\"734\" \/><\/p>\n<\/p>\n<p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/p>\n<p>conda activate yolov12 <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"140\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204217-697d17a9ac795.png\" width=\"457\" \/><\/p>\n<\/p>\n<p>\u5b89\u88c5cpu\u7248\u672cpytorch<\/p>\n<p>pip install torch torchvision torchaudio <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"397\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204217-697d17a9c34a0.png\" width=\"744\" \/><\/p>\n<\/p>\n<h4 id=\"%E5%AE%89%E8%A3%85%E6%89%80%E9%9C%80%E8%A6%81%E5%BA%93\">\u5b89\u88c5\u6240\u9700\u8981\u5e93<\/h4>\n<p>pip install -r requirements.txt<\/p>\n<\/p>\n<p>pycharm\u4e2d\u914d\u7f6eanaconda<\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"539\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204217-697d17a9e353a.png\" width=\"746\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"575\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204218-697d17aa1445b.png\" width=\"932\" \/><\/p>\n<\/p>\n<h3 id=\"%E4%BA%94%E3%80%81%E6%A8%A1%E5%9E%8B%E8%AE%AD%E7%BB%83\">\u4e94\u3001\u6a21\u578b\u8bad\u7ec3<\/h3>\n<h4 id=\"%E8%AE%AD%E7%BB%83%E4%BB%A3%E7%A0%81\">\u8bad\u7ec3\u4ee3\u7801<\/h4>\n<p>from ultralytics import YOLO<\/p>\n<p>model_path &#061; &#039;yolo12s.pt&#039;<br \/>\ndata_path &#061; &#039;data.yaml&#039;<\/p>\n<p>if __name__ &#061;&#061; &#039;__main__&#039;:<br \/>\n    model &#061; YOLO(model_path)<br \/>\n    results &#061; model.train(data&#061;data_path,<br \/>\n                          epochs&#061;100,<br \/>\n                          batch&#061;8,<br \/>\n                          device&#061;&#039;0&#039;,<br \/>\n                          workers&#061;0,<br \/>\n                          project&#061;&#039;runs&#039;,<br \/>\n                          name&#061;&#039;exp&#039;,<br \/>\n                          )<br \/>\n\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u66f4\u6362\u6a21\u578b<br \/>\n# yolov12n.yaml (nano)&#xff1a;\u8f7b\u91cf\u5316\u6a21\u578b&#xff0c;\u9002\u5408\u5d4c\u5165\u5f0f\u8bbe\u5907&#xff0c;\u901f\u5ea6\u5feb\u4f46\u7cbe\u5ea6\u7565\u4f4e\u3002<br \/>\n# yolov12s.yaml (small)&#xff1a;\u5c0f\u6a21\u578b&#xff0c;\u9002\u5408\u5b9e\u65f6\u4efb\u52a1\u3002<br \/>\n# yolov12m.yaml (medium)&#xff1a;\u4e2d\u7b49\u5927\u5c0f\u6a21\u578b&#xff0c;\u517c\u987e\u901f\u5ea6\u548c\u7cbe\u5ea6\u3002<br \/>\n# yolov12b.yaml (base)&#xff1a;\u57fa\u672c\u7248\u6a21\u578b&#xff0c;\u9002\u5408\u5927\u90e8\u5206\u5e94\u7528\u573a\u666f\u3002<br \/>\n# yolov12l.yaml (large)&#xff1a;\u5927\u578b\u6a21\u578b&#xff0c;\u9002\u5408\u5bf9\u7cbe\u5ea6\u8981\u6c42\u9ad8\u7684\u4efb\u52a1\u3002 <\/p>\n<ul>\n<li>&#8211;batch 8&#xff1a;\u6bcf\u6279\u6b218\u5f20\u56fe\u50cf\u3002<\/li>\n<li>&#8211;epochs 100&#xff1a;\u8bad\u7ec3100\u8f6e\u3002<\/li>\n<li>&#8211;datasets\/data.yaml&#xff1a;\u6570\u636e\u96c6\u914d\u7f6e\u6587\u4ef6\u3002<\/li>\n<li>&#8211;weights yolov12s.pt&#xff1a;\u521d\u59cb\u5316\u6a21\u578b\u6743\u91cd&#xff0c;yolov12s.pt \u662f\u9884\u8bad\u7ec3\u7684\u8f7b\u91cf\u7ea7YOLO\u6a21\u578b\u3002<\/li>\n<\/ul>\n<h4 id=\"%E8%AE%AD%E7%BB%83%E7%BB%93%E6%9E%9C\">\u8bad\u7ec3\u7ed3\u679c<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"766\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204218-697d17aa4d11c.png\" width=\"1228\" \/><\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1500\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204218-697d17aabf170.png\" width=\"2250\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1200\" src=\"2026-01-315fym43bi22d.png\" width=\"2400\" \/><\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1500\" src=\"2026-01-31m4clcxlrr1f.png\" width=\"2250\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1500\" src=\"2026-01-31juuf2py2b4e.png\" width=\"2250\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1500\" src=\"2026-01-31wtctt2z5z40.png\" width=\"2250\" \/><\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1100\" src=\"2026-01-31rpe1z3e4y5b.jpg\" width=\"1920\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1100\" src=\"2026-01-31np1gz3uhgft.jpg\" width=\"1920\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1100\" src=\"2026-01-31eqnpdjxjlpl.jpg\" width=\"1920\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1100\" src=\"2026-01-31krvihknhyoq.jpg\" width=\"1920\" \/><\/p>\n<\/p>\n<h3 id=\"%E5%85%AD%E3%80%81%E6%A0%B8%E5%BF%83%E4%BB%A3%E7%A0%81\">\u516d\u3001\u6838\u5fc3\u4ee3\u7801<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1121\" src=\"2026-01-311xntglfzrti.png\" width=\"1775\" \/><\/p>\n<p>import sys<\/p>\n<p>import cv2<br \/>\nimport numpy as np<br \/>\nfrom PyQt5.QtWidgets import QApplication, QMessageBox, QFileDialog<br \/>\nfrom PyQt5.QtCore import QThread, pyqtSignal<br \/>\nfrom ultralytics import YOLO<br \/>\nfrom UiMain import UiMainWindow<br \/>\nimport time<br \/>\nimport os<br \/>\nfrom PyQt5.QtWidgets import QDialog<br \/>\nfrom LoginWindow import LoginWindow<\/p>\n<p>class DetectionThread(QThread):<br \/>\n    frame_received &#061; pyqtSignal(np.ndarray, np.ndarray, list)  # \u539f\u59cb\u5e27, \u68c0\u6d4b\u5e27, \u68c0\u6d4b\u7ed3\u679c<br \/>\n    finished_signal &#061; pyqtSignal()  # \u7ebf\u7a0b\u5b8c\u6210\u4fe1\u53f7<\/p>\n<p>    def __init__(self, model, source, conf, iou, parent&#061;None):<br \/>\n        super().__init__(parent)<br \/>\n        self.model &#061; model<br \/>\n        self.source &#061; source<br \/>\n        self.conf &#061; conf<br \/>\n        self.iou &#061; iou<br \/>\n        self.running &#061; True<\/p>\n<p>    def run(self):<br \/>\n        try:<br \/>\n            if isinstance(self.source, int) or self.source.endswith((&#039;.mp4&#039;, &#039;.avi&#039;, &#039;.mov&#039;)):  # \u89c6\u9891\u6216\u6444\u50cf\u5934<br \/>\n                cap &#061; cv2.VideoCapture(self.source)<br \/>\n                while self.running and cap.isOpened():<br \/>\n                    ret, frame &#061; cap.read()<br \/>\n                    if not ret:<br \/>\n                        break<\/p>\n<p>                    # \u4fdd\u5b58\u539f\u59cb\u5e27<br \/>\n                    original_frame &#061; frame.copy()<\/p>\n<p>                    # \u68c0\u6d4b<br \/>\n                    results &#061; self.model(frame, conf&#061;self.conf, iou&#061;self.iou)<br \/>\n                    annotated_frame &#061; results[0].plot()<\/p>\n<p>                    # \u63d0\u53d6\u68c0\u6d4b\u7ed3\u679c<br \/>\n                    detections &#061; []<br \/>\n                    for result in results:<br \/>\n                        for box in result.boxes:<br \/>\n                            class_id &#061; int(box.cls)<br \/>\n                            class_name &#061; self.model.names[class_id]<br \/>\n                            confidence &#061; float(box.conf)<br \/>\n                            x, y, w, h &#061; box.xywh[0].tolist()<br \/>\n                            detections.append((class_name, confidence, x, y))<\/p>\n<p>                    # \u53d1\u9001\u4fe1\u53f7<br \/>\n                    self.frame_received.emit(<br \/>\n                        cv2.cvtColor(original_frame, cv2.COLOR_BGR2RGB),<br \/>\n                        cv2.cvtColor(annotated_frame, cv2.COLOR_BGR2RGB),<br \/>\n                        detections<br \/>\n                    )<\/p>\n<p>                    # \u63a7\u5236\u5e27\u7387<br \/>\n                    time.sleep(0.03)  # \u7ea630fps<\/p>\n<p>                cap.release()<br \/>\n            else:  # \u56fe\u7247<br \/>\n                frame &#061; cv2.imread(self.source)<br \/>\n                if frame is not None:<br \/>\n                    original_frame &#061; frame.copy()<br \/>\n                    results &#061; self.model(frame, conf&#061;self.conf, iou&#061;self.iou)<br \/>\n                    annotated_frame &#061; results[0].plot()<\/p>\n<p>                    # \u63d0\u53d6\u68c0\u6d4b\u7ed3\u679c<br \/>\n                    detections &#061; []<br \/>\n                    for result in results:<br \/>\n                        for box in result.boxes:<br \/>\n                            class_id &#061; int(box.cls)<br \/>\n                            class_name &#061; self.model.names[class_id]<br \/>\n                            confidence &#061; float(box.conf)<br \/>\n                            x, y, w, h &#061; box.xywh[0].tolist()<br \/>\n                            detections.append((class_name, confidence, x, y))<\/p>\n<p>                    self.frame_received.emit(<br \/>\n                        cv2.cvtColor(original_frame, cv2.COLOR_BGR2RGB),<br \/>\n                        cv2.cvtColor(annotated_frame, cv2.COLOR_BGR2RGB),<br \/>\n                        detections<br \/>\n                    )<\/p>\n<p>        except Exception as e:<br \/>\n            print(f&#034;Detection error: {e}&#034;)<br \/>\n        finally:<br \/>\n            self.finished_signal.emit()<\/p>\n<p>    def stop(self):<br \/>\n        self.running &#061; False<\/p>\n<p>class MainWindow(UiMainWindow):<br \/>\n    def __init__(self):<br \/>\n        super().__init__()<\/p>\n<p>        # \u521d\u59cb\u5316\u6a21\u578b<br \/>\n        self.model &#061; None<br \/>\n        self.detection_thread &#061; None<br \/>\n        self.current_image &#061; None<br \/>\n        self.current_result &#061; None<br \/>\n        self.video_writer &#061; None<br \/>\n        self.is_camera_running &#061; False<br \/>\n        self.is_video_running &#061; False<br \/>\n        self.last_detection_result &#061; None  # \u65b0\u589e&#xff1a;\u4fdd\u5b58\u6700\u540e\u4e00\u6b21\u68c0\u6d4b\u7ed3\u679c<\/p>\n<p>        # \u8fde\u63a5\u6309\u94ae\u4fe1\u53f7<br \/>\n        self.image_btn.clicked.connect(self.detect_image)<br \/>\n        self.video_btn.clicked.connect(self.detect_video)<br \/>\n        self.camera_btn.clicked.connect(self.detect_camera)<br \/>\n        self.stop_btn.clicked.connect(self.stop_detection)<br \/>\n        self.save_btn.clicked.connect(self.save_result)<\/p>\n<p>        # \u521d\u59cb\u5316\u6a21\u578b<br \/>\n        self.load_model()<\/p>\n<p>    def load_model(self):<br \/>\n        try:<br \/>\n            model_name &#061; self.model_combo.currentText()<br \/>\n            self.model &#061; YOLO(f&#034;{model_name}.pt&#034;)  # \u81ea\u52a8\u4e0b\u8f7d\u6216\u52a0\u8f7d\u672c\u5730\u6a21\u578b<br \/>\n            self.update_status(f&#034;\u6a21\u578b {model_name} \u52a0\u8f7d\u6210\u529f&#034;)<br \/>\n        except Exception as e:<br \/>\n            QMessageBox.critical(self, &#034;\u9519\u8bef&#034;, f&#034;\u6a21\u578b\u52a0\u8f7d\u5931\u8d25: {str(e)}&#034;)<br \/>\n            self.update_status(&#034;\u6a21\u578b\u52a0\u8f7d\u5931\u8d25&#034;)<\/p>\n<p>    def detect_image(self):<br \/>\n        if self.detection_thread and self.detection_thread.isRunning():<br \/>\n            QMessageBox.warning(self, &#034;\u8b66\u544a&#034;, &#034;\u8bf7\u5148\u505c\u6b62\u5f53\u524d\u68c0\u6d4b\u4efb\u52a1&#034;)<br \/>\n            return<\/p>\n<p>        file_path, _ &#061; QFileDialog.getOpenFileName(<br \/>\n            self, &#034;\u9009\u62e9\u56fe\u7247&#034;, &#034;&#034;, &#034;\u56fe\u7247\u6587\u4ef6 (*.jpg *.jpeg *.png *.bmp)&#034;)<\/p>\n<p>        if file_path:<br \/>\n            self.clear_results()<br \/>\n            self.current_image &#061; cv2.imread(file_path)<br \/>\n            self.current_image &#061; cv2.cvtColor(self.current_image, cv2.COLOR_BGR2RGB)<br \/>\n            self.display_image(self.original_image_label, self.current_image)<\/p>\n<p>            # \u521b\u5efa\u68c0\u6d4b\u7ebf\u7a0b<br \/>\n            conf &#061; self.confidence_spinbox.value()<br \/>\n            iou &#061; self.iou_spinbox.value()<br \/>\n            self.detection_thread &#061; DetectionThread(self.model, file_path, conf, iou)<br \/>\n            self.detection_thread.frame_received.connect(self.on_frame_received)<br \/>\n            self.detection_thread.finished_signal.connect(self.on_detection_finished)<br \/>\n            self.detection_thread.start()<\/p>\n<p>            self.update_status(f&#034;\u6b63\u5728\u68c0\u6d4b\u56fe\u7247: {os.path.basename(file_path)}&#034;)<\/p>\n<p>    def detect_video(self):<br \/>\n        if self.detection_thread and self.detection_thread.isRunning():<br \/>\n            QMessageBox.warning(self, &#034;\u8b66\u544a&#034;, &#034;\u8bf7\u5148\u505c\u6b62\u5f53\u524d\u68c0\u6d4b\u4efb\u52a1&#034;)<br \/>\n            return<\/p>\n<p>        file_path, _ &#061; QFileDialog.getOpenFileName(<br \/>\n            self, &#034;\u9009\u62e9\u89c6\u9891&#034;, &#034;&#034;, &#034;\u89c6\u9891\u6587\u4ef6 (*.mp4 *.avi *.mov)&#034;)<\/p>\n<p>        if file_path:<br \/>\n            self.clear_results()<br \/>\n            self.is_video_running &#061; True<\/p>\n<p>            # \u521d\u59cb\u5316\u89c6\u9891\u5199\u5165\u5668<br \/>\n            cap &#061; cv2.VideoCapture(file_path)<br \/>\n            frame_width &#061; int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))<br \/>\n            frame_height &#061; int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))<br \/>\n            fps &#061; cap.get(cv2.CAP_PROP_FPS)<br \/>\n            cap.release()<\/p>\n<p>            # \u521b\u5efa\u4fdd\u5b58\u8def\u5f84<br \/>\n            save_dir &#061; &#034;results&#034;<br \/>\n            os.makedirs(save_dir, exist_ok&#061;True)<br \/>\n            timestamp &#061; time.strftime(&#034;%Y%m%d_%H%M%S&#034;)<br \/>\n            save_path &#061; os.path.join(save_dir, f&#034;result_{timestamp}.mp4&#034;)<\/p>\n<p>            fourcc &#061; cv2.VideoWriter_fourcc(*&#039;mp4v&#039;)<br \/>\n            self.video_writer &#061; cv2.VideoWriter(save_path, fourcc, fps, (frame_width, frame_height))<\/p>\n<p>            # \u521b\u5efa\u68c0\u6d4b\u7ebf\u7a0b<br \/>\n            conf &#061; self.confidence_spinbox.value()<br \/>\n            iou &#061; self.iou_spinbox.value()<br \/>\n            self.detection_thread &#061; DetectionThread(self.model, file_path, conf, iou)<br \/>\n            self.detection_thread.frame_received.connect(self.on_frame_received)<br \/>\n            self.detection_thread.finished_signal.connect(self.on_detection_finished)<br \/>\n            self.detection_thread.start()<\/p>\n<p>            self.update_status(f&#034;\u6b63\u5728\u68c0\u6d4b\u89c6\u9891: {os.path.basename(file_path)}&#034;)<\/p>\n<p>    def detect_camera(self):<br \/>\n        if self.detection_thread and self.detection_thread.isRunning():<br \/>\n            QMessageBox.warning(self, &#034;\u8b66\u544a&#034;, &#034;\u8bf7\u5148\u505c\u6b62\u5f53\u524d\u68c0\u6d4b\u4efb\u52a1&#034;)<br \/>\n            return<\/p>\n<p>        self.clear_results()<br \/>\n        self.is_camera_running &#061; True<\/p>\n<p>        # \u521b\u5efa\u68c0\u6d4b\u7ebf\u7a0b (\u9ed8\u8ba4\u4f7f\u7528\u6444\u50cf\u59340)<br \/>\n        conf &#061; self.confidence_spinbox.value()<br \/>\n        iou &#061; self.iou_spinbox.value()<br \/>\n        self.detection_thread &#061; DetectionThread(self.model, 0, conf, iou)<br \/>\n        self.detection_thread.frame_received.connect(self.on_frame_received)<br \/>\n        self.detection_thread.finished_signal.connect(self.on_detection_finished)<br \/>\n        self.detection_thread.start()<\/p>\n<p>        self.update_status(&#034;\u6b63\u5728\u4ece\u6444\u50cf\u5934\u68c0\u6d4b&#8230;&#034;) <\/p>\n<h4 id=\"%F0%9F%94%90%E7%99%BB%E5%BD%95%E6%B3%A8%E5%86%8C%E9%AA%8C%E8%AF%81\">&#x1f510;\u767b\u5f55\u6ce8\u518c\u9a8c\u8bc1<\/h4>\n<p>\u5bf9\u5e94\u6587\u4ef6&#xff1a;LoginWindow.py<\/p>\n<p># \u8d26\u6237\u9a8c\u8bc1\u6838\u5fc3\u903b\u8f91<br \/>\ndef handle_login(self):<br \/>\n    username &#061; self.username_input.text().strip()<br \/>\n    password &#061; self.password_input.text().strip()<\/p>\n<p>    if not username or not password:<br \/>\n        QMessageBox.warning(self, &#034;\u8b66\u544a&#034;, &#034;\u7528\u6237\u540d\u548c\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a&#xff01;&#034;)<br \/>\n        return<\/p>\n<p>    if username in self.accounts and self.accounts[username] &#061;&#061; password:<br \/>\n        self.accept()  # \u9a8c\u8bc1\u901a\u8fc7<br \/>\n    else:<br \/>\n        QMessageBox.warning(self, &#034;\u9519\u8bef&#034;, &#034;\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef&#xff01;&#034;)<\/p>\n<p># \u5bc6\u7801\u5f3a\u5ea6\u68c0\u67e5&#xff08;\u6ce8\u518c\u65f6&#xff09;<br \/>\ndef handle_register(self):<br \/>\n    if len(password) &lt; 6:  # \u5bc6\u7801\u957f\u5ea6\u22656\u4f4d<br \/>\n        QMessageBox.warning(self, &#034;\u8b66\u544a&#034;, &#034;\u5bc6\u7801\u957f\u5ea6\u81f3\u5c11\u4e3a6\u4f4d&#xff01;&#034;) <\/p>\n<h4 id=\"%F0%9F%8E%AF%C2%A0%E5%A4%9A%E9%87%8D%E6%A3%80%E6%B5%8B%E6%A8%A1%E5%BC%8F\">&#x1f3af;\u00a0\u591a\u91cd\u68c0\u6d4b\u6a21\u5f0f<\/h4>\n<p>\u5bf9\u5e94\u6587\u4ef6&#xff1a;main.py<\/p>\n<p>\u56fe\u7247\u68c0\u6d4b<\/p>\n<p>def detect_image(self):<br \/>\n    file_path, _ &#061; QFileDialog.getOpenFileName(<br \/>\n        self, &#034;\u9009\u62e9\u56fe\u7247&#034;, &#034;&#034;, &#034;\u56fe\u7247\u6587\u4ef6 (*.jpg *.jpeg *.png *.bmp)&#034;)<br \/>\n    if file_path:<br \/>\n        self.detection_thread &#061; DetectionThread(self.model, file_path, conf, iou)<br \/>\n        self.detection_thread.start()  # \u542f\u52a8\u68c0\u6d4b\u7ebf\u7a0b <\/p>\n<p>\u89c6\u9891\u68c0\u6d4b<\/p>\n<p>def detect_video(self):<br \/>\n    file_path, _ &#061; QFileDialog.getOpenFileName(<br \/>\n        self, &#034;\u9009\u62e9\u89c6\u9891&#034;, &#034;&#034;, &#034;\u89c6\u9891\u6587\u4ef6 (*.mp4 *.avi *.mov)&#034;)<br \/>\n    if file_path:<br \/>\n        self.video_writer &#061; cv2.VideoWriter()  # \u521d\u59cb\u5316\u89c6\u9891\u5199\u5165\u5668<br \/>\n        self.detection_thread &#061; DetectionThread(self.model, file_path, conf, iou) <\/p>\n<p>\u5b9e\u65f6\u6444\u50cf\u5934<\/p>\n<p>def detect_camera(self):<br \/>\n    self.detection_thread &#061; DetectionThread(self.model, 0, conf, iou)  # \u6444\u50cf\u5934\u8bbe\u5907\u53f70<br \/>\n    self.detection_thread.start() <\/p>\n<h4 id=\"%F0%9F%96%BC%EF%B8%8F%C2%A0%E6%B2%89%E6%B5%B8%E5%BC%8F%E5%8F%AF%E8%A7%86%E5%8C%96\">&#x1f5bc;\ufe0f\u00a0\u6c89\u6d78\u5f0f\u53ef\u89c6\u5316<\/h4>\n<p>\u5bf9\u5e94\u6587\u4ef6&#xff1a;UiMain.py<\/p>\n<p>\u53cc\u753b\u9762\u663e\u793a<\/p>\n<p>def display_image(self, label, image):<br \/>\n    q_img &#061; QImage(image.data, w, h, bytes_per_line, QImage.Format_RGB888)<br \/>\n    pixmap &#061; QPixmap.fromImage(q_img)<br \/>\n    label.setPixmap(pixmap.scaled(label.size(), Qt.KeepAspectRatio))  # \u81ea\u9002\u5e94\u7f29\u653e <\/p>\n<p>\u7ed3\u679c\u8868\u683c<\/p>\n<p>def add_detection_result(self, class_name, confidence, x, y):<br \/>\n    self.results_table.insertRow(row)<br \/>\n    items &#061; [<br \/>\n        QTableWidgetItem(class_name),  # \u7c7b\u522b\u5217<br \/>\n        QTableWidgetItem(f&#034;{confidence:.2f}&#034;),  # \u7f6e\u4fe1\u5ea6<br \/>\n        QTableWidgetItem(f&#034;{x:.1f}&#034;),  # X\u5750\u6807<br \/>\n        QTableWidgetItem(f&#034;{y:.1f}&#034;)   # Y\u5750\u6807<br \/>\n    ] <\/p>\n<h4 id=\"%E2%9A%99%EF%B8%8F%C2%A0%E5%8F%82%E6%95%B0%E9%85%8D%E7%BD%AE%E7%B3%BB%E7%BB%9F\">\u2699\ufe0f\u00a0\u53c2\u6570\u914d\u7f6e\u7cfb\u7edf<\/h4>\n<p>\u5bf9\u5e94\u6587\u4ef6&#xff1a;UiMain.py<\/p>\n<p>\u53cc\u9608\u503c\u8054\u52a8\u63a7\u5236<\/p>\n<p># \u7f6e\u4fe1\u5ea6\u9608\u503c\u540c\u6b65<br \/>\ndef update_confidence(self, value):<br \/>\n    confidence &#061; value \/ 100.0<br \/>\n    self.confidence_spinbox.setValue(confidence)  # \u6ed1\u5757\u2192\u6570\u503c\u6846<br \/>\n    self.confidence_label.setText(f&#034;\u7f6e\u4fe1\u5ea6\u9608\u503c: {confidence:.2f}&#034;)<\/p>\n<p># IoU\u9608\u503c\u540c\u6b65<br \/>\ndef update_iou(self, value):<br \/>\n    iou &#061; value \/ 100.0<br \/>\n    self.iou_spinbox.setValue(iou) <\/p>\n<h4 id=\"%E2%9C%A8%C2%A0UI%E7%BE%8E%E5%AD%A6%E8%AE%BE%E8%AE%A1\">\u2728\u00a0UI\u7f8e\u5b66\u8bbe\u8ba1<\/h4>\n<p>\u5bf9\u5e94\u6587\u4ef6&#xff1a;UiMain.py<\/p>\n<p>\u79d1\u5e7b\u98ce\u683c\u6309\u94ae<\/p>\n<p>def create_button(self, text, color):<br \/>\n    return f&#034;&#034;&#034;<br \/>\n    QPushButton {{<br \/>\n        border: 1px solid {color};<br \/>\n        color: {color};<br \/>\n        border-radius: 6px;<br \/>\n    }}<br \/>\n    QPushButton:hover {{<br \/>\n        background-color: {self.lighten_color(color, 10)};<br \/>\n        box-shadow: 0 0 10px {color};  # \u60ac\u505c\u53d1\u5149\u6548\u679c<br \/>\n    }}<br \/>\n    &#034;&#034;&#034; <\/p>\n<p>\u52a8\u6001\u72b6\u6001\u680f<\/p>\n<p>def update_status(self, message):<br \/>\n    self.status_bar.showMessage(<br \/>\n        f&#034;\u72b6\u6001: {message} | \u6700\u540e\u66f4\u65b0: {time.strftime(&#039;%H:%M:%S&#039;)}&#034;  # \u5b9e\u65f6\u65f6\u95f4\u6233<br \/>\n    ) <\/p>\n<h4 id=\"%F0%9F%94%84%C2%A0%E6%99%BA%E8%83%BD%E5%B7%A5%E4%BD%9C%E6%B5%81\">&#x1f504;\u00a0\u667a\u80fd\u5de5\u4f5c\u6d41<\/h4>\n<p>\u5bf9\u5e94\u6587\u4ef6&#xff1a;main.py<\/p>\n<p>\u7ebf\u7a0b\u7ba1\u7406<\/p>\n<\/p>\n<p>class DetectionThread(QThread):<br \/>\n    frame_received &#061; pyqtSignal(np.ndarray, np.ndarray, list)  # \u4fe1\u53f7\u91cf\u901a\u4fe1<\/p>\n<p>    def run(self):<br \/>\n        while self.running:  # \u591a\u7ebf\u7a0b\u68c0\u6d4b\u5faa\u73af<br \/>\n            results &#061; self.model(frame, conf&#061;self.conf, iou&#061;self.iou)<br \/>\n            self.frame_received.emit(original_frame, result_frame, detections) <\/p>\n<h2 id=\"%E4%B8%83%E3%80%81%E9%A1%B9%E7%9B%AE%E6%BA%90%E7%A0%81(%E8%A7%86%E9%A2%91%E7%AE%80%E4%BB%8B%E5%86%85)\">\u4e03\u3001\u9879\u76ee\u6e90\u7801(\u89c6\u9891\u7b80\u4ecb)<\/h2>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1010\" src=\"2026-01-313xy3fi1fchx.png\" width=\"518\" \/><\/p>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"2160\" src=\"2026-01-31em2d0rp4yvi.jpg\" width=\"3526\" \/><\/p>\n<\/p>\n<p>\u6f14\u793a\u4e0e\u4ecb\u7ecd\u89c6\u9891&#xff1a;<\/p>\n<p><span>\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf&#xff08;YOLOv12&#043;YOLO\u6570\u636e\u96c6&#043;UI\u754c\u9762&#043;\u767b\u5f55\u6ce8\u518c\u754c\u9762&#043;Python\u9879\u76ee\u6e90\u7801&#043;\u6a21\u578b&#xff09;_\u54d4\u54e9\u54d4\u54e9_bilibili<\/span><\/p>\n<p>\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf&#xff08;YOLOv12&#043;YOLO\u6570\u636e\u96c6&#043;UI\u754c\u9762&#043;\u767b\u5f55\u6ce8\u518c\u754c\u9762&#043;Python\u9879\u76ee\u6e90\u7801&#043;\u6a21\u578b&#xff09;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u9879\u76ee\u4ecb\u7ecd \u672c\u6587\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e86\u4e00\u79cd\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u68c0\u6d4b\u7cfb\u7edf&#xff0c;\u65e8\u5728\u5b9e\u65f6\u8bc6\u522b\u8bfe\u5802\u4e2d\u7684\u5b66\u751f\u884c\u4e3a&#xff0c;\u63d0\u5347\u6559\u5b66\u7ba1\u7406\u4e0e\u8bfe\u5802\u4e92\u52a8\u6548\u7387\u3002\u7cfb\u7edf\u652f\u63016\u7c7b\u884c\u4e3a\u68c0\u6d4b&#xff0c;\u5305\u62ec\u4e3e\u624b&#xff08;hand-raising&#xff09;\u3001\u9605\u8bfb&#xff08;reading&#xff09;\u3001\u4e66\u5199&#xff08;writing&#xff09;\u3001\u4f7f\u7528\u624b\u673a&#xff08;using phone&#xff09;\u3001\u4f4e\u5934&#xff08;bowing the<\/p>\n","protected":false},"author":2,"featured_media":69074,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,780,156,50,3829,86,523],"topic":[],"class_list":["post-69094","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python","tag-ui","tag-yolo","tag-50","tag-3829","tag-86","tag-523"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf\uff08YOLOv12+YOLO\u6570\u636e\u96c6+UI\u754c\u9762+\u767b\u5f55\u6ce8\u518c\u754c\u9762+Python\u9879\u76ee\u6e90\u7801+\u6a21\u578b\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\/69094.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf\uff08YOLOv12+YOLO\u6570\u636e\u96c6+UI\u754c\u9762+\u767b\u5f55\u6ce8\u518c\u754c\u9762+Python\u9879\u76ee\u6e90\u7801+\u6a21\u578b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u9879\u76ee\u4ecb\u7ecd \u672c\u6587\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e86\u4e00\u79cd\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u68c0\u6d4b\u7cfb\u7edf&#xff0c;\u65e8\u5728\u5b9e\u65f6\u8bc6\u522b\u8bfe\u5802\u4e2d\u7684\u5b66\u751f\u884c\u4e3a&#xff0c;\u63d0\u5347\u6559\u5b66\u7ba1\u7406\u4e0e\u8bfe\u5802\u4e92\u52a8\u6548\u7387\u3002\u7cfb\u7edf\u652f\u63016\u7c7b\u884c\u4e3a\u68c0\u6d4b&#xff0c;\u5305\u62ec\u4e3e\u624b&#xff08;hand-raising&#xff09;\u3001\u9605\u8bfb&#xff08;reading&#xff09;\u3001\u4e66\u5199&#xff08;writing&#xff09;\u3001\u4f7f\u7528\u624b\u673a&#xff08;using phone&#xff09;\u3001\u4f4e\u5934&#xff08;bowing the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/69094.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-30T20:42:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204205-697d179d9f017.png\" \/>\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=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/69094.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/69094.html\",\"name\":\"\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf\uff08YOLOv12+YOLO\u6570\u636e\u96c6+UI\u754c\u9762+\u767b\u5f55\u6ce8\u518c\u754c\u9762+Python\u9879\u76ee\u6e90\u7801+\u6a21\u578b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-30T20:42:21+00:00\",\"dateModified\":\"2026-01-30T20:42:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/69094.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/69094.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/69094.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf\uff08YOLOv12+YOLO\u6570\u636e\u96c6+UI\u754c\u9762+\u767b\u5f55\u6ce8\u518c\u754c\u9762+Python\u9879\u76ee\u6e90\u7801+\u6a21\u578b\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\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf\uff08YOLOv12+YOLO\u6570\u636e\u96c6+UI\u754c\u9762+\u767b\u5f55\u6ce8\u518c\u754c\u9762+Python\u9879\u76ee\u6e90\u7801+\u6a21\u578b\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\/69094.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf\uff08YOLOv12+YOLO\u6570\u636e\u96c6+UI\u754c\u9762+\u767b\u5f55\u6ce8\u518c\u754c\u9762+Python\u9879\u76ee\u6e90\u7801+\u6a21\u578b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u9879\u76ee\u4ecb\u7ecd \u672c\u6587\u8bbe\u8ba1\u5e76\u5b9e\u73b0\u4e86\u4e00\u79cd\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u68c0\u6d4b\u7cfb\u7edf&#xff0c;\u65e8\u5728\u5b9e\u65f6\u8bc6\u522b\u8bfe\u5802\u4e2d\u7684\u5b66\u751f\u884c\u4e3a&#xff0c;\u63d0\u5347\u6559\u5b66\u7ba1\u7406\u4e0e\u8bfe\u5802\u4e92\u52a8\u6548\u7387\u3002\u7cfb\u7edf\u652f\u63016\u7c7b\u884c\u4e3a\u68c0\u6d4b&#xff0c;\u5305\u62ec\u4e3e\u624b&#xff08;hand-raising&#xff09;\u3001\u9605\u8bfb&#xff08;reading&#xff09;\u3001\u4e66\u5199&#xff08;writing&#xff09;\u3001\u4f7f\u7528\u624b\u673a&#xff08;using phone&#xff09;\u3001\u4f4e\u5934&#xff08;bowing the","og_url":"https:\/\/www.wsisp.com\/helps\/69094.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-30T20:42:21+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260130204205-697d179d9f017.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/69094.html","url":"https:\/\/www.wsisp.com\/helps\/69094.html","name":"\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf\uff08YOLOv12+YOLO\u6570\u636e\u96c6+UI\u754c\u9762+\u767b\u5f55\u6ce8\u518c\u754c\u9762+Python\u9879\u76ee\u6e90\u7801+\u6a21\u578b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-30T20:42:21+00:00","dateModified":"2026-01-30T20:42:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/69094.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/69094.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/69094.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60YOLOv12\u7684\u5b66\u751f\u8bfe\u5802\u884c\u4e3a\u8bc6\u522b\u68c0\u6d4b\u7cfb\u7edf\uff08YOLOv12+YOLO\u6570\u636e\u96c6+UI\u754c\u9762+\u767b\u5f55\u6ce8\u518c\u754c\u9762+Python\u9879\u76ee\u6e90\u7801+\u6a21\u578b\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\/69094","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=69094"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/69094\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/69074"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=69094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=69094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=69094"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=69094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}