CN112884101A - Graphic code, graphic code encoding method and graphic code decoding method - Google Patents

Graphic code, graphic code encoding method and graphic code decoding method Download PDF

Info

Publication number
CN112884101A
CN112884101A CN201911204832.4A CN201911204832A CN112884101A CN 112884101 A CN112884101 A CN 112884101A CN 201911204832 A CN201911204832 A CN 201911204832A CN 112884101 A CN112884101 A CN 112884101A
Authority
CN
China
Prior art keywords
sub
information
graphic code
graphic
code
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
CN201911204832.4A
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.)
Alibaba Health Information Technology Ltd
Original Assignee
Alibaba Health Information Technology 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 Alibaba Health Information Technology Ltd filed Critical Alibaba Health Information Technology Ltd
Priority to CN201911204832.4A priority Critical patent/CN112884101A/en
Publication of CN112884101A publication Critical patent/CN112884101A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding

Abstract

The application relates to a graphic code, a graphic code encoding method and a graphic code decoding method. The graphic code comprises a plurality of sub graphic codes, wherein in the sub graphic codes, a first sub graphic code comprises an information effective area and an information ineffective area, and the information ineffective area is used for accommodating at least part of a second sub graphic code. By using the graphic code, the graphic code encoding method and the graphic code decoding method provided by the embodiments of the application, not only can the same graphic code express various information, but also different sub-graphic codes do not cover the information of the other side, and the integrity of the respective information is maintained.

Description

Graphic code, graphic code encoding method and graphic code decoding method
Technical Field
The present application relates to the field of data encoding technologies, and in particular, to a graphic code, a graphic code encoding method, and a graphic code decoding method.
Background
At present, graphic codes widely relate to the aspects of daily life of people, in particular to two-dimensional codes, and more typical application scenes such as information acquisition, website skipping, advertisement pushing, anti-counterfeiting tracing, account login, mobile payment, member management and the like. Although two-dimensional codes are popular at present, one-dimensional codes, especially barcodes, are still commonly applied in a variety of application scenarios, such as commodity barcodes, book barcodes, weighing barcodes, and the like. And, with the continuous development of coding technology, other types of graphic codes may appear. Therefore, it is inevitable to set a plurality of graphic codes on the same object.
There is also a scenario in which a two-dimensional code and a one-dimensional code are used simultaneously in the related art, and the main implementation manner is to cover the one-dimensional code on the two-dimensional code. The one-dimensional code is at an upper position, so that the identification of the one-dimensional code is not affected. And the two-dimensional code has a certain fault-tolerant rate, and if the position covered by the one-dimensional code does not exceed the upper limit of the fault-tolerant rate of the two-dimensional code, the identification of the two-dimensional code is not influenced. However, the fault tolerance of the two-dimensional code is generally not more than 30%, and if the one-dimensional code covers too much two-dimensional code, the two-dimensional code may not be recognized, and if the size of the one-dimensional code is too small, the one-dimensional code may not be recognized.
Therefore, there is a need in the related art for a composite graphic code that can contain a plurality of different types of graphic codes without affecting the recognition of each graphic code.
Disclosure of Invention
The embodiment of the application aims to provide a graphic code, a graphic code encoding method and a graphic code decoding method, which can enable the same graphic code to express various information, and different sub-graphic codes do not cover the information of the other side, so that the integrity of the respective information is maintained.
The graphic code, the graphic code encoding method and the decoding method provided by the embodiment of the application are realized as follows:
a graphic code comprises a plurality of sub graphic codes, wherein in the sub graphic codes, a first sub graphic code comprises an information effective area and an information ineffective area, wherein the information ineffective area is used for accommodating at least part of a second sub graphic code.
A method for encoding a graphic code, the method being used for encoding and generating the graphic code, and comprising:
acquiring a plurality of information including first information and second information;
encoding the first information to enable the encoded first information to be arranged in an information effective area of the first sub-graphic code;
encoding the second information into the second sub-graphic code;
and at least partially arranging the second sub-graphic code in an information invalid area of the first sub-graphic code.
A method for decoding a graphic code, the method being used for decoding the graphic code and comprising:
acquiring the graphic code, and identifying a sub-graphic code in the graphic code;
and decoding the sub-graph code according to the decoding rule of the sub-graph code.
A graphic code reading device is used for reading the graphic code and comprises a scanning component, a processor and a memory for storing executable instructions of the processor,
the scanning component is used for scanning and acquiring the graphic code;
the processor realizes the decoding method of the graphic code when executing the instruction.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor, enable the processor to perform the encoding method of the graphic code and the decoding method of the graphic code.
The graphic code, the graphic code encoding method and the graphic code decoding method provided by the embodiments of the application can enable the same graphic code to comprise a plurality of sub-graphic codes to express a plurality of information, and different sub-graphic codes do not cover each other's information, so that the integrity of each information is maintained.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a diagram illustrating an application scenario in accordance with an exemplary embodiment.
FIG. 2 is a diagram illustrating an application scenario in accordance with an exemplary embodiment.
FIG. 3 is a diagram illustrating an application scenario in accordance with an exemplary embodiment.
Fig. 4 is a flowchart illustrating a method for encoding a graphic code according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating a method for decoding a graphic code according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a graphic code reading apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the technical solutions are described below through several application scenarios.
At present, a plurality of imported products and some agricultural products are provided with tracing codes, the tracing codes comprise source information, production date information and the like of the products, and the tracing of the products by users is very convenient. Then, before the product is put on shelf, a person is required to register the traceability information of the product, and then, the current registration mode is that the worker scans the bar code, namely the unique identification information of the product, and then scans the traceability code of the product. That is, registering the tracing information of a product requires two scanning operations, which is time-consuming and labor-consuming. Based on the embodiment of the graphic code provided by the application, a plurality of sub-graphic codes can be arranged in the same graphic code. In this scenario, as shown in fig. 1, the barcode and the tracing code of the product may be set in the same graphic code, so that the same graphic code may include two pieces of information, and a worker may obtain the two pieces of information by scanning the graphic code once.
Fig. 1 is an example of a graphic code, and as shown in fig. 1, a two-dimensional code is a traceability code of a product, and may include three areas, an upper information valid area, a lower information valid area, and a middle information invalid area, where the middle information invalid area is used for accommodating a bar code of the product. By the arrangement mode, the same graphic code can express various information, different sub graphic codes do not cover the information of the other side, and the integrity of the respective information is kept.
For the barcode in fig. 1, a decoding manner of a common barcode may be used for decoding, for a special two-dimensional code, a decoding rule thereof may be set, and the decoding rule is set in a scanning device, such as a smart phone or a scanner, for a specific decoding manner, reference may be made to descriptions of various embodiments described below in the specification, which will not be described herein again. After scanning the two-dimensional code in fig. 1, the scanning device may decode the two-dimensional code according to a set decoding rule to generate the tracing information of the product.
The graphic code described in the present application is explained in detail below. The embodiment of the application provides a graphic code, which comprises a plurality of sub-graphic codes, wherein in the sub-graphic codes, a first sub-graphic code comprises an information effective area and an information ineffective area, and the information ineffective area is used for accommodating at least part of a second sub-graphic code.
In this embodiment, the graphic code may include data that is displayed in a graphic style after information is encoded. After the graphic code is obtained by the scanning device, the graphic code can be decoded to obtain the original information. The original information may include various types of information such as an access link, a payment entry, an advertisement, a login interface, and the like, and may be specifically set according to an application requirement, which is not limited herein. The encoding type of the graphic code may include one-dimensional code, two-dimensional code, multi-dimensional code, and the like. The encoding mode of the one-dimensional Code may include EAN Code, 39 Code, cross 25 Code, UPC Code, 128 Code, 93 Code, ISBN Code, and curdebar Code, the encoding mode of the two-dimensional Code may include Data Matrix, MaxiCode, Aztec, QR Code, Vericode, PDF417, Ultracode, Code 49, Code 16K, and the like, and the multidimensional Code may add the characteristics of the dimensions such as color on the basis of the two-dimensional Code.
In the embodiment of the application, a plurality of graphic codes can be fused in the same graphic code, so that the fused graphic code is an independent graphic code from a visual point of view. Based on this, in the embodiment of the present application, the graphic code may include a plurality of sub-graphic codes, where the plurality of sub-graphic codes may be respectively used to express different information, or may be partially or completely used to express the same information, and the present application is not limited herein. In addition, the plurality of sub-pattern codes may have different encoding types, or may partially or entirely have the same encoding type. For example, the graphic code may be generated by one two-dimensional code and one-dimensional code, or may be generated by two-dimensional codes, one barcode, and one multi-dimensional code, which is not limited in this application.
In the embodiment of the present application, the sub-graphic code may include a first sub-graphic code and a second sub-graphic code. It should be noted that, in the description of the present embodiment, the terms "first", "second", "third", etc. are used for descriptive purposes only and for distinguishing similar objects, and there is no precedence between the two, and no indication or implication of relative importance should be understood. In addition, in the description of the present embodiment, "a plurality" means two or more unless otherwise specified. The first sub-graphic code may include an information valid area and an information invalid area, where the information valid area may include valid information, and the information invalid area does not include valid information. The information invalid region can be used for accommodating the second sub-graphic code, so that the first sub-graphic code and the second sub-graphic code can be fused together, and information of the other side can be covered in a complementary mode, namely code identification of each side is not affected.
In one embodiment of the present application, the information valid region of the first sub graphic code may include a plurality of sub regions separated from each other. In an example, as shown in fig. 2, the information valid region of the first sub-graphic code may include an upper sub-region and a lower sub-region that are separated from each other, that is, an information valid sub-region 1 and an information valid sub-region 2, and an information invalid region of the first sub-graphic code is between the two sub-regions, and may be configured to accommodate a second sub-graphic code. In one example, the two-dimensional code may be arranged as two sub-areas separated from each other, one above the other, and the barcode may be arranged in the two sub-areas. In another example, the information valid area may further include four sub-areas separated from each other, so that the information invalid area formed in the middle may be provided with a plurality of second sub-graphic codes, such as four bar codes and a two-dimensional code. Of course, in another example, it is also possible to divide the barcode into two sub-regions and to arrange the two-dimensional code between the two sub-regions. It should be noted that, in the present application, neither the number of the information valid area partitions nor the number of the second sub-graphic codes that can be accommodated in the information invalid area is limited.
In another embodiment of the present application, the information ineffective area is set as a hollow area of the information effective area. In this embodiment, the second sub-pattern code may be completely surrounded by the first sub-pattern code. As shown in fig. 3, compared with a square-filled complete two-dimensional code in the related art, the two-dimensional code provided in the embodiment of the present application may have a hollow area in the middle, where the hollow area is an information invalid area and may be used to accommodate a second sub-graphic code such as a barcode. Certainly, a plurality of second sub-graphic codes can be accommodated in the same information invalid area, and a plurality of hollow areas which are not communicated with each other can be further arranged in the first sub-graphic code, and each hollow area can also be used for accommodating at least one second sub-graphic code.
It should be noted that the arrangement manner of the information valid area and the information invalid area of the first sub-graphic code is not limited to the above example, for example, one or more corners of the rectangular first sub-graphic code may also be arranged as the information invalid area, and the second sub-graphic code is at least partially accommodated in the information invalid area, and other modifications may also be made by those skilled in the art in light of the technical spirit of the present application, but all shall be covered by the protection scope of the present application as long as the functions and effects achieved by the second sub-graphic code are the same as or similar to those of the present application.
It should be noted that the sub-graphic codes may include not only one-dimensional codes and two-dimensional codes, but also multi-dimensional codes, and the relationship between the sub-graphic codes may be any combination, for example, the two-dimensional codes may be provided with an information invalid region for barcodes, and the barcodes may be provided with an information invalid region for accommodating the multi-dimensional codes. Other modifications are possible in light of the above teachings and may be practiced by those skilled in the art, and it is within the scope of the appended claims.
For the graphic code provided by any of the above embodiments, another aspect of the present application further provides a method for encoding the graphic code, and the method for encoding the graphic code is described in detail below with reference to the accompanying drawings. Fig. 4 is a schematic method flow diagram of an embodiment of a graphic code encoding method provided in the present application. Although the present application provides method steps as shown in the following examples or figures, more or fewer steps may be included in the method based on conventional or non-inventive efforts. In the case of steps where no necessary causal relationship exists logically, the order of execution of the steps is not limited to that provided by the embodiments of the present application. The method can be executed sequentially or in parallel (for example, in the context of parallel processors or multi-thread processing) according to the embodiments or the method shown in the drawings when the method is executed in a practical graphic code encoding process or device.
Specifically, an embodiment of the graphic code encoding method provided in the present application is shown in fig. 4, where the method may include:
s401: a plurality of information is acquired, including first information and second information.
S403: and encoding the first information, so that the encoded first information is arranged in the information effective area of the first sub-graphic code.
S405: encoding the second information into the second sub-graphic code.
S407: and at least partially arranging the second sub-graphic code in an information invalid area of the first sub-graphic code.
In this embodiment of the application, the obtained information may include original information encoded into an image code, and from the aspect of content, the information may include a link, an advertisement, a login interface, a payment entry, a member entry, and the like, and the expression manner of the information may include characters, words, pictures, and the like. In one example, in the process of setting a graphic code of a certain product to be shipped out of a factory, product unique identification information and traceability query address information of the product need to be set on an external package of the product through the graphic code, wherein the unique identification information is a digital character string "69528368296813", and the traceability query address information is a character string "http:// 123. china. com/v 0/chaxun/". The information that needs to be expressed by the graphic code may also include a public access, a coupon pickup access, an opinion feedback access, etc. of the product business platform.
As described above, in the graphic code, the first sub graphic code includes the information valid area and the information invalid area, and then the first information may be set in the information valid area of the first sub graphic code. In the above example, the product unique identification information may be the second information, and the product unique identification information "69528368296813" may be encoded into a bar code by using an EAN encoding method. For the first information, namely the tracing query address information is a character string http://123. china. com/v0/chaxun/, after the first information is encoded, the encoded information is arranged in the information effective area of the first sub-graphic code.
In an embodiment of the present application, in the process of performing the first information, first, the first information may be encoded into a plurality of information symbols, where the information symbols may include binary symbols such as "0" and "1", and of course, may also include other binary symbols, which is not limited herein. The method for encoding the first information into the information symbol may include a method for converting information into the information symbol in encoding methods such as Data Matrix, MaxiCode, Aztec, and QR Code, which is not limited in this application. Then, a graphic code template may be obtained, in which an information valid area and an information invalid area are respectively set. And finally, setting the plurality of information code elements in an information effective area of the graphic code template to generate the first sub-graphic code. The graphic code template may be a preset template with a fixed size, and the template may include a fixed position, an information valid area with a fixed size, and an information invalid area. Based on this, the information code element is arranged in the information effective area, and the first sub-graphic code can be generated.
Of course, in other embodiments, the preset graphic code template may include a plurality of different specifications, for example, having different information valid area sizes or different information invalid area sizes, to meet different requirements. In practical applications, the size of the information effective area required for different numbers of information symbols is different. Based on this, in one embodiment, after the first information is converted into information symbols, the number of information symbols may be obtained to determine a graphic code template having a size matching the number of information symbols. In an embodiment, the size of the preset graphic code template may include 400 × 400, 300 × 300, 250 × 200, and the like, and the setting manner of the information valid region and the information invalid region in the preset graphic code template may include the manner provided in any of the embodiments described above, which is not described herein again. Before encoding the first information into a plurality of information symbols, the first information may be preprocessed by a plurality of information such as encryption, for example, by converting the first information into a string of a fixed number of bits by a hash algorithm, and then encoding the string into a plurality of information symbols.
In the embodiment of the present application, in the process of setting the information invalid region in the graphic code template, a mask region may be set in the graphic code template. Although some mask regions are set in the two-dimensional code in the related art in order to increase the fault tolerance of the two-dimensional code, the mask regions are set in the related art in order to increase the fault tolerance, and the technical purpose of the setting is different. In addition, the mask area in the related art is too small to accommodate other sub-graphic codes, and it is difficult for a user to confirm which areas are mask areas and which are not, because the encoding process is complicated. The mask area in the embodiments of the present application may be of sufficient size to accommodate other sub-graphic codes. In one example, the graphic code template corresponding to 400 pixels by 400 pixels may have a mask area with a size of 100 pixels by 50 pixels as the information invalid area in the middle. Then, for the graphic code template, the remaining area with the size of (400 pixels × 400 pixels — 100 pixels × 50 pixels) may be used as the information valid area of the graphic code template, that is, the information symbol after the first information is encoded may be set in the information valid area according to a certain rule. Of course, in other embodiments, the mask region may include not only a rectangle, but also any other shape, such as a circle, an ellipse, a rectangle, a star, a heart, and so on, which is not limited herein.
In this embodiment of the application, for a case that the information valid region includes a plurality of sub-regions separated from each other, the first information may be encoded to generate an initial graphic code in addition to the manner of using the preset template. The initial graphical code may then be divided into a plurality of sub-regions that are separated from each other. In an example, the first information may be encoded into a two-dimensional code by using any manner in the related art, and then, the two-dimensional code may be divided into a plurality of sub-regions, where the divided shape may be a rectangle or a special shape, and the number of the divided sub-regions may be two sub-regions or four sub-regions, which is not limited herein. After being divided into a plurality of sub-regions separated from each other, an information invalid region may be set, and the plurality of sub-regions and the information invalid region may be combined into the first sub-graphic code. In addition, the layout of the plurality of sub-regions may include any manner, such as a parallel layout, a vertical layout, and the like, which is not limited herein.
It should be noted that the first sub-graphic code and the second sub-graphic code are only two exemplary graphic codes in the graphic codes, and for information other than the first information and the second information in the plurality of information, a manner of encoding the first information into the first sub-graphic code and encoding the second information into the second sub-graphic code may be referred to, which is not described herein again.
In this embodiment, the decoding priorities of the plurality of sub-graphic codes may also be set respectively. Specifically, the decoding priorities of the plurality of sub-graphic codes may be determined according to priorities of information represented by the sub-graphic codes, wherein the higher the decoding priority, the decoding is performed first. For example, in a payment scenario, the get red envelope and the payment entry are respectively set as the sub-graphic codes, and the two sub-graphic codes are set in the same graphic code. Then, the user may wish to collect the red envelope and pay for it when scanning. Therefore, the decoding priority of the sub-graph code corresponding to the red envelope can be set to be higher than that of the sub-graph code used for the payment entrance pair.
As for the graphic code provided in any of the above embodiments, another aspect of the present application further provides a decoding method of the graphic code, as shown in fig. 5, the decoding method may include:
s501: acquiring the graphic code, and identifying a sub-graphic code in the graphic code;
s503: and decoding the sub-graph code according to the decoding rule of the sub-graph code.
In the embodiments of the present application, the scanning device is used to scan the graphic codes described in the above embodiments, and after obtaining the graphic codes, the scanning device can identify the sub-graphic codes in the graphic codes, and decode the sub-graphic codes according to the decoding rules of the sub-graphic codes. The scanning device can comprise any equipment with the functions of scanning and identifying graphic codes, such as a scanning gun, a smart phone, a scanner and the like.
The graphic code provided by the embodiments of the present application includes a first sub-graphic code and a second sub-graphic code, where the second sub-graphic code is at least partially accommodated in an information invalid region of the first sub-graphic code. Then, if the second sub-graphic code does not include the information invalid region, the second sub-graphic code may be decoded using a decoding rule of the second sub-graphic code. For a first sub-graphic code including an information invalid region, an information valid region of the first sub-graphic code may be determined first, and then the information valid region may be decoded according to a decoding rule of the information valid region.
In another embodiment of the present application, as described above, for a case that the information valid region includes a plurality of sub-regions separated from each other, the plurality of sub-regions may be spliced into an original graphic code. And then, decoding the original graphic code according to the decoding rule of the original graphic code. Of course, the scanning device may be provided with a manner how to position the plurality of sub-regions and a splicing manner of the plurality of sub-regions, and based on this, when the scanning device acquires the type of graphic code, the scanning device may position and splice the plurality of sub-regions according to the set positioning manner and splicing manner.
In practical applications, when the graphic code includes a plurality of sub-graphic codes, if the scanning device can identify the plurality of sub-graphic codes, there is a problem that which sub-graphic code is preferentially processed or which sub-graphic code/sub-graphic codes are processed. Based on this, in the embodiment of the present application, in the above case, the decoding priorities of the plurality of sub-graphic codes may be determined. Corresponding to the embodiment of setting the decoding priority of each sub-graphic code in the above encoding manner, the decoding priority of the plurality of sub-graphic codes may be determined, and the plurality of sub-graphic codes are decoded according to the decoding rules of the plurality of sub-graphic codes, respectively, based on the decoding priority.
In another embodiment of the present application, in the case that the graphic code includes a plurality of sub-graphic codes, an application environment is identified, and then, a target sub-graphic code that needs to be decoded may be determined according to the application environment. In an exemplary scenario, a graphic code includes a first sub-graphic code encoded by a payment portal and also includes a second sub-graphic code encoded by a member portal. When the user uses the graphic code to pay a cashier in a supermarket, a scanning device of the supermarket can identify the current application environment as a payment environment, and can decode only the first sub-graphic code to realize payment.
In another embodiment of the present application, in a case that the graphic code includes a plurality of sub-graphic codes and decodes the sub-graphic codes to obtain a plurality of pieces of information, the type of the decoded information may be sent to a user, so that the user may select the required information. In an exemplary scenario, a graphic code includes a first sub-graphic code obtained from a payment entry code and also includes a second sub-graphic code obtained from a red envelope pickup entry code. When the user uses the graphic code to pay, the scanning device can identify the payment entrance and the red packet getting entrance, and the two information entrances are displayed to the user in a reminding message mode, so that the user can select the required information. The user can choose to receive the red envelope or directly pay after receiving the prompt message, and the background can display the information chosen by the user after receiving the choice of the user.
In another embodiment of the present application, the information expressed by the sub-graphic codes in the graphic codes may be the same information, for example, the information to be expressed is very important information, and only in the case that the information decoded by the sub-graphic codes in the graphic codes is consistent, the information expressed by the graphic codes can be confirmed to be correct. Based on this, after decoding each of the plurality of sub-pattern codes in the pattern code to obtain information, it can be determined whether the information corresponding to each of the plurality of sub-pattern codes is the same. And in the case that the contents are determined to be the same, displaying the contents of the information. Otherwise, it can be determined that the information expressed by the graphic code is problematic.
In other embodiments, the printed materials of the first and second sub-graphic codes may be different, so that the reading devices of the first and second sub-graphic codes are different. Wherein the printing material may include: infrared sensitive material, printing ink, metal material, conductive material, photosensitive material and thermosensitive material. For example, the graphic code printed by the ink can be identified by taking a picture, and the graphic code printed by the infrared sensitive material can be obtained by scanning by a special infrared sensitive device and cannot be identified by a camera. Thus, the provision of the sub-graphic codes as different printed materials may enable different reading devices to read different sub-graphic codes. In one example, a smart phone of a user generally intelligently utilizes a camera to shoot an image and then recognizes the image, so that the graphic code on one product comprises two sub-graphic codes, wherein one sub-graphic code is a tracing information inquiry inlet acquired by a common user, the other sub-graphic code is an inlet for a merchant to enter tracing information, the two sub-graphic codes are arranged in the graphic code, then, the sub-graphic code corresponding to the tracing information inquiry inlet can be printed by ink, and the inlet for entering the tracing information is printed by an infrared photosensitive material, so that different users can acquire different information by using different devices.
Corresponding to the product recommendation method, as shown in fig. 6, the present application further provides a device for reading a graphic code according to various embodiments of the present application, where the device includes a scanning component, a processor, and a memory for storing instructions executable by the processor. The scanning component is used for scanning and acquiring the graphic code, an infrared sensing reading device, a camera device and the like. When the processor executes the instruction, the decoding method of the graphic code according to any one of the above embodiments is realized.
In another aspect, the present application further provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions, when executed, implement the steps of the encoding method and the decoding method of the graphic code described in any of the above embodiments.
The computer readable storage medium may include physical means for storing information, typically by digitizing the information for storage on a medium using electrical, magnetic or optical means. The computer-readable storage medium according to this embodiment may include: devices that store information using electrical energy, such as various types of memory, e.g., RAM, ROM, etc.; devices that store information using magnetic energy, such as hard disks, floppy disks, tapes, core memories, bubble memories, and usb disks; devices that store information optically, such as CDs or DVDs. Of course, there are other ways of storing media that can be read, such as quantum memory, graphene memory, and so forth.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: the ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (20)

