CN109190738A - A kind of generation of encoding of graphs, recognition methods and device - Google Patents

A kind of generation of encoding of graphs, recognition methods and device Download PDF

Info

Publication number
CN109190738A
CN109190738A CN201810935595.8A CN201810935595A CN109190738A CN 109190738 A CN109190738 A CN 109190738A CN 201810935595 A CN201810935595 A CN 201810935595A CN 109190738 A CN109190738 A CN 109190738A
Authority
CN
China
Prior art keywords
graphs
encoding
code
information
content
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
CN201810935595.8A
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810935595.8A priority Critical patent/CN109190738A/en
Publication of CN109190738A publication Critical patent/CN109190738A/en
Pending legal-status Critical Current

Links

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/06018Record 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 one-dimensional coding
    • G06K19/06028Record 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 one-dimensional coding using bar codes
    • 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 present invention provides a kind of generation of encoding of graphs, recognition methods and devices.The generation method of encoding of graphs comprises determining that the system information, heading message and data content of encoding of graphs to be generated;The registration pattern for being positioned to encoding of graphs to be generated is generated according to the version information of encoding of graphs to be generated, and determines localization region, Title area and the content area of encoding of graphs to be generated according to registration pattern;Data content is encrypted according to encryption algorithm type, obtains code word data;Registration pattern is set in localization region, the numeric data code of record code word data is set in the system information code of Title area setting recording system information and the heading message code of record header information, and in content area, to generate encoding of graphs.The embodiment of the present invention encrypts data content, can increase the safety of data, meets the security requirement of user.

Description

