当前位置:网站首页>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.
边栏推荐
- What does a software test report contain?
- leetcode-399:除法求值
- Can an inexperienced college graduate switch to software testing?my real case
- 最高月薪20K?平均薪资近万...在华为子公司工作是什么体验?
- Calculate S=a+aa+…+aa…a
- 基于FPGA的图像实时采集
- Unity界面总体介绍
- Interprocess communication study notes
- 软件测试基础接口测试-入门Jmeter,你要注意这些事
- Coldfusion file read holes (CVE - 2010-2861)
猜你喜欢
Drools WorkBench的简介与使用
Arbitrum 专访 | L2 Summer, 脱颖而出的 Arbitrum 为开发者带来了什么?
Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?
mmdetection trains a model related command
934. The Shortest Bridge
基于FPGA的售货机
pycharm cannot run after renaming (error: can't open file...No such file or directory)
完整复制虚拟机原理(云计算)
怎样做好一个创业公司CTO?
用户交互+格式化输出
随机推荐
The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]
Problems that need to be solved by the tcp framework
Arbitrum Interview | L2 Summer, what does the standout Arbitrum bring to developers?
Manchester City confuses fans with smart scarf that detects emotions
Drools规则属性,高级语法
真正的CTO,是一个懂产品的技术人
Path and the largest
成为比开发硬气的测试人,我都经历了什么?
Calculate S=a+aa+…+aa…a
C language applet -- common classic practice questions
Project development software directory structure specification
There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
Likou Daily Question - Day 46 - 704. Binary Search
FPGA-based vending machine
BAT卖不动「医疗云」:医院逃离、山头林立、行有行规
Real-time image acquisition based on FPGA
PDF 拆分/合并
mysql 视图
最高月薪20K?平均薪资近万...在华为子公司工作是什么体验?
vlan间路由+静态路由+NAT(PAT+静态NAT)综合实验