Nothing Special   »   [go: up one dir, main page]

CN110210290A - Face picture acquisition method, device and computer equipment - Google Patents

Face picture acquisition method, device and computer equipment Download PDF

Info

Publication number
CN110210290A
CN110210290A CN201910321477.2A CN201910321477A CN110210290A CN 110210290 A CN110210290 A CN 110210290A CN 201910321477 A CN201910321477 A CN 201910321477A CN 110210290 A CN110210290 A CN 110210290A
Authority
CN
China
Prior art keywords
picture
face sample
face
pictures
collection
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201910321477.2A
Other languages
Chinese (zh)
Inventor
翟彬彬
祁维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910321477.2A priority Critical patent/CN110210290A/en
Publication of CN110210290A publication Critical patent/CN110210290A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Image Processing (AREA)

Abstract

本申请实施例提供一种人脸图片采集方法、装置和计算机设备,其中该方法包括首先通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集;其次按照预设比例分别从每台图像采集设备对应的人脸样本图片集当中进行人脸样本图片的抽取,并基于抽取到的人脸样本图片构成人脸图片合集;最后将获取到的待识别图片与所述人脸图片合集中的人脸样本图片进行比对,获得与所述待识别图片匹配的人脸样本图片。这样采集到的人脸图片更加符合实际场景的变化,在人工智能领域,特别是生物识别方面具有更广泛的应用范围。

The embodiment of the present application provides a face picture collection method, device and computer equipment, wherein the method includes firstly collecting a plurality of face sample pictures of a plurality of users through a plurality of image acquisition devices with different acquisition parameters, and obtaining each The face sample picture set corresponding to each image acquisition device; secondly, the face sample pictures are extracted from the face sample picture sets corresponding to each image acquisition device according to the preset ratio, and the face sample pictures are formed based on the extracted face sample pictures. A collection of face pictures; finally, compare the obtained picture to be recognized with the face sample pictures in the collection of face pictures to obtain a face sample picture matching the picture to be recognized. The face pictures collected in this way are more in line with the changes of the actual scene, and have a wider range of applications in the field of artificial intelligence, especially in biometrics.

Description

人脸图片采集方法、装置和计算机设备Face picture collection method, device and computer equipment

技术领域technical field

本申请涉及人工智能技术领域,尤其涉及一种人脸图片采集方法、装置和计算机设备。The present application relates to the technical field of artificial intelligence, and in particular to a face picture collection method, device and computer equipment.

背景技术Background technique

现有的对人脸图片的性能测试过程中,对于不同的图片采集设备,往往存在着图片的分辨率、像素以及格式不统一的问题。In the existing performance testing process of face pictures, for different picture collection devices, there is often a problem that the resolution, pixel and format of the pictures are not uniform.

而在实际应用中,人脸图片数据使用的是一张固定的图片,但是采用何种图片采集设备进行图片的采集却是随机的,故而对于采集到的人脸图片,会存在找不到对应分辨率、像素或是格式的基准图片的问题,导致无法进行后续测试。However, in practical applications, the face image data uses a fixed image, but the image acquisition device used to collect the image is random, so for the collected face image, there will be cases where no corresponding image can be found. Issues with the resolution, pixels, or format of the baseline image prevent subsequent testing.

发明内容Contents of the invention

本申请实施例提供了一种人脸图片采集方法、装置和计算机设备,可以对获取到的待识别图片进行人脸样本图片的比对,并获取具有相同采集参数的人脸样本图片,更加符合实际场景的变化,具有更广泛的应用范围。The embodiment of the present application provides a face picture collection method, device and computer equipment, which can compare the face sample pictures with the acquired pictures to be recognized, and obtain the face sample pictures with the same collection parameters, which is more in line with Changes in actual scenarios have a wider range of applications.

第一方面,本申请实施例提供了一种人脸图片采集方法,包括:In the first aspect, the embodiment of the present application provides a method for collecting face pictures, including:

通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集;Collect multiple face sample pictures of multiple users through multiple image acquisition devices with different acquisition parameters, and obtain a face sample picture set corresponding to each image acquisition device;

按照预设比例分别从每台图像采集设备对应的人脸样本图片集当中进行人脸样本图片的抽取,并基于抽取到的人脸样本图片构成人脸图片合集;Extract the face sample pictures from the face sample picture sets corresponding to each image acquisition device according to the preset ratio, and form a face picture collection based on the extracted face sample pictures;

将获取到的待识别图片与所述人脸图片合集中的人脸样本图片进行比对,获得与所述待识别图片匹配的人脸样本图片。Comparing the obtained picture to be recognized with the face sample picture in the collection of face pictures to obtain a face sample picture matching the picture to be recognized.

其中在一种可能的实现方式中,所述通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片之前,还包括:Wherein, in a possible implementation manner, before collecting multiple face sample pictures of multiple users through multiple image acquisition devices with different acquisition parameters, it also includes:

配置每个图像采集设备的采集参数。Configure the acquisition parameters for each image acquisition device.

其中在一种可能的实现方式中,所述通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片包括:Wherein in a possible implementation manner, said collecting multiple face sample pictures of multiple users respectively through multiple image acquisition devices with different acquisition parameters includes:

通过每个图像采集设备对多个用户的人脸进行多次抓拍,以得到每台图像采集设备对应的人脸样本图片集。Each image acquisition device captures the faces of multiple users multiple times to obtain a face sample picture set corresponding to each image acquisition device.

其中在一种可能的实现方式中,所述通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集,还包括:Wherein, in a possible implementation manner, the plurality of image acquisition devices with different acquisition parameters are used to collect a plurality of face sample pictures of multiple users respectively, and obtain a set of face sample pictures corresponding to each image acquisition device ,Also includes:

对每张人脸样本图片进行检测,并将每张人脸样本图片的质量与预设的图片质量进行比较,以及,Detecting each face sample picture, and comparing the quality of each face sample picture with a preset picture quality, and,

在所述人脸样本图片的质量不低于所述预设的图片质量时,输出所述人脸样本图片至对应的人脸样本图片集中。When the quality of the human face sample picture is not lower than the preset picture quality, output the human face sample picture to a corresponding human face sample picture set.

第二方面,本申请实施例还提供了一种人脸图片采集装置,包括:In the second aspect, the embodiment of the present application also provides a device for collecting face pictures, including:

采集模块,用于通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集;The collection module is used to collect a plurality of face sample pictures of multiple users through a plurality of image collection devices with different collection parameters, and obtain a set of face sample pictures corresponding to each image collection device;

抽取模块,用于按照预设比例从所述采集模块采集的每台图像采集设备对应的人脸样本图片集当中进行人脸样本图片的抽取,并基于抽取到的人脸样本图片构成人脸图片合集;The extraction module is used to extract face sample pictures from the set of face sample pictures corresponding to each image acquisition device collected by the acquisition module according to a preset ratio, and form a face picture based on the extracted face sample pictures Collection;

比对模块,用于将获取到的待识别图片与通过所述抽取模块抽取的所述人脸图片合集中的人脸样本图片进行比对,获得与所述待识别图片匹配的人脸样本图片。A comparison module, configured to compare the obtained picture to be identified with the face sample picture in the collection of human face pictures extracted by the extraction module, to obtain a face sample picture that matches the picture to be identified .

其中在一种可能的实现方式中,所述的装置还包括:Wherein in a possible implementation manner, the device further includes:

配置模块,用于配置每个图像采集设备的采集参数。The configuration module is used to configure the acquisition parameters of each image acquisition device.

其中在一种可能的实现方式中,所述采集模块具体用于通过每个图像采集设备对多个用户的人脸进行多次抓拍,以得到每台图像采集设备对应的人脸样本图片集。In a possible implementation manner, the acquisition module is specifically configured to capture multiple times of faces of multiple users through each image acquisition device, so as to obtain a face sample picture set corresponding to each image acquisition device.

其中在一种可能的实现方式中,所述的装置还包括:Wherein in a possible implementation manner, the device further includes:

检测模块,用于对所述采集模块采集到的每张人脸样本图片进行检测,并将所述每张人脸样本图片的质量与预设的图片质量进行比较,以及,A detection module, configured to detect each face sample picture collected by the acquisition module, and compare the quality of each face sample picture with a preset picture quality, and,

在所述人脸样本图片的质量不低于所述预设的图片质量时,输出所述人脸样本图片至对应的人脸样本图片集中。When the quality of the human face sample picture is not lower than the preset picture quality, output the human face sample picture to a corresponding human face sample picture set.

第三方面,本申请实施例还提供了一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现上述人脸图片采集方法。In the third aspect, the embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor executes the computer program , realize the above-mentioned face picture collection method.

第四方面,本申请实施例还提供了一种非临时性计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述人脸图片采集方法。In a fourth aspect, the embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned face picture collection method is implemented.

以上技术方案中,通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集之后,按照预设比例分别从每个人脸样本图片集当中进行人脸样本图片的抽取,并基于抽取到的人脸样本图片构成人脸图片合集,以及基于人脸图片合集,对获取到的待识别图片进行人脸样本图片的比对,并获取对应的人脸样本图片,更加符合实际场景的变化,具有更广泛的应用范围。In the above technical solution, a plurality of face sample pictures of multiple users are respectively collected by a plurality of image acquisition devices with different acquisition parameters, and after obtaining the face sample picture sets corresponding to each image acquisition device, they are divided according to preset ratios. Extract face sample pictures from each face sample picture set, and form a face picture collection based on the extracted face sample pictures, and perform face sample pictures on the acquired pictures to be recognized based on the face picture collection The comparison, and obtain the corresponding face sample pictures, which is more in line with the changes of the actual scene, and has a wider range of applications.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本申请人脸图片采集方法一个实施例的流程图;Fig. 1 is the flowchart of an embodiment of the applicant's face picture collection method;

图2为本申请人脸图片采集方法另一个实施例的流程图;Fig. 2 is the flowchart of another embodiment of the applicant's face picture collection method;

图3为本申请人脸图片采集装置一个实施例的连接结构示意图;Fig. 3 is a schematic diagram of the connection structure of an embodiment of the applicant's face picture collection device;

图4为本申请人脸图片采集装置另一实施例的连接结构示意图;Fig. 4 is a schematic diagram of the connection structure of another embodiment of the applicant's face image collection device;

图5为本申请计算机设备一个实施例的结构示意图。FIG. 5 is a schematic structural diagram of an embodiment of a computer device of the present application.

具体实施方式Detailed ways

为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。In order to better understand the technical solutions of the present application, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be clear that the described embodiments are only some of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。Terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of this application and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.

图1为本申请人脸图片采集方法一个实施例的流程图,如图1所示,上述方法可以包括:Fig. 1 is the flow chart of an embodiment of the applicant's face picture collection method, as shown in Fig. 1, said method may comprise:

步骤101:通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集。Step 101: Collect multiple face sample pictures of multiple users through multiple image capture devices with different capture parameters, and obtain a set of face sample pictures corresponding to each image capture device.

具体来说,上述图像采集设备可以是任意一种利用电子传感器把光学影像转换成电子数据的照相机,包括但不限于单反相机、微单相机等,在实际应用中,往往通过抓拍获取每台图像采集设备对应的人脸样本图片集。其中,本实施例中的图像采集设备具有不同的采集参数,上述采集参数一般指图片的分辨率、像素以及格式等。优选地,本实施例可对上述图像采集设备的采集参数进行提前配置,其中分辨率一般配置成大于或等于72像素每英寸、像素一般大于或等于200万、格式一般有.jpg、.png、.bmp等。Specifically, the above-mentioned image acquisition device can be any camera that uses electronic sensors to convert optical images into electronic data, including but not limited to SLR cameras, mirrorless cameras, etc. In practical applications, each image is often captured by snapping A set of face sample pictures corresponding to the acquisition device. Wherein, the image acquisition device in this embodiment has different acquisition parameters, and the above acquisition parameters generally refer to the resolution, pixels, and format of the picture. Preferably, in this embodiment, the acquisition parameters of the above-mentioned image acquisition equipment can be configured in advance, wherein the resolution is generally configured to be greater than or equal to 72 pixels per inch, the pixels are generally greater than or equal to 2 million, and the formats are generally .jpg, .png, .bmp etc.