1. The graphic code is characterized by comprising a plurality of sub-graphic codes, wherein in the sub-graphic codes, a first sub-graphic code comprises an information effective area and an information ineffective area, and the information ineffective area is used for accommodating at least part of a second sub-graphic code.
2. The graphic code of claim 1, wherein the information valid region comprises a plurality of sub-regions separated from each other.
3. The graphic code according to claim 1, wherein the information invalidity area is provided as a hollow area of the information validity area.
4. The graphic code of claim 1,
the first sub-graphic code comprises a bar code, and the second sub-graphic code comprises a two-dimensional code; alternatively, the first and second electrodes may be,
the second sub-graphic code comprises a bar code, and the first sub-graphic code comprises a two-dimensional code.
5. The graphic code according to claim 1, wherein the printed materials of the first and second sub-graphic codes are different, such that the reading means of the first and second sub-graphic codes are different.
6. The graphic code of claim 5, wherein the printed material comprises: infrared sensitive material, printing ink, metal material, conductive material, photosensitive material and thermosensitive material.
7. A method for encoding a graphic code, wherein the method is used for encoding and generating the graphic code according to any one of claims 1 to 6, and comprises the following steps:
acquiring a plurality of information including first information and second information;
encoding the first information to enable the encoded first information to be arranged in an information effective area of the first sub-graphic code;
encoding the second information into the second sub-graphic code;
and at least partially arranging the second sub-graphic code in an information invalid area of the first sub-graphic code.
8. The method according to claim 7, wherein said encoding the first information such that the encoded first information is disposed in an information valid area of the first sub-graphic code comprises:
encoding the first information into a plurality of information symbols;
acquiring a graphic code template, wherein an information valid area and an information invalid area are respectively arranged in the graphic code template;
and setting the plurality of information code elements in an information effective area of the graphic code template to generate the first sub-graphic code.
9. The method of claim 8, wherein the pattern code template comprises a template determined to match the number of information symbols from a plurality of pre-defined pattern code templates of different sizes.
10. The method according to claim 7, wherein in a case that the information valid region includes a plurality of sub-regions separated from each other, the encoding the first information such that the encoded first information is disposed within the information valid region of the first sub-graphic code includes:
encoding the first information to generate an initial graphic code;
dividing the initial graphic code into a plurality of sub-regions separated from each other;
and setting an information invalid area, and combining the plurality of sub-areas and the information invalid area into the first sub-graph code.
11. The method of claim 7, further comprising:
and respectively setting the decoding priority of the plurality of sub-graphic codes.
12. A method for decoding a graphic code, the method being used for decoding the graphic code according to any one of claims 1 to 6, comprising:
acquiring the graphic code, and identifying a sub-graphic code in the graphic code;
and decoding the sub-graph code according to the decoding rule of the sub-graph code.
13. The method according to claim 12, wherein said decoding the sub-graphic code according to the decoding rule of the sub-graphic code comprises:
determining an information effective area of a first sub-graph code under the condition that the sub-graph code is determined to comprise the first sub-graph code;
and decoding the information effective area according to the decoding rule of the information effective area.
14. The method of claim 13, wherein the decoding the information valid region according to the decoding rule of the information valid region comprises:
splicing the sub-regions into an original graphic code under the condition that the information effective region is determined to comprise a plurality of mutually separated sub-regions;
and decoding the original graphic code according to the decoding rule of the original graphic code.
15. The method according to claim 12, wherein said decoding the sub-graphic code according to the decoding rule of the sub-graphic code comprises:
determining decoding priorities of a plurality of sub-graphic codes under the condition that the graphic codes comprise the plurality of sub-graphic codes;
and decoding the plurality of sub-graphic codes according to the decoding rules of the plurality of sub-graphic codes respectively based on the decoding priority.
16. The method according to claim 12, wherein said decoding the sub-graphic code according to the decoding rule of the sub-graphic code comprises:
identifying an application environment under the condition that the graphic code comprises a plurality of sub-graphic codes;
determining a target sub-graphic code to be decoded according to the application environment;
and decoding the target sub-graphic code according to the decoding rule of the target sub-graphic code.
17. The method according to claim 12, wherein after the decoding the sub-graphic code according to the decoding rule of the sub-graphic code, further comprising:
sending a prompt message for a user to select an information type under the condition that the graphic code comprises a plurality of sub-graphic codes and a plurality of information is obtained by decoding;
and receiving the information type selected by the user and displaying the information corresponding to the information type.
18. The method according to claim 12, wherein after the decoding the sub-graphic code according to the decoding rule of the sub-graphic code, further comprising:
under the condition that the graphic code comprises a plurality of sub-graphic codes and a plurality of pieces of information are obtained by decoding, judging whether the contents of the plurality of pieces of information are the same;
and in the case that the contents are determined to be the same, displaying the contents of the information.
19. A graphic code reading apparatus, for reading the graphic code according to any one of claims 1 to 6, comprising a scanning unit, a processor and a memory for storing processor-executable instructions,
the scanning component is used for scanning and acquiring the graphic code;
the processor, when executing the instructions, implements a method of decoding the graphical code of any of claims 12-18.
20. A non-transitory computer readable storage medium, wherein instructions, when executed by a processor, enable the processor to perform the method of encoding the graphic code of any one of claims 7 to 11 and the method of decoding the graphic code of any one of claims 12 to 18.
CN201911204832.4A 2019-11-29 2019-11-29 Graphic code, graphic code encoding method and graphic code decoding method Pending CN112884101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911204832.4A CN112884101A (en) 2019-11-29 2019-11-29 Graphic code, graphic code encoding method and graphic code decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911204832.4A CN112884101A (en) 2019-11-29 2019-11-29 Graphic code, graphic code encoding method and graphic code decoding method

