[go: up one dir, main page]

CN111275879A - Currency identification method, device and mobile terminal - Google Patents

Currency identification method, device and mobile terminal Download PDF

Info

Publication number
CN111275879A
CN111275879A CN202010104266.6A CN202010104266A CN111275879A CN 111275879 A CN111275879 A CN 111275879A CN 202010104266 A CN202010104266 A CN 202010104266A CN 111275879 A CN111275879 A CN 111275879A
Authority
CN
China
Prior art keywords
currency
image information
information
detected
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010104266.6A
Other languages
Chinese (zh)
Other versions
CN111275879B (en
Inventor
邹剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huantai Digital Technology Co ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010104266.6A priority Critical patent/CN111275879B/en
Publication of CN111275879A publication Critical patent/CN111275879A/en
Application granted granted Critical
Publication of CN111275879B publication Critical patent/CN111275879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)

Abstract

The application is applicable to the technical field of currency identification, and provides a currency identification method, a device and a mobile terminal, which comprise: if a camera of the mobile terminal is started and a currency detection instruction is received, acquiring image information corresponding to currency to be detected in front of the camera, wherein the image information comprises depth information and color information; comparing the image information of the currency to be detected with the image information of standard currency; and determining whether the currency to be detected is true currency or not according to the comparison result. The method can improve the identification accuracy of the currency.

Description

货币识别方法、装置及移动终端Currency identification method, device and mobile terminal

技术领域technical field

本申请属于货币识别技术领域,尤其涉及货币识别方法、装置、移动终端及计算机可读存储介质。The present application belongs to the technical field of currency identification, and in particular, relates to a currency identification method, device, mobile terminal and computer-readable storage medium.

背景技术Background technique

当前,各种技术都在迅速的发展,比如制造假币的技术也在迅速的发展。假币是指采用各种手段仿照真币的图案、色彩等制作的货币。At present, various technologies are developing rapidly, for example, the technology of making counterfeit money is also developing rapidly. Counterfeit currency refers to the currency made by various means imitating the pattern and color of the real currency.

目前,主要通过印钞机识别假币,但由于印钞机具有一定的体积,因此不便于随身携带,故不便于用户及时识别货币的真伪。At present, counterfeit money is mainly identified by a money printing machine, but because the money printing machine has a certain volume, it is not convenient to carry around, so it is not convenient for users to identify the authenticity of the money in time.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了货币识别方法、装置、移动终端及计算机可读存储介质,可以解决现有方法难以及时识别货币的真伪的问题。The embodiments of the present application provide a currency identification method, a device, a mobile terminal, and a computer-readable storage medium, which can solve the problem that the existing method is difficult to identify the authenticity of the currency in time.

第一方面,本申请实施例提供了一种货币识别方法,应用于移动终端,所述货币识别方法包括:In a first aspect, an embodiment of the present application provides a currency identification method, which is applied to a mobile terminal, and the currency identification method includes:

若所述移动终端的相机启动且接收到货币检测指令,则获取相机前方的待测货币对应的图像信息,所述图像信息包括景深信息和色彩信息;If the camera of the mobile terminal is activated and a currency detection instruction is received, image information corresponding to the currency to be detected in front of the camera is acquired, and the image information includes depth of field information and color information;

将所述待测货币的图像信息与标准货币的图像信息比较;comparing the image information of the currency to be tested with the image information of the standard currency;

根据比较结果确定所述待测货币是否为真的货币。According to the comparison result, it is determined whether the currency to be tested is the real currency.

第二方面,本申请实施例提供了一种货币识别装置,应用于移动终端,包括:In a second aspect, an embodiment of the present application provides a currency identification device, which is applied to a mobile terminal, including:

图像信息获取单元,用于若所述移动终端的相机启动且接收到货币检测指令,则获取相机前方的待测货币对应的图像信息,所述图像信息包括景深信息和色彩信息;an image information acquisition unit, configured to acquire image information corresponding to the currency to be detected in front of the camera if the camera of the mobile terminal is activated and receives a currency detection instruction, the image information includes depth of field information and color information;

图像信息比较单元,用于将所述待测货币的图像信息与标准货币的图像信息比较;an image information comparison unit for comparing the image information of the currency to be tested with the image information of the standard currency;

货币识别单元,用于根据比较结果确定所述待测货币是否为真的货币。A currency identification unit, configured to determine whether the currency to be tested is real currency according to the comparison result.

第三方面,本申请实施例提供了一种移动终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面所述的方法。In a third aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program A method as described in the first aspect is implemented.

第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to the first aspect is implemented.

第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得移动终端执行上述第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a computer program product, which enables a mobile terminal to execute the method described in the first aspect when the computer program product runs on a terminal device.

本申请实施例与现有技术相比存在的有益效果是:The beneficial effects that the embodiments of the present application have compared with the prior art are:

由于用户本身已经购买了移动终端,且也会经常携带移动终端,因此,通过移动终端识别货币的真伪能够提高识别的及时性。并且,由于获取的图像信息包括景深信息和色彩信息,因此,根据货币的景深信息和色彩信息分别与标准货币的景深信息和色彩信息的比较结果确定货币是否为真的货币能够提高判断结果的准确性。Since the user himself has purchased the mobile terminal and often carries the mobile terminal, identifying the authenticity of the currency through the mobile terminal can improve the timeliness of identification. Moreover, since the acquired image information includes depth of field information and color information, determining whether the currency is a real currency can improve the accuracy of the judgment result according to the results of comparing the depth information and color information of the currency with the depth information and color information of the standard currency, respectively. sex.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that are required to be used in the description of the embodiments or the prior art.

图1是本申请一实施例提供的一种货币识别方法的流程示意图;1 is a schematic flowchart of a currency identification method provided by an embodiment of the present application;

图2是本申请一实施例提供的100人民币的示意图;2 is a schematic diagram of 100 RMB provided by an embodiment of the present application;

图3是本申请一实施例提供的一种货币识别装置的结构示意图;3 is a schematic structural diagram of a currency identification device provided by an embodiment of the present application;

图4是本申请一实施例提供的移动终端的结构示意图。FIG. 4 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.

如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.

现实生活中,当用户接触到货币之后,希望识别该货币是真的货币还是伪造的货币,若识别出接触的货币是真的货币,则接受该真的货币,若识别出接触的货币是伪造的货币,则拒绝接受该伪造的货币以避免造成经济损失。但是,由于用户的知识经验有限,而伪造货币的技术又较高,因此,仅凭用户肉眼难以有效识别出货币的真伪,此时,用户常常需要借助验钞机对货币的真伪进行识别。而购买验钞机需要成本,额外携带验钞机又需要占用一定体积的包裹,故用户难以及时识别货币的真伪。为了能够及时识别出货币的真伪,本申请通过在移动终端(比如手机、平板电脑等)预先存入标准货币的图像信息,该图像信息包括景深信息和色彩信息。之后,用户需要识别货币的真伪时,打开移动终端的相机应用,将待识别的货币放在摄像头前方,这样,移动终端的相机预览界面将出现包含该货币的图像信息的数据流,再将待识别的货币的图像信息与预先存入的标准货币的图像信息比较,若两者的相似度大于或等于预设的相似度阈值(比如大于或等于99%),则判定该待识别的货币为真的货币,否则,判定该待识别的货币为假的货币。当然,为了能够识别出不同国家的货币的真伪,则预先存入多个不同国家的真的货币(即标准货币)的图像信息。In real life, when the user comes into contact with the currency, he hopes to identify whether the currency is genuine or counterfeit. If the contacted currency is identified as genuine, the real currency is accepted. If the contacted currency is identified as counterfeit , then refuse to accept the counterfeit currency to avoid economic losses. However, due to the limited knowledge and experience of the user and the relatively high technology of counterfeiting currency, it is difficult to effectively identify the authenticity of the currency only with the naked eye of the user. At this time, the user often needs to use a currency detector to identify the authenticity of the currency. . However, the purchase of a currency detector requires costs, and additionally carrying a currency detector requires a package of a certain volume, so it is difficult for users to identify the authenticity of the currency in time. In order to be able to identify the authenticity of currency in time, the present application pre-stores image information of standard currency in a mobile terminal (such as a mobile phone, tablet computer, etc.), where the image information includes depth information and color information. After that, when the user needs to identify the authenticity of the currency, open the camera application of the mobile terminal, and place the currency to be identified in front of the camera. In this way, a data stream containing the image information of the currency will appear on the camera preview interface of the mobile terminal. The image information of the currency to be identified is compared with the image information of the pre-stored standard currency, and if the similarity between the two is greater than or equal to a preset similarity threshold (such as greater than or equal to 99%), the currency to be identified is determined. If it is a real currency, otherwise, it is determined that the currency to be identified is a fake currency. Of course, in order to be able to identify the authenticity of currencies of different countries, image information of real currencies (ie, standard currencies) of a plurality of different countries is stored in advance.

下面结合具体流程图来描述本申请实施例提供的货币识别方法,详述如下:The currency identification method provided by the embodiment of the present application is described below in conjunction with a specific flow chart, and the details are as follows:

参见图1,图1示出了一种货币识别方法的流程示意图,应用于移动终端,所述货币识别方法包括:Referring to FIG. 1, FIG. 1 shows a schematic flowchart of a currency identification method, which is applied to a mobile terminal. The currency identification method includes:

步骤S11,若所述移动终端的相机启动且接收到货币检测指令,则获取相机前方的待测货币对应的图像信息,所述图像信息包括景深信息和色彩信息;Step S11, if the camera of the mobile terminal is activated and receives a currency detection instruction, acquire image information corresponding to the currency to be detected in front of the camera, and the image information includes depth of field information and color information;

其中,货币检测指令可通过按压设置在移动终端的固定按键发出,该固定按键可以为用于发出货币检测指令的专有按键,也可以为移动终端本身已有的按键。当然,若为移动终端本身已有的按键时,其需要设置新的按键响应,比如,若用于发出货币检测指令的按键为移动终端本身已有的音量增加键,且原有的按键响应是:按压一次音量增加键则增加10%的音量,连续按压音量增加键则连续增加10%的音量。则设置的新的按键响应可以为:按压一次音量增加键则增加10%的音量,连续按压音量增加键则发出货币检测指令。Wherein, the currency detection instruction can be issued by pressing a fixed button provided on the mobile terminal, and the fixed button can be a dedicated button used for issuing a currency detection instruction, or can be an existing button of the mobile terminal itself. Of course, if it is an existing button of the mobile terminal, it needs to set a new button response. For example, if the button used to issue the currency detection command is the existing volume increase button of the mobile terminal, and the original button response is : Press the volume up key once to increase the volume by 10%, and press the volume up key continuously to increase the volume by 10% continuously. The set new key response may be: pressing the volume up key once will increase the volume by 10%, and pressing the volume up key continuously will issue a currency detection instruction.

在一些实施例中,货币检测指令也可以通过触摸相机预览界面显示的“货币检测”虚拟按键发出。即在相机预览界面新增“货币检测”的虚拟按键,以便用户知悉该移动终端具备货币检测功能。In some embodiments, the currency detection instruction can also be issued by touching the "currency detection" virtual key displayed on the camera preview interface. That is, a virtual button of "currency detection" is added to the camera preview interface, so that the user can know that the mobile terminal has the currency detection function.

在一些实施例中,若获取相机前方的待测货币对应的图像信息时判断出货币对应的图像信息不完整,则提示用户调整货币与相机之间的距离。In some embodiments, if the image information corresponding to the currency to be tested in front of the camera is obtained and it is determined that the image information corresponding to the currency is incomplete, the user is prompted to adjust the distance between the currency and the camera.

需要指出的是,若移动终端的相机启动且没有接收到货币检测指令,则获取的图像信息不包括景深信息。其中,景深信息可通过深度相机(该深度相机可结合飞行时间(Time-of-Flight(TOF)技术)获取。It should be noted that, if the camera of the mobile terminal is activated and no currency detection instruction is received, the acquired image information does not include depth of field information. The depth of field information can be acquired by a depth camera (the depth camera can be combined with time-of-flight (TOF) technology).

步骤S12,将所述待测货币的图像信息与标准货币的图像信息比较;Step S12, comparing the image information of the currency to be tested with the image information of the standard currency;

具体地,将待测货币的色彩信息与标准货币的色彩信息比较,得到第一比较结果,以及,将待测货币的景深信息与标准货币的景深信息比较,得到第二比较结果。其中,第一比较结果用于指示待测货币的色彩信息和标准货币的色彩信息的相似度;第二比较结果用于指示待测货币的景深信息和标准货币的景深信息的相似度。Specifically, the color information of the currency to be tested is compared with the color information of the standard currency to obtain a first comparison result, and the depth of field information of the currency to be tested is compared with that of the standard currency to obtain a second comparison result. The first comparison result is used to indicate the similarity between the color information of the currency to be tested and the color information of the standard currency; the second comparison result is used to indicate the similarity of the depth information of the currency to be tested and the depth information of the standard currency.

步骤S13,根据比较结果确定所述待测货币是否为真的货币。Step S13, according to the comparison result, determine whether the currency to be tested is real currency.

具体地,若第一比较结果和第二比较结果都满足要求,则确定待测货币是真的货币,否则,则确定待测货币是假的货币。Specifically, if both the first comparison result and the second comparison result satisfy the requirements, it is determined that the currency to be tested is real currency, otherwise, it is determined that the currency to be tested is fake currency.

本申请实施例中,若移动终端的相机启动且接收到货币检测指令,则获取相机前方的待测货币对应的图像信息,将所述待测货币的图像信息与标准货币的图像信息比较,根据比较结果确定所述待测货币是否为真的货币。由于用户本身已经购买了移动终端,且也会经常携带移动终端,因此,通过移动终端识别货币的真伪能够提高识别的及时性。并且,由于获取的图像信息包括景深信息和色彩信息,因此,根据货币的景深信息和色彩信息分别与标准货币的景深信息和色彩信息的比较结果确定货币是否为真的货币能够提高判断结果的准确性。In the embodiment of the present application, if the camera of the mobile terminal is activated and receives a currency detection instruction, the image information corresponding to the currency to be tested in front of the camera is obtained, and the image information of the currency to be tested is compared with the image information of the standard currency. The result of the comparison determines whether the currency under test is genuine currency. Since the user himself has purchased the mobile terminal and often carries the mobile terminal, identifying the authenticity of the currency through the mobile terminal can improve the timeliness of identification. Moreover, since the acquired image information includes depth of field information and color information, determining whether the currency is a real currency can improve the accuracy of the judgment result according to the results of comparing the depth information and color information of the currency with the depth information and color information of the standard currency, respectively. sex.

在一些实施例中,可通过两种方式获取待测货币的图像信息,此时,所述步骤S11包括:In some embodiments, the image information of the currency to be tested can be obtained in two ways. In this case, the step S11 includes:

A1、若所述移动终端的相机启动且接收到货币检测指令,则获取相机前方的待测货币对应的预览的图像信息;A1. If the camera of the mobile terminal is activated and receives a currency detection instruction, obtain the image information of the preview corresponding to the currency to be tested in front of the camera;

或者,or,

A2、若所述移动终端的相机启动且接收到货币检测指令,则执行拍照动作,以获取相机前方的待测货币对应的图像信息。A2. If the camera of the mobile terminal is activated and a currency detection instruction is received, a photographing action is performed to obtain image information corresponding to the currency to be tested in front of the camera.

上述A1和A2中,可将预览界面的待测货币的图像信息作为获取的待测货币的图像信息,也可以拍摄待测货币,根据拍摄的待测货币获取对应的图像信息。当从预览界面获取图像信息时,由于无需执行拍照动作,因此无需存储执行拍照动作所获得的图像,从而节约了移动终端的内存;当从拍摄的图像获取图像信息时,由于拍摄后无需等待识别,因此,无需用户长时间手持待测货币,从而缩短了用户所需的参与时间。In the above A1 and A2, the image information of the currency to be tested in the preview interface can be used as the acquired image information of the currency to be tested, or the currency to be tested can be photographed, and corresponding image information can be obtained according to the photographed currency to be tested. When acquiring image information from the preview interface, since there is no need to perform a photographing action, there is no need to store the image obtained by performing the photographing action, thereby saving the memory of the mobile terminal; when acquiring image information from a photographed image, since there is no need to wait for recognition after photographing , therefore, the user does not need to hold the currency to be tested for a long time, thereby shortening the required participation time for the user.

在一些实施例中,为了获得更准确的景深信息,则进行以下设置:无论在预览界面获取图像信息还是从拍摄的图像获取待测货币的图像信息,都需要获取多个(如30个)图像帧分别提取景深信息,再对分别提取的景深信息求取平均值,求取的平均值作为最终的景深信息。In some embodiments, in order to obtain more accurate depth-of-field information, the following settings are made: whether to obtain image information on the preview interface or to obtain image information of the currency to be tested from the captured image, multiple (eg 30) images need to be obtained The depth of field information is extracted from the frames respectively, and the average value of the respectively extracted depth of field information is obtained, and the obtained average value is used as the final depth of field information.

在一些实施例中,由于在比较过程中可能只需要比较某个区域的图像信息,因此,可将该某个区域作为目标区域进行截取,以减少需处理的数据量,提高数据处理速度。此时,所述步骤S12包括:In some embodiments, since only the image information of a certain area may need to be compared during the comparison process, the certain area may be intercepted as a target area to reduce the amount of data to be processed and improve the data processing speed. At this time, the step S12 includes:

B1、从所述待测货币的图像信息中截取目标区域的图像信息;具体地,可根据已获取的图像区域,从指定方向开始截取指定大小的区域作为目标区域,当然,也可以在检测出具有特定区域大小的色彩信息后,截取包含该特定区域且为指定大小的区域作为目标区域。其中,目标区域的面积小于待测货币所在的区域的面积。B1. Intercept the image information of the target area from the image information of the currency to be tested; specifically, according to the acquired image area, an area of a specified size can be intercepted from a specified direction as the target area. After the color information of a specific area size is obtained, the area containing the specific area and of the specified size is intercepted as the target area. Among them, the area of the target area is smaller than the area of the area where the currency to be tested is located.

B2、根据所述目标区域的图像信息中的色彩信息确定待测货币所属的可能币种;由于币种主要跟货币包括的图案形状有关,而图案形状可以根据色彩信息确定,因此,为了减少运算量,则只需要根据色彩信息确定待测货币所属的可能币种。比如,若根据待测货币的色彩信息确定出“中国人民银行”(或“国徽”等),则该待测货币所属的可能币种为“人民币”。B2. Determine the possible currency to which the currency to be tested belongs according to the color information in the image information of the target area; since the currency is mainly related to the pattern shape included in the currency, and the pattern shape can be determined according to the color information, in order to reduce the calculation If the amount of the currency to be tested is determined, it is only necessary to determine the possible currency to which the currency to be tested belongs according to the color information. For example, if the "People's Bank of China" (or "National Emblem", etc.) is determined according to the color information of the currency to be tested, the possible currency to which the currency to be tested belongs is "RMB".

B3、根据所述待测货币所属的可能币种确定对应的标准货币;具体地,若待测货币所属的可能币种为人民币,则将标准货币确定为“人民币”。B3. Determine the corresponding standard currency according to the possible currency to which the currency to be tested belongs; specifically, if the possible currency to which the currency to be tested belongs is RMB, the standard currency is determined as "RMB".

B4、将所述目标区域的图像信息与确定的对应的标准货币的图像信息比较。B4. Compare the image information of the target area with the determined image information of the corresponding standard currency.

由于在现实生活中,某些国家的货币的币值很高,因此,可利用币值的大小对币种进行筛选,以快速确定待测货币所属的可能币种,此时,所述B2,包括:In real life, the currency value of some countries' currencies is very high, therefore, the currency value can be used to screen the currency to quickly determine the possible currency to which the currency to be tested belongs. At this time, the B2 includes:

B21、根据所述目标区域的图像信息中的色彩信息确定待测货币的币值;具体地,根据待测货币的色彩信息的颜色分布提取货币的币值,例如,参考图 2,币值“100”的颜色与其周围领域的颜色存在较大的差异,且“100”数字本身的颜色也具有一定的差异,因此,可根据这些已知的颜色差异提取出币值“100”。B21. Determine the currency value of the currency to be tested according to the color information in the image information of the target area; specifically, extract the currency value of the currency according to the color distribution of the color information of the currency to be tested, for example, referring to FIG. 2, the currency value of “100” There is a big difference between the color and the color of the surrounding area, and the color of the "100" number itself also has a certain difference. Therefore, the currency value "100" can be extracted according to these known color differences.

B22、根据所述待测货币的币值确定所述待测货币所属的可能币种。具体地,预先确定具有特定币值的货币,这样,当判断出待测货币的币值与预先确定的币值匹配时,将待测货币所属的可能币种判定为与特定币值匹配的货币所属的币种。B22. Determine the possible currency to which the currency to be tested belongs according to the currency value of the currency to be tested. Specifically, a currency with a specific currency value is predetermined, so that when it is determined that the currency value of the currency to be tested matches the predetermined currency value, the possible currency to which the currency to be tested belongs is determined as the currency to which the currency matching the specific currency value belongs. .

在一些实施例中,由于存在特定币值的币种的数量较少,即待测货币的币值为特定币值的概率较小,因此,若判断出待测货币的币值不属于特定币值,即若判断出待测货币所可能属于的币种的数量较多,为了减少待测货币所可能属于的币种的数量,则在所述B22之后,包括:In some embodiments, since the number of currencies with a specific currency value is small, that is, the probability that the currency value of the currency to be tested is a specific currency value is small, therefore, if it is determined that the currency value of the currency to be tested does not belong to the specific currency value, that is The number of currencies to which the currency to be tested may belong is relatively large. In order to reduce the number of currencies to which the currency to be tested may belong, after the B22, include:

C1、若确定的所述待测货币所属的可能币种的数量大于或等于预设的数量阈值,根据所述目标区域的图像信息中的色彩信息确定待测货币中的人脸信息;C1. If the determined number of possible currencies to which the currency to be tested belongs is greater than or equal to a preset quantity threshold, determine the face information in the currency to be tested according to the color information in the image information of the target area;

由于待测货币的两面中存在一面具有人脸,因此,可通过已知的人脸在货币的色彩信息确定待测货币的人脸信息。当然,若从已获取的图像信息中检测不出人脸信息,则提示用户翻动待测货币,以使相机能够拍摄到待测货币的另一边,之后再确定翻动后的待测货币中的人脸信息。Since one of the two sides of the currency to be tested has a human face, the face information of the currency to be tested can be determined through the known color information of the human face in the currency. Of course, if no face information can be detected from the acquired image information, the user will be prompted to flip the currency to be tested, so that the camera can capture the other side of the currency to be tested, and then determine the person in the flipped currency to be tested. face information.

C2、根据所述人脸信息对所述待测货币所属的可能币种进一步筛选,得到筛选后的待测货币所属的可能币种。C2. Further screen the possible currencies to which the currency to be tested belongs according to the face information, and obtain the possible currencies to which the selected currency to be tested belongs.

由于不同币种所具有的人脸信息是不同的,因此,可将已获取的不同币种所对应的人脸信息与从待测货币提取的人脸信息比较,根据比较结果去掉匹配度低的币种,保留匹配度高的币种作为筛选后的待测货币所属的可能币种。Since the face information of different currencies is different, the acquired face information corresponding to different currencies can be compared with the face information extracted from the currency to be tested, and the ones with low matching degree can be removed according to the comparison results. Currency, retain the currency with a high degree of matching as the possible currency to which the tested currency after screening belongs.

在一些实施例中,为了提高比较结果的准确性,则将待测货币的目标区域划分为至少2个网格,当然标准货币的对应区域同样划分为至少2个网格,此时,所述B4包括:In some embodiments, in order to improve the accuracy of the comparison results, the target area of the currency to be tested is divided into at least two grids, and of course the corresponding area of the standard currency is also divided into at least two grids. B4 includes:

B41、将所述目标区域划分为至少两个网格,所述目标区域的一个网格和确定的标准货币中对应的一个网格作为一个网格组;B41. Divide the target area into at least two grids, and a grid of the target area and a grid corresponding to the determined standard currency are used as a grid group;

B42、对每个网格组,从所述目标区域的网格对应的色彩信息确定色彩分布信息、色彩饱和度、亮度信息和清晰度,以及,从所述目标区域的网格对应的景深信息确定像素之间的层次感、立体效果和目标区域的厚度;B42. For each grid group, determine color distribution information, color saturation, brightness information and sharpness from the color information corresponding to the grid of the target area, and, from the depth of field information corresponding to the grid of the target area Determine the layering between pixels, the stereoscopic effect and the thickness of the target area;

其中,清晰度可根据像素值的梯度值确定;由于货币具有一定的凹凸感、不同元素(比如人民币的国徽、币值为不同的元素)之间或同一元素中也具有一定的层次感、立体效果,因此,为了提高货币的识别准确性,则可根据像素与相机的距离(即景深信息)确定像素之间的层次感(距离的差值大则层次感强)和立体效果(距离的差值大则立体效果强)。当然,目标区域的厚度也可根据目标区域中的指定边界与相机的距离确定。Among them, the sharpness can be determined according to the gradient value of the pixel value; because the currency has a certain sense of concave and convex, different elements (such as the national emblem of the RMB, the currency value of different elements) or the same element also has a certain sense of hierarchy, three-dimensional effect, Therefore, in order to improve the recognition accuracy of currency, the layering between pixels (the difference between the pixels is large, the layering is strong) and the stereo effect (the difference in distance is large) can be determined according to the distance between the pixels and the camera (that is, the depth of field information). The stereo effect is strong). Of course, the thickness of the target area can also be determined according to the distance between the specified boundary in the target area and the camera.

B43、将从所述目标区域的网格对应的色彩信息确定的色彩分布信息、色彩饱和度、亮度信息和清晰度分别与标准货币中对应网格的标准色彩分布信息、标准色彩饱和度、标准亮度信息和标准清晰度比较,以及,将从所述目标区域的网格对应的景深信息确定的像素之间的层次感、立体效果和目标区域的厚度分别与标准货币中对应网格的标准像素之间的层次感、标准立体效果和标准目标区域的厚度比较。B43. The color distribution information, color saturation, brightness information and definition determined from the color information corresponding to the grid of the target area are respectively compared with the standard color distribution information, standard color saturation, standard color distribution information, standard color saturation, standard The brightness information and the standard definition are compared, and the layering between the pixels determined from the depth information corresponding to the grid of the target area, the stereoscopic effect and the thickness of the target area are respectively compared with the standard pixels of the corresponding grid in the standard currency. Comparison of layering, standard stereoscopic effect and standard target area thickness.

在一些实施例中,为了提高货币的识别准确度,则所述货币识别方法还包括:In some embodiments, in order to improve the identification accuracy of currency, the currency identification method further includes:

获取所述移动终端的马达震动所述待测货币时的音频数据;Acquiring audio data when the motor of the mobile terminal vibrates the currency to be tested;

对应地,所述步骤S13具体为:Correspondingly, the step S13 is specifically:

根据比较结果以及所述音频数据确定所述待测货币是否为真的货币。It is determined whether the currency to be tested is genuine currency according to the comparison result and the audio data.

由于货币是由特定材质制作而成,因此,其甩动过程具有特定的声音。为了进一步提高待测货币的识别准确度,则提示用户将待测货币贴着移动终端,之后,移动终端将控制马达震动(例如,在提示后的预设时间后控制马达震动),以及控制麦克风获取音频数据。由于获取的音频数据除了包括货币被震动所发出的声音数据,还包括马达自身震动的声音和环境的噪声,因此,需要从获取的初始的音频数据中过滤马达自身震动的声音以及,过滤环境的噪声,再将过滤后的音频数据作为待测货币时的音频数据。Since the currency is made of a specific material, it has a specific sound when it is thrown. In order to further improve the recognition accuracy of the currency to be tested, the user is prompted to attach the currency to be tested to the mobile terminal, after which the mobile terminal will control the motor vibration (for example, control the motor vibration after a preset time after the prompt), and control the microphone Get audio data. Since the acquired audio data includes not only the sound data produced by the currency being vibrated, but also the sound of the motor itself vibrating and the noise of the environment, therefore, it is necessary to filter the sound of the motor itself vibrating and the environmental noise from the acquired initial audio data. noise, and then use the filtered audio data as the audio data of the currency to be tested.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

对应于上文实施例所述的货币识别方法,图3示出了本申请实施例提供的货币识别装置的结构框图,该货币识别装置应用于移动终端,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the currency identification method described in the above embodiment, FIG. 3 shows a structural block diagram of the currency identification device provided by the embodiment of the present application. The currency identification device is applied to a mobile terminal. Apply for the relevant part of the example.

参照图3,该货币识别装置3包括:图像信息获取单元31、图像信息比较单元32、货币识别单元33,其中:3, the currency identification device 3 includes: an image information acquisition unit 31, an image information comparison unit 32, and a currency identification unit 33, wherein:

图像信息获取单元31,用于若所述移动终端的相机启动且接收到货币检测指令,则获取相机前方的待测货币对应的图像信息,所述图像信息包括景深信息和色彩信息;The image information acquisition unit 31 is configured to acquire image information corresponding to the currency to be detected in front of the camera if the camera of the mobile terminal is activated and receives a currency detection instruction, and the image information includes depth of field information and color information;

其中,货币检测指令可通过按压设置在移动终端的固定按键发出;Wherein, the currency detection instruction can be issued by pressing the fixed button arranged on the mobile terminal;

在一些实施例中,货币检测指令也可以通过触摸相机预览界面显示的“货币检测”虚拟按键发出。In some embodiments, the currency detection instruction can also be issued by touching the "currency detection" virtual key displayed on the camera preview interface.

图像信息比较单元32,用于将所述待测货币的图像信息与标准货币的图像信息比较;The image information comparison unit 32 is used to compare the image information of the currency to be tested with the image information of the standard currency;

具体地,将待测货币的色彩信息与标准货币的色彩信息比较,得到第一比较结果,以及,将待测货币的景深信息与标准货币的景深信息比较,得到第二比较结果。其中,第一比较结果用于指示待测货币的色彩信息和标准货币的色彩信息的相似度;第二比较结果用于指示待测货币的景深信息和标准货币的景深信息的相似度。Specifically, the color information of the currency to be tested is compared with the color information of the standard currency to obtain a first comparison result, and the depth of field information of the currency to be tested is compared with that of the standard currency to obtain a second comparison result. The first comparison result is used to indicate the similarity between the color information of the currency to be tested and the color information of the standard currency; the second comparison result is used to indicate the similarity of the depth information of the currency to be tested and the depth information of the standard currency.

货币识别单元33,用于根据比较结果确定所述待测货币是否为真的货币。The currency identification unit 33 is configured to determine whether the currency to be tested is real currency according to the comparison result.

具体地,若第一比较结果和第二比较结果都满足要求,则确定待测货币是真的货币,否则,则确定待测货币是假的货币。Specifically, if both the first comparison result and the second comparison result satisfy the requirements, it is determined that the currency to be tested is real currency, otherwise, it is determined that the currency to be tested is fake currency.

本申请实施例中,由于用户本身已经购买了移动终端,且也会经常携带移动终端,因此,通过移动终端识别货币的真伪能够提高识别的及时性。并且,由于获取的图像信息包括景深信息和色彩信息,因此,根据货币的景深信息和色彩信息分别与标准货币的景深信息和色彩信息的比较结果确定货币是否为真的货币能够提高判断结果的准确性。In the embodiment of the present application, since the user himself has purchased the mobile terminal and often carries the mobile terminal, identifying the authenticity of the currency through the mobile terminal can improve the timeliness of identification. Moreover, since the acquired image information includes depth of field information and color information, determining whether the currency is a real currency can improve the accuracy of the judgment result according to the results of comparing the depth information and color information of the currency with the depth information and color information of the standard currency, respectively. sex.

在一些实施例中,所述图像信息获取单元31包括:In some embodiments, the image information acquisition unit 31 includes:

若所述移动终端的相机启动且接收到货币检测指令,则获取相机前方的待测货币对应的预览的图像信息;If the camera of the mobile terminal is activated and a currency detection instruction is received, acquiring image information of the preview corresponding to the currency to be tested in front of the camera;

或者,or,

若所述移动终端的相机启动且接收到货币检测指令,则执行拍照动作,以获取相机前方的待测货币对应的图像信息。If the camera of the mobile terminal is activated and a currency detection instruction is received, a photographing action is performed to acquire image information corresponding to the currency to be tested in front of the camera.

在一些实施例中,所述图像信息比较单元32包括:In some embodiments, the image information comparison unit 32 includes:

图像信息截取模块,用于从所述待测货币的图像信息中截取目标区域的图像信息;an image information interception module, used for intercepting the image information of the target area from the image information of the currency to be tested;

可能币种确定模块,用于根据所述目标区域的图像信息中的色彩信息确定待测货币所属的可能币种;A possible currency determination module, configured to determine the possible currency to which the currency to be tested belongs according to the color information in the image information of the target area;

标准货币确定模块,用于根据所述待测货币所属的可能币种确定对应的标准货币;a standard currency determination module, configured to determine the corresponding standard currency according to the possible currency to which the currency to be tested belongs;

目标区域的图像信息比较模块,用于将所述目标区域的图像信息与确定的对应的标准货币的图像信息比较。The image information comparison module of the target area is used for comparing the image information of the target area with the determined image information of the corresponding standard currency.

在一些实施例中,所述可能币种确定模块,包括:In some embodiments, the possible currency determination module includes:

币值确定模块,用于根据所述目标区域的图像信息中的色彩信息确定待测货币的币值;a currency value determination module for determining the currency value of the currency to be tested according to the color information in the image information of the target area;

待测货币所属的可能币种确定模块,用于根据所述待测货币的币值确定所述待测货币所属的可能币种。The possible currency determination module to which the currency to be tested belongs is configured to determine the possible currency to which the currency to be tested belongs according to the currency value of the currency to be tested.

在一些实施例中,所述货币识别装置3,包括:In some embodiments, the currency identification device 3 includes:

人脸信息确定模块,用于若确定的所述待测货币所属的可能币种的数量大于或等于预设的数量阈值,根据所述目标区域的图像信息中的色彩信息确定待测货币中的人脸信息;The face information determination module is used to determine, according to the color information in the image information of the target area, the number of possible currencies to which the currency to be tested belongs is greater than or equal to a preset number threshold. face information;

币种筛选模块,用于根据所述人脸信息对所述待测货币所属的可能币种进一步筛选,得到筛选后的待测货币所属的可能币种。The currency screening module is configured to further screen the possible currencies to which the currency to be tested belongs according to the face information, and obtain the possible currencies to which the selected currency to be tested belongs.

在一些实施例中,所述目标区域的图像信息比较模块,包括:In some embodiments, the image information comparison module of the target area includes:

目标区域划分模块,用于将所述目标区域划分为至少两个网格,所述目标区域的一个网格和确定的标准货币中对应的一个网格作为一个网格组;a target area dividing module, configured to divide the target area into at least two grids, and a grid of the target area and a grid corresponding to the determined standard currency are used as a grid group;

色彩分布信息确定模块,用于对每个网格组,从所述目标区域的网格对应的色彩信息确定色彩分布信息、色彩饱和度、亮度信息和清晰度,以及,从所述目标区域的网格对应的景深信息确定像素之间的层次感、立体效果和目标区域的厚度;The color distribution information determination module is configured to, for each grid group, determine color distribution information, color saturation, brightness information and sharpness from the color information corresponding to the grid of the target area, and, from the target area The depth of field information corresponding to the grid determines the layering between pixels, the stereoscopic effect and the thickness of the target area;

色彩分布信息比较模块,用于将从所述目标区域的网格对应的色彩信息确定的色彩分布信息、色彩饱和度、亮度信息和清晰度分别与标准货币中对应网格的标准色彩分布信息、标准色彩饱和度、标准亮度信息和标准清晰度比较,以及,将从所述目标区域的网格对应的景深信息确定的像素之间的层次感、立体效果和目标区域的厚度分别与标准货币中对应网格的标准像素之间的层次感、标准立体效果和标准目标区域的厚度比较。The color distribution information comparison module is used for the color distribution information, color saturation, brightness information and sharpness determined from the color information corresponding to the grid of the target area respectively and the standard color distribution information of the corresponding grid in the standard currency, Standard color saturation, standard brightness information and standard definition are compared, and the layering between pixels, the stereoscopic effect and the thickness of the target area determined from the depth of field information corresponding to the grid of the target area are respectively compared with the standard currency. Comparison of layering, standard stereoscopic effect, and standard target area thickness between standard pixels of the corresponding grid.

在一些实施例中,所述货币识别装置3还包括:In some embodiments, the currency identification device 3 further comprises:

音频数据获取单元,用于获取所述移动终端的马达震动所述待测货币时的音频数据;an audio data acquisition unit for acquiring audio data when the motor of the mobile terminal vibrates the currency to be tested;

对应地,所述货币识别单元33具体用于:Correspondingly, the currency identification unit 33 is specifically used for:

根据比较结果以及所述音频数据确定所述待测货币是否为真的货币。It is determined whether the currency to be tested is genuine currency according to the comparison result and the audio data.

需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange, execution process and other contents between the above-mentioned devices/units are based on the same concept as the method embodiments of the present application. For specific functions and technical effects, please refer to the method embodiments section. It is not repeated here.

图4为本申请一实施例提供的移动终端的结构示意图。如图4所示,该实施例的移动终端4包括:至少一个处理器40(图4中仅示出一个处理器)、存储器41以及存储在所述存储器41中并可在所述至少一个处理器40上运行的计算机程序42,所述处理器40执行所述计算机程序42时实现上述任意各个方法实施例中的步骤:FIG. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. As shown in FIG. 4 , the mobile terminal 4 of this embodiment includes: at least one processor 40 (only one processor is shown in FIG. 4 ), a memory 41 , and a memory 41 that is stored in the memory 41 and can be processed in the at least one The computer program 42 running on the processor 40, when the processor 40 executes the computer program 42, implements the steps in any of the above method embodiments:

若所述移动终端的相机启动且接收到货币检测指令,则获取相机前方的待测货币对应的图像信息,所述图像信息包括景深信息和色彩信息;If the camera of the mobile terminal is activated and a currency detection instruction is received, image information corresponding to the currency to be detected in front of the camera is acquired, and the image information includes depth of field information and color information;

将所述待测货币的图像信息与标准货币的图像信息比较;comparing the image information of the currency to be tested with the image information of the standard currency;

根据比较结果确定所述待测货币是否为真的货币。According to the comparison result, it is determined whether the currency to be tested is the real currency.

所述移动终端4可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。该移动终端可包括,但不仅限于,处理器40、存储器41。本领域技术人员可以理解,图4仅仅是移动终端4的举例,并不构成对移动终端4的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。The mobile terminal 4 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The mobile terminal may include, but is not limited to, a processor 40 and a memory 41 . Those skilled in the art can understand that FIG. 4 is only an example of the mobile terminal 4, and does not constitute a limitation on the mobile terminal 4. It may include more or less components than the one shown, or combine some components, or different components , for example, may also include input and output devices, network access devices, and the like.

所称处理器40可以是中央处理单元(Central Processing Unit,CPU),该处理器40还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit, ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 40 may be a central processing unit (Central Processing Unit, CPU), and the processor 40 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuits) , ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

所述存储器41在一些实施例中可以是所述移动终端4的内部存储单元,例如移动终端4的硬盘或内存。所述存储器41在另一些实施例中也可以是所述移动终端4的外部存储设备,例如所述移动终端4上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器41还可以既包括所述移动终端4的内部存储单元也包括外部存储设备。所述存储器41用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器41还可以用于暂时地存储已经输出或者将要输出的数据。The memory 41 may be an internal storage unit of the mobile terminal 4 in some embodiments, such as a hard disk or a memory of the mobile terminal 4 . In other embodiments, the memory 41 may also be an external storage device of the mobile terminal 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the memory 41 may also include both an internal storage unit of the mobile terminal 4 and an external storage device. The memory 41 is used to store an operating system, an application program, a boot loader (Boot Loader), data, and other programs, such as program codes of the computer program. The memory 41 can also be used to temporarily store data that has been output or will be output.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above-mentioned system, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here.

本申请实施例还提供了一种网络设备,该网络设备包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。An embodiment of the present application also provides a network device, the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor executing The computer program implements the steps in any of the foregoing method embodiments.

本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。The embodiments of the present application provide a computer program product, when the computer program product runs on a mobile terminal, the steps in the foregoing method embodiments can be implemented when the mobile terminal executes the computer program product.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM, RandomAccess Memory)、电载波信号、电信信号以及软件分发介质。例如U 盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal, and software distribution medium. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the within the scope of protection of this application.

Claims (10)

1. A currency identification method is applied to a mobile terminal, and comprises the following steps:
if a camera of the mobile terminal is started and a currency detection instruction is received, acquiring image information corresponding to currency to be detected in front of the camera, wherein the image information comprises depth information and color information;
comparing the image information of the currency to be detected with the image information of standard currency;
and determining whether the currency to be detected is true currency or not according to the comparison result.
2. The currency recognition method according to claim 1, wherein the obtaining of the image information corresponding to the currency to be detected in front of the camera if the camera of the mobile terminal is activated and the currency detection command is received comprises:
if a camera of the mobile terminal is started and a currency detection instruction is received, acquiring previewed image information corresponding to currency to be detected in front of the camera;
or,
and if the camera of the mobile terminal is started and the currency detection instruction is received, executing a photographing action to acquire image information corresponding to the currency to be detected in front of the camera.
3. The money discriminating method according to claim 1, wherein the comparing the image information of the money to be measured with the image information of the standard money includes:
intercepting image information of a target area from the image information of the currency to be detected;
determining the possible currency type of the currency to be detected according to the color information in the image information of the target area;
determining corresponding standard currency according to the possible currency types of the currency to be detected;
and comparing the image information of the target area with the determined image information of the corresponding standard currency.
4. A currency identification method as claimed in claim 3, wherein said determining the possible currency to which the currency to be tested belongs based on the color information in the image information of the target area comprises:
determining the currency value of the currency to be detected according to the color information in the image information of the target area;
and determining the possible currency type of the currency to be detected according to the currency value of the currency to be detected.
5. The currency identification method according to claim 4, wherein after said determining the possible currency to which the currency to be tested belongs based on the currency value of the currency to be tested, comprising:
if the determined number of the possible currency types to which the currency to be detected belongs is larger than or equal to a preset number threshold, determining face information in the currency to be detected according to color information in the image information of the target area;
and further screening the possible currency type to which the currency to be detected belongs according to the face information to obtain the possible currency type to which the screened currency to be detected belongs.
6. A currency identification method according to claim 3, wherein said comparing image information of said target area with image information of a determined corresponding standard currency comprises:
dividing the target area into at least two grids, wherein one grid of the target area and a corresponding grid in the determined standard currency are used as a grid group;
for each grid group, determining color distribution information, color saturation, brightness information and definition from color information corresponding to the grid of the target area, and determining layering, stereoscopic effect and thickness of the target area among pixels from depth information corresponding to the grid of the target area;
comparing color distribution information, color saturation, brightness information, and sharpness determined from the color information corresponding to the mesh of the target area with standard color distribution information, standard color saturation, standard brightness information, and standard sharpness of a corresponding mesh in standard currency, respectively, and comparing the sense of layering between pixels, the stereoscopic effect, and the thickness of the target area determined from the depth of field information corresponding to the mesh of the target area with the sense of layering between standard pixels, the standard stereoscopic effect, and the thickness of the standard target area of a corresponding mesh in standard currency, respectively.
7. The money discriminating method according to any one of claims 1 to 6, further comprising:
acquiring audio data when a motor of the mobile terminal vibrates the currency to be detected;
correspondingly, the step of determining whether the currency to be detected is true currency according to the comparison result specifically includes:
and determining whether the currency to be detected is true currency or not according to the comparison result and the audio data.
8. A money discriminating apparatus, applied to a mobile terminal, comprising:
the currency detection device comprises an image information acquisition unit, a currency detection unit and a currency detection unit, wherein the image information acquisition unit is used for acquiring image information corresponding to currency to be detected in front of a camera if the camera of the mobile terminal is started and receives a currency detection instruction, and the image information comprises depth of field information and color information;
an image information comparing unit for comparing the image information of the money to be measured with the image information of the standard money;
and the currency identification unit is used for determining whether the currency to be detected is true currency or not according to the comparison result.
9. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010104266.6A 2020-02-20 2020-02-20 Currency identification method and device and mobile terminal Active CN111275879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010104266.6A CN111275879B (en) 2020-02-20 2020-02-20 Currency identification method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010104266.6A CN111275879B (en) 2020-02-20 2020-02-20 Currency identification method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN111275879A true CN111275879A (en) 2020-06-12
CN111275879B CN111275879B (en) 2022-05-03

Family

