{"id":46790,"date":"2026-09-24T12:17:30","date_gmt":"2026-09-24T04:17:30","guid":{"rendered":"https:\/\/app.60day.cn\/appday\/?p=46790"},"modified":"2026-09-24T12:17:30","modified_gmt":"2026-09-24T04:17:30","slug":"labelimg%e6%89%93%e5%8c%85exe%e6%93%8d%e4%bd%9c%e5%8a%9e%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/app.60day.cn\/appday\/kaifaexe\/46790\/","title":{"rendered":"labelimg\u6253\u5305exe\u64cd\u4f5c\u529e\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"<p>LabelImg \u662f\u4e00\u4e2a\u975e\u5e38\u53d7\u6b22\u8fce\u7684\u56fe\u50cf\u6807\u6ce8\u5de5\u5177\uff0c\u5141\u8bb8\u7528\u6237\u4e3a\u673a\u5668\u5b66\u4e60\u548c\u6df1\u5ea6\u5b66\u4e60\u9879\u76ee\u8f7b\u677e\u521b\u5efa\u56fe\u50cf\u6807\u7b7e\u3002LabelImg \u662f\u7528 Python \u7f16\u5199\u7684\uff0c\u5e76\u4f7f\u7528 Qt \u56fe\u5f62\u7528\u6237\u754c\u9762\u6846\u67b6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cLabelImg \u662f\u8fd0\u884c\u5728 Python \u73af\u5883\u4e2d\u7684\u3002\u7136\u800c\uff0c\u6709\u65f6\u5019\u4e3a\u4e86\u8ba9\u5176\u4ed6\u56e2\u961f\u6210\u5458\u66f4\u5bb9\u6613\u5730\u4f7f\u7528\u8fd9\u4e2a\u5de5\u5177\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff08.exe \u6587\u4ef6\uff09\u3002<\/p>\n<p>\u672c\u6587\u4e3b\u8981\u5411\u60a8\u4ecb\u7ecd\u5982\u4f55\u5c06 LabelImg Python <a href=\"https:\/\/www.yimenexe.com\/ruanjian-kaifa-4868.html\">wxglade\u751f\u6210exe<\/a>\u9879\u76ee\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u7684 .exe \u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684\u64cd\u4f5c\u6b65\u9aa4\uff1a<\/p>\n<p>### \u51c6\u5907\u5de5\u4f5c<\/p>\n<p>\u9996\u5148\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\u4e86\u4ee5\u4e0b\u8f6f\u4ef6\u548c\u4f9d\u8d56\u5e93:<\/p>\n<p>1. Python3.7 \u6216\u66f4\u9ad8\u7248\u672c\uff0c\u5efa\u8bae\u4f7f\u7528\u6700\u65b0\u7248\u672c\uff1b<\/p>\n<p>2. LabelImg \u7684\u6e90\u4ee3\u7801\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u4ece GitHub \u4e0a\u4e0b\u8f7d\uff1a[https:\/\/github.com\/tzutalin\/labelImg](https:\/\/github.com\/tzutalin\/labelImg)<\/p>\n<p>3. \u5b89\u88c5 PyQt5\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>   &#8220;`<\/p>\n<p>   pip install PyQt5<\/p>\n<p>   &#8220;`<\/p>\n<p>4. \u5b89\u88c5 lxml\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-03\/17\/14\/21996275961.jpg\" \/><\/figure>\n<\/p>\n<p>&#8220;`<\/p>\n<p>   pip install lxml<\/p>\n<p>   &#8220;`<\/p>\n<p>5. \u5b89\u88c5 pyinstaller\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>   &#8220;`<\/p>\n<p>   pip install pyinstaller<\/p>\n<p>   &#8220;`<\/p>\n<p>### \u5c06 LabelImg \u6253\u5305\u6210 .exe \u6587\u4ef6<\/p>\n<p>\u5b8c\u6210\u4e86\u6240\u6709\u5fc5\u8981\u7684\u5b89\u88c5\u4e4b\u540e\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u5c06 LabelImg \u6253\u5305\u6210 .exe \u6587\u4ef6\u3002<\/p>\n<p>1. \u5728\u6587\u4ef6\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u6253\u5f00\u5df2\u7ecf\u4e0b\u8f7d\u7684 LabelImg \u9879\u76ee\u6587\u4ef6\u5939\u3002<\/p>\n<p>2. \u5728 LabelImg \u9879\u76ee\u6587\u4ef6\u5939\u4e2d\u65b0\u5efa\u4e00\u4e2a\u7a7a\u767d\u6587\u672c\u6587\u4ef6\uff0c\u547d\u540d\u4e3a `make_exe.bat`\u3002\u8fd9\u4e2a\u6587\u4ef6\u5c06\u7528\u4e8e\u8fd0\u884c\u6253\u5305\u547d\u4ee4\u3002<\/p>\n<p>3. \u6253\u5f00 make_exe.bat\uff0c\u5e76\u5c06\u4ee5\u4e0b\u5185\u5bb9<a href=\"https:\/\/www.yimenexe.com\/ruanjian-kaifa-2871.html\">qt\u590d\u6742exe\u5236\u4f5c<\/a>\u590d\u5236\u7c98\u8d34\u5230\u6587\u4ef6\u4e2d\uff1a<\/p>\n<p>   &#8220;`<\/p>\n<p>   pyinstaller &#8211;onefile &#8211;console &#8211;icon=labelImg\/data\/icon.ico &#8211;name=labelImg labelImg.py<\/p>\n<p>   &#8220;`<\/p>\n<p>   \u5176\u4e2d\uff0c`labelImg\/data\/icon.ico` \u662f\u8f6f\u4ef6\u56fe\u6807\u6587\u4ef6\u8def\u5f84\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u81ea\u5b9a\u4e49\u3002`labelImg.py` \u662f LabelImg \u7684\u4e3b\u5165\u53e3\u6e90\u6587\u4ef6\u3002<\/p>\n<p>4. \u53f3\u952e\u5355\u51fb `make_exe.bat` \u6587\u4ef6\uff0c\u9009\u62e9 &#8220;\u8fd0\u884c\u4e3a\u7ba1\u7406\u5458&#8221;\u3002\u8fd9\u6837\u6211\u4eec\u7684\u811a\u672c\u4f1a\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c\uff0c\u5728\u8be5\u9879\u76ee\u7684\u6587\u4ef6\u5939\u4e0b\u751f\u6210 labelImg.exe \u6587\u4ef6\u3002<\/p>\n<p>### \u9a8c\u8bc1\u751f\u6210\u7684 .exe \u6587\u4ef6<\/p>\n<p>\u5728\u4e0a\u8ff0\u64cd\u4f5c\u8fc7\u7a0b\u4e2d\uff0c\u751f\u6210\u7684 labelImg.exe \u6587\u4ef6\u4f4d\u4e8e\u9879\u76ee\u6587\u4ef6\u5939\u7684 dist \u6587\u4ef6\u5939\u5185\u3002\u60a8\u53ef\u4ee5\u5728 dist \u6587\u4ef6\u5939\u4e2d\u627e\u5230 labelImg.exe \u6587\u4ef6\u3002\u901a\u8fc7\u53cc\u51fb\u6587\u4ef6\uff0c\u60a8\u5c31\u53ef\u4ee5\u8fd0\u884c LabelImg \u5de5\u5177\uff0c\u9a8c\u8bc1 .exe \u6587\u4ef6\u662f\u5426\u80fd\u6b63\u5e38\u4f7f\u7528\u3002<\/p>\n<p>\u901a\u8fc7\u4e0a\u8ff0\u6559\u7a0b\uff0c\u60a8\u5df2\u7ecf\u6210\u529f\u5730\u5c06 LabelImg Python \u9879\u76ee\u6253\u5305\u4e3a\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c .exe \u6587\u4ef6\u3002\u73b0\u5728\uff0c\u60a8\u53ef\u4ee5\u5c06 labelImg.exe \u53d1\u9001\u7ed9\u5176\u4ed6\u6210\u5458\uff0c\u65e0\u987b\u914d\u7f6e Python \u73af\u5883\u5c31\u53ef\u4ee5\u8f7b\u677e\u5730\u8fdb\u884c\u56fe\u50cf\u6807\u6ce8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LabelImg \u662f\u4e00\u4e2a\u975e\u5e38\u53d7\u6b22\u8fce\u7684\u56fe\u50cf\u6807\u6ce8\u5de5\u5177\uff0c\u5141\u8bb8\u7528\u6237\u4e3a\u673a\u5668\u5b66\u4e60\u548c\u6df1\u5ea6\u5b66\u4e60\u9879\u76ee\u8f7b\u677e\u521b\u5efa\u56fe\u50cf\u6807\u7b7e\u3002LabelImg \u662f\u7528 Python \u7f16\u5199\u7684\uff0c\u5e76\u4f7f\u7528 Qt \u56fe\u5f62\u7528\u6237\u754c\u9762\u6846\u67b6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cLabe<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[38222,132,168,38223,728],"topic":[],"class_list":["post-46790","post","type-post","status-publish","format-standard","hentry","category-kaifaexe","tag-javaexe","tag-132","tag-168","tag-38223","tag-728"],"_links":{"self":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/46790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/comments?post=46790"}],"version-history":[{"count":1,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/46790\/revisions"}],"predecessor-version":[{"id":46825,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/posts\/46790\/revisions\/46825"}],"wp:attachment":[{"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/media?parent=46790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/categories?post=46790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/tags?post=46790"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/app.60day.cn\/appday\/wp-json\/wp\/v2\/topic?post=46790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}