HK1247010B - Image processing method and related products - Google Patents
Image processing method and related products Download PDFInfo
- Publication number
- HK1247010B HK1247010B HK18106010.3A HK18106010A HK1247010B HK 1247010 B HK1247010 B HK 1247010B HK 18106010 A HK18106010 A HK 18106010A HK 1247010 B HK1247010 B HK 1247010B
- Authority
- HK
- Hong Kong
- Prior art keywords
- iris
- image
- color
- target
- infrared
- Prior art date
Links
Description
技术领域Technical Field
本发明涉及移动终端技术领域,具体涉及一种图像处理方法及相关产品。The present invention relates to the technical field of mobile terminals, and in particular to an image processing method and related products.
背景技术Background Art
随着移动终端(手机、平板电脑等)的大量普及应用,移动终端能够支持的应用越来越多,功能越来越强大,移动终端向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。With the widespread application of mobile terminals (mobile phones, tablet computers, etc.), mobile terminals can support more and more applications and have more and more powerful functions. Mobile terminals are developing in the direction of diversification and personalization, becoming an indispensable electronic product in users' lives.
目前来看,虹膜识别越来越受到移动终端生产厂商的青睐,当前采集的虹膜图像均是红外图像,众多情况下,用户更倾向于观赏彩色图像,因而,展示效果不佳。At present, iris recognition is increasingly favored by mobile terminal manufacturers. Currently, the iris images collected are all infrared images. In many cases, users prefer to view color images, so the display effect is not good.
发明内容Summary of the Invention
本发明实施例提供了一种图像处理方法及相关产品,可以得到彩色虹膜图像,提升了虹膜图像的展示效果。The embodiments of the present invention provide an image processing method and related products, which can obtain a color iris image and improve the display effect of the iris image.
第一方面,本发明实施例提供一种图像处理方法,所述方法包括:In a first aspect, an embodiment of the present invention provides an image processing method, the method comprising:
采集目标物体的颜色信息;Collect color information of the target object;
从预先存储的多个补偿参数中确定与所述颜色信息对应的目标补偿参数;determining a target compensation parameter corresponding to the color information from a plurality of pre-stored compensation parameters;
在虹膜采集时,基于所述目标补偿参数对所述虹膜进行补偿以得到彩色虹膜图像。During iris acquisition, the iris is compensated based on the target compensation parameter to obtain a color iris image.
第二方面,本发明实施例提供了一种移动终端,包括虹膜识别装置、存储器和应用处理器AP,且所述虹膜识别装置、所述存储器均连接所述AP,其中:In a second aspect, an embodiment of the present invention provides a mobile terminal, comprising an iris recognition device, a memory, and an application processor AP, wherein the iris recognition device and the memory are both connected to the AP, wherein:
所述虹膜识别装置,用于采集目标物体的颜色信息;The iris recognition device is used to collect color information of the target object;
所述存储器,用于存储多个补偿参数;The memory is used to store a plurality of compensation parameters;
所述AP,用于从所述多个补偿参数中确定与所述颜色信息对应的目标补偿参数;以及在所述虹膜识别装置采集虹膜时,基于与所述颜色信息对应的所述目标补偿参数对所述虹膜进行补偿以得到彩色虹膜图像。The AP is configured to determine a target compensation parameter corresponding to the color information from the multiple compensation parameters; and when the iris recognition device captures the iris, compensate the iris based on the target compensation parameter corresponding to the color information to obtain a color iris image.
第三方面,本发明实施例提供了一种移动终端,包括:虹膜识别装置、应用处理器AP和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述AP执行,所述程序包括用于执行第一方面中所描述的部分或全部步骤的指令。In a third aspect, an embodiment of the present invention provides a mobile terminal comprising: an iris recognition device, an application processor AP and a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the AP, the programs comprising instructions for executing some or all of the steps described in the first aspect.
第四方面,本发明实施例提供了一种图像处理装置,所述图像处理装置包括颜色采集单元、补偿参数确定单元和虹膜采集单元,其中,In a fourth aspect, an embodiment of the present invention provides an image processing device, comprising a color acquisition unit, a compensation parameter determination unit, and an iris acquisition unit, wherein:
所述颜色采集单元,用于采集目标物体的颜色信息;The color acquisition unit is used to acquire color information of the target object;
所述补偿参数确定单元,用于从预先存储的多个补偿参数中确定与所述颜色信息对应的目标补偿参数;The compensation parameter determination unit is configured to determine a target compensation parameter corresponding to the color information from a plurality of pre-stored compensation parameters;
所述虹膜采集单元,用于在虹膜采集时,基于所述目标补偿参数对所述虹膜进行补偿以得到彩色虹膜图像。The iris acquisition unit is configured to compensate the iris based on the target compensation parameter to obtain a color iris image during iris acquisition.
第五方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储的计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program enables a computer to execute some or all of the steps described in the first aspect of the embodiment of the present invention.
第六方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a sixth aspect, embodiments of the present invention provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps described in the first aspect of the embodiments of the present invention. The computer program product may be a software installation package.
实施本发明实施例,具有如下有益效果:The implementation of the embodiments of the present invention has the following beneficial effects:
可以看出,本发明实施例中,采集目标物体的颜色信息,从预先存储的多个补偿参数中确定与颜色信息对应的目标补偿参数,在虹膜采集时,基于目标补偿参数对虹膜进行补偿以得到彩色虹膜图像,可见,可通过目标物体的颜色信息,获取对应的补偿参数,进而,根据该补偿参数进行虹膜采集,最后可得到彩色虹膜图像,展示效果更佳。It can be seen that in the embodiment of the present invention, the color information of the target object is collected, and the target compensation parameters corresponding to the color information are determined from multiple pre-stored compensation parameters. When the iris is collected, the iris is compensated based on the target compensation parameters to obtain a color iris image. It can be seen that the corresponding compensation parameters can be obtained through the color information of the target object, and then, the iris is collected according to the compensation parameters, and finally a color iris image can be obtained, which has a better display effect.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
图1A是本发明实施例提供的一种智能手机的结构示意图;FIG1A is a schematic structural diagram of a smart phone provided by an embodiment of the present invention;
图1B是本发明实施例提供的一种移动终端的结构示意图;FIG1B is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;
图1C是本发明实施例提供的另一种移动终端的结构示意图;FIG1C is a schematic structural diagram of another mobile terminal provided by an embodiment of the present invention;
图2是本发明实施例公开的一种图像处理方法的流程示意图;FIG2 is a schematic flow chart of an image processing method disclosed in an embodiment of the present invention;
图3是本发明实施例公开的另一种图像处理方法的流程示意图;FIG3 is a schematic flow chart of another image processing method disclosed in an embodiment of the present invention;
图4是本发明实施例提供的另一种移动终端的结构示意图;FIG4 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present invention;
图5A是本发明实施例公开的一种图像处理装置的结构示意图;FIG5A is a schematic structural diagram of an image processing device disclosed in an embodiment of the present invention;
图5B是本发明实施例公开的图5A所描述的图像处理装置的补偿参数确定单元的结构示意图;FIG5B is a schematic structural diagram of a compensation parameter determination unit of the image processing apparatus described in FIG5A according to an embodiment of the present invention;
图5C是本发明实施例公开的图5A所描述的图像处理装置的虹膜采集单元的结构示意图;FIG5C is a schematic structural diagram of an iris acquisition unit of the image processing device described in FIG5A according to an embodiment of the present invention;
图5D是本发明实施例公开的图5C所描述的虹膜采集单元的第一图像融合模块的结构示意图;FIG5D is a schematic diagram of the structure of the first image fusion module of the iris acquisition unit described in FIG5C according to an embodiment of the present invention;
图5E是本发明实施例公开的图5A所描述的图像处理装置的又一结构示意图;FIG5E is another schematic structural diagram of the image processing device described in FIG5A according to an embodiment of the present invention;
图6是本发明实施例公开的另一种移动终端的结构示意图。FIG6 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first," "second," and so on, in the description and claims of the present invention and the accompanying drawings are used to distinguish between different objects, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本发明实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station, MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为移动终端。下面对本发明实施例进行详细介绍。如图1A所示的一种示例智能手机100,该智能手机100的虹膜识别装置可以包括红外补光灯21、红外摄像头22 和前置摄像头23,在虹膜识别装置工作过程中,红外补光灯21的光线打到虹膜上之后,经过虹膜反射回红外摄像头22,虹膜识别装置采集红外虹膜图像,前置摄像头23可用于采集可见光图像,进而,将虹膜图像与可见光图像进行图像融合,得到最终的虹膜图像,该虹膜图像可展示给用户。The mobile terminals involved in the embodiments of the present invention may include various handheld devices with wireless communication capabilities, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile stations (MS), terminal devices, etc. For ease of description, the above-mentioned devices are collectively referred to as mobile terminals. The embodiments of the present invention are described in detail below. As shown in Figure 1A, an example smartphone 100 has an iris recognition device that may include an infrared fill light 21, an infrared camera 22, and a front camera 23. During operation of the iris recognition device, light from the infrared fill light 21 hits the iris and is reflected back to the infrared camera 22 by the iris. The iris recognition device captures an infrared iris image, and the front camera 23 can be used to capture a visible light image. The iris image is then fused with the visible light image to obtain a final iris image, which can be displayed to the user.
请参阅图1B,图1B是本发明实施例提供了一种移动终端100的结构示意图,所述移动终端100包括:应用处理器AP110、虹膜识别装置130和存储器 140,其中,虹膜识别装置130可与触控显示屏集成在一起,或者,虹膜识别装置与可独立存在,其中,所述AP110通过总线150连接触控显示屏和虹膜识别装置130以及存储器140,进一步地,请参阅图1C,图1C为图1B所描述的移动终端100的一种变型结构,相对于图1B而言,图1C还包括环境传感器160。Please refer to Figure 1B, which is a structural diagram of a mobile terminal 100 provided in accordance with an embodiment of the present invention. The mobile terminal 100 includes: an application processor AP110, an iris recognition device 130, and a memory 140. The iris recognition device 130 may be integrated with the touch screen, or the iris recognition device 130 may exist independently. The AP110 is connected to the touch screen, the iris recognition device 130, and the memory 140 via a bus 150. Further, please refer to Figure 1C, which is a variant structure of the mobile terminal 100 described in Figure 1B. Compared with Figure 1B, Figure 1C also includes an environmental sensor 160.
在一些可能的实施例中,所述虹膜识别装置130,用于采集目标物体的颜色信息;所述存储器140,用于存储多个补偿参数;In some possible embodiments, the iris recognition device 130 is used to collect color information of the target object; the memory 140 is used to store multiple compensation parameters;
所述AP110,用于从所述多个补偿参数中确定与所述颜色信息对应的目标补偿参数;以及在所述虹膜识别装置130采集虹膜时,基于与所述颜色信息对应的所述目标补偿参数对所述虹膜进行补偿以得到彩色虹膜图像。The AP 110 is configured to determine a target compensation parameter corresponding to the color information from the multiple compensation parameters; and when the iris recognition device 130 captures the iris, compensate the iris based on the target compensation parameter corresponding to the color information to obtain a color iris image.
在一些可能的实施例中,在所述从所述多个补偿参数中确定与所述颜色信息对应的目标补偿参数方面,所述AP110具体用于:In some possible embodiments, in determining the target compensation parameter corresponding to the color information from the multiple compensation parameters, the AP 110 is specifically configured to:
对所述颜色信息进行分析,得到异常颜色信息;确定所述异常颜色信息对应的目标表征颜色;按照预设的表征颜色与补偿参数之间的对应关系从所述多个补偿参数中确定出与所述目标表征颜色对应的目标补偿参数。The color information is analyzed to obtain abnormal color information; a target representation color corresponding to the abnormal color information is determined; and a target compensation parameter corresponding to the target representation color is determined from the multiple compensation parameters according to a preset correspondence between the representation color and the compensation parameter.
在一些可能的实施例中,所述虹膜识别装置130包括可见光摄像头、红外补光灯和红外摄像头;In some possible embodiments, the iris recognition device 130 includes a visible light camera, an infrared fill light, and an infrared camera;
在所述在虹膜采集时,基于所述目标补偿参数对所述虹膜进行补偿以得到彩色虹膜图像方面,所述虹膜识别装置130具体用于:In terms of compensating the iris based on the target compensation parameter to obtain a color iris image during iris acquisition, the iris recognition device 130 is specifically configured to:
通过所述虹膜识别装置130的可见光摄像头根据所述目标补偿参数对所述目标物体进行图像采集,得到可见光图像;通过所述虹膜识别装置130的红外补光灯和红外摄像头对所述目标物体进行图像采集,得到红外图像,指示所述 AP110将所述可见光图像和所述红外图像进行图像融合,得到所述彩色虹膜图像。The visible light camera of the iris recognition device 130 captures an image of the target object according to the target compensation parameters to obtain a visible light image; the infrared fill light and infrared camera of the iris recognition device 130 capture an image of the target object to obtain an infrared image, and instructs the AP110 to fuse the visible light image and the infrared image to obtain the color iris image.
在一些可能的实施例中,在所述将所述可见光图像和所述红外图像进行图像融合,得到所述彩色虹膜图像方面,所述AP110具体用于:In some possible embodiments, in fusing the visible light image and the infrared image to obtain the color iris image, the AP 110 is specifically configured to:
对所述可见光图像进行图像分割,得到可见光虹膜图像;对所述红外图像进行图像分割,得到红外虹膜图像;将所述可见光虹膜图像与所述红外虹膜图像进行空间变换,以使变换后的所述可见光虹膜图像与所述红外虹膜图像的尺寸大小、角度一致;将变换后的所述可见光虹膜图像与所述红外虹膜图像进行图像融合,得到所述彩色虹膜图像。Performing image segmentation on the visible light image to obtain a visible light iris image; performing image segmentation on the infrared image to obtain an infrared iris image; performing spatial transformation on the visible light iris image and the infrared iris image so that the transformed visible light iris image and the infrared iris image are consistent in size and angle; and performing image fusion on the transformed visible light iris image and the infrared iris image to obtain the color iris image.
在一些可能的实施例中,所述移动终端还设置有环境传感器160;In some possible embodiments, the mobile terminal is further provided with an environmental sensor 160;
所述环境传感器160,用于获取环境参数;The environmental sensor 160 is used to obtain environmental parameters;
在所述在虹膜采集时,基于所述目标补偿参数对所述虹膜进行补偿以得到彩色虹膜图像方面,所述虹膜识别装置130具体用于:In terms of compensating the iris based on the target compensation parameter to obtain a color iris image during iris acquisition, the iris recognition device 130 is specifically configured to:
在虹膜采集时,基于所述目标补偿参数以及所述环境参数所述虹膜进行补偿以得到彩色虹膜图像。During iris acquisition, the iris is compensated based on the target compensation parameter and the environmental parameter to obtain a color iris image.
请参阅图2,图2是本发明实施例提供了一种图像处理方法的流程示意图,应用于包括虹膜识别装置、存储器、和应用处理器AP的移动终端,移动终端实物图与结构图可参考图1A-图1C,本图像处理方法包括:Please refer to FIG. 2 , which is a flow chart of an image processing method according to an embodiment of the present invention. The method is applied to a mobile terminal including an iris recognition device, a memory, and an application processor AP. For a physical diagram and a structural diagram of the mobile terminal, refer to FIG. 1A to FIG. 1C . The image processing method includes:
201、采集目标物体的颜色信息。201. Collect color information of the target object.
其中,目标物体可为人脸或者虹膜,或者,包含虹膜的物体。可通过虹膜识别装置采集目标物体的颜色信息,由上述虹膜识别装置还包括可见光摄像头,利用该可见光摄像头获取目标物体对应的彩色图像,进而,从该彩色图像中提取出颜色信息。The target object may be a human face or iris, or an object containing an iris. The color information of the target object may be collected by an iris recognition device, which may also include a visible light camera. The visible light camera is used to obtain a color image corresponding to the target object, and the color information is then extracted from the color image.
202、从预先存储的多个补偿参数中确定与所述颜色信息对应的目标补偿参数。202. Determine a target compensation parameter corresponding to the color information from a plurality of pre-stored compensation parameters.
其中,移动终端的存储器中可预先存储多个补偿参数,该补偿参数可包括但不仅限于:虹膜采集电流、虹膜采集电压、虹膜采集功率、颜色矫正系数等等,其中,虹膜采集电流即采集虹膜时候的采集电流,虹膜采集电压为采集虹膜时候的采集电压,虹膜采集功率为采集虹膜时候的采集功率,颜色矫正系数是针对采集到的虹膜图像而言,提取虹膜图像的颜色,进而,根据该颜色矫正系数对该颜色进行偏色矫正,通常情况下,颜色也会出现失真,因而,需要对失真的颜色进行还原,以使得处理过后的颜色更加自然,或者,逼真。因而,可预先设置颜色信息与补偿参数之间的映射关系,进而,可从预先存储的多个补偿参数中确定与上述步骤201中得到的颜色信息对应的目标补偿参数。The mobile terminal's memory may pre-store multiple compensation parameters. These compensation parameters may include, but are not limited to, iris acquisition current, iris acquisition voltage, iris acquisition power, and color correction coefficients. The iris acquisition current refers to the current used when acquiring the iris, the iris acquisition voltage refers to the voltage used when acquiring the iris, and the iris acquisition power refers to the power used when acquiring the iris. The color correction coefficient is used to extract the color of the acquired iris image and then perform color cast correction on the color based on the color correction coefficient. Typically, color distortion occurs, and therefore, the distorted color needs to be restored to make the processed color more natural or realistic. Therefore, a mapping relationship between color information and compensation parameters may be pre-set, and a target compensation parameter corresponding to the color information obtained in step 201 may be determined from the pre-stored multiple compensation parameters.
在一个可能的示例中,上述步骤202中,从预先存储的多个补偿参数中确定与所述颜色信息对应的目标补偿参数,可包括如下步骤:In a possible example, in step 202, determining a target compensation parameter corresponding to the color information from a plurality of pre-stored compensation parameters may include the following steps:
221、对所述颜色信息进行分析,得到异常颜色信息;221. Analyze the color information to obtain abnormal color information;
222、确定所述异常颜色信息对应的目标表征颜色;222. Determine the target representation color corresponding to the abnormal color information;
223、按照预设的表征颜色与补偿参数之间的对应关系从所述多个补偿参数中确定出与所述目标表征颜色对应的目标补偿参数。223. Determine a target compensation parameter corresponding to the target representative color from the multiple compensation parameters according to a preset correspondence between representative colors and compensation parameters.
其中,颜色信息为整个场景的颜色信息,结合生活经验可知,往往一个场景中只会出现部分区域颜色失真,因而,可得到这部分的颜色信息,即异常颜色信息,通过这些异常颜色信息可分析出其偏向于哪种颜色,或者,真实场景的颜色到底是那种,进而,得到目标表征颜色,目标表征颜色可理解为真实场景的颜色信息。移动终端的存储器中可预先存储表征颜色与补偿参数之间的对应关系,进而,可根据该对应关系确定目标表征颜色对应的目标补偿参数,该目标补偿参数为预先存储的多个补偿参数中的一个。The color information refers to the color information of the entire scene. Based on real-life experience, it is known that color distortion often occurs only in certain areas of a scene. Therefore, the color information of this area, i.e., abnormal color information, can be obtained. This abnormal color information can be used to analyze the color bias of the scene, or the actual color of the scene, and then the target representative color can be obtained. The target representative color can be understood as the color information of the actual scene. The mobile terminal's memory can pre-store a correspondence between representative colors and compensation parameters. Based on this correspondence, a target compensation parameter corresponding to the target representative color can be determined. The target compensation parameter is one of multiple pre-stored compensation parameters.
203、在虹膜采集时,基于所述目标补偿参数以及所述环境参数所述虹膜进行补偿以得到彩色虹膜图像。203. When collecting the iris, compensate the iris based on the target compensation parameter and the environmental parameter to obtain a color iris image.
其中,不同的补偿参数,得到的虹膜图像的颜色不一样,因而,可根据目标补偿参数对目标物体进行虹膜采集,得到最终的虹膜图像,该虹膜图像为彩色图像。Different compensation parameters will result in different colors of the iris image. Therefore, the iris of the target object can be captured according to the target compensation parameters to obtain a final iris image, which is a color image.
在一个可能的示例中,所述虹膜识别装置包括可见光摄像头、红外补光灯和红外摄像头;上述步骤203中,在虹膜采集时,基于所述目标补偿参数以及所述环境参数所述虹膜进行补偿以得到彩色虹膜图像,可包括如下步骤:In one possible example, the iris recognition device includes a visible light camera, an infrared fill light, and an infrared camera. In step 203, when collecting the iris, compensating the iris based on the target compensation parameter and the environmental parameter to obtain a color iris image may include the following steps:
31、通过可见光摄像头根据所述目标补偿参数对所述目标物体进行图像采集,得到可见光图像;31. Capturing an image of the target object according to the target compensation parameter using a visible light camera to obtain a visible light image;
32、通过所述虹膜识别装置的红外补光灯和红外摄像头对所述目标物体进行图像采集,得到红外图像;32. Capture an image of the target object using the infrared fill light and infrared camera of the iris recognition device to obtain an infrared image;
33、将所述可见光图像和所述红外图像进行图像融合,得到所述彩色虹膜图像。33. Perform image fusion on the visible light image and the infrared image to obtain the color iris image.
其中,参见图1A-图1C,本发明实施例中的虹膜识别装置可由可见光摄像头、红外补光灯和红外摄像头构成。上述步骤31与步骤32可并行执行,或者,先执行步骤31,再执行步骤32,或者,先执行步骤32,再执行步骤31。可控制可见光摄像头根据目标补偿参数对所述目标物体进行图像采集,得到可见光图像,可控制虹膜识别装置的红外补光灯和红外摄像头对目标物体进行图像采集,得到红外图像,对可见光图像和红外图像进行图像融合,得到彩色虹膜图像。1A-1C , the iris recognition device in an embodiment of the present invention may be comprised of a visible light camera, an infrared fill light, and an infrared camera. Steps 31 and 32 may be performed in parallel, or step 31 may be performed first and then step 32, or step 32 may be performed first and then step 31. The visible light camera may be controlled to capture an image of the target object based on the target compensation parameters to obtain a visible light image. The infrared fill light and infrared camera of the iris recognition device may be controlled to capture an image of the target object to obtain an infrared image. The visible light image and infrared image are then fused to obtain a color iris image.
可选地,上述步骤33中,将所述可见光图像和所述红外图像进行图像融合,得到所述彩色虹膜图像,可包括如下步骤:Optionally, in step 33, fusing the visible light image and the infrared image to obtain the color iris image may include the following steps:
A1、对所述可见光图像进行图像分割,得到可见光虹膜图像;A1. performing image segmentation on the visible light image to obtain a visible light iris image;
A2、对所述红外图像进行图像分割,得到红外虹膜图像;A2. performing image segmentation on the infrared image to obtain an infrared iris image;
A3、将所述可见光虹膜图像与所述红外虹膜图像进行空间变换,以使变换后的所述可见光虹膜图像与所述红外虹膜图像的尺寸大小、角度一致;A3. spatially transforming the visible light iris image and the infrared iris image so that the transformed visible light iris image and the infrared iris image have the same size and angle;
A4、将变换后的所述可见光虹膜图像与所述红外虹膜图像进行图像融合,得到所述彩色虹膜图像。A4. Fusing the transformed visible light iris image with the infrared iris image to obtain the color iris image.
其中,上述图像分割可采用如下方式中的一种:灰度阈值分割法、最大类间方差法、图像灰度直方图的峰谷法、最小误差法、最大熵自动阈值法、图论分割方法等等。上述空间变换可为仿射变换、刚性变换或者非刚性变换等等。可对可见光图像进行图像分割,得到可见光虹膜图像,对红外图像进行图像分割,得到红外虹膜图像,将可见光虹膜图像与红外虹膜图像进行空间变换,以使变换后的可见光虹膜图像与红外虹膜图像的尺寸大小、角度一致,便于后续图像融合,将变换后的可见光虹膜图像与红外虹膜图像进行图像融合,得到彩色虹膜图像。如此,可得到最终的虹膜图像。The image segmentation method can be one of the following: grayscale threshold segmentation, maximum inter-class variance method, peak-valley method of image grayscale histogram, minimum error method, maximum entropy automatic threshold method, graph theory segmentation method, etc. The spatial transformation can be an affine transformation, a rigid transformation, or a non-rigid transformation. The visible light image can be segmented to obtain a visible light iris image, and the infrared image can be segmented to obtain an infrared iris image. The visible light iris image and the infrared iris image can then be spatially transformed to ensure that the transformed visible light iris image and the infrared iris image are consistent in size and angle, facilitating subsequent image fusion. The transformed visible light iris image and the infrared iris image are then fused to obtain a color iris image. In this way, the final iris image can be obtained.
可选地,上述步骤33中,将所述可见光图像和所述红外图像进行图像融合,得到所述彩色虹膜图像,可包括如下步骤:Optionally, in step 33, fusing the visible light image and the infrared image to obtain the color iris image may include the following steps:
B1、对所述可见光图像进行多尺度变换,得到第一低频分量和第一高频分量集;B1. performing a multi-scale transformation on the visible light image to obtain a first low-frequency component and a first high-frequency component set;
B2、对所述红外图像进行多尺度分解,得到第二低频分量和第二高频分量集;B2. performing multi-scale decomposition on the infrared image to obtain a second low-frequency component and a second high-frequency component set;
B3、将所述第一低频分量与所述第二低频分量进行加权运算,得到目标低频分量;B3. performing a weighted operation on the first low-frequency component and the second low-frequency component to obtain a target low-frequency component;
B4、将所述第一高频分量集与所述第二高频分量集按照邻域能量取大原则进行合成,得到目标高频分量集;B4. synthesizing the first high-frequency component set and the second high-frequency component set according to the principle of taking the larger neighborhood energy to obtain a target high-frequency component set;
B5、将所述目标低频分量和所述目标高频分量集进行多尺度反变换,得到所述彩色虹膜图像。B5. Perform multi-scale inverse transformation on the target low-frequency component and the target high-frequency component set to obtain the color iris image.
其中,可采用多尺度分解算法对可见光图像进行多尺度变换,得到第一低频分量和第一高频分量集,上述第一高频分量集可包含多个高频分量,上述多尺度分解算法可包括但不仅限于:小波变换、拉普拉斯变换、轮廓波变换 (Contourlet Transform,CT)、非下采样轮廓波变换(Non-subsampled Contourlet Transform,NSCT)、剪切波变换等等,以轮廓波为例,采用轮廓波变换对可见光图像进行多尺度分解,可以得到一个低频分量和多个高频分量,并且该多个高频分量中每一高频分量的尺寸大小不一,以NSCT为例,采用NSCT对可见光图像进行多尺度分解,可以得到一个低频分量和多个高频分量,并且该多个高频分量中每一分量的尺寸大小一样。对于高频分量而言,其包含了较多原始图像的细节信息。同理,可采用多尺度分解算法对红外图像进行多尺度分解,得到第二低频分量和第二高频分量集。上述邻域可为指定尺寸大小的邻域,例如,3*3,5*5,7*7,11*11等等。基于邻域考虑可充分考虑周围像素点之间的关联性,从而,可以保留更多的细节信息,在高频分量合成过程中,对应位置上的像素点均采用该邻域能量取大原则进行合成,上述第一高频分量图像与上述第二高频分量之间的位置相对应,即其两者之间的层次位置与尺度位置相同,例如,第一高频分量图像位于第2层,第3尺度,则第二高频分量图像也位于第2 层,第3尺度,例如,在A位置,红外图像的高频分量对应的能量为10,可见光的高频分量对应的能量为11,则在A位置上选取可见光的高频分量对应的高频系数。具体地,上述B1与B2可并行执行,或者,先后执行。可对可见光图像进行多尺度变换,得到第一低频分量和第一高频分量集,对红外图像进行多尺度分解,得到第二低频分量和第二高频分量集,控制AP将第一低频分量与第二低频分量进行加权运算,得到目标低频分量,将第一高频分量集与第二高频分量集按照邻域能量取大原则进行合成,得到目标高频分量集,控制AP将目标低频分量和目标高频分量集进行多尺度反变换,得到彩色虹膜图像,得到的虹膜图像为彩色虹膜图像,可更好地供用户观赏。A multiscale decomposition algorithm can be used to perform a multiscale transform on the visible light image to obtain a first low-frequency component and a first high-frequency component set. The first high-frequency component set may include multiple high-frequency components. The multiscale decomposition algorithm may include, but is not limited to, wavelet transform, Laplace transform, contourlet transform (CT), non-subsampled contourlet transform (NSCT), shearlet transform, and the like. For example, using contourlet transform to perform multiscale decomposition on the visible light image can produce a low-frequency component and multiple high-frequency components, each of which has a different size. For example, using NSCT to perform multiscale decomposition on the visible light image can produce a low-frequency component and multiple high-frequency components, each of which has a uniform size. The high-frequency component contains more detailed information from the original image. Similarly, a multiscale decomposition algorithm can be used to perform multiscale decomposition on the infrared image to obtain a second low-frequency component and a second high-frequency component set. The neighborhood can be of a specified size, such as 3*3, 5*5, 7*7, 11*11, and so on. Neighborhood considerations fully account for the correlation between surrounding pixels, thereby preserving more detailed information. During high-frequency component synthesis, pixels at corresponding positions are synthesized using the principle of maximizing the neighborhood energy. The first high-frequency component image and the second high-frequency component image correspond to each other, meaning their hierarchical and scale positions are the same. For example, if the first high-frequency component image is at the second layer and the third scale, then the second high-frequency component image is also at the second layer and the third scale. For example, at position A, the energy corresponding to the high-frequency component of the infrared image is 10, while the energy corresponding to the high-frequency component of the visible light image is 11. Therefore, the high-frequency coefficient corresponding to the high-frequency component of the visible light image is selected at position A. Specifically, steps B1 and B2 can be executed in parallel or sequentially. The visible light image can be multi-scale transformed to obtain a first low-frequency component and a first high-frequency component set. The infrared image can be multi-scale decomposed to obtain a second low-frequency component and a second high-frequency component set. The AP is controlled to perform a weighted operation on the first low-frequency component and the second low-frequency component to obtain a target low-frequency component. The first high-frequency component set and the second high-frequency component set are synthesized according to the principle of taking the largest neighborhood energy to obtain a target high-frequency component set. The AP is controlled to perform a multi-scale inverse transform on the target low-frequency component and the target high-frequency component set to obtain a color iris image. The obtained iris image is a color iris image, which can be better viewed by users.
可以看出,本发明实施例中,采集目标物体的颜色信息,从预先存储的多个补偿参数中确定与颜色信息对应的目标补偿参数,根据目标补偿参数对目标物体进行虹膜采集,得到彩色虹膜图像,可见,可通过目标物体的颜色信息,获取对应的补偿参数,进而,根据该补偿参数进行虹膜采集,最后可得到彩色虹膜图像,展示效果更佳。It can be seen that in the embodiment of the present invention, the color information of the target object is collected, the target compensation parameters corresponding to the color information are determined from a plurality of pre-stored compensation parameters, and the iris of the target object is collected according to the target compensation parameters to obtain a color iris image. It can be seen that the corresponding compensation parameters can be obtained through the color information of the target object, and then, the iris is collected according to the compensation parameters, and finally a color iris image can be obtained, which has a better display effect.
请参阅图3,图3是本发明实施例提供了一种图像处理方法的流程示意图,应用于包括虹膜识别装置、存储器和应用处理器AP的移动终端,移动终端实物图与结构图可参考图1C,本图像处理方法包括:Please refer to FIG3 , which is a flowchart of an image processing method according to an embodiment of the present invention. The method is applied to a mobile terminal including an iris recognition device, a memory, and an application processor AP. For a physical diagram and a structural diagram of the mobile terminal, refer to FIG1C . The image processing method includes:
301、采集目标物体的颜色信息。301. Collect color information of the target object.
302、通过环境传感器获取环境参数。302. Acquire environmental parameters through environmental sensors.
其中,上述步骤301与步骤302可并行执行,或者,先执行步骤301,然后,再执行步骤302,或者,先执行步骤302,再执行步骤301。The above steps 301 and 302 may be performed in parallel, or step 301 may be performed first and then step 302, or step 302 may be performed first and then step 301.
可选地,上述环境传感器可为环境光传感器,其用于检测环境亮度,或者,环境传感器可为磁场传感器,用于检测磁场强度,环境传感器可湿度传感器,用于检测环境湿度,或者,环境传感器可为温度传感器,其用于检测环境温度,其中,可预先设置环境参数与虹膜采集参数之间的映射关系,在确定了当前环境参数之后,根据该映射关系可确定当前环境参数对应的虹膜采集参数。上述虹膜采集参数可包括但不仅限于:采集电流、采集电压等等。Optionally, the environmental sensor may be an ambient light sensor for detecting ambient brightness, or a magnetic field sensor for detecting magnetic field strength, or a humidity sensor for detecting ambient humidity, or a temperature sensor for detecting ambient temperature. A mapping relationship between environmental parameters and iris acquisition parameters may be pre-set. After determining the current environmental parameters, the iris acquisition parameters corresponding to the current environmental parameters may be determined based on the mapping relationship. The iris acquisition parameters may include, but are not limited to, acquisition current, acquisition voltage, and the like.
303、从预先存储的多个补偿参数中确定与所述颜色信息对应的目标补偿参数。303. Determine a target compensation parameter corresponding to the color information from a plurality of pre-stored compensation parameters.
304、在虹膜采集时,基于所述目标补偿参数以及所述环境参数所述虹膜进行补偿以得到彩色虹膜图像。304. When collecting the iris, compensate the iris based on the target compensation parameter and the environmental parameter to obtain a color iris image.
其中,可预先设置目标补偿参数、环境参数与虹膜采集参数之间的映射关系,根据该映射关系可确定了步骤303中的目标补偿参数、步骤302中的环境参数对应的虹膜采集参数,进而,根据该虹膜采集参数进行虹膜采集,得到彩色虹膜图像。上述虹膜采集参数可包括但不仅限于:采集电流、采集电压等等。A mapping relationship between target compensation parameters, environmental parameters, and iris acquisition parameters can be pre-set. Based on this mapping relationship, the iris acquisition parameters corresponding to the target compensation parameters in step 303 and the environmental parameters in step 302 can be determined. Iris acquisition is then performed based on these iris acquisition parameters to obtain a color iris image. The iris acquisition parameters may include, but are not limited to, acquisition current, acquisition voltage, and the like.
可以看出,本发明实施例中,采集目标物体的颜色信息,从预先存储的多个补偿参数中确定与颜色信息对应的目标补偿参数,根据目标补偿参数以及环境参数对目标物体进行虹膜采集,得到彩色虹膜图像,可见,可通过目标物体的颜色信息,获取对应的补偿参数,进而,根据该补偿参数进行虹膜采集,最后可得到彩色虹膜图像,展示效果更佳。It can be seen that in the embodiment of the present invention, the color information of the target object is collected, the target compensation parameters corresponding to the color information are determined from a plurality of pre-stored compensation parameters, and the iris of the target object is collected according to the target compensation parameters and the environmental parameters to obtain a color iris image. It can be seen that the corresponding compensation parameters can be obtained through the color information of the target object, and then, the iris is collected according to the compensation parameters, and finally a color iris image can be obtained, which has a better display effect.
请参阅图4,图4是本发明实施例提供的一种移动终端,主要包括:应用处理器AP和存储器,还可以包括虹膜识别装置;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述AP执行,所述程序包括用于执行以下步骤的指令:Please refer to FIG. 4 , which shows a mobile terminal provided by an embodiment of the present invention. The mobile terminal mainly includes: an application processor (AP) and a memory, and may also include an iris recognition device; and one or more programs stored in the memory and configured to be executed by the AP. The programs include instructions for performing the following steps:
采集目标物体的颜色信息;Collect color information of the target object;
从预先存储的多个补偿参数中确定与所述颜色信息对应的目标补偿参数;determining a target compensation parameter corresponding to the color information from a plurality of pre-stored compensation parameters;
在虹膜采集时,基于所述目标补偿参数以及所述环境参数所述虹膜进行补偿以得到彩色虹膜图像。During iris acquisition, the iris is compensated based on the target compensation parameter and the environmental parameter to obtain a color iris image.
在一个可能的示例中,在所述从预先存储的多个补偿参数中确定与所述颜色信息对应的目标补偿参数方面,所述程序包括用于执行以下步骤的指令:In one possible example, in determining the target compensation parameter corresponding to the color information from a plurality of pre-stored compensation parameters, the program includes instructions for executing the following steps:
对所述颜色信息进行分析,得到异常颜色信息;Analyzing the color information to obtain abnormal color information;
确定所述异常颜色信息对应的目标表征颜色;Determining a target representative color corresponding to the abnormal color information;
按照预设的表征颜色与补偿参数之间的对应关系从所述多个补偿参数中确定出与所述目标表征颜色对应的目标补偿参数。A target compensation parameter corresponding to the target representative color is determined from the plurality of compensation parameters according to a preset correspondence relationship between the representative color and the compensation parameter.
在一个可能的示例中,所述虹膜识别装置包括可见光摄像头、红外补光灯和红外摄像头;在所述在虹膜采集时,基于所述目标补偿参数对所述虹膜进行补偿以得到彩色虹膜图像方面,所述程序包括用于执行以下步骤的指令:In one possible example, the iris recognition device includes a visible light camera, an infrared fill light, and an infrared camera; in the aspect of compensating the iris based on the target compensation parameter to obtain a color iris image during iris acquisition, the program includes instructions for executing the following steps:
通过可见光摄像头根据所述目标补偿参数对所述目标物体进行图像采集,得到可见光图像;Capturing an image of the target object using a visible light camera according to the target compensation parameter to obtain a visible light image;
通过红外补光灯和红外摄像头对所述目标物体进行图像采集,得到红外图像;Capturing the target object through an infrared fill light and an infrared camera to obtain an infrared image;
将所述可见光图像和所述红外图像进行图像融合,得到所述彩色虹膜图像。The visible light image and the infrared image are fused to obtain the color iris image.
在一个可能的示例中,在所述将所述可见光图像和所述红外图像进行图像融合,得到所述彩色虹膜图像方面,所述程序包括用于执行以下步骤的指令:In one possible example, in the aspect of fusing the visible light image and the infrared image to obtain the color iris image, the program includes instructions for executing the following steps:
对所述可见光图像进行图像分割,得到可见光虹膜图像;performing image segmentation on the visible light image to obtain a visible light iris image;
对所述红外图像进行图像分割,得到红外虹膜图像;performing image segmentation on the infrared image to obtain an infrared iris image;
将所述可见光虹膜图像与所述红外虹膜图像进行空间变换,以使变换后的所述可见光虹膜图像与所述红外虹膜图像的尺寸大小、角度一致;Performing spatial transformation on the visible light iris image and the infrared iris image so that the transformed visible light iris image and the infrared iris image have the same size and angle;
将变换后的所述可见光虹膜图像与所述红外虹膜图像进行图像融合,得到所述彩色虹膜图像。The transformed visible light iris image and the infrared iris image are fused to obtain the color iris image.
在一个可能的示例中,所述移动终端还设置有环境传感器;所述程序还包括用于执行以下步骤的指令:In a possible example, the mobile terminal is further provided with an environmental sensor; and the program further includes instructions for executing the following steps:
通过所述环境传感器获取环境参数;Acquiring environmental parameters through the environmental sensor;
在所述在虹膜采集时,基于所述目标补偿参数对所述虹膜进行补偿以得到彩色虹膜图像方面,所述程序包括用于执行以下步骤的指令:In the aspect of compensating the iris based on the target compensation parameter to obtain a color iris image during iris acquisition, the program includes instructions for executing the following steps:
在虹膜采集时,基于所述目标补偿参数以及所述环境参数所述虹膜进行补偿以得到彩色虹膜图像。During iris acquisition, the iris is compensated based on the target compensation parameter and the environmental parameter to obtain a color iris image.
请参阅图5A,图5A是本实施例提供的一种图像处理装置的结构示意图。该图像处理装置应用于移动终端,图像处理装置包括颜色采集单元501、补偿参数确定单元502和虹膜采集单元503,其中,Please refer to FIG5A, which is a schematic diagram of the structure of an image processing device provided by this embodiment. The image processing device is applied to a mobile terminal and includes a color acquisition unit 501, a compensation parameter determination unit 502, and an iris acquisition unit 503, wherein:
所述颜色采集单元501,用于采集目标物体的颜色信息;The color acquisition unit 501 is used to acquire color information of the target object;
所述补偿参数确定单元502,用于从预先存储的多个补偿参数中确定与所述颜色信息对应的目标补偿参数;The compensation parameter determination unit 502 is configured to determine a target compensation parameter corresponding to the color information from a plurality of pre-stored compensation parameters;
所述虹膜采集单元503,用于在虹膜采集时,基于所述目标补偿参数以及所述环境参数所述虹膜进行补偿以得到彩色虹膜图像。The iris acquisition unit 503 is configured to compensate the iris based on the target compensation parameter and the environmental parameter to obtain a color iris image during iris acquisition.
可选地,如图5B,图5B为图5A所描述的图像处理装置的补偿参数确定单元502的具体细化结构,所述补偿参数确定单元502可包括分析模块5021和确定模块5022,具体如下:Optionally, as shown in FIG5B , FIG5B is a detailed structure of the compensation parameter determination unit 502 of the image processing apparatus described in FIG5A . The compensation parameter determination unit 502 may include an analysis module 5021 and a determination module 5022 , as follows:
分析模块5021,用于对所述颜色信息进行分析,得到异常颜色信息;An analysis module 5021 is configured to analyze the color information to obtain abnormal color information;
确定模块5022,用于确定所述异常颜色信息对应的目标表征颜色;A determination module 5022 is configured to determine a target representative color corresponding to the abnormal color information;
所述确定模块5022,还用于按照预设的表征颜色与补偿参数之间的对应关系从所述多个补偿参数中确定出与所述目标表征颜色对应的目标补偿参数。The determining module 5022 is further configured to determine a target compensation parameter corresponding to the target representative color from the plurality of compensation parameters according to a preset correspondence between representative colors and compensation parameters.
可选地,如图5C,图5C为图5A所描述的图像处理装置的虹膜采集单元 503的具体细化结构,所述虹膜识别装置包括可见光摄像头、红外补光灯和红外摄像头;所述虹膜采集单元503可包括:可见光图像采集模块5031、红外图像采集模块5032和第一图像融合模块5033,具体如下:Optionally, as shown in FIG5C , FIG5C is a detailed structure of the iris acquisition unit 503 of the image processing device described in FIG5A . The iris recognition device includes a visible light camera, an infrared fill light, and an infrared camera. The iris acquisition unit 503 may include: a visible light image acquisition module 5031, an infrared image acquisition module 5032, and a first image fusion module 5033, as follows:
可见光图像采集模块5031,用于通过可见光摄像头根据所述目标补偿参数对所述目标物体进行图像采集,得到可见光图像;A visible light image acquisition module 5031 is configured to acquire an image of the target object using a visible light camera according to the target compensation parameter to obtain a visible light image;
红外图像采集模块5032,用于通过红外补光灯和红外摄像头对所述目标物体进行图像采集,得到红外图像;The infrared image acquisition module 5032 is used to acquire an image of the target object through an infrared fill light and an infrared camera to obtain an infrared image;
第一图像融合模块5033,用于将所述可见光图像和所述红外图像进行图像融合,得到所述彩色虹膜图像。The first image fusion module 5033 is configured to fuse the visible light image and the infrared image to obtain the color iris image.
可选地,如图5D,图5D为图5C中所描述的第一图像融合模块5033的具体细化结构,所述第一图像融合模块5033可包括:图像分割模块601、空间变换模块602和第二图像融合模块603,具体如下:Optionally, as shown in FIG5D , FIG5D is a detailed structure of the first image fusion module 5033 described in FIG5C . The first image fusion module 5033 may include: an image segmentation module 601 , a spatial transformation module 602 , and a second image fusion module 603 , specifically as follows:
图像分割模块601,用于对所述可见光图像进行图像分割,得到可见光虹膜图像;An image segmentation module 601 is configured to segment the visible light image to obtain a visible light iris image;
所述图像分割模块601,还用于:对所述红外图像进行图像分割,得到红外虹膜图像;The image segmentation module 601 is further configured to: perform image segmentation on the infrared image to obtain an infrared iris image;
空间变换模块602,用于将所述可见光虹膜图像与所述红外虹膜图像进行空间变换,以使变换后的所述可见光虹膜图像与所述红外虹膜图像的尺寸大小、角度一致;A spatial transformation module 602 is configured to perform spatial transformation on the visible light iris image and the infrared iris image so that the transformed visible light iris image and the infrared iris image have the same size and angle;
第二图像融合模块603,用于将变换后的所述可见光虹膜图像与所述红外虹膜图像进行图像融合,得到所述彩色虹膜图像。The second image fusion module 603 is configured to fuse the transformed visible light iris image with the infrared iris image to obtain the color iris image.
可选地,如图5E,图5E为图5A所描述的图像处理装置的又一变型结构,相较于图5A而言,图5E中所描述的图像处理装置还包括:环境参数获取单元 504,所述移动终端还设置有环境传感器;具体如下:Optionally, as shown in FIG5E , FIG5E is another variant structure of the image processing device described in FIG5A . Compared with FIG5A , the image processing device described in FIG5E further includes: an environmental parameter acquisition unit 504, and the mobile terminal is further provided with an environmental sensor; specifically:
环境参数获取单元504,用于通过所述环境传感器获取环境参数;An environmental parameter acquisition unit 504 is configured to acquire environmental parameters via the environmental sensor;
所述虹膜采集单元503具体用于:在虹膜采集时,基于所述目标补偿参数以及所述环境参数所述虹膜进行补偿以得到彩色虹膜图像。The iris acquisition unit 503 is specifically configured to: during iris acquisition, compensate the iris based on the target compensation parameter and the environmental parameter to obtain a color iris image.
可以看出,本发明实施例中所描述的图像处理装置,采集目标物体的颜色信息,从预先存储的多个补偿参数中确定与颜色信息对应的目标补偿参数,根据目标补偿参数对目标物体进行虹膜采集,得到彩色虹膜图像,可见,可通过目标物体的颜色信息,获取对应的补偿参数,进而,根据该补偿参数进行虹膜采集,最后可得到彩色虹膜图像,可提升虹膜图像的观赏性。It can be seen that the image processing device described in the embodiment of the present invention collects color information of the target object, determines the target compensation parameters corresponding to the color information from multiple pre-stored compensation parameters, and collects the iris of the target object according to the target compensation parameters to obtain a color iris image. It can be seen that the corresponding compensation parameters can be obtained through the color information of the target object, and then, the iris is collected according to the compensation parameters. Finally, a color iris image can be obtained, which can improve the viewing experience of the iris image.
可以理解的是,本实施例的图像处理装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each program module of the image processing device of this embodiment can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment and will not be repeated here.
本发明实施例还提供了另一种移动终端,如图6所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:The present invention also provides another mobile terminal, as shown in FIG6 . For ease of explanation, only the portion relevant to the present invention is shown. For specific technical details not disclosed, please refer to the method section of the present invention. The mobile terminal can be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant), POS (Point of Sales), in-vehicle computer, etc. Taking a mobile phone as an example:
图6示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi) 模块970、应用处理器AP980、以及电源990等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Figure 6 is a block diagram illustrating a portion of the structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention. Referring to Figure 6 , the mobile phone includes components such as a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, an application processor (AP) 980, and a power supply 990. Those skilled in the art will appreciate that the mobile phone structure shown in Figure 6 does not limit the mobile phone, and the mobile phone may include more or fewer components than shown, or may combine certain components or arrange the components differently.
下面结合图6对手机的各个构成部件进行具体的介绍:The following is a detailed introduction to the various components of the mobile phone in conjunction with Figure 6:
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控显示屏933、虹膜识别装置931以及其他输入设备932。输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 930 may include a touch screen 933, an iris recognition device 931, and other input devices 932. The input unit 930 may also include other input devices 932. Specifically, the other input devices 932 may include, but are not limited to, one or more of physical keys, function keys (such as volume control keys, power keys, etc.), trackballs, mice, joysticks, and the like.
其中,所述AP80可用于执行下述步骤:The AP80 may be configured to perform the following steps:
采集目标物体的颜色信息;Collect color information of the target object;
从预先存储的多个补偿参数中确定与所述颜色信息对应的目标补偿参数;determining a target compensation parameter corresponding to the color information from a plurality of pre-stored compensation parameters;
在虹膜采集时,基于所述目标补偿参数对所述虹膜进行补偿以得到彩色虹膜图像。During iris acquisition, the iris is compensated based on the target compensation parameter to obtain a color iris image.
AP980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,AP980可包括一个或多个处理单元;优选的,AP980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到AP980中。The AP980 is the control center of the mobile phone, connecting all parts of the phone using various interfaces and circuits. By running or executing software programs and/or modules stored in memory 920 and accessing data stored in memory 920, it executes various functions of the phone and processes data, thereby providing overall monitoring of the phone. The AP980 may optionally include one or more processing units; preferably, the AP980 integrates an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor does not need to be integrated into the AP980.
此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。In addition, the memory 920 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier, LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务 (General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access, WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 910 can be used to receive and send information. Typically, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 can also communicate with a network and other devices via wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触控显示屏的亮度,接近传感器可在手机移动到耳边时,关闭触控显示屏和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile phone may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the touch screen according to the brightness of the ambient light, and the proximity sensor can turn off the touch screen and/or backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放AP980 处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器 920以便进一步处理。Audio circuit 960, speaker 961, and microphone 962 provide an audio interface between the user and the phone. Audio circuit 960 converts received audio data into electrical signals and transmits them to speaker 961, which then converts them into sound signals for playback. Microphone 962, on the other hand, converts collected sound signals into electrical signals, which are then received by audio circuit 960 and converted into audio data. This audio data is then processed by playback AP 980 and transmitted via RF circuit 910 to, for example, another phone. Alternatively, the audio data can be played to memory 920 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology. A mobile phone uses WiFi module 970 to help users send and receive emails, browse the web, and access streaming media, providing wireless broadband Internet access. Although FIG6 shows WiFi module 970, it is understood that it is not a required component of the mobile phone and can be omitted as needed without changing the essence of the invention.
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与AP980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the AP 980 through a power management system, thereby managing charging, discharging, and power consumption through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
前述图2~图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the embodiments shown in FIG. 2 and FIG. 3 , each step of the method flow can be implemented based on the structure of the mobile phone.
前述图4、图5A-图5E所示的实施例中,各单元功能可以基于该手机的结构实现。In the embodiments shown in FIG. 4 and FIG. 5A to FIG. 5E , the functions of each unit can be implemented based on the structure of the mobile phone.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质用于存储的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种图像处理方法的部分或全部步骤。An embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium is used to store a computer program, which enables a computer to execute part or all of the steps of any image processing method described in the above method embodiments.
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种图像处理方法的部分或全部步骤。An embodiment of the present invention also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute part or all of the steps of any image processing method described in the above method embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the aforementioned method embodiments, for simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that the present invention is not limited by the order of the actions described, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software program modules.
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM, Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software program module 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 invention, 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. The computer software product is stored in a memory and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned memory includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.
Claims (11)
Publications (3)
| Publication Number | Publication Date |
|---|---|
| HK1247010A1 HK1247010A1 (en) | 2018-09-14 |
| HK1247010A HK1247010A (en) | 2018-09-14 |
| HK1247010B true HK1247010B (en) | 2020-04-24 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107403147B (en) | Iris liveness detection method and related products | |
| CN107423699B (en) | Liveness detection methods and related products | |
| CN107480496B (en) | Unlocking control method and related product | |
| CN107292285B (en) | Iris living body detection method and related product | |
| CN108093134B (en) | Anti-interference method for electronic equipment and related products | |
| US11363196B2 (en) | Image selection method and related product | |
| CN107633499B (en) | Image processing method and related product | |
| CN107392832A (en) | Image processing method and related product | |
| WO2019052329A1 (en) | Facial recognition method and related product | |
| CN107679482A (en) | Solve lock control method and Related product | |
| CN107862265A (en) | Image processing method and related product | |
| CN107480488B (en) | Unlocking control method and related product | |
| CN105828068A (en) | Method and device for carrying out occlusion detection on camera and terminal device | |
| CN107633235B (en) | Unlocking control method and related product | |
| CN107451454A (en) | Solve lock control method and Related product | |
| CN107454339B (en) | Image processing method and related products | |
| CN107862266A (en) | Image processing method and related product | |
| CN107392135A (en) | Liveness detection method and related products | |
| CN108108137A (en) | Display control method and related product | |
| CN108121583B (en) | Screen capturing method and related product | |
| CN107566654A (en) | Unlock control method and related products | |
| HK1247010B (en) | Image processing method and related products | |
| CN110611732B (en) | Window control method and related product | |
| HK1247010A1 (en) | Image processing method and related products | |
| HK1247010A (en) | Image processing method and related products |