modify facedetect.cpp