CN104281863B - A kind of method, apparatus and computer equipment for being used to determine Quick Response Code pattern - Google Patents

A kind of method, apparatus and computer equipment for being used to determine Quick Response Code pattern Download PDF

Info

Publication number
CN104281863B
CN104281863B CN201310279809.8A CN201310279809A CN104281863B CN 104281863 B CN104281863 B CN 104281863B CN 201310279809 A CN201310279809 A CN 201310279809A CN 104281863 B CN104281863 B CN 104281863B
Authority
CN
China
Prior art keywords
image
quick response
dot matrix
response code
predetermined pattern
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.)
Active
Application number
CN201310279809.8A
Other languages
Chinese (zh)
Other versions
CN104281863A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201310279809.8A priority Critical patent/CN104281863B/en
Publication of CN104281863A publication Critical patent/CN104281863A/en
Application granted granted Critical
Publication of CN104281863B publication Critical patent/CN104281863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The present invention provides a kind of scheme for the pattern for being used to determine the Quick Response Code suitable for image, wherein, the Quick Response Code includes Two dimensional Distribution dot matrix, in the present solution, performing following operation based on each predetermined pattern at least one predetermined pattern:Obtain the half-tone information of the Two dimensional Distribution dot matrix in the Quick Response Code generated based on text to be encoded and the predetermined pattern;According to the half-tone information of the Two dimensional Distribution dot matrix and the half-tone information of the first image to be fused, determine the Two dimensional Distribution dot matrix of the predetermined pattern merged with described first image after dot matrix discrimination;Wherein, this programme determines the predetermined pattern suitable for described first image always according to the dot matrix discrimination.

Description

