WO2017079904A1 - Currency face value identification method and device - Google Patents

Currency face value identification method and device Download PDF

Info

Publication number
WO2017079904A1
WO2017079904A1 PCT/CN2015/094216 CN2015094216W WO2017079904A1 WO 2017079904 A1 WO2017079904 A1 WO 2017079904A1 CN 2015094216 W CN2015094216 W CN 2015094216W WO 2017079904 A1 WO2017079904 A1 WO 2017079904A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
currency
gray value
image
image parameter
Prior art date
Application number
PCT/CN2015/094216
Other languages
French (fr)
Chinese (zh)
Inventor
周彦华
Original Assignee
深圳怡化电脑股份有限公司
深圳市怡化时代科技有限公司
深圳市怡化金融智能研究院
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 深圳怡化电脑股份有限公司, 深圳市怡化时代科技有限公司, 深圳市怡化金融智能研究院 filed Critical 深圳怡化电脑股份有限公司
Priority to PCT/CN2015/094216 priority Critical patent/WO2017079904A1/en
Publication of WO2017079904A1 publication Critical patent/WO2017079904A1/en

Links

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

Definitions

  • the present invention relates to the field of currency face value recognition technology, and in particular to a method and device for identifying currency face value.
  • Embodiments of the present invention provide a method and apparatus for identifying currency denominations to facilitate face value recognition of currencies in some countries, especially Egyptian currency.
  • a first aspect of the present invention provides a method for identifying a currency face value, including:
  • a second aspect of the present invention provides an apparatus for identifying a currency denomination, including:
  • an obtaining module configured to acquire an image of a currency, where the currency includes an Egyptian currency
  • a determining module configured to determine a face value of the currency according to the first image parameter and the second image parameter.
  • the embodiment of the present invention determines, according to the first image parameter and the second image parameter, the first image parameter of the first region of the image and the second image parameter of the second region.
  • the face value of the currency helps to identify the face value of some countries' currencies, especially the Egyptian currency.
  • FIG. 1 is a flowchart of a method for identifying a currency denomination according to an embodiment of the present invention
  • FIG. 3 is an image of a 50,000 riyal value provided by an embodiment of the present invention.
  • FIG. 6 is an absolute value of the difference between the first gray value and the second gray value of the four currency values provided by the embodiment of the present invention, Imeanl-mean2l;
  • FIG. 7 is a first gradation value meanl diagram of 20,000 riyals and 50,000 riels provided by an embodiment of the present invention
  • FIG. 8 is a first gradation value meanl of 500000 according to an embodiment of the present invention
  • FIG. 9 is a first gray value mean1 and a second gray value me n n 2 diagram of 100000 according to an embodiment of the present invention
  • FIG. A logical structure diagram of a currency face value identification device provided by the example.
  • Embodiments of the present invention provide a method for identifying currency denominations to facilitate face value recognition of currencies in some countries, particularly Egyptian currency. Embodiments of the present invention also provide a device for identifying a currency face value.
  • the step of obtaining an image of the currency comprises:
  • the data of the effective image portion is an image of the currency to be acquired by the embodiment of the present invention.
  • the image parameters may be grayscale values or blackpoint values.
  • the first image parameter is a first gray value and the second image parameter is a second gray value.
  • Step 120 is specifically: calculating a first gray value of the first region of the image and a second gray value of the second region.
  • the first gray value is an average gray value of the first region; [0041] the second gray value is an average gray of the second region Degree value.
  • grayscale values in the first region and the second region may be measured by sensors.
  • the average gray value is a ratio of a sum of gray value values of all pixel points in a region to a number of pixel points.
  • Step 120 will be described in detail below by taking a numerical value of a black dot as an example.
  • the first image parameter is a first black dot value
  • the second image parameter is a second black dot value
  • Step 120 is specifically: calculating a first black dot value of the first region of the image and a second black dot value of the second region.
  • the calculating the first black dot value of the first region of the image and the second black dot value of the second region include: [0047] performing binarization processing on the first region and the second region of the image;
  • a binarization threshold is set, wherein the selection of the binarization threshold has multiple methods, and the embodiment of the present invention may adopt a maximum inter-class variance method. (otsu), histogram method, Kittler method.
  • [0050] 130 Determine a face value of the currency according to the first image parameter and the second image parameter.
  • step 130 will be described in detail below by taking the gray value as an example.
  • the first image parameter is a first gray value and the second image parameter is a second gray value.
  • the second image parameter when the first image parameter is a first gray value, the second image parameter is a second gray value.
  • step 130 is specifically: according to the first gray value and the second gray value Determine the face value of the currency.
  • determining the face value of the currency according to the first gray value and the second gray value includes:
  • an absolute value of a difference between the first gray value and the second gray value is smaller than a first threshold set in advance, and the first gray value is smaller than a second threshold set in advance, Determining that the face value of the currency is 50,000 rials;
  • an absolute value of a difference between the first gray value and the second gray value is greater than a first threshold set in advance, and the first gray value is smaller than the second gray value , determining that the face value of the currency is 500,000 riyals;
  • an absolute value of a difference between the first gray value and the second gray value is greater than a first threshold set in advance, and the first gray value is greater than the second gray value , determining that the face value of the currency is 100,000 Yar.
  • Step 130 will be described in detail below by taking a numerical value of a black dot as an example.
  • the first image parameter is a first black dot value
  • the second image parameter is a second black dot value
  • step 130 is specifically:
  • the face value of the currency can be determined by comparing the values of the black dots of the binarized region.
  • the step 130 includes: [0067] an absolute value of a difference between the first black dot value and the second black dot value is less than a preset third threshold, and the first black dot value Less than a preset fourth threshold ⁇ , determining that the face value of the currency is 20,000 riels;
  • the absolute value of the difference between the first black dot value and the second black dot value is smaller than a preset third threshold, and the first black dot value is greater than a preset fourth value Threshold ⁇ , determining that the face value of the currency is 50,000 riels;
  • the absolute value of the difference between the first black dot value and the second black dot value is greater than a preset third threshold, and the first black dot value is smaller than the second black Point a value ⁇ to determine the face value of the currency is 100,000 riyals;
  • the coordinates of the first region in the image are [0.231L-0.615L], [0.189W-0.267W];
  • the first region is in the image
  • the second region is a coordinate in the image of [0.231L-0.269L], [0.786W-0.824W]; wherein the L is the length of the image, W is the width of the image.
  • the specific positions of the first region and the second region may be represented by position coordinates related to the length L and the width W of the image, and position coordinates associated with pixels of the image may also be used. To indicate the specific location of the first area and the second area.
  • step 110 further includes the following steps:
  • step 120 According to the image, the degree of fouling of the currency is detected, and when the degree of fouling of the currency does not exceed a certain range, step 120 is performed.
  • the front image size is ⁇ [1-1300], ⁇ [1-450], the first area position is ⁇ [300-800], ⁇ [85-120], The position of the two regions is ⁇ [300-800], ⁇ [345-380], and the position coordinates of X and ⁇ are represented by pixels.
  • both the first region 10 and the second region 11 are relatively bright, and the first gray value mean1 of the first region 10 and the second gray value mean2 of the second region 11 are not much different. Therefore, the values of meanl and mean2 are larger.
  • both the first region 20 and the second region 21 are relatively dark, and the first grayscale of the first region 20
  • the value mean1 and the second gray value mean2 of the second region 21 are not much different, so the values of meanl and mean2 are small.
  • the first region 30 is brighter, the second region 31 is darker, and the first gray value mean1 of the first region 30 and the second gray value mean2 of the second region 11 are significantly different. Therefore meanl is greater than mean2.
  • Imeanl-mean2l of the first region and the second region of 100,000 riyals and 500,000 rials is relatively large, about 35 or more;
  • Setting the first threshold T 1 according to this feature can divide the banknote into 50,000 riyals and 20,000 riels.
  • the first region of the 50000 riyal has a small grayscale average of about 20; by setting the second threshold T2, the two currency values can be divided.
  • T1 is optional and suitable for about 25, and T2 is suitable for [60-70].
  • the first image parameter of the first region of the image and the second image parameter of the second region are calculated according to the first image parameter and
  • the second image parameter determines a face value of the currency, which helps to identify the face value of the currency of some countries, in particular It is Egyptian currency.
  • the algorithm can be designed according to the characteristics of the Egyptian currency. It has strong pertinence and obvious and stable identification features. The algorithm has good simple effect and can identify the four large denominations of the current market. It can flexibly change Tl and ⁇ 2 according to the needs. The recognition result is optimized.
  • an embodiment of the present invention provides a device for identifying a currency denomination, which may include:
  • the obtaining module 11 is configured to obtain an image of a currency, where the currency includes an Egyptian currency;
  • the determining module 13 is configured to determine a face value of the currency according to the first image parameter and the second image parameter.
  • the first image parameter is a first gray value
  • the second image parameter is a second gray value
  • the obtaining module 11 is specifically configured to acquire an image of the currency, where the currency includes Egyptian currency;
  • the calculating module 12 is specifically configured to calculate a first gray value of the first region of the image and a second gray value of the second region;
  • the determining module 13 is specifically configured to determine a face value of the currency according to the first gray value and the second gray value.
  • the algorithm helps to identify the face value of the currency of some countries, especially the Egyptian currency.
  • the algorithm can be designed according to the characteristics of the Egyptian currency. It has strong pertinence and obvious and stable identification features.
  • the algorithm has good simple effect and can identify the four large denominations of the current market. It can flexibly change Tl and ⁇ 2 according to the needs. The recognition result is optimized.
  • the first gray value is an average gray value of the first region
  • the second gray value is an average gray value of the second region.
  • the determining module is specifically configured to: the absolute value of the difference between the first gray value and the second gray value is less than a preset first threshold, And the first gray value is greater than the pre Setting a second threshold ⁇ , determining that the face value of the currency is 20,000 riels; the absolute value of the difference between the first gradation value and the second gradation value is less than a preset first threshold, And the first gray value is smaller than a preset second threshold ⁇ , determining that the face value of the currency is 50,000 riels; the absolute difference between the first gradation value and the second gradation value The value is greater than a preset first threshold, and the first gray value is less than the second gray value ⁇ , determining that the face value of the currency is 500000 riels; at the first gray value and the The absolute value of the difference of the second gray value is greater than a first threshold set in advance, and the first gray value is greater than the second gray value, and the face value of the currency is determined
  • the first image parameter is a first black dot value
  • the second image parameter is a second black dot value
  • the determining module 13 is specifically configured to determine a face value of the currency according to the first black dot value and the second black dot value of the first region.
  • the first image parameter of the first region of the image and the second image parameter of the second region are calculated according to the first image parameter and
  • the second image parameter determines the face value of the currency, which helps to identify the face value of the currency of some countries, especially the Egyptian currency.
  • the algorithm can be designed according to the characteristics of the Egyptian currency. It has strong pertinence and obvious and stable identification features. The algorithm has good simple effect and can identify the four large denominations of the current market. It can flexibly change Tl and ⁇ 2 according to the needs. The recognition result is optimized.
  • the method and apparatus for identifying currency face value by calculating a first image parameter of a first region of the image and a second image parameter of the second region, according to the first image parameter and The second image parameter determines the face value of the currency, which helps to identify the face value of the currency of some countries, especially the Egyptian currency.

