O'Reilly logo

Arduino Computer Vision Programming by Giray Yıllıkçı, Özen Özkaya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Gradients and edge detection

We will talk about edge detectors in this section. We will look at the following edge detection algorithms: Canny, Laplacian of Gaussian (LoG), and Sobel. We will discuss each of these operators in detail in this section and give OpenCV examples to observe the effects of these operators on an image.

Edge detection is very important in image processing as were the methods we covered earlier in this chapter. By finding edges, lines, and corners we are able to make reasoning to the foreground and background of the image we are processing. After finding and enhancing the boundaries of an image, we can apply detection and recognition algorithms, as we will see in the next few chapters.

The Canny edge detector

Let's introduce ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required