CN104281863A - Method and device for determining type of two-dimension code and computer device - Google Patents

Method and device for determining type of two-dimension code and computer device Download PDF

Info

Publication number
CN104281863A
CN104281863A CN201310279809.8A CN201310279809A CN104281863A CN 104281863 A CN104281863 A CN 104281863A CN 201310279809 A CN201310279809 A CN 201310279809A CN 104281863 A CN104281863 A CN 104281863A
Authority
CN
China
Prior art keywords
image
predetermined pattern
dot matrix
quick response
response code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310279809.8A
Other languages
Chinese (zh)
Other versions
CN104281863B (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.)
Baidu Online Network Technology Beijing Co Ltd
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 invention provides a scheme for determining the type of a two-dimension code suitable for an image. The two-dimension code comprises a two-dimension distribution dot matrix. In the scheme, on the basis of each preset type in at least one preset type, the method includes the following steps of obtaining grey information of the two-dimension distribution dot matrix in the two-dimension code which is generated on the basis of a text to be coded and the preset type, determining the dot matrix identification rate obtained after the two-dimension distribution dot matrix of the preset type and the first image are fused according to the grey information of the two-dimension distribution dot matrix and grey information of the first image to be fused, and determining the preset type suitable for the first image according to the dot matrix identification rate.

Description

