CN114358710A - A face recognition sensorless attendance method, device and storage medium - Google Patents

A face recognition sensorless attendance method, device and storage medium Download PDF

Info

Publication number
CN114358710A
CN114358710A CN202111523996.0A CN202111523996A CN114358710A CN 114358710 A CN114358710 A CN 114358710A CN 202111523996 A CN202111523996 A CN 202111523996A CN 114358710 A CN114358710 A CN 114358710A
Authority
CN
China
Prior art keywords
attendance
partition
face recognition
office
face
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
CN202111523996.0A
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.)
Huazhong University of Science and Technology
Ezhou Industrial Technology Research Institute of Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
Ezhou Industrial Technology Research Institute of Huazhong University of Science and Technology
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 Huazhong University of Science and Technology, Ezhou Industrial Technology Research Institute of Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN202111523996.0A priority Critical patent/CN114358710A/en
Publication of CN114358710A publication Critical patent/CN114358710A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一种人脸识别无感考勤方法、装置及存储介质,所述方法包括步骤:获取办公区的分区树编码;获取所述办公区的人脸识别数据库;根据所述分区树编码获取考勤分区集;获取所述办公区的考勤源数据;根据所述考勤源数据生成考勤凭据;根据所述人脸识别数据库和所述考勤凭据生成考勤结果。本申请提供的一种人脸识别无感考勤方法、装置及存储介质,不设考勤关卡,可大幅加快考勤人员进入办公场地的时间,省时;考勤人员不需要排队进行人脸抓取,省力;节省考勤设备和考勤场地,省钱;对考勤系统的数据访问减少,安全;可直接验证考勤人员有没有在岗,准确。

Figure 202111523996

A face recognition sensorless attendance method, device and storage medium, the method comprises the steps of: acquiring a partition tree code of an office area; acquiring a face recognition database of the office area; acquiring an attendance partition set according to the partition tree code obtaining attendance source data of the office area; generating attendance credentials according to the attendance source data; generating attendance results according to the face recognition database and the attendance credentials. The present application provides a face recognition sensorless attendance method, device and storage medium, which does not have an attendance checkpoint, which can greatly speed up the time for attendance personnel to enter the office space and save time; attendance personnel do not need to queue for face capture, saving effort ; Save time attendance equipment and space, save money; Data access to the attendance system is reduced and safe; It can directly verify whether the attendance personnel are on duty and accurate.

Figure 202111523996

Description

一种人脸识别无感考勤方法、装置及存储介质A face recognition sensorless attendance method, device and storage medium

技术领域technical field

本发明属于员工考勤技术领域,具体涉及一种人脸识别无感考勤方法、装置及存储介质。The invention belongs to the technical field of employee attendance, and in particular relates to a face recognition sensorless attendance method, device and storage medium.

背景技术Background technique

在日常生产生活中,考勤实际上要鉴别三个东西:身份、时间和地点。现有的考勤方法主要有:In daily production and life, attendance actually needs to identify three things: identity, time and place. The existing attendance methods mainly include:

(1)人工考勤,需投入考勤记录人力,参与考勤的人到记录处进行签到;(1) For manual attendance, it is necessary to invest in attendance recording manpower, and those who participate in attendance go to the recording office to sign in;

(2)基于位置的考勤,参与考勤的人使用随身携带的设备或主动经由专用的应用程序将位置信息发送,或被动地在考勤场地由考勤机发现并记录;(2) Location-based attendance, participants use their portable devices or actively send location information through a dedicated application program, or passively find and record them at the attendance site by the attendance machine;

(3)基于特征的考勤,参与考勤的人员使用自身独一无二的特征,这个特征可以是区别于其他个体的自身特征,如指纹、虹膜和人脸,也可以是如考勤卡,工卡等身份标识;(3) Feature-based attendance, personnel participating in attendance use their own unique characteristics, which can be their own characteristics that are different from other individuals, such as fingerprints, iris and face, or can be identification such as time cards, work cards, etc. ;

(4)混合考勤,将几种考勤方式混合在一起提交复合信息的方法,例如,有些考勤软件要求上传考勤位置信息的同时要求上传考勤人员在工作场地的自拍照片,这同时带有了特征,并使得位置信息更加可信;更常见的,使用人力监督考勤系统进行补充。(4) Mixed attendance, a method of combining several attendance methods to submit composite information. For example, some attendance software requires uploading attendance location information and uploading self-portrait photos of attendance personnel at the workplace, which also has the characteristics of, And make the location information more credible; more commonly, it is supplemented by a human-supervised attendance system.

以上这些考勤方法在现实生活中都有应用场景,不存在绝对的先进和落后。例如,在经常外勤的工作组里,人工考勤简单而方便,其他的考勤方法费力不讨好。在特定办公场地(如写字楼)的考勤方法中,基于特征的考勤优势明显。The above attendance methods have application scenarios in real life, and there is no absolute advanced or backward. For example, in a work group that often works outside, manual attendance is simple and convenient, and other attendance methods are thankless. In the attendance method of a specific office space (such as an office building), the advantage of feature-based attendance is obvious.

现有的考勤方法往往是让参与考勤的人员在特定的考勤地点逐个进行刷脸、刷卡、按指纹等特征采集,这几乎出现在每一个办公场地里。在基于特征的考勤中,外在身份标识身份鉴别能力较差,代打现象屡禁不止。指纹也有同样的问题,而虹膜采集成本高且不易采集。The existing attendance methods are often to allow the personnel involved in attendance to swipe their faces, swipe cards, and collect fingerprints one by one at a specific attendance location, which appears in almost every office space. In the feature-based attendance, the external identity identification ability is poor, and the phenomenon of surrogacy is repeated. Fingerprints have the same problem, while iris collection is expensive and difficult to collect.

人脸易采集,特征丰富,是一种折中的方案,已成为最主流的考勤方法。然而,由于考勤时段固定且采集只能逐个进行,现有基于特征的考勤方法费时费力:考勤时间长,考勤排队也长。Faces are easy to collect and feature rich. It is a compromise solution and has become the most mainstream attendance method. However, since the attendance period is fixed and the collection can only be carried out one by one, the existing feature-based attendance methods are time-consuming and labor-intensive: the attendance time is long, and the attendance queue is also long.

