[go: up one dir, main page]

CN103473585A - A device for generating three-dimensional code labels - Google Patents

A device for generating three-dimensional code labels Download PDF

Info

Publication number
CN103473585A
CN103473585A CN2013104409179A CN201310440917A CN103473585A CN 103473585 A CN103473585 A CN 103473585A CN 2013104409179 A CN2013104409179 A CN 2013104409179A CN 201310440917 A CN201310440917 A CN 201310440917A CN 103473585 A CN103473585 A CN 103473585A
Authority
CN
China
Prior art keywords
data area
control data
label
dimensional code
image
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.)
Pending
Application number
CN2013104409179A
Other languages
Chinese (zh)
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.)
Zhongshan Iker Digital Technology Co ltd
Original Assignee
Zhongshan Iker Digital 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 Zhongshan Iker Digital Technology Co ltd filed Critical Zhongshan Iker Digital Technology Co ltd
Priority to CN2013104409179A priority Critical patent/CN103473585A/en
Publication of CN103473585A publication Critical patent/CN103473585A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention discloses a three-dimensional code label generating device which is characterized by comprising a service data area label generating module, a transverse control data area label generating module, a longitudinal control data area label generating module, a label combining module and a coding control module, wherein the service data area label generating module is used for converting service data needing to be borne in a service data area into a two-dimensional code label image which is matched with the size of the service data area and has two symbols with obvious chromatic aberration; the transverse control data area label generating module is used for converting control data needing to be loaded in the transverse control data area into a two-dimensional code label image which is matched with the transverse control data area in size and has two symbols with obvious chromatic aberration; the coding control module is used for coding the service data loaded in the service data area and the control data loaded in the transverse control data area and the longitudinal control data area through two different coding algorithms after encrypting the service data loaded in the service data area and the control data loaded in the transverse control data area and the longitudinal control data area.

Description

一种三维码标签的生成装置A device for generating three-dimensional code labels

技术领域 technical field

本发明涉及二维码技术,特别涉及对二维码标签进行改进所形成的三维码,以及三维码标签的生成装置。 The invention relates to two-dimensional code technology, in particular to a three-dimensional code formed by improving two-dimensional code labels, and a generating device for three-dimensional code labels.

背景技术 Background technique

由于二维码具有存储信息量大、安全性能高、成本低廉、易于纠错、易于识读和易于实现自动处理流程等诸多优点,在越来越多的领域被广泛应用。目前国内外有了很多二维码的码制标准,如PDF417、QR、Data Matrix 以及汉信码等。与之对应的各种码制的编码、解码方法、识读方法、纠错方法都日臻成熟。 Due to the advantages of large amount of stored information, high security performance, low cost, easy error correction, easy reading and easy realization of automatic processing procedures, two-dimensional codes are widely used in more and more fields. At present, there are many code system standards for two-dimensional codes at home and abroad, such as PDF417, QR, Data Matrix and Hanxin Code. Corresponding coding, decoding methods, reading methods, and error correction methods of various code systems are becoming more and more mature.

如图1 所示,为现有技术中的二维码的一种结构。其中,它具有三个定位图形,分别位于左下角,左上角以及右上角。它们占据了比较多的二维码信息空间。另外,图1所示的二维码只有一个数据区,二维码所携带的数据信息全部都集中体现在这个唯一数据区的图形上。无法承载两个独立的数据,以满足特殊业务的需求。例如在电子商务过程中,二维码一方面需要承载商品或服务的地址信息或摘要信息,另一方面也需要承载提供方的签名信息、授权信息或秘钥信息,其中地址信息或摘要信息是应该能被通用的二维码识别器所识别并显示的,而签名信息、授权信息或秘钥信息则应该是被授权的二维码识别器才能识别的。现有的二维码方案中,无法对二维码所承载得数据信息进行精准控制。 As shown in Figure 1, it is a structure of a two-dimensional code in the prior art. Among them, it has three positioning graphics, respectively located in the lower left corner, upper left corner and upper right corner. They occupy a relatively large amount of QR code information space. In addition, the two-dimensional code shown in FIG. 1 has only one data area, and all the data information carried by the two-dimensional code is concentrated on the graphics of this unique data area. It cannot carry two independent data to meet the needs of special services. For example, in the process of e-commerce, on the one hand, the two-dimensional code needs to carry the address information or abstract information of the goods or services, and on the other hand, it also needs to carry the signature information, authorization information, or secret key information of the provider. The address information or abstract information is It should be recognized and displayed by a general-purpose QR code recognizer, while signature information, authorization information or secret key information should only be recognized by an authorized QR code recognizer. In the existing two-dimensional code scheme, it is impossible to precisely control the data information carried by the two-dimensional code.

本申请人同时另案申请的发明《一种二维码标签的改进》提出了一种二维码标签的新结构。通过对标签本体设置业务数据区、横向控制数据区、纵向控制数据区,并分别承载不同的独立数据。该标签可以理解为二维码标签,也可以理解为三维码标签,即由横向控制数据区、纵向控制数据区的标签组成第三维。 The invention "Improvement of a Two-Dimensional Code Label" filed by the applicant at the same time proposes a new structure of the two-dimensional code label. By setting the business data area, horizontal control data area, and vertical control data area on the label body, and carrying different independent data respectively. The label can be understood as a two-dimensional code label or a three-dimensional code label, that is, the third dimension is composed of labels in the horizontal control data area and the vertical control data area.

发明内容 Contents of the invention

本发明目的是克服现有技术不足,提出一种三维码标签的生成装置。 The purpose of the present invention is to overcome the deficiencies of the prior art and propose a three-dimensional code label generating device.

本发明的通过如下方案实现: The present invention is realized by following scheme:

一种三维码标签的生成装置,其特征在于, 具有业务数据区标签生成模块、横向控制数据区标签生成模块、纵向控制数据区标签生成模块、标签组合模块和编码控制模块,其中所述的业务数据区标签生成模块用于将需要承载于业务数据区的业务数据转换成与业务数据区大小匹配并具有两种色差明显的符号构成二维码标签图像;所述的横向控制数据区标签生成模块用于将需要承载于横向控制数据区的控制数据转换成与横向控制数据区大小匹配并具有两种色差明显的符号构成二维码标签图像;所述的纵向控制数据区标签生成模块用于将需要承载于纵向控制数据区的控制数据转换成与纵向控制数据区大小匹配并具有两种色差明显的符号构成二维码标签图像;所述的编码控制模块用于对承载于业务数据区的业务数据、承载于横向控制数据区和纵向控制数据区的控制数据之一进行加密后,通过两种不同的编码算法对承载于业务数据区的业务数据、承载于横向控制数据区和纵向控制数据区的控制数据进行编码;所述的标签组合模块用于将存储于缓存空间,并分别对应于业务数据区、横向控制数据区、纵向控制数据区的二维码标签图像进行组合,生成完整的二维码标签以供显示或打印。 A generating device for a three-dimensional code label, characterized in that it has a business data area label generation module, a horizontal control data area label generation module, a vertical control data area label generation module, a label combination module and an encoding control module, wherein the business The data area label generation module is used to convert the business data that needs to be carried in the business data area into a two-dimensional code label image that matches the size of the business data area and has two obvious color differences; the horizontal control data area label generation module It is used to convert the control data that needs to be carried in the horizontal control data area into a two-dimensional code label image that matches the size of the horizontal control data area and has two obvious color differences; the vertical control data area label generation module is used to convert The control data that needs to be carried in the vertical control data area is converted into a two-dimensional code label image that matches the size of the vertical control data area and has two obvious color differences; After encrypting one of the data and the control data carried in the horizontal control data area and the vertical control data area, two different encoding algorithms are used to encode the business data carried in the business data area, the horizontal control data area and the vertical control data area The control data is encoded; the label combination module is used to combine the two-dimensional code label images stored in the cache space and corresponding to the business data area, horizontal control data area, and vertical control data area respectively to generate a complete two-dimensional code QR code labels for display or printing.

作为优化,所述的三维码标签的生成装置还具有图像展示区图像控制模块,用于加载用户或系统选定的图像并将其转换成适合图像展示区大小的图像,保存于缓存;所述的标签组合模块用于将存储于缓存空间,并分别对应于业务数据区、横向控制数据区、纵向控制数据区的二维码标签图像、图像展示区图像控制模块处理后的图像及呈“L”状的分隔图形进行组合,生成完整的二维码标签以供显示或打印。 As an optimization, the generating device of the three-dimensional code label also has an image display area image control module, which is used to load the image selected by the user or the system and convert it into an image suitable for the size of the image display area, and save it in the cache; The label combination module is used to store in the cache space and correspond to the two-dimensional code label image in the business data area, the horizontal control data area, and the vertical control data area, and the image processed by the image control module in the image display area and the image in the form of "L ”-like separated graphics to generate a complete QR code label for display or printing.

本发明的三维码标签的生成装置克服现有的装置中,无法生成具有业务数据区、横向控制数据区、纵向控制数据区,并分别承载不同的独立数据的三维码(或新二维码)标签的问题。 The three-dimensional code label generation device of the present invention overcomes the inability of existing devices to generate three-dimensional codes (or new two-dimensional codes) that have business data areas, horizontal control data areas, and vertical control data areas, and carry different independent data respectively. The problem with labels.

