当前位置:网站首页>[vernacular technology] QR code
[vernacular technology] QR code
2022-06-23 20:03:00 【Yuankeng Hao】
Last article , I have written “ How to customize a QR code with a background ”. For QR code , Tell the truth , I don't know the principle behind it . Just like everyone , I only know that it is used for sweeping . One thing you may know more than others is , I know the reason why scanning can jump out some content , Because these contents are stored in the QR code . But there are still some doubts in my heart :
- How did the QR code come from ?
- How to store things with QR code ?
Today I will tell you about these two points , I just learned it recently .
QR code history
I believe you are familiar with one-dimensional codes , Bar code . On the packing bags of various commodities , Will bring a bar code . When shopping in the supermarket , Using a special instrument to scan the bar code, you can enter the purchased goods . The reason why you can enter , It is because the commodity number is stored in the one-dimensional code .
With the rapid development of economy , People find that one-dimensional codes can store only a limited amount of content , It can only store 30 Letters or numbers . It's enough for the commodity , But for web sites , It's not enough . and , One dimensional codes also occupy a large space . Although it is one-dimensional , But to ensure the scanning speed , You need to stretch one dimension . I don't know if you have any such experience , Sometimes goods can't be swept out , Just level the bar code a little .
Since one dimension is not enough , Smart people think of adding a dimension , That is, two-dimensional . There are many types of QR codes : Stacked / Row by row 、 Matrix, etc , Just take a simple look :
Different types of QR codes are coded differently , There are many kinds of . Interested students can search by themselves . The two-dimensional code we often use today is :QR Code( Quick response code ), It's in 1994 Born in Toyota, Japan (Toyota) A subsidiary that produces auto parts Denso-Wave. It can store 7000 Multiple numbers 、4000 Multiple letters 、900 Multiple Chinese characters ( Enough for one article 800 Word composition ), It can be seen that the amount of information is several orders of magnitude larger than the one-dimensional code .
At home , QR code first emerged in the payment industry , I.e. code scanning payment . And then , QR code is widely used to store identity information , For example, the official account. 、 Applet 、 Video number, etc . Today to see , Two dimensional code has been widely used ,“ scan ” It has become an easy to understand word .
Two dimensional code principle
Next , Let's briefly talk about how QR codes store content . Reference link :https://www.pudn.com/news/628f83e1bf399b7f351ebf7d.html.
QR code can store contents , The key lies in two points :
- Define the graphic area , Standardize the role of each area
- Encode the information to be stored , Save to the data area of the QR code
Let's first look at the various areas of the QR code , Here's the picture :
QR code passed Three boundary points delineate the range of the QR code picture . Why not four ? Because the QR code is a rectangle , Three points can delineate the range , Save more information in the saved area .
After the area is demarcated , Encode the information to be stored , Turn into 01 Byte stream , Then it is stored in blocks in the data area of the QR code . As shown in the figure below :
Final ,0 It means blank ,1 It means black dot , It forms the black and white pattern in the two-dimensional code . Code scanning time , Read the information from the QR code data area according to the same standard , After decoding, the information stored in the two-dimensional code can be obtained . What is used APP After reading the information , Proceed to the next step according to the information type , For example, read the web address , Jump to the corresponding page .
summary
Today is the first time to use vernacular speaking technology , There may be some unclear points , Welcome to leave a message and make suggestions . Come on , With all of you .
The article was first published in “ Yuankeng HAOSI trace ” official account , Welcome to your attention , Learn more about yuankeng Hao's thoughts .
边栏推荐
- 直播分享| 腾讯云 MongoDB 智能诊断及性能优化实践
- Real topic of the 13th National Competition of single chip microcomputer in the Blue Bridge Cup
- Chaos engineering, learn about it
- 区块哈希竞猜游戏系统开发(dapp)
- SAVE: 软件分析验证和测试平台
- 打新债有何要求 打新债安全吗
- 好用的人事管理软件有哪些?人事管理系统软件排名!
- 【Golang】快速复习指南QuickReview(三)——map
- How to install SSL certificates in Microsoft Exchange 2010
- GL Studio 5 installation and experience
猜你喜欢

直播分享| 腾讯云 MongoDB 智能诊断及性能优化实践

What are the useful personnel management software? Personnel management system software ranking!

How to use the low code platform of the Internet of things for process management?

Technology sharing | wvp+zlmediakit realizes streaming playback of camera gb28181

Real topic of the 13th National Competition of single chip microcomputer in the Blue Bridge Cup

硬件开发笔记(六): 硬件开发基本流程,制作一个USB转RS232的模块(五):创建USB封装库并关联原理图元器件

金九银十,靠这个细节,offer拿到手软!

SQL联合查询(内联、左联、右联、全联)的语法

Tupu software digital twin intelligent water service, breaking through the development dilemma of sponge City

八大误区,逐个击破(终篇):云难以扩展、定制性差,还会让管理员失去控制权?
随机推荐
Logstash start -r parameter
Development notes of wedding studio applet based on wechat applet
深入理解和把握数字经济的基本特征
What conditions do you need to meet to fight new debts? Is it safe to fight new debts
打新债有何要求 打新债安全吗
为什么你的数据图谱分析图上只显示一个值?
I came from a major, so I didn't want to outsource
Idea console displays Chinese garbled code
官宣.NET 7 预览版5
20省市公布元宇宙路线图
After the collapse of UST, will the stable currency market pattern usher in new opportunities?
Save: software analysis, verification and test platform
Robust extraction of specific signals with time structure (Part 2)
Online text entity extraction capability helps applications analyze massive text data
「开源摘星计划」Containerd拉取Harbor中的私有镜像,云原生进阶必备技能
打新债有条件吗 打新债安全吗
【Golang】快速复习指南QuickReview(一)——字符串string
How to install SSL certificates in Microsoft Exchange 2010
实现vscode写markdown文档+图片自动上传至腾讯云cos
力扣每日一练之字符串Day6