CN106897908A - A kind of Method of printing of invoice, device and printer - Google Patents
A kind of Method of printing of invoice, device and printer Download PDFInfo
- Publication number
- CN106897908A CN106897908A CN201510956869.8A CN201510956869A CN106897908A CN 106897908 A CN106897908 A CN 106897908A CN 201510956869 A CN201510956869 A CN 201510956869A CN 106897908 A CN106897908 A CN 106897908A
- Authority
- CN
- China
- Prior art keywords
- invoice
- information
- picture
- printed
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/04—Billing or invoicing
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G5/00—Receipt-giving machines
Landscapes
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Development Economics (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Finance (AREA)
- General Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Character Input (AREA)
Abstract
The invention provides a kind of Method of printing of invoice, device and printer, when solving to print VAT invoice by prior art, efficiency of drawing a bill is low and is difficult to ensure that invoice material object provides the problem that the type information in rear its nominal value code, number and OSS is consistent.The present invention includes:Obtain the invoice information of printed invoice needed for user;Invoice information to printed invoice needed for user carries out optical character identification scan process, obtains one scan picture, and the invoice codes of printed invoice needed for user and invoice number information are included in scanned picture;Invoice codes and invoice number information are sent to OSS, judge whether invoice codes and invoice number information are consistent with predetermined type information, draw a result of determination by OSS;If it is determined that as a result showing that the invoice codes and invoice number information are consistent with predetermined type information, then invoice is printed, do not printed otherwise.
Description
Technical field
The present invention relates to business support technical field, particularly relate to a kind of Method of printing of invoice, device and beat
Print machine.
Background technology
After the monthly closing entry invoice of mobile communications industry changes increasing on one's own account, invoice complement function wouldn't be provided, it is desirable to invoice
The accuracy and uniqueness drawn a bill are greatly improved, while the offer channel of client month checkout phase invoice, by original
Four kinds --- in generation, beats, post, foreground prints, self-help print, die-offs as mainly by own service hall foreground
Printing is realized.Foreground printing invoice business rises suddenly and sharply 10-13 times, demand and the business clothes of the quick printed invoice of client
Contradiction between business ability is badly in need of solving.
(1), current main VAT invoice printing interaction flow
1st, reaching the user of service hall needs to be exchanged with foreground attendant, there is provided the moon of printing VAT invoice
Part phone number and user cipher.
2nd, foreground attendant uses business management system, after authentication password, the month of verification user's selection,
Consumption, VAT invoice information.
3rd, such as can print, be then put into papery value-added tax blank invoice, start print routine, finally provide invoice
To client.
According to above-mentioned printing flow, a process for printing invoice at least needs 90 seconds, easily causes service
There are a large amount of custom queueing waitings and dismisses ticket in the scene in the Room.
(2), the value-added tax blank invoice printing technique scheme of current main flow:
1st, VAT invoice printing technique scheme:
After needing to obtain type information (especially invoice number information) with OSS, start pin type
Printer prints value-added tax blank invoice.
2nd, impact printer is made up of " print machinery device " and " control drive circuit " two large divisions,
Three kinds of mechanical movements are had in print procedure:Printhead transverse movement, printing paper lengthwise movement and print needle
Firing pin is moved.These motions are all performed by software control drive system by some precision optical machineries, for beating
The information such as the invoice number of print not correct judgment.
3rd, the operation principle of impact printer:
Impact printer is, using mechanically and electrically road driving principle, print needle is clashed into colour band and print media,
And then dot matrix is printed, then character or figure constituted by dot matrix complete print out task.
Printer under on line state, print control order, the character print sent by interface PC
Or graphic printing order, then after the CPU of printer is processed, found and the character or figure from character library
First address (during forward direction printing) of corresponding picture coding or terminal column address (when reversely printing), such one
Find out with arranging and encode and be sent to print-head drive circuit, excitation printhead goes out impact printer print.The mistake
The type information of journey belongs to unidirectional delivery execution, and information judgement is not done, and system dependence is high.
4th, paper carrying is printed:
The paper feed mechanism of impact printer is generally gear paper carrying mode, and being put into for invoice relies primarily on manual putting
Enter.When printhead completes (no matter character how much) after a line is printed, paper advance mechanism will at once complete a line or many
Walking paper.
Time-consuming for the interaction flow of printing invoice paper carrying process needs printing in above-mentioned printing flow, causes to draw a bill
Efficiency is low, and invoice codes and number are easier to inconsistent with system side information, occur that printing invoice is invalid to be showed
As.
The content of the invention
It is an object of the invention to provide a kind of Method of printing of invoice, device and printer, it is used to solve to lead to
When crossing prior art printing VAT invoice, efficiency of drawing a bill is low and is difficult to ensure that invoice material object provides rear its nominal value
The problem that type information in code, number and OSS is consistent.
To achieve these goals, the invention provides a kind of Method of printing of invoice, including:
Obtain the invoice information of printed invoice needed for user;
Invoice information to printed invoice needed for the user carries out optical character identification OCR scan process, obtains
To one scan picture, the invoice codes and hair of printed invoice needed for the user are included in the scanned picture
Ticket number information;
The invoice codes and invoice number information are sent to OSS, by the operation support system
System judges whether the invoice codes and invoice number information are consistent with predetermined type information, draw a judgement knot
Really;
If the result of determination shows that the invoice codes and invoice number information are consistent with predetermined type information,
Then the invoice is printed, is not printed otherwise.
Wherein, the invoice information for obtaining printed invoice needed for user, including:
Obtain the month information of printed invoice needed for user;
Judge whether the corresponding invoice information of the month information is effective;
If the corresponding invoice information of the month information is effectively, the invoice letter of printed invoice needed for user is obtained
Breath.
Wherein, it is described whether effectively to judge the corresponding invoice information of the month information, including:
The month information is sent to the OSS, it is described by OSS checking
Month, whether the corresponding invoice information of information met the first predetermined condition and the second predetermined condition, and described first is pre-
Fixed condition has been printed for the corresponding invoice information of the month information;Second predetermined condition is the month
The corresponding invoice information of information is without corresponding consumption information;
Obtain the result that the OSS is returned;
If the result shows the month information, corresponding invoice information meets first predetermined condition
Or second predetermined condition, then judge that the corresponding invoice information of the month information is invalid, if described test
Card result shows that the corresponding invoice information of the month information does not meet first predetermined condition and do not meet institute
The second predetermined condition is stated, then judges that the corresponding invoice information of the month information is effective.
Wherein, the invoice information to printed invoice needed for the user carries out optical character identification OCR and sweeps
Treatment is retouched, one scan picture is obtained, including:
Invoice information to printed invoice needed for the user carries out OCR scan process, obtains picture to be verified,
Include the invoice codes and invoice number of printed invoice needed for the user in the picture to be verified;
Verify the definition of the picture to be verified whether more than predetermined threshold value;
If the definition of the picture to be verified is more than the predetermined threshold value, the code to be verified picture is made
It is the scanned picture.
Wherein, the invoice information to printed invoice needed for the user carries out OCR scan process, obtains
Picture to be verified, including:
Invoice codes in printed invoice needed for the user and invoice number region are carried out with binaryzation and corrosion is swollen
Swollen treatment, obtains the first picture;
By character recognition technology, line tilt correction treatment is entered to the word in first picture, obtain the
Two pictures;
Character segmentation treatment is carried out to the second picture, and according to character feature to carrying out Character segmentation treatment
Character afterwards is identified, and obtains the picture to be verified.
Present invention also offers a kind of printing equipment of invoice, including:
Acquisition module, the invoice information for obtaining printed invoice needed for user;
Scan module, optical character identification is carried out for the invoice information to printed invoice needed for the user
OCR scan process, obtains one scan picture, and printing hair needed for the user is included in the scanned picture
The invoice codes and invoice number information of ticket;
Sending module, for the invoice codes and invoice number information to be sent into OSS, by
The OSS judges whether the invoice codes and invoice number information are consistent with predetermined type information,
Draw a result of determination;
Processing module, if showing the invoice codes and invoice number information and making a reservation for for the result of determination
Type information is consistent, then the invoice is printed, and does not print otherwise.
Wherein, the acquisition module includes:
First acquisition submodule, the month information for obtaining printed invoice needed for user;
Whether the first judging submodule is effective for judging the corresponding invoice information of the month information;
Second acquisition submodule, if for the corresponding invoice information of the month information effectively, obtaining user
The invoice information of required printed invoice.
Wherein, first judging submodule includes:
Transmitting element, for the month information to be sent into the OSS, by the operation branch
Support system judges whether the corresponding invoice information of the month information meets the first predetermined condition and the second predetermined bar
Part, first predetermined condition has been printed for the corresponding invoice information of the month information;Described second makes a reservation for
Condition is the corresponding invoice information of the month information without corresponding consumption information;
Acquiring unit, for obtaining the result of determination that the OSS is returned;
Judging unit, if showing that the corresponding invoice information of the month information meets institute for the result of determination
The first predetermined condition or second predetermined condition are stated, then judges the corresponding invoice information of the month information
It is invalid, if the result of determination shows that the corresponding invoice information of the month information does not meet described first and makes a reservation for
Condition and second predetermined condition is not met, then judge that the corresponding invoice information of the month information is effective.
Wherein, the scan module includes:
Scanning submodule, OCR scan process is carried out for the invoice information to printed invoice needed for the user,
Picture to be verified is obtained, the invoice codes of printed invoice needed for the user are included in the picture to be verified
And invoice number;
Checking submodule, for verifying the definition of the picture to be verified whether more than predetermined threshold value;
Determination sub-module, if being more than the predetermined threshold value for the definition of the picture to be verified, by institute
Code to be verified picture is stated as the scanned picture.
Wherein, the scanning submodule includes:
First processing units, for invoice codes in printed invoice needed for the user and invoice number region
Binaryzation and corrosion expansion process are carried out, the first picture is obtained;
Second processing unit, for by character recognition technology, inclining to the word in first picture
Oblique correction process, obtains second picture;
3rd processing unit, for carrying out Character segmentation treatment to the second picture, and according to character feature
It is identified to carrying out the character after Character segmentation treatment, obtains the picture to be verified.
Embodiments of the invention additionally provide a kind of printer, including invoice as described above printing equipment.
The embodiment of the present invention has the advantages that:
The printing invoice method of the embodiment of the present invention, obtains the invoice information of printed invoice needed for user;To institute
Stating the invoice information of printed invoice needed for user carries out optical character identification OCR scan process, obtains one scan
Picture;If it is consistent with the predetermined type information that OSS determines the invoice information, to institute
State invoice to print, do not print otherwise.The embodiment of the present invention before printing invoice, core
Whether the invoice information for treating printed invoice is consistent with the predetermined type information stored in OSS, and
Invoice is printed again when consistent, it is ensured that the invoice information such as its nominal value code, number when invoice is drawn a bill
With the uniformity of predetermined type information.
Brief description of the drawings
Fig. 1 is the first workflow diagram of the Method of printing of the invoice of the embodiment of the present invention;
Fig. 2 is the recognition result schematic diagram of invoice information in the Method of printing of the invoice of the embodiment of the present invention;
Fig. 3 is the second workflow diagram of the Method of printing of the invoice of the embodiment of the present invention;
Fig. 4 is the structural representation of the printing equipment of the invoice of the embodiment of the present invention.
Specific embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with tool
Body embodiment and accompanying drawing are described in detail.
The embodiment provides a kind of Method of printing of invoice, device and printer, solve and pass through
During prior art printing VAT invoice, efficiency of drawing a bill is low and is difficult to ensure that invoice material object provides rear its nominal value generation
The problem that type information in code, number and OSS is consistent.
First embodiment:
As shown in figure 1, The embodiment provides a kind of Method of printing of invoice, including:
Step 11:Obtain the invoice information of printed invoice needed for user.
Here, printed invoice needed for user is VAT invoice, and user self-help input handset number is then right
Phone number enters Mobile state or static password authentication process, and after authentication process passes through, user's selection needs to beat
The VAT invoice corresponding month of print simultaneously returns to OSS, and the moon is verified in OSS
The invoice of part is not printed or the user is when having consumer record in the month, obtains printed invoice needed for user
Invoice information.
Step 12:Invoice information to printed invoice needed for user carries out optical character identification OCR scan process,
One scan picture is obtained, the invoice codes and invoice number of printed invoice needed for user are included in scanned picture
Information.
In a particular embodiment of the present invention, it is loaded with for parsing scanning invoice information picture in hardware components
Scanning head, the scanning head use OCR scanning recognition technologies, scan the hair in invoice information picture
Ticket code and invoice number, and return to OSS and verify the effective of the invoice codes and invoice number
Property.
Step 13:Invoice codes and invoice number information are sent to OSS, by operation support system
System judges whether the invoice codes and invoice number information are consistent with predetermined type information, draw a judgement knot
Really.
In a particular embodiment of the present invention, the reservation system type information for being stored in OSS is use
The information such as invoice codes, the invoice number of printed invoice needed for family.By the above-mentioned invoice codes and hair for scanning
Ticket number returns to OSS, and OSS verifies the invoice codes with invoice number and operation
After the predetermined type information of support system is consistent, VAT invoice printer starts printed invoice, after the completion of printing
Type information is presented to user.Such as because of network reason or system time-out, OSS transmission is not received
Confirmation, then retransmit OSS and confirm.
Step 14:If it is determined that as a result show that invoice codes and invoice number information are consistent with predetermined type information,
Then invoice is printed, is not printed otherwise.
The Method of printing of the invoice of the embodiment of the present invention, by OCR scanning recognition technologies, scans invoice letter
The invoice codes and invoice number in picture are ceased, and returns to OSS and verify the invoice codes and hair
The validity of ticket number, OSS verifies that the invoice codes are beaten with invoice number and OSS
After official seal breath is consistent, VAT invoice printer starts printed invoice.The embodiment of the present invention can be unattended
Terminal on printed using VAT invoice in batches, realize self-help print invoice, and the self-help print process with
Existing manual service is compared, and efficiency is greatly improved.
Further, above-mentioned steps 11 include:Obtain the month information of printed invoice needed for user;Judge institute
Whether effective state the month corresponding invoice information of information;If the corresponding invoice information of the month information is effectively,
Then obtain the invoice information of printed invoice needed for user.
Wherein, whether effectively the corresponding invoice information of the month information is judged, including:
The month information is sent to the OSS, judges described by the OSS
Month, whether the corresponding invoice information of information met the first predetermined condition and the second predetermined condition, and described first is pre-
Fixed condition has been printed for the corresponding invoice information of the month information;Second predetermined condition is the month
The corresponding invoice information of information is without corresponding consumption information;
Obtain the result of determination that the OSS is returned;
If the result of determination shows the month information, corresponding invoice information meets first predetermined condition
Or second predetermined condition, then judge that the corresponding invoice information of the month information is invalid, if described sentence
Determine result and show that the corresponding invoice information of the month information does not meet first predetermined condition and do not meet institute
The second predetermined condition is stated, then judges that the corresponding invoice information of the month information is effective.
In the embodiment of the present invention, after user's selection needs the corresponding month information of VAT invoice of printing,
The verification of data message is carried out to the month that user selects by OSS, if month selected by user does not have
There are consumer record or user to have printed the VAT invoice information in the month, then point out user's month
There is no data record or month invoice to provide, other months please be select to print, prevent duplicate printing invoice,
Unnecessary operating process is reduced, the efficiency of drawing a bill of invoice is substantially increased.
Further, above-mentioned steps 12 include:Invoice information to printed invoice needed for the user is carried out
OCR scan process, obtains picture to be verified, and printing needed for the user is included in the picture to be verified
The invoice codes and invoice number of invoice;Verify the definition of the picture to be verified whether more than predetermined threshold value;
If the definition of the picture to be verified is more than the predetermined threshold value, using the code to be verified picture as institute
State scanned picture.
Wherein, the invoice information to printed invoice needed for the user carries out OCR scan process, obtains to be tested
Card picture, including:
(1) binaryzation and corruption are carried out to invoice codes in printed invoice needed for the user and invoice number region
Erosion expansion process, obtains the first picture.
Specifically, carrying out background treatment to the colour picture that receipt printer shoots first, picture is set only to protect
Foreground information and background information are stayed, foreground information can be simply defined for black, background information are white,
Here it is the binarization operation of picture;Then picture is corroded and expansive working, corrosion process is using equal
Value filtering and high threshold filter the less region of area to the first subdivision image binaryzation, obtain larger area
Domain, then selects the seed point in each region;Then, binaryzation, corrosion and expansion are carried out to picture again
Operation, expansion process, to the first subdivision image binaryzation, retains the region containing seed point using Low threshold,
It is other to filter out.After through excessive erosion and expansive working, desired result is obtained.
(2) by character recognition technology, line tilt correction treatment is entered to the word in first picture, is obtained
To second picture.
Here, the randomness due to invoice paper delivery and abnormal paper delivery, therefore scanning shoot picture out can not
The generation for avoiding is inclined, and this is accomplished by software for discerning characters and carries out calibration.
(3) Character segmentation treatment is carried out to the second picture, and according to character feature to carrying out Character segmentation
Character after treatment is identified, and obtains the picture to be verified.
Specifically, identifying character according to character feature, the numerical character behind " code " word is judged, and export
Recognition result as shown in Figure 2.
The Method of printing of the invoice of the embodiment of the present invention, by OCR scanning recognition technologies, scans invoice letter
The invoice codes and invoice number in picture are ceased, and returns to OSS and verify the invoice codes and hair
The validity of ticket number, OSS verifies that the invoice codes are beaten with invoice number and OSS
After official seal breath is consistent, VAT invoice printer starts printed invoice.The embodiment of the present invention can be unattended
Terminal on printed using VAT invoice in batches, realize self-help print invoice, and the self-help print process with
Existing manual service is compared, and efficiency is greatly improved.
Second embodiment:
As shown in figure 3, the Method of printing of the invoice of the embodiment of the present invention, including:
Step 31:User input phone number.
Step 32:Either statically or dynamically password is authenticated user input.
Step 33:After authentication passes through, the month of user's selection printing monthly closing entry invoice.
Step 34:OSS carries out verification treatment to the invoice data information in month selected by user, obtains
Go out a verification result.
Step 35:If the verification result shows do not have consumer record month selected by user, user is pointed out to be somebody's turn to do
Month does not have data record.
Step 36:If the verification result shows to have provided invoice month selected by user, user's moon is pointed out
Part has provided invoice.
Step 37:If the verification result shows there is consumer record in month selected by user and do not provide invoice,
Start printer and be scanned treatment, obtain one scan picture, include that user is required to be beaten in the scanned picture
Print and distribute the invoice codes and invoice number of ticket.
Step 38:Invoice codes and invoice number in scanned picture are returned into OSS is carried out really
Recognize.
Step 39:OSS judges invoice codes and invoice number and system print in scanned picture
Whether information is consistent.
Step 310:If consistent, printed invoice.
The Method of printing of the invoice of the embodiment of the present invention, invoice is obtained from customer self-service, changes existing invoice
Printing flow, increased and recognize invoice number information and by the flow of OSS confirmation by OCR,
The printed invoice again after confirming that invoice information is errorless, that is, employ " OCR identifications+scanning parsing printing+invoice
The registered letter of validation of information " technology, it is ensured that before invoice material object is provided, ticket information and OSS side
Breath is consistent, and solves when self-help print VAT invoice is drawn a bill to nominal value code, number and system print
The coherence request of information problem high.
In addition, the Method of printing of the invoice of the embodiment of the present invention, may be used on including mobile communication, can also answer
With multiple fields such as ecommerce, postal service, the taxes, mobile communications industry self-help print value-added tax hair at home
There is good application prospect in ticket market.
3rd embodiment:
As shown in figure 4, embodiments of the invention additionally provide a kind of printing equipment of invoice, including:
Acquisition module 41, the invoice information for obtaining printed invoice needed for user;
Scan module 42, optical character identification is carried out for the invoice information to printed invoice needed for the user
OCR scan process, obtains one scan picture, and printing hair needed for the user is included in the scanned picture
The invoice codes and invoice number information of ticket;
Sending module 43, for the invoice codes and invoice number information to be sent into OSS,
By the OSS judge the invoice codes and invoice number information and predetermined type information whether one
Cause, draw a result of determination;
Processing module 44, if for the result of determination show the invoice codes and invoice number information with it is pre-
Determine type information consistent, then the invoice is printed, do not print otherwise.
Further, the acquisition module 41 includes:
First acquisition submodule 411, the month information for obtaining printed invoice needed for user;
Whether the first judging submodule 412 is effective for judging the corresponding invoice information of the month information;
Second acquisition submodule 413, if for the corresponding invoice information of the month information effectively, obtaining and using
The invoice information of printed invoice needed for family.
Further, first judging submodule 412 includes:
Transmitting element 4121, for the month information to be sent into the OSS, by the fortune
Battalion's support system judges whether the corresponding invoice information of the month information meets the first predetermined condition and second pre-
Fixed condition, first predetermined condition has been printed for the corresponding invoice information of the month information;Described second
Predetermined condition is the corresponding invoice information of the month information without corresponding consumption information;
Acquiring unit 4122, for obtaining the result of determination that the OSS is returned;
Judging unit 4123, if showing the corresponding invoice information symbol of the month information for the result of determination
First predetermined condition or second predetermined condition are closed, then judges the corresponding invoice of the month information
Information is invalid, if the result of determination shows the month information, corresponding invoice information does not meet described first
Predetermined condition and second predetermined condition is not met, then judge the corresponding invoice information of the month information
Effectively.
Further, the scan module 42 includes:
Scanning submodule 421, OCR scannings are carried out for the invoice information to printed invoice needed for the user
Treatment, obtains picture to be verified, and the hair of printed invoice needed for the user is included in the picture to be verified
Ticket code and invoice number;
Checking submodule 422, for verifying the definition of the picture to be verified whether more than predetermined threshold value;
Determination sub-module 423, if being more than the predetermined threshold value for the definition of the picture to be verified, will
The code to be verified picture is used as the scanned picture.
Further, the scanning submodule 421 includes:
First processing units 4211, for invoice codes and invoice number in printed invoice needed for the user
Region carries out binaryzation and corrosion expansion process, obtains the first picture;
Second processing unit 4212, for by character recognition technology, entering to the word in first picture
Line tilt correction treatment, obtains second picture;
3rd processing unit 4213, for carrying out Character segmentation treatment to the second picture, and according to character
Feature is identified to carrying out the character after Character segmentation treatment, obtains the picture to be verified.
It should be noted that the device is device corresponding with above method embodiment, above method embodiment
In all implementations suitable for the embodiment of the device, can also reach identical technique effect.
5th embodiment
The embodiment of the present invention additionally provides a kind of printer, it is characterised in that including invoice as described above
Printing equipment.
The Method of printing of the invoice of the embodiment of the present invention, device and printer, obtain printed invoice needed for user
Invoice information;Judge the invoice information is with the reservation system type information of storage in OSS
It is no consistent;If the invoice information is consistent with the predetermined type information, the invoice is carried out at printing
Reason, does not print otherwise.The embodiment of the present invention checks the hair of invoice to be printed before printing invoice
Whether ticket information is consistent with the predetermined type information stored in OSS, and again to invoice when consistent
Printed, it is ensured that the invoice information such as its nominal value code, number and system print information when invoice is drawn a bill
Uniformity.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in this hair
Within bright spirit and principle, any modification, equivalent substitution and improvements made etc. should be included in this hair
Within bright protection domain.
Claims (11)
1. a kind of Method of printing of invoice, it is characterised in that including:
Obtain the invoice information of printed invoice needed for user;
Invoice information to printed invoice needed for the user carries out optical character identification OCR scan process, obtains
To one scan picture, the invoice codes and hair of printed invoice needed for the user are included in the scanned picture
Ticket number information;
The invoice codes and invoice number information are sent to OSS, by the operation support system
System judges whether the invoice codes and invoice number information are consistent with predetermined type information, draw a judgement knot
Really;
If the result of determination shows that the invoice codes and invoice number information are consistent with predetermined type information,
Then the invoice is printed, is not printed otherwise.
2. the Method of printing of invoice according to claim 1, it is characterised in that the acquisition user institute
The invoice information of printed invoice is needed, including:
Obtain the month information of printed invoice needed for user;
Judge whether the corresponding invoice information of the month information is effective;
If the corresponding invoice information of the month information is effectively, the invoice letter of printed invoice needed for user is obtained
Breath.
3. the Method of printing of invoice according to claim 2, it is characterised in that the judgement moon
Whether the corresponding invoice information of part information is effective, including:
The month information is sent to the OSS, it is described by OSS checking
Month, whether the corresponding invoice information of information met the first predetermined condition and the second predetermined condition, and described first is pre-
Fixed condition has been printed for the corresponding invoice information of the month information;Second predetermined condition is the month
The corresponding invoice information of information is without corresponding consumption information;
Obtain the result that the OSS is returned;
If the result shows the month information, corresponding invoice information meets first predetermined condition
Or second predetermined condition, then judge that the corresponding invoice information of the month information is invalid, if described test
Card result shows that the corresponding invoice information of the month information does not meet first predetermined condition and do not meet institute
The second predetermined condition is stated, then judges that the corresponding invoice information of the month information is effective.
4. the Method of printing of invoice according to claim 1, it is characterised in that described to the user
The invoice information of required printed invoice carries out optical character identification OCR scan process, obtains one scan picture,
Including:
Invoice information to printed invoice needed for the user carries out OCR scan process, obtains picture to be verified,
Include the invoice codes and invoice number of printed invoice needed for the user in the picture to be verified;
Verify the definition of the picture to be verified whether more than predetermined threshold value;
If the definition of the picture to be verified is more than the predetermined threshold value, the code to be verified picture is made
It is the scanned picture.
5. the Method of printing of invoice according to claim 4, it is characterised in that described to the user
The invoice information of required printed invoice carries out OCR scan process, obtains picture to be verified, including:
Invoice codes in printed invoice needed for the user and invoice number region are carried out with binaryzation and corrosion is swollen
Swollen treatment, obtains the first picture;
By character recognition technology, line tilt correction treatment is entered to the word in first picture, obtain the
Two pictures;
Character segmentation treatment is carried out to the second picture, and according to character feature to carrying out Character segmentation treatment
Character afterwards is identified, and obtains the picture to be verified.
6. a kind of printing equipment of invoice, it is characterised in that including:
Acquisition module, the invoice information for obtaining printed invoice needed for user;
Scan module, optical character identification is carried out for the invoice information to printed invoice needed for the user
OCR scan process, obtains one scan picture, and printing hair needed for the user is included in the scanned picture
The invoice codes and invoice number information of ticket;
Sending module, for the invoice codes and invoice number information to be sent into OSS, by
The OSS judges whether the invoice codes and invoice number information are consistent with predetermined type information,
Draw a result of determination;
Processing module, if showing the invoice codes and invoice number information and making a reservation for for the result of determination
Type information is consistent, then the invoice is printed, and does not print otherwise.
7. the printing equipment of invoice according to claim 6, it is characterised in that the acquisition module bag
Include:
First acquisition submodule, the month information for obtaining printed invoice needed for user;
Whether the first judging submodule is effective for judging the corresponding invoice information of the month information;
Second acquisition submodule, if for the corresponding invoice information of the month information effectively, obtaining user
The invoice information of required printed invoice.
8. the printing equipment of invoice according to claim 7, it is characterised in that described first judges son
Module includes:
Transmitting element, for the month information to be sent into the OSS, by the operation branch
Support system judges whether the corresponding invoice information of the month information meets the first predetermined condition and the second predetermined bar
Part, first predetermined condition has been printed for the corresponding invoice information of the month information;Described second makes a reservation for
Condition is the corresponding invoice information of the month information without corresponding consumption information;
Acquiring unit, for obtaining the result of determination that the OSS is returned;
Judging unit, if showing that the corresponding invoice information of the month information meets institute for the result of determination
The first predetermined condition or second predetermined condition are stated, then judges the corresponding invoice information of the month information
It is invalid, if the result of determination shows that the corresponding invoice information of the month information does not meet described first and makes a reservation for
Condition and second predetermined condition is not met, then judge that the corresponding invoice information of the month information is effective.
9. the printing equipment of invoice according to claim 6, it is characterised in that the scan module bag
Include:
Scanning submodule, OCR scan process is carried out for the invoice information to printed invoice needed for the user,
Picture to be verified is obtained, the invoice codes of printed invoice needed for the user are included in the picture to be verified
And invoice number;
Checking submodule, for verifying the definition of the picture to be verified whether more than predetermined threshold value;
Determination sub-module, if being more than the predetermined threshold value for the definition of the picture to be verified, by institute
Code to be verified picture is stated as the scanned picture.
10. the printing equipment of invoice according to claim 9, it is characterised in that the scanning submodule
Block includes:
First processing units, for invoice codes in printed invoice needed for the user and invoice number region
Binaryzation and corrosion expansion process are carried out, the first picture is obtained;
Second processing unit, for by character recognition technology, inclining to the word in first picture
Oblique correction process, obtains second picture;
3rd processing unit, for carrying out Character segmentation treatment to the second picture, and according to character feature
It is identified to carrying out the character after Character segmentation treatment, obtains the picture to be verified.
11. a kind of printers, it is characterised in that including the invoice as described in claim any one of 6-10
Printing equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510956869.8A CN106897908A (en) | 2015-12-17 | 2015-12-17 | A kind of Method of printing of invoice, device and printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510956869.8A CN106897908A (en) | 2015-12-17 | 2015-12-17 | A kind of Method of printing of invoice, device and printer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106897908A true CN106897908A (en) | 2017-06-27 |
Family
ID=59188310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510956869.8A Pending CN106897908A (en) | 2015-12-17 | 2015-12-17 | A kind of Method of printing of invoice, device and printer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106897908A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109858980A (en) * | 2019-01-10 | 2019-06-07 | 上海启业信息技术有限公司 | Verification System and method are chosen based on the high-velocity scanning VAT invoice on open source OCR |
CN109960476A (en) * | 2017-12-26 | 2019-07-02 | 航天信息股份有限公司 | A kind of electronic invoice Method of printing, equipment and system |
CN111611783A (en) * | 2020-06-18 | 2020-09-01 | 山东旗帜信息有限公司 | Positioning and dividing method and device for graphic table |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102542508A (en) * | 2010-12-14 | 2012-07-04 | 李连海 | Policy issuing method and policy issuing system for self-service selling electronic insurance policy |
CN102750794A (en) * | 2012-07-10 | 2012-10-24 | 陕西海基业高科技实业有限公司 | Automatic note input system and application method thereof |
CN103390319A (en) * | 2013-07-10 | 2013-11-13 | 上海海基业高科技有限公司 | Bank bill automatic processor and application method thereof |
CN105015177A (en) * | 2015-07-21 | 2015-11-04 | 广州供电局有限公司 | Invoice printer and printing method thereof |
-
2015
- 2015-12-17 CN CN201510956869.8A patent/CN106897908A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102542508A (en) * | 2010-12-14 | 2012-07-04 | 李连海 | Policy issuing method and policy issuing system for self-service selling electronic insurance policy |
CN102750794A (en) * | 2012-07-10 | 2012-10-24 | 陕西海基业高科技实业有限公司 | Automatic note input system and application method thereof |
CN103390319A (en) * | 2013-07-10 | 2013-11-13 | 上海海基业高科技有限公司 | Bank bill automatic processor and application method thereof |
CN105015177A (en) * | 2015-07-21 | 2015-11-04 | 广州供电局有限公司 | Invoice printer and printing method thereof |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109960476A (en) * | 2017-12-26 | 2019-07-02 | 航天信息股份有限公司 | A kind of electronic invoice Method of printing, equipment and system |
CN109858980A (en) * | 2019-01-10 | 2019-06-07 | 上海启业信息技术有限公司 | Verification System and method are chosen based on the high-velocity scanning VAT invoice on open source OCR |
CN109858980B (en) * | 2019-01-10 | 2023-04-28 | 上海启业信息技术有限公司 | High-speed scanning value-added tax invoice checking and authenticating system and method based on open source OCR |
CN111611783A (en) * | 2020-06-18 | 2020-09-01 | 山东旗帜信息有限公司 | Positioning and dividing method and device for graphic table |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019223177A1 (en) | Electronic signature authentication method and system, computer device and storage medium | |
US7263205B2 (en) | System and method of generic symbol recognition and user authentication using a communication device with imaging capabilities | |
CN103942677B (en) | Transaction payment method and system, POS | |
EP1956544A2 (en) | Optical character reading machine having bill payment capability | |
WO2006136958A9 (en) | System and method of improving the legibility and applicability of document pictures using form based image enhancement | |
CN106599964A (en) | Two-dimensional code generation and verification method and device | |
CN103871159A (en) | Money-withdrawing system and method based on two-dimension code | |
CN107292655A (en) | Electronic coupons distribution method and system | |
CN106897908A (en) | A kind of Method of printing of invoice, device and printer | |
CN108629637A (en) | electronic invoice processing system and electronic invoice processing method | |
CN106600717A (en) | Method and system for online ticket checking based on client interface, and intelligent equipment | |
CN104599112A (en) | Information transmission method, device and system | |
CN110471634A (en) | Method of printing, device and readable storage medium storing program for executing | |
CN104253689A (en) | User identity module card generated dynamic password authentication method and system based on QR (quick response) code | |
CN104268743A (en) | Mobile banking payment system based on automatic generation of two-dimension code | |
CN106778290A (en) | A kind of application software verification method and system based on wechat platform | |
CN114997352A (en) | Anti-counterfeiting tracing code generation and verification method based on dot matrix | |
CN101488246A (en) | Check verification method, check verification apparatus and check verification system | |
CN103020814A (en) | Intelligent identity card information preprocessing system | |
CN110276608A (en) | Payment processing method, device, readable storage medium storing program for executing and computer equipment | |
CN106780781A (en) | A kind of method of user terminal ticket checking, system and smart machine | |
CN102004869B (en) | Authentication apparatus and authentication method | |
CN109615795A (en) | Self-help print method, apparatus, system, computer equipment and storage medium | |
CN107016428A (en) | The initial method and device of a kind of Quick Response Code | |
US20070136787A1 (en) | System and method for restricting and authorizing the use of software printing resources |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170627 |
|
RJ01 | Rejection of invention patent application after publication |