CN111177436B - Face feature retrieval method, device and equipment - Google Patents
Face feature retrieval method, device and equipment Download PDFInfo
- Publication number
- CN111177436B CN111177436B CN201811331149.2A CN201811331149A CN111177436B CN 111177436 B CN111177436 B CN 111177436B CN 201811331149 A CN201811331149 A CN 201811331149A CN 111177436 B CN111177436 B CN 111177436B
- Authority
- CN
- China
- Prior art keywords
- face
- model
- similarity
- regression
- feature data
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明提供一种人脸特征检索方法、装置及设备,其中方法包括:获取待检索人脸图像;获取待检索人脸图像的N组人脸特征数据,N组人脸特征数据为分别从N种人脸模型的待检索人脸图像中提取;将N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果;根据预先获取的相似度转换关系,将N-1种人脸模型的N-1组检索结果的相似度分别转换成与目标人脸模型对应的相似度;输出转换后的所述目标人脸模型对应的检索结果。本发明实施例可以提升人脸检索系统的性能,以及还可以提升其算法准确度和数据兼容性。
The present invention provides a face feature retrieval method, device and equipment, wherein the method includes: obtaining a face image to be retrieved; obtaining N groups of face feature data of the face image to be retrieved, and the N groups of face feature data are obtained from N Extract from the face images to be retrieved of different face models; search N groups of face feature data in the face feature database to obtain N groups of retrieval results; according to the pre-acquired similarity conversion relationship, N-1 The similarities of the N−1 groups of search results of the face models are respectively converted into similarities corresponding to the target face models; and the converted search results corresponding to the target face models are output. The embodiment of the present invention can improve the performance of the face retrieval system, and can also improve its algorithm accuracy and data compatibility.
Description
技术领域technical field
本发明涉及图像识别技术领域,尤其涉及一种人脸特征检索方法、装置及设备。The present invention relates to the technical field of image recognition, in particular to a face feature retrieval method, device and equipment.
背景技术Background technique
人脸识别,是基于人的脸部特征信息进行身份识别的一种生物识别技术。在安防、监控等领域具有效率高、可靠性强等优势,从而得到广泛的应用。Face recognition is a biometric technology for identification based on human facial feature information. It has the advantages of high efficiency and strong reliability in security, monitoring and other fields, so it has been widely used.
人脸检索通常包括人脸图像采集及检测、人脸图像预处理、人脸图像特征提取以及匹配与识别。其中,人脸图像匹配与识别的过程是将提取的人脸图像的特征信息与数据库中存储的人脸特征数据进行搜索匹配,以得出两者之间的相似度,并通过设定一个相似度阈值来判定是否为同一人脸。如:当相似度超过这一阈值时,则可以判定该提取的人脸图像与数据库中存储的人脸图像属于同一人脸。Face retrieval usually includes face image acquisition and detection, face image preprocessing, face image feature extraction, matching and recognition. Among them, the process of face image matching and recognition is to search and match the feature information of the extracted face image with the face feature data stored in the database to obtain the similarity between the two, and by setting a similarity Degree threshold to determine whether it is the same face. For example, when the similarity exceeds the threshold, it can be determined that the extracted face image and the face image stored in the database belong to the same face.
在相关技术中,人脸检索系统通常采用单模型的配置进行人脸识别,即仅配置一个人脸分析服务器,且该服务器中仅存储一种人脸模型,例如:一台NVR(Network VideoRecorder,网络硬盘录像机一体机)、一套智能分析系统。In related technologies, the face retrieval system usually adopts a single-model configuration for face recognition, that is, only one face analysis server is configured, and only one face model is stored in the server, for example: an NVR (Network Video Recorder, Network hard disk video recorder machine), a set of intelligent analysis system.
然而,单模型的配置不支持人脸模型的迭代升级,且不能够扩容,从而导致人脸检索系统的性能比较差。However, the configuration of a single model does not support the iterative upgrade of the face model, and cannot be expanded, resulting in poor performance of the face retrieval system.
发明内容Contents of the invention
本发明实施例提供一种人脸特征检索方法、装置及设备,以解决相关技术中的人脸检索系统存在的性能比较差的问题。Embodiments of the present invention provide a face feature retrieval method, device, and equipment to solve the problem of relatively poor performance in face retrieval systems in the related art.
为解决以上技术问题,本发明采用如下技术方案:In order to solve the above technical problems, the present invention adopts the following technical solutions:
第一方面,本发明实施例提供了一种人脸特征检索方法,包括:In a first aspect, an embodiment of the present invention provides a face feature retrieval method, including:
获取待检索人脸图像;Obtain the face image to be retrieved;
获取所述待检索人脸图像的N组人脸特征数据,其中,所述N组人脸特征数据为分别从N种人脸模型的所述待检索人脸图像中提取;Obtaining N groups of face feature data of the face images to be retrieved, wherein the N groups of face feature data are respectively extracted from the face images to be retrieved of N types of face models;
将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果;Retrieve the N groups of face feature data respectively in the face feature database to obtain N groups of retrieval results;
根据预先获取的相似度转换关系,将N-1种人脸模型的N-1组检索结果的相似度分别转换成与目标人脸模型对应的相似度;According to the pre-acquired similarity conversion relationship, the similarity of N-1 groups of retrieval results of N-1 face models are respectively converted into similarities corresponding to the target face model;
输出转换后的所述N目标人脸模型对应的检索结果。Outputting the retrieval results corresponding to the converted N target face models.
第二方面,本发明实施例提供了一种人脸特征检索装置,包括:In a second aspect, the embodiment of the present invention provides a human face feature retrieval device, including:
第一获取模块,用于获取待检索人脸图像;The first obtaining module is used to obtain the face image to be retrieved;
第二获取模块,用于获取所述待检索人脸图像的N组人脸特征数据,其中,所述N组人脸特征数据为分别从N种人脸模型的所述待检索人脸图像中提取;The second acquisition module is used to acquire N sets of face feature data of the face images to be retrieved, wherein the N sets of face feature data are respectively obtained from the face images to be retrieved of N types of face models extract;
检索模块,用于将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果;A retrieval module, configured to retrieve the N groups of face feature data in the face feature database respectively to obtain N groups of retrieval results;
转换模块,用于根据预先获取的相似度转换关系,将N-1种人脸模型的N-1组检索结果的相似度分别转换成与目标人脸模型对应的相似度;The conversion module is used to convert the similarity of N-1 groups of retrieval results of N-1 face models into similarities corresponding to the target face model according to the similarity conversion relationship obtained in advance;
输出模块,用于输出转换后的所述目标人脸模型对应的检索结果。The output module is used to output the retrieval result corresponding to the converted target face model.
第三方面,本发明实施例还提供一种人脸特征检索设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的人脸特征检索方法的步骤。In the third aspect, the embodiment of the present invention also provides a face feature retrieval device, including a processor, a memory, and a computer program stored on the memory and operable on the processor, the computer program being controlled by the When the processor executes, it realizes the steps of the human face feature retrieval method described above.
第四方面,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的人脸特征检索方法的步骤。In a fourth aspect, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the face feature retrieval method as described above is implemented A step of.
在本发明实施例中,获取待检索人脸图像;获取所述待检索人脸图像的N组人脸特征数据,其中,所述N组人脸特征数据为分别从N种人脸模型的所述待检索人脸图像中提取;将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果;根据预先获取的相似度转换关系,将N-1种人脸模型的N-1组检索结果的相似度分别转换成与目标人脸模型对应的相似度;输出转换后的所述目标人脸模型对应的检索结果。这样,可以获取多种人脸模型对应的多组检索结果,且将多组检索结果中的相似度转换为同一人脸模型对应的相似度,并输出转换后的相似度的检索结果,以使得这些检索结果具备可比性,进而提升人脸检索系统的性能;另外,N种人脸模型分别兼容不同的人脸模型,从而提升人脸检索系统的数据兼容性,采用多种人脸模型还可以提升算法的准确度。In the embodiment of the present invention, the face image to be retrieved is obtained; N groups of face feature data of the face image to be retrieved are obtained, wherein the N groups of face feature data are obtained from N types of face models respectively. Extract from the face images to be retrieved; search the N groups of face feature data in the face feature database to obtain N groups of retrieval results; The similarities of the retrieval results of the N−1 groups of models are respectively converted into similarities corresponding to the target face model; and the converted retrieval results corresponding to the target face model are output. In this way, multiple sets of retrieval results corresponding to various face models can be obtained, and the similarity in multiple sets of retrieval results can be converted into similarity corresponding to the same human face model, and the converted similarity retrieval results can be output, so that These retrieval results are comparable, thereby improving the performance of the face retrieval system; in addition, N types of face models are compatible with different face models, thereby improving the data compatibility of the face retrieval system, and using multiple face models can also Improve the accuracy of the algorithm.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是一种异构集群系统的结构图;Fig. 1 is a structural diagram of a heterogeneous cluster system;
图2是本发明实施例提供的一种人脸特征检索方法的流程图;Fig. 2 is the flow chart of a kind of face feature retrieval method that the embodiment of the present invention provides;
图3是本发明实施例提供的一种人脸特征检索装置的结构图;Fig. 3 is a structural diagram of a human face feature retrieval device provided by an embodiment of the present invention;
图4是本发明实施例提供的另一种人脸特征检索装置的结构图;4 is a structural diagram of another face feature retrieval device provided by an embodiment of the present invention;
图5是本发明实施例提供的一种人脸特征检索设备的结构图。Fig. 5 is a structural diagram of a face feature retrieval device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
需要说明的是,本发明实施例提供的人脸特征检索方法可以应用于如图1所示的异构监控系统。该系统中包括N个智能终端,其中,智能终端也可以称作后端智能,每一个智能终端中分别可以配置一种人脸模型。It should be noted that the face feature retrieval method provided by the embodiment of the present invention can be applied to the heterogeneous monitoring system shown in FIG. 1 . The system includes N smart terminals, wherein the smart terminals may also be called back-end intelligence, and each smart terminal may be configured with a face model.
具体的,如图1所示,该系统包括:异构智能集群101、与异构智能集群101分别连接的人脸卡口102、监控相机103、业务调度104、图片存储库105、大数据库106。Specifically, as shown in FIG. 1 , the system includes: a heterogeneous intelligent cluster 101, a face checkpoint 102 respectively connected to the heterogeneous intelligent cluster 101, a monitoring camera 103, a business scheduling 104, a picture storage library 105, and a large database 106 .
本实施方式中,异构智能集群101中包括4个智能终端1011,人脸卡口102和监控相机103分别用于向4个智能终端1011提供人脸图片、监控图片、监控视频等图像信息,智能终端1011能够根据图像信息自动获取人脸大图并从人脸大图中截取人脸小图,将截取的人脸小图和人脸大图存储于图片存储库105中。并采用智能终端1011中配置的人脸模型分别提取人脸小图的人脸特征数据,并将其以半结构化数据的形式存储于大数据库105中。In this embodiment, the heterogeneous intelligent cluster 101 includes four intelligent terminals 1011, and the face mount 102 and the surveillance camera 103 are respectively used to provide image information such as face pictures, surveillance pictures, and surveillance videos to the four intelligent terminals 1011, The smart terminal 1011 can automatically obtain a large face image according to the image information and intercept a small face image from the large face image, and store the intercepted small face image and large face image in the image storage library 105 . And use the face model configured in the smart terminal 1011 to extract the face feature data of the small face image respectively, and store it in the large database 105 in the form of semi-structured data.
在监控人员通过业务调度104输入待检索人脸图像后,通过4个智能终端1011分别提取该待检索人脸图像的人脸特征数据,并将待检索人脸图像的人脸特征数据与存储于数据库105中且标识信息相同的人脸特征数据进行相似度计算,以得出检索结果。After the monitoring personnel input the face image to be retrieved through the business scheduling 104, the face feature data of the face image to be retrieved are respectively extracted through the four intelligent terminals 1011, and the face feature data of the face image to be retrieved are stored in the The facial feature data in the database 105 with the same identification information are subjected to similarity calculation to obtain retrieval results.
其中,该检索结果可以包括待检索人脸图像与人脸卡口102和监控相机103提供的图像信息中各个人脸小图之间的相似度。Wherein, the retrieval result may include the similarity between the face image to be retrieved and each small face image in the image information provided by the face checkpoint 102 and the monitoring camera 103 .
另外,还可以通过业务调度104或者其他接口将检索结果输出,并显示于显示设备上。In addition, the search results can also be output through the service dispatcher 104 or other interfaces, and displayed on a display device.
需要说明的是,由于监控人脸图像的人脸特征数据可以采用不同的人脸模型进行提取,且不同的人脸模型之间,其精确度、维度、采用的算法等都可能不相同。若直接将不同人脸模型获取的人脸特征数据进行检索,将得出错误的相似度。It should be noted that since the face feature data of the monitored face image can be extracted using different face models, and the accuracy, dimensions, and algorithms used may be different between different face models. If the face feature data obtained by different face models are directly retrieved, the wrong similarity will be obtained.
例如:一种人脸模型的维度为128,另一种人脸模型的维度为256,在计算相似度的过程中,128维度的人脸模型将根据一张人脸图像提取出128维向量的特征值,256维度的人脸模型将根据另一张人脸图像提取出256维向量的特征值,很明显不能将128维的人脸特征数据与256维的人脸特征数据直接进行比较而得出相似度。本发明将不同的人脸模型得出的人脸特征数据进行区分,并仅对采用同一种人脸模型得出的人脸特征数据进行相似度计算,以得出检索结果。For example, the dimension of one face model is 128, and the dimension of another face model is 256. In the process of calculating the similarity, the 128-dimensional face model will extract the 128-dimensional vector from a face image. Eigenvalue, the 256-dimensional face model will extract the eigenvalue of the 256-dimensional vector based on another face image. Obviously, the 128-dimensional face feature data cannot be directly compared with the 256-dimensional face feature data. out the similarity. The present invention distinguishes the face feature data obtained by different face models, and only calculates the similarity of the face feature data obtained by using the same face model to obtain the retrieval result.
当然,图1所示的异构监控系统仅用于说明本发明实施例提供的人脸特征检索方法的一个应用场景,对人脸特征检索方法的其他应用场景和具体步骤并不产生限定。Of course, the heterogeneous monitoring system shown in FIG. 1 is only used to illustrate an application scenario of the facial feature retrieval method provided by the embodiment of the present invention, and does not limit other application scenarios and specific steps of the facial feature retrieval method.
请参阅图2,是本发明实施例提供的一种人脸特征检索方法的流程图。如图2所示,该方法包括以下步骤:Please refer to FIG. 2 , which is a flow chart of a face feature retrieval method provided by an embodiment of the present invention. As shown in Figure 2, the method includes the following steps:
步骤201、获取待检索人脸图像。Step 201. Obtain a face image to be retrieved.
其中,获取的待检索人脸图像可以是用户输入的人脸图像,或者接收其他设备发送的人脸图像,例如:用户或者外接设备通过如图1所示业务调度104输入的人脸图像。Wherein, the face image to be retrieved may be the face image input by the user, or the face image received from other devices, for example: the face image input by the user or an external device through the service scheduling 104 shown in FIG. 1 .
当然,所述获取的待检索人脸图像并不限定为用户输入的人脸图像,其还可以是检索系统通过拍摄、分析等方式得出的人脸图像,例如:人脸检索系统通过拍摄、分析等方式确定某人的行为具有危险性,需要对其进行监控,则自动获取危险人物的人脸图像。Of course, the acquired face image to be retrieved is not limited to the face image input by the user, it can also be a face image obtained by the retrieval system through shooting, analysis, etc. If it is determined that a person's behavior is dangerous by means of analysis and needs to be monitored, the face image of the dangerous person will be automatically obtained.
另外,上述待检索人脸图像可以包括人脸部分的图像,还可以包括除人脸部分以外的其他内容,例如:背景或者身体等。In addition, the above-mentioned face image to be retrieved may include an image of a face part, and may also include other content other than the face part, such as a background or a body.
作为一种可选的实施方式,在步骤201之前,所述方法还包括以下步骤:As an optional implementation manner, before step 201, the method further includes the following steps:
通过图像采集单元获取监控人脸图像;Obtaining a monitoring face image through an image acquisition unit;
获取所述监控人脸图像的N组人脸特征数据,其中,所述监控人脸图像的N组人脸特征数据为分别从N种人脸模型的所述监控人脸图像中提取;Obtaining N groups of face feature data of the monitoring face image, wherein the N groups of face feature data of the monitoring face image are respectively extracted from the monitoring face images of N kinds of face models;
将所述监控人脸图像的N组人脸特征数据存储于所述人脸特征库中。The N sets of face feature data of the monitored face images are stored in the face feature database.
在具体应用场景中,可以通过网络摄像头、小区内安装的监控摄像头等图像采集单元,采集监控场景中的人脸图像,并将采集到的人脸图像与待检索人脸图像进行匹配,以得到两者之间的相似度,在相似度大于一定阈值的情况下,将两者判断为同一人,从而达到对待检索人员的监控或者跟踪等安防措施。In specific application scenarios, image acquisition units such as network cameras and monitoring cameras installed in the community can be used to collect face images in the monitoring scene, and match the collected face images with the face images to be retrieved to obtain The similarity between the two, when the similarity is greater than a certain threshold, the two are judged to be the same person, so as to achieve security measures such as monitoring or tracking of the search personnel.
当然,通过图像采集单元直接获取的图像可以是人脸大图,通过在人脸大图中截取人脸部分作为人脸小图以得到所述监控人脸图像。Of course, the image directly acquired by the image acquisition unit may be a large face image, and the monitored face image is obtained by intercepting a part of the face in the large face image as a small face image.
其中,人脸小图可以是从人脸大图中截取的仅有人脸部分的图片,而人脸大图还可以包括除了人脸部分以外的其他内容。Wherein, the small face image may be a picture of only the face part intercepted from the large face image, and the large face image may also include other content besides the face part.
另外,还可以将获取的人脸大图和人脸小图存储于图片库中。In addition, the obtained large face image and small face image can also be stored in the image library.
在应用过程中,所述监控人脸图像往往数量众多。可以使N种人脸模型分别提取一张监控人脸图像的人脸特征数据,并依次重复,直至提取完全部监控人脸图像的人脸特征数据。可以提升监控人脸图像的人脸特征数据的提取速度,达到提升所述人脸特征检索方法的整体效率。During the application process, the monitored face images are often numerous. The N types of face models can be used to extract the face feature data of one monitoring face image respectively, and repeat in sequence until the face feature data of all the monitoring face images are extracted. The extraction speed of the face feature data of the monitored face image can be improved, so as to improve the overall efficiency of the face feature retrieval method.
本实施方式中,采用N种人脸模型分别提取多张监控人脸图像的人脸特征数据,避免采用一种人脸模型依次提取多张监控人脸图像的人脸特征数据而消耗大量的时间,从而提升了人脸特征检索方法的效率。In this embodiment, N kinds of face models are used to extract the face feature data of multiple monitoring face images respectively, avoiding the consumption of a large amount of time by using one face model to sequentially extract the face feature data of multiple monitoring face images , thus improving the efficiency of the face feature retrieval method.
作为一种可选的实施方式,所述人脸特征检索方法还包括:As an optional implementation, the face feature retrieval method also includes:
优选地,采用所述N种人脸模型中精确度最高的一种人脸模型,去提取最重要的监控的场景中监控人脸图像的人脸特征数据。Preferably, the face model with the highest accuracy among the N types of face models is used to extract the face feature data of the monitoring face images in the most important monitoring scene.
其中,最重要的监控场景可以是小区入口、学校周边、政府部门周边等重要场所或者人流较大的场所,可依据具体地实际情况来进行设定。Among them, the most important monitoring scene can be the entrance of the community, around the school, around the government department and other important places or places with a large flow of people, which can be set according to the specific actual situation.
另外,精确度最高的人脸模型,一般为版本最新的人脸模型。In addition, the face model with the highest accuracy is generally the face model with the latest version.
本实施方式中,可以为监控精确度需求较高的图像采集单元配置精确度高的人脸模型,从而提升人脸特征数据的提取过程中的针对性。In this implementation manner, a highly accurate face model can be configured for an image acquisition unit that requires high monitoring accuracy, thereby improving the pertinence in the process of extracting face feature data.
作为一种可选的实施方式,所述人脸模型的标识信息可以包括版本号。As an optional implementation manner, the identification information of the face model may include a version number.
例如,如下表1所示,该版本号包括11位数字,其中前4位用于区分人脸模型,中间4为用于表示人脸模型的维度,后3未用于表示人脸模型的版本等级:For example, as shown in Table 1 below, the version number includes 11 digits, the first 4 digits are used to distinguish the face model, the middle 4 digits are used to represent the dimension of the face model, and the last 3 digits are not used to represent the face model version grade:
表1Table 1
在检索的过程中,可以先获取各组人脸特征数据的版本号,将版本号一致的两组或者多组人脸特征数据进行比对分析,且根据该版本号能够简便的分析出提取具有该版本号的人脸特征数据的人脸模型的版本信息、维度信息。In the retrieval process, the version number of each group of face feature data can be obtained first, and two or more sets of face feature data with the same version number can be compared and analyzed, and according to the version number, it can be easily analyzed and extracted. Version information and dimension information of the face model of the face feature data of the version number.
本实施方式中,以版本号作为标识信息,从而可以简便地读取人脸模型、人脸模型的维度以及人脸模型的版本等级等信息。In this embodiment, the version number is used as the identification information, so that information such as the face model, the dimensions of the face model, and the version level of the face model can be easily read.
步骤202、获取所述待检索人脸图像的N组人脸特征数据,其中,所述N组人脸特征数据为分别从N种人脸模型的所述待检索人脸图像中提取。Step 202. Obtain N sets of face feature data of the face image to be retrieved, wherein the N sets of face feature data are respectively extracted from the face images of the face image to be searched in N types of face models.
其中,N可以是大于1的整数。Wherein, N may be an integer greater than 1.
需要说明的是,为便于将待检索人脸图像在图像库中的人脸图像中进行检索,需要先将人脸图像转化为人脸特征数据,然后才能够通过人脸特征数据之间的大小、差异等比较,确定出待检索人脸图像与图像库中的人脸图像之间的相似度。It should be noted that, in order to facilitate the retrieval of the face images to be retrieved in the face images in the image database, the face images need to be converted into face feature data first, and then the size, Compare the differences, etc., to determine the similarity between the face image to be retrieved and the face image in the image database.
其中,所述人脸特征数据可以包括多个人脸特征值。Wherein, the face feature data may include a plurality of face feature values.
另外,所述N种人脸模型可以表示为,N种人脸模型中的每种人脸模型为算法互不相同的人脸模型,例如:算法的种类不同、算法的新旧版本不同、算法的精确度或者维度不同等。In addition, the N types of face models can be expressed as, each of the N types of face models is a face model with a different algorithm, for example: different types of algorithms, different old and new versions of algorithms, different algorithms The precision or dimensions are not the same.
例如:采用第一人脸模型和第二人脸模型分别提取待检索人脸图像的人脸特征数据,其中,第一人脸模型得出待检索人脸图像的第一人脸特征数据,第二人脸模型得出待检索人脸图像的第二人脸特征数据,所述第一人脸模型与第二人脸模型不同,因此得出的第一人脸特征数据与第二人脸特征数据也不同。For example: using the first face model and the second face model to extract the face feature data of the face image to be retrieved respectively, wherein the first face model obtains the first face feature data of the face image to be retrieved, and the first face model obtains the first face feature data of the face image to be retrieved, and the second face model The two-person face model obtains the second face feature data of the face image to be retrieved, and the first face model is different from the second face model, so the obtained first face feature data is different from the second face feature data. The data is also different.
具体的,可以在异构系统中具有的N个智能终端中分别安装所述N种人脸模型,也可以在一个系统中所述安装N种人脸模型。Specifically, the N types of face models can be respectively installed in the N intelligent terminals in the heterogeneous system, or the N types of face models can be installed in one system.
需要说明的是,人脸模型的种类可以是神经网络模型、深度机器学习等。根据时代的进步,人脸模型的版本也需要进行更新,因此就有了更新前和更新后的人脸模型的版本不相同的情况。It should be noted that the types of face models may be neural network models, deep machine learning, and the like. According to the progress of the times, the version of the face model also needs to be updated, so there is a situation that the versions of the face model before and after the update are not the same.
而且,可以在人脸特征数据的精确度需求低的情况下,配置精确度或者维度较低的人脸模型;在人脸特征数据的精确度需求高的情况下,配置精确度或者维度较高人脸模型。Moreover, when the accuracy requirement of face feature data is low, a face model with low accuracy or dimension can be configured; when the accuracy requirement of face feature data is high, the configuration accuracy or dimension is high face model.
这样,可以在满足人脸特征数据的精确度需求的情况下,尽量采用低精确度或者低维度的人脸模型,以避免因精确度或者维度过剩而造成的人脸模型的计算过程过于复杂,使计算效率降低。In this way, in the case of meeting the accuracy requirements of face feature data, low-precision or low-dimensional face models can be used as much as possible to avoid the excessive complexity of the calculation process of the face model caused by excessive accuracy or dimensions. reduce computational efficiency.
当然,步骤201中获取的待检索人脸图像可以是人脸大图,通过截取等步骤可以从该人脸大图中截取人脸小图,步骤201还可以包括将获取人脸大图和人脸小图存储于图片库中,步骤202可以是指通过N种人脸模型分别获取人脸小图的N组人脸特征数据。Of course, the face image to be retrieved obtained in step 201 can be a large face image, and a small face image can be intercepted from the large face image through steps such as interception, and step 201 can also include obtaining the large face image and the The face thumbnails are stored in the picture library. Step 202 may refer to obtaining N sets of face feature data of the face thumbnails through N types of face models.
本步骤中,采用至少两个人脸模型分别提取所述待检索人脸图像的人脸特征数据,在部分人脸模型进行升级过程中,便于基于原有的人脸模型继续提取人脸特征数据,从而避免采用单个人脸模型的系统,在升级过程中需要对大量数据进行重新分析,而造成在升级的过程中不能提取人脸特征数据。In this step, at least two face models are used to extract the face feature data of the face image to be retrieved respectively, and in the process of upgrading part of the face models, it is convenient to continue to extract the face feature data based on the original face model, In this way, it is avoided that a system using a single face model needs to re-analyze a large amount of data during the upgrade process, resulting in the inability to extract face feature data during the upgrade process.
步骤203、将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果。Step 203: Retrieve the N groups of face feature data in the face feature database to obtain N groups of search results.
其中,所述检索可以是指对人脸模型相同的人脸特征数据进行检索。Wherein, the retrieving may refer to retrieving face feature data with the same face model.
需要说明的是,人脸检索系统中可以存储大量的人脸图像,及各个人脸图像的人脸特征数据,每组检索结果可以包括人脸特征库中多组人脸特征数据与人脸特征数据之间的相似度,以及还可以包括对应的人脸图像,当然,还可以包括每组检索结果对应的人脸模型的标识信息。It should be noted that a large number of face images and face feature data of each face image can be stored in the face retrieval system, and each set of retrieval results can include multiple sets of face feature data and face feature data in the face feature database. The similarity between the data may also include the corresponding face image, and of course, may also include the identification information of the face model corresponding to each set of retrieval results.
另外,人脸特征库中的人脸图像的人脸特征数据同样可以采用上述N种人脸模型分别提取。In addition, the face feature data of the face images in the face feature database can also be extracted by using the above N types of face models.
需要说明的是,由于监控人脸图像的人脸特征数据可以采用不同的人脸模型进行提取,并且根据不同人脸模型提取的人脸特征数据,其相似度算法等也可能不同。从而将标识信息相同的人脸特征数据采用与该人脸模型匹配的相似度算法计算相似度。It should be noted that since the face feature data of the monitored face image may be extracted using different face models, and the face feature data extracted according to different face models may have different similarity algorithms. Therefore, the face feature data with the same identification information is calculated using a similarity algorithm matched with the face model to calculate the similarity.
例如:一种人脸模型的维度为128,另一种人脸模型的维度为256,在计算相似度的过程中,很明显128维的人脸特征数据与256维的人脸特征数据所采用的相似度算法不同。For example, the dimension of one face model is 128, and the dimension of another face model is 256. In the process of calculating the similarity, it is obvious that the 128-dimensional face feature data and the 256-dimensional face feature data adopt The similarity algorithm is different.
本步骤中,由于采用同一人脸模型提取的人脸特征数据和人脸特征库中的人脸特征数据进行检索,避免采用不同人脸模型提取出的不具有可比性的人脸特征数据之间进行比较,从而避免了人脸特征数据的混合,且提升了人脸特征检索的准确性和可靠性。In this step, since the face feature data extracted by the same face model and the face feature data in the face feature database are used for retrieval, the incomparable face feature data extracted by different face models are avoided. The comparison avoids the mixing of face feature data, and improves the accuracy and reliability of face feature retrieval.
作为一种可选的实施方式,为了达到将人脸模型相同的人脸特征数据进行检索,所述N组人脸特征数据中每组人脸特征数据包括有其使用的人脸模型的标识信息,所述人脸特征库中的每组人脸特征数据包括有其使用的人脸模型的标识信息,步骤203具体为:As an optional implementation, in order to retrieve the face feature data with the same face model, each set of face feature data in the N sets of face feature data includes the identification information of the face model it uses , each group of face feature data in the face feature database includes the identification information of the face model it uses, and step 203 is specifically:
根据每组人脸特征数据使用的人脸模型的标识信息,将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果。According to the identification information of the face model used by each set of face feature data, the N sets of face feature data are respectively searched in the face feature database to obtain N sets of search results.
例如:人脸模型包括第一人脸模型和第二人脸模型,待检索人脸图像为1张,且人脸特征库中有10张监控人脸图像,则采用两种人脸模型分别提取10张监控人脸图像的人脸特征数据,以得到10组与监控人脸图像一一对应的人脸特征数据,其中4组人脸特征数据由第一人脸模型提取,包括第一标识信息;另外6组人脸特征数据由第二人脸模型提取,包括第二标识信息。另外还采用两种人脸模型待检索人脸图像的人脸特征数据,以得到两组人脸特征数据,其中一组包括第一标识信息,另一组包括第二标识信息。For example: the face model includes the first face model and the second face model, there is one face image to be retrieved, and there are 10 monitoring face images in the face feature database, then the two face models are used to extract Face feature data of 10 monitored face images to obtain 10 sets of face feature data corresponding to the monitored face images one-to-one, of which 4 sets of face feature data are extracted by the first face model, including the first identification information ; The other 6 groups of face feature data are extracted by the second face model, including the second identification information. In addition, two face models are used to retrieve the face feature data of the face image to obtain two sets of face feature data, one set includes the first identification information, and the other set includes the second identification information.
在检索的过程中,将包括第一标识信息的4组监控人脸图像的人脸特征数据与待检索人脸图像的包括第一标识信息的人脸特征数据进行相似度计算,将包括第二标识信息的6组监控人脸图像的人脸特征数据与待检索人脸图像的包括第二标识信息的人脸特征数据进行相似度计算,以得出待检索人脸图像与各监控人脸图像之间的相似度。During the retrieval process, the similarity calculation is performed between the face feature data of the four groups of monitoring face images including the first identification information and the face feature data of the face image to be retrieved including the first identification information, and the second The face feature data of the 6 groups of monitoring face images of the identification information and the face feature data of the face image to be retrieved including the second identification information are subjected to similarity calculations to obtain the face image to be retrieved and each monitoring face image similarity between.
另外,所述标识信息可以是数字、代码、字符等任意一种形式,用于区分不同人脸模型得出的人脸特征数据,避免将两个由不同人脸模型提取的不具有可比性的人脸特征数据进行比较,造成得出的相似度不正确或者不能执行比较的过程。采用标识信息区分不同人脸模型提取的人脸特征数据的方法,可以提升所述人脸特征检测结果的准确性。In addition, the identification information can be in any form of numbers, codes, characters, etc., and is used to distinguish facial feature data obtained from different facial models, so as to avoid comparing two incomparable facial features extracted by different facial models. The facial feature data is compared, resulting in an incorrect similarity or the inability to perform the comparison process. The method of using identification information to distinguish face feature data extracted from different face models can improve the accuracy of the face feature detection result.
本实施方式中,在人脸特征数据中增加其使用的人脸模型的标识信息,这样,仅将标识信息相同的人脸特征数据进行相似度计算,避免采用不同人脸模型得出的人脸特征数据之间不具有可比性或者相似度计算方法不相同而得出错误的检索结果,从而提升检索结果的针对性和可靠性。In this embodiment, the identification information of the face model used is added to the face feature data, so that only the face feature data with the same identification information are calculated for similarity, avoiding the use of different face models. The feature data are not comparable or the similarity calculation methods are different, resulting in wrong retrieval results, thereby improving the pertinence and reliability of the retrieval results.
当然,本发明实施例中,并不限定人脸特征数据包括人脸模型的标识信息,例如:可以将不同模型得出的人脸特征数据分别存储于不同的存储目录下,且还可以按照预设顺序依次获取N组人脸特征数据,从而可以该顺序确定每组人脸特征数据使用的人脸模型,这样在检索的过程中,可以实现将人脸模型相同的人脸特征数据进行检索。Certainly, in the embodiment of the present invention, it is not limited that the face feature data includes the identification information of the face model. It is assumed that N groups of face feature data are acquired sequentially, so that the face model used by each set of face feature data can be determined in this order, so that in the retrieval process, the face feature data with the same face model can be retrieved.
步骤204、根据预先获取的相似度转换关系,将N-1种人脸模型的N-1组检索结果的相似度分别转换成与目标人脸模型对应的相似度。Step 204 , according to the pre-acquired similarity conversion relationship, the similarities of the N-1 groups of retrieval results of the N-1 types of face models are respectively converted into similarities corresponding to the target face model.
其中,所述相似度转换关系可以是将与N-1种人脸模型对应的相似度转换成与所述目标人脸模型对应的相似度的转换关系,所述目标人脸模型为所述N种人脸模型中除所述N-1种人脸模型之外的另一种人脸模型。Wherein, the similarity conversion relationship may be a conversion relationship that converts the similarity corresponding to N-1 kinds of face models into the similarity corresponding to the target face model, and the target face model is the N Another face model in the face models other than the N-1 face models.
其中,步骤203中得出的N组检索结果分别为与N种人脸模型对应的检索结果,且N种人脸模型采用的算法、精度等具有差异,使得N组检索结果中相似度的大小不具有可比性。Among them, the N groups of retrieval results obtained in step 203 are respectively the retrieval results corresponding to the N types of face models, and the algorithms and precisions adopted by the N types of face models are different, so that the similarity in the N groups of retrieval results is Not comparable.
例如:采用两个算法不相同的人脸模型分别提取2张人脸图像的人脸特征数据,并分别将同一人脸模型提取的2组人脸特征数据进行比较,以得出与两种人脸模型分别对应的2个相似度。此时,由于两种人脸模型的算法不相同,从而得出的2个相似度的值并不相等,但是这2个相似度都是表示相同的2张人脸图像之间的相似度。由此可知,采用不同人脸模型得出的相似度不具有可比性。通过步骤204将N组检索结果中的相似度转换为同一标准之后,可以使N组检索结果中的相似度具有可比性。For example: use two face models with different algorithms to extract the face feature data of two face images respectively, and compare the two sets of face feature data extracted by the same face model to obtain a comparison between the two face features. Two similarities corresponding to the face models respectively. At this time, since the algorithms of the two face models are different, the obtained two similarity values are not equal, but these two similarities both represent the similarity between the same two face images. It can be seen that the similarity obtained by using different face models is not comparable. After converting the similarities in the N groups of retrieval results to the same standard through step 204, the similarities in the N groups of retrieval results can be made comparable.
其中,目标人脸模型可以是N种人脸模型中版本最新或者精确度最高的一种人脸模型。Wherein, the target face model may be a face model with the latest version or the highest accuracy among the N types of face models.
另外,所述预先获取的相似度转换关系可以包括N-1组检索结果的相似度与目标人脸模型对应的相似度之间的数值换算关系。分别代入N-1组检索结果的相似度后,该数值换算关系能够输出与目标人脸模型对应的相似度,从而使目标人脸模型的检索结果的相似度与转换后得到的N-1个相似度之间具有可比性。In addition, the pre-acquired similarity conversion relationship may include a numerical conversion relationship between the similarity of N−1 groups of retrieval results and the similarity corresponding to the target face model. After substituting the similarities of N-1 groups of retrieval results, the numerical conversion relationship can output the similarity corresponding to the target face model, so that the similarity of the retrieval results of the target face model is the same as the converted N-1 The similarities are comparable.
例如:分别采用第一人脸模型、第二人脸模型这两个不同的人脸模型计算第一人脸图像分别与第二人脸图像和第三人脸图像之间的相似度。For example: using two different face models, the first face model and the second face model, respectively, to calculate the similarities between the first face image and the second face image and the third face image.
假设第一人脸模型、第二人脸模型分别计算出的第一人脸图像与第二人脸图像之间的相似度分别等于:90%、89%;第一人脸图像与第三人脸图像之间的相似度分别等于:65%、67%。而且,计算出的第一人脸图像与第二人脸图像之间的相似度等于89%的第二人脸模型的精确度更高,从而选择该人脸模型为目标人脸模型。Assume that the similarities between the first face image and the second face image calculated by the first face model and the second face model are respectively equal to: 90%, 89%; the first face image and the third person The similarities between face images are equal to: 65%, 67%, respectively. Moreover, the second human face model whose calculated similarity between the first human face image and the second human face image is equal to 89% has higher accuracy, so this human face model is selected as the target human face model.
另外,根据90%与89%、65%与67%之间的转换关系得出第一人脸模型与第二人脸模型的相似度之间的转换关系。In addition, the conversion relationship between the similarity between the first human face model and the second human face model is obtained according to the conversion relationship between 90% and 89%, and between 65% and 67%.
这样,在第一人脸模型计算出另外两张人脸图像之间的相似度之后,可以直接按照第一人脸模型与第二人脸模型的相似度之间的转换关系将第一人脸模型计算出的相似度转换为与第二人脸模型对应的相似度;按照第一人脸模型与第三人脸模型的相似度之间的转换关系将第三人脸模型计算出的相似度转换为与第一人脸模型对应的相似度。In this way, after the first face model calculates the similarity between the other two face images, the first face can be directly converted according to the conversion relationship between the first face model and the second face model. The similarity calculated by the model is converted into the similarity corresponding to the second face model; according to the conversion relationship between the similarity between the first face model and the third face model, the similarity calculated by the third face model Convert to the similarity corresponding to the first face model.
从而使不同人脸模型得到的相似度之间具有可比性。Therefore, the similarity obtained by different face models is comparable.
当然,为确保转换关系的准确性,可以采用两组具有多个相似度值的相似度进行回归计算以得到更加准确的转换关系。Of course, in order to ensure the accuracy of the conversion relationship, two groups of similarities with multiple similarity values can be used for regression calculation to obtain a more accurate conversion relationship.
作为一种可选的实施方式,上述转换关系包括N-1个回归模型,其中,所述N-1个回归模型分别表示所述N-1种人脸模型对应的相似度与所述目标人脸模型对应的相似度的转换关系。As an optional implementation, the above conversion relationship includes N-1 regression models, wherein the N-1 regression models respectively represent the similarity between the N-1 types of face models and the target person. The transformation relationship of the similarity corresponding to the face model.
其中,回归模型的数量为人脸模型的数量和减去1,即表示回归模型与N-1种人脸模型一一对应,从而在相似度转换的过程中,可以将N-1种人脸模型得到的相似度分别代入对应的一个回归模型中,便可以得到与目标人脸模型对应的相似度。Among them, the number of regression models is the number of face models and minus 1, which means that the regression model corresponds to N-1 kinds of face models one by one, so that in the process of similarity conversion, N-1 kinds of face models can be The obtained similarities are respectively substituted into a corresponding regression model to obtain the similarity corresponding to the target face model.
并依此重复,直至将N-1种人脸模型得到的相似度都转换为目标人脸模型对应的相似度,从而达到使N种人脸模型得到的相似度之间具有可比性。And repeat this until the similarities obtained by the N-1 face models are converted into the corresponding similarities of the target face model, so as to make the similarities obtained by the N face models comparable.
本实施方式中,利用N-1个回归模型分别将N-1种人脸模型的相似度转换为目标人脸模型对应的相似度,从而达到使N种人脸模型得到的相似度之间具有可比性的效果。In this embodiment, N-1 regression models are used to convert the similarities of N-1 types of face models into similarities corresponding to target face models, so that the similarities obtained by N types of face models have a similarity. comparable effect.
当然,转换关系还可以是代码、参数等其他形式,例如:根据不同的人脸模型之间的算法、维度等差异而得到的纠正代码,该纠正代码可以根据不同的人脸模型之间的算法、维度等差异将其得到的相似度纠正为具有同样的算法和维度的人脸模型对应的相似度。Of course, the conversion relationship can also be in other forms such as codes and parameters, for example: the correction code obtained according to the differences in algorithms and dimensions between different face models, the correction code can be based on the algorithm between different face models , dimension and other differences to correct the obtained similarity to the similarity corresponding to the face model with the same algorithm and dimension.
作为一种可选的实施方式,所述N-1个回归模型包括第一回归模型,所述第一回归模型的自变量为第一人脸模型对应的相似度,所述第一回归模型的因变量为所述自变量通过所述第一回归模型输出的所述目标人脸模型对应的相似度,所述第一人脸模型为所述N-1种人脸模型中的一种人脸模型;As an optional implementation manner, the N-1 regression models include a first regression model, the independent variable of the first regression model is the similarity corresponding to the first face model, and the first regression model's The dependent variable is the similarity corresponding to the target face model output by the independent variable through the first regression model, and the first face model is one of the N-1 types of face models Model;
所述根据预先获取的相似度转换关系,将N-1种人脸模型的N-1组检索结果的相似度转换成与目标人脸模型对应的相似度的步骤,包括:The step of converting the similarity of N-1 groups of retrieval results of N-1 face models into the similarity corresponding to the target face model according to the pre-acquired similarity conversion relationship includes:
将N-1组检索结果中的第一人脸模型对应的相似度代入所述第一回归模型的自变量,计算所述第一回归模型的因变量,以得到通过所述第一人脸模型对应的相似度转换后的所述目标人脸模型对应的相似度。Substituting the similarity corresponding to the first human face model in the N-1 group of retrieval results into the independent variable of the first regression model, and calculating the dependent variable of the first regression model, so as to obtain The similarity corresponding to the target face model after the corresponding similarity conversion.
其中,第一人脸模型对应的相似度表示,采用第一人脸模型分别提取两张人脸图像的两组人脸特征数据,并采用相似度计算方法计算得出的该两组人脸特征数据之间的相似度。Among them, the similarity degree corresponding to the first face model indicates that two sets of face feature data of two face images are respectively extracted by using the first face model, and the two sets of face feature data calculated by the similarity calculation method are Similarity between data.
当然,所述N-1个回归模型还包括第二回归模型,第三回归模型直至第N-1回归模型。Of course, the N−1 regression models also include the second regression model, the third regression model up to the N−1 regression model.
且所述第二回归模型,所述第三回归模型直至所述第N-1回归模型,分别用于将N-1种人脸模型对应的相似度转换为与目标人脸模型对应的相似度。And the second regression model, the third regression model up to the N-1th regression model are respectively used to convert the similarity corresponding to the N-1 face models into the similarity corresponding to the target face model .
本实施方式中,仅需要将第一人脸模型的相似度作为第一回归模型的自变量输入后,便能够得到第一回归模型的因变量的值,其中,该因变量的值便是目标人脸模型对应的相似度。从而简化了计算目标人脸模型对应的相似度的步骤。In this embodiment, only the similarity of the first face model needs to be input as the independent variable of the first regression model, and the value of the dependent variable of the first regression model can be obtained, wherein the value of the dependent variable is the target The similarity corresponding to the face model. Thus, the step of calculating the similarity corresponding to the target face model is simplified.
作为一种可选的实施方式,所述第一回归模型通过如下方式确定:As an optional implementation manner, the first regression model is determined in the following manner:
通过所述目标人脸模型分别提第一人脸图像集合和第二人脸图像集合的第二人脸特征数据,其中,所述第一人脸图像集合包括n张人脸图像,所述第二人脸图像集合包括m张人脸图像,所述n和所述m均为大于1的整数;The second face feature data of the first face image set and the second face image set are respectively provided through the target face model, wherein the first face image set includes n face images, and the first face image set includes n face images. The two face image collection includes m face images, and the n and the m are both integers greater than 1;
获取n对回归样本图像,其中,每对回归样本图像包括分别属于第一人脸图像集合和所述第二人脸图像集合中的一张人脸图像,且所述n对回归样本图像的第一人脸图像特征数据的第一相似度呈线性分布;Obtain n pairs of regression sample images, wherein each pair of regression sample images includes a face image belonging to the first human face image set and the second human face image set respectively, and the nth pair of regression sample images A first similarity degree of face image feature data is linearly distributed;
通过所述第一人脸模型分别提取所述n对回归样本图像的第二人脸特征数据,并计算每对回归样本图像的第二人脸特征数据的第二相似度;Extracting the second face feature data of the n pairs of regression sample images respectively through the first face model, and calculating the second similarity of the second face feature data of each pair of regression sample images;
根据所述n对回归样本图像的第一相似度和第二相似度,确定所述第一回归模型,其中,所述第一回归模型的自变量为所述第二相似度,因变量为所述第一相似度。According to the first similarity and second similarity of the n pairs of regression sample images, the first regression model is determined, wherein the independent variable of the first regression model is the second similarity, and the dependent variable is the second similarity. the first similarity.
当然,所述第二回归模型,所述第三回归模型直至所述第N-1回归模型,同样可以采用上述方式确定。Of course, the second regression model, the third regression model up to the N−1th regression model can also be determined in the above manner.
其中,可以采用公式yi=β0+β1xi+μi表示回归模型,其中,xi为自变量,yi为因变量,i表示第i回归模型,i取1至N-1之间的任意值,β0和β1为估计量,μi为随机误差。通过回归算法可以确定该公式中的参数β0、β1、μi的具体数值。Among them, the regression model can be represented by the formula y i = β 0 + β 1 x i + μ i , where xi is the independent variable, y i is the dependent variable, i represents the i-th regression model, and i ranges from 1 to N-1 Any value between , β 0 and β 1 are estimators, and μ i is a random error. The specific values of the parameters β 0 , β 1 , and μ i in the formula can be determined by a regression algorithm.
需要说明的是,β0、μi分别可以取包括0在内的任意值,因此,回归模型的公式不仅仅局限于yi=β0+β1xi+μi,例如:在β0等于0时,该回归模型的公式为yi=β1xi+μi。It should be noted that β 0 and μ i can take any value including 0, so the formula of the regression model is not limited to y i =β 0 +β 1 x i +μ i , for example: in β 0 When equal to 0, the formula of the regression model is y i =β 1 x i +μ i .
例如:假设第一人脸图像集合包括10张人脸图像,第二人脸图像集合包括100张人脸图像,采用新模型分别计算10张人脸图像与100张人脸图像之间的相似度,得出10×100个第一相似度,将这1000个第一相似度线性排列后,在相似度较高的区域,比如在61%至90%的区间内,找n个相似度值(比如30个,相似度值分别为:61%,62%,63%,…,90%),并得出与该30个相似度值分别对应的30对回归样本图像。然后将30对回归样本图像分别采用老模型进行提取人脸特征数据,并根据提取的人脸特征数据得出30个第二相似度。For example: suppose the first face image set includes 10 face images, and the second face image set includes 100 face images, and the new model is used to calculate the similarity between 10 face images and 100 face images , to obtain 10×100 first similarities, after linearly arranging the 1000 first similarities, find n similarity values ( For example, 30, the similarity values are: 61%, 62%, 63%, ..., 90%), and 30 pairs of regression sample images corresponding to the 30 similarity values are obtained. Then, 30 pairs of regression sample images are used to extract facial feature data using the old model, and 30 second similarities are obtained according to the extracted facial feature data.
将30个第一相似度作为自变量xi,并将对应的30个第二相似度作为因变量yi,分别代入公式yi=β0+β1xi+μi之后,可以求出公式中的参数β0、β1、μi的具体数值。从而得出回归模型。Taking the 30 first similarities as the independent variable xi and the corresponding 30 second similarities as the dependent variable y i , and substituting them into the formula y i =β 0 +β 1 x i +μ i respectively, we can find The specific values of the parameters β 0 , β 1 , μ i in the formula. resulting in a regression model.
其中,可以采用最小二乘法或者最大似然法进行求解公式。Wherein, the least square method or the maximum likelihood method may be used to solve the formula.
求解过程可以是,假定:The solution procedure can be, assuming:
可以得到:can get:
其中,随机误差μi假设为0,即可得到对应的一元线程方程。Wherein, the random error μ i is assumed to be 0, and the corresponding unary thread equation can be obtained.
当然,也可以建立多元回归方程来建立回归模型。Of course, multiple regression equations can also be established to establish regression models.
此后,可以通过该回归方程,将两种以上人脸模型得到的相似度,换算成最新模型对应的相似度,并可以统一按照转换后的相似度的值进行排序整理反馈,达到融合检索的目的。Afterwards, through this regression equation, the similarity obtained by two or more face models can be converted into the corresponding similarity of the latest model, and the feedback can be sorted and sorted according to the converted similarity value to achieve the purpose of fusion retrieval .
如下表2所示的样本表,其中选取了同对回归样本图像在不同模型下的相似度,其中,假设按照如上的求解方式,得到回归模型对应的回归线性方程为:yi=0.00484+1.0936xi+μi:The sample table shown in Table 2 below, in which the similarity of the same pair of regression sample images under different models is selected, wherein, assuming that the above solution method is used, the regression linear equation corresponding to the regression model is obtained: y i =0.00484+1.0936 x i +μ i :
表2Table 2
另外,还可以对转换后的相似度设置同一个阈值,将大于该阈值的相似度对应的人脸图像判断为同一人。In addition, the same threshold can also be set for the converted similarity, and the face images corresponding to the similarity greater than the threshold are judged as the same person.
需要说明的是,回归样本图像的数量越多,则得出的回归模型得准确性越高,另外,在求出回归方程后,相应的估计偏差μi的值,可以通过对表2所示的样本表查表得到。It should be noted that the greater the number of regression sample images, the higher the accuracy of the regression model obtained. In addition, after the regression equation is obtained, the value of the corresponding estimated deviation μ i can be calculated by comparing the values shown in Table 2 The sample table is obtained by looking up the table.
本步骤中,将N-1种人脸模型的N-1组检索结果的相似度转换成与目标人脸模型对应的相似度,使采用不同人脸模型得出的相似度之间具有可比性。便于监控人员仅需根据转换后的相似度之间的数值关系,便能够准确判断出人脸图像是否为同一人。In this step, the similarity of N-1 groups of retrieval results of N-1 face models is converted into the similarity corresponding to the target face model, so that the similarities obtained by using different face models are comparable . It is convenient for monitoring personnel to accurately judge whether the face images are of the same person only according to the numerical relationship between the transformed similarities.
步骤205、输出转换后的所述目标人脸模型对应的检索结果。Step 205, outputting the retrieval result corresponding to the converted target face model.
其中,步骤205可以理解为:输出所述N组检索结果中经过转换后的N-1组检索结果,以及所述N组检索结果中未经过转换的另一个检索结果。Wherein, step 205 can be understood as: outputting converted N−1 groups of retrieval results among the N groups of retrieval results, and another non-transformed retrieval result among the N groups of retrieval results.
其中,可以根据所述N组检索结果中经过转换后的N-1组检索结果和未经过转换的另一个检索结果,按照相似度由大到小的顺序输出转换后的N-1组检索结果,以及所述目标人脸模型对应的检索结果。Wherein, according to the converted N-1 group of retrieval results among the N groups of retrieval results and another non-converted retrieval result, the converted N-1 group of retrieval results can be output in descending order of similarity , and the retrieval result corresponding to the target face model.
这样,可以便于监控人员更加清晰的获取相似度高的检测结果。In this way, it is convenient for monitoring personnel to obtain detection results with high similarity more clearly.
另外,输出的检索结果还可以是大于一定数值的相似度对应的检索结果,例如:若相似度小于50%,则可以排除两者为同一人的可能性,可以仅输出相似度大于或者等于50%的检索结果。In addition, the output retrieval result can also be a retrieval result corresponding to a similarity greater than a certain value. For example, if the similarity is less than 50%, the possibility that the two are the same person can be excluded, and only the similarity greater than or equal to 50 can be output. % of search results.
本步骤中,将转换后的N-1组检索结果,以及所述目标人脸模型对应的检索结果输出,便于监控人员识别。In this step, the converted N−1 groups of retrieval results and the retrieval results corresponding to the target face model are output, so as to facilitate identification by monitoring personnel.
在本发明实施例中,获取待检索人脸图像;获取所述待检索人脸图像的N组人脸特征数据,其中,所述N组人脸特征数据为分别从N种人脸模型的所述待检索人脸图像中提取;将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果;根据预先获取的相似度转换关系,将N-1种人脸模型的N-1组检索结果的相似度分别转换成与目标人脸模型对应的相似度;输出转换后的所述目标人脸模型对应的检索结果。这样,可以获取多种人脸模型对应的多组检索结果,且将多组检索结果中的相似度转换为同一人脸模型对应的相似度,并输出转换后的相似度的检索结果,以使得这些检索结果具备可比性,进而提升人脸检索系统的性能。In the embodiment of the present invention, the face image to be retrieved is obtained; N groups of face feature data of the face image to be retrieved are obtained, wherein the N groups of face feature data are obtained from N types of face models respectively. Extract from the face images to be retrieved; search the N groups of face feature data in the face feature database to obtain N groups of retrieval results; The similarities of the retrieval results of the N−1 groups of models are respectively converted into similarities corresponding to the target face model; and the converted retrieval results corresponding to the target face model are output. In this way, multiple sets of retrieval results corresponding to various face models can be obtained, and the similarity in multiple sets of retrieval results can be converted into similarity corresponding to the same human face model, and the converted similarity retrieval results can be output, so that These retrieval results are comparable, thereby improving the performance of the face retrieval system.
另外,本发明实施例中,由于包括多种人脸模型,且可以将多组检索结果中的相似度转换为同一人脸模型对应的相似度,从而还可以解决新模型升级后,由于旧数据不存在于新模型中而导致的旧数据中旧模型的相似度与新模型中相似度不兼容的问题,进而提升人脸检索系统的数据兼容性,且采用多种人脸模型还可以提升算法的准确度。In addition, in the embodiment of the present invention, since multiple face models are included, and the similarity in multiple sets of retrieval results can be converted into the similarity corresponding to the same face model, it can also solve the problem of the old data after the new model is upgraded. The problem of incompatibility between the similarity of the old model in the old data and the similarity of the new model caused by the fact that it does not exist in the new model can improve the data compatibility of the face retrieval system, and the use of multiple face models can also improve the algorithm the accuracy.
请参阅图3,是本发明实施例提供的一种人脸特征检索装置的结构图。该人脸特征检索装置300包括:Please refer to FIG. 3 , which is a structural diagram of a face feature retrieval device provided by an embodiment of the present invention. The face feature retrieval device 300 includes:
第一获取模块301,用于获取待检索人脸图像;The first obtaining module 301 is used to obtain the face image to be retrieved;
第二获取模块302,用于获取所述待检索人脸图像的N组人脸特征数据,其中,所述N组人脸特征数据为分别从N种人脸模型的所述待检索人脸图像中提取;The second acquiring module 302 is configured to acquire N sets of face feature data of the face images to be retrieved, wherein the N sets of face feature data are the face images to be retrieved from N types of face models respectively extract from;
检索模块303,用于将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果;The retrieval module 303 is used to retrieve the N groups of facial feature data respectively in the facial feature database to obtain N groups of retrieval results;
转换模块304,用于根据预先获取的相似度转换关系,将N-1种人脸模型的N-1组检索结果的相似度分别转换成与目标人脸模型对应的相似度;The conversion module 304 is used to convert the similarities of N-1 groups of retrieval results of N-1 types of face models into similarities corresponding to the target face model according to the similarity conversion relationship obtained in advance;
输出模块305,输出转换后的所述目标人脸模型对应的检索结果。The output module 305 outputs the converted retrieval result corresponding to the target face model.
其中,N可以是大于1的整数。Wherein, N may be an integer greater than 1.
另外,所述检索可以是指人脸模型相同的人脸特征数据进行检索。In addition, the retrieving may refer to retrieving face feature data with the same face model.
另外,所述相似度转换关系可以是将与N-1种人脸模型对应的相似度转换成与所述目标人脸模型对应的相似度的转换关系,所述目标人脸模型为所述N种人脸模型中除所述N-1种人脸模型之外的另一种人脸模型。In addition, the similarity conversion relationship may be a conversion relationship that converts the similarity corresponding to N-1 types of face models into the similarity corresponding to the target face model, and the target face model is the N Another face model in the face models other than the N-1 face models.
输出模块305输出的内容也可以称之为:所述N组检索结果中经过转换后的N-1组检索结果,以及所述N组检索结果中未经过转换的另一个检索结果。The content output by the output module 305 can also be referred to as: the N-1 group of search results after conversion among the N groups of search results, and another search result without conversion among the N groups of search results.
可选地,所述N组人脸特征数据中每组人脸特征数据包括有其使用的人脸模型的标识信息,所述人脸特征库中的每组人脸特征数据包括有其使用的人脸模型的标识信息,所述检索模块304具体用于:Optionally, each set of face feature data in the N sets of face feature data includes the identification information of the face model used by it, and each set of face feature data in the face feature database includes the face model used by it. The identification information of the face model, the retrieval module 304 is specifically used for:
根据每组人脸特征数据使用的人脸模型的标识信息,将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果。According to the identification information of the face model used by each set of face feature data, the N sets of face feature data are respectively searched in the face feature database to obtain N sets of search results.
可选地,所述预先获取的相似度转换关系包括:Optionally, the pre-acquired similarity conversion relationship includes:
N-1个回归模型,其中,所述N-1个回归模型分别表示所述N-1种人脸模型对应的相似度与所述目标人脸模型对应的相似度的转换关系。N-1 regression models, wherein the N-1 regression models respectively represent the conversion relationship between the similarity corresponding to the N-1 types of human face models and the similarity corresponding to the target human face model.
可选地,所述N-1个回归模型包括第一回归模型,所述第一回归模型的自变量为第一人脸模型对应的相似度,所述第一回归模型的因变量为所述自变量通过所述第一回归模型输出的所述目标人脸模型对应的相似度,所述第一人脸模型为所述N-1种人脸模型中的一种人脸模型;Optionally, the N-1 regression models include a first regression model, the independent variable of the first regression model is the similarity corresponding to the first face model, and the dependent variable of the first regression model is the The similarity corresponding to the target face model output by the independent variable through the first regression model, the first face model is one of the N-1 face models;
所述转换模块304具体用于:The conversion module 304 is specifically used for:
将N-1组检索结果中的第一人脸模型对应的相似度代入所述第一回归模型的自变量,计算所述第一回归模型的因变量,以得到通过所述第一人脸模型对应的相似度转换后的所述目标人脸模型对应的相似度。Substituting the similarity corresponding to the first human face model in the N-1 group of retrieval results into the independent variable of the first regression model, and calculating the dependent variable of the first regression model, so as to obtain The similarity corresponding to the target face model after the corresponding similarity conversion.
可选地,所述第一回归模型通过如下方式确定:Optionally, the first regression model is determined in the following manner:
通过所述目标人脸模型分别提第一人脸图像集合和第二人脸图像集合的第二人脸特征数据,其中,所述第一人脸图像集合包括n张人脸图像,所述第二人脸图像集合包括m张人脸图像,所述n和所述m均为大于1的整数;The second face feature data of the first face image set and the second face image set are respectively provided through the target face model, wherein the first face image set includes n face images, and the first face image set includes n face images. The two face image collection includes m face images, and the n and the m are both integers greater than 1;
获取n对回归样本图像,其中,每对回归样本图像包括分别属于第一人脸图像集合和所述第二人脸图像集合中的一张人脸图像,且所述n对回归样本图像的第一人脸图像特征数据的第一相似度呈线性分布;Obtain n pairs of regression sample images, wherein each pair of regression sample images includes a face image belonging to the first human face image set and the second human face image set respectively, and the nth pair of regression sample images A first similarity degree of face image feature data is linearly distributed;
通过所述第一人脸模型分别提取所述n对回归样本图像的第二人脸特征数据,并计算每对回归样本图像的第二人脸特征数据的第二相似度;Extracting the second face feature data of the n pairs of regression sample images respectively through the first face model, and calculating the second similarity of the second face feature data of each pair of regression sample images;
根据所述n对回归样本图像的第一相似度和第二相似度,确定所述第一回归模型,其中,所述第一回归模型的自变量为所述第二相似度,因变量为所述第一相似度。According to the first similarity and second similarity of the n pairs of regression sample images, the first regression model is determined, wherein the independent variable of the first regression model is the second similarity, and the dependent variable is the second similarity. the first similarity.
可选地,如图4所示,所述装置300还包括:Optionally, as shown in FIG. 4, the device 300 further includes:
第三获取模块306,用于通过图像采集单元获取监控人脸图像;The third acquiring module 306 is used to acquire the monitor face image through the image acquisition unit;
第四获取模块307,用于获取所述监控人脸图像的N组人脸特征数据,其中,所述监控人脸图像的N组人脸特征数据为分别通过N种人脸模型从所述监控人脸图像中提取。The fourth acquisition module 307 is used to acquire N sets of face feature data of the monitored face image, wherein, the N sets of face feature data of the monitored face image are obtained from the monitor through N types of face models respectively. extracted from face images.
存储模块308,用于将所述N组第四人脸特征数据存储于所述人脸特征库中。A storage module 308, configured to store the N sets of fourth face feature data in the face feature database.
可选地,所述人脸模型的标识信息包括版本号。Optionally, the identification information of the face model includes a version number.
需要说明的是,本发明实施例提供的人脸特征检索装置能够实现如图1或图2所示方法实施例中的各个步骤,且取得相同的有益效果,为避免重复在此不再赘述。It should be noted that the face feature retrieval device provided by the embodiment of the present invention can realize each step in the method embodiment shown in FIG. 1 or FIG. 2 and achieve the same beneficial effect, so it is not repeated here to avoid repetition.
请参阅图5,是本发明实施例提供的一种人脸特征检索设备的就构图。如图5所示,该人脸特征检索设备包括:收发机501、处理器502、存储器503及存储在存储器503上并可在处理器502上运行的计算机程序5031,计算机程序5031被处理器502执行时实现如下过程:Please refer to FIG. 5 , which is a composition diagram of a human face feature retrieval device provided by an embodiment of the present invention. As shown in Figure 5, this human face feature retrieval device comprises: transceiver 501, processor 502, memory 503 and are stored on the memory 503 and can run on the computer program 5031 of processor 502, computer program 5031 is processed by processor 502 The following process is realized during execution:
其中,收发机501,用于:获取待检索人脸图像;Wherein, the transceiver 501 is used for: obtaining the face image to be retrieved;
处理器502,用于获取所述待检索人脸图像的N组人脸特征数据,其中,所述N组人脸特征数据为分别从N种人脸模型的所述待检索人脸图像中提取。Processor 502, configured to acquire N sets of face feature data of the face images to be retrieved, wherein the N sets of face feature data are respectively extracted from the face images to be retrieved of N types of face models .
处理器502,还用于将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果。The processor 502 is further configured to search the N sets of face feature data respectively in the face feature database to obtain N sets of search results.
处理器502,还用于根据预先获取的相似度转换关系,将N-1种人脸模型的N-1组检索结果的相似度分别转换成与目标人脸模型对应的相似度。The processor 502 is further configured to convert the similarities of the N-1 groups of retrieval results of the N-1 types of face models into similarities corresponding to the target face model according to the pre-acquired similarity conversion relationship.
收发机501,输出转换后的所述目标人脸模型对应的检索结果。The transceiver 501 outputs the converted retrieval result corresponding to the target face model.
可选地,所述N组人脸特征数据中每组人脸特征数据包括有其使用的人脸模型的标识信息,所述人脸特征库中的每组人脸特征数据包括有其使用的人脸模型的标识信息,所述处理器502执行的:将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果的步骤,具体包括:Optionally, each set of face feature data in the N sets of face feature data includes the identification information of the face model used by it, and each set of face feature data in the face feature database includes the face model used by it. For the identification information of the face model, the processor 502 executes the step of retrieving the N groups of face feature data respectively in the face feature database to obtain N groups of retrieval results, specifically including:
根据每组人脸特征数据使用的人脸模型的标识信息,将所述N组人脸特征数据分别在人脸特征库中进行检索,得到N组检索结果。According to the identification information of the face model used by each set of face feature data, the N sets of face feature data are respectively searched in the face feature database to obtain N sets of search results.
可选地,所述预先获取的相似度转换关系包括:Optionally, the pre-acquired similarity conversion relationship includes:
N-1个回归模型,其中,所述N-1个回归模型分别表示所述N-1种人脸模型对应的相似度与所述目标人脸模型对应的相似度的转换关系。N-1 regression models, wherein the N-1 regression models respectively represent the conversion relationship between the similarity corresponding to the N-1 types of human face models and the similarity corresponding to the target human face model.
可选地,所述N-1个回归模型包括第一回归模型,所述第一回归模型的自变量为第一人脸模型对应的相似度,所述第一回归模型的因变量为所述自变量通过所述第一回归模型输出的所述目标人脸模型对应的相似度,所述第一人脸模型为所述N-1种人脸模型中的一种人脸模型;Optionally, the N-1 regression models include a first regression model, the independent variable of the first regression model is the similarity corresponding to the first face model, and the dependent variable of the first regression model is the The similarity corresponding to the target face model output by the independent variable through the first regression model, the first face model is one of the N-1 face models;
处理器502执行的:根据预先获取的相似度转换关系,将N-1种人脸模型的N-1组检索结果的相似度转换成与目标人脸模型对应的相似度的步骤,具体包括:Processor 502 executes: according to the pre-acquired similarity conversion relationship, the step of converting the similarity of N-1 groups of retrieval results of N-1 face models into the similarity corresponding to the target face model, specifically including:
将N-1组检索结果中的第一人脸模型对应的相似度代入所述第一回归模型的自变量,计算所述第一回归模型的因变量,以得到通过所述第一人脸模型对应的相似度转换后的所述目标人脸模型对应的相似度。Substituting the similarity corresponding to the first human face model in the N-1 group of retrieval results into the independent variable of the first regression model, and calculating the dependent variable of the first regression model, so as to obtain The similarity corresponding to the target face model after the corresponding similarity conversion.
可选地,所述第一回归模型通过如下方式确定:Optionally, the first regression model is determined in the following manner:
通过所述目标人脸模型分别提第一人脸图像集合和第二人脸图像集合的第一人脸特征数据,其中,所述第一人脸图像集合包括n张人脸图像,所述第二人脸图像集合包括m张人脸图像,所述n和所述m均为大于1的整数;The first human face feature data of the first human face image set and the second human face image set are respectively provided through the target human face model, wherein the first human face image set includes n pieces of human face images, and the first human face image set includes n pieces of human face images, and the first human face image set includes n face images, and The two face image collection includes m face images, and the n and the m are both integers greater than 1;
获取n对回归样本图像,其中,每对回归样本图像包括分别属于第一人脸图像集合和所述第二人脸图像集合中的一张人脸图像,且所述n对回归样本图像的第一人脸图像特征数据的第一相似度呈线性分布;Obtain n pairs of regression sample images, wherein each pair of regression sample images includes a face image belonging to the first human face image set and the second human face image set respectively, and the nth pair of regression sample images A first similarity degree of face image feature data is linearly distributed;
通过所述第一人脸模型分别提取所述n对回归样本图像的第二人脸特征数据,并计算每对回归样本图像的第二人脸特征数据的第二相似度;Extracting the second face feature data of the n pairs of regression sample images respectively through the first face model, and calculating the second similarity of the second face feature data of each pair of regression sample images;
根据所述n对回归样本图像的第一相似度和第二相似度,确定所述第一回归模型,其中,所述第一回归模型的自变量为所述第二相似度,因变量为所述第一相似度。According to the first similarity and second similarity of the n pairs of regression sample images, the first regression model is determined, wherein the independent variable of the first regression model is the second similarity, and the dependent variable is the second similarity. the first similarity.
可选地,收发机501在获取待检索人脸图像之前,还用于:Optionally, before the transceiver 501 acquires the face image to be retrieved, it is also used to:
通过图像采集单元获取监控人脸图像;Obtaining a monitoring face image through an image acquisition unit;
处理器502,还用于获取所述监控人脸图像的N组人脸特征数据,其中,所述监控人脸图像的N组人脸特征数据为分别从N种人脸模型的所述监控人脸图像中提取;The processor 502 is further configured to obtain N sets of face feature data of the monitored face image, wherein the N sets of face feature data of the monitored face image are the monitored person from N types of face models respectively. Extraction from face images;
处理器502,还用于将所述监控人脸图像的N组人脸特征数据存储于所述人脸特征库中。The processor 502 is further configured to store N sets of face feature data of the monitored face image in the face feature database.
可选地,所述人脸模型的标识信息包括版本号。Optionally, the identification information of the face model includes a version number.
本发明实施例能够实现图1或图2对应的方法实施例中的任意步骤,且能够达到相同的有益效果,为避免重复,此处不再赘述。The embodiment of the present invention can implement any step in the method embodiment corresponding to FIG. 1 or FIG. 2 , and can achieve the same beneficial effect. To avoid repetition, details are not repeated here.
本领域普通技术人员可以理解实现上述实施例方法的全部或者部分步骤是可以通过程序指令相关的硬件来完成,所述的程序可以存储于一计算机可读取介质中。本发明实施例还提供一种计算机存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如图1或图2所示的人脸特征检索方法的步骤,且能够达到相同的有益效果,为避免重复,在此不再赘述。Those of ordinary skill in the art can understand that all or part of the steps for implementing the methods of the above embodiments can be completed by program instructions related hardware, and the program can be stored in a computer-readable medium. An embodiment of the present invention also provides a computer storage medium, on which a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the face feature retrieval method as shown in FIG. 1 or FIG. 2 is realized. steps, and can achieve the same beneficial effect, in order to avoid repetition, it is not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed methods and devices may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may 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 modules may be in electrical, mechanical or other forms.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述人脸特征检索方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated modules implemented in the form of software function modules may be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute some steps of the face feature retrieval method described in various embodiments of the present invention . The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), magnetic disk or optical disk, etc., which can store program codes. medium.
以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present invention, and should cover all Within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811331149.2A CN111177436B (en) | 2018-11-09 | 2018-11-09 | Face feature retrieval method, device and equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811331149.2A CN111177436B (en) | 2018-11-09 | 2018-11-09 | Face feature retrieval method, device and equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111177436A CN111177436A (en) | 2020-05-19 |
| CN111177436B true CN111177436B (en) | 2023-08-22 |
Family
ID=70655241
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811331149.2A Active CN111177436B (en) | 2018-11-09 | 2018-11-09 | Face feature retrieval method, device and equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111177436B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111782855A (en) * | 2020-07-15 | 2020-10-16 | 上海依图网络科技有限公司 | Face image processing method, device, equipment and medium |
| CN112529008B (en) * | 2020-11-03 | 2024-08-02 | 浙江大华技术股份有限公司 | Image recognition and image feature processing method, electronic device and storage medium |
| CN112329797B (en) * | 2020-11-13 | 2024-08-13 | 杭州海康威视数字技术股份有限公司 | Target object retrieval method, device, server and storage medium |
| CN112699846B (en) * | 2021-01-12 | 2022-06-07 | 武汉大学 | Specific character and specific behavior combined retrieval method and device with identity consistency check function |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105956518A (en) * | 2016-04-21 | 2016-09-21 | 腾讯科技(深圳)有限公司 | Face identification method, device and system |
| CN106250858A (en) * | 2016-08-05 | 2016-12-21 | 重庆中科云丛科技有限公司 | A kind of recognition methods merging multiple face recognition algorithms and system |
-
2018
- 2018-11-09 CN CN201811331149.2A patent/CN111177436B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105956518A (en) * | 2016-04-21 | 2016-09-21 | 腾讯科技(深圳)有限公司 | Face identification method, device and system |
| WO2017181769A1 (en) * | 2016-04-21 | 2017-10-26 | 腾讯科技(深圳)有限公司 | Facial recognition method, apparatus and system, device, and storage medium |
| CN106250858A (en) * | 2016-08-05 | 2016-12-21 | 重庆中科云丛科技有限公司 | A kind of recognition methods merging multiple face recognition algorithms and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111177436A (en) | 2020-05-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12020473B2 (en) | Pedestrian re-identification method, device, electronic device and computer-readable storage medium | |
| US10719759B2 (en) | System for building a map and subsequent localization | |
| US20170060867A1 (en) | Video and image match searching | |
| CN111177436B (en) | Face feature retrieval method, device and equipment | |
| CN110147722A (en) | A kind of method for processing video frequency, video process apparatus and terminal device | |
| WO2021017303A1 (en) | Person re-identification method and apparatus, computer device and storage medium | |
| US20070195344A1 (en) | System, apparatus, method, program and recording medium for processing image | |
| CN110941978B (en) | Face clustering method and device for unidentified personnel and storage medium | |
| US10339408B2 (en) | Method and device for Quasi-Gibbs structure sampling by deep permutation for person identity inference | |
| US20160371541A1 (en) | Picture Ranking Method, and Terminal | |
| CN105184238A (en) | Human face recognition method and system | |
| US20210303903A1 (en) | Object recognition device, object recognition learning device, method, and program | |
| CN101587478A (en) | Methods and devices for training, automatically labeling and searching images | |
| CN114741544B (en) | Image retrieval method, retrieval database construction method, device, electronic device and medium | |
| JP2015111339A (en) | Image search system, image search apparatus, search server device, image search method, and image search program | |
| WO2014171735A1 (en) | Method and apparatus for improving matching performance and compression efficiency with descriptor code segment collision probability optimization | |
| JP2019211913A (en) | Feature quantity extraction device, method, and program | |
| CN111651624A (en) | Image retrieval method and device | |
| CN117132926B (en) | A video processing method, related devices, equipment and storage media | |
| CN116091984B (en) | Video object segmentation method, device, electronic equipment and storage medium | |
| US11403875B2 (en) | Processing method of learning face recognition by artificial intelligence module | |
| US8130285B2 (en) | Automated searching for probable matches in a video surveillance system | |
| EP4089572A1 (en) | Pedestrian search method, server, and storage medium | |
| CN111368867A (en) | Archive classification method and system and computer readable storage medium | |
| CN112434049A (en) | Table data storage method and device, storage medium and electronic device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |