]> rtime.felk.cvut.cz Git - opencv.git/blobdiff - opencv/samples/c/peopledetect.cpp
fixed sample
[opencv.git] / opencv / samples / c / peopledetect.cpp
index b654104513be9dbf7126dcc67bcf581d025d7dfe..3c516ae08c862585254943b0efc2f2377fe24ad2 100644 (file)
@@ -22,7 +22,7 @@ int main(int argc, char** argv)
 
     if( img.data )
     {
-           strcpy(argv[1], _filename);
+           strcpy(_filename, argv[1]);
     }
     else
     {
@@ -64,6 +64,7 @@ int main(int argc, char** argv)
            // run the detector with default parameters. to get a higher hit-rate
            // (and more false alarms, respectively), decrease the hitThreshold and
            // groupThreshold (set groupThreshold to 0 to turn off the grouping completely).
+        int can = img.channels();
            hog.detectMultiScale(img, found, 0, Size(8,8), Size(32,32), 1.05, 2);
            t = (double)getTickCount() - t;
            printf("tdetection time = %gms\n", t*1000./cv::getTickFrequency());