Movatterモバイル変換


[0]ホーム

URL:


CN111292463A - Paper money identification method, device, server and storage medium - Google Patents

Paper money identification method, device, server and storage medium
Download PDF

Info

Publication number
CN111292463A
CN111292463ACN202010054930.0ACN202010054930ACN111292463ACN 111292463 ACN111292463 ACN 111292463ACN 202010054930 ACN202010054930 ACN 202010054930ACN 111292463 ACN111292463 ACN 111292463A
Authority
CN
China
Prior art keywords
magnetic
trough
wave crest
wave
peaks
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.)
Pending
Application number
CN202010054930.0A
Other languages
Chinese (zh)
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 InstitutefiledCriticalShenzhen Yihua Computer Co Ltd
Priority to CN202010054930.0ApriorityCriticalpatent/CN111292463A/en
Publication of CN111292463ApublicationCriticalpatent/CN111292463A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a paper money identification method, a device, a server and a storage medium, comprising the following steps: acquiring a magnetic stripe waveform of paper money in a region to be detected; segmenting the magnetic stripe waveform within a preset threshold of the number of wave crests and wave troughs to determine all wave crests and wave troughs; distinguishing a first magnetic wave peak and trough and a second magnetic wave peak and trough in all the wave peak and troughs according to a preset rule; and identifying the paper money according to the first magnetic wave peak and the second magnetic wave peak. The technical scheme of the invention realizes the effect of reducing the false recognition rate of the special magnetic wave peaks and wave troughs by the conventional magnetic strip recognition.

Description

Translated fromChinese
一种纸币识别方法、装置、服务器及存储介质A banknote identification method, device, server and storage medium

技术领域technical field

本发明实施例涉及金融领域,尤其涉及一种纸币识别方法、装置、服务器及存储介质。The embodiments of the present invention relate to the financial field, and in particular, to a banknote identification method, device, server and storage medium.

背景技术Background technique

在使用磁性传感器采集的数据环境下,根据被检纸币在磁性传感器中磁性点与真币数据的差异来鉴别钞票真伪,大部分纸币是通过磁条的分布来检测纸币真伪。不同的纸币的磁条有特定磁性分布规律,现有的磁条检测大多通过磁波峰及磁波谷的分布规律来鉴别,以往的磁波峰磁波谷只有一个峰值,随着磁条制造技术的发展,出现了一个磁波可能出现多个峰值的情况,用原有技术很难进行有效鉴伪。In the data environment collected by the magnetic sensor, the authenticity of the banknote is identified according to the difference between the magnetic point of the detected banknote in the magnetic sensor and the real currency data. Most banknotes are detected by the distribution of magnetic strips. The magnetic strips of different banknotes have specific magnetic distribution laws. Most of the existing magnetic strip detections are identified by the distribution laws of magnetic wave peaks and magnetic wave troughs. In the past, the magnetic wave peak and magnetic wave trough had only one peak value. With the development of magnetic strip manufacturing technology, There is a situation in which a magnetic wave may have multiple peaks, and it is difficult to effectively identify the forgery with the original technology.

发明内容SUMMARY OF THE INVENTION

本发明提供一种纸币识别方法、装置、服务器及存储介质,以实现降低常规磁条识别对特殊磁波峰波谷的误识率的效果。The present invention provides a banknote identification method, device, server and storage medium, so as to achieve the effect of reducing the false identification rate of special magnetic wave peaks and valleys caused by conventional magnetic stripe identification.

第一方面,本发明实施例提供了一种纸币识别方法,包括:In a first aspect, an embodiment of the present invention provides a method for identifying banknotes, including:

获取待检测区域中纸币的磁条波形;Obtain the magnetic stripe waveform of the banknotes in the area to be detected;

在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;Divide the magnetic stripe waveform within a preset threshold of the number of peaks and valleys to determine all the peaks and valleys;

根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷和第二磁波峰波谷;Distinguish the first magnetic wave crest and trough and the second magnetic wave crest and trough among all the wave crests and troughs according to a preset rule;

根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别。The banknote is identified according to the first magnetic wave crest and the second magnetic wave crest and the second magnetic wave crest and trough.

第二方面,本发明实施例还提供了一种纸币识别装置,包括:In a second aspect, an embodiment of the present invention also provides a banknote identification device, including:

磁条波形获取模块,用于获取待检测区域中纸币的磁条波形;The magnetic stripe waveform acquisition module is used to acquire the magnetic stripe waveform of the banknotes in the area to be detected;

波峰波谷确定模块,用于在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;A wave crest and wave trough determination module, used for segmenting the magnetic stripe waveform to determine all wave crests and wave troughs within a preset number of wave crests and wave troughs;

波峰波谷区分模块,用于根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷和第二磁波峰波谷;a wave crest and trough distinguishing module, configured to distinguish the first magnetic wave crest and trough and the second magnetic wave crest and trough among all the wave crests and troughs according to a preset rule;

纸币识别模块,用于根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别。The banknote identification module is used to identify the banknotes according to the first magnetic wave peaks and valleys and the second magnetic wave peaks and valleys.

第三方面,本发明实施例还提供了一种服务器,包括:In a third aspect, an embodiment of the present invention further provides a server, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述的纸币识别方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the banknote identification method as described above.

第四方面,本发明实施例还一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述的纸币识别方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the above-mentioned method for identifying banknotes.

本发明的技术方案通过获取待检测区域中纸币的磁条波形;在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷和第二磁波峰波谷;根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别,解决了纸币一个磁波会出现多个峰值难以识别的问题,达到了降低常规磁条识别对特殊磁波峰波谷的误识率的效果。The technical solution of the present invention is to obtain the magnetic stripe waveform of the banknotes in the area to be detected; cut the magnetic stripe waveform within a preset threshold of the number of peaks and valleys to determine all the peaks and valleys; distinguish all the peaks according to a preset rule The first magnetic wave crest and trough and the second magnetic wave crest and trough in the wave trough; according to the first magnetic wave crest and trough and the second magnetic wave crest and trough, the banknotes are identified, which solves the problem that one magnetic wave of banknotes will appear multiple peaks and be difficult to identify. The problem is achieved, and the effect of reducing the false recognition rate of the peaks and valleys of special magnetic waves by conventional magnetic stripe recognition is achieved.

附图说明Description of drawings

图1是本发明实施例一中的纸币识别方法的流程图。FIG. 1 is a flow chart of a method for identifying banknotes inEmbodiment 1 of the present invention.

图2是本发明实施例一中的2005版100元人民币磁条波形的示意图。FIG. 2 is a schematic diagram of the 2005 version of the 100-yuan magnetic stripe waveform inEmbodiment 1 of the present invention.

图3是本发明实施例二中的纸币识别方法的流程图。FIG. 3 is a flow chart of the banknote identification method in the second embodiment of the present invention.

图4是本发明实施例三中的纸币识别装置的结构示意图。4 is a schematic structural diagram of a banknote identification device inEmbodiment 3 of the present invention.

图5是本发明实施例四中的服务器的结构示意图。FIG. 5 is a schematic structural diagram of a server in Embodiment 4 of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.

在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时处理可以被终止,但是还可以具有未包括在附图中的附加步骤。处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. A process may correspond to a method, function, procedure, subroutine, subroutine, or the like.

此外,术语“第一”、“第二”等可在本文中用于描述各种方向、动作、步骤或元件等,但这些方向、动作、步骤或元件不受这些术语限制。这些术语仅用于将第一个方向、动作、步骤或元件与另一个方向、动作、步骤或元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一磁波峰波谷为第二磁波峰波谷,且类似地,可将第二磁波峰波谷称为第一磁波峰波谷。第一磁波峰波谷和第二磁波峰波谷两者都是磁波峰波谷,但其不是同一磁波峰波谷。术语“第一”、“第二”等而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Furthermore, the terms "first," "second," etc. may be used herein to describe various directions, acts, steps or elements, etc., but are not limited by these terms. These terms are only used to distinguish a first direction, act, step or element from another direction, act, step or element. For example, a first magnetic wave crest and trough could be referred to as a second magnetic wave crest and trough, and similarly, a second magnetic wave crest and trough could be referred to as a first magnetic wave crest and trough, without departing from the scope of this application. Both the first magnetic peak and trough and the second magnetic peak and trough are magnetic peaks and troughs, but they are not the same magnetic peak and trough. The terms "first", "second" and the like should not be understood as indicating or implying relative importance or implying the number of technical features indicated. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically defined.

实施例一Example 1

图1为本发明实施例一提供的纸币识别方法的流程图,本实施例可适用于纸币识别情况,该方法具体包括如下步骤:FIG. 1 is a flow chart of a banknote identification method provided inEmbodiment 1 of the present invention. This embodiment is applicable to banknote identification. The method specifically includes the following steps:

S110、获取待检测区域中纸币的磁条波形;S110, acquiring the magnetic stripe waveform of the banknote in the area to be detected;

本实施例中,待检测区域可以为纸币在被提取图像或特征识别/提取过程中,该纸币应该放置的区域。磁条波形为提高纸币的防伪能力,不同的纸币的不同区域设置了磁信号,磁信号具有规律性分布,即相邻的磁信号的波峰或者波谷之间的间距具有预设规律,根据上述预设规律可鉴别纸币的真伪。In this embodiment, the area to be detected may be the area where the banknote should be placed during the process of image or feature identification/extraction of the banknote being extracted. In order to improve the anti-counterfeiting ability of the banknotes, the magnetic stripe waveform is provided with magnetic signals in different areas of different banknotes. The magnetic signals have a regular distribution, that is, the distance between the peaks or troughs of adjacent magnetic signals has a preset law. Set rules to identify the authenticity of banknotes.

S120、在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;S120, dividing the magnetic stripe waveform within a preset number threshold of peaks and valleys to determine all peaks and valleys;

本实施例中,预设波峰波谷个数阈值为根据币值模板波形设定的个数阈值,示例性的,2005版100元人民币的安全线磁性波形图中包含16个波峰和16个波谷,则波峰的个数阈值可以设置为16,此处不作限定。磁波峰波谷往往是以背景值为基准向上和向下浮动,可以在背景向上和向下设定一个以Y轴为基准的切分线,切分线从背景值开始偏移,偏移距离可设定为y,如图2所示,根据切分线1对磁条波形切分后,可看出各个波峰2或波谷3存在一定的范围内的与切分线形成的间隙4,则间隙个数可以用来代表波峰2或波谷3的个数,可以根据间隙个数调整切分线1的偏移距离。示例性的,基于2005版100元人民币,如果间隙个数超过16个,则表示切分线偏移距离偏大,经过多次调整可以将所有波峰波谷确定出来。In this embodiment, the preset threshold for the number of peaks and valleys is the number threshold set according to the waveform of the currency template. Exemplarily, the 2005 version of the 100-yuan safety line magnetic waveform diagram contains 16 peaks and 16 valleys, then The threshold for the number of peaks can be set to 16, which is not limited here. Magnetic wave peaks and troughs often float up and down based on the background value. You can set a slicing line based on the Y-axis up and down on the background. The slicing line starts to offset from the background value, and the offset distance can be adjusted. Set to y, as shown in Figure 2, after the magnetic stripe waveform is segmented according to theslicing line 1, it can be seen that eachpeak 2 ortrough 3 has a gap 4 formed with the slicing line within a certain range, then the gap The number can be used to represent the number ofpeaks 2 ortroughs 3, and the offset distance of theslicing line 1 can be adjusted according to the number of gaps. Exemplarily, based on the 2005 version of RMB 100, if the number of gaps exceeds 16, it means that the offset distance of the slicing line is too large, and all the peaks and valleys can be determined after multiple adjustments.

S130、根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷和第二磁波峰波谷;S130. Distinguish the first magnetic wave crest and trough and the second magnetic wave crest and trough among all the crests and troughs according to a preset rule;

