Customer identification method and device

By classifying face parts and extracting features from the face images at self-service terminals at bank outlets, and matching the face feature recognition model with the customer face feature library, the problem of face recognition accuracy is solved and the accuracy of customer recognition is improved. and service experience.

CN118747907APending Publication Date: 2024-10-08INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410906584.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of face recognition in self-service terminals at bank outlets is affected by lighting conditions, facial expressions, image quality and other factors, resulting in customer recognition errors or failure to recognize, which reduces the customer's service experience.

Method used

By obtaining the face image of the customer to be identified, dividing it into multiple face parts, extracting the characteristics of each face part, and using the facial feature recognition model to match the pre-established customer face feature library to improve the recognition accuracy. .

Benefits of technology

By distinguishing facial parts for feature extraction, the accuracy of customer identification is improved, the customer identity verification capabilities of self-service terminals at bank outlets are enhanced, and the customer service experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747907A_ABST
    Figure CN118747907A_ABST
Patent Text Reader

Abstract

The invention provides a customer identification method and device, and relates to the technical field of artificial intelligence. The method comprises the following steps: acquiring a face image of a to-be-recognized customer; dividing the face image of the customer to be recognized into a plurality of face parts, and obtaining each face part image; performing feature extraction on each face part image to obtain a recognition feature corresponding to each face part image; according to the recognition features corresponding to the face part images and a face feature recognition model, face features of the to-be-recognized customer are obtained; wherein the face feature recognition model is obtained based on face image sample data and corresponding face label training; according to the face features of the to-be-recognized customer and a customer face feature library, obtaining a recognition result of the to-be-recognized customer; wherein the customer face feature library is established in advance. The device is used for executing the method. According to the client identification method and device provided by the embodiment of the invention, the accuracy of client identification is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a customer identification method and device. Background Art

[0002] At banking service outlets, personalized financial services can be provided to customers by identifying their identities when they enter the outlets.

[0003] In the prior art, customer identification through face is a relatively common method. However, in practical applications, the accuracy of face recognition is affected by factors such as lighting conditions, changes in facial expressions, image quality, and makeup. If a bank branch's self-service terminal encounters a face recognition error or fails to recognize a face after multiple attempts when identifying a customer through face, the customer's service experience will be reduced. Therefore, how to propose a customer identification method that can identify customers more accurately has become an important issue that needs to be solved in this field. Summary of the invention

[0004] In view of the problems in the prior art, an embodiment of the present invention provides a customer identification method and device, which can at least partially solve the problems in the prior art.

[0005] In a first aspect, the present invention provides a customer identification method, comprising:

[0006] Obtaining a facial image of the customer to be identified;

[0007] Dividing the facial image of the customer to be identified into a plurality of facial parts to obtain an image of each facial part;

[0008] Extract features from each facial part image to obtain identification features corresponding to each facial part image;

[0009] Obtain the facial features of the customer to be identified based on the identification features corresponding to the images of various facial parts and a facial feature recognition model; wherein the facial feature recognition model is obtained by training based on facial image sample data and corresponding facial labels;

[0010] The identification result of the customer to be identified is obtained based on the facial features of the customer to be identified and a customer facial feature library; wherein the customer facial feature library is pre-established.

[0011] In a second aspect, the present invention provides a customer identification device, comprising:

[0012] An acquisition module, used to acquire a facial image of a customer to be identified;

[0013] A division module, used for dividing the facial image of the customer to be identified into a plurality of facial parts to obtain an image of each facial part;

[0014] A feature extraction module is used to extract features from each face part image to obtain identification features corresponding to each face part image;

[0015] An acquisition module, used to obtain the facial features of the customer to be identified according to the identification features corresponding to the images of various facial parts and a facial feature recognition model; wherein the facial feature recognition model is obtained by training based on facial image sample data and corresponding facial labels;

[0016] The recognition module is used to obtain the recognition result of the customer to be recognized based on the facial features of the customer to be recognized and the customer facial feature library; wherein the customer facial feature library is pre-established.

[0017] In a third aspect, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the program to implement the customer identification method described in any one of the above embodiments.

[0018] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the customer identification method described in any of the above embodiments is implemented.

[0019] In a fifth aspect, the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the customer identification method described in any of the above embodiments.

[0020] The customer identification method and device provided by the embodiment of the present invention obtain the facial image of the customer to be identified; divide the facial image of the customer to be identified into multiple facial parts to obtain each facial part image; perform feature extraction on each facial part image to obtain the identification feature corresponding to each facial part image; obtain the facial features of the customer to be identified based on the identification features corresponding to each facial part image and a facial feature recognition model; obtain the identification result of the customer to be identified based on the facial features of the customer to be identified and a customer facial feature library; perform facial recognition by distinguishing facial parts to extract features, thereby improving the accuracy of customer identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0022] Figure 1 It is a flowchart of a customer identification method provided by the first embodiment of the present invention.

[0023] Figure 2 It is a flowchart of a customer identification method provided by the second embodiment of the present invention.

[0024] Figure 3 It is a flowchart of a customer identification method provided by the third embodiment of the present invention.

[0025] Figure 4 It is a flowchart of a customer identification method provided by the fourth embodiment of the present invention.

[0026] Figure 5 It is a schematic diagram of the structure of a customer identification device provided in the fifth embodiment of the present invention.

[0027] Figure 6 It is a schematic diagram of the structure of a customer identification device provided by the sixth embodiment of the present invention.

[0028] Figure 7 It is a schematic diagram of the structure of a customer identification device provided by the seventh embodiment of the present invention.

[0029] Figure 8 It is a schematic diagram of the structure of a customer identification device provided in the eighth embodiment of the present invention.

[0030] Fig. 9 It is a schematic diagram of the physical structure of an electronic device provided by the ninth embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.

[0032] The information collected in the technical solution of this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0033] Provide users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.

[0034] In order to facilitate understanding of the technical solution provided by this application, the relevant contents of the technical solution of this application are first explained below.

[0035] Face recognition: A biometric technology that identifies people based on their facial features. It is a series of related technologies that use a camera or camcorder to collect images or video streams containing faces, automatically detect and track faces in images, and then perform face recognition on the detected faces.

[0036] Image processing: It is a technology that uses computers to process image information. It mainly includes image digitization, image enhancement and noise reduction, image data processing and restoration, image segmentation and image recognition.

[0037] Image acquisition: a means of acquiring real-time image information using modern technology, such as using cameras or other video equipment to acquire images. It plays an important role in modern multimedia technology. It is widely used in daily life, biomedical fields, aerospace and other fields. The speed and quality of image acquisition directly affect the overall effect of the product.

[0038] The following describes the specific implementation process of the client identification method provided by the embodiment of the present invention by taking the server as the execution subject. It is understandable that the execution subject of the client identification method provided by the embodiment of the present invention is not limited to the server.

[0039] Figure 1 FIG. 1 is a flow chart of a customer identification method provided by the first embodiment of the present invention. Figure 1 As shown, the customer identification method provided by the embodiment of the present invention includes:

[0040] S101, obtaining a facial image of a customer to be identified;

[0041] Specifically, a facial image of a customer may be collected by a camera or other device as the facial image of the customer to be identified. The server may obtain the facial image of the customer to be identified.

[0042] S102, dividing the facial image of the customer to be identified into a plurality of facial parts, and obtaining an image of each facial part;

[0043] Specifically, the same parts of the faces of different people are different, and the server can obtain images of various face parts from the face image of the client to be identified. The face parts include but are not limited to eyes, nose, forehead, cheeks, chin, mouth, etc., which are set according to actual needs and are not limited in the embodiment of the present invention.

[0044] S103, extracting features from each face part image to obtain identification features corresponding to each face part image;

[0045] Specifically, the server extracts features based on each face part image, and can obtain identification features corresponding to each face part image. Since the same parts of the faces of different people are different, the extracted features should also be different.

[0046] S104, obtaining facial features of the customer to be identified based on the identification features corresponding to the images of various facial parts and a facial feature recognition model; wherein the facial feature recognition model is obtained by training based on facial image sample data and corresponding facial labels;

[0047] Specifically, the server inputs the identification features corresponding to each face part image into the face feature recognition model, and can output the face features of the customer to be identified. The face features of the customer to be identified are obtained by the identification features of each face part image, so that the face features of the customer to be identified are more accurate. The face feature recognition model is obtained by training based on face image sample data and corresponding face labels.

[0048] S105. Obtain an identification result of the customer to be identified based on the facial features of the customer to be identified and a customer facial feature database; wherein the customer facial feature database is pre-established.

[0049] Specifically, the server compares the facial features of the customer to be identified with the facial features of each known customer in the customer facial feature library, and can obtain the identification result of the customer to be identified. If the facial features of a known customer that match the facial features of the customer to be identified are queried, then the customer to be identified can be identified as a known customer, and the known customer is used as the identification result of the customer to be identified. If the facial features of a known customer that match the facial features of the customer to be identified are not queried, then the customer to be identified is not a known customer, and the identification result of the customer to be identified can be an unknown customer or a new customer. Among them, the customer facial feature library is pre-established. The facial features of a known customer can be obtained based on a facial feature recognition model and a facial image of a known customer. The specific acquisition process is similar to the specific acquisition process of the facial features of the customer to be identified, and will not be repeated here.

[0050] The customer identification method provided by the embodiment of the present invention obtains the facial image of the customer to be identified; divides the facial image of the customer to be identified into multiple facial parts to obtain each facial part image; performs feature extraction on each facial part image to obtain identification features corresponding to each facial part image; obtains the facial features of the customer to be identified based on the identification features corresponding to each facial part image and a facial feature recognition model; obtains the identification result of the customer to be identified based on the facial features of the customer to be identified and a customer facial feature library; and performs facial recognition by distinguishing facial parts to extract features, thereby improving the accuracy of customer identification.

[0051] Figure 2 FIG. 1 is a flow chart of a customer identification method provided by a second embodiment of the present invention. Figure 2 As shown, based on the above embodiments, further, extracting features from each face part image to obtain identification features corresponding to each face part image includes:

[0052] S201, performing binarization processing on the face part image to obtain a binarized image corresponding to the face part image;

[0053] Specifically, the server performs binarization processing on the face part image to obtain a binarized image corresponding to the face part image.

[0054] In the process of binary processing of the face image, the image can be gray-scale converted, and then the edge can be enhanced after being converted to gray-scale. The Laplacian image edge enhancement algorithm can be used. Since the processed gray-scale image has only one channel, only the Laplacian operator enhancement is required for the single channel.

[0055] The image can be subjected to median filtering for noise reduction to make the image smoother, and then an adaptive threshold algorithm can be used to perform preliminary binary segmentation on the image, and then a morphological dilation operation can be performed to make each of its contours a closed area.

[0056] The image contour can be extracted by seed filling algorithm. Assuming the binary image is A, first extend A outward by one or two pixels and fill the value with background color pixels as 0, marked as B. Use floodFill function to fill the large background of B. The filling value is the foreground color, the pixel is 255, and the seed point is (0, 0) recorded as C. The reason for image expansion is to ensure that the seed point is within the background. The filled image is cropped to the size of the original image, that is, the expanded part is removed. At this time, the image is recorded as D. The inverse of D is added to A to get the filled image, E = A|(~D). The contours become closed areas, and finally morphological corrosion is performed to make the contours the same size as the face part, and some white noise is also removed at the same time.

[0057] S202: Extract geometric features based on the binary image corresponding to the face part image to obtain geometric features corresponding to the face part image.

[0058] Specifically, the server extracts geometric features based on the binary image corresponding to the face part image, and can obtain the geometric features corresponding to the face part image. The geometric features corresponding to the face part image include, but are not limited to, the matching rate of the outer convex hull of the contour in the face part image and the original contour, the ratio of the area of ​​the minimum circumscribed rectangle of the contour in the face part image to the area of ​​the original contour, the ratio of the area of ​​the outer convex hull of the contour in the face part image to the area of ​​the original contour, the ratio of the major and minor axes of the ellipse fitted by the contour in the face part image, etc., which are set according to actual needs and are not limited in the embodiments of the present invention.

[0059] By extracting the geometric features corresponding to the facial image, it is helpful to more accurately obtain the facial features of the customer to be identified, thereby improving the accuracy of customer identification.

[0060] For example, for the matching rate between the outer convex hull of the contour in the face part image and the original contour, the binary image corresponding to the face part image can be processed by an image processing algorithm to obtain the outer convex hull of the contour of the face part image and the original contour of the face part image. The Hu invariant moments of the outer convex hull of the contour of the face part image and the Hu invariant moments of the original contour of the face part image are calculated respectively. The ratio of the Hu invariant moments of the outer convex hull of the contour of the face part image to the Hu invariant moments of the original contour of the face part image is calculated to obtain the matching rate between the outer convex hull of the contour in the face part image and the original contour.

