openCV 3.0 --> openCV 4.0 程式開發轉換問題

提供 openCV 4.0 C++ 程式設計相關技術與問題探討
回覆文章
inho
文章: 69
註冊時間: 2017-12-08, 23:00

openCV 3.0 --> openCV 4.0 程式開發轉換問題

文章 inho » 2018-12-14, 17:19

#==== openCV 3.0 (C )
#include <opencv2/opencv.hpp>
cvNamedWindow("openCV Video Capture Window",CV_WINDOW_AUTOSIZE) ;
frame = cvDecodeImage(&cvmat, 1) ;
cvShowImage("openCV Video Capture Window", frame) ;

#==== openCV 4.0 (C++)
#include <opencv2/highgui.hpp>
namedWindow("openCV Video Capture Window",WINDOW_AUTOSIZE) ;
frame = cvDecodeImage(&cvmat, 1) ;
cvShowImage("openCV Video Capture Window", frame) ;

回覆文章