本实施例中,预设规则为基于上述间隙的间距对波峰波谷极值的规则设定。间距为间隙内切分线的长度。目前存在的磁性算法中,找出极值点往往是根据找出一个磁波峰中的最大值及判断为波峰值,最小值则为波谷值。特殊磁波峰波谷为间距较宽的波峰波谷。可以通过设定一个间距阈值来筛选波峰波谷,并进一步根据极值点数量判断该波峰波谷是否为特殊波峰波谷。一些纸币版本的磁条波形的一个波中可能出现多个极点值的情况,例如欧元500元的磁条波形会出现一个波中有两个极点值。这种一个波中出现多个极点值的波为特殊磁波峰波谷,即本实施例中的第一磁波峰波谷。第二次波峰波谷为常规的只一个波只有一个极点值的常规波峰波谷。In this embodiment, the preset rule is the rule setting of the peak and trough extreme values based on the spacing of the gaps. The spacing is the length of the dividing line within the gap. In the existing magnetic algorithms, finding the extreme point is often based on finding the maximum value in a magnetic wave peak and judging it as the peak value, and the minimum value as the trough value. The special magnetic wave crests and troughs are the crests and troughs with wide intervals. The peaks and troughs can be filtered by setting a spacing threshold, and further according to the number of extreme points, it can be judged whether the peaks and troughs are special peaks and troughs. Some banknote versions of the magnetic stripe waveform may have multiple pole values in one wave. For example, the magnetic stripe waveform of EUR 500 will have two pole values in one wave. Such a wave with multiple pole values in one wave is a special magnetic wave crest and trough, that is, the first magnetic wave crest and trough in this embodiment. The second peak and trough are conventional peaks and troughs with only one wave and only one extreme value.

S140、根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别。S140. Perform banknote identification on the banknote according to the first magnetic wave peak and trough and the second magnetic wave peak and trough.

本实施例中,不同的纸币的磁条中极点值的分布规律都是不相同的,相同币值纸币不同版本的纸币,磁条的极点值分布规律也不相同。各个国家的纸币的特殊波峰波谷具有各自的特征,即极值点数量或者波峰波谷的样式不同,因此可以根据第一磁波峰波谷的极值点数识别该纸币的国别或者区域,示例性的,欧元的特殊波峰波谷的极值点为2个,中国的纸币的波峰波谷的极值点只有1 个。再根据特殊波峰波谷的样式和常规波峰波谷的周期规律,可以识别出该纸币的币值。特殊波峰波谷的样式可以为特殊波峰波谷的一个波中尖峰的高低排序样式。In this embodiment, the distribution rules of the pole values in the magnetic strips of different banknotes are different, and the distribution rules of the pole values of the magnetic strips of the banknotes of the same currency value and different versions are also different. The special peaks and troughs of the banknotes of various countries have their own characteristics, that is, the number of extreme points or the styles of the peaks and troughs are different, so the country or region of the paper currency can be identified according to the number of extreme points of the first magnetic peaks and troughs, for example, There are 2 extreme points of the special peaks and troughs of the euro, and only one extreme point of the peaks and troughs of Chinese banknotes. Then according to the pattern of the special peaks and valleys and the periodic law of the regular peaks and valleys, the currency value of the banknote can be identified. The pattern of the special crest and trough can be the high and low ordering pattern of the peaks in a wave of the special crest and trough.

本发明实施例的技术方案通过获取待检测区域中纸币的磁条波形;在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷和第二磁波峰波谷;根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别,解决了纸币一个磁波会出现多个峰值难以识别的问题,达到了降低常规磁条识别对特殊磁波峰波谷的误识率的效果。The technical solution of the embodiment of the present invention is to obtain the magnetic stripe waveform of the banknotes in the area to be detected; divide the magnetic stripe waveform within a preset threshold of the number of peaks and troughs to determine all the peaks and troughs; distinguish the The first magnetic wave crest and trough and the second magnetic wave crest and trough among all the wave crests and troughs; the banknotes are identified according to the first magnetic wave crests and troughs and the second magnetic wave crests and troughs, which solves the problem that it is difficult for a banknote to have multiple peaks in one magnetic wave. The problem of identification is achieved, and the effect of reducing the false recognition rate of the peaks and valleys of special magnetic waves by conventional magnetic stripe identification is achieved.

实施例二Embodiment 2

图3为本发明实施例二提供的纸币识别方法的流程图,本实施例在上述实施例的基础上进一步优化,该方法具体包括:FIG. 3 is a flowchart of the banknote identification method provided in the second embodiment of the present invention. This embodiment is further optimized on the basis of the above-mentioned embodiment, and the method specifically includes:

S210、获取待检测区域中纸币的磁条波形;S210, acquiring the magnetic stripe waveform of the banknote in the area to be detected;

本实施例中,待检测区域可以为纸币在被提取图像或特征识别/提取过程中,该纸币应该放置的区域。磁条波形为纸币具有的磁信号波形。In this embodiment, the area to be detected may be the area where the banknote should be placed during the process of image or feature identification/extraction of the banknote being extracted. The magnetic stripe waveform is a magnetic signal waveform that a banknote has.

可选的,所述获取待检测区域中纸币的磁条波形包括:在多个检测通道中选取纸币磁条所在的磁条通道,所述多个检测通道为基于所述待检测区域纵向划分,所述磁条通道为一个或多个;Optionally, the acquiring the magnetic stripe waveform of the banknote in the area to be detected includes: selecting a magnetic stripe channel where the magnetic stripe of the banknote is located from a plurality of detection channels, and the plurality of detection channels are longitudinally divided based on the area to be detected, The magnetic stripe channel is one or more;

本实施例中,多个检测通道为待检测区域纵向划分的通道,“纵向”是指平行于该纸币磁性安全线的方向。该待检测区域的纵向划分方式满足,无论该纸币是正面朝上还是正面朝下,是左右正置还是左右倒置,只要该纸币被非倾斜地放置在该待检测区域,该纸币的磁性安全线均位于该多个通道的其中一个通道内。需要说明的是,虽然对于一特定种类的纸币,其磁性安全线的位置是固定的,但是由于在提取纸币图像,或纸币特征识别/提取的过程中,由于不确定该纸币的正反、左右的朝向,因此磁性安全线的具体位置是不确定的。本实施例可以统计多个通道中磁点的个数,当磁条的磁性较为稳定且磁点数基本均匀分布在一个或两个通道内,所在的通道磁性点的个数最多的为磁条所在的通道。In this embodiment, the plurality of detection channels are longitudinally divided channels of the area to be detected, and "longitudinal" refers to the direction parallel to the magnetic security thread of the banknote. The longitudinal division of the area to be detected satisfies that no matter whether the banknote is face up or face down, left and right upright or left and right upside down, as long as the banknote is placed in the to-be-detected area in a non-inclined manner, the magnetic safety line of the banknote are located in one of the multiple channels. It should be noted that, although the position of the magnetic security thread is fixed for a specific type of banknote, the front and back, left and right sides of the banknote are not determined during the process of extracting the banknote image or the banknote feature identification/extraction. orientation, so the exact location of the magnetic safety wire is uncertain. In this embodiment, the number of magnetic points in multiple channels can be counted. When the magnetism of the magnetic strip is relatively stable and the number of magnetic points is basically evenly distributed in one or two channels, the channel with the largest number of magnetic points is where the magnetic strip is located. channel.

当所述磁条通道为多个时,将多个磁条通道中的磁点进行合并以生成所述磁条波形。When there are multiple magnetic stripe channels, the magnetic dots in the multiple magnetic stripe channels are combined to generate the magnetic stripe waveform.

本实施例中,在采集纸币的磁条波形时,由于纸币可能会倾斜,磁条往往会分布在两个或多个通道,因此要将磁条所在的通道中的磁点进行合并,才能得到完整的磁条。In this embodiment, when the waveform of the magnetic stripe of the banknote is collected, since the banknote may be inclined, the magnetic stripe is often distributed in two or more channels. Therefore, the magnetic points in the channel where the magnetic stripe is located must be merged to obtain the Complete magnetic strip.

S220、在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;S220, segmenting the magnetic stripe waveform within a preset number threshold of peaks and valleys to determine all peaks and valleys;

本实施例中,根据切分线对磁条波形切分后,可看出各个波峰或波谷存在一定的范围内的与切分线形成的间隙,则间隙个数可以用来代表波峰或波谷的个数,可以根据间隙个数调整切分线的偏移距离。In this embodiment, after the magnetic stripe waveform is segmented according to the segment line, it can be seen that each peak or trough has a gap formed with the segment line within a certain range, and the number of gaps can be used to represent the peak or trough. The offset distance of the dividing line can be adjusted according to the number of gaps.

S230、确定所述所有波峰波谷的间距。S230. Determine the distances between all the peaks and valleys of the waves.

本实施例中,波峰或波谷中的切分线为间距,可以根据交点位置的坐标差计算出间距。In this embodiment, the dividing line in the wave crest or the wave trough is the distance, and the distance can be calculated according to the coordinate difference of the position of the intersection.

S240、当所述间距超过预设间距阈值时选取其中具有多个极值点的所述波峰波谷为所述第一磁波峰波谷。S240. When the distance exceeds a preset distance threshold, select the peak and valley with a plurality of extreme points as the first magnetic peak and valley.

本实施例中,特殊磁波峰波谷为间距较宽的波峰波谷。可以通过设定一个间距阈值来筛选波峰波谷,并进一步根据极值点数量判断该波峰波谷是否为特殊波峰波谷。In this embodiment, the special magnetic wave crests and troughs are wave crests and troughs with wide intervals. The peaks and troughs can be filtered by setting a spacing threshold, and further according to the number of extreme points, it can be judged whether the peaks and troughs are special peaks and troughs.

S250、根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别。S250. Perform banknote identification on the banknote according to the first magnetic wave peak and trough and the second magnetic wave peak and trough.

本实施例中,根据第一磁波峰波谷的极值点数识别该纸币的国别或者区域,再根据特殊波峰波谷的样式和常规波峰波谷的周期规律,可以识别出该纸币的币值。In this embodiment, the country or region of the banknote is identified according to the extreme points of the first magnetic wave crest and trough, and then the currency value of the banknote can be identified according to the pattern of the special crest and trough and the periodicity of the regular crest and trough.

S260、根据预设模板库对所述第一磁波峰波谷和第二磁波峰波谷的间距进行匹配以识别币值。S260. Match the distance between the first magnetic wave crest and the second magnetic wave crest and the second magnetic wave crest and trough according to a preset template library to identify the currency value.

本实施例中,预设模板库为预先保存的关于真币的磁条波形的参数。参数可以包括波峰波谷的周期还有标准间距大小、周期等,此处不作限制,可以根据步骤230确定的间距与模板进行匹配,进而识别纸币的币值,以对步骤250 的纸币识别结果作进一步确定,提升纸币识别准确率。In this embodiment, the preset template library is a pre-saved parameter about the magnetic stripe waveform of the genuine coin. The parameters can include the period of the peaks and troughs, as well as the standard spacing size, period, etc., which are not limited here, and can be matched with the template according to the spacing determined in step 230, and then identify the currency value of the banknote to further determine the banknote identification result in step 250. , to improve the accuracy of banknote recognition.

可选的,所述根据预设模板库对所述第一磁波峰波谷和第二磁波峰波谷的间距进行匹配以识别币值包括:对所述第一磁波峰波谷和第二磁波峰波谷的间距与标准间距进行匹配以识别币值,所述标准间距为基于所述币值库获取。Optionally, matching the distance between the first magnetic wave peak and trough and the second magnetic wave peak and trough to identify the currency value according to the preset template library includes: matching the distance between the first magnetic wave peak and trough and the second magnetic wave peak and trough. Matching with standard pitches obtained based on the denomination library to identify denominations.

本实施例中,标准间距可以为真币中磁条波形中波峰波谷的间距。对于真币来说,各个波峰波谷的间距及周期是固定的。所以在本应用场景下,需要将目标磁条波形中所有波峰波谷的间距与标准间距进行匹配,只有当所有波峰波谷的间距与标准间距匹配,目标磁条波形对应的纸币的才是真币。In this embodiment, the standard spacing may be the spacing between peaks and troughs in the waveform of the magnetic stripe in the genuine coin. For real coins, the interval and period of each peak and trough are fixed. Therefore, in this application scenario, it is necessary to match the spacing of all peaks and troughs in the target magnetic stripe waveform with the standard spacing. Only when the spacings of all peaks and troughs match the standard spacing, the banknotes corresponding to the target magnetic stripe waveform are genuine coins.

可选的,所述对所述第一磁波峰波谷和第二磁波峰波谷与相邻波峰波谷的间距和标准间距进行匹配包括:将所述第一磁波峰波谷和第二磁波峰波谷与相邻波峰波谷的间距与所述标准间距作差;如果所述差值小于预设误差,则匹配成功。Optionally, the matching the spacing and standard spacing between the first and second magnetic peaks and troughs and adjacent peaks and troughs includes: matching the first and second magnetic peaks and troughs with the same phase. The distance between adjacent peaks and valleys is different from the standard distance; if the difference is less than a preset error, the matching is successful.

本实施例中,预设误差可以设置为5-10之间的任意正整数。In this embodiment, the preset error may be set to any positive integer between 5 and 10.

本实施例的技术方案,通过获取待检测区域中纸币的磁条波形;在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;确定所述所有波峰波谷的间距;当所述间距超过预设间距阈值的波峰波谷时选取其中具有多个极值点的为所述第一磁波峰波谷;根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别;根据预设模板库对所述第一磁波峰波谷和第二磁波峰波谷的间距进行匹配以识别币值,解决了纸币模板匹配可能出现误差的问题,达到了提高纸币识别准确率的效果。In the technical solution of this embodiment, the magnetic stripe waveform of the banknotes in the area to be detected is obtained; the magnetic stripe waveform is divided within a preset threshold of the number of peaks and valleys to determine all the peaks and valleys; distance; when the distance exceeds the peak and valley of the preset distance threshold, the first magnetic wave peak and valley with multiple extreme points is selected; according to the first magnetic wave peak and valley and the second magnetic wave peak and valley Banknote identification is performed on banknotes; the distance between the first magnetic wave crest and the second magnetic wave crest and trough and the second magnetic wave crest and trough are matched according to the preset template library to identify the currency value, which solves the problem of possible errors in the matching of banknote templates, and improves the accuracy of banknote identification. Effect.

实施例三Embodiment 3

图4所示为本发明实施例三提供的纸币识别装置300的结构示意图,本实施例可适用于纸币识别情况,具体结构如下:FIG. 4 is a schematic structural diagram of thebanknote identification device 300 provided in the third embodiment of the present invention. This embodiment is applicable to the banknote identification situation, and the specific structure is as follows:

磁条波形获取模块310,用于获取待检测区域中纸币的磁条波形;The magnetic stripewaveform acquisition module 310 is used to acquire the magnetic stripe waveform of the banknotes in the area to be detected;

波峰波谷确定模块320,用于在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;a peak andtrough determination module 320, configured to segment the magnetic stripe waveform within a preset threshold of the number of peaks and troughs to determine all peaks and troughs;

波峰波谷区分模块330,用于根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷和第二磁波峰波谷;A wave crest andtrough distinguishing module 330, configured to distinguish the first magnetic wave crest and trough and the second magnetic wave crest and trough among all the wave crests and troughs according to a preset rule;

纸币识别模块340,用于根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别。Thebanknote identification module 340 is configured to perform banknote identification on the banknotes according to the first magnetic wave peaks and valleys and the second magnetic wave peaks and valleys.

可选的,磁条波形获取模块310包括磁条通道选取单元和磁条波形生成单元,Optionally, the magnetic stripewaveform acquisition module 310 includes a magnetic stripe channel selection unit and a magnetic stripe waveform generation unit,

磁条通道选取单元用于在多个检测通道中选取纸币磁条所在的磁条通道,所述多个检测通道为基于所述待检测区域纵向划分,所述磁条通道为一个或多个;The magnetic stripe channel selection unit is used to select a magnetic stripe channel where the banknote magnetic stripe is located from among a plurality of detection channels, the plurality of detection channels are longitudinally divided based on the to-be-detected area, and the number of magnetic stripe channels is one or more;

磁条波形生成单元用于当所述磁条通道为多个时,将多个磁条通道中的磁点进行合并以生成所述磁条波形。The magnetic stripe waveform generating unit is configured to combine the magnetic points in the plurality of magnetic stripe channels to generate the magnetic stripe waveform when there are multiple magnetic stripe channels.

可选的,装置300还包括间距确定模块,用于确定所述所有波峰波谷的间距。Optionally, theapparatus 300 further includes a distance determination module, configured to determine the distances of all the peaks and valleys of the waves.

可选的,波峰波谷区分模块330包括当所述间距超过预设间距阈值时选取其中具有多个极值点的所述波峰波谷为所述第一磁波峰波谷。Optionally, the wave crest andtrough distinguishing module 330 includes selecting the wave crest and trough with multiple extreme points as the first magnetic wave crest and trough when the distance exceeds a preset distance threshold.

可选的,装置300还包括间距匹配模块,用于根据预设模板库对所述第一磁波峰波谷和第二磁波峰波谷的间距进行匹配以识别币值。Optionally, theapparatus 300 further includes a spacing matching module, configured to match the spacing between the first magnetic wave crest and the second magnetic wave crest and trough and the second magnetic wave crest and trough according to a preset template library to identify the currency value.

可选的,间距匹配模块包括对所述第一磁波峰波谷和第二磁波峰波谷的间距与标准间距进行匹配以识别币值,所述标准间距为基于所述币值库获取。Optionally, the distance matching module includes matching the distance between the first magnetic wave peak and trough and the second magnetic wave peak and valley with a standard distance to identify a currency value, and the standard distance is obtained based on the currency value library.