Publications (1)

Publication Number Publication Date
CN112884101A true CN112884101A (en) 2021-06-01

Family

ID=76038891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911204832.4A Pending CN112884101A (en) 2019-11-29 2019-11-29 Graphic code, graphic code encoding method and graphic code decoding method

Country Status (1)

Country Link
CN (1) CN112884101A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283561A (en) * 2020-02-20 2021-08-20 阿里健康信息技术有限公司 Graphic code, and method and equipment for generating and identifying graphic code
CN113343287A (en) * 2021-08-09 2021-09-03 中建电子商务有限责任公司 E-commerce platform picture data extraction method and system based on artificial intelligence

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050029354A1 (en) * 2003-08-05 2005-02-10 Didier Frantz System associating sets of data into one barcode
CN103984974A (en) * 2014-05-06 2014-08-13 北京爱创科技股份有限公司 Two-dimension code and method for decoding two-dimension code
CN105447546A (en) * 2015-11-25 2016-03-30 林蔚 Two-dimensional code capable of being embedded with large-ratio graph as well as coding and decoding method and device therefor
CN108241884A (en) * 2016-12-26 2018-07-03 福建新大陆自动识别技术有限公司 A kind of composite bar code and its recognizing apparatus
CN108764001A (en) * 2018-05-29 2018-11-06 维沃移动通信(深圳)有限公司 A kind of information processing method and mobile terminal
CN110084329A (en) * 2018-01-25 2019-08-02 北京信用达互联网信息技术有限公司 The set code method of centre letter code

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050029354A1 (en) * 2003-08-05 2005-02-10 Didier Frantz System associating sets of data into one barcode
CN103984974A (en) * 2014-05-06 2014-08-13 北京爱创科技股份有限公司 Two-dimension code and method for decoding two-dimension code
CN105447546A (en) * 2015-11-25 2016-03-30 林蔚 Two-dimensional code capable of being embedded with large-ratio graph as well as coding and decoding method and device therefor
CN108241884A (en) * 2016-12-26 2018-07-03 福建新大陆自动识别技术有限公司 A kind of composite bar code and its recognizing apparatus
CN110084329A (en) * 2018-01-25 2019-08-02 北京信用达互联网信息技术有限公司 The set code method of centre letter code
CN108764001A (en) * 2018-05-29 2018-11-06 维沃移动通信(深圳)有限公司 A kind of information processing method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283561A (en) * 2020-02-20 2021-08-20 阿里健康信息技术有限公司 Graphic code, and method and equipment for generating and identifying graphic code
CN113343287A (en) * 2021-08-09 2021-09-03 中建电子商务有限责任公司 E-commerce platform picture data extraction method and system based on artificial intelligence
CN113343287B (en) * 2021-08-09 2021-10-22 中建电子商务有限责任公司 E-commerce platform picture data extraction method and system based on artificial intelligence

