天天看點

樹莓派運作opencv和caffe 配置Qt creator

如何讓樹莓派顯示中文:

http://shumeipai.nxez.com/2016/03/13/how-to-make-raspberry-pi-display-chinese.html

https://jingyan.baidu.com/article/456c463b5e2e4a0a583144fe.html

預設樹莓派沒有安裝vim,執行下面指令安裝之。

sudo apt-get install -y vim
           

安裝好之後就可以使用vi或者vim進行編輯操作,但是沒有代碼高亮顯示。

在~目錄下面建立.vimrc檔案可以實作

pi@raspberrypi ~ $ cd ~
pi@raspberrypi ~ $ vim .vimrc

set number
syntax on
set tabstop=
           

這樣就ok了。

Linux上vi(vim)編輯器使用教程:

http://shumeipai.nxez.com/2013/12/26/linux-on-vim-editor-tutorials.html#more-613

配置樹莓派交叉編譯平台:

http://shumeipai.nxez.com/2013/10/08/configure-cross-compiler-platform-raspberry-pi.html#more-417

視訊示範如何給樹莓派安裝攝像頭子產品:

http://shumeipai.nxez.com/2013/10/07/raspberry-pi-to-install-the-camera-module.html#more-410

給樹莓派挂載移動硬碟或U盤:

http://shumeipai.nxez.com/page/46

使用raspi-config配置樹莓派:

http://shumeipai.nxez.com/2013/09/07/raspi-config-configuration-raspberry-pie.html#more-159

樹莓派如何安全關機重新開機?

http://shumeipai.nxez.com/2013/08/25/raspberry-pi-how-to-safely-shutdown-restart.html

樹莓派2+OpenCV2.4.9環境搭建

http://blog.csdn.net/zx3517288/article/details/51706825

樹莓派(raspberry pi)學習4: 更改鍵盤布局

http://blog.csdn.net/c80486/article/details/8460271

樹莓派3B安裝QT creator

http://blog.csdn.net/coekjin/article/details/52049273

Qt creator開發opencv,參考:

http://blog.csdn.net/moses1994/article/details/44827425

在.pro檔案中添加如下配置檔案即可:

INCLUDEPATH += /usr/local/include/opencv\

/usr/local/include/opencv2\

/usr/local/include

LIBS += /usr/local/lib/libopencv_calib3d.so \

/usr/local/lib/libopencv_contrib.so\

/usr/local/lib/libopencv_core.so \

/usr/local/lib/libopencv_features2d.so \

/usr/local/lib/libopencv_flann.so \

/usr/local/lib/libopencv_gpu.so \

/usr/local/lib/libopencv_highgui.so \

/usr/local/lib/libopencv_imgproc.so \

/usr/local/lib/libopencv_legacy.so \

/usr/local/lib/libopencv_ml.so \

/usr/local/lib/libopencv_nonfree.so \

/usr/local/lib/libopencv_objdetect.so \

/usr/local/lib/libopencv_ocl.so \

/usr/local/lib/libopencv_photo.so \

/usr/local/lib/libopencv_stitching.so \

/usr/local/lib/libopencv_superres.so \

/usr/local/lib/libopencv_ts.a \

/usr/local/lib/libopencv_video.so \

/usr/local/lib/libopencv_videostab.so

以上的配置資訊可以通過指令:

pkg-config opencv –libs –cflags opencv >>opencv.config

列印出來,直接存入opencv.config,複制出來,調整格式即可。