CN111311815A - Method and device for identifying crown word number, server and storage medium - Google Patents

Method and device for identifying crown word number, server and storage medium Download PDF

Info

Publication number
CN111311815A
CN111311815A CN202010180940.9A CN202010180940A CN111311815A CN 111311815 A CN111311815 A CN 111311815A CN 202010180940 A CN202010180940 A CN 202010180940A CN 111311815 A CN111311815 A CN 111311815A
Authority
CN
China
Prior art keywords
crown
crown word
word number
spectrogram
paper money
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.)
Granted
Application number
CN202010180940.9A
Other languages
Chinese (zh)
Other versions
CN111311815B (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 CN202010180940.9A priority Critical patent/CN111311815B/en
Publication of CN111311815A publication Critical patent/CN111311815A/en
Application granted granted Critical
Publication of CN111311815B publication Critical patent/CN111311815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/20Testing patterns thereon

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The invention discloses a crown word number identification method, a crown word number identification device, a server and a storage medium. The identification method of the crown word number comprises the following steps: acquiring a first spectrogram and a second spectrogram of the paper money; identifying a first crown number region in the first spectrogram to obtain a first crown number; identifying a second crown number region in the second spectrogram to obtain a second crown number; and confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number. The method solves the problem of accuracy rate of identifying the crown word number, realizes the effect of improving the accuracy rate of identifying the crown word number, and reduces the problem of low accuracy rate of identifying the crown word number caused by the reasons of fouling, altering, background interference, distressing, broken angle shielding and the like of the crown word number.

Description

Method and device for identifying crown word number, server and storage medium
Technical Field
The embodiment of the invention relates to a crown word number identification technology, in particular to a crown word number identification method, a crown word number identification device, a server and a storage medium.
Background
The crown word number on the paper money can play a role in controlling the amount of the money, and the country can accurately master the amount of the issued money by counting the number of the issued crown words; when disputes occur, the problems of difficult right maintenance and difficult tracing in the counterfeit money process of a consumer can be solved through the serial numbers of the paper money. Therefore, accurate identification of the prefix number is of great significance.
The existing scheme generally adopts a spectrogram with a single crown word number for identification, and has inevitable interference factors such as fouling, altering, background interference, depreciation, folding angle shielding and the like. These interference factors bring about a reduction in the recognition rate. The image is simply preprocessed in various ways from the algorithm, and although the recognition rate can be improved a little bit, the requirement that the recognition rate of the prefix number is higher and higher at present is not met.
Disclosure of Invention
The invention provides a method and a device for identifying a serial number, a server and a storage medium, which are used for realizing the effect of improving the accuracy of identifying the serial number of paper money.
In a first aspect, an embodiment of the present invention provides a method for identifying a crown word number, including:
acquiring a first spectrogram and a second spectrogram of the paper money;
identifying a first crown number region in the first spectrogram to obtain a first crown number;
identifying a second crown number region in the second spectrogram to obtain a second crown number;
and confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number.
Optionally, before acquiring the first spectrogram and the second spectrogram of the banknote, the method further includes:
acquiring the banknote information of the banknotes, wherein the banknote information comprises currency, version and/or face value;
the acquiring of the first spectrogram and the second spectrogram of the paper money further comprises:
and acquiring a first spectrogram and a second spectrogram of the paper currency according to the paper currency information.
Optionally, the obtaining the first spectrogram and the second spectrogram of the banknote according to the banknote information further includes:
judging whether the paper money is the paper money with the one-side crown word number or not according to the paper money information;
and if the paper money is the paper money with the single-side crown word number, defining the spectrogram with the clearest image in the crown word number region of the paper money with the single-side crown word number as the first spectrogram, and defining the spectrogram with the clearest image in the crown word number region of the paper money with the single-side crown word number which is only second to the first spectrogram as the second spectrogram.
Optionally, the obtaining the first spectrogram and the second spectrogram of the banknote according to the banknote information further includes:
judging whether the paper money is double-side crown word paper money or not according to the paper money information;
if the paper money is the paper money with the double-side crown word numbers, defining the most clear spectrogram of the area image of the first side crown word numbers of the paper money with the double-side crown word numbers as a first spectrogram, and defining the most clear spectrogram of the area image of the second side crown word numbers of the paper money with the double-side crown word numbers as a second spectrogram.
Optionally, when determining whether the banknote is a single-side crown word banknote according to the banknote information, the method further includes:
judging whether the paper money is paper money with crown word numbers on two sides and the attributes of the crown word numbers on the two sides are different according to the paper money information;
if the paper money is paper money with crown word numbers on two sides and the attributes of the crown word numbers on two sides are different, the obtaining of the target crown word number of the paper money according to the first crown word number and the second crown word number further comprises:
and converting the first crown word number or the second crown word number to obtain the first crown word number and the second crown word number with the same attribute, and obtaining the target crown word number of the paper money according to the first crown word number and the second crown word number with the same attribute.
Optionally, the obtaining the target crown word number of the banknote according to the first crown word number and the second crown word number further includes:
judging whether the characters of the first crown word number and the second crown word number are consistent;
if the characters of the first crown word number and the second crown word number are not consistent;
judging whether the number of the characters with the inconsistent first crown word number and the second crown word number is greater than a preset threshold value or not;
and if the number of the characters with the inconsistent first crown word number and the second crown word number is not larger than a preset threshold value, correcting the first crown word number and/or the second crown word number to obtain a target crown word number of the paper money.
Optionally, after determining whether the number of characters with the first crown number and the second crown number being inconsistent is greater than a preset threshold, the method further includes:
and if the number of the characters with the inconsistent first crown word number and the second crown word number is larger than a preset threshold value, prompting that the paper money is abnormal.
In a second aspect, an embodiment of the present invention further provides an apparatus for identifying a crown word number, including:
the acquisition module is used for acquiring a first spectrogram and a second spectrogram of the paper money;
the identification module is used for identifying a first crown number area in the first spectrogram to obtain a first crown number; identifying a second crown number region in the second spectrogram to obtain a second crown number;
and the target crown word number acquisition module is used for confirming the target crown word number of the paper money according to the first crown word number and the second crown word number.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement any of the above-described crown number identification methods.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any of the above-mentioned methods for identifying a crown number.
The invention obtains a first crown number by identifying a first crown number area in the first spectrogram; identifying a second crown number region in the second spectrogram to obtain a second crown number; and confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number, and identifying the crown word number by adopting two different spectrograms and/or two crown word number images in different areas, so that the problem of accuracy of crown word number identification is solved, the effect of improving the accuracy of crown word number identification is realized, and the problem of low crown word number identification rate caused by fouling, altering, background interference, distressing, broken angle shielding and the like of the crown word number is reduced.
Drawings
The foregoing and other features and advantages of embodiments of the present invention will become more apparent to those of ordinary skill in the art to which the present invention pertains by describing in detail exemplary embodiments thereof with reference to the attached drawings, wherein:
the foregoing and other features and advantages of embodiments of the present invention will become more apparent to those of ordinary skill in the art to which the present invention pertains by describing in detail exemplary embodiments thereof with reference to the attached drawings, wherein:
fig. 1 is a flowchart of a crown number identification method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a crown number identification method according to an alternative embodiment of the present invention;
fig. 3 is a flowchart of a crown number identification method according to a second embodiment of the present invention;
fig. 4 is a flowchart of a crown number identification method according to a third embodiment of the present invention;
fig. 5 is a flowchart of a crown number identification method according to a third embodiment of the present invention;
fig. 6 is a flowchart of a crown number identification method according to a fourth embodiment of the present invention;
fig. 7 is a flowchart of a crown number identification method according to a fourth embodiment of the present invention;
fig. 8 is a schematic diagram of a device for identifying a crown word number according to a fifth embodiment of the present invention;
fig. 9 is a schematic diagram of a server in the sixth embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and not restrictive thereof. It should also be noted that the described embodiments are only some embodiments, not all embodiments, of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the first crown number may be referred to as the second crown number, and similarly, the second crown number may be referred to as the first crown number, without departing from the scope of the present invention. The second crown number and the second crown number are both crown numbers, but are not the same crown number. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Example one
Fig. 1 is a flowchart of a method for identifying a crown word number according to an embodiment of the present invention, which specifically includes the following steps:
step 110, acquiring a first spectrogram and a second spectrogram of the paper money;
in this embodiment, the method further comprises acquiring a polychromatic spectrogram of the banknote before acquiring the first spectrogram and the second spectrogram of the banknote. In this embodiment, the spectrogram is a spectrogram of a crown-symbol feature region, and in other embodiments, the spectrogram may also be a spectrogram of the whole banknote. Specifically, the multicolor spectrogram is a transmission image or a reflection image of multicolor light, one light corresponds to one spectrogram, and the multicolor spectrogram comprises at least two spectrograms of light. Where polychromatic light is provided by different light sources, common types of light sources include: red, blue, green, infrared, and ultraviolet light. Acquiring transmission images of two polychromatic spectrums from the polychromatic spectrogram according to a preset rule; and the transmission images of the two multi-color spectrums are respectively defined as a first spectrogram and a second spectrogram.
Step 120, identifying a first crown number area in the first spectrogram to obtain a first crown number;
in this embodiment, the first spectrogram includes a first prefix number region, and the first prefix number can be obtained by identifying the first prefix number region in the first spectrogram. The first crown number area can be cut first to obtain the character information of each first crown number, and the character information is combined into the first crown numbers in sequence.
Step 130, identifying a second crown number area in the second spectrogram to obtain a second crown number;
in this embodiment, the second spectrogram includes a second prefix number region, and the second prefix number can be obtained by identifying the second prefix number region in the second spectrogram. The second crown number area can be cut first to obtain the character information of every two second crown numbers, and the character information is combined into the second crown numbers in sequence.
In this embodiment, the execution sequence of step 120 and step 130 may be arbitrary or may be performed simultaneously.
And 140, confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number.
In this embodiment, the target crown word number is the crown word number of the banknote finally confirmed. In particular, according to a first crown number and said second crown number
The technical scheme of the embodiment obtains a first crown number by identifying a first crown number area in the first spectrogram; identifying a second crown number region in the second spectrogram to obtain a second crown number; and confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number, and identifying the crown word number by adopting two different spectrograms and/or two crown word number images in different areas, so that the problem of accuracy of crown word number identification is solved, the effect of improving the accuracy of crown word number identification is realized, and the problem of low crown word number identification rate caused by fouling, altering, background interference, distressing, broken angle shielding and the like of the crown word number is reduced.
In an alternative embodiment, referring to fig. 2, in this embodiment, after acquiring the transmission map of the polychromatic spectrum, before acquiring the first and second spectral maps of the banknote, the method further includes:
and step 111, acquiring the paper money information of the paper money, wherein the paper money information comprises currency, version and/or face value.
In this embodiment, the banknote information may be acquired according to the image of the banknote by acquiring the image of the banknote. Specifically, the banknote information may be acquired by identifying a characteristic region of the banknote.
In this embodiment, the acquiring the first spectrogram and the second spectrogram of the banknote further includes:
and step 112, acquiring a first spectrogram and a second spectrogram of the paper currency according to the paper currency information.
Illustratively, when the information of the paper currency is different, the corresponding crown word number areas are different, and the definition degrees of different spectrograms are different, wherein the first spectrogram and the second spectrogram both comprise the crown word number of the paper currency. Specifically, after acquiring the banknote information, a first spectrogram and a second spectrogram are acquired from a transmission map of a polychromatic spectrum according to the banknote information. The first and second spectrograms can be different kinds of spectrograms in the region of the prefix number, and can also be spectrograms of the prefix number in different regions in other embodiments.
According to the technical scheme of the alternative embodiment, the first spectrogram and the second spectrogram of the paper money are obtained according to the paper money information, the problem that the difficulty in positioning and obtaining the first spectrogram and the second spectrogram is high is solved, the difficulty in positioning and obtaining the first spectrogram and the second spectrogram is reduced, and the accuracy in obtaining the first spectrogram and the second spectrogram is further improved.
Example two
The flow chart of the crown word number identification method provided by the second embodiment of the invention is shown in fig. 1, and specifically includes the following steps:
step 110, acquiring a first spectrogram and a second spectrogram of the paper money;
step 120, identifying a first crown number area in the first spectrogram to obtain a first crown number;
step 130, identifying a second crown number area in the second spectrogram to obtain a second crown number;
in this embodiment, the execution sequence of step 120 and step 130 may be arbitrary or may be performed simultaneously.
And 140, confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number.
In this embodiment, the target crown word number is the crown word number of the banknote finally confirmed. Referring also to fig. 3, said validating said target crown word number of said banknote from said first crown word number and said second crown word number further comprises:
and step 141, judging whether the characters of the first crown word number and the second crown word number are consistent.
In this embodiment, the first crown word number and the second crown word number are compared, and a comparison result is obtained to determine whether the characters of the first crown word number and the second crown word number are consistent. And if the characters of the first crown word number and the second crown word number are consistent, the recognition of the first crown word number and the second crown word number has almost no error, and the recognition result is accurate.
Step 142, if the characters of the first crown number and the second crown number are not consistent, judging whether the number of the characters of the first crown number and the second crown number which are not consistent is larger than a preset threshold value.
In this embodiment, if the characters of the first crown number and the second crown number are not identical, it is indicated that an error exists in the recognition process of at least one of the first crown number and the second crown number. And when the characters of the first crown number and the second crown number are inconsistent, judging whether the number of the characters of the first crown number and the second crown number which are inconsistent is larger than a preset threshold value. The specific preset threshold is 1-5, preferably 2.
And 143, if the number of the characters with the inconsistent first crown word number and the second crown word number is not larger than a preset threshold value, correcting the first crown word number and/or the second crown word number to obtain a target crown word number of the paper money.
In this embodiment, when the number of characters with inconsistent first and second crown numbers is not greater than the preset threshold, error correction is performed on the inconsistent characters. Specifically, a first character image of a character in the first crown word number, which is inconsistent with the second crown word number, is compared with a character template of the standard crown word number to obtain a first similarity result, a second character image of a character in the second crown word number, which is inconsistent with the first crown word number, is compared with the character template of the standard crown word number to obtain a second similarity result, and the first similarity result and the second similarity result are compared to confirm the target crown word number.
Illustratively, if the first crown word number is not consistent with the first character of the second crown word number, the recognition result of the first character of the first crown word number is 0, the recognition result of the second character of the first crown word number is 8, the first character image is compared with the template of the character 0 of the standard character template to obtain the similarity of 99%, the second character image is compared with the template of the character 8 of the standard character template to obtain the similarity of 60%, it indicates that 8 in the second character image is likely to be recognized as the number 8 by mistake during recognition because there is a dirty in the middle of the character 0, and therefore the first character of the target crown word number should be 0, the character with the similarity higher than that of the character template is taken as the character of the target crown word number, namely 0 is taken as the first character of the target crown word number, since the other characters are completely identical, the other characters can be directly mapped to the character marked as the target crown number in order.
In an alternative embodiment, in step 142, after determining whether the number of characters with the first crown number and the second crown number being inconsistent is greater than a preset threshold, the method further includes:
and 144, if the number of the characters with the inconsistent first crown word numbers and the second crown word numbers is larger than a preset threshold value, prompting that the paper money is abnormal.
In this alternative embodiment, when the number of characters with the first crown word number and the second crown word number being inconsistent is greater than the preset threshold, it indicates that the error of the recognition result of the current banknote is too large, on one hand, the machine has a problem and needs to be overhauled in time, and on the other hand, the current banknote may be an abnormal banknote and needs to be checked in time manually.
The technical scheme of the embodiment obtains a first crown number by identifying a first crown number area in the first spectrogram; identifying a second crown number region in the second spectrogram to obtain a second crown number; and confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number, and identifying the crown word number by adopting two different spectrograms and/or two crown word number images in different areas, so that the problem of accuracy of crown word number identification is solved, the effect of improving the accuracy of crown word number identification is realized, and the problem of low crown word number identification rate caused by fouling, altering, background interference, distressing, broken angle shielding and the like of the crown word number is reduced.
EXAMPLE III
Fig. 4 is a flowchart of a crown word number identification method provided in the third embodiment of the present invention, which specifically includes the following steps:
and step 210, acquiring the banknote information of the banknote, wherein the banknote information comprises currency, version and/or face value.
In this embodiment, the banknote information may be acquired according to the image of the banknote by acquiring the image of the banknote. Specifically, the banknote information may be acquired by identifying a characteristic region of the banknote.
And step 220, acquiring a first spectrogram and a second spectrogram of the paper currency according to the paper currency information.
In this embodiment, before acquiring the first spectrogram and the second spectrogram of the banknote, the method further includes acquiring a multi-color spectrogram of the banknote, in this embodiment, the spectrogram may be a spectrogram of a crown-type feature region, and in other embodiments, the spectrogram may also be a spectrogram of the entire banknote. Specifically, the multicolor spectrogram is a transmission image or a reflection image of multicolor light, one light corresponds to one spectrogram, and the multicolor spectrogram comprises at least two spectrograms of light. Where polychromatic light is provided by different light sources, common types of light sources include: red, blue, green, infrared, and ultraviolet light, and the like.
In this embodiment, referring to fig. 5, the obtaining the first spectrogram and the second spectrogram of the banknote according to the banknote information further includes:
and step 221, judging whether the paper currency is a single-side crown word number paper currency or not according to the paper currency information.
In this embodiment, the single-sided crown-word banknote is a banknote with only one crown-word number on the banknote, and illustratively, the 2005 edition 100 yuan currency has only a transverse crown-word number at the lower left corner of the front face. When the paper money information is confirmed, whether the current paper money is the paper money with the one-sided crown word number or not can be confirmed according to the currency, the version and the face value.
Step 222, if the paper money is the single-side crown word number paper money, defining the spectrogram with the clearest image in the crown word number area of the single-side crown word number paper money as the first spectrogram, and defining the spectrogram with the clearest image in the crown word number area of the single-side crown word number paper money which is only second to the first spectrogram as the second spectrogram.
In this embodiment, specifically, the most clear spectrogram and the second-most clear spectrogram of the crown number region image of the single-side crown number banknote are respectively obtained from the multi-color spectrogram, the most clear spectrogram of the crown number region image of the single-side crown number banknote is defined as the first spectrogram, and the spectrogram which has the resolution of the crown number region image of the single-side crown number banknote only after the first spectrogram is defined as the second spectrogram.
Step 230, identifying a first crown number area in the first spectrogram to obtain a first crown number;
in this embodiment, the first spectrogram includes a first prefix number region, and the first prefix number can be obtained by identifying the first prefix number region in the first spectrogram. The first crown number area can be cut first to obtain the character information of each first crown number, and the character information is combined into the first crown numbers in sequence.
Step 240, identifying a second crown number area in the second spectrogram to obtain a second crown number;
in this embodiment, the second spectrogram includes a second prefix number region, and the second prefix number can be obtained by identifying the second prefix number region in the second spectrogram. The second crown number area can be cut first to obtain the character information of every two second crown numbers, and the character information is combined into the second crown numbers in sequence.
In this embodiment, the execution sequence of step 230 and step 240 may be arbitrary or may be performed simultaneously.
And step 250, confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number.
In this embodiment, it is specifically determined whether the characters of the first crown number and the second crown number are consistent. And if the characters of the first crown word number and the second crown word number are consistent, confirming the first crown word number or the second crown word number as a target crown word number. If the characters of the first crown word number and the second crown word number are not consistent; then judging whether the number of the characters with the inconsistent first crown word number and the second crown word number is larger than a preset threshold value or not; and if the number of the characters with the inconsistent first crown word number and the second crown word number is not larger than a preset threshold value, correcting the first crown word number and/or the second crown word number to obtain a target crown word number of the paper money. And if the number of the characters with the inconsistent first crown word number and the second crown word number is larger than a preset threshold value, prompting that the paper money is abnormal.
According to the technical scheme, the most clear spectrogram of the area image of the crown word number of the single-side crown word number paper currency is defined as the first spectrogram, the second spectrogram, which is the clearness of the area image of the crown word number of the single-side crown word number paper currency after the first spectrogram, is defined, the crown word number is identified by adopting the crown word number images of two different spectrograms, so that the problem of crown word number identification accuracy is solved, the effect of improving the crown word number identification accuracy is realized, and the problem of low crown word number identification rate of the single-side crown word number paper currency caused by reasons of crown word number area contamination, correction, background interference, waste, folded angle shielding and the like is reduced.
Example four
Fig. 6 is a flowchart of a crown word number identification method according to a fourth embodiment of the present invention, which specifically includes the following steps:
and 310, acquiring the paper money information of the paper money, wherein the paper money information comprises currency, version and/or face value.
In this embodiment, the banknote information may be acquired according to the image of the banknote by acquiring the image of the banknote. Specifically, the banknote information may be acquired by identifying a characteristic region of the banknote.
And 320, acquiring a first spectrogram and a second spectrogram of the paper currency according to the paper currency information.
In this embodiment, before acquiring the first spectrogram and the second spectrogram of the banknote, the method further includes acquiring a multi-color spectrogram of the banknote, where the spectrogram may be a spectrogram of a crown-type number feature region in this embodiment. In other embodiments, the spectrogram can also be a spectrogram of an entire banknote. Specifically, the multicolor spectrogram is a transmission image or a reflection image of multicolor light, one light corresponds to one spectrogram, and the multicolor spectrogram comprises at least two spectrograms of light. Where polychromatic light is provided by different light sources, common types of light sources include: red, blue, green, infrared, and ultraviolet light, and the like.
In this embodiment, referring to fig. 7, the obtaining the first spectrogram and the second spectrogram of the banknote according to the banknote information further includes:
step 321, judging whether the paper money is a double-side crown word number paper money or not according to the paper money information;
in this embodiment, the double-sided crown-word banknote is a banknote with two crown-word numbers, and illustratively, the 2015 version 100 yuan moneyware has a transverse crown-word number at the lower left corner of the front and a longitudinal crown-word number at the left side of the front. When the paper money information is confirmed, whether the current paper money is the paper money with the two-side crown word number or not can be confirmed according to the currency, the version and the face value.
And 322, if the paper money is the paper money with the double-side crown word numbers, defining the most clear spectrogram of the area image of the first side crown word number of the paper money with the double-side crown word numbers as a first spectrogram, and defining the most clear spectrogram of the area image of the second side crown word numbers of the paper money with the double-side crown word numbers as a second spectrogram.
In this embodiment, the areas of the double-side crown word number paper money where the two crown word numbers are located are respectively called a first side crown word number area and a second side crown word number area, and specifically, a spectrogram with the clearest image of the first side crown word number area and a spectrogram with the clearest image of the second side crown word number area are respectively obtained from the polychromatic spectrograms. And defining the most clear spectrogram of the first side crown word number region image as a first spectrogram, and defining the most clear spectrogram of the second side crown word number region image of the double-side crown word number paper money as a second spectrogram.
Step 330, identifying a first crown number area in the first spectrogram to obtain a first crown number;
in this embodiment, the first spectrogram at least includes a spectrogram of a first side crown word number region, and the first crown word number region is a region of the first side crown word number region corresponding to the first spectrogram. The first crown number may be obtained by identifying a first crown number region in the first spectrogram. The first crown number area can be cut first to obtain the character information of each first crown number, and the character information is combined into the first crown numbers in sequence.
Step 340, identifying a second crown number area in the second spectrogram to obtain a second crown number;
in this embodiment, the second spectrogram at least includes a spectrogram of a second side crown number region, and the second crown number region is a region of the second side crown number region corresponding to the second spectrogram. A second crown number may be obtained by identifying a second crown number region in the second spectrogram. The second crown number area can be cut first to obtain the character information of every two second crown numbers, and the character information is combined into the second crown numbers in sequence.
In this embodiment, the execution sequence of step 330 and step 340 may be arbitrary or may be performed simultaneously.
And 350, confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number.
In this embodiment, it is specifically determined whether the characters of the first crown number and the second crown number are consistent. And if the characters of the first crown word number and the second crown word number are consistent, confirming the first crown word number or the second crown word number as a target crown word number. If the characters of the first crown word number and the second crown word number are not consistent; then judging whether the number of the characters with the inconsistent first crown word number and the second crown word number is larger than a preset threshold value or not; and if the number of the characters with the inconsistent first crown word number and the second crown word number is not larger than a preset threshold value, correcting the first crown word number and/or the second crown word number to obtain a target crown word number of the paper money. And if the number of the characters with the inconsistent first crown word number and the second crown word number is larger than a preset threshold value, prompting that the paper money is abnormal.
According to the technical scheme, if the paper money is the paper money with the crown word numbers on two sides, the spectrogram with the clearest image in the first side crown word number area of the paper money with the crown word numbers on two sides is defined as the first spectrogram, the spectrogram with the clearest image in the second side crown word number area of the paper money with the crown word numbers on two sides is defined as the second spectrogram, the crown word numbers are identified by adopting two different spectrograms and/or two crown word number images in two different areas, the problem of accuracy rate of crown word number identification is solved, the effect of improving the accuracy rate of crown word number identification is achieved, and the problem of low identification rate of the crown word numbers caused by reasons such as fouling, altering, background interference, old breakage, folding angle shielding and the like is solved.
In an alternative embodiment, when the step 321 is executed to determine whether the banknote is a one-sided crown-letter banknote according to the banknote information, the method further includes:
and judging whether the paper money is the paper money with the crown word numbers on two sides and the attributes of the crown word numbers on two sides are different according to the paper money information.
In this embodiment, the attribute of the bilateral crown word numbers is different from the attribute of the characters of the bilateral crown word numbers, specifically, the number of the characters of the bilateral crown word numbers is different, the code sets to which the characters belong are different, or the bilateral crown word numbers are represented by different character types, where the character types may be english, arabic numerals, greek letters, and the like. Exemplarily, the euro is that the number of characters on both sides is different, i.e. the number of the prefix numbers on one side is different from that on the other side, wherein the prefix number on one side is only a part of the prefix number on the other side; coins are different sets of codes to which the two side crown numbers belong.
In this alternative embodiment, if the banknote is a banknote with a crown word number on both sides and the attributes of the crown word number on both sides are different, the obtaining the target crown word number of the banknote according to the first crown word number and the second crown word number in step 350 further includes:
and converting the first crown word number or the second crown word number to obtain the first crown word number and the second crown word number with the same attribute, and obtaining the target crown word number of the paper money according to the first crown word number and the second crown word number with the same attribute.
In this alternative embodiment, when the crown word numbers of the crown word numbers on both sides are not identical, the correspondence rule of the crown word numbers on both sides can be obtained according to the banknote information, the first crown word number is converted into the attribute identical to the second crown word number according to the correspondence rule, or the second crown word number is converted into the attribute identical to the first crown word number according to the correspondence rule, and after the conversion, the first crown word number and the second crown word number having the identical attribute can be obtained.
Illustratively, when the current banknote is euro, the first crown number has fewer characters than the second crown number, the first crown number has only the last six digits, and the second crown number has twelve complete digits, the first six digits of the second crown number are supplemented in front of the first crown number, so that the first crown number with the same attribute as the second crown number can be obtained.
For example, when the first crown number and the second crown number have different character types, if the first crown number is the first character and the second crown number is the second character, the first crown number is converted into the second character to obtain the first crown number with the same attribute as the second crown number.
After a first crown number and a second crown number with the same attribute are obtained, whether the characters of the first crown number and the second crown number are consistent or not is judged. And if the characters of the first crown word number and the second crown word number are consistent, confirming the first crown word number or the second crown word number as a target crown word number. If the characters of the first crown word number and the second crown word number are not consistent; then judging whether the number of the characters with the inconsistent first crown word number and the second crown word number is larger than a preset threshold value or not; and if the number of the characters with the inconsistent first crown word number and the second crown word number is not larger than a preset threshold value, correcting the first crown word number and/or the second crown word number to obtain a target crown word number of the paper money. And if the number of the characters with the inconsistent first crown word number and the second crown word number is larger than a preset threshold value, prompting that the paper money is abnormal.
According to the technical scheme of the embodiment, the first crown word number or the second crown word number is converted to obtain the first crown word number and the second crown word number which have the same attribute, and the target crown word number of the paper money is obtained according to the first crown word number and the second crown word number which have the same attribute, so that the problem of identifying crown word numbers with different attributes on two sides is solved, the effect of identifying crown word numbers with different attributes on two sides is achieved, and the identification accuracy of crown word numbers with different attributes on two sides is improved.
EXAMPLE five
The apparatus for identifying a crown word number provided in the embodiment of the present invention may execute the method for identifying a crown word number provided in any embodiment of the present invention, and referring to fig. 8, the module for identifying a crown word number specifically includes:
the acquisition module 41 is used for acquiring a first spectrogram and a second spectrogram of the paper money;
an identifying module 42, configured to identify a first crown number region in the first spectrogram to obtain a first crown number; identifying a second crown number region in the second spectrogram to obtain a second crown number;
and a target crown word number obtaining module 43, configured to confirm the target crown word number of the banknote according to the first crown word number and the second crown word number.
In an alternative embodiment, the obtaining module is further configured to obtain banknote information of the banknote, where the banknote information includes currency, version, and/or denomination; and acquiring a first spectrogram and a second spectrogram of the paper currency according to the paper currency information.
In an alternative embodiment, the obtaining module is further configured to determine whether the banknote is a one-sided crown-word banknote according to the banknote information; and if the paper money is the paper money with the single-side crown word number, defining the spectrogram with the clearest image in the crown word number region of the paper money with the single-side crown word number as the first spectrogram, and defining the spectrogram with the clearest image in the crown word number region of the paper money with the single-side crown word number which is only second to the first spectrogram as the second spectrogram.
In an alternative embodiment, the acquiring module is further configured to determine whether the banknote is a double-side crown-word banknote according to the banknote information; if the paper money is the paper money with the double-side crown word numbers, defining the most clear spectrogram of the area image of the first side crown word numbers of the paper money with the double-side crown word numbers as a first spectrogram, and defining the most clear spectrogram of the area image of the second side crown word numbers of the paper money with the double-side crown word numbers as a second spectrogram.
In an alternative embodiment, the acquiring module is further configured to determine whether the banknote is a banknote with a crown word number on both sides and the attributes of the crown word numbers on both sides are different according to the banknote information. The target crown word number obtaining module is further configured to convert the first crown word number or the second crown word number to obtain the first crown word number and the second crown word number with the same attribute, and obtain the target crown word number of the banknote according to the first crown word number and the second crown word number with the same attribute.
In an alternative embodiment, the target crown word number obtaining module is further configured to determine whether characters of the first crown word number and the second crown word number are consistent; if the characters of the first crown word number and the second crown word number are not consistent; judging whether the number of the characters with the inconsistent first crown word number and the second crown word number is greater than a preset threshold value or not; and if the number of the characters with the inconsistent first crown word number and the second crown word number is not larger than a preset threshold value, correcting the first crown word number and/or the second crown word number to obtain a target crown word number of the paper money.
In an alternative embodiment, the target crown word number obtaining module is further configured to prompt the banknote to be an abnormal banknote if the number of characters with the first crown word number and the second crown word number being inconsistent is greater than a preset threshold value.
The identification device of the crown word number provided by the embodiment of the invention can execute the identification method of the crown word number provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 9 is a schematic structural diagram of a server according to a sixth embodiment of the present invention, and as shown in fig. 9, the server includes a processor 51 and a memory 52; the number of the processors 51 in the server may be one or more, and one processor 51 is taken as an example in fig. 9; the processor 51 and the memory 52 in the server may be connected by a bus or other means, and fig. 9 illustrates the connection by the bus as an example.
The memory 52 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules (for example, an obtaining module, a recognition module, and a sample object crown number recognition module) corresponding to the crown number recognition method in the embodiment of the present invention. The processor 51 executes various functional applications of the server and data processing, that is, implements the above-described crown number recognition method, by executing software programs, instructions, and modules stored in the memory 52.
The memory 52 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 52 may further include memory located remotely from the processor 51, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
EXAMPLE seven
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for identifying a crown number, the method including:
acquiring a first spectrogram and a second spectrogram of the paper money;
identifying a first crown number region in the first spectrogram to obtain a first crown number;
identifying a second crown number region in the second spectrogram to obtain a second crown number;
and confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the identification method of the crown number provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
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 (10)

1. A method for identifying a crown word number, comprising:
acquiring a first spectrogram and a second spectrogram of the paper money;
identifying a first crown number region in the first spectrogram to obtain a first crown number;
identifying a second crown number region in the second spectrogram to obtain a second crown number;
and confirming the target crown word number of the paper currency according to the first crown word number and the second crown word number.
2. The crown-word number recognition method according to claim 1, wherein before the acquiring the first and second spectrograms of the banknote, further comprising:
acquiring the banknote information of the banknotes, wherein the banknote information comprises currency, version and/or face value;
the acquiring of the first spectrogram and the second spectrogram of the paper money further comprises:
and acquiring the first spectrogram and the second spectrogram of the paper currency according to the paper currency information.
3. The method for identifying crown-word numbers according to claim 2, wherein the obtaining of the first and second spectrograms of the banknote based on the banknote information further comprises:
judging whether the paper money is the paper money with the one-side crown word number or not according to the paper money information;
and if the paper money is the paper money with the single-side crown word number, defining the spectrogram with the clearest image in the crown word number region of the paper money with the single-side crown word number as the first spectrogram, and defining the spectrogram with the clearest image in the crown word number region of the paper money with the single-side crown word number which is only second to the first spectrogram as the second spectrogram.
4. The method for identifying crown-word numbers according to claim 2, wherein the obtaining of the first and second spectrograms of the banknote based on the banknote information further comprises:
judging whether the paper money is double-side crown word paper money or not according to the paper money information;
if the paper money is the paper money with the double-side crown word numbers, defining the most clear spectrogram of the area image of the first side crown word numbers of the paper money with the double-side crown word numbers as the first spectrogram, and defining the most clear spectrogram of the area image of the second side crown word numbers of the paper money with the double-side crown word numbers as the second spectrogram.
5. The method for identifying a crown-word number according to claim 4, wherein the determining whether the bill is a double-sided crown-word number bill according to the bill information further comprises:
judging whether the paper money is paper money with crown word numbers on two sides and the attributes of the crown word numbers on the two sides are different according to the paper money information;
if the paper money is paper money with crown word numbers on two sides and the attributes of the crown word numbers on two sides are different, the obtaining of the target crown word number of the paper money according to the first crown word number and the second crown word number further comprises:
and converting the first crown word number or the second crown word number to obtain the first crown word number and the second crown word number with the same attribute, and obtaining the target crown word number of the paper money according to the first crown word number and the second crown word number with the same attribute.
6. The method for identifying a crown word number according to claim 1, wherein said obtaining a target crown word number of said banknote based on said first crown word number and said second crown word number further comprises:
judging whether the characters of the first crown word number and the second crown word number are consistent;
if the characters of the first crown word number and the second crown word number are not consistent;
judging whether the number of the characters with the inconsistent first crown word number and the second crown word number is greater than a preset threshold value or not;
and if the number of the characters with the inconsistent first crown word number and the second crown word number is not larger than a preset threshold value, correcting the first crown word number and/or the second crown word number to obtain a target crown word number of the paper money.
7. The method for identifying a crown word number according to claim 1, wherein after determining whether the number of characters of the first crown word number inconsistent with the second crown word number is greater than a preset threshold, the method further comprises:
and if the number of the characters with the inconsistent first crown word number and the second crown word number is larger than a preset threshold value, prompting that the paper money is abnormal.
8. An apparatus for identifying a crown word number, comprising:
the acquisition module is used for acquiring a first spectrogram and a second spectrogram of the paper money;
the identification module is used for identifying a first crown number area in the first spectrogram to obtain a first crown number; identifying a second crown number region in the second spectrogram to obtain a second crown number;
and the target crown word number acquisition module is used for confirming the target crown word number of the paper money according to the first crown word number and the second crown word number.
9. A server, characterized in that the server comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of crown number identification as claimed in any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for identifying a crown number according to any one of claims 1 to 7.
CN202010180940.9A 2020-03-16 2020-03-16 Crown word number identification method, device, server and storage medium Active CN111311815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010180940.9A CN111311815B (en) 2020-03-16 2020-03-16 Crown word number identification method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010180940.9A CN111311815B (en) 2020-03-16 2020-03-16 Crown word number identification method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111311815A true CN111311815A (en) 2020-06-19
CN111311815B CN111311815B (en) 2022-05-13

Family

ID=71147151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010180940.9A Active CN111311815B (en) 2020-03-16 2020-03-16 Crown word number identification method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111311815B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120243056A1 (en) * 2011-02-23 2012-09-27 Takayuki Yamaguchi Paper-sheet management method and paper-sheet management system
CN103186940A (en) * 2011-12-28 2013-07-03 光荣株式会社 Number identification device and number identification method
CN104115194A (en) * 2012-03-22 2014-10-22 光荣株式会社 System for reading paper sheet serial number, and method for reading paper sheet serial number
CN105225339A (en) * 2014-06-30 2016-01-06 乐金信世股份有限公司 Apparatus for media recognition and method and finance device
CN106340115A (en) * 2015-07-14 2017-01-18 深圳怡化电脑股份有限公司 Method and device for recognizing crown word number of banknote
JP2017056643A (en) * 2015-09-16 2017-03-23 独立行政法人 国立印刷局 Latent image printed matter
CN106846603A (en) * 2016-12-06 2017-06-13 深圳怡化电脑股份有限公司 A kind of recognition methods of forge or true or paper money and its device
CN106846611A (en) * 2015-12-03 2017-06-13 日立金融设备系统(深圳)有限公司 Self-service device, automated trading system and bill handling method
CN106934915A (en) * 2015-12-30 2017-07-07 起山电子株式会社 Bank note treatment device
CN107393115A (en) * 2017-08-03 2017-11-24 恒银金融科技股份有限公司 A kind of paper money number identification and false distinguishing method
CN108961533A (en) * 2018-06-04 2018-12-07 深圳怡化电脑股份有限公司 Paper Currency Identification and device
CN110276353A (en) * 2019-05-09 2019-09-24 深圳怡化电脑股份有限公司 Crown word number character cutting method, device, readable storage medium storing program for executing and terminal device
KR20190119470A (en) * 2018-04-12 2019-10-22 주식회사 푸른기술 Serial number recognition Apparatus and method for paper money

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120243056A1 (en) * 2011-02-23 2012-09-27 Takayuki Yamaguchi Paper-sheet management method and paper-sheet management system
CN103186940A (en) * 2011-12-28 2013-07-03 光荣株式会社 Number identification device and number identification method
CN104115194A (en) * 2012-03-22 2014-10-22 光荣株式会社 System for reading paper sheet serial number, and method for reading paper sheet serial number
CN105225339A (en) * 2014-06-30 2016-01-06 乐金信世股份有限公司 Apparatus for media recognition and method and finance device
CN106340115A (en) * 2015-07-14 2017-01-18 深圳怡化电脑股份有限公司 Method and device for recognizing crown word number of banknote
JP2017056643A (en) * 2015-09-16 2017-03-23 独立行政法人 国立印刷局 Latent image printed matter
CN106846611A (en) * 2015-12-03 2017-06-13 日立金融设备系统(深圳)有限公司 Self-service device, automated trading system and bill handling method
CN106934915A (en) * 2015-12-30 2017-07-07 起山电子株式会社 Bank note treatment device
CN106846603A (en) * 2016-12-06 2017-06-13 深圳怡化电脑股份有限公司 A kind of recognition methods of forge or true or paper money and its device
CN107393115A (en) * 2017-08-03 2017-11-24 恒银金融科技股份有限公司 A kind of paper money number identification and false distinguishing method
KR20190119470A (en) * 2018-04-12 2019-10-22 주식회사 푸른기술 Serial number recognition Apparatus and method for paper money
CN108961533A (en) * 2018-06-04 2018-12-07 深圳怡化电脑股份有限公司 Paper Currency Identification and device
CN110276353A (en) * 2019-05-09 2019-09-24 深圳怡化电脑股份有限公司 Crown word number character cutting method, device, readable storage medium storing program for executing and terminal device

Also Published As

Publication number Publication date
CN111311815B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
Ferretti et al. Current account reversals and currency crises: empirical regularities
CN109658584B (en) Bill information identification method and device
JP5133348B2 (en) Paper sheet processing equipment
CN102800148A (en) RMB sequence number identification method
CN108830275B (en) Method and device for identifying dot matrix characters and dot matrix numbers
CN106875542B (en) Method and device for identifying paper money version
CN108320373B (en) Method and device for detecting anti-counterfeiting mark of paper money
CN107103683B (en) Paper money identification method and device, electronic equipment and storage medium
CN110458998B (en) Bill detection method, bill detection device and terminal
CN105279525A (en) Image processing method and device
CN107331026B (en) Paper money identification method and device
CN112200193B (en) Distributed license plate recognition method, system and device based on multi-attribute fusion
CN106845469B (en) Paper money identification method and device
CN110490181B (en) Form filling and auditing method, device and equipment based on OCR (optical character recognition) technology and computer storage medium
CN105788064B (en) Bill identification method and device
CN108734849B (en) Automatic invoice true-checking method and system
CN112307824A (en) Method, device, system and readable medium for identifying tampering of bill number area
CN111311815B (en) Crown word number identification method, device, server and storage medium
Buttinger Background estimation with the ABCD method
CN107464334A (en) Recognition methods, identification device and the terminal device of bank note
JPS6024508B2 (en) Image matching method
CN107358716B (en) Heisui River prints recognition methods, device and terminal device
CN107481394B (en) Recognition methods, identification device and the terminal device of bank note
CN113158988A (en) Financial statement processing method and device and computer readable storage medium
CN106780960B (en) Method and system for identifying currency of Iran 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