A kind of method, apparatus and computer equipment for being used to determine Quick Response Code pattern
Technical field
The present invention relates to planar bar code technology field, more particularly to a kind of pattern for being used to determine the Quick Response Code suitable for image Method, apparatus and computer equipment.)
Background technology
Quick Response Code can be by being distributed dichromatism in the plane(Typically black and white)Alternate graphic recording data Symbolic information, as shown in Figure 8.In the Quick Response Code application of the prior art, it will usually which Quick Response Code is presented in combination with image To user, for example, embedded Quick Response Code etc. on propagating poster, advertisement and identifier.But since Quick Response Code needs have specific performance Form, so as to be correctly identified obtain its expression text, therefore, the Quick Response Code for being combined to present with image is past It is very lofty toward seeming in whole image.
To make Quick Response Code with image in combination more naturally, providing kinds of schemes in the prior art.For example, due to two dimension The identification of code is not necessarily black or white it is desirable that two kinds of colors with certain difference, therefore the one of the prior art White background in Quick Response Code is changed to the background compared with light colour by kind scheme, also that is, white is adjusted to shallower one Kind color, and black is adjusted to deeper another color, so that two kinds of colors can be closer to image.
However, the Quick Response Code that such scheme based on the prior art obtains is still more lofty in the picture, and shape is presented Formula is single, be easy to cause it is uncoordinated with ambient color, so as to be easy to the aestheticly tired for causing user.
The content of the invention
The object of the present invention is to provide it is a kind of by determine suitable for image Quick Response Code pattern method, apparatus and based on Calculate machine equipment.
According to an aspect of the present invention, there is provided a kind of method for the pattern for being used to determine the Quick Response Code suitable for image, Wherein, the Quick Response Code includes Two dimensional Distribution dot matrix, and this method comprises the following steps:
A performs following operation based on each predetermined pattern at least one predetermined pattern:
A1 obtains the gray scale of the Two dimensional Distribution dot matrix in the Quick Response Code generated based on text to be encoded and the predetermined pattern Information;
For a2 according to the half-tone information of the Two dimensional Distribution dot matrix and the half-tone information of the first image to be fused, determining should The Two dimensional Distribution dot matrix of predetermined pattern merged with described first image after dot matrix discrimination;
Wherein, this method is further comprising the steps of:
B determines the predetermined pattern suitable for described first image according to the dot matrix discrimination.
According to another aspect of the present invention, a kind of pattern for being used to determine the Quick Response Code suitable for image is additionally provided Pattern determining device, wherein, the Quick Response Code includes Two dimensional Distribution dot matrix, which includes following device:
Iteration means, behaviour is performed for triggering following device based on each predetermined pattern at least one predetermined pattern Make:
Acquisition device, for obtaining the Two dimensional Distribution in the Quick Response Code generated based on text to be encoded and the predetermined pattern The half-tone information of dot matrix;
First determining device, for the half-tone information according to the Two dimensional Distribution dot matrix and the first image to be fused Half-tone information, determine the Two dimensional Distribution dot matrix of the predetermined pattern merged with described first image after dot matrix discrimination;
Wherein, which further includes following device:
Second determining device, for according to the dot matrix discrimination, determining the predetermined pattern suitable for described first image.
Compared with prior art, the present invention has the following advantages:1)Can be in the fusion feelings of substantial amounts of Quick Response Code and image Under condition, various Sexual behavior mode of Quick Response Code pattern is realized, and the face of color lump can be accounted for by the point such as reduced in Two dimensional Distribution dot matrix Product, the mode of pattern adjustment, reduce the vision imaging that Quick Response Code treats blending image;In addition, this programme can also be by for user There is provided a variety of predetermined patterns to select for user, to strengthen property of participation of the user in Quick Response Code generation phase, and then improve user couple Quick Response Code generates the satisfaction of effect;2)2 D code information can be immersed in the first image, and can ensure Quick Response Code Identifiability in the case of, reduce the influence that the vision of the first image is presented effect in Quick Response Code;3)When the predetermined pattern Quick Response Code and described first image size discomfort timing, moreover it is possible to which the size for adjusting the Quick Response Code of predetermined pattern carries out two dimension again afterwards Code is merged with described first image so that the image after Quick Response Code and the first image co-registration has more preferable visual effect.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the method flow signal for being used to determine the pattern of the Quick Response Code suitable for image of one aspect of the invention Figure;
Fig. 2 is the method flow signal for being used to determine the pattern of the Quick Response Code suitable for image of another aspect of the invention Figure;
Fig. 3 is the pattern determining device for being used to determine the pattern of the Quick Response Code suitable for image of one aspect of the invention Structure diagram;
Fig. 4 is the pattern determining device for being used to determine the pattern of the Quick Response Code suitable for image of another aspect of the invention Structure diagram;
Fig. 5 is a first image schematic diagram based on the present invention;
Fig. 6 a are the Quick Response Code schematic diagram based on one predetermined pattern generation of the present invention;
Fig. 6 b are the Quick Response Code schematic diagram based on another predetermined pattern generation of the invention;
Fig. 6 c are the Quick Response Code schematic diagram based on another predetermined pattern generation of the invention;
Fig. 7 is a second image schematic diagram based on the present invention;
Fig. 8 is a kind of Quick Response Code schematic diagram of prior art;
Fig. 9 is figure search coverage and Two dimensional Distribution dot matrix schematic diagram in Quick Response Code.
The same or similar reference numeral represents the same or similar component in attached drawing.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 is the method flow signal for being used to determine the pattern of the Quick Response Code suitable for image of one aspect of the invention Figure.Wherein, the method for the present embodiment is mainly realized by computer equipment;The computer equipment includes the network equipment and use Family equipment;The network equipment include but not limited to single network server, multiple webservers composition server group or Based on cloud computing(Cloud Computing)The cloud being made of a large amount of computers or the webserver, wherein, cloud computing is point One kind that cloth calculates, a super virtual computer being made of the computer collection of a group loose couplings;The user equipment Including but not limited to PC machine, tablet computer, smart mobile phone, PDA, IPTV etc.;Network residing for the computer equipment include but It is not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN network etc..
It should be noted that the network equipment, user equipment and network are only for example, other are existing or from now on may The computing device or network of appearance are such as applicable to the present invention, should also be included within the scope of the present invention, and with reference side Formula is incorporated herein.
To be illustrated more clearly that the solution of the present invention, first Quick Response Code is illustrated below:
Quick Response Code can be obtained by changing text to be encoded;For example, according to the coding rule of Quick Response Code, it can will be used as and treat A string of text string generations of coding text are the Quick Response Code represented with image format.When an equipment identifies Quick Response Code, it will Quick Response Code is divided into multiple color lumps, and by judging each color lump for dark block or light block, to decode Quick Response Code, so that will Above-mentioned text to be encoded is reduced to the Quick Response Code that image format shows.
Wherein, Quick Response Code includes Two dimensional Distribution dot matrix, and each point in dot matrix belongs to a color lump, Quick Response Code shown in Fig. 9 In the dot matrix that include of dotted line frame B be Two dimensional Distribution dot matrix an example.It should be noted that in Two dimensional Distribution dot matrix The appellation of " point ", is mainly used for more compactly representing a color main coloured moiety in the block, and should not be construed as main to this The restriction of the shape of coloured moiety.In fact, the form of the main coloured moiety can arbitrarily change, such as can be Fig. 6 a and Star and circle shown in Fig. 6 b, can also be other shapes, such as bear's paw, the flower-shape being made of 4 independent hemp nettle valves.
Preferably, a point in dot matrix can cover the whole color lump belonging to it, and in Fig. 8, stain and white point cover respectively Cover whole color lump;Alternatively, the area of a point in dot matrix is less than the area of its affiliated color lump, in Fig. 6 c, stain and white point It is only located at the core of color lump.Wherein, can be comprehensive when the area of a point in dot matrix is less than the area of its affiliated color lump The gray scale of the other parts beyond color point in the block and point is closed, to determine the gray scale of the color lump, so as to judge that the color lump belongs to deep Color lump or light block, in Fig. 6 c, can integrate the gray scale for the point that star is similar in a color lump and the back of the body in the color lump in addition to point The gray scale of scape, to determine the gray scale of the color lump;Wherein, the other parts in color lump in addition to point, for the secondary colour developing of the color lump Part, it is preferable that the secondary coloured moiety is transparent.It should be noted that due to background color for white, therefore Fig. 6 a, Fig. 6 b and White point in Fig. 6 c can not observe, but it is really existing, be by will be such as figure for example, the second image shown in Fig. 7 The second image shown in the first image and Fig. 6 c shown in 5 is merged to obtain, and white point can be observed from Fig. 7.
As a kind of preferred form of Quick Response Code, Quick Response Code may also include position sensing region, which uses Quick Response Code is positioned in the equipment for decoding Quick Response Code, for example, the figure that the dotted line frame A in Quick Response Code shown in Fig. 9 is included is should One of three position sensing regions in Quick Response Code.
Step S1 and step S2 is included according to the method for the present embodiment.In step sl, computer equipment is based at least one Each predetermined pattern in kind predetermined pattern performs step S11 and step S12.
In step s 11, computer equipment obtains what is generated based on text to be encoded and currently processed predetermined pattern The half-tone information of Two dimensional Distribution dot matrix in Quick Response Code.
Preferably, a predetermined pattern at least provides following information:
1)The shape at Two dimensional Distribution dot matrix midpoint.For example, the shape of the point of Two dimensional Distribution dot matrix is such as star in Fig. 6 a, again For example, the shape at Two dimensional Distribution dot matrix midpoint is as being circle in Fig. 6 b.In addition, the shape of each point also may be used in Two dimensional Distribution dot matrix The shape of difference, such as white point and stain can difference.
2)In the case that the area of point in Two dimensional Distribution dot matrix is less than the area of color lump belonging to the point, predetermined pattern is also Including the part in a color lump in addition to point, i.e., the transparency of secondary coloured moiety;Preferably, the transparency of dark block with it is shallow The transparency of color lump can be different.For example, the transparency of the part in the color lump of Fig. 6 a in addition to point is 100%, therefore can be seen that Part in addition to point is transparent, does not interfere with the color that the first image is showed;In another example Two dimensional Distribution point in Fig. 6 c The transparency of the dark block of battle array is 25%, it can be seen that in a dark block, in addition to point, secondary coloured moiety also shows Certain black.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that the predetermined pattern of any form of expression that can be used in regulation Quick Response Code, should all include Within the scope of the invention.
It should be further noted that although Fig. 6 a to the Two dimensional Distribution dot matrix shown in 6c close to rectangle, but this area Technical staff will be understood that Two dimensional Distribution dot matrix can behave as any shape, such as pentagon, triangle, star, irregular figure Deng;Also, although Fig. 6 a include position sensing region to the Quick Response Code shown in 6c, but those skilled in the art should be able to manage Solution, Quick Response Code can not include the position sensing region yet.
Specifically, computer equipment obtains the two dimension in the Quick Response Code generated based on text to be encoded and the predetermined pattern The mode for being distributed the half-tone information of dot matrix includes but not limited to:
1)Computer equipment is directly acquired by the computer equipment or the predetermined half-tone information of other equipment, or directly Quick Response Code or Two dimensional Distribution dot matrix based on having generated are connect to obtain half-tone information.
2)Computer equipment generates Quick Response Code or Two dimensional Distribution dot matrix based on text to be encoded, and based on two generated Code or Two dimensional Distribution dot matrix are tieed up to obtain the half-tone information of Two dimensional Distribution dot matrix.It is preferably based on coding text to generate Two dimensional Distribution dot matrix can use multiple standards, such as QR Code(Quick Response Code)Standard etc..
Wherein, computer equipment can use various ways, and Two dimensional Distribution is obtained to be based on Quick Response Code or Two dimensional Distribution dot matrix The half-tone information of dot matrix.
As a preferred embodiment, it is straight that computer equipment calculates the gray scale of Two dimensional Distribution dot matrix according to the Quick Response Code Fang Tu, the half-tone information as Two dimensional Distribution dot matrix.It should be noted that if Quick Response Code is also included in addition to Two dimensional Distribution dot matrix Other guide, then computer equipment can directly calculate the grey level histogram of Quick Response Code, as Two dimensional Distribution dot matrix gray scale believe Breath, alternatively, after the grey level histogram of calculating Quick Response Code, using the part wherein needed, the gray scale as Two dimensional Distribution dot matrix is believed Breath etc..
And for example as a preferred embodiment, computer equipment draws the Quick Response Code according to currently processed predetermined pattern It is divided into multiple color lumps;And according to the Quick Response Code, the half-tone information of each color lump of Two dimensional Distribution dot matrix therein is determined respectively, Half-tone information as the Two dimensional Distribution dot matrix.
For example, computer equipment calculates the half-tone information of each color lump that Two dimensional Distribution dot matrix covers in Fig. 6 a respectively, make Half-tone information for Two dimensional Distribution dot matrix etc..
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any obtained in the Quick Response Code generated based on text to be encoded and the predetermined pattern Two dimensional Distribution dot matrix half-tone information implementation, should be included in the scope of the present invention.
In step s 12, computer equipment is according to the half-tone information of the Two dimensional Distribution dot matrix and to be fused first The half-tone information of image, determine the Two dimensional Distribution dot matrix of currently processed predetermined pattern merged with described first image after dot matrix Discrimination.
Wherein, the image that described first image merges for needs with Quick Response Code.
Specifically, computer equipment can use various ways, according to the half-tone information of the Two dimensional Distribution dot matrix and treat Fusion the first image half-tone information, determine the Two dimensional Distribution dot matrix of the predetermined pattern merged with described first image after point Battle array discrimination.
As a preferred embodiment, for each color lump in the Two dimensional Distribution dot matrix, computer equipment is according to this The half-tone information of color lump, and, with being somebody's turn to do in described first image after the Two dimensional Distribution dot matrix is merged with described first image The half-tone information of color lump lap, judges after the Two dimensional Distribution dot matrix is merged with described first image, whether the color lump It can be correctly validated;And according to the judging result of each color lump in the Two dimensional Distribution dot matrix, determine the dot matrix discrimination.
Wherein, the color lump that the dot matrix discrimination represents to be correctly validated in Two dimensional Distribution dot matrix accounts for Two dimensional Distribution point The ratio of all color lumps in battle array.
Wherein, computer equipment can determine a color lump in Two dimensional Distribution dot matrix and image co-registration using various ways Afterwards, if can be correctly validated.Judge whether color lump can be correctly validated such as by setting predetermined threshold.For example, It is dark block decision threshold to set T1, and it is light block decision threshold to set T2, wherein, T1>T2, then when the color lump gray scale is not less than During T1, which is dark block, and when the color lump gray scale is less than T2, which is light block;Computer equipment will not belong to depth The color lump of color lump and light block is judged as the color lump that cannot be correctly validated.
For example, computer equipment determines each color lump according to the grey level histogram of the Quick Response Code obtained in step s 11 Half-tone information, computer equipment according to image principle, calculate Two dimensional Distribution dot matrix with as after the first image co-registration, described the In one image with the gray value of each color lump lap in Two dimensional Distribution dot matrix, so as to judge whether the color lump can be by just Really identification, and computer equipment counts Two dimensional Distribution dot matrix and as the color lump number that can be correctly validated after the first image co-registration Amount accounts for the ratio of total color lump quantity of Two dimensional Distribution dot matrix, as dot matrix discrimination.
It should be noted that after judging the Two dimensional Distribution dot matrix and the first image co-registration, whether color lump can be by During correct identification, and it need not actually perform the step of merging the Two dimensional Distribution dot matrix with described first image;For example, meter Calculate machine equipment only it needs to be determined that in Two dimensional Distribution dot matrix with after the first image co-registration, the color lump is corresponding overlapping in the first image Part, can be calculated by the half-tone information of the half-tone information to the color lump and the lap, be merged to obtain both The half-tone information that should be obtained afterwards, and then judge whether color lump can be correctly validated.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any according to the half-tone information of the Two dimensional Distribution dot matrix and to be fused first The half-tone information of image, determine the Two dimensional Distribution dot matrix of the predetermined pattern merged with described first image after dot matrix discrimination Implementation, should be included in the scope of the present invention.
In step s 2, computer equipment determines the predetermined pattern suitable for described first image according to dot matrix discrimination.
Preferably, computer equipment is by judging whether the dot matrix discrimination exceedes predetermined discrimination threshold value, to determine Whether one predetermined pattern is suitable for the first image.
For example, if dot matrix discrimination exceedes predetermined discrimination threshold value, it is determined that the predetermined pattern is suitable for the first image;If Dot matrix discrimination is less than predetermined discrimination threshold value, it is determined that the predetermined pattern is not suitable for shown first image.
For example, predetermined discrimination threshold value is 80%, the dot matrix discrimination obtained in step sl is 90%, it is determined that the pattern Suitable for the first image.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that it is any according to the dot matrix discrimination, determine suitable for the predetermined of described first image The implementation of pattern, should be included in the scope of the present invention.
It should be noted that computer equipment can perform step S1 and obtain the dot matrix discrimination of all predetermined patterns Afterwards, then step S2 is performed, so as to select one or more pre- random samples for being suitable for the first image from least one predetermined pattern Formula.Alternatively, computer equipment often performs a step S11 and S12 come after obtaining the dot matrix discrimination of a predetermined pattern, immediately A step S2 is performed, to judge whether the predetermined pattern is suitable for the first image.Also, work as and judge that the predetermined pattern is suitable for After first image, computer equipment can not continue to judge whether other predetermined patterns are suitable for the first image, alternatively, computer Equipment performs step S11 and step S12 to obtain the dot matrix discrimination of next predetermined pattern again, and perform step S2 so as to Judge whether it is suitable for the first image, so repeat, until all predetermined patterns have been performed with judgement operation;When judgement should After predetermined pattern is not suitable for the first image, it is next predetermined to obtain that computer equipment performs step S11 and step S12 again The dot matrix discrimination of pattern, and step S2 is performed so as to judge whether it is suitable for the first image, so repeat, until to institute There is predetermined pattern to perform the predetermined pattern for judging operation or having obtained being suitable for the first image.
One of preferred solution as the present embodiment, before step S1 is performed, the method for the present embodiment further includes following Step:A variety of predetermined patterns are supplied to user;And according to selection of the user to a variety of predetermined patterns, determine in step S1 At least one predetermined pattern.
Wherein, a variety of predetermined patterns are supplied to user by computer equipment, and according to user to a variety of predetermined patterns Selection, determine that the mode of at least one predetermined pattern includes but not limited to:
1)Such predetermined pattern is directly presented to user by computer equipment, and according to the selection that user directly provides come really Fixed at least one predetermined pattern.
For example, computer equipment is user equipment, then such a variety of predetermined patterns are directly presented to user by user equipment, And the selection operation directly carried out on a user device according to user, determine at least one predetermined pattern.
2)Such predetermined pattern is presented to user by other equipment in computer equipment, and fed back according to other equipment The selection of user, determines at least one predetermined pattern.
For example, computer equipment is the network equipment, predetermined pattern is sent to user equipment, and user equipment by the network equipment Be presented to user, and according to user equipment is fed back, selection that user is to predetermined pattern, determine the pre- random sample of at least one Formula.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any implementation that a variety of predetermined patterns are supplied to user, should be included in this In the range of invention.
By the solution of the present invention, Quick Response Code pattern can be realized in the case of the fusion of substantial amounts of Quick Response Code and image Various Sexual behavior mode, and can such as reduce the point in Two dimensional Distribution dot matrix account for the area of color lump, pattern adjustment by way of, drop Low Quick Response Code treats the vision imaging of blending image;In addition, this programme can also by provide to the user a variety of predetermined patterns for Family selects, and to strengthen property of participation of the user in Quick Response Code generation phase, and then improves satisfaction of the user to Quick Response Code generation effect Degree.
Fig. 2 is the method flow signal for being used to determine the pattern of the Quick Response Code suitable for image of another aspect of the invention Figure.The method primary computer equipment of the present embodiment is realized;Wherein, to being set with reference to the computer described in embodiment illustrated in fig. 1 Standby any explanation, by reference comprising in this present embodiment.Wherein, the method for the present embodiment includes step S1, step Rapid S2 and step S3.
Wherein, step S1 and step S2 are described in detail with reference to the embodiment shown in FIG. 1, and are included by reference In this, details are not described herein.
In step s3, computer equipment is by based on all or part suitable for the predetermined pattern of described first image The Quick Response Code of predetermined pattern generation is merged with described first image respectively, obtains at least one second image.Wherein, described second Image is the image after described first image is merged with Quick Response Code.Second image as shown in Figure 7, as by institute in Fig. 5 The image of gained after the first image shown is merged with the Quick Response Code shown in Fig. 6 c.
For example, computer equipment determine in step s 22 be suitable for the first image predetermined patterns, and based on this 2 The Quick Response Code that a predetermined pattern obtains respectively is QR1 and QR2, then the first image is set first layer figure layer by computer equipment, and QR1 is set into second layer figure layer, so that first layer figure layer and second layer figure layer be merged, obtains the second image corresponding with QR1; Also, QR2 is arranged to another second layer figure layer by computer equipment, so that by first layer figure layer and another second layer figure Layer fusion, obtains the second image corresponding with QR2.
In another example computer equipment determines 1 predetermined pattern for being suitable for the first image in step s 2.By two dimension Before code is merged with described first image, computer equipment generates corresponding picture structure data by parsing the first image, And by Quick Response Code and the first image co-registration, obtain the second image according to the picture structure data.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any implementation that a variety of predetermined patterns are supplied to user, should be included in this In the range of invention.
In a preferred solution, Quick Response Code further includes position sensing region.Step S3 further comprises to suitable for institute State the following step S3-11 each performed and the step in all or part of predetermined pattern in the predetermined pattern of the first image S3-12。
In step S3-11, computer equipment is isolated described from the Quick Response Code of currently processed predetermined pattern Two dimensional Distribution dot matrix, and the Two dimensional Distribution dot matrix is merged with described first image.
In step S3-12, computer equipment is isolated described from the Quick Response Code of currently processed predetermined pattern Position sensing region, and the position sensing region is merged with described first image.
For example, Two dimensional Distribution dot matrix is isolated from Quick Response Code as fig. 6 c and by the Two dimensional Distribution dot matrix with such as scheming The first image co-registration shown in 5, and position sensing region is isolated from Quick Response Code as fig. 6 c, and by the position sensing Region and the first image co-registration as shown in Figure 5, obtain the second image as shown in Figure 7.
It should be noted that for the Quick Response Code not comprising position sensing region, directly by the Quick Response Code with it is described First image co-registration, you can obtain the second image based on the predetermined pattern.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any to all or part of pre- suitable for the predetermined pattern of described first image Each execution step S3-11 and step S3-12 in random sample formula, to obtain the implementation of the second image, should be included in this In the range of invention.
In addition, in the case where Quick Response Code further includes position sensing region, in step s 11, computer equipment can generate Quick Response Code comprising position sensing region and Two dimensional Distribution dot matrix.For example, Quick Response Code is QR code codes, then computer equipment QR code standards can be based on, detect the standard whether text to be encoded meets generation Quick Response Code, and when meeting standard, then base In the text to be encoded and predetermined pattern, the Quick Response Code of generation QR code standards.
In another preferred embodiment, step S3 further comprises to suitable for the predetermined pattern of described first image Each execution step S3-21 and step S3-22 in all or part of predetermined pattern.
In step S3-21, when the predetermined pattern Quick Response Code and described first image size fit when, computer is set It is standby directly to be merged the Quick Response Code of the predetermined pattern with described first image.
For example, whether computer equipment is consistent or close with the size of the first image by the size for judging Quick Response Code, come Judge whether the Quick Response Code of the predetermined pattern is adapted to the size of described first image, when judging result is is adapted to, directly will The Quick Response Code of the predetermined pattern is merged with described first image.
In step S3-22, when Quick Response Code and the described first image size discomfort timing of the predetermined pattern, according to described The size of the Quick Response Code of the size adjusting of the first image predetermined pattern, and by the Quick Response Code after size adjusting and first figure As being merged.
For example, whether computer equipment is consistent or close with the size of the first image by the size for judging Quick Response Code, come Judge whether the Quick Response Code of the predetermined pattern is adapted to the size of described first image, when judging result is uncomfortable timing, be based on Algorithm is scaled to adjust the size of the Quick Response Code of predetermined pattern.Preferably, it is described scaling algorithm can combine B-spline difference and Lanczos algorithms.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any to all or part of pre- suitable for the predetermined pattern of described first image Each execution step S3-21 and step S3-22 in random sample formula, to obtain the implementation of the second image, should be included in this In the range of invention.
It should be noted that step S3-11 and step S3-12, can be combined with step S3-21 and step S3-22.Example Such as, in step S3-21, when the predetermined pattern Quick Response Code and described first image size fit when, computer equipment is straight Connect and perform step S3-11 and step S3-12, the Quick Response Code of the predetermined pattern is merged with described first image;In step In S3-22, when Quick Response Code and the described first image size discomfort timing of the predetermined pattern, according to the size of described first image The size of the Quick Response Code of the predetermined pattern is adjusted, and step S3-11 and step S3-12 is performed to the Quick Response Code after size adjusting, To be merged with described first image.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any by based on the whole suitable for the predetermined pattern of described first image or portion Divide the Quick Response Code of predetermined pattern generation to be merged respectively with described first image, obtain the implementation of at least one second image, It should be included in the scope of the present invention.
It should be further noted that when the second image of generation is multiple, such multiple second images can be provided The second image to user, for selection by the user its preference.
It should be further noted that computer equipment can be immediately performed step S3, also may be used after step S2 is performed every time After step S2 is performed a plurality of times, then perform step S3.
2 D code information, can be immersed in the first image by scheme through this embodiment, and can ensure two dimension In the case of the identifiability of code, the influence that the vision of the first image is presented effect in Quick Response Code is reduced.In addition, work as the pre- random sample The Quick Response Code of formula and described first image size discomfort timing, moreover it is possible to which the size for adjusting the Quick Response Code of predetermined pattern carries out again afterwards Quick Response Code is merged with described first image so that the image after Quick Response Code and the first image co-registration is imitated with more preferable vision Fruit.
Fig. 3 is the pattern determining device for being used to determine the pattern of the Quick Response Code suitable for image of one aspect of the invention Structure diagram.The pattern determining device of the present embodiment includes 1 and second determining device 2 of iteration means.Iteration means 1 are based on extremely Each predetermined pattern triggering 11 and first determining device 12 of acquisition device in a kind of few predetermined pattern performs operation.
Acquisition device 11 obtains two in the Quick Response Code based on text to be encoded and the generation of currently processed predetermined pattern The half-tone information of dimension distribution dot matrix.
Preferably, a predetermined pattern at least provides following information:
1)The shape at Two dimensional Distribution dot matrix midpoint.For example, the shape of the point of Two dimensional Distribution dot matrix is such as star in Fig. 6 a, again For example, the shape at Two dimensional Distribution dot matrix midpoint is as being circle in Fig. 6 b.In addition, the shape of each point also may be used in Two dimensional Distribution dot matrix The shape of difference, such as white point and stain can difference.
2)In the case that the area of point in Two dimensional Distribution dot matrix is less than the area of color lump belonging to the point, predetermined pattern is also Including the part in a color lump in addition to point, the transparency of i.e. secondary coloured moiety;Preferably, the transparency of dark block with it is shallow The transparency of color lump can be different.For example, the transparency of the part in the color lump of Fig. 6 a in addition to point is 100%, therefore can be seen that Part in addition to point is transparent, does not interfere with the color that the first image is showed;In another example Two dimensional Distribution point in Fig. 6 c The transparency of the dark block of battle array is 25%, it can be seen that in a dark block, in addition to point, secondary coloured moiety also shows Certain black.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that the predetermined pattern of any form of expression that can be used in regulation Quick Response Code, should all include Within the scope of the invention.
It should be further noted that although 6a to the Two dimensional Distribution dot matrix shown in 6c close to rectangle, but this area skill Art personnel will be understood that Two dimensional Distribution dot matrix can behave as any shape, such as pentagon, triangle, star, irregular figure Deng;Also, although Fig. 6 a include position sensing region to the Quick Response Code shown in 6c, but those skilled in the art should be able to manage Solution, Quick Response Code can not include the position sensing region yet.
Specifically, acquisition device 11 obtains the two dimension in the Quick Response Code based on text to be encoded and predetermined pattern generation The mode for being distributed the half-tone information of dot matrix includes but not limited to:
1)Acquisition device 11 directly acquires true in advance by the computer equipment where the acquisition device 11 or other equipment Fixed half-tone information, or the Quick Response Code generated or Two dimensional Distribution dot matrix are directly based upon to obtain half-tone information.
2)Acquisition device 11 generates Quick Response Code or Two dimensional Distribution dot matrix based on text to be encoded, and based on two generated Code or Two dimensional Distribution dot matrix are tieed up to obtain the half-tone information of Two dimensional Distribution dot matrix.It is preferably based on coding text to generate Two dimensional Distribution dot matrix can use multiple standards, such as QR Code(Quick Response Code)Standard etc..
Wherein, acquisition device 11 can use various ways, and Two dimensional Distribution is obtained to be based on Quick Response Code or Two dimensional Distribution dot matrix The half-tone information of dot matrix.
As a preferred embodiment, it is straight that acquisition device 11 calculates the gray scale of Two dimensional Distribution dot matrix according to the Quick Response Code Fang Tu, the half-tone information as Two dimensional Distribution dot matrix.It should be noted that if Quick Response Code is also included in addition to Two dimensional Distribution dot matrix Other guide, then acquisition device 11 can directly calculate the grey level histogram of Quick Response Code, as Two dimensional Distribution dot matrix gray scale believe Breath, alternatively, after the grey level histogram of calculating Quick Response Code, using the part wherein needed, the gray scale as Two dimensional Distribution dot matrix is believed Breath etc..
And for example as a preferred embodiment, acquisition device 11 includes blocking devices(It is not shown)With sub- acquisition device(Figure is not Show).The Quick Response Code is divided into multiple color lumps by blocking devices according to currently processed predetermined pattern;Sub- acquisition device according to The Quick Response Code, determines the half-tone information of each color lump of Two dimensional Distribution dot matrix therein, as the Two dimensional Distribution point respectively The half-tone information of battle array.
For example, sub- acquisition device calculates the half-tone information of each color lump that Two dimensional Distribution dot matrix covers in Fig. 6 a respectively, make Half-tone information for Two dimensional Distribution dot matrix etc..
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any obtained in the Quick Response Code generated based on text to be encoded and the predetermined pattern Two dimensional Distribution dot matrix half-tone information implementation, should be included in the scope of the present invention.
First determining device 12 is according to the half-tone information of the Two dimensional Distribution dot matrix and the ash of the first image to be fused Spend information, determine the Two dimensional Distribution dot matrix of currently processed predetermined pattern merged with described first image after dot matrix discrimination.
Wherein, the image that described first image merges for needs with Quick Response Code.
Specifically, the first determining device 12 can use various ways, according to the half-tone information of the Two dimensional Distribution dot matrix with And the half-tone information of the first image to be fused, after determining that the Two dimensional Distribution dot matrix of the predetermined pattern is merged with described first image Dot matrix discrimination.
As a preferred embodiment, the first determining device 12 includes judgment means(It is not shown)With the first sub- determining device (It is not shown).For each color lump in the Two dimensional Distribution dot matrix, judgment means according to the half-tone information of the color lump, and, Gray scale after the Two dimensional Distribution dot matrix is merged with described first image in described first image with the color lump lap is believed Breath, judges after the Two dimensional Distribution dot matrix is merged with described first image, whether which can be correctly validated;First son Determining device determines the dot matrix discrimination according to the judging result of each color lump in the Two dimensional Distribution dot matrix.
Wherein, the color lump that the dot matrix discrimination represents to be correctly validated in Two dimensional Distribution dot matrix accounts for Two dimensional Distribution point The ratio of all color lumps in battle array.
Wherein, judgment means can determine a color lump after Two dimensional Distribution dot matrix and image co-registration using various ways, Whether can be correctly validated.Judge whether color lump can be correctly validated such as by setting predetermined threshold.For example, set T1 is dark block decision threshold, and it is light block decision threshold to set T2, wherein, T1>T2, and set when the color lump gray scale is not less than During T1, which is dark block, and when the color lump gray scale is less than T2, which is light block;Judgment means will not belong to dark color The color lump of block and light block is judged as the color lump that cannot be correctly validated.
For example, the half-tone information of each color lump is determined according to the grey level histogram of the Quick Response Code of the acquisition of acquisition device 11, Judgment means according to image principle, calculate Two dimensional Distribution dot matrix with as after the first image co-registration, with two in described first image The gray value of each color lump lap in dimension distribution dot matrix, so that judge whether the color lump can be correctly validated, and the One sub- determining device statistics Two dimensional Distribution dot matrix as the color lump quantity that can be correctly validated after the first image co-registration with accounting for two The ratio of total color lump quantity of dimension distribution dot matrix, as dot matrix discrimination.
It should be noted that after judging the Two dimensional Distribution dot matrix and the first image co-registration, whether color lump can be by During correct identification, and it need not actually perform the operation for merging the Two dimensional Distribution dot matrix with described first image;For example, the One determining device 12 only it needs to be determined that in Two dimensional Distribution dot matrix with after the first image co-registration, the color lump is corresponding in the first image Lap, can be calculated by the half-tone information of the half-tone information to the color lump and the lap, to obtain both The half-tone information that should be obtained after fusion, and then judge whether color lump can be correctly validated.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any according to the half-tone information of the Two dimensional Distribution dot matrix and to be fused first The half-tone information of image, determine the Two dimensional Distribution dot matrix of the predetermined pattern merged with described first image after dot matrix discrimination Implementation, should be included in the scope of the present invention.
Second determining device 2 determines the predetermined pattern suitable for described first image according to dot matrix discrimination.
Preferably, the second determining device 2 is come true by judging whether the dot matrix discrimination exceedes predetermined discrimination threshold value Whether a fixed predetermined pattern is suitable for the first image.
For example, if dot matrix discrimination exceedes predetermined discrimination threshold value, it is determined that the predetermined pattern is suitable for the first image;If Dot matrix discrimination is less than predetermined discrimination threshold value, it is determined that the predetermined pattern is not suitable for shown first image.
For example, predetermined discrimination threshold value is 80%, the dot matrix discrimination that the first determining device 12 in iteration means 1 obtains For 90%, it is determined that the predetermined pattern is the predetermined pattern suitable for the first image.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that it is any according to the dot matrix discrimination, determine suitable for the predetermined of described first image The implementation of pattern, should be included in the scope of the present invention.
It should be noted that the second determining device 2 can be performed in iteration means 1 operates and obtains the point of all predetermined patterns After battle array discrimination, redo, so as to select one or more to be suitable for the first image from least one predetermined pattern Predetermined pattern.Once know alternatively, 11 and first determining device 12 of acquisition device often performs to obtain the dot matrix of a predetermined pattern Not after rate, the second determining device 2 is immediately performed once-through operation, to judge whether the predetermined pattern is suitable for the first image.Also, After judging that the predetermined pattern is suitable for the first image, pattern determining device can not continue to judge whether other predetermined patterns fit For the first image, alternatively, 11 and first determining device 12 of acquisition device continues to obtain the dot matrix identification of next predetermined pattern Rate, and judge whether it is suitable for the first image by the second determining device 2, so repeat, until being held to all predetermined patterns Judgement of having gone operates;After judging that the predetermined pattern is not suitable for the first image, 11 and first determining device 12 of acquisition device is again Secondary to perform operation to obtain the dot matrix discrimination of next predetermined pattern, the second determining device 2 judges whether the predetermined pattern fits For the first image, so repeat, until all predetermined patterns have been performed with judgement operation or has obtained being suitable for the first figure The predetermined pattern of picture.
One of preferred solution as the present embodiment, the pattern determining device of the present embodiment be additionally included in iteration means 1 it The preceding offer device for performing operation(It is not shown)With the 3rd determining device(It is not shown):Device is provided to be used to a variety of to make a reservation for Pattern is supplied to user;3rd determining device is used for according to selection of the user to a variety of predetermined patterns, determines iteration means 1 Described at least one predetermined pattern.
Wherein, there is provided a variety of predetermined patterns are supplied to user by device, and by the 3rd determining device according to user to described The selection of a variety of predetermined patterns, determines that the mode of at least one predetermined pattern includes but not limited to:
1)Device is provided such predetermined pattern is directly presented to user, and directly carried according to user by the 3rd determining device The selection of confession determines at least one predetermined pattern.
For example, the computer equipment where pattern determining device is user equipment, then providing device directly will be such a variety of Predetermined pattern is presented to user, the selection operation that the 3rd determining device directly carries out on a user device according to user, determine to A kind of few predetermined pattern.
2)Device is provided by other equipment such predetermined pattern is presented to user, and by the 3rd determining device according to it The selection of the user of his equipment feedback, determines at least one predetermined pattern.
For example, the computer equipment where pattern determining device is the network equipment, there is provided predetermined pattern is sent to by device User equipment, and user equipment is presented to user, the 3rd determining device is fed back according to user equipment, user is to predetermined pattern Selection, determines at least one predetermined pattern.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any implementation that a variety of predetermined patterns are supplied to user, should be included in this In the range of invention.
By the solution of the present invention, Quick Response Code pattern can be realized in the case of the fusion of substantial amounts of Quick Response Code and image Various Sexual behavior mode, and can such as reduce the point in Two dimensional Distribution dot matrix account for the area of color lump, pattern adjustment by way of, drop Low Quick Response Code treats the vision imaging of blending image;In addition, this programme can also by provide to the user a variety of predetermined patterns for Family selects, and to strengthen property of participation of the user in Quick Response Code generation phase, and then improves satisfaction of the user to Quick Response Code generation effect Degree.
Fig. 4 is the pattern determining device for being used to determine the pattern of the Quick Response Code suitable for image of another aspect of the invention Structure diagram.The pattern determining device of the present embodiment includes iteration means 1, the second determining device 2 and fusing device 3.
Wherein, 1 and second determining device 2 of iteration means is described in detail with reference to the embodiment shown in FIG. 3, and to quote Mode be incorporated herein, details are not described herein.
Fusing device 3 will be generated based on all or part of predetermined pattern suitable for the predetermined pattern of described first image Quick Response Code merged respectively with described first image, obtain at least one second image.Wherein, second image is described the One image merged with Quick Response Code after image.Second image as shown in Figure 7, as by the first image shown in Fig. 5 The image of gained after being merged with the Quick Response Code shown in Fig. 6 c.
For example, the second determining device 2 determines that 2 are suitable for the predetermined pattern of the first image, and it is based on 2 pre- random samples The Quick Response Code that formula obtains respectively is QR1 and QR2, then the first image is set first layer figure layer by fusing device 3, and QR1 is set Second layer figure layer, so that first layer figure layer and second layer figure layer be merged, obtains the second image corresponding with QR1;Also, merge QR2 is arranged to another second layer figure layer by device 3, so that first layer figure layer and another second layer figure layer be merged, is obtained Obtain the second image corresponding with QR2.
In another example the second determining device 2 determines 1 predetermined pattern for being suitable for the first image.By Quick Response Code and institute Before stating the first image co-registration, fusing device 3 generates corresponding picture structure data by parsing the first image, and according to Quick Response Code and the first image co-registration are obtained the second image by the picture structure data.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any implementation that a variety of predetermined patterns are supplied to user, should be included in this In the range of invention.
In a preferred solution, Quick Response Code further includes position sensing region.Fusing device 3 also triggers the first separator (It is not shown)With the second separator(It is not shown)To the whole suitable for the predetermined pattern of described first image or portion Divide in predetermined pattern and each perform operation.
Specifically, the first separator isolates the two dimension point from the Quick Response Code of currently processed predetermined pattern Cloth dot matrix, and the Two dimensional Distribution dot matrix is merged with described first image.Second separator is from currently processed predetermined pattern The Quick Response Code in isolate the position sensing region, and the position sensing region is merged with described first image.
For example, the first separator isolates Two dimensional Distribution dot matrix from Quick Response Code as fig. 6 c and divides the two dimension Cloth dot matrix separates out position with the first image co-registration as shown in Figure 5, the second separator from Quick Response Code as fig. 6 c Search coverage, and by the position sensing region and the first image co-registration as shown in Figure 5, obtain the second image as shown in Figure 7.
It should be noted that for the Quick Response Code not comprising position sensing region, directly by the Quick Response Code with it is described First image co-registration, you can obtain the second image based on the predetermined pattern.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any to all or part of pre- suitable for the predetermined pattern of described first image Operation each is performed in random sample formula, to obtain the implementation of the second image, should be included in the scope of the present invention.
In addition, in the case where Quick Response Code further includes position sensing region, acquisition device 11 can be generated comprising position sensing Region and the Quick Response Code of Two dimensional Distribution dot matrix.For example, Quick Response Code is QR code codes, then acquisition device 11 can be based on QR code Standard, detects the standard whether text to be encoded meets generation Quick Response Code, and when meeting standard, then based on the text to be encoded And predetermined pattern, the Quick Response Code of generation QR code standards.
In another preferred embodiment, fusing device 3 further triggers direct fusing device(It is not shown)Melt with adjustment Attach together and put(It is not shown)To each in all or part of predetermined pattern suitable for the predetermined pattern of described first image Perform operation.
When the predetermined pattern Quick Response Code and described first image size fit when, direct fusing device is directly pre- by this The Quick Response Code of random sample formula is merged with described first image.
For example, whether pattern determining device is consistent or close with the size of the first image by the size for judging Quick Response Code, To judge whether the Quick Response Code of the predetermined pattern is adapted to the size of described first image, when judging result is is adapted to, directly Fusing device is directly merged the Quick Response Code of the predetermined pattern with described first image.
When Quick Response Code and the described first image size discomfort timing of the predetermined pattern, adjustment fusing device is according to described the The size of the Quick Response Code of the size adjusting of the one image predetermined pattern, and by the Quick Response Code and described first image after size adjusting Merged.
For example, whether pattern determining device is consistent or close with the size of the first image by the size for judging Quick Response Code, To judge whether the Quick Response Code of the predetermined pattern is adapted to the size of described first image, when judging result is uncomfortable timing, adjust Whole fusing device adjusts the size of the Quick Response Code of predetermined pattern based on scaling algorithm.Preferably, the scaling algorithm can combine B Batten difference and Lanczos algorithms.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any to all or part of pre- suitable for the predetermined pattern of described first image Operation each is performed in random sample formula, to obtain the implementation of the second image, should be included in the scope of the present invention.
It should be noted that the first separator and the second separator, can merge with direct fusing device and adjustment Device is combined.For example, when the predetermined pattern Quick Response Code and described first image size fit when, direct fusing device is straight Contact the first separator of hair and the second separator, the Quick Response Code of the predetermined pattern is merged with described first image; Quick Response Code and described first image size discomfort timing when the predetermined pattern, adjustment fusing device is according to described first image The size of the Quick Response Code of the size adjusting predetermined pattern, and after triggering the first separator and the second separator to size adjusting Quick Response Code perform operation, to be merged with described first image.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than the limit to the present invention System, it should be appreciated by those skilled in the art that any by based on the whole suitable for the predetermined pattern of described first image or portion Divide the Quick Response Code of predetermined pattern generation to be merged respectively with described first image, obtain the implementation of at least one second image, It should be included in the scope of the present invention.
It should be further noted that when the second image of generation is multiple, such multiple second images can be provided The second image to user, for selection by the user its preference.
It should be further noted that fusing device 3 can be immediately performed operation after the second determining device 2 performs every time, Also can redo after the second determining device 2 is performed a plurality of times.
2 D code information, can be immersed in the first image by scheme through this embodiment, and can ensure two dimension In the case of the identifiability of code, the influence that the vision of the first image is presented effect in Quick Response Code is reduced.In addition, work as the pre- random sample The Quick Response Code of formula and described first image size discomfort timing, moreover it is possible to which the size for adjusting the Quick Response Code of predetermined pattern carries out again afterwards Quick Response Code is merged with described first image so that the image after Quick Response Code and the first image co-registration is imitated with more preferable vision Fruit.
It should be noted that in addition to the predetermined pattern of adjustment Quick Response Code, the color of the point in also adjustable Two dimensional Distribution dot matrix Coloured silk, so that the appropriate section in the color and the first image of point in Quick Response Code is more close.Preferably, the color modification of point Afterwards, Quick Response Code should be able to be still correctly validated.
In addition, the area that the shape of the color at Quick Response Code dot matrix midpoint, point, point are shared in its color lump, can be used as one The attribute of point, to be adjusted.For example, when a point and its corresponding part discomfort timing in the first image, the point is adjusted Attribute, makes it closer with the corresponding part in the first image, such as adjusts the color of the point, make its with it is corresponding in the first image Partial color is closer, and for example adjusts the shape of the point, make its with the first image some specific part closer to etc.;It is excellent Selection of land, which should remain to so that color lump belonging to the point, can be correctly validated(I.e. dark block remains to be identified as dark block, Light block remains to be identified as light block etc.).
It is highly preferred that by the attribute and the first image of the point in analysis of two-dimensional code division cloth dot matrix, Quick Response Code can be distributed Point in dot matrix is divided into attribute that is multigroup, and unifying the point in every group of adjustment.For example, by analysis of two-dimensional code division cloth dot matrix Point attribute and the first image after, confirm that the adjustment of the attribute of partial dot therein is same or similar, then can be by such adjustment The same or similar point is divided into one group, and unified adjustment etc. is carried out to the point in the group.If multiple dark color blocks corresponding the The plurality of dark block, then can be divided into one group, and the unified the plurality of dark color point in the block of adjustment by the white background in one image Color etc..
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, this hair Bright each device can use application-specific integrated circuit(ASIC)Or any other is realized similar to hardware device.In one embodiment In, software program of the invention can be performed by processor to realize steps described above or function.Similarly, it is of the invention Software program(Including relevant data structure)It can be stored in computer readable recording medium storing program for performing, for example, RAM memory, Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the present invention can employ hardware to realize, example Such as, as coordinating with processor so as to performing the circuit of each step or function.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference numeral in claim should not be considered as to the involved claim of limitation.This Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in system claims is multiple Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for table Show title, and be not offered as any specific order.

