The invention provides a method for accurately and efficiently extracting a
human head ellipse and detecting a shielded human face. The method for extracting comprises the steps that a background frame collected, analyzed and processed to obtain statistic conditions met by a background, and the statistic conditions serve as criteria of subsequent background updating; a
frame difference method is utilized to adjust a binarization threshold value of a grey-scale image and remove the interference and the influence of the background, a
binary image containing a person is obtained, and a rectangle of an area where the head is located is found out by using a statistic rule met by a
human head curve and serves as a basis for subsequent
processing; through a self-adaptive
ellipse algorithm, the size and the position of the
ellipse are adjusted according to the set criteria, and the optimal ellipse meeting the conditions is found through circulation. According to the method, the timeliness and the accuracy rate of the background upgrading are high, the need for real-
time processing can be met, the basis for a subsequent head ellipse accurate extracting
algorithm is provided, the method can be applied to a
video processing and real-time
monitoring system, and the detection for the shielded human face can be applied to the
processing of ATM real-time monitoring videos, and used for the timely automatic alarming of suspicious situations.