步骤102:按照预设比例分别从每台图像采集设备对应的人脸样本图片集当中进行人脸样本图片的抽取,并基于抽取到的人脸样本图片构成人脸图片合集。Step 102: Extract face sample pictures from the face sample picture sets corresponding to each image acquisition device according to a preset ratio, and form a face picture collection based on the extracted face sample pictures.

具体而言,上述预设比例可以在具体实现时,根据系统性能和/或实现需求等自行设定,本实施例对上述预设比例的大小不作限定,举例来说,上述预设比例可以为10%。Specifically, the above-mentioned preset ratio can be set according to system performance and/or implementation requirements during actual implementation. This embodiment does not limit the size of the above-mentioned preset ratio. For example, the above-mentioned preset ratio can be 10%.

步骤103:将获取到的待识别图片与上述人脸图片合集中的人脸样本图片进行比对,获得与上述待识别图片匹配的人脸样本图片。Step 103: Compare the obtained picture to be recognized with the face sample picture in the above-mentioned face picture collection, and obtain a face sample picture matching the above-mentioned picture to be recognized.

具体地,本申请将待识别图片的分辨率、像素以及格式与具有不同采集参数的人脸样本图片进行比对,以获取对应的人脸样本图片。下面以分辨率为例对上述比对过程进行描述:Specifically, the application compares the resolution, pixels, and format of the picture to be recognized with the face sample pictures with different collection parameters to obtain the corresponding face sample pictures. The above comparison process is described below by taking the resolution as an example:

首先,我们需要先获取待识别图片的分辨率,这个一般可以通过计算机应用程序进行右键点击选择属性查看到;其次,我们需要在人脸图片合集当中查找到与待识别图片的分辨率最接近甚至是相一致的人脸样本图片;最后,通过查找到的人脸样本图片,便可根据实际测试需求供测试人员进行进一步操作。First of all, we need to obtain the resolution of the picture to be recognized, which can generally be viewed by right-clicking on a computer application and selecting properties; secondly, we need to find the resolution that is closest to the picture to be recognized in the face picture collection. It is a consistent face sample picture; finally, through the found face sample picture, it can be used by testers for further operations according to actual test requirements.

在实际应用中,由于上述查找到的人脸样本图片往往是多个,故可通过比较上述待识别图片与人脸样本图片之间的相似度,来确定人物身份信息,具体而言,上述相似度的比较往往可以采取一些相似度算法来完成,包括但不限于尺度不变特征转换(Scale-invariant feature transform;以下简称SIFT)算法或哈希算法等。在本实施例中,采用余弦相似度算法来计算待识别图片与人脸样本图片之间的相似度,具体来说,本实施例通过测量待识别图片与多个人脸样本图片之间向量内积空间的余弦值来度量它们之间的相似度。示例:In practical applications, since there are often multiple face sample pictures found above, the identity information of the person can be determined by comparing the similarity between the above-mentioned picture to be recognized and the face sample picture. Specifically, the above similarity The degree comparison can often be done by using some similarity algorithms, including but not limited to scale-invariant feature transform (Scale-invariant feature transform; SIFT for short) algorithm or hash algorithm. In this embodiment, the cosine similarity algorithm is used to calculate the similarity between the picture to be recognized and the face sample picture. Specifically, this embodiment measures the vector inner product between the picture to be recognized and a plurality of face sample pictures space to measure the similarity between them. Example:

一般通过公式(1)计算待识别图片与人脸样本图片之间的特征向量的余弦相似度:Generally, the cosine similarity of the feature vector between the picture to be recognized and the face sample picture is calculated by formula (1):

其中,公式(1)中的表示待识别图片对应的特征向量,表示人脸样本图片所对应的特征向量。Among them, the formula (1) in Indicates the feature vector corresponding to the picture to be recognized, Indicates the feature vector corresponding to the face sample picture.

其中,cosθ的值越接近1,表示待识别图片和人脸样本图片的相近程度越高。这样,就可以根据人脸样本图片中所记录的身份信息确定待识别图片的人物身份。Among them, the closer the value of cosθ is to 1, the higher the similarity between the picture to be recognized and the face sample picture is. In this way, the identity of the person in the picture to be recognized can be determined according to the identity information recorded in the face sample picture.

上述人脸图片采集方法中,通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集之后,按照预设比例分别从每个人脸样本图片集当中进行人脸样本图片的抽取,并基于抽取到的人脸样本图片构成人脸图片合集,以及基于人脸图片合集,对获取到的待识别图片进行人脸样本图片的比对,在比对过程中,可以获取对应的人脸样本图片,同时该人脸图片合集可以适用于各种不同的人脸样本图片的测试需求,更加符合实际场景的变化,具有更广泛的应用范围。In the above-mentioned face picture collection method, a plurality of face sample pictures of multiple users are respectively collected by a plurality of image collection devices with different collection parameters, and after obtaining the face sample picture set corresponding to each image collection device, according to preset Set the ratio to extract face sample pictures from each face sample picture set, and form a face picture collection based on the extracted face sample pictures, and based on the face picture collection, perform human face recognition on the acquired pictures to be recognized. In the comparison of face sample pictures, the corresponding face sample pictures can be obtained during the comparison process. At the same time, the face picture collection can be applied to the test requirements of various face sample pictures, which is more in line with the actual scene changes. Has a wider range of applications.

图2为本申请人脸图片采集方法另一个实施例的流程图,如图2所示,本申请图1所示实施例中,步骤101可以包括:Fig. 2 is the flow chart of another embodiment of the applicant's face picture collection method, as shown in Fig. 2, in the embodiment shown in Fig. 1 of the present application, step 101 may include:

步骤201:对每张人脸样本图片进行检测,并将每张人脸样本图片的质量与预设的图片质量进行比较。Step 201: Detect each face sample picture, and compare the quality of each face sample picture with a preset picture quality.

步骤202:在上述人脸样本图片的质量不低于所述预设的图片质量时,输出所述人脸样本图片至对应的人脸样本图片集中。Step 202: When the quality of the face sample picture is not lower than the preset picture quality, output the face sample picture to the corresponding face sample picture set.

进一步来说,图片质量的含义主要包括两个方面,即图像的逼真程度和图像的可懂度。图像质量直接取决于成像装备的光学性能、图像对比度、仪器噪声等多种因素的影响,通过质量评价可以对影像的获取、处理等各环节提供监控手段。Furthermore, the meaning of picture quality mainly includes two aspects, that is, the fidelity of the image and the intelligibility of the image. Image quality directly depends on the optical performance of imaging equipment, image contrast, instrument noise and other factors. Through quality evaluation, monitoring methods can be provided for image acquisition and processing.

同样,上述预设的图片质量可以在具体实现时,根据系统性能和/或实现需求等自行设定,本实施例对上述预设的图片质量(逼真程度和可懂度)大小不作限定,举例来说,上述逼真程度和可懂度可以为90%,并在逼真程度和可懂度中有一个低于90%时,视为该人脸样本图片的质量低于所述预设的图片质量。Similarly, the above-mentioned preset picture quality can be set according to system performance and/or implementation requirements during specific implementation. This embodiment does not limit the above-mentioned preset picture quality (fidelity and intelligibility), for example For example, the above-mentioned fidelity and intelligibility can be 90%, and when one of the fidelity and intelligibility is lower than 90%, it is considered that the quality of the face sample picture is lower than the preset picture quality .

图3为本申请人脸图片采集装置一个实施例的连接结构示意图,如图3所示,上述装置可以包括:Fig. 3 is a schematic diagram of the connection structure of an embodiment of the applicant's face picture collection device. As shown in Fig. 3, the above-mentioned device may include:

采集模块31,用于通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集。The collection module 31 is configured to collect a plurality of face sample pictures of multiple users through a plurality of image collection devices with different collection parameters, and obtain a set of face sample pictures corresponding to each image collection device.

具体来说,上述图像采集设备可以是任意一种利用电子传感器把光学影像转换成电子数据的照相机,包括但不限于单反相机、微单相机等,在实际应用中,往往通过抓拍获取每台图像采集设备对应的人脸样本图片集。其中,本实施例中的图像采集设备具有不同的采集参数,上述采集参数一般指图片的分辨率、像素以及格式等。优选地,本实施例的装置还包括配置模块30,上述配置模块30用于对上述图像采集设备的采集参数进行提前配置,其中分辨率一般配置成大于或等于72像素每英寸、像素一般大于或等于200万、格式一般有.jpg、.png、.bmp等。Specifically, the above-mentioned image acquisition device can be any camera that uses electronic sensors to convert optical images into electronic data, including but not limited to SLR cameras, mirrorless cameras, etc. In practical applications, each image is often captured by snapping A set of face sample pictures corresponding to the acquisition device. Wherein, the image acquisition device in this embodiment has different acquisition parameters, and the above acquisition parameters generally refer to the resolution, pixels, and format of the picture. Preferably, the device in this embodiment further includes a configuration module 30, which is used to configure the acquisition parameters of the above-mentioned image acquisition device in advance, wherein the resolution is generally configured to be greater than or equal to 72 pixels per inch, and the pixel is generally greater than or It is equal to 2 million, and the formats generally include .jpg, .png, .bmp, etc.

抽取模块32,用于按照预设比例从上述采集模块采集的每台图像采集设备对应的人脸样本图片集当中进行人脸样本图片的抽取,并基于抽取到的人脸样本图片构成人脸样本图片合集。The extraction module 32 is used to extract the face sample pictures from the face sample picture collection corresponding to each image acquisition device collected by the above-mentioned acquisition module according to a preset ratio, and form a face sample based on the extracted face sample pictures Picture collection.

具体而言,上述预设比例可以在具体实现时,根据系统性能和/或实现需求等自行设定,本实施例对上述预设比例的大小不作限定,举例来说,上述预设比例可以为10%。Specifically, the above-mentioned preset ratio can be set according to system performance and/or implementation requirements during actual implementation. This embodiment does not limit the size of the above-mentioned preset ratio. For example, the above-mentioned preset ratio can be 10%.

比对模块33,用于将获取到的待识别图片与通过上述抽取模块抽取的上述人脸图片合集中的人脸样本图片进行比对,获得与上述待识别图片匹配的人脸样本图片。The comparison module 33 is used to compare the obtained picture to be recognized with the face sample picture in the above-mentioned face picture collection extracted by the above-mentioned extraction module, and obtain a face sample picture matching the above-mentioned picture to be recognized.

具体地,本申请将待识别图片的分辨率、像素以及格式与具有不同采集参数的人脸样本图片进行比对,以获取对应的人脸样本图片。下面以分辨率为例对上述比对过程进行描述:Specifically, the application compares the resolution, pixels, and format of the picture to be recognized with the face sample pictures with different collection parameters to obtain the corresponding face sample pictures. The above comparison process is described below by taking the resolution as an example:

首先,本实施例需要先获取待识别图片的分辨率,这个一般可以通过计算机应用程序进行右键点击选择属性查看到;其次,本实施例需要在人脸图片合集当中查找到与待识别图片的分辨率最接近甚至是相一致的人脸样本图片;最后,通过查找到的人脸样本图片,便可根据实际测试需求供测试人员进行进一步操作。First of all, this embodiment needs to first obtain the resolution of the picture to be recognized, which can generally be checked by right-clicking on a computer application program to select properties; secondly, this embodiment needs to find the resolution of the picture to be recognized in the face picture collection. The face sample pictures with the closest or even the same rate; finally, the found face sample pictures can be used by testers for further operations according to actual test requirements.

在实际应用中,由于上述查找到的人脸样本图片往往是多个,故可通过比较上述待识别图片与人脸样本图片之间的相似度,来确定人物身份信息,具体而言,上述相似度的比较往往可以采取一些相似度算法来完成,包括但不限于尺度不变特征转换(Scale-invariant feature transform;以下简称SIFT)算法或哈希算法等。在本实施例中,采用余弦相似度算法来计算待识别图片与人脸样本图片之间的相似度,具体来说,本实施例通过测量待识别图片与多个人脸样本图片之间向量内积空间的余弦值来度量它们之间的相似度。示例:In practical applications, since there are often multiple face sample pictures found above, the identity information of the person can be determined by comparing the similarity between the above-mentioned picture to be recognized and the face sample picture. Specifically, the above similarity The degree comparison can often be done by using some similarity algorithms, including but not limited to scale-invariant feature transform (Scale-invariant feature transform; SIFT for short) algorithm or hash algorithm. In this embodiment, the cosine similarity algorithm is used to calculate the similarity between the picture to be recognized and the face sample picture. Specifically, this embodiment measures the vector inner product between the picture to be recognized and a plurality of face sample pictures space to measure the similarity between them. Example:

一般通过公式(1)计算待识别图片与人脸样本图片之间的特征向量的余弦相似度:Generally, the cosine similarity of the feature vector between the picture to be recognized and the face sample picture is calculated by formula (1):

其中,公式(1)中的表示待识别图片对应的特征向量,表示人脸样本图片所对应的特征向量。Among them, the formula (1) in Indicates the feature vector corresponding to the picture to be recognized, Indicates the feature vector corresponding to the face sample picture.

其中,cosθ的值越接近1,表示待识别图片和人脸样本图片的相近程度越高。这样,就可以根据人脸样本图片中所记录的身份信息确定待识别图片的人物身份。Among them, the closer the value of cosθ is to 1, the higher the similarity between the picture to be recognized and the face sample picture is. In this way, the identity of the person in the picture to be recognized can be determined according to the identity information recorded in the face sample picture.

上述人脸图片采集方法中,采集模块31通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集之后,再通过抽取模块32按照预设比例从上述采集模块采集的每台图像采集设备对应的人脸样本图片集当中进行人脸样本图片的抽取,并基于抽取到的人脸样本图片构成人脸图片合集;最后再通过比对模块33将获取到的待识别图片与通过上述抽取模块32抽取的上述人脸图片合集中的人脸样本图片进行比对,获得与上述待识别图片匹配的人脸样本图片,更加符合实际场景的变化,具有更广泛的应用范围。In the above-mentioned face picture collection method, the collection module 31 respectively collects a plurality of face sample pictures of multiple users through a plurality of image collection devices with different collection parameters, and obtains the face sample picture set corresponding to each image collection device , and then extract the face sample pictures from the face sample picture collection corresponding to each image acquisition device collected by the above-mentioned acquisition module according to the preset ratio by the extraction module 32, and form a face picture based on the extracted human face sample pictures Collection; Finally, the picture to be identified is obtained by the comparison module 33 and the face sample picture in the above-mentioned face picture collection extracted by the above-mentioned extraction module 32 is compared to obtain a face sample matched with the above-mentioned picture to be identified The picture is more in line with the changes of the actual scene and has a wider range of applications.

图4为本申请人脸图片采集装置另一个实施例的连接结构示意图,如图4所示,上述装置还可以包括:Fig. 4 is a schematic diagram of the connection structure of another embodiment of the applicant's face picture collection device. As shown in Fig. 4, the above-mentioned device may also include:

检测模块41,用于对上述采集模块采集到的每张人脸样本图片进行检测,并将每张人脸样本图片的质量与预设的图片质量进行比较,以及,The detection module 41 is used to detect each face sample picture collected by the acquisition module, and compare the quality of each face sample picture with the preset picture quality, and,

在上述人脸样本图片的质量不低于上述预设的图片质量时,输出上述人脸样本图片至对应的人脸样本图片集中。When the quality of the human face sample picture is not lower than the preset picture quality, output the human face sample picture to the corresponding human face sample picture set.

进一步来说,图片质量的含义主要包括两个方面,即图像的逼真程度和图像的可懂度。图像质量直接取决于成像装备的光学性能、图像对比度、仪器噪声等多种因素的影响,通过质量评价可以对影像的获取、处理等各环节提供监控手段。Furthermore, the meaning of picture quality mainly includes two aspects, that is, the fidelity of the image and the intelligibility of the image. Image quality directly depends on the optical performance of imaging equipment, image contrast, instrument noise and other factors. Through quality evaluation, monitoring methods can be provided for image acquisition and processing.

同样,上述预设的图片质量可以在具体实现时,根据系统性能和/或实现需求等自行设定,本实施例对上述预设的图片质量(逼真程度和可懂度)大小不作限定,举例来说,上述逼真程度和可懂度可以为90%,并在逼真程度和可懂度中有一个低于90%时,视为该人脸样本图片的质量低于上述预设的图片质量。Similarly, the above-mentioned preset picture quality can be set according to system performance and/or implementation requirements during specific implementation. This embodiment does not limit the above-mentioned preset picture quality (fidelity and intelligibility), for example For example, the above-mentioned degree of fidelity and intelligibility may be 90%, and when one of the degree of fidelity and intelligibility is lower than 90%, it is considered that the quality of the face sample picture is lower than the above-mentioned preset picture quality.

图5为本申请计算机设备一个实施例的结构示意图,上述计算机设备可以包括存储器、处理器及存储在上述存储器上并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时,可以实现本申请实施例提供的人脸图片采集方法。Fig. 5 is a schematic structural diagram of an embodiment of the computer device of the present application. The computer device may include a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, The face picture collection method provided in the embodiment of the present application can be implemented.

其中,上述计算机设备可以为服务器,例如:云服务器,或者上述计算机设备也可以为电子设备,例如:智能手机、智能手表、个人计算机(Personal Computer;以下简称:PC)、笔记本电脑或平板电脑等智能设备,本实施例对上述计算机设备的具体形态不作限定。Wherein, the above-mentioned computer equipment may be a server, such as: a cloud server, or the above-mentioned computer equipment may also be an electronic equipment, such as: a smart phone, a smart watch, a personal computer (Personal Computer; hereinafter referred to as: PC), a notebook computer or a tablet computer, etc. As for the smart device, this embodiment does not limit the specific form of the above computer device.