Similar Documents

Publication Publication Date Title
Sutheebanjard et al. QR-code generator
CN105117760B (en) A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image
CN107016420B (en) Service processing method and device
US7448550B1 (en) Enabling the use of machine-readable codes
US9286559B2 (en) Creating a virtual bar code from a physical bar code
CN107025480B (en) Image generation method and apparatus thereof
CN101765861A (en) Detection and segmentation of a two-dimensional code
Singh QR code analysis
CN111144161A (en) Barcode identification method and device, commodity information determination method and payment method
CN108351956B (en) Method and system for printing forensic-encoded 2D barcodes
CN105718980A (en) Method for generating two-dimensional code picture
US11782972B2 (en) Information processing system, information code generating system, information processing method, and information code generating method
CN112884101A (en) Graphic code, graphic code encoding method and graphic code decoding method
Tarjan et al. Automatic identification based on 2D barcodes
US8593697B2 (en) Document processing
de Seta QR code: The global making of an infrastructural gateway
CN105701529A (en) Method of realizing color picture display on two-dimension code
WO2016178068A1 (en) System and method for testing web pages
JP6199641B2 (en) Form reader and program
Kulkarni et al. Creation and analysis of QR code
TWI726264B (en) Method and device for generating bar code
Pradhan et al. Barcode recognition techniques: review & application
KR20180074311A (en) Apparatus for converting passport information and additional information
WO2015131163A1 (en) Method, system, and apparatus for creating an enhancing
Guerfi Sahra Generate and read QR code using Python and Opencv

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination