You need a program that uses face detection. The sample video provides the goals in the project.
As illustrated in the following figure, three persons' faces are automatically detected by intelligent program, and each face is grouped by a square box with different colors.
Under each square box has a number which can indicate the number order of the person or serve as a tracking ID of the person appearing in the current frame.