This is code in matlab for face detection