I haven't worn a hat in roughly six months. Tonight I put on an older, somewhat dirty hat that had been stored in a bag near my front entrance. Within about an hour, I received an advertisement for a robotic hat-cleaning device. I didn't take any photos or intentionally search for anything related to hats, so I'm wondering whether my phone or its front camera somehow recognized what I was wearing, or whether this was just an unsettling coincidence.
2 Answers
Your device can technically process some information locally, but that doesn’t mean it was scanning your face or hat. Ads are often selected from broad audience categories and recent online activity, including activity you may not realize is connected across apps and websites. You can review camera permissions, reset your advertising ID, disable personalized ads, and clear activity or tracking settings if you want to reduce this kind of targeting.
This is almost certainly a coincidence rather than your front camera identifying the hat. Phones and apps can use data such as browsing activity, searches, location, purchases, demographic profiles, and activity from websites with tracking tools to target ads. They generally don’t need to continuously analyze your camera feed to make surprisingly relevant guesses. Check the app’s camera permissions if you’re concerned, but one ad by itself isn’t evidence that the camera was used.
A lot of the targeting happens through prediction. Advertisers may have inferred that someone in your area or your general interest group could be interested in cleaning or clothing products, and the timing made it feel connected.

It’s understandable that the timing feels creepy, but an ad appearing shortly after an unrelated event is still very weak evidence of surveillance. Coincidences stand out much more than all the irrelevant ads we usually ignore.