Abstract

A currency face value identification method and device, the method comprising: acquiring an image of currency, the currency comprising Iranian currency; calculating a first image parameter of a first region and a second image parameter of a second region of the image; and determining the face value of the currency according to the first image parameter and the second image parameter. The present invention facilitates identifying face values of currencies of a number of countries, in particular Iranian currency.

Description

一种货币面值的识别方法及装置 技术领域  Method and device for identifying currency denomination
[0001] 本发明涉及货币面值识别技术领域, 具体涉及一种货币面值的识别方法及装置 背景技术  [0001] The present invention relates to the field of currency face value recognition technology, and in particular to a method and device for identifying currency face value.
[0002] 目前在货币处理, 例如点验钞等领域, 通常需要对货币进行面值识别。 而不同 国家的货币通常差别极大, 需要采用完全不同的技术手段去识别。 通常对于美 元、 英镑、 人民币的面值识别的研究较多。 然而, 针对一些国家的货币, 例如 伊朗的伊朗币, 目前尚没有有效的识别方法。  [0002] Currently, in the field of currency processing, such as point counterfeiting, it is often necessary to perform face value recognition on currency. The currencies of different countries usually vary greatly and need to be identified using completely different technical means. There are usually many studies on the face value recognition of the US dollar, the British pound, and the Chinese yuan. However, there are currently no effective methods for identifying currencies in some countries, such as Iranian Iranian currency.
技术问题  technical problem
[0003] 本发明实施例提供一种货币面值的识别方法及装置, 以有助于对部分国家的货 币进行面值识别, 尤其是伊朗币。  Embodiments of the present invention provide a method and apparatus for identifying currency denominations to facilitate face value recognition of currencies in some countries, especially Iranian currency.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0004] 本发明第一方面提供一种货币面值的识别方法, 包括:  [0004] A first aspect of the present invention provides a method for identifying a currency face value, including:
[0005] 获取货币的图像, 所述货币包括伊朗币; [0005] obtaining an image of a currency, the currency including Iranian currency;
[0006] 计算所述图像的第一区域的第一图像参数及第二区域的第二图像参数;  Calculating a first image parameter of the first region of the image and a second image parameter of the second region;
[0007] 根据所述第一图像参数和所述第二图像参数确定所述货币的面值。 Determining a face value of the currency based on the first image parameter and the second image parameter.
[0008] 本发明第二方面提供一种货币面值的识别装置, 包括: [0008] A second aspect of the present invention provides an apparatus for identifying a currency denomination, including:
[0009] 获取模块, 用于获取货币的图像, 所述货币包括伊朗币; [0009] an obtaining module, configured to acquire an image of a currency, where the currency includes an Iranian currency;
[0010] 计算模块, 用于计算所述图像的第一区域的第一图像参数及第二区域的第二图 像参数;  [0010] a calculation module, configured to calculate a first image parameter of the first region of the image and a second image parameter of the second region;
[0011] 确定模块, 用于根据所述第一图像参数和所述第二图像参数确定所述货币的面 值。  And [0011] a determining module, configured to determine a face value of the currency according to the first image parameter and the second image parameter.
发明的有益效果  Advantageous effects of the invention
有益效果 [0012] 由上可见, 本发明实施例通过计算所述图像的第一区域的第一图像参数及第二 区域的第二图像参数, 根据所述第一图像参数和所述第二图像参数确定所述货 币的面值, 有助于对部分国家的货币进行面值识别, 尤其是伊朗币。 Beneficial effect [0012] As can be seen from the above, the embodiment of the present invention determines, according to the first image parameter and the second image parameter, the first image parameter of the first region of the image and the second image parameter of the second region. The face value of the currency helps to identify the face value of some countries' currencies, especially the Iranian currency.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0013] 为了更清楚地说明本发明实施例技术方案, 下面将对实施例和现有技术描述中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发 明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提 下, 还可以根据这些附图获得其它的附图。  [0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments and the prior art description will be briefly described below. Obviously, the drawings in the following description are merely the present invention. Some of the embodiments may be obtained by those of ordinary skill in the art in view of these drawings without any inventive effort.
[0014] 图 1是本发明实施例提供的一种货币面值的识别方法的流程图;  1 is a flowchart of a method for identifying a currency denomination according to an embodiment of the present invention;
[0015] 图 2是本发明实施例提供的币值为 20000里亚尔的图像;  2 is an image of a vowel value of 20,000 riels according to an embodiment of the present invention;
[0016] 图 3是本发明实施例提供的币值为 50000里亚尔的图像;  [0016] FIG. 3 is an image of a 50,000 riyal value provided by an embodiment of the present invention;
[0017] 图 4是本发明实施例提供的币值为 100000里亚尔的图像, ;  4 is an image of a currency value of 100,000 riels provided by an embodiment of the present invention;
[0018] 图 5是本发明实施例提供的币值为 500000里亚尔的图像;  [0018] FIG. 5 is an image of a 50,000 riyal value provided by an embodiment of the present invention;
[0019] 图 6是本发明实施例提供的四种币值的第一灰度值与第二灰度值的差值的绝对 值 Imeanl-mean2l图;  [0019] FIG. 6 is an absolute value of the difference between the first gray value and the second gray value of the four currency values provided by the embodiment of the present invention, Imeanl-mean2l;
[0020] 图 7是本发明实施例提供的 20000里亚尔和 50000里亚尔的第一灰度值 meanl图; [0021] 图 8是本发明实施例提供的 500000的第一灰度值 meanl及第二灰度值 mean2图; [0022] 图 9是本发明实施例提供的 100000的第一灰度值 meanl及第二灰度值 mean2图; [0023] 图 10本发明实施例提供的一种货币面值的识别装置的逻辑结构示意图。 7 is a first gradation value meanl diagram of 20,000 riyals and 50,000 riels provided by an embodiment of the present invention; [0021] FIG. 8 is a first gradation value meanl of 500000 according to an embodiment of the present invention; And a second gray value me n n 2 figure; [0022] FIG. 9 is a first gray value mean1 and a second gray value me n n 2 diagram of 100000 according to an embodiment of the present invention; [0023] FIG. A logical structure diagram of a currency face value identification device provided by the example.
本发明的实施方式 Embodiments of the invention
[0024] 本发明实施例提供货币面值的识别方法, 以有助于对部分国家的货币进行面值 识别, 尤其是伊朗币。 本发明实施例还提供相应的货币面值的识别装置。  [0024] Embodiments of the present invention provide a method for identifying currency denominations to facilitate face value recognition of currencies in some countries, particularly Iranian currency. Embodiments of the present invention also provide a device for identifying a currency face value.
[0025] 为了使本技术领域的人员更好地理解本发明方案, 下面将结合本发明实施例中 的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述 的实施例仅仅是本发明一部分的实施例, 而不是全部的实施例。 基于本发明中 的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其 他实施例, 都应当属于本发明保护的范围。 The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The embodiments are merely a part of the embodiments of the invention, and not all of the embodiments. Based on the embodiments of the present invention, all of those obtained by those of ordinary skill in the art without creative efforts The embodiments thereof should fall within the scope of protection of the present invention.
[0026] 下面通过具体实施例, 分别进行详细的说明。  [0026] Detailed description will be respectively made below through specific embodiments.
[0027] 实施例一、 [0027] Embodiment 1
[0028] 请参考图 1, 本发明实施例提供的一种货币面值的识别方法, 可包括:  [0028] Please refer to FIG. 1, a method for identifying a currency face value according to an embodiment of the present invention, which may include:
[0029] 110、 获取货币的图像, 所述货币包括伊朗币。 [0029] 110. Acquire an image of the currency, where the currency includes Iranian currency.
[0030] 在本发明的一些实施例中, 步骤获取货币的图像包括: [0030] In some embodiments of the invention, the step of obtaining an image of the currency comprises:
[0031] 扫描货币图像, 存储图像数据; [0031] scanning a currency image, storing image data;
[0032] 提取正面图像数据, 去噪声和背景, 截取有效图像部分的数据。  [0032] extracting frontal image data, denoising and background, and intercepting data of the effective image portion.
[0033] 其中, 有效图像部分的数据为本发明实施例所要获取的货币的图像。  [0033] wherein the data of the effective image portion is an image of the currency to be acquired by the embodiment of the present invention.
[0034] 在截取中, 有效图像部分的数据可恰好是一张完整货币的图像。  [0034] In the interception, the data of the effective image portion may be exactly an image of a complete currency.
[0035] 120、 计算所述图像的第一区域的第一图像参数及第二区域的第二图像参数。  [0035] 120. Calculate a first image parameter of the first region of the image and a second image parameter of the second region.
[0036] 在本发明的一些实施例中, 图像参数可以是灰度值, 也可以是黑点个数值。  [0036] In some embodiments of the invention, the image parameters may be grayscale values or blackpoint values.
[0037] 下面以灰度值为例, 对步骤 120进行详细的介绍。  [0037] Step 120 will be described in detail below with grayscale values as an example.
[0038] 在本发明的一些实施例中, 所述第一图像参数为第一灰度值, 所述第二图像参 数为第二灰度值。  [0038] In some embodiments of the invention, the first image parameter is a first gray value and the second image parameter is a second gray value.
[0039] 步骤 120具体为: 计算所述图像的第一区域的第一灰度值及第二区域的第二灰 度值。  [0039] Step 120 is specifically: calculating a first gray value of the first region of the image and a second gray value of the second region.
[0040] 在本发明的一些实施例中, 所述第一灰度值为所述第一区域的平均灰度值; [0041] 所述第二灰度值为所述第二区域的平均灰度值。  [0040] In some embodiments of the present invention, the first gray value is an average gray value of the first region; [0041] the second gray value is an average gray of the second region Degree value.
[0042] 在本发明的一些实施例中, 可通过传感器来测得第一区域和第二区域内的灰度 值。 所述平均灰度值为区域内的所有像素点灰度值之和与像素点数之比。  [0042] In some embodiments of the invention, grayscale values in the first region and the second region may be measured by sensors. The average gray value is a ratio of a sum of gray value values of all pixel points in a region to a number of pixel points.
[0043] 下面以黑点个数值为例, 对步骤 120进行详细的介绍。 [0043] Step 120 will be described in detail below by taking a numerical value of a black dot as an example.
[0044] 在本发明的一些实施中, 所述第一图像参数为第一黑点个数值, 所述第二图像 参数为第二黑点个数值。  [0044] In some implementations of the invention, the first image parameter is a first black dot value, and the second image parameter is a second black dot value.
[0045] 步骤 120具体为: 计算所述图像的第一区域的第一黑点个数值及第二区域的第 二黑点个数值。 [0045] Step 120 is specifically: calculating a first black dot value of the first region of the image and a second black dot value of the second region.
[0046] 在本发明的一些实施例中, 所述计算所述图像的第一区域的第一黑点个数值及 第二区域的第二黑点个数值包括: [0047] 对所述图像的第一区域和第二区域进行二值化处理; [0046] In some embodiments of the present invention, the calculating the first black dot value of the first region of the image and the second black dot value of the second region include: [0047] performing binarization processing on the first region and the second region of the image;
[0048] 获取二值化处理后的所述图像的第一区域的第一黑点个数值及第二区域的第二 黑点个数值。  [0048] acquiring a first black dot value of the first region of the image and a second black dot value of the second region after the binarization process.
[0049] 在本发明的一些实施例中, 在进行二值化处理吋, 会设置二值化阈值, 其中二 值化阈值的选取有多种方法, 本发明实施例可以采用最大类间方差法 (otsu) 、 直方图法、 Kittler法。  [0049] In some embodiments of the present invention, after performing binarization processing, a binarization threshold is set, wherein the selection of the binarization threshold has multiple methods, and the embodiment of the present invention may adopt a maximum inter-class variance method. (otsu), histogram method, Kittler method.
[0050] 130、 根据所述第一图像参数和所述第二图像参数确定所述货币的面值。  [0050] 130. Determine a face value of the currency according to the first image parameter and the second image parameter.
[0051] 在本发明的一些实施例中, 图像参数可以是灰度值, 也可以是黑点个数值。  [0051] In some embodiments of the invention, the image parameters may be grayscale values or blackpoint values.
[0052] 下面以灰度值为例, 对步骤 130进行详细的介绍。  [0052] The step 130 will be described in detail below by taking the gray value as an example.
[0053] 在本发明的一些实施例中, 所述第一图像参数为第一灰度值, 所述第二图像参 数为第二灰度值。  [0053] In some embodiments of the invention, the first image parameter is a first gray value and the second image parameter is a second gray value.
[0054] 在本发明的一些实施例中, 当第一图像参数为第一灰度值, 所述第二图像参数 为第二灰度值。  [0054] In some embodiments of the invention, when the first image parameter is a first gray value, the second image parameter is a second gray value.
[0055] 当第一图像参数为第一灰度值, 所述第二图像参数为第二灰度值吋, 步骤 130 具体为: 根据所述第一灰度值和所述第二灰度值确定所述货币的面值。  [0055] When the first image parameter is the first gray value and the second image parameter is the second gray value, step 130 is specifically: according to the first gray value and the second gray value Determine the face value of the currency.
[0056] 在本发明的一些实施例中, 所述根据所述第一灰度值和所述第二灰度值确定所 述货币的面值包括:  [0056] In some embodiments of the present invention, determining the face value of the currency according to the first gray value and the second gray value includes:
[0057] 在所述第一灰度值和所述第二灰度值的差值的绝对值小于预先设置的第一阈值 , 且所述第一灰度值大于预先设置的第二阈值吋, 确定所述货币的面值为 20000 里亚尔;  [0057] an absolute value of a difference between the first gray value and the second gray value is smaller than a first threshold set in advance, and the first gray value is greater than a second threshold set in advance, Determining that the face value of the currency is 20,000 riels;
[0058] 在所述第一灰度值和所述第二灰度值的差值的绝对值小于预先设置的第一阈值 , 且所述第一灰度值小于预先设置的第二阈值吋, 确定所述货币的面值为 50000 里亚尔;  [0058] an absolute value of a difference between the first gray value and the second gray value is smaller than a first threshold set in advance, and the first gray value is smaller than a second threshold set in advance, Determining that the face value of the currency is 50,000 rials;
[0059] 在所述第一灰度值和所述第二灰度值的差值的绝对值大于预先设置的第一阈值 , 且所述第一灰度值小于所述第二灰度值吋, 确定所述货币的面值为 500000里 亚尔;  [0059] an absolute value of a difference between the first gray value and the second gray value is greater than a first threshold set in advance, and the first gray value is smaller than the second gray value , determining that the face value of the currency is 500,000 riyals;
[0060] 在所述第一灰度值和所述第二灰度值的差值的绝对值大于预先设置的第一阈值 , 且所述第一灰度值大于所述第二灰度值吋, 确定所述货币的面值为 100000里 亚尔。 [0060] an absolute value of a difference between the first gray value and the second gray value is greater than a first threshold set in advance, and the first gray value is greater than the second gray value , determining that the face value of the currency is 100,000 Yar.
[0061] 下面以黑点个数值为例, 对步骤 130进行详细的介绍。  [0061] Step 130 will be described in detail below by taking a numerical value of a black dot as an example.
[0062] 在本发明的一些实施例中, 所述第一图像参数为第一黑点个数值, 所述第二图 像参数为第二黑点个数值。  [0062] In some embodiments of the present invention, the first image parameter is a first black dot value, and the second image parameter is a second black dot value.
[0063] 当所述第一图像参数为第一黑点个数值, 所述第二图像参数为第二黑点个数值 吋, 步骤 130具体为: [0063] When the first image parameter is a first black dot value and the second image parameter is a second black dot value 吋, step 130 is specifically:
[0064] 根据所述第一区域的第一黑点个数值和第二黑点个数值确定所述货币的面值。  [0064] determining a face value of the currency according to the first black dot value and the second black dot value of the first region.
[0065] 通过比较二值化后的区域的黑点个数值可以确定所述货币的面值。  [0065] The face value of the currency can be determined by comparing the values of the black dots of the binarized region.
[0066] 在本发明的一些实施例中, 当所述第一图像参数为第一黑点个数值, 所述第二 图像参数为第二黑点个数值吋、 所述货币为伊朗币吋, 所述步骤 130包括: [0067] 在所述第一黑点个数值和所述第二黑点个数值的差值的绝对值小于预先设置的 第三阈值, 且所述第一黑点个数值小于预先设置的第四阈值吋, 确定所述货币 的面值为 20000里亚尔;  [0066] In some embodiments of the present invention, when the first image parameter is a first black dot value, the second image parameter is a second black dot value 吋, and the currency is Iranian currency 吋, The step 130 includes: [0067] an absolute value of a difference between the first black dot value and the second black dot value is less than a preset third threshold, and the first black dot value Less than a preset fourth threshold 吋, determining that the face value of the currency is 20,000 riels;
[0068] 在所述第一黑点个数值和所述第二黑点个数值的差值的绝对值小于预先设置的 第三阈值, 且所述第一黑点个数值大于预先设置的第四阈值吋, 确定所述货币 的面值为 50000里亚尔; [0068] The absolute value of the difference between the first black dot value and the second black dot value is smaller than a preset third threshold, and the first black dot value is greater than a preset fourth value Threshold 吋, determining that the face value of the currency is 50,000 riels;
[0069] 在所述第一黑点个数值和所述第二黑点个数值的差值的绝对值大于预先设置的 第三阈值, 且所述第一黑点个数值小于所述第二黑点个数值吋, 确定所述货币 的面值为 100000里亚尔; [0069] The absolute value of the difference between the first black dot value and the second black dot value is greater than a preset third threshold, and the first black dot value is smaller than the second black Point a value 吋 to determine the face value of the currency is 100,000 riyals;
[0070] 在所述第一黑点个数值和所述第二黑点个数值的差值的绝对值大于预先设置的 第三阈值, 且所述第一黑点个数值大于所述第二黑点个数值吋, 确定所述货币 的面值为 500000里亚尔。 [0070] The absolute value of the difference between the first black dot value and the second black dot value is greater than a preset third threshold, and the first black dot value is greater than the second black Click on the value 吋 to determine the face value of the currency is 500000 riyals.
[0071] 在本发明的一些实施例中, 当所述货币为伊朗币吋, 所述第一区域在所述图像 中的坐标为 [0.231L-0.615L],[0.189W-0.267W] ; [0071] In some embodiments of the present invention, when the currency is Iranian currency, the coordinates of the first region in the image are [0.231L-0.615L], [0.189W-0.267W];
[0072] 所述第二区域为在所述图像中的坐标为 [0.231L-0.615L], [0.767W-0.844W]; [0073] 其中, 所述 L为所述图像的长度, 所述 W为所述图像的宽度。 [0072] the second region is a coordinate in the image of [0.231L-0.615L], [0.767W-0.844W]; wherein the L is the length of the image, W is the width of the image.
[0074] 上述位置的第一区域和第二区域的识别性能稳定, 识别效果好。 [0074] The recognition performance of the first region and the second region at the above position is stable, and the recognition effect is good.
[0075] 在本发明的一些实施例中, 当所述货币为伊朗币吋, 所述第一区域在所述图像 中的坐标为 [0.231L-0.269L] , [0.208W-0.248W]; [0075] In some embodiments of the invention, when the currency is Iranian currency, the first region is in the image The coordinates in [0.231L-0.269L], [0.208W-0.248W];
[0076] 所述第二区域为在所述图像中的坐标为 [0.231L-0.269L], [0.786W-0.824W]; [0077] 其中, 所述 L为所述图像的长度, 所述 W为所述图像的宽度。 [0076] the second region is a coordinate in the image of [0.231L-0.269L], [0.786W-0.824W]; wherein the L is the length of the image, W is the width of the image.
[0078] 通过缩小区域的面积, 可以减少计算量, 提高计算效率。 [0078] By reducing the area of the area, the amount of calculation can be reduced, and the calculation efficiency can be improved.
[0079] 在本发明的一些实施例中, 可以用与图像的长度 L、 宽度 W相关的位置坐标来 表示第一区域和第二区域的具体位置, 也可以用与图像的像素相关的位置坐标 来表示第一区域和第二区域的具体位置。  [0079] In some embodiments of the present invention, the specific positions of the first region and the second region may be represented by position coordinates related to the length L and the width W of the image, and position coordinates associated with pixels of the image may also be used. To indicate the specific location of the first area and the second area.
[0080] 在本发明的一些实施例中, 步骤 110之后还包括以下步骤:  [0080] In some embodiments of the invention, step 110 further includes the following steps:
[0081] 依据所述图像, 检测所述货币的污损程度, 当所述货币的污损程度没有超过一 定范围吋, 则执行步骤 120。  [0081] According to the image, the degree of fouling of the currency is detected, and when the degree of fouling of the currency does not exceed a certain range, step 120 is performed.
[0082] 通过污损检测, 可以防止步骤 120对货币无法识别。  [0082] By the stain detection, it is possible to prevent the step 120 from being unrecognizable to the currency.
[0083] 在本发明的一些实施例中, 当所述货币的污损程度超过一定范围吋, 则将所述 货币退还给用户。  [0083] In some embodiments of the invention, when the degree of fouling of the currency exceeds a certain range, the currency is returned to the user.
[0084] 在本发明的一些实施例中, 污损检测可以采用目前常用的污损检测技术。  [0084] In some embodiments of the invention, the fouling detection may employ the currently commonly used fouling detection techniques.
[0085] 可以理解, 本发明实施例上述方案例如可以在 ATM机、 点钞机等设备具体实施 [0085] It can be understood that the foregoing solution of the embodiment of the present invention can be implemented, for example, in an ATM machine, a money counter, or the like.
[0086] 为便于更好的理解本发明实施例提供的技术方案, 下面通过一个例子对本发明 实施例的方案原理进行介绍。 [0086] In order to facilitate a better understanding of the technical solutions provided by the embodiments of the present invention, the principle of the embodiments of the present invention will be described below by way of an example.
[0087] 首先在横向 200DPI, 纵向 15DPI下, 正面图像大小为 Χ[1-1300],Υ[1-450],第一区 域位置为 Χ[300-800],Υ[85-120],第二区域位置为 Χ[300-800],Υ[345-380],该处的 X 和 Υ的位置坐标用像素来表示。 [0087] First, in the horizontal direction 200DPI, vertical 15DPI, the front image size is Χ[1-1300], Υ[1-450], the first area position is Χ[300-800], Υ[85-120], The position of the two regions is Χ[300-800], Υ[345-380], and the position coordinates of X and 该 are represented by pixels.
[0088] 请参考图 2-图 9, 图 2为币值为 20000里亚尔的图像, 图 3为币值为 50000里亚尔 的图像, 图 4为币值为 100000里亚尔的图像, 图 5为币值为 500000里亚尔的图像 [0088] Please refer to FIG. 2 to FIG. 9. FIG. 2 is an image with a value of 20,000 riels, FIG. 3 is an image with a value of 50,000 riels, and FIG. 4 is an image with a ri in value of 100,000 riels. Image with a value of 500,000 rials
[0089] 从图 2可以看到, 第一区域 10和第二区域 11均比较亮, 第一区域 10的第一灰度 值 meanl和第二区域 11的第二灰度值 mean2相差不大, 因此 meanl和 mean2值较大[0089] As can be seen from FIG. 2, both the first region 10 and the second region 11 are relatively bright, and the first gray value mean1 of the first region 10 and the second gray value mean2 of the second region 11 are not much different. Therefore, the values of meanl and mean2 are larger.
, 且比较接近。 , and relatively close.
[0090] 从图 3可以看到, 第一区域 20和第二区域 21均比较暗, 第一区域 20的第一灰度 值 meanl和第二区域 21的第二灰度值 mean2相差不大, 因此 meanl和 mean2值较小[0090] As can be seen from FIG. 3, both the first region 20 and the second region 21 are relatively dark, and the first grayscale of the first region 20 The value mean1 and the second gray value mean2 of the second region 21 are not much different, so the values of meanl and mean2 are small.
, 且比较接近。 , and relatively close.
[0091] 从图 4可以看到, 第一区域 30较亮, 第二区域 31较暗, 第一区域 30的第一灰度 值 meanl和第二区域 11的第二灰度值 mean2相差明显, 因此 meanl大于 mean2。  [0091] As can be seen from FIG. 4, the first region 30 is brighter, the second region 31 is darker, and the first gray value mean1 of the first region 30 and the second gray value mean2 of the second region 11 are significantly different. Therefore meanl is greater than mean2.
[0092] 从图 5可以看到, 第一区域 40较暗, 第二区域 41较亮, 第一区域 40的第一灰度 值 meanl和第二区域 41的第二灰度值 mean2相差明显, 因此 meanl小于 mean2。 [0092] As can be seen from FIG. 5, the first region 40 is darker, the second region 41 is brighter, and the first grayscale value mean1 of the first region 40 and the second grayscale value mean2 of the second region 41 are significantly different. Therefore meanl is smaller than mean2.
[0093] 在图 6为四种币值的 Imeanl-mean2l。 从 6中可以看到, 50000里亚尔和 20000里 亚尔的第一区域和第二区域的 Imeanl-mean2l比较小, 大约为 10; [0093] In Figure 6, there are four currency values of Imeanl-mean2l. It can be seen from 6 that the first region of the 50000 riyal and the 20000 riyal and the second region of the Imeanl-mean2l are relatively small, about 10;
[0094] 100000里亚尔和 500000里亚尔的第一区域和第二区域的 Imeanl-mean2l比较比较 大, 大约 35以上; [0094] Imeanl-mean2l of the first region and the second region of 100,000 riyals and 500,000 rials is relatively large, about 35 or more;
[0095] 根据此特征设定第一阈值 T 1可以将纸币分成 50000里亚尔和 20000里亚尔一类, [0095] Setting the first threshold T 1 according to this feature can divide the banknote into 50,000 riyals and 20,000 riels.
100000里亚尔和 500000里亚尔另一类。 Another category of 100,000 riyals and 500,000 rials.
[0096] 针对第一类, 根据图 7可以看到, 20000里亚尔的第一区域的灰度平均值很大,[0096] For the first category, it can be seen from FIG. 7 that the average value of the first region of the 20,000 riyals is large.
110左右; 50000里亚尔的第一区域的灰度平均值很小, 20左右; 通过设定第二 阈值 T2可以将两种币值分幵。 110 or so; the first region of the 50000 riyal has a small grayscale average of about 20; by setting the second threshold T2, the two currency values can be divided.
[0097] 在第二类中, 根据图 8和图 9可以看到 500000里亚尔的 meanl比 mean2小很多, 而 100000里亚尔的 meanl比 mean2大很多, 据此可以区分这两种币值。 具体判断 如下: [0097] In the second category, it can be seen from FIG. 8 and FIG. 9 that the meanl of 500,000 riels is much smaller than mean2, and the meanl of 100,000 riyals is much larger than mean2, whereby the two currencies can be distinguished. The specific judgment is as follows:
[0098] ( 1) lmeanl-mean2l<Tl,则比较 meanl和 T2的大小, 若:  [0098] (1) lmeanl-mean2l<Tl, compare the size of meanl and T2, if:
[0099] a.meanl>T2,判定纸币面值为 20000里亚尔;  [0099] a.meanl>T2, determine the face value of the banknote is 20,000 rials;
[0100] b.meanl<T2,判定纸币面值为 50000里亚尔;  [0100] b. meanl < T2, determine the face value of the banknotes is 50,000 rials;
[0101] (2) lmeanl-mean2l>Tl,则比较 meanl和 mean2的大小, 若:  [0101] (2) lmeanl-mean2l>Tl, compare the size of meanl and mean2, if:
[0102] c meanl<mean2,判定纸币面值为 500000里亚尔;  [0102] c meanl<mean2, determining that the banknote has a face value of 500,000 riels;
[0103] d. meanl>mean2,判定纸币面值为 100000里亚尔。  [0103] d. meanl>mean2, determining that the banknote has a face value of 100,000 riyals.
[0104] T1可选 25左右比较合适, T2取值为 [60-70]比较合适。  [0104] T1 is optional and suitable for about 25, and T2 is suitable for [60-70].
[0105] 由上可见, 在本发明的一些可行的实施方式中, 通过计算所述图像的第一区域 的第一图像参数及第二区域的第二图像参数, 根据所述第一图像参数和所述第 二图像参数确定所述货币的面值, 有助于对部分国家的货币进行面值识别, 尤 其是伊朗币。 可根据伊朗币的特性设计算法, 针对性强, 识别特征明显且稳定 ; 算法简单效果好, 可以同吋识别目前市面流通的 4种大面额里亚尔; 可根据需 要灵活更改 Tl、 Τ2, 使识别结果最优化。 [0105] It can be seen that, in some feasible implementation manners of the present invention, the first image parameter of the first region of the image and the second image parameter of the second region are calculated according to the first image parameter and The second image parameter determines a face value of the currency, which helps to identify the face value of the currency of some countries, in particular It is Iranian currency. The algorithm can be designed according to the characteristics of the Iranian currency. It has strong pertinence and obvious and stable identification features. The algorithm has good simple effect and can identify the four large denominations of the current market. It can flexibly change Tl and Τ2 according to the needs. The recognition result is optimized.
[0106] 实施例二、  [0106] Embodiment 2
[0107] 为了更好的实施本发明实施例的上述方案, 下面还提供用于配合实施上述方案 的相关装置。 [0107] In order to better implement the above-described aspects of the embodiments of the present invention, related apparatuses for cooperating to implement the above aspects are also provided below.
[0108] 请参考图 10, 本发明实施例提供一种货币面值的识别装置 10, 可包括:  [0108] Referring to FIG. 10, an embodiment of the present invention provides a device for identifying a currency denomination, which may include:
[0109] 获取模块 11, 用于获取货币的图像, 所述货币包括伊朗币; [0109] The obtaining module 11 is configured to obtain an image of a currency, where the currency includes an Iranian currency;
[0110] 计算模块 12, 用于计算所述图像的第一区域的第一图像参数及第二区域的第二 [0110] a calculation module 12, configured to calculate a first image parameter of the first region of the image and a second image of the second region
[0111] 确定模块 13, 用于根据所述第一图像参数和所述第二图像参数确定所述货币的 面值。 [0111] The determining module 13 is configured to determine a face value of the currency according to the first image parameter and the second image parameter.
[0112] 在本发明的一个实施例中, 所述第一图像参数为第一灰度值, 所述第二图像参 数为第二灰度值。  [0112] In an embodiment of the invention, the first image parameter is a first gray value, and the second image parameter is a second gray value.
[0113] 当所述第一图像参数为第一灰度值, 所述第二图像参数为第二灰度值吋, [0114] 获取模块 11, 具体用于获取货币的图像, 所述货币包括伊朗币;  [0113] When the first image parameter is the first gray value, the second image parameter is the second gray value 吋, [0114] the obtaining module 11 is specifically configured to acquire an image of the currency, where the currency includes Iranian currency;
[0115] 计算模块 12, 具体用于计算所述图像的第一区域的第一灰度值及第二区域的第 二灰度值; [0115] The calculating module 12 is specifically configured to calculate a first gray value of the first region of the image and a second gray value of the second region;
[0116] 确定模块 13, 具体用于根据所述第一灰度值和所述第二灰度值确定所述货币的 面值。  [0116] The determining module 13 is specifically configured to determine a face value of the currency according to the first gray value and the second gray value.
[0117] 在本发明的一些实施例中, 有助于对部分国家的货币进行面值识别, 尤其是伊 朗币。 可根据伊朗币的特性设计算法, 针对性强, 识别特征明显且稳定; 算法 简单效果好, 可以同吋识别目前市面流通的 4种大面额里亚尔; 可根据需要灵活 更改 Tl、 Τ2, 使识别结果最优化。  [0117] In some embodiments of the invention, it helps to identify the face value of the currency of some countries, especially the Iranian currency. The algorithm can be designed according to the characteristics of the Iranian currency. It has strong pertinence and obvious and stable identification features. The algorithm has good simple effect and can identify the four large denominations of the current market. It can flexibly change Tl and Τ2 according to the needs. The recognition result is optimized.
[0118] 所述第一灰度值为所述第一区域的平均灰度值;  [0118] the first gray value is an average gray value of the first region;
[0119] 所述第二灰度值为所述第二区域的平均灰度值。 [0119] The second gray value is an average gray value of the second region.
[0120] 当所述货币为伊朗币吋, 所述确定模块, 具体用于在所述第一灰度值和所述第 二灰度值的差值的绝对值小于预先设置的第一阈值, 且所述第一灰度值大于预 先设置的第二阈值吋, 确定所述货币的面值为 20000里亚尔; 在所述第一灰度值 和所述第二灰度值的差值的绝对值小于预先设置的第一阈值, 且所述第一灰度 值小于预先设置的第二阈值吋, 确定所述货币的面值为 50000里亚尔; 在所述第 一灰度值和所述第二灰度值的差值的绝对值大于预先设置的第一阈值, 且所述 第一灰度值小于所述第二灰度值吋, 确定所述货币的面值为 500000里亚尔; 在 所述第一灰度值和所述第二灰度值的差值的绝对值大于预先设置的第一阈值, 且所述第一灰度值大于所述第二灰度值吋, 确定所述货币的面值为 100000里亚 尔。 [0120] when the currency is an Iranian currency, the determining module is specifically configured to: the absolute value of the difference between the first gray value and the second gray value is less than a preset first threshold, And the first gray value is greater than the pre Setting a second threshold 吋, determining that the face value of the currency is 20,000 riels; the absolute value of the difference between the first gradation value and the second gradation value is less than a preset first threshold, And the first gray value is smaller than a preset second threshold 吋, determining that the face value of the currency is 50,000 riels; the absolute difference between the first gradation value and the second gradation value The value is greater than a preset first threshold, and the first gray value is less than the second gray value 吋, determining that the face value of the currency is 500000 riels; at the first gray value and the The absolute value of the difference of the second gray value is greater than a first threshold set in advance, and the first gray value is greater than the second gray value, and the face value of the currency is determined to be 100,000 riels.
[0121] 在本发明的实施例中, 所述第一图像参数为第一黑点个数值, 所述第二图像参 数为第二黑点个数值。  [0121] In an embodiment of the invention, the first image parameter is a first black dot value, and the second image parameter is a second black dot value.
[0122] 确定模块 13具体用于根据所述第一区域的第一黑点个数值和第二黑点个数值确 定所述货币的面值。  [0122] The determining module 13 is specifically configured to determine a face value of the currency according to the first black dot value and the second black dot value of the first region.
[0123] 可以理解, 本发明实施例的装置的各个功能模块的功能可根据上述方法实施例 中的方法具体实现, 其具体实现过程可参照上述方法实施例中的相关描述, 此 处不再赘述。  [0123] It can be understood that the functions of the various functional modules of the device in the embodiments of the present invention may be specifically implemented according to the method in the foregoing method embodiments, and the specific implementation process may refer to the related description in the foregoing method embodiments, and details are not described herein again. .
[0124] 由上可见, 在本发明的一些可行的实施方式中, 通过计算所述图像的第一区域 的第一图像参数及第二区域的第二图像参数, 根据所述第一图像参数和所述第 二图像参数确定所述货币的面值, 有助于对部分国家的货币进行面值识别, 尤 其是伊朗币。 可根据伊朗币的特性设计算法, 针对性强, 识别特征明显且稳定 ; 算法简单效果好, 可以同吋识别目前市面流通的 4种大面额里亚尔; 可根据需 要灵活更改 Tl、 Τ2, 使识别结果最优化。  [0124] It can be seen that, in some feasible implementation manners of the present invention, the first image parameter of the first region of the image and the second image parameter of the second region are calculated according to the first image parameter and The second image parameter determines the face value of the currency, which helps to identify the face value of the currency of some countries, especially the Iranian currency. The algorithm can be designed according to the characteristics of the Iranian currency. It has strong pertinence and obvious and stable identification features. The algorithm has good simple effect and can identify the four large denominations of the current market. It can flexibly change Tl and Τ2 according to the needs. The recognition result is optimized.
[0125] 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有详细描 述的部分, 可以参见其它实施例的相关描述。  [0125] In the above embodiments, the descriptions of the various embodiments have different emphasis, and the parts that are not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0126] 综上, 本发明实施例货币面值的识别方法及装置, 通过计算所述图像的第一区 域的第一图像参数及第二区域的第二图像参数, 根据所述第一图像参数和所述 第二图像参数确定所述货币的面值, 有助于对部分国家的货币进行面值识别, 尤其是伊朗币。  [0126] In summary, the method and apparatus for identifying currency face value according to an embodiment of the present invention, by calculating a first image parameter of a first region of the image and a second image parameter of the second region, according to the first image parameter and The second image parameter determines the face value of the currency, which helps to identify the face value of the currency of some countries, especially the Iranian currency.
[0127] 需要说明的是, 对于前述的各方法实施例, 为了简单描述, 故将其都表述为一 系列的动作组合, 但是本领域技术人员应该知悉, 本发明并不受所描述动作顺 序的限制, 因为依据本发明, 某些步骤可以采用其它顺序或者同吋进行。 其次 , 本领域技术人员也应该知悉, 说明书中所描述的实施例均属于优选实施例, 所涉及的动作和模块并不一定是本发明所必须的。 [0127] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as one. The series of combinations of actions, but those skilled in the art will appreciate that the present invention is not limited by the order of the acts described, as some steps may be performed in other sequences or in the same manner in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0128] 本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可 以通过程序来指令相关的硬件来完成, 该程序可以存储于一计算机可读存储介 质中, 存储介质可以包括: ROM、 RAM. 磁盘或光盘等。  [0128] Those skilled in the art can understand that all or part of the steps of the foregoing embodiments may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, the storage medium. Can include: ROM, RAM. Disk or CD.
[0129] 以上对本发明实施例所提供的货币面值的识别方法及装置进行了详细介绍, 本 文中应用了具体个例对本发明的原理及实施方式进行了阐述, 以上实施例的说 明只是用于帮助理解本发明的方法及其核心思想; 同吋, 对于本领域的一般技 术人员, 依据本发明的思想, 在具体实施方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。  [0129] The method and device for identifying the currency denomination provided by the embodiment of the present invention are described in detail. The principles and embodiments of the present invention are described in the following. The description of the above embodiment is only for helping. The method of the present invention and its core idea are understood; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific embodiments and application scopes. It should not be construed as limiting the invention.

