CN108573567B - Paper money identification method and device - Google Patents

Paper money identification method and device Download PDF

Info

Publication number
CN108573567B
CN108573567B CN201710152849.4A CN201710152849A CN108573567B CN 108573567 B CN108573567 B CN 108573567B CN 201710152849 A CN201710152849 A CN 201710152849A CN 108573567 B CN108573567 B CN 108573567B
Authority
CN
China
Prior art keywords
paper money
data
banknote
current
banknote data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710152849.4A
Other languages
Chinese (zh)
Other versions
CN108573567A (en
Inventor
曹婧蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201710152849.4A priority Critical patent/CN108573567B/en
Publication of CN108573567A publication Critical patent/CN108573567A/en
Application granted granted Critical
Publication of CN108573567B publication Critical patent/CN108573567B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The embodiment of the invention discloses a paper money identification method and a device, wherein the method comprises the following steps: generating paper money data corresponding to each paper money according to the obtained at least one paper money; carrying out integrity detection on the current paper money data in the paper money channel; and if the current paper money data is incomplete, the paper money corresponding to the current paper money data is regarded as counterfeit money or waste paper money. The embodiment of the invention can improve the correct recognition rate of the paper money.

Description

Paper money identification method and device
Technical Field
The embodiment of the invention relates to a paper money detection technology, in particular to a paper money identification method and a device.
Background
Along with the development of economic prosperity, the circulation of paper money is larger and larger, and the circulation of the RMB is easier. Since the number of banknotes circulated on the market every day is very large, the identification work of the banknotes is increasingly heavy.
When a user withdraws money and deposits money, the authenticity of paper money needs to be verified. The data source corresponding to the paper money is acquired before verification, once partial data of the data source corresponding to a certain paper money is lost during transmission, the data sources corresponding to the remaining paper money are crossed to make mistakes, and when the authenticity is verified subsequently, the error rate is high, so that a large number of paper money is mistakenly judged as counterfeit money and returned or mistakenly judged as waste paper money, the waste paper money box is quickly full of the paper money, and the machine cannot run.
Disclosure of Invention
The embodiment of the invention provides a paper money identification method and device, which are used for improving the correct identification rate of paper money.
In a first aspect, an embodiment of the present invention provides a banknote identification method, including:
generating paper money data corresponding to each paper money according to the obtained at least one paper money;
carrying out integrity detection on the current paper money data in the paper money channel;
and if the current paper money data is incomplete, the paper money corresponding to the current paper money data is regarded as counterfeit money or waste paper money.
Further, the integrity check of the current banknote data in the banknote path includes:
coding each row of data corresponding to each paper currency by adopting a fixed line number;
detecting whether the line number of the current paper money data is missing or not;
and if the current banknote data is not missing, determining that the current banknote data is incomplete, and if the current banknote data is not missing, determining that the current banknote data is complete.
Further, before the integrity check is performed on the current banknote data in the banknote channel, the method further includes:
and the banknote data is encoded by adopting a fixed length, and the banknote data with the fixed length is obtained and used as the current banknote data.
Further, if there is a defect, after determining that the current banknote data is incomplete, the method further includes:
missing the incomplete data, and detecting the line number of the banknote data of the next banknote contained in the current banknote data;
acquiring banknote data continuous to the line number of the banknote data of the next banknote;
and splicing the included banknote data of the next banknote with the acquired banknote data with continuous line numbers to generate the banknote data of the next banknote which is in accordance with the fixed length and serves as the current banknote data.
Further, the method also comprises the following steps:
if the number of the paper money which is continuously identified as true paper money exceeds a preset paper threshold according to the spliced paper money data, judging whether the difference value between the obtained number of the paper money and the current serial number of the paper money is greater than the preset threshold;
if the time sequence is greater than or equal to the preset threshold, informing a Field Programmable Gate Array (FPGA) to correct the time sequence, and if the time sequence is less than the preset threshold, continuing executing the data splicing step.
Further, the integrity check of the current banknote data in the banknote path includes:
the paper money data is encoded by adopting a fixed length;
detecting whether the length of the current banknote data is equal to or less than the fixed length;
and if the length is smaller than the fixed length, determining that the current banknote data is incomplete, and if the length is equal to the fixed length, determining that the current banknote data is complete.
Further, the method also comprises the following steps:
and if the current paper money data is complete, performing authenticity identification according to the current paper money data.
Further, the method also comprises the following steps:
when the user deposit operation is determined, if the paper money is the counterfeit paper money, returning the counterfeit paper money to a paper money inlet, and if the paper money is the real paper money, putting the real paper money into a paper money storage box;
or when the user withdraws money, if the paper money is the waste paper money, the waste paper money is sent into a waste paper money box, and if the paper money is the real paper money, the real paper money is sent into a withdrawal port.
In a second aspect, an embodiment of the present invention further provides a banknote recognition apparatus, including:
the data generation module is used for generating paper money data corresponding to each piece of paper money according to the obtained at least one piece of paper money;
the detection module is used for carrying out integrity detection on the current paper money data in the paper money channel;
and the paper currency distinguishing module is used for regarding the paper currency corresponding to the current paper currency data as counterfeit money or waste paper currency if the current paper currency data is incomplete.
Further, the detection module comprises:
the first coding unit is used for coding each row of data corresponding to each paper currency by adopting a fixed row number;
the first row number detection unit is used for detecting whether the row number of the current paper money data is missing or not;
and the first determining unit is used for determining that the current banknote data is incomplete if the current banknote data is missing, and determining that the current banknote data is complete if the current banknote data is not missing.
Further, the method also comprises the following steps:
the first acquisition unit is used for encoding the banknote data with a fixed length before integrity detection is carried out on the current banknote data in the banknote channel, and acquiring the banknote data with the fixed length as the current banknote data.
Further, the method also comprises the following steps:
the second line number detection unit is used for losing the incomplete data after determining that the current banknote data is incomplete if the current banknote data is missing, and detecting the line number of the banknote data of the next banknote contained in the current banknote data;
a second acquisition unit configured to acquire banknote data consecutive to a line number of the banknote data of the next banknote included;
and the splicing unit is used for splicing the included banknote data of the next banknote with the acquired banknote data with continuous line numbers to generate the banknote data of the next banknote in accordance with the fixed length as the current banknote data.
Further, the method also comprises the following steps:
the judging unit is used for judging whether the difference value between the acquired number of the paper money and the serial number of the current paper money is greater than a preset threshold value or not if the number of the paper money which is recognized as the genuine paper money according to the spliced paper money data continuously exceeds the preset paper threshold value;
and the correction unit is used for informing the field programmable gate array FPGA to carry out time sequence correction if the correction value is greater than or equal to the preset threshold value, and continuing executing the data splicing step if the correction value is less than the preset threshold value.
Further, the detection module comprises:
the second coding unit is used for coding the banknote data by adopting a fixed length;
a length detection unit for detecting whether the length of the current banknote data is equal to or less than the fixed length;
a second determining unit, configured to determine that the current banknote data is incomplete if the length is smaller than the fixed length, and determine that the current banknote data is complete if the length is equal to the fixed length.
Further, the method also comprises the following steps:
and the authenticity identification module is used for carrying out authenticity identification according to the current paper money data if the current paper money data is complete.
Further, the method also comprises the following steps:
the first paper money processing module is used for returning the counterfeit paper money to a paper money inlet if the paper money is the counterfeit paper money and putting the real paper money into a paper money storage box if the paper money is the real paper money when the user deposit operation is determined;
and the second paper money processing module is used for sending the waste paper money into a waste paper money box if the paper money is determined to be the user money withdrawing operation, and sending the real paper money into a money withdrawing port if the paper money is the real paper money.
The embodiment of the invention generates the paper money data corresponding to each paper money according to at least one piece of acquired paper money to carry out integrity detection on the current paper money data in the paper money channel, if the current paper money data is incomplete, the paper money corresponding to the current paper money data is regarded as counterfeit money or waste paper money, the situation that the machine cannot operate due to the fact that the data sources corresponding to the remaining paper money are crossed and mistakenly mistaken due to the fact that the acquired paper money data is incomplete and the error rate is high when the counterfeit paper money is verified subsequently and is judged to be counterfeit money or mistaken for waste paper money is avoided, and the situation that the machine cannot operate due to the fact that a large number of paper money is mistakenly judged to be counterfeit money and returned or mistakenly.
Drawings
FIG. 1 is a flow chart of a banknote recognition method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a banknote recognition method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a banknote recognition apparatus according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a banknote recognition method according to an embodiment of the present invention, where the present embodiment is applicable to a banknote recognition situation, and the method may be executed by a banknote recognition apparatus according to an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
and S110, generating bill data corresponding to each bill according to the acquired at least one bill.
The at least one piece of paper money comprises paper money obtained from a paper money outlet box during withdrawal and/or paper money obtained from a paper money inlet during deposit.
Optionally, before performing integrity check on the current banknote data in the banknote channel, the method further includes:
and the banknote data is encoded by adopting a fixed length, and the banknote data with the fixed length is obtained and used as the current banknote data.
Wherein the fixed length may be 1, 2, 3, …, N (N is a fixed length).
Specifically, the banknote data with the banknote data length N is acquired as the current banknote data. That is, the current banknote data is N lines in total.
The banknote data is stored and detected in units of sheets, and the specific data format is shown as table one:
watch 1
Figure GDA0002488276640000071
The first line of data of one piece of banknote data is frame header data, the banknote data can be determined to be the several pieces of banknote data through the frame header data, in the first table, the first column is an acquisition line number, and data acquired by each line.
Specifically, if a user withdraws money through a large-amount machine, paper money is obtained from a paper money box, and paper money data corresponding to the paper money needing to be taken out is obtained through a sensor. If the user deposits money through the large-amount machine, the paper money is obtained from the money inlet, and the paper money data corresponding to the paper money needing to be deposited is obtained through the sensor.
And S120, carrying out integrity detection on the current banknote data in the banknote channel.
The method comprises the steps of detecting the data frame format of current paper money data in a paper money channel (the data frame format is determined by a communication protocol established between an FPGA and a DSP).
Optionally, the integrity checking of the current banknote data in the banknote channel includes:
coding each row of data corresponding to each paper currency by adopting a fixed line number;
and encoding each row of data corresponding to each piece of paper money by adopting a fixed line number, namely encoding each row of data by acquiring the line number. For example, each line of data corresponding to each banknote may be encoded using a fixed line number, and each line of data may be encoded using acquisition line numbers 1, 2, 3, …, and N, respectively. That is, each row of data is encoded in the format of 1, 2, 3, …, N (N is the total number of collected rows of data collection).
Specifically, normally, the number of the collected line of one piece of banknote data is 1, 2, 3, …, N, that is, the banknote data whose number of the collected line of banknote data is 1, 2, 3, …, N is the complete banknote data.
Detecting whether the line number of the current paper money data is missing or not;
the missing refers to whether the line number of the banknote data is missing, for example, the line number of the banknote data is 1, 2 or 3 under normal conditions, and the line number of the current banknote data is 1 or 2, which indicates that the line number of the banknote data is missing; if the line number of the current banknote data is 1, 2 or 3, it is indicated that the line number of the banknote data is not missing.
And if the current banknote data is not missing, determining that the current banknote data is incomplete, and if the current banknote data is not missing, determining that the current banknote data is complete.
Specifically, if the line number of the banknote data is missing, the banknote data is incomplete; and if the line number of the paper money data is not missing, the paper money data is complete.
Optionally, the integrity checking of the current banknote data in the banknote channel includes:
the paper money data is encoded by adopting a fixed length;
the fixed length is the total collected line number under the condition that the data of one banknote is complete.
Detecting whether the length of the current banknote data is equal to or less than the fixed length;
specifically, the length of the number of collected lines of the current banknote data is detected, and the length of the current banknote data is compared with the length of the collected banknote data under the condition that the data of one banknote is complete.
And if the length is smaller than the fixed length, determining that the current banknote data is incomplete, and if the length is equal to the fixed length, determining that the current banknote data is complete.
Specifically, if the length of the current banknote data is smaller than the length of the collected banknote data under the condition that the data of one banknote is complete, it is determined that the current banknote data is incomplete. And if the length of the current paper money data is equal to the length of the collected paper money data under the condition that the data of one paper money is complete, determining that the data of the current paper money is complete.
And S130, if the current banknote data is incomplete, regarding the banknote corresponding to the current banknote data as a counterfeit banknote or a waste banknote.
Wherein, the incomplete current banknote data refers to incomplete collection line number of the banknote data.
Specifically, normally, the number of the collected line of one piece of banknote data is 1, 2, or 3 … N, and if the number of the collected line of banknote data is not 1, 2, 3, …, or N, it indicates that the current banknote data is incomplete. For example, when N is equal to 1386, if the collection line number of the banknote data is 1, 2, 3, …, 1386, the banknote data is complete; if the banknote data is 1, 2, 3, …, 1376, 1, …, 10, it means that the banknote data is incomplete. As shown in table two:
watch two
Figure GDA0002488276640000091
Specifically, the table two is an incomplete banknote data, in the table two, the collected line numbers 1, 2, 3, …, 1376 are one piece of banknote data, and the collected line numbers of the complete banknote data should be 1, 2, 3, …, 1386, that is, the collected line numbers of the banknote data shown in the table two lack the data of the line numbers 1377, …, 1386. Thus, the data shown in table two is incomplete banknote data. If the banknote data is incomplete, the banknote with incomplete banknote data is considered as counterfeit banknote or waste banknote when the authenticity of the banknote is identified through the banknote data.
Optionally, the method further includes:
and if the current paper money data is complete, performing authenticity identification according to the current paper money data.
Specifically, if the collected data is complete, the collected data is detected, and the authenticity of the paper money is judged according to the detection result of the paper money data.
Optionally, the method further includes:
when the user deposit operation is determined, if the paper money is the counterfeit paper money, returning the counterfeit paper money to a paper money inlet, and if the paper money is the real paper money, putting the real paper money into a paper money storage box;
or when the user withdraws money, if the paper money is the waste paper money, the waste paper money is sent into a waste paper money box, and if the paper money is the real paper money, the real paper money is sent into a withdrawal port.
According to the technical scheme, the integrity of the current paper money data in the paper money channel is detected according to the paper money data corresponding to at least one piece of obtained paper money, if the current paper money data is incomplete, the paper money corresponding to the current paper money data is regarded as counterfeit money or waste paper money, the situation that a machine cannot operate due to the fact that a data source corresponding to the remaining paper money is crossed and wrong due to the fact that the obtained paper money data is incomplete and the error rate is high when the data source is verified to be true or false is high, and therefore a large amount of paper money is mistakenly judged as counterfeit money and is returned or mistakenly judged as waste paper money, and a waste paper money box is quickly full of the paper money can be avoided, and the correct recognition rate of the.
Example two
Fig. 2 is a flowchart of a banknote recognition method in a second embodiment of the present invention, which is optimized based on the above embodiment, and in this embodiment, integrity detection of current banknote data in a banknote channel is further refined.
As shown in fig. 2, the method of this embodiment specifically includes the following steps:
and S210, generating bill data corresponding to each bill according to the acquired at least one bill.
And S220, coding the banknote data by adopting a fixed length, and acquiring the banknote data with the fixed length as the current banknote data.
And S230, coding each row of data corresponding to each paper currency by adopting a fixed row number.
And S240, detecting whether the line number of the current banknote data is missing or not.
If yes, executing S241; if there is no missing, step S242 is executed.
And S241, determining that the current banknote data is incomplete.
And S242, determining that the current banknote data is complete.
S250, losing the incomplete data, and detecting the row number of the banknote data of the next banknote included in the current banknote data.
The incomplete data refers to the banknote data with lost row number of the banknote data or the banknote data with the length smaller than the fixed length.
Specifically, the incomplete data indicates that the banknote data of the collected banknote nos. 1, 2, 3, …, 1376 are incomplete as shown in table two, the banknote data of the collected banknote nos. 1, 2, 3, …, 1376 are lost, and the serial number of the banknote data of the next banknote included in the current banknote data is detected, that is, the banknote data of the collected banknote nos. 1, …, 10 are shown in table two.
Specifically, whether the acquisition line number of the error line is 1 or not is detected, and if the acquisition line number of the error line is 1, the current line data is stated to be frame header data, that is, the error line data is stated to be frame header data of another piece of paper money data.
And S260, acquiring the banknote data continuous to the row number of the banknote data of the next banknote.
And the next paper currency is next paper currency next to the current paper currency in the paper currency channel.
In a specific example, if the current banknote data is as shown in table two, the banknote data of the next banknote next to the current banknote in the channel is as shown in table three:
watch III
Figure GDA0002488276640000111
Figure GDA0002488276640000121
The data of the collected line numbers 1, …, and 10 in the second table are the first ten lines of banknote data of the next banknote data, and the data of the collected line numbers 11, …, and 1386 in the third table are the remaining data of the next banknote data. The remaining data for collection line numbers 1, …, 10 in table three are banknote data for the next banknote next to the next banknote in the lane.
And S270, splicing the included banknote data of the next banknote with the acquired banknote data with continuous line numbers to generate banknote data of the next banknote according with the fixed length as the current banknote data.
Specifically, if the current banknote data is as shown in table two and the banknote data of the banknote next to the current banknote in the banknote path is as shown in table three, the data of the collection line numbers 1, …, 10 in table two and the data of the collection line numbers 11, …, 1386 in table three may be concatenated to generate the banknote data of the banknote next to the fixed length as the current banknote data.
And S280, if the current banknote data is incomplete, regarding the banknote corresponding to the current banknote data as a counterfeit banknote or a waste banknote.
In a specific example, data frame format detection is carried out on received data (the data frame format is defined by a communication protocol established between the FPGA and the DSP); the first line of data of one data is frame header data, the first column is acquisition line number, and the acquisition line number is 1, 2, 3, … and N (N is the total acquisition line number of data acquisition). When the frame information of the data is detected, if the error condition of the acquisition line number is met, whether the acquisition line number of the error line is 1 is detected, and if the acquisition line number of the error line is 1, the current line data is the frame header data, namely the frame header data of the next piece of paper money data is indicated by the error action. And if the acquisition line number of the error line is not 1, indicating that the current line data is not the frame header data, and not performing data splicing. If the error action is the frame head data, the line data is stored to the end column data. And detecting whether the first line acquisition line number of the second data can be continuous with the last line acquisition ending number. And judging whether the data of the wrong row number frame head of the piece of data is at the same position as the previous piece of data, if so, splicing the data of the latter half of the previous piece of data with the data of the previous half of the previous piece of data, judging whether the data of the latter half of the previous piece of data is the same piece of data, and simultaneously carrying out counterfeit identification on the spliced data.
Optionally, the method further includes:
if the number of the paper money which is continuously identified as true paper money exceeds a preset paper threshold according to the spliced paper money data, judging whether the difference value between the obtained number of the paper money and the current serial number of the paper money is greater than the preset threshold;
the number of the acquired paper money can be the number of withdrawn paper or the number of deposited paper. If the acquired number of the banknotes is the number of the banknotes when the user withdraws the banknotes, the banknotes can be acquired through the amount of the banknotes input by the user. If the obtained number of the paper money is the number of the paper money deposited by the user, the number of the paper money deposited by the user can be obtained firstly, and then the paper money can be identified.
Specifically, if the number of the paper sheets continuously identified as true paper money exceeds a preset paper threshold value according to the spliced paper money data, the situation that the machine cannot run due to the fact that the data source corresponding to the remaining paper money is crossed and wrong due to the fact that the obtained paper money data are incomplete can be effectively prevented through splicing the paper money data, when the truth is verified subsequently, the error rate is high, a large number of paper money is mistakenly judged as false paper money and returned or mistakenly judged as waste paper money, and therefore the waste paper money box is quickly full of the paper money box.
If the time sequence is greater than or equal to the preset threshold, informing a Field Programmable Gate Array (FPGA) to correct the time sequence, and if the time sequence is less than the preset threshold, continuing executing the data splicing step.
And sending the instruction of the time sequence to be corrected to the FPGA, and correcting the time sequence by the FPGA.
Specifically, if the difference between the acquired number of banknotes and the current serial number of the banknotes is greater than or equal to the preset threshold, it indicates that a lot of banknotes need to process the banknote data, and the FPGA can be notified to perform timing correction, so as to solve the problem fundamentally.
In a specific example, if 5 pieces of abnormal condition data are continuously generated and the splicing data are true banknotes at the same time, judging whether the difference value between the number of withdrawn banknotes and the serial number of the current banknotes is greater than 10; if the difference is less than 10, continuing to process according to the third step; and if the difference value is larger than 10, adjusting and correcting the FPGA sending time sequence.
According to the technical scheme of the embodiment, under the condition that the current banknote data is incomplete, incomplete data is lost, the line number of the banknote data of the next banknote included in the current banknote data is detected, the banknote data continuous with the line number of the banknote data of the next banknote included is acquired, the banknote data of the next banknote included and the acquired banknote data continuous with the line number are spliced, and the banknote data of the next banknote conforming to the fixed length is generated and serves as the current banknote data. The situation that the machine cannot run due to the fact that a waste paper money box is full quickly and the false identification rate of the paper money can be improved is avoided.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a banknote recognition apparatus according to a third embodiment of the present invention. The present embodiment may be applicable to the case of banknote recognition, the system may be implemented in a software and/or hardware manner, and the system may be integrated in any device for raising banknote recognition, as shown in fig. 3, where the banknote recognition apparatus specifically includes: a data generation module 310, a detection module 320, and a banknote discrimination module 330.
The data generating module 310 is configured to generate banknote data corresponding to each banknote according to the acquired at least one banknote;
the detection module 320 is used for carrying out integrity detection on the current banknote data in the banknote channel;
the banknote discriminating module 330 is configured to, if the current banknote data is incomplete, regard a banknote corresponding to the current banknote data as a counterfeit banknote or a waste banknote.
Optionally, the detecting module 320 includes:
the first coding unit is used for coding each row of data corresponding to each paper currency by adopting a fixed row number;
the first row number detection unit is used for detecting whether the row number of the current paper money data is missing or not;
and the first determining unit is used for determining that the current banknote data is incomplete if the current banknote data is missing, and determining that the current banknote data is complete if the current banknote data is not missing.
Optionally, the method further includes:
the first acquisition unit is used for encoding the banknote data with a fixed length before integrity detection is carried out on the current banknote data in the banknote channel, and acquiring the banknote data with the fixed length as the current banknote data.
Optionally, the method further includes:
the second line number detection unit is used for losing the incomplete data after determining that the current banknote data is incomplete if the current banknote data is missing, and detecting the line number of the banknote data of the next banknote contained in the current banknote data;
a second acquisition unit configured to acquire banknote data consecutive to a line number of the banknote data of the next banknote included;
and the splicing unit is used for splicing the included banknote data of the next banknote with the acquired banknote data with continuous line numbers to generate the banknote data of the next banknote in accordance with the fixed length as the current banknote data.
Optionally, the method further includes:
the judging unit is used for judging whether the difference value between the acquired number of the paper money and the serial number of the current paper money is greater than a preset threshold value or not if the number of the paper money which is recognized as the genuine paper money according to the spliced paper money data continuously exceeds the preset paper threshold value;
and the correction unit is used for informing the field programmable gate array FPGA to carry out time sequence correction if the correction value is greater than or equal to the preset threshold value, and continuing executing the data splicing step if the correction value is less than the preset threshold value.
Optionally, the detecting module 320 includes:
the second coding unit is used for coding the banknote data by adopting a fixed length;
a length detection unit for detecting whether the length of the current banknote data is equal to or less than the fixed length;
a second determining unit, configured to determine that the current banknote data is incomplete if the length is smaller than the fixed length, and determine that the current banknote data is complete if the length is equal to the fixed length.
Optionally, the method further includes:
and the authenticity identification module is used for carrying out authenticity identification according to the current paper money data if the current paper money data is complete.
Optionally, the method further includes:
the first paper money processing module is used for returning the counterfeit paper money to a paper money inlet if the paper money is the counterfeit paper money and putting the real paper money into a paper money storage box if the paper money is the real paper money when the user deposit operation is determined;
and the second paper money processing module is used for sending the waste paper money into a waste paper money box if the paper money is determined to be the user money withdrawing operation, and sending the real paper money into a money withdrawing port if the paper money is the real paper money.
According to the technical scheme, the integrity of the current paper money data in the paper money channel is detected according to the paper money data corresponding to at least one piece of obtained paper money, if the current paper money data is incomplete, the paper money corresponding to the current paper money data is regarded as counterfeit money or waste paper money, the situation that a machine cannot operate due to the fact that a data source corresponding to the remaining paper money is crossed and wrong due to the fact that the obtained paper money data is incomplete and the error rate is high when the data source is verified to be true or false is high, and therefore a large amount of paper money is mistakenly judged as counterfeit money and is returned or mistakenly judged as waste paper money, and a waste paper money box is quickly full of the paper money can be avoided, and the correct recognition rate of the.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. A banknote recognition method, comprising:
generating paper money data corresponding to each paper money according to the obtained at least one paper money;
carrying out integrity detection on the current paper money data in the paper money channel;
if the current paper money data is incomplete, the paper money corresponding to the current paper money data is regarded as counterfeit money or waste paper money;
the integrity check of the current banknote data in the banknote path includes:
coding each row of data corresponding to each paper currency by adopting a fixed line number;
detecting whether the line number of the current paper money data is missing or not;
if the current banknote data is missing, determining that the current banknote data is incomplete, and if the current banknote data is not missing, determining that the current banknote data is complete;
if the current banknote data is missing, after the current banknote data is determined to be incomplete, the method further comprises the following steps:
missing the incomplete data, and detecting the line number of the banknote data of the next banknote contained in the current banknote data;
acquiring banknote data continuous to the line number of the banknote data of the next banknote;
and splicing the included banknote data of the next banknote with the acquired banknote data with continuous line numbers to generate the banknote data of the next banknote which is in accordance with the fixed length and serves as the current banknote data.
2. The method of claim 1, further comprising, prior to integrity checking current banknote data in the banknote path:
and the banknote data is encoded by adopting a fixed length, and the banknote data with the fixed length is obtained and used as the current banknote data.
3. The method of claim 1, further comprising:
if the number of the paper money which is continuously identified as true paper money exceeds a preset paper threshold according to the spliced paper money data, judging whether the difference value between the obtained number of the paper money and the current serial number of the paper money is greater than the preset threshold;
if the time sequence is greater than or equal to the preset threshold, informing a Field Programmable Gate Array (FPGA) to correct the time sequence, and if the time sequence is less than the preset threshold, continuing executing the data splicing step.
4. The method of claim 1, wherein integrity checking current banknote data in the banknote path comprises:
the paper money data is encoded by adopting a fixed length;
detecting whether the length of the current banknote data is equal to or less than the fixed length;
and if the length is smaller than the fixed length, determining that the current banknote data is incomplete, and if the length is equal to the fixed length, determining that the current banknote data is complete.
5. The method according to any one of claims 1-4, further comprising:
and if the current paper money data is complete, performing authenticity identification according to the current paper money data.
6. The method according to any one of claims 1-4, further comprising:
when the user deposit operation is determined, if the paper money is the counterfeit paper money, returning the counterfeit paper money to a paper money inlet, and if the paper money is the real paper money, putting the real paper money into a paper money storage box;
or when the user withdraws money, if the paper money is the waste paper money, the waste paper money is sent into a waste paper money box, and if the paper money is the real paper money, the real paper money is sent into a withdrawal port.
7. A paper money discriminating apparatus characterized by comprising:
the data generation module is used for generating paper money data corresponding to each piece of paper money according to the obtained at least one piece of paper money;
the detection module is used for carrying out integrity detection on the current paper money data in the paper money channel;
the paper money distinguishing module is used for regarding the paper money corresponding to the current paper money data as counterfeit money or waste paper money if the current paper money data is incomplete;
the detection module comprises:
the first coding unit is used for coding each row of data corresponding to each paper currency by adopting a fixed row number;
the first row number detection unit is used for detecting whether the row number of the current paper money data is missing or not;
the first determining unit is used for determining that the current banknote data is incomplete if the current banknote data is missing, and determining that the current banknote data is complete if the current banknote data is not missing;
the second line number detection unit is used for losing the incomplete data after determining that the current banknote data is incomplete if the current banknote data is missing, and detecting the line number of the banknote data of the next banknote contained in the current banknote data;
a second acquisition unit configured to acquire banknote data consecutive to a line number of the banknote data of the next banknote included;
and the splicing unit is used for splicing the included banknote data of the next banknote with the acquired banknote data with continuous line numbers to generate the banknote data of the next banknote in accordance with the fixed length as the current banknote data.
8. The apparatus of claim 7, further comprising:
the first acquisition unit is used for encoding the banknote data with a fixed length before integrity detection is carried out on the current banknote data in the banknote channel, and acquiring the banknote data with the fixed length as the current banknote data.
9. The apparatus of claim 7, further comprising:
the judging unit is used for judging whether the difference value between the acquired number of the paper money and the serial number of the current paper money is greater than a preset threshold value or not if the number of the paper money which is recognized as the genuine paper money according to the spliced paper money data continuously exceeds the preset paper threshold value;
and the correction unit is used for informing the field programmable gate array FPGA to carry out time sequence correction if the correction value is greater than or equal to the preset threshold value, and continuing executing the data splicing step if the correction value is less than the preset threshold value.
10. The apparatus of claim 7, wherein the detection module comprises:
the second coding unit is used for coding the banknote data by adopting a fixed length;
a length detection unit for detecting whether the length of the current banknote data is equal to or less than the fixed length;
a second determining unit, configured to determine that the current banknote data is incomplete if the length is smaller than the fixed length, and determine that the current banknote data is complete if the length is equal to the fixed length.
11. The apparatus of any one of claims 7-10, further comprising:
and the authenticity identification module is used for carrying out authenticity identification according to the current paper money data if the current paper money data is complete.
12. The apparatus of any one of claims 7-10, further comprising:
the first paper money processing module is used for returning the counterfeit paper money to a paper money inlet if the paper money is the counterfeit paper money and putting the real paper money into a paper money storage box if the paper money is the real paper money when the user deposit operation is determined;
and the second paper money processing module is used for sending the waste paper money into a waste paper money box if the paper money is determined to be the user money withdrawing operation, and sending the real paper money into a money withdrawing port if the paper money is the real paper money.
CN201710152849.4A 2017-03-15 2017-03-15 Paper money identification method and device Active CN108573567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710152849.4A CN108573567B (en) 2017-03-15 2017-03-15 Paper money identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710152849.4A CN108573567B (en) 2017-03-15 2017-03-15 Paper money identification method and device

Publications (2)

Publication Number Publication Date
CN108573567A CN108573567A (en) 2018-09-25
CN108573567B true CN108573567B (en) 2020-08-18

Family

ID=63575820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710152849.4A Active CN108573567B (en) 2017-03-15 2017-03-15 Paper money identification method and device

Country Status (1)

Country Link
CN (1) CN108573567B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19781590T1 (en) * 1996-02-15 1999-06-17 Cummins Allison Corp Method and device for document identification and authentication
US8245076B2 (en) * 2008-12-23 2012-08-14 Ncr Corporation Method and apparatus for initiating corrective action for an electronic terminal
CN105096444B (en) * 2014-05-22 2017-11-07 浙江大学 A kind of paper banknote identifier IMAQ and data processing method and circuit
CN104574650A (en) * 2015-01-26 2015-04-29 上海古鳌电子科技股份有限公司 Sorting method

Also Published As

Publication number Publication date
CN108573567A (en) 2018-09-25

Similar Documents

Publication Publication Date Title
CN102324132B (en) Bank-note detecting method by identifying ultraviolet-light image and system
CN102930633A (en) Financial self-service device, as well as banknote recognition module and recognition method thereof
RU2007104702A (en) METHOD FOR CONFIRMING BANKNOTES RECEIPT SOURCE
CN107038794B (en) Method, device and equipment for identifying authenticity of paper money and storage medium
AU2011288070B2 (en) Valuable document identification method and identification system thereof
CN107316373B (en) A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN105243732A (en) Filtering method and system of sensor information during banknote information
JP6342739B2 (en) Paper sheet identification apparatus, paper sheet processing apparatus, and paper sheet identification method
CN108573567B (en) Paper money identification method and device
CN103440701A (en) Method and device for detecting magnetic signal of paper money
CN107909747B (en) Method and device for acquiring paper money information and terminal equipment
CN108198326B (en) Method and device for transmitting paper money data, electronic equipment and storage medium
CN103489255A (en) Device and method for detecting defect of bank note
RU2343545C2 (en) Machine for processing of bank notes and method for identification of counterfeit bank notes
CN107358759B (en) Clearing method and system of financial self-service equipment, terminal equipment and storage medium
CN107767192B (en) Electronic bill verification method, device and system
CN102610031B (en) Self-service equipment banknote recovery system and recovery method
CN105917393B (en) Method and system for processing value documents
CN106340115B (en) Method and device for identifying serial number of paper money
CN108230534B (en) Paper money identification method and device for ATM equipment, ATM equipment and storage medium
CN106875561B (en) Method and device for determining paper money recycling information in self-service equipment
KR101857186B1 (en) Media processing apparatus and media processing method
CN111898123B (en) Malicious operation identification method, device, equipment and readable storage medium
CN107958535B (en) Method and device for acquiring paper money information and terminal equipment
CN107170111B (en) Control method and device for reducing waste paper money

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant