0 .Build Enviroment
先下載OpenCV lib
官方網址: https://opencv.org/releases.html
進去下載好的lib資料夾
$ cd opencv
建立一個release資料夾
$ mkdir release
到release資料夾目錄
$ cd release
利用cmake設定makefile,將opencv預設安裝到/usr/local/
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..


CMakeLists.txt

main.cpp


秀出照片的基本功能完成了 。
Last updated
Was this helpful?