📚 Course contents

AI & Computer Vision, lesson 7 of 52

Filters, Thresholds & Edges: Classic Computer Vision

beginner20 min readFull course

Introduction

Long before AI, computer vision worked with plain arithmetic on pixels, and those tricks still do half the work in every modern system. Today you'll blur, sharpen, threshold and trace edges, then chain them into a pipeline that pulls the white lines off a football pitch.

By the end of this lesson you'll be able to:

  • Blur an image with a Gaussian filter and explain why blur helps before other steps
  • Sharpen an image with a kernel and describe what a kernel does
  • Turn a grayscale image into black and white with a fixed, an Otsu and an adaptive threshold
  • Find edges with the Canny detector and tune its two thresholds
  • Clean a mask with erosion, dilation, opening and closing
  • Combine these steps into a short pipeline that pulls out the pitch lines
Filters, Thresholds & Edges: Classic Computer Vision