summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--face-detection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/face-detection.cpp b/face-detection.cpp
index e2962d7..25c33e6 100644
--- a/face-detection.cpp
+++ b/face-detection.cpp
@@ -29,7 +29,7 @@ int main(int argc, char **argv)
CvSeq* objects = cvHaarDetectObjects(small, cascade, storage, 1.1, 4, CV_HAAR_DO_CANNY_PRUNING);
cvReleaseImage(&small);
CvRect* r;
- for (int i = 0; i < (objects ? objects->total : 0); i++) {
+ for (int i = 0; i < (objects ? objects->total : 0); ++i) {
r = (CvRect*)cvGetSeqElem(objects, i);
cvRectangle(frame, cvPoint(r->x * 2, r->y * 2), cvPoint((r->x + r->width) * 2, (r->y + r->height) * 2), colors[i % 8], 2);
}
@@ -39,4 +39,4 @@ int main(int argc, char **argv)
cvDestroyWindow("Jason's Wonderful OpenCV Test");
cvReleaseCapture(&capture);
return 0;
-} \ No newline at end of file
+}