A kind of method, device and computer equipment for determining Quick Response Code pattern
Technical field
The present invention relates to planar bar code technology field, particularly relating to a kind of method of pattern of the Quick Response Code for determining to be applicable to image, device and computer equipment.)
Background technology
Quick Response Code can pass through the alternate graphic recording data symbol information of distribution dichromatism (normally black and white) in the plane, as shown in Figure 8.In the Quick Response Code application of prior art, usually Quick Response Code and image can be presented to user in combination, such as, propagating poster, advertisement and identifier embed Quick Response Code etc.But because Quick Response Code needs to have the specific form of expression, thus can be correctly identified to obtain its text represented, therefore, the Quick Response Code presented that combines with image often seems very lofty in whole image.
For making Quick Response Code and image more natural in combination, in prior art, provide kinds of schemes.Such as, because the identification of Quick Response Code is it is desirable that have two kinds of colors of certain difference, and non-essential be black or white, therefore the white background in Quick Response Code is changed to the background compared with light colour by a kind of scheme of prior art, also white is namely equivalent to be adjusted to more shallow a kind of color, and black is adjusted to darker another kind of color, thus make two kinds of colors can be comparatively close with image.
But the Quick Response Code that these schemes based on prior art obtain is still comparatively lofty in the picture, and appearance form is single, that easily causes with ambient color is inharmonious, thus is easy to the aestheticly tired causing user.
Summary of the invention
The object of this invention is to provide a kind of method of pattern of the Quick Response Code for determining to be applicable to image, device and computer equipment.
According to an aspect of the present invention, provide a kind of method of pattern of the Quick Response Code for determining to be applicable to image, wherein, described Quick Response Code comprises Two dimensional Distribution dot matrix, and the method comprises 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 this predetermined pattern;
A2, according to the half-tone information of the half-tone information of described Two dimensional Distribution dot matrix and the first image to be fused, determines the dot matrix discrimination after the Two dimensional Distribution dot matrix of this predetermined pattern and described first image co-registration;
Wherein, the method is further comprising the steps of:
B, according to described dot matrix discrimination, determines the predetermined pattern being applicable to described first image.
According to another aspect of the present invention, additionally provide a kind of pattern determining device of pattern of the Quick Response Code for determining to be applicable to image, wherein, described Quick Response Code comprises Two dimensional Distribution dot matrix, and this pattern determining device comprises with lower device:
Iteration means, for triggering with lower device based on each the predetermined pattern executable operations at least one predetermined pattern:
Acquisition device, for obtaining the half-tone information of the Two dimensional Distribution dot matrix in the Quick Response Code that generates based on text to be encoded and this predetermined pattern;
First determining device, for according to the half-tone information of described Two dimensional Distribution dot matrix and the half-tone information of the first image to be fused, determines the dot matrix discrimination after the Two dimensional Distribution dot matrix of this predetermined pattern and described first image co-registration;
Wherein, this pattern determining device also comprises with lower device:
Second determining device, for according to described dot matrix discrimination, determines the predetermined pattern being applicable to described first image.
Compared with prior art, the present invention has the following advantages: 1) can in the fusion situation of a large amount of Quick Response Codes and image, the diversity realizing Quick Response Code pattern is selected, and account for the area of color lump, the mode of pattern adjustment by the point such as reduced in Two dimensional Distribution dot matrix, reduce the vision imaging that Quick Response Code treats fused images; In addition, this programme also by providing multiple predetermined pattern to select for user for user, strengthens the property of participation of user at Quick Response Code generation phase, and then improves user generates effect satisfaction to Quick Response Code; 2) 2 D code information can be immersed in the first image, and when guaranteeing the identifiability of Quick Response Code, the impact that the vision of Quick Response Code on the first image presents effect can be reduced; 3) when Quick Response Code and the uncomfortable timing of described first picture size of this predetermined pattern, carry out the fusion of Quick Response Code and described first image after can also adjusting the size of the Quick Response Code of predetermined pattern again, make the image after Quick Response Code and the first image co-registration have better visual effect.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:
Fig. 1 is the method flow schematic diagram of the pattern of the Quick Response Code for determining to be applicable to image of one aspect of the invention;
Fig. 2 is the method flow schematic diagram of the pattern of the Quick Response Code for determining to be applicable to image of another aspect of the present invention;
Fig. 3 is the structural representation of the pattern determining device of the pattern of the Quick Response Code for determining to be applicable to image of one aspect of the invention;
Fig. 4 is the structural representation of the pattern determining device of the pattern of the Quick Response Code for determining to be applicable to image of another aspect of the present invention;
Fig. 5 is based on a first image schematic diagram of the present invention;
Fig. 6 a is the Quick Response Code schematic diagram generated based on the present invention's predetermined pattern;
Fig. 6 b is the Quick Response Code schematic diagram generated based on another predetermined pattern of the present invention;
Fig. 6 c is the Quick Response Code schematic diagram generated based on another predetermined pattern of the present invention;
Fig. 7 is based on a second image schematic diagram of the present invention;
Fig. 8 is a kind of Quick Response Code schematic diagram of prior art;
Fig. 9 is figure search coverage in Quick Response Code and Two dimensional Distribution dot matrix schematic diagram.
In accompanying drawing, same or analogous Reference numeral represents same or analogous parts.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 is the method flow schematic diagram of the pattern of the Quick Response Code for determining to be applicable to image of one aspect of the invention.Wherein, the method for the present embodiment realizes mainly through computer equipment; Described computer equipment comprises the network equipment and subscriber equipment; The described network equipment includes but not limited to the server group that single network server, multiple webserver form or the cloud be made up of a large amount of computing machine or the webserver based on cloud computing (Cloud Computing), wherein, cloud computing is the one of Distributed Calculation, the super virtual machine be made up of a group loosely-coupled computing machine collection; Described subscriber equipment includes but not limited to PC, panel computer, smart mobile phone, PDA, IPTV etc.; Network residing for described computer equipment includes but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN (Local Area Network), VPN etc.
It should be noted that, the described network equipment, subscriber equipment and network are only citing, and other computing equipments that are existing or that may occur from now on or network, as being applicable to the present invention, within also should being included in scope, and are contained in this with way of reference.
For being illustrated more clearly in the solution of the present invention, first Quick Response Code is described below:
Quick Response Code is by changing text to be encoded to obtain; Such as, according to the coding rule of Quick Response Code, can be the Quick Response Code represented with image format using a string text string generation as text to be encoded.When a recognition of devices Quick Response Code, Quick Response Code is divided into multiple color lump by it, and by judging that each color lump is dark block or light block, carrys out decode two dimensional codes, thus the Quick Response Code showed with image format is reduced to above-mentioned text to be encoded.
Wherein, Quick Response Code comprises Two dimensional Distribution dot matrix, and each point in dot matrix belongs to a color lump, and the dot matrix that the dotted line frame B in Quick Response Code shown in Fig. 9 comprises is an example of Two dimensional Distribution dot matrix.It should be noted that the appellation of " point " in Two dimensional Distribution dot matrix is mainly used in representing the main coloured moiety in a color lump more compactly, and should not be construed as the restriction of the shape to this main coloured moiety.In fact, the form of this main coloured moiety can arbitrarily change, and as can be the star as shown in Fig. 6 a and Fig. 6 b and circle, also can be other shapes, as bear's paw, the flower-shape that is made up of independently 4 hemp nettle lobes etc.
Preferably, a point in dot matrix can cover the whole color lump belonging to it, and as in Fig. 8, stain and white point cover whole color lump respectively; Or the area of a point in dot matrix is less than the area of color lump belonging to it, and as in Fig. 6 c, stain and white point are all only positioned at the core of color lump.Wherein, when the area of the point of in dot matrix is less than the area of color lump belonging to it, can the gray scale of the point comprehensively in color lump and other parts beyond point, determine the gray scale of this color lump, thus judge that this color lump belongs to dark block or light block, as in Fig. 6 c, the gray scale of the background in the gray scale of the point of star and this color lump except point can be similar in a comprehensive color lump, determine the gray scale of this color lump; Wherein, other parts in color lump except point, be the secondary coloured moiety of this color lump, preferably, this secondary coloured moiety is transparent.It should be noted that, because background color is white, therefore the white point in Fig. 6 a, Fig. 6 b and Fig. 6 c cannot observe, but it is actual is exist, such as, the second image shown in Fig. 7 is by being carried out merging obtaining by the second image shown in the first image as shown in Figure 5 and Fig. 6 c, can observing white point from Fig. 7.
As a kind of preferred form of Quick Response Code, Quick Response Code also can comprise position sensing region, this position sensing region is used for the equipment location Quick Response Code for decode two dimensional codes, and such as, the figure that the dotted line frame A in Quick Response Code shown in Fig. 9 comprises is one of three position sensing regions in this Quick Response Code.
Step S1 and step S2 is comprised according to the method for the present embodiment.In step sl, computer equipment performs step S11 and step S12 based on each predetermined pattern at least one predetermined pattern.
In step s 11, computer equipment obtains the half-tone information based on the Two dimensional Distribution dot matrix in text to be encoded and the Quick Response Code that generates when the predetermined pattern of pre-treatment.
Preferably, a predetermined pattern at least specifies following information:
1) shape of Two dimensional Distribution dot matrix mid point.Such as, in Fig. 6 a, the shape of the point of Two dimensional Distribution dot matrix is as star, and again such as, in Fig. 6 b, the shape of Two dimensional Distribution dot matrix mid point is as being circle.In addition, in Two dimensional Distribution dot matrix, the shape of each point also can be different, and the shape as white point and stain can not be equal.
2), the area of the point in Two dimensional Distribution dot matrix is less than the area of color lump belonging to this point, predetermined pattern also comprises the part in a color lump except point, i.e. the transparency of secondary coloured moiety; Preferably, the transparency of dark block and the transparency of light block can be different.Such as, the transparency of the part in the color lump of Fig. 6 a except point is 100%, therefore can find out, the part except point is transparent, can not affect the color that the first image presents; Again such as, in Fig. 6 c, the transparency of the dark block of Two dimensional Distribution dot matrix is 25%, can find out, in a dark block, except point, secondary coloured moiety also presents certain black.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any predetermined pattern that can be used in the form of expression of regulation Quick Response Code, all should be within the scope of the present invention.
Need to further illustrate, although the Two dimensional Distribution dot matrix shown in Fig. 6 a to 6c is close to rectangle, those skilled in the art will be understood that Two dimensional Distribution dot matrix can show as any shape, as pentagon, triangle, star, irregular figure etc.; Further, although the Quick Response Code shown in Fig. 6 a to 6c all comprises position sensing region, those skilled in the art will be understood that Quick Response Code also can not comprise this position sensing region.
Particularly, the mode that computer equipment 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 this predetermined pattern includes but not limited to:
1) computer equipment directly obtains by this computer equipment or the predetermined half-tone information of other equipment, or directly obtains half-tone information based on the Quick Response Code generated or Two dimensional Distribution dot matrix.
2) computer equipment generates Quick Response Code or Two dimensional Distribution dot matrix based on text to be encoded, and obtains the half-tone information of Two dimensional Distribution dot matrix based on generated Quick Response Code or Two dimensional Distribution dot matrix.Preferably, multiple standards can be adopted, as QR Code(Quick Response Code based on the text encoded Two dimensional Distribution dot matrix generated of band) standard etc.
Wherein, computer equipment can adopt various ways, carrys out the half-tone information obtaining Two dimensional Distribution dot matrix based on Quick Response Code or Two dimensional Distribution dot matrix.
As a kind of preferred version, computer equipment calculates the grey level histogram of Two dimensional Distribution dot matrix according to described Quick Response Code, as the half-tone information of Two dimensional Distribution dot matrix.It should be noted that, if Quick Response Code also comprises the other guide except Two dimensional Distribution dot matrix, then computer equipment directly can calculate the grey level histogram of Quick Response Code, as the half-tone information of Two dimensional Distribution dot matrix, or, after calculating the grey level histogram of Quick Response Code, use the part wherein needed, as the half-tone information etc. of Two dimensional Distribution dot matrix.
And for example as a kind of preferred version, described Quick Response Code, according to the predetermined pattern when pre-treatment, is divided into multiple color lump by computer equipment; And according to described Quick Response Code, determine the half-tone information of each color lump of Two dimensional Distribution dot matrix wherein respectively, as the half-tone information of described Two dimensional Distribution dot matrix.
Such as, the half-tone information of each color lump that Two dimensional Distribution dot matrix covers in computer equipment difference calculating chart 6a, as the half-tone information etc. of Two dimensional Distribution dot matrix.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, the implementation of the half-tone information of the Two dimensional Distribution dot matrix in the Quick Response Code that any acquisition generates based on text to be encoded and this predetermined pattern, all should be within the scope of the present invention.
In step s 12, computer equipment, according to the half-tone information of the half-tone information of described Two dimensional Distribution dot matrix and the first image to be fused, is determined when the dot matrix discrimination after the Two dimensional Distribution dot matrix and described first image co-registration of the predetermined pattern of pre-treatment.
Wherein, described first image is the image needing to merge with Quick Response Code.
Particularly, computer equipment can adopt various ways, according to the half-tone information of described Two dimensional Distribution dot matrix and the half-tone information of the first image to be fused, determines the dot matrix discrimination after the Two dimensional Distribution dot matrix of this predetermined pattern and described first image co-registration.
As a kind of preferred version, for each color lump in described Two dimensional Distribution dot matrix, computer equipment is according to the half-tone information of this color lump, and, by in described first image after described Two dimensional Distribution dot matrix and described first image co-registration with the half-tone information of this color lump lap, judge whether this color lump can be correctly validated by after described Two dimensional Distribution dot matrix and described first image co-registration; And according to the judged result of each color lump in described Two dimensional Distribution dot matrix, determine described dot matrix discrimination.
Wherein, described dot matrix discrimination represents that the color lump that can be correctly validated in Two dimensional Distribution dot matrix accounts for the ratio of all color lumps in Two dimensional Distribution dot matrix.
Wherein, whether computer equipment can adopt various ways to determine a color lump after Two dimensional Distribution dot matrix and image co-registration, can be correctly validated.As judged whether color lump can be correctly validated by setting predetermined threshold.Such as, arranging T1 is dark block decision threshold, and arranging T2 is light block decision threshold, wherein, T1>T2, then when this color lump gray scale is not less than T1, this color lump is dark block, and when this color lump gray scale is less than T2, this color lump is light block; The color lump not belonging to dark block and light block is judged as the color lump that can not be correctly validated by computer equipment.
Such as, computer equipment determines the half-tone information of each color lump according to the grey level histogram of the Quick Response Code obtained in step s 11, computer equipment is according to image principle, calculate Two dimensional Distribution dot matrix with as after the first image co-registration, with the gray-scale value of each color lump lap in Two dimensional Distribution dot matrix in described first image, thus judge whether this color lump can be correctly validated, and computer equipment statistics Two dimensional Distribution dot matrix and the ratio of total color lump quantity accounting for Two dimensional Distribution dot matrix as the color lump quantity that can be correctly validated after the first image co-registration, as dot matrix discrimination.
It should be noted that, judging after by described Two dimensional Distribution dot matrix and the first image co-registration, when whether color lump can be correctly validated, do not need actual execution by the step of described Two dimensional Distribution dot matrix and described first image co-registration; Such as, computer equipment only need to determine in Two dimensional Distribution dot matrix with the first image co-registration after, the lap that this color lump is corresponding in the first image, namely by calculating the half-tone information of this color lump and the half-tone information of this lap, obtain the half-tone information that should obtain after both merge, and then judge whether color lump can be correctly validated.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, the half-tone information of any half-tone information according to described Two dimensional Distribution dot matrix and the first image to be fused, determine the implementation of the dot matrix discrimination after the Two dimensional Distribution dot matrix of this predetermined pattern and described first image co-registration, all should be within the scope of the present invention.
In step s 2, computer equipment, according to dot matrix discrimination, determines the predetermined pattern being applicable to described first image.
Preferably, computer equipment, by judging whether described dot matrix discrimination exceedes predetermined discrimination threshold value, determines whether a predetermined pattern is applicable to the first image.
Such as, if dot matrix discrimination exceedes predetermined discrimination threshold value, then determine that this predetermined pattern is applicable to the first image; If dot matrix discrimination is lower than predetermined discrimination threshold value, then determine that this predetermined pattern is not suitable for shown first image.
Such as, predetermined discrimination threshold value is 80%, and the dot matrix discrimination obtained in step sl is 90%, then determine that this pattern is applicable to the first image.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any according to described dot matrix discrimination, determine the implementation of the predetermined pattern being applicable to described first image, all should be within the scope of the present invention.
It should be noted that, computer equipment at execution step S1 after obtaining the dot matrix discrimination of all predetermined pattern, then can perform step S2, thus from least one predetermined pattern, select one or more predetermined pattern being applicable to the first image.Or computer equipment often performs after a step S11 and S12 obtains the dot matrix discrimination of a predetermined pattern, performs a step S2 immediately, judges whether this predetermined pattern is applicable to the first image.And, after judging that this predetermined pattern is applicable to the first image, computer equipment can no longer continue to judge whether other predetermined pattern are applicable to the first image, or, computer equipment performs step S11 and step S12 again to obtain the dot matrix discrimination of next predetermined pattern, and perform step S2 thus judge whether it is applicable to the first image, so repeats, until judgement operation is executed to all predetermined pattern; After judging that this predetermined pattern is not suitable for the first image, computer equipment performs step S11 and step S12 again to obtain the dot matrix discrimination of next predetermined pattern, and perform step S2 thus judge whether it is applicable to the first image, repetition like this, until execute judgement operation to all predetermined pattern or obtained being applicable to the predetermined pattern of the first image.
As one of the preferred version of the present embodiment, before execution step S1, the method for the present embodiment is further comprising the steps of: multiple predetermined pattern is supplied to user; And according to the selection of user to described multiple predetermined pattern, at least one predetermined pattern described in determining step S1.
Wherein, multiple predetermined pattern is supplied to user by computer equipment, and according to the selection of user to described multiple predetermined pattern, determines that the mode of described at least one predetermined pattern includes but not limited to:
1) these predetermined pattern are directly presented to user by computer equipment, and determine at least one predetermined pattern according to the selection that user directly provides.
Such as, computer equipment is subscriber equipment, then these multiple predetermined pattern are directly presented to user by subscriber equipment, and according to the selection operation that user directly carries out on a user device, determines at least one predetermined pattern.
2) computer equipment presents these predetermined pattern by other equipment to user, and the selection of the user fed back according to other equipment, determine described at least one predetermined pattern.
Such as, computer equipment is the network equipment, and predetermined pattern is sent to subscriber equipment by the network equipment, and user presented to by subscriber equipment, and according to subscriber equipment feedback, user to the selection of predetermined pattern, determine described at least one predetermined pattern.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, it should be appreciated by those skilled in the art that any implementation multiple predetermined pattern being supplied to user, all should be within the scope of the present invention.
Pass through the solution of the present invention, can in the fusion situation of a large amount of Quick Response Codes and image, the diversity realizing Quick Response Code pattern is selected, and accounts for the area of color lump, the mode of pattern adjustment by the point such as reduced in Two dimensional Distribution dot matrix, reduces the vision imaging that Quick Response Code treats fused images; In addition, this programme also by providing multiple predetermined pattern to select for user for user, strengthens the property of participation of user at Quick Response Code generation phase, and then improves user generates effect satisfaction to Quick Response Code.
Fig. 2 is the method flow schematic diagram of the pattern of the Quick Response Code for determining to be applicable to image of another aspect of the present invention.The method primary computer equipment of the present embodiment realizes; Wherein, to any explanation with reference to the computer equipment described in embodiment illustrated in fig. 1, be contained in all by reference in the present embodiment.Wherein, the method for the present embodiment comprises step S1, step S2 and step S3.
Wherein, step S1 and step S2 is described in detail with reference to the embodiment shown in FIG. 1, and is contained in this by reference, does not repeat them here.
In step s3, computer equipment by the Quick Response Code that generates based on all or part of predetermined pattern be applicable in the predetermined pattern of described first image respectively with described first image co-registration, obtain at least one second image.Wherein, described second image is the image after described first image and Quick Response Code merge.Second image as shown in Figure 7, is the image of gained after being merged by the Quick Response Code shown in the first image shown in Fig. 5 and Fig. 6 c.
Such as, computer equipment determines the predetermined pattern that 2 are applicable to the first image in step s 2, and be QR1 and QR2 based on the Quick Response Code that these 2 predetermined pattern obtain respectively, then the first image is arranged ground floor layer by computer equipment, and QR1 is arranged second layer layer, thus ground floor layer and second layer layer are merged, obtain second image corresponding with QR1; Further, QR2 is set to another second layer layer by computer equipment, thus ground floor layer and this another second layer layer is merged, and obtains second image corresponding with QR2.
Again such as, computer equipment determines the predetermined pattern that 1 is applicable to the first image in step s 2.Before by Quick Response Code and described first image co-registration, computer equipment, by parsing first image, generates corresponding picture structure data, and according to these picture structure data by Quick Response Code and the first image co-registration, obtains the second image.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, it should be appreciated by those skilled in the art that any implementation multiple predetermined pattern being supplied to user, all should be within the scope of the present invention.
In a preferred version, Quick Response Code also comprises position sensing region.Step S3 comprises following step S3-11 to each execution in all or part of predetermined pattern be applicable in the predetermined pattern of described first image and step S3-12 further.
In step S3-11, computer equipment isolates described Two dimensional Distribution dot matrix from the described Quick Response Code of the predetermined pattern when pre-treatment, and by this Two dimensional Distribution dot matrix and described first image co-registration.
In step S3-12, computer equipment isolates described position sensing region from the described Quick Response Code of the predetermined pattern when pre-treatment, and by this position sensing region and described first image co-registration.
Such as, Two dimensional Distribution dot matrix is isolated and by this Two dimensional Distribution dot matrix and the first image co-registration as shown in Figure 5 from Quick Response Code as fig. 6 c, and position sensing region is isolated from Quick Response Code as fig. 6 c, and by this 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 this Quick Response Code and described first image co-registration, the second image based on this predetermined pattern can be obtained.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, each execution step S3-11 and step S3-12 in any all or part of predetermined pattern to being applicable in the predetermined pattern of described first image, to obtain the implementation of the second image, all should be within the scope of the present invention.
In addition, when Quick Response Code also comprises position sensing region, in step s 11, computer equipment can generate the Quick Response Code comprising position sensing region and Two dimensional Distribution dot matrix.Such as, Quick Response Code is QR code code, then computer equipment can based on QR code standard, detect text to be encoded and whether meet the standard generating Quick Response Code, and when meeting standard, then based on this text to be encoded and predetermined pattern, generate the Quick Response Code of QR code standard.
In another preferred embodiment, step S3 comprises further to each execution step S3-21 and step S3-22 in all or part of predetermined pattern be applicable in the predetermined pattern of described first image.
In step S3-21, when the size fit of the Quick Response Code of this predetermined pattern and described first image, the Quick Response Code of this predetermined pattern and described first image directly merge by computer equipment.
Such as, computer equipment is by judging that whether the size of Quick Response Code is consistent or close with the size of the first image, judge that whether the size of the Quick Response Code of this predetermined pattern and described first image is adaptive, when judged result is adaptive, directly the Quick Response Code of this predetermined pattern and described first image are merged.
In step S3-22, when Quick Response Code and the uncomfortable timing of described first picture size of this predetermined pattern, according to the size of the Quick Response Code of this predetermined pattern of adjusted size of described first image, and the Quick Response Code after adjusted size and described first image are merged.
Such as, computer equipment is by judging that whether the size of Quick Response Code is consistent or close with the size of the first image, judge that whether the size of the Quick Response Code of this predetermined pattern and described first image is adaptive, when judged result is uncomfortable timing, adjust the size of the Quick Response Code of predetermined pattern based on convergent-divergent algorithm.Preferably, described convergent-divergent algorithm can in conjunction with B-spline difference and Lanczos algorithm.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, each execution step S3-21 and step S3-22 in any all or part of predetermined pattern to being applicable in the predetermined pattern of described first image, to obtain the implementation of the second image, all should be within the scope of the present invention.
It should be noted that, step S3-11 and step S3-12, can combine with step S3-21 and step S3-22.Such as, in step S3-21, when the size fit of the Quick Response Code of this predetermined pattern and described first image, computer equipment directly performs step S3-11 and step S3-12, the Quick Response Code of this predetermined pattern and described first image is merged; In step S3-22, when Quick Response Code and the uncomfortable timing of described first picture size of this predetermined pattern, according to the size of the Quick Response Code of this predetermined pattern of adjusted size of described first image, and step S3-11 and step S3-12 is performed, to merge with described first image to the Quick Response Code after adjusted size.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any by the Quick Response Code that generates based on all or part of predetermined pattern be applicable in the predetermined pattern of described first image respectively with described first image co-registration, obtain the implementation of at least one the second image, all should be within the scope of the present invention.
Need to further illustrate, when the second image generated is multiple, these multiple second images can be supplied to user, selects the second image of its preference for user.
Need to further illustrate, computer equipment step S2 performs after at every turn, can perform step S3, also after step S2 multiple exercise, then can perform step S3 immediately.
By the scheme of the present embodiment, 2 D code information can be immersed in the first image, and when guaranteeing the identifiability of Quick Response Code, the impact that the vision of Quick Response Code on the first image presents effect can be reduced.In addition, when Quick Response Code and the uncomfortable timing of described first picture size of this predetermined pattern, carry out the fusion of Quick Response Code and described first image after can also adjusting the size of the Quick Response Code of predetermined pattern again, make the image after Quick Response Code and the first image co-registration have better visual effect.
Fig. 3 is the structural representation of the pattern determining device of the pattern of the Quick Response Code for determining to be applicable to image of one aspect of the invention.The pattern determining device of the present embodiment comprises iteration means 1 and the second determining device 2.Iteration means 1 triggers acquisition device 11 and the first determining device 12 executable operations based on each predetermined pattern at least one predetermined pattern.
Acquisition device 11 obtains the half-tone information based on the Two dimensional Distribution dot matrix in text to be encoded and the Quick Response Code that generates when the predetermined pattern of pre-treatment.
Preferably, a predetermined pattern at least specifies following information:
1) shape of Two dimensional Distribution dot matrix mid point.Such as, in Fig. 6 a, the shape of the point of Two dimensional Distribution dot matrix is as star, and again such as, in Fig. 6 b, the shape of Two dimensional Distribution dot matrix mid point is as being circle.In addition, in Two dimensional Distribution dot matrix, the shape of each point also can be different, and the shape as white point and stain can not be equal.
2), the area of the point in Two dimensional Distribution dot matrix is less than the area of color lump belonging to this point, predetermined pattern also comprises the transparency of part, i.e. secondary coloured moiety in a color lump except point; Preferably, the transparency of dark block and the transparency of light block can be different.Such as, the transparency of the part in the color lump of Fig. 6 a except point is 100%, therefore can find out, the part except point is transparent, can not affect the color that the first image presents; Again such as, in Fig. 6 c, the transparency of the dark block of Two dimensional Distribution dot matrix is 25%, can find out, in a dark block, except point, secondary coloured moiety also presents certain black.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any predetermined pattern that can be used in the form of expression of regulation Quick Response Code, all should be within the scope of the present invention.
Need to further illustrate, although the Two dimensional Distribution dot matrix shown in 6a to 6c is close to rectangle, those skilled in the art will be understood that Two dimensional Distribution dot matrix can show as any shape, as pentagon, triangle, star, irregular figure etc.; Further, although the Quick Response Code shown in Fig. 6 a to 6c all comprises position sensing region, those skilled in the art will be understood that Quick Response Code also can not comprise this position sensing region.
Particularly, the mode that acquisition device 11 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 this predetermined pattern includes but not limited to:
1) acquisition device 11 directly obtains by computer equipment or the predetermined half-tone information of other equipment at this acquisition device 11 place, or directly obtains half-tone information based on the Quick Response Code generated or Two dimensional Distribution dot matrix.
2) acquisition device 11 generates Quick Response Code or Two dimensional Distribution dot matrix based on text to be encoded, and obtains the half-tone information of Two dimensional Distribution dot matrix based on generated Quick Response Code or Two dimensional Distribution dot matrix.Preferably, multiple standards can be adopted, as QR Code(Quick Response Code based on the text encoded Two dimensional Distribution dot matrix generated of band) standard etc.
Wherein, acquisition device 11 can adopt various ways, carrys out the half-tone information obtaining Two dimensional Distribution dot matrix based on Quick Response Code or Two dimensional Distribution dot matrix.
As a kind of preferred version, acquisition device 11 calculates the grey level histogram of Two dimensional Distribution dot matrix according to described Quick Response Code, as the half-tone information of Two dimensional Distribution dot matrix.It should be noted that, if Quick Response Code also comprises the other guide except Two dimensional Distribution dot matrix, then acquisition device 11 directly can calculate the grey level histogram of Quick Response Code, as the half-tone information of Two dimensional Distribution dot matrix, or, after calculating the grey level histogram of Quick Response Code, use the part wherein needed, as the half-tone information etc. of Two dimensional Distribution dot matrix.
And for example as a kind of preferred version, acquisition device 11 comprises blocking devices (not shown) and sub-acquisition device (not shown).Described Quick Response Code, according to the predetermined pattern when pre-treatment, is divided into multiple color lump by blocking devices; Sub-acquisition device, according to described Quick Response Code, determines the half-tone information of each color lump of Two dimensional Distribution dot matrix wherein respectively, as the half-tone information of described Two dimensional Distribution dot matrix.
Such as, the half-tone information of each color lump that Two dimensional Distribution dot matrix covers in sub-acquisition device difference calculating chart 6a, as the half-tone information etc. of Two dimensional Distribution dot matrix.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, the implementation of the half-tone information of the Two dimensional Distribution dot matrix in the Quick Response Code that any acquisition generates based on text to be encoded and this predetermined pattern, all should be within the scope of the present invention.
First determining device 12, according to the half-tone information of the half-tone information of described Two dimensional Distribution dot matrix and the first image to be fused, is determined when the dot matrix discrimination after the Two dimensional Distribution dot matrix and described first image co-registration of the predetermined pattern of pre-treatment.
Wherein, described first image is the image needing to merge with Quick Response Code.
Particularly, the first determining device 12 can adopt various ways, according to the half-tone information of described Two dimensional Distribution dot matrix and the half-tone information of the first image to be fused, determines the dot matrix discrimination after the Two dimensional Distribution dot matrix of this predetermined pattern and described first image co-registration.
As a kind of preferred version, the first determining device 12 comprises judgment means (not shown) and the first sub-determining device (not shown).For each color lump in described Two dimensional Distribution dot matrix, judgment means is according to the half-tone information of this color lump, and, by in described first image after described Two dimensional Distribution dot matrix and described first image co-registration with the half-tone information of this color lump lap, judge whether this color lump can be correctly validated by after described Two dimensional Distribution dot matrix and described first image co-registration; First sub-determining device, according to the judged result of each color lump in described Two dimensional Distribution dot matrix, determines described dot matrix discrimination.
Wherein, described dot matrix discrimination represents that the color lump that can be correctly validated in Two dimensional Distribution dot matrix accounts for the ratio of all color lumps in Two dimensional Distribution dot matrix.
Wherein, whether judgment means can adopt various ways to determine a color lump after Two dimensional Distribution dot matrix and image co-registration, can be correctly validated.As judged whether color lump can be correctly validated by setting predetermined threshold.Such as, arranging T1 is dark block decision threshold, and arranging T2 is light block decision threshold, wherein, and T1>T2, and setting is when this color lump gray scale is not less than T1, this color lump is dark block, and when this color lump gray scale is less than T2, this color lump is light block; The color lump not belonging to dark block and light block is judged as the color lump that can not be correctly validated by judgment means.
Such as, the half-tone information of each color lump is determined according to the grey level histogram of the Quick Response Code of acquisition device 11 acquisition, judgment means is according to image principle, calculate Two dimensional Distribution dot matrix with as after the first image co-registration, with the gray-scale value of each color lump lap in Two dimensional Distribution dot matrix in described first image, thus judge whether this color lump can be correctly validated, and the first sub-determining device statistics Two dimensional Distribution dot matrix and the ratio of total color lump quantity accounting for Two dimensional Distribution dot matrix as the color lump quantity that can be correctly validated after the first image co-registration, as dot matrix discrimination.
It should be noted that, judging after by described Two dimensional Distribution dot matrix and the first image co-registration, when whether color lump can be correctly validated, do not need actual execution by the operation of described Two dimensional Distribution dot matrix and described first image co-registration; Such as, first determining device 12 only need to determine in Two dimensional Distribution dot matrix with the first image co-registration after, the lap that this color lump is corresponding in the first image, namely by calculating the half-tone information of this color lump and the half-tone information of this lap, obtain the half-tone information that should obtain after both merge, and then judge whether color lump can be correctly validated.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, the half-tone information of any half-tone information according to described Two dimensional Distribution dot matrix and the first image to be fused, determine the implementation of the dot matrix discrimination after the Two dimensional Distribution dot matrix of this predetermined pattern and described first image co-registration, all should be within the scope of the present invention.
Second determining device 2, according to dot matrix discrimination, determines the predetermined pattern being applicable to described first image.
Preferably, the second determining device 2, by judging whether described dot matrix discrimination exceedes predetermined discrimination threshold value, determines whether a predetermined pattern is applicable to the first image.
Such as, if dot matrix discrimination exceedes predetermined discrimination threshold value, then determine that this predetermined pattern is applicable to the first image; If dot matrix discrimination is lower than predetermined discrimination threshold value, then determine that this predetermined pattern is not suitable for shown first image.
Such as, predetermined discrimination threshold value is 80%, and the dot matrix discrimination that the first determining device 12 in iteration means 1 obtains is 90%, then determine that this predetermined pattern is the predetermined pattern being applicable to the first image.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any according to described dot matrix discrimination, determine the implementation of the predetermined pattern being applicable to described first image, all should be within the scope of the present invention.
It should be noted that, the second determining device 2, can redo after obtaining the dot matrix discrimination of all predetermined pattern in iteration means 1 executable operations, thus from least one predetermined pattern, select one or more predetermined pattern being applicable to the first image.Or after acquisition device 11 and the first determining device 12 often perform the dot matrix discrimination once obtaining a predetermined pattern, the second determining device 2 performs single job immediately, judges whether this predetermined pattern is applicable to the first image.And, after judging that this predetermined pattern is applicable to the first image, pattern determining device can no longer continue to judge whether other predetermined pattern are applicable to the first image, or, acquisition device 11 and the first determining device 12 continue the dot matrix discrimination obtaining next predetermined pattern, and judge whether it is applicable to the first image, so repeats by the second determining device 2, until judgement operation is executed to all predetermined pattern; After judging that this predetermined pattern is not suitable for the first image, acquisition device 11 and the first determining device 12 again executable operations obtain the dot matrix discrimination of next predetermined pattern, second determining device 2 judges whether this predetermined pattern is applicable to the first image, repetition like this, until execute judgement operation to all predetermined pattern or obtained being applicable to the predetermined pattern of the first image.
As one of the preferred version of the present embodiment, the pattern determining device of the present embodiment be also included in iteration means 1 before the generator (scheming not shown) of executable operations and the 3rd determining device (scheming not shown): generator is for being supplied to user by multiple predetermined pattern; 3rd determining device is used for according to the selection of user to described multiple predetermined pattern, determines at least one predetermined pattern described in iteration means 1.
Wherein, multiple predetermined pattern is supplied to user by generator, and by the 3rd determining device according to the selection of user to described multiple predetermined pattern, determines that the mode of described at least one predetermined pattern includes but not limited to:
1) these predetermined pattern are directly presented to user by generator, and determine at least one predetermined pattern by the 3rd determining device according to the selection that user directly provides.
Such as, the computer equipment at pattern determining device place is subscriber equipment, then these multiple predetermined pattern are directly presented to user by generator, the selection operation that the 3rd determining device is directly carried out on a user device according to user, determine at least one predetermined pattern.
2) generator presents these predetermined pattern by other equipment to user, and the selection of the user fed back according to other equipment by the 3rd determining device, determine described at least one predetermined pattern.
Such as, the computer equipment at pattern determining device place is the network equipment, and predetermined pattern is sent to subscriber equipment by generator, and user presented to by subscriber equipment, that 3rd determining device is fed back according to subscriber equipment, user, to the selection of predetermined pattern, determines described at least one predetermined pattern.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, it should be appreciated by those skilled in the art that any implementation multiple predetermined pattern being supplied to user, all should be within the scope of the present invention.
Pass through the solution of the present invention, can in the fusion situation of a large amount of Quick Response Codes and image, the diversity realizing Quick Response Code pattern is selected, and accounts for the area of color lump, the mode of pattern adjustment by the point such as reduced in Two dimensional Distribution dot matrix, reduces the vision imaging that Quick Response Code treats fused images; In addition, this programme also by providing multiple predetermined pattern to select for user for user, strengthens the property of participation of user at Quick Response Code generation phase, and then improves user generates effect satisfaction to Quick Response Code.
Fig. 4 is the pattern determining device structural representation of the pattern of the Quick Response Code for determining to be applicable to image of another aspect of the present invention.The pattern determining device of the present embodiment comprises iteration means 1, second determining device 2 and fusing device 3.
Wherein, iteration means 1 and the second determining device 2 are described in detail with reference to the embodiment shown in FIG. 3, and are contained in this by reference, do not repeat them here.
Fusing device 3 by the Quick Response Code that generates based on all or part of predetermined pattern be applicable in the predetermined pattern of described first image respectively with described first image co-registration, obtain at least one second image.Wherein, described second image is the image after described first image and Quick Response Code merge.Second image as shown in Figure 7, is the image of gained after being merged by the Quick Response Code shown in the first image shown in Fig. 5 and Fig. 6 c.
Such as, second determining device 2 determines the predetermined pattern that 2 are applicable to the first image, and be QR1 and QR2 based on the Quick Response Code that these 2 predetermined pattern obtain respectively, then the first image is arranged ground floor layer by fusing device 3, and QR1 is arranged second layer layer, thus ground floor layer and second layer layer are merged, obtain second image corresponding with QR1; Further, QR2 is set to another second layer layer by fusing device 3, thus ground floor layer and this another second layer layer is merged, and obtains second image corresponding with QR2.
Again such as, the second determining device 2 determines the predetermined pattern that 1 is applicable to the first image.Before by Quick Response Code and described first image co-registration, fusing device 3, by parsing first image, generates corresponding picture structure data, and according to these picture structure data by Quick Response Code and the first image co-registration, obtains the second image.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, it should be appreciated by those skilled in the art that any implementation multiple predetermined pattern being supplied to user, all should be within the scope of the present invention.
In a preferred version, Quick Response Code also comprises position sensing region.Fusing device 3 also triggers the first tripping device (scheming not shown) and the second tripping device (scheming not shown) to each executable operations in all or part of predetermined pattern be applicable in the predetermined pattern of described first image.
Particularly, the first tripping device isolates described Two dimensional Distribution dot matrix from the described Quick Response Code of the predetermined pattern when pre-treatment, and by this Two dimensional Distribution dot matrix and described first image co-registration.Second tripping device isolates described position sensing region from the described Quick Response Code of the predetermined pattern when pre-treatment, and by this position sensing region and described first image co-registration.
Such as, first tripping device isolates Two dimensional Distribution dot matrix and by this Two dimensional Distribution dot matrix and the first image co-registration as shown in Figure 5 from Quick Response Code as fig. 6 c, second tripping device isolates position sensing region from Quick Response Code as fig. 6 c, and by this 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 this Quick Response Code and described first image co-registration, the second image based on this predetermined pattern can be obtained.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, each executable operations in any all or part of predetermined pattern to being applicable in the predetermined pattern of described first image, to obtain the implementation of the second image, all should be within the scope of the present invention.
In addition, when Quick Response Code also comprises position sensing region, acquisition device 11 can generate the Quick Response Code comprising position sensing region and Two dimensional Distribution dot matrix.Such as, Quick Response Code is QR code code, then acquisition device 11 can based on QR code standard, detect text to be encoded and whether meet the standard generating Quick Response Code, and when meeting standard, then based on this text to be encoded and predetermined pattern, generate the Quick Response Code of QR code standard.
In another preferred embodiment, fusing device 3 triggers direct fusing device (scheming not shown) further and adjusts fusing device (scheming not shown) to each executable operations in all or part of predetermined pattern be applicable in the predetermined pattern of described first image.
When the size fit of the Quick Response Code of this predetermined pattern and described first image, the Quick Response Code of this predetermined pattern and described first image directly merge by direct fusing device.
Such as, pattern determining device is by judging that whether the size of Quick Response Code is consistent or close with the size of the first image, judge that whether the size of the Quick Response Code of this predetermined pattern and described first image is adaptive, when judged result is adaptive, the Quick Response Code of this predetermined pattern and described first image directly merge by direct fusing device.
When Quick Response Code and the uncomfortable timing of described first picture size of this predetermined pattern, the Quick Response Code after adjusted size and described first image according to the size of the Quick Response Code of this predetermined pattern of adjusted size of described first image, and merge by adjustment fusing device.
Such as, pattern determining device is by judging that whether the size of Quick Response Code is consistent or close with the size of the first image, judge that whether the size of the Quick Response Code of this predetermined pattern and described first image is adaptive, when judged result is uncomfortable timing, adjustment fusing device adjusts the size of the Quick Response Code of predetermined pattern based on convergent-divergent algorithm.Preferably, described convergent-divergent algorithm can in conjunction with B-spline difference and Lanczos algorithm.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, each executable operations in any all or part of predetermined pattern to being applicable in the predetermined pattern of described first image, to obtain the implementation of the second image, all should be within the scope of the present invention.
It should be noted that, the first tripping device and the second tripping device, and fusing device can be adjusted combine with direct fusing device.Such as, when the size fit of the Quick Response Code of this predetermined pattern and described first image, direct fusing device directly triggers the first tripping device and the second tripping device, the Quick Response Code of this predetermined pattern and described first image is merged; When Quick Response Code and the uncomfortable timing of described first picture size of this predetermined pattern, adjustment fusing device is according to the size of the Quick Response Code of this predetermined pattern of adjusted size of described first image, and trigger the first tripping device and the second tripping device to the Quick Response Code executable operations after adjusted size, to merge with described first image.
It should be noted that, above-mentioned citing is only and technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any by the Quick Response Code that generates based on all or part of predetermined pattern be applicable in the predetermined pattern of described first image respectively with described first image co-registration, obtain the implementation of at least one the second image, all should be within the scope of the present invention.
Need to further illustrate, when the second image generated is multiple, these multiple second images can be supplied to user, selects the second image of its preference for user.
Need to further illustrate, fusing device 3 can after the second determining device 2 performs at every turn, and executable operations immediately, also after the second determining device 2 multiple exercise, can redo.
By the scheme of the present embodiment, 2 D code information can be immersed in the first image, and when guaranteeing the identifiability of Quick Response Code, the impact that the vision of Quick Response Code on the first image presents effect can be reduced.In addition, when Quick Response Code and the uncomfortable timing of described first picture size of this predetermined pattern, carry out the fusion of Quick Response Code and described first image after can also adjusting the size of the Quick Response Code of predetermined pattern again, make the image after Quick Response Code and the first image co-registration have better visual effect.
It should be noted that, except the predetermined pattern of adjustment Quick Response Code, the color of the point also in adjustable Two dimensional Distribution dot matrix, to make the appropriate section in the color of the point in Quick Response Code and the first image more close.Preferably, after the color modification of point, Quick Response Code still should be able to be correctly validated.
In addition, the color of Quick Response Code dot matrix mid point, the shape of point, to put in its color lump shared area, can be used as the attribute of a point, adjusted.Such as, when a point and the uncomfortable timing of its corresponding part in the first image, adjust the attribute of this point, make corresponding part in itself and the first image closer to, as adjusted the color of this point, make the color of the corresponding part in itself and the first image closer to, and for example adjust the shape of this point, make certain specific part in itself and the first image closer to etc.; Preferably, this adjustment still should can make color lump belonging to this point, can be correctly validated (namely dark block still can be identified as dark block, and light block still can be identified as light block etc.).
More preferably, by attribute and first image of the point in analysis of two-dimensional code distribution dot matrix, be divided into many groups by some Quick Response Code can distributed in dot matrix, and the attribute of point in unifying to adjust every group.Such as, after the attribute of point in analysis of two-dimensional code distribution dot matrix and the first image, confirm that the adjustment of the attribute of part point is wherein same or similar, then these can be adjusted same or analogous point and be divided into one group, and adjustment etc. is unified to the point in this group.If the white background in all corresponding first image of multiple dark block, then the plurality of dark block can be divided into one group, and the color etc. of the unified point adjusted in the plurality of dark block.
It should be noted that the present invention can be implemented in the assembly of software and/or software restraint, such as, each device of the present invention can adopt special IC (ASIC) or any other similar hardware device to realize.In one embodiment, software program of the present invention can perform to realize step mentioned above or function by processor.Similarly, software program of the present invention (comprising relevant data structure) can be stored in computer readable recording medium storing program for performing, such as, and RAM storer, magnetic or CD-ROM driver or flexible plastic disc and similar devices.In addition, steps more of the present invention or function can adopt hardware to realize, such as, as coordinating with processor thus performing the circuit of each step or function.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned one exemplary embodiment, and when not deviating from spirit of the present invention or essential characteristic, the present invention can be realized in other specific forms.Therefore, no matter from which point, all should embodiment be regarded as exemplary, and be nonrestrictive, scope of the present invention is limited by claims instead of above-mentioned explanation, and all changes be therefore intended in the implication of the equivalency by dropping on claim and scope are included in the present invention.Any Reference numeral in claim should be considered as the claim involved by limiting.In addition, obviously " comprising " one word do not get rid of other unit or step, odd number does not get rid of plural number.Multiple unit of stating in system claims or device also can be realized by software or hardware by a unit or device.First, second word such as grade is used for representing title, and does not represent any specific order.

