Design of facial age and gender detection system based on CNN
The ResNet-50 model in Python is used as the backbone network for the facial age and gender detection system based on CNN,the original facial image collection is preprocessed on Wiki platform.An age prediction and gender judgment classi-fier is constructed as the output layer of the model network,and the mean square error and cross entropy loss function are used to predict and output the results of age and gender.An interactive interface of image,video and real-time camera recognition is built on front-end system used PyQt5,and OpenCV is used to annotate the face of each frame of images,videos,or camera readings.The predicted detection results of facial gender and age recognized by the model system are plotted and displayed as the image.