附图说明 Description of drawings

图1为现有二维码标签的结构示意图; FIG. 1 is a schematic structural diagram of an existing two-dimensional code label;

图2为本发明三维码标签的结构示意图之一; Fig. 2 is one of the structural representations of the three-dimensional code label of the present invention;

图3为本发明三维码标签的结构示意图之二; Fig. 3 is the second structural diagram of the three-dimensional code label of the present invention;

图4为本发明三维码标签生成装置的结构示意图; Fig. 4 is a structural schematic diagram of a three-dimensional code label generating device of the present invention;

图5为本发明三维码标签生成方法流程图; Fig. 5 is a flow chart of the method for generating a three-dimensional code label of the present invention;

图6为本发明三维码标签识别方法流程图。 Fig. 6 is a flow chart of the identification method of the three-dimensional code label of the present invention.

具体实施方式 Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

如图2 和3所示,为本发明实施例1 中三维码标签的结构示意图。本发明三维码中,具有业务数据区1和控制数据区。其中优选方案中,控制数据区又具有横向控制数据区21和纵向控制数据区22。业务数据区1和控制数据区之间通过呈“L”状的分隔图形3进行隔离。呈“L”状的分隔图形3可以呈浅色或深色,宽度为一个或以上数据符号格。优选方案中,呈“L”状的分隔图形3的颜色采用不同于业务数据区1和控制数据区的颜色,并且宽度为一个数据符号格。业务数据区1可以是正方型,也可以是长方形。行列数可以根据现有技术或者所需要承载的数据量大小进行设置。横向控制数据区21的纵向宽度、纵向控制数据区22横向宽度固定的,而横向控制数据区21的横向长度、纵向控制数据区22纵向长度则可动态调节,并保持与业务数据区1的大小一致。更具体说,是业务数据区1和控制数据区的图像边界是对齐的。横向控制数据区21的纵向宽度、纵向控制数据区22横向宽度优选方案中,可以采用5个数据符号格。如图2 和3所示,优选方案中,横向控制数据区21和纵向控制数据区22的交接处,还设有商品或产品或公司的图像展示区4。图像展示区4的宽度与横向控制数据区21和纵向控制数据区22适配,具体来说图像展示区4外边界应该与横向控制数据区21和纵向控制数据区22的外边界对齐。图像展示区4用于显示商品或产品或公司的LOGO。 As shown in Figures 2 and 3, it is a schematic structural diagram of a three-dimensional code label in Embodiment 1 of the present invention. The three-dimensional code of the present invention has a business data area 1 and a control data area. In the preferred solution, the control data area has a horizontal control data area 21 and a vertical control data area 22 . The business data area 1 and the control data area are separated by an "L"-shaped separation figure 3 . The "L"-shaped separation figure 3 can be light or dark, and has a width of one or more data symbol grids. In a preferred solution, the color of the "L"-shaped separation figure 3 is different from the color of the service data area 1 and the control data area, and the width is one data symbol grid. The service data area 1 can be square or rectangular. The number of rows and columns can be set according to the existing technology or the amount of data to be carried. The vertical width of the horizontal control data area 21 and the vertical width of the vertical control data area 22 are fixed, while the horizontal length of the horizontal control data area 21 and the vertical length of the vertical control data area 22 can be dynamically adjusted, and keep the size of the business data area 1 unanimous. More specifically, the image boundaries of the business data area 1 and the control data area are aligned. In the preferred solution of the vertical width of the horizontal control data area 21 and the horizontal width of the vertical control data area 22, 5 data symbol grids can be used. As shown in Figures 2 and 3, in the preferred scheme, the junction of the horizontal control data area 21 and the vertical control data area 22 is also provided with an image display area 4 of commodities or products or companies. The width of the image display area 4 is adapted to the horizontal control data area 21 and the vertical control data area 22. Specifically, the outer boundary of the image display area 4 should be aligned with the outer boundaries of the horizontal control data area 21 and the vertical control data area 22. The image display area 4 is used to display the LOGO of commodities or products or companies.

又如图2 和3所示,为本发明三维码标签的业务数据区1用于承载普通文本内容、网址、电话、短信等信息,而横向控制数据区21和纵向控制数据区22则用于承载签名信息、授权信息、秘钥信息、坐标信息等特殊信息。优选方案中,业务数据区1和控制数据区采用不同的编码方式进行编码;并至少有一数据区为承载经过加密信息,如业务数据区1为非加密信息,而横向控制数据区21和纵向控制数据区22中至少一个区的数据信息为加密信息;或者业务数据区1为加密信息,而横向控制数据区21和纵向控制数据区22至少一个区的信息数据信息为非加密信息。 As shown in Figures 2 and 3, the service data area 1 of the three-dimensional code label of the present invention is used to carry information such as ordinary text content, website, telephone, and short message, while the horizontal control data area 21 and the vertical control data area 22 are used for Carry signature information, authorization information, secret key information, coordinate information and other special information. In the preferred solution, the service data area 1 and the control data area are encoded using different encoding methods; and at least one data area is used to carry encrypted information, such as the service data area 1 is non-encrypted information, while the horizontal control data area 21 and the vertical control data area The data information in at least one area in the data area 22 is encrypted information; or the business data area 1 is encrypted information, and the information data information in at least one area of the horizontal control data area 21 and the vertical control data area 22 is non-encrypted information.

参考图4,为实施本发明所需要的三维码标签的符号生成装置,与现有技术不同,该装置具有业务数据区标签生成模块、横向控制数据区标签生成模块、纵向控制数据区标签生成模块、标签组合模块和编码控制模块,其中所述的业务数据区标签生成模块用于将需要承载于业务数据区的业务数据转换成与业务数据区大小匹配并具有两种色差明显的符号构成三维码标签图像;所述的横向控制数据区标签生成模块用于将需要承载于横向控制数据区的控制数据转换成与横向控制数据区大小匹配并具有两种色差明显的符号构成三维码标签图像;所述的纵向控制数据区标签生成模块用于将需要承载于纵向控制数据区的控制数据转换成与纵向控制数据区大小匹配并具有两种色差明显的符号构成三维码标签图像;所述的编码控制模块用于对承载于业务数据区的业务数据、承载于横向控制数据区和纵向控制数据区的控制数据之一进行加密后,通过两种不同的编码算法对承载于业务数据区的业务数据、承载于横向控制数据区和纵向控制数据区的控制数据进行编码;所述的标签组合模块用于将存储于缓存空间,并分别对应于业务数据区、横向控制数据区、纵向控制数据区的三维码标签图像进行组合,生成完整的三维码标签以供显示或打印。另外,优选方案中,该装置还具有图像展示区图像控制模块,用于加载用户或系统选定的图像并将其转换成适合图像展示区大小的图像,保存于缓存;所述的标签组合模块用于将存储于缓存空间,并分别对应于业务数据区、横向控制数据区、纵向控制数据区的三维码标签图像、图像展示区图像控制模块处理后的图像及呈“L”状的分隔图形进行组合,生成完整的三维码标签以供显示或打印。 Referring to Fig. 4, in order to implement the symbol generation device of the three-dimensional code label required by the present invention, different from the prior art, the device has a business data area label generation module, a horizontal control data area label generation module, and a vertical control data area label generation module , a label combination module and an encoding control module, wherein the service data area label generation module is used to convert the service data that needs to be carried in the service data area into a three-dimensional code that matches the size of the service data area and has two kinds of symbols with obvious color difference Label image; the described lateral control data area label generation module is used to convert the control data that needs to be carried in the lateral control data area into a three-dimensional code label image that matches the size of the lateral control data area and has two symbols with obvious color difference; The above-mentioned vertical control data area label generation module is used to convert the control data that needs to be carried in the vertical control data area into a three-dimensional code label image that matches the size of the vertical control data area and has two symbols with obvious color difference; The module is used to encrypt one of the service data carried in the service data area, the control data carried in the horizontal control data area and the vertical control data area, and then use two different encoding algorithms to encode the service data carried in the service data area, The control data carried in the horizontal control data area and the vertical control data area are encoded; the label combination module is used to store in the cache space and correspond to the three-dimensional code label images to generate a complete 3D code label for display or printing. In addition, in the preferred solution, the device also has an image display area image control module, which is used to load the image selected by the user or the system and convert it into an image suitable for the size of the image display area, and save it in the cache; the label combination module It is used to store in the cache space and correspond to the business data area, horizontal control data area, and vertical control data area of the three-dimensional code label image, the image processed by the image control module in the image display area, and the "L"-shaped separation graphic Combine to produce a complete 3D code label for display or printing.

参考图5所示,为本发明实施例中三维码标签生成方法流程图,三维码标签生成具体包括以下步骤: Referring to Figure 5, it is a flowchart of a method for generating a three-dimensional code label in an embodiment of the present invention. The generation of a three-dimensional code label specifically includes the following steps:

S101,获取需要在三维码标签承载的业务数据。业务数据的获取可以是用户的输入,也可以是通过访问其它应用或系统的接口获得。 S101. Obtain business data that needs to be carried on a three-dimensional code label. Service data can be obtained through user input, or by accessing interfaces of other applications or systems.

