{"id":98800,"date":"2024-06-28T10:30:10","date_gmt":"2024-06-28T02:30:10","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=98800"},"modified":"2024-06-28T10:30:10","modified_gmt":"2024-06-28T02:30:10","slug":"linux-opencv","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-opencv.html","title":{"rendered":"\u6d45\u6790linux\u4e0bOpencv 2.4.13\u7248\u672c\u7684\u5b89\u88c5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nOpenCV\u662f\u4e00\u4e2a\u57fa\u4e8eBSD\u8bb8\u53ef\uff08\u5f00\u6e90\uff09\u53d1\u884c\u7684\u8de8\u5e73\u53f0\u8ba1\u7b97\u673a\u89c6\u89c9\u5e93\uff0c\u53ef\u4ee5\u8fd0\u884c\u5728Linux\u3001Windows\u3001Android\u548cMac OS\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u3002\u5b83\u8f7b\u91cf\u7ea7\u800c\u4e14\u9ad8\u6548\u2014\u2014\u7531\u4e00\u7cfb\u5217 C \u51fd\u6570\u548c\u5c11\u91cf C++ \u7c7b\u6784\u6210\uff0c\u540c\u65f6\u63d0\u4f9b\u4e86Python\u3001Ruby\u3001MATLAB\u7b49\u8bed\u8a00\u7684\u63a5\u53e3\uff0c\u5b9e\u73b0\u4e86\u56fe\u50cf\u5904\u7406\u548c\u8ba1\u7b97\u673a\u89c6\u89c9\u65b9\u9762\u7684\u5f88\u591a\u901a\u7528\u7b97\u6cd5\u3002\u4eca\u5929\u54b1\u4eec\u5728Linux\u5b89\u88c5\u4e00\u4e0bopencv\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
1.\u4e0b\u8f7d\u7136\u540e\u89e3\u538b\u5b89\u88c5\u538b\u7f29\u5305<\/strong><\/div>\n
unzip opencv-2.4.13.zip<\/pre>\n
2. \u8fdb\u5165\u521a\u89e3\u538b\u7684\u6587\u4ef6\u5939\uff0c\u5efa\u7acbrelease\u6587\u4ef6\u5939<\/strong><\/div>\n
\u00a0cd opencv-2.4.13mkdir release<\/pre>\n
3. \u5b89\u88c5\u4e00\u4e0b\u5fc5\u987b\u7684\u4f9d\u8d56\u5e93<\/strong><\/div>\n
sudo apt-get install build-essential cmake libgtk2.0-dev pkg-config python-dev python-numpy libavcodec-dev libavformat-dev libswscale-dev<\/pre>\n
4. \u8fdb\u5165release\u6587\u4ef6\u5939,\u7528cmake\u7f16\u8bd1OpenCV\u7684\u6e90\u7801\uff0c\u628alib\u5b89\u88c5\u5230\/usr\/local\u76ee\u5f55\u4e0b
\n<\/strong><\/div>\n
cd release\r\ncmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=\/usr\/local ..<\/pre>\n
5. \u5b89\u88c5<\/strong><\/div>\n
sudo make install<\/pre>\n
\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/blog.csdn.net\/xueli1991\/article\/details\/53196085<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/linux-opencv.html<\/a>\u7f16\u8f91\uff1a\u4efb\u7ef4\u56fd\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb OpenCV\u662f\u4e00\u4e2a\u57fa\u4e8eBSD\u8bb8\u53ef\uff08\u5f00\u6e90\uff09\u53d1\u884c\u7684\u8de8\u5e73\u53f0\u8ba1\u7b97\u673a\u89c6\u89c9\u5e93\uff0c\u53ef\u4ee5\u8fd0\u884c\u5728Linux\u3001Windows\u3001 […]<\/p>\n","protected":false},"author":63,"featured_media":97279,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-98800","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/98800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=98800"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/98800\/revisions"}],"predecessor-version":[{"id":98958,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/98800\/revisions\/98958"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/97279"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=98800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=98800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=98800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}