Claims

权利要求书 Claim
一种货币面值的识别方法, 其特征在于, 包括: A method for identifying a currency denomination, which is characterized by comprising:
获取货币的图像, 所述货币包括伊朗币; Obtaining an image of the currency, including the Iranian currency;
计算所述图像的第一区域的第一图像参数及第二区域的第二图像参数 根据所述第一图像参数和所述第二图像参数确定所述货币的面值。 根据权利要求 1所述的方法, 其特征在于, 所述第一图像参数为第一 灰度值, 所述第二图像参数为第二灰度值。 Calculating a first image parameter of the first region of the image and a second image parameter of the second region determining a face value of the currency based on the first image parameter and the second image parameter. The method according to claim 1, wherein the first image parameter is a first gray value and the second image parameter is a second gray value.
根据权利要求 2所述的方法, 其特征在于, The method of claim 2, wherein
所述第一灰度值为所述第一区域的平均灰度值; The first gray value is an average gray value of the first region;
所述第二灰度值为所述第二区域的平均灰度值。 The second gray value is an average gray value of the second region.
根据权利要求 2所述的方法, 其特征在于, 当所述货币为伊朗币吋, 所述根据所述第一图像参数和所述第二图像参数确定所述货币的面值 包括: The method according to claim 2, wherein when the currency is an Iranian currency, the determining the face value of the currency according to the first image parameter and the second image parameter comprises:
在所述第一灰度值和所述第二灰度值的差值的绝对值小于预先设置的 第一阈值, 且所述第一灰度值大于预先设置的第二阈值吋, 确定所述 货币的面值为 20000里亚尔; Determining that the absolute value of the difference between the first gray value and the second gray value is less than a preset first threshold, and the first gray value is greater than a preset second threshold The face value of the currency is 20,000 rials;
在所述第一灰度值和所述第二灰度值的差值的绝对值小于预先设置的 第一阈值, 且所述第一灰度值小于预先设置的第二阈值吋, 确定所述 货币的面值为 50000里亚尔; Determining that the absolute value of the difference between the first gray value and the second gray value is less than a preset first threshold, and the first gray value is less than a preset second threshold The face value of the currency is 50,000 rials;
在所述第一灰度值和所述第二灰度值的差值的绝对值大于预先设置的 第一阈值, 且所述第一灰度值小于所述第二灰度值吋, 确定所述货币 的面值为 500000里亚尔; The absolute value of the difference between the first gray value and the second gray value is greater than a preset first threshold, and the first gray value is smaller than the second gray value, determining The face value of the currency is 500,000 rials;
在所述第一灰度值和所述第二灰度值的差值的绝对值大于预先设置的 第一阈值, 且所述第一灰度值大于所述第二灰度值吋, 确定所述货币 的面值为 100000里亚尔。 The absolute value of the difference between the first gray value and the second gray value is greater than a preset first threshold, and the first gray value is greater than the second gray value, determining The face value of the currency is 100,000 riyals.
根据权利要求 1所述的方法, 其特征在于, 所述第一图像参数为第一 黑点个数值, 所述第二图像参数为第二黑点个数值。 一种货币面值的识别装置, 其特征在于, 包括: The method according to claim 1, wherein the first image parameter is a first black dot value, and the second image parameter is a second black dot value. A device for identifying currency denominations, comprising:
获取模块, 用于获取货币的图像, 所述货币包括伊朗币; An acquisition module, configured to obtain an image of a currency, the currency including an Iranian currency;
计算模块, 用于计算所述图像的第一区域的第一图像参数及第二区域 的第二图像参数; a calculation module, configured to calculate a first image parameter of the first region of the image and a second image parameter of the second region;
确定模块, 用于根据所述第一图像参数和所述第二图像参数确定所述 货币的面值。 And a determining module, configured to determine a face value of the currency according to the first image parameter and the second image parameter.
根据权利要求 6所述的装置, 其特征在于, The device according to claim 6, wherein
所述第一图像参数为第一灰度值, 所述第二图像参数为第二灰度值。 根据权利要求 7所述的装置, 其特征在于, The first image parameter is a first gray value, and the second image parameter is a second gray value. The device according to claim 7, wherein
所述第一灰度值为所述第一区域的平均灰度值; The first gray value is an average gray value of the first region;
所述第二灰度值为所述第二区域的平均灰度值。 The second gray value is an average gray value of the second region.
根据权利要求 7所述的装置, 其特征在于, The device according to claim 7, wherein
当所述货币为伊朗币吋, 所述确定模块, 具体用于在所述第一灰度值 和所述第二灰度值的差值的绝对值小于预先设置的第一阈值, 且所述 第一灰度值大于预先设置的第二阈值吋, 确定所述货币的面值为 2000 0里亚尔; 在所述第一灰度值和所述第二灰度值的差值的绝对值小于 预先设置的第一阈值, 且所述第一灰度值小于预先设置的第二阈值吋 , 确定所述货币的面值为 50000里亚尔; 在所述第一灰度值和所述第 二灰度值的差值的绝对值大于预先设置的第一阈值, 且所述第一灰度 值小于所述第二灰度值吋, 确定所述货币的面值为 500000里亚尔; 在 所述第一灰度值和所述第二灰度值的差值的绝对值大于预先设置的第 一阈值, 且所述第一灰度值大于所述第二灰度值吋, 确定所述货币的 面值为 100000里亚尔。 When the currency is an Iranian currency, the determining module is specifically configured to: the absolute value of the difference between the first gray value and the second gray value is less than a preset first threshold, and The first gradation value is greater than a preset second threshold 吋, determining that the face value of the currency is 2000 riels; the absolute value of the difference between the first gradation value and the second gradation value is less than Determining a first threshold, and the first gray value is less than a second threshold set in advance, determining that the face value of the currency is 50,000 riels; at the first gray value and the second gray The absolute value of the difference value of the degree value is greater than a preset first threshold value, and the first gray value is smaller than the second gray value 吋, determining that the face value of the currency is 500,000 riels; Determining the absolute value of the difference between a gray value and the second gray value is greater than a preset first threshold, and the first gray value is greater than the second gray value, determining a face value of the currency It is 100,000 riyals.
根据权利要求 6所述的装置, 其特征在于, 所述第一图像参数为第一 黑点个数值, 所述第二图像参数为第二黑点个数值。 The device according to claim 6, wherein the first image parameter is a first black dot value, and the second image parameter is a second black dot value.
PCT/CN2015/094216 2015-11-10 2015-11-10 Currency face value identification method and device WO2017079904A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/094216 WO2017079904A1 (en) 2015-11-10 2015-11-10 Currency face value identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/094216 WO2017079904A1 (en) 2015-11-10 2015-11-10 Currency face value identification method and device

Publications (1)

Publication Number Publication Date
WO2017079904A1 true WO2017079904A1 (en) 2017-05-18

Family

ID=58694670

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/094216 WO2017079904A1 (en) 2015-11-10 2015-11-10 Currency face value identification method and device

Country Status (1)

Country Link
WO (1) WO2017079904A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070031021A1 (en) * 2005-08-08 2007-02-08 Kabushiki Kaisha Toshiba Sheet identifying apparatus and sheet identifying method
CN101908241A (en) * 2010-08-03 2010-12-08 广州广电运通金融电子股份有限公司 Method and system for identifying valued documents
CN102034108A (en) * 2010-12-06 2011-04-27 哈尔滨工业大学 Multi-resolution network characteristic registration-based method for sorting face values and face directions of notes in sorter
CN103824373A (en) * 2014-01-27 2014-05-28 辰通智能设备(深圳)有限公司 Bill image sum classification method and system
CN104464079A (en) * 2014-12-29 2015-03-25 北京邮电大学 Multi-currency-type and face value recognition method based on template feature points and topological structures of template feature points
CN104537756A (en) * 2015-01-22 2015-04-22 广州广电运通金融电子股份有限公司 Banknote classification and identification method and device based on Lab color space
CN104867225A (en) * 2015-05-15 2015-08-26 深圳怡化电脑股份有限公司 Banknote face orientation identification method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070031021A1 (en) * 2005-08-08 2007-02-08 Kabushiki Kaisha Toshiba Sheet identifying apparatus and sheet identifying method
CN101908241A (en) * 2010-08-03 2010-12-08 广州广电运通金融电子股份有限公司 Method and system for identifying valued documents
CN102034108A (en) * 2010-12-06 2011-04-27 哈尔滨工业大学 Multi-resolution network characteristic registration-based method for sorting face values and face directions of notes in sorter
CN103824373A (en) * 2014-01-27 2014-05-28 辰通智能设备(深圳)有限公司 Bill image sum classification method and system
CN104464079A (en) * 2014-12-29 2015-03-25 北京邮电大学 Multi-currency-type and face value recognition method based on template feature points and topological structures of template feature points
CN104537756A (en) * 2015-01-22 2015-04-22 广州广电运通金融电子股份有限公司 Banknote classification and identification method and device based on Lab color space
CN104867225A (en) * 2015-05-15 2015-08-26 深圳怡化电脑股份有限公司 Banknote face orientation identification method and apparatus

Similar Documents

Publication Publication Date Title
CN104091388B (en) A kind of paper money discrimination method based on magnetic image and device
CN105303676B (en) A kind of version recognition methods of bank note and system
AU2011288069B2 (en) Valuable file identification method and identification system, device thereof
CN107016363A (en) Bill images managing device, bill images management system and method
CN106952393B (en) Paper money identification method and device, electronic equipment and storage medium
CN107610322B (en) Banknote version identification method and device, electronic equipment and storage medium
CN107038794B (en) Method, device and equipment for identifying authenticity of paper money and storage medium
CN102324134A (en) Valuable document identification method and device
CN106710062B (en) Detect the method and device of bank note safety line
CN107610316B (en) Method and device for detecting defect of paper money and terminal equipment
CN106920318B (en) Method and device for identifying paper money
CN103886309A (en) Method for identifying dollar denominations through facial recognition
WO2019001191A1 (en) Method and device for detecting spliced banknote
CN105654609A (en) Paper money processing method and paper money processing system
CN107134047A (en) White watermark detection method and device
CN108806058A (en) A kind of paper currency detecting method and device
CN103489255A (en) Device and method for detecting defect of bank note
Ponishjino et al. Bogus currency authorization using HSV techniques
US10176400B1 (en) Method and apparatus for locating dot text in an image
CN111563845B (en) Bill surface scratch detection method, device, equipment and storage medium
WO2020093732A1 (en) Method and device for authenticating paper product, and storage medium
CN106683257A (en) Serial number location method and device
WO2017079904A1 (en) Currency face value identification method and device
JPH09305768A (en) Image pattern identifying device
US10176399B1 (en) Method and apparatus for optical character recognition of dot text in an image

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15908034

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15908034

Country of ref document: EP

Kind code of ref document: A1