A method and device for establishing a face detection model and face recognition
A face detection and face recognition technology, applied in the field of recognition, can solve the problems of small scope of application and low accuracy of face detection methods, and achieve the effect of adding diversification of functions, avoiding the reduction of detection data accuracy, and expanding the scope of application
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] This embodiment provides a method for establishing a face detection model, which can be used for the establishment of a detection model in the process of face recognition, such as figure 1 shown, including the following steps:
[0030] S11: collect face data as a positive sample, and collect image data that does not contain a face as a negative sample. Here, the face data used for the positive samples may be face data in some historical images, and the face data includes but not limited to face information, lighting scene information, age information and gender information. Accurate face data can obtain a more accurate face detection model. In order to have a clear distinction from positive samples, negative samples should select image data that does not contain human faces to achieve accurate distinction between human faces and non-human faces. In the specific implementation process, the size of positive and negative samples can be unified Transformation, such as uni...
Embodiment 2
[0037] This embodiment provides a face recognition method, which can be used for face recognition in various scenarios, such as figure 2 shown, including the following steps:
[0038] S21: Extract color information of the target image. Here, the target image can be a complete image to be detected, or it can be an image in multiple sliding windows divided from an image, and the color information of the target image can be used as a reference for face recognition, thereby reducing the size of the image. The range of face detection. As a preferred solution, step S21 may include: converting the target image into a YUV color space to obtain YUV data of the target image; extracting U data and V data from the YUV data as color information of the target image. That is, the principle of pink detection is used for skin color discrimination. Skin color detection refers to the process of selecting pixels corresponding to human skin in the target image. Specifically, the target image is...
Embodiment 3
[0048] This embodiment provides a device for establishing a face detection model, which can be used for the establishment of a detection model in the face recognition process, such as image 3 Shown, comprise: acquisition module 31, conversion module 32, the first extraction module 33 and training module 34, each module function is as follows:
[0049] The collection module 31 is configured to collect face data as a positive sample, and collect image data that does not contain a face as a negative sample. For details, refer to the detailed description of step S11 in Embodiment 1.
[0050] The conversion module 32 is configured to convert the positive samples and negative samples into polar coordinate system data. For details, refer to the detailed description of step S12 in Embodiment 1.
[0051] The first extraction module 33 is configured to extract the polar coordinate features of the positive sample and the negative sample from the polar coordinate system data. For details...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com