Identify the method, apparatus and printer of print paper image information
Technical field
The present invention relates to application of electronic technology field, in particular to a kind of side for identifying print paper image information
Method, device and printer.
Background technique
With the development of printing technique industry and popularizing for printer, printing equipment is to culture, the propagation of information and ditch
It is logical to play the role of technical support, but with the development of various industries, for the specific demand of various industries difference printing
Also changed.
In existing printing technique, by taking bank as an example, all tellers are both needed to very important person when printing withdrawal list
Work before printing checks paper, and the withdrawal list of required printing is placed in printer and executes print out task.Alternatively,
In catering industry, in printed invoice, for every printer when executing print out task, being required to current operation personnel will be to be printed
Invoice form be placed in printer, wherein invoice form to be printed is placed in printer, rather than by common print paper
(that is, blank sheet of paper) is placed in printer, is because the invoice that common print paper is printed is unsatisfactory in existing tax requirement
The tax is put on record requirement, therefore, if the invoice that common print paper prints is forwarded to taxation authority by eating and drinking establishment, it will is caused common
The problem of invoice that printing paper prints invalid voucher.
It treats the image information of print paper due to lacking in the prior art for above-mentioned and is detected, caused printing is appointed
The problem of business failure, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of method, apparatus and printer for identifying print paper image information, at least
It solves to treat the image information of print paper due to lacking in the prior art and detected, the technology of caused print out task failure
Problem.
According to an aspect of an embodiment of the present invention, a kind of printer for identifying print paper image information, packet are provided
It includes: printing equipment, signal processing apparatus and image collecting device, wherein image collecting device is carried out for treating print paper
Image Acquisition obtains the picture signal of paper to be printed, and generates paper figure to be printed according to the picture signal of paper to be printed
As infomation detection signal;Signal processing apparatus is connect with image collecting device, for receiving paper image infomation detection to be printed
Signal judges whether the image in paper to be printed meets default type slug according to paper image infomation detection signal to be printed
Part;Printing equipment is connect with signal processing apparatus, in the case where the judgment result is yes, executing printing.
Optionally, image collecting device includes: camera and signal processor, wherein camera, for treating printing paper
Zhang Jinhang Image Acquisition, and obtain the picture signal of paper to be printed;Signal processor is connect with camera, for receiving figure
Paper image infomation detection signal to be printed is generated as signal, and according to picture signal, and paper image information to be printed is examined
It surveys signal and is sent to signal processing apparatus, wherein picture signal includes: optical character identification OCR picture signal or figure code signal;
Figure code signal includes: bar code or two dimensional code.
Further, optionally, signal processing apparatus includes: single-chip microcontroller and signal transceiver, wherein single-chip microcontroller, with figure
As acquisition device connection, for receiving the paper image infomation detection signal to be printed sent by signal processor, and foundation
Paper image infomation detection signal to be printed judges whether the image in paper to be printed meets predetermined printing condition, wherein pre-
If whether print conditions are used to indicate picture signal identical as the picture signal prestored in print out task, prestore print out task and be used for
It is printed on presetting paper to be printed;The input terminal of signal transceiver is connect with single-chip microcontroller, the output end of signal transceiver
It is connect with printing equipment, for judging result to be sent to printing equipment, wherein judging result includes: in paper to be printed
Image meets predetermined printing condition, or, the image in paper to be printed is unsatisfactory for predetermined printing condition.
Optionally, printing equipment is connect with signal transceiver, for receiving the judgement knot sent by signal transceiver
Fruit, and corresponding printing is executed according to judging result.
Further, optionally, printing equipment, for being that the image in paper to be printed meets default beat in judging result
In the case where print condition, printing is executed;Or, being unsatisfactory for default type slug in judging result for the image in paper to be printed
In the case where part, instruction print paper input port, which executes, moves back paper operation.
Optionally, device further include: warning device, wherein warning device is filled with signal processing apparatus or printing respectively
Set connection, for if the determination result is NO, execute alarm operation, wherein alarm operation include: audible alarm and/
Or light warning.
Further, optionally, warning device includes: buzzer, voice announcer and/or warning light.
According to another aspect of an embodiment of the present invention, a kind of method for identifying print paper image information, packet are additionally provided
It includes: acquiring the picture signal of paper to be printed, and generate paper image infomation detection signal to be printed;According to paper figure to be printed
As infomation detection signal judges whether the image in paper to be printed meets predetermined printing condition;The case where judging result, which is, is
Under, execute printing.
Optionally, picture signal includes: optical character identification OCR picture signal or figure code signal, wherein figure code signal packet
It includes: bar code or two dimensional code.
Further, optionally, the picture signal of paper to be printed is acquired, and generates paper image infomation detection to be printed
Signal includes: to screen picture signal according to pre-set image, and classify to picture signal, obtains optical character identification OCR figure
As signal or figure code signal;Sorted optical character identification OCR picture signal is determined as paper image information inspection to be printed
Survey signal;Or, sorted figure code signal is determined as paper image infomation detection signal to be printed.
Optionally, to judge whether the image in paper to be printed meets according to paper image infomation detection signal to be printed pre-
If print conditions include: paper image infomation detection signal to be printed be optical character identification OCR picture signal in the case where,
Judge whether the image in paper to be printed meets predetermined printing condition according to optical character identification OCR picture signal.
Further, optionally, the image in paper to be printed is judged according to paper image infomation detection signal to be printed
Whether meeting predetermined printing condition includes: the foundation in the case where paper image infomation detection signal to be printed is figure code signal
Figure code signal judges whether the image in paper to be printed meets predetermined printing condition.
Optionally, judging whether the image in paper to be printed meets according to paper image infomation detection signal to be printed
After predetermined printing condition, method further include: if the determination result is NO, paper operation is moved back in execution, and is alerted.
Further, optionally, it executes and moves back paper operation, and alerting includes: to pass through audible alarm when paper operation is moved back in execution
And/or light warning indicates that the image in paper image to be printed is unsatisfactory for predetermined printing condition.
Another aspect according to an embodiment of the present invention additionally provides a kind of device for identifying print paper image information, should
Device includes: acquisition module, for acquiring the picture signal of paper to be printed, and generates paper image infomation detection letter to be printed
Number;Processing module, for judging whether the image in paper to be printed meets according to paper image infomation detection signal to be printed
Predetermined printing condition;Print module, in the case where the judgment result is yes, executing printing.
It is according to an embodiment of the present invention in another aspect, additionally provide a kind of storage medium, the storage medium includes storage
Program, wherein equipment where controlling the storage medium in described program operation executes above-mentioned identification print paper image
The method of information.
It is according to an embodiment of the present invention in another aspect, additionally providing a kind of processor, which is characterized in that the processor is used
In operation program, wherein the method that described program executes above-mentioned identification print paper image information when running.
In embodiments of the present invention, pass through printing equipment, signal processing apparatus and image collecting device, wherein image is adopted
Acquisition means carry out Image Acquisition for treating print paper, obtain the picture signal of paper to be printed, and according to paper to be printed
Picture signal generate paper image infomation detection signal to be printed;Signal processing apparatus is connect with image collecting device, is used for
Paper image infomation detection signal to be printed is received, is judged in paper to be printed according to paper image infomation detection signal to be printed
Image whether meet predetermined printing condition;Printing equipment is connect with signal processing apparatus, the feelings for being yes in judging result
Under condition, printing is executed.Achieve the purpose that treating print paper image information is detected, to realize identification printing
The technical effect of paper image information characteristic, and then solve the image information that print paper is treated due to lacking in the prior art
Detected, caused print out task fail the technical issues of.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of structural schematic diagram of printer according to an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of another printer according to an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of another printer according to an embodiment of the present invention;
Fig. 4 is a kind of flow diagram of method for identifying print paper image information according to an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of device for identifying print paper image information according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.
Embodiment one
According to embodiments of the present invention, a kind of embodiment of printer is provided, it should be noted that Fig. 1 is according to this hair
The structural schematic diagram for a kind of printer that bright embodiment provides, as shown in Figure 1, the printer includes: printing equipment 12, at signal
Manage device 14 and image collecting device 16, wherein
Image collecting device 16 carries out Image Acquisition for treating print paper, obtains the picture signal of paper to be printed,
And paper image infomation detection signal to be printed is generated according to the picture signal of paper to be printed;Signal processing apparatus 14, with figure
As the connection of acquisition device 16, for receiving paper image infomation detection signal to be printed, examined according to paper image information to be printed
It surveys signal and judges whether the image in paper to be printed meets predetermined printing condition;Printing equipment 12, with signal processing apparatus 14
Connection, in the case where the judgment result is yes, executing printing.
Specifically, printer provided by the embodiments of the present application can be adapted for the printing of special industry business, wherein including
Banking list, tax invoice, Company Confidential file etc. have the business of specific properties requirement to print paper.
Wherein, by taking Company Confidential file as an example, in the related business sheet of the company of printing or reimbursement voucher, image collector
The image that 16 treat print paper is set to be acquired, that is, by the camera in image collecting device 16 treat print paper into
Row Image Acquisition obtains the picture signal of paper to be printed, and according to be printed after treating print paper and carrying out Image Acquisition
The picture signal of paper generates paper image infomation detection signal to be printed;And paper image infomation detection signal to be printed is sent out
It send to signal processing apparatus 14, signal processing apparatus 14 treats print paper image information detection signal and carries out judgement processing, raw
It whether is the judging result for meeting the paper of predetermined printing condition at the paper of business sheet to be printed and voucher, that is, paper to be printed
Whether the picture signal opened is identical as the picture signal prestored in print out task, prestores print out task for presetting paper to be printed
It is printed on, and the judging result is sent to printing equipment 12;Printing equipment 12 with signal processing apparatus 14 due to connecting
It connects, printing equipment 12 executes corresponding operating according to the judging result received, in the figure that judging result is paper to be printed
As executing printing in signal situation identical with the picture signal prestored in print out task;Paper operation is moved back if it is not, then executing
And it alerts.
In printer provided by the embodiments of the present application, pass through printing equipment, signal processing apparatus and image collecting device structure
At, wherein image collecting device carries out Image Acquisition for treating print paper, obtains the picture signal of paper to be printed, and
Picture signal according to paper to be printed generates paper image infomation detection signal to be printed;Signal processing apparatus is adopted with image
Acquisition means connection, for receiving paper image infomation detection signal to be printed, according to paper image infomation detection signal to be printed
Judge whether the image in paper to be printed meets predetermined printing condition;Printing equipment is connect with signal processing apparatus, is used for
Judging result is in the case where being, to execute printing.Achieve the purpose that treating print paper image information is detected, from
And the technical effect of identification print paper image information characteristic is realized, and then solve and beat due to lacking to treat in the prior art
The technical issues of image information of printing paper is detected, and caused print out task fails.
Specifically, Fig. 2 is the structural schematic diagram of another printer provided according to embodiments of the present invention, as shown in Fig. 2,
Printer provided by the embodiments of the present application is specific as follows:
Optionally, image collecting device 16 includes: camera 161 and signal processor 162, wherein
Camera 161 carries out Image Acquisition for treating print paper, and obtains the picture signal of paper to be printed,
In, picture signal includes: optical character identification OCR picture signal or figure code signal;Figure code signal includes: bar code or two dimension
Code;Signal processor 162 is connect with camera 161, generates paper to be printed for receiving picture signal, and according to picture signal
It opens image information and detects signal, and paper image infomation detection signal to be printed is sent to signal processing apparatus 14.
Wherein, in the case where the picture signal of paper to be printed is optical character identification OCR picture signal, specifically,
Camera 161 carries out the acquisition of optical character identification OCR image for treating print paper, that is, acquire wait beat by camera
Character shape feature in printing paper, alternatively, treating print paper carries out OCR detection, to obtain the optics of paper to be printed
Character recognition OCR picture signal.
Alternatively,
In the case where the picture signal of paper to be printed can be figure code signal, wherein figure code signal includes: bar code
Or two dimensional code;Bar code or two dimensional code are the picture signal of paper to be printed, camera 161, for treat print paper into
Row figure code Image Acquisition, to obtain the figure code signal of paper to be printed.
Optionally, signal processing apparatus 14 includes: single-chip microcontroller 141 and signal transceiver 142, wherein
Single-chip microcontroller 141 is connect with image collecting device 16, for receive pass through signal processor 162 send it is to be printed
Paper image infomation detection signal, and judge that the image in paper to be printed is according to paper image infomation detection signal to be printed
It is no to meet predetermined printing condition, wherein predetermined printing condition be used to indicate picture signal whether with the figure that prestores in print out task
Picture signal is identical, prestores print out task for being printed on presetting paper to be printed;The input terminal of signal transceiver 142 with
Single-chip microcontroller 141 connects, and the output end of signal transceiver 142 is connect with printing equipment 12, for judging result to be sent to printing
Device 12, wherein judging result includes: that the image in paper to be printed meets predetermined printing condition, or, in paper to be printed
Image is unsatisfactory for predetermined printing condition.
Specifically, the signal processing apparatus 14 provided in the embodiment of the present application is as shown in Fig. 2, still to print corporate business list
Or it being illustrated for reimbursement voucher, wherein paper to be printed can be the related business sheet of common print paper or company here,
Single-chip microcontroller 141 is used to receive the paper image infomation detection signal to be printed sent in signal processor 162, and according to be printed
Paper image infomation detection signal judges whether paper image information to be printed meets predetermined printing condition, that is, due to commonly to
The picture signal of print paper is variant in relation to the picture signal of business sheet with company, and corresponding signal processor 162 receives
To paper image infomation detection signal to be printed can have different signal aspects, wherein the image information of common print paper
Detection signal condition is unsatisfactory for predetermined printing condition.In addition, signal processor 162 is connect with single-chip microcontroller 141, single-chip microcontroller 141 will
Judging result is sent to printing equipment 12, and here, which includes: that the image in paper to be printed meets default type slug
Part, or, the image in paper to be printed is unsatisfactory for predetermined printing condition.
For example, the difference of invoice form and common print paper is, common print paper is blank sheet of paper, does not have any text on the blank sheet of paper
Word and form of wording are different from common print paper, and invoice form has fixed format, when invoice form enters printer, pass through
Camera 161 carries out Image Acquisition to the invoice form, and obtains the picture signal of paper to be printed, to obtain paper to be printed
OCR picture signal;Signal processor 162 generates paper image to be printed for receiving picture signal, and according to picture signal
Infomation detection signal, that is, the OCR picture signal of paper to be printed, the OCR picture signal can feed back the format of current invoice form;
Single-chip microcontroller 141 is identified by the OCR picture signal of the paper to be printed sent to signal processor 162, and judges the hair
Whether the format in ticket is identical as format needed for print out task;The input terminal and single-chip microcontroller 141 of signal transceiver 142 connect
It connects, the output end of signal transceiver 142 is connect with printing equipment 12, sends issued judgement knot for receiving single-chip microcontroller 141
Judging result is simultaneously sent to printing equipment 12 by fruit, wherein if they are the same, is then indicated that printing equipment 12 prints, if not identical, is referred to
Show that printing equipment 12 moves back paper.
Similarly, with the development of video identification code, each video identification code correspondence can include very more content, wherein
Video identification code in the present embodiment, that is, camera treats print paper and carries out Image Acquisition, and obtained picture signal is also wrapped
It includes: figure code signal, wherein figure code signal is the corresponding signal of video identification code in paper to be printed.With bar code or two dimension
For code, existing invoice form crosses case due to being in the tax or banking system, currently consumer belonging to invoice
Not, through identification bar code or two dimensional code, can know whether the invoice form is needed for current print out task
Invoice form.
Further, optionally, printing equipment 12 are connect with signal transceiver 142, pass through signal transceiver for receiving
142 judging results sent, and corresponding printing is executed according to judging result.Printing equipment 12, for being in judging result
In the case that image in paper to be printed meets predetermined printing condition, printing is executed;Or, being to be printed in judging result
In the case that image in paper is unsatisfactory for predetermined printing condition, instruction print paper input port, which executes, moves back paper operation.
Specifically, the printing equipment 12 provided in the embodiment of the present application as shown in Fig. 2, printing equipment 12 according to signal processing
The judging result that signal transceiver 142 is sent in device 14, executes corresponding printing, wherein prints tax with Tax
It is engaged in for list, if the judging result that the signal transceiver 142 in signal processing apparatus 14 is sent are as follows: paper image information to be printed
Detection signal show that the image in paper to be printed meets predetermined printing condition, that is, paper image signal to be printed and prestore beat
Picture signal in print task is identical, in turn, receives the image in paper to be printed in printing equipment 12 and meets default printing
Under the judging result of condition, printing equipment 12 executes printing;Equally, it is received in paper to be printed in printing equipment 12
Image is unsatisfactory under the judging result of predetermined printing condition, and paper operation is moved back in the execution of printing equipment 12.
Optionally, printer provided by the embodiments of the present application further include: warning device 18, wherein
Warning device 18 is connect, for be no in judging result respectively with signal processing apparatus 14 or printing equipment 12
In the case of, execute alarm operation, wherein alarm operation includes: audible alarm and/or light warning.
Further, optionally, warning device 18 includes: buzzer, voice announcer and/or warning light.
Specifically, the warning device 18 provided in the embodiment of the present application is as shown in Fig. 2, 18 basis signal of warning device is handled
The alarm that device 14 or printing equipment 12 trigger, executes alarm operation, wherein specifically, warning device 18 can be with signal
Processing unit 14 connects, and if the determination result is NO, directly executes alarm operation;Or, warning device 18 is filled in printing
Set 12 receive judging result be it is no in the case where, while printing equipment 12 moves back paper, be immediately performed alarm operation.Here it accuses
Alert operation includes: audible alarm and/or light warning.
The embodiment of the present application treats print paper and carries out Image Acquisition, obtain paper to be printed by image collecting device 16
Picture signal, and generate paper image infomation detection signal to be printed according to the picture signal of paper to be printed, and will be to
Print paper image information detection signal is sent to signal processing apparatus 14, and signal processing apparatus 14 is for receiving paper to be printed
Image information detects signal, and judges whether paper image information to be printed meets predetermined printing condition, in addition, signal processing device
The single-chip microcontroller 141 set in 14 is connected with signal processor 162, passes through transmitted by signal processor 162 for receiving wait beat
Printing paper image information detects signal, signal processing apparatus 14 be used to judge according to paper image infomation detection signal to be printed to
Whether the image in print paper meets predetermined printing condition, wherein predetermined printing condition be used to indicate picture signal whether with
The picture signal prestored in print out task is identical;Signal transceiver 142 in signal processing apparatus 14 is connect with printing equipment 12,
For the paper image infomation detection signal to be printed received to be sent to printing equipment 12, and according to judging result execution pair
Answer printing;Warning device 18 is connect with signal processing apparatus 14 and printing equipment 12 respectively, for being no in judging result
In the case where, execute alarm operation.
Solve the problems, such as that treating print paper image information is detected, to realize identification print paper image letter
The technical effect for ceasing characteristic, and then solves the problems, such as warning device in system, thus realize in the course of work to system
The technical effect of device alarm.
Specifically, Fig. 3 is the structural schematic diagram of another printer provided according to embodiments of the present invention, as shown in Figure 3:
It is the explanatory diagram of the printer of the application case study on implementation, specific as follows:
When the printer that paper to be printed provides through this embodiment, wherein camera 1 is used for paper to be printed
Image information detection signal is sent to single-chip microcontroller 2, after single-chip microcontroller 2 receives paper image infomation detection signal to be printed, judgement
Whether paper image signal to be printed is identical as the picture signal prestored in print out task, and judging result is sent to printer
3, the judging result that printer 3 is sent according to single-chip microcontroller 2 executes printing or moves back paper operation.
Wherein, optionally, the buzzer in warning device 18 can be substituted for MP3 voice module in the present embodiment,
When paper image signal to be printed is with picture signal difference in print out task is prestored, voice prompt alarm is used.
Alternatively,
Buzzer can be substituted for red colored lamp, when paper image signal to be printed is believed with the image prestored in print out task
When number difference, the alarm of lamp flash for prompting.
Alternatively,
It can be closed with buzzing and lamp group, when paper image signal to be printed is different from the picture signal prestored in print out task
When, lamp flashes and buzzing is alarmed.
Alternatively,
It can be closed with MP3 voice module and lamp group, when paper image signal to be printed is believed with the image prestored in print out task
When number difference, lamp flashing and voice prompt alarm.
Here it prompts user's paper image signal to be printed by way of audible alarm and/or light warning and prestores to beat
Whether the picture signal in print task is identical.
Specifically, Fig. 3 is the structural schematic diagram of another printer provided according to embodiments of the present invention, as shown in figure 3,
Printer in the present embodiment is by printer 3 (that is, printing equipment 12 in the present embodiment in Fig. 2), single-chip microcontroller 2 (that is, this implementation
Single-chip microcontroller 141 in example in Fig. 2) and the composition of camera 1 (that is, image collecting device 16 in the present embodiment in Fig. 2).This implementation
Basic principle in example are as follows: when 3 paper feed of printer, camera 1 carries out Image Acquisition for treating print paper, obtains to be printed
The picture signal of paper, and generate paper image infomation detection signal to be printed according to the picture signal, and by paper to be printed
Image information detection signal is sent to single-chip microcontroller 2.The paper image infomation detection signal to be printed is parsed by single-chip microcontroller 2, and raw
At judging result: paper image signal to be printed is identical as the picture signal prestored in print out task, alternatively, paper figure to be printed
As signal is different from the picture signal prestored in print out task.If paper image signal to be printed and prestoring the figure in print out task
Picture signal is identical, then single-chip microcontroller 2 notifies printer 3 to execute printing;If paper image signal to be printed is appointed with printing is prestored
Picture signal in business is not identical, then single-chip microcontroller 2 notifies the execution of printer 3 to move back paper operation, and triggers alarm.
Whether the present embodiment is identical as the picture signal prestored in print out task by detecting paper image signal to be printed,
Identify the legitimacy of tax single vote evidence.Wherein in some special industries, by taking bank and the tax bureau as an example, needs to know and be made out an invoice
According to picture signal it is whether identical as the picture signal prestored in print out task, if genuine legal, the printing in the present embodiment
Machine is by printer 3 (that is, printing equipment 12 in the present embodiment in Fig. 2), single-chip microcontroller 2 (that is, the monolithic in the present embodiment in Fig. 2
Machine 141), camera 1 is (that is, camera 161 and 162 groups of signal processor in image collecting device 16 in the present embodiment in Fig. 2
At).Basic principle in the present embodiment are as follows: when 3 paper feed of printer, camera 1 carries out Image Acquisition for treating print paper,
And the picture signal of paper to be printed is obtained, according to the picture signal, paper image infomation detection signal to be printed is generated, and will
Paper image infomation detection signal to be printed is sent to single-chip microcontroller 2.The reception of single-chip microcontroller 2 passes through paper image infomation detection to be printed
Signal, and judge whether paper to be printed meets predetermined printing condition according to paper image infomation detection signal to be printed;Wherein,
Since common print paper and the difference of tax list are, have fixed format or bar code and two dimensional code in tax list,
In, it whether is format required in print out task, bar code and two by the fixed format of the available tax list of OCR signal
Dimension code is used to indicate whether the paper to be printed is paper needed for print out task, so obtained paper image information to be printed
Detecting signal, there are different signal aspects;If paper image signal to be printed and the picture signal phase prestored in print out task
Together, single-chip microcontroller 2 (that is, single-chip microcontroller 141 in the present embodiment in Fig. 2) notifies printer 3 (that is, the printing in the present embodiment in Fig. 2
Device 12) printing, if paper image signal to be printed and the picture signal prestored in print out task be not identical, single-chip microcontroller 2
(that is, single-chip microcontroller 141 in the present embodiment in Fig. 2) notifies printer 3 (that is, printing equipment 12 in the present embodiment in Fig. 2) will
Paper exits, and executes alarm operation.I.e. the present embodiment, which is not only realized, judges tax single vote according to the processing of picture signal, but also
It ensure that the safety problem in print procedure.
The printing equipment 12 mentioned in the present embodiment has printing function, and the printing equipment 12 before the printing can be right
Paper image signal to be printed is detected, and judges whether paper image signal to be printed is believed with the image prestored in print out task
It is number identical.If paper image signal to be printed is identical as the picture signal prestored in print out task, print, if to be printed
Paper image signal and the picture signal prestored in print out task be not identical, then do not print and (or) alarm.Printing equipment
12 include: ink-jet printer, stylus printer, thermal printer, laser printer and automatic stamping machine.The present embodiment is logical
Cross detection judges whether paper image signal to be printed and the picture signal prestored in print out task are identical, distinguishing paper feed paper is
It is no to print, it solves the problems, such as to treat print paper image information due to lacking in the prior art and detected.Single-chip microcontroller
And printer communication, inform the legitimacy of this printing of printer.The present embodiment really solves the needs such as bank before printing
The case where the problem of detecting to paper image information, it is accurate that the present embodiment detection is stablized, and will not generate and fail to report, wrong report.Solution
It has determined and has treated the purpose that print paper image information is detected, to realize the skill of identification print paper image information characteristic
Art effect.
Embodiment two
According to embodiments of the present invention, a kind of embodiment of method for identifying print paper image information is provided, is needed
Bright, step shown in the flowchart of the accompanying drawings can be held in a computer system such as a set of computer executable instructions
Row, although also, logical order is shown in flow charts, and it in some cases, can be to be different from sequence herein
Execute shown or described step.
Fig. 4 is a kind of flow diagram of method for identifying print paper image information according to an embodiment of the present invention, such as
Shown in Fig. 4, this method comprises the following steps:
Step S402, acquires the picture signal of paper to be printed, and generates paper image infomation detection signal to be printed;
Specifically, the method for identification print paper image information provided by the embodiments of the present application can be adapted for above-mentioned Fig. 1
The corresponding embodiment one into Fig. 3, wherein acquire the picture signal of paper to be printed, and generate paper image information to be printed
The process of detection signal can be obtained by the picture signal that the image collecting device 16 in Fig. 1 acquires paper to be printed.
Wherein, the method for identification print paper image information provided by the embodiments of the present application is treated with being suitable for each needs
The industry that print paper image information carries out detection judgement passes through Image Acquisition for printing shopping list invoice or tax ticket
Device 16 treats print paper and carries out Image Acquisition, obtains the picture signal of paper to be printed, and the figure according to paper to be printed
As signal generation paper image infomation detection signal to be printed, so that whether the image obtained in paper to be printed meets default beat
The judging result of print condition, wherein the judging result can be judged to obtain by step S404.
Step S404 judges whether the image in paper to be printed meets according to paper image infomation detection signal to be printed
Predetermined printing condition;
Specifically, based on the paper image infomation detection signal to be printed generated in step S402, in step s 404 according to
Judge whether paper to be printed meets predetermined printing condition, the implementation of corresponding diagram 1 according to paper image infomation detection signal to be printed
Example one, wherein paper image infomation detection signal to be printed is received by signal processing apparatus 14 in embodiment one, and judge to
Whether print paper meets predetermined printing condition, wherein predetermined printing condition for judge picture signal whether with prestore printing
Picture signal in task is identical.
Based on the citing in step S402, still for printing shopping list invoice or tax ticket, with paper figure to be printed
Judgment basis as infomation detection signal as shopping list invoice or tax ticket is believed according to the paper image infomation detection to be printed
Number judge whether paper image signal to be printed is identical as the picture signal prestored in print out task.
Step S406 executes printing in the case where the judgment result is yes.
Specifically, being judged according to paper image infomation detection signal to be printed wait beat based on the judgement in step S404
Printing paper is filled after sufficient predetermined printing condition, executes printing.Namely based on the example in step S404, paper to be printed is being judged
In the case where opening image information detection signal for tax list, the operation of printing tax list is executed.
Paper operation is moved back if it is not, then executing, and triggers alarm.
To sum up, the printer provided in conjunction with step S402 to step S406, corresponding diagram 1 to the corresponding embodiment one of Fig. 3, leads to
It crosses image collecting device and treats print paper progress Image Acquisition, obtain paper image infomation detection signal to be printed, and pass through
Signal processing apparatus receives paper image infomation detection signal to be printed, judges according to paper image infomation detection signal to be printed
Whether the image in paper to be printed meets predetermined printing condition, in the case where the judgment result is yes, executes printing.
In the method for identification print paper image information provided by the embodiments of the present application, the image letter of paper to be printed is obtained
Number, and paper image infomation detection signal to be printed is generated according to the picture signal of paper to be printed;According to paper figure to be printed
As infomation detection signal judges whether the image in paper to be printed meets predetermined printing condition, the case where judging result, which is, is
Under, execute printing.Achieve the purpose that treating print paper image information is detected, to realize identification printing paper
The technical effect of image information characteristic, so solve due to lack in the prior art treat the image information of print paper into
The technical issues of row detection, caused print out task fails.
Wherein, the picture signal of paper to be printed includes: optical character identification OCR picture signal or figure code signal, wherein
The figure code signal includes: bar code or two dimensional code.
Optionally, the picture signal of paper to be printed is acquired in step S402, and generates paper image information inspection to be printed
Surveying signal includes:
Step1 screens picture signal according to pre-set image, classifies to picture signal, obtain optical character identification OCR
Picture signal or figure code signal;
Sorted optical character identification OCR picture signal is determined as paper image infomation detection to be printed and believed by Step2
Number;Or, sorted figure code signal is determined as paper image infomation detection signal to be printed.
Specifically, the method for identification print paper image information provided by the embodiments of the present application can be adapted for above-mentioned Fig. 1
Corresponding embodiment one, wherein print paper is treated by the camera 161 in image collecting device 16 and carries out Image Acquisition,
The picture signal of paper to be printed is obtained, the picture signal of paper to be printed is sent to signal processor 162 by camera 161,
Signal processor 162 generates paper image infomation detection signal to be printed according to the picture signal of paper to be printed, wherein passes through
Picture signal is screened according to paper image to be printed is preset, and is classified to picture signal, optical character identification OCR figure is obtained
As signal or figure code signal;Sorted optical character identification OCR picture signal is determined as the inspection of institute's print paper image information
Survey signal;Or, sorted figure code signal is determined as paper image infomation detection signal to be printed;Signal processor 162 will
Paper image infomation detection signal to be printed is sent to signal processing apparatus 14.
Wherein, camera 161 treats print paper and carries out Image Acquisition, obtains the picture signal of paper to be printed, and will
The picture signal of paper to be printed is sent to signal processor 162, and signal processor 162 receives the image letter of paper to be printed
Number, and by screening the picture signal of paper to be printed according to pre-set image, and the picture signal for treating print paper is divided
Class obtains optical character identification OCR picture signal, so that the optical character identification OCR picture signal of paper to be printed is obtained, and
The optical character identification OCR picture signal of paper to be printed is determined as paper image infomation detection signal to be printed.
Or,
Wherein, camera 161 treats print paper and carries out Image Acquisition, obtains the picture signal of paper to be printed, and will
The picture signal of paper to be printed is sent to signal processor 162, and signal processor 162 receives the image letter of paper to be printed
Number, herein, figure code signal is image in 2 D code signal, and signal processor 162 generates to be printed according to image in 2 D code signal
Paper image infomation detection signal.
Or,
Wherein, print paper is treated by camera 161 and carries out Image Acquisition, obtain the picture signal of paper to be printed,
And the picture signal of paper to be printed is sent to signal processor 162, signal processor 162 receives the image of paper to be printed
Signal, herein, the picture signal of paper to be printed is bar code image signal, and signal processor 162 is according to bar code image
Signal generates paper image infomation detection signal to be printed.
Optionally, judge in paper to be printed according to paper image infomation detection signal to be printed in step s 404
After image meets predetermined printing condition, the method for identification print paper image information provided by the embodiments of the present application further include:
Step S405, if the determination result is NO, execution move back paper operation, and alert.
Specifically, according to described in the embodiment of the present application one, wherein obtain the paper to be printed by image collecting device 16
Image information detects signal, that is, image information corresponding to tax list detects signal, according to the signal processing device in embodiment one
14 receptions paper image infomation detection signal to be printed is set, and is judged according to paper image infomation detection signal to be printed to be printed
Whether the image in paper meets predetermined printing condition, if paper image signal to be printed is believed with the image prestored in print out task
Number not identical, then paper operation is moved back in the execution of printing equipment 12, and triggers alarm.
Further, optionally, it is executed in step S405 and moves back paper operation, and alerted and include:
Step1 indicates that paper image to be printed is believed by audible alarm and/or light warning when paper operation is moved back in execution
Number it is unsatisfactory for preset condition.
Specifically, the warning device 18 provided in the embodiment of the present application is the warning device 18 in Fig. 2 corresponding embodiment, letter
The judging result of paper image information to be printed is sent to printing equipment 12 by number processing unit 14, wherein if the paper to be printed
When the judging result of image information is that the image in paper to be printed is unsatisfactory for predetermined printing condition, then alarm operation is executed,
Warning device 18 can be sent by devices such as buzzer, voice module and/or warning lights, i.e., warning device 18 respectively with letter
Number processing unit 14 or printing equipment 12 connect, for if the determination result is NO, executing alarm operation.
Wherein, alarm operation includes: that the buzzer in warning device 18 is substituted for MP3 voice mould in the present embodiment
Block uses voice prompt alarm when paper image signal to be printed is with picture signal difference in print out task is prestored.
Or,
Buzzer can be substituted for red colored lamp by warning device 18, when paper image signal to be printed and prestore print out task
In picture signal difference when, lamp flash for prompting alarm.
Or,
Buzzer can be substituted for red colored lamp by warning device 18, when paper image signal to be printed and prestore print out task
In picture signal difference when, lamp flashing and buzzing alarm.
Or,
Buzzer can be substituted for red colored lamp by warning device 18, when paper image signal to be printed and prestore print out task
In picture signal difference when, lamp flashing and voice prompt alarm.
Embodiment three
According to embodiments of the present invention, a kind of embodiment of device for identifying print paper image information is provided, Fig. 5 is root
According to a kind of structural schematic diagram of the device of identification print paper image information of the embodiment of the present invention, as shown in figure 5, the device packet
It includes: acquisition module 52, processing module 54, print module 56, wherein
Acquisition module 52 for acquiring the picture signal of paper to be printed, and generates paper image infomation detection to be printed
Signal;
Processing module 54, for judging that the image in paper to be printed is according to paper image infomation detection signal to be printed
It is no to meet predetermined printing condition;
Print module 56, in the case where the judgment result is yes, executing printing.
It is provided by the embodiments of the present application identification print paper image information device in, acquisition module 52, for acquire to
The picture signal of print paper, and generate paper image infomation detection signal to be printed;Processing module 54, for according to be printed
Paper image infomation detection signal judges whether the image in paper to be printed meets predetermined printing condition;Print module 56 is used
In in the case where the judgment result is yes, printing is executed.Reach and has treated the mesh that print paper image information is detected
, to realize the technical effect of identification print paper image information characteristic, and then solve due to lacking in the prior art
The technical issues of image information for treating print paper is detected, and caused print out task fails.
Example IV
It is according to an embodiment of the present invention in another aspect, additionally provide a kind of storage medium, the storage medium includes storage
Program, wherein equipment where controlling the storage medium in described program operation executes in above-described embodiment two identification and beats
The method of printing paper image information.
Embodiment five
It is according to an embodiment of the present invention in another aspect, additionally providing a kind of processor, which is characterized in that the processor is used
In operation program, wherein described program executes the method for identifying print paper image information in above-described embodiment two when running.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.