I've done it on a whim a few times, but never followed up. I would make some sort of eye contact or glance from a distance, then wave at them. Acknowledging that I see them looking at me. Usually they wave back.

I'm going to put it to the test this week.