to recognize sb without knowing them well
know sb by sight
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition