[go: up one dir, main page]

CN109902586A - Palmprint extraction method, device, storage medium, and server - Google Patents

Palmprint extraction method, device, storage medium, and server Download PDF

Info

Publication number
CN109902586A
CN109902586A CN201910087378.2A CN201910087378A CN109902586A CN 109902586 A CN109902586 A CN 109902586A CN 201910087378 A CN201910087378 A CN 201910087378A CN 109902586 A CN109902586 A CN 109902586A
Authority
CN
China
Prior art keywords
image
pixel
palmprint
corrected
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910087378.2A
Other languages
Chinese (zh)
Inventor
惠慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910087378.2A priority Critical patent/CN109902586A/en
Publication of CN109902586A publication Critical patent/CN109902586A/en
Priority to PCT/CN2019/117915 priority patent/WO2020155764A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Collating Specific Patterns (AREA)
  • Image Analysis (AREA)

Abstract

The present invention relates to bio-identification, palmprint recognition technology field, a kind of palmmprint extracting method provided by the embodiments of the present application, comprising: obtain palm image, palm image is pre-processed, palmprint image to be modified is obtained;The calculating of curvature value is carried out to each feature pixel in palmprint image to be modified, the curvature value based on the feature pixel is modified palmprint image to be modified, obtains amendment image;Binary conversion treatment is carried out to the amendment image, obtains palmprint image.In embodiment provided by the present application, image is pre-processed, easier palmmprint is extracted so that subsequent, even if the palmmprint for obtaining palm more highlights, or remove noise in palm image, the extraction for avoiding influence of noise palmmprint is more clear the display effect of image, improves the subsequent accuracy extracted to palm palmmprint.Curvature value is carried out by pixel each in palmprint image to be modified to screen pixel, further improves the success rate that palmmprint lines extracts.

Description

掌纹提取方法、装置及存储介质、服务器Palmprint extraction method, device, storage medium, and server

技术领域technical field

本发明涉及生物识别、掌纹识别技术领域,具体涉及一种掌纹提取方法、装置及存储介质、服务器。The invention relates to the technical field of biometric identification and palmprint identification, and in particular to a palmprint extraction method, device, storage medium and server.

背景技术Background technique

近年来,工业界、学术界不断致力于提高身份信息的验证效果,以满足门禁控制、航空安全、电子银行等多个不同领域中,对于识别人的身份的严苛需求。基于生物特征识别的方法正吸引着越来越多的关注,掌纹识别便是其中一种极具代表的生物特征识别方法。掌纹识别方法具有区分性高、鲁棒性强、用户友好等诸多优点。掌纹指掌心表面的皮肤纹理手部掌纹由于各种原因分为正常纹和异常纹,而异常纹可能会出现“十”状纹、“井”状纹、“米”状纹等纹路。掌纹特征对于人类个体而言是不变的、永久的、独一无二的。In recent years, the industry and academia have been continuously working on improving the verification effect of identity information to meet the stringent requirements for identifying people's identities in different fields such as access control, aviation security, and electronic banking. Methods based on biometric identification are attracting more and more attention, and palmprint recognition is one of the most representative biometric identification methods. The palmprint recognition method has many advantages, such as high discrimination, strong robustness, and user-friendliness. Palm print refers to the skin texture on the surface of the palm. The palm print of the hand is divided into normal and abnormal lines due to various reasons, and abnormal lines may appear "ten"-shaped lines, "well"-shaped lines, "rice"-shaped lines and other lines. Palm print features are immutable, permanent, and unique to human individuals.

目前提取掌纹的方法有很多,但是效果一般,主要受限于成像因素,受光照条件影响较大,即对光照的抗性较差,还有对掌纹不清晰的人的抗性较差。At present, there are many methods for extracting palm prints, but the effect is general, mainly limited by imaging factors, and is greatly affected by lighting conditions, that is, the resistance to light is poor, and the resistance to people with unclear palm prints is poor. .

发明内容SUMMARY OF THE INVENTION

为克服以上技术问题,特别是掌纹提取过程中,对光照的对抗性差以及对掌纹不清晰的人的抗性较差的问题,特提出以下技术方案:In order to overcome the above technical problems, especially in the process of palmprint extraction, the resistance to light is poor and the resistance to people with unclear palmprints is poor, the following technical solutions are proposed:

本发明实施例提供的一种掌纹提取方法,包括:A palmprint extraction method provided by an embodiment of the present invention includes:

获取手掌图像,对手掌图像进行预处理,获得待修正掌纹图像;Obtain the palm image, preprocess the palm image, and obtain the palm print image to be corrected;

对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像;Calculate the curvature value of each characteristic pixel point in the palmprint image to be corrected, and correct the palmprint image to be corrected based on the curvature value of the characteristic pixel point to obtain a corrected image;

对所述修正图像进行二值化处理,获得掌纹图像。Binarization is performed on the corrected image to obtain a palmprint image.

可选地,所述对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像,包括:Optionally, calculating the curvature value of each feature pixel in the palmprint image to be corrected, and modifying the palmprint image to be corrected based on the curvature value of the feature pixel to obtain a corrected image, include:

根据预设切割方向和预设像素间隔切割所述待修正掌纹图像,得到n条切割线,其中,n为正整数;Cut the palmprint image to be corrected according to the preset cutting direction and the preset pixel interval to obtain n cutting lines, where n is a positive integer;

计算每条所述切割线上各像素点的曲率值,基于该曲率值对所述待修正掌纹图像进行修正,获得修正图像,所述切割线上的各像素点为所述特征像素点。Calculate the curvature value of each pixel point on each of the cutting lines, and correct the palmprint image to be corrected based on the curvature value to obtain a corrected image, and each pixel point on the cutting line is the characteristic pixel point.

可选地,所述基于该曲率值对所述待修正掌纹图像进行修正,获得修正图像,包括:Optionally, the correction of the palmprint image to be corrected based on the curvature value to obtain a corrected image includes:

将所述曲率值大于零的像素点确定为评估像素点,将连续的所述评估像素点所在的区域确定为局部掌纹区域;Determining the pixel point with the curvature value greater than zero as the evaluation pixel point, and determining the area where the continuous evaluation pixel point is located as the local palmprint area;

获取所述局部掌纹区域的宽度,将所述宽度与所述局部掌纹区域内的各所述评估像素点的曲率值乘积,获得所述局部掌纹区域内的各所述评估像素点的评估分数;Obtain the width of the local palmprint area, multiply the width by the curvature value of each of the evaluation pixels in the local palmprint area, and obtain the width of each evaluation pixel in the local palmprint area. assessment score;

依据所述评估分数对所述评估像素点的像素值进行调整,得到每个所述评估像素点的修正像素值,基于所述修正像素值修正所述待修正掌纹图像,获得所述修正图像。Adjust the pixel value of the evaluation pixel point according to the evaluation score, obtain the modified pixel value of each evaluation pixel point, modify the palmprint image to be modified based on the modified pixel value, and obtain the modified image .

可选地,所述获得修正图像之后,还包括:Optionally, after obtaining the corrected image, the method further includes:

对于所述修正图像中的每个像素点,获取该像素点一侧且与该像素点相邻的第一相邻像素点的像素值,以及与该像素点间隔一个像素点的第一间隔像素点的像素值;其中,所述第一间隔像素点与所述第一相邻像素点位于该像素点的同一侧;For each pixel in the corrected image, obtain the pixel value of the first adjacent pixel on one side of the pixel and adjacent to the pixel, and the first interval pixel that is separated from the pixel by one pixel The pixel value of the point; wherein, the first interval pixel point and the first adjacent pixel point are located on the same side of the pixel point;

获取该像素点另一侧且与该像素点相邻的第二相邻像素点的像素值,以及与该像素点间隔一个像素点的第二间隔像素点的像素值,;其中,所述第二间隔像素点与所述第二相邻像素点位于该像素点的同一侧,所述一侧与另一侧相对设置;Obtain the pixel value of the second adjacent pixel point on the other side of the pixel point and adjacent to the pixel point, and the pixel value of the second interval pixel point separated from the pixel point by one pixel point; Two spaced pixels and the second adjacent pixel are located on the same side of the pixel, and the one side is opposite to the other side;

依据所述一侧和另一侧的像素值对该像素点的像素值进行修正。The pixel value of the pixel point is modified according to the pixel value of the one side and the other side.

可选地,所述预设的切割方向包括至少2个方向;所述对所述修正图像进行二值化处理,获得掌纹图像,包括:Optionally, the preset cutting directions include at least 2 directions; and performing binarization processing on the corrected image to obtain a palmprint image includes:

将根据每个所述切割方向得到的所述修正图像作为待合成图像;Taking the corrected image obtained according to each of the cutting directions as the image to be synthesized;

对比同一像素点在各所述待合成图像中的像素值,将该像素点的最大像素值确定为该像素点在合成图像中的合成像素值;Comparing the pixel values of the same pixel in each of the images to be synthesized, the maximum pixel value of the pixel is determined as the synthesized pixel value of the pixel in the synthesized image;

依据每一个像素点的所述合成像素值获得合成图像;obtaining a composite image according to the composite pixel value of each pixel;

对所述合成图像进行二值化处理,得到所述掌纹图像。Binarization processing is performed on the composite image to obtain the palmprint image.

可选地,所述对手掌图像进行预处理,获得待修正掌纹图像,包括:Optionally, the described palm image is preprocessed to obtain the palm print image to be corrected, including:

遍历所述手掌图像中,获取每个像素点的RGB分量值,通过灰度处理规则对所述每个像素点的RGB分量值进行灰度化处理,获得灰度化图像;Traverse the palm image, obtain the RGB component value of each pixel, and perform grayscale processing on the RGB component value of each pixel through a grayscale processing rule to obtain a grayscale image;

反转所述灰度化图像,采用滤波变换处理反转后的所述灰度化图像,获得所述待修正掌纹图像。The grayscaled image is inverted, and the inverted grayscaled image is processed by filtering transformation to obtain the palmprint image to be corrected.

本申请实施例还提供了一种掌纹提取装置,包括:The embodiment of the present application also provides a palmprint extraction device, including:

待修正掌纹图像获取模块,用于获取手掌图像,对手掌图像进行预处理,获得待修正掌纹图像;The palmprint image acquisition module to be corrected is used to acquire the palm image, and preprocess the palm image to obtain the palmprint image to be corrected;

修正图像获得模块,用于对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像;A corrected image obtaining module is used to calculate the curvature value of each characteristic pixel point in the palmprint image to be corrected, and correct the palmprint image to be corrected based on the curvature value of the characteristic pixel point to obtain a corrected image ;

二值化处理模块,用于对所述修正图像进行二值化处理,获得掌纹图像。The binarization processing module is configured to perform binarization processing on the corrected image to obtain a palmprint image.

可选地,所述修正图像获得模块,包括:Optionally, the modified image obtaining module includes:

切割单元,用于根据预设切割方向和预设像素间隔切割所述待修正掌纹图像,得到n条切割线,其中,n为正整数;a cutting unit, configured to cut the palmprint image to be corrected according to a preset cutting direction and a preset pixel interval to obtain n cutting lines, where n is a positive integer;

曲率计算单元,用于计算每条所述切割线上各像素点的曲率值,基于该曲率值对所述待修正掌纹图像进行修正,获得修正图像,所述切割线上的各像素点为所述特征像素点。The curvature calculation unit is used to calculate the curvature value of each pixel point on each of the cutting lines, and based on the curvature value, the palmprint image to be corrected is corrected to obtain a corrected image, and each pixel point on the cutting line is the feature pixels.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现任一技术方案所述的掌纹提取方法。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the program is executed by a processor, the palmprint extraction method described in any one of the technical solutions is implemented.

本发明实施例还提供了一种服务器,包括:The embodiment of the present invention also provides a server, including:

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

存储器;memory;

一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行根据任一技术方案所述的掌纹提取方法的步骤。one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs are configured to execute The steps of the palmprint extraction method according to any technical solution.

本发明与现有技术相比,具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

1、本申请实施例提供的一种掌纹提取方法,包括:获取手掌图像,对手掌图像进行预处理,获得待修正掌纹图像;对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像;对所述修正图像进行二值化处理,获得掌纹图像。在本申请提供的实施例中,对图像进行预处理,使得后续更容易的提取出掌纹,即使得手掌的掌纹更为突出显示,或者去掉手掌图像中的噪声,避免噪声影响掌纹的提取。对灰化图像进行灰度反转处理,得到灰度反转后的手掌图像,从而减少图像原始数据量,提高在后续处理计算中的计算效率;再对灰度化处理后的图像进行灰度反转处理,使图像的显示效果更加清晰,提高后续对手掌掌纹提取的准确性。更进一步地,为了提高掌纹纹路提取的成功率,还需要对待修正掌纹图像中各像素点进行曲率值进行计算,之后则基于各像素点的曲率值对待修正掌纹图像进行修正,获得修正图像。相应的,基于预设方向进行曲率的计算,以便于曲率值计算过程中都具有相应的基准,进而便于基于该基准进行像素点筛选,以获得像素合适的像素点,或者基于部分像素点的曲率值对待修正掌纹图像中的其他像素点的像素进行修正,使得掌纹更加突出,提高掌纹图像了对光照的抗性,以及提高掌纹图像了对掌纹不清晰的人的抗性,获得便于进行手掌纹路的提取修正图像,更进一步提高掌纹纹路提取的成功率。1. A palmprint extraction method provided by an embodiment of the present application includes: acquiring a palm image, preprocessing the palm image to obtain a palmprint image to be corrected; Calculate the rate value, correct the palmprint image to be corrected based on the curvature value of the characteristic pixel point to obtain a corrected image; perform binarization processing on the corrected image to obtain a palmprint image. In the embodiments provided in this application, the image is preprocessed to make it easier to extract the palm prints later, that is, to make the palm prints of the palm more prominently displayed, or to remove the noise in the palm image, so as to avoid the noise affecting the palm prints. extract. Perform grayscale inversion processing on the grayscale image to obtain the palm image after grayscale inversion, thereby reducing the amount of original image data and improving the calculation efficiency in subsequent processing calculations; then grayscale the grayscaled image. Inversion processing makes the display effect of the image clearer and improves the accuracy of subsequent palm print extraction. Furthermore, in order to improve the success rate of palmprint pattern extraction, it is also necessary to calculate the curvature value of each pixel in the palmprint image to be corrected, and then correct the palmprint image to be corrected based on the curvature value of each pixel to obtain a correction. image. Correspondingly, the curvature is calculated based on the preset direction, so that there is a corresponding benchmark in the calculation process of the curvature value, and then it is convenient to screen pixels based on the benchmark to obtain pixels with suitable pixels, or based on the curvature of some pixels. The value is to correct the pixels of other pixels in the palm print image to be corrected to make the palm print more prominent, improve the palm print image's resistance to light, and improve the palm print image's resistance to people with unclear palm prints. Obtaining an image that is convenient for extraction and correction of palm lines, further improving the success rate of palm line extraction.

2、本申请实施例提供的一种掌纹提取方法,所述对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像,包括:根据预设切割方向和预设像素间隔切割所述待修正掌纹图像,得到n条切割线,其中,n为正整数;计算每条所述切割线上各像素点的曲率值,基于该曲率值对所述待修正掌纹图像进行修正,获得修正图像。对待修正掌纹图像切割获得的每条切割线,计算该切割线上每个像素点的曲率值,使用曲率值对像素点是否属于掌纹上的像素点进行判断,进而便于基于曲率值进行如前述像素点的筛选、修正等过程,进而实现对待修正掌纹图像中的其他像素点的像素进行修正,以获得修正图像。2. A palmprint extraction method provided by an embodiment of the present application, wherein the calculation of the curvature value of each characteristic pixel point in the palmprint image to be corrected is performed, and the Correcting the palmprint image for correction to obtain a corrected image includes: cutting the palmprint image to be corrected according to a preset cutting direction and a preset pixel interval to obtain n cutting lines, where n is a positive integer; The curvature value of each pixel point on the cutting line is used to correct the palmprint image to be corrected based on the curvature value to obtain a corrected image. For each cutting line obtained by cutting the palmprint image to be corrected, the curvature value of each pixel on the cutting line is calculated, and the curvature value is used to judge whether the pixel belongs to the pixel point on the palmprint, and then it is convenient to perform the following steps based on the curvature value. The above-mentioned process of selecting and correcting the pixel points further realizes the correction of the pixels of other pixel points in the palmprint image to be corrected, so as to obtain a corrected image.

本发明附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth in part in the following description, which will be apparent from the following description, or may be learned by practice of the present invention.

附图说明Description of drawings

本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:

图1为本发明掌纹提取方法的典型实施例中一种实施方式的流程示意图;1 is a schematic flowchart of an embodiment of a typical embodiment of a palmprint extraction method of the present invention;

图2为本发明掌纹提取方法的典型实施例中待修正掌纹图像的示意图;2 is a schematic diagram of a palmprint image to be corrected in a typical embodiment of the palmprint extraction method of the present invention;

图3为本发明掌纹提取方法的典型实施例中掌纹图像示意图;3 is a schematic diagram of a palmprint image in a typical embodiment of the palmprint extraction method of the present invention;

图4为本发明掌纹提取装置的典型实施例的结构示意图;4 is a schematic structural diagram of a typical embodiment of a palmprint extraction device of the present invention;

图5为本发明服务器的一实施例结构示意图。FIG. 5 is a schematic structural diagram of an embodiment of the server of the present invention.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but not to be construed as a limitation of the present invention.

本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作。It will be understood by those skilled in the art that the singular forms "a", "an", "the" and "the" as used herein can include the plural forms as well, unless expressly stated otherwise. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of the stated features, integers, steps, operations, but does not exclude the presence or addition of one or more other features, integers, steps, operations.

本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in a general dictionary, should be understood to have meanings consistent with their meanings in the context of the prior art and, unless specifically defined as herein, should not be interpreted in idealistic or overly formal meaning to explain.

本领域技术人员应当理解,本发明所称的“应用”、“应用程序”、“应用软件”以及类似表述的概念,是业内技术人员所公知的相同概念,是指由一系列计算机指令及相关数据资源有机构造的适于电子运行的计算机软件。除非特别指定,这种命名本身不受编程语言种类、级别,也不受其赖以运行的操作系统或平台所限制。理所当然地,此类概念也不受任何形式的终端所限制。Those skilled in the art should understand that the concepts of "application", "application program", "application software" and similar expressions in the present invention are the same concepts known to those skilled in the art, and refer to a series of computer instructions and related concepts. Data resources are organically constructed computer software suitable for electronic execution. Unless otherwise specified, the naming itself is not limited by the type or level of programming language, nor by the operating system or platform on which it runs. Of course, such concepts are also not limited by any form of terminal.

本申请实施例提供的掌纹提取应用于包括服务端和客户端的场景,其中,服务端和客户端之间通过网络进行连接,客户端用于对手掌图像进行采集,并且将采集到的手掌图像发送到服务端,客户端具体可以但不限于是摄像机、相机、扫描仪或者带有其他拍照功能的手掌图像采集设备;服务端用于对手掌图像进行手掌纹路提取,服务端具体可以用独立的服务器或者多个服务器组成的服务器集群实现。本申请实施例提供的图像处理方法应用于服务端。The palmprint extraction provided by the embodiments of the present application is applied to a scenario including a server and a client, wherein the server and the client are connected through a network, the client is used to collect palm images, and the collected palm images Sent to the server, the client can be, but not limited to, a camera, camera, scanner or palm image acquisition device with other photographing functions; the server is used to extract the palm pattern from the palm image, and the server can use an independent A server or a server cluster consisting of multiple servers is implemented. The image processing method provided by the embodiment of the present application is applied to the server.

本申请实施例提供的一种掌纹提取方法,在其中一种实施方式中,如图1所示,包括:S100、S200、S300。The palmprint extraction method provided in the embodiment of the present application, in one implementation manner, as shown in FIG. 1 , includes: S100 , S200 , and S300 .

S100:获取手掌图像,对手掌图像进行预处理,获得待修正掌纹图像;S100: Obtain a palm image, preprocess the palm image, and obtain a palm print image to be corrected;

S200:对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像;S200: Calculate the curvature value of each feature pixel in the palmprint image to be corrected, and modify the palmprint image to be corrected based on the curvature value of the feature pixel to obtain a corrected image;

S300:对所述修正图像进行二值化处理,获得掌纹图像。S300: Perform binarization processing on the corrected image to obtain a palmprint image.

本申请提供的实施例中,获取手掌图像,该手掌图像可以是整个手掌的图像,也可以是不包括手指的手掌图像,由于本申请中主要是对掌纹进行提取,可以是对不包括手指部分的手掌中的掌纹进行提取,当然也可以对整个手掌掌纹进行提取。为了提高手掌图像中掌纹纹路的识别率,避免噪音影响掌纹的提取,需要对手掌图像进行预处理,预处理后的图像则为待修正掌纹图像。在本申请提供的实施例中,对图像进行预处理,使得后续更容易的提取出掌纹,即使得手掌的掌纹更为突出显示,或者去掉手掌图像中的噪声,避免噪声影响掌纹的提取。例如:将采集到的彩色掌纹图像灰度化:读取一幅RGB模式(三元素(红、绿、蓝)模式)的手掌图片,使用rgb2gray()将灰度图转化函数将图片模式转化为灰度图;做出图像的灰度直方图,找到灰度直方图两个峰之间的谷底值T作为二值化分割的门限阈值,将灰度图像化为二值图像;使用3*3的正方形中值滤波窗口对图像进行中值滤波;使用边界跟踪算法提取手掌图像的轮廓。将采集到的彩色掌纹图像灰度化。在前述基础上将灰度图像二值化。灰度图像二值化就是将256个灰度等级(灰度值的取值范围是0到255)的灰度图像通过适当的阈值选取,把图像上的像素点的灰度值重新设置为0或255,也就是将整个图像呈现出只有黑白两种颜色的效果。通过imhist()函数做出灰度图像的灰度直方图。灰度直方图的横轴表示的是灰度图像的灰度值范围,是从0到255,纵轴表示的是某个灰度值在图像上出现的次数。由于手掌灰度图像前景单一(只有手掌),背景简单,因此手掌灰度图像的灰度直方图分布均呈现显著的双峰特点。所以选取灰度直方图两个峰之间的谷底中间部分对应的任一横轴值作为二值化分割的门限阈值,把灰度图像上灰度值大于这一门限阈值的的点重置为255(白),小于这一门限阈值的点重置为0(黑),这样就将灰度图像转化为二值图像,即图像背景为黑色,图像前景手掌为白色的图像;平滑图像。由于灰度图像在二值化后所得到二值图像的边界往往是很不平滑的,因此为了得到比较光滑的手掌轮廓线,需要对二值化后的图像作平滑处理,使图像边缘尖锐的“毛刺”变平缓。由于采集的手掌图像内容简单,细节少,故采用简单的中值滤波法,使用3*3的正方形中值滤波窗口,它能够在滤除噪声的同时保持边缘不被模糊。使用轮廓跟踪算法提取二值图像的轮廓,即手掌轮廓。之后将手掌轮廓包围部分的且经过前述处理之后的图像作为待修正掌纹图像(如图2所示)。In the embodiment provided in this application, the palm image is obtained, and the palm image may be the image of the entire palm, or may be the palm image excluding the fingers. The palm prints in part of the palms are extracted, and of course the entire palm prints can also be extracted. In order to improve the recognition rate of palmprints in the palm image and avoid noise affecting the extraction of palmprints, the palm image needs to be preprocessed, and the preprocessed image is the palmprint image to be corrected. In the embodiments provided in this application, the image is preprocessed to make it easier to extract the palm prints later, that is, to make the palm prints of the palm more prominently displayed, or to remove the noise in the palm image, so as to avoid the noise affecting the palm prints. extract. For example: grayscale the collected color palmprint image: read a palm image in RGB mode (three-element (red, green, blue) mode), and use rgb2gray() to convert the grayscale image to the image mode. It is a grayscale image; make a grayscale histogram of the image, find the valley value T between the two peaks of the grayscale histogram as the threshold value of the binarization segmentation, and convert the grayscale image into a binary image; use 3*3 The square median filter window of the image is median filtered; the contour of the palm image is extracted using the boundary tracking algorithm. Grayscale the collected color palmprint images. On the basis of the above, the grayscale image is binarized. The grayscale image binarization is to select a grayscale image with 256 grayscale levels (the value range of grayscale value is 0 to 255) through an appropriate threshold, and reset the grayscale value of the pixel on the image to 0. Or 255, which renders the entire image in black and white. The grayscale histogram of the grayscale image is made by the imhist() function. The horizontal axis of the grayscale histogram represents the grayscale value range of the grayscale image, ranging from 0 to 255, and the vertical axis represents the number of times a certain grayscale value appears on the image. Because the palm grayscale image has a single foreground (only the palm) and a simple background, the grayscale histogram distribution of the palm grayscale image shows a significant bimodal characteristic. Therefore, any horizontal axis value corresponding to the middle part of the valley between the two peaks of the grayscale histogram is selected as the threshold value of the binarization segmentation, and the point on the grayscale image whose grayscale value is greater than the threshold value is reset to 255 (white), the points smaller than this threshold are reset to 0 (black), so that the grayscale image is converted into a binary image, that is, an image with a black background and a white foreground palm; a smooth image. Since the boundary of the binary image obtained after the grayscale image is binarized is often very unsmooth, in order to obtain a smoother palm contour line, the binarized image needs to be smoothed to make the edge of the image sharp. The "glitch" is flattened. Since the collected palm image has simple content and few details, a simple median filtering method is adopted, and a 3*3 square median filtering window is used, which can filter out noise and keep the edges from being blurred. The contour of the binary image, namely the palm contour, is extracted using the contour tracking algorithm. Then, the image surrounded by the contour of the palm and after the above-mentioned processing is used as the palm print image to be corrected (as shown in FIG. 2 ).

结合前述示例的图像预处理过程中,对手掌图像进行预处理的详细过程如下:Combined with the image preprocessing process of the previous example, the detailed process of preprocessing the palm image is as follows:

进一步地,在前述的基础上,对手掌图像中的像素点进行遍历,获取每个像素点的RGB分量值。Further, on the basis of the foregoing, the pixels in the palm image are traversed to obtain the RGB component value of each pixel.

具体地,按照预设的遍历方式对手掌图像中的像素点进行遍历,获取每个像素点的RGB分量值,其中,R、G、B分别代表红、绿、蓝三个通道的颜色。Specifically, the pixels in the palm image are traversed according to a preset traversal method, and the RGB component value of each pixel is obtained, wherein R, G, and B represent the colors of red, green, and blue channels, respectively.

其中,预设的遍历方式具体可以是以手掌图像的左上角像素点为起点,从上往下从左往右的顺序进行逐行遍历,也可以是从手掌图像的中线位置同时向两边遍历,还可以是其他遍历方式,此处不做限制。Wherein, the preset traversal method may specifically take the upper left pixel point of the palm image as the starting point, and perform line-by-line traversal in the order from top to bottom and from left to right, or it may be traversed from the position of the center line of the palm image to both sides at the same time, It can also be other traversal methods, which are not limited here.

进一步地,在前述的基础上,根据像素点的RGB分量值,按照公式(1)对手掌图像作灰度化处理,得到灰化图像:Further, on the basis of the foregoing, according to the RGB component values of the pixel points, the palm image is subjected to grayscale processing according to formula (1) to obtain a grayscale image:

g(x,y)=k1*R(x,y)+k2*G(x,y)+k3*B(x,y) (1)g(x,y)=k 1 *R(x,y)+k 2 *G(x,y)+k 3 *B(x,y) (1)

其中,x和y为手掌图像中每个像素点的横坐标和纵坐标,g(x,y)为像素点(x,y)灰度化处理后的灰度值,R(x,y)为像素点(x,y)的R通道的颜色分量,G(x,y)为像素点(x,y)的G通道的颜色分量,B(x,y)为像素点(x,y)的B通道的颜色分量k1,k2,k3分别为R通道,G通道和B通道对应的占比参数。其中,公式(1)即为前述的灰度化规则。Among them, x and y are the abscissa and ordinate of each pixel in the palm image, g(x,y) is the grayscale value of the pixel (x,y) after grayscale processing, R(x,y) is the color component of the R channel of the pixel point (x, y), G(x, y) is the color component of the G channel of the pixel point (x, y), and B(x, y) is the pixel point (x, y) The color components k 1 , k 2 , and k 3 of the B channel are the ratio parameters corresponding to the R channel, the G channel, and the B channel, respectively. The formula (1) is the aforementioned gray scale rule.

在本发明实施例中,为了实现对手掌图像中信息内容的准确提取,首先需要对手掌图像进行灰度化处理,其中,k1,k2,k3和σ的参数值可以根据实际应用的需要进行设置,此处不做限制,通过调节k1,k2,k3的取值范围可以分别对R通道,G通道和B通道的占比进行调整。In the embodiment of the present invention, in order to achieve accurate extraction of the information content in the palm image, it is first necessary to perform grayscale processing on the palm image, wherein the parameter values of k 1 , k 2 , k 3 and σ can be determined according to the actual application It needs to be set, which is not limited here. By adjusting the value range of k 1 , k 2 , and k 3 , the ratio of R channel, G channel and B channel can be adjusted respectively.

RGB模型是目前常用的一种彩色信息表达方式,它使用红、绿、蓝三原色的亮度来定量表示颜色。该模型也称为加色混色模型,是以RGB三色光互相叠加来实现混色的方法,因而适合于显示器等发光体的显示。The RGB model is a commonly used way of expressing color information. It uses the brightness of the three primary colors of red, green and blue to quantitatively represent the color. This model, also known as the additive color mixing model, is a method in which RGB three-color lights are superimposed on each other to achieve color mixing, so it is suitable for the display of luminous bodies such as monitors.

灰度化是指在RGB模型中,如果R=G=B时,则色彩表示只有一种灰度颜色,其中R=G=B的值叫灰度值,因此,灰度图像每个像素只需一个字节存放灰度值,灰度范围为0-255。Grayscale means that in the RGB model, if R=G=B, the color represents only one grayscale color, and the value of R=G=B is called the grayscale value. Therefore, each pixel of the grayscale image has only one grayscale color. One byte is required to store the grayscale value, and the grayscale range is 0-255.

需要说明的是,在本发明实施例中,通过公式(1)进行加权计算灰度值,在其他实施例中还可以采用分量法、最大值法或者平均值法对图像进行灰度化处理,此处不做限制。It should be noted that, in the embodiment of the present invention, the gray value is weighted by formula (1). There are no restrictions here.

进一步地,在前述的基础上,对灰化图像进行灰度反转处理,得到灰度反转后的手掌图像。Further, on the basis of the foregoing, grayscale inversion processing is performed on the grayed image to obtain a palm image after grayscale inversion.

具体地,在前述过程中,对获取的灰化图像中的每个像素点进行遍历,获取每个像素点的像素值,对灰化图像进行灰度反转处理,将灰化图像中像素点的像素值范围从[0,255]变换为[255,0],即将像素点的像素值从0调整为255,将像素点的像素值从255调整为0,从而使灰化图像中原始的白色像素点变为黑色像素点,原始的黑色像素顶变为白色像素点,经过灰度反转处理后得到灰度反转后的手掌图像,即待修正掌纹图像。Specifically, in the aforementioned process, traverse each pixel in the acquired graying image, obtain the pixel value of each pixel, perform grayscale inversion processing on the graying image, and convert the pixel in the graying image The pixel value range of [0, 255] is transformed to [255, 0], that is, the pixel value of the pixel point is adjusted from 0 to 255, and the pixel value of the pixel point is adjusted from 255 to 0, so as to make the original grayscale image The white pixels become black pixels, and the original black pixel tops become white pixels. After grayscale inversion processing, a palm image after grayscale inversion is obtained, that is, the palm print image to be corrected.

需要说明的是,为了方便在不同环境下的计算,还可进一步将像素点的取值范围从[0,255]压缩为[0,1],即将每个像素点的像素值除以255得到压缩后的像素值,例如,像素值为1的像素点压缩后的像素值为1/255,像素值为254的像素点压缩后的像素值为254/255,其他像素点的像素值变换以此类推。It should be noted that, in order to facilitate the calculation in different environments, the value range of the pixel point can be further compressed from [0, 255] to [0, 1], that is, the pixel value of each pixel point is divided by 255 to get The compressed pixel value, for example, the pixel value of a pixel with a pixel value of 1 is 1/255, the pixel value of a pixel with a pixel value of 254 is 254/255, and the pixel values of other pixels are transformed by And so on.

例如:结合前述说明,在MATLAB工具中,可通过直接调用imadjust函数,对灰化图像进行灰度反转处理,将图像中像素值区间由原来的[0,255]变换为[255,0],再压缩变换为[1,0],生成与灰化图像灰度相反的手掌图像,即待修正掌纹图像。For example: in combination with the above description, in the MATLAB tool, you can directly call the imadjust function to perform grayscale inversion processing on the grayed image, and transform the pixel value range in the image from the original [0, 255] to [255, 0], and then The compression transformation is [1,0] to generate a palm image whose grayscale is opposite to that of the grayed image, that is, the palmprint image to be corrected.

本实施例中,通过遍历手掌图像中的像素点并获取对应像素点的RGB分量值,根据获取到的每个像素点的RGB分量值,利用公式(1)对手掌图像进行灰度化处理,将图像中像素点的像素值范围设定在0-255之间,从而减少图像原始数据量,提高在后续处理计算中的计算效率;再对灰度化处理后的图像进行灰度反转处理,使图像的显示效果更加清晰,提高后续对手掌掌纹提取的准确性。In this embodiment, by traversing the pixel points in the palm image and obtaining the RGB component value of the corresponding pixel point, according to the obtained RGB component value of each pixel point, the palm image is grayed by using formula (1), Set the pixel value range of pixel points in the image between 0 and 255, thereby reducing the amount of original image data and improving the computational efficiency in subsequent processing calculations; and then performing grayscale inversion processing on the grayscaled image. , so that the display effect of the image is clearer and the accuracy of subsequent palm print extraction is improved.

在获得了待修正掌纹图像之后,则对待修正掌纹图像中各像素点进行曲率值进行计算,之后则基于各像素点的曲率值对待修正掌纹图像进行修正,获得修正图像。在具体的曲率计算过程中,是基于预设方向进行曲率的计算,以便于曲率值计算过程中都具有相应的基准,进而便于基于该基准进行像素点筛选,以获得像素合适的像素点,或者基于部分像素点的曲率值对待修正掌纹图像中的其他像素点的像素进行修正,获得便于进行手掌纹路的提取修正图像,更进一步地,为了提高掌纹纹路提取的成功率,在本申请提供的实施例中,还需要对修正图像进行二值化处理,该过程之后,图像中手掌纹路可以明显地和手掌的其他部分进行区分,得到手掌纹路如图3所示。相应的,为了实现手掌纹路的提取,为了让图像中的像素点的像素值只呈现0或者255,即图像只呈现黑色或者白色两种颜色,需要进一步对该增强图像进行二值化处理。经过前述处理之后,结合图2和图3对比可知,在通过像素点曲率值对待修正掌纹图像中的曲率进行了筛选修正方法进行了图3中的掌纹较图2更加突出,提高掌纹图像了对光照的抗性,以及提高掌纹图像了对掌纹不清晰的人的抗性。After the palmprint image to be corrected is obtained, the curvature value of each pixel in the palmprint image to be corrected is calculated, and then the palmprint image to be corrected is corrected based on the curvature value of each pixel to obtain a corrected image. In the specific curvature calculation process, the curvature is calculated based on the preset direction, so that there is a corresponding benchmark in the calculation process of the curvature value, and then it is convenient to screen pixels based on the benchmark to obtain pixels with suitable pixels, or Pixels of other pixels in the palmprint image to be corrected are corrected based on the curvature values of some pixels to obtain a corrected image that is convenient for palmprint extraction. Furthermore, in order to improve the success rate of palmprint extraction, the present application provides In this embodiment, the corrected image also needs to be binarized. After this process, the palm pattern in the image can be clearly distinguished from other parts of the palm, and the palm pattern is obtained as shown in FIG. 3 . Correspondingly, in order to extract the palm texture, in order to make the pixel value of the pixel in the image only show 0 or 255, that is, the image only shows two colors of black or white, the enhanced image needs to be further binarized. After the above-mentioned processing, it can be seen from the comparison between Fig. 2 and Fig. 3 that the curvature of the palm print image to be corrected is screened and corrected by the pixel point curvature value. The palm print in Fig. 3 is more prominent than Fig. Image resistance to light, and improved palmprint image resistance to people with unclear palm prints.

二值化,就是将图像上的像素点的像素值设置为0或255,也就是将整个图像呈现出明显的只有黑和白的视觉效果。Binarization is to set the pixel value of the pixel on the image to 0 or 255, that is, to present the entire image with an obvious visual effect of only black and white.

具体地,扫描修正图像中的每个像素点,若该像素点的像素值小于预设的像素阈值,则将该像素点的像素值设为0,即像素点变为黑色;若该像素点的像素值大于等于预设值的像素阈值,则将该像素点的像素值设为255,即像素点变为白色,得到二值化图像。Specifically, scan and correct each pixel in the image, if the pixel value of the pixel is less than the preset pixel threshold, the pixel value of the pixel is set to 0, that is, the pixel becomes black; The pixel value of the pixel is greater than or equal to the pixel threshold of the preset value, then the pixel value of the pixel is set to 255, that is, the pixel becomes white, and a binarized image is obtained.

可选地,所述对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像,包括:Optionally, calculating the curvature value of each feature pixel in the palmprint image to be corrected, and modifying the palmprint image to be corrected based on the curvature value of the feature pixel to obtain a corrected image, include:

根据预设切割方向和预设像素间隔切割所述待修正掌纹图像,得到n条切割线,其中,n为正整数;Cut the palmprint image to be corrected according to the preset cutting direction and the preset pixel interval to obtain n cutting lines, where n is a positive integer;

计算每条所述切割线上各像素点的曲率值,基于该曲率值对所述待修正掌纹图像进行修正,获得修正图像,所述切割线上的各像素点为所述特征像素点。Calculate the curvature value of each pixel point on each of the cutting lines, and correct the palmprint image to be corrected based on the curvature value to obtain a corrected image, and each pixel point on the cutting line is the characteristic pixel point.

在本发明实施例中,预设的切割方向可以是水平切割、垂直切割或者其它方向的切割,其具体可以根据实际应用的需要进行设置,此处不做限制。预设的像素间隔是指以预设个数的像素点作为间隔,其可以是以1个像素点为间隔,也可以是以5个像素点为间隔,具体也可以根据实际应用的需要进行设置,此处不做限制。为了更好的理解本步骤,下面通过一个具体的例子进行说明。例如,获取到的手掌图像为矩形,则在该修正图像中,预设的切割方向为垂直方向,预设的像素间隔为5个像素点,对修正图像进行切割,若图像中每行有2000个像素点,则将得到399条垂直的切割线。In the embodiment of the present invention, the preset cutting direction may be horizontal cutting, vertical cutting, or cutting in other directions, which may be specifically set according to actual application requirements, which is not limited here. The preset pixel interval refers to a preset number of pixels as an interval, which can be 1 pixel as an interval or 5 pixels as an interval, and can also be set according to the needs of actual applications. , there is no restriction here. In order to better understand this step, a specific example is used below to illustrate. For example, if the obtained palm image is a rectangle, in the corrected image, the preset cutting direction is the vertical direction, and the preset pixel interval is 5 pixels. pixels, you will get 399 vertical cutting lines.

在对待修正掌纹图像按照预设方向切割完成后,则计算每一条切割线上个像素点的曲率值,在本申请提供的实施例中,通过如下式(2)进行曲率值的计算:After the palmprint image to be corrected is cut according to the preset direction, the curvature value of each pixel on each cutting line is calculated. In the embodiment provided by this application, the calculation of the curvature value is performed by the following formula (2):

其中,z为切割线上的像素点,K(z)为像素点z的曲率值,Pf(z)为像素点z的像素值,为Pf(z)的二阶导数值,为Pf(z)的一阶导数值。Among them, z is the pixel point on the cutting line, K(z) is the curvature value of the pixel point z, P f (z) is the pixel point of the pixel point z, is the value of the second derivative of P f (z), is the value of the first derivative of P f (z).

具体地,对待修正掌纹图像切割获得的每条切割线,根据公式(2)计算该切割线上每个像素点的曲率值,使用曲率值对像素点是否属于掌纹上的像素点进行判断,进而便于基于曲率值进行如前述像素点的筛选、修正等过程,进而实现对待修正掌纹图像中的其他像素点的像素进行修正,以获得修正图像,具体的基于像素点的像素值对待修正掌纹图像进行修正以获得修正图像的在后文详述,在此不做赘述。Specifically, for each cutting line obtained by cutting the palmprint image to be corrected, calculate the curvature value of each pixel on the cutting line according to formula (2), and use the curvature value to judge whether the pixel belongs to the pixel on the palmprint , which facilitates the process of screening and correction of the aforementioned pixels based on the curvature value, and then realizes the correction of the pixels of other pixels in the palmprint image to be corrected, so as to obtain a corrected image. Correcting the palmprint image to obtain the corrected image will be described in detail later, and will not be repeated here.

可选地,所述基于该曲率值对所述待修正掌纹图像进行修正,获得修正图像,包括:Optionally, the correction of the palmprint image to be corrected based on the curvature value to obtain a corrected image includes:

将所述曲率值大于零的像素点确定为评估像素点,将连续的所述评估像素点所在的区域确定为局部掌纹区域;Determining the pixel point with the curvature value greater than zero as the evaluation pixel point, and determining the area where the continuous evaluation pixel point is located as the local palmprint area;

获取所述局部掌纹区域的宽度,将所述宽度与所述局部掌纹区域内的各所述评估像素点的曲率值乘积,获得所述局部掌纹区域内的各所述评估像素点的评估分数;Obtain the width of the local palmprint area, multiply the width by the curvature value of each of the evaluation pixels in the local palmprint area, and obtain the width of each evaluation pixel in the local palmprint area. assessment score;

依据所述评估分数对所述评估像素点的像素值进行调整,得到每个所述评估像素点的修正像素值,基于所述修正像素值修正所述待修正掌纹图像,获得所述修正图像。Adjust the pixel value of the evaluation pixel point according to the evaluation score, obtain the modified pixel value of each evaluation pixel point, modify the palmprint image to be modified based on the modified pixel value, and obtain the modified image .

结合前述说明,若切割线上像素点的曲率值大于0,则表示该像素点为掌纹上的像素点,并将其作为评估像素点,若像素点的曲率值小于或者等于0,则表示该像素点不属于掌纹上的像素点。并且,局部掌纹区域由曲率值大于0的连续像素点构成,也即连续的评估像素点构成。Combined with the above description, if the curvature value of the pixel point on the cutting line is greater than 0, it means that the pixel point is a pixel point on the palm print, and it is used as an evaluation pixel point. If the curvature value of the pixel point is less than or equal to 0, it means that the pixel point is This pixel does not belong to the pixel on the palm print. In addition, the local palmprint region is composed of continuous pixels with a curvature value greater than 0, that is, continuous evaluation pixels.

在本发明实施例中,由于局部掌纹区域是由曲率值大于0的连续像素点构成,故其宽度可以为曲率值大于0的连续像素点的个数,例如,若曲率值大于0的连续像素点的个数为5,则该局部掌纹区域的宽度为5。In this embodiment of the present invention, since the local palmprint region is composed of continuous pixels with a curvature value greater than 0, its width may be the number of continuous pixels with a curvature value greater than 0. For example, if the continuous pixels with a curvature value greater than 0 If the number of pixels is 5, the width of the local palmprint area is 5.

针对每个评估像素点,将包含该评估像素点的局部掌纹区域的宽度与该评估像素点的曲率值进行相乘,并将相乘得到的结果作为该评估像素点的评估分数。For each evaluation pixel, multiply the width of the local palmprint region including the evaluation pixel by the curvature value of the evaluation pixel, and use the multiplication result as the evaluation score of the evaluation pixel.

具体地,通过公式(3)计算评估像素点的评估分数:Specifically, the evaluation score of the evaluation pixel is calculated by formula (3):

Sr(zi)=k(zi)*Wr (3)S r (z i )=k(z i )*W r (3)

其中,zi为第i个评估像素点,i为大于0的正数,Sr(zi)为第i个评估像素点的评估分数,k(zi)为第i个评估像素点的曲率值,Wr为包含zi的局部掌纹区域的宽度。Among them, zi is the ith evaluation pixel, i is a positive number greater than 0, S r (z i ) is the evaluation score of the ith evaluation pixel, k(z i ) is the ith evaluation pixel Curvature value, W r is the width of the local palmprint region containing zi .

在本发明实施例中,针对每个评估像素点,将每个评估像素点的原始像素值与其对应的评估分数进行相加,得到的和作为该评估像素点的修正像素值,根据每个评估像素点的修正像素值,对每个评估像素点的像素值进行调整后得到修正像素值,基于该修正像素值更新所述待修正掌纹图像中的相同像素点的像素值,从而使掌纹区域上的点变得更加明显,提高掌纹区域的识别度,并且能够更好地识别出掌纹区域和非掌纹区域,得到如前所述的修正图像。In the embodiment of the present invention, for each evaluation pixel point, the original pixel value of each evaluation pixel point and its corresponding evaluation score are added, and the obtained sum is used as the corrected pixel value of the evaluation pixel point. The corrected pixel value of the pixel point, the corrected pixel value is obtained after adjusting the pixel value of each evaluation pixel point, and the pixel value of the same pixel point in the palmprint image to be corrected is updated based on the corrected pixel value, so that the palmprint The points on the area become more obvious, the recognition degree of the palmprint area is improved, and the palmprint area and the non-palmprint area can be better identified, and the corrected image as described above is obtained.

具体地,通过公式(4)计算评估像素点的修正像素值:Specifically, the corrected pixel value of the evaluation pixel is calculated by formula (4):

Va'(x,y)=Va(x,y)+Sr(za) (4)V a '(x,y)=V a (x,y)+S r (z a ) (4)

其中,x和y为待修正掌纹图像中第a个评估像素点的横坐标和纵坐标,a为大于0的正数,za为第a个评估像素点,Va'(x,y)为第a个评估像素点的修正像素值,Va(x,y)为第a评估像素点的像素值,Sr(za)为第a个评估像素点的评估分数。Among them, x and y are the abscissa and ordinate of the a-th evaluation pixel in the palmprint image to be corrected, a is a positive number greater than 0, za is the a -th evaluation pixel, V a '(x,y ) is the corrected pixel value of the a-th evaluation pixel, V a (x, y) is the pixel value of the a-th evaluation pixel, and S r (z a ) is the evaluation score of the a-th evaluation pixel.

需要说明的是,若评估像素点经过计算后的修正像素值超过最大像素值,则将修正像素值设置为最大像素值。It should be noted that, if the calculated corrected pixel value of the evaluation pixel exceeds the maximum pixel value, the corrected pixel value is set as the maximum pixel value.

可选地,所述获得修正图像之后,还包括:Optionally, after obtaining the corrected image, the method further includes:

对于所述修正图像中的每个像素点,获取该像素点一侧且与该像素点相邻的第一相邻像素点的像素值,以及与该像素点间隔一个像素点的第一间隔像素点的像素值;其中,所述第一间隔像素点与所述第一相邻像素点位于该像素点的同一侧;For each pixel in the corrected image, obtain the pixel value of the first adjacent pixel on one side of the pixel and adjacent to the pixel, and the first interval pixel that is separated from the pixel by one pixel The pixel value of the point; wherein, the first interval pixel point and the first adjacent pixel point are located on the same side of the pixel point;

获取该像素点另一侧且与该像素点相邻的第二相邻像素点的像素值,以及与该像素点间隔一个像素点的第二间隔像素点的像素值;其中,所述第二间隔像素点与所述第二相邻像素点位于该像素点的同一侧,所述一侧与另一侧相对设置;Obtain the pixel value of the second adjacent pixel point on the other side of the pixel point and adjacent to the pixel point, and the pixel value of the second interval pixel point separated from the pixel point by one pixel point; The spaced pixel points and the second adjacent pixel points are located on the same side of the pixel point, and the one side is opposite to the other side;

依据所述一侧和另一侧的像素值对该像素点的像素值进行修正。The pixel value of the pixel point is modified according to the pixel value of the one side and the other side.

在本发明实施例中,按照公式(5)对每个像素点的像素值进行修正:In the embodiment of the present invention, the pixel value of each pixel is corrected according to formula (5):

C(x,y)=min{max(V(x+1,y),V(x+2,y)),max(V(x-1,y),V(x-2,y))} (5)C(x,y)=min{max(V(x+1,y),V(x+2,y)),max(V(x-1,y),V(x-2,y)) } (5)

其中,x和y为手掌图像中每个像素点的横坐标和纵坐标,V(x,y)为修正图像中像素点(x,y)的像素值,C(x,y)为像素点(x,y)修正后的像素值。Among them, x and y are the abscissa and ordinate of each pixel in the palm image, V(x,y) is the pixel value of the pixel (x,y) in the corrected image, and C(x,y) is the pixel (x,y) The corrected pixel value.

具体地,选取修正图像中的像素点(x,y)左侧相邻两个像素点(x-1,y)、(x-2,y)和右侧相邻两个像素点(x+1,y)、(x+2,y),若(x,y)和两侧的像素点的像素值一样大,则不做处理;若像素点(x,y)的像素值和两侧的像素点的像素值不同,则选取左侧两个像素点的像素值中较大的像素值,再选取右侧两个像素点的像素值中较大的像素值,最后比较左侧较大的像素值和右侧较大的像素值,选取两者中较小的像素值对像素点(x,y)进行修正。Specifically, select the two adjacent pixels (x-1, y) and (x-2, y) on the left side of the pixel point (x, y) in the corrected image and the two adjacent pixels on the right side (x+ 1, y), (x+2, y), if (x, y) is the same as the pixel value of the pixels on both sides, it will not be processed; If the pixel values of the two pixel points are different, select the larger pixel value among the pixel values of the two pixel points on the left, and then select the larger pixel value among the pixel values of the two pixel points on the right, and finally compare the larger pixel value on the left side. The pixel value of , and the larger pixel value on the right, select the smaller pixel value of the two to correct the pixel point (x, y).

需要说明的是,若像素点为图像边界的像素点,则只对一侧的像素值进行比较,例如,若像素点位于图像左边界,则选取该像素点右侧相邻两个像素点的像素值中较大的像素值,对像素点的像素值进行修正;若像素点位于图像右边界,则选取该像素点左侧相邻两个像素点的像素值中较大的像素值,对像素点的像素值进行修正。It should be noted that, if the pixel point is the pixel point of the image boundary, only the pixel value of one side is compared. For example, if the pixel point is located on the left boundary of the image, select the two adjacent pixels on the right side of the pixel point. The larger pixel value among the pixel values, the pixel value of the pixel point is corrected; if the pixel point is located on the right edge of the image, the larger pixel value among the pixel values of the two adjacent pixel points on the left side of the pixel point is selected, and the pixel value of the pixel point is selected. The pixel value of the pixel point is corrected.

本实施例中,若像素点(x,y)的像素值很小而两侧的像素值很大,则通过公式(5)将像素点(x,y)的像素值调大,使得该像素点和两侧的像素点能够连接起来形成纹路;若像素点(x,y)的像素值很大而两侧的像素值很小,则认为该像素点为噪点,为避免该噪点对掌纹的提取造成干扰,通过公式(5)将像素点(x,y)的像素值调小,实现对掌纹图像中的噪点进行消除,从而使掌纹区域变得更加明显,提高对掌纹的辨别度,同时也提高在后续对掌纹提取的准确性。In this embodiment, if the pixel value of the pixel point (x, y) is small and the pixel values on both sides are large, the pixel value of the pixel point (x, y) is increased by formula (5), so that the pixel value of the pixel point (x, y) is increased. The point and the pixels on both sides can be connected to form a texture; if the pixel value of the pixel point (x, y) is large and the pixel value on both sides is small, the pixel is considered to be noise. The extraction of the palm print causes interference, and the pixel value of the pixel point (x, y) is reduced by formula (5) to eliminate the noise in the palm print image, so that the palm print area becomes more obvious and improves the palm print image. Discrimination, but also improve the accuracy of subsequent palmprint extraction.

可选地,所述预设的切割方向包括至少2个方向;所述对所述修正图像进行二值化处理,获得掌纹图像,包括:Optionally, the preset cutting directions include at least 2 directions; and performing binarization processing on the corrected image to obtain a palmprint image includes:

将根据每个所述切割方向得到的所述修正图像作为待合成图像;Taking the corrected image obtained according to each of the cutting directions as the image to be synthesized;

对比同一像素点在各所述待合成图像中的像素值,将该像素点的最大像素值确定为该像素点在合成图像中的合成像素值;Comparing the pixel values of the same pixel in each of the images to be synthesized, the maximum pixel value of the pixel is determined as the synthesized pixel value of the pixel in the synthesized image;

依据每一个像素点的所述合成像素值获得合成图像;obtaining a composite image according to the composite pixel value of each pixel;

对所述合成图像进行二值化处理,得到所述掌纹图像。Binarization processing is performed on the composite image to obtain the palmprint image.

在本申请提供的实施例中的一种实施方式中,预设的切割方向包括至少2个方向,即可以基于2个或者2个以上不同的切割方向对待修正掌纹图像进行图像处理,得到修正图像。预设的切割方向具体可以包括45°、90°、135°和180°共4个方向,但并不限于此,其也可以包括其他方向,可根据实际应用的需要进行设置,此处不做限制。In one embodiment of the examples provided in this application, the preset cutting directions include at least two directions, that is, the palmprint image to be corrected can be processed by image processing based on two or more different cutting directions to obtain the corrected palmprint image. image. The preset cutting direction can specifically include 4 directions of 45°, 90°, 135° and 180°, but it is not limited to this. It can also include other directions, which can be set according to the needs of practical applications. limit.

在本发明实施例中,对每个具体的切割方向,均按修正图像按照预设切割方向切割后的图像作为待合成图像,例如,若预设的切割方向包括45°、90°、135°和180°共4个方向,则以45°的切割方向得到的修正图像为一个待合成图像,以90°的切割方向得到的修正图像为另一个待合成图像,其他方向以此类推,一共可得到四个待合成图像。In this embodiment of the present invention, for each specific cutting direction, an image cut according to the preset cutting direction according to the corrected image is used as the image to be synthesized. For example, if the preset cutting direction includes 45°, 90°, 135° and 180° in a total of 4 directions, the corrected image obtained with a cutting direction of 45° is one image to be synthesized, the corrected image obtained with a cutting direction of 90° is another image to be synthesized, and so on for other directions. Four images to be synthesized are obtained.

具体地,根据前述过程得到的待合成图像,通过对每个待合成图像中相同位置的像素点的像素值进行比较,选取最大的像素值作为合成图像对应位置的像素点的像素值,得到合成图像。Specifically, according to the to-be-synthesized image obtained by the foregoing process, by comparing the pixel values of the pixels at the same position in each to-be-synthesized image, the largest pixel value is selected as the pixel value of the pixel at the corresponding position of the synthesized image, and a composite image is obtained. image.

在合成图像的基础上,为了让图像中的像素点的像素值只呈现0或者255,即图像只呈现黑色或者白色两种颜色,需要进一步对该合成图像进行二值化处理,以获得掌纹图像。On the basis of the composite image, in order to make the pixel values of the pixels in the image only show 0 or 255, that is, the image only shows two colors of black or white, it is necessary to further binarize the composite image to obtain palm prints. image.

具体地,扫描合成图像中的每个像素点,若该像素点的像素值小于预设的像素阈值,则将该像素点的像素值设为0,即为像素点变为黑色;若该像素点的像素值大于等于预设值的像素阈值,则将该像素点的像素值设为255,即像素点变为白色,得到掌纹图像。Specifically, scan each pixel in the synthesized image, if the pixel value of the pixel is less than the preset pixel threshold, the pixel value of the pixel is set to 0, that is, the pixel turns black; If the pixel value of the point is greater than or equal to the pixel threshold value of the preset value, the pixel value of the pixel point is set to 255, that is, the pixel point becomes white, and the palmprint image is obtained.

本实施例中,根据不同的切割方向获取不同的待合成图像,再对每个待合成图像中每个相同位置的像素点的像素值进行比较,选取每个像素点的最大像素值作为合成图像中对应位置的像素点的像素值,对图像进行合成,最后再对合成图像进行二值化处理,得到掌纹图像。由于仅对一个切割方向上得到的修正图像进行掌纹提取可能存在误差,因此通过对多个切割方向的待合成图像进行合成,再对合成图像进行二值化处理得到的掌纹图像进行掌纹纹路提取,能够有效地降低误差,实现对掌纹纹路的准确提取,提高掌纹纹路提取的准确性。In this embodiment, different images to be synthesized are obtained according to different cutting directions, the pixel values of each pixel at the same position in each image to be synthesized are compared, and the maximum pixel value of each pixel is selected as the synthesized image The pixel value of the pixel at the corresponding position in the image is synthesized, and finally the synthesized image is binarized to obtain the palmprint image. Since there may be errors in palmprint extraction from the corrected image obtained in only one cutting direction, the palmprint image obtained by binarizing the synthesized image is synthesized by synthesizing the images to be synthesized in multiple cutting directions. Texture extraction can effectively reduce errors, achieve accurate palmprint extraction, and improve the accuracy of palmprint extraction.

可选地,所述对手掌图像进行预处理,包括:Optionally, the preprocessing of the palm image includes:

对所述手掌图像进行Gabor滤波变换,得到所述待修正掌纹图像。Gabor filter transformation is performed on the palm image to obtain the palm print image to be corrected.

在本发明实施例中,在获取的手掌图像,为了进一步提高该手掌图像的质量,采用Gabor滤波变换的方法对图像作增强处理,最终得到处理后的增强图像。In the embodiment of the present invention, in order to further improve the quality of the palm image obtained, the image is enhanced by the method of Gabor filter transformation, and finally a processed enhanced image is obtained.

具体地,根据Gabor滤波函数对手掌图像进行卷积运算,通过卷积运算结果获取增强图像。其中,卷积运算指的是使用一个卷积核对手掌图像中的每个像素点进行一系列操作,卷积核是预设的矩阵模板,用于与手掌图像进行运算,其具体可以是一个四方形的网格结构,例如3*3的矩阵,该矩阵中的每个元素都有一个预设的权重值,在使用卷积核进行计算时,将卷积核的中心放置在要计算的目标像素点上,计算卷积核中每个元素的权重值和其覆盖的图像像素点的像素值之间的乘积并求和,得到的结果即为目标像素点的新像素值。Specifically, a convolution operation is performed on the palm image according to the Gabor filter function, and an enhanced image is obtained through the result of the convolution operation. Among them, the convolution operation refers to using a convolution kernel to perform a series of operations on each pixel in the palm image. The convolution kernel is a preset matrix template, which is used for operation with the palm image. A square grid structure, such as a 3*3 matrix, each element in the matrix has a preset weight value. When using the convolution kernel for calculation, place the center of the convolution kernel on the target to be calculated On the pixel point, the product between the weight value of each element in the convolution kernel and the pixel value of the image pixel point it covers is calculated and summed, and the result obtained is the new pixel value of the target pixel point.

Gabor滤波变换属于加窗傅里叶变换,Gabor函数可以在频域不同尺度、不同方向上提取图像的相关特征,实现对图像的增强效果。具体的,通过Gabor滤波对手掌图像处理过程如下:按照公式(6)对手掌图像进行Gabor滤波变换:The Gabor filter transform belongs to the windowed Fourier transform, and the Gabor function can extract the relevant features of the image in different scales and directions in the frequency domain to achieve the enhancement effect on the image. Specifically, the palm image processing process through Gabor filtering is as follows: according to formula (6), the palm image is subjected to Gabor filtering transformation:

x'=x cosθ+y sinθx'=x cosθ+y sinθ

y'=-x sinθ+y cosθ (6)y'=-x sinθ+y cosθ (6)

其中,为Gabor滤波函数,x和y为手掌图像中像素点的横坐标和纵坐标,λ为预设的波长,θ为预设的方向,为相位偏移,σ为gabor函数的高斯因子的标准差,γ为长宽比,U(x,y)为增强图像,I(x,y)为手掌图像,为张量积运算,x'和y'为所述手掌图像中像素点(x,y)根据θ旋转后的横坐标和纵坐标。in, is the Gabor filter function, x and y are the abscissa and ordinate of the pixel in the palm image, λ is the preset wavelength, θ is the preset direction, is the phase offset, σ is the standard deviation of the Gaussian factor of the gabor function, γ is the aspect ratio, U(x,y) is the enhanced image, I(x,y) is the palm image, For the tensor product operation, x' and y' are the abscissa and ordinate of the pixel point (x, y) in the palm image rotated according to θ.

具体地,使用预设的波长和预设的方向,利用公式(5)的Gabor滤波函数对手掌图像进行变换,从而将手掌图像的高频波滤掉,只留下低频部分,在预设的方向上将低频波滤掉,只留下高频部分,最终使图像变得高亮,即通过Gabor滤波变换后得到的增强图像。Specifically, using the preset wavelength and the preset direction, the palm image is transformed by the Gabor filter function of formula (5), so as to filter out the high-frequency wave of the palm image, leaving only the low-frequency part, in the preset direction The low-frequency wave is filtered out, leaving only the high-frequency part, and finally the image becomes highlighted, that is, the enhanced image obtained after the Gabor filter transformation.

其中,预设的波长λ可取1,也可以根据实际需求进行设定,此处不做限制。预设的方向θ可以分别选取0、这8个方向,也可以选择其他方向,具体可以根据实际应用的需要进行选择,此处不做限制。Wherein, the preset wavelength λ may be 1, and may also be set according to actual requirements, which is not limited here. The preset direction θ can be selected as 0, For these 8 directions, other directions can also be selected, which can be selected according to actual application needs, and there is no limitation here.

本实施例中,通过公式(6)对手掌图像进行Gabor滤波变换,能够快速地将图像变得高亮,达到图像增强的效果,从而提高手掌图像的图像质量,以及对手掌图像中纹路的辨别率,以便在对低端掌纹采集设备采集到的低质量手掌图像进行手掌纹路提取时,能够实现准确定位,从而提高掌纹提取的准确性,同时也提高对不同掌纹采集设备的适用性。In this embodiment, the Gabor filter transformation is performed on the palm image by formula (6), the image can be quickly highlighted, and the effect of image enhancement can be achieved, thereby improving the image quality of the palm image and identifying the lines in the palm image. In order to achieve accurate positioning when palm pattern extraction is performed on low-quality palm images collected by low-end palmprint collection equipment, the accuracy of palmprint extraction can be improved, and the applicability of different palmprint collection equipment can also be improved. .

本申请提供的实施例中,结合前述的技术方案,可以实现:通过对手掌图像进行Gabor滤波变换得到所述待修正掌纹图像,其中待修正掌纹图像即为Gabor滤波变换之后的增强图像,对该增强图像进行切割并获取n条切割线,计算每条切割线上每个像素点的曲率值,获取曲率值大于0的像素点作为评估像素点,以及获取曲率值大于零的连续像素点所在的区域作为局部掌纹区域,利用评估像素点的曲率值与该评估像素点所在的局部掌纹区域的宽度的积,对每个评估像素点进行计算得到评估分数,再利用评估分数对评估像素点的像素值进行调整,获取每个评估像素点的修正像素值并对增强图像上的像素点进行更新,最后对更新后的增强图像进行二值化处理,得到掌纹图像。一方面,通过Gabor滤波变换提高手掌图像的图像质量,使得在对手掌纹路提取时能够提高识别掌纹的准确性,从而实现对低端掌纹采集设备采集到的低质量手掌图像进行掌纹的准确定位,有效提高手掌图像中掌纹的提取准确性,以及对多种不同掌纹采集设备的适用性;另一方面,通过曲率算法能够快速地识别手掌图像中的掌纹,提高掌纹的识别效率;并且通过计算评估分数能够进一步准确区分掌纹区域和非掌纹区域,从而进一步提高对掌纹提取的准确性。In the embodiments provided in the present application, combined with the foregoing technical solutions, it can be achieved that the palmprint image to be corrected is obtained by performing Gabor filter transformation on the palm image, wherein the palmprint image to be corrected is the enhanced image after Gabor filter transformation, Cut the enhanced image and obtain n cutting lines, calculate the curvature value of each pixel on each cutting line, obtain pixels with a curvature value greater than 0 as evaluation pixels, and obtain continuous pixels with a curvature value greater than zero The area where it is located is regarded as the local palmprint area, and the product of the curvature value of the evaluation pixel and the width of the local palmprint area where the evaluation pixel is located is used to calculate the evaluation score for each evaluation pixel, and then use the evaluation score to evaluate the evaluation score. The pixel value of the pixel is adjusted, the corrected pixel value of each evaluation pixel is obtained, and the pixel on the enhanced image is updated, and finally the updated enhanced image is binarized to obtain a palmprint image. On the one hand, the image quality of the palm image is improved through Gabor filter transformation, so that the accuracy of palmprint recognition can be improved when extracting palmprints, so as to realize palmprint identification of low-quality palm images collected by low-end palmprint collection equipment. Accurate positioning can effectively improve the extraction accuracy of palm prints in palm images, and the applicability to a variety of different palm print collection devices; Recognition efficiency; and by calculating the evaluation score, the palmprint area and the non-palmprint area can be further accurately distinguished, thereby further improving the accuracy of palmprint extraction.

本发明实施例还提供了一种掌纹提取装置,在其中一种实施方式中,如图4所示,包括:待修正掌纹图像获取模块100、修正图像获得模块200、二值化处理模块300:The embodiment of the present invention also provides a palmprint extraction device. In one embodiment, as shown in FIG. 4 , it includes: a palmprint image acquisition module 100 to be corrected, a corrected image acquisition module 200, and a binarization processing module 300:

待修正掌纹图像获取模块100,用于获取手掌图像,对手掌图像进行预处理,获得待修正掌纹图像;The to-be-corrected palmprint image acquisition module 100 is configured to acquire a palm image, preprocess the palm image, and obtain the to-be-corrected palmprint image;

修正图像获得模块200,用于对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像;The corrected image obtaining module 200 is used for calculating the curvature value of each characteristic pixel in the palmprint image to be corrected, and correcting the palmprint image to be corrected based on the curvature value of the characteristic pixel to obtain a corrected image. image;

二值化处理模块300,用于对所述修正图像进行二值化处理,获得掌纹图像。The binarization processing module 300 is configured to perform binarization processing on the corrected image to obtain a palmprint image.

进一步地,如图4所示,本发明实施例中提供的一种掌纹提取装置还包括:切割单元210,用于根据预设切割方向和预设像素间隔切割所述待修正掌纹图像,得到n条切割线,其中,n为正整数;曲率计算单元220,用于计算每条所述切割线上各像素点的曲率值,基于该曲率值对所述待修正掌纹图像进行修正,获得修正图像,所述切割线上的各像素点为所述特征像素点。局部掌纹区域确定单元221,用于将所述曲率值大于零的像素点确定为评估像素点,将连续的所述评估像素点所在的区域确定为局部掌纹区域;评估分数获得单元222,用于获取所述局部掌纹区域的宽度,将所述宽度与所述局部掌纹区域内的各所述评估像素点的曲率值乘积,获得所述局部掌纹区域内的各所述评估像素点的评估分数;调整单元223,用于依据所述评估分数对所述评估像素点的像素值进行调整,得到每个所述评估像素点的修正像素值,基于所述修正像素值修正所述待修正掌纹图像,获得所述修正图像。第一像素值获取单元230,用于对于所述修正图像中的每个像素点,获取该像素点一侧且与该像素点相邻的第一相邻像素点的像素值,以及与该像素点间隔一个像素点的第一间隔像素点的像素值;其中,所述第一间隔像素点与所述第一相邻像素点位于该像素点的同一侧;第二像素值获取单元240,用于获取该像素点另一侧且与该像素点相邻的第二相邻像素点的像素值,以及与该像素点间隔一个像素点的第二间隔像素点的像素值;其中,所述第二间隔像素点与所述第二相邻像素点位于该像素点的同一侧,所述一侧与另一侧相对设置;修正单元250,用于依据所述一侧和另一侧的像素值对该像素点的像素值进行修正。待合成图像获得单元310,用于将根据每个所述切割方向得到的所述修正图像作为待合成图像;对比单元320,用于对比同一像素点在各所述待合成图像中的像素值,将该像素点的最大像素值确定为该像素点在合成图像中的合成像素值;合成图像获得单元330,用于依据每一个像素点的所述合成像素值获得合成图像;二值化处理单元340,用于对所述合成图像进行二值化处理,得到所述掌纹图像。灰度化单元110,用于遍历所述手掌图像中,获取每个像素点的RGB分量值,通过灰度处理规则对所述每个像素点的RGB分量值进行灰度化处理,获得灰度化图像;变换单元120,反转所述灰度化图像,采用滤波变换处理反转后的所述灰度化图像,获得所述待修正掌纹图像。Further, as shown in FIG. 4 , a palmprint extraction device provided in an embodiment of the present invention further includes: a cutting unit 210, configured to cut the palmprint image to be corrected according to a preset cutting direction and a preset pixel interval, Obtain n cutting lines, where n is a positive integer; the curvature calculation unit 220 is used to calculate the curvature value of each pixel point on each of the cutting lines, and based on the curvature value, the palmprint image to be corrected is corrected, A corrected image is obtained, and each pixel on the cutting line is the characteristic pixel. The local palmprint area determination unit 221 is used to determine the pixel point with the curvature value greater than zero as the evaluation pixel point, and the area where the continuous described evaluation pixel point is located is determined as the local palmprint area; the evaluation score obtaining unit 222, for obtaining the width of the local palmprint area, and multiplying the width by the curvature value of each of the evaluation pixels in the local palmprint area to obtain each evaluation pixel in the local palmprint area The evaluation score of the point; the adjustment unit 223 is configured to adjust the pixel value of the evaluation pixel point according to the evaluation score, obtain the modified pixel value of each evaluation pixel point, and modify the pixel value based on the modified pixel value. The palmprint image to be corrected is obtained, and the corrected image is obtained. The first pixel value acquisition unit 230 is configured to, for each pixel in the corrected image, acquire the pixel value of the first adjacent pixel on one side of the pixel and adjacent to the pixel, and the pixel value corresponding to the pixel. The pixel value of the first interval pixel point whose point is separated by one pixel point; wherein, the first interval pixel point and the first adjacent pixel point are located on the same side of the pixel point; the second pixel value obtaining unit 240, using for obtaining the pixel value of the second adjacent pixel point on the other side of the pixel point and adjacent to the pixel point, and the pixel value of the second interval pixel point separated from the pixel point by one pixel point; The two spaced pixels and the second adjacent pixel are located on the same side of the pixel, and the one side is opposite to the other side; the correction unit 250 is configured to adjust the pixel value according to the pixel value of the one side and the other side Correct the pixel value of the pixel. The to-be-combined image obtaining unit 310 is used to use the corrected image obtained according to each of the cutting directions as the to-be-combined image; the comparison unit 320 is used to compare the pixel values of the same pixel in each of the to-be-combined images, The maximum pixel value of the pixel is determined as the composite pixel value of the pixel in the composite image; the composite image obtaining unit 330 is configured to obtain a composite image according to the composite pixel value of each pixel; the binarization processing unit 340, for performing binarization processing on the composite image to obtain the palmprint image. The grayscale unit 110 is configured to traverse the palm image, obtain the RGB component value of each pixel, and perform grayscale processing on the RGB component value of each pixel through a grayscale processing rule to obtain a grayscale The transforming unit 120 inverts the grayscale image, and processes the inverted grayscale image by filtering transformation to obtain the palmprint image to be corrected.

本发明实施例提供的一种掌纹提取方法装置可以实现上述掌纹提取方法的实施例,具体功能实现请参见方法实施例中的说明,在此不再赘述。The palmprint extraction method and apparatus provided in the embodiments of the present invention can implement the above palmprint extraction method embodiments. For specific function implementation, please refer to the descriptions in the method embodiments, which will not be repeated here.

本发明实施例提供的一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现任一项技术方案所述的掌纹提取方法。其中,所述计算机可读存储介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(Random AcceSS Memory,随即存储器)、EPROM(EraSable Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically EraSable Programmable Read-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,存储设备包括由设备(例如,计算机、手机)以能够读的形式存储或传输信息的任何介质,可以是只读存储器,磁盘或光盘等。An embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the program is executed by a processor, the palmprint extraction method described in any one of the technical solutions is implemented. Wherein, the computer-readable storage medium includes but is not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random access memory), EPROM (EraSable Programmable Read-Only Memory), EEPROM (Electrically EraSable Programmable Read-Only Memory), flash memory, magnetic card or light card. That is, a storage device includes any medium that stores or transmits information in a readable form by a device (eg, a computer, a cell phone), and may be a read-only memory, a magnetic disk or an optical disk, and the like.

本发明实施例提供的一种计算机可读存储介质,可实现上述掌纹提取方法的实施例,在本申请中通过对图像进行预处理,使得后续更容易的提取出掌纹,即使得手掌的掌纹更为突出显示,或者去掉手掌图像中的噪声,避免噪声影响掌纹的提取,使图像的显示效果更加清晰,提高后续对手掌掌纹提取的准确性。通过待修正掌纹图像中各像素点进行曲率值对像素点筛选,更进一步提高掌纹纹路提取的成功率;本申请实施例提供的一种掌纹提取方法,包括:获取手掌图像,对手掌图像进行预处理,获得待修正掌纹图像;对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像;对所述修正图像进行二值化处理,获得掌纹图像。本申请提供的实施例中,获取手掌图像,该手掌图像可以是整个手掌的图像,也可以是不包括手指的手掌图像,由于本申请中主要是对掌纹进行提取,可以是对不包括手指部分的手掌中的掌纹进行提取,当然也可以对整个手掌掌纹进行提取。为了提高手掌图像中掌纹纹路的识别率,避免噪音影响掌纹的提取,需要对手掌图像进行预处理,预处理后的图像则为待修正掌纹图像。在本申请提供的实施例中,对图像进行预处理,使得后续更容易的提取出掌纹,即使得手掌的掌纹更为突出显示,或者去掉手掌图像中的噪声,避免噪声影响掌纹的提取。进一步地,在前述的基础上,对手掌图像中的像素点进行遍历,获取每个像素点的RGB分量值。具体地,按照预设的遍历方式对手掌图像中的像素点进行遍历,获取每个像素点的RGB分量值,根据像素点的RGB分量值,对手掌图像作灰度化处理,得到灰化图像;对灰化图像进行灰度反转处理,得到灰度反转后的手掌图像,从而使灰化图像中原始的白色像素点变为黑色像素点,原始的黑色像素顶变为白色像素点,经过灰度反转处理后得到灰度反转后的手掌图像,即待修正掌纹图像。本实施例中,将图像中像素点的像素值范围设定在0-255之间,减少图像原始数据量,提高在后续处理计算中的计算效率;再对灰度化处理后的图像进行灰度反转处理,使图像的显示效果更加清晰,提高后续对手掌掌纹提取的准确性。在获得了待修正掌纹图像之后,则对待修正掌纹图像中各像素点进行曲率值进行计算,之后则基于各像素点的曲率值对待修正掌纹图像进行修正,获得修正图像。在具体的曲率计算过程中,是基于预设方向进行曲率的计算,以便于曲率值计算过程中都具有相应的基准,进而便于基于该基准进行像素点筛选,以获得像素合适的像素点,或者基于部分像素点的曲率值对待修正掌纹图像中的其他像素点的像素进行修正,获得便于进行手掌纹路的提取修正图像,更进一步地,为了提高掌纹纹路提取的成功率,在本申请提供的实施例中,还需要对修正图像进行二值化处理,该过程之后,图像中手掌纹路可以明显地和手掌的其他部分进行区分,得到手掌纹路。此外,在又一种实施例中,本发明还提供一种服务器,如图5所示,所述服务器处理器503、存储器505、输入单元507以及显示单元509等器件。本领域技术人员可以理解,图5示出的结构器件并不构成对所有服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件。存储器505可用于存储应用程序501以及各功能模块,处理器503运行存储在存储器505的应用程序501,从而执行设备的各种功能应用以及数据处理。存储器505可以是内存储器或外存储器,或者包括内存储器和外存储器两者。内存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)、快闪存储器、或者随机存储器。外存储器可以包括硬盘、软盘、ZIP盘、U盘、磁带等。本发明所公开的存储器包括但不限于这些类型的存储器。本发明所公开的存储器505只作为例子而非作为限定。A computer-readable storage medium provided by the embodiment of the present invention can implement the above-mentioned embodiments of the palmprint extraction method. In this application, by preprocessing the image, it is easier to extract the palmprint subsequently, that is, the palm print is obtained. The palm print is more prominently displayed, or the noise in the palm image is removed, so as to avoid the noise affecting the palm print extraction, so that the image display effect is clearer, and the accuracy of the subsequent palm print extraction is improved. Screening the pixels by the curvature value of each pixel in the palmprint image to be corrected further improves the success rate of palmprint extraction; a palmprint extraction method provided by an embodiment of the present application includes: acquiring a palm image, The image is preprocessed to obtain a palmprint image to be corrected; curvature values are calculated for each feature pixel in the palmprint image to be corrected, and the palmprint image to be corrected is performed based on the curvature value of the feature pixel. Correction is performed to obtain a corrected image; the corrected image is subjected to binarization processing to obtain a palmprint image. In the embodiment provided in this application, the palm image is obtained, and the palm image may be the image of the entire palm, or may be the palm image excluding the fingers. The palm prints in part of the palms are extracted, and of course the entire palm prints can also be extracted. In order to improve the recognition rate of palmprints in the palm image and avoid noise affecting the extraction of palmprints, the palm image needs to be preprocessed, and the preprocessed image is the palmprint image to be corrected. In the embodiments provided in this application, the image is preprocessed to make it easier to extract the palm prints later, that is, to make the palm prints of the palm more prominently displayed, or to remove the noise in the palm image, so as to avoid the noise affecting the palm prints. extract. Further, on the basis of the foregoing, the pixels in the palm image are traversed to obtain the RGB component value of each pixel. Specifically, the pixels in the palm image are traversed according to a preset traversal method, the RGB component value of each pixel is obtained, and the palm image is grayed according to the RGB component value of the pixel to obtain a grayed image. ; Perform grayscale inversion processing on the grayscale image to obtain a palm image after grayscale inversion, so that the original white pixels in the grayscale image become black pixels, and the top of the original black pixels become white pixels. After grayscale inversion processing, a palm image after grayscale inversion is obtained, that is, the palm print image to be corrected. In this embodiment, the pixel value range of the pixel points in the image is set between 0 and 255, which reduces the amount of original data of the image and improves the calculation efficiency in the subsequent processing calculation; The degree inversion processing makes the display effect of the image clearer and improves the accuracy of subsequent palm print extraction. After the palmprint image to be corrected is obtained, the curvature value of each pixel in the palmprint image to be corrected is calculated, and then the palmprint image to be corrected is corrected based on the curvature value of each pixel to obtain a corrected image. In the specific curvature calculation process, the curvature is calculated based on the preset direction, so that there is a corresponding benchmark in the calculation process of the curvature value, and then it is convenient to screen pixels based on the benchmark to obtain pixels with suitable pixels, or Pixels of other pixels in the palmprint image to be corrected are corrected based on the curvature values of some pixels to obtain a corrected image that is convenient for palmprint extraction. Furthermore, in order to improve the success rate of palmprint extraction, the present application provides In the embodiment of the invention, the corrected image also needs to be binarized. After this process, the palm pattern in the image can be clearly distinguished from other parts of the palm to obtain the palm pattern. In addition, in another embodiment, the present invention further provides a server, as shown in FIG. 5 , the server processor 503 , the memory 505 , the input unit 507 , and the display unit 509 and other devices. Those skilled in the art can understand that the structural components shown in FIG. 5 do not constitute a limitation to all servers, and may include more or less components than those shown, or combine some components. The memory 505 can be used to store the application program 501 and various functional modules, and the processor 503 executes the application program 501 stored in the memory 505 to execute various functional applications and data processing of the device. Memory 505 may be internal memory or external memory, or include both. Internal memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, or random access memory. External storage may include hard disks, floppy disks, ZIP disks, U disks, magnetic tapes, and the like. The memory disclosed herein includes, but is not limited to, these types of memory. The memory 505 disclosed in the present invention is only an example and not a limitation.

