A Swedish court cleared a former police officer of sexual molestation when he explained he was trying to scratch an itch, not masturbate in front of a woman.

The woman accused the man of masturbating in front of her on four occasions in November 2012 as she passed his house on her way to gather her children from school, Swedish news agency TT reported Friday.

She said he exposed himself while inside his house standing in front of a window and appeared to play with himself. The woman's lawyer presented two items of video evidence of the incidents, recorded by the woman's husband, TT reported.

The man explained to the Vaxjo district court he often walked around naked at home and he only touched himself to relieve a troublesome itch.

The court cleared the man of any wrongdoing, finding no proof his actions were directed at the woman, TT reported.