{"id":967,"date":"2021-07-01T12:07:14","date_gmt":"2021-07-01T04:07:14","guid":{"rendered":"http:\/\/blog.5danyuan.com\/?p=967"},"modified":"2021-07-01T12:07:14","modified_gmt":"2021-07-01T04:07:14","slug":"firefly%e5%ae%89%e8%a3%85opencv4","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=967","title":{"rendered":"Firefly\u5b89\u88c5opencv4"},"content":{"rendered":"\n<p>\u5728 Firefly \u901a\u8fc7\u7f16\u8bd1\u5b89\u88c5\u7684\u5347\u7ea7 python \u7684\u65f6\u5019\uff0c\u7f16\u8bd1\u59cb\u7ec8\u6709\u4e9b\u4e71\u4e03\u516b\u7cdf\u7684\u9519\u8bef\u3002\u4e00\u6c14\u4e4b\u4e0b\uff0c\u5c31\u66f4\u65b0\u4e86\u56fa\u4ef6\u5230 Ubuntu 18.04 \u7cfb\u7edf\u4e0a\uff0c\u518d\u7f16\u8bd1\u5347\u7ea7\u62a5\u9519\u5c31\u5c11\u4e86\u5f88\u591a\uff0c\u4e00\u70b9\u70b9\u7ec8\u4e8e\u5347\u7ea7\u6210\u529f\u4e86\u3002<\/p>\n\n\n\n<p>\u53ef\u662f\u6309\u7167\u7f51\u4e0a\u7684\u64cd\u4f5c\u5b89\u88c5 opencv-python \u65f6\u603b\u662f\u63d0\u793a\u627e\u4e0d\u5230\uff0c\u6000\u7591\u662f\u8fd9\u4e2a\u5e76\u6ca1\u6709\u9488\u5bf9 ARM \u7684\u7248\u672c\u5427\u3002\u4f7f\u7528 python-opencv \u53ea\u6709 2.7 \u7684\u53ef\u4ee5\u5b89\u88c5\u4e0a\u3002<\/p>\n\n\n\n<p>\u53ea\u597d\u901a\u8fc7\u7f51\u4e0a\u7684\u5e16\u5b50\uff0c\u7f16\u8bd1\u5b89\u88c5 opencv\uff0c\u5f53\u524d\u6700\u65b0\u7684\u7248\u672c\u662f 4.3\uff0c\u6309\u7167<a href=\"https:\/\/blog.csdn.net\/weixin_39992397\/article\/details\/84345197\">\u8fd9\u91cc<\/a>\uff0c\u8fd8\u6709<a href=\"https:\/\/blog.csdn.net\/u013093426\/article\/details\/90180763\">\u8fd9\u91cc<\/a>\u3002\u7ecf\u8fc7\u6f2b\u957f\u7684\u7b49\u5f85\uff0c\u867d\u7136\u6709\u5f88\u591a\u8b66\u544a\uff0c\u4e0d\u8fc7\u7ec8\u4e8e\u662f\u5b89\u88c5\u6210\u529f\u4e86\u3002<\/p>\n\n\n\n<p>\u5148\u4e0b\u8f7d\u6700\u65b0\u7684\u7248\u672c<br>wget https:\/\/github.com\/opencv\/opencv\/archive\/4.3.0.tar.gz<\/p>\n\n\n\n<p>\u7136\u540e\u89e3\u538b\u7f29 tar zxvf opencv.4.3.0.tar.gz<\/p>\n\n\n\n<p>\u8fdb\u5165\u5230\u5176\u76ee\u5f55\uff0c\u5e76\u521b\u5efa build \u5b50\u76ee\u5f55<br>mkdir build<br>cd build<br>cmake -D CMAKE_BUILD_TYPE=RELEASE ..<br>make -j4<br>sudo make install<\/p>\n\n\n\n<p>\u6700\u540e\u53ef\u4ee5\u4f7f\u7528 import cv2 \u6765\u9a8c\u8bc1<\/p>\n\n\n\n<p>\u7f51\u4e0a\u7684\u5e16\u5b50\u91cc\u8bf4\u5728\u4f7f\u7528 cmake \u65f6\u4f20\u9012\u7684\u53c2\u6570\u4f1a\u5bfc\u81f4\u5f88\u591a\u9519\u8bef\uff0c\u6240\u4ee5\u5c31\u76f4\u63a5\u4f7f\u7528\u4e86\u6700\u5c11\u7684\u53c2\u6570\u3002\u597d\u5728\u6ca1\u6709\u4ec0\u4e48\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Firefly \u901a\u8fc7\u7f16\u8bd1\u5b89\u88c5\u7684\u5347\u7ea7 python \u7684\u65f6\u5019\uff0c\u7f16\u8bd1\u59cb\u7ec8\u6709\u4e9b\u4e71\u4e03\u516b\u7cdf\u7684\u9519\u8bef\u3002\u4e00\u6c14\u4e4b\u4e0b\uff0c\u5c31\u66f4\u65b0\u4e86\u56fa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[227,300,5],"tags":[283],"class_list":["post-967","post","type-post","status-publish","format-standard","hentry","category-banana-pi","category-python","category-daily","tag-firefly"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=967"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/967\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}