WO2019014814A1 - Method for quantitatively detecting forehead wrinkles on human face, and intelligent terminal - Google Patents

Method for quantitatively detecting forehead wrinkles on human face, and intelligent terminal Download PDF

Info

Publication number
WO2019014814A1
WO2019014814A1 PCT/CN2017/093191 CN2017093191W WO2019014814A1 WO 2019014814 A1 WO2019014814 A1 WO 2019014814A1 CN 2017093191 W CN2017093191 W CN 2017093191W WO 2019014814 A1 WO2019014814 A1 WO 2019014814A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
block set
face
black pixel
total area
Prior art date
Application number
PCT/CN2017/093191
Other languages
French (fr)
Chinese (zh)
Inventor
林丽梅
Original Assignee
深圳和而泰智能控制股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳和而泰智能控制股份有限公司 filed Critical 深圳和而泰智能控制股份有限公司
Priority to CN201780004161.XA priority Critical patent/CN108369644B/en
Priority to PCT/CN2017/093191 priority patent/WO2019014814A1/en
Publication of WO2019014814A1 publication Critical patent/WO2019014814A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/462Salient features, e.g. scale invariant feature transforms [SIFT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation

Definitions

  • Face recognition technology is a technology for identifying and comparing facial visual feature information.
  • the research fields of face recognition technology include: identity recognition, expression recognition and gender recognition.
  • the face-lifting pattern is often used as an important facial visual feature information because of its different characteristics depending on the age or facial expression of the person.
  • face wrinkles can be detected by machine learning classification algorithms such as Bayesian algorithm and neural network algorithm.
  • the specific implementation process of the method for detecting facial wrinkles is: for a given input image that may include a human face, initially determining the approximate position of the face, extracting the outline of the inner face; and then using a sliding small window inside the face Slide on, and use the machine learning model to identify and classify the pictures in the window to determine whether they belong to wrinkles; if they belong to wrinkles, extract them; finally, combine the extracted pictures to obtain grayscale images of wrinkles.
  • the inventors have found that at least the following problems exist in the prior art: First, the inner face extracted in the prior art is a portion below the eyebrows, and does not include a forehead portion. Secondly, training machine learning models requires a large amount of tag data, and collecting tag data requires a lot of manpower and financial resources. Moreover, the prior art can only determine whether the block on the face is wrinkles and cannot quantify the severity of wrinkles. Therefore, even if the existing wrinkle detection technology is applied to the detection of face lift, it is not easy and convenient to quantitatively detect the severity of the raised lines in the face image.
  • an embodiment of the present application provides a method for quantitatively detecting a face raising pattern, including:
  • the image processing including binarization processing
  • the determining, according to the first valid block set, the lookup level of the face image including:
  • the determining, according to the first valid block set, the lookup level of the face image including:
  • the method further includes:
  • the acquiring the black pixel block set corresponding to the raised head in the fourth image, and recording the second active block set includes:
  • the determining, according to the first valid block set and the second valid block set, the headline level of the face image including:
  • the determining, according to the first valid block set and the second valid block set, the headline level of the face image including:
  • an embodiment of the present application provides a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium stores computer executable instructions for causing a smart terminal to execute the above The method for quantitatively detecting a face raising pattern.
  • the embodiment of the present application further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program When the instruction is executed by the smart terminal, the smart terminal is caused to perform the method of quantitatively detecting the face lift pattern as described above.
  • An advantageous effect of the embodiment of the present application is that the method for quantitatively detecting a face-lifting head and the smart terminal provided by the embodiment of the present application intercepts an image corresponding to the forehead region of the face image by acquiring a face image, and recording a first image; then performing image processing including binarization processing on the first image to obtain a second image; and then acquiring a black pixel block set corresponding to the raised pattern in the second image, which is recorded as the first effective Block collection; finally determining the headline level of the face image according to the first effective block set, so that not only accurate recognition of the face image of the face image but also quantification of the severity thereof can be achieved.
  • the detection and quantitative detection methods are quick and convenient.
  • FIG. 4(a) is a schematic diagram showing an example of a second image provided by an embodiment of the present application
  • FIG. 4(b) is a schematic diagram showing another example of a second image provided by an embodiment of the present application
  • FIG. 5 is a schematic flow chart of another method for quantitatively detecting a face-lifting head according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an example of a third image provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an apparatus for quantitatively detecting a face raising pattern according to an embodiment of the present application.
  • the face-lifting pattern refers to the wrinkles on the forehead of the face. In people's ordinary facial expressions, it will not help Autonomously raises the eyebrows. In the long run, it will reduce and damage the muscles of the forehead. The elasticity of the subcutaneous fibrous tissue will gradually decrease, and the eyebrows will be habitually left behind when pressed into the forehead skin. Forming a face-lifting pattern, as the number of times the eyebrows are squeezed to the forehead skin increases, the number of face-lifting lines formed gradually increases, and gradually tends to become stubborn true wrinkles.
  • the method provided by the embodiment of the present application can be applied to any smart terminal having an image processing function.
  • the smart terminal includes but is not limited to: a beauty authentication machine, a personal computer, a tablet computer, a smart phone, a terminal server, and the like.
  • the smart terminal can include any suitable type of storage medium for storing data, such as a magnetic disk, a compact disc (CD-ROM), a read-only memory or a random access memory.
  • the smart terminal may also include one or more logical computing modules that perform any suitable type of function or operation in parallel, such as viewing a database, image processing, etc., in a single thread or multiple threads.
  • the logic operation module may be any suitable type of electronic circuit or chip-type electronic device capable of performing logical operation operations, such as a single core processor, a multi-core processor, a graphics processing unit (GPU), or the like.
  • the method for obtaining the coordinate parameters of the key points of the eyebrows in the face image may be: first, using a third-party toolkit, such as: dlib, performing face key points on the face image (eg, eyebrow key points, eyes) Positioning key points, facial contour key points, mouth key points, etc., and then selecting preset eyebrow key points and determining coordinate parameters thereof, the preset eyebrow key points may include one or more; or, The key points of the eyebrows preset in the face image are directly extracted, and the coordinate parameters thereof are obtained.
  • a third-party toolkit such as: dlib
  • performing face key points on the face image eg, eyebrow key points, eyes
  • Positioning key points, facial contour key points, mouth key points, etc. Positioning key points, facial contour key points, mouth key points, etc.
  • selecting preset eyebrow key points and determining coordinate parameters thereof the preset eyebrow key points may include one or more
  • the key points of the eyebrows preset in the face image are directly extracted, and the coordinate parameters thereof are obtained.
  • the texture feature of the wrinkles in the first image is mapped by binarizing the first image.
  • the binarization processing of the image may be performed by dividing the image into N windows according to a certain rule, and then dividing the pixels in the window according to a uniform threshold T for each of the N windows. For the two parts, binarization is performed.
  • the first image is binarized by adaptive threshold binarization processing, which is based on the neighborhood block of the pixel. The pixel value distribution determines the binarization threshold at the pixel location, and a better segmentation effect can be obtained.
  • the specific implementation manner of acquiring the black pixel block set corresponding to the raised head in the second image may be: determining a first reference width threshold u based on the second image; detecting the second All black pixel blocks in the image are recorded as a first block set; the noise block in the first block set is filtered according to the first reference width threshold u to obtain a black pixel block set corresponding to the raised head mark , recorded as the first valid block set.
  • the "head-up level” refers to the severity of the raised pattern of the detected person, which can be divided into multiple levels such as light, medium, and heavy, and each level corresponds to a corresponding one. Reference range.
  • the "reference value” is a parameter R that can determine the severity of the headline
  • the division standard of the reference value range corresponding to each level can be set by experimenting and observing the headstrip of a large number of face images. . For example, a batch of face images whose statistical degree of wrinkles looks very serious, whose reference value R is greater than or equal to a certain value, for example, R ⁇ a, the headline level of the face image satisfying R ⁇ a is determined as Heavy wrinkle rating.
  • the "filtering process” is to remove the texture features belonging to the fine lines in the first image, leaving only the texture features of the wrinkles. Therefore, it can be considered that the first image is an image including both fine lines and wrinkles, and the third image is an image including only wrinkles.
  • the head-up image of the face image is first divided into two categories according to the degree of the depth of the head-up pattern: fine lines and wrinkles, and then the level of the head-up pattern is subdivided in each category, and thus, in this embodiment
  • the "head-up pattern” may include, but is not limited to, no fine lines, no wrinkles, mild fine lines, moderate fine lines, severe fine lines, mild wrinkles, moderate wrinkles, and severe wrinkles.
  • the reference values Ra and Rb and the reference value range corresponding to each level may be set for the second image and the fourth image by experimenting and observing the headstrip of the plurality of face images in advance, and then based on the reference value. And its range determines the level of the raised face of the face image.
  • the manner in which the reference values Ra and Rb are set may be the same or different.
  • the total length of all black pixel blocks in the first/second effective block set in the horizontal direction may be directly used as the reference value Ra/Rb, and then combined with the values of the reference values Ra and Rb.
  • the head-up level of the face image is determined, and will not be enumerated here.
  • the first image, The second image, the third image, and the fourth image all have the same size.
  • the beneficial effects of the embodiment of the present application are: obtaining a third image by performing filtering processing on the first image, and performing image processing including binarization processing on the first image and the third image respectively to obtain a second image.
  • the image and the fourth image, and then determining the head-up level of the face image according to the second image and the fourth image, can divide the face-up pattern into two categories of fine lines and wrinkles, further refining the level of the face-lifting pattern. Improves the accuracy of quantitative detection of face-lifting lines.
  • FIG. 8 is a schematic structural diagram of a device for quantitatively detecting a face raising pattern according to an embodiment of the present application.
  • the device 8 includes:
  • An image obtaining unit 81 configured to acquire a face image
  • the image processing unit 83 is configured to perform image processing on the first image to obtain a second image, where the image processing includes a binarization process, or the image processing includes a binarization process and an erosion process;
  • the determining unit 85 is configured to determine a heading level of the face image according to the first valid block set.
  • apparatus 8 further includes filter processing unit 86 for performing a filtering process on the first image to obtain a third image.
  • the image processing unit 83 is further configured to: perform the binarization processing on the third image to obtain a fourth image.
  • the first image is further filtered by the filtering unit 86 to obtain a third image
  • the first image and the third image are respectively subjected to image processing in the image processing unit 83 to obtain a second image and a third image.
  • the first valid block set and the second effective block set are obtained by the edge detecting unit 84
  • the determining unit 85 determines the heading level of the face image according to the first effective block set and the second effective block set. It can divide the face-up pattern into two categories: fine lines and wrinkles, further refine the level of face-lifting lines, and improve the accuracy of quantitative detection of face-lifting lines.
  • the smart terminal 900 can be any type of electronic device, such as a mobile phone, a tablet computer, a beauty authentication device, etc. Referring to FIG. 9, the smart terminal 900 is shown in FIG. include:
  • processors 910 and memory 920 one processor 910 is taken as an example in FIG.
  • the memory 920 can include a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function; the storage data area can store an operation created according to the use of the device for quantitatively detecting the face-lifting of the face Data, etc.
  • memory 920 can include high speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • the memory 920 can optionally include a memory remotely located relative to the processor 910 that can be connected via a network to a device that quantitatively detects face lift. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the embodiment of the present application further provides a non-transitory computer readable storage medium storing computer executable instructions executed by one or more processors, for example, A processor 910 in FIG. 9 may cause the one or more processors to perform the method of quantitatively detecting face lift in any of the above method embodiments, for example, performing the method steps 110 to 110 in FIG. 1 described above. 150, method steps 510 through 580 of FIG. 5, implement the functions of units 81-86 of FIG.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Geometry (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

Provided are a method for quantitatively detecting forehead wrinkles on a human face, and an intelligent terminal. The method comprises: acquiring a facial image; capturing an image, corresponding to a forehead area, in the facial image, and marking the image as a first image; processing the first image to obtain a second image, wherein the image processing comprises binarization processing; acquiring a black pixel block set, corresponding to forehead wrinkles, in the second image, and marking the black pixel block set as a first valid block set; and according to the first valid block set, determining the level of the forehead wrinkles in the facial image. By means of the above-mentioned technical solution, the embodiments of the present application can quantitatively detect the severity of forehead wrinkles in a facial image, and the quantitative detection method is fast and convenient.

Description

一种定量检测人脸抬头纹的方法和智能终端Method for quantitatively detecting face headline and intelligent terminal 技术领域Technical field
本申请涉及人脸识别技术领域,尤其涉及一种定量检测人脸抬头纹的方法和智能终端。The present application relates to the field of face recognition technologies, and in particular, to a method and a smart terminal for quantitatively detecting face heads up.
背景技术Background technique
人脸识别技术是一种通过分析比较人脸视觉特征信息进行身份鉴定的技术,当前,人脸识别技术的研究领域包括:身份识别、表情识别以及性别识别等。其中,在人脸识别技术中,人脸抬头纹因其随着人的年龄或者面部表情的不同而有所差异的特性,常被作为一个重要的人脸视觉特征信息。Face recognition technology is a technology for identifying and comparing facial visual feature information. Currently, the research fields of face recognition technology include: identity recognition, expression recognition and gender recognition. Among them, in the face recognition technology, the face-lifting pattern is often used as an important facial visual feature information because of its different characteristics depending on the age or facial expression of the person.
当前,可以通过贝叶斯算法、神经网络算法等机器学习分类算法来检测人脸皱纹。该检测人脸皱纹的技术的具体实现过程为:对于给定的可能包含人脸的输入图像,初步判断人脸的大概位置,提取出内脸的轮廓;然后用一滑动的小窗口在内脸上进行滑动,并用机器学习模型对窗口内的图片进行识别分类,判断其是否属于皱纹;如果属于皱纹,则将其提取出来;最后对提取出的图片进行组合获得皱纹的灰度图像。Currently, face wrinkles can be detected by machine learning classification algorithms such as Bayesian algorithm and neural network algorithm. The specific implementation process of the method for detecting facial wrinkles is: for a given input image that may include a human face, initially determining the approximate position of the face, extracting the outline of the inner face; and then using a sliding small window inside the face Slide on, and use the machine learning model to identify and classify the pictures in the window to determine whether they belong to wrinkles; if they belong to wrinkles, extract them; finally, combine the extracted pictures to obtain grayscale images of wrinkles.
然而,在实现本申请过程中,发明人发现现有技术中至少存在如下问题:首先,现有技术中提取的内脸是在眉毛以下的部位,并不包括额头部位。其次,训练机器学习模型需要大量的标签数据,而收集标签数据需耗费大量的人力和财力,并且,现有技术只能判别脸上的区块是否属于皱纹,不能对皱纹的严重程度进行定量化的检测,因此,即便将现有的皱纹检测技术应用于检测人脸抬头纹,也无法简单、方便地对人脸图像中的抬头纹的严重程度进行定量化的检测。However, in the process of implementing the present application, the inventors have found that at least the following problems exist in the prior art: First, the inner face extracted in the prior art is a portion below the eyebrows, and does not include a forehead portion. Secondly, training machine learning models requires a large amount of tag data, and collecting tag data requires a lot of manpower and financial resources. Moreover, the prior art can only determine whether the block on the face is wrinkles and cannot quantify the severity of wrinkles. Therefore, even if the existing wrinkle detection technology is applied to the detection of face lift, it is not easy and convenient to quantitatively detect the severity of the raised lines in the face image.
发明内容Summary of the invention
本申请实施例提供一种定量检测人脸抬头纹的方法和智能终端,能够解决现有的皱纹检测技术无法简单、方便地对人脸图像中的抬头纹的严重程度进行 定量化的检测的问题。The embodiment of the present application provides a method for quantitatively detecting a face raising pattern and an intelligent terminal, which can solve the problem that the existing wrinkle detecting technology cannot simply and conveniently perform the severity of the raised head in the face image. Quantitative detection of problems.
第一方面,本申请实施例提供了一种定量检测人脸抬头纹的方法,包括:In a first aspect, an embodiment of the present application provides a method for quantitatively detecting a face raising pattern, including:
获取人脸图像;Obtaining a face image;
截取所述人脸图像中额头区域对应的图像,并记为第一图像;Intercepting an image corresponding to the forehead region in the face image, and recording the image as a first image;
对所述第一图像进行图像处理获得第二图像,所述图像处理包括二值化处理;Performing image processing on the first image to obtain a second image, the image processing including binarization processing;
获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合;Obtaining a black pixel block set corresponding to the raised head line in the second image, and recording the first effective block set;
根据所述第一有效区块集合确定所述人脸图像的抬头纹等级。Determining a headline level of the face image according to the first valid block set.
可选地,所述获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合,包括:Optionally, the acquiring the black pixel block set corresponding to the raised head in the second image is recorded as the first valid block set, and includes:
基于所述第二图像确定第一基准宽度阈值;Determining a first reference width threshold based on the second image;
检测出所述第二图像中所有黑色像素区块,记为第一区块集合;Detecting all black pixel blocks in the second image, and recording them as a first block set;
根据所述第一基准宽度阈值过滤所述第一区块集合中的噪音区块,获得与抬头纹对应的黑色像素区块集合,记为第一有效区块集合。Filtering the noise blocks in the first block set according to the first reference width threshold, and obtaining a black pixel block set corresponding to the headstrip, which is recorded as the first valid block set.
可选地,所述根据所述第一有效区块集合确定所述人脸图像的抬头纹等级,包括:Optionally, the determining, according to the first valid block set, the lookup level of the face image, including:
计算所述第一有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第一总长;Calculating a total length of all black pixel blocks in the first active block set in a horizontal direction, and recording the first total length;
根据所述第一总长与所述第二图像的总面积的比值确定所述人脸图像的抬头纹等级。And determining a head-up level of the face image according to a ratio of the first total length to a total area of the second image.
可选地,所述根据所述第一有效区块集合确定所述人脸图像的抬头纹等级,包括:Optionally, the determining, according to the first valid block set, the lookup level of the face image, including:
计算所述第一有效区块集合中所有黑色像素区块的总面积,并记为第一总面积;Calculating a total area of all black pixel blocks in the first active block set, and recording the first total area;
根据所述第一总面积与所述第二图像的总面积的比值确定所述人脸图像的抬头纹等级。 And determining a headline level of the face image according to a ratio of the first total area to a total area of the second image.
可选地,所述方法还包括:Optionally, the method further includes:
对所述第一图像进行滤波处理,获得第三图像;Performing a filtering process on the first image to obtain a third image;
对所述第三图像进行所述图像处理获得第四图像;Performing the image processing on the third image to obtain a fourth image;
获取所述第四图像中与抬头纹对应的黑色像素区块集合,记为第二有效区块集合;Obtaining a black pixel block set corresponding to the header in the fourth image, and recording the second effective block set;
则,所述根据所述第一有效区块集合确定所述人脸图像的抬头纹等级,包括:And determining, according to the first valid block set, the heading level of the face image, including:
根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级。Determining a headline level of the face image according to the first valid block set and the second valid block set.
可选地,所述获取所述第四图像中与抬头纹对应的黑色像素区块集合,记为第二有效区块集合,包括:Optionally, the acquiring the black pixel block set corresponding to the raised head in the fourth image, and recording the second active block set, includes:
基于所述第四图像确定第二基准宽度阈值;Determining a second reference width threshold based on the fourth image;
检测出所述第四图像中所有黑色像素区块,记为第二区块集合;Detecting all black pixel blocks in the fourth image, and recording them as a second block set;
根据所述第二基准宽度阈值过滤所述第二区块集合中的噪音区块,获得与抬头纹对应的黑色像素区块集合,记为第二有效区块集合。Filtering the noise blocks in the second block set according to the second reference width threshold to obtain a black pixel block set corresponding to the headstrip, and recording the second effective block set.
可选地,所述根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级,包括:Optionally, the determining, according to the first valid block set and the second valid block set, the headline level of the face image, including:
计算所述第一有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第一总长;Calculating a total length of all black pixel blocks in the first active block set in a horizontal direction, and recording the first total length;
计算所述第二有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第二总长;Calculating a total length of all black pixel blocks in the second active block set in the horizontal direction, and recording the second total length;
根据所述第一总长与所述第二图像的总面积的比值以及所述第二总长与所述第四图像的总面积的比值确定所述人脸图像的抬头纹等级。And determining a head-up level of the face image according to a ratio of the first total length to a total area of the second image and a ratio of the second total length to a total area of the fourth image.
可选地,所述根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级,包括:Optionally, the determining, according to the first valid block set and the second valid block set, the headline level of the face image, including:
计算所述第一有效区块集合中所有黑色像素区块的总面积,并记为第一总面积; Calculating a total area of all black pixel blocks in the first active block set, and recording the first total area;
计算所述第二有效区块集合中所有黑色像素区块的总面积,并记为第二总面积;Calculating a total area of all black pixel blocks in the second active block set, and recording it as a second total area;
根据所述第一总面积与所述第二图像的总面积的比值以及所述第二总面积与所述第四图像的总面积的比值确定所述人脸图像的抬头纹等级。And determining a headline level of the face image according to a ratio of the first total area to a total area of the second image and a ratio of the second total area to a total area of the fourth image.
可选地,所述图像处理还包括:腐蚀处理。Optionally, the image processing further includes: an etching process.
第二方面,本申请实施例提供一种智能终端,包括:In a second aspect, an embodiment of the present application provides an intelligent terminal, including:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上所述的定量检测人脸抬头纹的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform quantitative detection of face lift as described above method.
第三方面,本申请实施例提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使智能终端执行如上所述的定量检测人脸抬头纹的方法。In a third aspect, an embodiment of the present application provides a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium stores computer executable instructions for causing a smart terminal to execute the above The method for quantitatively detecting a face raising pattern.
第四方面,本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被智能终端执行时,使所述智能终端执行如上所述的定量检测人脸抬头纹的方法。In a fourth aspect, the embodiment of the present application further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program When the instruction is executed by the smart terminal, the smart terminal is caused to perform the method of quantitatively detecting the face lift pattern as described above.
本申请实施例的有益效果在于:本申请实施例提供的定量检测人脸抬头纹的方法和智能终端通过在获取到人脸图像时,截取所述人脸图像中额头区域对应的图像,并记为第一图像;然后对所述第一图像进行包括二值化处理的图像处理获得第二图像;接着获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合;最后根据所述第一有效区块集合确定所述人脸图像的抬头纹等级,这样不仅能够实现对人脸图像的抬头纹的准确识别,且能够对其严重程度进行定量化的检测,同时,该识别及定量检测的方式快捷方便。 An advantageous effect of the embodiment of the present application is that the method for quantitatively detecting a face-lifting head and the smart terminal provided by the embodiment of the present application intercepts an image corresponding to the forehead region of the face image by acquiring a face image, and recording a first image; then performing image processing including binarization processing on the first image to obtain a second image; and then acquiring a black pixel block set corresponding to the raised pattern in the second image, which is recorded as the first effective Block collection; finally determining the headline level of the face image according to the first effective block set, so that not only accurate recognition of the face image of the face image but also quantification of the severity thereof can be achieved. At the same time, the detection and quantitative detection methods are quick and convenient.
附图说明DRAWINGS
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1是本申请实施例提供的一种定量检测人脸抬头纹的方法的流程示意图;1 is a schematic flow chart of a method for quantitatively detecting a face-lifting head line provided by an embodiment of the present application;
图2是本申请实施例提供的一种对人脸图像进行人脸关键点定位的示例示意图;2 is a schematic diagram of an example of performing face key point positioning on a face image according to an embodiment of the present application;
图3是本申请实施例提供的一种第一图像的示例示意图;3 is a schematic diagram of an example of a first image provided by an embodiment of the present application;
[根据细则91更正 20.09.2017] 
图4(a)是本申请实施例提供的一种第二图像的示例示意图;
图4(b)是本申请实施例提供的另一种第二图像的示例示意图;
[Correct according to Rule 91 20.09.2017]
4(a) is a schematic diagram showing an example of a second image provided by an embodiment of the present application;
FIG. 4(b) is a schematic diagram showing another example of a second image provided by an embodiment of the present application;
图5是本申请实施例提供的另一种定量检测人脸抬头纹的方法的流程示意图;FIG. 5 is a schematic flow chart of another method for quantitatively detecting a face-lifting head according to an embodiment of the present application; FIG.
图6是本申请实施例提供的一种第三图像的示例示意图;6 is a schematic diagram of an example of a third image provided by an embodiment of the present application;
[根据细则91更正 20.09.2017] 
图7(a)是本申请实施例提供的一种第四图像的示例示意图;
图7(b)是本申请实施例提供的另一种第四图像的示例示意图;
[Correct according to Rule 91 20.09.2017]
FIG. 7(a) is a schematic diagram showing an example of a fourth image provided by an embodiment of the present application;
FIG. 7(b) is a schematic diagram showing another example of a fourth image provided by an embodiment of the present application;
图8是本申请实施例提供的一种定量检测人脸抬头纹的装置的结构示意图;FIG. 8 is a schematic structural diagram of an apparatus for quantitatively detecting a face raising pattern according to an embodiment of the present application; FIG.
图9是本申请实施例提供的一种智能终端的结构示意图。FIG. 9 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
需要说明的是,如果不冲突,本申请实施例中的各个特征可以相互结合,均在本申请的保护范围之内。另外,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。再者,本申请所采用的“第一”“第二”“第三”“第四”等字样并不对数据和执行次序进行限定,仅是对功能和作用基本相同的相同项或相似项进行区分。It should be noted that, if there is no conflict, the various features in the embodiments of the present application may be combined with each other, and are all within the protection scope of the present application. In addition, although the functional module partitioning is performed in the device schematic, the logical sequence is shown in the flowchart, but in some cases, the illustrated may be performed in a different manner from the modules in the device, or in the order in the flowchart. Or the steps described. Furthermore, the words "first", "second", "third", "fourth" and the like used in the present application do not limit the data and the order of execution, but only the same or similar items having substantially the same function and function. distinguish.
人脸抬头纹是指人脸额头部位的皱纹。在人们普通的面部表情中,会不由 自主地将双眉扬起,长此以往,就会降低和损伤额部肌肉的恢复能力,皮下纤维组织的弹性也会逐渐降低,而扬眉挤压到额部皮肤则会习惯性地留下痕迹,从而形成人脸抬头纹,随着扬眉挤压到额部皮肤次数的增多,所形成的人脸抬头纹的数量逐渐增多,并且逐渐趋向于成为顽固的真性皱纹。当前,随着人脸识别技术的发展,对人脸抬头纹的检测也提出了更高的要求,而现有的检测人脸皱纹的技术多采用机器学习分类算法来检测皱纹,其检测方式较为繁杂,成本较高,并且无法对抬头纹的严重程度进行定量化的检测。The face-lifting pattern refers to the wrinkles on the forehead of the face. In people's ordinary facial expressions, it will not help Autonomously raises the eyebrows. In the long run, it will reduce and damage the muscles of the forehead. The elasticity of the subcutaneous fibrous tissue will gradually decrease, and the eyebrows will be habitually left behind when pressed into the forehead skin. Forming a face-lifting pattern, as the number of times the eyebrows are squeezed to the forehead skin increases, the number of face-lifting lines formed gradually increases, and gradually tends to become stubborn true wrinkles. At present, with the development of face recognition technology, the detection of face headline is also put forward higher requirements, and the existing techniques for detecting face wrinkles mostly use machine learning classification algorithm to detect wrinkles, and the detection method is more It is cumbersome, costly, and it is impossible to quantify the severity of the raised lines.
基于此,本申请实施例提供了一种定量检测人脸抬头纹的方法和智能终端。其中,该定量检测人脸抬头纹的方法通过首先从人脸图像中截取出人脸额头区域的图像,然后对该额头区域的图像进行一系列的图像处理以提取出抬头纹的纹理特征,进而定量化地识别出该人脸图像的抬头纹等级,能够无需大量的有皱纹标签的图片来训练机器学习模型,降低了抬头纹检测的复杂性,并且还可以对抬头纹的严重程度进行定量化的鉴定。Based on this, the embodiment of the present application provides a method and a smart terminal for quantitatively detecting a face raising pattern. The method for quantitatively detecting a face raising pattern first extracts an image of a forehead area of a face from a face image, and then performs a series of image processing on the image of the forehead area to extract a texture feature of the raised head, and further Quantitatively recognizing the headline level of the face image, it is possible to train the machine learning model without a large number of wrinkled label pictures, reduce the complexity of the head-up detection, and quantify the severity of the head-up pattern. Identification.
本申请实施例提供的定量检测人脸抬头纹的方法和智能终端适用于任意与人脸识别相关的技术领域,尤其适用于年龄鉴定以及整形美容领域。The method for quantitatively detecting face headline and the intelligent terminal provided by the embodiments of the present application are applicable to any technical field related to face recognition, and are particularly suitable for age identification and plastic surgery.
本申请实施例提供的方法能够应用于任意具有图像处理功能的智能终端。所述智能终端包括但不限于:美容鉴定机、个人电脑、平板电脑、智能手机、终端服务器等。该智能终端可以包括任何合适类型的,用以存储数据的存储介质,例如磁碟、光盘(CD-ROM)、只读存储记忆体或随机存储记忆体等。该智能终端还可以包括一个或者多个逻辑运算模块,单线程或者多线程并行执行任何合适类型的功能或者操作,例如查看数据库、图像处理等。所述逻辑运算模块可以是任何合适类型的,能够执行逻辑运算操作的电子电路或者贴片式电子器件,例如:单核心处理器、多核心处理器、图形处理器(GPU)等。The method provided by the embodiment of the present application can be applied to any smart terminal having an image processing function. The smart terminal includes but is not limited to: a beauty authentication machine, a personal computer, a tablet computer, a smart phone, a terminal server, and the like. The smart terminal can include any suitable type of storage medium for storing data, such as a magnetic disk, a compact disc (CD-ROM), a read-only memory or a random access memory. The smart terminal may also include one or more logical computing modules that perform any suitable type of function or operation in parallel, such as viewing a database, image processing, etc., in a single thread or multiple threads. The logic operation module may be any suitable type of electronic circuit or chip-type electronic device capable of performing logical operation operations, such as a single core processor, a multi-core processor, a graphics processing unit (GPU), or the like.
具体地,下面结合附图,对本申请实施例作进一步阐述。Specifically, the embodiments of the present application are further described below in conjunction with the accompanying drawings.
实施例一 Embodiment 1
图1是本申请实施例提供的一种定量检测人脸抬头纹的方法的流程示意图,请参阅图1,该方法包括: 1 is a schematic flow chart of a method for quantitatively detecting a face-lifting head line according to an embodiment of the present application. Referring to FIG. 1, the method includes:
110、获取人脸图像。110. Obtain a face image.
在本实施例中,所述“人脸图像”是指包括被检测人的正脸的图像,通过该人脸图像能够获取到该被检测人的所有面部特征。In the present embodiment, the "face image" refers to an image including the face of the detected person, by which all face features of the detected person can be acquired.
在本实施例中,当接收到人脸抬头纹检测命令时,获取被检测人的人脸图像。其中,获取人脸图像的具体实施方式可以是:实时采集被检测人的正脸图像;或者,也可以是:直接在智能终端本地或云端调取已有的包括被检测人的正脸的图像。针对不同的应用场景,可以选择不同的获取人脸图像的方式。例如:针对美容鉴定的应用场景,可以选择采用实时采集被检测人的人脸图像的方式,以便确定被检测人当前的抬头纹的等级;而针对年龄鉴定的应用场景,其对于获取到的人脸图像的实时性要求不高,因此,可以直接使用已有的人脸图像进行检测即可。In the present embodiment, when the face facet detection command is received, the face image of the detected person is acquired. The specific implementation manner of acquiring the face image may be: collecting the positive face image of the detected person in real time; or: directly capturing the existing image including the positive face of the detected person directly in the smart terminal or in the cloud. . For different application scenarios, different ways of acquiring face images can be selected. For example, for the application scenario of the beauty appraisal, the manner of collecting the face image of the detected person in real time may be selected to determine the current level of the raised face of the detected person; and for the application scenario of the age identification, for the acquired person The real-time requirements of the face image are not high, so it is possible to directly use the existing face image for detection.
120、截取所述人脸图像中额头区域对应的图像,并记为第一图像。120. Intercept an image corresponding to the forehead region in the face image, and record the image as a first image.
在本实施例中,所述“额头区域”是指人脸中眉毛以上发际线以下的部位中的一个区域,其可以是该部位的全部区域,也可以是该部位中的一部分区域。In the present embodiment, the "forehead region" refers to one of the portions of the face below the hairline above the hairline, which may be the entire region of the portion or a portion of the portion.
由于抬头纹是人脸额头部位的皱纹,因此,在本实施例中,在获取到人脸图像之后,首先截取所述人脸图像中额头区域作为抬头纹检测的目标区域,并将截取到的图像记为第一图像,以减少后续图像处理过程中的数据处理量。其中,由于每个人的脸型有可能会有所差别,因此,在不同的人脸图像中,眉毛以上发际线以下的部位所对应的区域范围有可能会不同。而对应于不同的实际应用需求,截取所述人脸图像中额头区域对应的图像的具体实施方式也会有所差异。Since the head-up pattern is a wrinkle of the forehead portion of the face, in the embodiment, after the face image is acquired, the forehead region in the face image is first intercepted as the target region for the head-up detection, and the intercepted region is intercepted. The image is recorded as a first image to reduce the amount of data processing during subsequent image processing. Among them, since each person's face may have a difference, in different face images, the area corresponding to the area below the hairline above the hairline may be different. Corresponding to different practical application requirements, the specific implementation manner of intercepting the image corresponding to the forehead region in the face image may also be different.
在一些实施例中,为了获得更加精确的抬头纹等级检测结果,所述“额头区域”包括人脸图像中眉毛以上发际线以下的部位的全部区域,则,截取所述人脸图像中额头区域对应的图像的具体实施方式可以是:首先利用人脸关键点定位的方法检测出人脸的眉毛的最高点以及发际线的位置,然后截取出两侧眉毛最高点的连线所在的水平线与发际线之间的区域对应的图像,并记为第一图像,在该实施例中,对于不同的人脸图像,截取出的第一图像的区域形状有可 能会有所差异。In some embodiments, in order to obtain a more accurate headline level detection result, the "forehead area" includes all areas of the part below the hairline above the eyebrow in the face image, and then the forehead in the face image is intercepted The specific implementation manner of the image corresponding to the region may be: firstly, the method for locating the key point of the face is used to detect the highest point of the eyebrow of the face and the position of the hairline, and then the horizontal line of the line connecting the highest point of the eyebrows is taken out. An image corresponding to an area between the hairline and recorded as a first image. In this embodiment, for different face images, the shape of the area of the first image that is cut out may be Can vary.
而在另一些实施例中,为了提升截取第一图像的效率,所述“额头区域”是人脸图像中眉毛以上发际线以下的部位中的一部分区域,其为一根据经验值设置的区域范围,不随人脸图像的改变而变化。则,在该实施例中,截取所述人脸图像中额头区域对应的图像的具体实施方式可以是:首先获取所述人脸图像中的眉毛关键点的坐标参数;然后基于该坐标参数确定所述人脸图像的额头区域;最后截取所述额头区域对应的图像,并记为第一图像。其中,获取所述人脸图像中的眉毛关键点的坐标参数的方式可以是:首先利用第三方工具包,如:dlib,对该人脸图像进行人脸关键点(如:眉毛关键点、眼睛关键点、面部轮廓关键点、嘴巴关键点等)定位,然后选出预设的眉毛关键点并确定其坐标参数,所述预设的眉毛关键点可以包括一个或者多个;或者,也可以是直接提取所述人脸图像中预设的眉毛关键点,并获取其坐标参数。举例说明:利用第三方工具包dlib进行人脸关键点定位之后得到的图像如图2所示,其眉毛关键点包括关键点18-26;可以预先规定:以关键点19在x轴的坐标和关键点20在x轴的坐标的中间值作为x1,以关键点25在x轴的坐标和关键点26在x轴的坐标的中间值作为x2,以关键点20的y轴坐标作为y2,以关键点20的y轴坐标值y2+(x2-x1)/3作为y1,而坐标点(x1,y1)、(x1,y2)、(x2,y1)和(x2,y2)所围成的区域A即所述“额头区域”;则,当获得人脸图像之后,首先获取人脸图像中关键点19、20、25和26的坐标参数,然后基于这些坐标参数确定如图2所示的区域A为额头区域,最后截取出区域A对应的图像(如图3所示),并记为第一图像。应当理解的是,在实际应用中,也可以选用其他眉毛关键点(如:21、23、26等)的坐标参数作为划分额头区域的标准;或者,还可以采用其他划分方式(如:规定y1=y2+(x2-x1)/2)划分额头区域;只要对不同的人脸图像采用相同的关键点以及划分方式来定位额头区域即可,本申请实施例对此不作具体限定。在该实施例中,只需获取眉毛关键点的坐标参数即可确定该人脸图像的额头区域,提升了截取第一图像的效率。In still other embodiments, in order to improve the efficiency of capturing the first image, the "forehead region" is a portion of the portion of the face image below the hairline above the hairline, which is an area set according to an empirical value. The range does not change with the change of the face image. In this embodiment, the specific embodiment of capturing the image corresponding to the forehead region in the face image may be: first acquiring the coordinate parameter of the eyebrow key point in the face image; and then determining the location based on the coordinate parameter The forehead area of the face image is described; finally, the image corresponding to the forehead area is intercepted and recorded as the first image. The method for obtaining the coordinate parameters of the key points of the eyebrows in the face image may be: first, using a third-party toolkit, such as: dlib, performing face key points on the face image (eg, eyebrow key points, eyes) Positioning key points, facial contour key points, mouth key points, etc., and then selecting preset eyebrow key points and determining coordinate parameters thereof, the preset eyebrow key points may include one or more; or, The key points of the eyebrows preset in the face image are directly extracted, and the coordinate parameters thereof are obtained. For example: the image obtained by using the third-party toolkit dlib to locate the key points of the face is shown in Figure 2. The key points of the eyebrows include the key points 18-26; it can be pre-specified: the coordinates of the key point 19 on the x-axis The intermediate value of the key point 20 in the x-axis coordinate is taken as x1, the key value of the key point 25 on the x-axis and the key point 26 in the x-axis coordinate is taken as x2, and the y-axis coordinate of the key point 20 is taken as y2, The y-axis coordinate value y2+(x2-x1)/3 of the key point 20 is taken as y1, and the area enclosed by the coordinate points (x1, y1), (x1, y2), (x2, y1), and (x2, y2) A is the "forehead area"; then, after obtaining the face image, the coordinate parameters of the key points 19, 20, 25, and 26 in the face image are first acquired, and then the area shown in FIG. 2 is determined based on the coordinate parameters. A is the forehead area, and finally the image corresponding to the area A is cut out (as shown in FIG. 3) and recorded as the first image. It should be understood that, in practical applications, coordinate parameters of other eyebrow key points (such as: 21, 23, 26, etc.) may also be selected as criteria for dividing the forehead area; or, other division methods may be used (eg, specifying y1) = y 2+ 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 In this embodiment, the coordinate area of the eyebrow key point can be obtained to determine the forehead area of the face image, which improves the efficiency of intercepting the first image.
130、对所述第一图像进行图像处理获得第二图像,所述图像处理包括二值 化处理。130. Perform image processing on the first image to obtain a second image, where the image processing includes binary values. Processing.
在本实施例中,所述“二值化处理”是指按照预设的规则将图像上的像素点的灰度值设置为0或255,使整个图像呈现出明显的只有黑和白的视觉效果;所述“第二图像”是指对第一图像进行包括二值化处理的图像处理之后获得的该第一图像的二值化图像。在该第二图像中,具有皱纹纹理特征的像素区块表现为黑色像素区块,而额头区域中不具备皱纹纹理特征的像素区块表现为白色像素区块。In the embodiment, the “binarization processing” refers to setting the gray value of the pixel on the image to 0 or 255 according to a preset rule, so that the entire image presents a distinct black and white vision. Effect; the "second image" refers to a binarized image of the first image obtained after performing image processing including binarization processing on the first image. In the second image, the pixel block having the wrinkle texture feature appears as a black pixel block, and the pixel block in the forehead region that does not have the wrinkle texture feature appears as a white pixel block.
在本实施例中,通过对第一图像进行二值化处理映射出第一图像(即人脸额头区域)中皱纹的纹理特征。一般地,对图像进行二值化处理可以是按照一定的规则将该图像划分为N个窗口,然后对这N个窗口中的每一个窗口再按照一个统一的阈值T将该窗口内的像素划分为两部分,进行二值化处理。然而,仅仅通过设定固定阈值很难达到理想的分割效果,因此,在本实施例中,采用自适应阈值二值化处理对第一图像进行二值化处理,其根据像素的邻域块的像素值分布来确定该像素位置上的二值化阈值,能够获得更好的分割效果。具体地,在本实施例中,可以调用OpenCV的adaptive Threshold函数对如图3所示的第一图像进行自适应阈值二值化处理,其中,可以根据皱纹的特点以及经验参数设置所计算的邻域块的大小(例如:设置“block size”为9)以及偏移值调整量(例如:设置参数“C”为3)。通过上述处理获得的第二图像如图4(a)所示。In the present embodiment, the texture feature of the wrinkles in the first image (ie, the forehead area of the face) is mapped by binarizing the first image. Generally, the binarization processing of the image may be performed by dividing the image into N windows according to a certain rule, and then dividing the pixels in the window according to a uniform threshold T for each of the N windows. For the two parts, binarization is performed. However, it is difficult to achieve an ideal segmentation effect only by setting a fixed threshold. Therefore, in the present embodiment, the first image is binarized by adaptive threshold binarization processing, which is based on the neighborhood block of the pixel. The pixel value distribution determines the binarization threshold at the pixel location, and a better segmentation effect can be obtained. Specifically, in this embodiment, the Adaptive Threshold function of OpenCV may be invoked to perform adaptive threshold binarization processing on the first image as shown in FIG. 3, wherein the calculated neighbors may be set according to the characteristics of the wrinkles and the empirical parameters. The size of the domain block (for example, set "block size" to 9) and the offset value adjustment (for example, setting parameter "C" to 3). The second image obtained by the above processing is as shown in Fig. 4(a).
此外,由于人脸的皮肤从细微的角度看是不均衡的,所以对第一图像进行二值化处理之后会留下一些形状比较小且分布较为离散,与皱纹的形状有较大区别的细小噪音点。因此,为了去除这些由二值化处理后留下的细小的噪音点,提高抬头纹识别的精度,在一些实施例中,上述图像处理除了包括二值化处理外,还包括腐蚀处理。即,在对第一图像进行二值化处理后,还进行腐蚀处理。其中,所述“腐蚀处理”是图像形态学的两个基本操作之一,其最基本的效果是腐蚀图像中前景色区域的边缘,使得前景图像区域变小,前景图像内部的背景区域被放大。对如图3所示的第一图像进行包括自适应阈值二值化处理和腐 蚀处理的图像处理之后获得的第二图像如图4(b)所示。In addition, since the skin of the human face is unbalanced from a subtle angle, the binarization of the first image leaves some small shapes that are relatively small in shape and discrete in distribution, and which are largely different from the shape of the wrinkles. Noise point. Therefore, in order to remove these fine noise points left after the binarization processing and improve the accuracy of the headline recognition, in some embodiments, the image processing described above includes an etching process in addition to the binarization process. That is, after the binarization processing of the first image, the etching process is also performed. Wherein, the "corrosion treatment" is one of two basic operations of image morphology, and the most basic effect is to corrode the edge of the foreground region in the image, so that the foreground image region becomes smaller, and the background region inside the foreground image is enlarged. . Performing adaptive threshold binarization processing and rot on the first image as shown in FIG. The second image obtained after the image processing of the etch processing is as shown in Fig. 4(b).
140、获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合。140. Acquire a set of black pixel blocks corresponding to the raised lines in the second image, and record the first active block set.
由于在第二图像中以黑色像素区块表征人脸图像中的抬头纹,因此,在本实施例中,“与抬头纹对应的黑色像素区块”可以是指第二图像中任意一个黑色像素区块,而第二图像中所有的黑色像素区块的集合即第一有效区块集合。在该情况下,获取所述第二图像中与抬头纹对应的黑色像素区块集合的具体实施方式可以是:直接利用图像边缘检测算法检测出第二图像中所有的黑色像素区块,记为第一区块集合,该第一区块集合即第一有效区块集合。其中,每一黑色像素区块的大小可以不一样。Since the headline in the face image is represented by the black pixel block in the second image, in the embodiment, the “black pixel block corresponding to the headline” may refer to any black pixel in the second image. The block, and the set of all black pixel blocks in the second image is the first active block set. In this case, the specific implementation of the black pixel block set corresponding to the raised head in the second image may be: directly detecting all the black pixel blocks in the second image by using the image edge detection algorithm, The first block set, the first block set is the first valid block set. The size of each black pixel block may be different.
然而,在上述的第一区块集合中有可能存在头发、痘痘、伤疤等较大的噪音区块,因此,为了提高定量检测抬头纹的精度,在一些实施例中,“与抬头纹对应的黑色像素区块”还可以是指第二图像中不具有头发、痘痘、伤疤等特性的黑色像素区块。在该情况下,获取所述第二图像中与抬头纹对应的黑色像素区块集合的具体实施方式还可以是:基于所述第二图像确定第一基准宽度阈值u;检测出所述第二图像中所有黑色像素区块,记为第一区块集合;根据所述第一基准宽度阈值u过滤所述第一区块集合中的噪音区块,获得与抬头纹对应的黑色像素区块集合,记为第一有效区块集合。However, in the above-mentioned first block set, there may be a large noise block such as hair, acne, scar, etc. Therefore, in order to improve the accuracy of quantitatively detecting the head-up pattern, in some embodiments, "corresponding to the head-up pattern" The black pixel block "may also refer to a black pixel block in the second image that does not have characteristics such as hair, acne, scars, and the like. In this case, the specific implementation manner of acquiring the black pixel block set corresponding to the raised head in the second image may be: determining a first reference width threshold u based on the second image; detecting the second All black pixel blocks in the image are recorded as a first block set; the noise block in the first block set is filtered according to the first reference width threshold u to obtain a black pixel block set corresponding to the raised head mark , recorded as the first valid block set.
其中,所述“第一基准宽度阈值”是判断第一区块集合中的噪音区块的标准,其值与第二图像本身的长度或者宽度相关,例如:该第一基准宽度阈值u可以设置为第二图像在水平方向上的总长(或者垂直方向上的总宽)的1/40或者1/80,这主要是因为拍摄终端的像素或者拍摄距离的远近不同导致在不同的第二图像中有的脸像素大有的脸像素小,需要针对每一张第二图像给出不同的基准宽度阈值,以方便后续计算黑色像素区块在水平方向上的长度和垂直方向上的宽度,进而定义第一区块集合中的噪音区块。The “first reference width threshold” is a criterion for determining a noise block in the first block set, and the value is related to the length or width of the second image itself. For example, the first reference width threshold u can be set. It is 1/40 or 1/80 of the total length of the second image in the horizontal direction (or the total width in the vertical direction), mainly because the pixels of the photographing terminal or the distance of the photographing distance are different, resulting in different second images. Some face pixels have large face pixels, and different reference width thresholds need to be given for each second image to facilitate subsequent calculation of the length and vertical width of the black pixel block in the horizontal direction, thereby defining A noise block in the first block set.
其中,考虑到第二图像中的噪音区块大部分为头发、痘痘或者伤疤等,根据其特性可以定义在水平方向上的长度w小于u/2和/或垂直上的宽度h大于w 的黑色像素区块为噪音区块,由此,在第一区块集合中过滤掉w小于u/2和/或h大于w的黑色像素区块即可获得第一有效区块集合。应当理解的是,此处定义噪音区块为w小于u/2和/或h大于w的黑色像素区块仅为了解释本申请实施例并不用于限定本申请实施例,在其他的实际应用中,还可以以其他的条件来定义噪音区块。Wherein, considering that the noise block in the second image is mostly hair, acne or scar, etc., according to its characteristics, the length w in the horizontal direction can be defined to be less than u/2 and/or the width h on the vertical is greater than w. The black pixel block is a noise block, and thus the first effective block set can be obtained by filtering out the black pixel block whose w is smaller than u/2 and/or h is greater than w in the first block set. It should be understood that the black pixel block in which the noise block is w is less than u/2 and/or h is greater than w is only for explaining the embodiment of the present application and is not used to limit the embodiment of the present application, in other practical applications. The noise block can also be defined by other conditions.
150、根据所述第一有效区块集合确定所述人脸图像的抬头纹等级。150. Determine a heading level of the face image according to the first valid block set.
在本实施例中,所述“抬头纹等级”是指被检测人的抬头纹的严重程度,其可以分为轻度、中度和重度等多个等级,而每一等级都对应有相应的参考值范围。其中,所述“参考值”是一个可以判定抬头纹严重程度的参量R,而每一等级对应的参考值范围的划分标准可以通过对大量人脸图像的抬头纹的进行实验和观察来设定。比如:统计皱纹程度看起来非常严重的一批人脸图像,其参考值R都大于或等于某一数值,如:R≥a,则将满足R≥a的人脸图像的抬头纹等级确定为重度皱纹等级。In the present embodiment, the "head-up level" refers to the severity of the raised pattern of the detected person, which can be divided into multiple levels such as light, medium, and heavy, and each level corresponds to a corresponding one. Reference range. Wherein, the "reference value" is a parameter R that can determine the severity of the headline, and the division standard of the reference value range corresponding to each level can be set by experimenting and observing the headstrip of a large number of face images. . For example, a batch of face images whose statistical degree of wrinkles looks very serious, whose reference value R is greater than or equal to a certain value, for example, R≥a, the headline level of the face image satisfying R≥a is determined as Heavy wrinkle rating.
其中,所述根据所述第一有效区块集合确定所述人脸图像的抬头纹等级的具体实施方式可以根据不同的“参考值”的设定而有所不同。例如:可以以第一有效区块集合中所有黑色像素区块在水平方向上的总长度与第二图像的总面积的比值作为“参考值”,则,根据所述第一有效区块集合确定所述人脸图像的抬头纹等级的具体实施方式可以是:计算所述第一有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第一总长;然后根据所述第一总长与所述第二图像的总面积的比值确定所述人脸图像的抬头纹等级。或者,在另一些实施例中,也可以以第一有效区块集合中所有黑色像素区块的总面积与第二图像的总面积的比值作为“参考值”,则,所述根据所述第一有效区块集合确定所述人脸图像的抬头纹等级的具体实施方式还可以是:计算所述第一有效区块集合中所有黑色像素区块的总面积,并记为第一总面积;然后根据所述第一总面积与所述第二图像的总面积的比值确定所述人脸图像的抬头纹等级。当然,在实际应用中,还可以直接以第一有效区块集合中所有黑色像素区块在水平方向上的总长度作为“参考值”,进而根据该“参考值”确定所述人脸图像的抬头纹 等级,此处便不一一列举。The specific implementation manner of determining the heading level of the face image according to the first valid block set may be different according to different "reference values" settings. For example, the ratio of the total length of all black pixel blocks in the first active block set in the horizontal direction to the total area of the second image may be used as a “reference value”, and then determined according to the first valid block set. The specific implementation manner of the header level of the face image may be: calculating a total length of all black pixel blocks in the first active block set in the horizontal direction, and recording the first total length; The ratio of the first total length to the total area of the second image determines the heading level of the face image. Alternatively, in other embodiments, the ratio of the total area of all the black pixel blocks in the first active block set to the total area of the second image may be used as the “reference value”. A specific implementation manner of determining a head-up level of the face image may be: calculating a total area of all black pixel blocks in the first valid block set, and recording the first total area; And determining a headline level of the face image according to a ratio of the first total area to a total area of the second image. Of course, in a practical application, the total length of all black pixel blocks in the first active block set in the horizontal direction may be directly used as a “reference value”, and the face image is determined according to the “reference value”. Head up Levels are not listed here.
通过上述技术方案可知,本申请实施例的有益效果在于:本申请实施例提供的定量检测人脸抬头纹的方法通过在获取到人脸图像时,截取所述人脸图像中额头区域对应的图像,并记为第一图像;然后对所述第一图像进行包括二值化处理的图像处理获得第二图像;获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合;最后根据所述第一有效区块集合确定所述人脸图像的抬头纹等级,这样不仅能够实现对人脸图像的抬头纹的准确识别,且能够对其严重程度进行定量化的检测,同时,该识别及定量检测的方式快捷方便。According to the foregoing technical solution, the method for quantitatively detecting a face raising pattern provided by the embodiment of the present application intercepts an image corresponding to the forehead area of the face image by acquiring a face image. And recorded as a first image; then performing image processing including binarization processing on the first image to obtain a second image; acquiring a black pixel block set corresponding to the raised head in the second image, which is recorded as An effective block set; finally determining a headline level of the face image according to the first valid block set, so as not only accurate recognition of the face image of the face image, but also quantification of the severity thereof The detection method, at the same time, the identification and quantitative detection method is quick and convenient.
实施例二Embodiment 2
由于在人脸抬头纹中除了已成形的皱纹外还包括由于皮肤干燥引起的假性皱纹(即:细纹),而相对于已成型的皱纹来说,细纹更加容易通过后期合理的护理而得到改善。因此,本申请实施例二提供了另一种定量检测抬头纹的方法,该方法与实施例一提供的定量检测抬头纹的方法的不同之处在于:在本实施例中,还对第一图像进行滤波处理,获得第三图像;并且,对第三图像进行图像处理获得第四图像,获取所述第四图像中与抬头纹对应的黑色像素区块集合,记为第二有效区块集合;最后根据第一有效区块集合和第二有效区块集合确定该人脸图像的抬头纹等级。In addition to the formed wrinkles in the face-lifting pattern, the false wrinkles (ie, fine lines) caused by the dryness of the skin are included, and the fine lines are more easily treated by the later reasonable care than the formed wrinkles. Improved. Therefore, the second embodiment of the present application provides another method for quantitatively detecting the raised head, which is different from the method for quantitatively detecting the raised mark provided in the first embodiment: in the embodiment, the first image is also Performing a filtering process to obtain a third image; and performing image processing on the third image to obtain a fourth image, and acquiring a black pixel block set corresponding to the raised pattern in the fourth image, and recording the second effective block set; Finally, the headline level of the face image is determined according to the first valid block set and the second effective block set.
具体地,如图5所示,该方法包括:Specifically, as shown in FIG. 5, the method includes:
510、获取人脸图像。510. Obtain a face image.
520、截取所述人脸图像中额头区域对应的图像,并记为第一图像。520. Capture an image corresponding to the forehead region in the face image, and record the image as the first image.
530、对所述第一图像进行图像处理获得第二图像,所述图像处理包括二值化处理。530. Perform image processing on the first image to obtain a second image, where the image processing includes a binarization process.
540、获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合。540. Acquire a set of black pixel blocks corresponding to the raised lines in the second image, and record the first active block set.
在本实施例中,上述步骤510-540分别与实施例一中的步骤110-140具有相 同的技术特征,其具体的实施方式同样适用于本实施例,因此,在本实施例中便不再赘述。In this embodiment, the above steps 510-540 have the same steps as steps 110-140 in the first embodiment. The same technical features, the specific embodiments thereof are also applicable to the present embodiment, and therefore, will not be described again in this embodiment.
550、对所述第一图像进行滤波处理,获得第三图像。550. Perform filtering processing on the first image to obtain a third image.
在本实施例中,所述“滤波处理”是为了去除第一图像中属于细纹的纹路特征,只留下皱纹的纹路特征。因此,可以认为第一图像是同时包括细纹和皱纹的图像,而第三图像是仅包括皱纹的图像。In the present embodiment, the "filtering process" is to remove the texture features belonging to the fine lines in the first image, leaving only the texture features of the wrinkles. Therefore, it can be considered that the first image is an image including both fine lines and wrinkles, and the third image is an image including only wrinkles.
由于在图像处理中,Gabor函数是一个用于边缘提取的线性滤波器,其频率和方向表达同人类视觉系统类似。研究发现,Gabor滤波器十分适合纹理表达和分离。因此,在本实施例中,可以利用Gabor滤波器对第一图像进行滤波处理,使得图像更加平滑,从而达到过滤掉细纹,只留下皱纹的部分的效果。例如:利用Gabor滤波器对如图3所示的第一图像进行滤波处理后获得的第三图像如图6所示。Since in the image processing, the Gabor function is a linear filter for edge extraction, its frequency and direction expression is similar to that of the human visual system. The study found that Gabor filters are well suited for texture expression and separation. Therefore, in the present embodiment, the first image can be filtered by the Gabor filter to make the image smoother, thereby achieving the effect of filtering out the fine lines and leaving only the wrinkles. For example, a third image obtained by filtering the first image shown in FIG. 3 by using a Gabor filter is as shown in FIG. 6.
560、对所述第三图像进行所述图像处理获得第四图像。560. Perform image processing on the third image to obtain a fourth image.
在本实施例中,对第三图像进行图像处理获得第四图像的具体实施方式可以与实施例一中对所述第一图像进行图像处理获得第二图像的具体实施方式相同,此处也不再详细说明。其中,对如图6所示的第三图像进行自适应阈值二值化处理获得的第四图像如图7(a)所示,对如图6所示的第三图像进行自适应阈值二值化处理和腐蚀处理后获得的第四图像如图7(b)所示。In this embodiment, the specific implementation manner of performing image processing on the third image to obtain the fourth image may be the same as the specific implementation manner of performing image processing on the first image to obtain the second image in the first embodiment, and is not here. More details. The fourth image obtained by performing adaptive threshold binarization processing on the third image as shown in FIG. 6 is as shown in FIG. 7( a ), and the adaptive threshold binary value is performed on the third image as shown in FIG. 6 . The fourth image obtained after the chemical treatment and the etching treatment is as shown in Fig. 7(b).
570、获取所述第四图像中与抬头纹对应的黑色像素区块集合,记为第二有效区块集合。570. Acquire a black pixel block set corresponding to the headstrip in the fourth image, and record the second effective block set.
在本实施例中,获取所述第四图像中与抬头纹对应的黑色像素区块集合的具体实施方式可以与实施例一中的获取所述第二图像中与抬头纹对应的黑色像素区块集合的具体实施方式相同。例如,根据所述第二图像和所述第四图像确定所述人脸图像的抬头纹等级的具体实施方式可以是:基于所述第四图像确定第二基准宽度阈值(其中,该第二基准宽度阈值与实施例一中的第一基准宽度阈值的含义相同,此处便不再具体说明);检测出所述第四图像中所有黑色像素区块,记为第二区块集合;根据所述第二基准宽度阈值过滤所述第二区块集 合中的噪音区块,获得与抬头纹对应的黑色像素区块集合,记为第二有效区块集合。In this embodiment, the specific implementation manner of acquiring the black pixel block set corresponding to the raised head in the fourth image may be obtained by acquiring the black pixel block corresponding to the raised head in the second image in the first embodiment. The specific implementation of the collection is the same. For example, a specific implementation manner of determining a head-up level of the face image according to the second image and the fourth image may be: determining a second reference width threshold based on the fourth image (where the second reference is The width threshold is the same as the first reference width threshold in the first embodiment, and is not specifically described herein; all black pixel blocks in the fourth image are detected as a second block set; The second reference width threshold filters the second block set In the noise block of the combination, a black pixel block set corresponding to the headstrip is obtained, and is recorded as a second effective block set.
此外,应当理解的是,在实际的应用中,步骤530、540、550、560和570之间还可以以其他顺序执行,例如:先执行步骤550然后执行步骤530和540最后执行步骤560和570,或者,执行步骤550之后同时执行步骤530和560,进而同时执行步骤540和570。In addition, it should be understood that in practical applications, steps 530, 540, 550, 560, and 570 may also be performed in other orders, such as: first performing step 550 and then performing steps 530 and 540 and finally performing steps 560 and 570. Or, after performing step 550, steps 530 and 560 are performed simultaneously, and then steps 540 and 570 are performed simultaneously.
580、根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级。580. Determine a heading level of the face image according to the first valid block set and the second effective block set.
在本实施例中,首先根据抬头纹的深浅程度将人脸图像的抬头纹分成两大类:细纹和皱纹,然后再在每一类别下细分抬头纹的等级,因此,在本实施例中,所述“抬头纹等级”可以包括但不限于:无细纹无皱纹、轻度细纹、中度细纹、重度细纹、轻度皱纹、中度皱纹以及重度皱纹。In this embodiment, the head-up image of the face image is first divided into two categories according to the degree of the depth of the head-up pattern: fine lines and wrinkles, and then the level of the head-up pattern is subdivided in each category, and thus, in this embodiment The "head-up pattern" may include, but is not limited to, no fine lines, no wrinkles, mild fine lines, moderate fine lines, severe fine lines, mild wrinkles, moderate wrinkles, and severe wrinkles.
在本实施例中,第一图像包括细纹和皱纹的纹理特征,而第三图像仅包括皱纹的纹理特征,对应地,第二图像也包括细纹和皱纹的纹理特征,而第四图像仅包括皱纹的纹理特征。因此,可以首先通过第四图像判定皱纹的严重程度,即,皱纹类别下的抬头纹等级;当判定该人脸图像的皱纹程度较轻时,进一步结合第二图像判定该人脸图像的细纹的严重程度,即,细纹类别下的抬头纹等级。同样地,可以预先通过对大量人脸图像的抬头纹进行实验和观察,分别针对第二图像和第四图像设定参考值Ra和Rb及每一等级对应的参考值范围,然后基于该参考值及其范围确定人脸图像的抬头纹等级。例如:预先设定当Ra=0时,为无细纹无皱纹等级;当Rb<b1时:若a2>Ra>=a1,为轻度细纹级别,若a3>Ra>=a2,为中度细纹级别;若Ra>=a3,为重度细纹级别;当b2>Rb>=b1时,为轻度皱纹级别;当b3>Rb>=b2时,为中度皱纹级别;当Rb>=b3时,为重度皱纹级别。其中,参考值Ra和Rb的设置方式可以是相同的,也可以是不同的。In this embodiment, the first image includes texture features of fine lines and wrinkles, and the third image includes only texture features of the wrinkles, and correspondingly, the second image also includes texture features of fine lines and wrinkles, and the fourth image only Includes texture features for wrinkles. Therefore, the severity of the wrinkles, that is, the level of the raised head under the wrinkle category, may be first determined by the fourth image; when it is determined that the degree of wrinkles of the facial image is light, the fine image of the facial image is further determined by combining the second image. The severity of the headline level under the fine lines category. Similarly, the reference values Ra and Rb and the reference value range corresponding to each level may be set for the second image and the fourth image by experimenting and observing the headstrip of the plurality of face images in advance, and then based on the reference value. And its range determines the level of the raised face of the face image. For example, it is preset that when Ra=0, it is no wrinkle-free wrinkle level; when Rb<b1: if a2>Ra>=a1, it is a light fine grain level, if a3>Ra>=a2, it is medium Degree of fine lines; if Ra>=a3, it is a fine fine grain level; when b2>Rb>=b1, it is a mild wrinkle level; when b3>Rb>=b2, it is a moderate wrinkle level; when Rb> At =b3, it is a heavy wrinkle level. The manner in which the reference values Ra and Rb are set may be the same or different.
具体地,所述根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级的具体实施方式由参考值Ra和Rb的设置方式来决定。 例如:若以第一/第二有效区块集合中所有黑色像素区块在水平方向上的总长度与第二/第四图像的总面积的比值作为参考值Ra/Rb,则,根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级的具体实施方式可以是:计算所述第一有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第一总长;计算所述第二有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第二总长;根据所述第一总长与所述第二图像的总面积的比值以及所述第二总长与所述第四图像的总面积的比值确定所述人脸图像的抬头纹等级。或者,若以第一/第二有效区块集合中所有黑色像素区块的总面积与第二/第四图像的总面积的比值作为参考值Ra/Rb,则,根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级的具体实施方式还可以是:计算所述第一有效区块集合中所有黑色像素区块的总面积,并记为第一总面积;计算所述第二有效区块集合中所有黑色像素区块的总面积,并记为第二总面积;根据所述第一总面积与所述第二图像的总面积的比值以及所述第二总面积与所述第四图像的总面积的比值确定所述人脸图像的抬头纹等级。当然,在实际应用中,还可以直接以第一/第二有效区块集合中所有黑色像素区块在水平方向上的总长度作为参考值Ra/Rb,进而结合参考值Ra和Rb的值来确定所述人脸图像的抬头纹等级,此处便不一一列举。Specifically, the specific implementation manner of determining the heading level of the face image according to the first valid block set and the second effective block set is determined by setting manners of reference values Ra and Rb. For example, if the ratio of the total length of all black pixel blocks in the horizontal direction to the total area of the second/fourth image in the first/second effective block set is used as the reference value Ra/Rb, A specific implementation manner of determining a head-up level of the face image by the first valid block set and the second valid block set may be: calculating all black pixel blocks in the first valid block set in a horizontal direction The total length of the upper limit is recorded as the first total length; the total length of all the black pixel blocks in the second effective block set in the horizontal direction is calculated and recorded as the second total length; according to the first total length and the The ratio of the total area of the second image and the ratio of the second total length to the total area of the fourth image determine the heading level of the face image. Or, if the ratio of the total area of all the black pixel blocks in the first/second effective block set to the total area of the second/fourth image is used as the reference value Ra/Rb, according to the first effective area The specific embodiment of the block set and the second active block set determining the heading level of the face image may further be: calculating a total area of all black pixel blocks in the first valid block set, and recording a first total area; calculating a total area of all black pixel blocks in the second active block set, and recording as a second total area; according to the first total area and the total area of the second image The ratio and a ratio of the second total area to the total area of the fourth image determine a headline level of the face image. Of course, in practical applications, the total length of all black pixel blocks in the first/second effective block set in the horizontal direction may be directly used as the reference value Ra/Rb, and then combined with the values of the reference values Ra and Rb. The head-up level of the face image is determined, and will not be enumerated here.
此外,应当理解的是,在本申请实施例中仅对第一图像中的图像内容进行后续的图像处理,而不改变其本身的形状和大小,因此,在本申请实施例中第一图像、第二图像、第三图像以及第四图像均具有相同的尺寸。In addition, it should be understood that in the embodiment of the present application, only the image content in the first image is subjected to subsequent image processing without changing its shape and size. Therefore, in the embodiment of the present application, the first image, The second image, the third image, and the fourth image all have the same size.
通过上述技术方案可知,本申请实施例的有益效果在于:通过对第一图像进行滤波处理获得第三图像,再分别对第一图像和第三图像进行包括二值化处理的图像处理获得第二图像和第四图像,继而根据第二图像和第四图像确定人脸图像的抬头纹等级,能够将人脸抬头纹分为细纹和皱纹两大类,进一步细化了人脸抬头纹的等级,提升了定量检测人脸抬头纹的精度。According to the foregoing technical solution, the beneficial effects of the embodiment of the present application are: obtaining a third image by performing filtering processing on the first image, and performing image processing including binarization processing on the first image and the third image respectively to obtain a second image. The image and the fourth image, and then determining the head-up level of the face image according to the second image and the fourth image, can divide the face-up pattern into two categories of fine lines and wrinkles, further refining the level of the face-lifting pattern. Improves the accuracy of quantitative detection of face-lifting lines.
实施例三 Embodiment 3
图8是本申请实施例提供的一种定量检测人脸抬头纹的装置的结构示意图,请参阅图8,装置8包括:FIG. 8 is a schematic structural diagram of a device for quantitatively detecting a face raising pattern according to an embodiment of the present application. Referring to FIG. 8, the device 8 includes:
图像获取单元81,用于获取人脸图像;An image obtaining unit 81, configured to acquire a face image;
截取单元82,用于截取所述人脸图像中额头区域对应的图像,并记为第一图像;The intercepting unit 82 is configured to intercept an image corresponding to the forehead region in the face image, and record the image as a first image;
图像处理单元83,用于对所述第一图像进行图像处理获得第二图像,其中,所述图像处理包括二值化处理,或者,所述图像处理包括二值化处理和腐蚀处理;The image processing unit 83 is configured to perform image processing on the first image to obtain a second image, where the image processing includes a binarization process, or the image processing includes a binarization process and an erosion process;
以及,as well as,
边缘检测单元84,用于获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合;The edge detecting unit 84 is configured to acquire a black pixel block set corresponding to the headstrip in the second image, and record the first effective block set;
判定单元85,用于根据所述第一有效区块集合确定所述人脸图像的抬头纹等级。The determining unit 85 is configured to determine a heading level of the face image according to the first valid block set.
在本申请实施例中,当图像获取单元81获取到人脸图像时,首先在截取单元82中截取所述人脸图像中额头区域对应的图像,并记为第一图像,然后通过图像处理单元83对所述第一图像进行图像处理获得第二图像,通过边缘检测单元84获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合;最后利用判定单元84根据所述第一有效区块集合确定所述人脸图像的抬头纹等级。In the embodiment of the present application, when the image acquisition unit 81 acquires the face image, the image corresponding to the forehead region of the face image is first intercepted in the clipping unit 82, and recorded as a first image, and then passed through the image processing unit. 83: performing image processing on the first image to obtain a second image, and acquiring, by the edge detecting unit 84, a black pixel block set corresponding to the raised head in the second image, which is recorded as a first effective block set; Unit 84 determines a heading level of the face image based on the first set of valid blocks.
其中,在一些实施例中,截取单元82具体用于:获取所述人脸图像中的眉毛关键点的坐标参数;基于所述坐标参数确定所述人脸图像的额头区域;截取所述额头区域对应的图像,并记为第一图像。在该实施例中,只需获取眉毛关键点的坐标参数即可确定该人脸图像的额头区域,提升了截取第一图像的效率。In some embodiments, the intercepting unit 82 is specifically configured to: acquire a coordinate parameter of a key point of the eyebrow in the face image; determine a forehead area of the face image based on the coordinate parameter; and intercept the forehead area Corresponding image and recorded as the first image. In this embodiment, the coordinate area of the eyebrow key point can be obtained to determine the forehead area of the face image, which improves the efficiency of intercepting the first image.
其中,在一些实施例中,边缘检测单元84包括:第一基准宽度阈值确定模块841、第一检测模块842以及第一除噪模块843。具体地,当获得第二图像时,第一基准宽度阈值确定模块841基于所述第二图像确定第一基准宽度阈值,第一检测模块842检测出所述第二图像中所有黑色像素区块,记为第一区块集合; 然后通过第一除噪模块843根据所述第一基准宽度阈值过滤所述第一区块集合中的噪音区块,获得与抬头纹对应的黑色像素区块集合,记为第一有效区块集合。In some embodiments, the edge detecting unit 84 includes a first reference width threshold determining module 841, a first detecting module 842, and a first noise removing module 843. Specifically, when the second image is obtained, the first reference width threshold determining module 841 determines a first reference width threshold based on the second image, and the first detecting module 842 detects all black pixel blocks in the second image, Recorded as the first block set; And then filtering, by the first noise removing module 843, the noise block in the first block set according to the first reference width threshold to obtain a black pixel block set corresponding to the raised head mark, which is recorded as the first valid block set. .
其中,判定单元85具体用于:计算所述第一有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第一总长;根据所述第一总长与所述第二图像的总面积的比值确定所述人脸图像的抬头纹等级。或者,计算所述第一有效区块集合中所有黑色像素区块的总面积,并记为第一总面积;根据所述第一总面积与所述第二图像的总面积的比值确定所述人脸图像的抬头纹等级。The determining unit 85 is specifically configured to: calculate a total length of all the black pixel blocks in the first active block set in the horizontal direction, and record the first total length; according to the first total length and the second The ratio of the total area of the image determines the heading level of the face image. Or calculating a total area of all the black pixel blocks in the first active block set and recording the first total area; determining the ratio according to the ratio of the first total area to the total area of the second image. The level of the raised face of the face image.
此外,在另一些实施例中,装置8还包括用于对所述第一图像进行滤波处理,获得第三图像的滤波处理单元86。在该实施例中,图像处理单元83还用于:对所述第三图像进行所述二值化处理获得第四图像。边缘检测单元84还包括第二基准宽度阈值确定模块844、第二检测模块845以及第二除噪模块846;当接收到第四图像时,第二基准宽度阈值确定模块845基于所述第四图像确定第二基准宽度阈值,第二检测模块846检测出所述第四图像中所有黑色像素区块,记为第二区块集合;然后通过第二除噪模块847根据所述第二基准宽度阈值过滤所述第二区块集合中的噪音区块,获得与抬头纹对应的黑色像素区块集合,记为第二第二有效区块集合。而判定单元85具体用于:根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级。例如:计算所述第一有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第一总长;计算所述第二有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第二总长;根据所述第一总长与所述第二图像的总面积的比值以及所述第二总长与所述第四图像的总面积的比值确定所述人脸图像的抬头纹等级。或者,计算所述第一有效区块集合中所有黑色像素区块的总面积,并记为第一总面积;计算所述第二有效区块集合中所有黑色像素区块的总面积,并记为第二总面积;根据所述第一总面积与所述第二图像的总面积的比值以及所述第二总面积与所述第四图像的总面积的比值确定所述人脸图像的抬头纹等级。 Moreover, in still other embodiments, apparatus 8 further includes filter processing unit 86 for performing a filtering process on the first image to obtain a third image. In this embodiment, the image processing unit 83 is further configured to: perform the binarization processing on the third image to obtain a fourth image. The edge detecting unit 84 further includes a second reference width threshold determining module 844, a second detecting module 845, and a second noise removing module 846; when receiving the fourth image, the second reference width threshold determining module 845 is based on the fourth image Determining a second reference width threshold, the second detecting module 846 detects all black pixel blocks in the fourth image, denoted as a second block set; and then passes the second noise reduction module 847 according to the second reference width threshold The noise block in the second block set is filtered to obtain a black pixel block set corresponding to the headstrip, and is recorded as a second second valid block set. The determining unit 85 is specifically configured to: determine a heading level of the face image according to the first valid block set and the second effective block set. For example, calculating a total length of all black pixel blocks in the first active block set in the horizontal direction, and recording it as a first total length; calculating all black pixel blocks in the second effective block set in a horizontal direction The total length of the upper portion, and is recorded as a second total length; determining the person according to a ratio of the first total length to a total area of the second image and a ratio of the second total length to a total area of the fourth image The level of the face image is raised. Or calculating a total area of all black pixel blocks in the first active block set and recording it as a first total area; calculating a total area of all black pixel blocks in the second effective block set, and recording a second total area; determining a heading of the face image according to a ratio of the first total area to a total area of the second image and a ratio of the second total area to a total area of the fourth image Grain grade.
通过上述技术方案可知,本申请实施例的有益效果在于:本申请实施例提供的定量检测人脸抬头纹的装置通过在图像获取单元81获取到人脸图像时,在截取单元82中截取所述人脸图像中额头区域对应的图像,并记为第一图像;然后通过图像处理单元83对所述第一图像进行二值化处理获得第二图像;通过边缘检测单元84获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合;最后利用判定单元85根据所述第一有效区块集合确定所述人脸图像的抬头纹等级,能够实现对人脸图像的抬头纹的严重程度进行定量化的检测,同时,该定量检测的方式快捷方便。此外,在一些实施例中,还通过滤波单元86对第一图像进行滤波处理获得第三图像,并在图像处理单元83中分别对第一图像和第三图像进行图像处理获得第二图像和第四图像,利用边缘检测单元84获取第一有效区块集合和第二有效区块集合,最后利用判定单元85根据第一有效区块集合和第二有效区块集合确定人脸图像的抬头纹等级,能够将人脸抬头纹分为细纹和皱纹两大类,进一步细化了人脸抬头纹的等级,提升了定量检测人脸抬头纹的精度。According to the foregoing technical solution, the device of the present application has the beneficial effect that the device for quantitatively detecting the face-lifting head image provided by the embodiment of the present application intercepts the image in the intercepting unit 82 when acquiring the face image by the image acquiring unit 81. An image corresponding to the forehead area in the face image is recorded as a first image; then the first image is binarized by the image processing unit 83 to obtain a second image; the second image is acquired by the edge detecting unit 84. The black pixel block set corresponding to the headstrip is recorded as the first valid block set; and finally the determining unit 85 determines the heading level of the face image according to the first valid block set, and the pair of people can be realized. The severity of the raised image of the face image is quantitatively detected, and at the same time, the quantitative detection method is quick and convenient. In addition, in some embodiments, the first image is further filtered by the filtering unit 86 to obtain a third image, and the first image and the third image are respectively subjected to image processing in the image processing unit 83 to obtain a second image and a third image. Four images, the first valid block set and the second effective block set are obtained by the edge detecting unit 84, and finally the determining unit 85 determines the heading level of the face image according to the first effective block set and the second effective block set. It can divide the face-up pattern into two categories: fine lines and wrinkles, further refine the level of face-lifting lines, and improve the accuracy of quantitative detection of face-lifting lines.
需要说明的是,由于所述定量检测人脸抬头纹的装置与上述方法实施例一和实施例二中的定量检测人脸抬头纹的方法基于相同的发明构思,因此,方法实施例一和实施例二的相应内容同样适用于本装置实施例,此处不再详述。It should be noted that, since the apparatus for quantitatively detecting the face raising pattern is based on the same inventive concept as the method for quantitatively detecting the face raising in the first embodiment and the second embodiment, the method embodiment 1 and the implementation are The corresponding content of the second example is also applicable to the embodiment of the device, and will not be described in detail herein.
实施例四 Embodiment 4
图9是本申请实施例提供的一种智能终端的结构示意图,该智能终端900可以是任意类型的电子设备,如:手机、平板电脑、美容鉴定仪器等,请参阅图9,该智能终端900包括:9 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present disclosure. The smart terminal 900 can be any type of electronic device, such as a mobile phone, a tablet computer, a beauty authentication device, etc. Referring to FIG. 9, the smart terminal 900 is shown in FIG. include:
一个或多个处理器910以及存储器920,图9中以一个处理器910为例。One or more processors 910 and memory 920, one processor 910 is taken as an example in FIG.
处理器910和存储器920可以通过总线或者其他方式连接,图9中以通过总线连接为例。The processor 910 and the memory 920 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器920作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态性计算机可执行程序以及模块,如本申请实施例中的定量检测人 脸抬头纹的方法对应的程序指令/模块(例如,附图8所示的图像获取单元81、截取单元82、图像处理单元83、边缘检测单元84、判定单元85以及滤波处理单元86)。处理器910通过运行存储在存储器920中的非暂态软件程序、指令以及模块,从而执行定量检测人脸抬头纹的装置的各种功能应用以及数据处理,即实现上述任一方法实施例的定量检测人脸抬头纹的方法。The memory 920 is a non-transitory computer readable storage medium, and can be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as quantitative detecting persons in the embodiments of the present application. A program instruction/module corresponding to the face raising method (for example, the image acquiring unit 81, the clipping unit 82, the image processing unit 83, the edge detecting unit 84, the determining unit 85, and the filter processing unit 86 shown in FIG. 8). The processor 910 performs various functional applications and data processing of the apparatus for quantitatively detecting face-lifting by performing non-transitory software programs, instructions, and modules stored in the memory 920, that is, realizing the quantification of any of the above method embodiments A method of detecting a raised face of a face.
存储器920可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据定量检测人脸抬头纹的装置的使用所创建的数据等。此外,存储器920可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器920可选包括相对于处理器910远程设置的存储器,这些远程存储器可以通过网络连接至定量检测人脸抬头纹的装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 920 can include a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function; the storage data area can store an operation created according to the use of the device for quantitatively detecting the face-lifting of the face Data, etc. Moreover, memory 920 can include high speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 920 can optionally include a memory remotely located relative to the processor 910 that can be connected via a network to a device that quantitatively detects face lift. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
所述一个或者多个模块存储在所述存储器920中,当被所述一个或者多个处理器910执行时,执行上述任意方法实施例中的定量检测人脸抬头纹的方法,例如,执行以上描述的图1中的方法步骤110至步骤150,图5中的方法步骤510至步骤580,实现图8中的单元81-86的功能。The one or more modules are stored in the memory 920, and when executed by the one or more processors 910, perform a method of quantitatively detecting face lift in any of the above method embodiments, for example, performing the above The method steps 110 through 150 of FIG. 1 are described, and the method steps 510 through 580 of FIG. 5 implement the functions of the units 81-86 of FIG.
实施例五Embodiment 5
本申请实施例还提供了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图9中的一个处理器910,可使得上述一个或多个处理器执行上述任意方法实施例中的定量检测人脸抬头纹的方法,例如,执行以上描述的图1中的方法步骤110至步骤150,图5中的方法步骤510至步骤580,实现图8中的单元81-86的功能。The embodiment of the present application further provides a non-transitory computer readable storage medium storing computer executable instructions executed by one or more processors, for example, A processor 910 in FIG. 9 may cause the one or more processors to perform the method of quantitatively detecting face lift in any of the above method embodiments, for example, performing the method steps 110 to 110 in FIG. 1 described above. 150, method steps 510 through 580 of FIG. 5, implement the functions of units 81-86 of FIG.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的 单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, wherein the described as separate components The units may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
通过以上的实施方式的描述,本领域普通技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非暂态计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware. A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a non-transitory computer readable storage medium. The program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above products can perform the methods provided by the embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; in the idea of the present application, the technical features in the above embodiments or different embodiments may also be combined. The steps may be carried out in any order, and there are many other variations of the various aspects of the present application as described above, which are not provided in the details for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, The skilled person should understand that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the embodiments of the present application. The scope of the technical solution.

Claims (11)

  1. 一种定量检测人脸抬头纹的方法,其特征在于,包括:A method for quantitatively detecting a face-lifting face, characterized in that it comprises:
    获取人脸图像;Obtaining a face image;
    截取所述人脸图像中额头区域对应的图像,并记为第一图像;Intercepting an image corresponding to the forehead region in the face image, and recording the image as a first image;
    对所述第一图像进行图像处理获得第二图像,所述图像处理包括二值化处理;Performing image processing on the first image to obtain a second image, the image processing including binarization processing;
    获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合;Obtaining a black pixel block set corresponding to the raised head line in the second image, and recording the first effective block set;
    根据所述第一有效区块集合确定所述人脸图像的抬头纹等级。Determining a headline level of the face image according to the first valid block set.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述第二图像中与抬头纹对应的黑色像素区块集合,记为第一有效区块集合,包括:The method according to claim 1, wherein the acquiring a set of black pixel blocks corresponding to the headstrip in the second image is recorded as a first valid block set, comprising:
    基于所述第二图像确定第一基准宽度阈值;Determining a first reference width threshold based on the second image;
    检测出所述第二图像中所有黑色像素区块,记为第一区块集合;Detecting all black pixel blocks in the second image, and recording them as a first block set;
    根据所述第一基准宽度阈值过滤所述第一区块集合中的噪音区块,获得与抬头纹对应的黑色像素区块集合,记为第一有效区块集合。Filtering the noise blocks in the first block set according to the first reference width threshold, and obtaining a black pixel block set corresponding to the headstrip, which is recorded as the first valid block set.
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述第一有效区块集合确定所述人脸图像的抬头纹等级,包括:The method according to claim 1, wherein the determining the heading level of the face image according to the first valid block set comprises:
    计算所述第一有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第一总长;Calculating a total length of all black pixel blocks in the first active block set in a horizontal direction, and recording the first total length;
    根据所述第一总长与所述第二图像的总面积的比值确定所述人脸图像的抬头纹等级。And determining a head-up level of the face image according to a ratio of the first total length to a total area of the second image.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述第一有效区块集合确定所述人脸图像的抬头纹等级,包括:The method according to claim 1, wherein the determining the heading level of the face image according to the first valid block set comprises:
    计算所述第一有效区块集合中所有黑色像素区块的总面积,并记为第一总面积;Calculating a total area of all black pixel blocks in the first active block set, and recording the first total area;
    根据所述第一总面积与所述第二图像的总面积的比值确定所述人脸图像的抬头纹等级。 And determining a headline level of the face image according to a ratio of the first total area to a total area of the second image.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    对所述第一图像进行滤波处理,获得第三图像;Performing a filtering process on the first image to obtain a third image;
    对所述第三图像进行所述图像处理获得第四图像;Performing the image processing on the third image to obtain a fourth image;
    获取所述第四图像中与抬头纹对应的黑色像素区块集合,记为第二有效区块集合;Obtaining a black pixel block set corresponding to the header in the fourth image, and recording the second effective block set;
    则,所述根据所述第一有效区块集合确定所述人脸图像的抬头纹等级,包括:And determining, according to the first valid block set, the heading level of the face image, including:
    根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级。Determining a headline level of the face image according to the first valid block set and the second valid block set.
  6. 根据权利要求5所述的方法,其特征在于,所述获取所述第四图像中与抬头纹对应的黑色像素区块集合,记为第二有效区块集合,包括:The method according to claim 5, wherein the acquiring a set of black pixel blocks corresponding to the headstrip in the fourth image is recorded as a second active block set, comprising:
    基于所述第四图像确定第二基准宽度阈值;Determining a second reference width threshold based on the fourth image;
    检测出所述第四图像中所有黑色像素区块,记为第二区块集合;Detecting all black pixel blocks in the fourth image, and recording them as a second block set;
    根据所述第二基准宽度阈值过滤所述第二区块集合中的噪音区块,获得与抬头纹对应的黑色像素区块集合,记为第二有效区块集合。Filtering the noise blocks in the second block set according to the second reference width threshold to obtain a black pixel block set corresponding to the headstrip, and recording the second effective block set.
  7. 根据权利要求5所述的方法,其特征在于,所述根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级,包括:The method according to claim 5, wherein the determining the heading level of the face image according to the first active block set and the second active block set comprises:
    计算所述第一有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第一总长;Calculating a total length of all black pixel blocks in the first active block set in a horizontal direction, and recording the first total length;
    计算所述第二有效区块集合中所有黑色像素区块在水平方向上的总长度,并记为第二总长;Calculating a total length of all black pixel blocks in the second active block set in the horizontal direction, and recording the second total length;
    根据所述第一总长与所述第二图像的总面积的比值以及所述第二总长与所述第四图像的总面积的比值确定所述人脸图像的抬头纹等级。And determining a head-up level of the face image according to a ratio of the first total length to a total area of the second image and a ratio of the second total length to a total area of the fourth image.
  8. 根据权利要求5所述的方法,其特征在于,所述根据所述第一有效区块集合和所述第二有效区块集合确定所述人脸图像的抬头纹等级,包括:The method according to claim 5, wherein the determining the heading level of the face image according to the first active block set and the second active block set comprises:
    计算所述第一有效区块集合中所有黑色像素区块的总面积,并记为第一总面积; Calculating a total area of all black pixel blocks in the first active block set, and recording the first total area;
    计算所述第二有效区块集合中所有黑色像素区块的总面积,并记为第二总面积;Calculating a total area of all black pixel blocks in the second active block set, and recording it as a second total area;
    根据所述第一总面积与所述第二图像的总面积的比值以及所述第二总面积与所述第四图像的总面积的比值确定所述人脸图像的抬头纹等级。And determining a headline level of the face image according to a ratio of the first total area to a total area of the second image and a ratio of the second total area to a total area of the fourth image.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述图像处理还包括:腐蚀处理。The method of any of claims 1-8, wherein the image processing further comprises: an etching process.
  10. 一种智能终端,其特征在于,包括:An intelligent terminal, comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1-9任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any of claims 1-9 Methods.
  11. 一种非暂态计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如权利要求1-9任一项所述的方法。 A non-transitory computer readable storage medium, characterized in that the computer readable storage medium stores computer executable instructions for causing a computer to perform as claimed in any one of claims 1-9 The method described.
PCT/CN2017/093191 2017-07-17 2017-07-17 Method for quantitatively detecting forehead wrinkles on human face, and intelligent terminal WO2019014814A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780004161.XA CN108369644B (en) 2017-07-17 2017-07-17 Method for quantitatively detecting human face raised line, intelligent terminal and storage medium
PCT/CN2017/093191 WO2019014814A1 (en) 2017-07-17 2017-07-17 Method for quantitatively detecting forehead wrinkles on human face, and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/093191 WO2019014814A1 (en) 2017-07-17 2017-07-17 Method for quantitatively detecting forehead wrinkles on human face, and intelligent terminal

Publications (1)

Publication Number Publication Date
WO2019014814A1 true WO2019014814A1 (en) 2019-01-24

Family

ID=63011291

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/093191 WO2019014814A1 (en) 2017-07-17 2017-07-17 Method for quantitatively detecting forehead wrinkles on human face, and intelligent terminal

Country Status (2)

Country Link
CN (1) CN108369644B (en)
WO (1) WO2019014814A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110110637A (en) * 2019-04-25 2019-08-09 深圳市华嘉生物智能科技有限公司 A kind of method of face wrinkle of skin automatic identification and wrinkle severity automatic classification
CN111275610A (en) * 2020-01-08 2020-06-12 杭州趣维科技有限公司 Method and system for processing face aging image
CN112116523A (en) * 2019-06-20 2020-12-22 腾讯科技(深圳)有限公司 Image processing method, device, terminal and medium for portrait hair
CN112712054A (en) * 2021-01-14 2021-04-27 深圳艾摩米智能科技有限公司 Method for detecting facial wrinkles

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111199171B (en) 2018-11-19 2022-09-23 荣耀终端有限公司 Wrinkle detection method and terminal equipment
CN112669228B (en) * 2020-12-22 2024-05-31 厦门美图之家科技有限公司 Image processing method, system, mobile terminal and storage medium
CN114119597A (en) * 2021-12-08 2022-03-01 林丹柯 Acne blackhead non-contact testing method, system, computer equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425985A (en) * 2013-08-28 2013-12-04 山东大学 Method for detecting forehead wrinkles on face
CN104299011A (en) * 2014-10-13 2015-01-21 吴亮 Skin type and skin problem identification and detection method based on facial image identification
CN104732214A (en) * 2015-03-24 2015-06-24 吴亮 Quantification skin detecting method based on face image recognition
CN106388781A (en) * 2016-09-29 2017-02-15 深圳可思美科技有限公司 Method for detecting skin colors and pigmentation situation of skin
CN106875391A (en) * 2017-03-02 2017-06-20 深圳可思美科技有限公司 The recognition methods of skin image and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008033654A (en) * 2006-07-28 2008-02-14 Noritsu Koki Co Ltd Photographic image discrimination method, photographic image discrimination program, and photographic image processing apparatus
KR101756352B1 (en) * 2016-10-28 2017-07-10 주식회사 아이오로라 Method for estimating age of face in image using extended local binary pattern

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425985A (en) * 2013-08-28 2013-12-04 山东大学 Method for detecting forehead wrinkles on face
CN104299011A (en) * 2014-10-13 2015-01-21 吴亮 Skin type and skin problem identification and detection method based on facial image identification
CN104732214A (en) * 2015-03-24 2015-06-24 吴亮 Quantification skin detecting method based on face image recognition
CN106388781A (en) * 2016-09-29 2017-02-15 深圳可思美科技有限公司 Method for detecting skin colors and pigmentation situation of skin
CN106875391A (en) * 2017-03-02 2017-06-20 深圳可思美科技有限公司 The recognition methods of skin image and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110110637A (en) * 2019-04-25 2019-08-09 深圳市华嘉生物智能科技有限公司 A kind of method of face wrinkle of skin automatic identification and wrinkle severity automatic classification
CN112116523A (en) * 2019-06-20 2020-12-22 腾讯科技(深圳)有限公司 Image processing method, device, terminal and medium for portrait hair
CN112116523B (en) * 2019-06-20 2023-08-25 腾讯科技(深圳)有限公司 Image processing method, device, terminal and medium for portrait hair
CN111275610A (en) * 2020-01-08 2020-06-12 杭州趣维科技有限公司 Method and system for processing face aging image
CN111275610B (en) * 2020-01-08 2023-08-18 杭州小影创新科技股份有限公司 Face aging image processing method and system
CN112712054A (en) * 2021-01-14 2021-04-27 深圳艾摩米智能科技有限公司 Method for detecting facial wrinkles

Also Published As

Publication number Publication date
CN108369644A (en) 2018-08-03
CN108369644B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
WO2019014814A1 (en) Method for quantitatively detecting forehead wrinkles on human face, and intelligent terminal
US10726260B2 (en) Feature extraction and matching for biometric authentication
CN108323204B (en) Method for detecting face flaw point and intelligent terminal
RU2711050C2 (en) Image and attribute quality, image enhancement and identification of features for identification by vessels and faces and combining information on eye vessels with information on faces and / or parts of faces for biometric systems
Radman et al. Automated segmentation of iris images acquired in an unconstrained environment using HOG-SVM and GrowCut
WO2019014813A1 (en) Method and apparatus for quantitatively detecting skin type parameter of human face, and intelligent terminal
WO2017036160A1 (en) Glasses removal method for facial recognition
Zhang et al. Fast and robust occluded face detection in ATM surveillance
CN103902977B (en) Face identification method and device based on Gabor binary patterns
JP2017531883A (en) Method and system for extracting main subject of image
Singh et al. Face detection and eyes extraction using sobel edge detection and morphological operations
CN107862298B (en) Winking living body detection method based on infrared camera device
Dey et al. Computer vision based gender detection from facial image
Bhaskar et al. Advanced algorithm for gender prediction with image quality assessment
Lin et al. Face detection based on skin color segmentation and SVM classification
CN113128372A (en) Blackhead identification method and device based on image processing and terminal equipment
Jaiswal et al. Saliency based automatic image cropping using support vector machine classifier
Shi et al. A fast and efficient multiple step algorithm of iris image quality assessment
NL2024816B1 (en) Detection method for detecting an occlusion of an eye region in an image
Cao et al. A novel iris segmentation approach based on superpixel method
Yuen et al. Real-time detection of face and iris
CN114663930A (en) Living body detection method and device, terminal equipment and storage medium
CN111832460A (en) Face image extraction method and system based on multi-feature fusion
Jha Recognition of surgically altered face images: an empirical analysis on recent advances
CN111488845A (en) Eye sight detection method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17918269

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 26.05.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17918269

Country of ref document: EP

Kind code of ref document: A1