[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
七星論壇 • openCV 3.0 --> openCV 4.0 程式開發轉換問題
1 頁 (共 1 頁)

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

發表於 : 2018-12-14, 17:19
inho
#==== 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) ;