Face detection is an important fundamental problem in computer vision, and it is a key step for future applications such as face analysis, face verification, face labeling and retrieval. With the development of image processing and deep learning, face detection and recognition have been widely used in all aspects of life, so face detection technology has put forward higher requirements. In practice, the image acquired in face detection is greatly affected by the environment, the image is fuzzy and contains noise, and there are some difficulties in detection. In this paper, based on the MTCNN face detection algorithm to solve the above problems, first of all, the image using SRGAN ultra-high resolution restoration technology to image clearness processing, make the face clearer, more convenient detection. In order to better process the feature map, the InceptionV2 module was introduced to optimize the network structure of MTCNN. It further improves the accuracy of face detection in complex background. The training was validated on WIDER FACE and CelebA datasets. The final accuracy of the optimized algorithm can reach 98.8%, 2.4% higher than that of the unoptimized network, which better meets the application requirements of modern society for face detection.