Why does the hotel take photos of health codes?

Staying in a hotel and taking pictures at the front desk is face recognition. When you check in, you need to enter your identity information, verify your health code information and personal travel itinerary information, and then do face recognition on the program connected to the public security organ to verify whether the identity cards of the people are consistent. This is not the behavior of the hotel taking photos without permission. Passengers who check in must unconditionally cooperate with the registration of personal identity information.