Nothing Special   »   [go: up one dir, main page]

WO2020216091A1 - Image processing method and related apparatus - Google Patents

Image processing method and related apparatus Download PDF

Info

Publication number
WO2020216091A1
WO2020216091A1 PCT/CN2020/084506 CN2020084506W WO2020216091A1 WO 2020216091 A1 WO2020216091 A1 WO 2020216091A1 CN 2020084506 W CN2020084506 W CN 2020084506W WO 2020216091 A1 WO2020216091 A1 WO 2020216091A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
electronic device
screen
preset
determining
Prior art date
Application number
PCT/CN2020/084506
Other languages
French (fr)
Chinese (zh)
Inventor
占文喜
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020216091A1 publication Critical patent/WO2020216091A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor

Definitions

  • FIG. 2A is a schematic flowchart of an image processing method provided by an embodiment of the present application.
  • Fingerprint lines often have interruptions, bifurcations or turning points. These breakpoints, bifurcation points and turning points are called "feature points”.
  • feature points Each person's fingerprint pattern is unique in patterns, break points and intersections. Only by relying on this uniqueness and stability can we create fingerprint recognition technology.
  • Each person's skin patterns, including fingerprints, are different in patterns, breakpoints, and intersections, which are unique and unchanged throughout their lives.
  • Fingerprint recognition technology has the advantages of fast recognition speed, convenient collection and low price, and is widely used in many disciplines such as image processing, pattern recognition, and computer vision.
  • S205 The electronic device shields the fixed lines on the first image to obtain a target image.
  • a trigger instruction may also be obtained, and the light sensor is activated according to the trigger instruction.
  • the image processing apparatus 600 may further include a storage unit 605 for storing program codes and data of the electronic device, and the storage unit 605 may be a memory.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Image Input (AREA)

Abstract

An image processing method and a related apparatus. Said method is applied to an electronic device, and a preset region (103) of the screen (102) of the electronic device (101) has a fingerprint recognition function. Said method comprises: in a current environment, acquiring at least one image when the screen (102) is in a screen-off state, and determining a first image according to the at least one image (S201); determining a second image according to the first image (S202); obtaining, according to the second image and the first image, a third image with background information eliminated (S203); determining fixed lines existing in the preset region according to the third image (S204); and blocking the fixed lines on the first image to obtain a target image (S205). The method can solve the problem of false recognition of fixed lines by extracting fixed lines, applying matching blocking on the coordinate region thereof, thereby avoiding false recognition, and improving the accuracy and intelligence of the electronic device (101) performing image processing.

Description

图像处理方法及相关装置Image processing method and related device 技术领域Technical field
本申请涉及智能移动终端技术领域,具体涉及一种图像处理方法及相关装置。This application relates to the technical field of smart mobile terminals, and in particular to an image processing method and related devices.
背景技术Background technique
目前市面上的智能电子设备基本都支持触摸屏幕操作功能,屏下指纹是利用OLED显示屏作为原始光源,光线在手指和玻璃接触面由于手指纹路谷和脊对光线反射的差异,集成光敏阵列的感光传感器会吸收不同程度的反射光,从而转换成有大小差异的电信号形成指纹图像。因此显示屏裂痕或者感应区域的异物都会给屏下光学指纹带来固定纹路干扰的影响,导致无法快捷的进行解锁等操作,降低了用户的体验度。At present, the smart electronic devices on the market basically support the touch screen operation function. The fingerprint under the screen uses the OLED display as the original light source. The light is reflected on the finger and the glass contact surface due to the difference in the reflection of the light from the valley and ridge of the fingerprint. The photosensitive sensor absorbs the reflected light of different degrees and converts it into electrical signals with different sizes to form fingerprint images. Therefore, cracks in the display screen or foreign objects in the sensing area will affect the fixed pattern interference on the optical fingerprint under the screen, resulting in the inability to quickly unlock and other operations, which reduces the user experience.
发明内容Summary of the invention
本申请实施例提供了一种图像处理方法及相关装置,提高电子设备进行图像处理的准确性和智能性。The embodiments of the present application provide an image processing method and related devices to improve the accuracy and intelligence of image processing performed by electronic equipment.
第一方面,本申请实施例提供一种图像处理方法,应用于电子设备,所述电子设备的屏幕的预设区域具备指纹识别功能,所述方法包括:In the first aspect, an embodiment of the present application provides an image processing method applied to an electronic device, a preset area of the screen of the electronic device has a fingerprint recognition function, and the method includes:
在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像;Under the current environment, collecting at least one image when the screen is in the off state, and determining the first image according to the at least one image;
根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像;Determining a second image according to the first image, the second image corresponding to an image collected by the electronic device in the current environment and the screen is free of foreign objects;
根据所述第二图像与所述第一图像,得到消除背景信息的第三图像;Obtaining a third image with background information eliminated according to the second image and the first image;
根据所述第三图像确定所述预设区域所存在的固定纹路;Determining, according to the third image, fixed lines existing in the preset area;
在所述第一图像上屏蔽所述固定纹路,得到目标图像。Shielding the fixed lines on the first image to obtain a target image.
第二方面,本申请实施例提供一种图像处理装置,应用于电子设备,所述电子设备的屏幕的预设区域具备指纹识别功能,所述图像处理装置包括采集单元、确定单元、获取单元和屏蔽单元,其中,In a second aspect, an embodiment of the present application provides an image processing device, which is applied to an electronic device. A preset area of the screen of the electronic device has a fingerprint recognition function. The image processing device includes an acquisition unit, a determination unit, an acquisition unit, and Shielding unit, where,
所述采集单元,用于在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像;The collection unit is configured to collect at least one image when the screen is in the off state under the current environment, and determine the first image according to the at least one image;
所述确定单元,用于根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像;The determining unit is configured to determine a second image according to the first image, the second image corresponding to an image collected by the electronic device in the current environment and the screen is free of foreign objects;
所述获取单元,用于根据所述第二图像与所述第一图像,得到消除背景信息的第三图像;The obtaining unit is configured to obtain a third image with background information eliminated according to the second image and the first image;
所述确定单元,还用于根据所述第三图像确定所述预设区域所存在的固定纹路;The determining unit is further configured to determine the fixed lines existing in the preset area according to the third image;
所述屏蔽单元,用于在所述第一图像上屏蔽所述固定纹路,得到目标图像。The masking unit is used to mask the fixed lines on the first image to obtain a target image.
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a third aspect, embodiments of the present application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the above The above-mentioned program includes instructions for executing the steps in any method of the first aspect of the embodiments of the present application.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the foregoing computer-readable storage medium stores a computer program for electronic data exchange, wherein the foregoing computer program enables a computer to execute In one aspect, some or all of the steps described in any method.
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute For example, some or all of the steps described in any method of the first aspect. The computer program product may be a software installation package.
可以看出,本申请实施例中,在当前环境下,电子设备首先在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像,其次,根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像,再次,根据所述第二图像与所述第一图像,得到消除背景信息的第三图像,然后,根据所述第三图像确定所述预设区域所存在的固定纹路,最后,在所述第一图像上屏蔽所述固定纹路,得到目标图像。可见,本申请实施例的电子设备获取预设区域熄屏下的图像通过多次的图像处理将背景消除,进一步的提取出固定的纹路,并将其坐标区域进行匹配屏蔽,从而得到无误差的图像,进而防止认假情况的发生,提高电子设备进行图像处理的准确性和智能性。It can be seen that in this embodiment of the application, in the current environment, the electronic device first collects at least one image when the screen is in the off state, and determines the first image based on the at least one image, and secondly, based on the The first image determines a second image, and the second image corresponds to an image collected by the electronic device in the current environment and the screen is free of foreign objects. Again, according to the second image and the first image Image to obtain a third image from which background information is eliminated, and then determine the fixed lines existing in the preset area according to the third image, and finally, mask the fixed lines on the first image to obtain a target image. It can be seen that the electronic device of the embodiment of the present application obtains the image under the preset area and eliminates the background through multiple image processing, and further extracts fixed lines, and matches and shields the coordinate areas, thereby obtaining error-free The image, thereby preventing the occurrence of false recognition, and improving the accuracy and intelligence of image processing by electronic devices.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是本申请实施例提供的一种电子设备采集指纹的示意图;FIG. 1 is a schematic diagram of fingerprint collection by an electronic device according to an embodiment of the present application;
图2A是本申请实施例提供的一种图像处理方法的流程示意图;2A is a schematic flowchart of an image processing method provided by an embodiment of the present application;
图2B是本申请实施例提供的一种无异物的图像示意图;2B is a schematic diagram of an image without foreign matter provided by an embodiment of the present application;
图2C是本申请实施例提供的一种有异物的图像示意图;2C is a schematic diagram of an image with foreign objects provided by an embodiment of the present application;
图3是本申请实施例提供的另一种图像处理方法的流程示意图;FIG. 3 is a schematic flowchart of another image processing method provided by an embodiment of the present application;
图4是本申请实施例提供的另一种图像处理方法的流程示意图;4 is a schematic flowchart of another image processing method provided by an embodiment of the present application;
图5是本申请实施例提供的一种电子设备的结构示意图;FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图6是本申请实施例提供的一种图像处理装置的功能单元组成框图。Fig. 6 is a block diagram of functional units of an image processing device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the application, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of this application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
本申请实施例所涉及到的电子设备可以是具备指纹识别能力的电子设备,该电子设备可以包括各种具有指纹识别功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。The electronic equipment involved in the embodiments of the present application may be an electronic device with fingerprint recognition capabilities. The electronic equipment may include various handheld devices with fingerprint recognition functions, vehicle-mounted devices, wearable devices, computing devices, or those connected to a wireless modem. Other processing equipment, and various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device), etc.
下面对本申请实施例进行详细介绍。The following describes the embodiments of the present application in detail.
指纹识别技术把一个人同他的指纹对应起来,通过比较他的指纹和预先保存的指纹进行比较,比较不同指纹的细节特征点来进行鉴别,就可以验证他的真实身份。指纹图像是以图像形式作为载体的指纹的数据。指纹是人类手指末端指腹上由凹凸的皮肤所形成的纹路。指纹是人类手指末端指腹上由凹凸的皮肤所形成的纹路,由于人的指纹是遗传与环境共同作用的,其与人体健康也密切相关,因而指纹人人皆有,却各不相同,由于指纹重复率极小,大约150亿分之一,故其称为“人体身份证”。正是基于指纹的这种特征,指纹作为身份认证的信息被广泛使用。指纹纹路经常出现中断、分叉或转折,这些断点、分叉点和转折点被称为"特征点"。每个人指纹纹路在图案、断点和交叉点上各不相同,是唯一的,依靠这种唯一性和稳定性,我们才能创造指纹识别技术。每个人包括指纹在内的皮肤纹路在图案、断点和交叉点上各不相同,呈现唯一性且终生不变。指纹识别技术拥有识别速度快、采集方便和价格低廉等优点,被广泛应用于图像处理、模式识别、计算机视觉等众多学科领域。Fingerprint recognition technology associates a person with his fingerprints. By comparing his fingerprints with pre-saved fingerprints, and comparing the minutiae feature points of different fingerprints for identification, his true identity can be verified. The fingerprint image is the data of the fingerprint in the form of an image as a carrier. A fingerprint is a pattern formed by the bumpy skin on the pad of the end of a human finger. Fingerprints are lines formed by the bumpy skin on the fingertips of human fingers. Because human fingerprints are a function of genetics and environment, they are also closely related to human health, so fingerprints are common to everyone, but they are different. The repetition rate of fingerprints is extremely small, about 1/15 billion, so it is called "human identity card". It is precisely based on this characteristic of fingerprints that fingerprints are widely used as identity authentication information. Fingerprint lines often have interruptions, bifurcations or turning points. These breakpoints, bifurcation points and turning points are called "feature points". Each person's fingerprint pattern is unique in patterns, break points and intersections. Only by relying on this uniqueness and stability can we create fingerprint recognition technology. Each person's skin patterns, including fingerprints, are different in patterns, breakpoints, and intersections, which are unique and unchanged throughout their lives. Fingerprint recognition technology has the advantages of fast recognition speed, convenient collection and low price, and is widely used in many disciplines such as image processing, pattern recognition, and computer vision.
一般在指纹识别的应用中,用户通常提前将几组指纹录入数据库中,每一组指纹为用户的一个手指对应的指纹。比如,一组指纹为用户的食指的指纹,另一组指纹为用户的拇指的指纹。针对每一组,系统会将该组指纹的特征点等信息提取出来,并保存成一组指纹对应的特征点模板。当用户需要输入指纹进行某项操作时,用户将指纹放置在指纹识别装置上,以使指纹识别装置识别出用户输入的指纹,之后终端提取出该用户输入的指纹的特征点,并与之前用户预先录入数据库中的多组指纹进行一一匹配,若用户输入的指纹的特征点与终端的数据库中预先录入的一组指纹的特征点匹配,则匹配成功,终端允许执行相应的操作。例如,比如用户需要对终端的屏幕进行解锁,此时,用户输入的指纹匹配成功时,终端将屏幕解锁。Generally, in fingerprint identification applications, users usually enter several sets of fingerprints into the database in advance, and each set of fingerprints is a fingerprint corresponding to one finger of the user. For example, one set of fingerprints is the fingerprint of the user's index finger, and the other set of fingerprints is the fingerprint of the user's thumb. For each group, the system will extract the feature points of the group of fingerprints and other information, and save it into a set of fingerprint corresponding feature point templates. When the user needs to input a fingerprint to perform an operation, the user places the fingerprint on the fingerprint recognition device so that the fingerprint recognition device recognizes the fingerprint input by the user, and then the terminal extracts the characteristic points of the fingerprint input by the user and compares it with the previous user Multiple sets of fingerprints pre-entered in the database are matched one by one. If the characteristic points of the fingerprint input by the user match the characteristic points of a set of fingerprints pre-entered in the terminal's database, the matching is successful and the terminal allows the corresponding operation to be performed. For example, for example, the user needs to unlock the screen of the terminal. At this time, when the fingerprint input by the user is matched successfully, the terminal unlocks the screen.
获得良好的指纹图像是一个十分复杂的问题。因为用于测量的指纹仅是相当小的一片表皮,所以指纹采集设备应有足够好的分辨率以获得指纹的细节。目前所用的指纹图像采集设备,基本上基于三种技术基础:光学技术、半导体硅技术、超声波技术。Obtaining a good fingerprint image is a very complicated problem. Because the fingerprint used for measurement is only a relatively small piece of skin, the fingerprint collection device should have a resolution good enough to obtain the details of the fingerprint. The fingerprint image acquisition equipment currently used is basically based on three technological foundations: optical technology, semiconductor silicon technology, and ultrasonic technology.
借助光学技术采集指纹是历史最久远、使用最广泛的技术。将手指放在光学镜片上,手指在内置光源照射下,用棱镜将其投射在电荷耦合器件上,进而形成脊线(指纹图像中具有一定宽度和走向的纹线)呈黑色、谷线(纹线之间的凹陷部分)呈白色的数字化的、可被指纹设备算法处理的多灰度指纹图像。Using optical technology to collect fingerprints is the oldest and most widely used technology. Place your finger on the optical lens, and use a prism to project your finger on the charge-coupled device under the illumination of the built-in light source to form a ridge line (a pattern with a certain width and direction in the fingerprint image), which is black and valley lines (textures). The concave part between the lines) is a white digitized multi-gray fingerprint image that can be processed by the fingerprint device algorithm.
光感屏幕指纹识别技术即屏下指纹识别技术,就是将识别模组放置在手机屏幕面板之下,在识别的时候通过模组发射的RGB射光穿透面板在指尖形成指纹光膜,随后将采集的指纹信息反馈回识别模组,通过系统比对完成操作。示例性的,如图1所示,电子设备为101,显示屏为102,采集指纹的预设区域为103,104为指纹放大图;一个电子设备101采集指纹104的示意图,当手指接触屏幕时,OLED屏幕发出的光线穿透盖板将指纹纹理照亮,指纹反射光线穿透屏幕返回传感器,最终形成指纹图像来进行识别。The light-sensitive screen fingerprint recognition technology is the under-screen fingerprint recognition technology, which is to place the recognition module under the mobile phone screen panel. During recognition, the RGB light emitted by the module penetrates the panel to form a fingerprint light film on the fingertips. The collected fingerprint information is fed back to the identification module, and the operation is completed through system comparison. Exemplarily, as shown in FIG. 1, the electronic device is 101, the display screen is 102, the preset area for collecting fingerprints is 103, and 104 is an enlarged fingerprint; a schematic diagram of an electronic device 101 collecting fingerprint 104, when the finger touches the screen The light emitted by the OLED screen penetrates the cover plate to illuminate the fingerprint texture, and the reflected light from the fingerprint penetrates the screen and returns to the sensor, and finally forms a fingerprint image for identification.
在比较指纹与存储数据之前,扫描仪处理器要确保获取到了清晰的图像。它会检查像素暗度的平均值或者一个小样本的整体值,如果图像整体太暗或太亮,该次扫描便会被放弃。于是扫描仪调整曝光时间以允许更多或者更少的光线进入,再扫描一次。如果暗度合适,扫描仪系统会继续检查图像的清晰度(指纹扫描的锐度)。处理器将查看在图像上沿垂直和水平方向移动的若干直线。如果与嵴纹垂直的线由非常暗的像素和非常亮的像素交互组成,那么就意味着指纹图像有很好的清晰度。Before comparing fingerprints with stored data, the scanner processor must ensure that a clear image is obtained. It checks the average value of pixel darkness or the overall value of a small sample. If the overall image is too dark or too bright, the scan will be discarded. Then the scanner adjusts the exposure time to allow more or less light to enter, and scan again. If the darkness is appropriate, the scanner system will continue to check the sharpness of the image (the sharpness of the fingerprint scan). The processor will look at several straight lines that move in the vertical and horizontal directions on the image. If the line perpendicular to the crest is composed of very dark pixels and very bright pixels, it means that the fingerprint image has good clarity.
指纹识别系统是一个典型的模式识别系统,包括指纹图像获取、处理、特征提取和比对等模块。The fingerprint recognition system is a typical pattern recognition system, including fingerprint image acquisition, processing, feature extraction and comparison modules.
其中,触控屏包括显示屏和触控面板(Touch Panel,TP),触控屏包括指纹采集区域。该指纹采集区域是触控屏中的一片区域,即大小能够供多个手指同时按压的大区域,而非仅能够供单个手指按压的小区域。该指纹采集区域所在的位置可以是触控屏的中间区域、触控屏的上部分区域、触控屏的下部分区域等,在此不作限定。Among them, the touch screen includes a display screen and a touch panel (Touch Panel, TP), and the touch screen includes a fingerprint collection area. The fingerprint collection area is an area in the touch screen, that is, a large area that can be pressed by multiple fingers at the same time, rather than a small area that can be pressed by a single finger. The location of the fingerprint collection area may be the middle area of the touch screen, the upper part of the touch screen, the lower part of the touch screen, etc., which are not limited here.
请参阅图2A,图2A是本申请实施例提供了一种图像处理方法的流程示意图,应用于电子设备,所述电子设备的屏幕的预设区域具备指纹识别功能;如图所示,本图像处理方法包括:Please refer to Figure 2A. Figure 2A is a schematic flowchart of an image processing method provided by an embodiment of the present application, which is applied to an electronic device, and a preset area of the screen of the electronic device has a fingerprint recognition function; as shown in the figure, this image Treatment methods include:
S201,在当前环境下,所述电子设备在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像。S201: In the current environment, the electronic device collects at least one image when the screen is in the off state, and determines a first image according to the at least one image.
其中,所述当前环境可以为室内环境无遮挡且水平的环境,此处不做唯一限定。Wherein, the current environment may be an unobstructed and horizontal indoor environment, which is not uniquely limited here.
S202,所述电子设备根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像。S202: The electronic device determines a second image according to the first image, the second image corresponding to an image collected by the electronic device in the current environment and the screen is free of foreign objects.
S203,所述电子设备根据所述第二图像与所述第一图像,得到消除背景信息的第三图像。S203: The electronic device obtains a third image from which background information is eliminated according to the second image and the first image.
可选的,所述第二图像与所述第一图像做图像差分运算,得到消除背景信息的第三图像。Optionally, an image difference operation is performed between the second image and the first image to obtain a third image with background information eliminated.
S204,所述电子设备根据所述第三图像确定所述预设区域所存在的固定纹路。S204: The electronic device determines, according to the third image, a fixed pattern existing in the preset area.
其中,所述预设区域可以是单点、区域、或者全屏,具体根据屏下指纹模组的设置位置来确定。Wherein, the preset area may be a single point, an area, or a full screen, which is specifically determined according to the setting position of the fingerprint module under the screen.
S205,所述电子设备在所述第一图像上屏蔽所述固定纹路,得到目标图像。S205: The electronic device shields the fixed lines on the first image to obtain a target image.
可以看出,本申请实施例中,在当前环境下,电子设备首先在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像,其次,根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像,再次,根据所述第二图像与所述第一图像,得到消除背景信息的第三图像,然后,根据所述第三图像确定所述预设区域所存在的固定纹路,最后,在所述第一图像上屏蔽所述固定纹路,得到目标图像。可见,本申请实施例的电子设备获取预设区域熄屏下的图像通过多次的图像处理将背景消除,进一步的提取出固定的纹路,并将其坐标区域进行匹配屏蔽,从而得到无误差的图像,进而防止认假情况的发生,提高电子设备进行图像处理的准确性和智能性。It can be seen that in this embodiment of the application, in the current environment, the electronic device first collects at least one image when the screen is in the off state, and determines the first image based on the at least one image, and secondly, based on the The first image determines a second image, and the second image corresponds to an image collected by the electronic device in the current environment and the screen is free of foreign objects. Again, according to the second image and the first image Image to obtain a third image from which background information is eliminated, and then determine the fixed lines existing in the preset area according to the third image, and finally, mask the fixed lines on the first image to obtain a target image. It can be seen that the electronic device of the embodiment of the present application obtains the image under the preset area and eliminates the background through multiple image processing, and further extracts fixed lines, and matches and shields the coordinate areas, thereby obtaining error-free The image, thereby preventing the occurrence of false recognition, and improving the accuracy and intelligence of image processing by electronic devices.
在一个可能的示例中,所述根据所述第一图像确定第二图像,包括:所述电子设备将所述第一图像与预存的第四图像进行图像差分运算,得到所述当前环境下的第一环境光强度值,所述第四图像是所述电子设备在预设状态下采集的的图像,所述预设状态是指所述屏幕处于熄屏状态且环境光亮度为预设强度值;根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像。In a possible example, the determining the second image according to the first image includes: the electronic device performs an image difference operation between the first image and a prestored fourth image to obtain the current environment A first ambient light intensity value, the fourth image is an image collected by the electronic device in a preset state, and the preset state means that the screen is off and the ambient light brightness is a preset intensity value ; Determine the second image according to the first ambient light intensity value, the fourth image and the pre-stored noise floor image.
其中,预存的第四图像可以为在出厂时,厂商采集的图像或是根据大数据调取的图像,此处不做唯一限定。Among them, the pre-stored fourth image may be an image collected by a manufacturer at the factory or an image retrieved based on big data, and there is no unique limitation here.
其中,图像差分运算又称为图像相减运算,是指对同一景物在不同时间拍摄的图像或同一景物在不同波段的图像进行相减,得到一个输出图像的过程。Among them, image difference operation is also called image subtraction operation, which refers to the process of subtracting images of the same scene at different times or images of the same scene in different bands to obtain an output image.
其中,所述预设强度值可以为100lux,此处不做唯一限定。Wherein, the preset intensity value may be 100 lux, which is not uniquely limited here.
可见,本示例中,电子设备将采集到的图像与预设图像做差分运算得到环境光强度后,根据公式得到当前环境息屏状态下无异物的图像,即通过图像处理将背景进行第一步的提取,提高电子设备进行图像采集的准确性和智能性。It can be seen that, in this example, after the electronic device performs a differential operation between the collected image and the preset image to obtain the ambient light intensity, it obtains the image without foreign matter in the current environment screen state according to the formula, that is, the background is processed as the first step through image processing. The extraction of images improves the accuracy and intelligence of image acquisition by electronic equipment.
在一个可能的示例中,所述根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像,包括:将所述第一环境光强度值、所述第二图像和预存的底噪图像代入预设公式,得到第三图像,所述预设公式为E=L*(C-D)/100+D,其中E为所述第二图像、L为所述第一环境光强度、C为所述第四图像和D为预存的底噪图像。In a possible example, the determining the second image according to the first ambient light intensity value, the fourth image, and the pre-stored noise floor image includes: combining the first ambient light intensity value, the The second image and the pre-stored noise floor image are substituted into a preset formula to obtain a third image. The preset formula is E=L*(CD)/100+D, where E is the second image and L is the The first ambient light intensity, C is the fourth image and D is the pre-stored noise floor image.
其中,所述预存的底噪图像为息屏隔绝环境的底噪图像。Wherein, the pre-stored noise background image is the noise background image of the screen isolation environment.
可见,本示例中,根据预设公式得到当前环境息屏状态下无异物的图像,提高电子设备进行图像采集的准确性和智能性。It can be seen that, in this example, an image without foreign objects in the current environment and screen state is obtained according to the preset formula, which improves the accuracy and intelligence of image collection by the electronic device.
在一个可能的示例中,所述至少一张图像包括第五图像和第六图像,所述根据所述至少一张第一图像中确定第一图像,包括:所述电子设备获取所述第五图像和所述第六图像的图像清晰度;在所述第五图像和所述第六图像中筛选出所述图像清晰度大于预设清晰度的图像为第一图像。In a possible example, the at least one image includes a fifth image and a sixth image, and the determining the first image according to the at least one first image includes: the electronic device acquires the fifth image The image definition of the image and the sixth image; the first image is selected from the fifth image and the sixth image, and the image whose image definition is greater than the preset definition is selected.
其中,所述预设清晰度可以为出厂时厂商设定或是从大数据库中得到,此处不做唯一限制。Wherein, the preset definition can be set by the manufacturer at the factory or obtained from a large database, and there is no unique limitation here.
可选的,若所述第五图像和所述第六图像的图像清晰度皆大于预设清晰度,则选取采集时间最近 的图像为第一图像。Optionally, if the image sharpness of the fifth image and the sixth image are both greater than the preset sharpness, the image with the most recent acquisition time is selected as the first image.
可见,本示例中,电子设备通过筛选采集的图像的清晰度,进而得到较为清晰的第一图像,避免了由于采集图像的不清晰,而导致后续误判断和误提取的情况,有利于电子设备进行进行图像采集的准确性和智能性。It can be seen that, in this example, the electronic device obtains a clearer first image by filtering the clarity of the captured image, which avoids subsequent misjudgment and mis-extraction due to the unclear captured image, which is beneficial to the electronic device The accuracy and intelligence of image acquisition.
在一个可能的示例中,所述根据所述第三图像确定所述预设区域所存在的固定纹路,包括:所述电子设备获取所述第三图像中的像素点;若所述像素点出现异常,则将所述异常像素点确定为固定纹路像素点;根据所述固定纹路像素点得到固定纹路。In a possible example, the determining a fixed pattern existing in the preset area according to the third image includes: acquiring, by the electronic device, a pixel in the third image; if the pixel appears If it is abnormal, the abnormal pixel is determined as a fixed pattern pixel; the fixed pattern is obtained according to the fixed pattern pixel.
举例来说,如图2B所示,图2B为无异常像素点出现的图像,即预设区域没有异物则全黑的图像,若是所述预设区域存在异物,则如图2C所示,所述图2C为存在固定纹路的图像,即在图像中会出现白色的纹路。For example, as shown in FIG. 2B, FIG. 2B is an image with no abnormal pixels, that is, a completely black image without foreign objects in the preset area. If there are foreign objects in the preset area, as shown in FIG. 2C, 2C is an image with fixed lines, that is, white lines will appear in the image.
其中,所述异常可以为当前像素点与预设的像素点的匹配值低于预设匹配值,即为异常。Wherein, the abnormality may be that the matching value of the current pixel point and the preset pixel point is lower than the preset matching value, which is an abnormality.
可见,本示例中,电子设备通过分析像素点,可以得到采集到的图像中是否存在异物,并将所述异物的纹路进行提取,有利于电子设备进行图像采集时的准确性和智能性。It can be seen that, in this example, the electronic device can obtain whether there are foreign objects in the collected image by analyzing the pixels, and extract the texture of the foreign objects, which is beneficial to the accuracy and intelligence of the electronic device in image collection.
在一个可能的示例中,在所述第一图像上屏蔽所述固定纹路,得到目标图像之后,所述方法还包括:所述电子设备采集指纹图像,并根据所述固定纹路修正所述指纹图像,得到修正后的指纹图像。In a possible example, after shielding the fixed pattern on the first image to obtain a target image, the method further includes: the electronic device collects a fingerprint image, and correcting the fingerprint image according to the fixed pattern To get the corrected fingerprint image.
可见,本示例中,电子设备通过得到的无误差的图像,进行后续指纹采集的图像修订,能够有效地防止认假情况的发生,提高电子设备进行图像处理的准确性和智能性It can be seen that in this example, the electronic device uses the obtained error-free image to revise the image of subsequent fingerprint collection, which can effectively prevent the occurrence of false recognition and improve the accuracy and intelligence of image processing by the electronic device.
在一个可能的示例中,所述电子设备包括光感传感器、接近传感器和加速度传感器;在所述在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像之前,所述方法还包括:所述电子设备开启光感传感器采集室内光感值;检测所述光感值是否在第一预设阈值范围内;若是,则开启所述接近传感器采集参考图像;若在所述参考图像中,无异物,则开启所述加速度传感器采集目标参数;若所述目标参数在第二预设阈值范围内,则采集熄屏状态下的至少一张第一图像。In a possible example, the electronic device includes a light sensor, a proximity sensor, and an acceleration sensor; in the current environment, before at least one image is collected when the screen is in the off state, the method further It includes: the electronic device turns on the light sensor to collect the indoor light sensitivity value; detects whether the light sensitivity value is within a first preset threshold range; if so, turns on the proximity sensor to collect a reference image; if it is in the reference image If there is no foreign matter, the acceleration sensor is turned on to collect the target parameter; if the target parameter is within the second preset threshold range, at least one first image in the off-screen state is collected.
其中,所述第一预设阈值和所述第二预设阈值为出厂时厂商设定。Wherein, the first preset threshold and the second preset threshold are factory settings at the factory.
其中,所述目标参数可以为加速度、速度等,此处不做唯一限定。Wherein, the target parameter may be acceleration, speed, etc., which are not uniquely limited here.
可选的,在开启光感传感器采集光感值之前,还可以获取触发指令,根据所述触发指令启动光感传感器。Optionally, before the light sensor is turned on to collect the light sensitivity value, a trigger instruction may also be obtained, and the light sensor is activated according to the trigger instruction.
其中,所述触发指令包括按键指令、手势指令和语音指令。Wherein, the trigger instruction includes a key instruction, a gesture instruction and a voice instruction.
可见,本示例中,电子设备通过限制预设的环境,进进一步采集图像,降低了误差性,能够使得采集过程是处于合适的环境中进行,有利于图像采集的准确性和智能性。It can be seen that, in this example, the electronic device further collects images by restricting the preset environment, which reduces the error and enables the collection process to be performed in a suitable environment, which is beneficial to the accuracy and intelligence of image collection.
与上述图2A所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种图像处理方法的流程示意图,应用于如图1所述的电子设备,所述电子设备的屏幕的预设区域具备指纹识别功能,如图所示,本图像处理方法包括:Consistent with the embodiment shown in FIG. 2A, please refer to FIG. 3. FIG. 3 is a schematic flowchart of an image processing method provided by an embodiment of the present application, which is applied to the electronic device described in FIG. The preset area of the screen has fingerprint recognition function, as shown in the figure, this image processing method includes:
S301,在当前环境下,所述电子设备在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像。S301: Under the current environment, the electronic device collects at least one image when the screen is in the off state, and determines a first image according to the at least one image.
S302,所述电子设备将所述第一图像与预存的第四图像进行图像差分运算,得到所述当前环境下的第一环境光强度值。S302: The electronic device performs an image difference operation on the first image and a prestored fourth image to obtain a first ambient light intensity value in the current environment.
S303,所述电子设备根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像。S303: The electronic device determines a second image according to the first ambient light intensity value, the fourth image, and a pre-stored noise floor image.
S304,所述电子设备根据所述第二图像与所述第一图像,得到消除背景信息的第三图像。S304: The electronic device obtains a third image with background information eliminated according to the second image and the first image.
S305,所述电子设备根据所述第三图像确定所述预设区域所存在的固定纹路。S305: The electronic device determines, according to the third image, a fixed pattern existing in the preset area.
S306,所述电子设备在所述第一图像上屏蔽所述固定纹路,得到目标图像。S306: The electronic device shields the fixed lines on the first image to obtain a target image.
可以看出,本申请实施例中,在当前环境下,电子设备首先在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像,其次,根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像,再次,根据所述第二图像与所述第一图像,得到消除背景信息的第三图像,然后,根据所述第三图像确定所述预设区域所存在的固定纹路,最后,在所述第一图像上屏蔽所述固定纹路,得到目标图像。可见,本申请实施例的电子设备获取预设区域熄屏下的图像通过多次的图像处理将背景消除,进一步的提取出固定的纹路,并将其坐标区域进行匹配屏蔽,从而得到无误差的图像,进而防止认假情况的发生,提高电子设备进行图像处理的准确性和智能性。It can be seen that in this embodiment of the application, in the current environment, the electronic device first collects at least one image when the screen is in the off state, and determines the first image based on the at least one image, and secondly, based on the The first image determines a second image, and the second image corresponds to an image collected by the electronic device in the current environment and the screen is free of foreign objects. Again, according to the second image and the first image Image to obtain a third image from which background information is eliminated, and then determine the fixed lines existing in the preset area according to the third image, and finally, mask the fixed lines on the first image to obtain a target image. It can be seen that the electronic device of the embodiment of the present application obtains the image under the preset area and eliminates the background through multiple image processing, and further extracts fixed lines, and matches and shields the coordinate areas, thereby obtaining error-free The image, thereby preventing the occurrence of false recognition, and improving the accuracy and intelligence of image processing by electronic devices.
此外,电子设备将采集到的图像与预设图像做差分运算得到环境光强度后,根据公式得到当前环境息屏状态下无异物的图像,即通过图像处理将背景进行第一步的提取,提高电子设备进行图像采集的准确性和智能性。In addition, after the electronic device performs a differential operation between the collected image and the preset image to obtain the ambient light intensity, it obtains an image without foreign matter in the current environment screen state according to the formula, that is, performs the first step of extracting the background through image processing to improve The accuracy and intelligence of image acquisition by electronic equipment.
与上述图2A所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种图像处理方法的流程示意图,应用于如图1所述的电子设备,所述电子设备的显示屏的预设区域具备指纹识别功能,如图所示,本图像处理方法包括:Consistent with the embodiment shown in FIG. 2A, please refer to FIG. 4. FIG. 4 is a schematic flowchart of an image processing method provided by an embodiment of the present application, which is applied to the electronic device described in FIG. The preset area of the display screen has a fingerprint recognition function. As shown in the figure, this image processing method includes:
S401,在当前环境下,所述电子设备在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像。S401: In the current environment, the electronic device collects at least one image when the screen is in the off state, and determines a first image according to the at least one image.
S402,所述电子设备将所述第一图像与预存的第四图像进行图像差分运算,得到所述当前环境下的第一环境光强度值。S402: The electronic device performs image difference calculation on the first image and a prestored fourth image to obtain a first ambient light intensity value in the current environment.
S403,所述电子设备根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像。S403: The electronic device determines a second image according to the first ambient light intensity value, the fourth image, and a pre-stored noise floor image.
S404,所述电子设备根据所述第二图像与所述第一图像,得到消除背景信息的第三图像。S404: The electronic device obtains a third image from which background information is eliminated according to the second image and the first image.
S405,所述电子设备获取所述第三图像中的像素点。S405: The electronic device acquires pixels in the third image.
S406,若所述像素点出现异常,所述电子设备则将所述异常像素点确定为固定纹路像素点。S406: If the pixel point is abnormal, the electronic device determines the abnormal pixel point as a fixed pattern pixel point.
S407,所述电子设备根据所述固定纹路像素点得到固定纹路。S407: The electronic device obtains a fixed pattern according to the pixels of the fixed pattern.
S408,所述电子设备采集指纹图像,并根据所述固定纹路修正所述指纹图像,得到修正后的指纹图像。S408: The electronic device collects a fingerprint image, and corrects the fingerprint image according to the fixed pattern to obtain a corrected fingerprint image.
可以看出,本申请实施例中,在当前环境下,电子设备首先在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像,其次,根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像,再次,根据所述第二图像与所述第一图像,得到消除背景信息的第三图像,然后,根据所述第三图像确定所述预设区域所存在的固定纹路,最后,在所述第一图像上屏蔽所述固定纹路,得到目标图像。可见,本申请实施例的电子设备获取预设区域熄屏下的图像通过多次的图像处理将背景消除,进一步的提取出固定的纹路,并将其坐标区域进行匹配屏蔽,从而得到无误差的图像,进而防止认假情况的发生,提高电子设备进行图像处理的准确性和智能性。It can be seen that in this embodiment of the application, in the current environment, the electronic device first collects at least one image when the screen is in the off state, and determines the first image based on the at least one image, and secondly, based on the The first image determines a second image, and the second image corresponds to an image collected by the electronic device in the current environment and the screen is free of foreign objects. Again, according to the second image and the first image Image to obtain a third image from which background information is eliminated, and then determine the fixed lines existing in the preset area according to the third image, and finally, mask the fixed lines on the first image to obtain a target image. It can be seen that the electronic device of the embodiment of the present application obtains the image under the preset area and eliminates the background through multiple image processing, and further extracts fixed lines, and matches and shields the coordinate areas, thereby obtaining error-free The image, thereby preventing the occurrence of false recognition, and improving the accuracy and intelligence of image processing by electronic devices.
此外,电子设备将采集到的图像与预设图像做差分运算得到环境光强度后,根据公式得到当前环境息屏状态下无异物的图像,即通过图像处理将背景进行第一步的提取,提高电子设备进行图像采集的准确性和智能性。In addition, after the electronic device performs a differential operation between the collected image and the preset image to obtain the ambient light intensity, it obtains an image without foreign matter in the current environment screen state according to the formula, that is, performs the first step of extracting the background through image processing to improve The accuracy and intelligence of image acquisition by electronic equipment.
此外,,电子设备通过分析像素点,可以得到采集到的图像中是否存在异物,并将所述异物的纹路进行提取,有利于电子设备进行图像采集时的准确性和智能性。In addition, the electronic device can obtain whether there is a foreign body in the collected image by analyzing the pixels, and extract the texture of the foreign body, which is beneficial to the accuracy and intelligence of the electronic device in image collection.
与上述图2A、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种电子设备500的结构示意图,如图所示,所述电子设备500包括应用处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在上述存储器520中,并且被配置由上述应 用处理器510执行,所述一个或多个程序521包括用于执行以下步骤的指令;Consistent with the embodiments shown in FIGS. 2A, 3, and 4 above, please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application. As shown in the figure, the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and are configured to be executed by the application processor 510, The one or more programs 521 include instructions for performing the following steps;
在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像;Under the current environment, collecting at least one image when the screen is in the off state, and determining the first image according to the at least one image;
根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像;Determining a second image according to the first image, the second image corresponding to an image collected by the electronic device in the current environment and the screen is free of foreign objects;
根据所述第二图像与所述第一图像,得到消除背景信息的第三图像;Obtaining a third image with background information eliminated according to the second image and the first image;
根据所述第三图像确定所述预设区域所存在的固定纹路;Determining, according to the third image, fixed lines existing in the preset area;
在所述第一图像上屏蔽所述固定纹路,得到目标图像。Shielding the fixed lines on the first image to obtain a target image.
可以看出,本申请实施例中,在当前环境下,电子设备首先在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像,其次,根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像,再次,根据所述第二图像与所述第一图像,得到消除背景信息的第三图像,然后,根据所述第三图像确定所述预设区域所存在的固定纹路,最后,在所述第一图像上屏蔽所述固定纹路,得到目标图像。可见,本申请实施例的电子设备获取预设区域熄屏下的图像通过多次的图像处理将背景消除,进一步的提取出固定的纹路,并将其坐标区域进行匹配屏蔽,从而得到无误差的图像,进而防止认假情况的发生,提高电子设备进行图像处理的准确性和智能性。It can be seen that in this embodiment of the application, in the current environment, the electronic device first collects at least one image when the screen is in the off state, and determines the first image based on the at least one image, and secondly, based on the The first image determines a second image, and the second image corresponds to an image collected by the electronic device in the current environment and the screen is free of foreign objects. Again, according to the second image and the first image Image to obtain a third image from which background information is eliminated, and then determine the fixed lines existing in the preset area according to the third image, and finally, mask the fixed lines on the first image to obtain a target image. It can be seen that the electronic device of the embodiment of the present application obtains the image under the preset area and eliminates the background through multiple image processing, and further extracts fixed lines, and matches and shields the coordinate areas, thereby obtaining error-free The image, thereby preventing the occurrence of false recognition, and improving the accuracy and intelligence of image processing by electronic devices.
在一个可能的示例中,在所述根据所述第一图像确定第二图像方面,所述程序中的指令具体用于执行以下操作:将所述第一图像与预存的第四图像进行图像差分运算,得到所述当前环境下的第一环境光强度值,所述第四图像是所述电子设备在预设状态下采集的的图像,所述预设状态是指所述屏幕处于熄屏状态且环境光亮度为预设强度值;根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像。In a possible example, in the aspect of determining the second image based on the first image, the instructions in the program are specifically used to perform the following operations: perform image difference between the first image and the prestored fourth image Calculate to obtain the first ambient light intensity value in the current environment, the fourth image is an image collected by the electronic device in a preset state, and the preset state means that the screen is off And the ambient light brightness is a preset intensity value; the second image is determined according to the first ambient light intensity value, the fourth image and the pre-stored noise floor image.
在一个可能的示例中,在所述根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像方面,所述程序中的指令具体用于执行以下操作:将所述第一环境光强度值、所述第二图像和预存的底噪图像代入预设公式,得到第三图像,所述预设公式为E=L*(C-D)/100+D,其中E为所述第二图像、L为所述第一环境光强度、C为所述第四图像和D为预存的的底噪图像。In a possible example, in terms of determining the second image according to the first ambient light intensity value, the fourth image, and the pre-stored noise floor image, the instructions in the program are specifically used to perform the following operations : Substitute the first ambient light intensity value, the second image and the pre-stored noise floor image into a preset formula to obtain a third image, the preset formula is E=L*(CD)/100+D, Where E is the second image, L is the first ambient light intensity, C is the fourth image, and D is a pre-stored noise floor image.
在一个可能的示例中,所述至少一张图像包括第五图像和第六图像,在所述根据所述至少一张第一图像中确定第一图像方面,所述程序的指令具体用于执行以下操作:获取所述第五图像和所述第六图像的图像清晰度;在所述第五图像和所述第六图像中筛选出所述图像清晰度大于预设清晰度的图像为第一图像。In a possible example, the at least one image includes a fifth image and a sixth image, and in the aspect of determining the first image from the at least one first image, the instructions of the program are specifically used to execute The following operations: Obtain the image clarity of the fifth image and the sixth image; filter out the image with the image clarity greater than the preset definition from the fifth image and the sixth image as the first image.
在一个可能的示例中,在所述根据所述第三图像确定所述预设区域所存在的固定纹路方面,所述程序中的指令具体用于执行以下操作:获取所述第三图像中的像素点;若所述像素点出现异常,则将所述异常像素点确定为固定纹路像素点;根据所述固定纹路像素点得到固定纹路。In a possible example, in terms of determining the fixed lines existing in the preset area according to the third image, the instructions in the program are specifically used to perform the following operations: acquiring Pixel; if the pixel is abnormal, the abnormal pixel is determined to be a fixed pattern pixel; the fixed pattern is obtained according to the fixed pattern pixel.
在一个可能的示例中,在所述第一图像上屏蔽所述固定纹路,得到目标图像之后,所述程序还包括用于执行以下操作:采集指纹图像,并根据所述固定纹路修正所述指纹图像,得到修正后的指纹图像。In a possible example, after shielding the fixed lines on the first image to obtain a target image, the program further includes operations for performing the following operations: collecting a fingerprint image, and correcting the fingerprint according to the fixed lines Image to get the corrected fingerprint image.
在一个可能的示例中,所述电子设备包括光感传感器、接近传感器和加速度传感器;在所述在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像之前,所述程序中的指令还具体用于执行以下操作:开启光感传感器采集室内光感值;检测所述光感值是否在第一预设阈值范围内;若是,则开启所述接近传感器采集参考图像;若在所述参考图像中,无异物,则开启所述加速度传感器采集目标参数;若所述目标参数在第二预设阈值范围内,则采集熄屏状态下的至少一张第一图像。In a possible example, the electronic device includes a light sensor, a proximity sensor, and an acceleration sensor; in the current environment, before at least one image is collected when the screen is off, the program The instructions are also specifically used to perform the following operations: turn on the light sensor to collect indoor light sensitivity values; detect whether the light sensitivity value is within the first preset threshold range; if so, turn on the proximity sensor to collect reference images; If there is no foreign matter in the reference image, the acceleration sensor is turned on to collect target parameters; if the target parameter is within the second preset threshold range, at least one first image in the screen-off state is collected.
在一个可能的示例中,在所述开启光感传感器采集室内光感值之前,所述程序中的指令还具体用于执行以下操作:获取触发指令;根据所述触发指令启动光感传感器。In a possible example, before the light sensor is turned on to collect the indoor light sensor value, the instructions in the program are specifically used to perform the following operations: obtain a trigger instruction; and activate the light sensor according to the trigger instruction.
在一个可能的示例中,所述根据所述第二图像与所述第一图像,得到消除背景信息的第三图像,所述程序中的指令具体用于执行以下操作:将所述第二图像与所述第一图像做图像差分运算,得到消除背景信息的第三图像。In a possible example, the third image from which background information is eliminated is obtained according to the second image and the first image, and the instructions in the program are specifically used to perform the following operations: Perform an image difference operation with the first image to obtain a third image with background information eliminated.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solution of the embodiment of the present application from the perspective of the execution process on the method side. It can be understood that, in order to implement the above-mentioned functions, the electronic device includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that in combination with the units and algorithm steps of the examples described in the embodiments provided herein, this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the electronic device into functional units according to the foregoing method examples. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
图6是本申请实施例中所涉及的图像处理装置600的功能单元组成框图。该图像处理装置600应用于电子设备,包括采集单元601、确定单元602、获取单元603和屏蔽单元604,其中,FIG. 6 is a block diagram of the functional units of the image processing device 600 involved in an embodiment of the present application. The image processing device 600 is applied to electronic equipment, and includes an acquisition unit 601, a determination unit 602, an acquisition unit 603, and a shielding unit 604, where:
所述采集单元601,用于在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像;The collecting unit 601 is configured to collect at least one image when the screen is in the off-screen state under the current environment, and determine the first image according to the at least one image;
所述确定单元602,用于根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像;The determining unit 602 is configured to determine a second image according to the first image, the second image corresponding to an image collected by the electronic device in the current environment and the screen is free of foreign objects;
所述获取单元603,用于根据所述第二图像与所述第一图像,得到消除背景信息的第三图像;The obtaining unit 603 is configured to obtain a third image with background information eliminated according to the second image and the first image;
所述确定单元602,还用于根据所述第三图像确定所述预设区域所存在的固定纹路;The determining unit 602 is further configured to determine a fixed pattern existing in the preset area according to the third image;
所述屏蔽单元604,用于在所述第一图像上屏蔽所述固定纹路,得到目标图像。The masking unit 604 is used to mask the fixed lines on the first image to obtain a target image.
其中,所述图像处理装置600还可以包括存储单元605,用于存储电子设备的程序代码和数据,存储单元605可以是存储器。Wherein, the image processing apparatus 600 may further include a storage unit 605 for storing program codes and data of the electronic device, and the storage unit 605 may be a memory.
可以看出,本申请实施例中,在当前环境下,电子设备首先在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像,其次,根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像,再次,根据所述第二图像与所述第一图像,得到消除背景信息的第三图像,然后,根据所述第三图像确定所述预设区域所存在的固定纹路,最后,在所述第一图像上屏蔽所述固定纹路,得到目标图像。可见,本申请实施例的电子设备获取预设区域熄屏下的图像通过多次的图像处理将背景消除,进一步的提取出固定的纹路,并将其坐标区域进行匹配屏蔽,从而得到无误差的图像,进而防止认假情况的发生,提高电子设备进行图像处理的准确性和智能性。It can be seen that in this embodiment of the application, in the current environment, the electronic device first collects at least one image when the screen is in the off state, and determines the first image based on the at least one image, and secondly, based on the The first image determines a second image, and the second image corresponds to an image collected by the electronic device in the current environment and the screen is free of foreign objects. Again, according to the second image and the first image Image to obtain a third image from which background information is eliminated, and then determine the fixed lines existing in the preset area according to the third image, and finally, mask the fixed lines on the first image to obtain a target image. It can be seen that the electronic device of the embodiment of the present application obtains the image under the preset area and eliminates the background through multiple image processing, and further extracts fixed lines, and matches and shields the coordinate areas, thereby obtaining error-free The image, thereby preventing the occurrence of false recognition, and improving the accuracy and intelligence of image processing by electronic equipment.
在一个可能的示例中,在所述根据所述第一图像确定第二图像方面,所述确定单元602具体用于:将所述第一图像与预存的第四图像进行图像差分运算,得到所述当前环境下的第一环境光强度值,所述第四图像是所述电子设备在预设状态下采集的图像,所述预设状态是指所述屏幕处于熄屏状态且环境光亮度为预设强度值;根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像。In a possible example, in the aspect of determining the second image based on the first image, the determining unit 602 is specifically configured to: perform an image difference operation on the first image and a prestored fourth image to obtain the The first ambient light intensity value in the current environment, the fourth image is an image collected by the electronic device in a preset state, and the preset state means that the screen is off and the ambient light brightness is The preset intensity value; the second image is determined according to the first ambient light intensity value, the fourth image and the pre-stored noise floor image.
在一个可能的示例中,在所述根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像方面,所述确定单元602具体用于:将所述第一环境光强度值、所述第二图像和预存的底噪图像代入预设公式,得到第三图像,所述预设公式为E=L*(C-D)/100+D,其中E为所述第二图像、L为所述第一环境光强度、C为所述第四图像和D为预存的的底噪图像。In a possible example, in terms of determining the second image according to the first ambient light intensity value, the fourth image, and the pre-stored noise floor image, the determining unit 602 is specifically configured to: The first ambient light intensity value, the second image, and the pre-stored noise floor image are substituted into a preset formula to obtain a third image. The preset formula is E=L*(CD)/100+D, where E is all The second image, L is the first ambient light intensity, C is the fourth image, and D is a pre-stored noise floor image.
在一个可能的示例中,所述至少一张图像包括第五图像和第六图像,在所述根据所述至少一张第 一图像中确定第一图像方面,所述确定单元602具体用于:获取所述第五图像和所述第六图像的图像清晰度;在所述第五图像和所述第六图像中筛选出所述图像清晰度大于预设清晰度的图像为第一图像。In a possible example, the at least one image includes a fifth image and a sixth image, and in determining the first image based on the at least one first image, the determining unit 602 is specifically configured to: The image definitions of the fifth image and the sixth image are acquired; among the fifth image and the sixth image, an image whose image definition is greater than a preset definition is selected as the first image.
在一个可能的示例中,在所述根据所述第三图像确定所述预设区域所存在的固定纹路方面,所述确定单元602具体用于:获取所述第三图像中的像素点;若所述像素点出现异常,则将所述异常像素点确定为固定纹路像素点;根据所述固定纹路像素点得到固定纹路。In a possible example, in terms of determining the fixed lines existing in the preset area according to the third image, the determining unit 602 is specifically configured to: obtain pixels in the third image; if If the pixel point is abnormal, the abnormal pixel point is determined as a fixed pattern pixel point; the fixed pattern is obtained according to the fixed pattern pixel point.
在一个可能的示例中,在所述第一图像上屏蔽所述固定纹路,得到目标图像之后,所述采集单元601具体用于:采集指纹图像,并根据所述固定纹路修正所述指纹图像,得到修正后的指纹图像。In a possible example, after shielding the fixed pattern on the first image to obtain a target image, the acquisition unit 601 is specifically configured to: acquire a fingerprint image, and correct the fingerprint image according to the fixed pattern, Get the corrected fingerprint image.
在一个可能的示例中,所述电子设备包括光感传感器、接近传感器和加速度传感器;在所述在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像之前,所述采集单元601还具体用于:开启光感传感器采集室内光感值;检测所述光感值是否在第一预设阈值范围内;若是,则开启所述接近传感器采集参考图像;若在所述参考图像中,无异物,则开启所述加速度传感器采集目标参数;若所述目标参数在第二预设阈值范围内,则采集熄屏状态下的至少一张第一图像。In a possible example, the electronic device includes a light sensor, a proximity sensor, and an acceleration sensor; in the current environment, before at least one image is acquired when the screen is in the off state, the acquisition unit 601 is also specifically used to: turn on the light sensor to collect the indoor light sensitivity value; detect whether the light sensitivity value is within the first preset threshold range; if so, turn on the proximity sensor to collect the reference image; if it is in the reference image If there is no foreign matter, the acceleration sensor is turned on to collect the target parameter; if the target parameter is within the second preset threshold range, at least one first image in the off-screen state is collected.
在一个可能的示例中,在所述开启光感传感器采集室内光感值之前,所述采集单元601还用于:获取触发指令;根据所述触发指令启动光感传感器。In a possible example, before the light sensor is turned on to collect the indoor light sensor value, the collection unit 601 is further configured to: obtain a trigger instruction; and activate the light sensor according to the trigger instruction.
在一个可能的示例中,在所述根据所述第二图像与所述第一图像,得到消除背景信息的第三图像方面,所述获取单元603用于:所述第二图像与所述第一图像做图像差分运算,得到消除背景信息的第三图像。本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。In a possible example, in terms of obtaining a third image from which background information is eliminated based on the second image and the first image, the obtaining unit 603 is configured to: the second image and the first image One image is subjected to image difference operation to obtain a third image with the background information removed. An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method as recorded in the above method embodiment , The aforementioned computer includes electronic equipment.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。The embodiments of the present application also provide a computer program product. The above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program. The above-mentioned computer program is operable to cause a computer to execute any of the above method embodiments. Part or all of the steps of the method. The computer program product may be a software installation package, and the above-mentioned computer includes electronic equipment.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器 中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the foregoing methods of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: flash disk , Read-only memory (English: Read-Only Memory, abbreviated as: ROM), random access device (English: Random Access Memory, abbreviated as: RAM), magnetic disk or CD, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the application are described in detail above, and specific examples are used in this article to illustrate the principles and implementation of the application. The descriptions of the above examples are only used to help understand the methods and core ideas of the application; A person of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation of the present application.

Claims (20)

  1. 一种图像处理方法,其特征在于,应用于电子设备,所述电子设备的屏幕的预设区域具备指纹识别功能,所述方法包括:An image processing method, characterized in that it is applied to an electronic device, and a preset area of the screen of the electronic device has a fingerprint recognition function, and the method includes:
    在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像;Under the current environment, collecting at least one image when the screen is in the off state, and determining the first image according to the at least one image;
    根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像;Determining a second image according to the first image, the second image corresponding to an image collected by the electronic device in the current environment and the screen is free of foreign objects;
    根据所述第二图像与所述第一图像,得到消除背景信息的第三图像;Obtaining a third image with background information eliminated according to the second image and the first image;
    根据所述第三图像确定所述预设区域所存在的固定纹路;Determining, according to the third image, fixed lines existing in the preset area;
    在所述第一图像上屏蔽所述固定纹路,得到目标图像。Shielding the fixed lines on the first image to obtain a target image.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第一图像确定第二图像,包括:The method according to claim 1, wherein the determining the second image according to the first image comprises:
    将所述第一图像与预存的第四图像进行图像差分运算,得到所述当前环境下的第一环境光强度值,所述第四图像是所述电子设备在预设状态下采集的图像,所述预设状态是指所述屏幕处于熄屏状态且环境光亮度为预设强度值;Performing an image difference operation on the first image and a prestored fourth image to obtain a first ambient light intensity value in the current environment, where the fourth image is an image collected by the electronic device in a preset state, The preset state means that the screen is in an off state and the ambient light brightness is a preset intensity value;
    根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像。The second image is determined according to the first ambient light intensity value, the fourth image and the pre-stored noise floor image.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像,包括:The method according to claim 2, wherein the determining the second image according to the first ambient light intensity value, the fourth image and a pre-stored noise floor image comprises:
    将所述第一环境光强度值、所述第二图像和预存的底噪图像代入预设公式,得到第三图像,所述预设公式为E=L*(C-D)/100+D,其中E为所述第二图像、L为所述第一环境光强度、C为所述第四图像和D为预存的底噪图像。Substitute the first ambient light intensity value, the second image, and the pre-stored noise floor image into a preset formula to obtain a third image. The preset formula is E=L*(CD)/100+D, where E is the second image, L is the first ambient light intensity, C is the fourth image, and D is a pre-stored noise floor image.
  4. 根据权利要求1或2所述的方法,其特征在于,所述至少一张图像包括第五图像和第六图像,所述根据所述至少一张第一图像中确定第一图像,包括:The method according to claim 1 or 2, wherein the at least one image includes a fifth image and a sixth image, and the determining the first image based on the at least one first image includes:
    获取所述第五图像和所述第六图像的图像清晰度;Acquiring the image clarity of the fifth image and the sixth image;
    在所述第五图像和所述第六图像中筛选出所述图像清晰度大于预设清晰度的图像为第一图像。The first image is selected from the fifth image and the sixth image whose image definition is greater than the preset definition.
  5. 根据权利要求1或2所述的方法,其特征在于,所述根据所述第三图像确定所述预设区域所存在的固定纹路,包括:The method according to claim 1 or 2, wherein the determining a fixed pattern existing in the preset area according to the third image comprises:
    获取所述第三图像中的像素点;Acquiring pixels in the third image;
    若所述像素点出现异常,则将所述异常像素点确定为固定纹路像素点;If the pixel point is abnormal, the abnormal pixel point is determined as a fixed pattern pixel point;
    根据所述固定纹路像素点得到固定纹路。A fixed pattern is obtained according to the pixel points of the fixed pattern.
  6. 根据权利要求5所述的方法,其特征在于,在所述第一图像上屏蔽所述固定纹路,得到目标图像之后,所述方法还包括:The method according to claim 5, wherein after shielding the fixed lines on the first image to obtain the target image, the method further comprises:
    采集指纹图像,并根据所述固定纹路修正所述指纹图像,得到修正后的指纹图像。A fingerprint image is collected, and the fingerprint image is corrected according to the fixed lines to obtain a corrected fingerprint image.
  7. 根据权利要求1所述的方法,其特征在于,所述电子设备包括光感传感器、接近传感器和加速度传感器;在所述在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像之前,所述方法还包括:The method according to claim 1, wherein the electronic device includes a light sensor, a proximity sensor, and an acceleration sensor; in the current environment, at least one image is collected when the screen is in the off state Before, the method also includes:
    开启光感传感器采集室内光感值;Turn on the light sensor to collect indoor light sensor values;
    检测所述光感值是否在第一预设阈值范围内;Detecting whether the light sensitivity value is within a first preset threshold range;
    若是,则开启所述接近传感器采集参考图像;If yes, turn on the proximity sensor to collect reference images;
    若在所述参考图像中,无异物,则开启所述加速度传感器采集目标参数;If there is no foreign matter in the reference image, turn on the acceleration sensor to collect target parameters;
    若所述目标参数在第二预设阈值范围内,则采集熄屏状态下的至少一张第一图像。If the target parameter is within the second preset threshold range, at least one first image in the off-screen state is collected.
  8. 根据权利要求7所述的方法,其特征在于,在所述开启光感传感器采集室内光感值之前,所述方法还包括:The method according to claim 7, characterized in that, before the turning on the light sensor to collect the indoor light perception value, the method further comprises:
    获取触发指令;Get trigger instruction;
    根据所述触发指令启动光感传感器。The light sensor is activated according to the trigger instruction.
  9. 根据权利要求1所述的方法,其特征在于,所述根据所述第二图像与所述第一图像,得到消除背景信息的第三图像,包括:The method according to claim 1, wherein the obtaining a third image from which background information is eliminated based on the second image and the first image comprises:
    将所述第二图像与所述第一图像做图像差分运算,得到消除背景信息的第三图像。Perform an image difference operation between the second image and the first image to obtain a third image with background information eliminated.
  10. 一种图像处理装置,其特征在于,应用于电子设备,所述电子设备的屏幕的预设区域具备指纹 识别功能,所述图像处理装置包括采集单元、确定单元、获取单元和屏蔽单元,其中,An image processing device, characterized in that it is applied to an electronic device, and a preset area of the screen of the electronic device has a fingerprint recognition function, and the image processing device includes an acquisition unit, a determination unit, an acquisition unit, and a shielding unit, wherein:
    所述采集单元,用于在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像,并根据所述至少一张图像确定第一图像;The collection unit is configured to collect at least one image when the screen is in the off state under the current environment, and determine the first image according to the at least one image;
    所述确定单元,用于根据所述第一图像确定第二图像,所述第二图像对应所述电子设备在所述当前环境、且所述屏幕无异物情况下采集的图像;The determining unit is configured to determine a second image according to the first image, the second image corresponding to an image collected by the electronic device in the current environment and the screen is free of foreign objects;
    所述获取单元,用于根据所述第二图像与所述第一图像,得到消除背景信息的第三图像;The obtaining unit is configured to obtain a third image with background information eliminated according to the second image and the first image;
    所述确定单元,还用于根据所述第三图像确定所述预设区域所存在的固定纹路;The determining unit is further configured to determine the fixed lines existing in the preset area according to the third image;
    所述屏蔽单元,用于在所述第一图像上屏蔽所述固定纹路,得到目标图像。The masking unit is used to mask the fixed lines on the first image to obtain a target image.
  11. 根据权利要求10所述的装置,其特征在于,在所述根据所述第一图像确定第二图像方面,所述确定单元用于:将所述第一图像与预存的第四图像进行图像差分运算,得到所述当前环境下的第一环境光强度值,所述第四图像是所述电子设备在预设状态下采集的图像,所述预设状态是指所述屏幕处于熄屏状态且环境光亮度为预设强度值;根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像。The device according to claim 10, wherein, in the aspect of determining the second image based on the first image, the determining unit is configured to: perform image difference between the first image and a prestored fourth image Calculation to obtain the first ambient light intensity value in the current environment, the fourth image is an image collected by the electronic device in a preset state, and the preset state means that the screen is off and The ambient light brightness is a preset intensity value; the second image is determined according to the first ambient light intensity value, the fourth image, and the pre-stored noise floor image.
  12. 根据权利要求11所述的装置,其特征在于,在所述根据所述第一环境光强度值、所述第四图像和预存的底噪图像,确定第二图像方面,所述确定单元用于:将所述第一环境光强度值、所述第二图像和预存的底噪图像代入预设公式,得到第三图像,所述预设公式为E=L*(C-D)/100+D,其中E为所述第二图像、L为所述第一环境光强度、C为所述第四图像和D为预存的底噪图像。The device according to claim 11, wherein, in the aspect of determining the second image according to the first ambient light intensity value, the fourth image, and a pre-stored noise floor image, the determining unit is configured to : Substitute the first ambient light intensity value, the second image and the pre-stored noise floor image into a preset formula to obtain a third image, the preset formula is E=L*(CD)/100+D, Where E is the second image, L is the first ambient light intensity, C is the fourth image, and D is a pre-stored noise floor image.
  13. 根据权利要求10或11所述的装置,其特征在于,在所述至少一张图像包括第五图像和第六图像,所述根据所述至少一张第一图像中确定第一图像方面,所述确定单元用于:获取所述第五图像和所述第六图像的图像清晰度;在所述第五图像和所述第六图像中筛选出所述图像清晰度大于预设清晰度的图像为第一图像。The device according to claim 10 or 11, wherein the at least one image includes a fifth image and a sixth image, and the first image aspect is determined according to the at least one first image, so The determining unit is configured to: obtain the image definition of the fifth image and the sixth image; filter out the image with the image definition greater than the preset definition from the fifth image and the sixth image For the first image.
  14. 根据权利要求10或11所述的装置,其特征在于,在所述根据所述第三图像确定所述预设区域所存在的固定纹路方面,所述确定单元用于:获取所述第三图像中的像素点;若所述像素点出现异常,则将所述异常像素点确定为固定纹路像素点;根据所述固定纹路像素点得到固定纹路。The device according to claim 10 or 11, wherein in the aspect of determining the fixed pattern existing in the preset area according to the third image, the determining unit is configured to: obtain the third image If the pixel point is abnormal, the abnormal pixel point is determined as a fixed pattern pixel point; the fixed pattern is obtained according to the fixed pattern pixel point.
  15. 根据权利要求14所述的装置,其特征在于,在所述第一图像上屏蔽所述固定纹路,得到目标图像之后,所述确定单元还用于:采集指纹图像,并根据所述固定纹路修正所述指纹图像,得到修正后的指纹图像。The device according to claim 14, wherein after the fixed pattern is masked on the first image to obtain the target image, the determining unit is further configured to: collect a fingerprint image and correct it according to the fixed pattern The fingerprint image is a corrected fingerprint image.
  16. 根据权利要求10所述的装置,其特征在于,所述电子设备包括光感传感器、接近传感器和加速度传感器;在所述在当前环境下,在所述屏幕处于熄屏状态时采集至少一张图像之前,所述采集单元还用于:开启光感传感器采集室内光感值;检测所述光感值是否在第一预设阈值范围内;若是,则开启所述接近传感器采集参考图像;若在所述参考图像中,无异物,则开启所述加速度传感器采集目标参数;若所述目标参数在第二预设阈值范围内,则采集熄屏状态下的至少一张第一图像。The apparatus according to claim 10, wherein the electronic device comprises a light sensor, a proximity sensor, and an acceleration sensor; in the current environment, at least one image is collected when the screen is off Previously, the collection unit was also used to: turn on the light sensor to collect indoor light perception values; detect whether the light perception value is within a first preset threshold range; if so, turn on the proximity sensor to collect reference images; If there is no foreign matter in the reference image, the acceleration sensor is turned on to collect target parameters; if the target parameter is within the second preset threshold range, at least one first image in the screen-off state is collected.
  17. 根据权利要求16所述的装置,其特征在于,在所述开启光感传感器采集室内光感值之前,所述采集单元还用于:获取触发指令;根据所述触发指令启动光感传感器。The device according to claim 16, characterized in that, before the light sensor is turned on to collect the indoor light sensor value, the collection unit is further configured to: obtain a trigger instruction; and activate the light sensor according to the trigger instruction.
  18. 根据权利要求10所述的装置,其特征在于,在所述根据所述第二图像与所述第一图像,得到消除背景信息的第三图像方面,所述获取单元用于:所述第二图像与所述第一图像做图像差分运算,得到消除背景信息的第三图像。10. The device according to claim 10, wherein, in terms of obtaining a third image from which background information is eliminated based on the second image and the first image, the obtaining unit is configured to: Image difference operation is performed between the image and the first image to obtain a third image with background information eliminated.
  19. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。An electronic device, comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory and configured to be executed by the processor, The program includes instructions for executing the steps in the method according to any one of claims 1-9.
  20. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the method according to any one of claims 1-9.
PCT/CN2020/084506 2019-04-22 2020-04-13 Image processing method and related apparatus WO2020216091A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910324848.2 2019-04-22
CN201910324848.2A CN110084170A (en) 2019-04-22 2019-04-22 Image processing method and relevant apparatus

Publications (1)

Publication Number Publication Date
WO2020216091A1 true WO2020216091A1 (en) 2020-10-29

Family

ID=67416043

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/084506 WO2020216091A1 (en) 2019-04-22 2020-04-13 Image processing method and related apparatus

Country Status (2)

Country Link
CN (1) CN110084170A (en)
WO (1) WO2020216091A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115222653A (en) * 2021-12-17 2022-10-21 荣耀终端有限公司 Test method and device
CN116309625A (en) * 2022-11-11 2023-06-23 句容市乡土树种研究所 Data processing method suitable for intelligent agriculture

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110084170A (en) * 2019-04-22 2019-08-02 Oppo广东移动通信有限公司 Image processing method and relevant apparatus
CN111325702B (en) * 2020-01-19 2024-03-19 Oppo广东移动通信有限公司 Image fusion method and device
CN112036366B (en) * 2020-09-16 2024-07-12 Oppo广东移动通信有限公司 Determination method of noise photosensitive unit, fingerprint identification method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160307023A1 (en) * 2015-04-15 2016-10-20 Samsung Electronics Co., Ltd. Method and apparatus for recognizing fingerprint
CN106446775A (en) * 2016-08-26 2017-02-22 广东欧珀移动通信有限公司 Fingerprint identification method and device, and electronic equipment
CN106485237A (en) * 2016-10-24 2017-03-08 深圳市万普拉斯科技有限公司 Fingerprint image acquisition method, system and fingerprint collecting equipment
CN108460346A (en) * 2018-02-09 2018-08-28 厦门美图移动科技有限公司 Fingerprint identification method and device
CN110084170A (en) * 2019-04-22 2019-08-02 Oppo广东移动通信有限公司 Image processing method and relevant apparatus

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101413413B1 (en) * 2010-03-04 2014-06-27 닛본 덴끼 가부시끼가이샤 Foreign object determination device, foreign object determination method and foreign object determination program
CN105389542B (en) * 2015-10-19 2017-12-08 广东欧珀移动通信有限公司 A kind of decision method and device of Terminal fingerprints sensor surface foreign matter
CN107918768B (en) * 2017-11-28 2020-07-10 Oppo广东移动通信有限公司 Optical fingerprint identification method and device and electronic equipment
CN108416338B (en) * 2018-04-28 2021-12-14 深圳信息职业技术学院 Non-contact palm print identity authentication method
CN108509944B (en) * 2018-06-25 2022-04-29 北京小米移动软件有限公司 Fingerprint identification method and device
CN109389071A (en) * 2018-09-29 2019-02-26 京东方科技集团股份有限公司 Fingerprint detection method and fingerprint image compensation method and device, electronic device
CN109543378B (en) * 2018-11-08 2021-08-31 Oppo广东移动通信有限公司 Fingerprint unlocking method and related equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160307023A1 (en) * 2015-04-15 2016-10-20 Samsung Electronics Co., Ltd. Method and apparatus for recognizing fingerprint
CN106446775A (en) * 2016-08-26 2017-02-22 广东欧珀移动通信有限公司 Fingerprint identification method and device, and electronic equipment
CN106485237A (en) * 2016-10-24 2017-03-08 深圳市万普拉斯科技有限公司 Fingerprint image acquisition method, system and fingerprint collecting equipment
CN108460346A (en) * 2018-02-09 2018-08-28 厦门美图移动科技有限公司 Fingerprint identification method and device
CN110084170A (en) * 2019-04-22 2019-08-02 Oppo广东移动通信有限公司 Image processing method and relevant apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115222653A (en) * 2021-12-17 2022-10-21 荣耀终端有限公司 Test method and device
CN115222653B (en) * 2021-12-17 2023-08-18 荣耀终端有限公司 Test method and device
CN116309625A (en) * 2022-11-11 2023-06-23 句容市乡土树种研究所 Data processing method suitable for intelligent agriculture
CN116309625B (en) * 2022-11-11 2024-01-30 句容市乡土树种研究所有限公司 Data processing method suitable for intelligent agriculture

Also Published As

Publication number Publication date
CN110084170A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
WO2020108225A1 (en) Fingerprint acquisition method and related apparatus
WO2020216091A1 (en) Image processing method and related apparatus
KR102587193B1 (en) System and method for performing fingerprint-based user authentication using images captured using a mobile device
US9710691B1 (en) Touchless fingerprint matching systems and methods
US11874907B2 (en) Method for enhancing fingerprint image, identifying fingerprint and starting-up application program
JP6005750B2 (en) Authentication apparatus and authentication method
WO2020168858A1 (en) Data self-calibration method and related apparatus
WO2017156964A1 (en) Terminal unlocking method and terminal
WO2019033386A1 (en) Fingerprint image acquisition method and device, and terminal device
US11281885B2 (en) Method for fingerprint recognition, electronic device, and non-transitory computer-readable storage medium
JP6089872B2 (en) Image correction apparatus, image correction method, and biometric authentication apparatus
WO2020156033A1 (en) Fingerprint verification method and related apparatus
CN106845414A (en) For the method and system of the quality metric of biological characteristic validation
US20220067330A1 (en) Calibration method, electronic device, and non-transitory computer-readable storage medium
CN108090340B (en) Face recognition processing method, face recognition processing device and intelligent terminal
WO2020192532A1 (en) Fingerprint image processing method and related apparatus
CN107091704A (en) Pressure detection method and device
WO2020168861A1 (en) Method for obtaining fingerprint template and related device
CN109948588A (en) A kind of information processing method and electronic equipment
CN107408208B (en) Method and fingerprint sensing system for analyzing a biometric of a user
CN115050062A (en) Identity recognition method, device, equipment and medium
CN109522691A (en) Solve lock control method and relevant apparatus
US8320639B2 (en) Vein pattern management system, vein pattern registration apparatus, vein pattern authentication apparatus, vein pattern registration method, vein pattern authentication method, program, and vein data configuration
KR102333453B1 (en) Smartphone-based identity verification method using fingerprints and facial images
KR101125520B1 (en) Apparatus and control method for identification of vein pattern 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: 20794959

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: 20794959

Country of ref document: EP

Kind code of ref document: A1