https://docs.opencv.org/3.0-beta/modules/videoio/doc/reading_and_writing_video.html
上記のサイトでコードをコピペしてデバックしましたがエラーが出てきます。
右も左もわかりません
お手数ですが細かい教えていただけませんでしょうか?
C++
1#include "pch.h" 2#include <iostream> 3#include "opencv2/opencv.hpp" 4 5using namespace cv; 6 7int main(int, char**) 8{ 9 VideoCapture cap(0); // open the default camera 10 if (!cap.isOpened()) // check if we succeeded 11 return -1; 12 13 Mat edges; 14 namedWindow("edges", 1); 15 for (;;) 16 { 17 Mat frame; 18 cap >> frame; // get a new frame from camera 19 cvtColor(frame, edges, COLOR_BGR2GRAY); 20 GaussianBlur(edges, edges, Size(7, 7), 1.5, 1.5); 21 Canny(edges, edges, 0, 30, 3); 22 imshow("edges", edges); 23 if (waitKey(30) >= 0) break; 24 } 25 // the camera will be deinitialized automatically in VideoCapture destructor 26 return 0; 27}
エラーメッセージ
エラー LNK2001 外部シンボル ""void __cdecl cv::cvtColor(class cv::_InputArray const &,class cv::_OutputArray const &,int,int)" (?cvtColor@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@HH@Z)" は未解決です。 opencvdemo1 S:\opencvdtest\opencvdemo1\opencvdemo1\opencvdemo1.obj 1
その他3つ同じような外部シンボル~...は未解決です。というエラーです
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2019/07/12 01:33