本文整理汇总了C++中Objects::display_output方法的典型用法代码示例。如果您正苦于以下问题:C++ Objects::display_output方法的具体用法?C++ Objects::display_output怎么用?C++ Objects::display_output使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Objects
的用法示例。
在下文中一共展示了Objects::display_output方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main( int argc, const char** argv )
{
double t = 0;
t = (double)cvGetTickCount(); //starting timer
Mat image1 = imread(argv[1],1);
Mat image;
resize(image1,image,Size(300,150),0,0,INTER_LINEAR); //resizing image to get best experimental results
Objects detectObjects; //creating a object
string checkcas = argv[2];
detectObjects.getimage(image); //get the image
detectObjects.setnum(); //set number of objects detected as 0
detectObjects.checkcascade_load(checkcas); //load the test cascade
//Applying various cascades for a finer search.
if(argc > 3)
{
for(int i = 3;i<argc;i++)
{
string cas = argv[i];
detectObjects.cascade_load(cas);
detectObjects.findObjects();
}
}
else
{
help();
cout << endl << "Please provide atleast one main cascade xml file" << endl;
}
t = (double)cvGetTickCount() - t; //stopping the timer
if(detectObjects.num!=0)
{
cout << endl << detectObjects.num << " Objects got detected in = " << t/((double)cvGetTickFrequency()*1000.) << " ms" << endl << endl;
}
else
{
cout << endl << "Objects not found" << endl;
}
detectObjects.display_output(); //displaying the final result
return 0;
}