mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-20 12:55:15 +08:00
Vadim
This commit is contained in:
@@ -19,19 +19,6 @@ static const char* keys =
|
||||
"{@start_frame |0| Start frame }"
|
||||
"{@bounding_frame |0,0,0,0| Initial bounding frame}"};
|
||||
|
||||
static void listTrackers(){
|
||||
vector<String> algorithms;
|
||||
Algorithm::getList(algorithms);
|
||||
cout << "\nAvailable tracker algorithms:\n";
|
||||
for (size_t i=0; i < algorithms.size(); i++){
|
||||
const char* algoname=algorithms[i].c_str();
|
||||
char *pos=NULL;
|
||||
if((pos=strstr((char*)algoname,"TRACKER."))!=NULL){
|
||||
printf("%s\n",pos+8);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void onMouse( int event, int x, int y, int, void* )
|
||||
{
|
||||
if( !selectObject )
|
||||
@@ -78,7 +65,6 @@ static void help()
|
||||
cout << "\n\nHot keys: \n"
|
||||
"\tq - quit the program\n"
|
||||
"\tp - pause video\n";
|
||||
listTrackers();
|
||||
}
|
||||
|
||||
int main( int argc, char** argv ){
|
||||
|
Reference in New Issue
Block a user