diff --git a/3rdparty/stasm/stasm/stasm/src/facedet.cpp b/3rdparty/stasm/stasm/stasm/src/facedet.cpp index ca29b31..4b0aeda 100755 --- a/3rdparty/stasm/stasm/stasm/src/facedet.cpp +++ b/3rdparty/stasm/stasm/stasm/src/facedet.cpp @@ -143,6 +143,8 @@ static void DiscardMissizedFaces( } } +#if TRACE_IMAGES // will be 0 unless debugging (defined in stasm.h) + static void TraceFaces( // write image showing detected face rects const vec_DetPar& detpars, // in const Image& img, // in @@ -152,8 +154,6 @@ static void TraceFaces( // write image showing detected face rects (void) img; (void) path; -#if TRACE_IMAGES // will be 0 unless debugging (defined in stasm.h) - CImage cimg; cvtColor(img, cimg, CV_GRAY2BGR); // color image for (int iface = 0; iface < NSIZE(detpars); iface++) { @@ -173,9 +173,10 @@ static void TraceFaces( // write image showing detected face rects lprintf("%s\n", path); if (!cv::imwrite(path, cimg)) Err("Cannot write %s", path); -#endif } +#endif + void FaceDet::DetectFaces_( // call once per image to find all the faces const Image& img, // in: the image (grayscale) const char* imgpath, // in: used only for debugging @@ -184,7 +185,10 @@ void FaceDet::DetectFaces_( // call once per image to find all the faces void* user, // in: unused (match virt func signature) cv::CascadeClassifier cascade) { + (void) imgpath; + (void) user; DetectFaces(detpars_, img, minwidth, cascade); + DiscardMissizedFaces(detpars_); if (multiface) // order faces on increasing distance from left margin { diff --git a/3rdparty/stasm/stasm/stasm/src/misc.cpp b/3rdparty/stasm/stasm/stasm/src/misc.cpp index 3dfe63e..5e2cdb7 100755 --- a/3rdparty/stasm/stasm/stasm/src/misc.cpp +++ b/3rdparty/stasm/stasm/stasm/src/misc.cpp @@ -851,6 +851,8 @@ EYAW DegreesAsEyaw( // this determines what model is best for a given yaw double yaw, // in: yaw in degrees, negative if left facing int nmods) // in { + (void) yaw; + (void) nmods; #if MOD_3 || MOD_A || MOD_A_EMU // experimental versions CV_Assert(nmods == 3); if (yaw < -EYAW_TO_USE_DET45) diff --git a/3rdparty/stasm/stasm/stasm/src/startshape.cpp b/3rdparty/stasm/stasm/stasm/src/startshape.cpp index 864ebc3..c1d376d 100755 --- a/3rdparty/stasm/stasm/stasm/src/startshape.cpp +++ b/3rdparty/stasm/stasm/stasm/src/startshape.cpp @@ -410,6 +410,8 @@ static void TraceEyesMouth( Image& face_roi, // out: ROI around face, possibly rotated upright DetPar& detpar_roi) // out: detpar wrt to face_roi { + (void) face_roi; + (void) detpar_roi; #if TRACE_IMAGES // will be 0 unless debugging (defined in stasm.h) CImage cimg; cvtColor(face_roi, cimg, CV_GRAY2BGR); // color image