A kind of payment Quick Response Code generation system and method for commerce
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 conveyed 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 anti-fake, 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
It has promptly 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 by printer after Quick Response Code prints, and 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
It is provided for businessman and customer while merchandising convenient, also provides opportunity for law-breaker.According to reports,
A lot of offenders occur, the payment 2 D code information of oneself is substituted in the payment 2 D code information that businessman prints, so as to steal
User pays the case of debt.
In order to find that payment 2 D code information is replaced by offender in time, can be beaten in the prior art in payment 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
Whether payment 2 D code information is replaced.But payment image in 2 D code is all disclosed, 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 as to which businessman is difficult to find the safety problem of payment 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, the Quick Response Code printed can not all solve the above problems.
To solve the above-mentioned problems, earlier application provides a kind of payment Quick Response Code print system, by payment Quick Response Code
Middle setting area than being more than the characteristic image of serious forgiveness so that the payment image in 2 D code for the printing printed be difficult to by for
It changes, increases the security of Quick Response Code payment;But the payment Quick Response Code of printing can not judge it is two dimension in recognition failures
Code is replaced or other reasons.
The content of the invention
The present invention is as a further improvement, propose a kind of payment Quick Response Code generation system and method for commerce, Neng Gou
When paying Quick Response Code recognition failures, judge to pay whether Quick Response Code is replaced.
As one aspect of the present invention, a kind of payment Quick Response Code print system is provided, including:Input unit, for inputting
Payment information;Quick Response Code transcoding portion, for payment information to be changed into original two dimensional code pattern with fixed serious forgiveness;Characteristic pattern
Input unit, for input feature vector pattern;Characteristic pattern embedded division carries out the characteristic pattern according to the fixed serious forgiveness
It zooms in or out, the area accounting of the characteristic pattern of embedded original two dimensional code pattern is made to be slightly larger than the fixed serious forgiveness,
Pattern in 2 D code among being formed;Pattern in 2 D code correction portion, according to feature in image in 2 D code between original two dimensional code image pair
The partial dot of pattern is modified, and makes the payment pattern in 2 D code to be formed and the face of symbol different zones in original two dimensional code image
Product accounting specific threshold smaller than the fixed serious forgiveness;Printing portion, for the payment pattern in 2 D code of generation to be printed,
Generate the payment Quick Response Code on print media.
As another aspect of the present invention, the payment Quick Response Code of above-mentioned payment Quick Response Code print system printing is provided
Method for secure transactions, including:Following steps:(1)Store the fixed serious forgiveness;(2)The payment Quick Response Code is scanned, is obtained
The payment image in 2 D code;(3)The payment image in 2 D code is identified, if the payment image in 2 D code can not be known
Not, enter step(4);If the payment image in 2 D code can identify that identification enters step(5);(4)Obtain the payment
Image in 2 D code format information area image;(4.1)It identifies the payment image in 2 D code format information area image, obtains branch
Pay image in 2 D code format information;(4.2)Judge whether level of error correction is equal to institute in the payment image in 2 D code format information
Fixed serious forgiveness is stated, if equal to the fixed serious forgiveness, then provide Quick Response Code recognition failures information, terminates identification process;
If not equal to the fixed serious forgiveness, prompting of the payment Quick Response Code for unsafe payment Quick Response Code is provided, is terminated
Identification process;(5)Obtain the payment 2 D code information;(6)According to the level of error correction information of the payment Quick Response Code, it is judged
It sets whether serious forgiveness is equal to the fixed serious forgiveness, if not equal to the fixed serious forgiveness, enters step(7);
If equal to the fixed serious forgiveness, then enter step(8);(7)The payment Quick Response Code is provided as unsafe payment two
The prompting of code is tieed up, terminates identification process;(8)Determine Quick Response Code payment information of the payment 2 D code information for safety;(9)Root
It is paid according to the payment 2 D code information.
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 of the printing payment Quick Response Code of present invention payment Quick Response Code print system.
Specific embodiment
In order to illustrate more clearly of technical scheme, embodiment will be used simply to be situated between the present invention below
It continues, 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
It says, 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 printing portion.
For input unit for inputting the payment information of payment Quick Response Code, which can be the payment of such as payment platform
Network address.Can 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 being changed into payment information such as Fig. 1 with fixed serious forgiveness(a)Shown in original two dimensional
Code pattern.It can use the coding rules such as conventional Quick Response Code coding rule such as QR, Data Matrix, PDF417 that will pay
Information dresses up original two dimensional code image.Fixed serious forgiveness can be such as 7%, 15% or higher.In embodiment below,
With 15% fixation serious forgiveness as an example.Original two dimensional code image can be black and white, dark and light color can also be used to mix
The color 2 D code of conjunction.
Characteristic pattern input unit, for input feature vector pattern, characteristic image can be merchant identification, trade mark, portrait, accord with
Number, landscape etc..Characteristic pattern is for being positioned in image in 2 D code, so as to print Quick Response Code when being replaced by criminal, business
Family can find in time.Characteristic image can be black and white or colored, wherein can by after its binaryzation, using with it is original
The identical color of image in 2 D code is set.
Characteristic pattern is amplified by characteristic image embedded division according to the fixed serious forgiveness 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 made to be more than the fixed serious forgiveness, such as can
So that the area accounting of characteristic pattern is higher by 2%~5% than the fixed serious forgiveness.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 intermediate pattern in 2 D code, embedded location can be payment 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
With the area accountings of symbol different zones in original two dimensional code image specific threshold smaller than the fixed serious forgiveness, 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, is less than fixed serious forgiveness 15%, so that formed
Payment image in 2 D code can be identified.
Printing portion, including printer ink cartridge, the print cartridge is black ink box or colour ink box.Printing portion is used to generate
Payment pattern in 2 D code printed, generate print media such as printing paper on payment 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)The payment Quick Response Code is scanned, obtains the payment image in 2 D code;(3)Identify the payment two
Code image is tieed up, if the payment image in 2 D code can not identify, is entered step(4);If the payment image in 2 D code
It can identify, identification enters step(5);(4)Obtain the payment image in 2 D code format information(Format
Information)Area image;(4.1)It identifies the payment image in 2 D code format information area image, obtains payment two dimension
Code picture format information;(4.2)Judge level of error correction in the payment image in 2 D code format information(Error Correction
Level)Whether the fixed serious forgiveness is equal to, if equal to the fixed serious forgiveness, then provide Quick Response Code recognition failures letter
Breath terminates identification process;If not equal to the fixed serious forgiveness, the payment Quick Response Code is provided as unsafe payment two
The prompting of code is tieed up, terminates identification process;(5)Obtain the payment 2 D code information;(6)According to the error correction of the payment Quick Response Code
Class information judges that it sets whether serious forgiveness is equal to the fixed serious forgiveness, if being not equal to the fixed serious forgiveness,
Then enter step(7);If equal to the fixed serious forgiveness, then enter step(8);(7)Providing the payment Quick Response Code is
The prompting of unsafe payment Quick Response Code, terminates identification process;(8)Determine Quick Response Code of the payment 2 D code information for safety
Payment information.
The payment Quick Response Code that present invention payment Quick Response Code print system prints, when being traded, if Quick Response Code
Image can not identify, the format information region in image in 2 D code further be obtained, for the correction stage in format information region
Do not judged, so that it is determined that this can not identify whether payment Quick Response Code is replaced.
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:It still can be to the specific of the present invention
Embodiment is modified or replaced equivalently, and without departing from any modification of spirit and scope of the invention or equivalent substitution,
It should be covered by the scope of the claims of the present invention.