Skip to content
Leith, Edinburgh, Scotland

AI and programming classes in Leith, Edinburgh

What are the best AI and programming classes for Leith learners?

Leith sits within the City of Edinburgh council area, home to about 512,700 people at Scotland's 2022 census. We could find no official count for Leith under that name, so we print none. Open postcode data lists North Leith, South Leith, Newhaven, Bonnington, Pilrig and Trinity in EH6, and Lochend and Restalrig in EH7. Modern Age Coders teaches AI, Python, programming and maths to learners aged six to 67 in live online lessons led from India, either individually or in classes of five to ten at the same level. We teach how a method works before using a library that hides it. There is no charge for the opening lesson, and it ends with the course we think fits. For Leith the project is computer vision: a program looks for the corners of 275 buildings and is marked against the 1,485 corners actually on the map. Ongoing lessons cost USD 100 monthly for a class or USD 150 monthly for a tutor of your own.

Before a computer can match two photos, track a moving object or stitch a panorama, it needs points it can find again. Corners are ideal. Along a plain wall, brightness changes in one direction only, so a small patch looks the same if you slide it along the edge. At a corner, brightness changes in two directions, and any slide changes the patch. Harris corner detection turns that observation into a score for every pixel, then keeps the peaks above a threshold. Two choices decide how well it works: where the threshold sits, and how fine the image is. This project measures both on a drawn map of Leith, where the true corners are known.

Facts last verified 30 September 2026. Teaching is online; no Leith branch is claimed.

Leith course picks

Leith courses: how to think, vibe coding, AI and Python

Four starting points by age, each with a live first lesson that costs nothing and asks for no card.

Browse the course atlas for more than one hundred options and use the coding roadmap to check prerequisites.

The four we are known for

Python, AI, vibe coding and agentic coding

These run underneath everything above. Every one is live and online, placed by ability rather than by age, and the first class is free.

Leith in open postcode data

Leith, Newhaven, Pilrig, Bonnington and Restalrig

The places recorded in EH6 and EH7, and the school system lessons fit around.

Places recorded by postcodes.io in two Edinburgh postcode districts
Postcode districtRecorded places
EH6Leith, North Leith, South Leith, Newhaven, Bonnington, Pilrig, Trinity
EH7Lochend, Restalrig

We quote a population only where an official body publishes one for exactly the place named, and for Leith we found none. Children in Leith are taught under the Curriculum for Excellence, so we ask for a P or S stage, not a year group, and we help with SQA Maths and Computing Science from National 5 through Higher to Advanced Higher. Share the Edinburgh holiday dates and we keep those weeks clear.

Edinburgh, Scotland and exam help

For the city as a whole see Edinburgh, and for the nation Scotland. SQA support is described on Advanced Higher Maths tuition, and our teaching approach on learn to think, not just use AI tools.

The Leith project

Finding 1,485 building corners with Harris corner detection

A map drawn as a picture, a detector run over it, and a mark out of 1,485.

The learner takes a 498 m square from OpenStreetMap, lying wholly inside the area the map outlines as Leith. It holds 275 complete building outlines with 3,102 points between them. A point counts as a true corner when the outline turns there by 30 degrees or more, which gives 1,485 corners once points within a metre of each other are merged. The program then draws the buildings as white shapes on a black picture and forgets the outlines. The detector sees only pixels. For each pixel it measures how fast brightness changes across and down, combines the two into a Harris score, and keeps the local peaks above a chosen share of the strongest score. A detection is right if a true corner lies within 2 m.

Changing the threshold at 0.5 m per pixel, our Python run on OpenStreetMap footprints
Threshold (share of strongest score)DetectionsPrecisionRecall
1%2,06154.1%85.0%
5%1,05397.2%82.0%
40%86099.8%69.3%
Changing the pixel size at a 5% threshold
Pixel sizeDetectionsPrecisionRecall
0.5 m1,05397.2%82.0%
1 m76587.8%55.5%
2 m45746.8%16.4%

Precision is the share of detections that are real corners; recall is the share of real corners that were found. At a 5% threshold the detector made 1,053 detections, 97.2% of them correct, and 82.0% of the true corners had a detection within 2 m. Drop the threshold to 1% and detections nearly double to 2,061, but recall only creeps up to 85.0% while precision collapses to 54.1%: almost all the extra detections are false. Raise it to 40% and nearly every detection is right, at the price of missing three corners in ten. Coarser pictures are worse on both counts. At 2 m per pixel the detector finds 16.4% of corners and fewer than half of its 457 detections are right; one pixel is then as wide as the whole 2 m matching tolerance. Recall can run ahead of the detection count because one detection may sit within 2 m of two close corners.

P5 to P7

Slide a small paper window over a drawn shape and sort each spot into flat, edge or corner.

S1 to S3

Draw the building picture in Python and count true corners from the outline angles.

S4 and up

Code the Harris score with NumPy, sweep the threshold and plot precision against recall.

Map data from OpenStreetMap, analysis by us

Building outlines come from OpenStreetMap and its contributors under the Open Database Licence. They are drawn by volunteers, so a real building may have corners the map leaves out. A clean drawing is also far easier than a photograph. These scores describe our exercise, not how the method performs on real images.

Vision, vibe coding and agents

From a corner finder to AI that sees

Modern vision models learn their own features, yet the same trade-offs remain.

What the Leith corner finder shows about AI systems
In the corner projectIn AI more widely
A 1% threshold doubled detections and halved precisionA confidence cut-off trades false alarms against misses
A 40% threshold was almost always right but missed three in tenHigh precision alone can hide poor coverage
Recall fell to 16.4% at 2 m pixelsLow-resolution input limits what any model can see
True corners came from the map outlinesScores mean nothing without trusted ground truth
A drawing is easier than a photoTest data must resemble real use