[0061] For example, for the ratio of the area of ​​the minimum circumscribed rectangle of the contour in the face part image to the area of ​​the original contour, the binary image corresponding to the face part image can be processed by an image processing algorithm to obtain the minimum circumscribed rectangle of the contour of the face part image and the original contour of the face part image, calculate the area of ​​the minimum circumscribed rectangle of the contour of the face part image and the area of ​​the original contour, and then calculate the ratio of the area of ​​the minimum circumscribed rectangle of the contour of the face part image to the area of ​​the original contour to obtain the area ratio of the minimum circumscribed rectangle of the contour in the face part image to the original contour.

[0062] For example, for the ratio of the area of ​​the outer convex hull of the contour in the face part image to the area of ​​the original contour, the binary image corresponding to the face part image can be processed by an image processing algorithm to obtain the outer convex hull of the contour of the face part image and the original contour of the face part image. The area of ​​the outer convex hull of the contour of the face part image and the area of ​​the original contour of the face part image are calculated respectively, and then the ratio of the area of ​​the outer convex hull of the contour in the face part image to the area of ​​the original contour of the face part image is calculated to obtain the area ratio of the outer convex hull of the contour in the face part image to the original contour.

[0063] For example, for the ratio of the major and minor axes of the ellipse fitted by the contour in the face part image, the original contour of the face part image in the binary image corresponding to the face part image is first ellipse fitted to obtain the minimum circumscribed ellipse of the original contour of the face part image, and then the ratio of the major axis to the minor axis of the above minimum circumscribed ellipse is calculated as the ratio of the major and minor axes of the ellipse fitted by the contour in the face part image.

[0064] For example, for the ratio of the area of ​​the minimum circumscribed rectangle of the contour in the face part image to the area of ​​the original contour, the binary image corresponding to the face part image can be processed by an image processing algorithm to obtain the minimum circumscribed rectangle of the original contour of the face part image and the original contour of the face part image. The area of ​​the minimum circumscribed rectangle of the original contour of the face part image and the area of ​​the original contour of the face part image are calculated respectively. The ratio of the area of ​​the minimum circumscribed rectangle of the original contour of the face part image to the area of ​​the original contour of the face part image is calculated to obtain the area ratio of the minimum circumscribed rectangle of the contour in the face part image to the original contour.

[0065] On the basis of the above embodiments, further, extracting features from each face part image to obtain identification features corresponding to each face part image includes:

[0066] Color features are extracted from the face image to obtain the color component ratio corresponding to the face image.

[0067] Specifically, the server may extract color features from the face part image to obtain a color component ratio corresponding to the face part image. The color component may include a black component, a white component, and a yellow component, which are set according to actual needs and are not limited in the embodiment of the present invention.

[0068] For example, the black component can be extracted from the face image, and the proportion of the black component in the face image can be calculated. Similarly, the proportion of the white component in the face image and the proportion of the yellow component in the face image can be calculated.

[0069] Different people have different skin colors. Increasing the color component ratio can help improve the accuracy of face recognition.

[0070] Figure 3 is a flow chart of a customer identification method provided by a third embodiment of the present invention, such as Figure 3 As shown, based on the above embodiments, further, extracting features from each face part image to obtain identification features corresponding to each face part image includes:

[0071] S301, obtaining a black component of a circumscribed rectangular area of ​​a face image;

[0072] Specifically, the server can obtain the area where the minimum circumscribed rectangle of the facial part image is located as the circumscribed rectangular area of ​​the facial part image, and then obtain the pixel value of each pixel point in the circumscribed rectangular area of ​​the facial part image, obtain the pixel points belonging to the black component therefrom, and calculate the average value of the pixel values ​​of each pixel point belonging to the black component as the black-biased component of the circumscribed rectangular area of ​​the facial part image.

[0073] S302, binarizing the face part image according to the black color component of the circumscribed rectangular area of ​​the face part image to obtain first-category pixels and second-category pixels; wherein the pixel value of the first-category pixels is greater than or equal to the black color component, and the pixel value of the second-category pixels is less than the black color component;

[0074] Specifically, the server binarizes the facial part image according to the black component of the circumscribed rectangular area of ​​the facial part image, and regards the pixel points in the facial part image that are greater than or equal to the black component as first-category pixels, and regards the pixel points in the facial part image that are less than the black component as second-category pixels, thereby dividing all the pixel points in the facial part image into first-category pixels and second-category pixels.

[0075] S303, calculating the ratio of the total number of pixels of the first category to the total number of pixels of the face part image as the first component ratio; and calculating the ratio of the total number of pixels of the second category to the total number of pixels of the face part image as the second component ratio.

[0076] Specifically, the server may count the total number of pixels in the first category and the total number of pixels in the face part image, and then calculate the ratio of the total number of pixels in the first category to the total number of pixels in the face part image to obtain a first component ratio. The server may count the total number of pixels in the second category, and then calculate the ratio of the total number of pixels in the second category to the total number of pixels in the face part image to obtain a second component ratio.

[0077] Figure 4 is a flow chart of a customer identification method provided by a fourth embodiment of the present invention, such as Figure 4 As shown, on the basis of the above embodiments, further, obtaining a face feature recognition model based on face image sample data and corresponding face label training includes:

[0078] S401, obtaining facial image sample data, wherein the facial image sample data includes a plurality of facial sample images and facial labels;

[0079] Specifically, existing face images can be collected and labeled to obtain face image sample data. The face image sample data includes multiple face sample images and face labels. The number of face sample images included in the face image sample data is set according to actual needs, and the embodiment of the present invention does not limit it. The face label indicates the person to whom the face image belongs.

[0080] S402, dividing each face sample image into a plurality of face parts, and obtaining a face part image of each face sample image;

[0081] Specifically, for each face sample image, the server divides the face sample image into a plurality of face parts, and can obtain a face part image of the face sample image. The face parts include but are not limited to eyes, nose, forehead, cheeks, chin, mouth, etc., which are set according to actual needs and are not limited in the embodiment of the present invention.

[0082] S403, extracting features from the facial part image of each facial sample image to obtain identification features corresponding to the facial part image of each facial sample image;

[0083] Specifically, for each face sample image, the server performs feature extraction on the face part image of the face sample image, and can obtain identification features corresponding to the face part image of the face part image.

[0084] For example, the face sample image can be binarized to obtain a binarized image corresponding to the face sample image; geometric features can be extracted based on the binarized image corresponding to the face sample image to obtain geometric features corresponding to the face sample image. The geometric features corresponding to the face sample image include, but are not limited to, the matching rate of the outer convex hull of the contour in the face sample image and the original contour, the ratio of the area of ​​the minimum circumscribed rectangle of the contour in the face sample image to the area of ​​the original contour, the ratio of the area of ​​the outer convex hull of the contour in the face sample image to the area of ​​the original contour, the ratio of the major and minor axes of the ellipse fitted by the contour in the face sample image, etc., which can be set according to actual needs and are not limited in the embodiments of the present invention.

[0085] For example, color features are extracted from the sample face image to obtain the color component ratio corresponding to the sample face image. The color component may include a black component, a white component, and a yellow component, which are set according to actual needs and are not limited in the embodiment of the present invention.

[0086] For example, obtain the black component of the circumscribed rectangular area of ​​the face sample image; binarize the face sample image according to the black component of the circumscribed rectangular area of ​​the face sample image to obtain the third type of pixels and the fourth type of pixels; wherein the pixel value of the third type of pixels is greater than or equal to the black component of the circumscribed rectangular area of ​​the face sample image, and the fourth type of pixels is less than the black component of the circumscribed rectangular area of ​​the face sample image; calculate the ratio of the total number of the third type of pixels to the total number of pixels of the face sample image as the third component ratio; and calculate the ratio of the total number of the fourth type of pixels to the total number of pixels of the face sample image as the fourth component ratio. The third component ratio and the fourth component ratio are used as the identification features corresponding to the face part image of the face part image.

[0087] S404: Train and obtain a facial feature recognition model based on the recognition features corresponding to the facial part images of each facial sample image, the facial label of each facial sample image, and the initial model.

[0088] Specifically, the server trains the initial model based on the identification features corresponding to the facial part images of each facial sample image and the facial labels of each facial sample image, and can train to obtain a facial feature recognition model. The initial model can adopt a support vector machine (SVM) model, etc., which is selected according to actual needs and is not limited in the embodiment of the present invention.

[0089] On the basis of the above embodiments, further, dividing the facial image of the customer to be identified into a plurality of facial parts to obtain an image of each facial part includes:

[0090] The facial part image is obtained based on the facial image of the customer to be identified and a facial part recognition model; wherein the facial part recognition model is obtained in advance.

[0091] Specifically, a face part recognition model can be pre-trained, and the face image of the customer to be recognized is input into the face part recognition model, and the face part image of the face image of the customer to be recognized can be output. The face part recognition model can be obtained by training sample data of face parts and a machine learning algorithm model.

[0092] On the basis of the above embodiments, further, before dividing the facial image of the customer to be identified into a plurality of facial parts, the method further includes:

[0093] Perform background correction on the facial image of the customer to be identified.

[0094] Specifically, in order to improve the quality of facial images, background correction can be performed on the facial images of customers to be identified. An adaptive correction algorithm using a two-dimensional gamma function can be used to first complete the conversion of the facial images of customers to be identified from RGB to HSV color space, then use the two-dimensional gamma function to change the brightness of the V (brightness) component of the HSV space, and finally synthesize a new HSV color space image, and then convert the image from the HSV color space to the RGB color space, thus completing the background correction of the input image.

[0095] The customer identification method provided by the embodiment of the present invention can be applied in bank branches. For example, it can be deployed on a self-service terminal to identify customers. The self-service terminal can collect the customer's face image and send it to the backend server for customer identification. For example, it can be deployed on a guidance robot. The guidance robot collects the user's face image and sends it to the backend server for customer identification. If the identified customer is a customer who needs guidance, the customer can be guided to a designated service desk for business processing.

[0096] Figure 5 is a schematic diagram of the structure of a customer identification device provided by a fifth embodiment of the present invention. Figure 5 As shown, the customer identification device provided by the embodiment of the present invention includes an acquisition module 501, a division module 502, a feature extraction module 503, an acquisition module 504 and an identification module 505, wherein:

[0097] The acquisition module 501 is used to acquire the facial image of the customer to be identified; the division module 502 is used to divide the facial image of the customer to be identified into multiple facial parts to obtain the image of each facial part; the feature extraction module 503 is used to extract features from each facial part image to obtain the identification features corresponding to each facial part image; the acquisition module 504 is used to obtain the facial features of the customer to be identified based on the identification features corresponding to each facial part image and a facial feature recognition model; wherein the facial feature recognition model is obtained by training based on facial image sample data and corresponding facial labels; the recognition module 505 is used to obtain the recognition result of the customer to be identified based on the facial features of the customer to be identified and a customer facial feature library; wherein the customer facial feature library is pre-established.

[0098] Specifically, the facial image of the customer can be collected by a camera or other device as the facial image of the customer to be identified. The acquisition module 501 can acquire the facial image of the customer to be identified.

[0099] The same parts of the faces of different people are different, and the segmentation module 502 can obtain images of various face parts from the face image of the customer to be identified. The face parts include but are not limited to eyes, nose, forehead, cheeks, chin, mouth, etc., which are set according to actual needs and are not limited in the embodiment of the present invention.

[0100] The feature extraction module 503 performs feature extraction based on each face part image, and can obtain the identification features corresponding to each face part image. Since the same parts of the faces of different people are different, the extracted features should also be different.

[0101] The acquisition module 504 inputs the identification features corresponding to each face part image into the face feature recognition model, and can output the face features of the customer to be identified. The face features of the customer to be identified are obtained by the identification features of each face part image, so that the face features of the customer to be identified are more accurate. The face feature recognition model is obtained based on the face image sample data and the corresponding face label training.

[0102] The identification module 505 compares the facial features of the customer to be identified with the facial features of each known customer in the customer facial feature library, and can obtain the identification result of the customer to be identified. If the facial features of a known customer that match the facial features of the customer to be identified are queried, then the customer to be identified can be identified as a known customer, and the known customer is used as the identification result of the customer to be identified. If the facial features of a known customer that match the facial features of the customer to be identified are not queried, then the customer to be identified is not a known customer, and the identification result of the customer to be identified can be an unknown customer or a new customer. Among them, the customer facial feature library is pre-established. The facial features of a known customer can be obtained based on a facial feature recognition model and a facial image of a known customer. The specific acquisition process is similar to the specific acquisition process of the facial features of the customer to be identified, and will not be repeated here.

[0103] The customer identification device provided by the embodiment of the present invention obtains the facial image of the customer to be identified; divides the facial image of the customer to be identified into multiple facial parts to obtain each facial part image; performs feature extraction on each facial part image to obtain identification features corresponding to each facial part image; obtains the facial features of the customer to be identified based on the identification features corresponding to each facial part image and a facial feature recognition model; obtains the identification result of the customer to be identified based on the facial features of the customer to be identified and a customer facial feature library; and performs facial recognition by distinguishing facial parts to extract features, thereby improving the accuracy of customer identification.

