A man who secretly filmed more than 50 videos of schoolgirls without their knowledge has been jailed for almost nine years.
Gary McGorm used a camera hidden in a bag to record the young girls.
The 52-year-old followed them in restaurants, on public transport and while walking in the street.
Police later found a diary detailing his crimes as well as a mannequin dressed like a schoolgirl at his home in Dumbarton, Dunbartonshire.
On Tuesday, McGorm pleaded guilty to a breach of the peace as well as acting in a threatening manner.
The charges spanned between June 2011 and February this year.
McGorm will be sentenced in August.
He was caught after staff at a Taco Bell restaurant in Glasgow’s Sauchiehall Street were suspicious of him.
McGorm had a bag with a square cut out as a camera lens tracked two girls sitting nearby.
He then followed the pair out before staff alerted police. McGorm was soon stopped.
Prosecutor Mark Allan told Glasgow Sheriff Court: “Officers observed a silver camera contained within an open shoebox inside the green carrier bag.
“The camera had 51 videos which featured female pupils being covertly filmed on streets, in fast food restaurants and on public transport.
“Those filmed were all school children in uniform.”
Mr Allan then explained other discoveries at McGorm’s home.
He went on: “A further 11 images of a mannequin dressed in a white shirt, grey skirt and a variation of socks or tights were recovered from a digital camera as was the mannequin itself.”
A diary, with what appeared to be a school motto on the front, then revealed details of other similar incidents.
These included at Glasgow’s Central Station, on a train to Edinburgh and at a Subway restaurant.
Judith Reid, defending, said: “He accepts there was a significant sexual element.”
Sheriff Stuart Reid remanded McGorm in custody as sentencing was deferred for reports.
STV News is now on WhatsApp
Get all the latest news from around the countryFollow STV News
Follow STV News on WhatsApp
Scan the QR code on your mobile device for all the latest news from around the country