Automatic correction method and system for missing teeth of code disc of currency counting and detecting machine
Technical Field
The invention relates to the technical field of counterfeit prevention of currency counting and detecting machines, in particular to an automatic correction method and system after a code wheel of a currency counting and detecting machine is lack of teeth.
Background
The code wheel of the cash register controls the flow speed of the paper money by the matching of the counter rotating wheel and the flat wheel in the magnetic head plate, so that the time quantum before and after the paper money is calculated, the size of the breadth of the paper money is identified, and the code wheel measures the angular displacement. The device is an important tool for recording the running state and running distance of the bank notes; the precision of each tooth of the coded disc is usually about one millimeter, if the coded disc is lack of teeth, the stable operation of the currency counting and detecting machine is greatly influenced, frequent false alarm is caused, the currency counting and detecting machine cannot be normally used, and the after-sale cost is greatly improved.
At present, the currency counting and detecting machine mainly uses an optical coupling code disc, the principle is that a lamp irradiates towards a receiving sensor, uniform teeth are distributed on the code disc, and the receiving sensor determines a high-low battery jar of a signal through whether light exists or not so as to obtain a signal of code disc jumping. The main reasons for the missing teeth of the code wheel sensor are 2, one is that the teeth on the code wheel are missing, the other is caused by the dust accumulation between the gears due to long-time use, particularly, the second type has more situations in practice, the situation is not true missing teeth, but the dust accumulation between the gears causes that the receiving sensor cannot receive optical signals. When similar problems occur, due to inaccurate spacing of the currency counting and detecting machine, the false alarm of the denomination recognition algorithm and the false identification algorithm can be caused, the stability of the machine is influenced, and then, after-sales personnel need to go to the site to clean dust. It can be understood that when the situation occurs, after-sales personnel are required to go to the customer for sale in person, time cost and economic cost are increased, in addition, in the long-term operation process of the currency counting and detecting machine, due to the reasons of different environments, different humidity and the like, the dust deposition problem is inevitable, and if slight dust deposition occurs, the machine quality can be questioned by the customer, and the customer experience is influenced.
Disclosure of Invention
In view of the problem that the currency counting and detecting machine cannot be used under the conditions of slight dust accumulation and small number of missing teeth of the coded disc of the currency counting and detecting machine, an automatic correction method and an automatic correction system for the currency counting and detecting machine after the coded disc is lost are provided, which overcome the problems or at least partially solve the problems.
The technical scheme provided by the invention is as follows:
an automatic correction method for a currency counting and detecting machine after a code disc is lost comprises the following steps:
s100, acquiring the standard code disc sampling rate of the cash register, and acquiring the sampling rate of a single code disc in a normal state in a self-learning mode;
s200, searching for an abnormal coded disc cash register, traversing the coded disc sampling rate of the cash register to be inspected, judging the relation between the current code disc sampling rate and the standard coded disc sampling rate, and judging that the current cash register is the abnormal coded disc cash register when the coded disc sampling rate of the cash register to be inspected is N times of the standard coded disc sampling rate, wherein N is an integer greater than 1;
s300, judging the number of the lost abnormal code discs, and acquiring the number of the lost abnormal code discs as N-1 when the sampling rate of the code discs of the currency detector to be detected and the sampling rate of the standard code discs are N times;
s400, repairing code discs of the abnormal cash register, separating the abnormal code discs according to the missing number of the code discs, increasing the current serial number by N-1 according to the missing number N-1 of the abnormal code discs, and achieving the purpose of repairing the code discs of the abnormal cash register.
Further, the sampling rate of the standard code disc of the currency counting and detecting machine can be led in from the outside.
Further, when the sampling rate of the code wheel of the currency detector to be detected is abnormal, whether the sampling rate of the code wheel before and after the current abnormal sampling rate mark point is near the standard sampling rate needs to be judged.
Further, the median of the number of sampling points of the code disc can be used as the standard code disc sampling rate by counting the number of times of the code disc in one revolution of the code disc of the currency counting and detecting machine.
Further, the standard code wheel sampling rate is 8.
The invention also discloses an automatic correction system of the currency counting and detecting machine after the code disc is lost, which is characterized by comprising the following components: the device comprises a code disc sampling rate acquisition module, an abnormal code disc judgment module and an automatic correction module; wherein,
the coded disc sampling rate acquisition module is used for acquiring the coded disc sampling rate of a standard cash register and the coded disc sampling rate of a cash detector to be detected;
the abnormal coded disc judging module is used for receiving the sampling rate of a coded disc of a standard cash register and the sampling rate of a coded disc of a cash register to be detected, judging the relation between the sampling rate of the coded disc of the current cash register and the sampling rate of the standard coded disc, and judging that the current cash register is an abnormal coded disc cash register when the sampling rate of the coded disc of the cash register to be detected is N times of the sampling rate of the standard coded disc, wherein N is an integer greater than 1;
the algorithm processing module is used for acquiring the number of the current abnormal code discs lost to be N-1 according to the code disc sampling rate of the currency detector to be detected and N times of the standard code disc sampling rate;
and the automatic correction module separates the abnormal code discs according to the missing number of the code discs, increases the current serial number by N-1 according to the missing number N-1 of the abnormal code, and achieves the purpose of repairing the code discs of the abnormal cash register.
Further, the standard code disc sampling rate can be obtained by self-learning of the code disc sampling rate acquisition module, and the median of the number of code disc sampling points in one revolution of the code disc of the currency counting and detecting machine can be counted to serve as the standard code disc sampling rate.
Further, the standard code wheel sampling rate may be imported directly from the outside.
Further, when the abnormal code wheel judging module obtains that the sampling rate of the code wheel of the currency detector of the point to be detected is abnormal, the abnormal code wheel judging module needs to judge whether the sampling rates of the code wheel before and after the current abnormal sampling rate marking point are near the standard sampling rate.
Compared with the prior art, the invention at least has the following beneficial effects:
according to the automatic correction method and system for the currency counting and detecting machine after the coded disc is lost, when the currency counting and detecting machine is slightly abnormal, such as slight dust accumulation and small number of teeth missing of the coded disc, the missing coded disc can be automatically corrected, the currency counting and detecting machine can normally work, severe adverse reactions of the machine due to small problems can be avoided, the after-sale cost is reduced, and the customer experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of an automatic correction method of a currency counting and detecting machine after a code disc is lost in embodiment 1 of the present invention;
FIG. 2 is a waveform signal diagram of a currency counting and detecting machine in the absence of a code wheel in embodiment 1 of the invention;
fig. 3 is a signal diagram of a normal waveform after the banknote counting and detecting machine is repaired in embodiment 1 of the present invention.
Detailed Description
Example 1
The embodiment discloses an automatic correction method of a currency counting and detecting machine after a code disc is lost, as shown in fig. 1, the method comprises the following steps:
s100, acquiring the standard code disc sampling rate of the cash register, and acquiring the sampling rate of a single code disc in a normal state in a self-learning mode;
specifically, in order to avoid the uncertainty of the sampling rate caused by the change of the rotating speed equipment, the median value of the sampling points of the code disc in one revolution of the code disc of the counting and currency detecting machine can be counted to be used as the standard code disc sampling rate. In this example, the self-learning method is not limited, and a neural network algorithm may be adopted by counting the average value of a large number of standard code disc sampling rates. In some preferred embodiments, the standard horse-disk sampling rate may also be imported directly from the outside.
S200, searching for an abnormal coded disc cash register, traversing the coded disc sampling rate of the cash register to be inspected, judging the relation between the current code disc sampling rate and the standard coded disc sampling rate, and judging that the current cash register is the abnormal coded disc cash register when the coded disc sampling rate of the cash register to be inspected is N times of the standard coded disc sampling rate, wherein N is an integer greater than 1;
in some preferred embodiments, in order to avoid erroneous operation of obtaining an abnormal code disc cash register when the cash counter is stopped or started for sampling, when the code disc sampling rate of the cash counter to be detected is abnormal, it is further required to judge whether the code disc sampling rate before and after the current abnormal sampling rate marking point is near the standard sampling rate. And only when the sampling rates of the front code wheel and the rear code wheel of the current abnormal sampling rate marking point are near the standard sampling rate, the code wheel of the current currency counting machine can be judged to be an abnormal code wheel.
For better understanding of the present embodiment, fig. 2 is a waveform signal diagram when the code wheel of the currency counting and detecting machine is missing. FIG. 2 is a one-dimensional waveform diagram of a code wheel with missing teeth, wherein the x-axis of the signal diagram represents time-sequential sampling points, and the y-axis represents the serial number of the code wheel. In the right ascending image, when the X axis completes one complete sampling, the serial number of the Y axis code wheel is increased by one, in some preferred embodiments, the standard sampling rate is 8, when the X axis completes 8 sampling points once, the serial number of the Y axis is increased by 1, as can be seen from fig. 2, there is a time that passes for a longer time but no change on the Y axis, and the sampling rate before and after the current mark point is the same as the standard sampling rate, therefore, the current mark point is an abnormal code wheel sampling rate point, the current abnormal code wheel sampling rate is 16, therefore, the abnormal code wheel sampling rate is 2 times of the standard code wheel sampling rate, and at this time, the N value is 2.
S300, judging the number of the lost abnormal code discs, and acquiring the number of the lost abnormal code discs as N-1 when the sampling rate of the code discs of the currency detector to be detected and the sampling rate of the standard code discs are N times.
For better understanding of the present invention, specifically, as shown in fig. 2, when the abnormal code wheel sampling rate mark point Y-axis value is 100, the Y-axis value becomes 101 through 16 sampling points of the abnormal code wheel, and at this time, the correct Y-axis value should be 102 through the standard 8 sampling points, so that the abnormal code wheel causes the Y-axis value to lack 1. Therefore, the number of the obtained current abnormal code disc losses is 1. It can be understood that when the sampling rate of the abnormal code disc is 24, N is 3 at this time, and the number of the current abnormal code discs lost is 2. And other situations are not described any more, and the number of the abnormal code discs lost can be obtained by the method.
S400, repairing code discs of the abnormal cash register, separating the abnormal code discs according to the missing number of the code discs, increasing the current serial number by N-1 according to the missing number N-1 of the abnormal code discs, and achieving the purpose of repairing the code discs of the abnormal cash register.
Specifically, as shown in fig. 3, after the number of the missing abnormal code discs is obtained, the marked abnormal code discs in fig. 2 are separated, specifically, the number of the sampling points in fig. 2 is 16, the sampling points are separated into 2 sampling points with a sampling rate of 8, the obtained number 1 of the missing abnormal code discs is added into the serial number of the Y axis, for example, when the Y axis before the mark point of fig. 2 is 100, the Y axis is originally changed into 101 through the sampling point of the abnormal code disc, the sampling point of the abnormal code disc is separated, and at this time, the Y axis is changed into 101 and 102 through the sampling point of the abnormal code disc, so that the purpose of repairing the code disc of.
According to the automatic correction method for the lost code disc of the currency counting and detecting machine, when the currency counting and detecting machine is slightly abnormal, for example, slight dust accumulation exists, and the code disc is slightly missing, the lost code disc can be automatically corrected, so that the currency counting and detecting machine can normally work, severe adverse reactions can not occur due to slight problems of the machine, the after-sale cost is reduced, and the customer experience is improved.
Example 2
The embodiment provides an automatic correction system of a currency counting and detecting machine after a code disc is lost, which comprises: the device comprises a code disc sampling rate acquisition module, an abnormal code disc judgment module and an automatic correction module; wherein,
the coded disc sampling rate acquisition module is used for acquiring the coded disc sampling rate of a standard cash register and the coded disc sampling rate of a cash detector to be detected;
specifically, the sampling rate of a standard code disc of the cash register is obtained, and the sampling rate of a single code disc in a normal state is obtained in a self-learning mode;
specifically, in order to avoid the uncertainty of the sampling rate caused by the change of the rotating speed equipment, the median value of the sampling points of the code disc in one revolution of the code disc of the counting and currency detecting machine can be counted to be used as the standard code disc sampling rate. In this example, the self-learning method is not limited, and a neural network algorithm may be adopted by counting the average value of a large number of standard code disc sampling rates. In some preferred embodiments, the standard horse-disk sampling rate may also be imported directly from the outside.
The method comprises the steps of obtaining the sampling rate of a standard code disc of an abnormal cash register, traversing the sampling rate of a code disc of a cash detector to be detected, judging the relation between the sampling rate of the code disc of the current cash detector and the sampling rate of the standard code disc, and judging that the current cash register is the abnormal code disc cash register when the sampling rate of the code disc of the cash detector to be detected is N times of the sampling rate of the standard code disc, wherein N is an integer greater than 1;
in some preferred embodiments, in order to avoid erroneous operation of obtaining an abnormal code disc cash register when the cash counter is stopped or started for sampling, when the code disc sampling rate of the cash counter to be detected is abnormal, it is further required to judge whether the code disc sampling rate before and after the current abnormal sampling rate marking point is near the standard sampling rate. And only when the sampling rates of the front code wheel and the rear code wheel of the current abnormal sampling rate marking point are near the standard sampling rate, the code wheel of the current currency counting machine can be judged to be an abnormal code wheel.
The abnormal coded disc judging module is used for receiving the sampling rate of a coded disc of a standard cash register and the sampling rate of a coded disc of a cash register to be detected, judging the relation between the sampling rate of the coded disc of the current cash register and the sampling rate of the standard coded disc, and judging that the current cash register is an abnormal coded disc cash register when the sampling rate of the coded disc of the cash register to be detected is N times of the sampling rate of the standard coded disc, wherein N is an integer greater than 1;
in this embodiment, the specific derivation and the representative meaning of the N value are specifically described in embodiment 1, and this embodiment is not described in detail.
The algorithm processing module is used for acquiring the number of the current abnormal code discs lost to be N-1 according to the code disc sampling rate of the currency detector to be detected and N times of the standard code disc sampling rate;
in this embodiment, the specific process of the algorithm processing module obtaining the current number of missing abnormal code disks is described in detail in embodiment 1, and is not described again.
And the automatic correction module separates the abnormal code discs according to the missing number of the code discs, increases the current serial number by N-1 according to the missing number N-1 of the abnormal code, and achieves the purpose of repairing the code discs of the abnormal cash register.
In this embodiment, the specific process of the automatic correction module for correcting the specific process is described in detail in embodiment 1, and is not described again.
The automatic correction system of currency counting and detecting machine after code wheel loses that this embodiment provides, when currency counting and detecting machine appears a bit little unusual, for example under the circumstances of slight deposition, a small amount of missing tooth of code wheel, can automatic correction missing code wheel, it is that currency counting and detecting machine normally works to let the machine can not just appear violent adverse reaction because of a bit little problem, has reduced the after-sale cost, has promoted customer experience.
In the foregoing detailed description, various features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments of the subject matter require more features than are expressly recited in each claim. Rather, as the following claims reflect, invention lies in less than all features of a single disclosed embodiment. Thus the following claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
What has been described above includes examples of one or more embodiments. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the aforementioned embodiments, but one of ordinary skill in the art may recognize that many further combinations and permutations of various embodiments are possible. Accordingly, the embodiments described herein are intended to embrace all such alterations, modifications and variations that fall within the scope of the appended claims. Furthermore, to the extent that the term "includes" is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term "comprising" as "comprising" is interpreted when employed as a transitional word in a claim. Furthermore, any use of the term "or" in the specification of the claims is intended to mean a non-exclusive "or".