Fixed bug, that save weights-file for each iteration

This commit is contained in:
AlexeyAB
2018-03-16 14:58:21 +03:00
parent 371f21171a
commit 164ba34279
4 changed files with 9 additions and 9 deletions

View File

@ -143,6 +143,7 @@ void demo(char *cfgfile, char *weightfile, float thresh, int cam_index, const ch
printf("video file: %s\n", filename);
cap = cvCaptureFromFile(filename);
}else{
printf("Webcam index: %d\n", cam_index);
cap = cvCaptureFromCAM(cam_index);
}