Detailed description of the invention
By describing the technology contents of the present invention in detail, being realized purpose and effect, below in conjunction with embodiment and coordinate accompanying drawing to be explained.
The design of most critical of the present invention is in that: by sensor, the scraping award region namely made out an invoice is identified, thus realizing whether namely making out an invoice of transmission correctly distinguishes, simple and reasonable, method simple operation.
Refer to Fig. 1, the invention provides a kind of device namely made out an invoice by scraping award region recognition, including at least one along being perpendicular to the sensor 1 of direction word order of drawing a bill of namely making out an invoice, described sensor 1 is infrared sensor, and the wavelength of the infrared light that described infrared sensor is launched is 940nm.
Further, described sensor 1 is infrared emission sensor.
Seen from the above description, using infrared emission sensor, have accuracy rate height, debugging maintenance is advantage easily.
Further, described sensor 1 arranges drawing a bill on path of making out an invoice shortly.
Seen from the above description, sensor 1 arrange make out an invoice shortly draw a bill on path, flexible structure.
Further, what also include at least one send ticket roller 2 and roller 3 of drawing a bill, and described sensor 1 is at the described roller 3 and sending between ticket roller 2 described in first of direction along drawing a bill of drawing a bill.
Seen from the above description, it can be multiple for sending ticket roller 2, carries out suitable setting according to the length namely made out an invoice and the length that need to transmit, flexible structure;Sending ticket roller 2 along first of direction of drawing a bill and drawing a bill described sensor 1 is set between roller 3, it may be achieved the accurate detection to the scraping award region namely made out an invoice, it is ensured that data measurement is stablized effective.
Further, also including disconnected ticket cutter 4, described disconnected ticket cutter 4 send ticket roller 2 described and draw a bill between roller 3, and described sensor 1 is sending between ticket roller 2 and disconnected ticket cutter 4.
Seen from the above description, disconnected ticket cutter 4 is sending ticket roller 2 and is drawing a bill and roll between road, conveniently namely linked together by breakpoint mode two are made out an invoice after disconnected ticket separates, send ticket roller 2 from roller 3 of drawing a bill namely two after separating are made out an invoice and do different transmission actions, rational in infrastructure, Operation and Maintenance is convenient;Sensor 1 is sending between ticket roller 2 and disconnected ticket cutter 4, namely before disconnected ticket cutter 4, namely making out an invoice of being about to draw a bill is detected, namely making out an invoice of can realizing being about to drawing a bill is entirely through below sensor 1, namely making out an invoice of being about to draw a bill has been carried out complete detection by sensor 1, ensure the integrity of data acquisition, rational in infrastructure, simple operation.
Refer to Fig. 1, embodiments of the invention one are:
A kind of device namely made out an invoice by scraping award region recognition, including at least one along being perpendicular to the sensor 1 of direction word order of drawing a bill of namely making out an invoice, described sensor 1 is infrared sensor, the wavelength of the infrared light that described infrared sensor is launched is 940nm, and described sensor 1 arranges drawing a bill on path of making out an invoice shortly.
Both are made a distinction from the non-light transmittance in scraping award region or the different of reflectance by the infrared sensor that wavelength is 940nm by the scraping award region namely made out an invoice.
Refer to Fig. 1, embodiments of the invention two are:
A kind of device namely made out an invoice by scraping award region recognition, on the basis of embodiment one, what also include at least one send ticket roller 2 and roller 3 of drawing a bill, disconnected ticket cutter 4, described disconnected ticket cutter 4 send ticket roller 2 described and draw a bill between roller 3, described sensor 1 is infrared emission sensor, described sensor 1 is at the described roller 3 and send between ticket roller 2 described in first of direction along drawing a bill of drawing a bill, it is preferable that described sensor 1 is sending between ticket roller 2 and disconnected ticket cutter 4.
Sensor 1 is when the tail edge namely made out an invoice being about to draw a bill arrives disconnected ticket cutter 4, it is achieved to this detection completely namely made out an invoice.
Refer to Fig. 2, a kind of method namely made out an invoice by scraping award region recognition, described method is:
Namely making out an invoice the boundary point coordinate in scraping award region along being perpendicular to the draw a bill sensor detection of direction word order of namely making out an invoice of at least one, and it is stored as the initial array of at least one;
The sensor of at least one detects the scraping award zone boundary point coordinates namely made out an invoice being transferred, and is recorded as the detection array of at least one;
Relatively through whether the initial array of each sensor mates with detection array, if coupling, it is determined that namely making out an invoice of conveying is correct.
Further, if all not mating, it is determined that namely making out an invoice of conveying is wrong.
Seen from the above description, if initial array is not mated with detection array, it is determined that namely making out an invoice of conveying is wrong, now can be reported to the police by the mode of sound or word, ticket roller is sent to stop the conveying namely made out an invoice, it is prevented that namely making out an invoice of mistake to be transferred out.
Further, described boundary point coordinate refers to the scraping award zone boundary point coordinate relative to default zero of namely making out an invoice, wherein, the zero preset is the point namely made out an invoice along the leading edge in direction of drawing a bill, or described sensor subpoint on described making out an invoice when disconnected ticket of namely making out an invoice once terminates.
Seen from the above description, scraping award zone boundary point coordinates measured by sensor is along the coordinate drawing a bill on direction of namely making out an invoice, recordable for one-dimensional coordinate, it is possible to by sensor, this is combined into two-dimensional coordinate in being perpendicular to draw a bill coordinate and the scraping award zone boundary point coordinates in direction of namely making out an invoice;The zero preset is the point namely made out an invoice along the leading edge in direction of drawing a bill, it is simple to the statistics to the scraping award zone boundary point coordinates namely made out an invoice, and meets the inertial thinking of people;Zero is disconnected ticket described sensor subpoint on described making out an invoice when terminating of namely making out an invoice once, it is simple to statistics to the scraping award zone boundary point coordinates namely made out an invoice inside device, amount of calculation is little, and data processing speed is fast.
Further, compare whether the initial array through each sensor mates with detection array, particularly as follows:
Predetermined deviation threshold value;
Calculate the difference of the numerical value in the initial array of each sensor and the numerical value in detection array;
Judge that whether each described difference is less than deviation threshold, if being all, it is determined that namely making out an invoice of conveying is correct.
Seen from the above description, deviation threshold is set, be that this species diversity is generally smaller in order to make up because sending the difference between the numerical value in the ticket roller initial array that the error etc. that namely transmission makes out an invoice causes and detection array;If namely making out an invoice of transmission is wrong, then the numerical value in detection array has relatively larger difference with the numerical value in initial array, and described difference can be far longer than deviation threshold, now determines that namely making out an invoice of transmission is wrong, method advantages of simple, has taken into full account the error that device itself runs.
Further, compare whether the initial array through each sensor mates with detection array, particularly as follows:
Sequentially compare the difference between first numerical value and other numerical value in the initial array of each sensor and whether the difference between first numerical value and other numerical value in detection array is identical;
If, it is determined that namely making out an invoice of conveying is correct.
Seen from the above description, relative coordinate between the scraping award zone boundary point namely made out an invoice being typically different also is different, by the comparison by the difference between first numerical value and other numerical value in the difference between first numerical value and other numerical value in initial array and detection array, identify whether namely making out an invoice of conveying be correct, avoid initial array and numerical value difference in two arrays causing of zero value error in detection array, whether identical with the zero value in detection array without considering initial array, method is reasonable, simple operation.
Further, also include:
Namely the sensor of at least one detects respectively makes out an invoice with front head edge when front, front trailing edge are transferred in front these four state at front, reverse side trailing edge at front, reverse side head edge, the boundary point coordinate in scraping award of namely making out an invoice region, and it is stored as the initial array of at least one;
Whether the initial array through each sensor being respectively compared under above-mentioned four kinds of states mates with detection array, if the initial array under at least one state is mated with detection array, it is determined that namely making out an invoice of conveying is correct.
Seen from the above description, if the initial array only stored under a kind of laying state of namely making out an invoice, then namely make out an invoice in the process of follow-up use, all place only in this kind of state;If namely storage makes out an invoice with front head edge at front, front trailing edge at front, reverse side head edge in initial array front, that reverse side trailing edge is under front these four state; then namely make out an invoice in the process of follow-up use; put into any one state in four kinds of states; avoid because the artificial placement device caused towards mistake of namely making out an invoice is reported to the police and shut down; there is fool proof and operate effect; method is reasonable, reduces warning outage probability.
Refer to Fig. 2, embodiments of the invention three are:
A kind of method namely made out an invoice by scraping award region recognition, described method is:
Namely making out an invoice the boundary point coordinate in scraping award region along being perpendicular to the draw a bill sensor detection of direction word order of namely making out an invoice of at least one, and it is stored as the initial array of at least one;
The sensor of at least one detects the scraping award zone boundary point coordinates namely made out an invoice being transferred, and is recorded as the detection array of at least one;
Relatively through whether the initial array of each sensor mates with detection array, if coupling, it is determined that namely making out an invoice of conveying is correct.
Refer to Fig. 2, embodiments of the invention four are:
A kind of method namely made out an invoice by scraping award region recognition, on the basis of embodiment three, be more specifically:
1, also include: if all not mating, it is determined that namely making out an invoice of conveying is wrong.
2, described boundary point coordinate refers to the scraping award zone boundary point coordinate relative to default zero of namely making out an invoice, wherein, the zero preset is the point namely made out an invoice along the leading edge in direction of drawing a bill, or described sensor subpoint on described making out an invoice when disconnected ticket of namely making out an invoice once terminates.
3, whether the initial array compared through each sensor mates with detection array, particularly as follows:
Predetermined deviation threshold value;
Calculate the difference of the numerical value in the initial array of each sensor and the numerical value in detection array;
Judge that whether each described difference is less than deviation threshold, if being all, it is determined that namely making out an invoice of conveying is correct.
Refer to Fig. 2, embodiments of the invention five are:
A kind of method namely made out an invoice by scraping award region recognition, the place different in embodiment four is:
Relatively through whether the initial array of each sensor mates with detection array, particularly as follows:
Sequentially compare the difference between first numerical value and other numerical value in the initial array of each sensor and whether the difference between first numerical value and other numerical value in detection array is identical;
If, it is determined that namely making out an invoice of conveying is correct.
Refer to Fig. 2, embodiments of the invention six are:
A kind of method namely made out an invoice by scraping award region recognition, on the basis of embodiment three, is also included:
Namely the sensor of at least one detects respectively makes out an invoice with front head edge when front, front trailing edge are transferred in front these four state at front, reverse side trailing edge at front, reverse side head edge, the boundary point coordinate in scraping award of namely making out an invoice region, and it is stored as the initial array of at least one;
Whether the initial array through each sensor being respectively compared under above-mentioned four kinds of states mates with detection array, if the initial array under at least one state is mated with detection array, it is determined that namely making out an invoice of conveying is correct.
nullIn sum,Namely the device and method made out an invoice by scraping award region recognition provided by the invention,By the draw a bill sensor 1 in direction of namely making out an invoice that is perpendicular to of at least one, the scraping award region namely made out an invoice is identified,The wavelength of infrared sensor is 940nm,Can accurate stable the scraping award region namely made out an invoice and non-scraping award region be distinguished,The initial array that the detection array of scraping award zone boundary point coordinates composition that namely what sensor 1 detected make out an invoice and the scraping award zone boundary point coordinates of namely making out an invoice of storage form compares,Can be compared by the difference of both each corresponding numerical value,Also can compare by the difference of first numerical value in each array Yu other numerical value,Namely the laying state made out an invoice can be required by device,Also the laying state namely made out an invoice can be not intended to,Apparatus structure advantages of simple,Method is run accurately rationally,Take into full account running status and the error of equipment,Judge rationally,Run stability,Precision is high.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every equivalents utilizing description of the present invention and accompanying drawing content to make, or directly or indirectly it is used in relevant technical field, all in like manner include in the scope of patent protection of the present invention.