This paper presents an in-depth study of face detection, face feature extraction, and face classification from three important components of a high-capacity face recognition system for the treatment area of hospital and a study of a high-capacity real-time face retrieval and recognition algorithm for the treatment area of hospital based on a task scheduling model. Considering the real-time nature of our system, our face feature extraction network is modeled by DeepID, and the network is slightly improved by introducing a central loss verification signal to train a DeepID-like network model using central loss and use it to extract face features. To further investigate and optimize the schedulability analysis problem of the directed graph real-time task model, this paper proposes a rigorous and approximate response time analysis method for the directed graph real-time task model with an arbitrary time frame. Based on the theoretical results of the greatly additive algebra, it is shown that the coherent qualifying function is linearly periodic, i.e., the function can be represented by a finite nonperiodic part and an infinitely repeated periodic part, thus calculating the coherent qualifying function independent of the magnitude of the interval time. The algorithm for high-capacity real-time face retrieval and recognition in the treatment area of hospital based on the task scheduling model is further investigated, and a face database is established by using the PCA dimensionality reduction technique. Based on the internal architecture of the processor, image preprocessing and IP core packaging are implemented, and the hardware engineering of the high-capacity real-time face recognition system for hospital visits is built using the IP-based design concept. The performance tests of the face detection model and feature extraction network show that the face detection model has a significant reduction in false-positive rate, better fitting of border regression, and improved time performance. The face feature extraction network has no overfitting, and the features are highly discriminative with small feature extraction time consumption. The high-capacity real-time face recognition system for the treatment area of hospital combined with the optimized directed graph task scheduling model can approach 25 fps, which meets the real-time requirements, and the face recognition rate surpasses that of real people. It realizes the intelligence, self-help, and autonomy of medical services and satisfies the medical needs of users in all aspects.