A method and device for tracking personnel trajectory based on face recognition

By using facial feature vectors for comparison in the video surveillance system to distinguish resident and outside personnel, the problem of high trajectory tracking costs in the existing technology is solved, and efficient trajectory tracking of outsiders is achieved and the server load is reduced.

CN113947742BActive Publication Date: 2024-09-06CHENGDU JIAFAANTAI EDUCATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111213986.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2024-09-06
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

Existing technology cannot effectively distinguish between resident personnel and outsiders, which results in the video surveillance system needing to uniformly process all personnel during trajectory tracking, which increases the load on the server and the computing cost.

Method used

Using a method based on face recognition, a three-dimensional model is established between the trajectory tracking server and the video surveillance unit, and facial feature vectors are used for comparison to distinguish between resident and outsiders, and only track the outsiders to reduce server costs. load.

Benefits of technology

It achieves effective distinction between resident and foreign personnel, reduces the computing load of the server, improves the accuracy of face recognition, and ensures efficient trajectory tracking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947742B
    Figure CN113947742B
Patent Text Reader

Abstract

The present invention discloses a personnel trajectory tracking method and device based on face recognition, the method comprising: S1. establishing a three-dimensional model of a monitoring scene, and dividing and numbering the monitoring area; S2. deploying video monitoring units; S3. saving the number of the monitoring area; S4. saving the facial image information of the resident personnel in the monitoring scene; S5. collecting the facial image information of the entering personnel and transmitting it to the trajectory tracking server; S6. The trajectory tracking server determines whether the entering personnel is a resident personnel; if so, returning to step S5; if not, saving the facial image information of the entering personnel as the target facial image; S7. The trajectory tracking server distributes the target facial image to each video monitoring unit respectively; S8. obtaining the trajectory tracking information and transmitting it to the trajectory tracking server; S9. obtaining the target trajectory. The present invention can effectively distinguish between resident personnel and non-resident personnel, and only tracks the non-resident personnel entering the monitoring scene, thereby effectively reducing the computing load of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to face recognition, and in particular to a method and device for tracking a person's trajectory based on face recognition. Background Art

[0002] In some monitoring scenarios, it is often necessary to monitor outsiders, such as schools, libraries, corporate offices, etc. For example, in schools, outsiders mainly include couriers, restaurant food delivery personnel, takeaway delivery personnel, electrical equipment maintenance personnel, and unauthorized people who enter the school privately, etc. It is difficult to directly prohibit the above-mentioned personnel from entering. For example, if couriers are directly prohibited from entering, it will bring many inconveniences to the lives of teachers and students in the school. Therefore, it is often necessary to monitor outsiders. However, at present, the monitoring of outsiders is mainly reflected in video monitoring, and effective trajectory tracking cannot be achieved. Although the trajectory of personnel can be gradually analyzed based on video information, the resident personnel (students, teachers, and other staff in the school) and outsiders are not separated, which makes the trajectory tracking actually unified, which will greatly increase the load and computing cost of the server. Similar problems still exist in other monitoring scenarios. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method and device for tracking personnel trajectories based on face recognition, which can effectively distinguish between permanent and non-resident personnel, and only track the trajectories of non-resident personnel entering the monitoring scene, thereby effectively reducing the computing load of the server.

[0004] The objective of the present invention is achieved through the following technical solution: A personnel trajectory tracking method based on face recognition comprises the following steps:

[0005] S1. The trajectory tracking server establishes a three-dimensional model of the monitoring scene and divides it into multiple monitoring areas. In the established three-dimensional model, each monitoring area is numbered;

[0006] S2. Video surveillance units are arranged at the entrance of the monitoring scene and in each monitoring area within the monitoring scene to monitor facial image information in the area;

[0007] S3. Save the number of the surveillance area in the video surveillance unit, and connect each video surveillance unit to the trajectory tracking server via a wireless network;

[0008] S4. Save facial image information of resident personnel in the monitoring scene in the trajectory tracking server;

[0009] S5. When a person enters the monitoring scene, the video surveillance unit at the entrance of the monitoring scene collects facial image information of the person entering and transmits it to the trajectory tracking server;

[0010] S6. The trajectory tracking server compares the facial image information of the entrant with the facial image information of the resident personnel to determine whether the entrant is a resident personnel;