A vision library will return corners in one line, and an AI assistant will write that line for you without mentioning a threshold. In vibe coding, a person states what the program should do and an AI produces the code; Leith learners are taught to ask for the threshold and the pixel size as named settings, then measure what changing them does. That is the difference between using a tool and understanding it. AI agents that read screens, documents or camera feeds depend on the same kind of detector underneath. Building agents starts when a learner writes Python with confidence, often about S5 onwards, and our Copilot Studio agents course runs one-to-one only. See the AI agents course for UK students and understand the code, don't copy-paste.

OpenStreetMap, National Records of Scotland and postcodes.io are independent publishers of open data with no link to Modern Age Coders. We wrote the detector and the scoring, and errors in either are ours.

Routes

From shapes on paper to computer vision

A P or S stage suggests a band; the trial lesson confirms it.

P1 to P7

How to think

Shapes, rules and sorting things a computer could sort.

Problem Solving and Computational Thinking for KidsScratch Coding for Kids
P5 to S2

Vibe coding for kids

Games and apps built alongside an AI, with the learner in charge.

Vibe Coding for KidsPython and AI for Kids
S3 to S6

Python, AI and vision

Arrays, gradients and classifiers, in step with SQA Computing Science and Maths.

AI and Machine Learning for TeensPython for Teens
Adults

AI, vision and agents

Image processing, models and AI agents in Python.

Python MasterclassGenerative AI Course
Computer vision

How does a computer find corners in an image?

It looks for pixels where brightness changes strongly in two directions at once: Harris corner detection scores every pixel from the brightness gradients around it, and the peaks above a threshold are reported as corners, since an edge changes in one direction only and a flat area in none.

On a drawn map of 275 Leith buildings with 1,485 true corners, a 5% threshold at 0.5 m per pixel gave 97.2% precision and 82.0% recall; a 1% threshold cut precision to 54.1%, and 2 m pixels cut recall to 16.4%.

Learners who have moved that threshold themselves ask of any AI vision system: what was it tuned to avoid, false alarms or misses?

A Leith teenager who has scored a detector against known answers understands evaluation, the part of AI that matters most once models are easy to call. The longer argument is in why teenagers should still learn to code in 2026.

Format

Live lessons for Leith, Newhaven and Restalrig

You will need a computer with a working camera and an internet line that carries a video call.

The pupil does the coding

With the screen shared, the pupil writes and runs the program. The tutor questions and explains, and never takes over the keys.

Trial first

A free session tells us the level and whether an SQA course is in play.

Opening lesson free

It costs nothing and closes with a suggested course.

Classes of five to ten

Grouped by level, with classmates from across Britain.

Two sessions weekly

During the school term.

Your hour is fixed

Tutors shift with the UK clock changes so you never have to.

Why online

Matching five to ten people by level and free hour is hard inside one district and easy across a country. Video makes that possible.

Fees

Fees for Leith

Leith pays what every learner outside India pays: our international rates.

First classUSD 0

A whole lesson without charge, followed by course advice.

Group tuitionUSD 100

Eight or so live group lessons monthly.

Private tuitionUSD 150

Eight or so live one-to-one lessons monthly.

Prices are set in US dollars and we publish none in sterling. Nothing is charged until the trial is over and a course and time are agreed. The pricing page explains holiday breaks, missed lessons and changing between a class and a private tutor.

Reviews

What Edinburgh and UK learners wrote on Google

Rated 4.9 across 547 Google reviews. These are real reviews, reproduced as written.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

Free placement class

Reserve a free lesson in Leith

An age or school stage and one interest are enough. The trial may be a shape-sorting puzzle, a Scratch game made with an AI, a first Python program, or a look at how a computer finds corners.

+44

FAQ

Leith questions

Corner detection, the Leith project, vibe coding, agents and the practical side.

What is the population of Leith?

We found no official figure published for Leith under that name, so we give none. The City of Edinburgh council area had about 512,700 residents in the 2022 census.

Are there online AI and programming classes for Leith?

Yes. We teach live by video, for ages 6 to 67, in Leith, Newhaven, Pilrig, Bonnington, Restalrig and the rest of Edinburgh.

What is Harris corner detection?

A method that scores each pixel by how strongly brightness changes in two directions around it. High-scoring peaks are corners; edges and flat areas score low.

What is the difference between precision and recall?

Precision is how many of the things a detector reported were real. Recall is how many of the real things it reported. In the Leith project a 5% threshold gave 97.2% precision and 82.0% recall.

What is the Leith project?

A Python program draws 275 Leith buildings from open map data, runs a corner detector on the picture, and checks the result against 1,485 known corners.

How do you teach vibe coding?

The learner says what they want, an AI writes a draft, and the learner reads, tests and fixes it. Children start from about age eight.

When do learners build AI agents?

After they write Python with confidence, often about S5 onwards. The Copilot Studio agents course is one-to-one only.

Do you cover SQA Computing Science and Maths?

Yes, from National 5 to Advanced Higher. We work on understanding and make no promise about grades.

What do lessons cost?

The opening lesson is free. A class is USD 100 monthly and a private tutor USD 150 monthly.

Do you teach in the school holidays?

Not in the weeks you ask us to skip; send the dates and we plan round them.

Further afield

More pages across Scotland

Each page has a project of its own: Edinburgh, Musselburgh, Livingston and Dundee. The UK hub lists every other place.

Free classPriority demoCall us

Keep exploring Modern Age Coders

Related courses and guides

Learn more

Free resources

From the blog

Start here