US Customs does this in Tampa when we return on a cruise ship. Very painless. Only works for those with passports thou.
Apparently that data is shared around the world. When I traveled to Europe recently, I boarded planes without ID or boarding pass. They identified you as you boarded by facial recognition. When I returned home, I opted into TSA touchless, as obviously they already have my biometrics. And there are already several private companies scraping facial recognition IDs from numerous sources, and almost everyone has been swept up already. At this point, privacy is a fantasy.