A Mansfield pervert is facing jail after collecting almost a million images of children on his computers.
Thomas Leonard, of Eaton Court, Mansfield, climbed onto rooftops, filmed a teenager sunbathing, and climbed onto a wheelie bin to film another youngster, Nottingham Crown Court was told.
When police checked his computers, they found 950,000 images of girls, thousands of which were child porn.
In some cases, the 34-year-old had doctored the photographs to add his own image onto them.
He admitted trespassing with intent to commit a sexual offence this July in New Ollerton, three counts of voyeurism between 2013 and 2015 and exposing himself in public last July.
Leonard had previously admitted sexual activity with a child, not directly linked to these allegations.
He had been warned in 2009 for sexually assaulting a 12-year-old girl. He exposed her stomach when he lifted her top as she lay on a bed and kissed her.
The case has been adjourned until October 30 for reports to be prepared on Leonard, however, he has been warned he faces jail.