Image Recognition Using Edge Detection

简介: Image recognition is a popular technology that can detect, understand, and distinguish images from one another.

Law_of_Image_Recognition

Image recognition is a popular technology that can detect, understand, and distinguish images from one another. Technologies such as text recognition and facial recognition are all specific applications of image recognition.

01

How is it done?

Understanding the way we perceive objects and images has always been a hot topic for research. Researchers globally have observed that the human eye is very sensitive to the edges of an object. Typically, a person identifies an object by first determining the outline of the object and then processing this information in the visual cortex. Computer scientists have designed sophisticated image recognition systems by emulating the way we recognize images.

02

The example below is based on a paper by Adit Deshpande, a student at The University of California, titled A Beginner's Guide To Understanding Convolutional Neural Networks. In this paper, he introduces a simple algorithm as the basis of image recognition.

03

Unlike the human eye, a computer can only recognize images as numbers. The above image helps us understand the differences in image perception by a human and a computer. A computer will then perform "image recognition" techniques by determining a pattern from this large matrix of numbers.

Generally, in edge detection, we can convert the color information of every pixel into its grayscale value. To minimize interference, we can downsize the image (such as downsizing the image to 49x49 pixels), thus resulting in a 49x49 matrix.

We can then analyze the matrix section-by-section starting from the top left corner.

04

Next, we take some existing edge models, such as verticals, right angles, circles, acute angles and so on. The figure below shows a 7x7 matrix of an edge model and its corresponding visualized curve.

05

Observe how the value of the matrix is nonzero whenever the pixels overlap with the rounded curve.

Now that we have determined an edge filter, let us take it a step higher. The figure below shows a grayscale image of a mouse.

06

Take a section of the image starting from the upper-left corner and obtain its pixel representation. We can then convolve this matrix with the edge filter matrix.

07

The result is 6,600. What does this value indicate? Let's analyze a different section. Move the sampling matrix towards the head of the mouse and perform the same calculations.

08

Convolving the two matrices produces a value of 0.

By visual comparison, we can see that the resulting value is high if the edges of the sampled section and the edge filter closely match. Mathematically, the greater the value, the closer the images match.

In this example, we can conclude that the shape of the image in the first section is a rounded corner. We can determine the object of the image by matching different patterns for each section and ultimately collating the entire image.

Conclusion

Edge detection is a simple yet elegant solution to image detection. With the rapid advancements in computer vision, image recognition will undoubtedly be applied to increasingly complex and critical applications.

目录
相关文章
|
资源调度 算法 计算机视觉
GEE(Google Earth Engine)——Canny edge detection边缘探测(根据地物形状圈图)
GEE(Google Earth Engine)——Canny edge detection边缘探测(根据地物形状圈图)
214 0
GEE(Google Earth Engine)——Canny edge detection边缘探测(根据地物形状圈图)
|
10天前
|
开发者
查看edge浏览器插件的安装位置并将插件安装到别的浏览器
查看edge浏览器插件的安装位置并将插件安装到别的浏览器
18 1
|
7月前
|
CDN
什么是微软 Edge 浏览器 Tracking Prevention 的 Org Relationship Mitigation 策略
什么是微软 Edge 浏览器 Tracking Prevention 的 Org Relationship Mitigation 策略
71 0
|
6月前
|
Web App开发 前端开发 JavaScript
|
1月前
|
缓存 搜索推荐
【电脑知识】Edge浏览器的使用技巧(特别详细)
【电脑知识】Edge浏览器的使用技巧(特别详细)
51 0
|
7月前
|
存储 API
微软 Edge 浏览器 Tracking Prevention 的强制措施的一个例子
微软 Edge 浏览器 Tracking Prevention 的强制措施的一个例子
69 0
|
3月前
|
Python
使用selenium的edge浏览器登录某为
使用selenium的edge浏览器登录某为
28 0
|
3月前
解决selenium打开edge浏览器闪退问题
解决selenium打开edge浏览器闪退问题
73 1
|
3月前
|
Web App开发 JSON 前端开发
6款开发必备的Chrome谷歌浏览器扩展(部分火狐、edge浏览器商店也可以用)
6款开发必备的Chrome谷歌浏览器扩展(部分火狐、edge浏览器商店也可以用)
38 0
|
3月前
|
缓存 安全 搜索推荐
解决2023新版Edge浏览器页面加载不出来问题
解决2023新版Edge浏览器页面加载不出来问题
110 0