图5示出了适于用来实现本申请实施方式的示例性计算机设备52的框图。图5显示的计算机设备52仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。FIG. 5 shows a block diagram of an exemplary computer device 52 suitable for use in implementing embodiments of the present application. The computer device 52 shown in FIG. 5 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.

如图5所示,计算机设备52以通用计算设备的形式表现。计算机设备52的组件可以包括但不限于:一个或者多个处理器或者处理单元56,系统存储器78,连接不同系统组件(包括系统存储器78和处理单元56)的总线58。As shown in FIG. 5, computer device 52 takes the form of a general-purpose computing device. Components of computer device 52 may include, but are not limited to, one or more processors or processing units 56 , system memory 78 , bus 58 connecting various system components including system memory 78 and processing unit 56 .

总线58表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry StandardArchitecture;以下简称:ISA)总线,微通道体系结构(Micro Channel Architecture;以下简称:MAC)总线,增强型ISA总线、视频电子标准协会(Video Electronics StandardsAssociation;以下简称:VESA)局域总线以及外围组件互连(Peripheral ComponentInterconnection;以下简称:PCI)总线。Bus 58 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (Industry Standard Architecture; hereinafter referred to as: ISA) bus, Micro Channel Architecture (Micro Channel Architecture; hereinafter referred to as: MAC) bus, enhanced ISA bus, video electronics standard Association (Video Electronics Standards Association; hereinafter referred to as: VESA) local bus and peripheral component interconnection (Peripheral Component Interconnection; hereinafter referred to as: PCI) bus.

计算机设备52典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机设备52访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Computer device 52 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computing device 52 and include both volatile and nonvolatile media, removable and non-removable media.

系统存储器78可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory;以下简称:RAM)70和/或高速缓存存储器72。计算机设备52可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统74可以用于读写不可移动的、非易失性磁介质(图5未显示,通常称为“硬盘驱动器”)。尽管图5中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如:光盘只读存储器(Compact Disc Read OnlyMemory;以下简称:CD-ROM)、数字多功能只读光盘(Digital Video Disc Read OnlyMemory;以下简称:DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线58相连。存储器78可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请各实施例的功能。The system memory 78 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (Random Access Memory; RAM for short) 70 and/or a cache memory 72 . Computer device 52 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 74 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a disk drive for reading and writing to a removable nonvolatile disk (such as a "floppy disk") may be provided, as well as a removable nonvolatile disk (such as a Compact Disk ROM (Compact Disk)). Disc Read Only Memory (hereinafter referred to as: CD-ROM), Digital Video Disc Read Only Memory (hereinafter referred to as: DVD-ROM) or other optical media) read and write optical disc drives. In these cases, each drive may be connected to bus 58 through one or more data media interfaces. The memory 78 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of the various embodiments of the present application.

具有一组(至少一个)程序模块82的程序/实用工具80,可以存储在例如存储器78中,这样的程序模块82包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块82通常执行本申请所描述的实施例中的功能和/或方法。A program/utility 80 having a set (at least one) of program modules 82, such as may be stored in memory 78, such as, but not limited to, an operating system, one or more application programs, other program Modules and program data, each or some combination of these examples may include the implementation of the network environment. The program modules 82 generally perform the functions and/or methods of the embodiments described herein.

计算机设备52也可以与一个或多个外部设备54(例如键盘、指向设备、显示器64等)通信,还可与一个或者多个使得用户能与该计算机设备52交互的设备通信,和/或与使得该计算机设备52能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口62进行。并且,计算机设备52还可以通过网络适配器60与一个或者多个网络(例如局域网(Local Area Network;以下简称:LAN),广域网(Wide Area Network;以下简称:WAN)和/或公共网络,例如因特网)通信。如图5所示,网络适配器60通过总线58与计算机设备52的其它模块通信。应当明白,尽管图5中未示出,可以结合计算机设备52使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The computer device 52 may also communicate with one or more external devices 54 (e.g., a keyboard, pointing device, display 64, etc.), and with one or more devices that enable a user to interact with the computer device 52, and/or with Any device (eg, network card, modem, etc.) that enables the computing device 52 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 62 . Moreover, the computer device 52 can also be connected with one or more networks (such as a local area network (Local Area Network; hereinafter referred to as: LAN), a wide area network (Wide Area Network; hereinafter referred to as: WAN) and/or public networks, such as the Internet, through the network adapter 60. ) communication. As shown in FIG. 5 , network adapter 60 communicates with other modules of computer device 52 via bus 58 . It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with computer device 52, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape Drives and data backup storage systems, etc.

处理单元56通过运行存储在系统存储器78中的程序,从而执行各种功能应用以及数据处理,例如实现本申请实施例提供的人脸图片采集方法。The processing unit 56 executes various functional applications and data processing by running the programs stored in the system memory 78 , for example, implementing the face picture collection method provided by the embodiment of the present application.

本申请实施例还提供一种非临时性计算机可读存储介质,其上存储有计算机程序,上述计算机程序被处理器执行时可以实现本申请实施例提供的人脸图片采集方法。The embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the above computer program is executed by a processor, the face image collection method provided in the embodiment of the present application can be realized.

上述非临时性计算机可读存储介质可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(Read Only Memory;以下简称:ROM)、可擦式可编程只读存储器(ErasableProgrammable Read Only Memory;以下简称:EPROM)或闪存、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Any combination of one or more computer-readable media may be used for the above-mentioned non-transitory computer-readable storage medium. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more conductors, portable computer disks, hard disks, Random Access Memory (RAM), Read Only Memory (Read Only Memory) ; Hereinafter referred to as: ROM), Erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device , or any suitable combination of the above. As used herein, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including - but not limited to - electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .

计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to - wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LocalArea Network;以下简称:LAN)或广域网(Wide Area Network;以下简称:WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user computer through any kind of network, including a Local Area Network (hereinafter referred to as LAN) or a Wide Area Network (hereinafter referred to as WAN), or may be connected to to an external computer (eg via an Internet connection using an Internet Service Provider).

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing custom logical functions or steps of a process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.

取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrases "if determined" or "if detected (the stated condition or event)" could be interpreted as "when determined" or "in response to the determination" or "when detected (the stated condition or event) )" or "in response to detection of (a stated condition or event)".

需要说明的是,本申请实施例中所涉及的终端可以包括但不限于个人计算机(PersonalComputer;以下简称:PC)、个人数字助理(PersonalDigital Assistant;以下简称:PDA)、无线手持设备、平板电脑(Tablet Computer)、手机、MP3播放器、MP4播放器等。It should be noted that the terminals involved in the embodiments of the present application may include, but are not limited to, personal computers (PersonalComputer; hereinafter referred to as: PC), personal digital assistants (PersonalDigital Assistant; hereinafter referred to as: PDA), wireless handheld devices, tablet computers ( Tablet Computer), mobile phone, MP3 player, MP4 player, etc.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined Or it can be integrated into another system, or some features can be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)或处理器(Processor)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor (Processor) to execute the methods described in various embodiments of the present application. partial steps. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as ROM), random access memory (Random Access Memory; hereinafter referred to as RAM), magnetic disk or optical disc, etc. A medium on which program code can be stored.

以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above is only a preferred embodiment of the application, and is not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application should be included in the application. within the scope of protection.

Claims (10)

1.一种人脸图片采集方法,其特征在于,所述的方法包括:1. a face picture collection method, is characterized in that, described method comprises: 通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集;Collect multiple face sample pictures of multiple users through multiple image acquisition devices with different acquisition parameters, and obtain a face sample picture set corresponding to each image acquisition device; 按照预设比例分别从每台图像采集设备对应的人脸样本图片集当中进行人脸样本图片的抽取,并基于抽取到的人脸样本图片构成人脸图片合集;Extract the face sample pictures from the face sample picture sets corresponding to each image acquisition device according to the preset ratio, and form a face picture collection based on the extracted face sample pictures; 将获取到的待识别图片与所述人脸图片合集中的人脸样本图片进行比对,获得与所述待识别图片匹配的人脸样本图片。Comparing the obtained picture to be recognized with the face sample picture in the collection of face pictures to obtain a face sample picture matching the picture to be recognized. 2.根据权利要求1所述的方法,其特征在于,所述通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片之前,还包括:2. method according to claim 1, is characterized in that, before described by a plurality of image acquisition devices with different acquisition parameters respectively collecting a plurality of face sample pictures of a plurality of users, also comprising: 配置每个图像采集设备的采集参数。Configure the acquisition parameters for each image acquisition device. 3.根据权利要求1所述的方法,其特征在于,所述通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片包括:3. method according to claim 1, is characterized in that, described by a plurality of image acquisition devices with different acquisition parameters respectively collects a plurality of face sample pictures of a plurality of users comprising: 通过每个图像采集设备对多个用户的人脸进行多次抓拍,以得到每台图像采集设备对应的人脸样本图片集。Each image acquisition device captures the faces of multiple users multiple times to obtain a face sample picture set corresponding to each image acquisition device. 4.根据权利要求1所述的方法,其特征在于,所述通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集,还包括:4. method according to claim 1, is characterized in that, described by a plurality of image acquisition devices with different acquisition parameters collects respectively a plurality of face sample pictures of a plurality of users, and obtains each image acquisition device corresponding The face sample image collection also includes: 对每张人脸样本图片进行检测,并将每张人脸样本图片的质量与预设的图片质量进行比较,以及,Detecting each face sample picture, and comparing the quality of each face sample picture with a preset picture quality, and, 在所述人脸样本图片的质量不低于所述预设的图片质量时,输出所述人脸样本图片至对应的人脸样本图片集中。When the quality of the human face sample picture is not lower than the preset picture quality, output the human face sample picture to a corresponding human face sample picture set. 5.一种人脸图片采集装置,其特征在于,所述的装置包括:5. A kind of face picture collection device, is characterized in that, described device comprises: 采集模块,用于通过多个具有不同采集参数的图像采集设备分别采集多个用户的多张人脸样本图片,并得到每台图像采集设备对应的人脸样本图片集;The collection module is used to collect a plurality of face sample pictures of multiple users through a plurality of image collection devices with different collection parameters, and obtain a set of face sample pictures corresponding to each image collection device; 抽取模块,用于按照预设比例从所述采集模块采集的每台图像采集设备对应的人脸样本图片集当中进行人脸样本图片的抽取,并基于抽取到的人脸样本图片构成人脸图片合集;The extraction module is used to extract face sample pictures from the set of face sample pictures corresponding to each image acquisition device collected by the acquisition module according to a preset ratio, and form a face picture based on the extracted face sample pictures Collection; 比对模块,用于将获取到的待识别图片与通过所述抽取模块抽取的所述人脸图片合集中的人脸样本图片进行比对,获得与所述待识别图片匹配的人脸样本图片。A comparison module, configured to compare the obtained picture to be identified with the face sample picture in the collection of human face pictures extracted by the extraction module, to obtain a face sample picture that matches the picture to be identified . 6.根据权利要求5所述的装置,其特征在于,所述的装置还包括:6. The device according to claim 5, characterized in that, the device further comprises: 配置模块,用于配置每个图像采集设备的采集参数。The configuration module is used to configure the acquisition parameters of each image acquisition device. 7.根据权利要求5所述的装置,其特征在于,7. The device of claim 5, wherein: 所述采集模块具体用于通过每个图像采集设备对多个用户的人脸进行多次抓拍,以得到每台图像采集设备对应的人脸样本图片集。The acquisition module is specifically used to capture multiple times of faces of multiple users through each image acquisition device, so as to obtain a face sample picture set corresponding to each image acquisition device. 8.根据权利要求5所述的装置,其特征在于,所述的装置还包括:8. The device according to claim 5, characterized in that, the device further comprises: 检测模块,用于对所述采集模块采集到的每张人脸样本图片进行检测,并将每张人脸样本图片的质量与预设的图片质量进行比较,以及,A detection module, configured to detect each face sample picture collected by the acquisition module, and compare the quality of each face sample picture with a preset picture quality, and, 在所述人脸样本图片的质量不低于所述预设的图片质量时,输出所述人脸样本图片至对应的人脸样本图片集中。When the quality of the human face sample picture is not lower than the preset picture quality, output the human face sample picture to a corresponding human face sample picture set. 9.一种计算机设备,其特征在于,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1~4中任一项所述的方法。9. A computer device, characterized by comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program, the The method described in any one of 1 to 4 is required. 10.一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1~4中任一项所述的方法。10. A non-transitory computer-readable storage medium on which a computer program is stored, wherein the computer program implements the method according to any one of claims 1-4 when executed by a processor.
CN201910321477.2A 2019-04-22 2019-04-22 Face picture acquisition method, device and computer equipment Pending CN110210290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910321477.2A CN110210290A (en) 2019-04-22 2019-04-22 Face picture acquisition method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910321477.2A CN110210290A (en) 2019-04-22 2019-04-22 Face picture acquisition method, device and computer equipment

Publications (1)

Publication Number Publication Date
CN110210290A true CN110210290A (en) 2019-09-06

Family

ID=67786143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910321477.2A Pending CN110210290A (en) 2019-04-22 2019-04-22 Face picture acquisition method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN110210290A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110992360A (en) * 2019-12-24 2020-04-10 北京安兔兔科技有限公司 Equipment performance testing method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693417A (en) * 2012-05-16 2012-09-26 清华大学 Method for collecting and optimizing face image sample based on heterogeneous active visual network
CN104463117A (en) * 2014-12-02 2015-03-25 苏州科达科技股份有限公司 Sample collection method and system used for face recognition and based on video
CN104598876A (en) * 2014-12-30 2015-05-06 天津瑞为拓新科技发展有限公司 Embedded face recognition system
CN106599815A (en) * 2016-12-06 2017-04-26 东南大学 Mark distribution based head posture estimation method solving problem of class deletion
CN107545241A (en) * 2017-07-19 2018-01-05 百度在线网络技术(北京)有限公司 Neural network model is trained and biopsy method, device and storage medium
CN107909088A (en) * 2017-09-27 2018-04-13 百度在线网络技术(北京)有限公司 Obtain method, apparatus, equipment and the computer-readable storage medium of training sample
CN109308681A (en) * 2018-09-29 2019-02-05 北京字节跳动网络技术有限公司 Image processing method and device
CN109360183A (en) * 2018-08-20 2019-02-19 中国电子进出口有限公司 A kind of quality of human face image appraisal procedure and system based on convolutional neural networks

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693417A (en) * 2012-05-16 2012-09-26 清华大学 Method for collecting and optimizing face image sample based on heterogeneous active visual network
CN104463117A (en) * 2014-12-02 2015-03-25 苏州科达科技股份有限公司 Sample collection method and system used for face recognition and based on video
CN104598876A (en) * 2014-12-30 2015-05-06 天津瑞为拓新科技发展有限公司 Embedded face recognition system
CN106599815A (en) * 2016-12-06 2017-04-26 东南大学 Mark distribution based head posture estimation method solving problem of class deletion
CN107545241A (en) * 2017-07-19 2018-01-05 百度在线网络技术(北京)有限公司 Neural network model is trained and biopsy method, device and storage medium
CN107909088A (en) * 2017-09-27 2018-04-13 百度在线网络技术(北京)有限公司 Obtain method, apparatus, equipment and the computer-readable storage medium of training sample
CN109360183A (en) * 2018-08-20 2019-02-19 中国电子进出口有限公司 A kind of quality of human face image appraisal procedure and system based on convolutional neural networks
CN109308681A (en) * 2018-09-29 2019-02-05 北京字节跳动网络技术有限公司 Image processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110992360A (en) * 2019-12-24 2020-04-10 北京安兔兔科技有限公司 Equipment performance testing method and device and electronic equipment
CN110992360B (en) * 2019-12-24 2024-01-23 北京安兔兔科技有限公司 Equipment performance test method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN107545241B (en) Neural network model training and living body detection method, device and storage medium
CN107590430A (en) Biopsy method, device, equipment and storage medium
CN109670413B (en) Face living body verification method and device
CN110399847B (en) Key frame extraction method and device and electronic equipment
US20150296317A1 (en) Electronic device and recording method thereof
CN111694978A (en) Image similarity detection method and device, storage medium and electronic equipment
CN107302658A (en) Realize face clearly focusing method, device and computer equipment
US11348254B2 (en) Visual search method, computer device, and storage medium
CN112001886A (en) A temperature detection method, device, terminal and readable storage medium
CN110796108B (en) Method, device and equipment for detecting face quality and storage medium
CN111818385B (en) Video processing method, video processing device and terminal equipment
WO2019137259A1 (en) Image processing method and apparatus, storage medium, and electronic device
US11163822B2 (en) Emotional experience metadata on recorded images
CN110059542A (en) The method and relevant device of face In vivo detection based on improved Resnet
CN115115562A (en) Image fusion method and device
WO2020134674A1 (en) Palmprint identification method, apparatus, computer device, and storage medium
CN113255516A (en) Living body detection method and device and electronic equipment
CN113158773A (en) Training method and training device for living body detection model
CN116055607B (en) A zoom smoothness evaluation method, device and electronic equipment
CN114945072B (en) Dual-camera frame synchronization processing method, device, user terminal and storage medium
CN110210290A (en) Face picture acquisition method, device and computer equipment
CN109886089A (en) Palmprint recognition method, device and computer equipment
CN116758066B (en) A non-contact heart rate measurement method, equipment and medium
WO2021051573A1 (en) Method for lip reading living body detection by using divided channel data collection, system and computer device
CN111784607A (en) Image tone mapping method, device, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190906

RJ01 Rejection of invention patent application after publication