That's a somewhat different situation than the one in the article. In the article, the women were all in a public place, "exposed" to the view of anyone there. The photographer simply took advantage of that. In the articles I've read, there's no suggestion he was in an extremely odd position or behavior. Enough to call attention, yes, but not a hidden camera attached to his shoe. I'd certainly like to see more about exactly what he was doing, but I haven't found it in several accounts. It's akin to someone who takes hundreds of pictures of cheerleaders at a football game, and sorts through them to find the moments where their skirts are up. Certainly creepy, certainly "odd" -- but he's done nothing illegal according to this judge. (Nota bene: different judges may find a completely different ruling...)
The situation you describe is a little bit different. The creepy cousin went out of his way to set up a position and surreptitiously take the pictures.
There's certainly a boundary issue at the barest minimum -- and I bet it runs pretty deep in that family based on the described reaction. But the best defense, as it is so often, is to know the danger (in this case, an absolutely untrustworthy creepazoid cousin) and consciously prevent the opportunity.
Another situationA guy is walking down the street on a public sidewalk. He looks into a window, and stops, staying on the sidewalk, as a lovely young lady has decided to disrobe in front of the window. She's got no shades or blinds, isn't lingering or putting on a show, simply changing clothes -- but he's getting an eyeful. When she's done, she glances out the window and freaks out. Cops are called, and make contact with the guy. Has he broken the law?
Nope. He was in a public place, and he saw something that was essentially in public view. In Virginia, the
laws against peeping include elements of trespass and furtiveness. Mr. Hypothetical here is in a public place, where he has every right to be, and did nothing furtive or to enhance his view. Had he entered her property, or climbed a tree to improve his view -- things might be different.
One side note: "public" place does not, in a legal sense, mean what some think it does. Even though it's private property, your front lawn is a public space; there's nothing to prevent people from seeing and observing activities there. Back yards are often similarly considered "public" if people beyond the residents are there. like when you're holding a cookout. As described, the porch in your student's case was likely a "public" space.