S102,确定业务数据区1的大小。具体为判断需要承载的业务数据量是否超出已设定的业务数据区1大小所能承载的数据量,如果超出则进一步判断是否超出业务数据区1所能承载的最大数据量;超出业务数据区1所能承载的最大数据量,则提示“无法生成三维码标签”,否则自动根据需要承载的业务数据量扩大业务数据区1大小。如果判断需要承载的业务数据量在已设定的业务数据区1大小所能承载的数据量范围内,则以已设定参数确定业务数据区1的大小。 S102. Determine the size of the service data area 1. Specifically, it is to judge whether the amount of business data that needs to be carried exceeds the amount of data that can be carried by the size of the set business data area 1, and if it exceeds, further judge whether it exceeds the maximum amount of data that can be carried by the business data area 1; If the maximum amount of data that can be carried by 1 is displayed, it will prompt "Unable to generate a three-dimensional code label", otherwise, the size of business data area 1 will be automatically expanded according to the amount of business data that needs to be carried. If it is judged that the amount of service data to be carried is within the range of the amount of data that can be carried by the set size of the service data area 1, then the size of the service data area 1 is determined with the set parameters.

S103,根据业务数据区1的大小,确定横向控制数据区21的横向长度和纵向控制数据区22纵向长度。确定办法是,横向控制数据区21的横向长度等于对应业务数据区1边框大小加呈“L”状的分隔图形3的宽度。纵向控制数据区22纵向长度等于对应业务数据区1边框大小加呈“L”状的分隔图形3的宽度,使业务数据区1和控制数据区的图像边界是对齐的,保证三维码标签整体轮廓是矩形。 S103, according to the size of the service data area 1, determine the horizontal length of the horizontal control data area 21 and the vertical length of the vertical control data area 22. The way to determine it is that the horizontal length of the horizontal control data area 21 is equal to the border size of the corresponding business data area 1 plus the width of the "L"-shaped separation figure 3 . The longitudinal length of the vertical control data area 22 is equal to the frame size of the corresponding business data area 1 plus the width of the "L"-shaped separation figure 3, so that the image boundaries of the business data area 1 and the control data area are aligned, ensuring the overall outline of the three-dimensional code label is a rectangle.

S104,对需要承载的业务数据,进行编码,生成符合业务数据区显示大小的图像并缓存;根据不同的应用环境需求,在编码之前,可以对需要承载的业务数据进行加密后再编码。编码和加密技术可以根据现有技术进行。 S104, encode the service data to be carried, generate and cache an image conforming to the display size of the service data area; according to different application environment requirements, before encoding, the service data to be carried can be encrypted and then encoded. Encoding and encryption techniques can be performed according to existing technologies.

S105,获取需要承载在一个以上控制数据区的签名信息、授权信息、秘钥信息、坐标信息等控制数据,获取方式可以是人工输入或通过问其它应用或系统的接口获得。 S105. Acquire control data such as signature information, authorization information, secret key information, and coordinate information that need to be carried in more than one control data area. The acquisition method can be manual input or through an interface of other applications or systems.

S106,对需要承载在控制数据区的控制数据进行编码,生成符合横向控制数据区21、纵向控制数据区22大小的显示的图像并缓存。其中,控制数据可以分成两部分分别显示在横向控制数据区21、纵向控制数据区22。横向控制数据区21、纵向控制数据区22也可以分别承载和显示两个不同的控制数据。如横向控制数据区21用于承载用户名,纵向控制数据区22用于承载对应的密码数据;横向控制数据区21用于承载签名数据,纵向控制数据区22用于承载公钥数据等。优选方案中,业务数据区1和控制数据区应该采用不同的编码方式。而横向控制数据区21、纵向控制数据区22的控制数据的编码方式可以相同也可以不相同。根据不同的应用环境需求,在对控制数据进行编码之前,可以对其进行加密后再编码。编码和加密方式有多种多样,具体可以根据现有技术进行。 S106, encode the control data that needs to be carried in the control data area, generate and cache the displayed image conforming to the size of the horizontal control data area 21 and the vertical control data area 22. Wherein, the control data can be divided into two parts and displayed in the horizontal control data area 21 and the vertical control data area 22 respectively. The horizontal control data area 21 and the vertical control data area 22 can also respectively carry and display two different control data. For example, the horizontal control data area 21 is used to carry user names, and the vertical control data area 22 is used to carry corresponding password data; the horizontal control data area 21 is used to carry signature data, and the vertical control data area 22 is used to carry public key data, etc. In the preferred solution, the service data area 1 and the control data area should adopt different encoding methods. The encoding methods of the control data in the horizontal control data area 21 and the vertical control data area 22 may be the same or different. According to different application environment requirements, before encoding the control data, it can be encrypted and then encoded. There are various encoding and encryption methods, which can be specifically performed according to the existing technology.

S107,获取需要显示在图像展示区4的图像,缓存。优选方案中,图像展示区4的图像并非必须的,如果不存在需要展示的商品或产品或公司等的LOGO,也可以用浅色或深色进行填充。 S107, acquiring and caching the image to be displayed in the image display area 4. In a preferred solution, the image in the image display area 4 is not necessary, and if there is no logo of the commodity or product or company to be displayed, it can also be filled with light or dark color.

S108,将已编码并缓存的业务数据图像、控制数据图像、LOGO分别填充至业务数据区1、控制数据区、图像展示区4组合成一整体的三维码标签,直接显示或打印。 S108, fill the coded and cached business data image, control data image, and LOGO into the business data area 1, control data area, and image display area 4 respectively to form an integral three-dimensional code label, and directly display or print it.

参考图6所示,为本发明实施例中三维码标签对应的识别流程图,三维码标签识别具体包括以下步骤: Referring to FIG. 6 , it is a flow chart of identification corresponding to a three-dimensional code label in an embodiment of the present invention. The identification of a three-dimensional code label specifically includes the following steps:

S201,对三维码进行整体的图像采集; S201, performing overall image acquisition on the three-dimensional code;

S202,对横向控制数据区、纵向控制数据区的轮廓进行识别。由于横向控制数据区、纵向控制数据区的宽度是固定的,并且与业务数据区之间存在“L”状的分隔图形3,所以对于横向控制数据区、纵向控制数据区的轮廓识别比较简单。有选方案中,更可以通过图像展示区4及图像进行定位。其中图像展示区4具有固定大小,位于右下角,并且位于横向控制数据区、纵向控制数据区的交接处。 S202. Identify the contours of the horizontal control data area and the vertical control data area. Since the width of the horizontal control data area and the vertical control data area is fixed, and there is an "L"-shaped separation figure 3 between the business data area, the contour recognition of the horizontal control data area and the vertical control data area is relatively simple. In an optional solution, positioning can be performed through the image display area 4 and images. The image display area 4 has a fixed size, is located in the lower right corner, and is located at the junction of the horizontal control data area and the vertical control data area.

S203,以横向控制数据区、纵向控制数据区的轮廓进行定位,识别出业务数据区步骤。由于横向控制数据区、纵向控制数据区的形状,宽度是固定的,并且图像展示区4的大小、形状和位置是固定的,所以横向控制数据区、纵向控制数据区在用于承载数据同时,也起到了定位作用。摆脱了现有技术中,需要固定的三个图形进行定位,并且占据了过多的三维码信息空间的问题。 S203, the step of identifying the service data area by positioning according to the contours of the horizontal control data area and the vertical control data area. Since the shape and width of the horizontal control data area and the vertical control data area are fixed, and the size, shape and position of the image display area 4 are fixed, the horizontal control data area and the vertical control data area are used to carry data. It also plays a positioning role. It gets rid of the problem in the prior art that three fixed figures are required for positioning and occupies too much information space of the three-dimensional code.

S204,分割出业务数据区1、横向控制数据区21、纵向控制数据区22的图像; S204, dividing the images of the business data area 1, the horizontal control data area 21, and the vertical control data area 22;

S205,分别对业务数据区1、横向控制数据区21、纵向控制数据区22的图像进行识别并通过对应的解码算法解码;优选方案中,业务数据区的数据可以是非加密的,而横向控制数据区21、纵向控制数据区22中至少一个是加密的,如横向控制数据区21、纵向控制数据区22分别承载的是用户名和密码,则获得横向控制数据区21、纵向控制数据区22承载的数据前,需要对横向控制数据区21、纵向控制数据区22识别的结果进行解密操作,然后才得到最终的数据。这样,本发明的三维码标签具有通用的三维码的方便特性,同时也可以用于身份识别,三维码阅读的控制,满足特殊应用需求,提高数据安全性。另一优选方案是,对业务数据区1的图像进行识别并通过对应的解码算法解码前,需要先解码横向控制数据区21或纵向控制数据区22其中之一的公钥数据,然后三维码识别器才能利用该公钥对业务数据区1进行解密及解码。由于本发明的三维码标签结构不同于现有技术,并且可以对对业务数据区1、横向控制数据区21、纵向控制数据区22的承载的数据类型,数据是否进行加解密进行独立的控制,所以除了上述两种优选方案外,安全保障的措施也可以有多种组合。 S205, respectively identify the images of the business data area 1, the horizontal control data area 21, and the vertical control data area 22 and decode them through the corresponding decoding algorithm; in the preferred solution, the data in the business data area can be unencrypted, while the horizontal control data At least one of the area 21 and the vertical control data area 22 is encrypted. If the horizontal control data area 21 and the vertical control data area 22 carry user names and passwords respectively, then the horizontal control data area 21 and the vertical control data area 22 are obtained. Before the data, it is necessary to decrypt the identification results of the horizontal control data area 21 and the vertical control data area 22, and then obtain the final data. In this way, the three-dimensional code label of the present invention has the convenient characteristics of a general three-dimensional code, and can also be used for identification and control of three-dimensional code reading to meet special application requirements and improve data security. Another preferred solution is that before identifying the image in the service data area 1 and decoding it through the corresponding decoding algorithm, it is necessary to first decode the public key data in one of the horizontal control data area 21 or the vertical control data area 22, and then identify the three-dimensional code. The device can use the public key to decrypt and decode the service data area 1. Since the three-dimensional code label structure of the present invention is different from the prior art, and can independently control the type of data carried by the business data area 1, the horizontal control data area 21, and the vertical control data area 22, and whether the data is encrypted or decrypted, Therefore, in addition to the above two preferred solutions, there may be various combinations of security measures.