[0011] If yes, return to step S5;

[0012] If not, save the face image information of the person entering as the target face image and proceed to step S7;

[0013] S7. The trajectory tracking server distributes the target face image to each video surveillance unit respectively;

[0014] S8. Each video surveillance unit monitors the facial image information of the personnel in its own area in real time. When the target facial image is found in the area to which it belongs, the appearance time of the target facial image is recorded, and the appearance time and the number of the current monitoring area are transmitted together as the trajectory tracking information to the trajectory tracking server;

[0015] S9. The trajectory tracking server takes out the numbering information contained in each trajectory tracking information, marks the monitoring areas corresponding to these numbering information in the three-dimensional model, and then connects the centers of the marked monitoring areas in sequence according to the appearance time in the trajectory tracking information to obtain the target trajectory.

[0016] Furthermore, in step S6, the trajectory tracking server uses a face recognition method based on a face feature vector to compare the face image information of the entering person with the face image information of the resident person:

[0017] When the facial image information of the person entering is consistent with the facial image information of the resident person, it is considered that the person entering is a resident person, and the process returns to step S5;

[0018] When the facial image information of the entering person is inconsistent with the facial image information of the resident person, it is considered that the entering person is a non-resident person, and the process goes to step S7.

[0019] Furthermore, when there are multiple permanent personnel, it is necessary to compare the facial image information of the entering personnel with the facial image information of each permanent personnel respectively.

[0020] Furthermore, the video surveillance unit compares the facial image information of the person in the surveillance area with the target facial information through a facial recognition method based on facial feature vectors, and when the facial image information appearing in the surveillance area is consistent with the target facial image, it is considered that the target facial image appears in the area to which it belongs. When the video surveillance unit collects multiple facial information images of the person in the surveillance area, each image is compared with the target facial image.

[0021] The face recognition method based on face feature vectors includes:

[0022] A1. For any face image, select M facial feature points from the image, and establish a plane rectangular coordinate system with the center of the image as the origin; the M facial feature points include N key feature points (x1, y1), (x2, y2), ..., (x N ,y N ) and MN common feature points (x N+1 ,y N+1 ),(x N+2 ,y N+2 ),...,(x M ,y M ), where M>N;

[0023] A2. Extract the position information of M facial feature points in the plane coordinate system (x1, y1), (x2, y2), ..., (x M ,y M ); where (x i ,y i ) represents the coordinates of the i-th facial feature point in the plane coordinate system, i = 1, 2, ..., M;

[0024] A3. Perform weighted calculation based on the position information of the M facial feature points to obtain the representative coordinates (x′, y′) of the reference point:

[0025]

[0026]

[0027] Among them, k i represents the weight of the i-th facial feature point, i = 1, 2, ..., M; the weight of the key feature point is 3 times the weight of the ordinary feature point, and k1+k2+...+k M =1;

[0028] A4. Calculate the representative coordinates (x′, y′) and N key feature points (x1, y1), (x2, y2), ..., (x N ,y N) to obtain the eigenvector X in the x direction and the eigenvector Y in the y direction:

[0029] X=(x1-x′,x2-x′,...,x N -x′);

[0030] Y=(y1-x′,y2-x′,...,y N -x′);

[0031] A5. For any two face images to be compared, first perform tilt correction, then scale them to the same size, and obtain feature vectors according to steps A1 to A4;

[0032] Calculate the difference E between two face images: Assume that the feature vector obtained from the first image is X1, Y1; the feature vector obtained from the second image is X2, Y2, then:

[0033] E=|X1-X2|+|Y1-Y2|

[0034] Among them, |X1-X2| means finding the modulus of X1-X2, and |Y1-Y2| means finding the modulus of Y1-Y2;

[0035] It is determined whether E is greater than a preset threshold E′. If so, the two face images are considered inconsistent. If not, the two face images are considered inconsistent.

[0036] The key feature points refer to the facial feature points located in the eye, nose and mouth areas.

[0037] A personnel trajectory tracking device based on face recognition, comprising a trajectory tracking server, and video monitoring units located at the entrance of a monitoring scene and in each monitoring area within the monitoring scene;