可选的,间距匹配模块包括将所述第一磁波峰波谷和第二磁波峰波谷与相邻波峰波谷的间距与所述标准间距作差;如果所述差值小于预设误差,则匹配成功。Optionally, the distance matching module includes making a difference between the distance between the first and second magnetic peaks and valleys and adjacent peaks and valleys and the standard distance; if the difference is less than a preset error, the matching is successful. .

本发明实施例所提供的纸币识别装置300可执行前述实施例所提供的纸币识别方法,具备执行方法相应的功能模块和有益效果。Thebanknote identification device 300 provided by the embodiment of the present invention can execute the banknote identification method provided by the foregoing embodiments, and has functional modules and beneficial effects corresponding to the execution method.

实施例四Embodiment 4

图5是本发明实施例四提供的一种服务器的结构示意图。图5示出了适于用来实现本发明实施方式的示例性服务器412的框图。图5显示的服务器412 仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 5 is a schematic structural diagram of a server according to Embodiment 4 of the present invention. Figure 5 shows a block diagram of anexemplary server 412 suitable for use in implementing embodiments of the present invention. Theserver 412 shown in FIG. 5 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.

如图5所示,服务器412以通用服务器的形式表现。服务器412的组件可以包括但不限于:一个或者多个处理器416,存储装置428,连接不同系统组件 (包括存储装置428和处理器416)的总线418。As shown in FIG. 5,server 412 takes the form of a general server. Components ofserver 412 may include, but are not limited to, one ormore processors 416,storage 428, andbus 418 that connects various system components, includingstorage 428 andprocessor 416.

总线418表示几类总线结构中的一种或多种,包括存储装置总线或者存储装置控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry SubversiveAlliance,ISA)总线,微通道体系结构(Micro Channel Architecture,MAC)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association,VESA)局域总线以及外围组件互连 (Peripheral Component Interconnect,PCI)总线。Bus 418 represents one or more of several types of bus structures, including a storage device bus or storage device controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, Industry Subversive Alliance (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (Video Electronics Standards Association) , VESA) local bus and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.

服务器412典型地包括多种计算机系统可读介质。这些介质可以是任何能够被服务器412访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Server 412 typically includes a variety of computer system readable media. These media can be any available media that can be accessed byserver 412, including volatile and non-volatile media, removable and non-removable media.

存储装置428可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory,RAM)430和/或高速缓存存储器432。终端412可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统434可以用于读写不可移动的、非易失性磁介质(图5未显示,通常称为“硬盘驱动器”)。尽管图5中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘,例如只读光盘(Compact Disc Read-Only Memory,CD-ROM),数字视盘(Digital Video Disc-Read Only Memory,DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线418相连。存储装置428可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。Storage 428 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 430 and/orcache memory 432 .Terminal 412 may further include other removable/non-removable, volatile/non-volatile computer system storage media. For example only,storage system 434 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in Figure 5, a magnetic disk drive may be provided for reading and writing to removable non-volatile magnetic disks (eg "floppy disks"), as well as removable non-volatile optical disks, such as Compact Disc Read -Only Memory, CD-ROM), digital video disc (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) optical disc drive for reading and writing. In these cases, each drive may be connected tobus 418 through one or more data media interfaces.Storage 428 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present invention.

具有一组(至少一个)程序模块442的程序/实用工具440,可以存储在例如存储装置428中,这样的程序模块442包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块442通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 440 having a set (at least one) ofprogram modules 442, which may be stored, for example, instorage device 428,such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and programs Data, each or some combination of these examples may include an implementation of a network environment.Program modules 442 generally perform the functions and/or methods of the described embodiments of the present invention.

服务器412也可以与一个或多个外部设备414(例如键盘、指向终端、显示器424等)通信,还可与一个或者多个使得用户能与该服务器412交互的终端通信,和/或与使得该服务器412能与一个或多个其它计算终端进行通信的任何终端(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O) 接口422进行。并且,服务器412还可以通过网络适配器420与一个或者多个网络(例如局域网(Local Area Network,LAN),广域网(WideArea Network, WAN)和/或公共网络,例如因特网)通信。如图5所示,网络适配器420通过总线418与服务器412的其它模块通信。应当明白,尽管图中未示出,可以结合服务器412使用其它硬件和/或软件模块,包括但不限于:微代码、终端驱动器、冗余处理器、外部磁盘驱动阵列、磁盘阵列(Redundant Arrays of Independent Disks,RAID)系统、磁带驱动器以及数据备份存储系统等。Theserver 412 may also communicate with one or more external devices 414 (eg, keyboards, pointing terminals, displays 424, etc.), with one or more terminals that enable a user to interact with theserver 412, and/or with theServer 412 can communicate with any terminal (eg, network card, modem, etc.) that communicates with one or more other computing terminals. Such communication may take place through input/output (I/O)interface 422 . Also, theserver 412 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through anetwork adapter 420 . As shown in FIG. 5 ,network adapter 420 communicates with other modules ofserver 412 viabus 418 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction withserver 412, including but not limited to: microcode, terminal drivers, redundant processors, external disk drive arrays, Redundant Arrays of Independent Disks, RAID) systems, tape drives and data backup storage systems.

处理器416通过运行存储在存储装置428中的程序,从而执行各种功能应用以及数据处理,例如实现本发明任意实施例所提供的一种纸币识别方法,该方法可以包括:Theprocessor 416 executes various functional applications and data processing by running the programs stored in thestorage device 428, for example, implementing a banknote identification method provided by any embodiment of the present invention, and the method may include:

获取待检测区域中纸币的磁条波形;Obtain the magnetic stripe waveform of the banknotes in the area to be detected;

在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;Divide the magnetic stripe waveform within a preset threshold of the number of peaks and valleys to determine all the peaks and valleys;

根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷和第二磁波峰波谷;Distinguish the first magnetic wave crest and trough and the second magnetic wave crest and trough among all the wave crests and troughs according to a preset rule;

根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别。The banknote is identified according to the first magnetic wave crest and the second magnetic wave crest and the second magnetic wave crest and trough.

实施例五Embodiment 5

本发明实施例五还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明任意实施例所提供的一种纸币识别方法,该方法可以包括:Embodiment 5 of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, implements a banknote identification method as provided in any embodiment of the present invention, and the method may include: :

获取待检测区域中纸币的磁条波形;Obtain the magnetic stripe waveform of the banknotes in the area to be detected;

在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;Divide the magnetic stripe waveform within a preset threshold of the number of peaks and valleys to determine all the peaks and valleys;

根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷和第二磁波峰波谷;Distinguish the first magnetic wave crest and trough and the second magnetic wave crest and trough among all the wave crests and troughs according to a preset rule;

根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别。The banknote is identified according to the first magnetic wave crest and the second magnetic wave crest and the second magnetic wave crest and trough.

本发明实施例的计算机可读存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer-readable storage medium of the embodiments of the present invention may adopt any combination of one or more computer-readable mediums. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .

存储介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a storage medium may be transmitted using any suitable medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、 Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或终端上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (10)

Translated fromChinese
1.一种纸币识别方法,其特征在于,包括:1. A method for identifying banknotes, comprising:获取待检测区域中纸币的磁条波形;Obtain the magnetic stripe waveform of the banknotes in the area to be detected;在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;Divide the magnetic stripe waveform within a preset threshold of the number of peaks and valleys to determine all the peaks and valleys;根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷和第二磁波峰波谷;Distinguish the first magnetic wave crest and trough and the second magnetic wave crest and trough among all the wave crests and troughs according to a preset rule;根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别。The banknote is identified according to the first magnetic wave crest and the second magnetic wave crest and the second magnetic wave crest and trough.2.根据权利要求1所述的纸币识别方法,其特征在于,所述获取待检测区域中纸币的磁条波形包括:2 . The method for identifying banknotes according to claim 1 , wherein the acquiring the magnetic stripe waveform of the banknotes in the area to be detected comprises: 3 .在多个检测通道中选取纸币磁条所在的磁条通道,所述多个检测通道为基于所述待检测区域纵向划分,所述磁条通道为一个或多个;Selecting a magnetic strip channel where the banknote magnetic strip is located from a plurality of detection channels, the plurality of detection channels are longitudinally divided based on the area to be detected, and the number of magnetic strip channels is one or more;当所述磁条通道为多个时,将多个磁条通道中的磁点进行合并以生成所述磁条波形。When there are multiple magnetic stripe channels, the magnetic dots in the multiple magnetic stripe channels are combined to generate the magnetic stripe waveform.3.根据权利要求1所述的纸币识别方法,其特征在于,所述在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷之后,还包括:3. The method for identifying banknotes according to claim 1, characterized in that, after the magnetic stripe waveform is segmented to determine all the peaks and troughs within a preset threshold of the number of peaks and troughs, the method further comprises:确定所述所有波峰波谷的间距。Determine the spacing of all the peaks and valleys.4.根据权利要求3所述的纸币识别方法,其特征在于,所述根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷包括:4 . The banknote identification method according to claim 3 , wherein the distinguishing the first magnetic wave crest and trough among all the wave crests and troughs according to a preset rule comprises: 4 .当所述间距超过预设间距阈值时选取其中具有多个极值点的所述波峰波谷为所述第一磁波峰波谷。When the distance exceeds a preset distance threshold, the wave crest and trough with a plurality of extreme points are selected as the first magnetic wave crest and trough.5.根据权利要求1所述的纸币识别方法,其特征在于,所述根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别之后,还包括:5 . The banknote identification method according to claim 1 , wherein after the banknote identification is performed on the banknote according to the first magnetic wave crest and trough and the second magnetic wave crest and trough, the method further comprises: 6 .根据预设模板库对所述第一磁波峰波谷和第二磁波峰波谷的间距进行匹配以识别币值。The distance between the first magnetic wave peak and trough and the second magnetic wave peak and trough is matched according to a preset template library to identify the currency value.6.根据权利要求5所述的纸币识别方法,其特征在于,所述根据预设模板库对所述第一磁波峰波谷和第二磁波峰波谷的间距进行匹配以识别币值包括:6 . The banknote identification method according to claim 5 , wherein the matching of the distance between the first magnetic wave crest and the second magnetic wave crest and trough and the second magnetic wave crest and trough according to a preset template library to identify the currency value comprises: 6 .对所述第一磁波峰波谷和第二磁波峰波谷的间距与标准间距进行匹配以识别币值,所述标准间距为基于所述币值库获取。The distance between the first magnetic wave crest and the second magnetic wave peak and trough and the standard distance are matched to identify the currency value, and the standard distance is obtained based on the currency value library.7.根据权利要求6所述的纸币识别方法,其特征在于,所述对所述第一磁波峰波谷和第二磁波峰波谷与相邻波峰波谷的间距和标准间距进行匹配包括:7. The method for identifying banknotes according to claim 6, wherein the matching of the distances and standard distances between the first and second magnetic peaks and valleys and adjacent peaks and valleys comprises:将所述第一磁波峰波谷和第二磁波峰波谷与相邻波峰波谷的间距与所述标准间距作差;Making a difference between the distance between the first magnetic wave crest and trough and the second magnetic wave crest and trough and the adjacent wave crest and trough and the standard distance;如果所述差值小于预设误差,则匹配成功。If the difference is less than the preset error, the matching is successful.8.一种纸币识别装置,其特征在于,包括:8. A banknote identification device, characterized in that, comprising:磁条波形获取模块,用于获取待检测区域中纸币的磁条波形;The magnetic stripe waveform acquisition module is used to acquire the magnetic stripe waveform of the banknotes in the area to be detected;波峰波谷确定模块,用于在预设波峰波谷个数阈值内对所述磁条波形进行切分以确定所有波峰波谷;A wave crest and wave trough determination module, used for segmenting the magnetic stripe waveform to determine all wave crests and wave troughs within a preset number of wave crests and wave troughs;波峰波谷区分模块,用于根据预设规则区分所述所有波峰波谷中的第一磁波峰波谷和第二磁波峰波谷;a wave crest and trough distinguishing module, configured to distinguish the first magnetic wave crest and trough and the second magnetic wave crest and trough among all the wave crests and troughs according to a preset rule;纸币识别模块,用于根据所述第一磁波峰波谷和第二磁波峰波谷对所述纸币进行纸币识别。The banknote identification module is used to identify the banknotes according to the first magnetic wave peaks and valleys and the second magnetic wave peaks and valleys.9.一种服务器,其特征在于,包括:9. A server, characterized in that, comprising:一个或多个处理器;one or more processors;存储装置,用于存储一个或多个程序,storage means for storing one or more programs,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一项所述的纸币识别方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the banknote identification method according to any one of claims 1-7.10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-7中任一项所述的纸币识别方法。10. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the banknote identification method according to any one of claims 1-7 is implemented.
CN202010054930.0A2020-01-172020-01-17Paper money identification method, device, server and storage mediumPendingCN111292463A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010054930.0ACN111292463A (en)2020-01-172020-01-17Paper money identification method, device, server and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010054930.0ACN111292463A (en)2020-01-172020-01-17Paper money identification method, device, server and storage medium

