One kind pays Quick Response Code generation system and recognition methods
Technical field
The present invention relates to a kind of Quick Response Code printing technology, especially formula is related to a kind of payment Quick Response Code print system.
Background technology
Quick Response Code is the chequered with black and white figure being distributed according to certain rules on two dimensional surface with certain specific geometric figure
Shape records the bar code of data symbol information, and required information can be passed on after device scan, is in one-dimensional bar code technology
On the basis of expand a kind of there is readable bar code.Quick Response Code has high power capacity, reliability height, error correcting capability is strong, maintains secrecy
The features such as property is high.It has been widely applied at present in mobile phone electronic voucher, check is false proof, invoice anticounterfeiting etc..
With the rapid development of technology of Internet of things and mobile communication technology, Quick Response Code pays the main force as mobile payment
Army, by fashion, easily customer experience, is widely popularized, the growth of number of users is very quick, in payment technical field
Promptly it has been dissolved among society and people's daily life.
Various Quick Response Code application technologies based on Quick Response Code payment, two-dimensional code electronic voucher, two-dimentional code encryption invoice allow business
Industry and adventure in daily life become more vibrant.Many people gradually become accustomed to barcode scanning payment when small amount is done shopping or is consumed.They pass through
The Quick Response Code provided with smart mobile phone scanning businessman, is transferred to businessman's by debt from oneself Alipay account or wechat account
In account, so as to complete debt payment.
In Quick Response Code payment, businessman will be paid after Quick Response Code prints by printer, be arranged at shelf or receipts
Silver place, customer is when needing payment, by moving the payment Quick Response Code that prints of device scan, so as to carry out currency payment.This
There is provided for businessman and customer while merchandising convenient, also provide opportunity for law-breaker.Root is it is reported that
A lot of offenders occur the payment 2 D code information that businessman prints be substituted for into the payment 2 D code information of oneself, so as to steal
User pays the case of debt.
Replaced by offender to find to pay 2 D code information in time, can be beaten in the prior art paying Quick Response Code
During print, specific characteristic image such as businessman's photo is set among Quick Response Code, by observing characteristic image with the presence or absence of judgement
Pay whether 2 D code information is replaced.But it is all disclosed to pay image in 2 D code, offender can be by by feature
Image is inserted into after being taken pictures in the payment image in 2 D code of its forgery, and business is replaced after the payment image in 2 D code of forgery is printed
The payment image in 2 D code of family, so that businessman is difficult to find the safety problem for paying Quick Response Code in time.
In the prior art, 201410623487.9,201410839169.6,201220014626.4,
Anti-fake two-dimension code printing equipment is all disclosed in the patents such as 201520283696.3, but these devices are all not intended to payment two
Code printing is tieed up, its Quick Response Code printed can not all solve the above problems.
The content of the invention
The present invention provide it is a kind of pay Quick Response Code print system, by payment image in 2 D code of its printing be difficult to by for
Change, so as to increase the security of Quick Response Code payment.
As one aspect of the present invention, there is provided one kind pays Quick Response Code print system, including:Input unit, for inputting
Payment information;Quick Response Code transcoding portion, for payment information to be changed into the original two dimensional code figure of black-white colors with fixed serious forgiveness
Case;Characteristic pattern input unit, for inputting the characteristic pattern of black-white colors;Characteristic pattern embedded division, according to the appearance of the fixation
Error rate zooms in or out the characteristic pattern, omits the area accounting of the characteristic pattern of embedded original two dimensional code pattern
More than the serious forgiveness of the fixation, middle pattern in 2 D code is formed;Pattern in 2 D code correction portion, according to original two dimensional code image pair
The partial dot of characteristic pattern is modified in middle image in 2 D code, makes the payment pattern in 2 D code to be formed and original two dimensional code figure
Serious forgiveness small specific threshold of the area accounting of symbol different zones than the fixation as in;Black and white printing portion, for that will generate
Payment pattern in 2 D code printed, generate print media on black and white pay Quick Response Code.
Preferably, the print media is printing paper.
Preferably, the printing portion includes printer ink cartridge, and the print cartridge is black ink box.
Preferably, the input unit passes through wireless network, cable network or storage medium input payment information.
Preferably, the payment information includes payment web site.
Preferably, the serious forgiveness of the fixation is 7% or 15%.
Preferably, in the middle pattern in 2 D code, the serious forgiveness of the area accounting of the characteristic pattern than the fixation
It is high by 2%~5%.
Preferably, the specific threshold is 2% to 4%.
Preferably, the payment Quick Response Code is used for antitheft.
As another aspect of the present invention, there is provided the safety recognizing method of above-mentioned payment Quick Response Code, includes the following steps:
(1)Store the serious forgiveness of the fixation;(2)Scan the black and white and pay Quick Response Code, obtain the payment image in 2 D code;(3)
Identify the payment image in 2 D code, if the payment image in 2 D code can not identify, enter step(4);It is if described
Paying image in 2 D code can identify that identification enters step(5);(4)Quick Response Code recognition failures information is provided, end identified
Journey;(5)Obtain the payment 2 D code information;(6)According to the level of error correction information of the payment Quick Response Code, judge that it is set and hold
Whether error rate is equal to the serious forgiveness of the fixation, if not equal to the serious forgiveness of the fixation, enters step(7);If wait
In the serious forgiveness of the fixation, then enter step(8);(7)The payment Quick Response Code is provided as unsafe payment Quick Response Code
Prompting, terminates identification process;(8)Determine Quick Response Code payment information of the payment 2 D code information for safety.
As another aspect of the present invention, there is provided the method for secure transactions of above-mentioned payment Quick Response Code, including:Following step
Suddenly:(1)Store the serious forgiveness of the fixation;(2)Scan the black and white and pay Quick Response Code, obtain the payment image in 2 D code;
(3)Identify the payment image in 2 D code, if the payment image in 2 D code can not identify, enter step(4);If institute
Stating payment image in 2 D code can identify that identification enters step(5);(4)Quick Response Code recognition failures information is provided, end identified
Journey;(5)Obtain the payment 2 D code information;(6)According to the level of error correction information of the payment Quick Response Code, judge that it is set and hold
Whether error rate is equal to the serious forgiveness of the fixation, if not equal to the serious forgiveness of the fixation, enters step(7);If wait
In the serious forgiveness of the fixation, then enter step(8);(7)The payment Quick Response Code is provided as unsafe payment Quick Response Code
Prompting, terminates identification process;(8)Determine Quick Response Code payment information of the payment 2 D code information for safety;(9)According to described
2 D code information is paid to be paid.
Brief description of the drawings
Fig. 1 is the payment Quick Response Code generating process schematic diagram of the payment Quick Response Code print system of the embodiment of the present invention.
Fig. 2 is the identification process figure for the printing payment Quick Response Code that the present invention pays Quick Response Code print system.
Embodiment
In order to illustrate more clearly of technical scheme, embodiment will be used simply to be situated between the present invention below
Continue, it should be apparent that, in describing below is only one embodiment of the present of invention, is come for those of ordinary skill in the art
Say, without having to pay creative labor, other technical solutions can also be obtained according to these embodiments, are fallen within
Disclosure of the invention scope.
The payment Quick Response Code print system of the embodiment of the present invention, including input unit, Quick Response Code transcoding portion, characteristic pattern input
Portion, characteristic pattern embedded division, pattern in 2 D code correction portion and black and white printing portion.
Input unit is used to input the payment information for paying Quick Response Code, which can be the payment of such as payment platform
Network address.Human-computer interaction device can also be passed through by wireless network, cable network or storage medium input payment information
Such as the input payment information such as keyboard, touch-screen.
Quick Response Code transcoding portion, for payment information to be changed into black-white colors such as Fig. 1 with fixed serious forgiveness(a)Shown in
Original two dimensional code pattern.The codings such as conventional Quick Response Code coding rule such as QR, Data Matrix, PDF417 can be used to advise
Payment information is then dressed up to the original two dimensional code image of black-white colors.Fixed serious forgiveness can be such as 7%, 15% or more
It is high.In embodiment below, with 15% fixation serious forgiveness as an example.
Characteristic pattern input unit, for inputting the characteristic pattern of black-white colors, characteristic image can be merchant identification, business
Mark, portrait, symbol, landscape etc..Characteristic pattern is used to be positioned in image in 2 D code, so as to print Quick Response Code by criminal
During replacement, businessman can have found in time.
Characteristic pattern, is amplified by characteristic image embedded division according to the serious forgiveness of the fixation of the setting in Quick Response Code transcoding portion
Or reduce, the area accounting of the characteristic pattern of embedded original two dimensional code pattern is more than the serious forgiveness of the fixation, such as can
So that the area accounting of characteristic pattern is higher than the serious forgiveness of the fixation by 2%~5%.Such as the characteristic pattern of characteristic pattern input unit
As accounting for the 10% of original two dimensional code pattern area, this feature image can be amplified 70%, make amplified characteristic image
The 17% of original two dimensional code pattern area is accounted for, than fixed serious forgiveness 15% high 2%.The characteristic image to zoom in or out is embedded in
Original two dimensional code pattern, forms such as Fig. 1(b)Shown in middle pattern in 2 D code, embedded location can be pay Quick Response Code in
Centre or other data fields.
Pattern in 2 D code correction portion, according to the partial dot of characteristic pattern in image in 2 D code between original two dimensional code image pair
It is modified, such as Fig. 1(c)Shown in, in Fig. 1(b)Face characteristic pattern in partial symbols modify, make this
Partial symbols are identical with the symbol of the partial symbols position in original two dimensional code image, so that the payment pattern in 2 D code formed
Area accounting with symbol different zones in original two dimensional code image is than the small specific threshold of serious forgiveness of the fixation, the certain threshold
Value could be provided as such as 2% to 4%.For example, by changing characteristic symbol, make the payment pattern in 2 D code to be formed and original
The area accounting of symbol different zones is 12% in beginning image in 2 D code, it is less than fixed serious forgiveness 15%, so that formed
Paying image in 2 D code can be identified.
Black and white printing portion, it includes printer ink cartridge, and the print cartridge is black ink box.Black and white printing portion is used for the branch of generation
Pay pattern in 2 D code to be printed, black and white of the generation print media for example on printing paper pays Quick Response Code.Pay Quick Response Code printing
After out, shelf or cashier are arranged at, for customer when needing payment, the payment printed by mobile device scan is two-dimentional
Code, so as to carry out currency payment.
The safety recognizing method of the payment Quick Response Code of the embodiment of the present invention, referring to Fig. 2, includes the following steps:(1)Storage institute
State fixed serious forgiveness;(2)Scan the black and white and pay Quick Response Code, obtain the payment image in 2 D code;(3)Identify the branch
Image in 2 D code is paid, if the payment image in 2 D code can not identify, is entered step(4);If the payment Quick Response Code
Image can identify that identification enters step(5);(4)Quick Response Code recognition failures information is provided, terminates identification process;(5)Obtain institute
State payment 2 D code information;(6)According to the level of error correction information of the payment Quick Response Code, judge that it sets whether serious forgiveness is equal to
The serious forgiveness of the fixation, if not equal to the serious forgiveness of the fixation, enters step(7);If equal to the fixation
Serious forgiveness, then enter step(8);(7)Prompting of the payment Quick Response Code for unsafe payment Quick Response Code is provided, terminates identification
Process;(8)Determine Quick Response Code payment information of the payment 2 D code information for safety.
The present invention pays the payment Quick Response Code that Quick Response Code print system prints, and can prevent businessman from paying in Quick Response Code
Characteristic image in embedded illegal payment Quick Response Code, replaces businessman using the illegal payment Quick Response Code and pays two dimension after being photographed
Code, caused by businessman's income situation about being stolen.The principle of the present invention is as follows, due to paying pattern in 2 D code and original two dimensional
The area ratio of symbol different zones in code image, less than fixed serious forgiveness, therefore the present invention pays quick response code printer printing
Paying Quick Response Code can be identified;But since the area accounting of characteristic image is more than the serious forgiveness of the fixation, if paid
It is fixed serious forgiveness comprising this feature image and serious forgiveness after characteristic image is photographed in Quick Response Code in other embedded Quick Response Codes
Other Quick Response Codes be can not be identified;Even if therefore criminal has stolen this feature image, this feature can not be also used
The false payment Quick Response Code of image generation.
The above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof, although with reference to above-described embodiment pair
The present invention is described in detail, those of ordinary skills in the art should understand that:Still can be to the specific of the present invention
Embodiment technical scheme is modified or replaced equivalently, and without departing from any modification of spirit and scope of the invention or equivalent substitution,
It should all cover among scope of the presently claimed invention.