A kind of generation of encoding of graphs, recognition methods and device
Technical field
The present invention relates to technical field of information processing, the generation method and device of especially a kind of encoding of graphs, figure are compiled The recognition methods of code and device, method, computer storage medium and calculating based on the progress information transmitting of encoding of graphs data Equipment.
Background technique
Barcode technology is the collection coding to grow up on computer and Information Technology Foundation, printing, identification, data Acquisition and processing are in the emerging technology of one.Bar code includes one-dimension code, two dimensional code etc..
One-dimension code, that is, finger code-bar and empty queueing discipline have many advantages, such as that high input speed, accuracy are high, at low cost, It occupies an important position in current automatic identification technology.But one-dimensional bar code production is simple, coding code system be easier to by Criminal obtains and forges.In addition, one-dimension code data capacity is small, as a consequence it is hardly possible to indicate Chinese character or image information etc..
Two dimensional code, also known as two-dimensional bar code (2-dimensional bar code), be with certain specific geometric figure by The chequered with black and white graphic recording data symbol information that certain rule is distributed in plane (on two-dimensional directional).It is skilful in code compilation Wonderfully using " 0 " of computer-internal logical foundations, the concept of " 1 " binary bit stream is constituted, black indicates binary " 1 ", white indicate binary " 0 ", and indicate that text numerical value is believed using several geometrical bodies corresponding with binary system Breath, by image input device or photoelectric scanning device automatically identifying and reading to realize automatic processing of information.
Currently used two dimensional code is QR Code two dimensional code, which is invented by Japan electric coating company (DENSO).QR comes From the abbreviation of English Quick Response, the i.e. meaning of fast reaction, wish that QR code can allow its content quick from inventor It is decoded.
Inventors have found that data content is cleartext information in QR code, safety is low, it would be highly desirable to solve this technical problem.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the generation method and device of the encoding of graphs of problem, the recognition methods of encoding of graphs and device, based on encoding of graphs data into Method, computer storage medium and the calculating equipment of row information transmitting.
One side according to an embodiment of the present invention provides a kind of generation method of encoding of graphs, comprising:
Determine the system information, heading message and data content of encoding of graphs to be generated, wherein the system information packet The version information for including the encoding of graphs to be generated, the encryption algorithm type that the data content is encrypted;
It is generated according to the version information of the encoding of graphs to be generated for being positioned to the encoding of graphs to be generated Registration pattern, and the localization region of the encoding of graphs to be generated, Title area and interior are determined according to the registration pattern Hold region;
The data content is encrypted according to the encryption algorithm type, obtains code word data;
The registration pattern is set in the localization region, is what Title area setting recorded the system information System information code and the heading message code for recording the heading message, and the code word data is recorded in content area setting Numeric data code, to generate encoding of graphs.
Optionally, the localization region, Title area and content area constitute rectangular area, and three does not overlap.
Optionally, the registration pattern includes first position detection figure, second position detection figure and the third place Figure is detected, three angles end of the rectangular area is located at.
Optionally, if the Title area is true by first position detection figure and second position detection figure Fixed, then the first position detection figure, the second position detect the system information code in figure and the Title area Be spliced with heading message code by first code element, the numeric data code in the third place detection figure, the content area by Second code element is spliced.
Optionally, the system information code of the system information is recorded in Title area setting and record the title letter The heading message code of breath, and the numeric data code of the code word data is recorded in content area setting, comprising:
Color filling is carried out to the first code element in the Title area according to the system information and the heading message, To record the system information code of the system information in Title area setting and record the heading message of the heading message Code;And
Color filling is carried out to the second code element in the content area according to the code word data, in the content regions The numeric data code for recording the code word data is arranged in domain.
Optionally, the size of the first code element is equal to the size of the second code element of prescribed coefficient.
Optionally, the horizontal properties ratio and vertical features ratio phase of each section in each position sensing figure Together, and it is following one of any:
2:1:1:1:2、1:2:2:2:1、1:1:4:1:1、2:1:2:1:2、1:1:1:2:1:1:1。
Optionally, the registration pattern further includes detecting figure or the second position detection figure according to the first position The first auxiliary positioning figure that shape determines, the first auxiliary positioning figure are spliced by the first code element.
Optionally, the registration pattern further includes detecting the second auxiliary positioning figure that figure determines according to the third place Shape, the second auxiliary positioning figure are spliced by the second code element.
Optionally, the heading message includes at least one following:
Text, picture, emoji expression.
Optionally, the system information further includes the type of coding encoded to the heading message, in the title The heading message code for recording the heading message is arranged in region, comprising:
The heading message is encoded according to the type of coding, obtains title code word;
The heading message code of the title code word is recorded in Title area setting.
Optionally, the system information further includes the first compression algorithm type compressed to the heading message, root The heading message is encoded according to the type of coding, obtains title code word, comprising:
The heading message is encoded according to the type of coding, obtains heading code information;
The heading code information is compressed to obtain title code word according to the first compression algorithm type.
Optionally, the data content includes at least one following:
Text, picture, audio, emoji expression.
Optionally, the system information further includes the second compression algorithm type compressed to the data content, root The data content is encrypted according to the encryption algorithm type, obtains code word data, comprising:
The data content is compressed according to the second compression algorithm type, obtains compression information;
The compression information is encrypted to obtain code word data using the encryption algorithm type.
According to another aspect of an embodiment of the present invention, a kind of recognition methods of encoding of graphs is additionally provided, comprising:
The image comprising encoding of graphs is obtained, the encoding of graphs generates to obtain according to methodology above;
It identifies the registration pattern in described image, the encoding of graphs is positioned according to the registration pattern, determine The Title area and content area of the encoding of graphs;
System information code in the Title area is parsed, obtains parsing information, wherein the parsing packet It includes the decoded information being decoded to the heading message code in the Title area, the numeric data code in the content area is carried out The solution confidential information of decryption;
The heading message code in the Title area is decoded according to the decoded information, obtains the encoding of graphs Heading message;And
The numeric data code in the content area is decrypted according to the solution confidential information, obtains the number of the encoding of graphs According to content.
Optionally, the registration pattern in described image is identified, comprising:
Identify that n candidate position sensing figure, the n are the positive integer more than or equal to 3 in described image;
First position detection figure, second position detection figure are determined in the position sensing figure candidate from described n And the third place detects figure.
Optionally, determine that first position detection figure, the second position are visited from described n candidate position sensing figure Mapping shape and the third place detect figure, comprising:
Determine the level of each section in described n candidate position sensing figure in the position sensing figure of each candidate Characteristic ratio and vertical features ratio;
Horizontal properties ratio is chosen in the position sensing figure candidate from described n and vertical features ratio is designated ratio Three position sensing figures, and determine the situation of three position sensing figures;
According to the situation of three position sensing figures, determine that first position detection figure, the second position are visited Mapping shape and the third place detect figure.
Optionally, the encoding of graphs is positioned according to the registration pattern, determines the title of the encoding of graphs Region and content area, comprising:
Figure is detected according to the first position and the second position detects figure, determines the title of the encoding of graphs Region;And
Figure, second position detection figure and the third place detection figure are detected according to the first position Shape determines the content area of the encoding of graphs.
Optionally, the parsing information further includes the first solution decompressed to the heading message code in the Title area Information is pressed, the heading message code in the Title area is decoded according to the decoded information, obtains the encoding of graphs Heading message, comprising:
The heading message code in the Title area is decompressed according to first compressing information, obtains title decompression Content;
Title decompression content is decoded according to the decoded information, obtains the title letter of the encoding of graphs Breath.
Optionally, the parsing information further includes the second decompression letter decompressed to the numeric data code in the content area Breath, is decrypted the numeric data code in the content area according to the solution confidential information, obtains in the data of the encoding of graphs Hold, comprising:
The numeric data code in the content area is decrypted according to the solution confidential information, obtains decryption content;
The decryption content is decompressed according to second compressing information, is obtained in the data of the encoding of graphs Hold.
Another aspect according to an embodiment of the present invention, additionally provides a kind of generating means of encoding of graphs, comprising:
First determining module determines the system information, heading message and data content of encoding of graphs to be generated, wherein The Encryption Algorithm that the system information includes the version information of the encoding of graphs to be generated, encrypted to the data content Type;
Second determining module, suitable for being generated according to the version information of the encoding of graphs to be generated for described to be generated The registration pattern that encoding of graphs is positioned, and determine according to the registration pattern positioning area of the encoding of graphs to be generated Domain, Title area and content area;
Encrypting module obtains code word data suitable for encrypting according to the encryption algorithm type to the data content;
Generation module is suitable for that the registration pattern is arranged in the localization region, and record institute is arranged in the Title area It states the system information code of system information and records the heading message code of the heading message, and be arranged in the content area and remember The numeric data code of the code word data is recorded, to generate encoding of graphs.
Optionally, the localization region, Title area and content area constitute rectangular area, and three does not overlap.
Optionally, the registration pattern includes first position detection figure, second position detection figure and the third place Figure is detected, three angles end of the rectangular area is located at.
Optionally, if the Title area is true by first position detection figure and second position detection figure Fixed, then the first position detection figure, the second position detect the system information code in figure and the Title area Be spliced with heading message code by first code element, the numeric data code in the third place detection figure, the content area by Second code element is spliced.
Optionally, the generation module is further adapted for:
Color filling is carried out to the first code element in the Title area according to the system information and the heading message, To record the system information code of the system information in Title area setting and record the heading message of the heading message Code;And
Color filling is carried out to the second code element in the content area according to the code word data, in the content regions The numeric data code for recording the code word data is arranged in domain.
Optionally, the size of the first code element is equal to the size of the second code element of prescribed coefficient.
Optionally, the horizontal properties ratio and vertical features ratio phase of each section in each position sensing figure Together, and it is following one of any:
2:1:1:1:2、1:2:2:2:1、1:1:4:1:1、2:1:2:1:2、1:1:1:2:1:1:1。
Optionally, the registration pattern further includes detecting figure or the second position detection figure according to the first position The first auxiliary positioning figure that shape determines, the first auxiliary positioning figure are spliced by the first code element.
Optionally, the registration pattern further includes detecting the second auxiliary positioning figure that figure determines according to the third place Shape, the second auxiliary positioning figure are spliced by the second code element.
Optionally, the heading message includes at least one following:
Text, picture, emoji expression.
Optionally, the system information further includes the type of coding encoded to the heading message, the generation mould Block is further adapted for:
The heading message is encoded according to the type of coding, obtains title code word;
The heading message code of the title code word is recorded in Title area setting.
Optionally, the system information further includes the first compression algorithm type compressed to the heading message, institute Generation module is stated to be further adapted for:
The heading message is encoded according to the type of coding, obtains heading code information;
The heading code information is compressed to obtain title code word according to the first compression algorithm type.
Optionally, the data content includes at least one following:
Text, picture, audio, emoji expression.
Optionally, the system information further includes the second compression algorithm type compressed to the data content, institute Encrypting module is stated to be further adapted for:
The data content is compressed according to the second compression algorithm type, obtains compression information;
The compression information is encrypted to obtain code word data using the encryption algorithm type.
Another aspect according to an embodiment of the present invention, additionally provides a kind of identification device of encoding of graphs, comprising:
Module is obtained, the image comprising encoding of graphs is obtained, the encoding of graphs generates to obtain according to device above;
Identification module, suitable for identifying the registration pattern in described image, according to the registration pattern to the encoding of graphs It is positioned, determines the Title area and content area of the encoding of graphs;
First parsing module obtains parsing information suitable for parsing to the system information code in the Title area, In, the parsing information includes the decoded information being decoded to the heading message code in the Title area, to the content The solution confidential information that numeric data code in region is decrypted;
Second parsing module, suitable for being solved according to the decoded information to the heading message code in the Title area Code, obtains the heading message of the encoding of graphs;And
Third parsing module is obtained suitable for the numeric data code in the content area is decrypted according to the solution confidential information To the data content of the encoding of graphs.
Optionally, the identification module is further adapted for:
Identify that n candidate position sensing figure, the n are the positive integer more than or equal to 3 in described image;
First position detection figure, second position detection figure are determined in the position sensing figure candidate from described n And the third place detects figure.
Optionally, the identification module is further adapted for:
Determine the level of each section in described n candidate position sensing figure in the position sensing figure of each candidate Characteristic ratio and vertical features ratio;
Horizontal properties ratio is chosen in the position sensing figure candidate from described n and vertical features ratio is designated ratio Three position sensing figures, and determine the situation of three position sensing figures;
According to the situation of three position sensing figures, determine that first position detection figure, the second position are visited Mapping shape and the third place detect figure.
Optionally, the identification module is further adapted for:
Figure is detected according to the first position and the second position detects figure, determines the title of the encoding of graphs Region;And
Figure, second position detection figure and the third place detection figure are detected according to the first position Shape determines the content area of the encoding of graphs.
Optionally, the parsing information further includes the first solution decompressed to the heading message code in the Title area Information is pressed, second parsing module is further adapted for:
The heading message code in the Title area is decompressed according to first compressing information, obtains title decompression Content;
Title decompression content is decoded according to the decoded information, obtains the title letter of the encoding of graphs Breath.
Optionally, the parsing information further includes the second decompression letter decompressed to the numeric data code in the content area Breath, the third parsing module are further adapted for:
The numeric data code in the content area is decrypted according to the solution confidential information, obtains decryption content;
The decryption content is decompressed according to second compressing information, is obtained in the data of the encoding of graphs Hold.
Another aspect according to an embodiment of the present invention additionally provides and a kind of carries out information transmitting based on encoding of graphs data Method, comprising:
When needing to carry out information transmitting between first terminal and second terminal, the application on first terminal is using above-mentioned Generation method generates encoding of graphs, and the encoding of graphs carries target and transmits information;
Application in second terminal identifies the encoding of graphs using above-mentioned recognition methods, wherein the target carried Transmit information.
Another aspect according to an embodiment of the present invention additionally provides a kind of computer storage medium, the computer storage Media storage has computer program code, when the computer program code is run on the computing device, leads to the calculating Equipment executes the generation method of above-mentioned encoding of graphs and/or the recognition methods of encoding of graphs.
It is according to an embodiment of the present invention in another aspect, additionally providing a kind of calculating equipment, comprising: processor;And storage There is the memory of computer program code;When the computer program code is run by the processor, lead to the calculating Equipment executes the generation method of above-mentioned encoding of graphs and/or the recognition methods of encoding of graphs.
System information code and heading message code is arranged in the encoding of graphs that the embodiment of the present invention generates in Title area, Numeric data code is set in content area, is capable of providing compared to currently used QR code and proposes more information.Also, the embodiment of the present invention Data content is encrypted, the safety of data can be increased, meets the security requirement of user.Further, this is being identified When the encoding of graphs that inventive embodiments provide, Title area and content area can be identified respectively, obtains the mark in Title area The data content for inscribing information or content area, meets the various demands of user.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
According to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will be brighter The above and other objects, advantages and features of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the generation method of encoding of graphs according to an embodiment of the invention;
Fig. 2 shows the structure charts for the encoding of graphs that an embodiment according to the present invention generates;
Fig. 3 shows the structure chart for the encoding of graphs that another embodiment generates according to the present invention;
Fig. 4 shows the structure chart for the encoding of graphs that another embodiment generates according to the present invention;
Fig. 5 shows the first, second auxiliary positioning figure according to an embodiment of the invention;
Fig. 6 shows the flow chart of the recognition methods of encoding of graphs according to an embodiment of the invention;
Fig. 7 shows the effect picture that an embodiment identifies encoding of graphs according to the present invention;
Fig. 8 shows the structure chart of the generating means of encoding of graphs according to an embodiment of the invention;
Fig. 9 shows the structure chart of the identification device of encoding of graphs according to an embodiment of the invention;
Figure 10 shows the encoding of graphs that an embodiment is shown on the screen of the mobile terminal according to the present invention;
Figure 11 shows the encoding of graphs that an embodiment is shown on the screen of PC according to the present invention;
Figure 12 shows the encoding of graphs that another embodiment is shown on the screen of PC according to the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
In order to solve the above technical problems, the embodiment of the invention provides a kind of generation methods of encoding of graphs.Fig. 1 is shown The flow chart of the generation method of encoding of graphs according to an embodiment of the invention.Referring to Fig. 1, this method be may comprise steps of S102 to step S108.
Step S102 determines the system information, heading message and data content of encoding of graphs to be generated, wherein system The encryption algorithm type that information includes the version information of encoding of graphs to be generated, encrypted to data content.
Step S104 is generated according to the version information of encoding of graphs to be generated for positioning to encoding of graphs to be generated Registration pattern, and determine according to registration pattern localization region, Title area and the content area of encoding of graphs to be generated.
Step S106 encrypts data content according to encryption algorithm type, obtains code word data.
Registration pattern is arranged in localization region, in the system information of Title area setting recording system information in step S108 The heading message code of code and record header information, and the numeric data code of record code word data is set in content area, to generate Encoding of graphs.
System information code and heading message code is arranged in the encoding of graphs that the embodiment of the present invention generates in Title area, Numeric data code is set in content area, is capable of providing compared to currently used QR code and proposes more information.Also, the embodiment of the present invention Data content is encrypted, the safety of data can be increased, meets the security requirement of user.
The encryption algorithm type referred in above step S102 can be AES (Advanced Encryption Standard, Advanced Encryption Standard) in CTR (Counter, calculator mode), in CTR mod formula, have one from increase calculation Son, this operator encrypted with key after output and the result of plaintext exclusive or obtain ciphertext, be equivalent to one-time pad.It is this to add Close mode is simple and quick, safe and reliable, and can be with parallel encryption.In practical applications, other Encryption Algorithm classes be can also be Type, the embodiment of the present invention to this with no restriction.
Fig. 2 shows the structure charts for the encoding of graphs that an embodiment according to the present invention generates.Referring to fig. 2, the encoding of graphs Including localization region S1, Title area S2 and content area S3.It is arranged in the S1 of localization region for determining encoding of graphs System information code and heading message code are arranged in Title area S2, numeric data code is arranged in content area S3, is for the registration pattern of position System information code is for carrying information required when parsing to heading message code and numeric data code.
In alternative embodiment of the invention, Title area S2 and content area S3 can be determined by localization region S1, Localization region S1, Title area S2 and content area S3 constitute rectangular area, and three does not overlap.Further, it positions Pattern may include first position detection figure, second position detection figure and the third place detection figure, be located at square Three angles end in shape region.
In Fig. 2, three registration patterns in the S1 of localization region can determine Title area S2 and content area S3, specifically Ground, the first position detection figure g11 in the upper left corner, the second position detection figure g12 in the upper right corner determine mark in the S1 of localization region Region S2 is inscribed, the first position detection figure g11 in the upper left corner, the second position in the upper right corner detect the third of figure g12, the lower right corner Position sensing figure g13 determines content area S3.It should be noted that the third place detection figure g13 can position as shown in Figure 2 In the lower right corner, in practical applications can also be located at the lower left corner, the embodiment of the present invention to this with no restriction.
As mentioned above, the first position detection figure g11 in the upper left corner, the second position in the upper right corner are visited in the S1 of localization region Mapping shape g12 can determine Title area S2, then first position detection figure g11, second position detection figure g12 and mark System information code and heading message code in topic region S2 can be spliced by first code element, the third place detection figure g13, Numeric data code in content area S3 can be spliced by second code element.Here, the size of first code element is equal to prescribed coefficient The size of second code element, prescribed coefficient value can be 1/4,1/2,1,2,4 etc., the embodiment of the present invention to this with no restriction. Fig. 2 illustrates encoding of graphs when prescribed coefficient is 1/2, and Fig. 3 illustrates encoding of graphs when prescribed coefficient is 2,
Fig. 4 illustrates encoding of graphs when prescribed coefficient is 4.
In the system information code and record header code word of Title area setting recording system information in above step S108 Heading message code, and the numeric data code of record code word data is set in content area, the embodiment of the invention provides a kind of optional Scheme color can be carried out in this scenario to the first code element in Title area according to system information and title code word and filled out It fills, in the heading message code of the system information code of Title area setting recording system information and record header code word;And root Color filling is carried out to the second code element in content area according to code word data, the number of record code word data to be arranged in content area According to code.
In an alternative embodiment, the horizontal properties ratio and vertical features ratio of each section in each position sensing figure It is identical.Here, the horizontal properties ratio of each section in each position sensing figure and vertical features ratio can be 2:1:1: 1:2,1:2:2:2:1,1:1:4:1:1,2:1:2:1:2 or 1:1:1:2:1:1:1 etc., the embodiment of the present invention do not limit this System.
For shown in Fig. 2, first position detects figure g11, second position detection figure g12, the third place detection figure Black middle part, white inner ring in shape g13 in each position sensing figure, black outer ring each section are square.Also, the One position sensing figure g11, second position detection figure g12, the third place detect in figure g13 in each position sensing figure Each section horizontal properties ratio it is identical with vertical features ratio, specially 1:2:2:2:1.
In alternative embodiment of the invention, registration pattern can also include detecting figure or second according to first position The first auxiliary positioning figure that detection figure determines is set, the first auxiliary positioning figure can be spliced by first code element.It is optional Ground, registration pattern can also include detecting the second auxiliary positioning figure that figure determines, the second auxiliary positioning according to the third place Figure can be spliced by second code element.
Fig. 5 shows the first, second auxiliary positioning figure according to an embodiment of the invention, and in Fig. 5, the first auxiliary is fixed Bit pattern g21 detects figure g11 ' or second position detection figure g12 ' by first position to determine, and the first auxiliary positioning Figure g21 can be spliced by first code element.Second auxiliary positioning figure g22 detects figure g13 ' according to the third place come really It is fixed, and the second auxiliary positioning figure g22 can be spliced by second code element.
When the system information code and heading message code that are arranged in identifying Title area, the first auxiliary positioning figure g21 can To improve the accuracy rate of identification.Similarly, when the numeric data code being arranged in identifying content area, the second auxiliary positioning figure g22 The accuracy rate of identification can be improved.
It should be noted that in order to more clearly from illustrate the first auxiliary positioning figure g21, the second auxiliary positioning figure Encoding of graphs in g22, Fig. 5 only illustrates first position detection figure g11 ', second position detection figure g12 ' and third Position sensing figure g13 ', does not illustrate in the system information code and heading message code and content area being arranged in Title area The numeric data code of setting.In addition, the third place detection figure g13 ' in Fig. 5 is located at the lower left corner, in practical applications, the third place Detect figure g13 ' can also be located at the lower right corner, the embodiment of the present invention to this with no restriction.
In alternative embodiment of the invention, heading message may include text, picture, in emoji expression at least it One, the embodiment of the present invention to this with no restriction.
In alternative embodiment of the invention, system information can also include the coding class encoded to heading message Type then specifically can be in the heading message code of Title area setting record header information according to coding in above step S108 Type encodes heading message, obtains title code word, later in the heading message of Title area setting record header code word Code.Here type of coding can be UTF-8 character code etc..
In alternative embodiment of the invention, system information can also include the first compression compressed to heading message Algorithm types then encode heading message according to type of coding, obtain title code word, specifically can be according to type of coding Heading message is encoded, heading code information is obtained, later according to the first compression algorithm type to heading code information into Row compression obtains title code word.Here using the means of compression, it is possible to reduce data volume, thus reduce the area of encoding of graphs, So that encoding of graphs can be printed to very small area in some scenes, meet a variety of demands of user.
In alternative embodiment of the invention, data content may include text, picture, audio, in emoji expression extremely It is one of few, the embodiment of the present invention to this with no restriction.
In alternative embodiment of the invention, system information can also include the second compression compressed to data content Algorithm types then encrypt data content according to encryption algorithm type in above step S106, obtain code word data, specifically It can be and data content is compressed according to the second compression algorithm type, obtain compression information, use Encryption Algorithm class later Type is encrypted to obtain code word data to compression information.In this way, using the means of compression and encryption, while reducing data volume Increase the safety of data.
Above mentioned first compression algorithm type and the second compression algorithm type may be the same or different.First Compression algorithm type can be differential encoding, Huffman coding, arithmetic coding etc., and the second compression algorithm type is also possible to Differential encoding, Huffman coding, arithmetic coding etc., the embodiment of the present invention to this with no restriction.
Based on the same inventive concept, the embodiment of the invention also provides a kind of recognition methods of encoding of graphs, for The encoding of graphs that text inventive embodiments generate is identified.Fig. 6 shows encoding of graphs according to an embodiment of the invention The flow chart of recognition methods.Referring to Fig. 6, this method may comprise steps of S602 to step S610.
Step S602, obtains the image comprising encoding of graphs, which generates to obtain according to methodology above.
Step S604 identifies the registration pattern in image, is positioned according to registration pattern to encoding of graphs, determine figure The Title area and content area of coding.
Step S606 parses the system information code in Title area, obtains parsing information, wherein parsing information Including the heading message code in Title area is decoded decoded information, the numeric data code in content area is decrypted Solve confidential information.
Step S608 is decoded the heading message code in Title area according to decoded information, obtains encoding of graphs Heading message.
Step S610 internally holds the numeric data code in region according to solution confidential information and is decrypted, obtains the data of encoding of graphs Content.
When encoding of graphs provided in an embodiment of the present invention, Title area and content area can be identified respectively, obtains title The data content of heading message or content area in region meets the various demands of user.
The registration pattern in image is identified in above step S604, the embodiment of the invention provides a kind of optional scheme, In this scenario, it can identify that n candidate position sensing figure, n are the positive integer more than or equal to 3 in the picture, with Afterwards, first position detection figure, second position detection figure and third position are determined from n candidate position sensing figure Set detection figure.
In alternative embodiment of the invention, determining that first position detects from n candidate position sensing figure Figure, second position detection figure and the third place detect figure, can specifically include following steps A1 to step A3.
Step A1 determines each section in n candidate position sensing figure in the position sensing figure of each candidate Horizontal properties ratio and vertical features ratio.
Step A2 chooses horizontal properties ratio from the position sensing figure of n candidate and vertical features ratio is specified Three position sensing figures of ratio, and determine the situation of three position sensing figures.
Step A3 determines that first position detects figure, the second position according to the situation of three position sensing figures It detects figure and the third place detects figure.
Based on above to the explanation of encoding of graphs, designated ratio here can be such as 2:1:1:1:2,1:2:2:2:1,1:1: 4:1:1,2:1:2:1:2 or 1:1:1:2:1:1:1 etc., the embodiment of the present invention to this with no restriction.
Encoding of graphs is positioned according to registration pattern in above step S604, determine encoding of graphs Title area and Content area, the embodiment of the invention provides a kind of optional schemes, that is, detects figure according to first position and the second position is visited Mapping shape determines the Title area of encoding of graphs;And figure, second position detection figure and the are detected according to first position Three position sensing figures, determine the content area of encoding of graphs.
In alternative embodiment of the invention, parsing information can also include carrying out to the heading message code in Title area First compressing information of decompression, then solve the heading message code in Title area according to decoded information in above step S608 Code, obtains the heading message of encoding of graphs, specifically can be according to the first compressing information to the heading message code in Title area It is decompressed, obtains title decompression content, title decompression content is decoded according to decoded information later, obtains encoding of graphs Heading message.
In alternative embodiment of the invention, parsing information can also include decompressing to the numeric data code in content area The second compressing information, then internally hold the numeric data code in region according to solution confidential information in above step S610 and be decrypted, obtain The data content of encoding of graphs specifically can be and internally hold the numeric data code in region according to solution confidential information and be decrypted, solved Close content later decompresses decryption content according to the second compressing information, obtains the data content of encoding of graphs.
Fig. 7 shows the effect picture that an embodiment identifies encoding of graphs according to the present invention.In Fig. 7, mobile phone can With scanning recognition encoding of graphs provided in an embodiment of the present invention, the heading message of encoding of graphs is obtained.Also, number in encoding of graphs According to code record code word data be it is encrypted, therefore, can prompt user input password check data content.
Based on the same inventive concept, the embodiment of the invention also provides a kind of generating means of encoding of graphs, for supporting The generation method of encoding of graphs provided by any one above-mentioned embodiment or combinations thereof.Fig. 8 shows a reality according to the present invention Apply the structure chart of the generating means of the encoding of graphs of example.Referring to Fig. 8, the apparatus may include: the first determining module 810, second Determining module 820, encrypting module 830 and generation module 840.
Now introduce each composition of the generating means of the encoding of graphs of the embodiment of the present invention or the function and each section of device Between connection relationship:
First determining module 810 determines the system information, heading message and data content of encoding of graphs to be generated, In, encryption that the system information includes the version information of the encoding of graphs to be generated, encrypted to the data content Algorithm types;
Second determining module 820 is coupled with the first determining module 810, suitable for according to the encoding of graphs to be generated Version information generates the registration pattern for being positioned to the encoding of graphs to be generated, and is determined according to the registration pattern Localization region, Title area and the content area of the encoding of graphs to be generated;
Encrypting module 830 is coupled with the first determining module 810, is suitable for according to the encryption algorithm type to the number It is encrypted according to content, obtains code word data;
Generation module 840 is coupled with the second determining module 820, encrypting module 830, suitable for setting in the localization region The registration pattern is set, record the system information code of the system information in Title area setting and records the title letter The heading message code of breath, and the numeric data code of the code word data is recorded in content area setting, to generate figure volume Code.
In alternative embodiment of the invention, the localization region, Title area and content area constitute rectangular area, And three does not overlap.
In alternative embodiment of the invention, the registration pattern includes first position detection figure, second position detection Figure and the third place detect figure, are located at three angles end of the rectangular area.
In alternative embodiment of the invention, if the Title area is to detect figure and described the by the first position Two position sensing figures determine that then the first position detection figure, the second position detect figure and the header area System information code and heading message code in domain are spliced by first code element, and the third place detects figure, the content Numeric data code in region is spliced by second code element.
In alternative embodiment of the invention, the generation module 840 is further adapted for:
Color filling is carried out to the first code element in the Title area according to the system information and the heading message, To record the system information code of the system information in Title area setting and record the heading message of the heading message Code;And
Color filling is carried out to the second code element in the content area according to the code word data, in the content regions The numeric data code for recording the code word data is arranged in domain.
In alternative embodiment of the invention, the size of the first code element is equal to the ruler of the second code element of prescribed coefficient It is very little.
In alternative embodiment of the invention, the horizontal properties ratio of each section in each position sensing figure and Vertical features ratio is identical, and is following one of any:
2:1:1:1:2、1:2:2:2:1、1:1:4:1:1、2:1:2:1:2、1:1:1:2:1:1:1。
In alternative embodiment of the invention, the registration pattern further includes detecting figure or institute according to the first position The first auxiliary positioning figure that second position detection figure determines is stated, the first auxiliary positioning figure is spelled by the first code element It connects.
In alternative embodiment of the invention, the registration pattern further includes detecting figure according to the third place to determine The second auxiliary positioning figure, the second auxiliary positioning figure is spliced by the second code element.
In alternative embodiment of the invention, the heading message includes at least one following:
Text, picture, emoji expression.
In alternative embodiment of the invention, the system information further includes the coding encoded to the heading message Type, the generation module 840 are further adapted for:
The heading message is encoded according to the type of coding, obtains title code word;
The heading message code of the title code word is recorded in Title area setting.
In alternative embodiment of the invention, the system information further includes first compressed to the heading message Compression algorithm type, the generation module 840 are further adapted for:
The heading message is encoded according to the type of coding, obtains heading code information;
The heading code information is compressed to obtain title code word according to the first compression algorithm type.
In alternative embodiment of the invention, the data content includes at least one following:
Text, picture, audio, emoji expression.
In alternative embodiment of the invention, the system information further includes second compressed to the data content Compression algorithm type, the encrypting module 830 are further adapted for:
The data content is compressed according to the second compression algorithm type, obtains compression information;
The compression information is encrypted to obtain code word data using the encryption algorithm type.
Based on the same inventive concept, the embodiment of the invention also provides a kind of identification devices of encoding of graphs, for supporting The recognition methods of encoding of graphs provided by any one above-mentioned embodiment or combinations thereof.Fig. 9 shows a reality according to the present invention Apply the structure chart of the identification device of the encoding of graphs of example.Referring to Fig. 9, the apparatus may include: obtain module 910, identification module 920, the first parsing module 930, the second parsing module 940 and third parsing module 950.
Now introduce each composition of the identification device of the encoding of graphs of the embodiment of the present invention or the function and each section of device Between connection relationship:
Module 910 is obtained, the image comprising encoding of graphs is obtained, the encoding of graphs is generated according to device above It arrives;
Identification module 920 is coupled, suitable for identifying the registration pattern in described image, according to described with module 910 is obtained Registration pattern positions the encoding of graphs, determines the Title area and content area of the encoding of graphs;
First parsing module 930, is coupled with identification module 920, suitable for the system information code in the Title area It is parsed, obtains parsing information, wherein the parsing information includes solving to the heading message code in the Title area The decoded information of code, the solution confidential information that the numeric data code in the content area is decrypted;
Second parsing module 940 is coupled with the first parsing module 930, is suitable for according to the decoded information to the mark Heading message code in topic region is decoded, and obtains the heading message of the encoding of graphs;And
Third parsing module 950 is coupled with the first parsing module 930, is suitable for according to the solution confidential information to described interior The numeric data code held in region is decrypted, and obtains the data content of the encoding of graphs.
In alternative embodiment of the invention, the identification module 920 is further adapted for:
Identify that n candidate position sensing figure, the n are the positive integer more than or equal to 3 in described image;
First position detection figure, second position detection figure are determined in the position sensing figure candidate from described n And the third place detects figure.
In alternative embodiment of the invention, the identification module 920 is further adapted for:
Determine the level of each section in described n candidate position sensing figure in the position sensing figure of each candidate Characteristic ratio and vertical features ratio;
Horizontal properties ratio is chosen in the position sensing figure candidate from described n and vertical features ratio is designated ratio Three position sensing figures, and determine the situation of three position sensing figures;
According to the situation of three position sensing figures, determine that first position detection figure, the second position are visited Mapping shape and the third place detect figure.
In alternative embodiment of the invention, the identification module 920 is further adapted for:
Figure is detected according to the first position and the second position detects figure, determines the title of the encoding of graphs Region;And
Figure, second position detection figure and the third place detection figure are detected according to the first position Shape determines the content area of the encoding of graphs.
In alternative embodiment of the invention, the parsing information further includes to the heading message code in the Title area The first compressing information decompressed, second parsing module 940 are further adapted for:
The heading message code in the Title area is decompressed according to first compressing information, obtains title decompression Content;
Title decompression content is decoded according to the decoded information, obtains the title letter of the encoding of graphs Breath.
In alternative embodiment of the invention, the parsing information further includes carrying out to the numeric data code in the content area Second compressing information of decompression, the third parsing module 950 are further adapted for:
The numeric data code in the content area is decrypted according to the solution confidential information, obtains decryption content;
The decryption content is decompressed according to second compressing information, is obtained in the data of the encoding of graphs Hold.
Based on the same inventive concept, the embodiment of the invention also provides a kind of objects for being provided with encoding of graphs, wherein institute The encoding of graphs for stating object is the encoding of graphs of the embodiment of the present invention above generation.Figure 10 shows an embodiment according to the present invention The encoding of graphs shown on the screen of the mobile terminal, Figure 11 show according to the present invention an embodiment in the screen of PC The encoding of graphs and Figure 12 of upper display show the figure that another embodiment is shown on the screen of PC according to the present invention Shape coding.It should be noted that the encoding of graphs in Figure 10, Figure 11 or Figure 12 is only illustrative, the present invention is not implemented Example is limited.
In alternative embodiment of the invention, above mentioned object can also be it in addition to mobile terminal, PC Its object, such as books, desk lamp, speaker, the embodiment of the present invention to this with no restriction.
Based on the same inventive concept, the embodiment of the invention also provides one kind carries out information transmitting based on encoding of graphs data Method, comprising: when needing to carry out information transmitting between first terminal and second terminal, the application on first terminal is using upper The generation method stated generates encoding of graphs, and the encoding of graphs carries target and transmits information;Application in second terminal is using upper The recognition methods stated identifies the encoding of graphs, wherein the target transmitting information carried.
In the above-described embodiments, first terminal can be smart phone, tablet computer, barcode scanning equipment, PC etc., Second terminal is also possible to smart phone, tablet computer, barcode scanning equipment, PC etc., and the embodiment of the present invention does not make this Limitation.
Based on the same inventive concept, the embodiment of the invention also provides a kind of computer storage medium, the computer is deposited Storage media is stored with computer program code, when the computer program code is run on the computing device, leads to the meter It calculates equipment and executes the generation method of above-mentioned encoding of graphs and/or the recognition methods of encoding of graphs.
Based on the same inventive concept, the embodiment of the invention also provides a kind of calculating equipment, comprising: processor;And it deposits Contain the memory of computer program code;When the computer program code is run by the processor, lead to the meter It calculates equipment and executes the generation method of above-mentioned encoding of graphs and/or the recognition methods of encoding of graphs.
It should be noted that above-mentioned all optional embodiments can be any group by the way of combining in practical application It closes, forms alternative embodiment of the invention, this is no longer going to repeat them.
It is apparent to those skilled in the art that the specific work of the system of foregoing description, device and unit Make process, can refer to corresponding processes in the foregoing method embodiment, for brevity, does not repeat separately herein.
In addition, each functional unit in each embodiment of the present invention can be physically independent, can also two or More than two functional units integrate, and can be all integrated in a processing unit with all functional units.It is above-mentioned integrated Functional unit both can take the form of hardware realization, can also be realized in the form of software or firmware.
Those of ordinary skill in the art will appreciate that: if the integrated functional unit is realized and is made in the form of software It is independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, Technical solution of the present invention is substantially or all or part of the technical solution can be embodied in the form of software products, The computer software product is stored in a storage medium comprising some instructions, with so that calculating equipment (such as Personal computer, server or network equipment etc.) various embodiments of the present invention the method is executed when running described instruction All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM), random access memory Device (RAM), the various media that can store program code such as magnetic or disk.
Alternatively, realizing that all or part of the steps of preceding method embodiment can be (all by the relevant hardware of program instruction Such as personal computer, the calculating equipment of server or network equipment etc.) it completes, described program instruction can store in one In computer-readable storage medium, when described program instruction is executed by the processor of calculating equipment, the calculating equipment is held The all or part of the steps of row various embodiments of the present invention the method.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, those skilled in the art should understand that: at this Within the spirit and principle of invention, it is still possible to modify the technical solutions described in the foregoing embodiments or right Some or all of the technical features are equivalently replaced;And these are modified or replaceed, and do not make corresponding technical solution de- From protection scope of the present invention.
One side according to an embodiment of the present invention provides a kind of generation method of encoding of graphs of A1., comprising:
Determine the system information, heading message and data content of encoding of graphs to be generated, wherein the system information packet The version information for including the encoding of graphs to be generated, the encryption algorithm type that the data content is encrypted;
It is generated according to the version information of the encoding of graphs to be generated for being positioned to the encoding of graphs to be generated Registration pattern, and the localization region of the encoding of graphs to be generated, Title area and interior are determined according to the registration pattern Hold region;
The data content is encrypted according to the encryption algorithm type, obtains code word data;
The registration pattern is set in the localization region, is what Title area setting recorded the system information System information code and the heading message code for recording the heading message, and the code word data is recorded in content area setting Numeric data code, to generate encoding of graphs.
A2. method according to a1, wherein the localization region, Title area and content area constitute rectangle region Domain, and three does not overlap.
A3. the method according to A2, wherein the registration pattern includes first position detection figure, second position spy Mapping shape and the third place detect figure, are located at three angles end of the rectangular area.
A4. method according to a3, wherein if the Title area is to detect figure and described by the first position The second position detects figure and determines, then the first position detection figure, second position detection figure and the title System information code and heading message code in region are spliced by first code element, the third place detection figure, it is described in The numeric data code held in region is spliced by second code element.
A5. method according to a4, wherein record the system information of the system information in Title area setting Code and the heading message code for recording the heading message, and the data of the code word data are recorded in content area setting Code, comprising:
Color filling is carried out to the first code element in the Title area according to the system information and the heading message, To record the system information code of the system information in Title area setting and record the heading message of the heading message Code;And
Color filling is carried out to the second code element in the content area according to the code word data, in the content regions The numeric data code for recording the code word data is arranged in domain.
A6. the method according to A4 or A5, wherein the size of the first code element is equal to the second code element of prescribed coefficient Size.
A7. method according to a4, wherein the horizontal properties ratio of each section in each position sensing figure It is identical with vertical features ratio, and be following one of any:
2:1:1:1:2、1:2:2:2:1、1:1:4:1:1、2:1:2:1:2、1:1:1:2:1:1:1。
A8. method according to a4, wherein the registration pattern further include according to the first position detect figure or The first auxiliary positioning figure that the second position detection figure determines, the first auxiliary positioning figure is by the first code element It is spliced.
A9. method according to a4, wherein the registration pattern further includes true according to the third place detection figure The second fixed auxiliary positioning figure, the second auxiliary positioning figure are spliced by the second code element.
A10. the method according to any one of A1-A9, wherein the heading message includes at least one following:
Text, picture, emoji expression.
A11. the method according to A10, wherein the system information further includes being encoded to the heading message Type of coding records the heading message code of the heading message in Title area setting, comprising:
The heading message is encoded according to the type of coding, obtains title code word;
The heading message code of the title code word is recorded in Title area setting.
A12. the method according to A11, wherein the system information further includes being compressed to the heading message First compression algorithm type encodes the heading message according to the type of coding, obtains title code word, comprising:
The heading message is encoded according to the type of coding, obtains heading code information;
The heading code information is compressed to obtain title code word according to the first compression algorithm type.
A13. the method according to any one of A1-12, wherein the data content includes at least one following:
Text, picture, audio, emoji expression.
A14. the method according to A13, wherein the system information further includes being compressed to the data content Second compression algorithm type encrypts the data content according to the encryption algorithm type, obtains code word data, packet It includes:
The data content is compressed according to the second compression algorithm type, obtains compression information;
The compression information is encrypted to obtain code word data using the encryption algorithm type.
According to another aspect of an embodiment of the present invention, a kind of recognition methods of encoding of graphs of B15. is additionally provided, comprising:
The image comprising encoding of graphs is obtained, encoding of graphs method according to any one of A1-A14 generates It arrives;
It identifies the registration pattern in described image, the encoding of graphs is positioned according to the registration pattern, determine The Title area and content area of the encoding of graphs;
System information code in the Title area is parsed, obtains parsing information, wherein the parsing packet It includes the decoded information being decoded to the heading message code in the Title area, the numeric data code in the content area is carried out The solution confidential information of decryption;
The heading message code in the Title area is decoded according to the decoded information, obtains the encoding of graphs Heading message;And
The numeric data code in the content area is decrypted according to the solution confidential information, obtains the number of the encoding of graphs According to content.
B16. the method according to B15, wherein the registration pattern in identification described image, comprising:
Identify that n candidate position sensing figure, the n are the positive integer more than or equal to 3 in described image;
First position detection figure, second position detection figure are determined in the position sensing figure candidate from described n And the third place detects figure.
B17. the method according to B16, wherein determine first in the position sensing figure candidate from described n Set detection figure, second position detection figure and the third place detection figure, comprising:
Determine the level of each section in described n candidate position sensing figure in the position sensing figure of each candidate Characteristic ratio and vertical features ratio;
Horizontal properties ratio is chosen in the position sensing figure candidate from described n and vertical features ratio is designated ratio Three position sensing figures, and determine the situation of three position sensing figures;
According to the situation of three position sensing figures, determine that first position detection figure, the second position are visited Mapping shape and the third place detect figure.
B18. the method according to B16 or B17, wherein the encoding of graphs is determined according to the registration pattern Position, determines the Title area and content area of the encoding of graphs, comprising:
Figure is detected according to the first position and the second position detects figure, determines the title of the encoding of graphs Region;And
Figure, second position detection figure and the third place detection figure are detected according to the first position Shape determines the content area of the encoding of graphs.
B19. the method according to any one of B15-B18, wherein the parsing information further includes to the header area The first compressing information that heading message code in domain is decompressed, according to the decoded information to the title in the Title area Information code is decoded, and obtains the heading message of the encoding of graphs, comprising:
The heading message code in the Title area is decompressed according to first compressing information, obtains title decompression Content;
Title decompression content is decoded according to the decoded information, obtains the title letter of the encoding of graphs Breath.
B20. the method according to any one of B15-B19, wherein the parsing information further includes to the content regions The second compressing information that numeric data code in domain is decompressed, according to the solution confidential information to the numeric data code in the content area into Row decryption, obtains the data content of the encoding of graphs, comprising:
The numeric data code in the content area is decrypted according to the solution confidential information, obtains decryption content;
The decryption content is decompressed according to second compressing information, is obtained in the data of the encoding of graphs Hold.
According to another aspect of an embodiment of the present invention, a kind of generating means of encoding of graphs of C21. are additionally provided, comprising:
First determining module determines the system information, heading message and data content of encoding of graphs to be generated, wherein The Encryption Algorithm that the system information includes the version information of the encoding of graphs to be generated, encrypted to the data content Type;
Second determining module, suitable for being generated according to the version information of the encoding of graphs to be generated for described to be generated The registration pattern that encoding of graphs is positioned, and determine according to the registration pattern positioning area of the encoding of graphs to be generated Domain, Title area and content area;
Encrypting module obtains code word data suitable for encrypting according to the encryption algorithm type to the data content;
Generation module is suitable for that the registration pattern is arranged in the localization region, and record institute is arranged in the Title area It states the system information code of system information and records the heading message code of the heading message, and be arranged in the content area and remember The numeric data code of the code word data is recorded, to generate encoding of graphs.
Another aspect according to an embodiment of the present invention additionally provides a kind of identification device of encoding of graphs of D22., comprising:
Module is obtained, the image comprising encoding of graphs is obtained, encoding of graphs device according to C21 generates It arrives;
Identification module, suitable for identifying the registration pattern in described image, according to the registration pattern to the encoding of graphs It is positioned, determines the Title area and content area of the encoding of graphs;
First parsing module obtains parsing information suitable for parsing to the system information code in the Title area, In, the parsing information includes the decoded information being decoded to the heading message code in the Title area, to the content The solution confidential information that numeric data code in region is decrypted;
Second parsing module, suitable for being solved according to the decoded information to the heading message code in the Title area Code, obtains the heading message of the encoding of graphs;And
Third parsing module is obtained suitable for the numeric data code in the content area is decrypted according to the solution confidential information To the data content of the encoding of graphs.
Another aspect according to an embodiment of the present invention additionally provides E23. one kind and is based on encoding of graphs data progress information biography The method passed, comprising:
When needing to carry out information transmitting between first terminal and second terminal, the application on first terminal uses A1-A14 Any one of described in generation method generate encoding of graphs, the encoding of graphs carries target and transmits information;
Application in second terminal identifies the encoding of graphs using recognition methods described in any one of B15-B20, obtains Information is transmitted to the target wherein carried.
Another aspect according to an embodiment of the present invention additionally provides a kind of computer storage medium of F24., the computer Storage medium is stored with computer program code, when the computer program code is run on the computing device, causes described It calculates equipment and executes the generation method of the encoding of graphs according to any one of A1-A14 and/or according to any in B15-B20 The recognition methods of encoding of graphs described in.
Another aspect according to an embodiment of the present invention additionally provides a kind of calculating equipment of G25., comprising:
Processor;And
It is stored with the memory of computer program code;
When the computer program code is run by the processor, the calculating equipment is caused to execute according to A1-A14 Any one of described in encoding of graphs generation method and/or the encoding of graphs according to any one of B15-B20 identification Method.