[0104] Figure 6 is a schematic diagram of the structure of a customer identification device provided by a sixth embodiment of the present invention. Figure 6 As shown, based on the above embodiments, the feature extraction module 503 further includes a first obtaining unit 5031 and a second obtaining unit 5032, wherein:

[0105] The first obtaining unit 5031 is used to perform binarization processing on the face part image to obtain a binarized image corresponding to the face part image; the second obtaining unit 5032 is used to extract geometric features based on the binarized image corresponding to the face part image to obtain geometric features corresponding to the face part image.

[0106] On the basis of the above embodiments, further, the feature extraction module 503 is specifically used for:

[0107] Color features are extracted from the face image to obtain the color component ratio corresponding to the face image.

[0108] Figure 7 is a schematic diagram of the structure of a customer identification device provided by a seventh embodiment of the present invention. Figure 7As shown, based on the above embodiments, the feature extraction module 503 further includes an acquisition unit 5033, a third acquisition unit 5034 and a calculation unit 5035, wherein:

[0109] The acquisition unit 5033 is used to acquire the black component of the circumscribed rectangular area of ​​the face part image; the third acquisition unit 5034 is used to binarize the face part image according to the black component of the circumscribed rectangular area of ​​the face part image, and obtain first-category pixels and second-category pixels; wherein the pixel value of the first-category pixels is greater than or equal to the black component, and the second-category pixel value is less than the black component; the calculation unit 5035 is used to calculate the ratio of the total number of first-category pixels to the total number of pixel points of the face part image as the first component ratio; and calculate the ratio of the total number of second-category pixels to the total number of pixel points of the face part image as the second component ratio.

[0110] Figure 8 is a schematic diagram of the structure of a customer identification device provided by an eighth embodiment of the present invention. Figure 8 As shown, based on the above embodiments, the customer identification device provided in the embodiment of the present invention further includes a sample acquisition module 506, a sample division module 507, a sample feature extraction module 508 and a training module 509, wherein:

[0111] The sample acquisition module 506 is used to obtain facial image sample data, and the facial image sample data includes multiple facial sample images and facial labels; the sample division module 507 is used to divide each facial sample image into multiple facial parts, and obtain the facial part image of each facial sample image; the sample feature extraction module 508 is used to extract features from the facial part images of each facial sample image, and obtain the identification features corresponding to the facial part images of each facial sample image; the training module 509 is used to train and obtain a facial feature recognition model based on the identification features corresponding to the facial part images of each facial sample image, the facial labels of each facial sample image, and the initial model.

[0112] On the basis of the above embodiments, further, the division module 502 is specifically used for:

[0113] The facial part image is obtained based on the facial image of the customer to be identified and a facial part recognition model; wherein the facial part recognition model is obtained in advance.

[0114] On the basis of the above embodiments, further, the client identification device provided in the embodiment of the present invention further includes a background correction module, wherein:

[0115] The background correction module is used to perform background correction on the facial image of the customer to be identified.

[0116] The embodiments of the apparatus provided in the embodiments of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments, and its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.

[0117] It should be noted that the customer identification method and device provided in the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiment of the present invention does not limit the application field of the customer identification method and device.

[0118] Fig. 9 is a schematic diagram of the physical structure of an electronic device provided by a ninth embodiment of the present invention, such as Fig. 9 As shown, the electronic device may include: a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902 and the memory 903 communicate with each other through the communication bus 904. The processor 901 may call the logic instructions in the memory 903 to execute the following method: obtaining a facial image of a customer to be identified; dividing the facial image of the customer to be identified into a plurality of facial parts to obtain an image of each facial part; extracting features from each facial part image to obtain identification features corresponding to each facial part image; obtaining facial features of the customer to be identified according to the identification features corresponding to each facial part image and a facial feature recognition model; wherein the facial feature recognition model is obtained based on facial image sample data and corresponding facial label training; obtaining the identification result of the customer to be identified according to the facial features of the customer to be identified and a customer facial feature library; wherein the customer facial feature library is pre-established.

[0119] In addition, the logic instructions in the above-mentioned memory 903 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0120] The present embodiment discloses a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining a facial image of a customer to be identified; dividing the facial image of the customer to be identified into multiple facial parts to obtain each facial part image; performing feature extraction on each facial part image to obtain identification features corresponding to each facial part image; obtaining facial features of the customer to be identified based on the identification features corresponding to each facial part image and a facial feature recognition model; wherein the facial feature recognition model is obtained by training based on facial image sample data and corresponding facial labels; obtaining an identification result of the customer to be identified based on the facial features of the customer to be identified and a customer facial feature library; wherein the customer facial feature library is pre-established.

[0121] The present embodiment provides a computer-readable storage medium, which stores a computer program, and the computer program enables the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining a facial image of a customer to be identified; dividing the facial image of the customer to be identified into multiple facial parts to obtain each facial part image; performing feature extraction on each facial part image to obtain identification features corresponding to each facial part image; obtaining facial features of the customer to be identified based on the identification features corresponding to each facial part image and a facial feature recognition model; wherein the facial feature recognition model is obtained by training based on facial image sample data and corresponding facial labels; obtaining an identification result of the customer to be identified based on the facial features of the customer to be identified and a customer facial feature library; wherein the customer facial feature library is pre-established.

[0122] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0123] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0124] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0125] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0126] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0127] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A customer identification method, characterized in that: include: Obtaining facial images of customers to be identified; Dividing the facial image of the customer to be identified into a plurality of facial parts to obtain an image of each facial part; Extract features from each facial part image to obtain identification features corresponding to each facial part image; Obtain the facial features of the customer to be identified based on the identification features corresponding to the images of various facial parts and a facial feature recognition model; wherein the facial feature recognition model is obtained by training based on facial image sample data and corresponding facial labels; The identification result of the customer to be identified is obtained based on the facial features of the customer to be identified and a customer facial feature library; wherein the customer facial feature library is pre-established.

2. The method according to claim 1, characterized in that The feature extraction of each face part image to obtain the identification feature corresponding to each face part image includes: Binarizing the face part image to obtain a binary image corresponding to the face part image; Extract geometric features based on the binary image corresponding to the face part image to obtain the geometric features corresponding to the face part image.

3. The method according to claim 1, characterized in that The feature extraction of each face part image to obtain the identification feature corresponding to each face part image includes: Color features are extracted from the face image to obtain the color component ratio corresponding to the face image.

4. The method according to claim 1, characterized in that: The feature extraction of each face part image to obtain the identification feature corresponding to each face part image includes: Get the black component of the circumscribed rectangular area of ​​the face image; Binarize the face part image according to the black color component of the circumscribed rectangular area of ​​the face part image to obtain first-category pixels and second-category pixels; wherein the pixel value of the first-category pixels is greater than or equal to the black color component, and the pixel value of the second-category pixels is less than the black color component; The ratio of the total number of pixels of the first category to the total number of pixels of the face part image is calculated as the first component ratio; and the ratio of the total number of pixels of the second category to the total number of pixels of the face part image is calculated as the second component ratio.

5. The method according to claim 1, characterized in that The facial feature recognition model obtained by training based on facial image sample data and corresponding facial labels includes: Acquire facial image sample data, wherein the facial image sample data includes a plurality of facial sample images and facial labels; Divide each face sample image into a plurality of face parts to obtain a face part image of each face sample image; Extract features of the facial part image of each facial sample image to obtain identification features corresponding to the facial part image of each facial sample image; A facial feature recognition model is obtained by training according to the recognition features corresponding to the facial part images of each facial sample image, the facial label of each facial sample image and the initial model.

6. The method according to claim 1, characterized in that The step of dividing the facial image of the customer to be identified into a plurality of facial parts to obtain an image of each facial part comprises: The facial part image is obtained based on the facial image of the customer to be identified and a facial part recognition model; wherein the facial part recognition model is obtained in advance.

7. The method according to any one of claims 1 to 6, characterized in that: Before dividing the facial image of the customer to be identified into a plurality of facial parts, the method further includes: Perform background correction on the facial image of the customer to be identified.

8. A customer identification device, characterized in that: include: An acquisition module, used to acquire a facial image of a customer to be identified; A division module, used for dividing the facial image of the customer to be identified into a plurality of facial parts to obtain an image of each facial part; A feature extraction module is used to extract features from each face part image to obtain identification features corresponding to each face part image; An acquisition module, used to obtain the facial features of the customer to be identified according to the identification features corresponding to the images of various facial parts and a facial feature recognition model; wherein the facial feature recognition model is obtained by training based on facial image sample data and corresponding facial labels; The recognition module is used to obtain the recognition result of the customer to be recognized based on the facial features of the customer to be recognized and the customer facial feature library; wherein the customer facial feature library is pre-established.

9. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program / instruction, which implements the steps of the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Block-based shielded face recognition algorithm

    CN108805040A

  • Method for detecting colour image human face under complex background

    CN1932847A