The present invention relates to a thermal face and landmark detection method and a method for creating a landmark database of a thermal face image set as ground truth reference.
Similarly to classical Face Recognition (FR) systems, Cross spectral Face Recognition (CFR) systems requires face detection and alignment process as first and foremost processing steps. While it might be easy to perform landmark detection on RGB-face images (visible spectrum), it remains a challenge in the context of thermal spectrum. In particular, thermal face images tend to have low contrast, low resolution and lack of texture information. Therefore, existing work dealing with visible face suffers from the modality gap and does not effectively extract facial key points when applied directly in the thermal domain. Furthermore, the lack of available annotated thermal dataset impart very limited work focused on thermal facial landmarks detection.
Prior art on this field are inter alia:
Most prior approach have focused on existing visible spectrum methods, such as Deep Alignment Network (DAN), Multi-task Cascaded Convolutional Networks (MTCNN) or Active Appearance Model (AAM) and tried to be adapted for the thermal spectrum. However, the large inter-spectral difference led to inaccurate detection results.
Nevertheless, face and landmarks detection through the thermal spectrum can also be addressed by designing a network based on Generative Adversarial Network (GAN), which translates facial images from the thermal spectrum to the visible spectrum. Once the spectral translation is applied, facial key point could then be extracted and shared on the original thermal face. However, the facial identity is not preserved during the spectral transformation and means that salient regions of the face have not the same appearance than the reality. As a result, the methodology provides poor facial key point locations.
It is an object of the present invention to provide a reliable thermal face and landmark detection method in unconstrained environment (adaptive to in-the-wild scenario) which overcomes the scarcity of previous known thermal-only face landmark detection work, while being robust to different conditions such as (1) facial pose, (2) facial expression, (3) facial occlusion, (4) poor image quality and (5) long range distance.
Additionally, the inventors have found that the necessary initial automatic ground truth annotation database necessary as starting point for the deep learning method can be used, while gathering data from different public thermal datasets, to establish a benchmark for face and landmarks detection as well as automatic ground truth annotations in the thermal field.
The present method solves the problem (i) scarcity of annotated thermal face database and (ii) lack of method for thermal face detection as well as thermal landmark face detection.
(i) Few thermal face dataset contain labeled images and usually includes limited numbers of key points (around 5: left and right eyes, nose and corner left and right mouth).
Existing labeled dataset with such low key points can be enhanced by applying a key point augmentation up to 68 landmarks. To enable the key point augmentation the present method rely on Dlib, a state of the art facial detector which extract 68 landmarks representing salient regions of the face such as Eyes, Eyebrows, Nose, mouth and jawline is applied.
Considering a large scale database including synchronized and aligned visible-thermal face, facial landmarks are extracted from the visible face and shared to the thermal counterpart face in order to be used as ground truth reference.
(ii) There are two embodiments:
In one embodiment, the present invention considers face and landmarks detection as a sub-task of traditional object detection model and thus can involves YoloV5. Particularly, the invention designs a series of two successive YoloV5 models M1 and M2, respectively. M1 is dedicated to detect the entire face on thermal imagery while M2 is used to detect the 68 learned facial key point on the prior detected cropped-face by primarily applying a “Face Super Resolution” (FSR) post-processing filter. It is preferred to name this approach application of Gaussian filters as post-processing filter. By applying these filters, many visual details are highlighted, improving edge quality, contrast and sharpness of the face and ultimately allowing better detection accuracy.
In the other embodiment, the present invention also considers face and landmarks detection as a sub-task of traditional object detection model and thus can involves YoloV5. Particularly, the invention designs a series of two successive YoloV5 models M1 and M2, respectively. Here, a pre-processing filter TFR for Thermal Face Restoration filter is used on the data from the thermal sensor to produce an enhanced image. Only then the network is fed with the pre-processed and filtered thermal image, where M1 is dedicated to detect a set of Fn faces and provides for each of them the cropped image, while M2 is used to detect the face and already enhanced 68 learned facial key point on the cropped image. By applying these filters, many visual details are highlighted, improving edge quality, contrast and sharpness of the face and ultimately allowing better detection accuracy.
By adopting the (i) and (ii) above approaches, the invention is capable of detecting faces and landmarks in challenging conditions as well as in almost all thermal images in the wild. The present invention in particular offers the ability to detect a large amount of thermal facial key points. On the other hand, the invention can additionally in a second application be used as a rich automatic annotation tool for all thermal face database without referenced data.
The main features of the present invention are the following: A series of two successive object detector for face and landmarks detection respectively are applied, while being robust to different conditions in unconstrained environment (adaptive to the in-the-wild scenario). Within a specific embodiment the object detector YoloV5 was applied for the task of thermal face and landmarks detection and the resulting detection performance gives accurate facial key points. Benefits from YoloV5 provides to the invention a real-time face and landmarks detection.
To achieve a much accurate detection, a filter scheme is to be applies. This can be e.g. a Gaussian Filter or a Face Super Resolution (FSR) scheme provided as post-processing filter. However, it is preferred to provide a Thermal Face Restoration (TFR) pre-processing filter on the thermal image, i.e. before the cropping step.
The invention allowed the model trained on a large scale face images containing millions of images. This dataset was augmented by a set of wide array of different conditions including low resolution images, sharp images and occluded images.
The quality of landmarks affect the quality of the face alignment and face recognition. In this context a landmark is a point which all the faces share and which has a particular biological meaning.
The invention comprises a thermal face and landmark detection method with the features of claim 1. Within this method is preferably applied an object detector for detecting the face. It is preferred that the models behind the object detector and the landmark detector are based on Yolo, especially YoloV5 where face and landmark are considered as bounding area and center of a textured area, respectively, rather than box detection or specific points.
A method for creating a landmark database of a thermal face image set as ground truth reference database is disclosed in claim 4. The visible image facial landmarks can represent salient regions of the face, especially taken from the group comprising eye, eyebrows, nose, mouth and jawline. In order to discriminate for the left and for the right version of eyes or eyebrows, the vertical symmetry axis of the visible image facial landmark of the nose is used.
Extracting visible image facial landmarks can be based on Dlib, but also other multi-landmark comprising sets can be used.
The thermal images of a visible image-thermal image pair can be augmented, especially augmented by introducing a set of a 4 circles occlusion, a 4 rectangles occlusions, a low resolution degradation and a FSR enhancement to enhance robustness of the method.
A thermal face recognition method can comprise an initial offline creation step of a ground truth reference database according to any one of claims 4 to 8 and a subsequent real-time online face recognition step according to any one of claims 1 to 3.
Finally, the landmark ground truth reference database according to any one of claims 4 to 9 can be used for annotating a thermal face database without referenced data.
Further embodiments of the invention are laid down in the dependent claims.
Preferred embodiments of the invention are described in the following with reference to the drawings, which are for the purpose of illustrating the present preferred embodiments of the invention and not for the purpose of limiting the same. In the drawings,
The subsequent real-time online face recognition step comprises capturing a thermal image 10 comprising at least one face 20. It is possible that the image comprises a number of different faces at different positions in the thermal image 10. Then one single face 21 is detected in said thermal image 10. Of course, other single faces can be detected as well and will be handled subsequently. The thermal image 10 is cropped which is marked as reference numeral 30 and this method step is also marked as M1. The cropping step creates a cropped face thermal image 35.
M1 as a neural network is firstly fed by Iw×h,nthm, an image n, being thermal thm and having a width w and a height h. M1 starts to detect a set of Fn faces and provides for each of them the corresponding cropped face Fw
In other words:
A Gaussian filters method 40 is applied to i-th the cropped face Fw
Motivated by thermal sensors providing both poor image quality and low spatial resolution, improving the image quality is essential for performing accurate facial landmark locations. Therefore, the cropped face thermal image 35 is submitted to a Face Super Resolution (FSR) post-processing filter in order to reveal many visual details and enhance edge quality, contrast and sharpness. FSR is based on a combination of several Difference of Gaussians (DoG) filters consisting of following (3; 3); (5; 5) and (9; 9) Gaussian kernel size. Given a thermal image Iw×hthm being the image 35, the FSR image 45 resulting after application can be written as FSR(Iw×hthm). The present method according to this first embodiment uses the above mentioned cropped faces Fw
The second embodiment uses a preprocessing filter TFR 40′ applied on the image 20 as such. In other words, the original image 35′ is enhanced by applying the filter 40′ to the enhanced image 45′ but working on the image of width w and height h for all n faces in the image:
The TFR filter 40′ is based on a combination of several Difference of Gaussians (DoG) filters consisting of following (3; 3); (5; 5) and (9; 9) Gaussian kernel size. Given a thermal image Iw×hthm being the image 35′, the TFR image 45′ resulting after application can be written as TFR(Iw×h,nthm). Then the cropped image 45 is generated for the next step of application of the landmark detector.
A landmark detector 50 is applied to the improved cropped face thermal image 45 creating a landmarked cropped face thermal image 55. This landmark detector 50 also marked as M2 is used to produce the final landmarks output. For Fn≠0 and all f∈[1,Fn], the landmark detector M2 attempts to give a set Lf,n of 68 landmarks corresponding to the f-.th face of the n-th image as:
In particular
where lkf,n refers to the coordinates (xkf,n,)∈
of the k-th landmark present in the f-th face of the n-th image. In case lkf,n is miss-detected, M2 returns an empty point. Finally, for all f∈[1, Fn], Lf,n is reported on the original Iw×h,nthm thermal input image given therefore the final landmark locations. The number of landmarks, here 68 depends on the library used. Dlib just provides 68 landmarks.
Now, this cropped face thermal image 55 is used in a face recognition step through applying face recognition on the landmarked cropped face thermal image 55 against the ground truth reference.
The method according to an embodiment of the invention applies a series of said two successive object detector models, M1 and M2, for face and landmarks detection respectively, while being robust to different conditions in unconstrained environment, i.e. thermal image in the wild.
As explained above
It is possible to apply the object detector Yolo and especially YoloV5 for this task of thermal face and landmarks detection. Resulting detection performance gives accurate facial key points. A further benefit using YoloV5 provides the method real-time face and landmarks detection. Either, the two tasks as provided by M1 and M2 are separated by a post-processing filter according to the first embodiment or M1 and M2 follow each other but are preceded by a preprocessing filter, both options allowing for a more accurate detection. M1 has the purpose of detecting the region of interest that contains faces from the background while M2 aims to extract on the prior cropped region said up to 68 landmarks by being robust to different conditions such as facial pose, facial expression, facial occlusion, poor image quality and long range distance.
Iw×h,nthm is the thermal image of an image belonging to the set {Iw×h,nthm N thermal images. The value of each element is between 0 and 255 wherein due to the nature of thermal imagery a face will emit a significant amount of heat and thus will appear as high light intensity.
The method as mentioned rely on a two stage detection, face and landmarks. Therefore, two metrics used for quantitatively evaluate (i) the thermal face detection 30 and (ii) the thermal landmarks face detection 50.
The face detection capacity is evaluated by the Detection Rate (DR) metric. Given a thermal image Iw×h,nthm containing Fn faces, the cardinality yielding the number of face properly detected by the model M1 is defined as |M1(Iw×h,nthm)|=F. F denotes the number of correct face detected. In particular, a detected face Fw
N represents the total number of images tested and Fn is the real number of face present in the n-th images.
Relating to the landmark detection when applying model M2, the location performance is evaluated by the Normalized Point-to-Point Error (NPPE) metric. Given a set of N testing thermal images {Iw×h,nthm}n=1N and a detected Fw
Where l is the desired coordinates and {circumflex over (l)} the estimated coordinates provided by the method. The quantity dF D represents the diagonal of the face bounds provided by the Fw
By imposing a fixed threshold λ, the performance of the model can be reformulated in terms of landmark DR. A good landmark detection is reached when
Therefore, the landmark DR computed for a fixed face f∈[1; Fn] present in n-th image is defined as
The method aims to provide lower NPPE expressed in the calculation of Pkf,n while a higher DR is obtained with DRM1 and DRM2.
Relating the initial offline creation step of a ground truth reference database, it is noted that a thermal face database is affected by the lack of labelled data and the few available database usually includes limited numbers of key points such as left and right eye, nose, and left and right mouth corner. As a result very limited work has focused on thermal facial landmark detection task. To enable key point augmentation in the thermal field, the present method rely on Dlib, a state of the art facial detector in the visible field, see http//dlib.net/face_detector.py.html. The network extracts 68 landmarks representing salient regions of the face such as eyes, eyebrows, nose, mouth and jawline.
The method is based on creating, acquiring or just using a large scale database including synchronized and aligned visible-thermal face pairs. If this set of images has to be constructed, then the basic step comprises acquiring a visible light face image 110 set and a thermal face image 120 set of the same plurality of persons.
Each visible light face image 110 has to be aligned and synchronized with the associated thermal face image 120. Then facial landmarks are extracted from the visible face 110 and shared to the thermal counterpart face 120 in order to be used as ground truth references.
The method is shown in
The method applies the step of extracting visible image facial landmarks 111, 112, 113, 114, 115, 116, 117 from the visible light face image 110 and transfer these visible image landmarks on the associated thermal face image 120 as thermal image facial landmarks 121, 122, 123, 124, 125, 126, 127.
The symmetry of the face could disrupt the landmark labelling, thus detected key points can be classified erroneously as the opposite label. For instance, the model can confuse a left eye 116 label with a right eye 113 label and therefore provides two different landmarks with the same label. Preferably, a geometric reasoning process is applied in order to guide the labelling detection. In particular, the reasoning step is based on the vertical symmetry bounded by the centre 115′ of the nose. Since the nose 115 is the central element of the face, its coordinates in x-axis separate the face into a right and a left part. Therefore, landmarks with x-axis coordinates lower than the x-axis nose coordinate mean that the label falls into the left part, and vice versa. This separation is also transferrable as 125′ on the thermal image.
Based on the set of images, the method comprises creating a benchmark of annotation of landmarks of the thermal face image 120 set as ground truth reference.
Applying these augmentations in the simulations allows the model to be robust to different thermal conditions in unconstrained environment, thus adaptive to the in-the-wild scenario.
To evaluate the effectiveness of the method according to the invention, a series of test on the ARL-VTF database including baseline, expression and pose sequences was conducted under several variations: Raw, Sharp, Occlusion and Poor image quality, wherein Raw is related to the original thermal image quality.
An experiment has been carried out with the large scale ARLVisible Thermal Face dataset (ARL-VTF) published by Domenick Poster, Matthew Thieke, Robert Nguyen, Srinivasan Rajaraman, Xing Di, Cedric Nimpa Fondje, Vishal M. Patel, Nathaniel J. Short, Benjamin S. Riggan, Nasser M. Nasrabadi, and Shuowen Hu, under “A large-scale time-synchronized visible and thermal face dataset,” in IEEE Winter Conference on Applications of Computer Vision, 2021. The set contains a collection of paired visible and thermal face from 345 subjects with over 500,000 images including baseline (frontal face), occlusion (eyeglasses), expression (lips movements) and pose (yaw angles beyond 20) sequences. The acquisition mode was run in a time synchronized manner and included eye, nose and mouth key point annotations. By following the established evaluation protocol, 295 subjects were assigned for training and 100 subjects for testing.
In view of the face detection, where the model M1 is responsible of the face detection and Table 1 reports the performance in terms of detection rate DRM1×100%.
When tested on baseline and expression subsets, M1 demonstrates perfect robustness since 100% faces are property detected under all variations. Both baseline and expression sequences do not differ in terms of face appearance as the change is lips motion and therefore has no impact on the face detection. However, the performance is slightly degraded when dealing with off pose conditions with some nuance. It is observed that TFR filter still improves the performance from 99.07% to 99.15% and on the other hand occlusions and poor image quality variations decrease the score from 99.07% to 98.96% and 98.95% respectively.
The boxes of
Number | Date | Country | Kind |
---|---|---|---|
21306773.9 | Dec 2021 | EP | regional |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2022/085480 | 12/13/2022 | WO |