Publications (1)

Publication NumberPublication Date
CN111292463Atrue CN111292463A (en)2020-06-16

Family

ID=71025483

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010054930.0APendingCN111292463A (en)2020-01-172020-01-17Paper money identification method, device, server and storage medium

Country Status (1)

CountryLink
CN (1)CN111292463A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115147977A (en)*2021-03-302022-10-04深圳怡化电脑股份有限公司Paper money counterfeit discrimination method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2000132725A (en)*1998-08-192000-05-12Fuji Electric Co Ltd Bill validator
CN102509380A (en)*2011-11-092012-06-20深圳市倍量科技有限公司Euro banknote identification method and currency detector
CN104346858A (en)*2014-10-102015-02-11新达通科技股份有限公司Paper currency face value identification method and device based on magnetic image
CN105427446A (en)*2015-11-062016-03-23东方通信股份有限公司Authentic identification method for paper money based on magnetic signal
CN105957238A (en)*2016-05-202016-09-21聚龙股份有限公司Banknote management method and system
CN106485828A (en)*2016-09-182017-03-08深圳怡化电脑股份有限公司A kind of Paper Currency Identification and device
CN107134045A (en)*2017-05-042017-09-05深圳怡化电脑股份有限公司A kind of detection method, device and the equipment of safety line magnetic feature
CN107369240A (en)*2017-07-102017-11-21深圳怡化电脑股份有限公司A kind of paper money discrimination method, apparatus, computer and storage medium
CN108074322A (en)*2016-11-172018-05-25深圳怡化电脑股份有限公司A kind of image-recognizing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2000132725A (en)*1998-08-192000-05-12Fuji Electric Co Ltd Bill validator
CN102509380A (en)*2011-11-092012-06-20深圳市倍量科技有限公司Euro banknote identification method and currency detector
CN104346858A (en)*2014-10-102015-02-11新达通科技股份有限公司Paper currency face value identification method and device based on magnetic image
CN105427446A (en)*2015-11-062016-03-23东方通信股份有限公司Authentic identification method for paper money based on magnetic signal
CN105957238A (en)*2016-05-202016-09-21聚龙股份有限公司Banknote management method and system
CN106485828A (en)*2016-09-182017-03-08深圳怡化电脑股份有限公司A kind of Paper Currency Identification and device
CN108074322A (en)*2016-11-172018-05-25深圳怡化电脑股份有限公司A kind of image-recognizing method and device
CN107134045A (en)*2017-05-042017-09-05深圳怡化电脑股份有限公司A kind of detection method, device and the equipment of safety line magnetic feature
CN107369240A (en)*2017-07-102017-11-21深圳怡化电脑股份有限公司A kind of paper money discrimination method, apparatus, computer and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115147977A (en)*2021-03-302022-10-04深圳怡化电脑股份有限公司Paper money counterfeit discrimination method and device, electronic equipment and storage medium
CN115147977B (en)*2021-03-302023-12-22深圳怡化电脑股份有限公司Paper money discriminating method, paper money discriminating device, electronic equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN107369240B (en)Paper money counterfeit discrimination method and device, computer and storage medium
CN107437294B (en)Character segmentation method, device, equipment and storage medium
CN110851835A (en)Image model detection method and device, electronic equipment and storage medium
JP5108018B2 (en) Paper sheet identification device and paper sheet identification method
CN107180479B (en)Bill identification method, device, equipment and storage medium
CN111709756A (en)Method and device for identifying suspicious communities, storage medium and computer equipment
CN110633991A (en)Risk identification method and device and electronic equipment
EP2909790A2 (en)Detecting embossed characters on cards
US20220180369A1 (en)Fraud detection device, fraud detection method, and fraud detection program
CN111046184A (en)Text risk identification method, device, server and storage medium
CN108665603B (en)Method and device for identifying currency type of paper money and electronic equipment
CN114297448B (en)License applying method, system and medium based on intelligent epidemic prevention big data identification
WO2008088121A1 (en)Apparatus and method for detecting program plagiarism through memory access log analysis
CN109522852B (en) Artificial target detection method, device and equipment based on optical remote sensing images
US8005262B2 (en)System and method for video object identification
CN104281831A (en)Handwriting verification method and device
CN107992495B (en)Data visualization analysis method and device for high-dimensional data set
CN111292463A (en)Paper money identification method, device, server and storage medium
CN116071586A (en)Image screening method, device, electronic equipment and computer readable storage medium
CN107680246B (en)Method and equipment for positioning curve boundary in paper money pattern
CN118736181A (en) Pointer instrument reading recognition method, device, equipment and storage medium
CN109410420B (en)Image detection method and device and bill discriminator
CN116092230B (en) A ticket authentication method and system
CN117372722A (en)Target identification method and identification system
US20210357363A1 (en)File comparison method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20200616

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp