Image palm area extraction method and device

By using the semantic segmentation model to extract the palm area on portable terminal devices, the problem of background information interference in palmprint recognition technology is solved, efficient and accurate palm area extraction is achieved, and the application scope of the device is expanded.

CN110287771BActive Publication Date: 2024-09-10PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910390289.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-10
Publication Date
2024-09-10
Estimated Expiration
2039-05-10

AI Technical Summary

Technical Problem

Existing palmprint recognition technology has background information interference on portable terminal devices, and the equipment cost is high, which limits the scope of application of palmprint recognition.

Method used

An image palm area extraction method based on a semantic segmentation model is adopted. By training image models with different shooting backgrounds, the palm contour is determined and the palm area is extracted. The palm area extraction under different backgrounds is achieved by combining neural network technology and image contour texture technology.

Benefits of technology

It achieves efficient removal of background information on portable terminal devices, quickly and accurately extracts palm areas, reduces hardware and memory requirements, and expands the application scenarios of palmprint recognition technology, especially in general-purpose terminals such as mobile phones.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110287771B
    Figure CN110287771B
Patent Text Reader

Abstract

The present invention relates to the field of biometric recognition technology. An embodiment of the present invention provides a method and device for extracting a palm area from an image, wherein the method comprises: obtaining a human hand image to be identified; determining the palm contour of the palm area in the human hand image based on a semantic segmentation model, wherein the semantic segmentation model is trained using training human hand images with different shooting backgrounds and labeled with palm contours as input; and extracting a palm area from the human hand image based on the palm contour. Thus, by combining image contour texture technology with neural network technology, it is possible to quickly and accurately extract palm contours and corresponding palm areas from human hand images with different backgrounds, and it also has broad market application prospects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of biometric feature recognition, and in particular to an image palm area extraction and device. Background Art

[0002] As an emerging identity authentication technology, biometric identification is one of the most promising high-tech technologies in the world and is an international cutting-edge topic. Palmprint recognition is an important branch of biometric identification technology.

[0003] Currently, palmprint recognition is performed on fixed devices, with the palm placed on a plain background for recognition, and the palm does not need to be cut out to find its position. However, such fixed devices limit the scope of palmprint recognition, and the purchase and placement of equipment are very expensive.

[0004] In addition, when the palm print device is applied to a portable terminal device such as a mobile phone, a large amount of background information may exist in the palm photo, and this background information may seriously interfere with the palm print recognition process.

[0005] Therefore, a technical solution for removing background information of palmprint images that can be applied on portable terminal devices is currently a hot research direction in the industry. Summary of the invention

[0006] The purpose of the embodiments of the present invention is to provide a method and device for extracting the palm area of ​​an image, which can be applied on a portable terminal device to remove the background information of a palm print image and extract the palm area of ​​the image, thereby providing a guarantee for subsequent palm print recognition operations.

[0007] In order to achieve the above-mentioned purpose, an embodiment of the present invention provides, on the one hand, a method for extracting the palm area of ​​an image, comprising: obtaining a human hand image to be identified; determining the palm contour of the palm area in the human hand image based on a semantic segmentation model, wherein the semantic segmentation model is trained using training palm print area images with different shooting backgrounds and marked with palm contours as input; and extracting the palm area from the human hand image according to the palm contour.

[0008] On the other hand, an embodiment of the present invention provides an image palm area extraction device, comprising: an acquisition unit, used to acquire a human hand image to be identified; a palm contour determination unit, used to determine the palm contour of the palm area in the human hand image based on a semantic segmentation model, wherein the semantic segmentation model is trained using training palm print area images with different shooting backgrounds and marked with palm contours as input; and a palm area extraction unit, used to extract a palm area from the human hand image based on the palm contour.

[0009] Another aspect of an embodiment of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the above-mentioned method of the present application when executing the computer program.

[0010] Another aspect of an embodiment of the present invention provides a computer storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above-mentioned method of the present application when executed by a processor.

[0011] Through the above technical solution, the palm contour of the palm area in the hand image is determined by using the semantic segmentation model trained by the training palm print area image with the palm contour annotated, and then the palm area is extracted from the hand image based on the palm contour; thus, the present invention combines the image contour texture technology and the neural network technology, and can quickly and accurately extract the palm contour and the corresponding palm area from the hand image. On the other hand, the training hand images have different shooting backgrounds, so the palm area extraction operation of the hand images with different backgrounds can be completed based on the semantic segmentation model. In addition, the semantic segmentation model has low data volume requirements and memory consumption for the feature sample images, so that the technical solution can be implemented with the help of general-purpose processors and cameras, has a very wide range of application scenarios, and can be widely used in general-purpose terminals such as mobile phones, providing a basis for the market promotion of palmprint recognition technology.

[0012] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0014] Figure 1 is a flow chart of a method for extracting a palm region from an image according to an embodiment of the present invention;

[0015] Figure 2A Shown is a schematic diagram of a human hand image of a first example;

[0016] Figure 2B The method for extracting the palm area of ​​an image according to an embodiment of the present invention is shown. Figure 2A A schematic diagram of a human hand contour determined by a human hand image;

[0017] Figure 3A Shown is a schematic diagram of a second example of a human hand image;

[0018] Figure 3BThe method for extracting the palm area of ​​an image according to an embodiment of the present invention is shown. Figure 3A Schematic diagram of the palm area extracted from a human hand image;

[0019] Figure 4A A schematic diagram showing multiple palm regions extracted by applying the method for extracting palm regions from an image according to an embodiment of the present invention;

[0020] Figure 4B The method for extracting the palm area of ​​an image according to an embodiment of the present invention is shown. Figure 4A Schematic diagram of the palm area after the holes in are filled;

[0021] Figure 5 A flowchart showing a training process for the semantic segmentation model in a method for extracting a palm region from an image according to an embodiment of the present invention is shown;

[0022] Figure 6 A principle flow chart of a method for extracting a palm region from an image according to an embodiment of the present invention is shown;

[0023] Figure 7 is a structural block diagram of an image palm region extraction device according to an embodiment of the present invention;

[0024] Figure 8 is a structural block diagram of an image palm region extraction device according to another embodiment of the present invention;

[0025] Fig. 9 It is a structural block diagram of a physical device equipped with an image palm region extraction device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0027] like Figure 1 As shown, a method for extracting a palm region from an image according to an embodiment of the present invention includes:

[0028] S11, obtaining a hand image to be identified.

[0029] Regarding the implementing subject of the method of the embodiment of the present invention, on the one hand, it can be a dedicated integrated component, a dedicated server or a dedicated terminal, etc. dedicated to palmprint recognition or palm area extraction; on the other hand, it can also be a general-purpose server or terminal, wherein the general-purpose server or terminal (such as a smart phone, a tablet computer, etc.) can be installed with a module for palmprint recognition or palm area extraction or configured with a program code for image palm area extraction, and all of the above belong to the protection scope of the present invention.

[0030] Regarding the method of acquiring the human hand image, it can be calling the camera of the terminal to collect the human hand image, or the terminal or the server can receive the human hand image uploaded from the bottom layer.

[0031] S12. Determine a palm contour of a palm area in the hand image based on a semantic segmentation model, wherein the semantic segmentation model is trained using training hand images with different shooting backgrounds and labeled with palm contours as input.

[0032] The different shooting backgrounds of the training hand images may be diverse, for example, they may correspond to shooting backgrounds of the hand in indoor backgrounds, outdoor backgrounds, and near skin color backgrounds. In addition, the annotation process of the palm contour in the training hand images adopted by the semantic segmentation model as a neural network model may be non-automatic, semi-automatic, or fully automatic, for example, it may be to use an existing image contour extraction tool (magic wand tool) and perform adaptive adjustment and optimization, so as to achieve accurate extraction of the contour of the training hand images.

[0033] S13. Extracting a palm area from the hand image according to the palm contour.

[0034] Among them, on the one hand, the range covered by the palm contour in the human hand image can be directly extracted as the palm area. On the other hand, the range covered by the palm contour can also be adjusted and optimized accordingly as the final palm area, such as filling the hole, and the above implementation methods all belong to the protection scope of the present invention.

