It's impossible to do with perfect accuracy, but that doesn't mean it isn't done.
Just ask the dad who was investigated for taking pictures of his toddler for the doctor: https://www.koffellaw.com/blog/google-ai-technology-flags-da...