输入单元507用于接收信号的输入,以及用户输入的个人信息和相关的身体状况信息。输入单元507可包括触控面板以及其它输入设备。触控面板可收集客户在其上或附近的触摸操作(比如客户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作),并根据预先设定的程序驱动相应的连接装置;其它输入设备可以包括但不限于物理键盘、功能键(比如播放控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。显示单元509可用于显示客户输入的信息或提供给客户的信息以及计算机设备的各种菜单。显示单元509可采用液晶显示器、有机发光二极管等形式。处理器503是计算机设备的控制中心,利用各种接口和线路连接整个电脑的各个部分,通过运行或执行存储在存储器503内的软件程序和/或模块,以及调用存储在存储器内的数据,执行各种功能和处理数据。图5中所示的一个或多个处理器503能够执行、实现图4中所示的待修正掌纹图像获取模块100的功能、修正图像获得模块200的功能、二值化处理模块300的功能、切割单元210的功能、曲率计算单元220的功能、局部掌纹区域确定单元221的功能、评估分数获得单元222的功能、调整单元223的功能、第一像素值获取单元230的功能、第二像素值获取单元240的功能、修正单元250的功能、待合成图像获得单元310的功能、对比单元320的功能、合成图像获得单元330的功能、二值化处理单元340的功能、灰度化单元110的功能、变换单元120的功能。The input unit 507 is used to receive input of signals, as well as personal information and related physical condition information input by the user. The input unit 507 may include a touch panel and other input devices. The touch panel can collect the touch operations of the customer on or near it (such as the customer's operation on or near the touch panel with fingers, stylus, etc. The program drives the corresponding connection device; other input devices may include, but are not limited to, one or more of physical keyboards, function keys (such as playback control keys, switch keys, etc.), trackballs, mice, and joysticks. The display unit 509 may be used to display information input by the customer or information provided to the customer and various menus of the computer device. The display unit 509 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 503 is the control center of the computer equipment, using various interfaces and lines to connect various parts of the entire computer, by running or executing the software programs and/or modules stored in the memory 503, and calling the data stored in the memory. Various functions and processing data. The one or more processors 503 shown in FIG. 5 can execute and realize the functions of the palmprint image acquisition module 100 to be corrected, the functions of the corrected image acquisition module 200 and the functions of the binarization processing module 300 shown in FIG. 4 . , the function of the cutting unit 210, the function of the curvature calculation unit 220, the function of the local palmprint area determination unit 221, the function of the evaluation score obtaining unit 222, the function of the adjustment unit 223, the function of the first pixel value obtaining unit 230, the second function Function of pixel value acquisition unit 240, function of correction unit 250, function of to-be-synthesized image acquisition unit 310, function of comparison unit 320, function of combined image acquisition unit 330, function of binarization processing unit 340, grayscale unit Function of 110, function of transformation unit 120.

在一种实施方式中,所述服务器包括一个或多个处理器503,以及一个或多个存储器505,一个或多个应用程序501,其中所述一个或多个应用程序501被存储在存储器505中并被配置为由所述一个或多个处理器503执行,所述一个或多个应用程序301配置用于执行以上实施例所述的掌纹提取方法。In one embodiment, the server includes one or more processors 503, and one or more memories 505, one or more application programs 501, wherein the one or more application programs 501 are stored in the memory 505 and configured to be executed by the one or more processors 503, and the one or more application programs 301 are configured to execute the palmprint extraction method described in the above embodiments.

本发明实施例提供的一种服务器,可实现上述掌纹提取方法的实施例,在本申请中通过对图像进行预处理,使得后续更容易的提取出掌纹,即使得手掌的掌纹更为突出显示,或者去掉手掌图像中的噪声,避免噪声影响掌纹的提取,使图像的显示效果更加清晰,提高后续对手掌掌纹提取的准确性。通过待修正掌纹图像中各像素点进行曲率值对像素点筛选,更进一步提高掌纹纹路提取的成功率;本申请实施例提供的一种掌纹提取方法,包括:获取手掌图像,对手掌图像进行预处理,获得待修正掌纹图像;对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像;对所述修正图像进行二值化处理,获得掌纹图像。本申请提供的实施例中,获取手掌图像,该手掌图像可以是整个手掌的图像,也可以是不包括手指的手掌图像,由于本申请中主要是对掌纹进行提取,可以是对不包括手指部分的手掌中的掌纹进行提取,当然也可以对整个手掌掌纹进行提取。为了提高手掌图像中掌纹纹路的识别率,避免噪音影响掌纹的提取,需要对手掌图像进行预处理,预处理后的图像则为待修正掌纹图像。在本申请提供的实施例中,对图像进行预处理,使得后续更容易的提取出掌纹,即使得手掌的掌纹更为突出显示,或者去掉手掌图像中的噪声,避免噪声影响掌纹的提取。进一步地,在前述的基础上,对手掌图像中的像素点进行遍历,获取每个像素点的RGB分量值。具体地,按照预设的遍历方式对手掌图像中的像素点进行遍历,获取每个像素点的RGB分量值,根据像素点的RGB分量值,对手掌图像作灰度化处理,得到灰化图像;对灰化图像进行灰度反转处理,得到灰度反转后的手掌图像,从而使灰化图像中原始的白色像素点变为黑色像素点,原始的黑色像素顶变为白色像素点,经过灰度反转处理后得到灰度反转后的手掌图像,即待修正掌纹图像。本实施例中,将图像中像素点的像素值范围设定在0-255之间,减少图像原始数据量,提高在后续处理计算中的计算效率;再对灰度化处理后的图像进行灰度反转处理,使图像的显示效果更加清晰,提高后续对手掌掌纹提取的准确性。在获得了待修正掌纹图像之后,则对待修正掌纹图像中各像素点进行曲率值进行计算,之后则基于各像素点的曲率值对待修正掌纹图像进行修正,获得修正图像。在具体的曲率计算过程中,是基于预设方向进行曲率的计算,以便于曲率值计算过程中都具有相应的基准,进而便于基于该基准进行像素点筛选,以获得像素合适的像素点,或者基于部分像素点的曲率值对待修正掌纹图像中的其他像素点的像素进行修正,获得便于进行手掌纹路的提取修正图像,更进一步地,为了提高掌纹纹路提取的成功率,在本申请提供的实施例中,还需要对修正图像进行二值化处理,该过程之后,图像中手掌纹路可以明显地和手掌的其他部分进行区分,得到手掌纹路。A server provided by an embodiment of the present invention can implement the above embodiments of the palmprint extraction method. In this application, by preprocessing the image, it is easier to extract the palmprint subsequently, that is, the palmprint of the palm is more easily extracted. Highlight or remove the noise in the palm image, so as to avoid the noise affecting the palm print extraction, so that the display effect of the image is clearer, and the accuracy of the subsequent palm print extraction is improved. Screening the pixels by the curvature value of each pixel in the palmprint image to be corrected further improves the success rate of palmprint extraction; a palmprint extraction method provided by an embodiment of the present application includes: acquiring a palm image, The image is preprocessed to obtain a palmprint image to be corrected; curvature values are calculated for each feature pixel in the palmprint image to be corrected, and the palmprint image to be corrected is performed based on the curvature value of the feature pixel. Correction is performed to obtain a corrected image; the corrected image is subjected to binarization processing to obtain a palmprint image. In the embodiment provided in this application, the palm image is obtained, and the palm image may be the image of the entire palm, or may be the palm image excluding the fingers. The palm prints in part of the palms are extracted, and of course the entire palm prints can also be extracted. In order to improve the recognition rate of palmprints in the palm image and avoid noise affecting the extraction of palmprints, the palm image needs to be preprocessed, and the preprocessed image is the palmprint image to be corrected. In the embodiments provided in this application, the image is preprocessed to make it easier to extract the palm prints later, that is, to make the palm prints of the palm more prominently displayed, or to remove the noise in the palm image, so as to avoid the noise affecting the palm prints. extract. Further, on the basis of the foregoing, the pixels in the palm image are traversed to obtain the RGB component value of each pixel. Specifically, the pixels in the palm image are traversed according to a preset traversal method, the RGB component value of each pixel is obtained, and the palm image is grayed according to the RGB component value of the pixel to obtain a grayed image. ; Perform grayscale inversion processing on the grayscale image to obtain a palm image after grayscale inversion, so that the original white pixels in the grayscale image become black pixels, and the top of the original black pixels become white pixels. After grayscale inversion processing, a palm image after grayscale inversion is obtained, that is, the palm print image to be corrected. In this embodiment, the pixel value range of the pixel points in the image is set between 0 and 255, which reduces the amount of original data of the image and improves the calculation efficiency in the subsequent processing calculation; The degree inversion processing makes the display effect of the image clearer and improves the accuracy of subsequent palm print extraction. After the palmprint image to be corrected is obtained, the curvature value of each pixel in the palmprint image to be corrected is calculated, and then the palmprint image to be corrected is corrected based on the curvature value of each pixel to obtain a corrected image. In the specific curvature calculation process, the curvature is calculated based on the preset direction, so that there is a corresponding benchmark in the calculation process of the curvature value, and then it is convenient to screen pixels based on the benchmark to obtain pixels with suitable pixels, or Pixels of other pixels in the palmprint image to be corrected are corrected based on the curvature values of some pixels to obtain a corrected image that is convenient for palmprint extraction. Furthermore, in order to improve the success rate of palmprint extraction, the present application provides In the embodiment of the invention, the corrected image also needs to be binarized. After this process, the palm pattern in the image can be clearly distinguished from other parts of the palm to obtain the palm pattern.

本发明实施例提供的服务器可以实现上述提供的掌纹提取方法的实施例,具体功能实现请参见方法实施例中的说明,在此不再赘述。The server provided by the embodiment of the present invention can implement the embodiment of the palmprint extraction method provided above. For specific function implementation, please refer to the description in the method embodiment, which will not be repeated here.

以上所述仅是本发明的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only some embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.

Claims (10)

1.一种掌纹提取方法,其特征在于,包括:1. a palmprint extraction method, is characterized in that, comprises: 获取手掌图像,对手掌图像进行预处理,获得待修正掌纹图像;Obtain the palm image, preprocess the palm image, and obtain the palm print image to be corrected; 对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像;Calculate the curvature value of each characteristic pixel point in the palmprint image to be corrected, and correct the palmprint image to be corrected based on the curvature value of the characteristic pixel point to obtain a corrected image; 对所述修正图像进行二值化处理,获得掌纹图像。Binarization is performed on the corrected image to obtain a palmprint image. 2.根据权利要求1所述的掌纹提取方法,其特征在于,所述对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像,包括:2. The palmprint extraction method according to claim 1, wherein the calculation of the curvature value of each characteristic pixel point in the palmprint image to be corrected is performed based on the curvature value of the characteristic pixel point. The palmprint image to be corrected is corrected to obtain a corrected image, including: 根据预设切割方向和预设像素间隔切割所述待修正掌纹图像,得到n条切割线,其中,n为正整数;Cut the palmprint image to be corrected according to the preset cutting direction and the preset pixel interval to obtain n cutting lines, where n is a positive integer; 计算每条所述切割线上各像素点的曲率值,基于该曲率值对所述待修正掌纹图像进行修正,获得修正图像,所述切割线上的各像素点为所述特征像素点。Calculate the curvature value of each pixel point on each of the cutting lines, and correct the palmprint image to be corrected based on the curvature value to obtain a corrected image, and each pixel point on the cutting line is the characteristic pixel point. 3.根据权利要求2所述的掌纹提取方法,其特征在于,所述基于该曲率值对所述待修正掌纹图像进行修正,获得修正图像,包括:3. The palmprint extraction method according to claim 2, wherein the correction of the palmprint image to be corrected based on the curvature value to obtain a corrected image comprises: 将所述曲率值大于零的像素点确定为评估像素点,将连续的所述评估像素点所在的区域确定为局部掌纹区域;Determining the pixel point with the curvature value greater than zero as the evaluation pixel point, and determining the area where the continuous evaluation pixel point is located as the local palmprint area; 获取所述局部掌纹区域的宽度,将所述宽度与所述局部掌纹区域内的各所述评估像素点的曲率值乘积,获得所述局部掌纹区域内的各所述评估像素点的评估分数;Obtain the width of the local palmprint area, multiply the width by the curvature value of each of the evaluation pixels in the local palmprint area, and obtain the width of each evaluation pixel in the local palmprint area. assessment score; 依据所述评估分数对所述评估像素点的像素值进行调整,得到每个所述评估像素点的修正像素值,基于所述修正像素值修正所述待修正掌纹图像,获得所述修正图像。Adjust the pixel value of the evaluation pixel point according to the evaluation score, obtain the modified pixel value of each evaluation pixel point, modify the palmprint image to be modified based on the modified pixel value, and obtain the modified image . 4.根据权利要求1所述的掌纹提取方法,其特征在于,所述获得修正图像之后,还包括:4. palmprint extraction method according to claim 1, is characterized in that, after described obtaining correction image, also comprises: 对于所述修正图像中的每个像素点,获取该像素点一侧且与该像素点相邻的第一相邻像素点的像素值,以及与该像素点间隔一个像素点的第一间隔像素点的像素值;其中,所述第一间隔像素点与所述第一相邻像素点位于该像素点的同一侧;For each pixel in the corrected image, obtain the pixel value of the first adjacent pixel on one side of the pixel and adjacent to the pixel, and the first interval pixel that is separated from the pixel by one pixel The pixel value of the point; wherein, the first interval pixel point and the first adjacent pixel point are located on the same side of the pixel point; 获取该像素点另一侧且与该像素点相邻的第二相邻像素点的像素值,以及与该像素点间隔一个像素点的第二间隔像素点的像素值;其中,所述第二间隔像素点与所述第二相邻像素点位于该像素点的同一侧,所述一侧与另一侧相对设置;Obtain the pixel value of the second adjacent pixel point on the other side of the pixel point and adjacent to the pixel point, and the pixel value of the second interval pixel point separated from the pixel point by one pixel point; The spaced pixel points and the second adjacent pixel points are located on the same side of the pixel point, and the one side is opposite to the other side; 依据所述一侧和另一侧的像素值对该像素点的像素值进行修正。The pixel value of the pixel point is modified according to the pixel value of the one side and the other side. 5.根据权利要求1至4任一项所述的掌纹提取方法,其特征在于,所述预设的切割方向包括至少2个方向;所述对所述修正图像进行二值化处理,获得掌纹图像,包括:5. The palmprint extraction method according to any one of claims 1 to 4, wherein the preset cutting directions include at least two directions; the modified image is subjected to binarization processing to obtain Palm print images, including: 将根据每个所述切割方向得到的所述修正图像作为待合成图像;Taking the corrected image obtained according to each of the cutting directions as the image to be synthesized; 对比同一像素点在各所述待合成图像中的像素值,将该像素点的最大像素值确定为该像素点在合成图像中的合成像素值;Comparing the pixel values of the same pixel in each of the images to be synthesized, the maximum pixel value of the pixel is determined as the synthesized pixel value of the pixel in the synthesized image; 依据每一个像素点的所述合成像素值获得合成图像;obtaining a composite image according to the composite pixel value of each pixel; 对所述合成图像进行二值化处理,得到所述掌纹图像。Binarization processing is performed on the composite image to obtain the palmprint image. 6.根据权利要求1至4任一项所述的掌纹提取方法,其特征在于,所述对手掌图像进行预处理,获得待修正掌纹图像,包括:6. palmprint extraction method according to any one of claim 1 to 4, is characterized in that, described palm image is preprocessed, obtains palmprint image to be corrected, comprising: 遍历所述手掌图像中,获取每个像素点的RGB分量值,通过灰度处理规则对所述每个像素点的RGB分量值进行灰度化处理,获得灰度化图像;Traverse the palm image, obtain the RGB component value of each pixel, and perform grayscale processing on the RGB component value of each pixel through a grayscale processing rule to obtain a grayscale image; 反转所述灰度化图像,采用滤波变换处理反转后的所述灰度化图像,获得所述待修正掌纹图像。The grayscaled image is inverted, and the inverted grayscaled image is processed by filtering transformation to obtain the palmprint image to be corrected. 7.一种掌纹提取装置,其特征在于,包括:7. A palmprint extraction device, characterized in that, comprising: 待修正掌纹图像获取模块,用于获取手掌图像,对手掌图像进行预处理,获得待修正掌纹图像;The palmprint image acquisition module to be corrected is used to acquire the palm image, and preprocess the palm image to obtain the palmprint image to be corrected; 修正图像获得模块,用于对所述待修正掌纹图像中的各特征像素点进行曲率值的计算,基于所述特征像素点的曲率值对所述待修正掌纹图像进行修正,获得修正图像;A corrected image obtaining module is used to calculate the curvature value of each characteristic pixel point in the palmprint image to be corrected, and correct the palmprint image to be corrected based on the curvature value of the characteristic pixel point to obtain a corrected image ; 二值化处理模块,用于对所述修正图像进行二值化处理,获得掌纹图像。The binarization processing module is configured to perform binarization processing on the corrected image to obtain a palmprint image. 8.根据权利要求7所述的掌纹提取装置,其特征在于,所述修正图像获得模块,包括:8. The palmprint extraction device according to claim 7, wherein the corrected image obtaining module comprises: 切割单元,用于根据预设切割方向和预设像素间隔切割所述待修正掌纹图像,得到n条切割线,其中,n为正整数;a cutting unit, configured to cut the palmprint image to be corrected according to a preset cutting direction and a preset pixel interval to obtain n cutting lines, where n is a positive integer; 曲率计算单元,用于计算每条所述切割线上各像素点的曲率值,基于该曲率值对所述待修正掌纹图像进行修正,获得修正图像,所述切割线上的各像素点为所述特征像素点。The curvature calculation unit is used to calculate the curvature value of each pixel point on each of the cutting lines, and based on the curvature value, the palmprint image to be corrected is corrected to obtain a corrected image, and each pixel point on the cutting line is the feature pixels. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现权利要求1至6任一项所述的掌纹提取方法。9. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the program is executed by a processor, the palmprint extraction method according to any one of claims 1 to 6 is realized . 10.一种服务器,其特征在于,包括:10. A server, characterized in that, comprising: 一个或多个处理器;one or more processors; 存储器;memory; 一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行根据权利要求1至6任一项所述的掌纹提取方法的步骤。one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs are configured to execute The steps of the palmprint extraction method according to any one of claims 1 to 6.
CN201910087378.2A 2019-01-29 2019-01-29 Palmprint extraction method, device, storage medium, and server Pending CN109902586A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910087378.2A CN109902586A (en) 2019-01-29 2019-01-29 Palmprint extraction method, device, storage medium, and server
PCT/CN2019/117915 WO2020155764A1 (en) 2019-01-29 2019-11-13 Palmprint extraction method and device, storage medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910087378.2A CN109902586A (en) 2019-01-29 2019-01-29 Palmprint extraction method, device, storage medium, and server

Publications (1)

Publication Number Publication Date
CN109902586A true CN109902586A (en) 2019-06-18

Family

ID=66944437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910087378.2A Pending CN109902586A (en) 2019-01-29 2019-01-29 Palmprint extraction method, device, storage medium, and server

Country Status (2)

Country Link
CN (1) CN109902586A (en)
WO (1) WO2020155764A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110414332A (en) * 2019-06-20 2019-11-05 平安科技(深圳)有限公司 Method and device for palmprint recognition
CN110473242A (en) * 2019-07-09 2019-11-19 平安科技(深圳)有限公司 A kind of texture characteristic extracting method, texture feature extraction device and terminal device
WO2020155764A1 (en) * 2019-01-29 2020-08-06 平安科技(深圳)有限公司 Palmprint extraction method and device, storage medium and server
CN111667520A (en) * 2020-06-09 2020-09-15 中国人民解放军63811部队 Infrared image and visible light image registration method and device and readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112651304B (en) * 2020-12-11 2023-02-10 西安电子科技大学 Reversible palmprint template generation method, device, equipment and storage medium based on feature fusion
CN114004757B (en) * 2021-10-14 2024-04-05 大族激光科技产业集团股份有限公司 Method, system, device and storage medium for removing interference in industrial image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002190031A (en) * 2000-10-11 2002-07-05 Hiroaki Kunieda Curve identification system
WO2018121552A1 (en) * 2016-12-29 2018-07-05 北京奇虎科技有限公司 Palmprint data based service processing method, apparatus and program, and medium
CN108256456A (en) * 2018-01-08 2018-07-06 杭州电子科技大学 A kind of finger vein identification method based on multiple features Threshold Fusion
CN108875621A (en) * 2018-06-08 2018-11-23 平安科技(深圳)有限公司 Image processing method, device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4134522B2 (en) * 2001-03-26 2008-08-20 日本電気株式会社 Finger and palm print image processing apparatus and method
CN105184216B (en) * 2015-07-24 2019-01-11 山东大学 A kind of digital extraction method of two area's palmmprint of the heart
CN108805023B (en) * 2018-04-28 2023-12-19 平安科技(深圳)有限公司 Image detection method, device, computer equipment and storage medium
CN109902586A (en) * 2019-01-29 2019-06-18 平安科技(深圳)有限公司 Palmprint extraction method, device, storage medium, and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002190031A (en) * 2000-10-11 2002-07-05 Hiroaki Kunieda Curve identification system
WO2018121552A1 (en) * 2016-12-29 2018-07-05 北京奇虎科技有限公司 Palmprint data based service processing method, apparatus and program, and medium
CN108256456A (en) * 2018-01-08 2018-07-06 杭州电子科技大学 A kind of finger vein identification method based on multiple features Threshold Fusion
CN108875621A (en) * 2018-06-08 2018-11-23 平安科技(深圳)有限公司 Image processing method, device, computer equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020155764A1 (en) * 2019-01-29 2020-08-06 平安科技(深圳)有限公司 Palmprint extraction method and device, storage medium and server
CN110414332A (en) * 2019-06-20 2019-11-05 平安科技(深圳)有限公司 Method and device for palmprint recognition
CN110473242A (en) * 2019-07-09 2019-11-19 平安科技(深圳)有限公司 A kind of texture characteristic extracting method, texture feature extraction device and terminal device
CN110473242B (en) * 2019-07-09 2022-05-27 平安科技(深圳)有限公司 Texture feature extraction method, texture feature extraction device and terminal equipment
CN111667520A (en) * 2020-06-09 2020-09-15 中国人民解放军63811部队 Infrared image and visible light image registration method and device and readable storage medium
CN111667520B (en) * 2020-06-09 2023-05-16 中国人民解放军63811部队 Registration method and device for infrared image and visible light image and readable storage medium

Also Published As

Publication number Publication date
WO2020155764A1 (en) 2020-08-06

Similar Documents

Publication Publication Date Title
CN109902586A (en) Palmprint extraction method, device, storage medium, and server
US10558841B2 (en) Method and apparatus for recognizing fingerprint ridge point
US9633269B2 (en) Image-based liveness detection for ultrasonic fingerprints
US7072523B2 (en) System and method for fingerprint image enhancement using partitioned least-squared filters
CN111899270B (en) Card frame detection method, device, equipment and readable storage medium
CN109919960B (en) Image continuous edge detection method based on multi-scale Gabor filter
US11475707B2 (en) Method for extracting image of face detection and device thereof
CN113723309A (en) Identity recognition method, identity recognition device, equipment and storage medium
WO2021027364A1 (en) Finger vein recognition-based identity authentication method and apparatus
WO2019232945A1 (en) Image processing method and apparatus, computer device and storage medium
CN106548176B (en) Finger vein image enhancement method based on adaptive guided filtering
CN108520214A (en) A finger vein recognition method based on multi-scale HOG and SVM
US10922535B2 (en) Method and device for identifying wrist, method for identifying gesture, electronic equipment and computer-readable storage medium
CN111259792B (en) DWT-LBP-DCT feature-based human face living body detection method
CN112529800B (en) Near-infrared vein image processing method for filtering hair noise
Hsia et al. Finger-vein recognition based on parametric-oriented corrections
CN111027637A (en) A kind of character detection method and computer readable storage medium
Ma et al. Efficient saliency analysis based on wavelet transform and entropy theory
CN115358948A (en) Low-illumination image enhancement method based on improved Retinex algorithm
CN113033256B (en) Training method and device for fingertip detection model
WO2021027155A1 (en) Verification method and apparatus based on finger vein image, and storage medium and computer device
CN110334597A (en) Finger vein recognition method and system based on Gabor neural network
CN118608917A (en) A method, system, device and medium for identifying image sensitive information
CN112085683A (en) Depth map reliability detection method in significance detection
CN117558044A (en) Face recognition method for wearing mask based on deep learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190618

RJ01 Rejection of invention patent application after publication