[go: up one dir, main page]

CN109508705B - Dynamic threshold face comparison setting method based on the validity period of ID card - Google Patents

Dynamic threshold face comparison setting method based on the validity period of ID card Download PDF

Info

Publication number
CN109508705B
CN109508705B CN201811653315.0A CN201811653315A CN109508705B CN 109508705 B CN109508705 B CN 109508705B CN 201811653315 A CN201811653315 A CN 201811653315A CN 109508705 B CN109508705 B CN 109508705B
Authority
CN
China
Prior art keywords
card
time
validity period
score
dynamic
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
Application number
CN201811653315.0A
Other languages
Chinese (zh)
Other versions
CN109508705A (en
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.)
Hebei Sanchuan Technology Co ltd
Original Assignee
Hebei Sanchuan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hebei Sanchuan Technology Co ltd filed Critical Hebei Sanchuan Technology Co ltd
Priority to CN201811653315.0A priority Critical patent/CN109508705B/en
Publication of CN109508705A publication Critical patent/CN109508705A/en
Application granted granted Critical
Publication of CN109508705B publication Critical patent/CN109508705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2413Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on distances to training or reference patterns
    • G06F18/24147Distances to closest patterns, e.g. nearest neighbour classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Collating Specific Patterns (AREA)

Abstract

本发明涉及基于身份证有效期的动态人脸比对阈值设置方法,包括获取身份证的已办证时间;根据已经办证时间和身份证有效期限,动态调整人证比对的阈值。还包括人证比对模块所述人证比对模块还用于将获取的身份证照片与现场采集的人脸照片进行比对,如果比对后的比分大于动态阈值则说明是同一人,如果比对后的比分小于动态阈值则说明不是同一人,需要进行进一步的核查。本发明提供的动态阈值设置方法解决由设置固定阈值引起的比对不通过情况的发生;增加人证比对的通过率可以提高旅店的入住效率;增加旅客的入住体验感。

Figure 201811653315

The invention relates to a method for setting a dynamic face comparison threshold value based on the validity period of an ID card, which includes obtaining the certificate application time of the ID card; It also includes a witness comparison module. The witness comparison module is also used to compare the obtained ID card photo with the face photo collected on the spot. If the comparison score is greater than the dynamic threshold, it means that it is the same person. If the score after comparison is less than the dynamic threshold, it means that it is not the same person, and further verification is required. The dynamic threshold setting method provided by the present invention solves the occurrence of comparison failure caused by setting a fixed threshold; increasing the pass rate of witness comparison can improve the check-in efficiency of the hotel; and increase the passenger's check-in experience.

Figure 201811653315

Description

基于身份证有效期的动态阈值人脸比对设置方法Dynamic threshold face comparison setting method based on the validity period of ID card

技术领域technical field

本发明属于人脸识别技术领域,具体涉及一种基于身份证有效期的动态人脸比对阈值设置方法。The invention belongs to the technical field of face recognition, and in particular relates to a dynamic face comparison threshold setting method based on the validity period of an ID card.

背景技术Background technique

身份证有效期分为十年、二十年、长期;在不同的有效期内,时常会出现实际的照片和身份证上的照片差距较大,特别是刚办证初期的照片和办证到期末期的实际相片差异更大,现有对身份证的人证比对采用统一的阈值,这种采用统一固定的阈值进行比对的方法,由于实际照片与身份证上证件照片存在差异,会造成比对失败的情况经常发生。The validity period of the ID card is divided into ten years, twenty years, and long-term; in different validity periods, there is often a large gap between the actual photo and the photo on the ID card, especially the photo at the initial stage of the application and the actual photo at the end of the expiration period. The difference between the photos is even greater. The existing human-to-identity comparison of ID cards adopts a unified threshold. This method of using a unified and fixed threshold for comparison will cause the comparison to fail due to the difference between the actual photo and the ID photo on the ID card. situation occurs frequently.

随着旅店业人脸识别大规模的推进和进行,同人同证的情况下比对失败的概率大幅度上升,追其原因我们的身份证有效期分为十年、二十年、长期;在不同的有效期内如刚办证初期和办证到期末期,实际的照片和身份证上的照片差距较大,从而造成同人同证比对不通过;With the large-scale promotion and implementation of face recognition in the hotel industry, the probability of failure of the comparison in the case of the same person with the same certificate has increased significantly. The reason for this is that our ID card is valid for ten years, twenty years, and long-term; During the validity period of the certificate, such as the initial period of the certificate application and the end of the certificate application period, there is a large gap between the actual photo and the photo on the ID card, resulting in the failure of the comparison of the same person and the same certificate;

旅店业环境不同,有些旅店业灯光昏暗、有些逆光严重,再加上身份证照片和实际照片的差距,从而引起同人同证不通过的概率加大;The environment of the hotel industry is different. Some hotels are dimly lit and some are heavily backlit. Coupled with the gap between the ID card photo and the actual photo, the probability of failure of the same person to pass the same card increases;

现有的固定阈值应用在人证查验上存在以下不足:The existing fixed threshold applications have the following deficiencies in human identification verification:

1、如果酒店入住人员较多时,会增加其它旅客的等待时间,增加旅店工作人员的工作量的同时造成其它等待旅客的入住体验感差。1. If the hotel has a large number of occupants, it will increase the waiting time of other passengers, increase the workload of the hotel staff, and cause other waiting passengers to experience a poor check-in experience.

2、人们在办理身份证时的照片与现场照片有时会差距较大,在统一的阈值情况下比对时经常出现比对失败的情况;2. There is sometimes a big gap between the photos when people apply for ID cards and the photos on the spot, and the comparison often fails in the case of a unified threshold;

3、当旅店入住人次较时,比对不通过一般会让旅客进行第二次或第三次刷卡,在一定程度上增加其它旅店的等待时间;比对多次仍然不通过一般会人工进行核查,在一定程度上增加旅店工作人员的工作量。3. When the number of hotel check-ins is compared, if the comparison fails, the passenger will generally swipe the card for the second or third time, which will increase the waiting time of other hotels to a certain extent; , to a certain extent, increase the workload of hotel staff.

发明内容SUMMARY OF THE INVENTION

为了解决现有技术存在的上述问题,本发明提供了基于身份证有效期的动态人脸比对阈值设置方法,本发明根据身份证办理时间与现实差异,动态调整人证比对阈值,从而减少由统一设置阈值引起的比对不通过现象;In order to solve the above problems existing in the prior art, the present invention provides a method for setting a dynamic face comparison threshold based on the validity period of an ID card. The present invention dynamically adjusts the human ID comparison threshold according to the difference between the ID card processing time and reality, thereby reducing the number of The comparison failure caused by uniformly setting the threshold value;

本发明所采用的技术方案为:一种基于身份证有效期的动态人脸比对阈值设置方法,The technical scheme adopted in the present invention is: a dynamic face comparison threshold setting method based on the validity period of an ID card,

获取身份证的已办证时间;The time for obtaining the ID card has been issued;

根据已经办证时间和身份证有效期限,动态调整人证比对的阈值。Dynamically adjust the threshold of witness-to-certificate comparison based on the time of obtaining the certificate and the validity period of the ID card.

进一步的,还包括通过对被核查人进行刷身份证,获取身份证的有限期限。Further, it also includes a limited period for obtaining an ID card by swiping the ID card of the person being verified.

进一步的,根据有限期限的开始时间和结束时间,获取身份证的有效期限。Further, according to the start time and end time of the limited period, the validity period of the ID card is obtained.

进一步的,根据被核查人刷身份证的时间与有限期限的开始时间,计算出已办证时间。Further, according to the time when the verified person swiped the ID card and the start time of the limited period, the time of obtaining the certificate is calculated.

进一步的,还包括人证比对模块,所述人证比对模块用于获取身份证照片与现场采集的人脸照片。Further, it also includes a witness comparison module, the witness comparison module is used to obtain the ID card photo and the face photo collected on the spot.

进一步的,所述人证比对模块还用于将获取的身份证照片与现场采集的人脸照片进行比对。Further, the human-certificate comparison module is also used to compare the obtained ID photo with the face photo collected on the spot.

进一步的,还包括时间解析模块和动态阈值调整模;Further, it also includes a time analysis module and a dynamic threshold adjustment module;

所述时间解析模块:根据身份证解析模块获取的身份证有限期限信息和获取当前系统时间计算出身份证有效时间;The time analysis module: calculates the valid time of the ID card according to the limited period information of the ID card obtained by the ID card analysis module and the current system time;

动态阈值调整模块:根据时间解析模块获得的身份证有效时间和已办证时间计算出该有效时间和该已办证时间下的动态阈值。Dynamic threshold adjustment module: According to the valid time of the ID card obtained by the time analysis module and the time when the certificate has been issued, the dynamic threshold under the valid time and the time when the certificate has been issued is calculated.

进一步的,动态阈值调整采用如下步骤:Further, the dynamic threshold adjustment adopts the following steps:

时间解析模块根据身份证解析模块获取的身份证有限期限信息和获取当前系统时间计算出身份证有效时间;The time analysis module calculates the valid time of the ID card according to the limited period information of the ID card obtained by the ID card analysis module and the current system time;

动态阈值调整模块根据时间解析模块获得的身份证有效时间和已办证时间计算出该有效时间和该已办证时间下的动态阈值。The dynamic threshold adjustment module calculates the valid time and the dynamic threshold under the certificated time according to the valid time of the ID card and the certificated time obtained by the time analysis module.

进一步的,如果比对后的比分大于动态阈值则说明是同一人,如果比对后的比分小于动态阈值则说明不是同一人,需要进行进一步的核查。Further, if the compared score is greater than the dynamic threshold, it means that it is the same person, and if the compared score is less than the dynamic threshold, it means that it is not the same person, and further verification is required.

动态阈值的调整公式为:The adjustment formula of the dynamic threshold is:

dyScore=score/idFacts-(minScore-maxScore)/idInterval其中,dyScore=score/idFacts-(minScore-maxScore)/idInterval where,

idFacts:身份证不同年限的参照因子;十年的参照因子是1;20年的参照因子是1.01;30年的参照因子是1.02;idFacts: the reference factor for different years of ID cards; the reference factor for ten years is 1; the reference factor for 20 years is 1.01; the reference factor for 30 years is 1.02;

idInterval:身份证年限,十年有效期的值为2*10-身份证办理年限;二十年的是20*2-身份证办理年限;长期的是30*2-身份证办理年限;idInterval: The number of years of the ID card, the value of the ten-year validity period is 2*10 - the processing period of the ID card; the 20-year period is 20*2 - the processing period of the ID card; the long-term value is 30*2 - the processing period of the ID card;

score:固定比分,采用算法的固定比分即阈值为68;score: fixed score, the fixed score using the algorithm is the threshold value of 68;

minScore:最小通过比分,算法的最小通过比分为68,即默认只要大于68则认定是同一人的阈值;minScore: the minimum passing score, the minimum passing score of the algorithm is 68, that is, as long as it is greater than 68 by default, it is considered the threshold of the same person;

maxScore:判定不是同一人的最大分数:该分值为66,即只要比分小于66,则判定根本不是同一人。maxScore: The maximum score for determining that it is not the same person: the score is 66, that is, as long as the score is less than 66, it is determined that it is not the same person at all.

dyScore:动态阈值。dyScore: Dynamic threshold.

由于采用以上技术方案,通获取身份证的已办证时间;并根据已经办证时间和身份证有效期限,动态调整人证比对的阈值。解决由设置固定阈值引起的比对不通过情况的发生;增加人证比对的通过率可以提高旅店的入住效率;增加旅客的入住体验感。Due to the adoption of the above technical solutions, it is possible to obtain the already-issued time of the ID card; and dynamically adjust the threshold for the comparison of witnesses and ID cards according to the already-issued time and the validity period of the ID card. Solve the occurrence of the failure of the comparison caused by setting a fixed threshold; increase the pass rate of the witness comparison can improve the check-in efficiency of the hotel; increase the passenger's check-in experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces 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 These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1是根据一示例性实施例示出的基于身份证有效期的动态人脸比对阈值设置方法流程图;1 is a flowchart of a method for setting a dynamic face comparison threshold based on the validity period of an ID card according to an exemplary embodiment;

图2是本发明动态阈值调整步骤;Fig. 2 is the dynamic threshold value adjustment step of the present invention;

图3是根据一示例性实施例示出的基于身份证有效期的动态人脸比对阈值设置方法具体实施例。FIG. 3 shows a specific embodiment of a method for setting a dynamic face comparison threshold based on the validity period of an ID card according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.

图1是根据一示例性实施例示出的基于身份证有效期的动态人脸比对阈值设置方法流程图;如图1所示,本发明提供一种基于身份证有效期的动态人脸比对阈值设置方法,1 is a flow chart of a method for setting a dynamic face comparison threshold based on the validity period of an ID card according to an exemplary embodiment; as shown in FIG. 1 , the present invention provides a dynamic face comparison threshold setting based on the validity period of an ID card method,

获取身份证的已办证时间;The time for obtaining the ID card has been issued;

根据已经办证时间和身份证有效期限,动态调整人证比对的阈值。Dynamically adjust the threshold of witness-to-certificate comparison based on the time of obtaining the certificate and the validity period of the ID card.

本发明根据身份证办理时间与实际的的差异,动态调整人证比对的阈值,从而减少比对失败的次数;The present invention dynamically adjusts the threshold value of the comparison of witnesses according to the difference between the processing time of the ID card and the actual one, thereby reducing the number of comparison failures;

本实施例中计算已办证时间的步骤如下:In the present embodiment, the steps of calculating the time for which the certificate has been issued are as follows:

第一步:通过对被核查人进行刷身份证,获取身份证的有限期限。Step 1: By swiping the ID card of the person being verified, the limited period of obtaining the ID card is obtained.

第二步:根据有限期限的开始时间和结束时间,获取身份证的有效期限。Step 2: Obtain the validity period of the ID card according to the start time and end time of the limited period.

第三步:根据被核查人刷身份证的时间与有限期限的开始时间,计算出已办证时间。Step 3: According to the time when the verified person swiped the ID card and the start time of the limited period, calculate the time for the certificate to be issued.

作为一种优选的实施方式,本实施例中还包括人证比对模块,所述人证比对模块用于获取身份证照片与现场采集的人脸照片。另外所述人证比对模块还用于将获取的身份证照片与现场采集的人脸照片进行比对。As a preferred implementation manner, this embodiment also includes a human-card comparison module, and the human-card comparison module is used to obtain an ID card photo and a face photo collected on-site. In addition, the human-card comparison module is also used to compare the obtained ID photo with the face photo collected on the spot.

作为一种优选的实施方式,本实施例子还包括时间解析模块和动态阈值调整模;时间解析模块根据身份证解析模块获取的身份证有限期限信息和获取当前系统时间As a preferred implementation, this example also includes a time analysis module and a dynamic threshold adjustment module; the time analysis module obtains the current system time according to the limited period information of the ID card obtained by the ID card analysis module and the current system time.

计算出身份证有效时间20年如:(2037-2017=20)和已办证时间:Calculate the valid time of the ID card for 20 years, such as: (2037-2017=20) and the time when the ID card has been issued:

其中有效时间=身份证有效期限的结束时间-身份证有效期限的开始时间如:2037-2017=20Among them, the validity time = the end time of the validity period of the ID card - the start time of the validity period of the ID card, such as: 2037-2017 = 20

已办证时间=系统时间-身份证有效期限的开始时间如:2018-2017=1The time when the certificate has been issued = system time - the start time of the validity period of the ID card, such as: 2018-2017 = 1

动态阈值调整模块:根据时间解析模块获得的身份证有效时间和已办证时间计算出该有效时间和该已办证时间下的动态阈值。Dynamic threshold adjustment module: According to the valid time of the ID card obtained by the time analysis module and the time when the certificate has been issued, the dynamic threshold under the valid time and the time when the certificate has been issued is calculated.

动态阈值由(身份证有效时间,已办证时间,算法固定阈值)经过函数计算得出;其中算法固定阈值是该算法在不考虑其它因素环境下,大于等于该比分判断是同一人,小于该阈值则判定不是同一人的固定分值;根据身份证有效时间和已办证时间计算出该条件下的偏离系数,根据计算出的偏离系数和固定阈值基础出动态阈值;The dynamic threshold is calculated by the function (the valid time of the ID card, the time that the certificate has been issued, the fixed threshold of the algorithm); the fixed threshold of the algorithm is that the algorithm does not consider other factors, and the score is greater than or equal to the same person and less than the threshold. Then it is determined that it is not the fixed score of the same person; the deviation coefficient under this condition is calculated according to the valid time of the ID card and the time when the certificate has been issued, and the dynamic threshold is based on the calculated deviation coefficient and the fixed threshold;

如图2所示,本实施例中动态阈值调整采用如下步骤:As shown in Figure 2, the dynamic threshold adjustment in this embodiment adopts the following steps:

时间解析模块根据身份证解析模块获取的身份证有限期限信息和获取当前系统时间计算出身份证有效时间;The time analysis module calculates the valid time of the ID card according to the limited period information of the ID card obtained by the ID card analysis module and the current system time;

动态阈值调整模块根据时间解析模块获得的身份证有效时间和已办证时间计算出该有效时间和该已办证时间下的动态阈值。The dynamic threshold adjustment module calculates the valid time and the dynamic threshold under the certificated time according to the valid time of the ID card and the certificated time obtained by the time analysis module.