Claims (10)

1. a kind of generation method of encoding of graphs, comprising:
Determine the system information, heading message and data content of encoding of graphs to be generated, wherein the system information includes institute The version information for stating encoding of graphs to be generated, the encryption algorithm type that the data content is encrypted;
It is generated according to the version information of the encoding of graphs to be generated and is determined for what is positioned to the encoding of graphs to be generated Bit patterns, and determine according to the registration pattern localization region, Title area and the content regions of the encoding of graphs to be generated Domain;
The data content is encrypted according to the encryption algorithm type, obtains code word data;
The registration pattern is set in the localization region, records the system letter of the system information in Title area setting Breath code and the heading message code for recording the heading message, and the number of the code word data is recorded in content area setting According to code, to generate encoding of graphs.
2. according to the method described in claim 1, wherein, the localization region, Title area and content area constitute rectangle Region, and three does not overlap.
3. according to the method described in claim 2, wherein, the registration pattern includes first position detection figure, the second position It detects figure and the third place detects figure, be located at three angles end of the rectangular area.
4. according to the method described in claim 3, wherein, if the Title area is to detect figure and institute by the first position It states second position detection figure to determine, then the first position detection figure, second position detection figure and the mark System information code and heading message code in topic region are spliced by first code element, the third place detection figure, described Numeric data code in content area is spliced by second code element.
5. a kind of recognition methods of encoding of graphs, comprising:
The image comprising encoding of graphs is obtained, the encoding of graphs method according to any of claims 1-4 generates It obtains;
It identifies the registration pattern in described image, the encoding of graphs is positioned according to the registration pattern, described in determination The Title area and content area of encoding of graphs;
System information code in the Title area is parsed, parsing information is obtained, wherein the parsing information includes pair The numeric data code in the content area is decrypted in decoded information that heading message code in the Title area is decoded Solution confidential information;
The heading message code in the Title area is decoded according to the decoded information, obtains the mark of the encoding of graphs Inscribe information;And
The numeric data code in the content area is decrypted according to the solution confidential information, is obtained in the data of the encoding of graphs Hold.
6. a kind of generating means of encoding of graphs, comprising:
First determining module determines the system information, heading message and data content of encoding of graphs to be generated, wherein described The Encryption Algorithm class that system information includes the version information of the encoding of graphs to be generated, encrypted to the data content Type;
Second determining module, suitable for being generated according to the version information of the encoding of graphs to be generated for the figure to be generated The registration pattern positioned is encoded, and determines localization region, the mark of the encoding of graphs to be generated according to the registration pattern Inscribe region and content area;
Encrypting module obtains code word data suitable for encrypting according to the encryption algorithm type to the data content;
Generation module is suitable for that the registration pattern is arranged in the localization region, records the system in Title area setting The system information code for information of uniting and the heading message code for recording the heading message, and record institute is set in the content area The numeric data code of code word data is stated, to generate encoding of graphs.
7. a kind of identification device of encoding of graphs, comprising:
Module is obtained, the image comprising encoding of graphs is obtained, the encoding of graphs device according to claim 6 generates It arrives;
Identification module carries out the encoding of graphs according to the registration pattern suitable for identifying the registration pattern in described image Positioning, determines the Title area and content area of the encoding of graphs;
First parsing module obtains parsing information suitable for parsing to the system information code in the Title area, wherein The parsing information includes the decoded information being decoded to the heading message code in the Title area, to the content area In the solution confidential information that is decrypted of numeric data code;
Second parsing module is obtained suitable for being decoded according to the decoded information to the heading message code in the Title area To the heading message of the encoding of graphs;And
Third parsing module obtains institute suitable for the numeric data code in the content area is decrypted according to the solution confidential information State the data content of encoding of graphs.
8. a kind of method for carrying out information transmitting based on encoding of graphs data, comprising:
When needing to carry out information transmitting between first terminal and second terminal, the application on first terminal uses claim 1- Generation method described in any one of 4 generates encoding of graphs, and the encoding of graphs carries target and transmits information;
Application in second terminal identifies the encoding of graphs using recognition methods described in claim 5, wherein being carried Target transmit information.
9. a kind of computer storage medium, the computer storage medium is stored with computer program code, when the computer When program code is run on the computing device, the calculating equipment is caused to execute according to claim 1 described in any one of -4 The recognition methods of the generation method of encoding of graphs and/or encoding of graphs according to claim 5.
10. a kind of calculating equipment, comprising:
Processor;And
It is stored with the memory of computer program code;
When the computer program code is run by the processor, cause the calculating equipment execute according to claim 1- The recognition methods of the generation method of encoding of graphs described in any one of 4 and/or encoding of graphs according to claim 5.
CN201810935595.8A 2018-08-16 2018-08-16 A kind of generation of encoding of graphs, recognition methods and device Pending CN109190738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810935595.8A CN109190738A (en) 2018-08-16 2018-08-16 A kind of generation of encoding of graphs, recognition methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810935595.8A CN109190738A (en) 2018-08-16 2018-08-16 A kind of generation of encoding of graphs, recognition methods and device

Publications (1)

Publication Number Publication Date
CN109190738A true CN109190738A (en) 2019-01-11

Family

ID=64918330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810935595.8A Pending CN109190738A (en) 2018-08-16 2018-08-16 A kind of generation of encoding of graphs, recognition methods and device

Country Status (1)

Country Link
CN (1) CN109190738A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115310572A (en) * 2022-08-05 2022-11-08 蚂蚁区块链科技(上海)有限公司 Graphic code generation method and graphic code verification method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102034127A (en) * 2009-09-28 2011-04-27 上海易悠通信息科技有限公司 Novel high-capacity two-dimensional barcode and system, encoding and decoding methods and applications thereof
CN103400174A (en) * 2013-07-30 2013-11-20 人民搜索网络股份公司 Encoding method, decoding method and system of two-dimensional code
WO2014027424A1 (en) * 2012-08-17 2014-02-20 A・Tコミュニケーションズ株式会社 Two-dimensional code authentication device, two-dimensional code generation device, two-dimensional code authentication method and program
CN103778451A (en) * 2008-03-27 2014-05-07 电装波动株式会社 Two-dimensional code having rectangular region provided with specific patterns for specify cell positions and distinction from background
CN104246794A (en) * 2012-04-26 2014-12-24 惠普发展公司,有限责任合伙企业 Two-dimensional barcodes having a plurality of different regions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778451A (en) * 2008-03-27 2014-05-07 电装波动株式会社 Two-dimensional code having rectangular region provided with specific patterns for specify cell positions and distinction from background
CN102034127A (en) * 2009-09-28 2011-04-27 上海易悠通信息科技有限公司 Novel high-capacity two-dimensional barcode and system, encoding and decoding methods and applications thereof
CN104246794A (en) * 2012-04-26 2014-12-24 惠普发展公司,有限责任合伙企业 Two-dimensional barcodes having a plurality of different regions
WO2014027424A1 (en) * 2012-08-17 2014-02-20 A・Tコミュニケーションズ株式会社 Two-dimensional code authentication device, two-dimensional code generation device, two-dimensional code authentication method and program
CN103400174A (en) * 2013-07-30 2013-11-20 人民搜索网络股份公司 Encoding method, decoding method and system of two-dimensional code

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115310572A (en) * 2022-08-05 2022-11-08 蚂蚁区块链科技(上海)有限公司 Graphic code generation method and graphic code verification method
CN115310572B (en) * 2022-08-05 2024-04-16 蚂蚁区块链科技(上海)有限公司 Graphic code generation method and graphic code verification method

Similar Documents

Publication Publication Date Title
US10755375B2 (en) Systems and methods for steganography based on text fonts
CN101682682B (en) Image encyption device, image decyption device, method, and program
KR100677830B1 (en) Method and the Tool of Networking Service on Internet using Algorithm of Coding/Decoding Values of Color Codes
ES2809489T3 (en) Secure transmission of sensitive data
CN105447546A (en) Two-dimensional code capable of being embedded with large-ratio graph as well as coding and decoding method and device therefor
CN107610038A (en) The display methods of watermark, apparatus and system
US9563830B2 (en) Incremental information object with an embedded information region
CN105976005A (en) Two-dimensional code encrypting method, two-dimensional code generating device and two-dimensional code scanning device
JPWO2015001637A1 (en) Authentication server, authentication system, authentication method, and program
CN111222611B (en) Color-based stacked three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium
CN109190738A (en) A kind of generation of encoding of graphs, recognition methods and device
CN115248924A (en) Two-dimensional code processing method and device, electronic equipment and storage medium
CN111242259B (en) Intelligent anti-counterfeiting code encoding and decoding method and system
CN104573781A (en) Encoding and decoding method of two-dimensional code
CN109344937A (en) A kind of generation of encoding of graphs, recognition methods and device
US20230134627A1 (en) Two-dimensional barcodes for greater storage capacity
CN112134687A (en) Information encryption and decryption method based on two-dimensional code
WO2016109767A1 (en) Data exchange methods, systems and apparatus using color images
US11620484B2 (en) System and method for transmitting financial information via color matrix code
Banerjee et al. A secure high-capacity video steganography using bit plane slicing through (7, 4) hamming code
CN114626968A (en) Watermark embedding method, watermark extracting method and device
CN108959949B (en) Method and system for carrying out safe information transmission through graphic coding data
CN109190739A (en) The recognition methods of a kind of encoding of graphs and the encoding of graphs and device
CN109284802A (en) A kind of processing method and processing device of encoding of graphs
CN109325382A (en) The recognition methods of a kind of encoding of graphs and the encoding of graphs and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190111