multithreading facedetector