[0035] In the embodiment of the present invention, the semantic segmentation model has low requirements on image pixels and hardware memory, so that it can be applied in smart terminals, such as mobile phones integrated with specific application APPs; in addition, by using human hand images with different backgrounds to train the semantic segmentation model, it can realize the determination operation of the palm contour under various backgrounds. Figure 2A Shown are examples of images of human hands, and Figure 2B Shown for Figure 2A An example of a human hand contour determined from a human hand image; Figure 3A Shown are examples of images of human hands, and Figure 3B Shows from Figure 3A An example of the palm area extracted from a human hand image. From this, it can be seen that whether in a general background (such as Figure 2A-2B ) or in the face background such as the skin color background (such as Figure 3A -B), the background information in the hand image can be eliminated and the palm area can be extracted better.

[0036] In some embodiments, the palm contour determination process can also be achieved in the following manner: based on a semantic segmentation model, a closed image contour is segmented in the human hand image; in addition, when there are multiple closed image contours, the area of ​​the region contained in the multiple closed image contours is calculated, and the closed image contour with the largest area is determined as the palm contour.

[0037] It can be understood that a qualified hand area is a complete closed area, and the largest closed area in the hand image should be the palm contour corresponding to the palm area; therefore, the semantic segmentation model can be trained and screened based on this rule.

[0038] like Figure 4A , which shows multiple examples of palm areas extracted by applying the image palm area extraction method of an embodiment of the present invention. Due to reasons such as lighting, some small areas are not effectively extracted and will appear to have holes (such as the examples marked with circles in the figure).

[0039] In view of this, the embodiment of the present invention also proposes to detect and fill the hole in the following manner: detect whether there are other closed image contours within the palm contour; if there are other closed image contours, determine the other closed image contours as the hole area; and fill the hole area according to the content of the human hand image in the palm area, for example, the hole area can be directly filled with the image content area near the hole area. Figure 4B , which shows the Figure 4A The example after filling the holes in the palm area, thereby achieving the extraction of the complete palm area and solving the problem that the subsequent palmprint recognition operation cannot be performed normally due to the existence of holes in the palm area.

[0040] like Figure 5 As shown, the training process for the semantic segmentation model in the method for extracting the palm area of ​​an image according to an embodiment of the present invention includes:

[0041] S51. Acquire a plurality of training human hand images, wherein the plurality of training human hand images include training human hand images corresponding to different photographing backgrounds.

[0042] As mentioned above, in order to make the performance of the semantic segmentation model robust enough, it needs to be trained with input of human hand images in various photographic backgrounds, so as to extract the palm contour from human hand images in indoor, outdoor and near-skin-color backgrounds.

[0043] S52: extracting palm contours corresponding to a plurality of training hand images.

[0044] As described above, the palm contour in the human hand image may be extracted or annotated automatically or semi-automatically.

[0045] S53: input the multiple training human hand images with the palm contours into the semantic segmentation model to train the semantic segmentation model, so that the trained semantic segmentation model can segment the palm contours from human hand images with different backgrounds.

[0046] In some embodiments, the semantic segmentation model may include an encoder network and a decoder network, and its specific training process may be based on the encoder network in the semantic segmentation model, extracting the palm contour features of each of the input multiple training human hand images; based on the decoder network in the semantic segmentation model, using the pooling index calculated in the maximum pooling step of the corresponding encoder network to perform a nonlinear upsampling operation to map the extracted palm contour features to a full input resolution feature map for pixel classification, thereby training the semantic segmentation model. Among them, since the upsampled map is sparse, it is then convolved with a trainable filter to produce a dense feature map, and the role of the decoder network is to map the low-resolution encoder feature map to the full input resolution feature map for pixel classification. In this way, a trade-off between memory, accuracy, and image pixels involved in good segmentation performance is achieved, and even with low-resolution image input, the full input resolution feature map can still be achieved, thereby improving the scope of application of the embodiments of the present invention.

[0047] In some implementations, batch normalization (bn) processing may be used for training, thereby accelerating the training rate.

[0048] Specifically, the training process for the semantic segmentation model also includes: configuring a batch normalization layer for each convolution layer in the semantic segmentation model, and setting a linear rectifier function activation layer (Rectified Linear Unit, ReLU) after the batch normalization layer, wherein each convolution layer is a training human hand image with a palm contour corresponding to different photographic backgrounds; based on the batch normalization layer, during forward propagation during training, the batch normalization layer only saves the mean and variance of the input weights, and when the weight output returns to the convolution layer, it is still the weight after the original convolution, and, during backward propagation during training, according to the mean and variance in the batch normalization layer, each convolution layer is combined with the linear rectifier function activation layer to perform chain derivation to obtain the gradient and the current training rate. Therefore, ReLU is an improvement on the traditional activation function sigmoid, which better solves the problem of gradient disappearance during training.

[0049] Exemplarily, the semantic segmentation model may be a Segnet model. As shown in Table 1 below, the specific structural composition and parameters of the Segnet model are shown. The segmentation module SegNet includes multiple convolutional layers and multiple deconvolutional layers in sequence (5 layers as shown in Table 1 below).

[0050]

[0051] Table 1

[0052] The SegNet network is trained using palm images and their corresponding labels. Preferably, more than 2,000 annotated images should be selected to train the SegNet network. Specifically, the input of the model training is a plurality of palm print area images annotated with the boundaries of the user's palms, and the output is to classify the palm area pixels and the background area pixels, so that when the SegNet model is applied, the corresponding palm area and background area can be extracted from the palm image with the background, thereby realizing the separation of the palm from the background.

[0053] The specific training process can be: input five frames of palm images with pre-annotated palm boundaries associated with the same application scenario (for example, with the same background information) into the SegNet network, and iteratively train the SegNet network using the Adam algorithm with momentum to obtain the parameters of the SegNet network. In the specific implementation of the Adam algorithm with momentum, the momentum is set to 0.9. A total of 250,000 iterations, a learning rate of 0.0001, and a batch size of 4. After the training is completed, the parameters of the deep neural network are saved.

[0054] The encoder network and decoder network are trained using the encoded image. In the encoder process of SegNet, the role of convolution is to extract features. The convolution used by SegNet is the same convolution, that is, the image size is not changed after convolution; in the decoder process, the same convolution is also used, but the role of convolution is to enrich the information of the upsampling image, so that the information lost in the pooling process can be obtained through learning in the decoder. The role of the decoder network is to map the low-resolution encoder feature map to the full input resolution feature map for pixel classification.

[0055] The SegNet network upsamples its lower resolution input feature map at the decoder. Specifically, the decoder uses the pooling index calculated in the maximum pooling step of the corresponding encoder to perform nonlinear upsampling. This eliminates the need for learning upsampling. The upsampled map is sparse and then convolved with a trainable filter to produce a dense feature map. As a result, a trade-off between memory and accuracy involved in good segmentation performance is achieved. This makes the technical solution have a very wide range of application scenarios, for example, it can be applied in the application scenario of mobile phone camera images.

[0056] More preferably, batch normalization can be used for training to speed up the training. Among them, the main function of batch normalization is to speed up the learning speed. Before the activation function, a bn (batch normalization) layer is added to each convolution layer in SegNet, and the bn layer is followed by a ReLU (Rectified Linear Unit) activation layer. Among them, based on the BN layer, the forward propagation during training, the bn layer standardizes the eigenvalues ​​(weights) after convolution, but the output remains unchanged, that is, the bn layer only saves the mean and variance of the input weights, and the weight output returns to the convolution layer. It is still the weight after the original convolution; and, during training, backward propagation, according to the mean and variance in the bn layer, combined with each convolution layer and the ReLU layer for chain derivation, the gradient is obtained to calculate the current learning rate. ReLU is an improvement on the traditional activation function sigmoid, which is mainly well solved in the problem of gradient disappearance.

[0057] like Figure 6 As shown, the principle flow of the method for extracting the palm area from an image according to an embodiment of the present invention, the embodiment of the present invention provides a method for extracting the palm part from a palm image to eliminate the palm background information based on the Segnet network of FCN, wherein the semantic segmentation method is specific to the pixel level when processing the image, that is, each pixel in the image will be assigned to a certain object category, and the boundary of each object will be marked. Therefore, unlike the classification purpose, the relevant model must have dense prediction capabilities at the pixel level. In the method of the embodiment of the present invention, it mainly involves the training stage based on the Segnet semantic segmentation model and the application stage based on the Segnet semantic segmentation model.

[0058] 1) Training phase for the Segnet semantic segmentation model

[0059] S61, obtaining a palm image with marked palm boundaries.

[0060] First, it is necessary to obtain a palm image, and then the palm image needs to be manually annotated. Regarding the method of obtaining the palm image, it can be by collecting images related to human hands generated by taking pictures with a camera (such as a mobile phone camera), which can be specifically taken manually, or can also be obtained by searching and downloading keywords on the Internet, etc. These photographed palm images or palm images downloaded from the Internet will have background areas and palm areas. Regarding the manual annotation of the palm area of ​​the palm image, it can be based on a pure manual annotation operation. In addition, it can also be based on an existing pixel adaptive matching segmentation algorithm tool (such as a magic wand tool) to identify the boundary, and then the adaptively identified boundary is annotated and adjusted, thereby realizing the annotation of the palm area and the background area in the photo image, and then labeling the training palm image. As an example, a total of about 3,000 photos of 400 people taken with a mobile phone can be collected, and the photos can be taken indoors and outdoors with backgrounds including desks, computers, trees, buildings, etc. This will help the Segnet model to distinguish and recognize different backgrounds; further, since both faces and palms are skin-colored, a major difficulty in the current palm area extraction process is how to accurately extract the palm area from the palm image with a face background. Therefore, the technical solution proposes that some pictures with a face background and some pictures with a background close to skin color can be specially collected as training samples to train the Segnet model, thereby realizing the recognition of the palm area from images with a face background or a background close to skin color.

[0061] S62, inputting the palm image with the palm boundary marked to the vgg Segnet model to train the model.

[0062] 2) Application steps for the Segnet semantic segmentation model

[0063] The application of the Segnet semantic segmentation model can effectively separate the palm from the background area. In addition, the Segnet semantic segmentation model has low data volume requirements and memory consumption for feature sample images, and can be applied in mobile phones, for example, it can be integrated in mobile phone apps.

[0064] S63: The user calls the camera module to take a photo of the palm of the human body.

[0065] Specifically, S63 may correspond to different application scenarios, for example, a user may open a mobile phone APP and call a corresponding camera module through a specific user operation.

[0066] S64. Call the Segnet semantic segmentation model to segment the background area and the palm area in the human palm image.

[0067] Based on the Segnet semantic segmentation model, the palm area and background area in the human palm image are derived end-to-end, realizing the rapid segmentation of the palm area; and, because the Segnet semantic segmentation model has low data volume requirements and memory consumption for feature sample images, the embodiment of the present invention can be implemented with the help of a general-purpose processor and camera, and has a very wide range of application scenarios, for example, it can be applied in APP. Because at present, the current palmprint recognition technology is still based on ordinary encoding and decoding technology, which has very high requirements for image pixels and image area specifications, so it can generally only be applied to fixed equipment. Through this technical solution, the palm area can be extracted from an image with a cluttered background, not limited to the standardized palm placement position, and the training and recognition process based on the Segnet model (as described above) can also be implemented for low image pixels, so that the technical solution can be widely used in mobile terminals, such as being transplanted in mobile phone APPs.

[0068] In addition, because Segnet has more recognition weights based on color and brightness during the recognition process, when taking a photo of the palm, there may be uneven color or brightness on the palm in the image, resulting in unrecognized holes on the palm. At this time, we propose to use Segnet only to find the outline of the palm boundary, so as to locate the palm boundary in the image; then, mark the outline at the corresponding position in the original image, and segment the original image outline area, so as to prevent the appearance of holes in the palm recognition process.

[0069] like Figure 7 As shown, an image palm region extraction device according to an embodiment of the present invention comprises:

[0070] An acquisition unit 701 is used to acquire a hand image to be identified;

[0071] A palm contour determining unit 702 is used to determine the palm contour of the palm area in the human hand image based on a semantic segmentation model, wherein the semantic segmentation model is trained using training human hand images with different shooting backgrounds and marked with palm contours as input;

