Follow KDKA-TV: Facebook | Twitter

BUFFALO TOWNSHIP (KDKA) — A Butler man is accused of hiding a webcam in his friend’s home without her knowledge.

READ MORE: Doctors Encourage Pittsburghers To Follow CDC Guidelines During Event-Filled Weekend

Derek Krallman, 29, of Butler is accused of setting up a camera to spy on the victim undressing.

KDKA’s Amy Wadas knocked on Krallman’s door Monday afternoon. His mom answered. She said Krallman wasn’t home.

About a week and a half ago, police said Krallman set up the hidden web cam and computer in the victim’s bedroom without her consent at her home on Howes Run Road in Buffalo Township.

The next day, police say, the victim’s child saw the laptop next to the bed. The web cam was on the dresser directed at an area where the victim would change clothes.

READ MORE: North Allegheny High School Graduate A Semifinalist In 2021 Breakthrough Junior Challenge

In the criminal complaint, police said the victim contacted Krallman and asked him why he did what he did. He responded by saying he did it out of stupidity.

The victim told police she and Krallman are just friends, and she allowed him in her home at the time of the alleged crime.

Last week, police obtained a search warrant and found four videos on the camera. Police said they saw Krallman in the first video as if he was testing the camera and the angle to capture the victim in the room changing. The second video captures the victim changing her clothes.

Krallman is charged with four counts of invasion of privacy.

MORE NEWS: After Pa. Liquor Stores Introduce 2-Bottle Limit On Some Alcohol, Bar Owners Hope To Keep Shelves Full

His preliminary hearing is scheduled for next month.