{"id":66,"date":"2021-12-03T22:10:51","date_gmt":"2021-12-03T14:10:51","guid":{"rendered":"https:\/\/www.laning.cc\/?p=66"},"modified":"2025-03-28T11:15:10","modified_gmt":"2025-03-28T03:15:10","slug":"%e6%a0%91%e8%8e%93%e6%b4%be%e8%87%aa%e7%bc%96%e8%af%91opencv%ef%bc%88%e9%80%9a%e7%94%a8%e6%95%99%e7%a8%8b%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/","title":{"rendered":"\u6811\u8393\u6d3e\u81ea\u7f16\u8bd1opencv"},"content":{"rendered":"<h2>\u9879\u76ee\u4ecb\u7ecd<\/h2>\n<p>OpenCV\u662f\u4e00\u4e2a\u57fa\u4e8eBSD\u8bb8\u53ef\u53d1\u884c\u7684\u8de8\u5e73\u53f0\u8ba1\u7b97\u673a\u89c6\u89c9\u548c\u673a\u5668\u5b66\u4e60\u8f6f\u4ef6\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\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\u800c\u6811\u8393\u6d3e\u4f5c\u4e3a\u4e00\u6b3e\u975e\u5e38\u6d41\u884c\u7684\u5f00\u53d1\u5b66\u4e60\u5e73\u53f0\uff0c\u5f88\u591a\u5f00\u53d1\u8005\u7684\u4eba\u5de5\u667a\u80fd\u9879\u76ee\u90fd\u57fa\u4e8eopencv\uff0c\u7136\u800c\uff0c\u6811\u8393\u6d3e\u7684\u8f6f\u4ef6\u6e90\u4e00\u822c\u63d0\u4f9b\u7684\u90fd\u662fopencv3.4.0\u8fd9\u79cd\u8001\u7248\u672c\uff0c\u8fd9\u4e2a\u9879\u76ee\u5c06\u5206\u4eab\u5982\u4f55\u5728\u6811\u8393\u6d3e\u4e0a\u6e90\u7801\u7f16\u8bd1\u5e76\u5b89\u88c5\u6307\u5b9a\u7248\u672c\u7684opencv\u3002<\/p>\n<h3>\u8bf4\u5728\u524d\u9762<\/h3>\n<p>\u5373\u4fbf\u662f\u6700\u65b0\u7684\u6811\u8393\u6d3e4B\u4ee3\uff084G\uff09\u7248\u672c\uff0c\u5728\u4e00\u5207\u987a\u5229\u7684\u60c5\u51b5\u4e0b\uff0c\u7f16\u8bd1\u5b89\u88c5\u5b8c\u6210\u672c\u9879\u76ee\u4e5f\u5927\u6982\u9700\u89815\u4e2a\u5c0f\u65f6\u4ee5\u4e0a\uff0c\u6240\u4ee5\u5982\u679c\u6ca1\u6709\u7279\u6b8a\u8981\u6c42\u53ef\u4ee5\u8003\u8651\u7528\u6e05\u534e\u6e90\uff08\u5176\u4ed6\u8f6f\u4ef6\u6e90\u4e0d\u592a\u6e05\u695a\u662f\u5426\u6709\u5bf9\u5e94\u7684\u8f6f\u4ef6\u5305\uff09\u76f4\u63a5\u5b89\u88c5opencv\uff0c\u5173\u4e8e\u5982\u4f55\u6362\u6e05\u534e\u6e90\u4e0d\u591a\u8d58\u8ff0\uff0c\u8bf7\u81ea\u884c\u767e\u5ea6\u3002\u6362\u6e90\u4e4b\u540e\uff0c\u547d\u4ee4\u884c\u4f9d\u6b21\u6267\u884c<\/p>\n<pre><code>sudo apt update<\/code><\/pre>\n<pre><code>sudo apt install python3-opencv<\/code><\/pre>\n<h3>1.\u73af\u5883\u914d\u7f6e<\/h3>\n<p>\uff08\u5efa\u8baeSSH\u8fdc\u7a0b\u8fde\u63a5\u6811\u8393\u6d3e\u64cd\u4f5c\uff0c\u7701\u53bb\u81ea\u5df1\u8f93\u5165\u547d\u4ee4\u7684\u70e6\u607c\uff09<\/p>\n<p>\u73b0\u5728\u4f60\u5047\u8bbe\u5df2\u7ecf\u6b63\u786e\u66f4\u6362\u8f6f\u4ef6\u6e90\uff0c\u5305\u62ecapt\u548cpip\uff0c\u4e0d\u6362\u6e90\u5728\u73af\u5883\u914d\u7f6e\u8fd9\u4e00\u6b65\u53ef\u80fd\u4f1a\u82b1\u8d39\u5f88\u591a\u6ca1\u5fc5\u8981\u82b1\u8d39\u7684\u65f6\u95f4<\/p>\n<p>\u5bf9\u4e8e\u4e00\u4e9b\u535a\u4e3b\u8fdb\u884c\u6269\u5bb9\u7684\u64cd\u4f5c\u601d\u8def\uff0c\u672c\u4eba\u5e76\u6ca1\u6709\u8fdb\u884c\u6240\u8c13\u7684\u6269\u5bb9\uff0c\u4e14\u6ca1\u6709\u51fa\u73b0\u5361\u6b7b\u7684\u73b0\u8c61\uff0c\u6240\u4ee5\u672c\u6559\u7a0b\u6ca1\u6709\u6269\u5bb9\u8fd9\u4e00\u6b65<\/p>\n<p>\u5b89\u88c5opencv\u73af\u5883\u4f9d\u8d56\uff0c\u4f9d\u6b21\u6267\u884c\u4e0b\u9762\u547d\u4ee4<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt install -y cmake g++ wget unzip<\/code><\/pre>\n<pre><code class=\"language-text\">sudo apt-get install build-essential git cmake pkg-config -y\n<\/code><\/pre>\n<pre><code class=\"language-text\">sudo apt-get install libjpeg8-dev -y\n<\/code><\/pre>\n<pre><code class=\"language-text\">sudo apt-get install libtiff5-dev -y\n<\/code><\/pre>\n<pre><code class=\"language-text\">sudo apt-get install libjasper-dev -y\n<\/code><\/pre>\n<pre><code class=\"language-text\">sudo apt-get install libpng12-dev -y\n<\/code><\/pre>\n<pre><code class=\"language-text\">sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y\n<\/code><\/pre>\n<pre><code class=\"language-text\">sudo apt-get install libgtk2.0-dev -y\n<\/code><\/pre>\n<pre><code class=\"language-text\">sudo apt-get install libatlas-base-dev gfortran -y<\/code><\/pre>\n<h3>2.\u4e0b\u8f7d\u6e90\u7801\u5e76\u89e3\u538b<\/h3>\n<p>\uff08\u5efa\u8baeSSH\u8fdc\u7a0b\u8fde\u63a5\u6811\u8393\u6d3e\u64cd\u4f5c\uff0c\u7701\u53bb\u81ea\u5df1\u8f93\u5165\u547d\u4ee4\u7684\u70e6\u607c\uff09<\/p>\n<p>opencv\u6e90\u7801\u5730\u5740\uff1a<\/p>\n<p><a href=\"https:\/\/github.com\/opencv\/opencv\/releases\">https:\/\/github.com\/opencv\/opencv\/releases<\/a><\/p>\n<p>\u627e\u5230\u81ea\u5df1\u60f3\u8981\u7684\u6e90\u7801\u6587\u4ef6,\u6211\u4ee54.5.4\u7248\u672c\u4e3a\u4f8b\uff0c\u6b64\u5904\u4e0b\u8f7d\u6e90\u7801\u6709\u4e24\u79cd\u601d\u8def\uff0c\u4e00\u79cd\u662f\u5728windows\u7535\u8111\u4e0a\u4e0b\u8f7d\u597d\u5e76\u901a\u8fc7FTP\u7b49\u4e0a\u4f20\u7ed9\u6811\u8393\u6d3e\u4f7f\u7528\uff0c\u53e6\u5916\u4e00\u79cd\u662f\u76f4\u63a5\u5728\u6811\u8393\u6d3e\u4f7f\u7528wget\u547d\u4ee4\u4e0b\u8f7d\u6e90\u7801\uff0c\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>\u53f3\u952e\u4e0b\u56fe\u6240\u793a\u7684Source code\uff08zip\uff09\uff0c\u9009\u62e9\u590d\u5236\u94fe\u63a5\u5730\u5740\uff0c\u5728SSH\u5ba2\u6237\u7aef\u4f7f\u7528\u4e0b\u9762\u547d\u4ee4<\/p>\n<pre><code>wget\u00a0 https:\/\/github.com\/opencv\/opencv\/archive\/refs\/tags\/4.5.4.zip<\/code><\/pre>\n<p>\u7b49\u5f85\u4e0b\u8f7d\u5b8c\u6210\uff01<\/p>\n<p>\u547d\u4ee4\u884c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u89e3\u538bopencv\u6e90\u7801<\/p>\n<pre><code>unzip 4.5.4.zip<\/code><\/pre>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/OM7Q81ZK@BCPRXNT0.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-67 size-full\" style=\"font-size: 16.8px;\" data-original=\"https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/OM7Q81ZK@BCPRXNT0.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" width=\"1000\" height=\"888\"  sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/div><\/p>\n<p>\u540c\u7406\uff0c<span style=\"font-size: 16.8px;\">\u4e0b\u8f7d\u5bf9\u5e94\u7248<\/span><span style=\"font-size: 16.8px;\">\u672c\u7684opencv_contrib<\/span><\/p>\n<p>opencv_contrib\u6e90\u7801\u5730\u5740\uff1a<\/p>\n<p><a href=\"https:\/\/github.com\/opencv\/opencv_contrib\/tags\">https:\/\/github.com\/opencv\/opencv_contrib\/tags<\/a><\/p>\n<p>\u627e\u5230\u5bf9\u5e94\u7248\u672c\u7684opencv_contrib\uff0c\u590d\u5236\u4e0b\u8f7d\u94fe\u63a5\uff0c\u547d\u4ee4\u884c\u8f93\u5165<\/p>\n<pre><code>wget\u00a0 https:\/\/github.com\/opencv\/opencv_contrib\/archive\/refs\/tags\/4.5.4.zip<\/code><\/pre>\n<p>\u547d\u4ee4\u884c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u89e3\u538bopencv_contrib\u6e90\u7801<\/p>\n<pre><code>unzip 4.5.4.zip.1<\/code><\/pre>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/24PCGY4W5P06SOGNS.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-68 size-full\" data-original=\"https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/24PCGY4W5P06SOGNS.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" width=\"833\" height=\"829\"  sizes=\"(max-width: 833px) 100vw, 833px\" \/><\/div><\/p>\n<h3>3.\u8bbe\u7f6e\u7f16\u8bd1\u53c2\u6570<\/h3>\n<p>\uff08\u5efa\u8baeSSH\u8fdc\u7a0b\u8fde\u63a5\u6811\u8393\u6d3e\u64cd\u4f5c\uff0c\u7701\u53bb\u81ea\u5df1\u8f93\u5165\u547d\u4ee4\u7684\u70e6\u607c\uff09<\/p>\n<p>\u4ee54.5.4\u7248\u672c\u4e3a\u4f8b\uff1a\uff08\u5176\u4ed6\u7248\u672c\u8bf7\u9002\u5f53\u4fee\u6539\u7f16\u8bd1\u53c2\u6570\uff09<\/p>\n<p>\u547d\u4ee4\u884c\u4f9d\u6b21\u8f93\u5165\u4e00\u4e0b\u547d\u4ee4<\/p>\n<pre><code>cd opencv-4.5.4<\/code><\/pre>\n<pre><code>mkdir build &amp;&amp; cd build<\/code><\/pre>\n<p>\u9700\u8981\u9002\u5f53\u4fee\u6539\u7f16\u8bd1\u53c2\u6570\u7684\u5730\u65b9\u6765\u4e86\uff0c\u5404\u6218\u6597\u90e8\u95e8\u6ce8\u610f\uff0c\u590d\u5236\u4e0b\u9762\u7684\u6240\u6709\u547d\u4ee4\u4e4b\u540e\uff0c\u522b\u7740\u6025\u56de\u8f66\u6267\u884c\uff0c\u7ec6\u770b\u540e\u9762\u8bf4\u660e\u90e8\u5206<\/p>\n<pre><code class=\"language-text\">cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=\/usr\/local -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=\/home\/pi\/opencv_contrib-4.5.4\/modules -D BUILD_EXAMPLES=ON -D WITH_LIBV4L=ON PYTHON3_EXECUTABLE=\/usr\/bin\/python3.9 PYTHON_INCLUDE_DIR=\/usr\/include\/python3.9 PYTHON_LIBRARY=\/usr\/lib\/arm-linux-gnueabihf\/libpython3.9m.so PYTHON3_NUMPY_INCLUDE_DIRS=\/home\/pi\/.local\/lib\/python3.9\/site-packages\/numpy\/core\/include ..<\/code><\/pre>\n<p>\u53ef\u80fd\u9700\u8981\u4fee\u6539\u53c2\u6570\u7684\u90e8\u5206\u8bf4\u660e\uff1a<\/p>\n<p>\u56e0\u9009\u62e9opencv\u7248\u672c\u4e0d\u540c\uff0c\u5219\u9700\u8981\u4fee\u6539\u7f16\u8bd1\u53c2\u6570\u4e2d\u7684\u7248\u672c\u4fe1\u606f\u53c2\u6570<\/p>\n<p>\u56e0opencv\u4ee5\u53caopencv_crntrib\u4e0b\u8f7d\u76ee\u5f55\u6ca1\u653e\u5728\/home\/pi\u4e2d\uff0c\u5219\u9700\u8981\u4fee\u6539\u5bf9\u5e94\u8def\u5f84\u90e8\u5206\u7684\u53c2\u6570<\/p>\n<p>\u4e0e\u793a\u4f8b\u6240\u7528\u7cfb\u7edf\u7248\u672c\u4e0d\u5339\u914d\u9020\u6210\u9700\u4fee\u6539\u53c2\u6570\uff0c\u4f8b\u5982\u6700\u65b0\u7684bullseye\u7cfb\u7edf\u662f\u57fa\u4e8eDebian11\uff0cpython3\u91c7\u75283.9\u7248\u672c\uff0c\u800c\u4e0a\u4e00\u4ee3\u7cfb\u7edfbuster\u7cfb\u7edfpython3\u5219\u662f\u91c7\u7528python3.7\u7248\u672c\uff0c\u6240\u4ee5\u5982\u679c\u662fbuster\u7cfb\u7edf\u7684\u5c0f\u4f19\u4f34\u9700\u8981\u4fee\u6539\u591a\u4e2a\u53c2\u6570<\/p>\n<p>\u68c0\u67e5\u4ee5\u4e0a\u5185\u5bb9\u65e0\u8bef\u540e\uff0c\u518d\u56de\u8f66\u6267\u884c\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u5927\u7ea6\u4f1a\u82b1\u8d3910\u5206\u949f<\/p>\n<h4>4.\u7f16\u8bd1\u53ca\u5b89\u88c5<\/h4>\n<p>\uff08\u5efa\u8bae\u901a\u8fc7VNC\u7b49\u8fdc\u7a0b\u684c\u9762\u64cd\u4f5c\uff09<\/p>\n<p>\u4e0b\u9762\u6240\u6709\u7684\u547d\u4ee4\u6267\u884c\u7684\u76ee\u5f55\u662f\u5728\u4e0a\u4e00\u6b65\u521b\u5efa\u7684\/build\u76ee\u5f55\u4e0b\uff0c\u5982\u679c\u7b2c\u4e09\u6b65\u5230\u7b2c\u56db\u6b65\u6709\u66f4\u6362\u8fde\u63a5\u65b9\u5f0f\u7684\u5c0f\u4f19\u4f34\u52a1\u5fc5\u6ce8\u610f\u4e00\u4e0b<\/p>\n<p>\u53d7\u5236\u4e8e\u6811\u8393\u6d3e\u7684\u6027\u80fd\uff0c\u6b64\u8fc7\u7a0b\u4f1a\u82b1\u8d39\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\uff0c\u5927\u7ea6\u9700\u89814\u4e2a\u5c0f\u65f6\uff0c\u6240\u4ee5\u91c7\u7528VNC\u8fde\u63a5\u65b9\u5f0f\uff0c\u4e0d\u81f3\u4e8e\u5728\u6b64\u8fc7\u7a0b\u4e2d\uff0c\u7535\u8111\u56e0\u4e3a\u8981\u89c2\u5bdf\u6811\u8393\u6d3e\u7f16\u8bd1\u8fdb\u5ea6\u800c\u4fdd\u6301\u957f\u65f6\u95f4\u5f00\u673a\uff0c\u547d\u4ee4\u884c\u6267\u884c\u4e0b\u9762\u547d\u4ee4<\/p>\n<pre><code>make<\/code><\/pre>\n<p>\u7136\u540e\u4f60\u4f1a\u770b\u5230<\/p>\n<p>0%<\/p>\n<p>\u8fc7\u4e86\u5f88\u4e45\u5f88\u4e45<\/p>\n<p>100%<\/p>\n<p>\u6700\u540e\u547d\u4ee4\u884c\u6267\u884c\uff08\u4ecd\u7136\u662f\/build\u76ee\u5f55\u4e0b\uff09<\/p>\n<pre><code>sudo make install<\/code><\/pre>\n<p>\u8010\u5fc3\u7b49\u5f85\u51e0\u5206\u949f\uff0c\u5927\u529f\u544a\u6210\uff01\uff01\uff01\uff01\uff01\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9879\u76ee\u4ecb\u7ecd OpenCV\u662f\u4e00\u4e2a\u57fa\u4e8eBSD\u8bb8\u53ef\u53d1\u884c\u7684\u8de8\u5e73\u53f0\u8ba1\u7b97\u673a\u89c6\u89c9\u548c\u673a\u5668\u5b66\u4e60\u8f6f\u4ef6\u5e93\uff0c\u53ef\u4ee5\u8fd0\u884c\u5728Linux\u3001Win [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,2],"tags":[13],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6811\u8393\u6d3e\u81ea\u7f16\u8bd1opencv &ndash; Laning &#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6811\u8393\u6d3e\u81ea\u7f16\u8bd1opencv &ndash; Laning &#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u9879\u76ee\u4ecb\u7ecd OpenCV\u662f\u4e00\u4e2a\u57fa\u4e8eBSD\u8bb8\u53ef\u53d1\u884c\u7684\u8de8\u5e73\u53f0\u8ba1\u7b97\u673a\u89c6\u89c9\u548c\u673a\u5668\u5b66\u4e60\u8f6f\u4ef6\u5e93\uff0c\u53ef\u4ee5\u8fd0\u884c\u5728Linux\u3001Win [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/\" \/>\n<meta property=\"og:site_name\" content=\"Laning &#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-03T14:10:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-28T03:15:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/OM7Q81ZK@BCPRXNT0.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"laning\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.laning.org\/#website\",\"url\":\"https:\/\/blog.laning.org\/\",\"name\":\"\\u8fa3\\u5b81\\u7684\\u535a\\u5ba2\",\"description\":\"Learning on the go\",\"publisher\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.laning.org\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#primaryimage\",\"inLanguage\":\"zh-CN\",\"url\":\"https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/OM7Q81ZK@BCPRXNT0.png\",\"contentUrl\":\"https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/OM7Q81ZK@BCPRXNT0.png\",\"width\":1000,\"height\":888},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#webpage\",\"url\":\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/\",\"name\":\"\\u6811\\u8393\\u6d3e\\u81ea\\u7f16\\u8bd1opencv &ndash; Laning &#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.laning.org\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#primaryimage\"},\"datePublished\":\"2021-12-03T14:10:51+00:00\",\"dateModified\":\"2025-03-28T03:15:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"https:\/\/blog.laning.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\\u6811\\u8393\\u6d3e\\u81ea\\u7f16\\u8bd1opencv\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#webpage\"},\"author\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"headline\":\"\\u6811\\u8393\\u6d3e\\u81ea\\u7f16\\u8bd1opencv\",\"datePublished\":\"2021-12-03T14:10:51+00:00\",\"dateModified\":\"2025-03-28T03:15:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#webpage\"},\"wordCount\":70,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\"},\"image\":{\"@id\":\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/OM7Q81ZK@BCPRXNT0.png\",\"keywords\":[\"Linux\\uff0c\\u6811\\u8393\\u6d3e\\uff0copencv\"],\"articleSection\":[\"Github\",\"RaspberryPI\"],\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93\",\"name\":\"laning\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/blog.laning.org\/#personlogo\",\"inLanguage\":\"zh-CN\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g\",\"caption\":\"laning\"},\"logo\":{\"@id\":\"https:\/\/blog.laning.org\/#personlogo\"},\"sameAs\":[\"https:\/\/blog.laning.org\"],\"url\":\"https:\/\/blog.laning.org\/index.php\/author\/laning\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6811\u8393\u6d3e\u81ea\u7f16\u8bd1opencv &ndash; Laning &#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6811\u8393\u6d3e\u81ea\u7f16\u8bd1opencv &ndash; Laning &#039;s Blog","og_description":"\u9879\u76ee\u4ecb\u7ecd OpenCV\u662f\u4e00\u4e2a\u57fa\u4e8eBSD\u8bb8\u53ef\u53d1\u884c\u7684\u8de8\u5e73\u53f0\u8ba1\u7b97\u673a\u89c6\u89c9\u548c\u673a\u5668\u5b66\u4e60\u8f6f\u4ef6\u5e93\uff0c\u53ef\u4ee5\u8fd0\u884c\u5728Linux\u3001Win [&hellip;]","og_url":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/","og_site_name":"Laning &#039;s Blog","article_published_time":"2021-12-03T14:10:51+00:00","article_modified_time":"2025-03-28T03:15:10+00:00","og_image":[{"url":"https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/OM7Q81ZK@BCPRXNT0.png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"laning","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/blog.laning.org\/#website","url":"https:\/\/blog.laning.org\/","name":"\u8fa3\u5b81\u7684\u535a\u5ba2","description":"Learning on the go","publisher":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.laning.org\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"ImageObject","@id":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#primaryimage","inLanguage":"zh-CN","url":"https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/OM7Q81ZK@BCPRXNT0.png","contentUrl":"https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/OM7Q81ZK@BCPRXNT0.png","width":1000,"height":888},{"@type":"WebPage","@id":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#webpage","url":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/","name":"\u6811\u8393\u6d3e\u81ea\u7f16\u8bd1opencv &ndash; Laning &#039;s Blog","isPartOf":{"@id":"https:\/\/blog.laning.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#primaryimage"},"datePublished":"2021-12-03T14:10:51+00:00","dateModified":"2025-03-28T03:15:10+00:00","breadcrumb":{"@id":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.laning.org\/"},{"@type":"ListItem","position":2,"name":"\u6811\u8393\u6d3e\u81ea\u7f16\u8bd1opencv"}]},{"@type":"Article","@id":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#article","isPartOf":{"@id":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#webpage"},"author":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"headline":"\u6811\u8393\u6d3e\u81ea\u7f16\u8bd1opencv","datePublished":"2021-12-03T14:10:51+00:00","dateModified":"2025-03-28T03:15:10+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#webpage"},"wordCount":70,"commentCount":1,"publisher":{"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93"},"image":{"@id":"https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.laning.org\/wp-content\/uploads\/2021\/12\/OM7Q81ZK@BCPRXNT0.png","keywords":["Linux\uff0c\u6811\u8393\u6d3e\uff0copencv"],"articleSection":["Github","RaspberryPI"],"inLanguage":"zh-CN","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.laning.org\/index.php\/2021\/12\/03\/66\/#respond"]}]},{"@type":["Person","Organization"],"@id":"https:\/\/blog.laning.org\/#\/schema\/person\/040331b403ed00370f2fc1e8eb6e6b93","name":"laning","image":{"@type":"ImageObject","@id":"https:\/\/blog.laning.org\/#personlogo","inLanguage":"zh-CN","url":"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17215f328425d53537532588320693a1?s=96&d=retro&r=g","caption":"laning"},"logo":{"@id":"https:\/\/blog.laning.org\/#personlogo"},"sameAs":["https:\/\/blog.laning.org"],"url":"https:\/\/blog.laning.org\/index.php\/author\/laning\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/66"}],"collection":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":2,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":440,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/posts\/66\/revisions\/440"}],"wp:attachment":[{"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.laning.org\/index.php\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}