S206,得到业务数据区1、横向控制数据区21、纵向控制数据区22所承载的数据。当业务数据区1承载的是商品或服务的网络地址、横向控制数据区21承载的用户名、纵向控制数据区22承载的是用户密码,则用户终端的三维码扫描并识别后,可以通过业务数据区1承载的是商品或服务的网络地址访问进行商品或服务的获取,同时可以自动凭借所识别的横向控制数据区21承载的用户名、纵向控制数据区22承载的是用户密码进行自动登录,实现身份自动识别,同时避免手动输入,保障了安全。 S206. Obtain the data carried by the service data area 1, the horizontal control data area 21, and the vertical control data area 22. When the service data area 1 carries the network address of the product or service, the horizontal control data area 21 carries the user name, and the vertical control data area 22 carries the user password, then after the three-dimensional code of the user terminal is scanned and recognized, the user can pass the service The data area 1 carries the network address access of the goods or services to obtain the goods or services, and at the same time, it can automatically log in with the user name carried by the identified horizontal control data area 21 and the vertical control data area 22 carries the user password. , Realize automatic identity identification, avoid manual input at the same time, and ensure safety.

最后说明的是,以上实施例仅用以说明本发明的技术方案而非限制,本领域普通技术人员对本发明的技术方案所做的其他修改或者等同替换,只要不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。 Finally, it is noted that the above embodiments are only used to illustrate the technical solution of the present invention without limitation, other modifications or equivalent replacements made by those skilled in the art to the technical solution of the present invention, as long as they do not depart from the spirit and spirit of the technical solution of the present invention All should be included in the scope of the claims of the present invention.

Claims (2)

1.一种三维码标签的生成装置,其特征在于, 具有业务数据区标签生成模块、横向控制数据区标签生成模块、纵向控制数据区标签生成模块、标签组合模块和编码控制模块,其中所述的业务数据区标签生成模块用于将需要承载于业务数据区的业务数据转换成与业务数据区大小匹配并具有两种色差明显的符号构成二维码标签图像;所述的横向控制数据区标签生成模块用于将需要承载于横向控制数据区的控制数据转换成与横向控制数据区大小匹配并具有两种色差明显的符号构成二维码标签图像;所述的纵向控制数据区标签生成模块用于将需要承载于纵向控制数据区的控制数据转换成与纵向控制数据区大小匹配并具有两种色差明显的符号构成二维码标签图像;所述的编码控制模块用于对承载于业务数据区的业务数据、承载于横向控制数据区和纵向控制数据区的控制数据之一进行加密后,通过两种不同的编码算法对承载于业务数据区的业务数据、承载于横向控制数据区和纵向控制数据区的控制数据进行编码;所述的标签组合模块用于将存储于缓存空间,并分别对应于业务数据区、横向控制数据区、纵向控制数据区的二维码标签图像进行组合,生成完整的二维码标签以供显示或打印。 1. A generating device for a three-dimensional code label, characterized in that, has a business data area label generation module, a horizontal control data area label generation module, a vertical control data area label generation module, a label combination module and an encoding control module, wherein the The business data area label generation module is used to convert the business data that needs to be carried in the business data area into two symbols that match the size of the business data area and have two obvious color differences to form a two-dimensional code label image; the horizontal control data area label The generation module is used to convert the control data that needs to be carried in the horizontal control data area into a two-dimensional code label image that matches the size of the horizontal control data area and has two obvious color differences; the vertical control data area label generation module uses The control data that needs to be carried in the vertical control data area is converted into a two-dimensional code label image that matches the size of the vertical control data area and has two obvious color differences; the encoding control module is used for carrying in the business data area After encrypting one of the business data carried in the horizontal control data area and the vertical control data area, the business data carried in the business data area, the horizontal control data area and the vertical control data area are encrypted by two different encoding algorithms. The control data in the data area is encoded; the label combination module is used to combine the two-dimensional code label images stored in the buffer space and respectively corresponding to the business data area, horizontal control data area, and vertical control data area to generate a complete QR code labels for display or printing. 2.如权利要求1所述的装置,其特征在于,还具有图像展示区图像控制模块,用于加载用户或系统选定的图像并将其转换成适合图像展示区大小的图像,保存于缓存;所述的标签组合模块用于将存储于缓存空间,并分别对应于业务数据区、横向控制数据区、纵向控制数据区的二维码标签图像、图像展示区图像控制模块处理后的图像及呈“L”状的分隔图形进行组合,生成完整的二维码标签以供显示或打印。 2. The device according to claim 1, further having an image display area image control module, which is used to load the image selected by the user or the system and convert it into an image suitable for the size of the image display area, and store it in the cache The label combination module is used to store in the cache space and correspond to the two-dimensional code label image of the business data area, the horizontal control data area, and the vertical control data area respectively, and the image processed by the image display area image control module and The separate graphics in the shape of an "L" are combined to generate a complete QR code label for display or printing.
CN2013104409179A 2013-09-25 2013-09-25 A device for generating three-dimensional code labels Pending CN103473585A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013104409179A CN103473585A (en) 2013-09-25 2013-09-25 A device for generating three-dimensional code labels

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013104409179A CN103473585A (en) 2013-09-25 2013-09-25 A device for generating three-dimensional code labels

