{"id":5479,"date":"2022-04-28T22:02:44","date_gmt":"2022-04-28T14:02:44","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=5479"},"modified":"2024-05-05T14:19:06","modified_gmt":"2024-05-05T06:19:06","slug":"opencv-python-qr-%e4%ba%8c%e7%bb%b4%e7%a0%81%e6%89%ab%e6%8f%8f","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=5479","title":{"rendered":"opencv-python  QR \u4e8c\u7ef4\u7801\u626b\u63cf"},"content":{"rendered":"\n<p>QR \u4e8c\u7ef4\u7801\u626b\u63cf\u76f8\u5173 API \u662f\u5728 OpenCV 4 \u4e2d\u6dfb\u52a0\u7684\uff0c\u6240\u4ee5\u8981\u6c42 OpenCV \u6700\u4f4e\u7248\u672c\u53f7\u4e3a 4.0\u3002\u53bb\u5e74\u5e74\u521d\u5fae\u4fe1\u5f00\u53d1\u56e2\u961f\u5c06\u4e8c\u7ef4\u7801\u626b\u63cf\u5f15\u64ce\u8d21\u732e\u7ed9\u4e86 OpenCV\uff0c\u56e0\u6b64\u5728 OpenCV \u4e2d\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5fae\u4fe1\u626b\u7801\u529f\u80fd\u3002\u5982\u679c\u9700\u8981\u4f7f\u7528\u5fae\u4fe1\u4e8c\u7ef4\u7801\u5f15\u64ce\uff0c\u5219\u9700\u8981\u5728 OpenCV \u57fa\u7840\u6a21\u5757\u4e0a\u518d\u5b89\u88c5 contrib \u6a21\u5757\uff0c\u8981\u6c42\u7248\u672c\u81f3\u5c11 4.5.2\uff0c\u4e14\u57fa\u7840\u6a21\u5757\u7248\u672c\u548c contrib \u7248\u672c\u5fc5\u987b\u4e00\u6837\u624d\u80fd\u6b63\u5e38\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>\u6d4b\u8bd5\u73af\u5883\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Ubuntu 20.04 x86_64\nPython 3.9.10\nopenv-python 4.5.5.64\nopencv-contrib-python 4.5.5.64\njupyter 1.0.0\nnumpy 1.22.3<\/pre>\n\n\n\n<p>\u672c\u6587\u8d44\u6e90\u6587\u4ef6\u4e0b\u8f7d\uff1a<a href=\"https:\/\/pan.baidu.com\/s\/1xB0bcNgUfgBgxxfRYuejvg?pwd=vke4\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/pan.baidu.com\/s\/1xB0bcNgUfgBgxxfRYuejvg?pwd=vke4<\/a><\/p>\n\n\n\n<p>\u8fd0\u884c\u7b14\u8bb0\u672c <strong>QR \u4e8c\u7ef4\u7801\u626b\u63cf.ipynb<\/strong> \uff0c\u53ef\u4ee5\u901a\u8fc7\u76f8\u673a\u5b9e\u65f6\u9884\u89c8\u56fe\u50cf\uff0c\u5728\u68c0\u6d4b\u5230\u4e8c\u7ef4\u7801\u65f6\uff0c\u4f1a\u5728\u56fe\u50cf\u4e2d\u6846\u51fa\uff0c\u6ce8\u610f\u89c6\u91ce\u4e2d\u4e0d\u8981\u8d85\u8fc7\u4e00\u5f20\u4e8c\u7ef4\u7801\uff0c\u8fd9\u91cc\u7684\u6848\u4f8b\u7a0b\u5e8f\u672a\u7f16\u5199\u9488\u5bf9\u591a\u4e8c\u7ef4\u7801\u7684\u5904\u7406\uff0c\u8be5\u5883\u51b5\u4e0b\u5c06\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u5f02\u5e38\u7ec8\u6b62\u3002<\/p>\n\n\n\n<p>\u5fae\u4fe1\u4e8c\u7ef4\u7801\u626b\u63cf\u5f15\u64ce\u57fa\u4e8e CNN\uff0c\u4f7f\u7528\u524d\u9700\u8981\u52a0\u8f7d\u6a21\u578b\uff0c\u6a21\u578b\u6587\u4ef6\u4e0b\u8f7d\u53ef\u4ee5\u524d\u5f80\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/WeChatCV\/opencv_3rdparty\" target=\"_blank\">https:\/\/github.com\/WeChatCV\/opencv_3rdparty<\/a> \uff0c\u5728\u672c\u6587\u8d44\u6e90\u4e2d\u6587\u4ef6\u6211\u4e5f\u63d0\u4f9b\u4e86\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u8fd0\u884c\u793a\u4f8b\u4e2d\uff0c\u5de6\u8fb9\u4e3a\u539f\u751f\u4e8c\u7ef4\u7801\u5f15\u64ce\uff0c\u53f3\u8fb9\u4e3a\u5fae\u4fe1\u4e8c\u7ef4\u7801\u5f15\u64ce\uff0c\u4e0b\u9762\u5bf9\u5e94\u7684\u6846\u4e2d\u663e\u793a\u8bc6\u522b\u51fa\u7684\u4fe1\u606f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"688\" height=\"487\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-268.png\" alt=\"\" class=\"wp-image-5482 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-268.png 688w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-268-300x212.png 300w\" data-sizes=\"(max-width: 688px) 100vw, 688px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 688px; --smush-placeholder-aspect-ratio: 688\/487;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"780\" height=\"519\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-267.png\" alt=\"\" class=\"wp-image-5481 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-267.png 780w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-267-300x200.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-267-768x511.png 768w\" data-sizes=\"(max-width: 780px) 100vw, 780px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 780px; --smush-placeholder-aspect-ratio: 780\/519;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"738\" height=\"478\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-269.png\" alt=\"\" class=\"wp-image-5483 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-269.png 738w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-269-300x194.png 300w\" data-sizes=\"(max-width: 738px) 100vw, 738px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 738px; --smush-placeholder-aspect-ratio: 738\/478;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"729\" height=\"517\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-270.png\" alt=\"\" class=\"wp-image-5486 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-270.png 729w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/04\/image-270-300x213.png 300w\" data-sizes=\"(max-width: 729px) 100vw, 729px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 729px; --smush-placeholder-aspect-ratio: 729\/517;\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>QR \u4e8c\u7ef4\u7801\u626b\u63cf\u76f8\u5173 API \u662f\u5728 OpenCV 4 \u4e2d\u6dfb\u52a0\u7684\uff0c\u6240\u4ee5\u8981\u6c42 OpenCV \u6700\u4f4e\u7248\u672c\u53f7\u4e3a 4.0\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-5479","post","type-post","status-publish","format-standard","hentry","category-all"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/5479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5479"}],"version-history":[{"count":0,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/5479\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}