[0038] The trajectory tracking server cooperates with each video monitoring unit to implement trajectory tracking according to the personnel trajectory tracking method.

[0039] The video monitoring unit includes a camera and a data transmission processing device, and the camera is connected to the trajectory tracking server through the data transmission processing device.

[0040] The data transmission processing device includes a microprocessor, a real-time clock module, a memory storing the number of the monitored area, and a wireless communication module; the microprocessor is connected to the camera, the real-time clock module, the memory and the wireless communication module respectively, and the wireless communication module is connected to the trajectory tracking server.

[0041] The beneficial effects of the present invention are as follows: the present invention can effectively distinguish between permanent and non-resident personnel, and only tracks the trajectories of non-resident personnel entering the monitoring scene, thereby effectively reducing the computing load of the server; at the same time, the face recognition method based on facial feature feature vectors adopted in the present invention, when constructing feature vectors, comprehensively considers key feature points and common feature points to calculate the representative coordinates of reference points, increases the weight of key feature points, and highlights the key feature point information; on this basis, feature vectors are constructed according to the representative coordinates of reference points and key feature points, and on this basis, face consistency comparison is performed, which has high recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 The present invention is a flow chart of the method. DETAILED DESCRIPTION

[0043] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings, but the protection scope of the present invention is not limited to the following.

[0044] like Figure 1 As shown, a personnel trajectory tracking method based on face recognition includes the following steps:

[0045] S1. The trajectory tracking server establishes a three-dimensional model of the monitoring scene and divides it into multiple monitoring areas. In the established three-dimensional model, each monitoring area is numbered;

[0046] S2. Video surveillance units are arranged at the entrance of the monitoring scene and in each monitoring area within the monitoring scene to monitor facial image information in the area;

[0047] S3. Save the number of the surveillance area in the video surveillance unit, and connect each video surveillance unit to the trajectory tracking server via a wireless network;

[0048] S4. Save facial image information of resident personnel in the monitoring scene in the trajectory tracking server;

[0049] S5. When a person enters the monitoring scene, the video surveillance unit at the entrance of the monitoring scene collects facial image information of the person entering and transmits it to the trajectory tracking server;

[0050] S6. The trajectory tracking server compares the facial image information of the entrant with the facial image information of the resident personnel to determine whether the entrant is a resident personnel;

[0051] If yes, return to step S5;

[0052] If not, save the face image information of the person entering as the target face image and proceed to step S7;

[0053] S7. The trajectory tracking server distributes the target face image to each video surveillance unit respectively;

[0054] S8. Each video surveillance unit monitors the facial image information of the personnel in its own area in real time. When the target facial image is found in the area to which it belongs, the appearance time of the target facial image is recorded, and the appearance time and the number of the current monitoring area are transmitted together as the trajectory tracking information to the trajectory tracking server;

[0055] S9. The trajectory tracking server takes out the numbering information contained in each trajectory tracking information, marks the monitoring areas corresponding to these numbering information in the three-dimensional model, and then connects the centers of the marked monitoring areas in sequence according to the appearance time in the trajectory tracking information to obtain the target trajectory.

[0056] Furthermore, in step S6, the trajectory tracking server uses a face recognition method based on a face feature vector to compare the face image information of the entering person with the face image information of the resident person:

[0057] When the facial image information of the person entering is consistent with the facial image information of the resident person, it is considered that the person entering is a resident person, and the process returns to step S5;

[0058] When the facial image information of the entering person is inconsistent with the facial image information of the resident person, it is considered that the entering person is a non-resident person, and the process goes to step S7.

[0059] Furthermore, when there are multiple permanent personnel, it is necessary to compare the facial image information of the entering personnel with the facial image information of each permanent personnel respectively.

[0060] Furthermore, the video surveillance unit compares the facial image information of the person in the surveillance area with the target facial information through a facial recognition method based on facial feature vectors, and when the facial image information appearing in the surveillance area is consistent with the target facial image, it is considered that the target facial image appears in the area to which it belongs. When the video surveillance unit collects multiple facial information images of the person in the surveillance area, each image is compared with the target facial image.

[0061] The face recognition method based on face feature vectors includes:

[0062] A1. For any face image, select M facial feature points from the image, and establish a plane rectangular coordinate system with the center of the image as the origin; the M facial feature points include N key feature points (x1, y1), (x2, y2), ..., (x N ,y N) and MN common feature points (x N+1 ,y N+1 ),(x N+2 ,y N+2 ),...,(x M ,y M ), where M>N;

[0063] A2. Extract the position information of M facial feature points in the plane coordinate system (x1, y1), (x2, y2), ..., (x M ,y M ); where (x i ,y i ) represents the coordinates of the i-th facial feature point in the plane coordinate system, i = 1, 2, ..., M;

[0064] A3. Perform weighted calculation based on the position information of the M facial feature points to obtain the representative coordinates (x′, y′) of the reference point:

[0065]

[0066]

[0067] Among them, k i represents the weight of the i-th facial feature point, i = 1, 2, ..., M; the weight of the key feature point is 3 times the weight of the ordinary feature point, and k1+k2+...+k M =1;

[0068] A4. Calculate the representative coordinates (x′, y′) and N key feature points (x1, y1), (x2, y2), ..., (x N ,y N ) to obtain the eigenvector X in the x direction and the eigenvector Y in the y direction:

[0069] X=(x1-x′,x2-x′,...,x N -x′);

[0070] Y=(y1-x′,y2-x′,...,y N -x′);

[0071] A5. For any two face images to be compared, first perform tilt correction, then scale them to the same size, and obtain feature vectors according to steps A1 to A4;

[0072] Calculate the difference E between two face images: Assume that the feature vector obtained from the first image is X1, Y1; the feature vector obtained from the second image is X2, Y2, then:

[0073] E=|X1-X2|+|Y1-Y2|

[0074] Among them, |X1-X2| means finding the modulus of X1-X2, and |Y1-Y2| means finding the modulus of Y1-Y2;

[0075] It is determined whether E is greater than a preset threshold E′. If so, the two face images are considered inconsistent. If not, the two face images are considered inconsistent.

[0076] The key feature points refer to the facial feature points located in the eye, nose and mouth areas.

[0077] A personnel trajectory tracking device based on face recognition, comprising a trajectory tracking server, and video monitoring units located at the entrance of a monitoring scene and in each monitoring area within the monitoring scene;

[0078] The trajectory tracking server cooperates with each video monitoring unit to implement trajectory tracking according to the personnel trajectory tracking method.

[0079] The video monitoring unit includes a camera and a data transmission processing device, and the camera is connected to the trajectory tracking server through the data transmission processing device.

[0080] The data transmission processing device includes a microprocessor, a real-time clock module, a memory storing the number of the monitored area, and a wireless communication module; the microprocessor is respectively connected to the camera, the real-time clock module, the memory and the wireless communication module, and the wireless communication module is connected to the trajectory tracking server.