ID=71003569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010104266.6A Active CN111275879B (en) 2020-02-20 2020-02-20 Currency identification method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN111275879B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113901942A (en) * 2021-10-25 2022-01-07 广州广电运通金融电子股份有限公司 Multi-modal currency recognition system, method, storage medium and terminal
CN115690820A (en) * 2022-09-06 2023-02-03 中国工商银行股份有限公司 Abnormal currency detection method and device

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09106466A (en) * 1995-10-09 1997-04-22 Printing Bureau Ministry Of Finance Japan How to determine the authenticity of securities
US20090257641A1 (en) * 2008-04-14 2009-10-15 Xu-Hua Liu Method for detecting monetary banknote and performing currency type analysis operation
CN102136166A (en) * 2011-01-14 2011-07-27 哈尔滨工业大学 Method and device for distinguishing false money by imaging paper money through multimodal information fusion
US20130034290A1 (en) * 2011-08-01 2013-02-07 Samsung Electronics Co., Ltd. Method of identifying a counterfeit bill using a portable terminal
CN103295312A (en) * 2013-05-31 2013-09-11 深圳市九洲电器有限公司 Electronic wallet
US20140010407A1 (en) * 2012-07-09 2014-01-09 Microsoft Corporation Image-based localization
CN104036581A (en) * 2014-06-19 2014-09-10 广州广电运通金融电子股份有限公司 Method and system for identifying authenticity of optically-variable ink area of valuable document
CN104639760A (en) * 2015-02-13 2015-05-20 海南亚元防伪技术研究所 Mobile phone money detecting method
CN105512637A (en) * 2015-12-22 2016-04-20 联想(北京)有限公司 Image processing method and electric device
CN105931361A (en) * 2016-04-12 2016-09-07 广东欧珀移动通信有限公司 Method and device for checking authenticity of currencies
CN106652168A (en) * 2016-12-19 2017-05-10 深圳怡化电脑股份有限公司 Paper currency value identification method and paper currency value identification device
KR101781009B1 (en) * 2016-08-31 2017-10-23 노틸러스효성 주식회사 Soiled banknote discrimination method
US20170316584A1 (en) * 2011-01-24 2017-11-02 Alon Atsmon System and process for automatically finding objects of a specific color
CN107437293A (en) * 2017-07-13 2017-12-05 广州市银科电子有限公司 A kind of bill anti-counterfeit discrimination method based on bill global characteristics
CN107506696A (en) * 2017-07-29 2017-12-22 广东欧珀移动通信有限公司 Anti-fake processing method and related product
CN107563338A (en) * 2017-09-12 2018-01-09 广东欧珀移动通信有限公司 Face detection method and related products
CN108074320A (en) * 2016-11-10 2018-05-25 深圳怡化电脑股份有限公司 A kind of image-recognizing method and device
US20200019776A1 (en) * 2018-07-13 2020-01-16 Walmart Apollo, Llc Currency verification and transaction validation system

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09106466A (en) * 1995-10-09 1997-04-22 Printing Bureau Ministry Of Finance Japan How to determine the authenticity of securities
US20090257641A1 (en) * 2008-04-14 2009-10-15 Xu-Hua Liu Method for detecting monetary banknote and performing currency type analysis operation
CN102136166A (en) * 2011-01-14 2011-07-27 哈尔滨工业大学 Method and device for distinguishing false money by imaging paper money through multimodal information fusion
US20170316584A1 (en) * 2011-01-24 2017-11-02 Alon Atsmon System and process for automatically finding objects of a specific color
US20130034290A1 (en) * 2011-08-01 2013-02-07 Samsung Electronics Co., Ltd. Method of identifying a counterfeit bill using a portable terminal
US20140010407A1 (en) * 2012-07-09 2014-01-09 Microsoft Corporation Image-based localization
CN103295312A (en) * 2013-05-31 2013-09-11 深圳市九洲电器有限公司 Electronic wallet
CN104036581A (en) * 2014-06-19 2014-09-10 广州广电运通金融电子股份有限公司 Method and system for identifying authenticity of optically-variable ink area of valuable document
CN104639760A (en) * 2015-02-13 2015-05-20 海南亚元防伪技术研究所 Mobile phone money detecting method
CN105512637A (en) * 2015-12-22 2016-04-20 联想(北京)有限公司 Image processing method and electric device
CN105931361A (en) * 2016-04-12 2016-09-07 广东欧珀移动通信有限公司 Method and device for checking authenticity of currencies
KR101781009B1 (en) * 2016-08-31 2017-10-23 노틸러스효성 주식회사 Soiled banknote discrimination method
CN108074320A (en) * 2016-11-10 2018-05-25 深圳怡化电脑股份有限公司 A kind of image-recognizing method and device
CN106652168A (en) * 2016-12-19 2017-05-10 深圳怡化电脑股份有限公司 Paper currency value identification method and paper currency value identification device
CN107437293A (en) * 2017-07-13 2017-12-05 广州市银科电子有限公司 A kind of bill anti-counterfeit discrimination method based on bill global characteristics
CN107506696A (en) * 2017-07-29 2017-12-22 广东欧珀移动通信有限公司 Anti-fake processing method and related product
CN107563338A (en) * 2017-09-12 2018-01-09 广东欧珀移动通信有限公司 Face detection method and related products
US20200019776A1 (en) * 2018-07-13 2020-01-16 Walmart Apollo, Llc Currency verification and transaction validation system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113901942A (en) * 2021-10-25 2022-01-07 广州广电运通金融电子股份有限公司 Multi-modal currency recognition system, method, storage medium and terminal
WO2023070843A1 (en) * 2021-10-25 2023-05-04 广州广电运通金融电子股份有限公司 Multi-modal currency recognition system, method, storage medium and terminal
CN115690820A (en) * 2022-09-06 2023-02-03 中国工商银行股份有限公司 Abnormal currency detection method and device

Also Published As

Publication number Publication date
CN111275879B (en) 2022-05-03

Similar Documents

Publication Publication Date Title
CN105956448B (en) A fingerprint unlocking method, device and user terminal
WO2020147257A1 (en) Face recognition method and apparatus
WO2018166525A1 (en) Human face anti-counterfeit detection method and system, electronic device, program and medium
CN112700376B (en) Moire pattern removing method and device for image, terminal equipment and storage medium
CN111275879B (en) Currency identification method and device and mobile terminal
Quan et al. On addressing the impact of ISO speed upon PRNU and forgery detection
WO2022161397A1 (en) Face image verification method and apparatus, electronic device and storage medium
WO2022242365A1 (en) Data encryption method and apparatus, computer device, and storage medium
WO2022199395A1 (en) Facial liveness detection method, terminal device and computer-readable storage medium
CN112989299A (en) Interactive identity recognition method, system, device and medium
CN113778591B (en) Method, device, server and storage medium for acquiring display card surface
CN111160093B (en) Method, device, equipment and storage medium for identifying certificate photo camouflage in certificate
CN110516421A (en) Password verification method, password verification device and electronic equipment
CN112395580A (en) Authentication method, device, system, storage medium and computer equipment
CN108492445A (en) The method and device of bank note classification
CN114743016A (en) Certificate authenticity identification method and device, electronic equipment and storage medium
CN106295559A (en) Method, fingerprint identification device and the display device that a kind of data process
CN115564945A (en) Touch object color identification method and module, touch device and storage medium
US20250037509A1 (en) System and method for determining liveness using face rotation
CN107679851A (en) Means of payment call method and device, computer installation and readable storage medium storing program for executing
CN112258196A (en) Verification method, device, terminal and storage medium of fingerprint information
CN116311389B (en) Fingerprint identification method and device
WO2024037057A1 (en) Fingerprint recognition method and apparatus
CN108805883A (en) Image segmentation method, image segmentation device and electronic equipment
CN111178346B (en) Text region positioning method, text region positioning device, text region positioning equipment and storage medium

Legal Events

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

Effective date of registration: 20220822

Address after: 570105 No. a5002-896, zone A1, Fuxing City, No. 32, Binhai Avenue, Longhua District, Haikou City, Hainan Province

Patentee after: Hainan opper Communication Technology Co.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20241010

Address after: 518000 2501, office building T2, Qianhai China Resources Financial Center, No. 55, guiwan 4th Road, Nanshan street, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong

Patentee after: Shenzhen Huantai Digital Technology Co.,Ltd.

Country or region after: China

Address before: 570105 No. a5002-896, zone A1, Fuxing City, No. 32, Binhai Avenue, Longhua District, Haikou City, Hainan Province

Patentee before: Hainan opper Communication Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right