Using a test sample, the face-recognition algorithm is trained to detect gender and age of the visitors to the territory. The accuracy of this technology depends on the quality of the data processed, such as the shooting angle, the size of the face in the photo, photo quality, the lighting conditions, and people’s facial expressions.