Figure relation mining system and method based on face recognition system
By introducing face quality optimization and gaze positioning modules into the face recognition system, combined with close contact time and gaze tracking, the problem of low accuracy of character relationship screening in the traditional system is solved, efficient character relationship mining is achieved, and the human relationship is improved. Accuracy and work efficiency of facial feature recognition.
Patent Information
- Application Number
- CN202410716203.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-30
AI Technical Summary
It is difficult for traditional face recognition systems to identify and find other people who are related to the target person based on their social activities, and the screening accuracy of existing related intelligent systems is low.
Adopt a character relationship mining system based on the face recognition system, through material collection, face quality optimization, face recognition, gaze positioning and data processing modules, combined with the dual standards of close contact time and gaze tracking, to screen relevant personnel and extract frames Acquisition and feature extraction improve the accuracy of facial features.
It significantly improves the accuracy and work efficiency of character relationship screening, reduces the workload of facial recognition screening for long videos, and improves the accuracy of facial feature recognition.
Smart Images

Figure CN118570861A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field related to face recognition, and in particular to a person relationship mining system and method based on a face recognition system. Background Art
[0002] Face recognition is a biometric technology that identifies people based on their facial features. It uses a camera or camcorder to capture images or video streams containing faces, and automatically detects and tracks faces in the images, and then uses a series of related technologies to perform facial recognition on the detected faces.
[0003] Traditional face recognition systems find it difficult to identify and find other people who are related to the target person based on the person's social activities. Most of this work requires technical personnel to make judgments based on experience, which is inefficient. Existing related intelligent systems, such as Chinese patent CN106980844A, a person relationship mining system and method based on a face recognition system, screen related people based on person distance and other single standards, and the screening accuracy is low.
[0004] Therefore, we introduced a character relationship mining system and method based on face recognition system. Summary of the invention
[0005] The purpose of the present invention is to provide a person relationship mining system and method based on a face recognition system to solve the problem of low screening efficiency and accuracy of the existing person relationship mining system and method proposed in the above background.
[0006] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a person relationship mining system and method based on a face recognition system, the system comprising: a material collection module, a face quality optimization module, a face recognition module, a face search module, a sight line positioning module, a data processing module and a data storage module;
[0007] The material collection module is a video collection device represented by a camera, which is used to collect video materials for character relationship mining;
[0008] The face quality optimization module is used to screen out high-quality faces that can be used for face recognition from a large number of pictures or video materials, so as to reduce the workload of the face recognition module and improve the working efficiency of the face recognition module;
[0009] The face recognition module is used to recognize and extract faces from pictures or video materials and compare and search for faces stored in the data storage module;
[0010] The face search module is used to search for video clips containing the same face in the video according to the face feature data extracted by the face recognition module;
[0011] The sight line positioning module is used to track and locate the sight line of the target person in the video;
[0012] The data processing module is used to find and count the number of times a target person appears in a picture or video material and the position where the target person appears in the video, and at the same time, to perform data statistics on all persons who appear in the same picture or video as the target person.
[0013] Furthermore, the face quality optimization module includes a frame sampling module, a feature extraction module and a quality assessment module. The frame sampling module extracts a certain number of frame screenshots from the video clips where the target person appears, which are used as alternative materials for face recognition. The feature extraction module can extract the face feature vector data in the alternative materials, and then evaluate and score the face quality of the alternative materials through the quality assessment module, and screen out pictures with face quality scores that reach a predetermined score for the face recognition module to perform face recognition.
[0014] Furthermore, the frame extraction and acquisition module is based on Matlab, and extracts one frame from the video material every second and saves it as a picture.
[0015] Furthermore, the feature extraction module extracts facial features of the image through the image, and the facial features include facial occlusion, facial expression, facial distribution ratio, facial posture and facial position distribution. The quality assessment module scores separately through multiple facial features, and calculates a weighted average score based on the scores of facial occlusion, facial expression, facial distribution ratio, facial posture and facial position distribution. The weights of the facial occlusion and facial posture are both 0.25, the weights of the facial expression and facial distribution ratio are 0.2, and the weight of the facial position distribution is 0.1. The quality score of the face in the image is obtained by comprehensively analyzing the scores, and the image with the best face quality is selected for face recognition based on the quality score.
[0016] Furthermore, the sight line positioning module analyzes the video and establishes warning mark areas within 56° above the target person's eyes, 74° below, and 60° to the left and right. The warning mark areas rotate with the target person's head, and all people within the warning mark areas will be marked.
[0017] The present invention provides another technical solution, a method for mining character relationships based on a face recognition system, the method comprising:
[0018] S1. Material acquisition: obtain the video material required for face recognition through the material acquisition module;
[0019] S2. Face quality scoring: extract a group of video clips where the target person appears, and use the frame extraction module in the face quality optimization module to extract a frame screenshot every second from the video clips where the target person appears in the video material, and then use the feature extraction module to extract the face data in the picture, and use the quality assessment module to comprehensively score the face according to facial occlusion, facial expression, facial distribution ratio, facial posture and facial position distribution;
[0020] S3. Target person search: Take the face image with the highest comprehensive score in S2 for face recognition to obtain the face feature information of the target person, then extract one frame of all the video materials to be processed every second through the frame acquisition module, and finally search for the target face in the extracted frames through the face search module based on the face feature data extracted by the feature extraction module, and retrieve the screen segments where the target person appears in all the video materials;
[0021] S4. Screening of close contacts: Performing face recognition on all other close contacts in the screen segments where the target person has appeared through the face recognition module, and searching the close contacts through the face search module, and then screening out all the screen segments where the target person and the close contacts coexist through the data processing module, and storing them in the data storage module, and then counting all the screen segments where the close contacts and the target person coexist through the data processing module, and sorting them from high to low according to the duration of the coexisting screen segments, and outputting a close contact duration sorting table;
[0022] S5. Screening of potential related persons: Track the target person's sight line through the sight line positioning module, and mark all persons in the target person's sight line as potential related persons, then perform face recognition on the potential related persons through the face recognition module, and retrieve all potential related persons through the face search module, then screen out all the screen segments where the target person and the potential related persons coexist through the data processing module, then track the realization of all potential related persons through the sight line positioning module, and mark all potential related persons whose sight lines have contacted the target person, and arrange them from high to low according to the sight line contact time, and output the potential related person relevance ranking table;
[0023] S6. Comprehensive evaluation of character relationships: The close contact time ranking table output by S4 and the potential related character relevance ranking table output by S5 are comprehensively evaluated and ranked by the data processing module to obtain a character relevance ranking table.
[0024] Furthermore, in step 4 and step 5, when screening the screen segments in which the target person and the potentially related persons coexist, the frame extraction and acquisition module in the face quality optimization module extracts one frame of the video material per second and records the frame number. Then, the person in the extracted frame is identified and searched through the face search module, and the frame numbers of all the target persons and the potentially related persons coexist are recorded. The frame numbers are arranged, and the relevant segments are intercepted in the original video material according to the first and last positions of the consecutive frame numbers and stored in the data storage module as person relationship mining and screening materials.
[0025] Furthermore, when performing face recognition on closely connected persons and potentially related persons in steps 4 and 5, face quality scoring is performed in the same manner as in step 2, and the frame with the highest face quality score is used for face recognition.
[0026] Furthermore, when the close contact time is screened for the close contacts in step 4 and the eye contact time is screened for the potential related persons in step 5, the face search module is used to perform two searches and screens with the target person and the close contact person or the potential related person as the center respectively, and the video material is provided in combination with the two screening results for close contact time statistics and eye contact tracking processing.
[0027] Furthermore, when the close contact time sorting table output by S4 and the potential related person relevance sorting table output by S5 are comprehensively evaluated and sorted in step 6, the close contacts in the close contact time sorting table are scored arithmetic progression from high to low according to the close contact time sorting, and at the same time, the potential related persons in the potential related person relevance sorting table are scored arithmetic progression from high to low according to the line of sight contact time sorting, and then the average of the two scores is calculated and re-sorted.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The present invention proposes a character relationship mining system and method based on a face recognition system. Based on face recognition technology, relevant personnel are screened through the dual standards of close contact time and line of sight tracking, which can greatly improve the accuracy of character relationship screening. At the same time, through the face quality optimization module, pictures with higher face quality are screened out from multiple frames to perform face feature recognition, which can effectively improve the accuracy of face features, thereby improving the accuracy of subsequent face recognition searches. In addition, frame extraction screening can greatly reduce the workload of face recognition screening for long videos, greatly improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of a character relationship mining system based on a face recognition system according to the present invention;
[0031] Figure 2A schematic diagram of a method for mining character relationships based on a face recognition system according to the present invention.
[0032] Numbers in the figure: 1. Material acquisition module; 2. Face quality optimization module; 201. Frame acquisition module; 202. Feature extraction module; 203. Quality assessment module; 3. Face recognition module; 4. Face search module; 5. Line of sight positioning module; 6. Data processing module and data storage module. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] Embodiment 1:
[0035] See also Figure 1 , a character relationship mining system based on face recognition system, comprising: a material collection module 1, a face quality optimization module 2, a face recognition module 3, a face search module 4, a sight line positioning module 5, a data processing module 6 and a data storage module 7;
[0036] The material collection module 1 is a video collection device represented by a camera, which is used to collect video materials for character relationship mining;
[0037] The face quality optimization module 2 is used to select high-quality faces that can be used for face recognition from a large number of pictures or video materials, so as to reduce the workload of the face recognition module 3 and improve the working efficiency of the face recognition module 3;
[0038] The face recognition module 3 is used to recognize and extract faces from pictures or video materials and compare and search with faces stored in the data storage module 5;
[0039] The face search module 4 is used to search for a video clip containing the same face in the video according to the face feature data extracted by the face recognition module 3;
[0040] The sight line positioning module 5 is used to track and locate the sight line of the target person in the video;
[0041] The data processing module 6 is used to find and count the number of times the target person appears in the picture or video material and the position where he appears in the video, and at the same time, to perform data statistics on all the people who appear in the same picture or the same video as the target person.
[0042] The face quality optimization module 2 includes a frame sampling module 201, a feature extraction module 202 and a quality assessment module 203. The frame sampling module 201 extracts a certain number of frame screenshots from the video clips where the target person appears, which are used as candidate materials for face recognition. The feature extraction module 202 can extract the face feature vector data in the candidate materials, and then the quality assessment module 203 evaluates and scores the face quality of the candidate materials, and screens out pictures with face quality scores that reach a predetermined score for face recognition module 3 to perform face recognition.
[0043] The frame acquisition module 201 is based on Matlab and extracts one frame from the video material every second and saves it as a picture. The specific operation is as follows:
[0044] %clc;
[0045] % clear all;
[0046] %close all;
[0047] VideoAd=VideoReader('F:\Video\Video001.mp4'); % Input video location
[0048] numFrames = VideoAd.NumberOfFrames; % Total number of frames
[0049] videoF = VideoAd.FrameRate; %FrameRate video acquisition rate
[0050] videoD = VideoAd.Duration; %Duration time
[0051] numname=6;%the length of image name
[0052] nz=strcat('%0',num2str(numname),'d');
[0053] T = 1*videoF; % Extract frame interval, here it is set to extract one frame every 1 second
[0054] i=1;
[0055] for k=1:T:numFrames%
[0056] numframe=read(VideoAd,k); %Read the frame
[0057] num=sprintf(nz,i); %i is the serial number of the saved image
[0058] i=i+1;
[0059] imwrite(numframe,strcat('F:\VideoDivided_image\001\',num,'.png'),'png');
[0060] % Save frame,
[0061] % Location: F:\PeopleTrainingTest_2018.7.25\Test_divide\
[0062] end.
[0063] The feature extraction module 202 extracts the facial features of the image through the image. The facial features include facial occlusion, facial expression, facial distribution ratio, facial posture and facial position distribution. The quality assessment module 203 scores the multiple facial features separately, and calculates the weighted average score according to the scores of facial occlusion, facial expression, facial distribution ratio, facial posture and facial position distribution. The weights of facial occlusion and facial posture are both 0.25, the weights of facial expression and facial distribution ratio are 0.2, and the weight of facial position distribution is 0.1. The quality score of the face in the image is obtained by combining the scores, and the image with the best face quality is selected for face recognition according to the quality score.
[0064] The sight line positioning module 5 analyzes the video and sets up warning mark areas within 56° above, 74° below, and 60° to the left and right of the target person's eyes. The warning mark areas rotate with the target person's head, and all people in the warning mark areas will be marked.
[0065] Embodiment 2:
[0066] A method for mining character relationships based on a face recognition system, comprising:
[0067] S1. Material acquisition: The video material required for face recognition is obtained through the material acquisition module 1;
[0068] S2. Face quality scoring: extract a group of video clips where the target person appears, extract a frame screenshot every second from the video clips where the target person appears in the video material through the frame extraction module 201 in the face quality optimization module 2, then extract the face data in the picture through the feature extraction module 202, and perform a comprehensive score on the face according to facial occlusion, facial expression, facial distribution ratio, facial posture and facial position distribution through the quality assessment module 203;
[0069] S3. Target person search: Take the face image with the highest comprehensive score in S2 for face recognition to obtain the face feature information of the target person, then extract one frame every second from all the video materials to be processed through the frame extraction acquisition module 201, and finally search for the target face in the extracted frame through the face search module 4 according to the face feature data extracted by the feature extraction module 202, and retrieve the screen segments where the target person appears in all the video materials;
[0070] S4. Screening of close contact persons: face recognition is performed on all other close contact persons in the screen segment where the target person has appeared through the face recognition module 3, and the close contact persons are retrieved through the face search module 4, and then the screen segments where all the target person and the close contact persons coexist are screened out through the data processing module 6, and stored in the data storage module 7, and then the screen segments where all the close contact persons and the target person coexist are counted through the data processing module 6, and sorted from high to low according to the duration of the coexisting screen segments, and output a close contact duration sorting table;
[0071] S5. Screening of potential related persons: Tracking the line of sight of the target person through the line of sight positioning module 5, and marking all persons in the line of sight of the target person as potential related persons, then performing face recognition on the potential related persons through the face recognition module 3, and searching all potential related persons through the face search module 4, and then screening out all the screen segments where the target person and the potential related persons coexist through the data processing module 6, and then tracking the realization of all potential related persons through the line of sight positioning module 5, and marking all potential related persons whose line of sight has had contact with the target person, and arranging them from high to low according to the line of sight contact time, and outputting a potential related person relevance ranking table;
[0072] S6. Comprehensive evaluation of character relationships: The close contact duration ranking table output by S4 and the potential related character relevance ranking table output by S5 are comprehensively evaluated and ranked by the data processing module 6 to obtain a character relevance ranking table.
[0073] In step 4 and step 5, when screening the screen segments where the target person and the potentially related person coexist, the frame extraction acquisition module 201 in the face quality optimization module 2 extracts one frame of the video material per second and records the frame number. Then, the face search module 4 identifies and searches for the person in the extracted frame, and records the frame numbers of all the target person and the potentially related person coexisting. The frame numbers are arranged, and the relevant segments are intercepted in the original video material according to the first and last positions of the consecutive frame numbers and stored in the data storage module 7 as person relationship mining and screening material.
[0074] When performing face recognition on close contacts and potentially related persons in steps 4 and 5, face quality scoring is performed in the same manner as in step 2, and the frame with the highest face quality score is used for face recognition.
[0075] When the close contact time is screened for the close contacts in step 4 and the eye contact time is screened for the potential related persons in step 5, the face search module 4 performs two searches and screens with the target person and the close contact person or the potential related person as the center respectively, and provides video materials for close contact time statistics and eye contact tracking processing in combination with the two screening results.
[0076] In step 6, when comprehensively evaluating and sorting the close contact time sorting table output by S4 and the potential related person relevance sorting table output by S5, the close contacts in the close contact time sorting table are scored in arithmetic progression from high to low according to the close contact time sorting. At the same time, the potential related persons in the potential related person relevance sorting table are scored in arithmetic progression from high to low according to the sight contact time sorting. Then, the average of the two scores is calculated and re-sorted. This can reduce the impact of errors and omissions caused by frame extraction and screening.
[0077] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0078] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A character relationship mining system based on a face recognition system, characterized in that: The system comprises: a material collection module (1), a face quality optimization module (2), a face recognition module (3), a face search module (4), a sight line positioning module (5), a data processing module (6) and a data storage module (7); The material collection module (1) is a video collection device represented by a camera, which is used to collect video materials for character relationship mining; The face quality optimization module (2) is used to select high-quality faces that can be used for face recognition from a large number of pictures or video materials; The face recognition module (3) is used to recognize and extract faces from pictures or video materials and compare and search with faces stored in the data storage module (5); The face search module (4) is used to search for a video segment containing the same face in the video according to the face feature data extracted by the face recognition module (3); The sight line positioning module (5) is used to track and locate the sight line of the target person in the video; The data processing module (6) is used to find and count the number of times a target person appears in a picture or video material and the position where the target person appears in the video, and to perform data statistics on all persons who appear in the same picture or video as the target person.
2. A character relationship mining system based on a face recognition system as claimed in claim 1, characterized in that: The face quality optimization module (2) comprises a frame sampling module (201), a feature extraction module (202) and a quality assessment module (203). The frame sampling module (201) extracts a certain number of frame screenshots from the video clips where the target person appears, and uses them as candidate materials for face recognition. The feature extraction module (202) can extract face feature vector data from the candidate materials, and then evaluates and scores the face quality of the candidate materials through the quality assessment module (203), and selects pictures with face quality scores reaching a predetermined score for the face recognition module (3) to perform face recognition.
3. A character relationship mining system based on a face recognition system as claimed in claim 2, characterized in that: The frame extraction and acquisition module (201) is based on Matlab and extracts one frame from the video material every second and saves it as a picture.
4. The character relationship mining system based on face recognition system as claimed in claim 2, characterized in that: The feature extraction module (202) extracts facial features from the picture, wherein the facial features include facial occlusion, facial expression, facial distribution ratio, facial posture and facial position distribution. The quality assessment module (203) scores the facial features respectively, and obtains a weighted average score based on the scores of facial occlusion, facial expression, facial distribution ratio, facial posture and facial position distribution, wherein the weights of facial occlusion and facial posture are both 0.25, the weights of facial expression and facial distribution ratio are 0.2, and the weight of facial position distribution is 0. 0.1, and the quality score of the face in the picture is obtained by combining various scores. The picture with the best face quality is selected for face recognition based on the quality score.
5. The character relationship mining system based on face recognition system as claimed in claim 1, characterized in that: The sight line positioning module (5) analyzes the video and sets up warning mark areas within 56° above the target person's eyes, 74° below the target person's eyes, and 60° to the left and right. The warning mark areas rotate with the target person's head, and all people in the warning mark areas will be marked.
6. A method for mining character relationships based on a face recognition system, characterized in that: The method comprises: S1. Material acquisition: The video material required for face recognition is obtained through the material acquisition module (1); S2. Face quality scoring: extract a group of video clips in which the target person appears, and use the frame extraction module (201) in the face quality optimization module (2) to extract a frame screenshot every second from the video clips in which the target person appears in the video material, and then use the feature extraction module (202) to extract the face data in the picture, and use the quality assessment module (203) to comprehensively score the face according to facial occlusion, facial expression, facial distribution ratio, facial posture and facial position distribution; S3. Target person search: Take the face image with the highest comprehensive score in S2 for face recognition to obtain the face feature information of the target person, then extract one frame every second from all the video materials to be processed through the frame extraction module (201), and finally search for the target face in the extracted frame through the face search module (4) based on the face feature data extracted by the feature extraction module (202), and retrieve the screen segments where the target person appears in all the video materials; S4. Screening of close contacts: Performing face recognition on all other close contacts in the screen segments where the target person has appeared through the face recognition module (3), and searching the close contacts through the face search module (4), then screening out all the screen segments where the target person and the close contacts coexist through the data processing module (6), and storing them in the data storage module (7), then counting all the screen segments where the close contacts and the target person coexist through the data processing module (6), and sorting them from high to low according to the duration of the coexisting screen segments, and outputting a close contact duration sorting table; S5. Screening of potential related persons: Tracking the target person's line of sight through the line of sight positioning module (5), and marking all persons in the target person's line of sight as potential related persons, then performing face recognition on the potential related person through the face recognition module (3), and searching all potential related persons through the face search module (4), then screening out all screen segments where the target person and the potential related persons coexist through the data processing module (6), then tracking the realization of all potential related persons through the line of sight positioning module (5), and marking all potential related persons whose line of sight has contacted the target person, and arranging them from high to low according to the line of sight contact time, and outputting a potential related person relevance ranking table; S6. Comprehensive evaluation of character relationships: The close contact duration ranking table output by S4 and the potential related character relevance ranking table output by S5 are comprehensively evaluated and ranked by the data processing module (6) to obtain a character relevance ranking table.
7. The method for mining character relationships based on a face recognition system as claimed in claim 6, characterized in that: In the above steps 4 and 5, when screening the screen segments where the target person and the potentially related person coexist, the frame sampling module (201) in the face quality optimization module (2) extracts one frame of the video material per second and records the frame number. Then, the face search module (4) identifies and searches for the person in the extracted frame, and records the frame numbers of all the target person and the potentially related person coexist. The frame numbers are arranged, and the relevant segments are intercepted from the original video material according to the first and last positions of the consecutive frame numbers and stored in the data storage module (7) as the person relationship mining and screening material.
8. The method for mining character relationships based on a face recognition system as claimed in claim 6, characterized in that: When performing face recognition on closely connected persons and potentially related persons in steps 4 and 5, face quality scoring is performed in the same manner as in step 2, and the frame with the highest face quality score is used for face recognition.
9. The method for mining character relationships based on a face recognition system as claimed in claim 6, characterized in that: When the close contact duration is screened for the close contact persons in step 4 and the eye contact duration is screened for the potential related persons in step 5, the face search module (4) performs two searches and screens respectively with the target person and the close contact person or the potential related person as the center, and provides video materials for close contact duration statistics and eye tracking processing in combination with the two screening results.
10. The method for mining character relationships based on a face recognition system as claimed in claim 6, characterized in that: In the step 6, when comprehensively evaluating and ranking the close contact time ranking table output by S4 and the potential related person relevance ranking table output by S5, the close contact persons in the close contact time ranking table are scored arithmetic progression from high to low according to the close contact time ranking, and at the same time, the potential related persons in the potential related person relevance ranking table are scored arithmetic progression from high to low according to the line of sight contact time ranking, and then the average of the two scores is calculated and re-ranked.
