int main(){
if ( !face_cc.load(xmlpath) )
{
cout << "load error!\n";
return -1;
}
ifstream pathin;
pathin.open("imgpath.txt");
string t;
while ( pathin >> t && tic < 10000)
{
Mat img = imread(t);
detect(img);
}
pathin.close();
return 0;
}
--------------------------------------分割线 --------------------------------------
Ubuntu Linux下安装OpenCV2.4.1所需包
CentOS下OpenCV无法读取视频文件
[翻译]Ubuntu 14.04, 13.10 下安装 OpenCV 2.4.9
--------------------------------------分割线 --------------------------------------