Had a dog like that when I was a kid. My dad always used to grumble about "that stupid, blind dog".
It would do the same thing; running up and barking furiously at him until it got within 15-20 feet and literally come to a skidding stop with a, "Whoops! Sorry! Didn't recognize you..." look of mortification, before turning tail and running away from embarrassment
For whatever reason, it only did it with my dad (of the family members). With the rest of us, it would trot up, kind of squinting, then when it recognized us, it's ass would start wagging (rescue with a lopped tail. Looked like the mom was a Doberman, and the owner had it's tail lopped before realizing it wasn't purebred, and just abandoned it

).
Funny enough, it was my dad who rescued it (found the pup shivering in the rain, outside his office), but he was the only one it did the whole 'charge while barking until it got close' thing.