Claims (17)

1. for determining a method for the pattern of the Quick Response Code being applicable to image, wherein, described Quick Response Code comprises Two dimensional Distribution dot matrix, and the method comprises 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 this predetermined pattern;
A2, according to the half-tone information of the half-tone information of described Two dimensional Distribution dot matrix and the first image to be fused, determines the dot matrix discrimination after the Two dimensional Distribution dot matrix of this predetermined pattern and described first image co-registration;
Wherein, the method is further comprising the steps of:
B, according to described dot matrix discrimination, determines the predetermined pattern being applicable to described first image.
2. method according to claim 1, wherein, the method is further comprising the steps of:
C by the Quick Response Code that generates based on all or part of predetermined pattern be applicable in the predetermined pattern of described first image respectively with described first image co-registration, obtain at least one second image.
3. method according to claim 2, wherein, described Quick Response Code also comprises position sensing region, to each execution following steps in all or part of predetermined pattern be applicable in the predetermined pattern of described first image in described step c, obtain should described second image of predetermined pattern:
-from the described Quick Response Code of this predetermined pattern, isolate described Two dimensional Distribution dot matrix, and by this Two dimensional Distribution dot matrix and described first image co-registration; And
-from the described Quick Response Code of this predetermined pattern, isolate described position sensing region, and by this position sensing region and described first image co-registration.
4. method according to claim 2, wherein, to each execution following steps in all or part of predetermined pattern be applicable in the predetermined pattern of described first image in described step c, obtains should described second image of predetermined pattern:
-when the Quick Response Code of this predetermined pattern and described first picture size adaptive time, directly the Quick Response Code of this predetermined pattern and described first image are merged;
-when the Quick Response Code of this predetermined pattern and the uncomfortable timing of described first picture size, according to the size of the Quick Response Code of this predetermined pattern of adjusted size of described first image, and the Quick Response Code after adjusted size and described first image are merged.
5. method according to any one of claim 1 to 4, wherein, described step a1 comprises the following steps:
-according to this predetermined pattern, described Quick Response Code is divided into multiple color lump;
-according to described Quick Response Code, determine the half-tone information of each color lump of Two dimensional Distribution dot matrix wherein, as the half-tone information of described Two dimensional Distribution dot matrix.
6. according to the method described in claim 1 to 5, wherein, described step a2 comprises the following steps:
-for each color lump in described Two dimensional Distribution dot matrix, according to the half-tone information of this color lump, and, by in described first image after described Two dimensional Distribution dot matrix and described first image co-registration with the half-tone information of this color lump lap, judge whether this color lump can be correctly validated by after described Two dimensional Distribution dot matrix and described first image co-registration;
-according to the judged result of each color lump in described Two dimensional Distribution dot matrix, determine described dot matrix discrimination.
7. method according to any one of claim 1 to 6, wherein, the method is further comprising the steps of before step a:
-multiple predetermined pattern is supplied to user;
-according to the selection of user to described multiple predetermined pattern, determine described at least one predetermined pattern.
8. method according to any one of claim 1 to 7, wherein, the area of the point in described Two dimensional Distribution dot matrix is less than the area of color lump belonging to this point.
9. for determining a pattern determining device for the pattern of the Quick Response Code being applicable to image, wherein, described Quick Response Code comprises Two dimensional Distribution dot matrix, and this pattern determining device comprises with lower device:
Iteration means, for triggering with lower device based on each the predetermined pattern executable operations at least one predetermined pattern:
Acquisition device, for obtaining the half-tone information of the Two dimensional Distribution dot matrix in the Quick Response Code that generates based on text to be encoded and this predetermined pattern;
First determining device, for according to the half-tone information of described Two dimensional Distribution dot matrix and the half-tone information of the first image to be fused, determines the dot matrix discrimination after the Two dimensional Distribution dot matrix of this predetermined pattern and described first image co-registration;
Wherein, this pattern determining device also comprises with lower device:
Second determining device, for according to described dot matrix discrimination, determines the predetermined pattern being applicable to described first image.
10. pattern determining device according to claim 9, wherein, this pattern determining device also comprises with lower device:
Fusing device, for the Quick Response Code that will generate based on all or part of predetermined pattern be applicable in the predetermined pattern of described first image respectively with described first image co-registration, obtain at least one second image.
11. pattern determining devices according to claim 10, wherein, described Quick Response Code also comprises position sensing region, described fusing device to trigger with lower device each executable operations in all or part of predetermined pattern be applicable in the predetermined pattern of described first image, obtains should described second image of predetermined pattern:
First tripping device, for isolating described Two dimensional Distribution dot matrix, and by this Two dimensional Distribution dot matrix and described first image co-registration from the described Quick Response Code of this predetermined pattern; And
Second tripping device, for isolating described position sensing region, and by this position sensing region and described first image co-registration from the described Quick Response Code of this predetermined pattern.
12. pattern determining devices according to claim 10, wherein, described fusing device to trigger with lower device each executable operations in all or part of predetermined pattern be applicable in the predetermined pattern of described first image, obtains should described second image of predetermined pattern:
Direct fusing device, for when the Quick Response Code of this predetermined pattern and described first picture size adaptive time, directly the Quick Response Code of this predetermined pattern and described first image are merged;
Adjustment fusing device, for working as Quick Response Code and the uncomfortable timing of described first picture size of this predetermined pattern, according to the size of the Quick Response Code of this predetermined pattern of adjusted size of described first image, and the Quick Response Code after adjusted size and described first image are merged.
13. pattern determining devices according to any one of claim 9 to 12, wherein, described acquisition device comprises with lower device:
Blocking devices, for according to this predetermined pattern, is divided into multiple color lump by described Quick Response Code;
Sub-acquisition device, for according to described Quick Response Code, determines the half-tone information of each color lump of Two dimensional Distribution dot matrix wherein, as the half-tone information of described Two dimensional Distribution dot matrix.
14. according to the pattern determining device described in claim 9 to 13, and wherein, described first determining device comprises with lower device:
Judgment means, for for each color lump in described Two dimensional Distribution dot matrix, according to the half-tone information of this color lump, and, by in described first image after described Two dimensional Distribution dot matrix and described first image co-registration with the half-tone information of this color lump lap, judge whether this color lump can be correctly validated by after described Two dimensional Distribution dot matrix and described first image co-registration;
First sub-determining device, for the judged result according to each color lump in described Two dimensional Distribution dot matrix, determines described dot matrix discrimination.
15. pattern determining devices according to any one of claim 9 to 14, wherein, this pattern determining device be also included in iteration means before executable operations with lower device:
Generator, for being supplied to user by multiple predetermined pattern;
3rd determining device, for according to the selection of user to described multiple predetermined pattern, determines described at least one predetermined pattern.
16. pattern determining devices according to any one of claim 9 to 15, wherein, the area of the point in described Two dimensional Distribution dot matrix is less than the area of color lump belonging to this point.
17. 1 kinds of computer equipments, comprise the pattern determining device as described in item at least one in 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 true CN104281863A (en) 2015-01-14
CN104281863B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778657A (en) * 2015-01-28 2015-07-15 北大方正集团有限公司 Method and device for fusing two-dimensional code of image
CN104778490A (en) * 2015-03-24 2015-07-15 立德高科(北京)数码科技有限责任公司 Method and device for binding data in combination-type anti-fake label
CN104778589A (en) * 2015-03-24 2015-07-15 立德高科(北京)数码科技有限责任公司 Method and device for binding data in combination-type anti-fake label
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
CN107239814A (en) * 2017-06-07 2017-10-10 上海觉感视觉科技有限公司 A kind of stack Quick Response Code of fusion logo icons and its recognition methods
CN109885711A (en) * 2019-01-17 2019-06-14 深圳市盈频家佳修信息技术有限责任公司 A kind of method and apparatus of customization of two-dimension code

Citations (5)

* 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
US20130112760A1 (en) * 2011-11-04 2013-05-09 Ebay Inc. Automated generation of qr codes with embedded images

Patent Citations (5)

* 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
US20130112760A1 (en) * 2011-11-04 2013-05-09 Ebay Inc. Automated generation of qr codes with embedded images
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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778657A (en) * 2015-01-28 2015-07-15 北大方正集团有限公司 Method and device for fusing two-dimensional code of image
CN104778657B (en) * 2015-01-28 2018-12-07 北大方正集团有限公司 Two-dimensional image code fusion method and device
CN104778490A (en) * 2015-03-24 2015-07-15 立德高科(北京)数码科技有限责任公司 Method and device for binding data in combination-type anti-fake label
CN104778589A (en) * 2015-03-24 2015-07-15 立德高科(北京)数码科技有限责任公司 Method and device for binding data in combination-type anti-fake label
CN104778490B (en) * 2015-03-24 2018-03-30 立德高科(北京)数码科技有限责任公司 The method and device that data during combined anti-fake is identified are bound
CN104778589B (en) * 2015-03-24 2018-04-27 立德高科(北京)数码科技有限责任公司 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
CN107239814A (en) * 2017-06-07 2017-10-10 上海觉感视觉科技有限公司 A kind of stack Quick Response Code of fusion logo icons and its recognition methods
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

