CN111507446A - Two-dimensional code generation and identification method and device - Google Patents

Two-dimensional code generation and identification method and device Download PDF

Info

Publication number
CN111507446A
CN111507446A CN201910100803.7A CN201910100803A CN111507446A CN 111507446 A CN111507446 A CN 111507446A CN 201910100803 A CN201910100803 A CN 201910100803A CN 111507446 A CN111507446 A CN 111507446A
Authority
CN
China
Prior art keywords
dimensional code
image
fused
code
preset
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.)
Granted
Application number
CN201910100803.7A
Other languages
Chinese (zh)
Other versions
CN111507446B (en
Inventor
陈兴
金亮
潘磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qingqi Science and Technology Co Ltd
Original Assignee
Beijing Qisheng 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 Beijing Qisheng Technology Co Ltd filed Critical Beijing Qisheng Technology Co Ltd
Priority to CN201910100803.7A priority Critical patent/CN111507446B/en
Priority to PCT/CN2020/074167 priority patent/WO2020156552A1/en
Publication of CN111507446A publication Critical patent/CN111507446A/en
Application granted granted Critical
Publication of CN111507446B publication Critical patent/CN111507446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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
    • 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/06046Constructional details

Abstract

The application provides a two-dimensional code generation and recognition method and device, and relates to the technical field of digital image recognition. The two-dimensional code generation method comprises the following steps: and adding the two-dimensional code to be fused on a preset image to obtain a two-dimensional code image. And generating a target two-dimensional code according to a preset fusion rule, the two-dimensional code image and the two-dimensional code to be generated. The two-dimensional code to be fused can be fused on the preset image to generate a two-dimensional code image, then the target two-dimensional code image is generated according to the preset fusion rule, the two-dimensional code image and the two-dimensional code to be generated, the target two-dimensional code image contains the two-dimensional code to be fused and the information of the two-dimensional code to be generated, and the effect that the fault-tolerant capability of the information and the two-dimensional code borne by the two-dimensional code is not changed after the preset image is inserted into the target two-dimensional code is achieved.

Description

Two-dimensional code generation and identification method and device
Technical Field
The application relates to the technical field of digital image recognition, in particular to a two-dimensional code generation and recognition method and device.
Background
With the development of science and technology, two-dimensional codes become convenient carriers for information dissemination, the integration level of the two-dimensional codes is higher and higher, and users can obtain related product information or link to related webpages to browse more information by scanning the two-dimensional codes.
At present, when a two-dimensional code is generated, a visual icon is often inserted into the center of the two-dimensional code to increase the visual effect and realize individuation.
However, after the visual icon is inserted, the information carried by the two-dimensional code is reduced, and the fault-tolerant capability of the two-dimensional code is reduced.
Disclosure of Invention
In view of this, an embodiment of the present disclosure provides a two-dimensional code generation method, an identification method, a generation apparatus, an identification apparatus, an electronic device, and a readable storage medium, so as to solve the problems that after a visual icon is inserted into a two-dimensional code, information carried by the two-dimensional code is reduced, and fault tolerance of the two-dimensional code is reduced.
A first aspect of the present application provides a two-dimensional code generation method, which may include: and adding the two-dimensional code to be fused on a preset image to obtain a two-dimensional code image. And generating a target two-dimensional code according to a preset fusion rule, the two-dimensional code image and the two-dimensional code to be generated.
Optionally, adding the two-dimensional code to be fused to a preset image to obtain a two-dimensional code image, including: and adjusting the color of the pixel point of the two-dimensional code to be fused, and acquiring the adjusted two-dimensional code to be fused. And overlapping the adjusted two-dimension code to be fused with a preset image to obtain a two-dimension code image.
Optionally, the adjusted two-dimensional code to be fused is overlapped with a preset image to obtain a two-dimensional code image, including: and taking the adjusted two-dimensional code to be fused as a coating of a preset image to obtain a two-dimensional code image, wherein the color of each pixel point in the coating is matched with the color of the pixel point at the corresponding position of the original coating of the preset image according to the preset coating rule.
Optionally, adding the two-dimensional code to be fused to the preset image, and before acquiring the two-dimensional code image, the method further includes: and acquiring a two-dimensional code to be generated according to the original two-dimensional code, and extracting the two-dimensional code to be fused, wherein the two-dimensional code to be generated comprises a region to be fused in a preset shape.
Optionally, generating the target two-dimensional code according to a preset fusion rule, the two-dimensional code image, and the two-dimensional code to be generated, includes: and converting the two-dimensional code image into a shape matched with the region to be fused to obtain a target two-dimensional code image. And fusing the target two-dimensional code image to a to-be-fused area of the to-be-generated two-dimensional code to generate the target two-dimensional code.
The second aspect of the present application provides a two-dimensional code identification method, including: the method comprises the steps of acquiring an image to be identified, wherein the image to be identified comprises a target two-dimensional code, and the target two-dimensional code is generated according to a preset fusion rule, a two-dimensional code image and a two-dimensional code to be generated, wherein the two-dimensional code image is acquired by fusing the preset image and the two-dimensional code to be fused. And respectively identifying the two-dimension code to be fused and the two-dimension code to be generated by adopting a two-dimension code identification algorithm, and identifying and acquiring the identification information of the image to be identified.
Optionally, the image to be recognized further includes: and the alternative identification mark and the target two-dimensional code both indicate identification information of the image to be identified. The method comprises the following steps of adopting a two-dimension code recognition algorithm to respectively recognize two-dimension codes to be fused and two-dimension codes to be generated, and before acquiring two-dimension code information of a target two-dimension code, further comprising: and identifying and acquiring the target two-dimensional code and the alternative identification mark in the image to be identified.
Optionally, a two-dimension code recognition algorithm is adopted to respectively recognize the two-dimension code to be fused and the two-dimension code to be generated, and the identification information of the image to be recognized is obtained by recognition, including: and respectively identifying the two-dimension code to be fused and the two-dimension code to be generated by adopting a two-dimension code identification algorithm, and identifying and acquiring the two-dimension code information of the image to be identified. Or if the two-dimension code recognition algorithm is adopted and the recognition of the two-dimension code information of the image to be recognized fails, the algorithm corresponding to the alternative recognition identifier is adopted to recognize and obtain the alternative recognition identifier.
Optionally, the alternative identification mark is a character string or an identification code, wherein the character string comprises a combination of one or more of the following characters: numbers, letters, symbols.
A third aspect of the present application provides a two-dimensional code generating apparatus, including:
and the acquisition module is used for adding the two-dimension code to be fused on the preset image to acquire the two-dimension code image. And the generating module is used for generating the target two-dimensional code according to the preset fusion rule, the two-dimensional code image and the two-dimensional code to be generated.
Optionally, the obtaining module is specifically configured to obtain the two-dimensional code image by using the adjusted two-dimensional code to be fused as a coating of the preset image, where the color of each pixel point in the coating is matched with the color of the pixel point at the corresponding position of the original coating of the preset image according to a preset coating rule.
Optionally, the obtaining module is specifically configured to obtain the two-dimensional code image by using the two-dimensional code to be fused as a coating of the preset image, where color information of pixel points in the coating is matched with color information of pixel points in corresponding positions of the original coating.
Optionally, the system further comprises an extraction module, configured to obtain the two-dimensional code to be generated according to the original two-dimensional code, and extract the two-dimensional code to be fused, where the two-dimensional code to be generated includes a region to be fused in a preset shape.
Optionally, the generating module is specifically configured to convert the two-dimensional code image into a shape matched with the region to be fused, so as to obtain a target two-dimensional code image. And fusing the target two-dimensional code image to a to-be-fused area of the to-be-generated two-dimensional code to generate the target two-dimensional code.
The present application fourth aspect provides a two-dimensional code recognition apparatus, including:
the acquisition module is used for acquiring an image to be identified, the image to be identified comprises a target two-dimensional code, the target two-dimensional code is generated according to a preset fusion rule, a two-dimensional code image and a two-dimensional code to be generated, and the two-dimensional code image is acquired by fusing the preset image and the two-dimensional code to be fused. And the identification module is used for respectively identifying the two-dimensional code to be fused and the two-dimensional code to be generated by adopting a two-dimensional code identification algorithm and identifying and acquiring the identification information of the image to be identified.
Optionally, the image to be recognized further includes: and the alternative identification mark and the target two-dimensional code both indicate identification information of the image to be identified. And the identification module is also used for identifying and acquiring the target two-dimensional code and the alternative identification mark in the image to be identified.
Optionally, the identification module is specifically configured to respectively identify the two-dimensional code to be fused and the two-dimensional code to be generated by using a two-dimensional code identification algorithm, and identify and acquire two-dimensional code information of the image to be identified. Or if the two-dimension code recognition algorithm is adopted and the recognition of the two-dimension code information of the image to be recognized fails, the algorithm corresponding to the alternative recognition identifier is adopted to recognize and obtain the alternative recognition identifier.
Optionally, the alternative identification mark is a character string or an identification code, wherein the character string comprises a combination of one or more of the following characters: numbers, letters, symbols.
A fifth aspect of the present application provides an electronic device, comprising: the two-dimensional code recognition method comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the two-dimensional code generation method provided by the first aspect or the two-dimensional code recognition method provided by the second aspect.
A sixth aspect of the present application provides a computer-readable storage medium, having stored thereon a computer program, which, when executed by a processor, executes the two-dimensional code generation method provided by the first aspect or the two-dimensional code recognition method provided by the second aspect.
Based on the first aspect, the two-dimensional code to be fused can be fused on the preset image to generate the two-dimensional code image, the target two-dimensional code image is generated according to the preset fusion rule, the two-dimensional code image and the two-dimensional code to be generated, the target two-dimensional code image contains the two-dimensional code to be fused and the information of the two-dimensional code to be generated, the preset image containing the two-dimensional code information is inserted into the target two-dimensional code, and the information bearing and fault-tolerant capacity of the two-dimensional code can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a flowchart of a two-dimensional code generation method provided in an embodiment of the present application;
fig. 2 shows a flowchart of a two-dimensional code generation method according to another embodiment of the present application;
fig. 3 is a flowchart illustrating a two-dimensional code generation method according to another embodiment of the present application;
fig. 4 is a flowchart illustrating a two-dimensional code generation method according to another embodiment of the present application;
fig. 5 is a flowchart illustrating a two-dimensional code recognition method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a two-dimensional code recognition method according to another embodiment of the present application;
fig. 7 is a flowchart illustrating a two-dimensional code recognition method according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a two-dimensional code generation apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a two-dimensional code generation apparatus according to another embodiment of the present application;
fig. 10 is a schematic structural diagram illustrating a two-dimensional code recognition apparatus according to an embodiment of the present application;
fig. 11 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application.
It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
At present, the two-dimension codes have various types, such as a layer-type two-dimension code, a matrix-type two-dimension code and the like.
A typical tiered two-dimensional code includes: a Portable Data File 417 (PDF 417), a Code 49(Code 49), a Code 16K (Code 16K), and the like; a typical matrix two-dimensional code includes: code One, Quick Response Code (QR Code), Data Matrix (Data Matrix), Han xin Code (Han XinCode), and the like.
In the present application, the QR Code is described as a type of the two-dimensional Code, but the two-dimensional Code type applicable to the two-dimensional Code recognition method provided in the present application is not limited thereto.
Fig. 1 shows a flowchart of a two-dimensional code generation method according to an embodiment of the present application. The execution subject of the method may be a terminal capable of generating a two-dimensional code, for example, a mobile phone, a tablet computer, a desktop computer, a wearable device, and the like, which is not limited herein.
As shown in fig. 1, the two-dimensional code generation method includes:
s101, adding a two-dimensional code to be fused to a preset image to obtain a two-dimensional code image.
In some embodiments, the preset image may include an icon, an avatar, a designated picture, and the like, for example, a trademark icon in a two-dimensional code on a kumquat bicycle, an avatar of a user in a WeChat two-dimensional code, and the like, without limitation.
The two-dimensional code to be fused can be partial information of the two-dimensional code or a complete two-dimensional code. For example, a part of the complete two-dimensional code is intercepted and used as a two-dimensional code to be fused, or a two-dimensional code to be fused is generated according to partial information of the two-dimensional code and a two-dimensional code generation algorithm, or specific two-dimensional code information is extracted and used as a two-dimensional code to be fused (for example, two-dimensional code version information, brand information, and the like), and the like, which are not limited herein.
It should be noted that after the two-dimensional code to be fused is fused into the preset image, the two-dimensional code in the obtained two-dimensional code image includes a visible two-dimensional code or an invisible two-dimensional code.
The visible two-dimensional code is a two-dimensional code image which can display pixel points of a two-dimensional code to be fused, a specific display mode is not limited, the transparency is low or the color is matched with a preset image but is not obvious, and the visible two-dimensional code can be observed after being amplified to a certain degree or adjusted to a certain brightness. The invisible two-dimensional code means that the two-dimensional code to be fused is hidden in the two-dimensional code image, namely the two-dimensional code to be fused is not displayed and can be obtained only through the identification of some algorithms.
When the two-dimensional code to be fused is fused with the preset image, point distribution, row distribution or column distribution can be adopted, but the method is not limited to this.
And S102, generating a target two-dimensional code according to a preset fusion rule, the two-dimensional code image and the two-dimensional code to be generated.
When the ratio of the size of the preset image to the size of the two-dimensional code to be generated is larger than a preset threshold value, the recognition effect of point distribution is better. When the ratio of the size of the preset image to the size of the two-dimensional code to be generated is smaller than a preset threshold value, the recognition effect of the line distribution is better.
For example, in one possible implementation manner, the two-dimensional code to be fused in the two-dimensional code image is local information in the two-dimensional code to be generated, and after the two-dimensional code to be fused is fused into the preset image, the generated two-dimensional code image may be obtained by viewing pixel points including the two-dimensional code to be fused on the preset image, for example, the two-dimensional code to be fused is used as a layer of the preset image, but the color is light, and some pixel points of the two-dimensional code need to be viewed by amplification. For example, the original two-dimensional code is composed of black and white dots, and local information is extracted as the two-dimensional code to be fused, wherein the originally white portion is transparent, that is, the content corresponding to the preset image is displayed, and the originally black portion is adjusted to a lighter color, for example, light gray, milky white, or the color of a pixel point corresponding to the preset image is consistent but lighter, and the like, which is not limited herein.
The two-dimensional code to be generated comprises a blank area, and the two-dimensional code image can be added into the blank area according to a preset fusion rule, so that the target two-dimensional code is obtained.
In this embodiment, a two-dimensional code image can be generated by fusing a to-be-fused two-dimensional code on a preset image, and then a target two-dimensional code image is generated according to a preset fusion rule, the two-dimensional code image and the to-be-generated two-dimensional code, wherein the target two-dimensional code image comprises the to-be-fused two-dimensional code and information of the to-be-generated two-dimensional code, so that a preset image containing two-dimensional code information is inserted into the target two-dimensional code, and the information bearing and fault-tolerant capabilities of the two-dimensional code can be improved.
Fig. 2 shows a flowchart of a two-dimensional code generation method according to another embodiment of the present application.
Optionally, as shown in fig. 2, adding a two-dimensional code to be fused to a preset image to obtain a two-dimensional code image, where the method includes:
s101-1, adjusting the color of a pixel point of the two-dimensional code to be fused, and obtaining the adjusted two-dimensional code to be fused.
It should be noted that, in order to make the to-be-fused two-dimensional code on the preset image not to be highlighted, the color of the pixel point of the to-be-fused two-dimensional code may be adjusted first, and the adjusted to-be-fused two-dimensional code is obtained.
Optionally, the color of the pixel point of the two-dimensional code to be fused is adjusted to be lighter.
S101-2, overlapping the adjusted two-dimensional code to be fused with a preset image to obtain a two-dimensional code image.
Optionally, the two-dimensional code to be fused after the adjustment is superimposed with the preset image, and the obtaining of the two-dimensional code image may include:
and taking the adjusted two-dimensional code to be fused as a coating of a preset image to obtain a two-dimensional code image, wherein the color of each pixel point in the coating is matched with the color of the pixel point at the corresponding position of the original coating of the preset image according to the preset coating rule.
In a possible implementation manner, the value of the pixel point corresponding to the black part in the two-dimensional code to be fused is increased by a preset value, and the value of the pixel point corresponding to the white part is decreased by the preset value, or the value of the pixel point corresponding to the white part is increased or decreased by the preset value, and the value of the pixel point corresponding to the black part is unchanged, so that the adjusted two-dimensional code to be fused is obtained. And then, overlapping the adjusted two-dimensional code to be fused with a preset image.
Optionally, the value of the pixel point corresponding to the adjusted black portion is close to the value of the pixel point at the corresponding position in the original image of the preset image, for example, the difference is smaller than the preset threshold. The transparency of the pixel points corresponding to the white portion can be adjusted to highlight the color of the pixel points at the corresponding positions in the original image of the preset image, or the numerical values of the pixel points corresponding to the white portion are adjusted to be the same as the numerical values of the pixel points at the corresponding positions in the original image of the preset image, and the application is not particularly limited.
Fig. 3 shows a flowchart of a two-dimensional code generation method according to another embodiment of the present application.
Optionally, as shown in fig. 3, adding a two-dimensional code to be fused to a preset image, and before acquiring a two-dimensional code image, the method further includes:
s100, acquiring the two-dimensional code to be generated according to the original two-dimensional code, and extracting the two-dimensional code to be fused.
The two-dimensional code to be generated comprises a region to be fused in a preset shape.
Optionally, a part of blank area is dug out from the original two-dimensional code, wherein the two-dimensional code information originally occupying the blank area can be distributed to other reserved areas, so that the two-dimensional code information of the reserved areas is denser. In addition, part or all of the two-dimension code information is extracted from the original two-dimension code information to be used as the two-dimension code to be fused.
Or, optionally, a part of the two-dimensional code information originally occupying the blank area may be distributed to the reserved area, and another part of the two-dimensional code information may be used as the two-dimensional code to be fused. Wherein, some important information can be used as the two-dimensional code to be fused.
It should be noted that the shape of the region to be fused in the two-dimensional code to be generated may be a rectangle, a circle, a polygon, an irregular figure, and the like, which is not limited herein.
In some embodiments, the two-dimensional code to be fused is extracted, the cut original two-dimensional code may be used as the two-dimensional code to be fused, or preset features, such as locating points and locating point separators, correction patterns, version information, fault tolerance rate information, and the like, may be extracted according to the original two-dimensional code, and the extracted features are used as data included in a data area of the two-dimensional code to generate the two-dimensional code to be fused. The extracted two-dimensional code to be fused specifically comprises which information, and the information is not limited herein, and can be correspondingly adjusted according to different conditions in application.
Fig. 4 shows a flowchart of a two-dimensional code generation method according to another embodiment of the present application.
Optionally, as shown in fig. 4, generating the target two-dimensional code according to a preset fusion rule, the two-dimensional code image, and the two-dimensional code to be generated includes:
s102-1, converting the two-dimensional code image into a shape matched with the region to be fused to obtain a target two-dimensional code image.
In some embodiments, the two-dimensional code image is in accordance with the shape of the preset image, the shape of the region to be fused is reserved according to the shape of the preset image, and only the size of the two-dimensional code image needs to be matched with the size of the region to be fused.
For example, the two-dimensional code image, the square image with the preset image of 10 × 10, and the square area with the area to be fused of 5 × 5 need to be adjusted to the square image of 5 × 5.
In some embodiments, if the shape of the two-dimensional code image is different from the shape of the region to be fused, the shape of the two-dimensional code image needs to be adjusted according to the shape of the region to be fused, and then the size of the two-dimensional code image is matched with the size of the region to be fused.
For example, if the two-dimensional code image is circular, and the region to be fused is square, the shape of the two-dimensional code image is adjusted to be square, and the adjusting method includes adding a square background to the two-dimensional code image, cutting the two-dimensional code image into a square, and the like, which is not limited herein. And then adjusting the size of the two-dimensional code image adjusted to be square and the size of the area to be fused to be matched.
It should be noted that the above-mentioned image adjustment method is only an example, and other adjustment methods are also possible, for example, the size of the two-dimensional code image with the shape different from that of the region to be fused is directly adjusted to be completely accommodated in the region to be fused, and the shape is not adjusted, and the like, which is not limited herein.
S102-2, fusing the target two-dimensional code image to a to-be-fused area of the to-be-generated two-dimensional code, and generating the target two-dimensional code.
Optionally, the two-dimensional code image adjusted in the step S102-1 is overlapped and fused into the region to be fused, so as to generate the target two-dimensional code.
Fig. 5 shows a flowchart of a two-dimensional code identification method according to an embodiment of the present application. The execution main body of the method may be a terminal with two-dimensional code scanning and identifying functions, such as a mobile phone, a tablet computer, a wearable device, and the like, which is not limited herein.
As shown in fig. 5, corresponding to the foregoing two-dimensional code generation method, the present application further provides a two-dimensional code identification method, including:
s201, acquiring an image to be recognized, wherein the image to be recognized comprises a target two-dimensional code, and the target two-dimensional code is generated according to a preset fusion rule, a two-dimensional code image and a two-dimensional code to be generated.
And the two-dimension code image is obtained by fusing a preset image and the two-dimension code to be fused.
In this embodiment, the target two-dimensional code is a target two-dimensional code generated by the two-dimensional code generation method, and the generation method is not described herein again.
S202, respectively identifying the two-dimension code to be fused and the two-dimension code to be generated by adopting a two-dimension code identification algorithm, and identifying and acquiring identification information of the image to be identified.
In some embodiments, if the two-dimensional code to be fused is local information of the two-dimensional code to be generated, when the two-dimensional code to be fused and the two-dimensional code to be generated are identified, the range of the two-dimensional code to be fused is obtained first, and the range of the two-dimensional code to be fused is determined through a frame by setting the frame on the boundary of the two-dimensional code to be fused, for example, a frame with a preset width is set on the boundary of the two-dimensional code to be fused, and the range framed by the frame with the preset width is the range of the two-dimensional code to be fused.
Or acquiring position information of the two-dimensional code to be fused in the two-dimensional code to be generated, and determining the range of the two-dimensional code to be fused according to the position information, for example, if the two-dimensional code to be fused is square, the two-dimensional code to be fused is arranged at the center of the two-dimensional code to be generated, and the side length of the two-dimensional code to be fused is a preset length, the range of the two-dimensional code to be fused is a square frame which takes the center of the two-dimensional code to be generated as a central point.
It should be noted that, a two-dimensional code recognition algorithm is configured in advance for the terminal used for recognition or the application program of the terminal, the two-dimensional code recognition algorithm knows the position relationship between the two-dimensional code to be fused and the two-dimensional code to be generated in advance, and the range of the two-dimensional code to be fused can be determined by recognizing the frame or the shape of the two-dimensional code to be fused or other identification information.
In other embodiments, if the two-dimensional code to be fused is a complete two-dimensional code, the two-dimensional code to be fused and the two-dimensional code to be generated need to be identified respectively, and meanwhile, the information of the image to be identified is obtained according to the identification results of the two-dimensional code to be fused and the two-dimensional code to be generated.
In another possible implementation manner, if the to-be-fused two-dimensional code is an invisible two-dimensional code, the to-be-fused two-dimensional code needs to be identified by a preset method, for example, a preset image and a two-dimensional code image are subjected to gray processing, and then a difference value is obtained between the preset image and the two-dimensional code image, so as to obtain a difference value image, wherein the difference value image is different from the two-dimensional code image in that the to-be-fused two-dimensional code is added to the two-dimensional code image, in the obtained difference value image, the unchanged pixel points are subtracted and then have a value of 0, that is, black, and the changed pixel points are subtracted and then have a value of not. And then binarizing the difference image according to a preset algorithm to obtain a binarized difference image. And identifying the difference image after binarization to obtain the same data as the two-dimensional code to be fused.
The preset binarization algorithm may be a two-peak method, a P-parameter method, an iterative method, an OTSU (OTSU) method, and the like, which is not limited herein.
Here, taking the identification of the target two-dimensional code on the kumquat sharing bicycle as an example, the two-dimensional code to be fused and the two-dimensional code to be generated are respectively identified.
When the target two-dimensional code is the identification code of the kumquat shared bicycle, the two-dimensional code to be fused and the icon image of the kumquat shared bicycle are fused into a two-dimensional code image, if the two-dimensional code to be fused contains partial information of the two-dimensional code, the range of the two-dimensional code to be fused is obtained according to preset identification information (the preset identification information comprises a frame of the two-dimensional code and position information of the two-dimensional code to be fused in the two-dimensional code to be generated), and if the two-dimensional code to be fused is a complete two-dimensional code, the range of the two-dimensional code to be fused can be obtained according to a locating point of the two-.
And then, acquiring a two-dimensional code image according to the range of the two-dimensional code, carrying out gray level processing on the image of the two-dimensional code and the icon image of the kumquat sharing bicycle, obtaining a difference image of the two images, and carrying out binarization on the difference image according to a preset algorithm to obtain a binarized difference image, wherein the binarized difference image is the same as the two-dimensional code to be fused.
And finally, according to the range of the two-dimensional code, identifying the difference image after binarization to obtain the same information as the information in the two-dimensional code to be fused.
It should be clear that the method for identifying the two-dimensional code is only an example and is not limited thereto.
Similarly, the identification information of the image to be recognized is described by taking the recognition of the target two-dimensional code on the kumquat shared bicycle as an example.
When the target two-dimensional code is the identification code of the kumquat shared bicycle, the data to be fused in the two-dimensional code can be the verification information of the target two-dimensional code, the content of the two-dimensional code to be generated can be the number of the current shared bicycle, and the identification information of the image to be identified is the number of the verified shared bicycle. The specific content of the identification information of the image to be recognized is not limited herein.
Optionally, the image to be recognized further includes: and the alternative identification mark and the target two-dimensional code both indicate identification information of the image to be identified.
Fig. 6 shows a flowchart of a two-dimensional code identification method according to another embodiment of the present application.
As shown in fig. 6, a two-dimensional code recognition algorithm is adopted to respectively recognize the two-dimensional code to be fused and the two-dimensional code to be generated, and before the two-dimensional code information of the target two-dimensional code is acquired, the method further includes:
and S203, identifying and acquiring the target two-dimensional code and the alternative identification mark in the image to be identified.
For example, when the two-dimensional code of the shared bicycle is scanned, the acquired image to be recognized may include the two-dimensional code of the shared bicycle and the serial number of the shared bicycle printed around the two-dimensional code, at this time, according to a positioning point in the two-dimensional code of the shared bicycle, a range of the two-dimensional code of the shared bicycle is determined, an image within the range of the two-dimensional code of the shared bicycle is used as the target two-dimensional code, and an image outside the range of the two-dimensional code of the shared bicycle (including the image of the serial number of the shared bicycle) is used as the alternative recognition identifier, but not limited thereto.
Fig. 7 shows a flowchart of a two-dimensional code recognition method according to another embodiment of the present application.
Optionally, as shown in fig. 7, a two-dimensional code recognition algorithm is adopted to respectively recognize the two-dimensional code to be fused and the two-dimensional code to be generated, and the recognizing and obtaining the identification information of the image to be recognized includes:
s202-1, respectively identifying the two-dimension code to be fused and the two-dimension code to be generated by adopting a two-dimension code identification algorithm, and identifying and obtaining two-dimension code information of the image to be identified.
The method for identifying the two-dimensional code to be fused and the two-dimensional code to be generated respectively is the same as that in S202, and is not repeated here.
S202-2, if the two-dimension code recognition algorithm is adopted and the recognition of the two-dimension code information of the image to be recognized fails, the algorithm corresponding to the alternative recognition identifier is adopted to recognize and obtain the alternative recognition identifier.
In some embodiments, there may be a case where the two-dimensional code to be fused and the two-dimensional code to be generated cannot be identified, for example, the two-dimensional code to be fused and the two-dimensional code to be generated are scratched, partially lost, polluted, and the like. Then, according to the above alternative identification mark, a corresponding algorithm may be selected to identify and obtain the alternative identification mark.
For example, in the example shown in S203, an image outside the range of the two-dimensional code of the shared bicycle (an image including the number of the shared bicycle) is used as the candidate identification mark. And selecting a corresponding algorithm, such as an Optical Character Recognition (OCR) algorithm, according to the candidate identification (number) to be identified, and identifying information of the candidate identification, i.e. the number of the shared bicycle, in the image outside the range of the two-dimensional code of the shared bicycle through the OCR. And after the alternative identification mark is identified by using a corresponding algorithm, using the information of the identified alternative identification mark as the information of the target two-dimensional code.
Optionally, if a two-dimensional code recognition algorithm is adopted, the two-dimensional code information of the image to be recognized is successfully recognized and obtained, the information of the alternative recognition mark can also be recognized, and then the information of the two is compared and verified, so that the accuracy of the recognition result is improved.
Optionally, the alternative identification mark is a character string or an identification code, wherein the character string comprises a combination of one or more of the following characters: numbers, letters, symbols.
For example, when the alternative identification is used for identifying a number, the alternative identification may be a pure number character string or a character string mixed by numbers and letters, and when the alternative identification is used for identifying a network address and a link, the alternative identification may be a character string mixed by numbers, letters and symbols.
In another possible implementation, the candidate identifier may further include one or more non-alphabetical languages such as chinese, japanese, korean, and arabic, and at this time, an algorithm matching the corresponding language may be selected for recognition, so as to obtain information of the candidate identifier. The manner in which the alternative identifiers are formed is not limited herein.
Fig. 8 shows a schematic structural diagram of a two-dimensional code generation apparatus according to an embodiment of the present application.
As shown in fig. 8, the present application provides a two-dimensional code generating apparatus, including:
the obtaining module 301 is configured to add a two-dimensional code to be fused to a preset image, and obtain a two-dimensional code image. The generating module 302 is configured to generate a target two-dimensional code according to a preset fusion rule, a two-dimensional code image, and a two-dimensional code to be generated.
Optionally, the obtaining module 301 is specifically configured to use the adjusted two-dimensional code to be fused as a coating of a preset image to obtain a two-dimensional code image, where the color of each pixel point in the coating is matched with the color of a pixel point at a corresponding position of an original coating of the preset image according to a preset coating rule.
Optionally, the obtaining module 301 is specifically configured to obtain a two-dimensional code image by using the two-dimensional code to be fused as a coating of a preset image, where color information of pixel points in the coating is matched with color information of pixel points in corresponding positions of the original coating.
Fig. 9 shows a schematic structural diagram of a two-dimensional code generation apparatus according to another embodiment of the present application.
Optionally, as shown in fig. 9, the method further includes an extracting module 303, configured to obtain a two-dimensional code to be generated according to the original two-dimensional code, and extract a two-dimensional code to be fused, where the two-dimensional code to be generated includes a region to be fused in a preset shape.
Optionally, the generating module 301 is specifically configured to convert the two-dimensional code image into a shape matched with the region to be fused, so as to obtain a target two-dimensional code image. And fusing the target two-dimensional code image to a to-be-fused area of the to-be-generated two-dimensional code to generate the target two-dimensional code.
Fig. 10 shows a schematic structural diagram of a two-dimensional code recognition apparatus according to an embodiment of the present application.
As shown in fig. 10, the present application also provides a two-dimensional code recognition apparatus, including:
the acquiring module 401 is configured to acquire and acquire an image to be recognized, where the image to be recognized includes a target two-dimensional code, and the target two-dimensional code is generated according to a preset fusion rule, a two-dimensional code image, and a two-dimensional code to be generated, where the two-dimensional code image is acquired by fusing a preset image and the two-dimensional code to be fused. The identifying module 402 is configured to respectively identify the two-dimensional code to be fused and the two-dimensional code to be generated by using a two-dimensional code identification algorithm, and identify and acquire identification information of the image to be identified.
Optionally, the image to be recognized further includes: and the alternative identification mark and the target two-dimensional code both indicate identification information of the image to be identified. The identification module 402 is further configured to identify and acquire the target two-dimensional code and the candidate identification in the image to be identified.
Optionally, the identifying module 402 is specifically configured to identify the two-dimensional code to be fused and the two-dimensional code to be generated respectively by using a two-dimensional code identification algorithm, and identify and acquire two-dimensional code information of the image to be identified. Or if the two-dimension code recognition algorithm is adopted and the recognition of the two-dimension code information of the image to be recognized fails, the algorithm corresponding to the alternative recognition identifier is adopted to recognize and obtain the alternative recognition identifier.
Optionally, the alternative identification mark is a character string or an identification code, wherein the character string comprises a combination of one or more of the following characters: numbers, letters, symbols.
The wireless connection may include a connection in the form of a local Area Network (L o cal Area Network, &lttt translation = L "&gtt L &/t &gttan), a Wide Area Network (WAN), bluetooth, ZigBee protocol (ZigBee), or Near Field Communication (NFC), or the like, or any combination thereof.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the method embodiment, and is not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
On the other hand, fig. 11 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
The present application provides an electronic device, as shown in fig. 11, including: the two-dimensional code generating method comprises a processor 501, a computer readable storage medium 502 and a bus 503, wherein the computer readable storage medium 502 stores machine readable instructions executable by the processor 501, when the electronic device runs, the processor 501 communicates with the computer readable storage medium 502 through the bus 503, and the processor 501 executes the machine readable instructions to execute the steps of the two-dimensional code generating method.
By way of example only, Processor 501 includes a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable logic Device (Programmable L) Device (P L D), a controller, a microcontroller Unit, a Reduced Instruction Set Computer (RISC), a microprocessor, or the like, or any combination thereof.
The electronic device may be a mobile phone, a tablet computer, a wearable device, a computer, or the like, but is not limited thereto.
The electronic equipment can be used for realizing the two-dimensional code generation method. Although only one electronic device is shown, the functions described herein may be implemented in a distributed manner on a plurality of electronic devices, for example, a two-dimensional code image is acquired by a first electronic device and transmitted to a second device, and a target two-dimensional code is generated on the second electronic device.
For ease of illustration, only one processor 501 is depicted in the electronic device. However, it should be noted that the electronic device in the present application may also include a plurality of processors 501, and thus the steps performed by one processor 501 described in the present application may also be performed by a plurality of processors 501 jointly or individually.
The present application also provides another electronic device, as shown in fig. 11, including: the two-dimensional code recognition method comprises a processor 501, a computer readable storage medium 502 and a bus 503, wherein the computer readable storage medium 502 stores machine readable instructions executable by the processor 501, when the electronic device runs, the processor 501 communicates with the computer readable storage medium 502 through the bus 503, and the processor 501 executes the machine readable instructions to execute the steps of the two-dimensional code recognition method.
By way of example only, processor 501 includes a CPU, ASIC, ASIP, GPU, PPU, DSP, FPGA, P L D, controller, microcontroller unit, RISC, or microprocessor, or the like, or any combination thereof.
The electronic device may be a mobile phone, a tablet computer, a wearable device, a computer with two-dimensional code scanning and recognition functions, but is not limited thereto.
The electronic equipment can be used for realizing the two-dimensional code identification method. Although only one electronic device is shown, the functions described herein may be implemented in a distributed manner on multiple electronic devices, for example, by a first electronic device scanning a two-dimensional code and sending the two-dimensional code to a second device, where the two-dimensional code is recognized.
For ease of illustration, only one processor 501 is depicted in the electronic device. However, it should be noted that the electronic device in the present application may also include a plurality of processors 501, and thus the steps performed by one processor 501 described in the present application may also be performed by a plurality of processors 501 jointly or individually.
The present application also provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to execute the steps of the two-dimensional code generation method or the two-dimensional code identification method as described above.
The computer-readable storage medium includes mass storage, removable storage, volatile Read-and-write Memory, or Read-Only Memory (ROM), among others, or any combination thereof. By way of example, mass storage may include magnetic disks, optical disks, solid state drives, and the like; removable memory may include flash drives, floppy disks, optical disks, memory cards, floppy (zip) disks, magnetic tape, or the like; volatile read-write Memory may include Random Access Memory (RAM); the RAM may include Dynamic RAM (DRAM), Double data Rate Synchronous Dynamic RAM (DDR SDRAM); static RAM (SRAM), Thyristor-Based Random Access Memory (T-RAM), Zero-capacitor RAM (Zero-RAM), and the like. By way of example, the ROM may include Mask Read-Only Memory (MROM), Programmable ROM (PROM), erasable Programmable ROM (PEROM), Electrically Erasable Programmable ROM (EEPROM), compact disk ROM (CD-ROM), digital versatile disk ROM (DVD-ROM), and the like, or any combination thereof.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. A two-dimensional code generation method is characterized by comprising the following steps:
adding a two-dimensional code to be fused on a preset image to obtain a two-dimensional code image;
and generating a target two-dimensional code according to a preset fusion rule, the two-dimensional code image and the two-dimensional code to be generated.
2. The method of claim 1, wherein adding a two-dimensional code to be fused to a preset image to obtain a two-dimensional code image comprises:
adjusting the color of the pixel point of the two-dimensional code to be fused to obtain the adjusted two-dimensional code to be fused;
and overlapping the adjusted two-dimension code to be fused with the preset image to obtain the two-dimension code image.
3. The method of claim 2, wherein the step of superposing the adjusted two-dimensional code to be fused with the preset image to obtain the two-dimensional code image comprises:
and taking the adjusted two-dimension code to be fused as a coating of the preset image to obtain the two-dimension code image, wherein the color of each pixel point in the coating is matched with the color of the pixel point at the corresponding position of the original coating of the preset image according to a preset coating rule.
4. The method of claim 1, wherein before adding the two-dimensional code to be fused to the preset image and obtaining the two-dimensional code image, the method further comprises:
and acquiring the two-dimensional code to be generated according to the original two-dimensional code, and extracting the two-dimensional code to be fused, wherein the two-dimensional code to be generated comprises a region to be fused in a preset shape.
5. The method of claim 4, wherein the generating the target two-dimensional code according to the preset fusion rule, the two-dimensional code image and the two-dimensional code to be generated comprises:
converting the two-dimensional code image into a shape matched with the region to be fused to obtain a target two-dimensional code image;
and fusing the target two-dimensional code image to the region to be fused of the two-dimensional code to be generated to generate a target two-dimensional code.
6. A two-dimensional code recognition method is characterized by comprising the following steps:
acquiring an image to be identified, wherein the image to be identified comprises a target two-dimensional code, and the target two-dimensional code is generated according to a preset fusion rule, a two-dimensional code image and a two-dimensional code to be generated, wherein the two-dimensional code image is obtained by fusing a preset image and the two-dimensional code to be fused;
and respectively identifying the two-dimension code to be fused and the two-dimension code to be generated by adopting a two-dimension code identification algorithm, and identifying and acquiring the identification information of the image to be identified.
7. The method of claim 6, wherein the image to be recognized further comprises: the alternative identification mark and the target two-dimensional code both indicate identification information of the image to be identified;
the method comprises the following steps of adopting a two-dimension code recognition algorithm to respectively recognize the two-dimension code to be fused and the two-dimension code to be generated, and before acquiring the two-dimension code information of the target two-dimension code, further comprising:
and identifying and acquiring the target two-dimensional code and the alternative identification mark in the image to be identified.
8. The method of claim 7, wherein the identifying the two-dimensional code to be fused and the two-dimensional code to be generated respectively by using a two-dimensional code identification algorithm to obtain the identification information of the image to be identified comprises:
the two-dimension code identification algorithm is adopted to respectively identify the two-dimension code to be fused and the two-dimension code to be generated, and the two-dimension code information of the image to be identified is obtained through identification; alternatively, the first and second electrodes may be,
and if the two-dimension code recognition algorithm is adopted to recognize and acquire the two-dimension code information of the image to be recognized, recognizing and acquiring the alternative recognition identifier by adopting an algorithm corresponding to the alternative recognition identifier.
9. The method of claim 7, wherein the alternative identification is a character string or an identification code, wherein the character string comprises a combination of one or more of the following characters: numbers, letters, symbols.
10. A two-dimensional code generation device, comprising:
the acquisition module is used for adding the two-dimensional code to be fused on a preset image to acquire a two-dimensional code image;
and the generating module is used for generating a target two-dimensional code according to a preset fusion rule, the two-dimensional code image and the two-dimensional code to be generated.
11. The apparatus according to claim 10, wherein the obtaining module is specifically configured to adjust a color of a pixel point of the to-be-fused two-dimensional code, and obtain the adjusted to-be-fused two-dimensional code;
and overlapping the adjusted two-dimension code to be fused with the preset image to obtain the two-dimension code image.
12. The apparatus according to claim 11, wherein the obtaining module is specifically configured to obtain the two-dimensional code image by taking the adjusted two-dimensional code to be fused as a coating of the preset image, where a color of each pixel point in the coating is matched with a color of a pixel point at a corresponding position of an original coating of the preset image according to a preset coating rule.
13. The apparatus according to claim 10, further comprising an extraction module, configured to obtain the two-dimensional code to be generated according to an original two-dimensional code, and extract the two-dimensional code to be fused, where the two-dimensional code to be generated includes a region to be fused in a preset shape.
14. The apparatus according to claim 13, wherein the generating module is specifically configured to convert the two-dimensional code image into a shape matching the region to be fused, so as to obtain a target two-dimensional code image;
and fusing the target two-dimensional code image to the region to be fused of the two-dimensional code to be generated to generate a target two-dimensional code.
15. A two-dimensional code recognition device, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring an image to be identified, the image to be identified comprises a target two-dimensional code, and the target two-dimensional code is generated according to a preset fusion rule, a two-dimensional code image and a two-dimensional code to be generated, wherein the two-dimensional code image is obtained by fusing a preset image and the two-dimensional code to be fused;
and the identification module is used for respectively identifying the two-dimension code to be fused and the two-dimension code to be generated by adopting a two-dimension code identification algorithm and identifying and acquiring the identification information of the image to be identified.
16. The apparatus of claim 15, wherein the image to be recognized further comprises: the alternative identification mark and the target two-dimensional code both indicate identification information of the image to be identified;
the identification module is further configured to identify and acquire the target two-dimensional code and the candidate identification identifier in the image to be identified.
17. The apparatus according to claim 16, wherein the identifying module is specifically configured to identify the two-dimensional code to be fused and the two-dimensional code to be generated respectively by using a two-dimensional code identification algorithm, and identify and obtain two-dimensional code information of the image to be identified; alternatively, the first and second electrodes may be,
and if the two-dimension code recognition algorithm is adopted to recognize and acquire the two-dimension code information of the image to be recognized, recognizing and acquiring the alternative recognition identifier by adopting an algorithm corresponding to the alternative recognition identifier.
18. The apparatus of claim 17, wherein the alternative identification identifier is a character string or an identification code, wherein the character string comprises a combination of one or more of the following characters: numbers, letters, symbols.
19. An electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, the processor and the storage medium communicate through the bus when an electronic device runs, and the processor executes the machine-readable instructions to execute the two-dimensional code generation method according to any one of claims 1 to 5 or the two-dimensional code identification method according to any one of claims 6 to 9.
20. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of the two-dimensional code generation method according to any one of claims 1 to 5, or the two-dimensional code recognition method according to any one of claims 6 to 9.
CN201910100803.7A 2019-01-31 2019-01-31 Two-dimensional code generation and identification method and device Active CN111507446B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910100803.7A CN111507446B (en) 2019-01-31 2019-01-31 Two-dimensional code generation and identification method and device
PCT/CN2020/074167 WO2020156552A1 (en) 2019-01-31 2020-02-02 Two-dimensional code generation and recognition methods and devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910100803.7A CN111507446B (en) 2019-01-31 2019-01-31 Two-dimensional code generation and identification method and device

Publications (2)

Publication Number Publication Date
CN111507446A true CN111507446A (en) 2020-08-07
CN111507446B CN111507446B (en) 2022-03-04

Family

ID=71841656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910100803.7A Active CN111507446B (en) 2019-01-31 2019-01-31 Two-dimensional code generation and identification method and device

Country Status (2)

Country Link
CN (1) CN111507446B (en)
WO (1) WO2020156552A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560530A (en) * 2020-12-07 2021-03-26 北京三快在线科技有限公司 Two-dimensional code processing method, device, medium and electronic device
CN112686355A (en) * 2021-01-12 2021-04-20 树根互联技术有限公司 Image processing method and device, electronic equipment and readable storage medium
CN112926714A (en) * 2021-03-16 2021-06-08 北京航空航天大学 Visual three-dimensional code integrating QR code, bar code and optical character and coding method thereof
CN113505773A (en) * 2021-07-06 2021-10-15 树蛙信息科技(南京)有限公司 Two-dimensional code identification method and device
CN113971452A (en) * 2020-09-18 2022-01-25 谷歌有限责任公司 Platform for registering and processing visual codes
CN114819025A (en) * 2022-06-28 2022-07-29 深圳市国人光速科技有限公司 Ink jet image generating method, device and computer containing multiple variable information

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112070195A (en) * 2020-09-22 2020-12-11 澳新银行营运服务(成都)有限公司 Two-dimensional code identification and generation method and device, electronic equipment and storage medium
CN112199181A (en) * 2020-10-23 2021-01-08 劢微机器人科技(深圳)有限公司 Information interaction system and method based on two-dimensional code
CN113110778A (en) * 2021-04-20 2021-07-13 树根互联股份有限公司 Graphical interface display method, terminal, readable storage medium and electronic equipment
CN113962240B (en) * 2021-10-12 2023-09-15 北京百度网讯科技有限公司 Picture processing method, device, electronic equipment and storage medium
CN114091639A (en) * 2021-11-26 2022-02-25 北京奇艺世纪科技有限公司 Interactive expression generation method and device, electronic equipment and storage medium
CN116048323B (en) * 2022-05-27 2023-11-24 荣耀终端有限公司 Image processing method and electronic equipment
CN114996766A (en) * 2022-08-01 2022-09-02 江西财经大学 Image sharing method and system based on two-dimension code social network and storage medium
CN117057384A (en) * 2023-08-15 2023-11-14 厦门中盾安信科技有限公司 User code string generation method, medium and device supporting multi-type business handling

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103854045A (en) * 2014-02-26 2014-06-11 崔越 Two-dimension code and forming method and system thereof
CN103886628A (en) * 2014-03-10 2014-06-25 百度在线网络技术(北京)有限公司 Two-dimension code image generating method and device
CN103886548A (en) * 2013-07-04 2014-06-25 百度在线网络技术(北京)有限公司 Method and device for integrating two-dimensional code with image
US20150008257A1 (en) * 2012-10-09 2015-01-08 Robert Beadles Display card with memory tag- hybrid multidimensional bar text code
CN106408066A (en) * 2016-09-06 2017-02-15 北京三快在线科技有限公司 Two-dimensional code-based image processing method, device and two-dimensional code
CN106599965A (en) * 2016-11-25 2017-04-26 北京矩石科技有限公司 Method and device for making image cartoony and fusing image with 2D code
CN106599960A (en) * 2015-10-14 2017-04-26 上海易溯信息科技有限公司 Multifunctional combined type label, and manufacturing equipment and method thereof
CN106778995A (en) * 2016-11-25 2017-05-31 北京矩石科技有限公司 A kind of art up two-dimensional code generation method and device with image co-registration
CN107563966A (en) * 2017-08-01 2018-01-09 北京诺君安信息技术股份有限公司 A kind of Quick Response Code and image interfusion method and Quick Response Code
CN109255634A (en) * 2018-09-07 2019-01-22 昆明盛策同辉数字科技有限责任公司 Merge method for anti-counterfeit, device, storage medium and the equipment of AR and two dimensional code

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763178B (en) * 2014-01-03 2016-10-05 腾讯科技(深圳)有限公司 A kind of information-pushing method, server, user terminal and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150008257A1 (en) * 2012-10-09 2015-01-08 Robert Beadles Display card with memory tag- hybrid multidimensional bar text code
CN103886548A (en) * 2013-07-04 2014-06-25 百度在线网络技术(北京)有限公司 Method and device for integrating two-dimensional code with image
CN103854045A (en) * 2014-02-26 2014-06-11 崔越 Two-dimension code and forming method and system thereof
CN103886628A (en) * 2014-03-10 2014-06-25 百度在线网络技术(北京)有限公司 Two-dimension code image generating method and device
CN106599960A (en) * 2015-10-14 2017-04-26 上海易溯信息科技有限公司 Multifunctional combined type label, and manufacturing equipment and method thereof
CN106408066A (en) * 2016-09-06 2017-02-15 北京三快在线科技有限公司 Two-dimensional code-based image processing method, device and two-dimensional code
CN106599965A (en) * 2016-11-25 2017-04-26 北京矩石科技有限公司 Method and device for making image cartoony and fusing image with 2D code
CN106778995A (en) * 2016-11-25 2017-05-31 北京矩石科技有限公司 A kind of art up two-dimensional code generation method and device with image co-registration
CN107563966A (en) * 2017-08-01 2018-01-09 北京诺君安信息技术股份有限公司 A kind of Quick Response Code and image interfusion method and Quick Response Code
CN109255634A (en) * 2018-09-07 2019-01-22 昆明盛策同辉数字科技有限责任公司 Merge method for anti-counterfeit, device, storage medium and the equipment of AR and two dimensional code

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LONGDAN TAN等: "Visual Secret Sharing Scheme for Color QR Code", 《 2018 IEEE 3RD INTERNATIONAL CONFERENCE ON IMAGE, VISION AND COMPUTING (ICIVC)》 *
于英政: "QR二维码相关技术的研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113971452A (en) * 2020-09-18 2022-01-25 谷歌有限责任公司 Platform for registering and processing visual codes
US11836553B2 (en) 2020-09-18 2023-12-05 Google Llc Platform for registering and processing visual encodings
CN112560530A (en) * 2020-12-07 2021-03-26 北京三快在线科技有限公司 Two-dimensional code processing method, device, medium and electronic device
CN112560530B (en) * 2020-12-07 2024-02-23 北京三快在线科技有限公司 Two-dimensional code processing method, device, medium and electronic device
CN112686355A (en) * 2021-01-12 2021-04-20 树根互联技术有限公司 Image processing method and device, electronic equipment and readable storage medium
CN112686355B (en) * 2021-01-12 2024-01-05 树根互联股份有限公司 Image processing method and device, electronic equipment and readable storage medium
CN112926714A (en) * 2021-03-16 2021-06-08 北京航空航天大学 Visual three-dimensional code integrating QR code, bar code and optical character and coding method thereof
CN112926714B (en) * 2021-03-16 2022-09-16 北京航空航天大学 Visual three-dimensional code integrating QR code, bar code and optical character and coding method thereof
CN113505773A (en) * 2021-07-06 2021-10-15 树蛙信息科技(南京)有限公司 Two-dimensional code identification method and device
CN113505773B (en) * 2021-07-06 2024-03-05 树蛙信息科技(南京)有限公司 Two-dimensional code identification method and device
CN114819025A (en) * 2022-06-28 2022-07-29 深圳市国人光速科技有限公司 Ink jet image generating method, device and computer containing multiple variable information
CN114819025B (en) * 2022-06-28 2022-09-13 深圳市国人光速科技有限公司 Ink jet image generating method and device containing multiple variable information and computer

Also Published As

Publication number Publication date
WO2020156552A1 (en) 2020-08-06
CN111507446B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN111507446B (en) Two-dimensional code generation and identification method and device
CN103400099B (en) Terminal and two-dimensional code identification method
KR102215766B1 (en) Method and apparatus for generating synthetic picture
US9262699B2 (en) Method of handling complex variants of words through prefix-tree based decoding for Devanagiri OCR
ES2369143T3 (en) VISUAL CODE METHOD FOR MOBILE DEVICES EQUIPPED WITH CAMERA.
TWI631514B (en) Method and system for marking recognition based on mobile terminal
JP2006134336A (en) Mixed code, method and apparatus for generating mixed code, and recording medium
CN105718979B (en) A method of generating two-dimension code image
CN111062704A (en) Method and device for identifying graphic code
CN106844302B (en) Electronic book page display method and device and terminal equipment
US11373351B2 (en) Image processing method, program, and image processing system
JPWO2015174192A1 (en) Two-dimensional code, two-dimensional code analysis system, and two-dimensional code creation system
CN105718980A (en) Method for generating two-dimensional code picture
CN111488753A (en) Two-dimensional code identification method and device, electronic equipment and readable storage medium
KR102328034B1 (en) Database building device that can build a knowledge database from a table-inserted image and operating method thereof
CN106846610A (en) A kind of recognition methods of bank note version and device
US20210182477A1 (en) Information processing apparatus and non-transitory computer readable medium storing program
US10776656B2 (en) Methods and systems for applying content aware stickers onto a layout
CN113033325A (en) Image processing method and device, intelligent invoice recognition equipment and storage medium
US10311318B2 (en) Reference line setting device, reference line setting method and reference line setting program
JP5278093B2 (en) Article related information providing method, apparatus, program, and recording medium
EP4091097A1 (en) Text line detection
JPWO2017013719A1 (en) Character recognition device, character recognition method, and character recognition program
JP6148426B1 (en) Image processing apparatus, image processing method, and image processing program
JP2020160744A (en) Image processing method, program and image processing system

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220318

Address after: 311199 Room 301, No. 108, Xincheng Road, Nanyuan street, Hangzhou, Zhejiang

Patentee after: HANGZHOU QINGQI SCIENCE AND TECHNOLOGY Co.,Ltd.

Address before: Room 203, 2 / F, building 34, yard 8, Dongbei Wangxi Road, Haidian District, Beijing 100193

Patentee before: Beijing Qisheng Technology Co.,Ltd.