Ubuntu18.04中安装opencv

安装python

Ubuntu18.04中已经有了python3的版本,所以不用安装。

安装pip3,执行命令sudo apt install python3-pip

安装依赖项

安装libopencv-dev依赖包,运行命令 sudo apt install libopencv-dev,在出现的选项中输入y继续执行就行。


安装opencv-python库

因为系统中已经安装了python3和pip3,所以运行sudo pip3 install opencv-python命令就行


成功之后,运行python3,进入编译界面,导入库查看版本


扫码向博主提问

去开通我的Chat快问

lupengcsdn

非学,无以致疑;非问,无以广识
<!-- !empty($pre_next_article[0]) -->
    </div>
(".MathJax").remove();




    MathJax.Hub.Config({
            "HTML-CSS": {
                    linebreaks: { automatic: true, width: "94%container" },
                    imageFont: null
            },
            tex2jax: {
                preview: "none"
            },
            mml2jax: {
                preview: 'none'
            }
    });



    (function(){
        var btnReadmore =
(".MathJax").remove();    MathJax.Hub.Config({            "HTML-CSS": {                    linebreaks: { automatic: true, width: "94%container" },                    imageFont: null            },            tex2jax: {                preview: "none"            },            mml2jax: {                preview: 'none'            }    });    (function(){        var btnReadmore =
("#btn-readmore"); if(btnReadmore.length>0){ var winH = (window).height();vararticleBox= ( w i n d o w ) . h e i g h t ( ) ; v a r a r t i c l e B o x = ("div.article_content"); var artH = articleBox.height(); if(artH > winH*2){ articleBox.css({ 'height':winH*2+'px', 'overflow':'hidden' }) btnReadmore.click(function(){ articleBox.removeAttr("style"); $(this).parent().remove(); }) }else{ btnReadmore.parent().remove(); } } })()
想对作者说点什么? 我来说一句
从前端到后台,开发一个完整功能的小程序

微信开发 | wanghui_777
农村有一宝,可解决痔疮,可惜很少人知道! 柚子生物 · 顶新
var width = $("div.recommend-box").outerWidth() - 48; NEWS_FEED({ w: width, h: 90, showid: 'Afihld', placeholderId: 'a_d_feed_0', inject: 'define', define: { imagePosition: 'left', imageBorderRadius: 0, imageWidth: 120, imageHeight: 90, imageFill: 'clip', displayImage: true, displayTitle: true, titleFontSize: 20, titleFontColor: '#333', titleFontFamily: 'Microsoft Yahei', titleFontWeight: 'bold', titlePaddingTop: 0, titlePaddingRight: 0, titlePaddingBottom: 10, titlePaddingLeft: 16, displayDesc: true, descFontSize: 14, descPaddingLeft: 14, descFontColor: '#6b6b6b', descFontFamily: 'Microsoft Yahei', paddingTop: 0, paddingRight: 0, paddingBottom: 0, paddingLeft: 0, backgroundColor: '#fff', hoverColor: '#ca0c16' } })
scrolling="no">
# 安装依赖 (…

zichen7055 zichen7055

2018-06-13 11:01:26

阅读数:10

id="iframeu3394176_0" src="https://pos.baidu.com/ccxm?conwid=800&conhei=100&rdid=3394176&dc=3&di=u3394176&dri=0&dis=0&dai=7&ps=4744x346&enu=encoding&dcb=___adblockplus&dtm=HTML_POST&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1531184852124&ti=Ubuntu18.04%E4%B8%AD%E5%AE%89%E8%A3%85opencv%20-%20CSDN%E5%8D%9A%E5%AE%A2&ari=2&dbv=0&drs=3&pcs=1908x853&pss=1908x4817&cfv=0&cpl=0&chi=2&cce=true&cec=UTF-8&tlm=1531184852&prot=2&rw=853&ltu=https%3A%2F%2Fblog.csdn.net%2FlupengCSDN%2Farticle%2Fdetails%2F80397000&ecd=1&uc=1920x988&pis=-1x-1&sr=1920x1080&tcn=1531184852&qn=f9ea1af9c21b8517&tt=1531184851852.517.517.517" vspace="0" hspace="0" scrolling="no" width="800" height="100" align="center,center">

没有更多推荐了,返回首页

("a.flexible-btn").click(function(){ ("a.flexible-btn").click(function(){ (this).parents('div.aside-box').removeClass('flexible-box'); $(this).remove(); })

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值