[0072] The palm region extraction unit 703 is used to extract the palm region from the human hand image according to the palm contour.

[0073] Preferably, the palm contour determination unit 702 is also used to segment a closed image contour in the human hand image based on a semantic segmentation model, and, when there are multiple closed image contours, calculate the area of ​​the regions contained in the multiple closed image contours, and determine the closed image contour corresponding to the largest area as the palm contour.

[0074] Preferably, the palm area extraction unit 703 is also used to detect whether there are other closed image contours within the palm contour, and if so, determine the other closed image contours as hole areas, and fill the hole areas according to the content of the human hand image within the palm area.

[0075] In specific application scenarios, such as Figure 8 As shown, the device also includes a training unit 704, which is used to obtain multiple training human hand images, wherein the multiple training human hand images include training human hand images corresponding to different photographing backgrounds; extract the palm contours corresponding to the multiple training human hand images respectively; input the multiple training human hand images with the palm contours into the semantic segmentation model to train the semantic segmentation model, so that the trained semantic segmentation model can segment the palm contours from the human hand images with different backgrounds.

[0076] Preferably, the training unit 704 is also used to extract palm contour features of each of the multiple input training hand images based on the encoder network in the semantic segmentation model, and, based on the decoder network in the semantic segmentation model, use the pooling index calculated in the maximum pooling step of the corresponding encoder network to perform a nonlinear upsampling operation to map the extracted palm contour features to a full input resolution feature map for pixel classification, thereby training the semantic segmentation model.

[0077] Preferably, the semantic segmentation model is a convolutional neural network, wherein the training unit 704 is also used to configure a batch normalization layer for each convolution layer in the semantic segmentation model, and to set a linear rectification function activation layer after the batch normalization layer, wherein each convolution layer is a training hand image with a palm contour corresponding to different photographing backgrounds, and, based on the batch normalization layer, during forward propagation during training, the batch normalization layer only saves the mean and variance of the input weights, and when the weight output returns to the convolution layer, it is still the weight after the original convolution, and, during backward propagation during training, according to the mean and variance in the batch normalization layer, each convolution layer is combined with the linear rectification function activation layer to perform chain derivation to obtain the gradient and the current training rate.

[0078] In some embodiments, the semantic segmentation model is a Segnet model.

[0079] It should be noted that for other corresponding descriptions of the functional units involved in the image palm region extraction device provided in the embodiment of the present invention, reference can be made to Figure 1-6 The corresponding description in will not be repeated here.

[0080] Based on the above Figure 1-6 The method shown in the figure, accordingly, the embodiment of the present invention also provides a storage device on which a computer program is stored, and when the program is executed by a processor, the above-mentioned Figure 1-6 The palm area extraction method of the image is shown.

[0081] Based on the above Figure 1-6 The method shown and Figure 7 , 8 In order to achieve the above-mentioned purpose, the embodiment of the virtual device shown in FIG. Fig. 9 As shown, the embodiment of the present invention further provides a physical device 90 of the image palm region extraction device, the physical device 90 includes a storage device 901 and a processor 902; the storage device 901 is used to store a computer program; the processor 902 is used to execute the computer program to implement the above-mentioned Figure 1-6 The palm area extraction method of the image is shown.

[0082] By applying the technical solution of the present invention, the palm contour of the palm area in the hand image is determined by using the semantic segmentation model trained by the training palm print area image with the palm contour annotated, and then the palm area is extracted from the hand image based on the palm contour; thus, the present invention combines the image contour texture technology and the neural network technology, and can quickly and accurately extract the palm contour and the corresponding palm area from the hand image. On the other hand, the training hand images have different shooting backgrounds, so the palm area extraction operation of the hand images with different backgrounds can be completed based on the semantic segmentation model. In addition, the semantic segmentation model has low data volume requirements and memory consumption for the feature sample images, so that the technical solution can be implemented with the help of a general-purpose processor and camera, has a very wide range of application scenarios, and can be widely used in general-purpose terminals such as mobile phones, providing a basis for the market promotion of palmprint recognition technology.

[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0084] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.

[0085] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.

[0086] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.

[0087] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.

Claims

1. A method for extracting the palm area of ​​an image, characterized in that: include: Obtain a human hand image to be identified; Determining a palm contour of a palm region in the hand image based on a semantic segmentation model, wherein the semantic segmentation model is trained using training hand images with different shooting backgrounds and labeled with palm contours as input; Extracting a palm area from the hand image according to the palm contour; The determining of the palm contour of the palm area in the human hand image based on the semantic segmentation model comprises: Based on the semantic segmentation model, segmenting a closed image contour in the human hand image; When there are multiple closed image contours, calculating the area of ​​the regions included in the multiple closed image contours, and determining the closed image contour corresponding to the largest area as the palm contour; The method also includes a training process for the semantic segmentation model, including: Acquire a plurality of training human hand images, wherein the plurality of training human hand images include training human hand images corresponding to different photographing backgrounds; Extracting the palm contours corresponding to the plurality of training hand images respectively; The multiple training human hand images with the palm contours are input into the semantic segmentation model to train the semantic segmentation model, so that the trained semantic segmentation model can segment the palm contours from human hand images with different backgrounds.

2. The method according to claim 1, characterized in that: The step of extracting a palm area from the hand image according to the palm contour comprises: Detecting whether there are other closed image contours within the palm contour; If the other closed image contour exists, determining the other closed image contour as a hole area; and The hole area is filled according to the content of the human hand image in the palm area.

3. The method according to claim 1, characterized in that The step of inputting the plurality of training human hand images having the palm contours into the semantic segmentation model to train the semantic segmentation model comprises: Extracting palm contour features of each of the plurality of input training hand images based on the encoder network in the semantic segmentation model; Based on the decoder network in the semantic segmentation model, a nonlinear upsampling operation is performed using the pooling index calculated in the corresponding maximum pooling step of the encoder network to map the extracted palm contour features to a full input resolution feature map for pixel classification, thereby training the semantic segmentation model.

4. The method according to claim 1, characterized in that: The semantic segmentation model is a convolutional neural network, wherein the training process for the semantic segmentation model further includes: A batch normalization layer is configured for each convolution layer in the semantic segmentation model, and a linear rectification function activation layer is further arranged after the batch normalization layer, wherein each convolution layer is a training human hand image with a palm contour corresponding to different photographic backgrounds; Based on the batch normalization layer, during forward propagation during training, the batch normalization layer only saves the mean and variance of the input weights, and when the weight output returns to the convolutional layer, it is still the weight after the original convolution, and, Backward propagation is performed during training, and chain derivation is performed in combination with each convolutional layer and a linear rectification function activation layer according to the mean and the variance in the batch normalization layer to obtain a gradient and a current training rate.

5. The method according to claim 1, wherein: The semantic segmentation model is a Segnet model, which includes multiple groups of convolutional layers and corresponding deconvolution layers, all of which use the same convolution, wherein the convolutional layer is an encoder network for extracting features, and the deconvolution layer is a decoder network for performing nonlinear upsampling operations.

6. A device for extracting palm area from an image, characterized in that: include: An acquisition unit, used for acquiring a human hand image to be identified; A palm contour determining unit, configured to determine the palm contour of the palm region in the human hand image based on a semantic segmentation model, wherein the semantic segmentation model is trained using training human hand images with different shooting backgrounds and annotated with palm contours as input; A palm region extraction unit, configured to extract a palm region from the human hand image according to the palm contour; The palm contour determining unit is further used to segment a closed image contour in the human hand image based on a semantic segmentation model, and, when there are multiple closed image contours, calculate the area of ​​regions included in the multiple closed image contours, and determine the closed image contour corresponding to the largest area as the palm contour; The device further includes a training unit, which is used to obtain a plurality of training human hand images, wherein the plurality of training human hand images include training human hand images corresponding to different photographing backgrounds; Extracting the palm contours corresponding to the multiple training hand images respectively; inputting the multiple training hand images with the palm contours into the semantic segmentation model to train the semantic segmentation model, so that the trained semantic segmentation model can segment the palm contours from the hand images with different backgrounds.

7. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 5 when executing the computer program.

8. A computer storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.