[0081] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A personnel trajectory tracking method based on face recognition, characterized in that: The following steps are involved: S1. The trajectory tracking server establishes a three-dimensional model of the monitoring scene and divides it into multiple monitoring areas. In the established three-dimensional model, each monitoring area is numbered; S2. Video surveillance units are arranged at the entrance of the monitoring scene and in each monitoring area within the monitoring scene to monitor facial image information in the area; S3. Save the number of the surveillance area in the video surveillance unit, and connect each video surveillance unit to the trajectory tracking server via a wireless network; S4. Save facial image information of resident personnel in the monitoring scene in the trajectory tracking server; S5. When a person enters the monitoring scene, the video surveillance unit at the entrance of the monitoring scene collects facial image information of the person entering and transmits it to the trajectory tracking server; S6. The trajectory tracking server compares the facial image information of the entrant with the facial image information of the resident personnel to determine whether the entrant is a resident personnel; If yes, return to step S5; If not, save the face image information of the person entering as the target face image and proceed to step S7; S7. The trajectory tracking server distributes the target face image to each video surveillance unit respectively; S8. Each video surveillance unit monitors the facial image information of the personnel in its own area in real time. When the target facial image is found in the area to which it belongs, the appearance time of the target facial image is recorded, and the appearance time and the number of the current monitoring area are transmitted together as the trajectory tracking information to the trajectory tracking server; S9. The trajectory tracking server takes out the number information contained in each trajectory tracking information, marks the monitoring area corresponding to the number information in the three-dimensional model, and then connects the centers of the marked monitoring areas in sequence according to the appearance time in the trajectory tracking information to obtain the target trajectory; In step S6, the trajectory tracking server uses a face recognition method based on face feature vectors to compare the face image information of the entering person with the face image information of the resident person: When the facial image information of the person entering is consistent with the facial image information of the resident person, it is considered that the person entering is a resident person, and the process returns to step S5; When the facial image information of the person entering is inconsistent with the facial image information of the resident person, the person entering is considered to be a non-resident person, and the process goes to step S7; The face recognition method based on face feature vectors includes: A1. For any face image, select M facial feature points from the image, and establish a plane rectangular coordinate system with the center of the image as the origin; the M facial feature points include N key feature points (x1, y1), (x2, y2), ..., (x N ,y N ) and MN common feature points (x N+1 ,y N+1 ),(x N+2 ,y N+2 ),...,(x M ,y M ), where M>N; A2. Extract the position information of M facial feature points in the plane coordinate system (x1, y1), (x2, y2), ..., (x M ,y M ); where (x i ,y i ) represents the coordinates of the i-th facial feature point in the plane coordinate system, i = 1, 2, ..., M; A3. Perform weighted calculation based on the position information of the M facial feature points to obtain the representative coordinates (x′, y′) of the reference point: Among them, k i represents the weight of the i-th facial feature point, i = 1, 2, ..., M; the weight of the key feature point is 3 times the weight of the ordinary feature point, and k1+k2+...+k M =1; A4. Calculate the representative coordinates (x′, y′) and N key feature points (x1, y1), (x2, y2), ..., (x N ,y N ) to obtain the eigenvector X in the x direction and the eigenvector Y in the y direction: X=(x1-x′,x2-x′,…,x N -x′)? Y=(y1-x′,y2-x′,...,y N -x′); A5. For any two face images to be compared, first perform tilt correction, then scale them to the same size, and obtain feature vectors according to steps A1 to A4; Calculate the difference E between two face images: Assume that the feature vector obtained from the first image is X1, Y1; the feature vector obtained from the second image is X2, Y2, then: E=|X1-X2|+|Y1-Y2| Among them, |X1-X2| means finding the modulus of X1-X2, and |Y1-Y2| means finding the modulus of Y1-Y2; It is determined whether E is greater than a preset threshold E′. If so, the two face images are considered inconsistent. If not, the two face images are considered inconsistent.

2. The method for tracking a person's trajectory based on face recognition according to claim 1, characterized in that: When there are multiple permanent personnel, it is necessary to compare the facial image information of the entering personnel with the facial image information of each permanent personnel respectively.

3. The method for tracking a person's trajectory based on face recognition according to claim 1, characterized in that: The video monitoring unit compares the facial image information of people in the monitoring area with the target facial information through a facial recognition method based on facial feature vectors. When the facial image information appearing in the monitoring area is consistent with the target facial image, it is considered that the target facial image appears in the area to which it belongs.

4. The method for tracking a person's trajectory based on face recognition according to claim 3, characterized in that: When the video monitoring unit collects multiple images of facial information of people in the monitoring area, each image is compared with the target facial image.

5. The method for tracking a person's trajectory based on face recognition according to claim 1, characterized in that: The key feature points refer to the facial feature points located in the eye, nose and mouth areas.

6. A personnel trajectory tracking device based on face recognition, using the method described in any one of claims 1 to 5 to perform trajectory tracking, characterized in that: It includes a trajectory tracking server, and video monitoring units located at the entrance of the monitoring scene and in each monitoring area within the monitoring scene; The trajectory tracking server cooperates with each video monitoring unit to implement trajectory tracking according to the personnel trajectory tracking method.

7. The person trajectory tracking device based on face recognition according to claim 6, characterized in that: The video monitoring unit includes a camera and a data transmission processing device, and the camera is connected to the trajectory tracking server through the data transmission processing device.

8. The person trajectory tracking device based on face recognition according to claim 7, characterized in that: The data transmission processing device includes a microprocessor, a real-time clock module, a memory storing the number of the monitored area, and a wireless communication module; the microprocessor is respectively connected to the camera, the real-time clock module, the memory and the wireless communication module, and the wireless communication module is connected to the trajectory tracking server.