进一步的,如果比对后的比分大于动态阈值则说明是同一人,如果比对后的比分小于动态阈值则说明不是同一人,需要进行进一步的核查。Further, if the compared score is greater than the dynamic threshold, it means that it is the same person, and if the compared score is less than the dynamic threshold, it means that it is not the same person, and further verification is required.

如果比对后的比分大于动态阈值则说明是同一人,如果比对后的比分小于动态阈值则说明不是同一人,需要进行进一步的核查。If the score after comparison is greater than the dynamic threshold, it means it is the same person; if the score after comparison is less than the dynamic threshold, it means that it is not the same person, and further verification is required.

本实施例中动态阈值的调整公式为:The adjustment formula of the dynamic threshold in this embodiment is:

dyScore=score/idFacts-(minScore-maxScore)/idInterval其中,dyScore=score/idFacts-(minScore-maxScore)/idInterval where,

idFacts:身份证不同年限的参照因子;十年的参照因子是1;20年的参照因子是1.01;30年的参照因子是1.02;idFacts: the reference factor for different years of ID cards; the reference factor for ten years is 1; the reference factor for 20 years is 1.01; the reference factor for 30 years is 1.02;

idInterval:身份证年限,十年有效期的值为2*10-身份证办理年限;二十年的是20*2-身份证办理年限;长期的是30*2-身份证办理年限;idInterval: The number of years of the ID card, the value of the ten-year validity period is 2*10 - the processing period of the ID card; the 20-year period is 20*2 - the processing period of the ID card; the long-term value is 30*2 - the processing period of the ID card;

score:固定比分,采用算法的固定比分即阈值为68;score: fixed score, the fixed score using the algorithm is the threshold value of 68;

minScore:最小通过比分,算法的最小通过比分为68,即默认只要大于68则认定是同一人的阈值;minScore: the minimum passing score, the minimum passing score of the algorithm is 68, that is, as long as it is greater than 68 by default, it is considered the threshold of the same person;

maxScore:判定不是同一人的最大分数:该分值为66,即只要比分小于66,则判定根本不是同一人。maxScore: The maximum score for determining that it is not the same person: the score is 66, that is, as long as the score is less than 66, it is determined that it is not the same person at all.

dyScore:动态阈值。dyScore: Dynamic threshold.

图3是根据一示例性实施例示出的基于身份证有效期的动态人脸比对阈值设置方法具体实施例。如图3所示,首先对该设置方案所采用的系统部分做介绍:FIG. 3 shows a specific embodiment of a method for setting a dynamic face comparison threshold based on the validity period of an ID card according to an exemplary embodiment. As shown in Figure 3, the system part used in the setup scheme is first introduced:

系统的组成(至少包括以下部分):身份证读卡装置、摄像头、算法接口(人证比对模块)和网络;其中The composition of the system (including at least the following parts): ID card reader device, camera, algorithm interface (person-card comparison module) and network; wherein

身份证读卡装置:负责身份证信息的采集,采集的信息包括证件的文字信息和图像信息。摄像头:负责现场人脸照片采集。算法接口:负责身份证照片和人脸照片的比对。网络负责数据的传输。ID card reader device: responsible for the collection of ID card information, the collected information includes the text information and image information of the certificate. Camera: Responsible for collecting face photos on site. Algorithm interface: responsible for the comparison of ID photos and face photos. The network is responsible for the transmission of data.

下面具体介绍动态人证比对阈值设置流程:The following is a detailed description of the dynamic witness comparison threshold setting process:

S1、被核查人进行刷身份证S1. The person being verified swipes the ID card

S2、获取身份证的有效期限,如;2006.07.18-2026.07.18S2. The validity period of the ID card, such as; 2006.07.18-2026.07.18

S3、根据有效期限的开始时间和结束时间获取有效时间,如二十年。S3. Obtain the validity period according to the start time and end time of the validity period, such as twenty years.

S4、根据当下的刷卡时间和有效期限的开始时间,计算出已办证时间S4. According to the current card swiping time and the start time of the validity period, calculate the time of the card application

S5、根据S3的有效时间和S4的已办证时间,依据人脸阈值计算出该有效期内的动态阈值S5. Calculate the dynamic threshold within the validity period according to the face threshold according to the valid time of S3 and the certified time of S4.

S6、通过摄像头采集现场人脸照片S6. Collect live face photos through the camera

S7、根据获取到的身份证照片和现场采集的人脸照片,通过http或sdk方式调用人脸比对接口,进行比对;S7. According to the obtained ID photo and the face photo collected on site, call the face comparison interface through http or sdk to compare;

如果比分大于动态阈值则说明是同一人If the score is greater than the dynamic threshold, it means the same person

如果比分小于动态阈值则说明不是同一人,需要进行进一步的核查。If the score is less than the dynamic threshold, it means that it is not the same person, and further verification is required.

需要补充说明的是:阈值:是否是同一人的比分临界点:例如在不考虑身份证年限的情况下现在算法的阈值是68;比分大于等于68则认定是同一人;比分小于68则判断不是同一人;It should be added that: threshold: whether it is the critical point of the score of the same person: for example, the threshold of the current algorithm is 68 without considering the age of the ID card; if the score is greater than or equal to 68, it is considered to be the same person; if the score is less than 68, it is judged not to be same person;

例如某人的身份证办理时间为2008年,期限是10;2015年进行刷卡比对则此时的动态阈值为:For example, a person's ID card processing time is 2008, and the deadline is 10; in 2015, the dynamic threshold at this time is:

dyScore=68/1-(68-66)/(2*10-(2015-2008))=67.8,此时只要比分大于等于67.8则判定是同一人。dyScore=68/1-(68-66)/(2*10-(2015-2008))=67.8. At this time, as long as the score is greater than or equal to 67.8, it is determined to be the same person.

再比如:某身份证的有效期限为:2018.08.13--2038.08.13,假定刷卡的时间为2020年,则其相应的动态阈值为:Another example: the validity period of an ID card is: 2018.08.13--2038.08.13. Assuming that the card is swiped in 2020, the corresponding dynamic threshold is:

dyScore=68/1.01-(68-66)/(2*20-(2020-2018))=67.2741,此时只要比分大于等于67.2741,则判定是同一人。dyScore=68/1.01-(68-66)/(2*20-(2020-2018))=67.2741, at this time, as long as the score is greater than or equal to 67.2741, it is determined to be the same person.

由于采用以上技术方案,通获取身份证的已办证时间;并根据已经办证时间和身份证有效期限,动态调整人证比对的阈值。设置从而解决由设置固定阈值引起的比对不通过情况的发生;增加人证比对的通过率可以提高旅店的入住效率;增加旅客的入住体验感。Due to the adoption of the above technical solutions, it is possible to obtain the already-issued time of the ID card; and dynamically adjust the threshold for the comparison of witnesses and ID cards according to the already-issued time and the validity period of the ID card. It is set to solve the occurrence of the comparison failure caused by setting a fixed threshold; increasing the pass rate of the witness comparison can improve the check-in efficiency of the hotel; increase the passenger's check-in experience.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

可以理解的是,上述各实施例中相同或相似部分可以相互参考,在一些实施例中未详细说明的内容可以参见其他实施例中相同或相似的内容。It can be understood that, the same or similar parts in the above embodiments may refer to each other, and the content not described in detail in some embodiments may refer to the same or similar content in other embodiments.

需要说明的是,在本发明的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明的描述中,除非另有说明,“多个”的含义是指至少两个。It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for the purpose of description, and should not be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise specified, the meaning of "plurality" means at least two.

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

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those skilled in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the program can be stored in a computer-readable storage medium. When executed, one or a combination of the steps of the method embodiment is included.

此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically alone, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present invention. Embodiments are subject to variations, modifications, substitutions and variations.

Claims (8)

1.基于身份证有效期的动态人脸比对阈值设置方法,其特征在于:1. The dynamic face comparison threshold setting method based on the validity period of ID card is characterized in that: 获取身份证的已办证时间;The time for obtaining the ID card has been issued; 根据已办证时间和身份证有效期限,动态调整人证比对的阈值;其中,动态阈值的调整公式为:Dynamically adjust the threshold of witness-to-certificate comparison according to the time of obtaining the certificate and the validity period of the ID card; among them, the adjustment formula of the dynamic threshold is: dyScore=score/idFacts-(minScore-maxScore)/idInterval其中,dyScore=score/idFacts-(minScore-maxScore)/idInterval where, idFacts:身份证有效期限的参照因子;十年的参照因子是1;20年的参照因子是1.01;30年的参照因子是1.02;idFacts: the reference factor for the validity period of the ID card; the reference factor for ten years is 1; the reference factor for 20 years is 1.01; the reference factor for 30 years is 1.02; idInterval:身份证年限,十年有效期的值为2*10-身份证已办证时间;二十年的是20*2-身份证已办证时间;长期的是30*2-身份证已办证时间;idInterval: the number of years of the ID card, the value of the ten-year validity period is 2*10-the time for the ID card to be issued; for 20 years, 20*2-the time for the ID card to be issued; for the long-term, it is 30*2-the time for the ID card to be issued; Score:固定比分,采用算法的固定比分为68;Score: fixed score, the fixed score using the algorithm is 68; minScore:最小通过比分,算法的最小通过比分为68,即默认只要大于68则认定是同一人;minScore: The minimum passing score, the minimum passing score of the algorithm is 68, that is, as long as it is greater than 68 by default, it is considered to be the same person; maxScore:判定不是同一人的最大分数:该分值为66,即只要比分小于66,则判定根本不是同一人;maxScore: The maximum score for determining that it is not the same person: the score is 66, that is, as long as the score is less than 66, it is determined that it is not the same person at all; dyScore:动态阈值。dyScore: dynamic threshold. 2.根据权利要求1所述的基于身份证有效期的动态人脸比对阈值设置方法,其特征在于:通过对被核查人进行刷身份证,获取身份证的有限期限。2. The dynamic face comparison threshold setting method based on the validity period of an ID card according to claim 1, is characterized in that: by swiping the ID card for the person to be checked, the limited term of the ID card is obtained. 3.根据权利要求2所述的基于身份证有效期的动态人脸比对阈值设置方法,其特征在于:根据有限期限的开始时间和结束时间,获取身份证的有效期限。3. The dynamic face comparison threshold setting method based on the validity period of the ID card according to claim 2, is characterized in that: obtain the validity period of the ID card according to the start time and the end time of the limited time limit. 4.根据权利要求3所述的基于身份证有效期的动态人脸比对阈值设置方法,其特征在于:根据被核查人刷身份证的时间与有限期限的开始时间,计算出已办证时间。4. The dynamic face comparison threshold setting method based on the validity period of the ID card according to claim 3, is characterized in that: according to the time when the person to be checked brushes the ID card and the start time of the limited period, the time for obtaining the certificate is calculated. 5.根据权利要求1所述的基于身份证有效期的动态人脸比对阈值设置方法,其特征在于:获取身份证照片与现场采集的人脸照片。5. The method for setting a dynamic face comparison threshold based on the validity period of an ID card according to claim 1, characterized in that: obtaining an ID card photo and a face photo collected on site. 6.根据权利要求5所述的基于身份证有效期的动态人脸比对阈值设置方法,其特征在于:将获取的身份证照片与现场采集的人脸照片进行比对。6. The method for setting a dynamic face comparison threshold based on the validity period of an ID card according to claim 5, wherein the obtained ID card photo is compared with the face photo collected on the spot. 7.根据权利要求1至5任一项所述的基于身份证有效期的动态人脸比对阈值设置方法,其特征在于:7. the dynamic face comparison threshold value setting method based on the validity period of ID card according to any one of claims 1 to 5, is characterized in that: 获取的身份证有限期限信息和获取当前系统时间计算出身份证有效期限;Obtain the limited period information of the ID card and obtain the current system time to calculate the validity period of the ID card; 获得的身份证有效期限和已办证时间计算出该有效期限和该已办证时间下的动态阈值。The obtained ID card validity period and the certificate application time are used to calculate the dynamic threshold under the validity period and the certificate application time. 8.根据权利要求7所述的基于身份证有效期的动态人脸比对阈值设置方法,其特征在于:如果比对后的比分大于动态阈值则说明是同一人,如果比对后的比分小于动态阈值则说明不是同一人,需要进行进一步的核查。8. the dynamic face comparison threshold value setting method based on the validity period of ID card according to claim 7, is characterized in that: if the score after comparison is greater than the dynamic threshold value then explain is the same person, if the score after comparison is less than dynamic The threshold value indicates that it is not the same person, and further verification is required.
CN201811653315.0A 2018-12-29 2018-12-29 Dynamic threshold face comparison setting method based on the validity period of ID card Active CN109508705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811653315.0A CN109508705B (en) 2018-12-29 2018-12-29 Dynamic threshold face comparison setting method based on the validity period of ID card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811653315.0A CN109508705B (en) 2018-12-29 2018-12-29 Dynamic threshold face comparison setting method based on the validity period of ID card

Publications (2)

Publication Number Publication Date
CN109508705A CN109508705A (en) 2019-03-22
CN109508705B true CN109508705B (en) 2020-09-08

Family

