CN108242050A - The processing method and processing device of electronic invoice - Google Patents
The processing method and processing device of electronic invoice Download PDFInfo
- Publication number
- CN108242050A CN108242050A CN201611223548.8A CN201611223548A CN108242050A CN 108242050 A CN108242050 A CN 108242050A CN 201611223548 A CN201611223548 A CN 201611223548A CN 108242050 A CN108242050 A CN 108242050A
- Authority
- CN
- China
- Prior art keywords
- image
- electronic invoice
- sharpening
- corresponding image
- processing
- 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
- 238000012545 processing Methods 0.000 title claims abstract description 66
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 238000006243 chemical reaction Methods 0.000 claims description 38
- 238000000034 method Methods 0.000 claims description 21
- 238000007639 printing Methods 0.000 claims description 15
- 230000015654 memory Effects 0.000 description 14
- 230000006870 function Effects 0.000 description 9
- 230000005611 electricity Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000003707 image sharpening Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G06T5/73—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30176—Document
Abstract
The embodiment of the present application provides a kind of processing method and processing device of electronic invoice.The electronic invoice stored in a raw according to the electronic invoice stored with picture format is converted to by the embodiment of the present application, to generate the corresponding image of the electronic invoice;Sharpening processing is carried out to the corresponding image of the electronic invoice, obtain sharpening treated the corresponding image of the electronic invoice, therefore, the embodiment of the present application can be converted by the form of electronic invoice, and sharpening processing is carried out to the corresponding image of the electronic invoice of acquisition, to improve the clarity of electronic invoice correspondence image.
Description
Technical field
The invention relates to electronic invoice technical field more particularly to the processing methods and dress of a kind of electronic invoice
It puts.
Background technology
Value-added tax electronics common invoice (hereinafter referred to as electronic invoice) refers to open by VAT invoice system upgrade version
Tool uploads, and the electronics value-added tax common invoice inquired, downloaded by electronic invoice service platform is different from traditional paper invoice,
It is in original encryption anti-counterfeiting measure, is used using being downloaded after digital certificate progress Electronic Signature for purchaser.As electronics is sent out
Ticket is widely popularized, and electronic invoice has been deep into the every nook and cranny of people's life.
Electronic invoice is important documents of the expense handler during expense reimbursement, during expense reimbursement, expense
Handler needs to print electronic invoice, checks and achieves for Finance Department.The clarity for printing invoice is identification electricity
The whether effective key factor of sub- invoice if electronic invoice is unintelligible, can give the content of checking of invoice, differentiate invoice
The true and false increase difficulty.For example, in the corresponding image of printing electronic invoice, often there is word (such as invoice lift on invoice
Head, project name, the amount of money), the phenomenon that seal is fuzzy, this to checking of invoice content, differentiate that the true and false of invoice increases difficulty.
Therefore, the technology for how improving the clarity of electronic invoice correspondence image as urgent need to resolve in the prior art is asked
Topic.
Invention content
In view of the above problems, the application provides a kind of processing method and processing device of electronic invoice, overcome the above problem or
It solves the above problems at least partly.
The embodiment of the present application provides a kind of processing method of electronic invoice, including:
The electronic invoice stored in a raw is converted to the electronic invoice stored with picture format, to generate the electricity
The corresponding image of sub- invoice;
Sharpening processing is carried out to the corresponding image of the electronic invoice, obtains sharpening treated the electronic invoice
Corresponding image.
Optionally, in one embodiment of the application, the unprocessed form is portable document format.
Optionally, in one embodiment of the application, described image form is any one in jpg, bmp, png, tif.
It is optionally, described that sharpening processing is carried out to the corresponding image of the electronic invoice in one embodiment of the application,
Obtain sharpening treated that the corresponding image of the electronic invoice includes:
If the corresponding image of the electronic invoice is coloured image, gray proces are carried out to coloured image, obtain gray scale
Image;
Binary conversion treatment is carried out to the gray level image, the image after binary conversion treatment is obtained, by the binary conversion treatment
Image afterwards is as sharpening treated image.
It is optionally, described that sharpening processing is carried out to the corresponding image of the electronic invoice in one embodiment of the application,
Obtain sharpening treated that the corresponding image of the electronic invoice includes:
If the corresponding image of the electronic invoice is coloured image, gray proces are carried out to coloured image, obtain gray scale
Image;
Local auto-adaptive threshold values processing is carried out to the greyscale image data, the figure that the processing of local auto-adaptive threshold values is obtained
As the image after binary conversion treatment.
It is optionally, described that sharpening processing is carried out to the corresponding image of the electronic invoice in one embodiment of the application,
Obtain sharpening treated that the corresponding image of the electronic invoice includes:
The gradient information of pixel in the corresponding image of the electronic invoice is obtained, need are determined according to the gradient information
Carry out the pixel of sharpening processing;
The pixel for carrying out sharpening processing is needed to carry out binary conversion treatment by described.
Optionally, it in one embodiment of the application, is further included after acquisition sharpening treated the image:Printing obtains
Sharpening treated the corresponding image of the electronic invoice.
A kind of processing unit for printing electronic invoice, including:
Image conversion module, for the electronic invoice stored in a raw to be converted to the electronics stored with picture format
Invoice, to generate the corresponding image of the electronic invoice;
Sharpening processing module for carrying out sharpening processing to the corresponding image of the electronic invoice, obtains sharpening
Treated the corresponding image of the electronic invoice.
Optionally, in one embodiment of the application, the sharpening processing module includes:
Gray proces unit if being coloured image for the corresponding image of the electronic invoice, carries out coloured image
Gray proces obtain gray level image;
Binarization unit for carrying out binary conversion treatment to the gray level image, obtains the image after binary conversion treatment, will
Image after the binary conversion treatment is as sharpening treated image.
Optionally, in one embodiment of the application, described device further includes:
Print module obtains sharpening treated the corresponding image of the electronic invoice for printing.
By above technical scheme as it can be seen that the embodiment of the present application according to by the electronic invoice stored in a raw be converted to
The electronic invoice of picture format storage, to generate the corresponding image of the electronic invoice;Image corresponding to the electronic invoice
Sharpening processing is carried out, obtains sharpening treated the corresponding image of the electronic invoice, therefore, the embodiment of the present application can lead to
The form for crossing electronic invoice is converted, and carries out sharpening processing to the corresponding image of the electronic invoice of acquisition, to improve electricity
The clarity of sub- invoice correspondence image.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or it will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Apply for some embodiments described in embodiment, for those of ordinary skill in the art, can also be obtained according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of flow chart of an embodiment of electronic invoice processing method of the application;
Fig. 2 is a kind of flow chart of another embodiment of electronic invoice processing method of the application;
Fig. 3 is a kind of flow chart of another embodiment of electronic invoice processing method of the application;
Fig. 4 is a kind of flow chart of another embodiment of electronic invoice processing method of the application;
Fig. 5 is a kind of flow chart of another embodiment of electronic invoice processing method of the application;
Fig. 6 is a kind of structure chart of an embodiment of electronic invoice processing unit of the application;
Fig. 7 is the structure chart of sharpening processing module in a kind of electronic invoice processing unit of the application;
Fig. 8 is a kind of structure chart of another embodiment of electronic invoice processing unit of the application;
Fig. 9 is a kind of hardware architecture diagram for the electronic equipment for performing electronic invoice processing method of the application.
Specific embodiment
The embodiment of the present application can be converted by the form of electronic invoice, and to the corresponding image of the electronic invoice of acquisition
Sharpening processing is carried out, to improve the clarity of the corresponding image of electronic invoice.
Certainly, implement any technical solution of the embodiment of the present application do not need necessarily to reach simultaneously more than it is all excellent
Point.
In order to which those skilled in the art is made to more fully understand the technical solution in the embodiment of the present application, below in conjunction with the application
The technical solution in the embodiment of the present application is clearly and completely described in attached drawing in embodiment, it is clear that described reality
It is only the embodiment of the present application part of the embodiment to apply example, instead of all the embodiments.Based on the implementation in the embodiment of the present application
Example, those of ordinary skill in the art's all other embodiments obtained should all belong to the range that the embodiment of the present application is protected.
Further illustrate that the embodiment of the present application implements with reference to the embodiment of the present application attached drawing.
Referring to Fig. 1, in the application one in the specific implementation, the method for the database migration includes:
S1, the electronic invoice stored in a raw is converted to the electronic invoice stored with picture format, to generate
State the corresponding image of electronic invoice.
In the present embodiment, the form of the initial data can be Portable Document (PDF, Portable Document
Format) form.
In the present embodiment, described image form can be any one in jpg, bmp, png, tif.
The electronic invoice stored in a raw in the present embodiment can be the PDF format being locally stored in computer
File.
Specifically, by taking Java language as an example, getPageImage methods can be used to turn the electronic invoice stored up with PDF format
It is changed to the electronic invoice stored with picture format.
S2, sharpening processing is carried out to the corresponding image of the electronic invoice, obtains sharpening treated the electronics
The corresponding image of invoice.
In the present embodiment, the sharpening processing can be Edge contrast, by taking java language as an example, can introduce
Opencv.jar class libraries, using filter2D functions by image sharpening.
Specifically, after sharpening treated image is obtained, according to the image of acquisition, print out task is created, and can set
Print attribution is put, finally performs print out task, completes the printing of electronic invoice.
As shown in Fig. 2, in another embodiment provided in the application, the step S2 includes:
If S21, the corresponding image of the electronic invoice are coloured image, gray proces are carried out to coloured image, are obtained
Gray level image;
In the present embodiment, the color value (RGB) of each pixel in image can be obtained, and by analyzing color value,
Judge whether described image is coloured image.I.e. if tri- value all sames of R, G, B, described image is gray level image, otherwise,
Described image is coloured image.
In the present embodiment, it can be calculated by tri- values of R, G, B corresponding to pixel, it is corresponding to obtain pixel
Gray value, for example, the average value of tri- values of R, G, B can be calculated, using average value as the corresponding gray value of pixel;For another example
Tri- values of R, G, B can be weighted with processing, obtain the corresponding gray value of pixel.Current pixel point is set as obtaining
Gray value, then can obtain gray level image.
S22, binary conversion treatment is carried out to the gray level image, the image after binary conversion treatment is obtained, by the binaryzation
Treated image is as sharpening treated image.
In the present embodiment, binary conversion treatment specifically may include following steps:Each pixel in gray level image is traversed,
Judge whether the gray value of each pixel is more than binary-state threshold, if so, the gray value of current pixel point is set as 255
(maximum value of gray value, be shown as white), otherwise, the gray value of current pixel point is set as 0 (minimum value of gray value,
It is shown as black).Binary conversion treatment can make image show significantly only black and white visual effect, make image apparent.
Specifically, the binary-state threshold can be preset threshold value, specifically may be configured as 200.
As shown in figure 3, in another embodiment provided in the application, the step S2 includes:
If S21 ', the corresponding image of the electronic invoice are coloured image, gray proces are carried out to coloured image, are obtained
Gray level image;
S22 ', local auto-adaptive threshold values processing is carried out to the greyscale image data, local auto-adaptive threshold values is handled or
Image as the image after binary conversion treatment.
In this step, local auto-adaptive threshold value is to determine the pixel according to the distribution of pixel adjacent area pixel value
The binary-state threshold of point, feature are that the binary-state threshold of each pixel position is variable.Specifically, adjacent area picture
Element value is higher, then binary-state threshold is higher, and adjacent area pixel value is relatively low, then binary-state threshold is relatively low.
By taking Java language as an example, opencv.jar class libraries can be introduced, uses figure described in adaptiveThreshold function pairs
As carrying out local auto-adaptive threshold values processing.
As shown in figure 4, in another embodiment provided in the application, the step S2 includes:
S21 ", the gradient information for obtaining pixel in the gray level image, according to the gradient information determine to need into
The pixel of row sharpening processing;
In the present embodiment, the gradient information may include gradient magnitude and gradient direction, can be by gradient according to gradient direction
It is divided into transverse gradients and longitudinal gradient.Specifically, the laterally color of the color value of next neighbor pixel and current pixel point can be obtained
The difference of value, using the difference as the transverse gradients of current pixel point;Can obtain the color value of the next neighbor pixel in longitudinal direction with
The difference of the color value of current pixel point, using the difference as longitudinal gradient of current pixel point.
Specifically, transverse gradients that can be according to current pixel point and longitudinal gradient obtain the average gradient of current pixel point.
In the present embodiment, can be judged whether to need to carry out sharpening processing according to the average gradient of pixel, average gradient is bigger, table
On the contrary bright image is more clear, then does not need to sharpening processing, then show that image is fuzzyyer, needs progress binary conversion treatment.Specifically
Ground if average gradient is less than predetermined threshold value, judges that current pixel point needs to carry out binary conversion treatment, on the contrary then judgement is currently
Pixel does not need to carry out binary conversion treatment.
S22 ", the pixel for carrying out sharpening processing is needed to carry out binary conversion treatment by described.
In the present embodiment, traversal needs to carry out the pixel of binary conversion treatment, and binary conversion treatment is carried out to the pixel.
The mode of binary conversion treatment is similar in the mode embodiment corresponding with Fig. 2 of specific binary conversion treatment, and details are not described herein.
Referring to Fig. 5, in the application one in the specific implementation, the method includes:
S1, the electronic invoice stored in a raw is converted to the electronic invoice stored with picture format, to generate
State the corresponding image of electronic invoice.
S2, sharpening processing is carried out to the corresponding image of the electronic invoice, obtains sharpening treated the electronics
The corresponding image of invoice.
S3, printing obtain sharpening treated the corresponding image of the electronic invoice.
It specifically, in this step, can treated that the corresponding image of the electronic invoice is loaded into image by sharpening
It shows in browsing software, is printed by picture browsing software.
The application provides another printing and obtains sharpening treated the corresponding image method of the electronic invoice:With
For Java language, PrintService methods to obtain addressable printer in LAN, and can be used use
DocPrintJob methods create print out task, perform print out task.
In the present embodiment, step S1, S2 is repeated no more in detail respectively similar to step S1, S2 in above-mentioned Fig. 2 embodiments.
The present embodiment can to described image carry out sharpening processing after, between by sharpening processing electronic invoice correspond to
Image printing, reduce the manual operation of user, improve convenience.
Referring to Fig. 6, in the application one in the specific implementation, the processing of the electronic invoice includes:
Image conversion module 60, for the electronic invoice stored in a raw to be converted to the electricity stored with picture format
Sub- invoice, to generate the corresponding image of the electronic invoice.
In the present embodiment, the form of the initial data can be Portable Document (PDF, Portable Document
Format) form.
In the present embodiment, described image form can be any one in jpg, bmp, png, tif.
The electronic invoice stored in a raw in the present embodiment can be the PDF format being locally stored in computer
File.
Specifically, by taking Java language as an example, getPageImage methods can be used to turn the electronic invoice stored up with PDF format
It is changed to the electronic invoice stored with picture format.
Sharpening processing module 70 for carrying out sharpening processing to described image, obtains sharpening treated image,
Treated to print sharpening image.
In the present embodiment, the sharpening processing can be Edge contrast, by taking java language as an example, can introduce
Opencv.jar class libraries, using filter2D functions by image sharpening.
Specifically, after sharpening treated image is obtained, according to the image of acquisition, print out task is created, and can set
Print attribution is put, finally performs print out task, completes the printing of electronic invoice.
As shown in fig. 7, in another embodiment provided in the application, the sharpening processing module 70 includes:
Gray proces unit 71, if for the corresponding image of the electronic invoice be coloured image, to coloured image into
Row gray proces, obtain gray level image;
In the present embodiment, the color value (RGB) of each pixel in image can be obtained, and by analyzing color value,
Judge whether described image is coloured image.I.e. if tri- value all sames of R, G, B, described image is gray level image, otherwise,
Described image is coloured image.
In the present embodiment, it can be calculated by tri- values of R, G, B corresponding to pixel, it is corresponding to obtain pixel
Gray value, for example, the average value of tri- values of R, G, B can be calculated, using average value as the corresponding gray value of pixel;For another example
Tri- values of R, G, B are weighted with processing, obtains the corresponding gray value of pixel.Current pixel point is set as what is obtained
Gray value can then obtain gray level image.
Binarization unit 72 for carrying out binary conversion treatment to the gray level image, obtains the image after binary conversion treatment,
Using the image after the binary conversion treatment as sharpening treated image.
In the present embodiment, binarization unit 72 is particularly used in:Each pixel in gray level image is traversed, is judged every
Whether the gray value of a pixel is more than binary-state threshold, if so, the gray value of current pixel point is set as 255 (gray values
Maximum value, be shown as white), otherwise, the gray value of current pixel point is set as 0, and (minimum value of gray value is shown as black
Color).Binary conversion treatment can make image show significantly only black and white visual effect, make image apparent.
Specifically, the binary-state threshold can be preset threshold value, specifically may be configured as 200.
Referring to Fig. 8, in the application one in the specific implementation, described device includes:
Image conversion module 60, for the electronic invoice stored in a raw to be converted to the electricity stored with picture format
Sub- invoice, to generate the corresponding image of the electronic invoice.
Sharpening processing module 70 for carrying out sharpening processing to described image, obtains sharpening treated image,
Treated to print sharpening image.
Print module 80 obtains sharpening treated the corresponding image of the electronic invoice for printing.
Specifically, print module 80 can treated that the corresponding image of the electronic invoice is loaded into image is clear by sharpening
It lookes in software and shows, printed by picture browsing software.
The application provides another printing and obtains sharpening treated the corresponding image method of the electronic invoice:With
For Java language, PrintService methods to obtain addressable printer in LAN, and can be used use
DocPrintJob methods create print out task, perform print out task.
In the present embodiment, image conversion module 60, sharpening processing module 70 are respectively similar to the figure in above-mentioned Fig. 6 embodiments
As modular converter 60, sharpening processing module 70, repeat no more in detail.
The present embodiment can to described image carry out sharpening processing after, between by sharpening processing electronic invoice correspond to
Image printing, reduce the manual operation of user, improve convenience.
Fig. 9 is the hardware architecture diagram of some electronic equipments of the processing method that the application performs electronic invoice.According to
Shown in Fig. 9, which includes:
One or more processors 91 and memory 92, in Fig. 9 by taking a processor 91 as an example.
The equipment for performing the processing method of electronic invoice can also include:Input unit 93 and output device 93.
Processor 91, memory 92, input unit 93 can be connected with output device 94 by bus or other modes,
In Fig. 9 for being connected by bus.
Memory 92 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storing non-volatile software journey
Sequence, non-volatile computer executable program and module, as the processing method of the electronic invoice in the embodiment of the present application corresponds to
Program instruction/module.Processor 91 is stored in non-volatile software program, instruction and mould in memory 92 by operation
Block, various function application and data processing so as to execute server realize electronic invoice in above method embodiment
Processing method.
Memory 92 can include storing program area and storage data field, wherein, storing program area can storage program area,
At least one required application program of function;Storage data field can be stored to be created according to the using for processing unit of electronic invoice
Data built etc..In addition, memory 92 can include high-speed random access memory 92, nonvolatile memory can also be included
92, for example, at least a magnetic disk storage 92, flush memory device or other non-volatile solid state memories 92.In some realities
It applies in example, memory 92 is optional including relative to the remotely located memory 92 of processor 91, these remote memories 92 can be with
Pass through the device of the processing of network connection to electronic invoice.The example of above-mentioned network includes but not limited to internet, enterprises
Net, LAN, mobile radio communication and combinations thereof.
Input unit 93 can receive the number of input or the use of character information and the processing unit of generation and electronic invoice
The key signals input that family is set and function control is related.Input unit 93 may include pressing the equipment such as module.
One or more of modules are stored in the memory 92, when by one or more of processors 91
During execution, the processing method of the electronic invoice in above-mentioned any means embodiment is performed.
The said goods can perform the method that the embodiment of the present application is provided, and has the corresponding function module of execution method and has
Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that have mobile communication function, and to provide speech, data
It communicates as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the scope of personal computer, there is calculating and processing work(
Can, generally also have mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play multimedia content.The kind equipment includes:Audio,
Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server include processor 91, hard disk, memory, system
Bus etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other have the function of the electronic device of data interaction.
The apparatus embodiments described above are merely exemplary, wherein the module illustrated as separating component can
To be or may not be physically separate, the component shown as module may or may not be physics mould
Block, you can be located at a place or can also be distributed on multiple network modules.It can be selected according to the actual needs
In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness
Labour in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
Technical solution is stated substantially in other words to embody the part that the prior art contributes in the form of software product, it should
Computer software product can store in a computer-readable storage medium, the computer readable recording medium storing program for performing include for
The readable form storage of computer (such as computer) or any mechanism of transmission information.For example, machine readable media is included only
Read memory (ROM), random access memory (RAM), magnetic disk storage medium, optical storage media, flash medium, electricity, light,
Sound or the transmitting signal of other forms (for example, carrier wave, infrared signal, digital signal etc.) etc., which includes
Some instructions are used so that computer equipment (can be personal computer, server or the network equipment etc.) perform it is each
Method described in certain parts of a embodiment or embodiment.
Finally it should be noted that:Above example is only to illustrate the technical solution of the embodiment of the present application rather than it is limited
System;Although the application is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its
Still it can modify to the technical solution recorded in foregoing embodiments or which part technical characteristic is equal
It replaces;And these modifications or replacement, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution
Spirit and scope.
Claims (10)
1. a kind of processing method of electronic invoice, which is characterized in that including:
The electronic invoice stored in a raw is converted to the electronic invoice stored with picture format, is sent out with generating the electronics
The corresponding image of ticket;
Sharpening processing is carried out to the corresponding image of the electronic invoice, obtains sharpening treated that the electronic invoice corresponds to
Image.
2. according to the method described in claim 1, it is characterized in that, the unprocessed form is portable document format.
3. according to the method described in claim 1, it is characterized in that, described image form is appointing in jpg, bmp, png, tif
Meaning is a kind of.
4. according to the method described in claim 1, it is characterized in that, described carry out clearly the corresponding image of the electronic invoice
Change is handled, and obtains sharpening treated that the corresponding image of the electronic invoice includes:
If the corresponding image of the electronic invoice is coloured image, gray proces are carried out to coloured image, obtain gray level image;
Binary conversion treatment is carried out to the gray level image, the image after binary conversion treatment is obtained, after the binary conversion treatment
Image is as sharpening treated image.
5. according to the method described in claim 1, it is characterized in that, described carry out clearly the corresponding image of the electronic invoice
Change is handled, and obtains sharpening treated that the corresponding image of the electronic invoice includes:
If the corresponding image of the electronic invoice is coloured image, gray proces are carried out to coloured image, obtain gray level image;
Local auto-adaptive threshold values processing is carried out to the greyscale image data, the image that the processing of local auto-adaptive threshold values obtains is made
For the image after binary conversion treatment.
6. according to the method described in claim 1, it is characterized in that, described carry out clearly the corresponding image of the electronic invoice
Change is handled, and obtains sharpening treated that the corresponding image of the electronic invoice includes:
Obtain the gradient information of pixel in the corresponding image of the electronic invoice, according to the gradient information determine to need into
The pixel of row sharpening processing;
The pixel for carrying out sharpening processing is needed to carry out binary conversion treatment by described.
7. either method according to claim 1, which is characterized in that after acquisition sharpening treated the image also
Including:Printing obtains sharpening treated the corresponding image of the electronic invoice.
8. a kind of processing unit of electronic invoice, which is characterized in that including:
Image conversion module is sent out for being converted to the electronic invoice stored in a raw with the electronics that picture format stores
Ticket, to generate the corresponding image of the electronic invoice;
Sharpening processing module for carrying out sharpening processing to the corresponding image of the electronic invoice, obtains sharpening processing
The corresponding image of the electronic invoice afterwards.
9. device according to claim 8, which is characterized in that the sharpening processing module includes:
If being coloured image for the corresponding image of the electronic invoice, gray scale is carried out to coloured image for gray proces unit
Processing, obtains gray level image;
Binarization unit for carrying out binary conversion treatment to the gray level image, obtains the image after binary conversion treatment, by described in
Image after binary conversion treatment is as sharpening treated image.
10. device according to claim 8, which is characterized in that described device further includes:
Print module obtains sharpening treated the corresponding image of the electronic invoice for printing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611223548.8A CN108242050A (en) | 2016-12-27 | 2016-12-27 | The processing method and processing device of electronic invoice |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611223548.8A CN108242050A (en) | 2016-12-27 | 2016-12-27 | The processing method and processing device of electronic invoice |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108242050A true CN108242050A (en) | 2018-07-03 |
Family
ID=62701354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611223548.8A Pending CN108242050A (en) | 2016-12-27 | 2016-12-27 | The processing method and processing device of electronic invoice |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108242050A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110989947A (en) * | 2020-01-02 | 2020-04-10 | 大连中盈科技股份有限公司 | Electronic invoice printer and printing method |
CN111063135A (en) * | 2019-11-18 | 2020-04-24 | 国网浙江省电力有限公司宁波供电公司 | Self-service equipment is printed to business office desktop formula electronic invoice |
WO2020082673A1 (en) * | 2018-10-23 | 2020-04-30 | 深圳壹账通智能科技有限公司 | Invoice inspection method and apparatus, computing device and storage medium |
CN112732205A (en) * | 2020-12-18 | 2021-04-30 | 航天信息股份有限公司 | Universal printing equipment control method, electronic equipment, storage medium and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090196485A1 (en) * | 2008-01-31 | 2009-08-06 | Federal Reserve Bank Of Kansas City | Tag validation for efficiently assessing electronic check image quality |
US20090236413A1 (en) * | 2005-02-28 | 2009-09-24 | Fedral Reserve Bank Of Atlanta | Expanded Mass Data Sets For Electronic Check Processing |
CN101949819A (en) * | 2010-09-16 | 2011-01-19 | 北京优纳科技有限公司 | Cell counting method based on image identification |
CN103295001A (en) * | 2013-06-03 | 2013-09-11 | 哈尔滨理工大学 | Invoice information recognition equipment and invoice information recognition method both applied to handhold equipment |
CN105528604A (en) * | 2016-01-31 | 2016-04-27 | 华南理工大学 | Bill automatic identification and processing system based on OCR |
CN105678717A (en) * | 2016-03-02 | 2016-06-15 | 合一网络技术(北京)有限公司 | Definition enhancement method and apparatus for dynamic video image |
CN106204563A (en) * | 2016-07-04 | 2016-12-07 | 傲讯全通科技(深圳)有限公司 | A kind of image conversion method |
-
2016
- 2016-12-27 CN CN201611223548.8A patent/CN108242050A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090236413A1 (en) * | 2005-02-28 | 2009-09-24 | Fedral Reserve Bank Of Atlanta | Expanded Mass Data Sets For Electronic Check Processing |
US20090196485A1 (en) * | 2008-01-31 | 2009-08-06 | Federal Reserve Bank Of Kansas City | Tag validation for efficiently assessing electronic check image quality |
CN101949819A (en) * | 2010-09-16 | 2011-01-19 | 北京优纳科技有限公司 | Cell counting method based on image identification |
CN103295001A (en) * | 2013-06-03 | 2013-09-11 | 哈尔滨理工大学 | Invoice information recognition equipment and invoice information recognition method both applied to handhold equipment |
CN105528604A (en) * | 2016-01-31 | 2016-04-27 | 华南理工大学 | Bill automatic identification and processing system based on OCR |
CN105678717A (en) * | 2016-03-02 | 2016-06-15 | 合一网络技术(北京)有限公司 | Definition enhancement method and apparatus for dynamic video image |
CN106204563A (en) * | 2016-07-04 | 2016-12-07 | 傲讯全通科技(深圳)有限公司 | A kind of image conversion method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020082673A1 (en) * | 2018-10-23 | 2020-04-30 | 深圳壹账通智能科技有限公司 | Invoice inspection method and apparatus, computing device and storage medium |
CN111063135A (en) * | 2019-11-18 | 2020-04-24 | 国网浙江省电力有限公司宁波供电公司 | Self-service equipment is printed to business office desktop formula electronic invoice |
CN110989947A (en) * | 2020-01-02 | 2020-04-10 | 大连中盈科技股份有限公司 | Electronic invoice printer and printing method |
CN112732205A (en) * | 2020-12-18 | 2021-04-30 | 航天信息股份有限公司 | Universal printing equipment control method, electronic equipment, storage medium and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230214626A1 (en) | Optimizing detection of images in relation to targets based on colorspace transformation techniques | |
CN108242050A (en) | The processing method and processing device of electronic invoice | |
CN109272043B (en) | Training data generation method and system for optical character recognition and electronic equipment | |
CN105378661B (en) | Resource packet index | |
CN107329861A (en) | A kind of multiplex roles method of testing and device | |
CN111652093B (en) | Text image processing method and device | |
CN110046622B (en) | Targeted attack sample generation method, device, equipment and storage medium | |
CN105337928A (en) | User identity identification method and apparatus, and safety protection problem generation method and apparatus | |
CN109190629A (en) | A kind of electronics waybill generation method and device | |
CN111951154B (en) | Picture generation method and device containing background and medium | |
CN109635525A (en) | Adding method, device, equipment and the storage medium of watermark | |
Cao et al. | Generative adversarial networks model for visible watermark removal | |
CN106447295A (en) | Sign-off file template generation method and apparatus thereof | |
US20230040256A1 (en) | Image coloring method and apparatus based on artificial intelligence, electronic device, and computer readable storage medium | |
US11501470B2 (en) | Geometric encoding of data | |
CN108268641A (en) | Invoice information recognition methods and invoice information identification device, equipment and storage medium | |
CN113505854A (en) | Method, device, equipment and medium for constructing facial image quality evaluation model | |
CN108648189A (en) | Image fuzzy detection method, apparatus, computing device and readable storage medium storing program for executing | |
CN113034523A (en) | Image processing method, image processing device, storage medium and computer equipment | |
US8457426B1 (en) | Method and apparatus for compressing a document using pixel variation information | |
CN114724145A (en) | Character image recognition method, device, equipment and medium | |
CN114461988A (en) | Image encryption method and device, image decryption method and device | |
CN110414522A (en) | A kind of character identifying method and device | |
CN111898544B (en) | Text image matching method, device and equipment and computer storage medium | |
CN111814542A (en) | Geographic object extraction method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180703 |
|
RJ01 | Rejection of invention patent application after publication |