{"id":6586,"date":"2025-09-29T11:24:47","date_gmt":"2025-09-29T03:24:47","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=6586"},"modified":"2025-09-29T11:24:47","modified_gmt":"2025-09-29T03:24:47","slug":"10%e5%88%86%e9%92%9f%e4%b8%8a%e6%89%8byolov11%ef%bc%9a%e6%9c%80%e5%bc%ba%e5%a7%bf%e6%80%81%e4%bc%b0%e8%ae%a1%e6%a8%a1%e5%9e%8b%e6%9d%a5%e4%ba%86%ef%bc%8c%e4%bb%a3%e7%a0%81%e5%bc%80%e6%ba%90%ef%bc%8c","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/yolo\/10%e5%88%86%e9%92%9f%e4%b8%8a%e6%89%8byolov11%ef%bc%9a%e6%9c%80%e5%bc%ba%e5%a7%bf%e6%80%81%e4%bc%b0%e8%ae%a1%e6%a8%a1%e5%9e%8b%e6%9d%a5%e4%ba%86%ef%bc%8c%e4%bb%a3%e7%a0%81%e5%bc%80%e6%ba%90%ef%bc%8c\/","title":{"rendered":"10\u5206\u949f\u4e0a\u624bYOLOv11\uff1a\u6700\u5f3a\u59ff\u6001\u4f30\u8ba1\u6a21\u578b\u6765\u4e86\uff0c\u4ee3\u7801\u5f00\u6e90\uff0c\u6548\u679c\u70b8\u88c2\uff01"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\ud83d\ude80 \u5f15\u8a00<\/h2>\n\n\n\n<p>\u4f5c\u4e3aYOLO\u5bb6\u65cf\u7684\u6700\u65b0\u6210\u5458\uff0cYOLOv11\u4e0d\u4ec5\u5728\u901f\u5ea6\u548c\u7cbe\u5ea6\u4e0a\u518d\u6b21\u7a81\u7834\uff0c\u66f4\u91cd\u8981\u7684\u662f\uff0c\u5b83\u8ba9\u5305\u62ec\u59ff\u6001\u4f30\u8ba1\u5728\u5185\u7684\u590d\u6742\u89c6\u89c9\u4efb\u52a1\u53d8\u5f97\u524d\u6240\u672a\u6709\u7684\u7b80\u5355\u3002\u4eca\u5929\uff0c\u6211\u4eec\u5c31\u752810\u5206\u949f\u65f6\u95f4\uff0c\u624b\u628a\u624b\u5e26\u4f60\u73a9\u8f6cYOLOv11\u7684\u5b9e\u65f6\u59ff\u6001\u4f30\u8ba1\u529f\u80fd\uff0c\u4f53\u9a8c\u4e00\u628a\u6700\u524d\u6cbf\u7684AI\u6280\u672f\uff01<\/p>\n\n\n\n<p>\u65e0\u8bba\u4f60\u662fAI\u65b0\u624b\u8fd8\u662f\u8d44\u6df1\u5f00\u53d1\u8005\uff0c\u8fd9\u7bc7\u6559\u7a0b\u90fd\u80fd\u8ba9\u4f60\u5feb\u901f\u4e0a\u624b\uff0c\u7acb\u5373\u770b\u5230\u6548\u679c\u3002\u51c6\u5907\u597d\u4e86\u5417\uff1f\u8ba9\u6211\u4eec\u5f00\u59cb\u8fd9\u573aAI\u89c6\u89c9\u7684\u5947\u5999\u4e4b\u65c5\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udd14 \u4ec0\u4e48\u662f\u59ff\u6001\u4f30\u8ba1\uff1f3\u5206\u949f\u8ba9\u4f60\u79d2\u61c2<\/h2>\n\n\n\n<p>\u60f3\u8c61\u4e00\u4e0b\uff0c\u4f60\u5e0c\u671b\u7535\u8111\u80fd\u770b\u61c2\u4e00\u4e2a\u4eba\u662f\u5728\u8dd1\u6b65\u3001\u8df3\u8dc3\u8fd8\u662f\u5728\u6325\u624b\u3002\u8981\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u7535\u8111\u9996\u5148\u9700\u8981\u8bc6\u522b\u4eba\u4f53\u7684\u5173\u952e\"\u8282\u70b9\"\u2014\u2014\u6bd4\u5982\u5934\u90e8\u3001\u80a9\u8180\u3001\u624b\u8098\u3001\u819d\u76d6\u548c\u811a\u8e1d\u7b49\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u70b9\u8fde\u63a5\u8d77\u6765\uff0c\u5f62\u6210\u4e00\u4e2a\"\u6570\u5b57\u9aa8\u67b6\"\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e2a\u8bc6\u522b\u5e76\u8fde\u63a5\u4eba\u4f53\u5173\u952e\u70b9\u7684\u8fc7\u7a0b\uff0c\u5c31\u662f<strong>\u59ff\u6001\u4f30\u8ba1\uff08Pose Estimation\uff09<\/strong>\u3002\u5b83\u662f\u5b9e\u73b0\u4ee5\u4e0b\u9177\u70ab\u5e94\u7528\u7684\u57fa\u7840\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2022 \ud83c\udfc3\u200d\u2642\ufe0f\u00a0<strong>\u667a\u80fd\u5065\u8eab<\/strong>\uff1a\u5b9e\u65f6\u7ea0\u6b63\u8fd0\u52a8\u59ff\u52bf<\/li>\n\n\n\n<li>\u2022 \ud83c\udfae\u00a0<strong>\u4f53\u611f\u6e38\u620f<\/strong>\uff1a\u65e0\u9700\u624b\u67c4\u7684\u6c89\u6d78\u5f0f\u4f53\u9a8c<\/li>\n\n\n\n<li>\u2022 \ud83c\udfed\u00a0<strong>\u5de5\u4e1a\u5b89\u5168<\/strong>\uff1a\u76d1\u63a7\u5de5\u4eba\u64cd\u4f5c\u89c4\u8303\u6027<\/li>\n\n\n\n<li>\u2022 \ud83d\udcf1\u00a0<strong>AR\u6ee4\u955c<\/strong>\uff1a\u7cbe\u51c6\u7684\u4eba\u4f53\u7279\u6548\u8ffd\u8e2a<\/li>\n<\/ul>\n\n\n\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u59ff\u6001\u4f30\u8ba1\u8ba9\u673a\u5668\u62e5\u6709\u4e86\"\u770b\u61c2\u4eba\u4f53\u52a8\u4f5c\"\u7684\u8d85\u80fd\u529b\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u26a1 YOLOv11\uff1a\u66f4\u5feb\u3001\u66f4\u5f3a\u3001\u66f4\u6613\u7528<\/h2>\n\n\n\n<p>YOLOv11\u7ee7\u627f\u4e86YOLO\u5bb6\u65cf\"\u5feb\u51c6\u72e0\"\u7684\u4f18\u826f\u4f20\u7edf\uff0c\u5e76\u901a\u8fc7\u5168\u65b0\u4f18\u5316\u7684\u6a21\u578b\u67b6\u6784\uff0c\u5b9e\u73b0\u4e86\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udfaf \u6838\u5fc3\u4f18\u52bf<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2022\u00a0<strong>\u53c2\u6570\u66f4\u5c11<\/strong>\uff1a\u6a21\u578b\u4f53\u79ef\u663e\u8457\u51cf\u5c0f\uff0c\u90e8\u7f72\u66f4\u8f7b\u677e<\/li>\n\n\n\n<li>\u2022\u00a0<strong>\u901f\u5ea6\u66f4\u5feb<\/strong>\uff1a\u63a8\u7406\u901f\u5ea6\u5927\u5e45\u63d0\u5347\uff0c\u5b9e\u65f6\u6027\u66f4\u5f3a<\/li>\n\n\n\n<li>\u2022\u00a0<strong>\u7cbe\u5ea6\u66f4\u9ad8<\/strong>\uff1a\u5728COCO\u6570\u636e\u96c6\u4e0a\u7684mAP\u6307\u6807\u518d\u521b\u65b0\u9ad8<\/li>\n\n\n\n<li>\u2022\u00a0<strong>\u6613\u7528\u6027\u5f3a<\/strong>\uff1a\u5f00\u7bb1\u5373\u7528\u7684\u9884\u8bad\u7ec3\u6a21\u578b\uff0c\u96f6\u95e8\u69db\u4e0a\u624b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udcca \u6027\u80fd\u6570\u636e<\/h3>\n\n\n\n<p>\u4ee5YOLOv11n-pose\u4e3a\u4f8b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2022\u00a0<strong>mAP@50-95<\/strong>: 50.0%<\/li>\n\n\n\n<li>\u2022\u00a0<strong>\u63a8\u7406\u901f\u5ea6<\/strong>: CPU\u4e0a52.4ms\uff0cGPU\u4e0a\u4ec51.7ms<\/li>\n\n\n\n<li>\u2022\u00a0<strong>\u6a21\u578b\u53c2\u6570<\/strong>: 2.9M\uff08\u8d85\u8f7b\u91cf\u7ea7\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u610f\u5473\u7740\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u666e\u901a\u7684\u4e2a\u4eba\u7535\u8111\u751a\u81f3\u624b\u673a\u4e0a\uff0c\u6d41\u7545\u5730\u8fd0\u884c\u590d\u6742\u7684\u59ff\u6001\u4f30\u8ba1\u4efb\u52a1\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0\ufe0f 10\u5206\u949f\u5b9e\u6218\uff1a\u624b\u628a\u624b\u8dd1\u901aYOLOv11\u59ff\u6001\u4f30\u8ba1<\/h2>\n\n\n\n<p>\u7406\u8bba\u4e0d\u591a\u8bf4\uff0c\u6211\u4eec\u76f4\u63a5\u4e0a\u5b9e\u64cd\uff01\u4e09\u6b65\u641e\u5b9a\uff0c\u4fdd\u8bc1\u4f60\u8ddf\u5f97\u4e0a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e00\u6b65\uff1a\u73af\u5883\u642d\u5efa (2\u5206\u949f)<\/h3>\n\n\n\n<p>\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684\u7535\u8111\u5b89\u88c5\u4e86Python\uff08\u63a8\u8350Python 3.8\u53ca\u4ee5\u4e0a\u7248\u672c\uff09\u3002\u7136\u540e\uff0c\u6253\u5f00\u7ec8\u7aef\uff0c\u53ea\u9700\u4e00\u884c\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install ultralytics<\/code><\/pre>\n\n\n\n<p>\u6ca1\u9519\uff0c\u5c31\u662f\u8fd9\u4e48\u7b80\u5355\uff01ultralytics\u8fd9\u4e2a\u5305\u5df2\u7ecf\u4e3a\u4f60\u51c6\u5907\u597d\u4e86\u4e00\u5207\uff0c\u5305\u62ecPyTorch\u7b49\u4f9d\u8d56\u3002\u5b89\u88c5\u8fc7\u7a0b\u4f1a\u81ea\u52a8\u8fdb\u884c\uff0c\u559d\u676f\u5496\u5561\u7b49\u5f85\u5373\u53ef\u3002\u2615<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e8c\u6b65\uff1a\u51c6\u5907\u7d20\u6750 (1\u5206\u949f)<\/h3>\n\n\n\n<p>\u627e\u4e00\u5f20\u5305\u542b\u4eba\u7269\u7684\u7167\u7247\uff08\u6bd4\u5982\u8fd0\u52a8\u7167\u3001\u751f\u6d3b\u7167\uff09\uff0c\u6216\u8005\u4e00\u6bb5\u6709\u4eba\u7269\u6d3b\u52a8\u7684\u77ed\u89c6\u9891\u3002\u5c06\u5176\u4fdd\u5b58\u5728\u4f60\u65b9\u4fbf\u67e5\u627e\u7684\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n\n\n\n<p>\ud83d\udca1&nbsp;<strong>\u5c0f\u8d34\u58eb<\/strong>\uff1a\u5982\u679c\u6ca1\u6709\u5408\u9002\u7684\u7d20\u6750\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7f51\u7edc\u56fe\u7247URL\uff0cYOLOv11\u652f\u6301\u5728\u7ebf\u5904\u7406\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e09\u6b65\uff1a\u6572\u4ee3\u7801\uff0c\u89c1\u8bc1\u5947\u8ff9 (7\u5206\u949f)<\/h3>\n\n\n\n<p>\u8fd9\u662f\u6700\u6fc0\u52a8\u4eba\u5fc3\u7684\u90e8\u5206\uff01\u4f60\u65e2\u53ef\u4ee5\u7528\u547d\u4ee4\u884c\u5077\u61d2\uff0c\u4e5f\u53ef\u4ee5\u7528Python\u811a\u672c\u7075\u6d3b\u63a7\u5236\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u65b9\u6cd5\u4e00\uff1a\u547d\u4ee4\u884c\u4e00\u952e\u51fa\u7ed3\u679c\uff08\u6700\u7b80\u5355\uff09<\/h4>\n\n\n\n<p>\u5982\u679c\u4f60\u4e0d\u60f3\u5199\u4efb\u4f55\u4ee3\u7801\uff0c\u76f4\u63a5\u5728\u7ec8\u7aef\u91cc\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yolo predict model=yolo11n-pose.pt&nbsp;source='\u4f60\u7684\u56fe\u7247\u8def\u5f84.jpg'<\/code><\/pre>\n\n\n\n<p><strong>\u53c2\u6570\u8bf4\u660e<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2022\u00a0<code>model=yolo11n-pose.pt<\/code>\uff1a\u4f7f\u7528YOLOv11\u7684nano\u59ff\u6001\u4f30\u8ba1\u6a21\u578b\uff08\u6700\u8f7b\u91cf\uff09<\/li>\n\n\n\n<li>\u2022\u00a0<code>source='\u4f60\u7684\u56fe\u7247\u8def\u5f84.jpg'<\/code>\uff1a\u66ff\u6362\u6210\u4f60\u7684\u56fe\u7247\u6587\u4ef6\u8def\u5f84<\/li>\n\n\n\n<li>\u2022 \u652f\u6301\u89c6\u9891\u6587\u4ef6\u6216\u6444\u50cf\u5934\uff08<code>source=0<\/code>\u4ee3\u8868\u7535\u8111\u6444\u50cf\u5934\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u7b2c\u4e00\u6b21\u8fd0\u884c\u65f6\uff0c\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u6a21\u578b\u6587\u4ef6\uff0c\u7a0d\u7b49\u7247\u523b\u5373\u53ef\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u65b9\u6cd5\u4e8c\uff1aPython\u811a\u672c\uff08\u66f4\u7075\u6d3b\uff09<\/h4>\n\n\n\n<p>\u521b\u5efa\u4e00\u4e2aPython\u6587\u4ef6\uff08\u4f8b\u5982<code>pose_detection.py<\/code>\uff09\uff0c\u590d\u5236\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from&nbsp;ultralytics&nbsp;import&nbsp;YOLO<br><br># \u52a0\u8f7d\u9884\u8bad\u7ec3\u7684YOLOv11\u59ff\u6001\u4f30\u8ba1\u6a21\u578b<br>model = YOLO(\"yolo11n-pose.pt\")<br><br># \u6307\u5b9a\u4f60\u7684\u56fe\u7247\u6216\u89c6\u9891\u6e90<br>source =&nbsp;\"\u4f60\u7684\u56fe\u7247\u8def\u5f84.jpg\"# \u4e5f\u53ef\u4ee5\u662f\u89c6\u9891\u6587\u4ef6\u6216\u6444\u50cf\u5934ID<br><br># \u6267\u884c\u9884\u6d4b<br>results = model(source)<br><br># \u663e\u793a\u7ed3\u679c\uff08\u53ef\u9009\uff09<br>for&nbsp;result&nbsp;in&nbsp;results:<br>&nbsp; &nbsp;&nbsp;# \u83b7\u53d6\u5173\u952e\u70b9\u5750\u6807<br>&nbsp; &nbsp; keypoints = result.keypoints.xy &nbsp;# x, y\u5750\u6807<br>&nbsp; &nbsp; keypoints_norm = result.keypoints.xyn &nbsp;# \u5f52\u4e00\u5316\u5750\u6807<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;# \u4fdd\u5b58\u7ed3\u679c\u56fe\u7247<br>&nbsp; &nbsp; result.save(filename=\"result_pose.jpg\")<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;# \u6253\u5370\u68c0\u6d4b\u5230\u7684\u4eba\u6570<br>&nbsp; &nbsp;&nbsp;print(f\"\u68c0\u6d4b\u5230&nbsp;{len(keypoints)}&nbsp;\u4e2a\u4eba\")<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;# \u663e\u793a\u7ed3\u679c\uff08\u9700\u8981GUI\u73af\u5883\uff09<br>&nbsp; &nbsp;&nbsp;# result.show()<br><br>print(\"\u59ff\u6001\u4f30\u8ba1\u5b8c\u6210\uff01\u7ed3\u679c\u5df2\u4fdd\u5b58\u4e3a result_pose.jpg\")<\/code><\/pre>\n\n\n\n<p>\u8fd0\u884c\u8fd9\u4e2a\u811a\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python pose_detection.py<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udf89 \u7ed3\u679c\u5c55\u793a<\/h3>\n\n\n\n<p>\u8fd0\u884c\u6210\u529f\u540e\uff0c\u4f60\u5c06\u5f97\u5230\u4e00\u5f20\u6807\u6ce8\u5b8c\u7f8e\u7684\u56fe\u7247\uff01YOLOv11\u7cbe\u51c6\u5730\u8bc6\u522b\u51fa\u4e86\u56fe\u4e2d\u4eba\u7269\u768417\u4e2a\u5173\u952e\u70b9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2022\u00a0<strong>\u9762\u90e8<\/strong>\uff1a\u9f3b\u5b50\u3001\u5de6\u53f3\u773c\u3001\u5de6\u53f3\u8033<\/li>\n\n\n\n<li>\u2022\u00a0<strong>\u4e0a\u8eab<\/strong>\uff1a\u5de6\u53f3\u80a9\u8180\u3001\u5de6\u53f3\u624b\u8098\u3001\u5de6\u53f3\u624b\u8155<\/li>\n\n\n\n<li>\u2022\u00a0<strong>\u4e0b\u8eab<\/strong>\uff1a\u5de6\u53f3\u9acb\u90e8\u3001\u5de6\u53f3\u819d\u76d6\u3001\u5de6\u53f3\u811a\u8e1d<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u4e9b\u5173\u952e\u70b9\u7528\u5f69\u8272\u5706\u70b9\u6807\u51fa\uff0c\u5e76\u7528\u7ebf\u6761\u8fde\u63a5\u6210\u5b8c\u6574\u7684\u4eba\u4f53\u9aa8\u67b6\u3002\u6574\u4e2a\u8fc7\u7a0b\u662f\u4e0d\u662f\u5feb\u5230\u98de\u8d77\uff1f\u26a1<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"lazyload\"data-src=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" alt=\"\u56fe\u7247\"\/><noscript><img decoding=\"async\" src=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0\" alt=\"\u56fe\u7247\"\/><\/noscript><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\ude80 \u66f4\u8fdb\u4e00\u6b65\uff1a\u4ece\u59ff\u6001\u5230\u884c\u4e3a\u5206\u6790<\/h2>\n\n\n\n<p>\u638c\u63e1\u4e86\u57fa\u7840\u7684\u59ff\u6001\u4f30\u8ba1\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u6784\u5efa\u66f4\u590d\u6742\u7684\u5e94\u7528\u4e86\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udcbc \u5de5\u4e1a\u5e94\u7528\u6848\u4f8b<\/h3>\n\n\n\n<p>\u5728\u5236\u9020\u4e1a\u4e2d\uff0c\u53ef\u4ee5\u5f00\u53d1\u4e00\u5957<strong>SOP\u5408\u89c4\u6027\u76d1\u63a7\u7cfb\u7edf<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>from\u00a0ultralytics\u00a0import\u00a0YOLO\nimport\u00a0cv2\nimport\u00a0numpy\u00a0as\u00a0np\n\nclassSafetyMonitor:\n\u00a0 \u00a0\u00a0def__init__(self):\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0self.model = YOLO(\"yolo11n-pose.pt\")\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0self.safety_violations =\u00a00\n\u00a0 \u00a0\u00a0\n\u00a0 \u00a0\u00a0defcheck_safety_posture(self, keypoints):\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0\"\"\"Check if worker posture is safe\"\"\"\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0# Simplified safety check logic\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0iflen(keypoints) >\u00a00:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0# Check for excessive bending (simplified example)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 shoulder_y = keypoints&#91;0]&#91;5]&#91;1] \u00a0# Left shoulder Y coordinate\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 hip_y = keypoints&#91;0]&#91;11]&#91;1] \u00a0 \u00a0 \u00a0# Left hip Y coordinate\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0ifabs(shoulder_y - hip_y) &lt;\u00a050: \u00a0# Adjustable threshold\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0return\"Warning: Unsafe posture detected!\"\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0return\"Posture normal\"\n\u00a0 \u00a0\u00a0\n\u00a0 \u00a0\u00a0defdraw_keypoints(self, frame, keypoints):\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0\"\"\"Draw pose keypoints on the frame\"\"\"\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0iflen(keypoints) >\u00a00andlen(keypoints&#91;0]) >=\u00a017:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0# COCO pose connections for industrial safety monitoring\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 connections = &#91;\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (5,\u00a06), (5,\u00a07), (7,\u00a09), (6,\u00a08), (8,\u00a010), \u00a0# Arms\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (5,\u00a011), (6,\u00a012), (11,\u00a012), \u00a0# Torso\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (11,\u00a013), (13,\u00a015), (12,\u00a014), (14,\u00a016) \u00a0# Legs\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ]\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0# Draw keypoints\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0for\u00a0i, point\u00a0inenumerate(keypoints&#91;0]):\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0if\u00a0point&#91;0] >\u00a00and\u00a0point&#91;1] >\u00a00: \u00a0# Valid keypoint\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 color = (0,\u00a00,\u00a0255)\u00a0if\u00a0i\u00a0in\u00a0&#91;5,\u00a011]\u00a0else\u00a0(0,\u00a0255,\u00a00) \u00a0# Highlight shoulder and hip\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 cv2.circle(frame, (int(point&#91;0]),\u00a0int(point&#91;1])),\u00a06, color, -1)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 cv2.putText(frame,\u00a0str(i), (int(point&#91;0])+8,\u00a0int(point&#91;1])-8),\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0cv2.FONT_HERSHEY_SIMPLEX,\u00a00.4, (255,\u00a0255,\u00a0255),\u00a01)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0# Draw connections\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0for\u00a0connection\u00a0in\u00a0connections:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 pt1, pt2 = connection\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0if\u00a0(pt1 &lt;\u00a0len(keypoints&#91;0])\u00a0and\u00a0pt2 &lt;\u00a0len(keypoints&#91;0])\u00a0and\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 keypoints&#91;0]&#91;pt1]&#91;0] >\u00a00and\u00a0keypoints&#91;0]&#91;pt1]&#91;1] >\u00a00and\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 keypoints&#91;0]&#91;pt2]&#91;0] >\u00a00and\u00a0keypoints&#91;0]&#91;pt2]&#91;1] >\u00a00):\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 cv2.line(frame,\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (int(keypoints&#91;0]&#91;pt1]&#91;0]),\u00a0int(keypoints&#91;0]&#91;pt1]&#91;1])),\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (int(keypoints&#91;0]&#91;pt2]&#91;0]),\u00a0int(keypoints&#91;0]&#91;pt2]&#91;1])),\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (255,\u00a00,\u00a00),\u00a02)\n\u00a0 \u00a0\u00a0\n\u00a0 \u00a0\u00a0defmonitor_video(self, video_path):\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0\"\"\"Monitor safety postures in video\"\"\"\n\u00a0 \u00a0 \u00a0 \u00a0 cap = cv2.VideoCapture(video_path)\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0print(\"Starting industrial safety monitoring... Press 'q' to quit\")\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0whileTrue:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ret, frame = cap.read()\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0ifnot\u00a0ret:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0break\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0# YOLO pose estimation\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 results =\u00a0self.model(frame, verbose=False)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0for\u00a0result\u00a0in\u00a0results:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0if\u00a0result.keypoints\u00a0isnotNone:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 keypoints = result.keypoints.xy.cpu().numpy()\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0# Draw keypoints and skeleton\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0self.draw_keypoints(frame, keypoints)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0# Check safety posture\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 safety_status =\u00a0self.check_safety_posture(keypoints)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0# Display safety information\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 color = (0,\u00a00,\u00a0255)\u00a0if\"Warning\"in\u00a0safety_status\u00a0else\u00a0(0,\u00a0255,\u00a00)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 cv2.putText(frame, safety_status,\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0(10,\u00a030), cv2.FONT_HERSHEY_SIMPLEX,\u00a01, color,\u00a02)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 cv2.putText(frame,\u00a0f\"Safety Violations:\u00a0{self.safety_violations}\",\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0(10,\u00a070), cv2.FONT_HERSHEY_SIMPLEX,\u00a00.8, (255,\u00a0255,\u00a0255),\u00a02)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0if\"Warning\"in\u00a0safety_status:\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0self.safety_violations +=\u00a01\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 cv2.imshow('Industrial Safety Monitor', frame)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0if\u00a0cv2.waitKey(1) &amp;\u00a00xFF\u00a0==\u00a0ord('q'):\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0break\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0\n\u00a0 \u00a0 \u00a0 \u00a0 cap.release()\n\u00a0 \u00a0 \u00a0 \u00a0 cv2.destroyAllWindows()\n\u00a0 \u00a0 \u00a0 \u00a0\u00a0print(f\"Monitoring ended! Total safety violations:\u00a0{self.safety_violations}\")\n\n# Usage example\nmonitor = SafetyMonitor()\nmonitor.monitor_video(\"factory_surveillance.mp4\")<\/code><\/code><\/pre>\n\n\n\n<p>\u4f7f\u7528\u5373\u68a6\u751f\u6210\u89c6\u9891\u6d4b\u8bd5\u5982\u4e0b:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"lazyload\"data-src=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_gif\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEDwrIOvYqZbJ79q0CxN5HwfCyxK0L83nJicu3PhV8WF06bugLJyVvbgQ\/640?wx_fmt=gif&amp;from=appmsg&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=1\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" alt=\"\u56fe\u7247\"\/><noscript><img decoding=\"async\" src=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_gif\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEDwrIOvYqZbJ79q0CxN5HwfCyxK0L83nJicu3PhV8WF06bugLJyVvbgQ\/640?wx_fmt=gif&amp;from=appmsg&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=1\" alt=\"\u56fe\u7247\"\/><\/noscript><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udfc3\u200d\u2642\ufe0f \u5065\u8eab\u5e94\u7528\u6848\u4f8b<\/h3>\n\n\n\n<p>\u5f00\u53d1\u667a\u80fd\u5065\u8eab\u52a9\u624b\uff0c\u5b9e\u65f6\u7ea0\u6b63\u8fd0\u52a8\u59ff\u52bf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from&nbsp;ultralytics&nbsp;import&nbsp;YOLO<br>import&nbsp;cv2<br>import&nbsp;numpy&nbsp;as&nbsp;np<br>import&nbsp;math<br><br>classFitnessMonitor:<br>&nbsp; &nbsp;&nbsp;def__init__(self):<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;self.model = YOLO(\"yolo11n-pose.pt\")<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;self.squat_count =&nbsp;0<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;self.in_squat =&nbsp;False<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;defcalculate_angle(self, point1, point2, point3):<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;\"\"\"\u8ba1\u7b97\u4e09\u70b9\u4e4b\u95f4\u7684\u89d2\u5ea6\"\"\"<br>&nbsp; &nbsp; &nbsp; &nbsp; vector1 = np.array(&#91;point1&#91;0] - point2&#91;0], point1&#91;1] - point2&#91;1]])<br>&nbsp; &nbsp; &nbsp; &nbsp; vector2 = np.array(&#91;point3&#91;0] - point2&#91;0], point3&#91;1] - point2&#91;1]])<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; cos_angle = np.dot(vector1, vector2) \/ (np.linalg.norm(vector1) * np.linalg.norm(vector2))<br>&nbsp; &nbsp; &nbsp; &nbsp; cos_angle = np.clip(cos_angle, -1.0,&nbsp;1.0)<br>&nbsp; &nbsp; &nbsp; &nbsp; angle = math.degrees(math.acos(cos_angle))<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;return&nbsp;angle<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;defanalyze_squat_form(self, keypoints):<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;\"\"\"Analyze squat posture for correctness\"\"\"<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;iflen(keypoints) &gt;&nbsp;0andlen(keypoints&#91;0]) &gt;=&nbsp;17:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;try:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# Get keypoints (COCO format)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left_hip = keypoints&#91;0]&#91;11] &nbsp; &nbsp;&nbsp;# Left hip<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left_knee = keypoints&#91;0]&#91;13] &nbsp; &nbsp;# Left knee<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left_ankle = keypoints&#91;0]&#91;15] &nbsp;&nbsp;# Left ankle<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right_hip = keypoints&#91;0]&#91;12] &nbsp; &nbsp;# Right hip<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right_knee = keypoints&#91;0]&#91;14] &nbsp;&nbsp;# Right knee<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right_ankle = keypoints&#91;0]&#91;16] &nbsp;# Right ankle<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# Check if keypoints are visible<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;(left_hip&#91;0] &gt;&nbsp;0and&nbsp;left_knee&#91;0] &gt;&nbsp;0and&nbsp;left_ankle&#91;0] &gt;&nbsp;0and<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right_hip&#91;0] &gt;&nbsp;0and&nbsp;right_knee&#91;0] &gt;&nbsp;0and&nbsp;right_ankle&#91;0] &gt;&nbsp;0):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# Calculate left and right knee angles<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left_knee_angle =&nbsp;self.calculate_angle(left_hip, left_knee, left_ankle)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; right_knee_angle =&nbsp;self.calculate_angle(right_hip, right_knee, right_ankle)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; avg_knee_angle = (left_knee_angle + right_knee_angle) \/&nbsp;2<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# Squat counting logic<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;avg_knee_angle &lt;&nbsp;100andnotself.in_squat:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;self.in_squat =&nbsp;True<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;self.squat_count +=&nbsp;1<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;elif&nbsp;avg_knee_angle &gt;&nbsp;160andself.in_squat:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;self.in_squat =&nbsp;False<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# Posture evaluation<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;avg_knee_angle &lt;&nbsp;90:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;return\"Great! Squat depth is sufficient\", avg_knee_angle, (0,&nbsp;255,&nbsp;0)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;elif&nbsp;avg_knee_angle &lt;&nbsp;120:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;return\"Good! Can squat deeper\", avg_knee_angle, (0,&nbsp;255,&nbsp;255)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;else:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;return\"Suggestion: Squat deeper\", avg_knee_angle, (0,&nbsp;165,&nbsp;255)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;except&nbsp;(IndexError, ZeroDivisionError):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;pass<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;return\"No complete human pose detected\",&nbsp;0, (0,&nbsp;0,&nbsp;255)<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;defdraw_keypoints(self, frame, keypoints):<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;\"\"\"Draw pose keypoints on the frame\"\"\"<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;iflen(keypoints) &gt;&nbsp;0andlen(keypoints&#91;0]) &gt;=&nbsp;17:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# COCO pose connections<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; connections = &#91;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (5,&nbsp;6), (5,&nbsp;7), (7,&nbsp;9), (6,&nbsp;8), (8,&nbsp;10), &nbsp;# Arms<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (5,&nbsp;11), (6,&nbsp;12), (11,&nbsp;12), &nbsp;# Torso<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (11,&nbsp;13), (13,&nbsp;15), (12,&nbsp;14), (14,&nbsp;16) &nbsp;# Legs<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# Draw keypoints<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;for&nbsp;i, point&nbsp;inenumerate(keypoints&#91;0]):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;point&#91;0] &gt;&nbsp;0and&nbsp;point&#91;1] &gt;&nbsp;0: &nbsp;# Valid keypoint<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv2.circle(frame, (int(point&#91;0]),&nbsp;int(point&#91;1])),&nbsp;5, (0,&nbsp;255,&nbsp;0), -1)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv2.putText(frame,&nbsp;str(i), (int(point&#91;0])+5,&nbsp;int(point&#91;1])-5),&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cv2.FONT_HERSHEY_SIMPLEX,&nbsp;0.3, (255,&nbsp;255,&nbsp;255),&nbsp;1)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# Draw connections<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;for&nbsp;connection&nbsp;in&nbsp;connections:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pt1, pt2 = connection<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;(pt1 &lt;&nbsp;len(keypoints&#91;0])&nbsp;and&nbsp;pt2 &lt;&nbsp;len(keypoints&#91;0])&nbsp;and<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; keypoints&#91;0]&#91;pt1]&#91;0] &gt;&nbsp;0and&nbsp;keypoints&#91;0]&#91;pt1]&#91;1] &gt;&nbsp;0and<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; keypoints&#91;0]&#91;pt2]&#91;0] &gt;&nbsp;0and&nbsp;keypoints&#91;0]&#91;pt2]&#91;1] &gt;&nbsp;0):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv2.line(frame,&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (int(keypoints&#91;0]&#91;pt1]&#91;0]),&nbsp;int(keypoints&#91;0]&#91;pt1]&#91;1])),<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (int(keypoints&#91;0]&#91;pt2]&#91;0]),&nbsp;int(keypoints&#91;0]&#91;pt2]&#91;1])),<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (255,&nbsp;0,&nbsp;0),&nbsp;2)<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;defmonitor_video(self, video_path=0):<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;\"\"\"Monitor fitness movements in video\"\"\"<br>&nbsp; &nbsp; &nbsp; &nbsp; cap = cv2.VideoCapture(video_path)<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(\"Starting fitness monitoring... Press 'q' to quit\")<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;whileTrue:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ret, frame = cap.read()<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;ifnot&nbsp;ret:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;break<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# YOLO pose estimation<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; results =&nbsp;self.model(frame, verbose=False)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;for&nbsp;result&nbsp;in&nbsp;results:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;result.keypoints&nbsp;isnotNone:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; keypoints = result.keypoints.xy.cpu().numpy()<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# Draw keypoints and skeleton<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;self.draw_keypoints(frame, keypoints)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# Analyze squat posture<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feedback, angle, color =&nbsp;self.analyze_squat_form(keypoints)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# Display information<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv2.putText(frame,&nbsp;f\"Squat Count:&nbsp;{self.squat_count}\",&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(10,&nbsp;30), cv2.FONT_HERSHEY_SIMPLEX,&nbsp;1, (255,&nbsp;255,&nbsp;255),&nbsp;2)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv2.putText(frame, feedback,&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(10,&nbsp;70), cv2.FONT_HERSHEY_SIMPLEX,&nbsp;0.8, color,&nbsp;2)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;angle &gt;&nbsp;0:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv2.putText(frame,&nbsp;f\"Knee Angle:&nbsp;{angle:.1f}\u00b0\",&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(10,&nbsp;110), cv2.FONT_HERSHEY_SIMPLEX,&nbsp;0.8, (255,&nbsp;255,&nbsp;255),&nbsp;2)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv2.imshow('Fitness Pose Monitor', frame)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;cv2.waitKey(1) &amp;&nbsp;0xFF&nbsp;==&nbsp;ord('q'):<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;break<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; cap.release()<br>&nbsp; &nbsp; &nbsp; &nbsp; cv2.destroyAllWindows()<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(f\"Monitoring ended! Total squats completed:&nbsp;{self.squat_count}\")<br><br># Usage example<br>if&nbsp;__name__ ==&nbsp;\"__main__\":<br>&nbsp; &nbsp; monitor = FitnessMonitor()<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;# Use camera for monitoring<br>&nbsp; &nbsp;&nbsp;# monitor.monitor_video(0)<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp;# Or monitor video file<br>&nbsp; &nbsp; monitor.monitor_video(\"workout_video.mp4\")<\/code><\/pre>\n\n\n\n<p>\u4f7f\u7528\u5373\u68a6\u751f\u6210\u89c6\u9891\u6d4b\u8bd5\u5982\u4e0b:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" class=\"lazyload\"data-src=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_gif\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEE5ibqB27qsd7IKqSj9xMibQOoJ1lzFPvicqyY0cGDYhjGkqSoFr4pNjLg\/640?wx_fmt=gif&amp;from=appmsg&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=2\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" alt=\"\u56fe\u7247\"\/><noscript><img decoding=\"async\" src=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_gif\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEE5ibqB27qsd7IKqSj9xMibQOoJ1lzFPvicqyY0cGDYhjGkqSoFr4pNjLg\/640?wx_fmt=gif&amp;from=appmsg&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=2\" alt=\"\u56fe\u7247\"\/><\/noscript><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u2753 FAQ \u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Q1: YOLOv11\u652f\u6301\u54ea\u4e9b\u8bbe\u5907\uff1f<\/h3>\n\n\n\n<p><strong>A<\/strong>: YOLOv11\u652f\u6301CPU\u3001GPU\uff08NVIDIA CUDA\uff09\u3001\u4ee5\u53ca\u5404\u79cd\u8fb9\u7f18\u8bbe\u5907\u3002\u5728\u666e\u901a\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u4e5f\u80fd\u6d41\u7545\u8fd0\u884cnano\u7248\u672c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q2: \u53ef\u4ee5\u68c0\u6d4b\u591a\u4e2a\u4eba\u5417\uff1f<\/h3>\n\n\n\n<p><strong>A<\/strong>: \u5f53\u7136\u53ef\u4ee5\uff01YOLOv11\u80fd\u540c\u65f6\u68c0\u6d4b\u56fe\u50cf\u4e2d\u7684\u591a\u4e2a\u4eba\uff0c\u6bcf\u4e2a\u4eba\u90fd\u4f1a\u6709\u72ec\u7acb\u7684\u5173\u952e\u70b9\u6807\u6ce8\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q3: \u5982\u4f55\u63d0\u9ad8\u68c0\u6d4b\u7cbe\u5ea6\uff1f<\/h3>\n\n\n\n<p><strong>A<\/strong>: \u53ef\u4ee5\u4f7f\u7528\u66f4\u5927\u7684\u6a21\u578b\uff08\u5982yolo11l-pose.pt\uff09\uff0c\u6216\u8005\u5728\u7279\u5b9a\u573a\u666f\u6570\u636e\u4e0a\u8fdb\u884c\u5fae\u8c03\u8bad\u7ec3\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q4: \u652f\u6301\u5b9e\u65f6\u6444\u50cf\u5934\u68c0\u6d4b\u5417\uff1f<\/h3>\n\n\n\n<p><strong>A<\/strong>: \u652f\u6301\uff01\u53ea\u9700\u5c06source\u53c2\u6570\u8bbe\u7f6e\u4e3a0\uff08\u9ed8\u8ba4\u6444\u50cf\u5934\uff09\u6216\u6444\u50cf\u5934\u8bbe\u5907ID\u5373\u53ef\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q5: \u6a21\u578b\u6587\u4ef6\u6709\u591a\u5927\uff1f<\/h3>\n\n\n\n<p><strong>A<\/strong>: nano\u7248\u672c\u4ec5\u7ea66MB\uff0csmall\u7248\u672c\u7ea622MB\uff0c\u975e\u5e38\u9002\u5408\u79fb\u52a8\u7aef\u90e8\u7f72\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83c\udfaf \u603b\u7ed3<\/h2>\n\n\n\n<p>\u4ece\u73af\u5883\u5b89\u88c5\u5230\u4ee3\u7801\u8fd0\u884c\uff0c\u6211\u4eec\u5168\u7a0b\u53ea\u7528\u4e86\u4e0d\u523010\u5206\u949f\uff0c\u5c31\u6210\u529f\u4f53\u9a8c\u4e86SOTA\u7ea7\u522b\u7684YOLOv11\u59ff\u6001\u4f30\u8ba1\u529f\u80fd\uff01\ud83c\udf89<\/p>\n\n\n\n<p><strong>\u5173\u952e\u6536\u83b7<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2022 \u2705 \u638c\u63e1\u4e86YOLOv11\u7684\u57fa\u672c\u4f7f\u7528\u65b9\u6cd5<\/li>\n\n\n\n<li>\u2022 \u2705 \u5b66\u4f1a\u4e86\u59ff\u6001\u4f30\u8ba1\u7684\u6838\u5fc3\u6982\u5ff5<\/li>\n\n\n\n<li>\u2022 \u2705 \u83b7\u5f97\u4e86\u53ef\u76f4\u63a5\u8fd0\u884c\u7684\u5b8c\u6574\u4ee3\u7801<\/li>\n\n\n\n<li>\u2022 \u2705 \u4e86\u89e3\u4e86\u5b9e\u9645\u5e94\u7528\u573a\u666f\u548c\u6269\u5c55\u65b9\u5411<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u80cc\u540e\u662fUltralytics\u56e2\u961f\u5bf9\u6613\u7528\u6027\u7684\u6781\u81f4\u8ffd\u6c42\u548c\u5bf9\u6280\u672f\u7684\u6301\u7eed\u6df1\u8015\u3002YOLOv11\u7684\u53d1\u5e03\uff0c\u65e0\u7591\u53c8\u4e00\u6b21\u964d\u4f4e\u4e86AI\u6280\u672f\u7684\u4f7f\u7528\u95e8\u69db\uff0c\u8ba9\u66f4\u591a\u5f00\u53d1\u8005\u548c\u7231\u597d\u8005\u80fd\u591f\u8f7b\u677e\u5730\u5c06\u5f3a\u5927\u7684AI\u89c6\u89c9\u80fd\u529b\u5e94\u7528\u5230\u81ea\u5df1\u7684\u521b\u610f\u4e2d\u3002<\/p>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\ud83d\ude80 \u5f15\u8a00 \u4f5c\u4e3aYOLO\u5bb6\u65cf\u7684\u6700\u65b0\u6210\u5458\uff0cYOLOv11\u4e0d\u4ec5\u5728\u901f\u5ea6\u548c\u7cbe\u5ea6\u4e0a\u518d\u6b21\u7a81\u7834\uff0c\u66f4\u91cd\u8981\u7684\u662f\uff0c\u5b83\u8ba9\u5305\u62ec\u59ff\u6001\u4f30\u8ba1\u5728\u5185\u7684\u590d\u6742\u89c6\u89c9\u4efb\u52a1\u53d8\u5f97 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[46],"tags":[],"class_list":["post-6586","post","type-post","status-publish","format-standard","hentry","category-yolo"],"post_thumbnail_image":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0","content_first_image":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0","post_medium_image_300":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0","post_thumbnail_image_624":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0","post_frist_image":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0","post_medium_image":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0","post_large_image":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0","post_full_image":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0","post_all_images":[{"imagesurl":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0","id":"image0"},{"imagesurl":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEyibsbj8nv6gibRV5b4ZscviaQLDpMuVFBfM27aSrmqPRib8WPnBh0zku1A\/640?wx_fmt=jpeg&amp;from=appmsg&amp;watermark=1&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=0","id":"image1"},{"imagesurl":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_gif\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEDwrIOvYqZbJ79q0CxN5HwfCyxK0L83nJicu3PhV8WF06bugLJyVvbgQ\/640?wx_fmt=gif&amp;from=appmsg&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=1","id":"image2"},{"imagesurl":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_gif\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEDwrIOvYqZbJ79q0CxN5HwfCyxK0L83nJicu3PhV8WF06bugLJyVvbgQ\/640?wx_fmt=gif&amp;from=appmsg&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=1","id":"image3"},{"imagesurl":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_gif\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEE5ibqB27qsd7IKqSj9xMibQOoJ1lzFPvicqyY0cGDYhjGkqSoFr4pNjLg\/640?wx_fmt=gif&amp;from=appmsg&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=2","id":"image4"},{"imagesurl":"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_gif\/1bRSmBnBR4npKY8V5H5HSic7hbxrgLRWEE5ibqB27qsd7IKqSj9xMibQOoJ1lzFPvicqyY0cGDYhjGkqSoFr4pNjLg\/640?wx_fmt=gif&amp;from=appmsg&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1#imgIndex=2","id":"image5"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"YOLO","post_date":"2025-09-29","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":206,"next_post_id":6584,"next_post_title":"YOLOV8\u8bc6\u522b\u5c0f\u6837\u672c\u76ee\u6807\u68c0\u6d4b\u3001\u7a7a\u4e2d\u76ee\u6807\u8bc6\u522b\u975e\u6cd5\u5165\u4fb5\u7684\u65e0\u4eba\u673a \u7a7a\u4e2d\u98de\u884c\u7269\uff0c\u9e1f \u76f4\u5347\u673a \u98de\u884c\u7269\u68c0\u6d4b-\u65e0\u4eba\u673a\u5c0f\u76ee\u6807\u68c0\u6d4b\u6570\u636e\u96c6","previous_post_id":null,"previous_post_title":null,"_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/6586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=6586"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/6586\/revisions"}],"predecessor-version":[{"id":6587,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/6586\/revisions\/6587"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=6586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=6586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=6586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}