当前位置:网站首页>The Sad History of Image Processing Technology
The Sad History of Image Processing Technology
2022-07-31 02:11:00 【IT Geek Gang】
Back in the 1980s, you were an algorithm engineer and your boss asked you to write a program to recognize the graph below.
After thinking hard, you finally found the Harris corner detection algorithm, which judges the shape of the graph by detecting the number of corners.
As can be seen from the above figure, the detection process is to use a detection operator (also known as a filter kernel, which is essentially a matrix) to slide on the image, and the detection operator and the image do the inner product operation during the sliding process:
Although the principle is simple, the design of this filter core is not so easy, which requires experienced scientists to design it through long-term research experiments.
In the 1990s, your boss heard that machine learning was very popular, and wanted to be trendy, hoping that you could use machine learning to implement this graph classification task.
After thinking hard, you quickly came up with the implementation plan:
1 Collect a large number of graphic pictures, 80% for training, 20% for verification
2 Design multiple binary classifiers (logistic regression),Each classifier is only used for the recognition of one kind of pattern

2 First use Harris corner detector to extract corner features
3 Expand the feature matrix into a one-dimensional vector and send it to the machine learning algorithm
Although the task is completed, it still needs to rely on corner detectors and needs to train multiple classification models.
The millennium is fast approaching, the word neural network is spreading all over the streets, and your boss has eyes wide open, hoping you can use neural networks for graph classification tasks.
You pondered, and soon came up with a plan, or extract features with the help of corner detectors, and then input the features into the neural network: 
But you have been devastated by the boss and become more and more disgusted with the corner detector, because you are worried that one day, if the graphics are replaced with other shapes, the corner detector will not work, so you make up your mind to changedrop it.
After much thinking, you finally have an idea: 
Still follow the previous design idea, but the input layer is no longer the corner feature extracted by the corner detector, but the image matrix, because you know, according to the universal approximation theorem, even if there is only one hidden layer of the neural networkArbitrary complex functions can also be simulated, and you trust neural networks to automatically extract features.
In addition, the output layer is no longer a single logistic regression, but a Softmax multi-classifier: 
Although the task is completed, you find that this method depends on the position of the image in the image, and it no longer has the so-called translation invariance. For example, if the graphics in our training dataset are all in the center of the image, ifTake a picture with a graph in the upper left corner to verify, the model classification is not accurate.
Time flies, and soon it is the 21st century. Thanks to the development of hardware, convolutional neural networks are popular in the CV field. Although your boss is in his late years, he is still ambitious. I hope you can use it.Convolutional Neural Networks implement image classification tasks.
You think about the few remaining hairs, and finally come up with a plan: 
Compared with artificial neural network, convolutional neural network has fewer parameters and faster speed. Because the convolution kernel slides on the image, the entire image shares the convolution kernel parameters, which has translation invariance, which is more important.Yes, the parameters of the convolution kernel no longer require the prior knowledge of experts, but are learned by the model itself through the training process.
The time has come to 2022, and you will soon reach the age of retirement. After years of hard work, your image classification software has been able to work very well, but no matter how you change the model, adjust the parameters, and add data, the accuracy of the model is not enough.With only a small improvement, after a lot of thought, you finally come up with a solution, and you want to give your boss one last surprise.
Your solution is to apply the Transformer technology, which was originally developed in the field of natural language, to the field of computer vision. We call it ViT. The core idea is to focus on the parts that are important to the task through the self-attention mechanism.or slightly less important parts.
By looking at the feature maps during training, we find that the model pays more attention to task-relevant foreground parts and ignores task-irrelevant background parts.
You have finally retired. The sad history of being squeezed by your boss is also the history of the development of image processing technology.
边栏推荐
- Software Testing Defect Reporting - Definition, Composition, Defect Lifecycle, Defect Tracking Post-Production Process, Defect Tracking Process, Purpose of Defect Tracking, Defect Management Tools
- cudaMemcpy学习笔记
- After reading "MySQL Database Advanced Practice" (SQL Xiao Xuzhu)
- LeetCode 1161 最大层内元素和[BFS 二叉树] HERODING的LeetCode之路
- MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输
- 【微信小程序】一文带你了解数据绑定、事件绑定以及事件传参、数据同步
- mysql 索引
- Interprocess communication study notes
- C语言小程序 -- 常见经典练习题
- 如何在 go 程序中暴露 Prometheus 指标
猜你喜欢

The final exam first year course

What does a software test report contain?

What level of software testing does it take to get a 9K job?

静态路由+PAT+静态NAT(讲解+实验)

Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?

最大路径和

vlan间路由+静态路由+NAT(PAT+静态NAT)综合实验

tcp框架需要解决的问题

1. Non-type template parameters 2. Specialization of templates 3. Explanation of inheritance

Can an inexperienced college graduate switch to software testing?my real case
随机推荐
Gateway routing configuration
Charging effect simulation
力扣刷题之爬楼梯(7/30)
二层广播风暴(产生原因+判断+解决)
Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?
leetcode-952:按公因数计算最大组件大小
AI中的数学思想
Fiddler抓包模拟弱网络环境测试
Observer mode (1)
Simple confession page
Arbitrum 专访 | L2 Summer, 脱颖而出的 Arbitrum 为开发者带来了什么?
Nacos
C language applet -- common classic practice questions
221. Largest Square
[WeChat applet] This article takes you to understand data binding, event binding, event parameter transfer, and data synchronization
验证整数输入
什么是理想的大学生活?
基于opencv实现人脸检测
What are the project management tools like MS Project
MySQL installation tutorial (detailed, package teaching package~)