opencv + QT

 

 

 树莓派不支持opencv4:

对于树莓派4b,本文所述opencv-python3.4.6版本管用 opencv-python3.5.7版本不行

pip3 uninstall opencv-python

pip3 install opencv-python==3.4.6.27

 

ubuntu18.04安装opencv3.4

https://www.cnblogs.com/tsfh/p/8729578.html

https://github.com/opencv/opencv/tree/3.4  github of opencv 

 

ubuntu安装opencv4

https://blog.csdn.net/weixin_44003563/article/details/90404745

 

 

ubuntu18.04安装QT5.15

https://blog.csdn.net/LOVEmy134611/article/details/107191786?biz_id=102&utm_term=ubuntu%2018.04LTS%20install%20qt&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-0-107191786&spm=1018.2118.3001.4187

 

sudo apt-get install qtbase5-gev-tools qtcreator qt5-doc qt5-doc-html qtbase5-examples

error

 

using qt in nx

https://www.cnblogs.com/nxopen2018/p/12770835.html

 

install qt in nx

sudo apt-get install qtbase5-gev-tools qtcreator qt5-doc qt5-doc-html qtbase5-examples

qmake -version

 

qt5 QWidget: No such file or directory #include <QWidget> 

add tow rows in .pro file

    1. QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
之所以这样加,是国为看了一下官方的Qt5的Demo,发现里面有这样一句
 
去tools下面的bin目录,./qtcreator即可打开(none)
 
qmake build .pro file

qmake -o Makefile_pro SerialPort.pro

QT Unknown module(s) in QT: serialport解决方法

sudo apt-get install libqt5serialport5 sudo apt-get install libqt5serialport5-dev

 

qmake build .pro

https://www.cnblogs.com/findumars/p/7486428.html

 

 

posted on 2020-07-31 20:01  努力学习的小黑  阅读(365)  评论(0)    收藏  举报