{"id":108,"date":"2020-04-22T22:14:52","date_gmt":"2020-04-22T14:14:52","guid":{"rendered":"http:\/\/iotch.xyz\/?p=108"},"modified":"2020-04-22T22:14:52","modified_gmt":"2020-04-22T14:14:52","slug":"%e6%a0%91%e8%8e%93%e6%b4%be3b%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85opencv-3-4-0-for-python3-5-and-python2-%e5%ae%8c%e6%95%b4%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.iotch.xyz\/?p=108","title":{"rendered":"\u6811\u8393\u6d3e3B+\u7f16\u8bd1\u5b89\u88c5opencv 3.4.0 for Python3.5 and Python2 \u5b8c\u6574\u6559\u7a0b"},"content":{"rendered":"\n<p>\u6811\u8393\u6d3e3B+\u7f16\u8bd1\u5b89\u88c5opencv 3.4.0 for Python3.5 and Python2 \u5b8c\u6574\u6559\u7a0b - \u7b80\u4e66<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728\u6811\u8393\u6d3e\u4e0a\u5b89\u88c5OpenCV\uff0c\u5206\u522b\u63d0\u4f9b\u8fd0\u884c\u5728Python2\u548cPython3\u7684OpenCV\u7684\u5b89\u88c5\u6559\u7a0b\u3002<\/h4>\n\n\n\n<p>\u200b\u8fd0\u884c\u5728Python2\u4e0a\u7684OpenCV\u5b89\u88c5\u975e\u5e38\u7b80\u5355\uff0c\u51e0\u884c\u547d\u4ee4\u5373\u53ef\u641e\u5b9a\u3002\u8fd0\u884c\u5728Python3\u4e0a\u7684OpenCV\u5b89\u88c5\u6bd4\u8f83\u9ebb\u70e6\uff0c\u9700\u8981\u7f16\u8bd1\u5b89\u88c5\u3002\u672c\u6587\u4e24\u79cd\u5b89\u88c5\u65b9\u5f0f\u5747\u63d0\u4f9b\u3002\u6839\u636e\u4f60\u7684\u9700\u6c42\u5b89\u88c5\u5373\u53ef\u3002\u672c\u6587\u9ed8\u8ba4\u4f60\u662f\u65b0\u624b\u5c0f\u767d\uff0c\u4f1a\u4e00\u6b65\u6b65\u6307\u5bfc\u4f60\u5b89\u88c5\u3002\u672c\u6559\u7a0b\u7ecf\u8fc7\u4f5c\u8005\u4eb2\u81ea\u6d4b\u8bd5\uff0c\u4eb2\u6d4b\u53ef\u884c\u3002<\/p>\n\n\n\n<p>\u672c\u6587\u53d1\u5e03\u4e8e2019\u5e747\u670829\u65e5\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u786c\u4ef6\uff1aRaspberry Pi 3 Model B+<br>\u7cfb\u7edf\u7248\u672c\uff1a 2018-06-27-raspbian-stretch<br>OpenCV\u7248\u672c\uff1a OpenCV 3.4.0<br>OpenCV_Contrib\u7248\u672c\uff1aOpencv_contrib-3.4.0<\/p><\/blockquote>\n\n\n\n<h1 class=\"wp-block-heading\">\u5b89\u88c5\u524d\u63d0<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1.\u914d\u7f6e\u597d\u6811\u8393\u6d3e\u7684Raspbian\u64cd\u4f5c\u7cfb\u7edf<\/h2>\n\n\n\n<p>\u672c\u6559\u7a0b\u4f7f\u7528\u7684\u7cfb\u7edf\u662f2018\u5e7406\u670827\u65e5\u6811\u8393\u6d3e\u5b98\u65b9\u53d1\u5e03\u7684Raspbian-stretch\u64cd\u4f5c\u7cfb\u7edf\uff0c\u767e\u5ea6\u7f51\u76d8<a href=\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fpan.baidu.com%2Fs%2F1jJbMZDwek-Ma2WIcv8jgqg\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >\u4e0b\u8f7d\u94fe\u63a5<\/a>\u3002\u63d0\u53d6\u7801: s3ja<br>\u4e0b\u8f7d\u597d\u4e4b\u540e\u89e3\u538b\u597d\u7136\u540e\u7528\u70e7\u5f55\u8f6f\u4ef6\u5c06\u7cfb\u7edf\u70e7\u5199\u5230\u7a7a\u767d\u7684SD\u5361\u4e2d\uff0c\u63d2\u5982\u6811\u8393\u6d3e\u5373\u53ef\uff0c\u8fd9\u91cc\u63d0\u4f9b\u4e00\u4e2a<a href=\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fpan.baidu.com%2Fs%2F1q0aRLunTO8LnqCyDACbyUA\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >SD\u5361\u7684\u683c\u5f0f\u5316\u8f6f\u4ef6<\/a>\u63d0\u53d6\u7801\uff1aa4wz \u548c\u4e00\u4e2a<a href=\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fpan.baidu.com%2Fs%2F1pQco5NvnuoBaN_LKWG7H0Q\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >\u70e7\u5f55\u8f6f\u4ef6<\/a>\u63d0\u53d6\u7801\uff1afzrf\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Ps:\u5927\u5bb6\u5982\u679c\u4f7f\u7528\u672c\u6559\u7a0b\u7684\u8bdd\u6700\u597d\uff08\u5fc5\u987b\uff09\u4f7f\u7528\u6211\u63d0\u4f9b\u7684\u8fd9\u4e2a\u4e0b\u8f7d\u94fe\u63a5\uff01\uff01\uff01\u5982\u679c\u4f7f\u7528\u5176\u4ed6\u7248\u672c\u7684\u7cfb\u7edf\u7684\u8bdd\uff0c\u540e\u7eed\u5b89\u88c5\u6b65\u9aa4\u4e2d\u7684\u4e00\u4e9b\u6307\u4ee4\u662f\u6709\u95ee\u9898\u7684\uff0c\u6700\u4e3b\u8981\u7684\u662f\u90a3\u4e2aCMAKE\u53c2\u6570\u7684\u8bbe\u7f6e\uff0c\u6bcf\u4e00\u4e2a\u7cfb\u7edf\u53ef\u80fd\u90fd\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u6240\u4ee5\u5f3a\u70c8\u63a8\u8350\u4f7f\u7528\u6211\u63d0\u4f9b\u7684\u8fd9\u4e2a\u7cfb\u7edf\u3002\u5f53\u7136\uff0c\u5982\u679c\u6709\u4eba\u80fd\u628a\u8fd9\u4e2a\u6559\u7a0b\u5f53\u505a\u53c2\u8003\uff0c\u7136\u540e\u53bb\u4f7f\u7528\u5176\u4ed6\u7684\u7cfb\u7edf\u7684\u8bdd\uff0c\u81ea\u7136\u662f\u6700\u597d\u7684\uff0c\u5982\u679c\u662f\u65b0\u624b\u5c0f\u767d\u7684\u8bdd\uff0c\u6700\u597d\u8fd8\u662f\u4f7f\u7528\u6211\u7684\u4e0b\u8f7d\u94fe\u63a5\uff0c\u7136\u540e\u914d\u5408\u672c\u6559\u7a0b\u4f7f\u7528\u3002<\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">2.\u5207\u6362\u5230\u56fd\u5185\u7684apt-get\u4e0b\u8f7d\u6e90<\/h2>\n\n\n\n<p>\u4e3a\u4e86\u63d0\u9ad8\u6811\u8393\u6d3e\u7684\u4e0b\u8f7d\u901f\u5ea6\uff0c\u6309\u7167\u5982\u4e0b\u65b9\u5f0f\u5b8c\u6210\u8f6f\u4ef6\u6e90\u7684\u66f4\u6362\uff1a<\/p>\n\n\n\n<p>1.\u7f16\u8f91 <code>\/etc\/apt\/sources.list<\/code> \u6587\u4ef6\uff0c\u5220\u9664\u539f\u6587\u4ef6\u6240\u6709\u5185\u5bb9\uff0c\u7528\u4ee5\u4e0b\u5185\u5bb9\u53d6\u4ee3\uff1a<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/mirrors.tuna.tsinghua.edu.cn\/raspbian\/raspbian\/ stretch main non-free contrib\ndeb-src http:\/\/mirrors.tuna.tsinghua.edu.cn\/raspbian\/raspbian\/ stretch main non-free contrib\n<\/code><\/pre>\n\n\n\n<p>2.\u7f16\u8f91 <code>\/etc\/apt\/sources.list.d\/raspi.list<\/code> \u6587\u4ef6\uff0c\u5220\u9664\u539f\u6587\u4ef6\u6240\u6709\u5185\u5bb9\uff0c\u7528\u4ee5\u4e0b\u5185\u5bb9\u53d6\u4ee3\uff1a<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/mirrors.tuna.tsinghua.edu.cn\/raspberrypi\/ stretch main ui\n<\/code><\/pre>\n\n\n\n<p>\u5728\u5b8c\u6210\u4e0a\u8ff0\u4e24\u90e8\u64cd\u4f5c\u540e\uff0c\u6267\u884cupdate\u547d\u4ee4<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update\n<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\u5728\u6811\u8393\u6d3e\u5b89\u88c5\u8fd0\u884c\u5728Python2\u73af\u5883\u4e0b\u7684OpenCV<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1.\u5b89\u88c5<\/h2>\n\n\n\n<p>\u4f9d\u6b21\u6267\u884c\u4ee5\u4e0b\u4e24\u6761\u547d\u4ee4\uff0c<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install libopencv-dev\nsudo apt-get install python-opencv\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2.\u6d4b\u8bd5<\/h2>\n\n\n\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165python\uff0c\u56de\u8f66\uff0c\u7136\u540e\u8f93\u5165import cv2\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-d39908fcadc5a3af.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/874\" alt=\"\"\/><\/figure>\n\n\n\n<p>python2\u73af\u5883\u4e0b\u7684OpenCV\u5b89\u88c5<\/p>\n\n\n\n<p>\u7ee7\u7eed\u8f93\u5165cv2.<strong>version<\/strong>,\u67e5\u770bopencv\u7684\u7248\u672c<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-6e4cd3970fed0912.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/869\" alt=\"\"\/><\/figure>\n\n\n\n<p>python2\u73af\u5883\u4e0b\u7684OpenCV\u5b89\u88c5<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u5728\u6811\u8393\u6d3e\u5b89\u88c5\u8fd0\u884c\u5728Python3\u4e0a\u7684OpenCV<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1.\u5b89\u88c5numpy<\/h2>\n\n\n\n<p>\u6253\u5f00\u547d\u4ee4\u884c\u754c\u9762\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5b89\u88c5Python\u79d1\u5b66\u8ba1\u7b97\u5e93numpy<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pip3 install numpy\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>tips:\u5728\u6267\u884c\u8fd9\u6761\u8bed\u53e5\u65f6\uff0c\u663e\u793a\uff1aRequirement already satisfied in: numpy in \/usr\/lib\/python3\/dist-packages\uff0c\u63d0\u793a\u754c\u9762\u5982\u4e0b,\u8868\u793a\u8be5\u7cfb\u7edf\u5df2\u7ecf\u5b89\u88c5\u4e86numpy\u3002<\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-406e1601798c2cf7.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\" alt=\"\"\/><\/figure>\n\n\n\n<p>numpy\u5b89\u88c5\u754c\u9762<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u6ce8\u610f\uff1a\u5982\u679c\u4f7f\u7528\u5176\u4ed6Raspbian\u7cfb\u7edf\u7684\u8bdd\u53ef\u4ee5\u770b\u4e00\u4e0b\u8fd9\u4e2a\u63d0\u793a\uff0c\u5982\u679c\u4f7f\u7528\u7684\u662f\u6211\u63d0\u4f9b\u7684\u7cfb\u7edf\u7684\u8bdd\uff0c\u6267\u884c\u4e0b\u4e00\u6b65\u5373\u53ef\u3002\u56e0\u4e3a\u6211\u63d0\u4f9b\u7684\u7cfb\u7edf\u7684\u8def\u5f84\u5728\u540e\u7eed\u7684\u6b65\u9aa4\u4e2d\u662f\u5339\u914d\u7684\u3002\u8fd9\u91cc\u63d0\u793a\u7684numpy\u7684\u8def\u5f84\u662f\u548c\u540e\u9762CMAKE\u53c2\u6570\u4e2dPYTHON3_NUMPY_INCLUDE_DIRS\u7684\u8bbe\u7f6e\u662f\u4fdd\u6301\u4e00\u81f4\u7684\u3002<\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">2.\u5728\u6811\u8393\u6d3e\u8bbe\u7f6e\u4e2d\u628a\u6839\u76ee\u5f55\u6269\u5927\u5230\u6574\u4e2aSD\u5361<\/h2>\n\n\n\n<p>\u547d\u4ee4\u884c\u754c\u9762\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u8fdb\u5165\u6811\u8393\u6d3e\u914d\u7f6e\u754c\u9762\u3002\u7528\u4e0a\u4e0b\u952e\u548c\u5de6\u53f3\u952e\u5207\u6362\u5149\u6807\u4f4d\u7f6e\u3002\u9009\u62e9Advanced Options<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo raspi-config\n<\/code><\/pre>\n\n\n\n<p>\u56de\u8f66\u4e4b\u540e\u754c\u9762\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-e8910af5009dcbb2.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/961\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6811\u8393\u6d3e\u914d\u7f6e\u754c\u9762<\/p>\n\n\n\n<p>\u5728\u9009\u62e9Advanced Options\u540e\uff0c\u9009\u62e9Expand Filedsystem\u5c06\u6839\u76ee\u5f55\u6269\u5c55\u5230\u8fd9\u4e2aSD\u5361\uff0c\u5145\u5206\u5229\u7528SD\u5361\u7684\u5b58\u50a8\u7a7a\u95f4\u3002\u5982\u679c\u4e0d\u8fdb\u884c\u8fd9\u4e00\u6b65\uff0c\u540e\u7eed\u547d\u4ee4\u4f1a\u51fa\u73b0\u5361\u6b7b\u3002\u9000\u51fa\u8bbe\u7f6e\u754c\u9762\uff0c\u5e94\u8be5\u4f1a\u51fa\u73b0\u63d0\u793a\u662f\u5426reboot\u7cfb\u7edf\uff0c\u5728\u8fd9\u91cc\u9700\u8981reboot\uff08\u91cd\u542f\u6811\u8393\u6d3e\uff09\uff0c\u5982\u679c\u6ca1\u6709\u51fa\u73b0\uff0c\u5c31\u9700\u8981\u624b\u52a8\u6267\u884creboot\u64cd\u4f5c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-23ad425e5d07a724.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/860\" alt=\"\"\/><\/figure>\n\n\n\n<p>Advanced Options\u754c\u9762<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.\u5b89\u88c5OpenCV\u6240\u9700\u7684\u5e93<\/h2>\n\n\n\n<p>\u5206\u522b\u5355\u72ec\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install build-essential git cmake pkg-config -y\nsudo apt-get install libjpeg8-dev -y\nsudo apt-get install libtiff5-dev -y\nsudo apt-get install libjasper-dev -y\nsudo apt-get install libpng12-dev -y\nsudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y \nsudo apt-get install libgtk2.0-dev -y \nsudo apt-get install libatlas-base-dev gfortran -y\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>tips\uff1a\u672c\u4eba\u5728\u5b89\u88c5\u8fd9\u4e9b\u8f6f\u4ef6\u7684\u8fc7\u7a0b\u4e2d\uff0c\u51fa\u73b0\u4e86\u4e00\u4e2a\u95ee\u9898\uff0c\u67e5\u770b\u539f\u56e0\u662f\u56e0\u4e3a\u8f6f\u4ef6\u6e90\u548c\u7cfb\u7edf\u4e0d\u5339\u914d\u7684\u95ee\u9898\uff0c\u6545\u66f4\u6362\u4e86\u4e00\u4e0b\u8f6f\u4ef6\u6e90\uff0c\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u8fd9\u7c7b\u95ee\u9898\u7684\u8bdd\uff0c\u672c\u4eba\u5728\u8fd9\u91cc\u63d0\u4f9b\u4e00\u4e2a\u5907\u7528\u8f6f\u4ef6\u6e90\u5982\u4e0b\uff08\u7f16\u8f91 \/etc\/apt\/sources.list \u6587\u4ef6\uff0c\u5220\u9664\u539f\u6587\u4ef6\u6240\u6709\u5185\u5bb9\uff0c\u7528\u4ee5\u4e0b\u5185\u5bb9\u53d6\u4ee3\uff09<\/p><\/blockquote>\n\n\n\n<p>\u5907\u7528\u8f6f\u4ef6\u6e90\uff1a<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/mirrors.tuna.tsinghua.edu.cn\/raspbian\/raspbian\/ stretch main contrib non-free rpi\ndeb-src http:\/\/mirrors.tuna.tsinghua.edu.cn\/raspbian\/raspbian\/ stretch main contrib non-free rpi\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4.\u5b89\u88c5OpenCV<\/h2>\n\n\n\n<p>\u5206\u522b\u5355\u72ec\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5efa\u8bae\u5c31\u5728\/home\/pi\/Downloads\u8fd9\u4e2a\u8def\u5f84\u4e0b\u64cd\u4f5c\uff0c\u4ee5\u9632\u540e\u8fb9\u51fa\u73b0\u4e0d\u5fc5\u8981\u7684\u9519\u8bef<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/home\/pi\/Downloads\nwget https:\/\/github.com\/Itseez\/opencv\/archive\/3.4.0.zip \nwget https:\/\/github.com\/Itseez\/opencv_contrib\/archive\/3.4.0.zip\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u63a8\u8350\uff1a\u672c\u4eba\u5728\u6267\u884c\u8fd9\u4e2a\u547d\u4ee4\u8fc7\u7a0b\u4e2d\uff0c\u4e0b\u8f7d\u901f\u5ea6\u5f88\u6162\u5f88\u6162\uff08\u6bcf\u79d2\u51e0\u4e2akB\uff09\uff0c\u6545\u7528U\u76d8\u5c06\u8fd9\u4e2a\u6587\u4ef6\u4f20\u8f93\u5230\u6811\u8393\u6d3e\u7684<strong>\/home\/pi\/Downloads<\/strong>\u76ee\u5f55\u4e0b\u3002\u8fd9\u91cc\u63d0\u4f9b\u4e00\u4e2aOpencv-3.4.0\u7684\u767e\u5ea6\u4e91\u76d8\u5b89\u88c5\u5305\uff0c\u4f7f\u7528\u672c\u6559\u7a0b\u4e2a\u7684\u8bdd\u8fd8\u662f\u4f7f\u7528\u8fd9\u4e2a\u63d0\u4f9b\u7684a\u5b89\u88c5\u5305\u6700\u7a33\u59a5\u3002<a href=\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fpan.baidu.com%2Fs%2F1SbyUsTBI9ErWvTFTKQBlBg\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >\u767e\u5ea6\u7f51\u76d8\u94fe\u63a5<\/a>\uff0c\u63d0\u53d6\u7801\uff1a5b18<\/p><\/blockquote>\n\n\n\n<p>\u6ce8\u610f\uff1a\u5c06opencv-3.4.0.zip\u548copencv_contrib-3.4.0.zip\u90fd\u653e\u5728<strong>\/home\/pi\/Downloads<\/strong>\u76ee\u5f55\u4e0b\uff0c\u7136\u540e\u5728\u8be5\u76ee\u5f55\u4e0b\u89e3\u538b\u8fd9\u4e24\u4e2a\u538b\u7f29\u5305\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/home\/pi\/Downloads\nunzip opencv-3.4.0.zip\nunzip opencv_contrib-3.4.0.zip\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">5.\u8bbe\u7f6e\u7f16\u8bd1\u53c2\u6570<\/h2>\n\n\n\n<p><em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/home\/pi\/Downloads\/opencv-3.4.0\nmkdir build\ncd build\n<\/code><\/pre>\n\n\n\n<p>\u8bbe\u7f6eCMAKE\u53c2\u6570\uff0c\u6ce8\u610f\uff0c\u4e0b\u9762\u8fd9\u662f\u4e00\u884c\u547d\u4ee4\uff08\u5305\u62ec\u6700\u540e\u90a3\u4fe9\u70b9\u513f\uff0c\u8fd9\u91cc\u7684\u8def\u5f84\u90fd\u662f\u5728\u7cfb\u7edf\u4e2d\u4e00\u4e00\u5bf9\u5e94\u7684\uff09\uff0c\u9700\u8981\u8010\u5fc3\u7b49\u5f85\u5341\u51e0\u5206\u949f\u5de6\u53f3\uff1a<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>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\/Downloads\/opencv_contrib-3.4.0\/modules -D BUILD_EXAMPLES=ON -D WITH_LIBV4L=ON PYTHON3_EXECUTABLE=\/usr\/bin\/python3.5 PYTHON_INCLUDE_DIR=\/usr\/include\/python3.5 PYTHON_LIBRARY=\/usr\/lib\/arm-linux-gnueabihf\/libpython3.5m.so PYTHON3_NUMPY_INCLUDE_DIRS=\/usr\/lib\/python3\/site-packages\/numpy\/core\/include ..\n<\/code><\/pre>\n\n\n\n<p>\u6839\u636e\u4e0b\u56fe\u5224\u65ad\u4f60\u662f\u5426\u914d\u7f6e\u6210\u529f\u4e86CMAKE\u3002\u5982\u679c\u5931\u8d25\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u4e24\u4e2a\u538b\u7f29\u5305\u7684\u8def\u5f84\u6ca1\u6709\u4e25\u683c\u6309\u7167\u4e0a\u6587\u7684\u8981\u6c42\u3002\u5982\u679c\u6210\u529f\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u6700\u91cd\u8981\u7684\u7f16\u8bd1\u4e86\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-f28ea94d2f98ec9f.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1000\" alt=\"\"\/><\/figure>\n\n\n\n<p>CMAKE\u7ed3\u679c<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6.\u7f16\u8bd1<\/h2>\n\n\n\n<p>\u6700\u540e\u4e00\u6b65\uff0c\u4e5f\u662f\u6700\u91cd\u8981\u7684\u4e00\u6b65<\/p>\n\n\n\n<p>\u6574\u4e2a\u7f16\u8bd1\u8fc7\u7a0b\u5dee\u4e0d\u591a\u6301\u7eed\u4e94\u4e2a\u5c0f\u65f6\u5de6\u53f3\u3002\u672c\u4eba\u5728\u8fd9\u4e00\u6b65\u9047\u5230\u4e86\u4e24\u7c7b\u95ee\u9898\uff0c\u4e0b\u65b9\u4f1a\u63d0\u4f9b\u6bcf\u4e00\u7c7b\u95ee\u9898\u7684\u8be6\u7ec6\u89e3\u51b3\u6b65\u9aa4\uff0c\u5927\u5bb6\u53ea\u9700\u8981\u6309\u7167\u6211\u7684\u64cd\u4f5c\u6b65\u9aa4\u64cd\u4f5c\u5373\u53ef\u3002\u5176\u5b9e\u6574\u4f53\u7684\u601d\u8def\u5c31\u662f\u7f3a\u4ec0\u4e48\u8865\u4ec0\u4e48\uff0c\u6709\u7684\u5bfc\u5165\u8def\u5f84\u6709\u95ee\u9898\uff0c\u5c31\u5230\u62a5\u9519\u63d0\u793a\u7684\u8def\u5f84\u5f53\u4e2d\u53bb\u91cd\u65b0\u4fee\u6539\u8def\u5f84\uff0c\u4f9d\u6b21\u5f80\u590d\uff0c\u6700\u7ec8\u6210\u529f\u3002<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/home\/pi\/Downloads\/opencv-3.4.0\/build\nmake\n<\/code><\/pre>\n\n\n\n<p>\u5f00\u59cb\u6267\u884cmake\u7f16\u8bd1\u8fc7\u7a0b\uff0c\u754c\u9762\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-c0c4ef59ed0d9e97.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1000\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u5f00\u59cb\u7f16\u8bd1<\/p>\n\n\n\n<p>\u7f16\u8bd1\u4e24\u4e2a\u5c0f\u65f6\u540e\uff0c\u7f16\u8bd1\u8fdb\u5ea640%\uff0c\u754c\u9762\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-d06ae25f66cdf45b.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1000\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u7f16\u8bd1\u4e24\u5c0f\u65f6\u540e\u7684\u754c\u9762<\/p>\n\n\n\n<p>\u7b2c\u4e00\u5904\u9519\u8bef\uff1a\u5728\u7f16\u8bd1\u523087%\u7684\u65f6\u5019\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\uff1a<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~\/opencv_contrib\/modules\/xfeatures2d\/src\/boostdesc.cpp:673:20: fatal error:boostdesc_bgm.i: No such file or directory\n<\/code><\/pre>\n\n\n\n<p>\u6839\u636e\u9519\u8bef\u63d0\u793a\u53ef\u4ee5\u77e5\u9053\uff0c\u662f\u56e0\u4e3a\u5728\u8fd9\u4e2a~\/opencv_contrib\/modules\/xfeatures2d\/src\/\u8def\u5f84\u4e0b\u7684boostdesc.cpp\u627e\u4e0d\u5230boostdesc_bgm.i\u7684\u6e90\u7801\u3002\u6240\u4ee5\u7f3a\u4ec0\u4e48\u8865\u4ec0\u4e48\uff0c\u62f7\u8d1d\u6e90\u7801\u5e76\u751f\u6210\u540c\u540d\u6587\u4ef6\uff0c\u653e\u5728\u8fd9\u4e2a <strong>opencv_contrib\/modules\/xfeatures2d\/src\/<\/strong>\u8def\u5f84\u4e0b(\u4e0e\u62a5\u9519\u7684bootstdesc.cpp\u6587\u4ef6\u540c\u7ea7\u7684\u8def\u5f84)\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u603b\u5171\u7f3a\u4e86\u4ee5\u4e0b\u51e0\u4e2a\u6587\u4ef6\uff0c\u90fd\u9700\u8981\u62f7\u8d1d\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>boostdesc_bgm.i<br>boostdesc_bgm_bi.i<br>boostdesc_bgm_hd.i<br>boostdesc_lbgm.i<br>boostdesc_binboost_064.i<br>boostdesc_binboost_128.i<br>boostdesc_binboost_256.i<br>vgg_generated_120.i<br>vgg_generated_64.i<br>vgg_generated_80.i<br>vgg_generated_48.i<\/p><\/blockquote>\n\n\n\n<p>\u8fd9\u91cc\u4f5c\u8005\u5df2\u7ecf\u5c06\u8fd9\u4e9b\u6587\u4ef6\u5168\u90e8\u505a\u597d\u4e86\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e00\u4e2a<a href=\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fpan.baidu.com%2Fs%2F16fLOayPeuqlAKid2jWz1sQ\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >\u767e\u5ea6\u7f51\u76d8\u94fe\u63a5<\/a>\u3002\u63d0\u53d6\u7801\uff1a4ws6<br>\u5c06\u6240\u6709\u6587\u4ef6\u62f7\u8d1d\u5230\u51fa\u73b0\u9519\u8bef\u63d0\u793a\u7684\u8def\u5f84\u4e0b\uff1a<strong>opencv_contrib\/modules\/xfeatures2d\/src\/\u3002<\/strong>\u7136\u540e\u5728\u7f16\u8bd1\u5931\u8d25\u7684\u7a97\u53e3\u518d\u6b21\u6267\u884cmake\u547d\u4ee4\uff0c\u7ee7\u7eed\u5f00\u59cb\u7f16\u8bd1\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u5904\u9519\u8bef\uff1a\u572896%\u5904\u51fa\u73b0\u3002\u9519\u8bef\u63d0\u793a\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-6444559fa7231529.JPG?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\" alt=\"\"\/><\/figure>\n\n\n\n<p>machers.hpp\u5904\u7684\u9519\u8bef\u63d0\u793a<\/p>\n\n\n\n<p>\u63d0\u793a\u5728\/home\/pi\/Downloads\/opencv-3.4.0\/modules\/stitching\/include\/opencv\/stitching\/detail\u4e2d\u7684machers.hpp\u6587\u4ef6\u4e2d\u4e0d\u5b58\u5728\u201copencv2\/xfeatures2d\/cuda.hpp\u201d\u6587\u4ef6\uff0c\u539f\u56e0\u662f\u56e0\u4e3a\u8fd9\u4e2amachers.hpp\u6587\u4ef6\u4e2d\u6709\u4e00\u4e2a include opencv2\/xfeatures2d\/cuda.hpp\u7684\u5bfc\u5305\u8bed\u53e5\uff0c\u4f46\u662f\u5728\u8fd9\u4e2a\u6307\u5b9a\u7684\u8def\u5f84\u4e0b\u662f\u627e\u4e0d\u5230\u7684\uff0c\u5176\u5b9e\u8fd9\u4e2a\u6587\u4ef6\u5728\u662f\u5b58\u5728\u4e8e\u5176\u4ed6\u7684\u8def\u5f84\u4e0b\u7684\u3002cuda.hpp\u6587\u4ef6\u8def\u5f84\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-bc640ce3033f9fcf.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\" alt=\"\"\/><\/figure>\n\n\n\n<p>cuda.hpp\u6587\u4ef6\u8def\u5f84<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u53ea\u9700\u8981\u5c06cuda.hpp\u8fd9\u4e2a\u6587\u4ef6\u62f7\u8d1d\u5230\/home\/pi\/Downloads\/opencv-3.4.0\/modules\/stitching\/include\/opencv2\/stitching\/detail\uff08\u51fa\u73b0\u9519\u8bef\u7684\u6587\u4ef6\u7684\u540c\u7ea7\u8def\u5f84\u4e0b\uff0c\u8fd9\u91cc\u662fmachers.hpp\u7684\u8def\u5f84\u4e0b\uff0c<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-b5cbb2fe74a78f78.jpg?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u7c98\u8d34cuda.hpp\u6587\u4ef6\u5230\u62a5\u9519\u8def\u5f84<\/p>\n\n\n\n<p>\u7136\u540e\u5c06\u8fd9\u4e2amachers.hpp\u6587\u4ef6\u4e2d\u7684\u201cinclude opencv2\/xfeatures2d\/cuda.hpp\u201d\u7684\u8fd9\u4e2a\u5bfc\u5305\u8bed\u53e5\u4fee\u6539\u4e3ainclude cuda.hpp\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-349dbc64e5080136.png?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1095\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u4fee\u6539\u5bfc\u5305\u8bed\u53e5\u524d\u540e\u5bf9\u6bd4<\/p>\n\n\n\n<p>\u4f5c\u8005\u5728\u6267\u884c\u5b8c\u4e0a\u8ff0\u64cd\u4f5c\u540e\uff0c\u7ee7\u7eed\u6267\u884cmake\u65f6\uff0c\u53d1\u73b0\u540e\u8fb9\u8fd8\u6709\u4e00\u5904\u8fd9\u4e2a\u95ee\u9898\uff0c\u62a5\u9519\u5982\u4e0b\uff08\u4f5c\u8005\u5728\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u5171\u6709\u4e24\u4e2acuda.hpp\u6587\u4ef6\u7f3a\u5931\u7684\u95ee\u9898\uff0c\u89e3\u51b3\u65b9\u6cd5\u90fd\u662f\u76f8\u540c\u7684\uff0c\u4f5c\u8005\u5efa\u8bae\u8bfb\u8005\u4e00\u6b21\u6027\u5c06\u8fd9\u4e24\u6b65\u64cd\u4f5c\u6267\u884c\u5b8c\u518d\u7ee7\u7eed\u6267\u884cmake\u6307\u4ee4\u3002\u5f53\u7136\u89e3\u51b3\u5b8c\u7b2c\u4e00\u5904\u9519\u8bef\u540e\u518d\u6b21make\u65f6\u9047\u5230\u95ee\u9898\uff0c\u518d\u53bb\u4fee\u6539\u4e5f\u662f\u53ef\u4ee5\u7684\u3002\u7b2c\u4e8c\u5904\u9519\u8bef\u5982\u4e0b\uff1a\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-ff7733808df462fc.JPG?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\" alt=\"\"\/><\/figure>\n\n\n\n<p>precomp.hpp\u5904\u7684\u9519\u8bef\u63d0\u793a<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u518d\u6b21\u5c06cuda.hpp\u8fd9\u4e2a\u6587\u4ef6\u62f7\u8d1d\u5230\/home\/pi\/Downloads\/opencv-3.4.0\/build\/modules\/stitching\uff08\u51fa\u73b0\u9519\u8bef\u7684\u6587\u4ef6\u7684\u540c\u7ea7\u8def\u5f84\u4e0b\uff0c\u8fd9\u91cc\u662fprecomp.hpp\u7684\u8def\u5f84\u4e0b\uff0c\u7136\u540e\u5c06\u8fd9\u4e2aprecomps.hpp\u6587\u4ef6\u4e2d include opencv2\/xfeatures2d\/cuda.hpp\u7684\u8fd9\u4e2a\u5bfc\u5305\u8bed\u53e5\u4fee\u6539\u4e3ainclude cuda.hpp\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-623804835b69eccc.JPG?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u7c98\u8d34cuda.hpp\u5230\u6307\u5b9a\u8def\u5f84<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-75c2e672c476c52d.JPG?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u4fee\u6539\u5bfc\u5305\u8bed\u53e5<\/p>\n\n\n\n<p>\u7136\u540e\u6267\u884cmake\u6307\u4ee4\uff0c\u9759\u9759\u7b49\u5f85\u7f16\u8bd1\u3002\u6700\u7ec8\u7f16\u8bd1\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-68a136fbb5a22d01.JPG?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6210\u529f\u7f16\u8bd1\u5b8c\u6210<\/p>\n\n\n\n<p>make\u547d\u4ee4\u6267\u884c\u5b8c\u6210\u4e4b\u540e\uff0c\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo make install\n<\/code><\/pre>\n\n\n\n<p>\u6267\u884c\u5b8c\u8fd9\u4e2a\u547d\u4ee4\u7684\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-faa04abf330c68fb.JPG?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/1200\" alt=\"\"\/><\/figure>\n\n\n\n<p>sudo make install\u7ed3\u679c<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">7.\u5728Python3\u4e0a\u6d4b\u8bd5OpenCV<\/h2>\n\n\n\n<p>\u5b89\u88c5\u597d\u4e4b\u540e\uff0c\u9996\u5148\u5148\u6d4b\u8bd5opencv\u662f\u5426\u6210\u529f\u5b89\u88c5\uff0c\u6d4b\u8bd5\u6b65\u9aa4\u5982\u4e0b\uff1a<br>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165python3\uff0c\u56de\u8f66<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import cv2\n<\/code><\/pre>\n\n\n\n<p>\u56de\u8f66\uff0c\u5982\u6ca1\u6709\u62a5\u9519\uff0c\u7ee7\u7eed\u6267\u884c\u4e0b\u8ff0\u547d\u4ee4\uff1a<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cv2.__version__\n<\/code><\/pre>\n\n\n\n<p>\u56de\u8f66\uff0c\u7136\u540e\u663e\u793aopencv\u7684\u7248\u672c\u4fe1\u606f\uff0c\u6b64\u65f6\u8bf4\u660ePython3\u73af\u5883\u4e0b\u7684OpenCV\u5b89\u88c5\u6210\u529f\u3002\u9a8c\u8bc1\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/\/upload-images.jianshu.io\/upload_images\/13006129-71259a7cbce7ebbe.JPG?imageMogr2\/auto-orient\/strip|imageView2\/2\/w\/697\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6d4b\u8bd5\u8fc7\u7a0b<\/p>\n\n\n\n<p>\u606d\u559c\u4f60\uff01\uff01\uff01\u6b64\u65f6\u4f60\u5df2\u7ecf\u5b8c\u6210\u4e86Python3\u73af\u5883\u4e0b\u7684OpenCV\u5728\u6811\u8393\u6d3e\u4e0a\u7684\u6240\u6709\u5b89\u88c5\u8fc7\u7a0b\uff01\uff01<\/p>\n\n\n\n<p>\u4f5c\u8005\u6279\u6ce8\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u6211\u5728\u7f51\u4e0a\u770b\u4e86\u5f88\u591a\u6811\u8393\u6d3e\u5b89\u88c5opencv\u7684\u6559\u7a0b\uff0c\u4e5f\u6309\u7167\u4ed6\u4eec\u7684\u6559\u7a0b\u8fdb\u884c\u4e86\u5c1d\u8bd5\uff0c\u5728\u5c1d\u8bd5\u4e86\u4e09\u56db\u6b21\u5931\u8d25\u4e4b\u540e\u603b\u7ed3\u5982\u4e0b\uff1a\u6709\u7684\u6559\u7a0b\u9700\u8981\u914d\u7f6e\u865a\u62df\u73af\u5883\uff0c\u5c1d\u8bd5\u4e4b\u540e\u4e0d\u77e5\u4e3a\u4ec0\u4e48\u6ca1\u6709\u6210\u529f\uff0c\u6709\u7684\u8981\u4fee\u6539\u5185\u5b58\u5206\u914d\u7a7a\u95f4\uff0c\u7136\u540e\u4f7f\u7528\u6811\u8393\u6d3e\u7684\u56db\u4e2aCPU\u540c\u65f6\u8fdb\u884c\u7f16\u8bd1\uff0c\u4f46\u662f\u770b\u5230\u6709\u4eba\u8bf4\u8fd9\u79cd\u7f16\u8bd1\u65b9\u5f0f\u5bb9\u6613\u51fa\u73b0\u9519\u8bef\uff0c\u6545\u7b14\u8005\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u8001\u8001\u5b9e\u5b9e\u7684\u4f7f\u7528\u5355\u6838\u8fdb\u884c\u7f16\u8bd1\u3002\u770b\u5230\u8fd9\u4e48\u591a\u7684\u6559\u7a0b\u8fd9\u4e48\u591a\u7684\u5751\uff0c\u6211\u60f3\u901a\u8fc7\u8fd9\u7bc7\u6559\u7a0b\u8ba9\u6bcf\u4e00\u4e2a\u60f3\u8981\u4e0a\u624b\u7684\u4eba\u90fd\u80fd\u5feb\u901f\u5165\u95e8opencv\uff0c\u800c\u4e0d\u662f\u88ab\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7684\u5404\u79cd\u6545\u969c\u548c\u95ee\u9898\u5413\u5230\u9000\u7f29\u3002\u5927\u5bb6\u4e5f\u53ea\u9700\u8981\u6309\u7167\u6211\u7684\u8fd9\u4e00\u7bc7\u6559\u7a0b\u8fdb\u884c\u5b89\u88c5\u5c31\u53ef\u4ee5\u5b8c\u6210\u6574\u4e2a\u5b89\u88c5\u8fc7\u7a0b\uff0c\u4e0d\u9700\u8981\u518d\u53bb\u53c2\u8003\u5176\u4ed6\u7684\u6587\u7ae0\u4e86\uff0c\u6b22\u8fce\u5927\u5bb6\u5728\u8bc4\u8bba\u533a\u4e2d\u79ef\u6781\u63a2\u8ba8\uff0c\u559c\u6b22\u5c31\u70b9\u4e2a\u8d5e\uff0c\u8c22\u8c22<\/p><\/blockquote>\n\n\n\n<p>\u672c\u4eba\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53c2\u8003\u4e86\u5f88\u591a\u6587\u7ae0\uff0c\u4e3b\u8981\u53c2\u8003\u6587\u7ae0\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\"><a href=\"https:\/\/www.jianshu.com\/p\/56929416b4a1#!\/xh\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/www.jianshu.com\/p\/56929416b4a1#!\/xh<\/a><\/p>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\"><a href=\"https:\/\/blog.csdn.net\/qq_33475105\/article\/details\/82819850\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/blog.csdn.net\/qq_33475105\/article\/details\/82819850<\/a><\/p>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\"><a href=\"https:\/\/blog.csdn.net\/u011736771\/article\/details\/85960300\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/blog.csdn.net\/u011736771\/article\/details\/85960300<\/a><\/p>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\">\u4f5c\u8005\uff1a\u77e2\u91cc\u6602<br>\u94fe\u63a5\uff1ahttps:\/\/www.jianshu.com\/p\/fe21aceb2e95<br>\u6765\u6e90\uff1a\u7b80\u4e66<br>\u8457\u4f5c\u6743\u5f52\u4f5c\u8005\u6240\u6709\u3002\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u8054\u7cfb\u4f5c\u8005\u83b7\u5f97\u6388\u6743\uff0c\u975e\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u3002<\/p>\n<button class=\"simplefavorite-button\" data-postid=\"108\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u6811\u8393\u6d3e3B+\u7f16\u8bd1\u5b89\u88c5opencv 3.4.0 for Python3.5 and Python2 \u5b8c\u6574\u6559\u7a0b &#8211; \u7b80\u4e66 \u672c\u6587\u4ecb\u7ecd\u4e86\u5982 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=108"}],"version-history":[{"count":0,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/108\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}