http://cvwww.ee.ous.ac.jp/oc20inst.html
インストール方法から簡単なサンプルコードまで載っていて、モチベーションを上げるにはもってこいでした。
自分が使っているのはVer.2.1だったので、少しだけ修正して動作確認。
これだけでwebカメラから読み込み、描画しているんだから凄い!
#include
#include
#pragma comment(lib, "cv210d.lib")
#pragma comment(lib, "cxcore210d.lib")
#pragma comment(lib, "highgui210d.lib")
int main(void)
{
cv::VideoCapture cap(0);
if(cap.isOpened() == false) return 1;
while(1){
cv::Mat frame;
cap >> frame;
cv::imshow("Test" , frame);
if(cv::waitKey(33) >= 0) break;
}
return 0;
}