Claims (17)

1. a kind of method for the pattern for being used to determine the Quick Response Code suitable for image, wherein, the Quick Response Code includes Two dimensional Distribution Dot matrix, this method comprise the following steps:
A performs following operation based on each predetermined pattern at least one predetermined pattern:
A1 obtains the half-tone information of the Two dimensional Distribution dot matrix in the Quick Response Code generated based on text to be encoded and the predetermined pattern;
A2 determines that this is predetermined according to the half-tone information of the Two dimensional Distribution dot matrix and the half-tone information of the first image to be fused The Two dimensional Distribution dot matrix of pattern merged with described first image after dot matrix discrimination;
Wherein, this method is further comprising the steps of:
B determines the predetermined pattern suitable for described first image according to the dot matrix discrimination.
2. according to the method described in claim 1, wherein, this method is further comprising the steps of:
C distinguishes the Quick Response Code generated based on all or part of predetermined pattern suitable for the predetermined pattern of described first image Merged with described first image, obtain at least one second image.
3. according to the method described in claim 2, wherein, the Quick Response Code further includes position sensing region, right in the step c Each execution following steps in all or part of predetermined pattern the predetermined pattern of described first image, to obtain Second image of the corresponding predetermined pattern:
- isolate the Two dimensional Distribution dot matrix from the Quick Response Code of the predetermined pattern, and by the Two dimensional Distribution dot matrix and institute State the first image co-registration;And
- isolate the position sensing region from the Quick Response Code of the predetermined pattern, and by the position sensing region and institute State the first image co-registration.
4. according to the method described in claim 2, wherein, to the predetermined pattern suitable for described first image in the step c In all or part of predetermined pattern in it is each perform following steps, to obtain second figure of the corresponding predetermined pattern Picture:
- when Quick Response Code and the described first image size fit of the predetermined pattern, directly by the Quick Response Code of the predetermined pattern with Described first image is merged;
- when Quick Response Code and the described first image size discomfort timing of the predetermined pattern, according to the size tune of described first image The size of the Quick Response Code of the whole predetermined pattern, and the Quick Response Code after size adjusting is merged with described first image.
5. method according to any one of claim 1 to 4, wherein, the step a1 comprises the following steps:
- according to the predetermined pattern, the Quick Response Code is divided into multiple color lumps;
- according to the Quick Response Code, determine the half-tone information of each color lump of Two dimensional Distribution dot matrix therein, divide as the two dimension The half-tone information of cloth dot matrix.
6. method according to any one of claim 1 to 4, wherein, the step a2 comprises the following steps:
- for each color lump in the Two dimensional Distribution dot matrix, according to the half-tone information of the color lump, and, by the two dimension point Half-tone information after cloth dot matrix is merged with described first image in described first image with the color lump lap, judges by described in After Two dimensional Distribution dot matrix is merged with described first image, whether which can be correctly validated;
- according to the judging result of each color lump in the Two dimensional Distribution dot matrix, determine the dot matrix discrimination.
7. method according to any one of claim 1 to 4, wherein, this method further includes following step before step a Suddenly:
- a variety of predetermined patterns are supplied to user;
- according to selection of the user to a variety of predetermined patterns, determine at least one predetermined pattern.
8. method according to any one of claim 1 to 4, wherein, the area of the point in the Two dimensional Distribution dot matrix is small In the area of color lump belonging to the point.
9. a kind of pattern determining device for the pattern for being used to determine the Quick Response Code suitable for image, wherein, the Quick Response Code includes Two dimensional Distribution dot matrix, the pattern determining device include following device:
Iteration means, operation is performed for triggering following device based on each predetermined pattern at least one predetermined pattern:
Acquisition device, for obtaining the Two dimensional Distribution dot matrix in the Quick Response Code generated based on text to be encoded and the predetermined pattern Half-tone information;
First determining device, the gray scale for the half-tone information according to the Two dimensional Distribution dot matrix and the first image to be fused Information, determine the Two dimensional Distribution dot matrix of the predetermined pattern merged with described first image after dot matrix discrimination;
Wherein, which further includes following device:
Second determining device, for according to the dot matrix discrimination, determining the predetermined pattern suitable for described first image.
10. pattern determining device according to claim 9, wherein, which further includes following device:
Fusing device, for will be generated based on all or part of predetermined pattern suitable for the predetermined pattern of described first image Quick Response Code merged respectively with described first image, obtain at least one second image.
11. pattern determining device according to claim 10, wherein, the Quick Response Code further includes position sensing region, institute State fusing device and trigger following device in all or part of predetermined pattern suitable for the predetermined pattern of described first image It is each performs operation, to obtain second image of the correspondence predetermined pattern:
First separator, for isolating the Two dimensional Distribution dot matrix from the Quick Response Code of the predetermined pattern, and should Two dimensional Distribution dot matrix is merged with described first image;And
Second separator, for isolating the position sensing region from the Quick Response Code of the predetermined pattern, and should Merged with described first image in position sensing region.
12. pattern determining device according to claim 10, wherein, the fusing device trigger following device to suitable for Operation each is performed in all or part of predetermined pattern in the predetermined pattern of described first image, is made a reservation for obtain corresponding this Second image of pattern:
Direct fusing device, it is directly that this is pre- for when Quick Response Code and the described first image size fit of the predetermined pattern The Quick Response Code of random sample formula is merged with described first image;
Fusing device is adjusted, for the Quick Response Code when the predetermined pattern and described first image size discomfort timing, according to described The size of the Quick Response Code of the size adjusting of the first image predetermined pattern, and by the Quick Response Code after size adjusting and first figure As being merged.
13. the pattern determining device according to any one of claim 9 to 12, wherein, the acquisition device includes following Device:
Blocking devices, for according to the predetermined pattern, the Quick Response Code to be divided into multiple color lumps;
Sub- acquisition device, for according to the Quick Response Code, determining the half-tone information of each color lump of Two dimensional Distribution dot matrix therein, Half-tone information as the Two dimensional Distribution dot matrix.
14. the pattern determining device according to any one of claim 9 to 12, wherein, first determining device includes Following device:
Judgment means, for for each color lump in the Two dimensional Distribution dot matrix, according to the half-tone information of the color lump, and, Gray scale after the Two dimensional Distribution dot matrix is merged with described first image in described first image with the color lump lap is believed Breath, judges after the Two dimensional Distribution dot matrix is merged with described first image, whether which can be correctly validated;
First sub- determining device, for the judging result according to each color lump in the Two dimensional Distribution dot matrix, determines the dot matrix Discrimination.
15. the pattern determining device according to any one of claim 9 to 12, wherein, which further includes The following device of operation is performed before iteration means:
Device is provided, for a variety of predetermined patterns to be supplied to user;
3rd determining device, for according to selection of the user to a variety of predetermined patterns, determining the pre- random sample of at least one Formula.
16. the pattern determining device according to any one of claim 9 to 12, wherein, in the Two dimensional Distribution dot matrix The area of point is less than the area of color lump belonging to the point.
17. a kind of computer equipment, including the pattern determining device as any one of claim 9 to 16.
CN201310279809.8A 2013-07-04 2013-07-04 A kind of method, apparatus and computer equipment for being used to determine Quick Response Code pattern Active CN104281863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310279809.8A CN104281863B (en) 2013-07-04 2013-07-04 A kind of method, apparatus and computer equipment for being used to determine Quick Response Code pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310279809.8A CN104281863B (en) 2013-07-04 2013-07-04 A kind of method, apparatus and computer equipment for being used to determine Quick Response Code pattern

Publications (2)

Publication Number Publication Date
CN104281863A CN104281863A (en) 2015-01-14
CN104281863B true CN104281863B (en) 2018-05-01

Family

ID=52256723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310279809.8A Active CN104281863B (en) 2013-07-04 2013-07-04 A kind of method, apparatus and computer equipment for being used to determine Quick Response Code pattern

Country Status (1)

Country Link
CN (1) CN104281863B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778657B (en) * 2015-01-28 2018-12-07 北大方正集团有限公司 Two-dimensional image code fusion method and device
CN104778589B (en) * 2015-03-24 2018-04-27 立德高科(北京)数码科技有限责任公司 The method and device that data during combined anti-fake is identified are bound
CN104778490B (en) * 2015-03-24 2018-03-30 立德高科(北京)数码科技有限责任公司 The method and device that data during combined anti-fake is identified are bound
CN105095939A (en) * 2015-09-07 2015-11-25 郑州普天信息技术有限公司 Two-dimensional code vision optimization method
CN106127279A (en) * 2016-04-12 2016-11-16 立德高科(昆山)数码科技有限责任公司 The Quick Response Code of a kind of novel type, its generation method and two-dimension code label
CN107239814B (en) * 2017-06-07 2020-02-21 上海觉感视觉科技有限公司 Identification method of stacked two-dimensional codes fused with logo icons
CN109885711A (en) * 2019-01-17 2019-06-14 深圳市盈频家佳修信息技术有限责任公司 A kind of method and apparatus of customization of two-dimension code

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953362A (en) * 2006-11-16 2007-04-25 钟杨 A method and installation to embed pattern in two-dimensional bar code
KR20110006645A (en) * 2010-12-30 2011-01-20 이영재 How to design logo, mark and trademark using QR code
CN102968654A (en) * 2012-10-26 2013-03-13 吴东杰 Method and system for producing information recognizable by naked eyes in plane of two-dimensional (2D) code and 2D code
KR101260499B1 (en) * 2012-01-09 2013-05-06 주식회사 코아기술 Method for manufacturing design qr-code

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9152903B2 (en) * 2011-11-04 2015-10-06 Ebay Inc. Automated generation of QR codes with embedded images

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953362A (en) * 2006-11-16 2007-04-25 钟杨 A method and installation to embed pattern in two-dimensional bar code
KR20110006645A (en) * 2010-12-30 2011-01-20 이영재 How to design logo, mark and trademark using QR code
KR101260499B1 (en) * 2012-01-09 2013-05-06 주식회사 코아기술 Method for manufacturing design qr-code
CN102968654A (en) * 2012-10-26 2013-03-13 吴东杰 Method and system for producing information recognizable by naked eyes in plane of two-dimensional (2D) code and 2D code

Also Published As

Publication number Publication date
CN104281863A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
CN104281863B (en) A kind of method, apparatus and computer equipment for being used to determine Quick Response Code pattern
CN103886548B (en) It is a kind of to be used for the method and apparatus of Quick Response Code and image co-registration
US11205023B2 (en) Computer aided systems and methods for creating custom products
US11030825B2 (en) Computer aided systems and methods for creating custom products
CN106162177B (en) Method for video coding and device
Farid et al. Perceptual discrimination of computer generated and photographic faces
JP5736767B2 (en) Providing method of digital media, print medium, and computer program
JP5289586B2 (en) Dynamic image collage
Du et al. Saliency-guided color-to-gray conversion using region-based optimization
US8682108B2 (en) System and method for determining image placement on a canvas
CN106210855A (en) Object displaying method and device
CN109816766A (en) Image processing apparatus, image processing method and storage medium
CN104281864B (en) A kind of method and apparatus for generating Quick Response Code
CN103348360A (en) Morphological anti-aliasing (MLAA) of re-projection of two-dimensional image
CN106156237B (en) Information processing method, information processing unit and user equipment
CN113301409B (en) Video synthesis method and device, electronic equipment and readable storage medium
Haro Shape from silhouette consensus
CN104951495A (en) Apparatus and method for managing representative video images
Dong et al. Summarization-based image resizing by intelligent object carving
US8705847B2 (en) Method and system of two-dimensional to stereoscopic conversion
CN108416722A (en) A kind of method for displaying image, storage medium and terminal device
US9218688B2 (en) Animatable graphics lighting analysis reporting
Northam et al. Stereoscopic 3D image stylization
JP5416663B2 (en) Image evaluation apparatus and image evaluation program
CN116761037B (en) Method, device, equipment and medium for video implantation of multimedia information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant