[go: up one dir, main page]

CN105335771B - Quick Response Code generates display methods and device - Google Patents

Quick Response Code generates display methods and device Download PDF

Info

Publication number
CN105335771B
CN105335771B CN201510770675.9A CN201510770675A CN105335771B CN 105335771 B CN105335771 B CN 105335771B CN 201510770675 A CN201510770675 A CN 201510770675A CN 105335771 B CN105335771 B CN 105335771B
Authority
CN
China
Prior art keywords
code
dimensional code
display
quick response
dimensional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510770675.9A
Other languages
Chinese (zh)
Other versions
CN105335771A (en
Inventor
王云华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201510770675.9A priority Critical patent/CN105335771B/en
Publication of CN105335771A publication Critical patent/CN105335771A/en
Priority to PCT/CN2016/084357 priority patent/WO2017080190A1/en
Application granted granted Critical
Publication of CN105335771B publication Critical patent/CN105335771B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种二维码生成显示方法,该方法包括:接收二维码显示指令,并根据所述二维码显示指令获取特征字符码;根据预设的二维码显示区域和显示灰阶,获取所述特征字符码的显示参数;获取原始二维码的数据信息,根据所述原始二维码的数据信息、所述特征字符码和所述显示参数生成目标二维码;显示所述生成的目标二维码。本发明还公开了一种二维码生成显示装置。本发明增强了二维码的辨识度,实现了用户在扫描二维码时能够预先获知二维码的含义,辨别不同的二维码,提升了用户体验。

The invention discloses a method for generating and displaying a two-dimensional code. The method includes: receiving a two-dimensional code display instruction, and obtaining a characteristic character code according to the two-dimensional code display instruction; step, obtaining the display parameters of the characteristic character code; obtaining the data information of the original two-dimensional code, generating a target two-dimensional code according to the data information of the original two-dimensional code, the characteristic character code and the display parameters; displaying the Describe the generated target QR code. The invention also discloses a two-dimensional code generation and display device. The invention enhances the recognition degree of the two-dimensional code, realizes that the user can know the meaning of the two-dimensional code in advance when scanning the two-dimensional code, distinguishes different two-dimensional codes, and improves the user experience.

Description

二维码生成显示方法和装置Method and device for generating and displaying two-dimensional code

技术领域technical field

本发明涉及二维码技术领域,尤其涉及一种二维码生成显示方法和装置。The invention relates to the technical field of two-dimensional codes, in particular to a method and device for generating and displaying two-dimensional codes.

背景技术Background technique

二维码相较传统条形码具有信息容量大、成本低和易制作等优点,随着信息技术的快速发展,二维码得到了快速发展。作为信息交换、传递的介质,二维码的应用也愈加广泛。Compared with the traditional barcode, the two-dimensional code has the advantages of large information capacity, low cost and easy production. With the rapid development of information technology, the two-dimensional code has been developed rapidly. As a medium for information exchange and transmission, the application of QR codes is becoming more and more extensive.

智能电视上二维码的出现,更是给人们的生活带来了巨大的便利。用户只需要扫一扫智能电视上的二维码,就可以下载智能电视的应用程序、快速链接到应用网址和电视购物等,操作简单快捷。The emergence of QR codes on smart TVs has brought great convenience to people's lives. Users only need to scan the QR code on the smart TV to download the smart TV application, quickly link to the application website and TV shopping, etc., the operation is simple and fast.

然而,由于二维码是使用一些0、1的黑白像素图案生成的一堆看似杂乱的黑白,因此导致智能电视创建的二维码图标比较单调,用户无法通过视觉分辨不同应用的二维码。当智能电视生成、显示多个二维码时,例如:二维码A链接视频网站Youtube,二维码B链接视频网站Iqiyi,此时,若用户需要获取视频网站Iqiyi的连接,但是由于无法用肉眼区分二维码A和二维码B,用户需要依次扫描屏幕上显示的二维码,直至获取到视频网站Iqiyi的连接。However, because the QR code is a bunch of seemingly messy black and white pixels generated by using some black and white pixel patterns of 0 and 1, the QR code icon created by the smart TV is relatively monotonous, and users cannot visually distinguish the QR codes of different applications. . When the smart TV generates and displays multiple QR codes, for example: QR code A links to the video website Youtube, QR code B links to the video website Iqiyi, at this time, if the user needs to obtain the connection of the video website Iqiyi, but cannot use To distinguish QR code A from QR code B with naked eyes, users need to scan the QR codes displayed on the screen in sequence until they get a link to the video website Iqiyi.

智能电视创建的二维码由于低辨识度,导致用户无法在扫描前判别不同的二维码,获知二维码的含义,容易扫描到错误的二维码,或者需要用户重复的扫描屏幕上显示的二维码,直至获取需要的网页或应用。二维码的显示不够清楚易分辨,浪费了用户的时间,严重影响用户体验。Due to the low recognition of the QR codes created by smart TVs, users cannot distinguish between different QR codes before scanning, and know the meaning of the QR codes. It is easy to scan the wrong QR code, or the user needs to scan repeatedly to display on the screen. QR code until the desired web page or application is obtained. The display of the QR code is not clear and easy to distinguish, which wastes the user's time and seriously affects the user experience.

发明内容Contents of the invention

本发明的主要目的在于提供一种二维码生成显示方法和装置,旨在解决二维码辨识度低的技术问题。The main purpose of the present invention is to provide a method and device for generating and displaying two-dimensional codes, aiming at solving the technical problem of low recognition of two-dimensional codes.

为实现上述目的,本发明提供一种二维码生成显示方法,所述二维码生成显示方法包括以下步骤:In order to achieve the above object, the present invention provides a method for generating and displaying a two-dimensional code, the method for generating and displaying a two-dimensional code includes the following steps:

接收二维码显示指令,并根据所述二维码显示指令获取特征字符码;receiving a two-dimensional code display instruction, and obtaining a characteristic character code according to the two-dimensional code display instruction;

根据预设的二维码显示区域和显示灰阶,获取所述特征字符码的显示参数;Acquiring the display parameters of the characteristic character code according to the preset two-dimensional code display area and display gray scale;

获取原始二维码的数据信息,根据所述原始二维码的数据信息、所述特征字符码和所述显示参数生成目标二维码;Obtain the data information of the original two-dimensional code, and generate a target two-dimensional code according to the data information of the original two-dimensional code, the characteristic character code and the display parameters;

显示所述生成的目标二维码。Display the generated target QR code.

优选的,所述特征字符码的显示参数包括所述特征字符码的显示尺寸和增益颜色,所述根据预设的二维码显示区域和显示灰阶,获取所述特征字符码的显示参数的步骤包括:Preferably, the display parameters of the characteristic character code include the display size and gain color of the characteristic character code, and the display parameters of the characteristic character code are obtained according to the preset two-dimensional code display area and display gray scale. Steps include:

根据预设的二维码显示区域,获取所述特征字符码的显示尺寸;Obtain the display size of the characteristic character code according to the preset two-dimensional code display area;

根据预设的显示灰阶,获取所述特征字符码的增益颜色。Acquire the gain color of the characteristic character code according to the preset display gray scale.

优选的,所述根据预设的二维码显示区域,获取所述特征字符码的显示尺寸的步骤包括:Preferably, the step of obtaining the display size of the characteristic character code according to the preset two-dimensional code display area includes:

根据预设的二维码显示区域,获取所述二维码显示区域的水平尺寸;Obtain the horizontal size of the two-dimensional code display area according to the preset two-dimensional code display area;

根据所述二维码显示区域的水平尺寸,获取所述特征字符码的放大倍数;Acquiring the magnification factor of the characteristic character code according to the horizontal size of the two-dimensional code display area;

根据所述特征字符码的放大倍数放大所述特征字符码的初始尺寸,得到所述特征字符码的显示尺寸。Enlarging the initial size of the characteristic character code according to the magnification factor of the characteristic character code to obtain the display size of the characteristic character code.

优选的,所述根据预设的显示灰阶,获取所述特征字符码的增益颜色的步骤包括:Preferably, the step of obtaining the gain color of the characteristic character code according to the preset display gray scale includes:

将预设的显示灰阶进行灰阶值等分,得到等分的灰阶值;Divide the preset display gray scale into equal gray scale values to obtain equal gray scale values;

获取所述每等分灰阶值的随机灰阶值;Obtaining the random grayscale value of each equal division grayscale value;

根据所述获取的随机灰阶值,得到所述特征字符码的增益颜色。According to the obtained random gray scale value, the gain color of the characteristic character code is obtained.

优选的,所述原始二维码的数据信息包括原始二维码的定位图案位置、版本信息、数据码和纠错码,所述获取原始二维码的数据信息,根据所述原始二维码的数据信息、所述特征字符码和所述显示参数生成目标二维码的步骤包括:Preferably, the data information of the original two-dimensional code includes the positioning pattern position of the original two-dimensional code, version information, data code and error correction code, and the data information of the original two-dimensional code is acquired according to the original two-dimensional code The step of generating the target two-dimension code of the data information, the characteristic character code and the display parameters includes:

获取原始二维码的数据信息,根据所述纠错码校正所述数据码,获取校正后的数据码;Obtain the data information of the original two-dimensional code, correct the data code according to the error correction code, and obtain the corrected data code;

根据所述校正后的数据码,获取第二纠错码;Obtaining a second error correction code according to the corrected data code;

根据所述原始二维码的定位图案位置和版本信息、所述校正后的数据码、所述第二纠错码、所述特征字符码和所述显示参数,创建目标二维码;Create a target two-dimensional code according to the positioning pattern position and version information of the original two-dimensional code, the corrected data code, the second error correction code, the characteristic character code and the display parameters;

根据所述第二纠错码,校正所述创建的二维码,生成目标二维码。Correcting the created two-dimensional code according to the second error correction code to generate a target two-dimensional code.

此外,为实现上述目的,本发明还提供一种二维码生成显示装置,所述二维码生成显示装置包括:In addition, in order to achieve the above purpose, the present invention also provides a two-dimensional code generation and display device, the two-dimensional code generation and display device includes:

接收模块,用于接收二维码显示指令,并根据所述二维码显示指令获取特征字符码;A receiving module, configured to receive a two-dimensional code display instruction, and obtain a characteristic character code according to the two-dimensional code display instruction;

参数模块,用于根据预设的二维码显示区域和显示灰阶,获取所述特征字符码的显示参数;A parameter module, used to obtain the display parameters of the characteristic character code according to the preset two-dimensional code display area and display gray scale;

创建模块,用于获取原始二维码,根据所述原始二维码、所述特征字符码和所述显示参数生成目标二维码;Create a module for obtaining an original two-dimensional code, and generate a target two-dimensional code according to the original two-dimensional code, the characteristic character code and the display parameters;

显示模块,用于显示所述生成的目标二维码。A display module, configured to display the generated target two-dimensional code.

优选的,所述特征字符码的显示参数包括所述特征字符码的显示尺寸和增益颜色,所述参数模块包括:Preferably, the display parameters of the characteristic character code include the display size and gain color of the characteristic character code, and the parameter module includes:

尺寸单元,用于根据预设的二维码显示区域,获取所述特征字符码的显示尺寸;A size unit, used to obtain the display size of the characteristic character code according to the preset two-dimensional code display area;

增益单元,用于根据预设的显示灰阶,获取所述特征字符码的增益颜色。The gain unit is configured to acquire the gain color of the feature character code according to a preset display gray scale.

优选的,所述尺寸单元包括:Preferably, the size units include:

获取子单元,用于根据预设的二维码显示区域,获取所述二维码显示区域的水平尺寸;An acquisition subunit, configured to acquire the horizontal size of the two-dimensional code display area according to the preset two-dimensional code display area;

倍数子单元,用于根据所述二维码显示区域的水平尺寸,获取所述特征字符码的放大倍数;A multiplier subunit, used to obtain the magnification of the characteristic character code according to the horizontal size of the two-dimensional code display area;

放大子单元,用于根据所述特征字符码的放大倍数放大所述特征字符码的初始尺寸,得到所述特征字符码的显示尺寸。The enlarging subunit is configured to amplify the initial size of the characteristic character code according to the magnification factor of the characteristic character code to obtain the display size of the characteristic character code.

优选的,所述增益单元包括:Preferably, the gain unit includes:

等分子单元,用于将预设的显示灰阶进行灰阶值等分,得到等分的灰阶值;The equal molecular unit is used to divide the preset display gray scale into equal gray scale values to obtain equally divided gray scale values;

随机子单元,用于获取所述每等分灰阶值的随机灰阶值;a random subunit, configured to obtain a random gray-scale value for each equally divided gray-scale value;

增益子单元,用于根据所述获取的随机灰阶值,得到所述特征字符码的增益颜色。The gain subunit is configured to obtain the gain color of the characteristic character code according to the obtained random gray scale value.

优选的,所述原始二维码的数据信息包括原始二维码的定位图案位置、版本信息、数据码和纠错码,所述创建模块包括:Preferably, the data information of the original two-dimensional code includes the positioning pattern position, version information, data code and error correction code of the original two-dimensional code, and the creation module includes:

纠错单元,用于获取原始二维码的数据信息,根据所述纠错码校正所述数据码,获取校正后的数据码;an error correction unit, configured to obtain data information of the original two-dimensional code, correct the data code according to the error correction code, and obtain a corrected data code;

获取单元,用于根据所述校正后的数据码,获取第二纠错码;an acquisition unit, configured to acquire a second error correction code according to the corrected data code;

创建单元,用于根据所述原始二维码的定位图案位置和版本信息、所述校正后的数据码、所述第二纠错码、所述特征字符码和所述显示参数,创建目标二维码;A creating unit, configured to create target 2 according to the positioning pattern position and version information of the original two-dimensional code, the corrected data code, the second error correction code, the characteristic character code and the display parameters QR code;

校正单元,用于根据所述第二纠错码,校正所述创建的二维码,生成目标二维码。A correction unit, configured to correct the created two-dimensional code according to the second error correction code to generate a target two-dimensional code.

本发明提出的一种二维码生成显示方法和装置,电视系统通过接收二维码显示指令,并根据二维码显示指令获取对应的特征字符码;根据预设的二维码显示区域和显示灰阶,获取特征字符码的显示参数;然后,获取原始二维码的数据信息,根据原始二维码的数据信息、特征字符码和显示参数生成目标二维码,由特征字符码标识生成的不同二维码;然后按预设的规则显示生成的目标二维码,使用户能够迅速的分辨不同二维码。本发明增强了二维码的辨识度,实现了用户在扫描二维码时能够预先获知二维码的含义,辨别不同的二维码,提升了用户体验。A two-dimensional code generation and display method and device proposed by the present invention, the TV system receives the two-dimensional code display instruction, and obtains the corresponding characteristic character code according to the two-dimensional code display instruction; according to the preset two-dimensional code display area and display Gray scale, obtain the display parameters of the characteristic character code; then, obtain the data information of the original two-dimensional code, generate the target two-dimensional code according to the data information of the original two-dimensional code, characteristic character code and display parameters, and identify the generated by the characteristic character code Different QR codes; then display the generated target QR codes according to preset rules, so that users can quickly distinguish different QR codes. The invention enhances the recognition degree of the two-dimensional code, realizes that the user can know the meaning of the two-dimensional code in advance when scanning the two-dimensional code, distinguishes different two-dimensional codes, and improves the user experience.

附图说明Description of drawings

图1为本发明二维码生成显示方法第一实施例的流程示意图;FIG. 1 is a schematic flow diagram of the first embodiment of the method for generating and displaying a two-dimensional code of the present invention;

图2为本发明实施例中二维码掩膜方案示意图;2 is a schematic diagram of a two-dimensional code mask scheme in an embodiment of the present invention;

图3为本发明二维码生成显示方法第二实施例的流程示意图;FIG. 3 is a schematic flowchart of a second embodiment of the method for generating and displaying a two-dimensional code of the present invention;

图4为本发明二维码生成显示方法第三实施例的流程示意图;FIG. 4 is a schematic flowchart of a third embodiment of the method for generating and displaying a two-dimensional code of the present invention;

图5为本发明二维码生成显示方法第四实施例的流程示意图;FIG. 5 is a schematic flowchart of a fourth embodiment of a method for generating and displaying a two-dimensional code according to the present invention;

图6为本发明二维码生成显示方法第五实施例的流程示意图;6 is a schematic flowchart of a fifth embodiment of the method for generating and displaying a two-dimensional code of the present invention;

图7为本发明实施例中目标二维码效果示意图;Fig. 7 is a schematic diagram of the effect of the target two-dimensional code in the embodiment of the present invention;

图8为本发明二维码生成显示装置第一实施例的功能模块示意图;FIG. 8 is a schematic diagram of the functional modules of the first embodiment of the two-dimensional code generation and display device of the present invention;

图9为本发明二维码生成显示装置第二实施例的功能模块示意图;9 is a schematic diagram of the functional modules of the second embodiment of the two-dimensional code generation and display device of the present invention;

图10为本发明二维码生成显示装置第三实施例的功能模块示意图;FIG. 10 is a schematic diagram of the functional modules of the third embodiment of the two-dimensional code generation and display device of the present invention;

图11为本发明二维码生成显示装置第四实施例的功能模块示意图;FIG. 11 is a schematic diagram of the functional modules of the fourth embodiment of the two-dimensional code generation and display device of the present invention;

图12为本发明二维码生成显示装置第五实施例的功能模块示意图。FIG. 12 is a schematic diagram of the functional modules of the fifth embodiment of the device for generating and displaying two-dimensional codes of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例的主要解决方案是:接收二维码显示指令,并根据所述二维码显示指令获取特征字符码;根据预设的二维码显示区域和显示灰阶,获取所述特征字符码的显示参数;获取原始二维码的数据信息,根据所述原始二维码的数据信息、所述特征字符码和所述显示参数生成目标二维码;显示所述生成的目标二维码。The main solution of the embodiment of the present invention is: receive a two-dimensional code display instruction, and obtain the characteristic character code according to the two-dimensional code display instruction; obtain the characteristic character code according to the preset two-dimensional code display area and display gray scale The display parameters of the code; the data information of the original two-dimensional code is obtained, and the target two-dimensional code is generated according to the data information of the original two-dimensional code, the characteristic character code and the display parameters; the generated target two-dimensional code is displayed .

由于现有技术智能电视生成的二维码辨识度低,用户无法在扫描前判别不同的二维码,获知二维码的含义,容易扫描到错误的二维码,或者需要用户重复的扫描智能电视屏幕上显示的二维码,直至获取需要的网页或应用。浪费了用户的时间,严重影响用户体验。Due to the low recognition of the two-dimensional codes generated by smart TVs in the prior art, users cannot distinguish between different two-dimensional codes before scanning, and know the meaning of the two-dimensional codes. The QR code displayed on the TV screen until the desired web page or application is obtained. It wastes the user's time and seriously affects the user experience.

本发明提供一种解决方案,使智能电视基于原有的初始二维码,生成个性化的有特定标识的二维码,并按照一定的排列规则显示,使用户在扫描二维码时能够预先获知二维码的含义。The present invention provides a solution, so that the smart TV generates a personalized two-dimensional code with a specific logo based on the original initial two-dimensional code, and displays it according to a certain arrangement rule, so that the user can scan the two-dimensional code in advance Know the meaning of the QR code.

参照图1,本发明二维码生成显示方法第一实施例提供一种二维码生成显示方法,所述二维码生成显示方法包括:Referring to FIG. 1 , the first embodiment of the method for generating and displaying a two-dimensional code of the present invention provides a method for generating and displaying a two-dimensional code. The method for generating and displaying a two-dimensional code includes:

步骤S10、接收二维码显示指令,并根据所述二维码显示指令获取特征字符码。Step S10, receiving a two-dimensional code display instruction, and acquiring a characteristic character code according to the two-dimensional code display instruction.

本发明主要应用于智能电视创建二维码,用户可使用智能电视显示的二维码进行应用程序的下载安装、快速链接到应用网址、获取节目信息和电视购物等操作。当然,本发明也可应用于其他智能终端二维码的创建。The present invention is mainly applied to smart TVs to create two-dimensional codes, and users can use the two-dimensional codes displayed on smart TVs to download and install application programs, quickly link to application websites, obtain program information, and perform operations such as TV shopping. Of course, the present invention can also be applied to the creation of two-dimensional codes of other intelligent terminals.

本发明实施例中,二维码显示指令可以是由用户使用遥控器触发,也可以是用户语音触发,也可以是电视系统定时触发,也可以是电视系统预设根据播放的节目触发,也可以是其他触发方式,可根据实际需要灵活设定。In the embodiment of the present invention, the two-dimensional code display instruction may be triggered by the user using the remote control, or by the user's voice, or by the TV system at regular intervals, or by the TV system preset according to the broadcast program, or by It is another trigger method, which can be flexibly set according to actual needs.

具体的,作为一种实施方式,首先,电视系统侦测二维码显示指令,当用户或电视系统触发二维码显示指令后,电视系统获取二维码显示指令。Specifically, as an implementation manner, firstly, the television system detects the two-dimensional code display instruction, and when the user or the television system triggers the two-dimensional code display instruction, the television system acquires the two-dimensional code display instruction.

其中,二维码显示指令可以有一个,也可以同时有多个。二维码显示指令包含了本次二维码显示指令所要生成的目标二维码,例如:视频网站Iqiyi的链接二维码、视频网站Youtubu的链接二维码。Wherein, there may be one two-dimensional code display instruction, or there may be multiple at the same time. The two-dimensional code display instruction includes the target two-dimensional code to be generated by this two-dimensional code display instruction, for example: the link two-dimensional code of the video website Iqiyi, the link two-dimensional code of the video website Youtubu.

然后,电视系统根据二维码显示指令,读取目标二维码应用的名称,提取应用的包名。对照预设的字符编码,查找应用包名的第一个字符码,将此字符码作为本次二维码显示指令对应的特征字符码,也即本次目标二维码的特征字符码。Then, according to the two-dimensional code display instruction, the TV system reads the name of the target two-dimensional code application, and extracts the package name of the application. Search for the first character code of the application package name against the preset character code, and use this character code as the characteristic character code corresponding to this QR code display command, that is, the characteristic character code of the target QR code this time.

若当前有多个二维码显示指令,则根据获取二维码显示指令的时间顺序,依次获取对应的特征字符码。若本次二维码显示指令获取的特征字符码已被使用,则获取应用包名对照字符编码得到的第二个字符码,作为本次二维码显示指令对应的特征字符码。以此类推,使当前的多个二维码显示指令均对应有唯一且不同的特征字符码。If there are currently multiple two-dimensional code display instructions, the corresponding characteristic character codes are sequentially obtained according to the time sequence in which the two-dimensional code display instructions are obtained. If the characteristic character code obtained by this two-dimensional code display instruction has been used, obtain the second character code obtained by comparing the application package name with the character code, and use it as the characteristic character code corresponding to this two-dimensional code display instruction. By analogy, the multiple current two-dimensional code display instructions all correspond to unique and different characteristic character codes.

不同的二维码显示指令有唯一对应的特征字符码,从而使不同的二维码显示指令所创建的二维码具有唯一且不同的标识。其中,特征字符码可以是字符,也可以是数字,可根据实际需要灵活设定。Different two-dimensional code display instructions have unique corresponding characteristic character codes, so that the two-dimensional codes created by different two-dimensional code display instructions have unique and different identifications. Wherein, the feature character code can be a character or a number, which can be flexibly set according to actual needs.

需要说明的是,预设的字符编码可以是ASCII(American Standard Code forInformation Interchange,美国标准信息交换代码)码,也可以是其他标准码,可根据实际需要灵活设置。It should be noted that the preset character code can be ASCII (American Standard Code for Information Interchange, American Standard Code for Information Interchange) code or other standard codes, which can be flexibly set according to actual needs.

然后,电视系统将获取的特征字符码存储在第一缓存区。单独存储特征字符码,使电视系统后续取用特征字符码方便快捷,不干扰电视系统后续二维码生成过程中的缓存文件存取。Then, the television system stores the acquired characteristic character code in the first buffer area. The characteristic character code is stored separately, so that the TV system can access the characteristic character code conveniently and quickly, without interfering with the cache file access during the subsequent two-dimensional code generation process of the TV system.

以当前二维码显示指令的目标二维码依次为视频网站Youtubu的链接二维码和视频网站Iqiyi的链接二维码进行举例说明。The target two-dimensional code of the current two-dimensional code display instruction is the link two-dimensional code of the video website Youtube and the link two-dimensional code of the video website Iqiyi in turn as examples for illustration.

电视系统接收当前的两个二维码显示指令,首先,根据视频网站Youtubu的链接二维码显示指令,读取视频网站Youtubu应用的包名得到Youtubu,然后对照ASCII码查找应用包名Youtubu对应的第一个字符码,得到Y。The TV system receives the current two QR code display instructions. First, according to the link QR code display instruction of the video website Youtubu, read the package name of the video website Youtubu application to obtain Youtubu, and then check the ASCII code to find the corresponding application package name Youtubu. The first character code, get Y.

然后,根据视频网站Iqiyi的链接二维码显示指令,读取视频网站Iqiyi应用的包名得到Iqiyi,然后对照ASCII码查找应用包名Iqiyi对应的第一个字符码,得到I。Then, according to the link QR code display instruction of the video website Iqiyi, read the package name of the video website Iqiyi application to obtain Iqiyi, and then search for the first character code corresponding to the application package name Iqiyi according to the ASCII code, and obtain I.

在获取视频网站Youtubu的链接二维码显示指令和视频网站Iqiyi的链接二维码显示指令对应的特征字符码时,可使用如下算法:When obtaining the link QR code display instruction of the video website Youtube and the characteristic character code corresponding to the link QR code display instruction of the video website Iqiyi, the following algorithm can be used:

AP_PK_Name(x1)=YouTubu,电视系统读取到应用的包名;AP_PK_Name(x1)=YouTubu, the package name of the application read by the TV system;

Dif_AP_TAG(x1)=Y,电视系统用ASCII码对照查找到第一个字符码。Dif_AP_TAG(x1)=Y, the TV system finds the first character code by comparing with the ASCII code.

AP_PK_Name(x2)=Iqiyi,电视系统读取到应用的包名;AP_PK_Name(x2)=Iqiyi, the package name of the application read by the TV system;

Dif_AP_TAG(x2)=I,电视系统用ASCII码对照查找到第一个字符码。Dif_AP_TAG(x2)=1, the television system finds the first character code with ASCII code comparison.

由此,电视系统得到视频网站Youtubu的链接二维码显示指令对应的特征字符码Y,视频网站Iqiyi的链接二维码显示指令对应的特征字符码I。Thus, the TV system obtains the characteristic character code Y corresponding to the link QR code display instruction of the video website Youtubu, and the characteristic character code I corresponding to the link QR code display instruction of the video website Iqiyi.

步骤S20、根据预设的二维码显示区域和显示灰阶,获取所述特征字符码的显示参数。Step S20, acquiring the display parameters of the characteristic character code according to the preset two-dimensional code display area and display gray scale.

在获取二维码显示指令的特征字符码后,电视系统根据预设的二维码显示区域和显示灰阶,获取显示特征字符码时,特征字符码的显示参数。After obtaining the characteristic character code of the two-dimensional code display instruction, the TV system obtains the display parameters of the characteristic character code when displaying the characteristic character code according to the preset two-dimensional code display area and display gray scale.

具体的,作为一种实施方式,首先,电视系统侦测第一存储区中的特征字符码。Specifically, as an implementation manner, firstly, the television system detects the characteristic character code in the first storage area.

在侦测到特征字符码后,电视系统读取侦测到的特征字符码并存储到第二缓存区,用于特征字符码显示参数的获取和后续目标二维码的生成。电视系统通过第一缓存区和第二缓存区的划分,使数据的存储和使用互不干扰,提升了数据处理效率。After the characteristic character code is detected, the TV system reads the detected characteristic character code and stores it in the second buffer area, which is used for obtaining the display parameters of the characteristic character code and generating the subsequent target two-dimensional code. Through the division of the first buffer area and the second buffer area, the television system prevents data storage and use from interfering with each other, and improves data processing efficiency.

然后,电视系统读取预设的目标二维码的显示区域,得到目标二维码显示区域尺寸,按照目标二维码显示区域尺寸的预设比例得到特征字符码的显示尺寸。Then, the TV system reads the preset display area of the target two-dimensional code to obtain the display area size of the target two-dimensional code, and obtains the display size of the characteristic character code according to the preset ratio of the display area size of the target two-dimensional code.

然后,电视系统根据预设的智能电视屏幕显示灰阶,取智能电视屏幕显示灰阶的随机灰阶值,使用得到的随机灰阶值对应的灰度对特征字符码的初始颜色进行增益,得到特征字符码的增益颜色。Then, according to the grayscale displayed on the preset smart TV screen, the TV system takes the random grayscale value of the grayscale displayed on the smart TV screen, and uses the grayscale corresponding to the obtained random grayscale value to gain the initial color of the characteristic character code to obtain Gain color of feature character code.

特征字符码显示的增益颜色用于突出显示特征字符码,区别同时显示的不同二维码。需要说明的是,智能电视屏幕灰阶可以是256级,也可以是其他等级,可根据实际需要灵活设定。The gain color displayed by the characteristic character code is used to highlight the characteristic character code and distinguish different QR codes displayed at the same time. It should be noted that the gray scale of the smart TV screen can be 256 levels or other levels, which can be flexibly set according to actual needs.

由此,电视系统得到特征字符码的显示参数。其中,特征字符码的显示参数包括特征字符码的显示尺寸和增益颜色。Thus, the television system obtains the display parameters of the characteristic character code. Wherein, the display parameters of the characteristic character code include the display size and gain color of the characteristic character code.

步骤S30、获取原始二维码的数据信息,根据所述原始二维码的数据信息、所述特征字符码和所述显示参数生成目标二维码。Step S30, acquiring the data information of the original two-dimensional code, and generating a target two-dimensional code according to the data information of the original two-dimensional code, the characteristic character code and the display parameters.

在获取特征字符码的显示参数后,电视系统获取本次二维码显示指令的原始二维码数据信息,并根据原始二维码的数据信息、本次二维码显示指令对应的特征字符码和特征字符码的显示参数,生成目标二维码。After obtaining the display parameters of the characteristic character code, the TV system obtains the original two-dimensional code data information of this two-dimensional code display instruction, and according to the data information of the original two-dimensional code, the characteristic character code corresponding to this two-dimensional code display instruction and the display parameters of the characteristic character code to generate the target two-dimensional code.

具体的,作为一种实施方式,首先,电视系统根据本次二维码显示指令读取相应的原始二维码。解析原始二维码得到原始二维码的数据信息。Specifically, as an implementation manner, firstly, the television system reads the corresponding original two-dimensional code according to the current two-dimensional code display instruction. Analyze the original two-dimensional code to obtain the data information of the original two-dimensional code.

然后,根据原始二维码的数据信息、特征字符码和特征字符码的显示参数,创建目标二维码。目标二维码的显示尺寸可以根据特征字符码的显示尺寸,按预设的比例获取。Then, according to the data information of the original two-dimensional code, the characteristic character code and the display parameters of the characteristic character code, a target two-dimensional code is created. The display size of the target two-dimensional code can be obtained according to a preset ratio according to the display size of the characteristic character code.

特征字符码位于目标二维码的填充区域内,以相应的显示参数显示,目标二维码的数据码以初始颜色黑色显示,突出显示特征字符码。The characteristic character code is located in the filling area of the target two-dimensional code, and is displayed with corresponding display parameters. The data code of the target two-dimensional code is displayed in the initial color black, and the characteristic character code is highlighted.

然后,对创建的目标二维码进行掩膜处理,生成目标二维码,使生成的目标二维码黑白显示均衡,数据读取可靠性增强。参照图2,本实施例中目标二维码可有多种预设掩膜方案,掩膜处理时可随机选自掩膜方案,根据相应的掩膜公式进行掩膜处理。Then, the created target two-dimensional code is masked to generate the target two-dimensional code, so that the black and white display of the generated target two-dimensional code is balanced, and the reliability of data reading is enhanced. Referring to FIG. 2 , in this embodiment, the target two-dimensional code can have multiple preset masking schemes, which can be randomly selected during masking processing, and the masking process is performed according to the corresponding masking formula.

由此,电视系统得到生成的目标二维码。Thus, the television system obtains the generated target two-dimensional code.

步骤S40、显示所述生成的目标二维码。Step S40, displaying the generated target two-dimensional code.

在得到生成的二维码后,电视系统按预设的规则排列显示生成的二维码。After obtaining the generated two-dimensional codes, the television system arranges and displays the generated two-dimensional codes according to preset rules.

具体的,作为一种实施方式,首先,电视系统读取当前已生成的二维码。当前已生成的二维码可以是一个,也可以是多个。Specifically, as an implementation manner, firstly, the television system reads the currently generated two-dimensional code. There can be one or more QR codes currently generated.

然后,电视系统按照预设的排列规则,在预设的二维码显示区域内,显示生成的二维码。Then, the television system displays the generated two-dimensional code in the preset two-dimensional code display area according to the preset arrangement rule.

预设的二维码排列规则可以是根据二维码图标的热度作为排列顺序,例如:预设时间内二维码图标的点击生成次数越高,优先排列,显示在智能电视屏幕的左边;预设时间内二维码相关应用的点击次数越高,优先排列,显示在智能电视屏幕的左边;预设时间内,用户在二维码相关应用的停留时间越长,优先排列,显示在智能电视屏幕的左边;预设时间内,用户扫描次数越多的二维码,优先排列,显示在智能电视屏幕左边。当然,预设的二维码排列规则可以是其他排列顺序,可根据实际需要灵活设定。The preset two-dimensional code arrangement rule can be based on the popularity of the two-dimensional code icon as the order of arrangement, for example: the higher the number of times the two-dimensional code icon is clicked and generated within the preset time, the priority will be arranged and displayed on the left side of the smart TV screen; The higher the number of clicks on QR code-related applications within the preset time, they will be prioritized and displayed on the left side of the smart TV screen; the longer the user stays in QR code-related applications within the preset time, they will be prioritized and displayed on the smart TV The left side of the screen; within the preset time, the QR code that the user scans more times will be prioritized and displayed on the left side of the smart TV screen. Of course, the preset two-dimensional code arrangement rules can be other arrangement orders, which can be flexibly set according to actual needs.

由此,电视系统显示已生成的二维码,供用户扫描使用。由于生成的二维码在显示时均有对应的特征字符码做标识,可使用户在扫描二维码之前即可获知二维码的含义,扫描当前需要的二维码,得到数据信息。Thus, the television system displays the generated two-dimensional code for the user to scan and use. Since the generated two-dimensional codes are marked with corresponding characteristic character codes when displayed, users can know the meaning of the two-dimensional codes before scanning the two-dimensional codes, scan the two-dimensional codes currently needed, and obtain data information.

在本实施例中,电视系统通过接收二维码显示指令,并根据二维码显示指令获取对应的特征字符码;根据预设的二维码显示区域和显示灰阶,获取特征字符码的显示参数;然后,获取原始二维码的数据信息,根据原始二维码的数据信息、特征字符码和显示参数生成目标二维码,由特征字符码标识生成的不同二维码;然后按预设的规则显示生成的目标二维码,使用户能够迅速的分辨不同二维码。本实施例增强了二维码的辨识度,实现了用户在扫描二维码时能够预先获知二维码的含义,辨别不同的二维码,提升了用户体验。In this embodiment, the TV system obtains the corresponding characteristic character code according to the two-dimensional code display instruction by receiving the two-dimensional code display instruction; obtains the display of the characteristic character code according to the preset two-dimensional code display area and display gray scale parameter; then, obtain the data information of the original two-dimensional code, generate the target two-dimensional code according to the data information, characteristic character code and display parameters of the original two-dimensional code, and identify the different two-dimensional codes generated by the characteristic character code; then press preset The generated target QR code is displayed according to the rules, so that users can quickly distinguish different QR codes. This embodiment enhances the recognition of the two-dimensional code, enabling the user to know the meaning of the two-dimensional code in advance when scanning the two-dimensional code, and distinguish different two-dimensional codes, thereby improving the user experience.

进一步的,参照图3,本发明二维码生成显示方法第二实施例提供一种二维码生成显示方法,基于上述图1所示的实施例,所述特征字符码的显示参数包括所述特征字符码的显示尺寸和增益颜色,所述步骤S20包括:Further, referring to FIG. 3 , the second embodiment of the method for generating and displaying a two-dimensional code of the present invention provides a method for generating and displaying a two-dimensional code. Based on the embodiment shown in FIG. 1 above, the display parameters of the characteristic character code include the The display size and gain color of characteristic character code, described step S20 comprises:

步骤S21、根据预设的二维码显示区域,获取所述特征字符码的显示尺寸。Step S21 , according to the preset two-dimensional code display area, acquire the display size of the characteristic character code.

在获取二维码显示指令对应的特征字符码后,电视系统获取生成目标二维码时特征字符码的显示尺寸。After obtaining the characteristic character code corresponding to the two-dimensional code display instruction, the television system obtains the display size of the characteristic character code when generating the target two-dimensional code.

具体的,作为一种实施方式,首先,电视系统读取预设的目标二维码的显示区域,得到预设的目标二维码显示区域的尺寸。Specifically, as an implementation manner, firstly, the television system reads the preset display area of the target two-dimensional code to obtain the size of the preset target two-dimensional code display area.

然后,电视系统根据目标二维码显示区域的尺寸,按照预设的比例,获取特征字符码的放大倍数。Then, the TV system obtains the magnification factor of the characteristic character code according to the size of the display area of the target two-dimensional code and according to the preset ratio.

然后,电视系统将特征字符码的初始尺寸按照得到的放大倍数进行放大,得到特征字符码的显示尺寸。Then, the TV system enlarges the initial size of the characteristic character code according to the obtained magnification factor to obtain the display size of the characteristic character code.

步骤S22、根据预设的显示灰阶,获取所述特征字符码的增益颜色。Step S22 , according to the preset display grayscale, acquire the gain color of the characteristic character code.

在获取二维码显示指令对应的特征字符码后,电视系统获取显示目标二维码时特征字符码的增益颜色。After obtaining the characteristic character code corresponding to the two-dimensional code display instruction, the television system obtains the gain color of the characteristic character code when displaying the target two-dimensional code.

具体的,作为一种实施方式,电视系统预设有智能电视屏幕的显示灰阶,灰阶值与智能电视能够表现的不同层次的颜色亮度一一对应。Specifically, as an implementation manner, the TV system is preset with display gray scales of the screen of the smart TV, and the gray scale values are in one-to-one correspondence with different levels of color brightness that the smart TV can display.

首先,取当前二维码显示指令的总数为n,电视系统根据当前二维码显示指令的总数n,随机选取n个不同的灰阶值。若随机得到的灰阶值有任意两个为相同的,则重新选取,直至得到n个不同的灰阶值。First, take the total number of current two-dimensional code display instructions as n, and the TV system randomly selects n different gray scale values according to the total number n of current two-dimensional code display instructions. If any two of the randomly obtained gray scale values are the same, reselect until n different gray scale values are obtained.

由此,得到每个二维码显示指令对应的灰阶值。Thus, the grayscale value corresponding to each two-dimensional code display instruction is obtained.

二维码指令对应的特征字符码初始颜色为预设颜色,填充灰阶值对应的灰度,得到每个特征字符码显示时的增益颜色。The initial color of the characteristic character code corresponding to the two-dimensional code command is the preset color, and the gray level corresponding to the gray scale value is filled to obtain the gain color when each characteristic character code is displayed.

特征字符码显示的增益颜色用于突出显示特征字符码,区别同时显示的不同二维码。The gain color displayed by the characteristic character code is used to highlight the characteristic character code and distinguish different QR codes displayed at the same time.

在本实施例中,特征字符码的显示参数包括所述特征字符码的显示尺寸和增益颜色;电视系统根据预设的二维码显示区域,获取特征字符码的显示尺寸;根据预设的显示灰阶,获取特征字符码的增益颜色,得到特征字符码的显示参数。本实施例获取了生成二维码时,特征字符码的显示尺寸和增益颜色,使得特征字符码能够突出显示,增强了二维码的辨识度,实现了用户在扫描二维码时能够预先获知二维码的含义,辨别不同的二维码,提升了用户体验。In this embodiment, the display parameters of the characteristic character code include the display size and gain color of the characteristic character code; the television system obtains the display size of the characteristic character code according to the preset two-dimensional code display area; Gray scale, obtain the gain color of the characteristic character code, and obtain the display parameters of the characteristic character code. This embodiment obtains the display size and gain color of the characteristic character code when generating the two-dimensional code, so that the characteristic character code can be highlighted, the recognition of the two-dimensional code is enhanced, and the user can know in advance when scanning the two-dimensional code The meaning of the QR code, distinguishing different QR codes, and improving the user experience.

进一步的,参照图4,本发明二维码生成显示方法第三实施例提供一种二维码生成显示方法,基于上述图3所示的实施例,所述步骤S21包括:Further, referring to FIG. 4 , the third embodiment of the method for generating and displaying a two-dimensional code of the present invention provides a method for generating and displaying a two-dimensional code. Based on the above-mentioned embodiment shown in FIG. 3 , the step S21 includes:

步骤S211、根据预设的二维码显示区域,获取所述二维码显示区域的水平尺寸。Step S211 , according to the preset two-dimensional code display area, obtain the horizontal size of the two-dimensional code display area.

电视系统获取生成目标二维码时特征字符码的显示尺寸时,具体的,作为一种实施方式,首先,电视系统根据预设的目标二维码显示区域,获取目标二维码显示区域水平方向上的显示尺寸,得到目标二维码显示区域的水平尺寸。When the TV system obtains the display size of the characteristic character code when generating the target two-dimensional code, specifically, as an implementation, first, the TV system obtains the horizontal direction of the target two-dimensional code display area according to the preset target two-dimensional code display area. The display size above to get the horizontal size of the target QR code display area.

目标二维码显示区域的水平尺寸为电视系统根据屏幕中所需要显示的目标二维码数量、显示区域的尺寸进行预先规划后,得到的分配给目标二维码的显示区域的水平尺寸。The horizontal size of the target two-dimensional code display area is the horizontal size of the display area assigned to the target two-dimensional code after the TV system pre-plans according to the number of target two-dimensional codes to be displayed on the screen and the size of the display area.

需要说明的是,电视系统对屏幕中目标二维码显示区域的规划可以是预设的,也可以接收二维码显示指令后根据智能电视屏幕所需要显示的目标二维码数量、显示区域的尺寸进行规划得到的,可根据实际需要灵活设置。It should be noted that the planning of the target QR code display area on the screen by the TV system can be preset, or it can be based on the number of target QR codes to be displayed on the smart TV screen and the size of the display area after receiving the QR code display instruction. The dimensions are planned and can be flexibly set according to actual needs.

其中,目标二维码显示区域的尺寸的表征可以像素为单位。Wherein, the dimension of the display area of the target two-dimensional code can be expressed in units of pixels.

步骤S212、根据所述二维码显示区域的水平尺寸,获取所述特征字符码的放大倍数。Step S212. According to the horizontal size of the two-dimensional code display area, the magnification factor of the characteristic character code is obtained.

在获取目标二维码显示区域的水平尺寸后,电视系统根据目标二维码显示区域的尺寸,按照预设的比例,获取对应的特征字符码的放大倍数。After obtaining the horizontal size of the target two-dimensional code display area, the TV system obtains the magnification factor of the corresponding characteristic character code according to the size of the target two-dimensional code display area and according to a preset ratio.

具体的,作为一种实施方式,电视系统可以获取目标二维码显示区域水平尺寸的预设比例值,作为特征字符码和本次二维码显示指令所创建的二维码的尺寸放大倍数。Specifically, as an implementation manner, the television system may obtain a preset ratio value of the horizontal size of the target two-dimensional code display area as the characteristic character code and the size magnification factor of the two-dimensional code created by this two-dimensional code display instruction.

其中,预设比例值可以是十分之一,也可以是其他数值,可根据实际需要灵活设置。Wherein, the preset ratio value can be one-tenth, or other values, which can be flexibly set according to actual needs.

由此,电视系统得到特征字符码的放大倍数。Thus, the TV system obtains the magnification factor of the characteristic character code.

步骤S213、根据所述特征字符码的放大倍数放大所述特征字符码的初始尺寸,得到所述特征字符码的显示尺寸。Step S213, enlarging the initial size of the characteristic character code according to the magnification factor of the characteristic character code to obtain the display size of the characteristic character code.

在获取特征字符码的放大倍数后,电视系统可以根据放大倍数,对特征字符码显示的初始尺寸进行放大。After obtaining the magnification factor of the characteristic character code, the TV system can enlarge the initial size displayed by the characteristic character code according to the magnification factor.

特征字符码的原始尺寸为系统预设值,例如:3×3的像素矩阵。The original size of the characteristic character code is the system preset value, for example: 3×3 pixel matrix.

电视系统将特征字符码的水平尺寸和竖直尺寸均按照放大倍数进行放大,获取特征字符码放大后的尺寸。The television system enlarges the horizontal size and the vertical size of the characteristic character code according to the magnification factor, and obtains the enlarged size of the characteristic character code.

为保持生成目标二维码时,特征字符码在目标二维码填充区域内,电视系统可以使用特征字符码的放大倍数,放大目标二维码的初始尺寸,使目标二维码和特征字符码的尺寸保持同步。In order to keep the characteristic character code in the filling area of the target two-dimensional code when generating the target two-dimensional code, the TV system can use the magnification factor of the characteristic character code to enlarge the initial size of the target two-dimensional code, so that the target two-dimensional code and the characteristic character code The dimensions are kept in sync.

以当前二维码显示指令的目标二维码依次为视频网站Youtubu的链接二维码和视频网站Iqiyi的链接二维码,当前目标二维码的类型为QR(Quick Response,快速反应)二维码进行举例说明。The target two-dimensional code of the current two-dimensional code display command is the link two-dimensional code of the video website Youtube and the link two-dimensional code of the video website Iqiyi in turn, and the type of the current target two-dimensional code is QR (Quick Response, quick response) two-dimensional code for example.

首先,电视系统获取视频网站Youtubu的链接二维码的显示区域水平尺寸,为40个像素;然后,电视系统获取40个像素的十分之一,得到特征字符码的放大倍数为4;然后,电视系统将特征字符码初始显示尺寸的水平方向和竖直方向同时放大四倍,得到视频网站Youtubu的链接二维码的特征字符码显示尺寸。First, the TV system obtains the horizontal dimension of the display area of the link QR code of the video website Youtube, which is 40 pixels; then, the TV system obtains one-tenth of the 40 pixels, and obtains a magnification factor of 4 for the characteristic character code; then, The TV system enlarges the horizontal direction and the vertical direction of the initial display size of the characteristic character code four times simultaneously, and obtains the characteristic character code display size of the link QR code of the video website Youtube.

电视系统获取视频网站Iqiyi的链接二维码的显示区域水平尺寸,为20个像素;然后,电视系统获取20个像素的十分之一,得到特征字符码的放大倍数为2;然后,电视系统将特征字符码初始显示尺寸的水平方向和竖直方向同时放大四倍,得到视频网站Iqiyi的链接二维码的特征字符码显示尺寸。The TV system obtains the display area horizontal size of the link QR code of the video website Iqiyi, which is 20 pixels; then, the TV system obtains one-tenth of 20 pixels, and the magnification factor of the characteristic character code is 2; then, the TV system The horizontal direction and the vertical direction of the initial display size of the characteristic character code are enlarged four times at the same time, and the characteristic character code display size of the link QR code of the video website Iqiyi is obtained.

在获取特征字符码的放大倍数时,可使用如下算法:When obtaining the magnification of the characteristic character code, the following algorithm can be used:

QR_X_Size(x1)=40,电视系统获取视频网站Youtubu的链接二维码显示区域水平方向上的尺寸:40;QR_X_Size(x1)=40, the TV system obtains the link QR code display area size of the video website Youtube in the horizontal direction: 40;

Adap_QR(x1)=QR_X_Size(x1)/10=4,电视系统获取放大倍数:4。Adap_QR(x1)=QR_X_Size(x1)/10=4, the TV system obtains magnification: 4.

QR_X_Size(x2)=20,电视系统获取视频网站Iqiyi的链接二维码显示区域水平方向上的尺寸:20;QR_X_Size(x2)=20, the TV system acquires the link QR code display area size of the video website Iqiyi in the horizontal direction: 20;

Adap_QR(x2)=QR_X_Size(x2)/10=2,电视系统获取放大倍数:2。Adap_QR(x2)=QR_X_Size(x2)/10=2, the television system obtains magnification: 2.

在本实施例中,电视系统通过预设的二维码显示区域,获取二维码显示区域的水平尺寸;然后,根据二维码显示区域的水平尺寸,获取特征字符码的放大倍数;然后,根据特征字符码的放大倍数放大特征字符码的初始尺寸,得到特征字符码的显示尺寸。本实施例获取了特征字符码的显示尺寸,生成二维码时能够以适合的比例显示特征字符码,使生成的二维码保持美观,便于用户识别不同的二维码。In this embodiment, the TV system obtains the horizontal size of the two-dimensional code display area through the preset two-dimensional code display area; then, according to the horizontal size of the two-dimensional code display area, obtains the magnification factor of the characteristic character code; then, The initial size of the characteristic character code is enlarged according to the magnification factor of the characteristic character code to obtain the display size of the characteristic character code. In this embodiment, the display size of the characteristic character code is obtained, and the characteristic character code can be displayed at an appropriate ratio when generating a two-dimensional code, so that the generated two-dimensional code remains beautiful, and it is convenient for users to identify different two-dimensional codes.

进一步的,参照图5,本发明二维码生成显示方法第四实施例提供一种二维码生成显示方法,基于上述图3或4所示的实施例(本实施例以图4为例),所述步骤S22包括:Further, referring to FIG. 5 , the fourth embodiment of the method for generating and displaying a two-dimensional code of the present invention provides a method for generating and displaying a two-dimensional code, based on the above-mentioned embodiment shown in FIG. 3 or 4 (this embodiment takes FIG. 4 as an example) , the step S22 includes:

步骤S221、将预设的显示灰阶进行灰阶值等分,得到等分的灰阶值。Step S221 , dividing the preset display gray scale into equal gray scale values to obtain equally divided gray scale values.

在获取二维码显示指令对应的特征字符码后,电视系统获取显示目标二维码时特征字符码的增益颜色。After obtaining the characteristic character code corresponding to the two-dimensional code display instruction, the television system obtains the gain color of the characteristic character code when displaying the target two-dimensional code.

具体的,作为一种实施方式,电视系统预设有智能电视屏幕显示的显示灰阶,智能电视屏幕的显示灰阶使用灰阶值表征,灰阶值与智能电视屏幕能够表现的不同层次的颜色亮度一一对应。Specifically, as an implementation, the TV system is preset with display gray scales displayed on the smart TV screen, and the gray scale displayed on the smart TV screen is represented by a gray scale value, and the gray scale value is different from the colors of different levels that the smart TV screen can display. One-to-one correspondence of brightness.

首先,电视系统获取当前二维码显示指令的总数,取当前二维码显示指令总数为n。First, the TV system acquires the total number of current two-dimensional code display instructions, and takes the current total number of two-dimensional code display instructions as n.

然后,将获取的灰阶值按照原有的排列次序进行n等分,得到n等分的灰阶值。Then, the acquired gray scale values are divided into n equal parts according to the original arrangement order to obtain n equal divided gray scale values.

步骤S222、获取所述每等分灰阶值的随机灰阶值。Step S222. Obtain the random gray scale value of each divided gray scale value.

在等分灰阶值后,电视系统在每等分灰阶值中,随机选取灰阶值,得到随机灰阶值。After equalizing the gray scale values, the television system randomly selects gray scale values in each equal gray scale value to obtain random gray scale values.

若得到的任一两个随机灰阶值在同一个等分灰阶值中,则电视系统重新选取随机灰阶值,直至获取的随机灰阶值在不同的等分灰阶值中。If any two obtained random gray scale values are in the same equally divided gray scale value, the television system reselects the random gray scale value until the obtained random gray scale values are in different equally divided gray scale values.

由此,电视系统得到与不同的二维码显示指令分别对应的n个随机灰阶值。Thus, the television system obtains n random grayscale values corresponding to different two-dimensional code display instructions.

步骤S223、根据所述获取的随机灰阶值,得到所述特征字符码的增益颜色。Step S223. Obtain the gain color of the characteristic character code according to the obtained random gray scale value.

在获取每个二维码显示指令对应的随机灰阶值后,随机灰阶值即为特征字符码的颜色增益值。After obtaining the random grayscale value corresponding to each two-dimensional code display instruction, the random grayscale value is the color gain value of the characteristic character code.

电视系统将二维码显示指令对应的特征字符码初始颜色,填充随机灰阶值对应的灰度,得到显示特征字符码时,特征字符码的增益颜色。The TV system fills the initial color of the characteristic character code corresponding to the two-dimensional code display instruction with the gray scale corresponding to the random gray scale value, and obtains the gain color of the characteristic character code when displaying the characteristic character code.

在本实施例中,电视系统通过将预设的显示灰阶进行灰阶值等分,得到等分的灰阶值;然后获取每等分灰阶值的随机灰阶值;然后,根据获取的随机灰阶值,得到特征字符码的增益颜色。在本实施例中,每个特征字符码的随机灰阶值均在不同的等分灰阶值中,使特征字符码的增益颜色能够产生明显区别,增强了不同二维码的辨识度,使用户更容易辨别不同的二维码。In this embodiment, the television system divides the preset display gray scale into gray scale values to obtain equally divided gray scale values; then obtains random gray scale values for each divided gray scale value; Random grayscale value to obtain the gain color of the characteristic character code. In this embodiment, the random gray scale value of each characteristic character code is in different equally divided gray scale values, so that the gain color of the characteristic character code can be clearly distinguished, and the recognition degree of different two-dimensional codes is enhanced, so that It is easier for users to distinguish different QR codes.

进一步的,参照图6,本发明二维码生成显示方法第五实施例提供一种二维码生成显示方法,基于上述图5所示的实施例,所述原始二维码的数据信息包括原始二维码的定位图案位置、版本信息、数据码和纠错码,所述步骤S30包括:Further, referring to FIG. 6, the fifth embodiment of the method for generating and displaying a two-dimensional code of the present invention provides a method for generating and displaying a two-dimensional code. Based on the embodiment shown in FIG. 5, the data information of the original two-dimensional code includes the original The positioning pattern position, version information, data code and error correction code of the two-dimensional code, the step S30 includes:

步骤S310、获取原始二维码的数据信息,根据所述纠错码校正所述数据码,获取校正后的数据码。Step S310, obtaining data information of the original two-dimensional code, correcting the data code according to the error correction code, and obtaining a corrected data code.

电视系统根据二维码显示指令,查找读取本次二维码显示指令对应的原始二维码。The television system searches and reads the original two-dimensional code corresponding to the two-dimensional code display instruction according to the two-dimensional code display instruction.

获取原始二维码后,电视系统解析原始二维码,得到原始二维码携带的数据信息。其中,原始二维码携带的数据信息可以包括原始二维码的定位图案位置、版本信息、数据码和纠错码,还可以包括其他信息,可根据实际需要灵活设定。After obtaining the original two-dimensional code, the TV system parses the original two-dimensional code to obtain the data information carried by the original two-dimensional code. Wherein, the data information carried by the original two-dimensional code may include the positioning pattern position of the original two-dimensional code, version information, data code and error correction code, and may also include other information, which can be flexibly set according to actual needs.

在获取本次二维码生成指令对应的原始二维码数据信息后,原始二维码的数据信息包括原始二维码的定位图案位置、版本信息、数据码和纠错码,电视系统校正得到的数据码。After obtaining the original two-dimensional code data information corresponding to this two-dimensional code generation instruction, the data information of the original two-dimensional code includes the positioning pattern position, version information, data code and error correction code of the original two-dimensional code, and the TV system corrects the obtained data code.

具体的,作为一种实施方式,电视系统获取原始二维码的纠错码和数据码,使用纠错码对数据码进行校正,避免数据传输过程中产生的错误。Specifically, as an implementation manner, the TV system acquires the error correction code and the data code of the original two-dimensional code, and uses the error correction code to correct the data code, so as to avoid errors generated during data transmission.

由此,电视系统获取校正后的数据码。Thus, the television system obtains the corrected data code.

步骤S320、根据所述校正后的数据码,获取第二纠错码。Step S320. Obtain a second error correction code according to the corrected data code.

电视系统根据当前得到的校正后的数据码,获取第二纠错码,用于生成目标二维码。The television system acquires the second error correction code according to the currently obtained corrected data code, and is used to generate the target two-dimensional code.

具体的,作为一种实施方式,首先,电视系统对照预设的字符编码,获取校正后数据码的字符码。Specifically, as an implementation manner, firstly, the television system compares the preset character codes to obtain the character codes of the corrected data codes.

然后,电视系统对获取的字符码进行取反,得到第二纠错码。Then, the television system reverses the acquired character code to obtain the second error correction code.

以视频网站数据www.iqiyi.com进行举例说明,电视系统首先获取视频网站数据的ASCII码,然后取反,将字符码0取反为1,将1取反为0,将得到的取反后的字符码作为第二纠错码。Take the video website data www.iqiyi.com as an example. The TV system first obtains the ASCII code of the video website data, and then inverts the character code 0 to 1, and 1 to 0. After inverting the obtained The character code of is used as the second error correction code.

步骤S330、根据所述原始二维码的定位图案位置和版本信息、所述校正后的数据码、所述第二纠错码、所述特征字符码和所述显示参数,创建目标二维码。Step S330, create a target two-dimensional code according to the positioning pattern position and version information of the original two-dimensional code, the corrected data code, the second error correction code, the characteristic character code and the display parameters .

具体的,作为一种实施方式,首先,电视系统读取原始二维码的版本信息,作为目标二维码的版本信息,并根据目标二维码的版本得到目标二维码的初始尺寸。然后,使用特征字符码显示尺寸的放大倍数,放大目标二维码的初始尺寸,得到目标二维码的显示尺寸,使目标二维码和特征字符码的显示尺寸保持同步。Specifically, as an implementation manner, first, the TV system reads the version information of the original two-dimensional code as the version information of the target two-dimensional code, and obtains the initial size of the target two-dimensional code according to the version of the target two-dimensional code. Then, using the magnification factor of the display size of the characteristic character code, the initial size of the target two-dimensional code is enlarged to obtain the display size of the target two-dimensional code, so that the display size of the target two-dimensional code and the characteristic character code are kept in sync.

然后,电视系统读取原始二维码的定位图案位置,定位目标二维码的数据填充区域。Then, the TV system reads the positioning pattern position of the original two-dimensional code, and locates the data filling area of the target two-dimensional code.

然后,将获取的原始二维码的数据码、第二纠错码、版本信息进行填充区域的填充,将本次二维码显示指令对应的特征字符码按照相应的显示参数进行填充区域的填充,根据目标二维码的显示尺寸,创建目标二维码。Then, fill the filling area with the acquired data code, second error correction code, and version information of the original two-dimensional code, and fill the filling area with the characteristic character code corresponding to the two-dimensional code display instruction according to the corresponding display parameters , according to the display size of the target QR code, create the target QR code.

由此,电视系统得到创建的目标二维码。Thus, the television system obtains the created target QR code.

以当前二维码显示指令的目标二维码依次为视频网站Youtubu的链接二维码和视频网站Iqiyi的链接二维码,当前目标二维码的类型为QR二维码进行举例说明。The target two-dimensional code of the current two-dimensional code display instruction is the link two-dimensional code of the video website Youtube and the link two-dimensional code of the video website Iqiyi in sequence, and the type of the current target two-dimensional code is a QR two-dimensional code for example.

在创建目标二维码时,可使用如下算法:When creating the target QR code, the following algorithm can be used:

Creat_QR_Rev(x1)=Y,电视系统将视频网站Youtube链接二维码的原始二维码和特征字符码Y按照显示参数生成相应的二维码图标。Create_QR_Rev(x1)=Y, the TV system generates the corresponding QR code icon according to the display parameters from the original QR code of the video website Youtube link QR code and the characteristic character code Y.

Creat_QR_Rev(x2)=I,电视系统将视频网站Iqiyi链接二维码的原始二维码和特征字符码I按照显示参数生成相应的二维码图标。Create_QR_Rev(x2)=I, the TV system generates the corresponding two-dimensional code icon according to the display parameters from the original two-dimensional code and characteristic character code I of the video website Iqiyi link two-dimensional code.

步骤S340、根据所述第二纠错码,校正所述创建的二维码,生成目标二维码。Step S340: Correct the created two-dimensional code according to the second error correction code to generate a target two-dimensional code.

在得到创建的目标二维码后,电视系统使用第二纠错码校正创建的目标二维码。After obtaining the created target two-dimensional code, the television system uses the second error correction code to correct the created target two-dimensional code.

具体的,作为一种实施方式,电视系统读取第二纠错码,和本次创建的目标二维码的当前数据码。Specifically, as an implementation manner, the television system reads the second error correction code and the current data code of the target two-dimensional code created this time.

然后,对照预设的字符编码,电视系统将第二纠错码的字符码取反,减去当前数据码的字符码,若得到的值为0,则本次数据传输正常;若得到的值不为0,则使用第二纠错码校正本次创建的目标二维码。Then, according to the preset character code, the TV system inverts the character code of the second error correction code and subtracts the character code of the current data code. If the obtained value is 0, the current data transmission is normal; if the obtained value If it is not 0, use the second error correction code to correct the target QR code created this time.

然后,对创建的目标二维码选取预设的掩膜方案进行掩膜处理,生成目标二维码。Then, a preset mask scheme is selected for the created target two-dimensional code to perform mask processing to generate the target two-dimensional code.

生成的目标二维码包含有特征字符码,特征字符码位于目标二维码的填充区域内,不影响用户扫描目标二维码时数据的读取。The generated target two-dimensional code contains a characteristic character code, and the characteristic character code is located in the filling area of the target two-dimensional code, which does not affect the reading of data when the user scans the target two-dimensional code.

参照图7,以当前二维码显示指令的目标二维码依次为视频网站Youtubu的链接二维码和视频网站Iqiyi的链接二维码,当前目标二维码的类型为QR二维码进行举例说明。Referring to Figure 7, the target two-dimensional code of the current two-dimensional code display command is the link two-dimensional code of the video website Youtube and the link two-dimensional code of the video website Iqiyi in sequence, and the type of the current target two-dimensional code is a QR two-dimensional code for example illustrate.

得到的视频网站Youtubu的链接二维码填充区域内显示有特征字符码Y;得到的视频网站Iqiyi的链接二维码填充区域内显示有特征字符码I。A characteristic character code Y is displayed in the filled area of the two-dimensional code of the link of the obtained video website Youtube; a characteristic character code I is displayed in the filled area of the two-dimensional code of the link of the obtained video website Iqiyi.

在本实施例中,电视系统获取原始二维码的数据信息,原始二维码的数据信息包括原始二维码的定位图案位置、版本信息、数据码和纠错码;然后,电视系统根据纠错码校正数据码,获取校正后的数据码;然后,根据校正后的数据码,获取第二纠错码;然后,根据原始二维码的定位图案位置和版本信息、校正后的数据码、第二纠错码、特征字符码和显示参数,创建目标二维码;然后,根据所述第二纠错码,校正创建的目标二维码,生成目标二维码。本实施例通过对原始二维码和目标二维码的校正,避免了数据传输过程中可能产生的错误,增强了二维码的准确性和辨识度,实现了用户在扫描二维码时能够预先获知二维码的含义,辨别不同的二维码,提升了用户体验。In this embodiment, the TV system acquires the data information of the original two-dimensional code, and the data information of the original two-dimensional code includes the positioning pattern position, version information, data code and error correction code of the original two-dimensional code; Correcting the data code by the error code to obtain the corrected data code; then, according to the corrected data code, obtaining a second error correction code; then, according to the positioning pattern position and version information of the original two-dimensional code, the corrected data code, The second error correction code, the characteristic character code and the display parameters are used to create a target two-dimensional code; then, according to the second error correction code, the created target two-dimensional code is corrected to generate the target two-dimensional code. In this embodiment, by correcting the original two-dimensional code and the target two-dimensional code, errors that may occur during data transmission are avoided, the accuracy and recognition of the two-dimensional code are enhanced, and the user can scan the two-dimensional code. Knowing the meaning of the two-dimensional code in advance and distinguishing different two-dimensional codes improves the user experience.

参照图8,本发明二维码生成显示装置第一实施例提供一种二维码生成显示装置,所述二维码生成显示装置包括:Referring to FIG. 8 , the first embodiment of the two-dimensional code generation and display device of the present invention provides a two-dimensional code generation and display device, the two-dimensional code generation and display device includes:

接收模块100,用于接收二维码显示指令,并根据所述二维码显示指令获取特征字符码。The receiving module 100 is configured to receive a two-dimensional code display instruction, and obtain a characteristic character code according to the two-dimensional code display instruction.

本发明主要应用于智能电视创建二维码,用户可使用智能电视显示的二维码进行应用程序的下载安装、快速链接到应用网址、获取节目信息和电视购物等操作。当然,本发明也可应用于其他智能终端二维码的创建。The present invention is mainly applied to smart TVs to create two-dimensional codes, and users can use the two-dimensional codes displayed on smart TVs to download and install application programs, quickly link to application websites, obtain program information, and perform operations such as TV shopping. Of course, the present invention can also be applied to the creation of two-dimensional codes of other intelligent terminals.

本发明实施例中,二维码显示指令可以是由用户使用遥控器触发,也可以是用户语音触发,也可以是电视系统定时触发,也可以是电视系统预设根据播放的节目触发,也可以是其他触发方式,可根据实际需要灵活设定。In the embodiment of the present invention, the two-dimensional code display instruction may be triggered by the user using the remote control, or by the user's voice, or by the TV system at regular intervals, or by the TV system preset according to the broadcast program, or by It is another trigger method, which can be flexibly set according to actual needs.

具体的,作为一种实施方式,首先,接收模块100侦测二维码显示指令,当用户或电视系统触发二维码显示指令后,接收模块100获取二维码显示指令。Specifically, as an implementation manner, firstly, the receiving module 100 detects the two-dimensional code display instruction, and when the user or the television system triggers the two-dimensional code display instruction, the receiving module 100 acquires the two-dimensional code display instruction.

其中,二维码显示指令可以有一个,也可以同时有多个。二维码显示指令包含了本次二维码显示指令所要生成的目标二维码,例如:视频网站Iqiyi的链接二维码、视频网站Youtubu的链接二维码。Wherein, there may be one two-dimensional code display instruction, or there may be multiple at the same time. The two-dimensional code display instruction includes the target two-dimensional code to be generated by this two-dimensional code display instruction, for example: the link two-dimensional code of the video website Iqiyi, the link two-dimensional code of the video website Youtubu.

然后,接收模块100根据二维码显示指令,读取目标二维码应用的名称,提取应用的包名。对照预设的字符编码,查找应用包名的第一个字符码,将此字符码作为本次二维码显示指令对应的特征字符码,也即本次目标二维码的特征字符码。Then, the receiving module 100 reads the name of the target two-dimensional code application according to the two-dimensional code display instruction, and extracts the package name of the application. Search for the first character code of the application package name against the preset character code, and use this character code as the characteristic character code corresponding to this QR code display command, that is, the characteristic character code of the target QR code this time.

若当前有多个二维码显示指令,则根据获取二维码显示指令的时间顺序,依次获取对应的特征字符码。若本次二维码显示指令获取的特征字符码已被使用,则获取应用包名对照字符编码得到的第二个字符码,作为本次二维码显示指令对应的特征字符码。以此类推,使当前的多个二维码显示指令均对应有唯一且不同的特征字符码。If there are currently multiple two-dimensional code display instructions, the corresponding characteristic character codes are sequentially obtained according to the time sequence in which the two-dimensional code display instructions are obtained. If the characteristic character code obtained by this two-dimensional code display instruction has been used, obtain the second character code obtained by comparing the application package name with the character code, and use it as the characteristic character code corresponding to this two-dimensional code display instruction. By analogy, the multiple current two-dimensional code display instructions all correspond to unique and different characteristic character codes.

不同的二维码显示指令有唯一对应的特征字符码,从而使不同的二维码显示指令所创建的二维码具有唯一且不同的标识。其中,特征字符码可以是字符,也可以是数字,可根据实际需要灵活设定。Different two-dimensional code display instructions have unique corresponding characteristic character codes, so that the two-dimensional codes created by different two-dimensional code display instructions have unique and different identifications. Wherein, the feature character code can be a character or a number, which can be flexibly set according to actual needs.

需要说明的是,预设的字符编码可以是ASCII(American Standard Code forInformation Interchange,美国标准信息交换代码)码,也可以是其他标准码,可根据实际需要灵活设置。It should be noted that the preset character code can be ASCII (American Standard Code for Information Interchange, American Standard Code for Information Interchange) code or other standard codes, which can be flexibly set according to actual needs.

然后,接收模块100将获取的特征字符码存储在第一缓存区。单独存储特征字符码,使后续取用特征字符码方便快捷,不干扰后续二维码生成过程中的缓存文件存取。Then, the receiving module 100 stores the acquired characteristic character code in the first buffer area. The characteristic character code is stored separately, so that the subsequent access to the characteristic character code is convenient and quick, and does not interfere with the cache file access during the subsequent two-dimensional code generation process.

以当前二维码显示指令的目标二维码依次为视频网站Youtubu的链接二维码和视频网站Iqiyi的链接二维码进行举例说明。The target two-dimensional code of the current two-dimensional code display instruction is the link two-dimensional code of the video website Youtube and the link two-dimensional code of the video website Iqiyi in turn as examples for illustration.

接收模块100接收当前的两个二维码显示指令,首先,根据视频网站Youtubu的链接二维码显示指令,读取视频网站Youtubu应用的包名得到Youtubu,然后对照ASCII码查找应用包名Youtubu对应的第一个字符码,得到Y。The receiving module 100 receives the current two two-dimensional code display instructions. First, according to the link two-dimensional code display instruction of the video website Youtubu, read the package name of the video website Youtube application to obtain Youtubu, and then compare the ASCII code to find the application package name corresponding to Youtubu. The first character code of , get Y.

然后,根据视频网站Iqiyi的链接二维码显示指令,读取视频网站Iqiyi应用的包名得到Iqiyi,然后对照ASCII码查找应用包名Iqiyi对应的第一个字符码,得到I。Then, according to the link QR code display instruction of the video website Iqiyi, read the package name of the video website Iqiyi application to obtain Iqiyi, and then search for the first character code corresponding to the application package name Iqiyi according to the ASCII code, and obtain I.

在获取视频网站Youtubu的链接二维码显示指令和视频网站Iqiyi的链接二维码显示指令对应的特征字符码时,可使用如下算法:When obtaining the link QR code display instruction of the video website Youtube and the characteristic character code corresponding to the link QR code display instruction of the video website Iqiyi, the following algorithm can be used:

AP_PK_Name(x1)=YouTubu,接收模块100读取到应用的包名;AP_PK_Name(x1)=YouTubu, the receiving module 100 reads the package name of the application;

Dif_AP_TAG(x1)=Y,接收模块100用ASCII码对照查找到第一个字符码。Dif_AP_TAG(x1)=Y, the receiving module 100 finds the first character code by comparing ASCII codes.

AP_PK_Name(x2)=Iqiyi,接收模块100读取到应用的包名;AP_PK_Name(x2)=Iqiyi, the receiving module 100 reads the package name of the application;

Dif_AP_TAG(x2)=I,接收模块100用ASCII码对照查找到第一个字符码。Dif_AP_TAG(x2)=1, the receiving module 100 finds the first character code by comparing with the ASCII code.

由此,接收模块100得到视频网站Youtubu的链接二维码显示指令对应的特征字符码Y,视频网站Iqiyi的链接二维码显示指令对应的特征字符码I。Thus, the receiving module 100 obtains the characteristic character code Y corresponding to the link QR code display instruction of the video website Youtube, and the characteristic character code I corresponding to the link QR code display instruction of the video website Iqiyi.

参数模块200,用于根据预设的二维码显示区域和显示灰阶,获取所述特征字符码的显示参数。The parameter module 200 is configured to obtain the display parameters of the characteristic character code according to the preset display area and gray scale of the two-dimensional code.

在接收模块100获取二维码显示指令的特征字符码后,参数模块200根据预设的二维码显示区域和显示灰阶,获取显示特征字符码时,特征字符码的显示参数。After the receiving module 100 obtains the characteristic character code of the two-dimensional code display instruction, the parameter module 200 obtains the display parameters of the characteristic character code when displaying the characteristic character code according to the preset two-dimensional code display area and display gray scale.

具体的,作为一种实施方式,首先,参数模块200侦测第一存储区中的特征字符码。Specifically, as an implementation manner, firstly, the parameter module 200 detects the characteristic character code in the first storage area.

在侦测到特征字符码后,参数模块200读取侦测到的特征字符码并存储到第二缓存区,用于特征字符码显示参数的获取和后续目标二维码的生成。参数模块200通过第一缓存区和第二缓存区的划分,使数据的存储和使用互不干扰,提升了数据处理效率。After detecting the characteristic character code, the parameter module 200 reads the detected characteristic character code and stores it in the second buffer area, which is used for obtaining the characteristic character code display parameters and generating the subsequent target two-dimensional code. In the parameter module 200, through the division of the first buffer area and the second buffer area, the storage and use of data do not interfere with each other, and the efficiency of data processing is improved.

然后,参数模块200读取预设的目标二维码的显示区域,得到目标二维码显示区域尺寸,按照目标二维码显示区域尺寸的预设比例得到特征字符码的显示尺寸。Then, the parameter module 200 reads the preset display area of the target two-dimensional code to obtain the size of the display area of the target two-dimensional code, and obtains the display size of the characteristic character code according to the preset ratio of the display area size of the target two-dimensional code.

然后,参数模块200根据预设的智能电视屏幕显示灰阶,取智能电视屏幕显示灰阶的随机灰阶值,使用得到的随机灰阶值对应的灰度对特征字符码的初始颜色进行增益,得到特征字符码的增益颜色。Then, the parameter module 200 takes the random gray scale value of the gray scale displayed on the smart TV screen according to the preset smart TV screen display gray scale, and uses the gray scale corresponding to the obtained random gray scale value to gain the initial color of the characteristic character code, Obtain the gain color of the characteristic character code.

特征字符码显示的增益颜色用于突出显示特征字符码,区别同时显示的不同二维码。需要说明的是,智能电视屏幕灰阶可以是256级,也可以是其他等级,可根据实际需要灵活设定。The gain color displayed by the characteristic character code is used to highlight the characteristic character code and distinguish different QR codes displayed at the same time. It should be noted that the gray scale of the smart TV screen can be 256 levels or other levels, which can be flexibly set according to actual needs.

由此,参数模块200得到特征字符码的显示参数。其中,特征字符码的显示参数包括特征字符码的显示尺寸和增益颜色。Thus, the parameter module 200 obtains the display parameters of the characteristic character code. Wherein, the display parameters of the characteristic character code include the display size and gain color of the characteristic character code.

创建模块300,用于获取原始二维码的数据信息,根据所述原始二维码的数据信息、所述特征字符码和所述显示参数生成目标二维码。The creating module 300 is configured to acquire data information of an original two-dimensional code, and generate a target two-dimensional code according to the data information of the original two-dimensional code, the characteristic character code and the display parameters.

在参数模块200获取特征字符码的显示参数后,创建模块300获取本次二维码显示指令的原始二维码数据信息,并根据原始二维码的数据信息、本次二维码显示指令对应的特征字符码和特征字符码的显示参数,生成目标二维码。After the parameter module 200 obtains the display parameters of the characteristic character code, the creation module 300 obtains the original two-dimensional code data information of this two-dimensional code display instruction, and according to the data information of the original two-dimensional code, this two-dimensional code display instruction corresponding The characteristic character code and the display parameters of the characteristic character code generate the target QR code.

具体的,作为一种实施方式,首先,创建模块300根据本次二维码显示指令读取相应的原始二维码。解析原始二维码得到原始二维码的数据信息。Specifically, as an implementation manner, firstly, the creation module 300 reads the corresponding original two-dimensional code according to the current two-dimensional code display instruction. Analyze the original two-dimensional code to obtain the data information of the original two-dimensional code.

然后,根据原始二维码的数据信息、特征字符码和特征字符码的显示参数,创建目标二维码。目标二维码的显示尺寸可以根据特征字符码的显示尺寸,按预设的比例获取。Then, according to the data information of the original two-dimensional code, the characteristic character code and the display parameters of the characteristic character code, a target two-dimensional code is created. The display size of the target two-dimensional code can be obtained according to a preset ratio according to the display size of the characteristic character code.

特征字符码位于目标二维码的填充区域内,以相应的显示参数显示,目标二维码的数据码以初始颜色黑色显示,突出显示特征字符码。The characteristic character code is located in the filling area of the target two-dimensional code, and is displayed with corresponding display parameters. The data code of the target two-dimensional code is displayed in the initial color black, and the characteristic character code is highlighted.

然后,创建模块300对创建的目标二维码进行掩膜处理,生成目标二维码,使生成的目标二维码黑白显示均衡,数据读取可靠性增强。参照图2,本实施例中目标二维码可有多种预设掩膜方案,掩膜处理时可随机选自掩膜方案,根据相应的掩膜公式进行掩膜处理。Then, the creating module 300 performs masking processing on the created target two-dimensional code to generate the target two-dimensional code, so that the generated target two-dimensional code can be displayed in black and white to enhance the reliability of data reading. Referring to FIG. 2 , in this embodiment, the target two-dimensional code can have multiple preset masking schemes, which can be randomly selected during masking processing, and the masking process is performed according to the corresponding masking formula.

由此,创建模块300得到生成的目标二维码。Thus, the creation module 300 obtains the generated target two-dimensional code.

显示模块400,用于显示所述生成的目标二维码。The display module 400 is configured to display the generated target two-dimensional code.

在得到创建模块300生成的二维码后,显示模块400按预设的规则排列显示生成的二维码。After obtaining the two-dimensional code generated by the creating module 300, the display module 400 arranges and displays the generated two-dimensional code according to preset rules.

具体的,作为一种实施方式,首先,显示模块400读取当前已生成的二维码。当前已生成的二维码可以是一个,也可以是多个。Specifically, as an implementation manner, firstly, the display module 400 reads the currently generated two-dimensional code. There can be one or more QR codes currently generated.

然后,显示模块400按照预设的排列规则,在预设的二维码显示区域内,显示生成的二维码。Then, the display module 400 displays the generated two-dimensional code in the preset two-dimensional code display area according to the preset arrangement rule.

预设的二维码排列规则可以是根据二维码图标的热度作为排列顺序,例如:预设时间内二维码图标的点击生成次数越高,优先排列,显示在智能电视屏幕的左边;预设时间内二维码相关应用的点击次数越高,优先排列,显示在智能电视屏幕的左边;预设时间内,用户在二维码相关应用的停留时间越长,优先排列,显示在智能电视屏幕的左边;预设时间内,用户扫描次数越多的二维码,优先排列,显示在智能电视屏幕左边。当然,预设的二维码排列规则可以是其他排列顺序,可根据实际需要灵活设定。The preset two-dimensional code arrangement rule can be based on the popularity of the two-dimensional code icon as the order of arrangement, for example: the higher the number of times the two-dimensional code icon is clicked and generated within the preset time, the priority will be arranged and displayed on the left side of the smart TV screen; The higher the number of clicks on QR code-related applications within the preset time, they will be prioritized and displayed on the left side of the smart TV screen; the longer the user stays in QR code-related applications within the preset time, they will be prioritized and displayed on the smart TV The left side of the screen; within the preset time, the QR code that the user scans more times will be prioritized and displayed on the left side of the smart TV screen. Of course, the preset two-dimensional code arrangement rules can be other arrangement orders, which can be flexibly set according to actual needs.

由此,显示模块400显示已生成的二维码,供用户扫描使用。由于生成的二维码在显示时均有对应的特征字符码做标识,可使用户在扫描二维码之前即可获知二维码的含义,扫描当前需要的二维码,得到数据信息。Thus, the display module 400 displays the generated two-dimensional code for users to scan. Since the generated two-dimensional codes are marked with corresponding characteristic character codes when displayed, users can know the meaning of the two-dimensional codes before scanning the two-dimensional codes, scan the two-dimensional codes currently needed, and obtain data information.

在本实施例中,接收模块100通过接收二维码显示指令,并根据二维码显示指令获取对应的特征字符码;参数模块200根据预设的二维码显示区域和显示灰阶,获取特征字符码的显示参数;然后,创建模块300获取原始二维码的数据信息,根据原始二维码的数据信息、特征字符码和显示参数生成目标二维码,由特征字符码标识生成的不同二维码;然后显示模块400按预设的规则显示生成的目标二维码,使用户能够迅速的分辨不同二维码。本实施例增强了二维码的辨识度,实现了用户在扫描二维码时能够预先获知二维码的含义,辨别不同的二维码,提升了用户体验。In this embodiment, the receiving module 100 receives the two-dimensional code display instruction, and obtains the corresponding characteristic character code according to the two-dimensional code display instruction; the parameter module 200 obtains the characteristic character code according to the preset two-dimensional code display area and display gray scale. The display parameters of the character code; then, the creation module 300 obtains the data information of the original two-dimensional code, generates the target two-dimensional code according to the data information, the characteristic character code and the display parameters of the original two-dimensional code, and generates different two-dimensional codes by the characteristic character code identification two-dimensional code; then the display module 400 displays the generated target two-dimensional code according to preset rules, so that the user can quickly distinguish between different two-dimensional codes. This embodiment enhances the recognition of the two-dimensional code, enabling the user to know the meaning of the two-dimensional code in advance when scanning the two-dimensional code, and distinguish different two-dimensional codes, thereby improving the user experience.

进一步的,参照图9,本发明二维码生成显示装置第二实施例提供一种二维码生成显示装置,基于上述图8所示的实施例,所述特征字符码的显示参数包括所述特征字符码的显示尺寸和增益颜色,所述参数模块200包括:Further, referring to FIG. 9 , the second embodiment of the two-dimensional code generation and display device of the present invention provides a two-dimensional code generation and display device. Based on the above-mentioned embodiment shown in FIG. 8 , the display parameters of the characteristic character code include the Display size and gain color of characteristic character code, described parameter module 200 comprises:

尺寸单元210,用于根据预设的二维码显示区域,获取所述特征字符码的显示尺寸。The size unit 210 is configured to acquire the display size of the characteristic character code according to the preset display area of the two-dimensional code.

在获取二维码显示指令对应的特征字符码后,尺寸单元210获取生成目标二维码时特征字符码的显示尺寸。After obtaining the characteristic character code corresponding to the two-dimensional code display instruction, the size unit 210 obtains the display size of the characteristic character code when the target two-dimensional code is generated.

具体的,作为一种实施方式,首先,尺寸单元210读取预设的目标二维码的显示区域,得到预设的目标二维码显示区域的尺寸。Specifically, as an implementation manner, firstly, the size unit 210 reads the preset display area of the target two-dimensional code to obtain the size of the preset target two-dimensional code display area.

然后,尺寸单元210根据目标二维码显示区域的尺寸,按照预设的比例,获取特征字符码的放大倍数。Then, the size unit 210 obtains the magnification factor of the characteristic character code according to the size of the display area of the target two-dimensional code and according to a preset ratio.

然后,尺寸单元210将特征字符码的初始尺寸按照得到的放大倍数进行放大,得到特征字符码的显示尺寸。Then, the size unit 210 enlarges the initial size of the characteristic character code according to the obtained magnification factor to obtain the display size of the characteristic character code.

增益单元220,用于根据预设的显示灰阶,获取所述特征字符码的增益颜色。The gain unit 220 is configured to acquire the gain color of the characteristic character code according to a preset display gray scale.

在获取二维码显示指令对应的特征字符码后,增益单元220获取显示目标二维码时特征字符码的增益颜色。After obtaining the characteristic character code corresponding to the two-dimensional code display instruction, the gain unit 220 obtains the gain color of the characteristic character code when displaying the target two-dimensional code.

具体的,作为一种实施方式,增益单元220预设有智能电视屏幕的显示灰阶,灰阶值与智能电视能够表现的不同层次的颜色亮度一一对应。Specifically, as an implementation manner, the gain unit 220 is preset with display gray scales of the smart TV screen, and the gray scale values correspond to different levels of color brightness that the smart TV can display.

首先,取当前二维码显示指令的总数为n,增益单元220根据当前二维码显示指令的总数n,随机选取n个不同的灰阶值。若随机得到的灰阶值有任意两个为相同的,则重新选取,直至得到n个不同的灰阶值。First, take the total number of current two-dimensional code display instructions as n, and the gain unit 220 randomly selects n different gray scale values according to the total number n of current two-dimensional code display instructions. If any two of the randomly obtained gray scale values are the same, reselect until n different gray scale values are obtained.

由此,增益单元220得到每个二维码显示指令对应的灰阶值。Thus, the gain unit 220 obtains the grayscale value corresponding to each two-dimensional code display instruction.

二维码指令对应的特征字符码初始颜色为预设颜色,增益单元220填充灰阶值对应的灰度,得到每个特征字符码显示时的增益颜色。The initial color of the characteristic character code corresponding to the two-dimensional code instruction is a preset color, and the gain unit 220 fills the gray scale corresponding to the gray scale value to obtain the gain color when each characteristic character code is displayed.

特征字符码显示的增益颜色用于突出显示特征字符码,区别同时显示的不同二维码。The gain color displayed by the characteristic character code is used to highlight the characteristic character code and distinguish different QR codes displayed at the same time.

在本实施例中,特征字符码的显示参数包括所述特征字符码的显示尺寸和增益颜色;尺寸单元210根据预设的二维码显示区域,获取特征字符码的显示尺寸;增益单元220根据预设的显示灰阶,获取特征字符码的增益颜色,得到特征字符码的显示参数。本实施例获取了生成二维码时,特征字符码的显示尺寸和增益颜色,使得特征字符码能够突出显示,增强了二维码的辨识度,实现了用户在扫描二维码时能够预先获知二维码的含义,辨别不同的二维码,提升了用户体验。In this embodiment, the display parameters of the characteristic character code include the display size and gain color of the characteristic character code; the size unit 210 obtains the display size of the characteristic character code according to the preset two-dimensional code display area; the gain unit 220 obtains the display size of the characteristic character code according to Preset display grayscale, obtain the gain color of the characteristic character code, and obtain the display parameters of the characteristic character code. This embodiment obtains the display size and gain color of the characteristic character code when generating the two-dimensional code, so that the characteristic character code can be highlighted, the recognition of the two-dimensional code is enhanced, and the user can know in advance when scanning the two-dimensional code The meaning of the QR code, distinguishing different QR codes, and improving the user experience.

进一步的,参照图10,本发明二维码生成显示装置第三实施例提供一种二维码生成显示装置,基于上述图9所示的实施例,所述尺寸单元210包括:Further, referring to FIG. 10 , the third embodiment of the two-dimensional code generation and display device of the present invention provides a two-dimensional code generation and display device. Based on the above-mentioned embodiment shown in FIG. 9 , the size unit 210 includes:

获取子单元211,用于根据预设的二维码显示区域,获取所述二维码显示区域的水平尺寸。The acquiring subunit 211 is configured to acquire the horizontal size of the two-dimensional code display area according to the preset two-dimensional code display area.

在获取生成目标二维码时特征字符码的显示尺寸时,具体的,作为一种实施方式,首先,获取子单元211根据预设的目标二维码显示区域,获取目标二维码显示区域水平方向上的显示尺寸,得到目标二维码显示区域的水平尺寸。When acquiring the display size of the characteristic character code when the target two-dimensional code is generated, specifically, as an embodiment, first, the acquiring subunit 211 acquires the display area level of the target two-dimensional code according to the preset target two-dimensional code display area. The display size in the direction, get the horizontal size of the target QR code display area.

目标二维码显示区域的水平尺寸为获取子单元211根据屏幕中所需要显示的目标二维码数量、显示区域的尺寸进行预先规划后,得到的分配给目标二维码的显示区域的水平尺寸。The horizontal size of the target two-dimensional code display area is the horizontal size of the display area assigned to the target two-dimensional code after the acquisition subunit 211 pre-plans according to the number of target two-dimensional codes to be displayed on the screen and the size of the display area .

需要说明的是,屏幕中目标二维码显示区域的规划可以是预设的,也可以接收二维码显示指令后根据智能电视屏幕所需要显示的目标二维码数量、显示区域的尺寸进行规划得到的,可根据实际需要灵活设置。It should be noted that the planning of the target QR code display area on the screen can be preset, or can be planned according to the number of target QR codes to be displayed on the smart TV screen and the size of the display area after receiving the QR code display command can be flexibly set according to actual needs.

其中,目标二维码显示区域的尺寸的表征可以像素为单位。Wherein, the dimension of the display area of the target two-dimensional code can be expressed in units of pixels.

倍数子单元212,用于根据所述二维码显示区域的水平尺寸,获取所述特征字符码的放大倍数。The multiplier subunit 212 is configured to obtain the magnification of the characteristic character code according to the horizontal size of the two-dimensional code display area.

在获取子单元211获取目标二维码显示区域的水平尺寸后,倍数子单元212根据目标二维码显示区域的尺寸,按照预设的比例,获取对应的特征字符码的放大倍数。After the acquisition subunit 211 acquires the horizontal size of the target two-dimensional code display area, the multiplier subunit 212 acquires the magnification factor of the corresponding characteristic character code according to the size of the target two-dimensional code display area and according to a preset ratio.

具体的,作为一种实施方式,倍数子单元212可以获取目标二维码显示区域水平尺寸的预设比例值,作为特征字符码和本次二维码显示指令所创建的二维码的尺寸放大倍数。Specifically, as an implementation, the multiplier subunit 212 can acquire the preset ratio value of the horizontal size of the target two-dimensional code display area, as the characteristic character code and the size enlargement of the two-dimensional code created by this two-dimensional code display instruction. multiple.

其中,预设比例值可以是十分之一,也可以是其他数值,可根据实际需要灵活设置。Wherein, the preset ratio value can be one-tenth, or other values, which can be flexibly set according to actual needs.

由此,倍数子单元212得到特征字符码的放大倍数。Thus, the multiplier subunit 212 obtains the magnification of the characteristic character code.

放大子单元213,用于根据所述特征字符码的放大倍数放大所述特征字符码的初始尺寸,得到所述特征字符码的显示尺寸。The enlargement subunit 213 is configured to enlarge the initial size of the characteristic character code according to the magnification factor of the characteristic character code to obtain the display size of the characteristic character code.

在倍数子单元212获取特征字符码的放大倍数后,放大子单元213可以根据放大倍数,对特征字符码显示的初始尺寸进行放大。After the multiplier subunit 212 acquires the magnification factor of the characteristic character code, the magnification subunit 213 can enlarge the initial size displayed by the characteristic character code according to the magnification factor.

特征字符码的原始尺寸为系统预设值,例如:3×3的像素矩阵。The original size of the characteristic character code is the system preset value, for example: 3×3 pixel matrix.

放大子单元213将特征字符码的水平尺寸和竖直尺寸均按照放大倍数进行放大,获取特征字符码放大后的尺寸。The enlargement subunit 213 enlarges both the horizontal size and the vertical size of the characteristic character code according to the magnification factor, and obtains the enlarged size of the characteristic character code.

为保持生成目标二维码时,特征字符码在目标二维码填充区域内,放大子单元213可以使用特征字符码的放大倍数,放大目标二维码的初始尺寸,使目标二维码和特征字符码的尺寸保持同步。In order to keep generating the target two-dimensional code, the characteristic character code is in the filling area of the target two-dimensional code, the enlargement subunit 213 can use the magnification factor of the characteristic character code to enlarge the initial size of the target two-dimensional code, so that the target two-dimensional code and the characteristic The dimensions of the character codes are kept in sync.

以当前二维码显示指令的目标二维码依次为视频网站Youtubu的链接二维码和视频网站Iqiyi的链接二维码,当前目标二维码的类型为QR(Quick Response,快速反应)二维码进行举例说明。The target two-dimensional code of the current two-dimensional code display command is the link two-dimensional code of the video website Youtube and the link two-dimensional code of the video website Iqiyi in turn, and the type of the current target two-dimensional code is QR (Quick Response, quick response) two-dimensional code for example.

首先,获取子单元211获取视频网站Youtubu的链接二维码的显示区域水平尺寸,为40个像素;然后,倍数子单元212获取40个像素的十分之一,得到特征字符码的放大倍数为4;然后,放大子单元213将特征字符码初始显示尺寸的水平方向和竖直方向同时放大四倍,得到视频网站Youtubu的链接二维码的特征字符码显示尺寸。At first, obtaining subunit 211 obtains the display area horizontal size of the link two-dimensional code of video site Youtube, which is 40 pixels; then, multiple subunit 212 obtains one-tenth of 40 pixels, and obtains the magnification factor of the characteristic character code as 4; Then, enlargement subunit 213 enlarges the horizontal direction and the vertical direction of characteristic character code initial display size four times simultaneously, obtains the characteristic character code display size of the link two-dimensional code of video website Youtube.

获取子单元211获取视频网站Iqiyi的链接二维码的显示区域水平尺寸,为20个像素;然后,倍数子单元212获取20个像素的十分之一,得到特征字符码的放大倍数为2;然后,放大子单元213将特征字符码初始显示尺寸的水平方向和竖直方向同时放大四倍,得到视频网站Iqiyi的链接二维码的特征字符码显示尺寸。Obtaining subunit 211 obtains the display area horizontal dimension of the link two-dimensional code of video website Iqiyi, is 20 pixels; Then, multiple subunit 212 obtains one-tenth of 20 pixels, and the magnification factor that obtains characteristic character code is 2; Then, the enlargement subunit 213 amplifies the horizontal direction and the vertical direction of the initial display size of the characteristic character code by four times simultaneously, and obtains the characteristic character code display size of the link two-dimensional code of the video website Iqiyi.

在获取特征字符码的放大倍数时,可使用如下算法:When obtaining the magnification of the characteristic character code, the following algorithm can be used:

QR_X_Size(x1)=40,获取视频网站Youtubu的链接二维码显示区域水平方向上的尺寸:40;QR_X_Size(x1)=40, obtain the link QR code display area size of the video site Youtube in the horizontal direction: 40;

Adap_QR(x1)=QR_X_Size(x1)/10=4,获取放大倍数:4。Adap_QR(x1)=QR_X_Size(x1)/10=4, obtain the magnification factor: 4.

QR_X_Size(x2)=20,获取视频网站Iqiyi的链接二维码显示区域水平方向上的尺寸:20;QR_X_Size(x2)=20, obtain the link QR code display area size of the video website Iqiyi in the horizontal direction: 20;

Adap_QR(x2)=QR_X_Size(x2)/10=2,获取放大倍数:2。Adap_QR(x2)=QR_X_Size(x2)/10=2, obtain magnification: 2.

在本实施例中,获取子单元211通过预设的二维码显示区域,获取二维码显示区域的水平尺寸;然后,倍数子单元212根据二维码显示区域的水平尺寸,获取特征字符码的放大倍数;然后,放大子单元213根据特征字符码的放大倍数放大特征字符码的初始尺寸,得到特征字符码的显示尺寸。本实施例获取了特征字符码的显示尺寸,生成二维码时能够以适合的比例显示特征字符码,使生成的二维码保持美观,便于用户识别不同的二维码。In this embodiment, the acquisition subunit 211 acquires the horizontal size of the two-dimensional code display area through the preset two-dimensional code display area; then, the multiple subunit 212 acquires the characteristic character code according to the horizontal size of the two-dimensional code display area The magnification factor of the characteristic character code; then, the enlargement subunit 213 enlarges the initial size of the characteristic character code according to the magnification factor of the characteristic character code to obtain the display size of the characteristic character code. In this embodiment, the display size of the characteristic character code is obtained, and the characteristic character code can be displayed at an appropriate ratio when generating a two-dimensional code, so that the generated two-dimensional code remains beautiful, and it is convenient for users to identify different two-dimensional codes.

进一步的,参照图11,本发明二维码生成显示装置第四实施例提供一种二维码生成显示装置,基于上述图9或10所示的实施例(本实施例以图10为例),所述增益单元220包括:Further, referring to FIG. 11 , the fourth embodiment of the device for generating and displaying two-dimensional codes of the present invention provides a device for generating and displaying two-dimensional codes, based on the above-mentioned embodiment shown in FIG. 9 or 10 (this embodiment takes FIG. 10 as an example) , the gain unit 220 includes:

等分子单元221,用于将预设的显示灰阶进行灰阶值等分,得到等分的灰阶值。The equal molecule unit 221 is configured to divide the preset display gray scale into equal parts to obtain equal parts.

在获取二维码显示指令对应的特征字符码后,增益单元220获取显示目标二维码时特征字符码的增益颜色。After obtaining the characteristic character code corresponding to the two-dimensional code display instruction, the gain unit 220 obtains the gain color of the characteristic character code when displaying the target two-dimensional code.

具体的,作为一种实施方式,等分子单元221预设有智能电视屏幕显示的显示灰阶,智能电视屏幕的显示灰阶使用灰阶值表征,灰阶值与智能电视屏幕能够表现的不同层次的颜色亮度一一对应。Specifically, as an implementation mode, the molecular unit 221 is preset with the display gray scale displayed on the screen of the smart TV, and the gray scale displayed on the screen of the smart TV is represented by a gray scale value, and the gray scale value is different from the different levels that the screen of the smart TV can express. One-to-one correspondence of color brightness.

首先,等分子单元221获取当前二维码显示指令的总数,取当前二维码显示指令总数为n。First, the iso-molecular unit 221 acquires the total number of current two-dimensional code display instructions, and takes the total number of current two-dimensional code display instructions as n.

然后,将获取的灰阶值按照原有的排列次序进行n等分,得到n等分的灰阶值。Then, the acquired gray scale values are divided into n equal parts according to the original arrangement order to obtain n equal divided gray scale values.

随机子单元222,用于获取所述每等分灰阶值的随机灰阶值。The random subunit 222 is configured to acquire the random gray scale value of each divided gray scale value.

在等分灰阶值后,随机子单元222在每等分灰阶值中,随机选取灰阶值,得到随机灰阶值。After the gray-scale values are equally divided, the random subunit 222 randomly selects gray-scale values in each divided gray-scale value to obtain random gray-scale values.

若得到的任一两个随机灰阶值在同一个等分灰阶值中,则随机子单元222重新选取随机灰阶值,直至获取的随机灰阶值在不同的等分灰阶值中。If any two obtained random gray scale values are in the same equally divided gray scale value, the random subunit 222 reselects the random gray scale value until the obtained random gray scale values are in different equally divided gray scale values.

由此,随机子单元222得到与不同的二维码显示指令分别对应的n个随机灰阶值。Thus, the random subunit 222 obtains n random grayscale values respectively corresponding to different two-dimensional code display instructions.

增益子单元223,用于根据所述获取的随机灰阶值,得到所述特征字符码的增益颜色。The gain subunit 223 is configured to obtain the gain color of the characteristic character code according to the obtained random gray scale value.

在获取每个二维码显示指令对应的随机灰阶值后,随机灰阶值即为特征字符码的颜色增益值。After obtaining the random grayscale value corresponding to each two-dimensional code display instruction, the random grayscale value is the color gain value of the characteristic character code.

增益子单元223将二维码显示指令对应的特征字符码初始颜色,填充随机灰阶值对应的灰度,得到显示特征字符码时,特征字符码的增益颜色。The gain sub-unit 223 fills the initial color of the characteristic character code corresponding to the two-dimensional code display instruction with the gray scale corresponding to the random gray scale value to obtain the gain color of the characteristic character code when displaying the characteristic character code.

在本实施例中,等分子单元221通过将预设的显示灰阶进行灰阶值等分,得到等分的灰阶值;然后随机子单元222获取每等分灰阶值的随机灰阶值;然后,增益子单元223根据获取的随机灰阶值,得到特征字符码的增益颜色。在本实施例中,每个特征字符码的随机灰阶值均在不同的等分灰阶值中,使特征字符码的增益颜色能够产生明显区别,增强了不同二维码的辨识度,使用户更容易辨别不同的二维码。In this embodiment, the isomolecular unit 221 obtains the equally divided gray scale value by dividing the preset display gray scale into equal gray scale values; then the random subunit 222 obtains a random gray scale value for each equally divided gray scale value ; Then, the gain subunit 223 obtains the gain color of the characteristic character code according to the obtained random gray scale value. In this embodiment, the random gray scale value of each characteristic character code is in different equally divided gray scale values, so that the gain color of the characteristic character code can be clearly distinguished, and the recognition degree of different two-dimensional codes is enhanced, so that It is easier for users to distinguish different QR codes.

进一步的,参照图12,本发明二维码生成显示装置第五实施例提供一种二维码生成显示装置,基于上述图11所示的实施例,所述原始二维码的数据信息包括原始二维码的定位图案位置、版本信息、数据码和纠错码,所述创建模块300包括:Further, referring to FIG. 12, the fifth embodiment of the two-dimensional code generation and display device of the present invention provides a two-dimensional code generation and display device. Based on the embodiment shown in FIG. 11, the data information of the original two-dimensional code includes the original The positioning pattern position, version information, data code and error correction code of the two-dimensional code, the creation module 300 includes:

纠错单元310,用于获取原始二维码的数据信息,根据所述纠错码校正所述数据码,获取校正后的数据码。The error correction unit 310 is configured to obtain data information of the original two-dimensional code, correct the data code according to the error correction code, and obtain a corrected data code.

纠错单元310根据二维码显示指令,查找读取本次二维码显示指令对应的原始二维码。The error correction unit 310 searches and reads the original two-dimensional code corresponding to the current two-dimensional code display instruction according to the two-dimensional code display instruction.

获取原始二维码后,纠错单元310解析原始二维码,得到原始二维码携带的数据信息。其中,原始二维码携带的数据信息可以包括原始二维码的定位图案位置、版本信息、数据码和纠错码,还可以包括其他信息,可根据实际需要灵活设定。After acquiring the original two-dimensional code, the error correction unit 310 analyzes the original two-dimensional code to obtain the data information carried by the original two-dimensional code. Wherein, the data information carried by the original two-dimensional code may include the positioning pattern position of the original two-dimensional code, version information, data code and error correction code, and may also include other information, which can be flexibly set according to actual needs.

获取本次二维码生成指令对应的原始二维码数据信息后,原始二维码的数据信息包括原始二维码的定位图案位置、版本信息、数据码和纠错码,电视系统校正得到的数据码。After obtaining the original two-dimensional code data information corresponding to this two-dimensional code generation instruction, the original two-dimensional code data information includes the positioning pattern position, version information, data code and error correction code of the original two-dimensional code, and the TV system corrected data code.

具体的,作为一种实施方式,纠错单元310获取原始二维码的纠错码和数据码,使用纠错码对数据码进行校正,避免数据传输过程中产生的错误。Specifically, as an implementation manner, the error correction unit 310 obtains the error correction code and the data code of the original two-dimensional code, uses the error correction code to correct the data code, and avoids errors generated during data transmission.

由此,纠错单元310获取校正后的数据码。Thus, the error correction unit 310 obtains the corrected data code.

获取单元320,用于根据所述校正后的数据码,获取第二纠错码。The obtaining unit 320 is configured to obtain a second error correction code according to the corrected data code.

获取单元320根据当前得到的校正后的数据码,获取第二纠错码,用于生成目标二维码。The obtaining unit 320 obtains a second error correction code according to the currently obtained corrected data code, for generating a target two-dimensional code.

具体的,作为一种实施方式,首先,获取单元320对照预设的字符编码,获取校正后数据码的字符码。Specifically, as an implementation manner, firstly, the obtaining unit 320 compares the preset character codes to obtain the character code of the corrected data code.

然后,获取单元320对获取的字符码进行取反,得到第二纠错码。Then, the acquiring unit 320 inverts the acquired character code to obtain the second error correction code.

以视频网站数据www.iqiyi.com进行举例说明,获取单元320首先获取视频网站数据的ASCII码,然后取反,将字符码0取反为1,将1取反为0,将得到的取反后的字符码作为第二纠错码。Taking the video website data www.iqiyi.com as an example, the obtaining unit 320 first obtains the ASCII code of the video website data, and then inverts the character code 0 to 1, and 1 to 0, and then inverts the obtained The following character code is used as the second error correction code.

创建单元330,用于根据所述原始二维码的定位图案位置和版本信息、所述校正后的数据码、所述第二纠错码、所述特征字符码和所述显示参数,创建目标二维码。The creation unit 330 is configured to create a target according to the positioning pattern position and version information of the original two-dimensional code, the corrected data code, the second error correction code, the characteristic character code and the display parameters QR code.

具体的,作为一种实施方式,首先,创建单元330读取原始二维码的版本信息,作为目标二维码的版本信息,并根据目标二维码的版本得到目标二维码的初始尺寸。然后,使用特征字符码显示尺寸的放大倍数,放大目标二维码的初始尺寸,得到目标二维码的显示尺寸,使目标二维码和特征字符码的显示尺寸保持同步。Specifically, as an implementation manner, first, the creation unit 330 reads the version information of the original two-dimensional code as the version information of the target two-dimensional code, and obtains the initial size of the target two-dimensional code according to the version of the target two-dimensional code. Then, using the magnification factor of the display size of the characteristic character code, the initial size of the target two-dimensional code is enlarged to obtain the display size of the target two-dimensional code, so that the display size of the target two-dimensional code and the characteristic character code are kept in sync.

然后,创建单元330读取原始二维码的定位图案位置,定位目标二维码的数据填充区域。Then, the creation unit 330 reads the positioning pattern position of the original two-dimensional code, and locates the data filling area of the target two-dimensional code.

然后,将获取的原始二维码的数据码、第二纠错码、版本信息进行填充区域的填充,将本次二维码显示指令对应的特征字符码按照相应的显示参数进行填充区域的填充,根据目标二维码的显示尺寸,创建目标二维码。Then, fill the filling area with the acquired data code, second error correction code, and version information of the original two-dimensional code, and fill the filling area with the characteristic character code corresponding to the two-dimensional code display instruction according to the corresponding display parameters , according to the display size of the target QR code, create the target QR code.

由此,创建单元330得到创建的目标二维码。Thus, the creation unit 330 obtains the created target two-dimensional code.

以当前二维码显示指令的目标二维码依次为视频网站Youtubu的链接二维码和视频网站Iqiyi的链接二维码,当前目标二维码的类型为QR二维码进行举例说明。The target two-dimensional code of the current two-dimensional code display instruction is the link two-dimensional code of the video website Youtube and the link two-dimensional code of the video website Iqiyi in sequence, and the type of the current target two-dimensional code is a QR two-dimensional code for example.

在创建目标二维码时,可使用如下算法:When creating the target QR code, the following algorithm can be used:

Creat_QR_Rev(x1)=Y,创建单元330将视频网站Youtube链接二维码的原始二维码和特征字符码Y按照显示参数生成相应的二维码图标。Create_QR_Rev(x1)=Y, the creation unit 330 generates the corresponding QR code icon according to the display parameters from the original QR code of the video website Youtube link QR code and the characteristic character code Y.

Creat_QR_Rev(x2)=I,创建单元330将视频网站Iqiyi链接二维码的原始二维码和特征字符码I按照显示参数生成相应的二维码图标。Create_QR_Rev(x2)=1, the creation unit 330 generates the corresponding two-dimensional code icon according to the display parameters from the original two-dimensional code and the characteristic character code I of the video website Iqiyi link two-dimensional code.

校正单元340,用于根据所述第二纠错码,校正所述创建的二维码,生成目标二维码。The correction unit 340 is configured to correct the created two-dimensional code according to the second error correction code to generate a target two-dimensional code.

具体的,作为一种实施方式,校正单元340读取第二纠错码,和创建单元330创建的目标二维码的当前数据码。Specifically, as an implementation manner, the correction unit 340 reads the second error correction code and the current data code of the target two-dimensional code created by the creation unit 330 .

然后,对照预设的字符编码,校正单元340将第二纠错码的字符码取反后,减去当前数据码的字符码,若得到的值为0,则本次数据传输正常;若得到的值不为0,则使用第二纠错码校正本次创建的目标二维码。Then, according to the preset character code, the correcting unit 340 inverts the character code of the second error correction code, and then subtracts the character code of the current data code. If the obtained value is 0, the current data transmission is normal; If the value is not 0, use the second error correction code to correct the target QR code created this time.

然后,对创建的目标二维码选取预设的掩膜方案进行掩膜处理,生成目标二维码。Then, a preset mask scheme is selected for the created target two-dimensional code to perform mask processing to generate the target two-dimensional code.

生成的目标二维码包含有特征字符码,特征字符码位于目标二维码的填充区域内,不影响用户扫描目标二维码时数据的读取。The generated target two-dimensional code contains a characteristic character code, and the characteristic character code is located in the filling area of the target two-dimensional code, which does not affect the reading of data when the user scans the target two-dimensional code.

参照图7,以当前二维码显示指令的目标二维码依次为视频网站Youtubu的链接二维码和视频网站Iqiyi的链接二维码,当前目标二维码的类型为QR二维码进行举例说明。Referring to Figure 7, the target two-dimensional code of the current two-dimensional code display command is the link two-dimensional code of the video website Youtube and the link two-dimensional code of the video website Iqiyi in sequence, and the type of the current target two-dimensional code is a QR two-dimensional code for example illustrate.

得到的视频网站Youtubu的链接二维码填充区域内显示有特征字符码Y;得到的视频网站Iqiyi的链接二维码填充区域内显示有特征字符码I。A characteristic character code Y is displayed in the filled area of the two-dimensional code of the link of the obtained video website Youtube; a characteristic character code I is displayed in the filled area of the two-dimensional code of the link of the obtained video website Iqiyi.

在本实施例中,纠错单元310获取原始二维码的数据信息,原始二维码的数据信息包括原始二维码的定位图案位置、版本信息、数据码和纠错码;然后,纠错单元310根据纠错码校正数据码,获取校正后的数据码;然后,获取单元320根据校正后的数据码,获取第二纠错码;然后,创建单元330根据原始二维码的定位图案位置和版本信息、校正后的数据码、第二纠错码、特征字符码和显示参数,创建目标二维码;然后,校正单元340根据第二纠错码,校正创建的目标二维码,生成目标二维码。本实施例通过对原始二维码和目标二维码的校正,避免了数据传输过程中可能产生的错误,增强了二维码的准确性和辨识度,实现了用户在扫描二维码时能够预先获知二维码的含义,辨别不同的二维码,提升了用户体验。In this embodiment, the error correction unit 310 acquires the data information of the original two-dimensional code, and the data information of the original two-dimensional code includes the positioning pattern position, version information, data code and error correction code of the original two-dimensional code; then, the error correction The unit 310 corrects the data code according to the error correction code, and obtains the corrected data code; then, the obtaining unit 320 obtains the second error correction code according to the corrected data code; and the version information, the corrected data code, the second error correction code, the characteristic character code and the display parameters to create the target two-dimensional code; then, the correction unit 340 corrects the created target two-dimensional code according to the second error correction code to generate Target QR code. In this embodiment, by correcting the original two-dimensional code and the target two-dimensional code, errors that may occur during data transmission are avoided, the accuracy and recognition of the two-dimensional code are enhanced, and the user can scan the two-dimensional code. Knowing the meaning of the two-dimensional code in advance and distinguishing different two-dimensional codes improves the user experience.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (6)

1. a kind of Quick Response Code generates display methods, which is characterized in that the Quick Response Code generates display methods and includes the following steps:
Quick Response Code idsplay order is received, and tagged word symbol is obtained according to the Quick Response Code idsplay order;
According to preset Quick Response Code display area and display grayscale, the display parameters of the tagged word symbol are obtained;
The data information for obtaining original two dimensional code, according to the data information of the original two dimensional code, the tagged word symbol and institute It states display parameters and generates target Quick Response Code;
Show the target Quick Response Code of the generation;
The display parameters of the tagged word symbol include the display size and gain color of the tagged word symbol, and the basis is pre- If Quick Response Code display area and display grayscale, the step of display parameters for obtaining the tagged word symbol include:
According to preset Quick Response Code display area, the display size of the tagged word symbol is obtained;
According to preset display grayscale, the gain color of the tagged word symbol is obtained;
It is described according to preset display grayscale, the step of gain color for obtaining the tagged word symbol includes:
Preset display grayscale is subjected to grayscale value decile, obtains the grayscale value of decile;
Obtain the random grayscale value of the grayscale value of the decile;
According to the random grayscale value of the acquisition, the gain color of the tagged word symbol is obtained.
2. Quick Response Code as described in claim 1 generates display methods, which is characterized in that described to be shown according to preset Quick Response Code The step of region, the display size for obtaining the tagged word symbol includes:
According to preset Quick Response Code display area, the horizontal size of the Quick Response Code display area is obtained;
According to the horizontal size of the Quick Response Code display area, the amplification factor of the tagged word symbol is obtained;
The original dimension for amplifying the tagged word symbol according to the amplification factor of the tagged word symbol, obtains the characteristic character The display size of code.
3. Quick Response Code as described in claim 1 generates display methods, which is characterized in that the data information of the original two dimensional code Registration pattern position, version information, numeric data code and error correcting code including original two dimensional code, the data for obtaining original two dimensional code Information generates target Quick Response Code according to the data information of the original two dimensional code, the tagged word symbol and the display parameters The step of include:
The data information for obtaining original two dimensional code corrects the numeric data code according to the error correcting code, obtains the numeric data code after correction;
According to the numeric data code after the correction, the second error correcting code is obtained;
According to behind the registration pattern position of the original two dimensional code and version information, the correction numeric data code, described second entangle Error code, the tagged word symbol and the display parameters create target Quick Response Code;
According to second error correcting code, the Quick Response Code of the establishment is corrected, generates target Quick Response Code.
4. a kind of Quick Response Code generates display device, which is characterized in that the Quick Response Code generates display device and includes:
Receiving module obtains tagged word symbol for receiving Quick Response Code idsplay order, and according to the Quick Response Code idsplay order;
Parameter module, for according to preset Quick Response Code display area and display grayscale, obtaining the display of the tagged word symbol Parameter;
Creation module, the data information for obtaining original two dimensional code, according to the data information of the original two dimensional code, the spy It levies character code and the display parameters generates target Quick Response Code;
Display module, the target Quick Response Code for showing the generation;
The display parameters of the tagged word symbol include the display size and gain color of the tagged word symbol, the parameter mould Block includes:
Dimension cells, for according to preset Quick Response Code display area, obtaining the display size of the tagged word symbol;
Gain unit, for according to preset display grayscale, obtaining the gain color of the tagged word symbol;
The gain unit includes:
Decile subelement obtains the grayscale value of decile for preset display grayscale to be carried out grayscale value decile;
Random subelement, the random grayscale value of the grayscale value for obtaining the decile;
Gain subelement obtains the gain color of the tagged word symbol for the random grayscale value according to the acquisition.
5. Quick Response Code as claimed in claim 4 generates display device, which is characterized in that the dimension cells include:
Subelement is obtained, for according to preset Quick Response Code display area, obtaining the horizontal size of the Quick Response Code display area;
Multiple subelement obtains the amplification of the tagged word symbol for the horizontal size according to the Quick Response Code display area Multiple;
Amplification subelement, the original dimension for amplifying the tagged word symbol according to the amplification factor of the tagged word symbol, Obtain the display size of the tagged word symbol.
6. Quick Response Code as claimed in claim 4 generates display device, which is characterized in that the data information of the original two dimensional code Registration pattern position, version information, numeric data code and error correcting code including original two dimensional code, the creation module include:
Error correction unit, the data information for obtaining original two dimensional code correct the numeric data code according to the error correcting code, obtain school Numeric data code after just;
Acquiring unit, for according to the numeric data code after the correction, obtaining the second error correcting code;
Creating unit, for according to the data behind the registration pattern position of the original two dimensional code and version information, the correction Code, second error correcting code, the tagged word symbol and the display parameters create target Quick Response Code;
Unit is corrected, for according to second error correcting code, correcting the Quick Response Code of the establishment, generates target Quick Response Code.
CN201510770675.9A 2015-11-12 2015-11-12 Quick Response Code generates display methods and device Expired - Fee Related CN105335771B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510770675.9A CN105335771B (en) 2015-11-12 2015-11-12 Quick Response Code generates display methods and device
PCT/CN2016/084357 WO2017080190A1 (en) 2015-11-12 2016-06-01 Two-dimensional code generation and display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510770675.9A CN105335771B (en) 2015-11-12 2015-11-12 Quick Response Code generates display methods and device

Publications (2)

Publication Number Publication Date
CN105335771A CN105335771A (en) 2016-02-17
CN105335771B true CN105335771B (en) 2018-09-04

Family

ID=55286286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510770675.9A Expired - Fee Related CN105335771B (en) 2015-11-12 2015-11-12 Quick Response Code generates display methods and device

Country Status (2)

Country Link
CN (1) CN105335771B (en)
WO (1) WO2017080190A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335771B (en) * 2015-11-12 2018-09-04 深圳Tcl数字技术有限公司 Quick Response Code generates display methods and device
CN109614838B (en) * 2018-11-05 2021-11-30 武汉天喻信息产业股份有限公司 Two-dimensional code generation method and system, implementation method and payment equipment
CN109685187B (en) * 2018-12-28 2021-12-14 优城(宁波)地铁科技有限公司 A module of batch code sending mode function
CN113141532B (en) * 2020-01-20 2024-04-05 海信视像科技股份有限公司 Identification method of graphic identification code and display device
CN111415091A (en) * 2020-03-20 2020-07-14 绍兴数智科技有限公司 Dyeing scheduling equipment, production card number recording method and storage medium
CN111463900A (en) * 2020-04-07 2020-07-28 国家电网有限公司 HTML-Based Visual Display Method of Fibre Channel in Smart Substation
CN112651475B (en) * 2021-01-06 2022-09-23 北京字节跳动网络技术有限公司 Two-dimensional code display method, device, equipment and medium
US12367531B1 (en) * 2021-09-08 2025-07-22 CoCreateX Inc. Personalized social network system
CN119673180A (en) * 2024-11-19 2025-03-21 广东保伦电子股份有限公司 A dynamic two-dimensional code audio transmission method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818926A (en) * 2006-03-17 2006-08-16 北京紫光捷通科技有限公司 Two-dimensional code area precisive positioning method for two-dimensional recognition
JP2011039878A (en) * 2009-08-13 2011-02-24 Fuji Xerox Co Ltd Image processing apparatus and program
JP2013126004A (en) * 2011-12-13 2013-06-24 Konica Minolta Business Technologies Inc Image processing device, image generation method, and computer program
CN104781834A (en) * 2012-11-13 2015-07-15 共同印刷株式会社 Two-dimensional code, two-dimensional code generation system and analysis program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE326038T1 (en) * 2001-02-09 2006-06-15 Enseal Systems Ltd DOCUMENT PRINTED WITH INFORMATION-CODING GRAPHIC SYMBOLS
US8194914B1 (en) * 2006-10-19 2012-06-05 Spyder Lynk, Llc Encoding and decoding data into an image using identifiable marks and encoded elements
CN103986752B (en) * 2014-05-08 2017-10-03 海信集团有限公司 The method, apparatus and system of information are inputted in the inputting interface of intelligent television
CN105335771B (en) * 2015-11-12 2018-09-04 深圳Tcl数字技术有限公司 Quick Response Code generates display methods and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1818926A (en) * 2006-03-17 2006-08-16 北京紫光捷通科技有限公司 Two-dimensional code area precisive positioning method for two-dimensional recognition
JP2011039878A (en) * 2009-08-13 2011-02-24 Fuji Xerox Co Ltd Image processing apparatus and program
JP2013126004A (en) * 2011-12-13 2013-06-24 Konica Minolta Business Technologies Inc Image processing device, image generation method, and computer program
CN104781834A (en) * 2012-11-13 2015-07-15 共同印刷株式会社 Two-dimensional code, two-dimensional code generation system and analysis program

Also Published As

Publication number Publication date
WO2017080190A1 (en) 2017-05-18
CN105335771A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105335771B (en) Quick Response Code generates display methods and device
CA2851598C (en) Apparatus and method for automatically recognizing a qr code
CN106778995B (en) Artistic two-dimensional code generation method and device fused with image
CN105447546B (en) The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure
US9665817B2 (en) Techniques for generating customized two-dimensional barcodes
CN101246550B (en) Image character recognition method and device
CN106778996B (en) Generation system and method of two-dimensional code embedded with visual image, and reading system
US9177238B2 (en) Techniques for generating customized two-dimensional barcodes
CN103870861B (en) A kind of method and apparatus generating Quick Response Code
CN102081748B (en) Bar code pattern and bar code group pattern formed by node matrix and node line, and generation and identification method thereof
US20170286736A1 (en) Method and device for identifying two-dimensional barcodes
US20160364825A1 (en) Watermark image code
CA2709006A1 (en) Systems and methods for animating barcodes
US8699819B1 (en) Mosaicing documents for translation using video streams
CN104834952A (en) Intelligent two-dimension code
CN104166725A (en) Phishing website detection method
WO2017143973A1 (en) Text recognition model establishing method and device
CN105426944A (en) Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group
US20180129846A1 (en) Two dimension code operating method and terminal
CN104394121A (en) Terminal marking method and device
CN106250941A (en) Quick Response Code processing method, Apparatus and system
US20110206232A1 (en) Method and apparatus for engaging functionality with a color tag
CN114782955A (en) Buried point processing method, electronic device, and storage medium
KR20170009792A (en) Apparatus and method of contents authoring for fusion contents
CN106971374A (en) Picture pixels method and picture pixels system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180904