为此,在参与考勤人员多的场景下,往往是采用布置更多特征采集设备的方法,因而又费钱,但考勤场地并不能随之扩大,且不经济,故而在考勤时段结束前的突发流量造成拥堵的情况依然存在。更不能接受的是,据此频繁出现的错过打卡的错误考勤会给员工还没开始工作就增加负担。采用人工协助固然有助于改善这些问题,但考勤数据的暴露和修改无异于饮鸩止渴。更要命的是,考勤场地和工作场地的分离使得考勤结果并不能真正代表参与考勤的人员的出勤情况。For this reason, in a scenario with many attendance personnel, it is often the method of arranging more feature collection equipment, which is expensive, but the attendance site cannot be expanded accordingly, and it is not economical, so the sudden change before the end of the attendance period The situation of traffic congestion caused by traffic still exists. What's even more unacceptable is that the frequent missed clock-in mistakes will increase the burden on employees before they start work. The use of human assistance can help improve these problems, but the exposure and modification of attendance data is tantamount to drinking poison to quench thirst. What's worse, the separation of the attendance site and the work site makes the attendance result not really representative of the attendance of the personnel involved in the attendance.

综上所述,目前的考勤方法存在以下问题:To sum up, the current attendance methods have the following problems:

(1)费时,考勤时间长;(1) Time-consuming and long attendance time;

(2)费力,排队辛苦,突发时段排队拥堵;(2) It is laborious, queuing is hard, and the queuing is congested during emergency hours;

(3)不经济,无论是增加考勤设备还是扩大考勤场地都需要额外的开支;(3) It is not economical, whether it is to increase the attendance equipment or expand the attendance site, additional expenses are required;

(4)折磨人,错过打卡产生错误考勤,繁重考勤任务增加额外负担;(4) Torturing people, missing punch cards will result in wrong attendance, and heavy attendance tasks will add extra burden;

(5)数据不安全,考勤数据暴露、可修改;(5) The data is not safe, and the attendance data is exposed and can be modified;

(6)考勤不准确,考勤场地和工作场地分离。(6) The attendance is inaccurate, and the attendance site is separated from the work site.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,本发明提供克服上述问题或者至少部分地解决上述问题的一种人脸识别无感考勤方法、装置及存储介质。In view of the above problems, the present invention provides a face recognition sensorless attendance method, device and storage medium that overcome the above problems or at least partially solve the above problems.

为解决上述技术问题,本发明提供了一种人脸识别无感考勤方法,所述方法包括步骤:In order to solve the above-mentioned technical problems, the present invention provides a non-sensing time attendance method for face recognition, the method includes the steps:

获取办公区的分区树编码;Get the partition tree code of the office area;

获取所述办公区的人脸识别数据库;Obtain the face recognition database of the office area;

根据所述分区树编码获取考勤分区集;Obtain the attendance partition set according to the partition tree code;

获取所述办公区的考勤源数据;Obtain the attendance source data of the office area;

根据所述考勤源数据生成考勤凭据;generate attendance credentials according to the attendance source data;

根据所述人脸识别数据库和所述考勤凭据生成考勤结果。An attendance result is generated according to the face recognition database and the attendance credential.

优选地,所述获取办公区的分区树编码包括步骤:Preferably, the obtaining of the partition tree code of the office area includes the steps:

对所述办公区进行分区并得到办公分区;partitioning the office area and obtaining office partitions;

获取每一所述办公分区内的工位个数;Obtain the number of workstations in each of the office partitions;

创建所述办公区的分区树;creating a partition tree of the office area;

根据所述办公区的个数在所述分区树上创建根节点;Create a root node on the partition tree according to the number of the office areas;

根据所述办公分区的个数在所述根节点上创建分支节点;Create branch nodes on the root node according to the number of office partitions;

根据每一所述办公分区内所述工位个数在对应所述分支节点上创建叶节点;Create a leaf node on the corresponding branch node according to the number of the workstations in each of the office partitions;

依次对所有所述根节点、所述分支节点和所述叶节点进行编码并得到所述分区树编码。All the root nodes, the branch nodes and the leaf nodes are sequentially encoded to obtain the partition tree encoding.

优选地,所述获取所述办公区的人脸识别数据库包括步骤:Preferably, the acquiring the face recognition database of the office area includes the steps of:

创建一个空置数据库;Create an empty database;

获取所述办公区的所有考勤人员;Obtain all attendance personnel in the said office area;

获取每一所述考勤人员的人脸采集图像;Acquiring a face collection image of each of the attendance personnel;

对每一所述人脸采集图像进行人脸特征提取并得到人脸特征识别数据;performing facial feature extraction on each of the face collection images and obtaining facial feature recognition data;

建立所述考勤人员与对应所述人脸特征识别数据的映射;establishing a mapping between the attendance personnel and the corresponding facial feature recognition data;

将所述映射存储至所述数据库中并得到所述人脸识别数据库。The mapping is stored in the database and the face recognition database is obtained.

优选地,所述根据所述分区树编码获取考勤分区集包括步骤:Preferably, the obtaining the attendance partition set according to the partition tree code comprises the steps of:

获取实际考勤人员;Get the actual attendance personnel;

获取每一所述实际考勤人员对应的办公分区和工位;Obtain the office partition and workstation corresponding to each of the actual attendance personnel;

获取所述分区树编码;obtain the partition tree code;

获取所述分区树编码中的所有分支节点和对应的所有叶节点;Obtain all branch nodes and all corresponding leaf nodes in the partition tree encoding;

根据所述办公分区和所述分支节点以及所述工位和所述叶节点生成所述实际考勤人员的考勤分区集。An attendance partition set of the actual attendance personnel is generated according to the office partition and the branch node, as well as the work station and the leaf node.

优选地,所述获取所述办公区的考勤源数据包括步骤:Preferably, the acquiring the attendance source data of the office area includes the steps of:

根据所述分区树编码在所述办公区中设置考勤数据采集设备;Set attendance data collection equipment in the office area according to the partition tree code;

通过所述考勤数据采集设备获取对应办公分区内的考勤图片;Obtain attendance pictures in the corresponding office partition through the attendance data collection device;

对每一所述考勤图片进行采集时间处理;Collect time processing for each of the attendance pictures;

对每一所述考勤图片进行采集分区处理;Collect and partition each of the attendance pictures;

根据所述采集时间处理和所述采集分区处理生成考勤源数据。The attendance source data is generated according to the collection time processing and the collection partition processing.

优选地,所述根据所述考勤源数据生成考勤凭据包括步骤:Preferably, the generating an attendance credential according to the attendance source data includes the steps of:

对所述考勤源数据进行人脸检测筛选并得到候选人脸图像;Perform face detection and screening on the attendance source data to obtain a candidate face image;

对所述候选人脸图像进行活体检测筛选并得到备选人脸图像;Performing live detection and screening on the candidate face image to obtain a candidate face image;

根据所述备选人脸图像生成标准正面人脸图像;generating a standard frontal face image according to the candidate face image;

获取所述标准正面人脸图像对应的采集时间和采集分区;obtaining the acquisition time and the acquisition zone corresponding to the standard frontal face image;

对每一所述标准正面人脸图像进行采集时间处理;Carrying out acquisition time processing on each of the standard frontal face images;

对每一所述标准正面人脸图像进行采集分区处理;Collecting and partitioning each of the standard frontal face images;

根据所述采集时间处理和所述采集分区处理生成考勤凭据。The attendance credential is generated according to the collection time processing and the collection partition processing.

优选地,所述根据所述人脸识别数据库和所述考勤凭据生成考勤结果包括步骤:Preferably, generating an attendance result according to the face recognition database and the attendance credential includes the steps of:

获取所述考勤凭据中的标准正面人脸图像;obtaining a standard frontal face image in the attendance credential;

对所述标准正面人脸图像进行人脸特征提取并得到人脸特征;performing facial feature extraction on the standard frontal face image and obtaining facial features;

将所述人脸特征与所述人脸识别数据库进行对比;comparing the facial features with the facial recognition database;

获取对比成功的所有剩余所述标准正面人脸图像;Obtain all remaining standard frontal face images that are successfully compared;

获取所有剩余所述标准正面人脸图像对应的考勤人员、采集时间和采集分区;Obtain the attendance personnel, collection time and collection area corresponding to all the remaining standard frontal face images;

根据所述考勤人员、所述采集时间和所述采集分区生成所述考勤结果。The attendance result is generated according to the attendance personnel, the collection time and the collection zone.

本申请还提供了一种人脸识别无感考勤装置,所述装置包括:The application also provides a face recognition sensorless attendance device, the device includes:

分区树编码获取模块,用于获取办公区的分区树编码;The partition tree code acquisition module is used to obtain the partition tree code of the office area;

人脸识别数据库获取模块,用于获取所述办公区的人脸识别数据库;a face recognition database acquisition module for acquiring the face recognition database of the office area;

考勤分区集获取模块,用于根据所述分区树编码获取考勤分区集;an attendance partition set acquisition module, used for acquiring the attendance partition set according to the partition tree code;

考勤源数据获取模块,用于获取所述办公区的考勤源数据;an attendance source data acquisition module, used to acquire the attendance source data of the office area;

考勤凭据生成模块,用于根据所述考勤源数据生成考勤凭据;an attendance credential generating module, used for generating an attendance credential according to the attendance source data;

考勤结果生成模块,用于根据所述人脸识别数据库和所述考勤凭据生成考勤结果。An attendance result generating module, configured to generate an attendance result according to the face recognition database and the attendance credential.

本申请还提供了一种电子设备,所述电子设备包括:The present application also provides an electronic device, the electronic device comprising:

至少一个处理器;以及,at least one processor; and,

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行前述任一所述人脸识别无感考勤方法。The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform any one of the aforementioned face recognition sensorless attendance method.

本申请还提供了一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使该计算机执行前述任一所述人脸识别无感考勤方法。The present application also provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute any of the aforementioned methods for non-sensing attendance by face recognition .

本发明实施例中的一个或多个技术方案,至少具有如下技术效果或优点:本申请提供的一种人脸识别无感考勤方法、装置及存储介质,不设考勤关卡,可大幅加快考勤人员进入办公场地的时间,省时;考勤人员不需要排队进行人脸抓取,省力;节省考勤设备和考勤场地,省钱;对考勤系统的数据访问减少,安全;可直接验证考勤人员有没有在岗,准确。One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages: a face recognition sensorless attendance method, device and storage medium provided by the present application do not set attendance checkpoints, which can greatly speed up attendance personnel The time to enter the office space is time-saving; the attendance personnel do not need to queue for face capture, which saves effort; the attendance equipment and the attendance space are saved, which saves money; the data access to the attendance system is reduced and safe; it can directly verify whether the attendance personnel are on duty or not. ,precise.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1是本发明实施例提供的一种人脸识别无感考勤方法的流程示意图;1 is a schematic flowchart of a face recognition sensorless attendance method provided by an embodiment of the present invention;

图2是本发明实施例提供的一种人脸识别无感考勤装置的结构示意图;2 is a schematic structural diagram of a face recognition sensorless attendance device provided by an embodiment of the present invention;

图3是本发明提供的一种电子设备的结构示意图;3 is a schematic structural diagram of an electronic device provided by the present invention;

图4是本发明提供的一种非暂态计算机可读存储介质的结构示意图。FIG. 4 is a schematic structural diagram of a non-transitory computer-readable storage medium provided by the present invention.

具体实施方式Detailed ways

下文将结合具体实施方式和实施例,具体阐述本发明,本发明的优点和各种效果将由此更加清楚地呈现。本领域技术人员应理解,这些具体实施方式和实施例是用于说明本发明,而非限制本发明。The present invention will be described in detail below with reference to specific embodiments and examples, and the advantages and various effects of the present invention will be more clearly presented therefrom. It should be understood by those skilled in the art that these specific embodiments and examples are used to illustrate the present invention, but not to limit the present invention.

在整个说明书中,除非另有特别说明,本文使用的术语应理解为如本领域中通常所使用的含义。因此,除非另有定义,本文使用的所有技术和科学术语具有与本发明所属领域技术人员的一般理解相同的含义。若存在矛盾,本说明书优先。Throughout the specification, unless specifically stated otherwise, terms used herein are to be understood as commonly used in the art. Therefore, unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. In case of conflict, the present specification takes precedence.

除非另有特别说明,本发明中用到的各种原材料、试剂、仪器和设备等,均可通过市场购买得到或者可通过现有方法制备得到。Unless otherwise specified, various raw materials, reagents, instruments and equipment used in the present invention can be purchased from the market or can be prepared by existing methods.

如图1,在本申请实施例中,本发明提供了一种人脸识别无感考勤方法,所述方法包括步骤:As shown in FIG. 1, in the embodiment of the present application, the present invention provides a non-sensing time attendance method for face recognition, and the method includes the steps:

S1:获取办公区的分区树编码;S1: Obtain the partition tree code of the office area;

在本申请实施例中,所述获取办公区的分区树编码包括步骤:In the embodiment of the present application, the obtaining of the partition tree code of the office area includes the steps:

对所述办公区进行分区并得到办公分区;partitioning the office area and obtaining office partitions;

获取每一所述办公分区内的工位个数;Obtain the number of workstations in each of the office partitions;

创建所述办公区的分区树;creating a partition tree of the office area;

根据所述办公区的个数在所述分区树上创建根节点;Create a root node on the partition tree according to the number of the office areas;

根据所述办公分区的个数在所述根节点上创建分支节点;Create branch nodes on the root node according to the number of office partitions;

根据每一所述办公分区内所述工位个数在对应所述分支节点上创建叶节点;Create a leaf node on the corresponding branch node according to the number of the workstations in each of the office partitions;

依次对所有所述根节点、所述分支节点和所述叶节点进行编码并得到所述分区树编码。All the root nodes, the branch nodes and the leaf nodes are sequentially encoded to obtain the partition tree encoding.

在本申请实施例中,现举例说明分区树编码的生成过程。办公区A分区为2个办公分区,分别为办公分区A1和A2,办公分区A1和A2内的工位个数均为1,分别用B1和B2表示,此时创建办公区的分区树,该分区树具有1个根节点(用A表示),该1个根节点具有2个分支节点(分别用A1和A2表示),A1分支节点具有1个叶节点(用B1表示),A2分支节点具有1个叶节点(用B2表示),然后依次对所有根节点、分支节点和叶节点进行编码并得到分区树编码,也即,分区树编码可以为AA1B1和AA2B2。In the embodiment of the present application, the generation process of the partition tree code is described by way of example. Office area A is divided into 2 office areas, namely office area A1 and A2. The number of workstations in office area A1 and A2 is 1, which are represented by B1 and B2 respectively. At this time, the partition tree of the office area is created. The partition tree has 1 root node (denoted by A), this 1 root node has 2 branch nodes (denoted by A1 and A2 respectively), the A1 branch node has 1 leaf node (denoted by B1), and the A2 branch node has 1 leaf node (represented by B2), then encode all root nodes, branch nodes and leaf nodes in turn to obtain the partition tree encoding, that is, the partition tree encoding can be AA1B1 and AA2B2.

在本申请实施例中,当分区树建立后,不仅可以在叶节点(分支节点和叶节点)上进行考勤,分区树上所有的节点(包括根节点)都可以作为考勤地点。在一般的办公室里,可以要求一个员工在工位上,也可以要求员工在某一办公室,甚至进入整个场地即可。在某些场景下,可能没有工位的概念,此时只需要员工进入工位级(具体区域)即可,而不一定需要落到工位(如分支节点和叶节点)上。In this embodiment of the present application, after the partition tree is established, not only can attendance be performed on leaf nodes (branch nodes and leaf nodes), but all nodes (including the root node) on the partition tree can be used as attendance locations. In a general office, an employee can be required to be at the workstation, or an employee can be required to be in a certain office, or even to enter the entire site. In some scenarios, there may be no concept of workstations. In this case, employees only need to enter the workstation level (specific area), and do not necessarily need to fall on the workstations (such as branch nodes and leaf nodes).

S2:获取所述办公区的人脸识别数据库;S2: Obtain the face recognition database of the office area;

在本申请实施例中,所述获取所述办公区的人脸识别数据库包括步骤:In the embodiment of the present application, the acquiring the face recognition database of the office area includes the steps:

创建一个空置数据库;Create an empty database;

获取所述办公区的所有考勤人员;Obtain all attendance personnel in the said office area;

获取每一所述考勤人员的人脸采集图像;Acquiring a face collection image of each of the attendance personnel;

对每一所述人脸采集图像进行人脸特征提取并得到人脸特征识别数据;performing facial feature extraction on each of the face collection images and obtaining facial feature recognition data;

建立所述考勤人员与对应所述人脸特征识别数据的映射;establishing a mapping between the attendance personnel and the corresponding facial feature recognition data;

将所述映射存储至所述数据库中并得到所述人脸识别数据库。The mapping is stored in the database and the face recognition database is obtained.

在本申请实施例中,人脸识别数据库可以通过如下步骤创建得到:采集办公区的所有考勤人员的人脸采集图像,并对每一人脸采集图像进行人脸特征提取得到人脸特征识别数据,然后建立考勤人员与对应人脸特征识别数据的映射,最后将映射存储至数据库中并得到人脸识别数据库。In the embodiment of the present application, the face recognition database can be created through the following steps: collecting face collection images of all attendance personnel in the office area, and performing face feature extraction on each face collection image to obtain face feature recognition data, Then, the mapping between attendance personnel and the corresponding facial feature recognition data is established, and finally the mapping is stored in the database to obtain the facial recognition database.

S3:根据所述分区树编码获取考勤分区集;S3: Obtain the attendance partition set according to the partition tree code;

在本申请实施例中,所述根据所述分区树编码获取考勤分区集包括步骤:In the embodiment of the present application, the obtaining the attendance partition set according to the partition tree code includes the steps:

获取实际考勤人员;Get the actual attendance personnel;

获取每一所述实际考勤人员对应的办公分区和工位;Obtain the office partition and workstation corresponding to each of the actual attendance personnel;

获取所述分区树编码;obtain the partition tree code;

获取所述分区树编码中的所有分支节点和对应的所有叶节点;Obtain all branch nodes and all corresponding leaf nodes in the partition tree encoding;

根据所述办公分区和所述分支节点以及所述工位和所述叶节点生成所述实际考勤人员的考勤分区集。An attendance partition set of the actual attendance personnel is generated according to the office partition and the branch node, as well as the work station and the leaf node.

在本申请实施例中,当根据所述分区树编码获取考勤分区集时,首先获取需要考勤的实际考勤人员(比如为C),实际考勤人员C的办公分区为A1,工位为B1,则可以根据分区树编码AA1B1和AA2B2生成实际考勤人员C的考勤分区集,该考勤分区集用于唯一的定位实际考勤人员所属的办公分区和工位,比如,实际考勤人员C的考勤分区集可以表示为(A1,B1)。In the embodiment of the present application, when obtaining the attendance partition set according to the partition tree code, first obtain the actual attendance personnel (such as C) who need attendance, and the office partition of the actual attendance personnel C is A1, and the work position is B1, then The attendance partition set of the actual attendance staff C can be generated according to the partition tree codes AA1B1 and AA2B2. The attendance partition set is used to uniquely locate the office partition and workstation to which the actual attendance staff belongs. For example, the attendance partition set of the actual attendance staff C can represent is (A1, B1).

S4:获取所述办公区的考勤源数据;S4: Obtain the attendance source data of the office area;

在本申请实施例中,所述获取所述办公区的考勤源数据包括步骤:In the embodiment of the present application, the acquiring the attendance source data of the office area includes the steps:

根据所述分区树编码在所述办公区中设置考勤数据采集设备;Set attendance data collection equipment in the office area according to the partition tree code;

通过所述考勤数据采集设备获取对应办公分区内的考勤图片;Obtain attendance pictures in the corresponding office partition through the attendance data collection device;

对每一所述考勤图片进行采集时间处理;Collect time processing for each of the attendance pictures;

对每一所述考勤图片进行采集分区处理;Collect and partition each of the attendance pictures;

根据所述采集时间处理和所述采集分区处理生成考勤源数据。The attendance source data is generated according to the collection time processing and the collection partition processing.

在本申请实施例中,由于分区树编码具有2个(AA1B1和AA2B2),则可以准备2个考勤数据采集设备,分别设置在办公分区A1和A2内,并分别获取对应办公分区A1和A2内的考勤图片(可以定期或者不定期的拍摄办公分区内的图片),并对每个考勤图片进行采集时间处理(标记上拍摄时间)和采集分区处理(标记上办公分区编号),如此,每个考勤图片都会具有一个拍摄时间和办公分区编号。In the embodiment of the present application, since there are two partition tree codes (AA1B1 and AA2B2), two attendance data collection devices can be prepared, which are respectively set in the office partitions A1 and A2, and obtain the corresponding data in the office partitions A1 and A2 respectively. The attendance picture (the pictures in the office partition can be taken regularly or irregularly), and the collection time processing (mark the shooting time) and the collection partition processing (mark the office partition number) for each attendance picture, so, each attendance picture Attendance pictures will have a shooting time and office partition number.

S5:根据所述考勤源数据生成考勤凭据;S5: generate attendance credentials according to the attendance source data;

在本申请实施例中,所述根据所述考勤源数据生成考勤凭据包括步骤:In the embodiment of the present application, the generating of the attendance credential according to the attendance source data includes the steps:

对所述考勤源数据进行人脸检测筛选并得到候选人脸图像;Perform face detection and screening on the attendance source data to obtain a candidate face image;

对所述候选人脸图像进行活体检测筛选并得到备选人脸图像;Performing live detection and screening on the candidate face image to obtain a candidate face image;

根据所述备选人脸图像生成标准正面人脸图像;generating a standard frontal face image according to the candidate face image;

获取所述标准正面人脸图像对应的采集时间和采集分区;obtaining the acquisition time and the acquisition zone corresponding to the standard frontal face image;

对每一所述标准正面人脸图像进行采集时间处理;Carrying out acquisition time processing on each of the standard frontal face images;

对每一所述标准正面人脸图像进行采集分区处理;Collecting and partitioning each of the standard frontal face images;

根据所述采集时间处理和所述采集分区处理生成考勤凭据。The attendance credential is generated according to the collection time processing and the collection partition processing.

在本申请实施例中,由于考勤图片中除了人脸还可能包括其他图片(如物体),此时需要对考勤源数据进行人脸检测筛选,以从所有的考勤图片中筛选出含有人脸的图片,称为候选人脸图像;然后对候选人脸图像进行活体检测筛选并得到备选人脸图像(比如检测活体信息,如虹膜信息等,以防止采用提前拍摄的图片进行考勤作弊,或者误将办公区内的人脸照片作为考勤图片),然后根据备选人脸图像生成标准正面人脸图像(也即将不完整的人脸图像生成完整的正面人脸图像),接着获取标准正面人脸图像对应的采集时间和采集分区(也即标准正面人脸图像对应的候选人脸图像所属的拍摄时间和办公分区编号),然后对每个考勤图片进行采集时间处理(标记上拍摄时间)和采集分区处理(标记上办公分区编号),如此,可以生成考勤凭据。In the embodiment of the present application, since the attendance picture may include other pictures (such as objects) in addition to the human face, it is necessary to perform face detection and screening on the attendance source data at this time, so as to filter out the faces containing the human face from all the attendance pictures. The picture is called the candidate face image; then the candidate face image is subjected to in vivo detection and screening to obtain candidate face images (such as detection of in vivo information, such as iris information, etc., to prevent the use of pictures taken in advance for attendance cheating, or false Use the face photo in the office area as the attendance picture), then generate the standard frontal face image according to the candidate face image (that is, generate the complete frontal face image from the incomplete face image), and then obtain the standard frontal face The collection time and collection division corresponding to the image (that is, the shooting time and office division number of the candidate face image corresponding to the standard frontal face image), and then the collection time processing (marking the shooting time) and collection of each attendance picture are performed. Partition processing (marked with the office partition number), so that attendance credentials can be generated.

S6:根据所述人脸识别数据库和所述考勤凭据生成考勤结果。S6: Generate an attendance result according to the face recognition database and the attendance credential.

在本申请实施例中,所述根据所述人脸识别数据库和所述考勤凭据生成考勤结果包括步骤:In the embodiment of the present application, the generating an attendance result according to the face recognition database and the attendance credential includes the steps:

获取所述考勤凭据中的标准正面人脸图像;obtaining a standard frontal face image in the attendance credential;

对所述标准正面人脸图像进行人脸特征提取并得到人脸特征;performing facial feature extraction on the standard frontal face image and obtaining facial features;

将所述人脸特征与所述人脸识别数据库进行对比;comparing the facial features with the facial recognition database;

获取对比成功的所有剩余所述标准正面人脸图像;Obtain all remaining standard frontal face images that are successfully compared;

获取所有剩余所述标准正面人脸图像对应的考勤人员、采集时间和采集分区;Obtain the attendance personnel, collection time and collection area corresponding to all the remaining standard frontal face images;

根据所述考勤人员、所述采集时间和所述采集分区生成所述考勤结果。The attendance result is generated according to the attendance personnel, the collection time and the collection zone.

在本申请实施例中,提取标准正面人脸图像的人脸特征提取并得到人脸特征,然后将人脸特征与所述人脸识别数据库进行对比,当对比成功后说明标准正面人脸图像所对于的考勤人员是实现采集过人脸图像的考勤人员,也即属于该办公区内的工作人员,此时获取剩余标准正面人脸图像对应的考勤人员(考勤人员名字)、采集时间(拍摄时间)和采集分区(办公分区编号),然后即可生成考勤结果,比如考勤人员C的考勤结果为:C(考勤人员名字)—09:00(拍摄时间)—A1(办公分区编号)。In the embodiment of the present application, the face features of the standard frontal face image are extracted to obtain the face features, and then the face features are compared with the face recognition database. When the comparison is successful, it is explained that the standard frontal face image has For the attendance personnel who have collected face images, that is, the staff in the office area, the attendance personnel (name of attendance personnel), collection time (shooting time) corresponding to the remaining standard frontal face images are obtained. ) and the collection partition (office partition number), and then the attendance result can be generated. For example, the attendance result of attendance staff C is: C (attendance staff name)—09:00 (shooting time)—A1 (office partition number).

如图2,在本申请实施例中,本申请还提供了一种人脸识别无感考勤装置,所述装置包括:As shown in FIG. 2, in the embodiment of the present application, the present application also provides a face recognition sensorless attendance device, the device includes:

分区树编码获取模块10,用于获取办公区的分区树编码;A partition tree code acquisition module 10, for acquiring the partition tree code of the office area;

人脸识别数据库获取模块20,用于获取所述办公区的人脸识别数据库;a face recognition database acquisition module 20 for acquiring the face recognition database of the office area;

考勤分区集获取模块30,用于根据所述分区树编码获取考勤分区集;an attendance partition set acquiring module 30, configured to acquire an attendance partition set according to the partition tree code;

考勤源数据获取模块40,用于获取所述办公区的考勤源数据;an attendance source data acquisition module 40, configured to acquire the attendance source data of the office area;

考勤凭据生成模块50,用于根据所述考勤源数据生成考勤凭据;An attendance credential generating module 50, configured to generate an attendance credential according to the attendance source data;

考勤结果生成模块60,用于根据所述人脸识别数据库和所述考勤凭据生成考勤结果。The attendance result generating module 60 is configured to generate an attendance result according to the face recognition database and the attendance credential.

本申请提供的一种人脸识别无感考勤装置可以执行上述步骤提供的一种人脸识别无感考勤方法。A face recognition sensorless attendance device provided by the present application can execute the face recognition sensorless attendance method provided by the above steps.

下面参考图3,其示出了适于用来实现本公开实施例的电子设备100的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图3示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring next to FIG. 3 , it shows a schematic structural diagram of an electronic device 100 suitable for implementing an embodiment of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 3 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.

如图3所示,电子设备100可以包括处理装置(例如中央处理器、图形处理器等)101,其可以根据存储在只读存储器(ROM)102中的程序或者从存储装置108加载到随机访问存储器(RAM)103中的程序而执行各种适当的动作和处理。在RAM 103中,还存储有电子设备100操作所需的各种程序和数据。处理装置101、ROM 102以及RAM 103通过总线104彼此相连。输入/输出(I/O)接口105也连接至总线104。As shown in FIG. 3 , the electronic device 100 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 101 that may be loaded into random access according to a program stored in a read only memory (ROM) 102 or from a storage device 108 Various appropriate actions and processes are executed by the programs in the memory (RAM) 103 . In the RAM 103, various programs and data necessary for the operation of the electronic device 100 are also stored. The processing device 101 , the ROM 102 , and the RAM 103 are connected to each other through a bus 104 . An input/output (I/O) interface 105 is also connected to the bus 104 .

通常,以下装置可以连接至I/O接口105:包括例如触摸屏、触摸板、键盘、鼠标、图像传感器、麦克风、加速度计、陀螺仪等的输入装置106;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置107;包括例如磁带、硬盘等的存储装置108;以及通信装置109。通信装置109可以允许电子设备100与其他设备进行无线或有线通信以交换数据。虽然图中示出了具有各种装置的电子设备100,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 105: input devices 106 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, An output device 107 of a vibrator or the like; a storage device 108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 109 . Communication means 109 may allow electronic device 100 to communicate wirelessly or by wire with other devices to exchange data. While the figures show electronic device 100 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置109从网络上被下载和安装,或者从存储装置108被安装,或者从ROM 102被安装。在该计算机程序被处理装置101执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 109 , or from the storage device 108 , or from the ROM 102 . When the computer program is executed by the processing apparatus 101, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.

下面参考图4,其示出了适于用来实现本公开实施例的计算机可读存储介质的结构示意图,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时能够实现如上述中任一所述的人脸识别无感考勤方法。4, which shows a schematic structural diagram of a computer-readable storage medium suitable for implementing the embodiments of the present disclosure, where the computer-readable storage medium stores a computer program, and the computer program can be executed by a processor. Implement the sensorless attendance method for face recognition as described in any one of the above.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, 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. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取至少两个网际协议地址;向节点评价设备发送包括所述至少两个网际协议地址的节点评价请求,其中,所述节点评价设备从所述至少两个网际协议地址中,选取网际协议地址并返回;接收所述节点评价设备返回的网际协议地址;其中,所获取的网际协议地址指示内容分发网络中的边缘节点。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: acquires at least two Internet Protocol addresses; A node evaluation request for an Internet Protocol address, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein the obtained The Internet Protocol address indicates an edge node in the content distribution network.

或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:接收包括至少两个网际协议地址的节点评价请求;从所述至少两个网际协议地址中,选取网际协议地址;返回选取出的网际协议地址;其中,接收到的网际协议地址指示内容分发网络中的边缘节点。Alternatively, the above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; From the at least two Internet Protocol addresses, the Internet Protocol address is selected; the selected Internet Protocol address is returned; wherein, the received Internet Protocol address indicates an edge node in the content distribution network.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or 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 the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。The units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Wherein, the name of the unit does not constitute a limitation of the unit itself under certain circumstances, for example, the first obtaining unit may also be described as "a unit that obtains at least two Internet Protocol addresses".

本申请提供的一种人脸识别无感考勤方法、装置及存储介质,不设考勤关卡,可大幅加快考勤人员进入办公场地的时间,省时;考勤人员不需要排队进行人脸抓取,省力;节省考勤设备和考勤场地,省钱;对考勤系统的数据访问减少,安全;可直接验证考勤人员有没有在岗,准确。The present application provides a face recognition non-inductive attendance method, device and storage medium, which does not have an attendance checkpoint, which can greatly speed up the time for attendance personnel to enter the office space and save time; attendance personnel do not need to queue for face capture, saving effort ; Save time attendance equipment and space, and save money; Data access to the attendance system is reduced and safe; It can directly verify whether the attendance personnel are on duty, which is accurate.

应当理解的是,本发明的上述具体实施方式仅仅用于示例性说明或解释本发明的原理,而不构成对本发明的限制。因此,在不偏离本发明的精神和范围的情况下所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。此外,本发明所附权利要求旨在涵盖落入所附权利要求范围和边界、或者这种范围和边界的等同形式内的全部变化和修改例。It should be understood that the above-mentioned specific embodiments of the present invention are only used to illustrate or explain the principle of the present invention, but not to limit the present invention. Therefore, any modifications, equivalent replacements, improvements, etc. made without departing from the spirit and scope of the present invention should be included within the protection scope of the present invention. Furthermore, the appended claims of this invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalents of such scope and boundaries.

Claims (10)

1.一种人脸识别无感考勤方法,其特征在于,所述方法包括步骤:1. a face recognition non-sensing attendance method, is characterized in that, described method comprises the steps: 获取办公区的分区树编码;Get the partition tree code of the office area; 获取所述办公区的人脸识别数据库;Obtain the face recognition database of the office area; 根据所述分区树编码获取考勤分区集;Obtain the attendance partition set according to the partition tree code; 获取所述办公区的考勤源数据;Obtain the attendance source data of the office area; 根据所述考勤源数据生成考勤凭据;generate attendance credentials according to the attendance source data; 根据所述人脸识别数据库和所述考勤凭据生成考勤结果。An attendance result is generated according to the face recognition database and the attendance credential. 2.根据权利要求1所述的人脸识别无感考勤方法,其特征在于,所述获取办公区的分区树编码包括步骤:2. face recognition non-sensing time attendance method according to claim 1, is characterized in that, described obtaining the partition tree coding of office area comprises the steps: 对所述办公区进行分区并得到办公分区;partitioning the office area and obtaining office partitions; 获取每一所述办公分区内的工位个数;Obtain the number of workstations in each of the office partitions; 创建所述办公区的分区树;creating a partition tree of the office area; 根据所述办公区的个数在所述分区树上创建根节点;Create a root node on the partition tree according to the number of the office areas; 根据所述办公分区的个数在所述根节点上创建分支节点;Create branch nodes on the root node according to the number of office partitions; 根据每一所述办公分区内所述工位个数在对应所述分支节点上创建叶节点;Create a leaf node on the corresponding branch node according to the number of the workstations in each of the office partitions; 依次对所有所述根节点、所述分支节点和所述叶节点进行编码并得到所述分区树编码。All the root nodes, the branch nodes and the leaf nodes are sequentially encoded to obtain the partition tree encoding. 3.根据权利要求1所述的人脸识别无感考勤方法,其特征在于,所述获取所述办公区的人脸识别数据库包括步骤:3. The face recognition non-sensing attendance method according to claim 1, wherein the acquisition of the face recognition database of the office area comprises the steps: 创建一个空置数据库;Create an empty database; 获取所述办公区的所有考勤人员;Obtain all attendance personnel in the said office area; 获取每一所述考勤人员的人脸采集图像;Acquiring a face collection image of each of the attendance personnel; 对每一所述人脸采集图像进行人脸特征提取并得到人脸特征识别数据;performing facial feature extraction on each of the face collection images and obtaining facial feature recognition data; 建立所述考勤人员与对应所述人脸特征识别数据的映射;establishing a mapping between the attendance personnel and the corresponding facial feature recognition data; 将所述映射存储至所述数据库中并得到所述人脸识别数据库。The mapping is stored in the database and the face recognition database is obtained. 4.根据权利要求1所述的人脸识别无感考勤方法,其特征在于,所述根据所述分区树编码获取考勤分区集包括步骤:4. face recognition non-sensing attendance method according to claim 1, is characterized in that, described obtaining attendance partition set according to described partition tree coding comprises the steps: 获取实际考勤人员;Get the actual attendance personnel; 获取每一所述实际考勤人员对应的办公分区和工位;Obtain the office partition and workstation corresponding to each of the actual attendance personnel; 获取所述分区树编码;obtain the partition tree code; 获取所述分区树编码中的所有分支节点和对应的所有叶节点;Obtain all branch nodes and all corresponding leaf nodes in the partition tree encoding; 根据所述办公分区和所述分支节点以及所述工位和所述叶节点生成所述实际考勤人员的考勤分区集。An attendance partition set of the actual attendance personnel is generated according to the office partition and the branch node, as well as the work station and the leaf node. 5.根据权利要求1所述的人脸识别无感考勤方法,其特征在于,所述获取所述办公区的考勤源数据包括步骤:5. The sensorless attendance method for face recognition according to claim 1, wherein the acquiring the attendance source data of the office area comprises the steps of: 根据所述分区树编码在所述办公区中设置考勤数据采集设备;Set attendance data collection equipment in the office area according to the partition tree code; 通过所述考勤数据采集设备获取对应办公分区内的考勤图片;Obtain attendance pictures in the corresponding office partition through the attendance data collection device; 对每一所述考勤图片进行采集时间处理;Collect time processing for each of the attendance pictures; 对每一所述考勤图片进行采集分区处理;Collect and partition each of the attendance pictures; 根据所述采集时间处理和所述采集分区处理生成考勤源数据。The attendance source data is generated according to the collection time processing and the collection partition processing. 6.根据权利要求1所述的人脸识别无感考勤方法,其特征在于,所述根据所述考勤源数据生成考勤凭据包括步骤:6. The face recognition non-inductive attendance method according to claim 1, wherein the generation of attendance credentials according to the attendance source data comprises the steps of: 对所述考勤源数据进行人脸检测筛选并得到候选人脸图像;Perform face detection and screening on the attendance source data to obtain a candidate face image; 对所述候选人脸图像进行活体检测筛选并得到备选人脸图像;Performing live detection and screening on the candidate face image to obtain a candidate face image; 根据所述备选人脸图像生成标准正面人脸图像;generating a standard frontal face image according to the candidate face image; 获取所述标准正面人脸图像对应的采集时间和采集分区;obtaining the acquisition time and the acquisition zone corresponding to the standard frontal face image; 对每一所述标准正面人脸图像进行采集时间处理;Carrying out acquisition time processing on each of the standard frontal face images; 对每一所述标准正面人脸图像进行采集分区处理;Collecting and partitioning each of the standard frontal face images; 根据所述采集时间处理和所述采集分区处理生成考勤凭据。The attendance credential is generated according to the collection time processing and the collection partition processing. 7.根据权利要求1所述的人脸识别无感考勤方法,其特征在于,所述根据所述人脸识别数据库和所述考勤凭据生成考勤结果包括步骤:7. The face recognition non-sensing attendance method according to claim 1, wherein the generating an attendance result according to the face recognition database and the attendance credential comprises the steps: 获取所述考勤凭据中的标准正面人脸图像;obtaining a standard frontal face image in the attendance credential; 对所述标准正面人脸图像进行人脸特征提取并得到人脸特征;performing facial feature extraction on the standard frontal face image and obtaining facial features; 将所述人脸特征与所述人脸识别数据库进行对比;comparing the facial features with the facial recognition database; 获取对比成功的所有剩余所述标准正面人脸图像;Obtain all remaining standard frontal face images that are successfully compared; 获取所有剩余所述标准正面人脸图像对应的考勤人员、采集时间和采集分区;Obtain the attendance personnel, collection time and collection area corresponding to all the remaining standard frontal face images; 根据所述考勤人员、所述采集时间和所述采集分区生成所述考勤结果。The attendance result is generated according to the attendance personnel, the collection time and the collection zone. 8.一种人脸识别无感考勤装置,其特征在于,所述装置包括:8. A sensorless time attendance device for face recognition, characterized in that the device comprises: 分区树编码获取模块,用于获取办公区的分区树编码;The partition tree code acquisition module is used to obtain the partition tree code of the office area; 人脸识别数据库获取模块,用于获取所述办公区的人脸识别数据库;a face recognition database acquisition module for acquiring the face recognition database of the office area; 考勤分区集获取模块,用于根据所述分区树编码获取考勤分区集;an attendance partition set acquisition module, used for acquiring the attendance partition set according to the partition tree code; 考勤源数据获取模块,用于获取所述办公区的考勤源数据;an attendance source data acquisition module, used to acquire the attendance source data of the office area; 考勤凭据生成模块,用于根据所述考勤源数据生成考勤凭据;an attendance credential generating module, used for generating an attendance credential according to the attendance source data; 考勤结果生成模块,用于根据所述人脸识别数据库和所述考勤凭据生成考勤结果。An attendance result generating module, configured to generate an attendance result according to the face recognition database and the attendance credential. 9.一种电子设备,其特征在于,所述电子设备包括:9. An electronic device, characterized in that the electronic device comprises: 至少一个处理器;以及,at least one processor; and, 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行前述任一权利要求1-7所述人脸识别无感考勤方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor, to enable the at least one processor to execute the person described in any of the preceding claims 1-7. Face recognition sensorless attendance method. 10.一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使该计算机执行前述任一权利要求1-7所述人脸识别无感考勤方法。10. A non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium storing computer instructions, the computer instructions being used to make the computer perform the face recognition insensitivity of any one of the preceding claims 1-7. Attendance method.
CN202111523996.0A 2021-12-12 2021-12-12 A face recognition sensorless attendance method, device and storage medium Pending CN114358710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111523996.0A CN114358710A (en) 2021-12-12 2021-12-12 A face recognition sensorless attendance method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111523996.0A CN114358710A (en) 2021-12-12 2021-12-12 A face recognition sensorless attendance method, device and storage medium

Publications (1)

Publication Number Publication Date
CN114358710A true CN114358710A (en) 2022-04-15

Family

ID=81098973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111523996.0A Pending CN114358710A (en) 2021-12-12 2021-12-12 A face recognition sensorless attendance method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114358710A (en)

Similar Documents

Publication Publication Date Title
CN106845470B (en) Map data acquisition method and device
CN108573268A (en) Image-recognizing method and device, image processing method and device and storage medium
CN108846911A (en) A kind of Work attendance method and device
CN110619314A (en) Safety helmet detection method and device and electronic equipment
CN110618982B (en) Multi-source heterogeneous data processing method, device, medium and electronic equipment
CN108765610A (en) Attendance management method for work transmission line scene
US20170177423A1 (en) Management system for notifications using contextual metadata
CN112256682B (en) Data quality detection method and device for multi-dimensional heterogeneous data
CN111222509A (en) Target detection method and device and electronic equipment
CN111143496B (en) Method and device for determining target objects with similar tracks
CN114708545A (en) Image-based object detection method, device, equipment and storage medium
US20230418794A1 (en) Data processing method, and non-transitory medium and electronic device
CN112215141B (en) Biological feature recognition method and device, electronic equipment and storage medium
CN112990017B (en) Smart city big data analysis method and monitoring system
CN110879975B (en) Personnel flow detection method and device and electronic equipment
CN106326328B (en) Picture transmitter device, image sending method and recording medium
CN112542172A (en) Communication auxiliary method, device, equipment and medium based on online conference
CN114358710A (en) A face recognition sensorless attendance method, device and storage medium
CN112040418A (en) Visitor positioning method, device, server, storage medium and system
US20220394098A1 (en) Information processing system, system, and information processing method
CN110263721A (en) Car light setting method and equipment
US10699105B2 (en) Workflow creation by image analysis
CN111694875B (en) Method and device for outputting information
CN110458743B (en) Community management method, device, equipment and storage medium based on big data analysis
CN112633119A (en) Human body attribute identification method and device, electronic equipment and 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