CN113033466B - A face recognition method and device - Google Patents
A face recognition method and device Download PDFInfo
- Publication number
- CN113033466B CN113033466B CN202110394958.3A CN202110394958A CN113033466B CN 113033466 B CN113033466 B CN 113033466B CN 202110394958 A CN202110394958 A CN 202110394958A CN 113033466 B CN113033466 B CN 113033466B
- Authority
- CN
- China
- Prior art keywords
- base station
- data
- server
- scanning device
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004891 communication Methods 0.000 claims description 6
- 230000007423 decrease Effects 0.000 description 5
- 238000012360 testing method Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
- G06Q20/4014—Identity check for transactions
- G06Q20/40145—Biometric identity checks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/029—Location-based management or tracking services
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Oral & Maxillofacial Surgery (AREA)
- General Health & Medical Sciences (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本申请涉及人脸识别技术领域,尤其涉及一种人脸识别方法及装置。The present application relates to the technical field of face recognition, and in particular to a face recognition method and device.
背景技术Background technique
电子支付是指消费者、商家和金融机构之间使用安全电子手段把支付信息通过信息网络安全地传送到银行或相应的处理机构来实现货币支付或资金流转的行为,扫码支付是电子支付的一种常用手段。在一些扫码支付场景下,用户需要通过移动终端设备的摄像头扫描商家的二维码,在二维码识别成功后,用户通过输入付款金额及密码完成支付过程;在另一些扫码支付场景下,用户需要出示电子设备中的付款码,商家通过扫描用户的付款码进行扣款来完成支付过程。可见,扫码支付的过程均需要用户的操作,支付过程耗时长。Electronic payment refers to the use of secure electronic means between consumers, merchants and financial institutions to securely transmit payment information to banks or corresponding processing institutions through information networks to realize monetary payment or capital transfer. Scanning code payment is an electronic payment A common method. In some scan code payment scenarios, users need to scan the QR code of the merchant through the camera of the mobile terminal device. After the QR code is successfully recognized, the user completes the payment process by entering the payment amount and password; in other scan code payment scenarios , the user needs to show the payment code in the electronic device, and the merchant completes the payment process by scanning the user's payment code to deduct money. It can be seen that the process of scanning code payment requires user operations, and the payment process takes a long time.
为了解决扫码支付的支付方式耗时长的问题,人们采用人脸识别支付,在人脸识别支付前,用户在移动终端设备上的程序上,填写身份信息以及进行人脸数据存储。人脸识别系统的服务器会将用户存储的人脸数据加入人脸库,在人脸识别支付时,用户站在人脸扫描设备的摄像头前即可,人脸识别系统的服务器会将人脸扫描设备的摄像头采集到的人脸图像与人脸库中的人脸数据进行比对,并确认用户的身份信息,扣除用户账户里的钱,完成支付过程。可见,人脸识别支付不需要用户的操作,缩短了支付过程的耗时。In order to solve the time-consuming payment method of scan code payment, people use face recognition payment. Before face recognition payment, users fill in identity information and store face data on the program on the mobile terminal device. The server of the face recognition system will add the face data stored by the user into the face database. When paying with face recognition, the user just needs to stand in front of the camera of the face scanning device, and the server of the face recognition system will scan the face The face image collected by the camera of the device is compared with the face data in the face database, and the identity information of the user is confirmed, and the money in the user account is deducted to complete the payment process. It can be seen that face recognition payment does not require user operations, which shortens the time-consuming payment process.
然而,相关技术中,在人脸识别支付的过程中,由于人脸识别系统的服务器需要将人脸扫描设备的摄像头采集到的人脸图像与人脸库中的人脸进行一一比对,因此,当人脸识别系统的人脸库的人脸数量在千万乃至亿级规模时,人脸识别的速度会降低,准确率也会下降。However, in the related technology, in the process of face recognition payment, since the server of the face recognition system needs to compare the face images collected by the camera of the face scanning device with the faces in the face database one by one, Therefore, when the number of faces in the face database of the face recognition system is on the scale of tens of millions or even billions, the speed of face recognition will decrease, and the accuracy rate will also decrease.
发明内容Contents of the invention
本申请提供了一种人脸识别方法和装置,以解决当人脸识别系统的人脸库的人脸数量在千万乃至亿级规模时,人脸识别的速度降低,准确率下降的技术问题。This application provides a face recognition method and device to solve the technical problems that the speed of face recognition decreases and the accuracy rate drops when the number of faces in the face database of the face recognition system is on the scale of tens of millions or even billions .
为了解决上述技术问题,本申请实施例公开了如下技术方案:In order to solve the above technical problems, the embodiment of the present application discloses the following technical solutions:
第一方面,本申请实施例公开了一种人脸识别方法,包括服务器接收用户的移动终端设备发送的第一基站数据,并根据第一基站数据确定用户所在基站;In the first aspect, the embodiment of the present application discloses a face recognition method, including the server receiving the first base station data sent by the user's mobile terminal device, and determining the base station where the user is located according to the first base station data;
服务器接收扫描设备发送的人脸识别请求,人脸识别请求包括被测人脸数据和第二基站数据,并根据第二基站数据确定扫描设备所在基站,获取扫描设备所在基站的全部用户;The server receives the face recognition request sent by the scanning device, the face recognition request includes the measured face data and the second base station data, and determines the base station where the scanning device is located according to the second base station data, and obtains all users of the base station where the scanning device is located;
服务器将扫描设备所在基站的全部用户的人脸数据加入扫描设备的匹配候选集;The server adds the face data of all users of the base station where the scanning device is located to the matching candidate set of the scanning device;
服务器将被测人脸数据与匹配候选集中的人脸数据相比对,根据比对结果确认被测人脸数据对应的用户身份信息。The server compares the tested face data with the face data in the matching candidate set, and confirms the user identity information corresponding to the tested face data according to the comparison result.
可选的,在服务器接收用户的移动终端设备发送的第一基站数据,并根据第一基站数据确定用户所在基站前,还包括:Optionally, before the server receives the first base station data sent by the user's mobile terminal equipment, and determines the base station where the user is located according to the first base station data, further includes:
用户的移动终端设备获取第一基站数据,并向服务器发送第一基站数据;The user's mobile terminal equipment acquires the first base station data, and sends the first base station data to the server;
扫描设备获取被测人脸数据和第二基站数据,并向服务器发送被测人脸数据和第二基站数据。The scanning device acquires the tested face data and the second base station data, and sends the tested face data and the second base station data to the server.
可选的,用户的移动终端设备获取第一基站数据,并向服务器发送第一基站数据,包括:Optionally, the user's mobile terminal equipment obtains the first base station data, and sends the first base station data to the server, including:
用户的移动终端设备上的第一程序,通过调用移动终端设备提供的获取基站信息的接口,实时获取移动终端设备所在的第一基站的移动网络号码,以及第一基站的基站编号,向服务器发送包含移动网络号码和基站编号的第一基站数据。The first program on the user's mobile terminal equipment obtains in real time the mobile network number of the first base station where the mobile terminal equipment is located and the base station number of the first base station by calling the interface provided by the mobile terminal equipment for acquiring base station information, and sends the First base station data including mobile network number and base station number.
可选的,用户的移动终端设备获取第一基站数据,并向服务器发送第一基站数据,之前还包括:Optionally, the user's mobile terminal equipment obtains the first base station data, and sends the first base station data to the server, which also includes:
用户在移动终端设备上的第一程序上,填写用户的身份信息以及存储用户的人脸数据;The user fills in the user's identity information and stores the user's face data on the first program on the mobile terminal device;
第一程序向服务器发送包括身份信息和人脸数据的身份数据。The first program sends identity data including identity information and face data to the server.
可选的,扫描设备获取被测人脸数据和第二基站数据,并向服务器发送被测人脸数据和第二基站数据,包括:Optionally, the scanning device obtains the tested face data and the second base station data, and sends the tested face data and the second base station data to the server, including:
扫描设备上的摄像头采集含有人脸的图像,得到被测人脸数据,扫描设备上的第二程序,通过调用扫描设备提供的获取基站信息的接口,实时获取扫描设备所在的第二基站的移动网络号码,以及第二基站的基站编号;The camera on the scanning device collects images containing faces to obtain the face data to be tested. The second program on the scanning device obtains the movement of the second base station where the scanning device is located in real time by calling the interface provided by the scanning device to obtain base station information. the network number, and the base station number of the second base station;
第二程序向服务器发送包含移动网络号码和基站编号的第二基站数据,第二程序与第一程序为相匹配的程序。The second program sends the second base station data including the mobile network number and the base station number to the server, and the second program is a matching program with the first program.
可选的,获取扫描设备所在基站的全部用户,包括:Optionally, obtain all users of the base station where the scanning device is located, including:
服务器以扫描设备所在基站的移动网络号码和基站编号为索引,根据全部用户所在的基站,获取扫描设备所在基站的全部用户。The server uses the mobile network number and base station number of the base station where the scanning device is located as an index, and obtains all users of the base station where the scanning device is located according to the base stations where all users are located.
第二方面,本申请实施例公开了一种人脸识别装置,包括移动终端设备、扫描设备和服务器,移动终端设备和服务器通信连接,扫描设备和服务器通信连接,移动终端设备、扫描设备和服务器用于实现第一方面中的人脸识别方法。In the second aspect, the embodiment of the present application discloses a face recognition device, including a mobile terminal device, a scanning device and a server, a communication connection between the mobile terminal device and the server, a communication connection between the scanning device and the server, and a mobile terminal device, the scanning device and the server It is used to realize the face recognition method in the first aspect.
本申请的有益效果为:The beneficial effect of this application is:
本申请实施例提供的人脸识别方法,包括服务器接收用户的移动终端设备发送的第一基站数据,并根据第一基站数据确定用户所在基站,服务器接收扫描设备发送的人脸识别请求,人脸识别请求包括被测人脸数据和第二基站数据,并根据第二基站数据确定扫描设备所在基站,获取扫描设备所在基站的全部用户,服务器将扫描设备所在基站的全部用户的人脸数据加入扫描设备的匹配候选集,服务器将被测人脸数据与匹配候选集中的人脸数据相比对,根据比对结果确认被测人脸数据对应的用户身份信息。由于第一基站数据与包含用户身份信息以及人脸数据的移动终端设备一一对应,本申请实施例提供的人脸识别方法,根据扫描设备所在基站的第二基站数据确定所述扫描设备所在基站,在接收到的第一基站数据中,服务器查找与扫描设备所在基站的移动网络号码和基站编号相同的第一基站数据,确定扫描设备所在基站的全部用户,从而对移动终端设备所在基站的人脸数据进行过滤,获取扫描设备所在基站的全部用户的人脸数据,与在移动终端设备上填写身份信息以及存储人脸数据的全部用户的人脸数据作为比对人脸数据相比,减少了比对的人脸数据,提高了本申请实施例提供的人脸识别方法识别人脸的速度和准确率。The face recognition method provided by the embodiment of the present application includes that the server receives the first base station data sent by the user's mobile terminal device, and determines the base station where the user is located according to the first base station data, and the server receives the face recognition request sent by the scanning device, and the face The recognition request includes the measured face data and the data of the second base station, and the base station where the scanning device is located is determined according to the data of the second base station, and all users of the base station where the scanning device is located are obtained, and the server adds the face data of all users of the base station where the scanning device is located to the scan The matching candidate set of the device, the server compares the tested face data with the face data in the matching candidate set, and confirms the user identity information corresponding to the tested face data according to the comparison result. Since the first base station data corresponds to the mobile terminal equipment including user identity information and face data, the face recognition method provided in the embodiment of the present application determines the base station where the scanning device is located according to the second base station data of the base station where the scanning device is located , in the received first base station data, the server searches for the first base station data that is the same as the mobile network number and base station number of the base station where the scanning device is located, and determines all users of the base station where the scanning device is located, so as to identify all users of the base station where the mobile terminal device is located Face data is filtered to obtain the face data of all users of the base station where the scanning device is located. Compared with the face data of all users who fill in identity information and store face data on the mobile terminal device as comparison face data, it reduces The compared face data improves the face recognition speed and accuracy of the face recognition method provided in the embodiment of the present application.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
附图说明Description of drawings
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solution of the present application more clearly, the accompanying drawings that need to be used in the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, on the premise of not paying creative work, there are also Additional figures can be derived from these figures.
图1为本申请实施例提供的一种人脸识别方法的流程示意图;FIG. 1 is a schematic flow chart of a face recognition method provided in an embodiment of the present application;
图2为本申请实施例提供的一种人脸识别装置的结构示意图;FIG. 2 is a schematic structural diagram of a face recognition device provided in an embodiment of the present application;
其中:in:
1-移动终端设备、2-扫描设备、3-服务器。1-mobile terminal equipment, 2-scanning equipment, 3-server.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
参见图1,本申请实施例提供了一种人脸识别方法,可解决当人脸识别系统的人脸库的人脸数量在千万乃至亿级规模时,人脸识别的速度降低,准确率下降的问题,示例性的,该方法可包括步骤S100-S160。Referring to Fig. 1, the embodiment of the present application provides a face recognition method, which can solve the problem that the speed of face recognition decreases and the accuracy rate decreases when the number of faces in the face database of the face recognition system is in the scale of tens of millions or even hundreds of millions. For the problem of descending, for example, the method may include steps S100-S160.
步骤S100:用户在移动终端设备上注册,上传人脸。Step S100: the user registers on the mobile terminal device and uploads the face.
用户在移动终端设备上的第一程序上,填写用户的身份信息以及存储用户的人脸数据,第一程序向服务器发送包括身份信息和人脸数据的身份数据。The user fills in the user's identity information and stores the user's face data on the first program on the mobile terminal device, and the first program sends the identity data including the identity information and face data to the server.
用户只需要注册一次,后续人脸识别过程中,不需要再执行该步骤,服务器存储有用户的身份数据且会将存储的用户身份数据中的人脸数据作为比对的匹配候选集,提高了确认用户身份速度。The user only needs to register once, and there is no need to perform this step in the subsequent face recognition process. The server stores the user's identity data and uses the face data in the stored user identity data as the matching candidate set for comparison, which improves the Confirm user identity speed.
步骤S110:用户的移动终端设备实时上传第一基站数据。Step S110: The user's mobile terminal device uploads the data of the first base station in real time.
在一些实施例中,用户的移动终端设备包括但不限于手机,用户的移动终端设备上的第一程序,通过调用移动终端设备提供的获取基站信息的接口,实时获取移动终端设备所在的第一基站的移动网络号码,以及第一基站的基站编号,并向服务器发送包含移动网络号码和基站编号的第一基站数据,服务器接收第一基站数据,并根据第一基站数据确定用户所在基站。In some embodiments, the user's mobile terminal device includes but is not limited to a mobile phone, and the first program on the user's mobile terminal device obtains the first base station information of the mobile terminal device in real time by calling the interface provided by the mobile terminal device to obtain base station information. The mobile network number of the base station, and the base station number of the first base station, and send the first base station data including the mobile network number and the base station number to the server, and the server receives the first base station data, and determines the base station where the user is based on the first base station data.
由于移动终端设备上的第一程序实时向服务器发送包含移动网络号码和基站编号的第一基站数据,因此,服务器获取的第一基站数据实时更新,服务器可以根据第一基站数据,实时确定用户所在基站,从而确定用户所在位置,提高了对用户位置检测的准确性。Since the first program on the mobile terminal device sends the first base station data including the mobile network number and the base station number to the server in real time, the first base station data acquired by the server is updated in real time, and the server can determine the location of the user in real time according to the first base station data. The base station, thereby determining the location of the user, improves the accuracy of detecting the location of the user.
在一些实施例中,用户的移动终端设备上的第一程序,向服务器实时发送第一基站数据,且实时发送移动终端设备所在的第一基站相邻基站的移动网络号码、基站编号和信号强度。In some embodiments, the first program on the user's mobile terminal device sends the first base station data to the server in real time, and sends the mobile network number, base station number and signal strength of the first base station adjacent to the mobile terminal device in real time .
当用户在第一基站的中间位置,移动终端设备上的第一程序无法检测到第一基站的相邻基站,向服务器实时发送的第一基站相邻基站的移动网络号码、基站编号和信号强度为空值;当用户在第一基站范围内,且靠近移动终端设备上的第一程序检测到的相邻基站,向服务器实时发送的第一基站相邻基站的移动网络号码、基站编号和信号强度为有效值。并可根据第一基站的相邻基站的信号强度,确定用户与第一基站的相邻基站的距离。When the user is in the middle of the first base station, the first program on the mobile terminal device cannot detect the adjacent base stations of the first base station, and the mobile network number, base station number and signal strength of the adjacent base stations of the first base station are sent to the server in real time Is a null value; when the user is within the range of the first base station and is close to the adjacent base station detected by the first program on the mobile terminal device, the mobile network number, base station number and signal of the first base station's adjacent base station will be sent to the server in real time Strength is a valid value. And according to the signal strength of the adjacent base stations of the first base station, the distance between the user and the adjacent base stations of the first base station can be determined.
与仅向服务器实时发送第一基站数据相比,可以确定用户更详细的所在位置,提高了对用户位置检测的精准性。Compared with only sending the first base station data to the server in real time, the more detailed location of the user can be determined, which improves the accuracy of detecting the user's location.
在一些实施例中,移动终端设备上的第一程序每隔10s向服务器发送第一基站数据,扫描设备上的第二程序每隔10s向服务器发送第二基站数据,由于10s内用户所在位置和扫描设备所在位置均不会发生超出一个基站范围的距离变化,因此,在保证了对用户和扫描设备位置检测准确率的同时降低了移动终端设备和扫描设备的功耗。In some embodiments, the first program on the mobile terminal device sends the first base station data to the server every 10s, and the second program on the scanning device sends the second base station data to the server every 10s. The location of the scanning device will not change in distance beyond the range of a base station. Therefore, the power consumption of the mobile terminal device and the scanning device is reduced while ensuring the detection accuracy of the location of the user and the scanning device.
步骤S120:扫描设备采集被测人脸数据,实时获取第二基站数,并发送包括被测人脸数据和第二基站数据的人脸识别请求。Step S120: The scanning device collects the tested face data, obtains the number of the second base station in real time, and sends a face recognition request including the tested face data and the second base station data.
在一些实施例中,当用户站在扫描设备上的摄像头前,摄像头采集含有人脸的图像,得到被测人脸数据,扫描设备上的第二程序,通过调用扫描设备提供的获取基站信息的接口,实时获取扫描设备所在的第二基站的移动网络号码,以及第二基站的基站编号,第二程序与第一程序为相匹配的程序,扫描设备获取被测人脸数据和第二基站数据,并向服务器发送被测人脸数据和第二基站数据,服务器接收扫描设备发送的人脸识别请求,人脸识别请求包括被测人脸数据和第二基站数据,并根据第二基站数据确定扫描设备所在基站,获取扫描设备所在基站的全部用户。In some embodiments, when the user stands in front of the camera on the scanning device, the camera captures an image containing a face to obtain the face data to be tested, and the second program on the scanning device calls the method provided by the scanning device to obtain base station information. Interface, real-time acquisition of the mobile network number of the second base station where the scanning device is located, and the base station number of the second base station, the second program is a matching program with the first program, and the scanning device obtains the measured face data and the second base station data , and send the measured face data and the second base station data to the server, and the server receives the face recognition request sent by the scanning device, the face recognition request includes the measured face data and the second base station data, and determines according to the second base station data Scan the base station where the device is located, and obtain all users of the base station where the device is scanned.
由于扫描设备上的第二程序实时向服务器发送包含移动网络号码和基站编号的第二基站数据,因此,服务器获取的第二基站数据实时更新,服务器可以根据第二基站数据,实时确定扫描设备所在基站,从而确定扫描设备所在位置,提高了对扫描设备位置检测的准确性。Since the second program on the scanning device sends the second base station data including the mobile network number and the base station number to the server in real time, the second base station data acquired by the server is updated in real time, and the server can determine the location of the scanning device in real time according to the second base station data. The base station, thereby determining the location of the scanning device, improves the accuracy of detecting the location of the scanning device.
在一些实施例中,扫描设备上的第二程序,向服务器实时发送第二基站数据,且实时发送扫描设备所在的第二基站相邻基站的移动网络号码、基站编号和信号强度。In some embodiments, the second program on the scanning device sends the data of the second base station to the server in real time, and sends the mobile network number, base station number and signal strength of the adjacent base station of the second base station where the scanning device is located in real time.
当向服务器实时发送的第二基站相邻基站的移动网络号码、基站编号和信号强度为空值时,表明扫描设备在第二基站的中间位置,扫描设备上的第二程序无法检测到第二基站的相邻基站;当向服务器实时发送的第二基站相邻基站的移动网络号码、基站编号和信号强度为有效值时,可确定扫描设备在第二基站范围内,且靠近扫描设备上的第二程序检测到的相邻基站,并可根据第二基站的相邻基站的信号强度,确定扫描设备与第二基站的相邻基站的距离。与仅向服务器实时发送第二基站数据相比,可以确定扫描设备更详细的所在位置,提高了对扫描设备位置检测的精准性。When the mobile network number, base station number and signal strength of the adjacent base station of the second base station sent to the server in real time are null, it indicates that the scanning device is in the middle of the second base station, and the second program on the scanning device cannot detect the second base station. The adjacent base station of the base station; when the mobile network number, base station number and signal strength of the adjacent base station of the second base station sent to the server in real time are valid values, it can be determined that the scanning device is within the range of the second base station and close to the The adjacent base stations detected by the second program can determine the distance between the scanning device and the adjacent base stations of the second base station according to the signal strength of the adjacent base stations of the second base station. Compared with only sending the data of the second base station to the server in real time, the more detailed location of the scanning device can be determined, which improves the accuracy of detecting the location of the scanning device.
步骤S130:服务器接收用户的移动终端设备发送的第一基站数据,并根据第一基站数据确定用户所在基站。Step S130: the server receives the first base station data sent by the user's mobile terminal device, and determines the base station where the user is located according to the first base station data.
在一些实施例中,服务器根据第一基站数据中的基站编号,得到对应的基站信息,确定用户所在基站,由于服务器接收的第一基站数据实时更新,因此,可实时确定用户所在基站,从而确定用户所在位置,提高了对用户位置检测的准确性。In some embodiments, the server obtains the corresponding base station information according to the base station number in the first base station data, and determines the base station where the user is located. Since the first base station data received by the server is updated in real time, the base station where the user is located can be determined in real time, thereby determining The location of the user improves the accuracy of detecting the location of the user.
步骤S140:服务器接收扫描设备发送的人脸识别请求,人脸识别请求包括被测人脸数据和第二基站数据,并根据第二基站数据确定扫描设备所在基站,获取扫描设备所在基站的全部用户。Step S140: The server receives the face recognition request sent by the scanning device. The face recognition request includes the measured face data and the data of the second base station, and determines the base station where the scanning device is located according to the data of the second base station, and obtains all users of the base station where the scanning device is located. .
在一些实施例中,服务器以扫描设备所在基站的移动网络号码和基站编号为索引,根据全部用户所在的基站,获取扫描设备所在基站的全部用户,与将在移动终端设备上填写身份信息以及存储人脸数据的全部用户的人脸数据作为比对人脸数据相比,减少了比对人脸数据,提高了本申请实施例提供的人脸识别方法识别人脸的速度和准确率。In some embodiments, the server uses the mobile network number and the base station number of the base station where the scanning device is located as an index, and obtains all users of the base station where the scanning device is located according to the base stations where all users are located, and will fill in the identity information and store on the mobile terminal equipment. Compared with the face data of all users of the face data as the comparison face data, the comparison face data is reduced, and the speed and accuracy of the face recognition method provided by the embodiment of the present application are improved.
步骤S150:服务器将扫描设备所在基站的全部用户的人脸数据加入扫描设备的匹配候选集。Step S150: the server adds the face data of all users of the base station where the scanning device is located to the matching candidate set of the scanning device.
在一些实施例中,服务器将扫描设备所在基站的全部用户的人脸数据加入扫描设备的匹配候选集,并将匹配候选集中的人脸数据作为与服务器存储的用户身份数据中的人脸数据比对的人脸数据,与将在移动终端设备上填写身份信息以及存储人脸数据的全部用户的人脸数据作为比对人脸数据相比,减少了比对人脸数据,提高了本申请实施例提供的人脸识别方法识别人脸的速度和准确率。In some embodiments, the server adds the face data of all users of the base station where the scanning device is located to the matching candidate set of the scanning device, and compares the face data in the matching candidate set with the face data in the user identity data stored in the server. Compared with the face data of all users who fill in the identity information and store the face data on the mobile terminal equipment as the comparison face data, the comparison face data has been reduced, and the implementation of the application has been improved. The face recognition method provided by the example provides the speed and accuracy of face recognition.
步骤S160:服务器将被测人脸数据与匹配候选集中的人脸数据相比对,根据比对结果确认被测人脸数据对应的用户身份信息。Step S160: The server compares the tested face data with the face data in the matching candidate set, and confirms the user identity information corresponding to the tested face data according to the comparison result.
在一些实施例中,服务器将被测人脸数据与匹配候选集中的人脸数据相比对,直到在匹配候选集中的人脸数据找到与被测人脸相匹配的人脸数据确认被测人脸数据对应的用户身份信息,与将在移动终端设备上填写身份信息以及存储人脸数据的全部用户的人脸数据作为比对人脸数据相比,减少了比对人脸数据,提高了本申请实施例提供的人脸识别方法识别人脸的速度和准确率。In some embodiments, the server compares the face data under test with the face data in the matching candidate set until the face data in the matching candidate set finds the face data matching the face under test to confirm that the person under test The user identity information corresponding to the face data, compared with the face data of all users who fill in the identity information and store the face data on the mobile terminal device as the comparison face data, reduces the comparison face data and improves the cost. The speed and accuracy of the face recognition method provided in the embodiment of the application.
为对上文介绍的方法做进一步说明,本申请实施例还提供了一种人脸识别装置的示意图,参见图2,该人脸识别装置包括移动终端设备1、扫描设备2和服务器3,移动终端设备1和服务器3通信连接,扫描设备2和服务器3通信连接,移动终端设备1、扫描设备2和服务器3用于实现人脸识别方法,服务器3根据全部用户所在的基站,获取扫描设备2所在基站的全部用户,与将在移动终端设备1上填写身份信息以及存储人脸数据的全部用户的人脸数据作为比对人脸数据相比,减少了比对人脸数据,提高了本申请实施例提供的人脸识别方法识别人脸的速度和准确率。In order to further explain the method introduced above, the embodiment of the present application also provides a schematic diagram of a face recognition device, see Figure 2, the face recognition device includes a mobile
基于图2所示的人脸识别装置,一种人脸识别过程如下:用户在移动终端设备1的第一程序上填写用户的身份信息以及存储用户的人脸数据,第一程序通过调用移动终端设备1提供的获取基站信息的接口,实时获取移动终端设备1所在的第一基站的移动网络号码,以及第一基站的基站编号,并向服务器3发送包含移动网络号码和基站编号的第一基站数据。第二程序与第一程序为相匹配的程序,扫描设备2上的第二程序,通过调用扫描设备2提供的获取基站信息的接口,实时获取扫描设备2所在的第二基站的移动网络号码,以及第二基站的基站编号,并向服务器3发送包含移动网络号码和基站编号的第二基站数据。当用户来到扫描设备2上的摄像头前时,摄像头采集含有人脸的图像,并将含有人脸图像的被测人脸数据发送到服务器3。服务器3根据第一基站数据,确定用户所在基站,根据第二基站数据确定扫描设备2所在基站,获取扫描设备2所在基站的全部用户,将扫描设备2所在基站的全部用户的人脸数据加入扫描设备2的匹配候选集,并将被测人脸数据与匹配候选集中的人脸数据相比对,根据比对结果确认被测人脸数据对应的用户身份信息。Based on the face recognition device shown in Figure 2, a face recognition process is as follows: the user fills in the user's identity information and stores the user's face data on the first program of the mobile
由上述实施例可见,本申请实施例提供的人脸识别方法,包括服务器3接收用户的移动终端设备1发送的第一基站数据,并根据第一基站数据确定用户所在基站,服务器3接收扫描设备2发送的人脸识别请求,人脸识别请求包括被测人脸数据和第二基站数据,并根据第二基站数据确定扫描设备2所在基站,获取扫描设备2所在基站的全部用户,服务器3将扫描设备2所在基站的全部用户的人脸数据加入扫描设备2的匹配候选集,服务器3将被测人脸数据与匹配候选集中的人脸数据相比对,根据比对结果确认被测人脸数据对应的用户身份信息。由于第一基站数据与包含用户身份信息以及人脸数据的移动终端设备1一一对应,本申请实施例提供的人脸识别方法,根据扫描设备2所在基站的第二基站数据确定扫描设备2所在基站,在接收到的第一基站数据中,服务器3查找与扫描设备2所在基站的移动网络号码和基站编号相同的第一基站数据,确定扫描设备2所在基站的全部用户,从而对移动终端设备1所在基站的人脸数据进行过滤,获取扫描设备2所在基站的全部用户的人脸数据,与在移动终端设备1上填写身份信息以及存储人脸数据的全部用户的人脸数据作为比对人脸数据相比,减少了比对的人脸数据,提高了本申请实施例提供的人脸识别方法识别人脸的速度和准确率。It can be seen from the above embodiments that the face recognition method provided by the embodiment of the present application includes that the
由于以上实施方式均是在其他方式之上引用结合进行说明,不同实施例之间均具有相同的部分,本说明书中各个实施例之间相同、相似的部分互相参见即可。在此不再详细阐述。Since the above implementation methods are described in conjunction with reference to other methods, different embodiments have the same parts, and the same and similar parts between the various embodiments in this specification can be referred to each other. No further elaboration here.
需要说明的是,在本说明书中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或暗示这些实体或操作之间存在任何这种实际的关系或顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的电路结构、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种电路结构、物品或者设备所固有的要素。在没有更多限制的情况下,有语句“包括一个……”限定的要素,并不排除在包括所述要素的电路结构、物品或者设备中还存在另外的相同要素。It should be noted that in this specification, relative terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply No such actual relationship or order exists between these entities or operations. Moreover, the terms "comprises", "comprises" or any other variation thereof are intended to cover a non-exclusive inclusion such that a circuit arrangement, article or apparatus comprising a set of elements includes not only those elements but also elements not expressly listed Other elements, or also include elements inherent in such circuit structures, articles or equipment. Without further limitations, the presence of an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in a circuit arrangement, article or device comprising said element.
本领域技术人员在考虑说明书及实践这里发明的公开后,将容易想到本申请的其他实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由权利要求的内容指出。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the inventive disclosure herein. This application is intended to cover any modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application . The specification and examples are to be considered exemplary only, with the true scope and spirit of the application indicated by the contents of the appended claims.
以上所述的本申请实施方式并不构成对本申请保护范围的限定。The embodiments of the present application described above are not intended to limit the scope of protection of the present application.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110394958.3A CN113033466B (en) | 2021-04-13 | 2021-04-13 | A face recognition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110394958.3A CN113033466B (en) | 2021-04-13 | 2021-04-13 | A face recognition method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113033466A CN113033466A (en) | 2021-06-25 |
CN113033466B true CN113033466B (en) | 2022-11-15 |
Family
ID=76456673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110394958.3A Active CN113033466B (en) | 2021-04-13 | 2021-04-13 | A face recognition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113033466B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1276956A (en) * | 1997-08-18 | 2000-12-13 | 艾利森电话股份有限公司 | Method and system for determining position of mobile radio terminals |
RU2172494C2 (en) * | 1998-06-19 | 2001-08-20 | Самсунг Электроникс Ко., Лтд. | Device for determination oflocation and method for request for rendering of service in determination of location for mobile communication system |
CN1897746A (en) * | 2005-07-15 | 2007-01-17 | 华为技术有限公司 | Terminal positioning method, mobile-terminal positioning system and mobile terminal |
CN105007621A (en) * | 2015-05-27 | 2015-10-28 | 上海宇尚信息科技有限公司 | Indoor and outdoor precise comprehensive positioning method suitable for mobile terminal |
CN105277920A (en) * | 2014-06-27 | 2016-01-27 | 深圳市康源新通信技术有限公司 | Bluetooth real-time dynamic positioning method and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
IT1404167B1 (en) * | 2011-02-10 | 2013-11-15 | Eureka S A | AUTOMATIC ELECTRONIC PAYMENT THROUGH MOVABLE TERMINALS. |
CN110399763B (en) * | 2018-04-24 | 2023-04-18 | 奥比中光科技集团股份有限公司 | Face recognition method and system |
CN111954229A (en) * | 2019-05-17 | 2020-11-17 | 华为技术有限公司 | Position information sending method and device and terminal equipment |
-
2021
- 2021-04-13 CN CN202110394958.3A patent/CN113033466B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1276956A (en) * | 1997-08-18 | 2000-12-13 | 艾利森电话股份有限公司 | Method and system for determining position of mobile radio terminals |
RU2172494C2 (en) * | 1998-06-19 | 2001-08-20 | Самсунг Электроникс Ко., Лтд. | Device for determination oflocation and method for request for rendering of service in determination of location for mobile communication system |
CN1897746A (en) * | 2005-07-15 | 2007-01-17 | 华为技术有限公司 | Terminal positioning method, mobile-terminal positioning system and mobile terminal |
CN105277920A (en) * | 2014-06-27 | 2016-01-27 | 深圳市康源新通信技术有限公司 | Bluetooth real-time dynamic positioning method and system |
CN105007621A (en) * | 2015-05-27 | 2015-10-28 | 上海宇尚信息科技有限公司 | Indoor and outdoor precise comprehensive positioning method suitable for mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN113033466A (en) | 2021-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10669130B2 (en) | System and method for automated analysis comparing a wireless device location with another geographic location | |
US10776784B2 (en) | System and method for automated analysis comparing a wireless device location with another geographic location | |
KR101490132B1 (en) | How to track credit card fraud | |
US20120130898A1 (en) | Mobile directory number and email verification of financial transactions | |
CN110210854B (en) | Payment information processing method, device, equipment and computer readable storage medium | |
CN106845973A (en) | A kind of method of payment, cash receiving terminal, payment platform, and system | |
CN111325556A (en) | Information processing method, device, equipment and medium | |
WO2013181151A2 (en) | System and method for automated analysis comparing a wireless device location with another geographic location | |
CN110223080B (en) | Method and device for determining target account of face-scanning payment platform | |
CN105894261A (en) | Usage method of cashier desk face payment system | |
KR101799044B1 (en) | A method, program and device for correcting information extracted from business card | |
CN113033466B (en) | A face recognition method and device | |
CN113836509B (en) | Information acquisition method, device, electronic equipment and storage medium | |
CN111583028B (en) | Entrusted withdrawal service processing method and system | |
US11797997B2 (en) | Data verification in transactions in distributed network | |
CN111553702B (en) | Payment risk identification method and device | |
KR20190050110A (en) | Finacial service system, client terminal and method for remittance service | |
CN110581771B (en) | Method for processing cost split by using network message service, computer device readable storage medium and computer device | |
CN105894285A (en) | Using method of face payment system based on Bluetooth-assisted authentication | |
CN111640011B (en) | Request method, request device, server and storage medium | |
CN111061451A (en) | Information processing method, device and system | |
US20250086625A1 (en) | Tap-to-verify proof of payment challenge | |
CN105913262A (en) | Face payment system based on Bluetooth auxiliary authentication | |
CN114936855A (en) | Non-inductive payment method and system | |
KR20250051983A (en) | Method and apparatus for authenticating transaction target platform and transaction target party in platform transaction process based on platform value appraisal model |
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 |