Publications (1)

Publication Number Publication Date
CN103473585A true CN103473585A (en) 2013-12-25

Family

ID=49798429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013104409179A Pending CN103473585A (en) 2013-09-25 2013-09-25 A device for generating three-dimensional code labels

Country Status (1)

Country Link
CN (1) CN103473585A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060163357A1 (en) * 2002-10-31 2006-07-27 Incolab Inc. Two-dimensional code having superior decoding property which is possible to control the level of error correcting codes, and method for encoding and decoding the same
CN102799920A (en) * 2012-06-28 2012-11-28 王学武 Two-dimensional code generation system and method and two-dimensional code identification system and method in combination with image
CN102902997A (en) * 2012-09-21 2013-01-30 华南农业大学 Two-dimensional code hybrid coding and decoding device and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060163357A1 (en) * 2002-10-31 2006-07-27 Incolab Inc. Two-dimensional code having superior decoding property which is possible to control the level of error correcting codes, and method for encoding and decoding the same
CN102799920A (en) * 2012-06-28 2012-11-28 王学武 Two-dimensional code generation system and method and two-dimensional code identification system and method in combination with image
CN102902997A (en) * 2012-09-21 2013-01-30 华南农业大学 Two-dimensional code hybrid coding and decoding device and method

Similar Documents

Publication Publication Date Title
CN103473824A (en) Attendance checking method based on two-dimensional code label
CN103473583A (en) A display method of electronic books applied to farmhouse bookstores
CN106330464B (en) An identity authentication method, device and system
CN102930192B (en) Security information generates and acquisition methods and relevant apparatus
WO2018137602A1 (en) Method and apparatus for generating and reading composite two-dimensional code
CN105099712B (en) A kind of data ciphering method based on Dicode verification
CN105678365B (en) Two-dimensional code electronic ticket generating method and system, verification method and verification terminal
CN104268610B (en) A hierarchical QR code generation method and reading method
CN103544448A (en) A method for drafting a contract through a mobile terminal
CN102902997A (en) Two-dimensional code hybrid coding and decoding device and method
CN104281866A (en) Two-dimensional code application method and device
CN104618334A (en) Method and system for generating and verifying dynamic two-dimensional code
CN104424497B (en) A kind of method and device that dynamic two-dimension code generates
CN105281894B (en) Plaintext encryption method and system based on seven-order magic cube
CN103473582A (en) Label generating method
CN104463016A (en) Data safety storing method suitable for IC cards and two-dimension codes
CN104717056A (en) Two-dimensional code encryption and decryption method and encryption and decryption device
CN102044010A (en) Method for realizing temporary vehicle number plate information data transmission by utilizing two-dimensional bar codes
CN102842053A (en) Anti-fake pattern and core tag and manufacturing method thereof
CN104166923A (en) Text-message distribution system capable of identifying encrypted bar code and realization method thereof
CN103347248B (en) A kind of based on identity identifying method trans-regional on handheld terminal
CN103473527A (en) An Improved Two-Dimensional Code Label Recognition Method
CN103473584A (en) An improvement of a two-dimensional code label
CN103378967B (en) A QR code encryption method
CN103745252B (en) Coding row, two-dimentional code encoding method and Quick Response Code coding/decoding method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131225