Also Published As

Publication number Publication date
CN104281863B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN104281863A (en) Method and device for determining type of two-dimension code and computer device
CN103886548A (en) Method and device for integrating two-dimensional code with image
US20210225037A1 (en) Learning-based sampling for image matting
CN104281864B (en) A kind of method and apparatus for generating Quick Response Code
CN102768754B (en) Method and device for implementation of picture verification code
CN103620622B (en) For the method and apparatus removing artifact from Aerial Images
CN104756491A (en) Depth map generation from a monoscopic image based on combined depth cues
CN106462560A (en) Systems and methods for optimizing content layout using behavior metrics
Tan et al. Legitimate adversarial patches: Evading human eyes and detection models in the physical world
CN110121034A (en) A kind of method, apparatus and storage medium being implanted into information in video
US9374570B2 (en) Apparatus and method for correcting depth map for three-dimensional image
CN111862866B (en) Image display method, device, equipment and computer readable storage medium
CN104751405A (en) Method and device for blurring image
CN103313120B (en) Show method, mobile terminal, high in the clouds and the system of picture
KR20190054782A (en) Apparatus and method for enhancing learning capacility for machine learning
KR20130089649A (en) Method and arrangement for censoring content in three-dimensional images
CN108604389B (en) Continuous depth-ordered image synthesis
CN103886352B (en) The method and apparatus that a kind of Quick Response Code is processed
Cai et al. Joint depth and density guided single image de-raining
CN109903315A (en) Method, apparatus, equipment and readable storage medium storing program for executing for light stream prediction
Wang et al. Weakly supervised single image dehazing
Fujii et al. RGB-D image inpainting using generative adversarial network with a late fusion approach
Northam et al. Stereoscopic 3D image stylization
Zhang et al. Boosting transferability of physical attack against detectors by redistributing separable attention
CN107247984B (en) Coding method of visual two-dimensional code

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