ID=65757236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811653315.0A Active CN109508705B (en) 2018-12-29 2018-12-29 Dynamic threshold face comparison setting method based on the validity period of ID card

Country Status (1)

Country Link
CN (1) CN109508705B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111311174A (en) * 2020-01-19 2020-06-19 厦门快商通科技股份有限公司 Method, device and equipment for managing time limit of identity card
CN111488562B (en) * 2020-04-07 2023-07-18 中国移动通信集团江苏有限公司 Threshold determination method, device, equipment and medium based on face comparison

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108288080A (en) * 2017-12-01 2018-07-17 国政通科技股份有限公司 Identity information checking method, device, medium and computing device
CN108875478A (en) * 2017-08-14 2018-11-23 北京旷视科技有限公司 The testimony of a witness unifies checking method, device and system and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7809171B2 (en) * 2005-01-10 2010-10-05 Battelle Memorial Institute Facial feature evaluation based on eye location
CN105844206A (en) * 2015-01-15 2016-08-10 北京市商汤科技开发有限公司 Identity authentication method and identity authentication device
CN105138980A (en) * 2015-08-20 2015-12-09 深圳云天励飞技术有限公司 Identify authentication method and system based on identity card information and face identification
CN105243357A (en) * 2015-09-15 2016-01-13 深圳市环阳通信息技术有限公司 Identity document-based face recognition method and face recognition device
EP3481661A4 (en) * 2016-07-05 2020-03-11 Nauto, Inc. SYSTEM AND METHOD FOR AUTOMATIC DRIVER IDENTIFICATION
CN106778636A (en) * 2016-12-22 2017-05-31 东软集团股份有限公司 Auth method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108875478A (en) * 2017-08-14 2018-11-23 北京旷视科技有限公司 The testimony of a witness unifies checking method, device and system and storage medium
CN108288080A (en) * 2017-12-01 2018-07-17 国政通科技股份有限公司 Identity information checking method, device, medium and computing device

Also Published As

Publication number Publication date
CN109508705A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
CN108351707B (en) Human-computer interaction method, apparatus, terminal device, and computer-readable storage medium
CN105654027B (en) Method and device for fingerprint identification
CN105450407A (en) Identity authentication method and device
CN109508705B (en) Dynamic threshold face comparison setting method based on the validity period of ID card
WO2019127924A1 (en) Sample weight allocation method, model training method, electronic device, and storage medium
US9818016B2 (en) Method and fingerprint sensing system for forming a fingerprint representation
CN103927471A (en) Authentication method and device
CN205486116U (en) Mobile terminal based on biological identification
CN105448303A (en) Voice signal processing method and apparatus
CN109326058A (en) Identification check method, apparatus, terminal and readable medium based on wisdom automatic teller machine
WO2021012904A1 (en) Data updating method and related device
CN113657248B (en) Training method, device and computer program product for face recognition model
CN105279492A (en) Iris identification method and device
CN105574500A (en) Method and device for improving face recognition passing rate
CN105303174A (en) Fingerprint input method and device
CN102891751B (en) From the method and apparatus that fingerprint image generates business password
CN116245865A (en) Image quality detection method, device, electronic equipment and storage medium
CN107766726A (en) Application security detection method and device
CN108734099A (en) Auth method and device, electronic equipment, computer program and storage medium
CN104680118B (en) A kind of face character detection model generation method and system
CN114995914B (en) Image data processing method, device, computer equipment and storage medium
CN105302311A (en) Terminal coefficient control method and device based on fingerprint recognition and terminal
CN112101296A (en) Face registration method, face verification method, device and system
CN109670481B (en) A dynamic threshold setting method for witness comparison based on age and gender
CN107451451B (en) Unlock control method and related products

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Dynamic Threshold Face Comparison Setting Method Based on the Validity Period of ID Cards

Effective date of registration: 20230519

Granted publication date: 20200908

Pledgee: Industrial Bank Co.,Ltd. Shijiazhuang Branch

Pledgor: HEBEI SANCHUAN TECHNOLOGY CO.,LTD.

Registration number: Y2023980041176

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20200908

Pledgee: Industrial Bank Co.,Ltd. Shijiazhuang Branch

Pledgor: HEBEI SANCHUAN TECHNOLOGY CO.,LTD.

Registration number: Y2023980041176

PC01 Cancellation of the registration of the contract for pledge of patent right
PP01 Preservation of patent right

Effective date of registration: 20250714

Granted publication date: 20200908

PP01 Preservation of patent right