[go: up one dir, main page]

CN110609970B - User identification method, device, storage medium and electronic device - Google Patents

User identification method, device, storage medium and electronic device Download PDF

Info

Publication number
CN110609970B
CN110609970B CN201910809615.1A CN201910809615A CN110609970B CN 110609970 B CN110609970 B CN 110609970B CN 201910809615 A CN201910809615 A CN 201910809615A CN 110609970 B CN110609970 B CN 110609970B
Authority
CN
China
Prior art keywords
information
target user
identity
user
target
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
CN201910809615.1A
Other languages
Chinese (zh)
Other versions
CN110609970A (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.)
Chengdu Yudi Technology Co ltd
Original Assignee
Beijing Dami 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 Beijing Dami Technology Co Ltd filed Critical Beijing Dami Technology Co Ltd
Priority to CN201910809615.1A priority Critical patent/CN110609970B/en
Publication of CN110609970A publication Critical patent/CN110609970A/en
Application granted granted Critical
Publication of CN110609970B publication Critical patent/CN110609970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例公开了一种用户身份识别方法、装置、存储介质及电子设备,属于在线教育领域。服务器获取目标活动中目标用户的面部信息和身份标识,基于面部信息在数据库中查询关联的身份标识,若查询到的身份标识和获取到的身份标识不相同,生成第一提示信息,第一提示信息表示该用户为异常用户,即该目标用户以前已使用其他身份标识参加过目标活动,避免同一用户重复参见目标活动,降低服务器的处理开销。

Figure 201910809615

The embodiments of the present application disclose a user identity identification method, device, storage medium and electronic device, which belong to the field of online education. The server obtains the facial information and identity of the target user in the target activity, and queries the associated identity in the database based on the facial information. If the queried identity is different from the acquired identity, a first prompt message is generated. The first prompt The information indicates that the user is an abnormal user, that is, the target user has previously participated in the target activity using other identifications, so as to avoid the same user from repeatedly referring to the target activity and reduce the processing overhead of the server.

Figure 201910809615

Description

用户身份识别方法、装置、存储介质及电子设备User identification method, device, storage medium and electronic device

技术领域technical field

本申请涉及在线教育领域,尤其涉及一种用户身份识别方法、装置、存储介质及电子设备。The present application relates to the field of online education, and in particular, to a user identity identification method, device, storage medium and electronic device.

背景技术Background technique

随着互联网的发展,在线教育收到越来越多人的欢迎,在线教育科研不限时间和地点灵活的的学习,充分提升自身的技能。相对于传统的使用固定教室更移动便捷化,在画面、音频更具视觉化和更具吸引力。With the development of the Internet, online education has been welcomed by more and more people. Online education and scientific research can study flexibly at any time and place, and fully improve their skills. Compared with the traditional use of fixed classrooms, it is more mobile and convenient, and the picture and audio are more visual and attractive.

在相关技术中,在线教育平台为用户提供免费试听功能,用户通过终端设备注册一个登录账号,用户完成注册过程后,通过登录账户登录在线教育平台,在线教育平台检测到登录账号为新账号时,在线教育平台在为用户提供预设课时的免费试听的目标活动。In related technologies, the online education platform provides users with a free trial listening function. The user registers a login account through a terminal device. After the user completes the registration process, the user logs in to the online education platform through the login account. When the online education platform detects that the login account is a new account, The online education platform is aiming to provide users with free trial listening for preset class hours.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了的目标活动中用户身份识别方法、装置、存储介质及终端,在线教育平台对新用户提供免费试听服务,本申请实施例可以检测出同一个用户注册多个账户进行免费试听,降低在线教育平台的处理开销和运营成本。所述技术方案如下:The embodiments of the present application provide a method, device, storage medium, and terminal for user identification in target activities. The online education platform provides free trial listening services to new users. The embodiments of the present application can detect that the same user has registered multiple accounts for free trial listening. , reducing the processing overhead and operating costs of the online education platform. The technical solution is as follows:

第一方面,本申请实施例提供了一种目标活动中用户身份识别方法,所述方法包括:In a first aspect, an embodiment of the present application provides a method for identifying a user in a target activity, the method comprising:

获取目标活动中用户的面部信息和第一身份标识;基于面部信息在目标活动关联的数据库中进行查询,若在数据库中查询到与面部信息关联的身份标识,读取与面部信息关联的第二身份标识;若第一身份标识和第二身份标识不同,生成第一提示信息;其中,第一提示信息表示所述用户为异常用户。Obtain the facial information and the first identification of the user in the target activity; query in the database associated with the target activity based on the facial information, if the identification associated with the facial information is queried in the database, read the second associated with the facial information. ID; if the first ID and the second ID are different, generate first prompt information; wherein, the first prompt information indicates that the user is an abnormal user.

第二方面,本申请实施例提供了一种目标活动中用户身份识别装置,所述识别装置包括:In a second aspect, an embodiment of the present application provides a device for identifying user identity in a target activity, and the identifying device includes:

获取单元,用于获取目标活动中目标用户的面部信息和所述目标用户的身份标识;an acquisition unit for acquiring the facial information of the target user and the identity of the target user in the target activity;

查询单元,用于基于所述面部信息在与所述目标活动关联的数据库中进行查询;a query unit for querying a database associated with the target activity based on the face information;

读取单元,用于若在所述数据库查询到与所述面部信息关联的身份标识,在所述数据库中读取与所述面部图像关联的身份标识;A reading unit, configured to read the identification associated with the facial image in the database if the identification associated with the facial information is queried in the database;

提示单元,用于若所述目标用户的身份标识和所述面部信息关联的身份标识不同,生成第一提示信息;其中,所述第一提示信息表示所述目标用户为异常用户。A prompting unit, configured to generate first prompt information if the identity identifier of the target user and the identity identifier associated with the face information are different; wherein, the first prompt information indicates that the target user is an abnormal user.

第三方面,本申请实施例提供一种计算机存储介质,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行上述的方法步骤。In a third aspect, an embodiment of the present application provides a computer storage medium, where the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above method steps.

第四方面,本申请实施例提供一种电子设备,可包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行上述的方法步骤。In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein, the memory stores a computer program, and the computer program is adapted to be loaded by the processor and execute the above method steps .

本申请一些实施例提供的技术方案带来的有益效果至少包括:The beneficial effects brought by the technical solutions provided by some embodiments of the present application include at least:

服务器获取目标活动中目标用户的面部信息和身份标识,基于面部信息在数据库中查询关联的身份标识,若查询到的身份标识和获取到的身份标识不相同,生成第一提示信息,第一提示信息表示该用户为异常用户,即该目标用户以前已使用其他身份标识参加过目标活动,避免同一用户重复参见目标活动,降低服务器的处理开销。The server obtains the face information and identification of the target user in the target activity, and searches the database for the associated identification based on the facial information. The information indicates that the user is an abnormal user, that is, the target user has previously participated in the target activity using other identity identifiers, so as to avoid the same user from repeatedly referring to the target activity and reduce the processing overhead of the server.

附图说明Description of drawings

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

图1是本申请实施例提供的一种网络架构图;1 is a network architecture diagram provided by an embodiment of the present application;

图2是本申请实施例提供的用户身份识别方法的流程示意图;2 is a schematic flowchart of a user identity identification method provided by an embodiment of the present application;

图3是本申请实施例提供的用户身份识别方法的另一流程示意图;3 is another schematic flowchart of a user identity identification method provided by an embodiment of the present application;

图4是本申请实施例提供的采集视频流的时序图;Fig. 4 is the sequence diagram of the collection video stream provided by the embodiment of the present application;

图5是本申请实施例提供的终端设备的用户界面图;5 is a user interface diagram of a terminal device provided by an embodiment of the present application;

图6是本申请实施例提供的一种装置的结构示意图;6 is a schematic structural diagram of a device provided by an embodiment of the present application;

图7是本申请提供的一种装置的另一结构示意图。FIG. 7 is another schematic structural diagram of an apparatus provided by the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

图1示出了可以应用于本申请的用户身份识别方法或用户身份识别装置的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 that can be applied to the user identification method or user identification device of the present application.

如图1所示,系统架构100可以包括第一终端设备100、第一网络101、服务器102、第二网络103和第二终端设备104。第一网络104用于在第一终端设备101和服务器102之间提供通信链路的介质,第二网络103用于在第二终端设备104和服务器102之间提供通信链路的介质。第一网络101和第二网络103可以包括各种类型的有线通信链路或无线通信链路,例如:有线通信链路包括光纤、双绞线或同轴电缆的,无线通信链路包括蓝牙通信链路、无线保真(WIreless-FIdelity,Wi-Fi)通信链路或微波通信链路等。As shown in FIG. 1 , the system architecture 100 may include a first terminal device 100 , a first network 101 , a server 102 , a second network 103 and a second terminal device 104 . The first network 104 is used to provide a medium of a communication link between the first terminal device 101 and the server 102 , and the second network 103 is used to provide a medium of a communication link between the second terminal device 104 and the server 102 . The first network 101 and the second network 103 may include various types of wired communication links or wireless communication links, for example: wired communication links include optical fiber, twisted pair or coaxial cables, and wireless communication links include Bluetooth communication link, wireless fidelity (WIreless-FIdelity, Wi-Fi) communication link or microwave communication link, etc.

第一终端设备100通过第一网络101、服务器102、第二网络103和第二终端设备104之间进行通信,第一终端设备100向服务器102发送消息,服务器102将消息转发给第二终端设备104,第二终端设备104将消息发送给服务器102,服务器102将消息转发给第二终端设备100,由此实现第一终端设备100和第二终端设备104之间的通信,第一终端设备100和第二终端设备104之间交互的消息类型包括控制数据和业务数据。The first terminal device 100 communicates between the first network 101, the server 102, the second network 103 and the second terminal device 104, the first terminal device 100 sends a message to the server 102, and the server 102 forwards the message to the second terminal device 104. The second terminal device 104 sends the message to the server 102, and the server 102 forwards the message to the second terminal device 100, thereby realizing the communication between the first terminal device 100 and the second terminal device 104. The first terminal device 100 The types of messages exchanged with the second terminal device 104 include control data and service data.

其中,在本申请中,第一终端设备100为学生上课的终端,第二终端设备104为教师上课的终端;或第一终端设备100为教师上课的终端,第二终端设备104为学生上课的终端。例如:业务数据为视频流,第一终端设备100通摄像头采集学生上课过程中的第一视频流,第二终端设备通过摄像头104采集教师上课过程中的第二视频流,第一终端设备100将第一视频流发送给服务器102,服务器102将第一视频流转发给第二终端设备104,第二终端设备104在界面上显示第一视频流和第二视频流;第二终端设备104将第二视频流发送给服务器102,服务器102将第二视频流转发给第一终端设备100,第一终端设备100显示第一视频流和第二视频流。Wherein, in this application, the first terminal device 100 is a terminal for students to teach, and the second terminal device 104 is a terminal for teachers to teach; or the first terminal 100 is a terminal for teachers to teach, and the second terminal 104 is for students to teach. terminal. For example: the service data is a video stream, the first terminal device 100 collects the first video stream of the students during the class through the camera, the second terminal device collects the second video stream of the teacher during the class through the camera 104, and the first terminal device 100 records the The first video stream is sent to the server 102, the server 102 forwards the first video stream to the second terminal device 104, and the second terminal device 104 displays the first video stream and the second video stream on the interface; The second video stream is sent to the server 102, and the server 102 forwards the second video stream to the first terminal device 100, and the first terminal device 100 displays the first video stream and the second video stream.

其中,本申请的上课方式可以是一对一或一对多,即一个教师对应一个学生或一个教师对应多个学生。相应的,在一对一的教学方式中,一个用于教师上课的终端和一个用于学生上课的终端之间进行通信;在一对多的教学方式中,一个用于教师上课的终端和多个用于学生上课的终端之间进行通信。Among them, the teaching method of this application can be one-to-one or one-to-many, that is, one teacher corresponds to one student or one teacher corresponds to multiple students. Correspondingly, in the one-to-one teaching method, there is communication between a terminal used for teachers to teach and a terminal for students to teach; in one-to-many teaching, a terminal used for teachers to teach and multiple terminals Communication between terminals used for students in class.

第一终端设备100和第二终端设备104上可以安装有各种通信客户端应用,例如:视频录制应用、视频播放应用、语音交互应用、搜索类应用、及时通信工具、邮箱客户端、社交平台软件等。Various communication client applications may be installed on the first terminal device 100 and the second terminal device 104, such as: video recording application, video playback application, voice interaction application, search application, instant communication tool, email client, social platform software, etc.

第一终端设备100和第二终端设备104可以是硬件,也可以是软件。当终端设备101~103为硬件时,可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携式计算机和台式计算机等等。当第一终端设备100和第二终端设备104为软件时,可以是安装上上述所列举的电子设备中。其可以实现呈多个软件或软件模块(例如:用来提供分布式服务),也可以实现成单个软件或软件模块,在此不作具体限定。The first terminal device 100 and the second terminal device 104 may be hardware or software. When the terminal devices 101 to 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like. When the first terminal device 100 and the second terminal device 104 are software, they may be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, used to provide distributed services), or can be implemented as a single software or software module, which is not specifically limited here.

当第一终端设备100和第二终端设备104为硬件时,其上还可以安装有显示设备和摄像头,显示设备显示可以是各种能实现显示功能的设备,摄像头用于采集视频流;例如:显示设备可以是阴极射线管显示器(Cathode ray tubedisplay,简称CR)、发光二极管显示器(Light-emitting diode display,简称LED)、电子墨水屏、液晶显示屏(Liquid crystaldisplay,简称LCD)、等离子显示面板(Plasma displaypanel,简称PDP)等。用户可以利用第一终端设备100和第二终端设备104上的显示设备,来查看显示的文字、图片、视频等信息。When the first terminal device 100 and the second terminal device 104 are hardware, a display device and a camera can also be installed thereon, and the display device display can be various devices that can realize the display function, and the camera is used to capture video streams; for example: The display device may be a cathode ray tube display (CR for short), a light-emitting diode display (LED for short), an electronic ink screen, a liquid crystal display (LCD for short), a plasma display panel ( Plasma displaypanel, referred to as PDP) and so on. The user can use the display devices on the first terminal device 100 and the second terminal device 104 to view displayed information such as text, pictures, and videos.

需要说明的是,本申请实施例提供的用户身份识别方法一般由服务器102执行,相应的,用户身份识别装置一般设置于服务器102中。例如:服务器102检测第一终端设备100采集的第一视频流中学生的人眼状态,以及检测第二终端设备104采集的第二视频流中教师的人眼状态,根据学生的人眼状态和教师的人眼状态评估教学质量信息。另外,当学生处于闭眼状态的时长超过预设时长的情况下,服务器102向第一终端设备100发送提示信息,以提示学生注意力不集中;当教师处于闭眼状态的时长超过预设时长的情况下,服务器102向第二终端设备104发送提示信息,以提示教师教学质量不佳。It should be noted that the user identification method provided in the embodiment of the present application is generally executed by the server 102 , and accordingly, the user identification device is generally set in the server 102 . For example, the server 102 detects the student's eye state in the first video stream collected by the first terminal device 100, and detects the teacher's eye state in the second video stream collected by the second terminal device 104, according to the student's eye state and the teacher's eye state. The human eye state assessment teaching quality information. In addition, when the duration of the student's eyes-closed state exceeds the preset duration, the server 102 sends prompt information to the first terminal device 100 to prompt the student to be inattentive; when the teacher's eyes-closed state exceeds the preset duration In this case, the server 102 sends prompt information to the second terminal device 104 to prompt the teacher that the teaching quality is not good.

服务器102可以是提供各种服务的服务器,服务器102可以是硬件,也可以是软件。当服务器105为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器102为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块,在此不做具体限定。The server 102 may be a server providing various services, and the server 102 may be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or can be implemented as a single server. When the server 102 is software, it may be implemented as multiple software or software modules (for example, used to provide distributed services), or may be implemented as a single software or software module, which is not specifically limited herein.

应理解,图1中的终端设备、网络和服务器的数目仅是示意性的。根据实现需要,可以是任意数量的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 1 are only illustrative. According to implementation needs, there can be any number of terminal devices, networks and servers.

下面将结合附图2-附图6,对本申请实施例提供的用户身份识别方法进行详细介绍。其中,本申请实施例中的用户身份识别装置可以是图2-图6所示的服务器。The user identity identification method provided by the embodiment of the present application will be described in detail below with reference to FIG. 2 to FIG. 6 . The user identity identification device in the embodiment of the present application may be the server shown in FIG. 2 to FIG. 6 .

请参见图2,为本申请实施例提供了一种用户身份识别方法的流程示意图。如图2所示,本申请实施例的所述方法可以包括以下步骤:Please refer to FIG. 2 , which is a schematic flowchart of a user identity identification method provided in an embodiment of the present application. As shown in FIG. 2 , the method of the embodiment of the present application may include the following steps:

S201、获取目标活动中用户的面部信息和用户的身份标识。S201. Acquire the facial information of the user and the identity of the user in the target activity.

其中,目标活动表示在线教育平台的服务器中创建的虚拟空间,教师通过互联网对用户进行一对一或一对多的远程授课。电子设备预存储或预配置有目标活动的目标活动名称和时间信息。例如:目标活动的开始时刻、结束时刻和持续时长等。电子设备可以通过摄像头采集包括用户的图像,然后根据人脸检测算法检测出图像中的面部,提取面部的特征信息生成面部信息,特征信息包括颜色信息、纹理信息、位置信息和空间位置信息。用户使用预先注册的登录信息登录服务器,服务器根据登录信息获取用户的身份标识,登录信息包括用户名和密码,用户在注册登录信息的过程,服务器根据预先存储的登录信息来保证每次注册的用户名是不一样的。Among them, the target activity represents the virtual space created in the server of the online education platform, and the teacher conducts one-to-one or one-to-many distance teaching to the users through the Internet. The electronic device is pre-stored or pre-configured with target activity name and time information of the target activity. For example: the start time, end time and duration of the target activity, etc. The electronic device can collect the image including the user through the camera, and then detect the face in the image according to the face detection algorithm, and extract the feature information of the face to generate the face information. The feature information includes color information, texture information, position information and spatial position information. The user logs in to the server using the pre-registered login information. The server obtains the user's identity according to the login information. The login information includes the user name and password. In the process of registering the login information, the server guarantees the user name for each registration according to the pre-stored login information. are different.

其中,本申请实施例的电子设备可以是学生使用的第一终端设备,也可以是服务器。Wherein, the electronic device in this embodiment of the present application may be the first terminal device used by the student, or may be a server.

S202、基于面部信息在与目标活动关联的数据库中进行查询。S202 , query a database associated with the target activity based on the facial information.

其中,电子设备预存储或预配置有数据库,数据库中存储有预设时长内已参加过目标活动的学生的面部信息和身份标识,电子设备以面部信息为索引在数据库中进行查询,数据库的类型可以是关系型数据库,例如:数据库为mysql数据库;数据库的类型也可以是非关系型数据库,例如:数据库为哈希数据库。Among them, the electronic device is pre-stored or pre-configured with a database, and the database stores the facial information and identification of students who have participated in the target activity within a preset period of time. The electronic device uses the facial information as an index to query the database, and the type of database It can be a relational database, for example: the database is a mysql database; the type of the database can also be a non-relational database, for example: the database is a hash database.

S203、若在数据库中查询到与面部信息关联的身份标识,在数据库中读取与面部信息关联的身份标识。S203. If the identity identifier associated with the facial information is queried in the database, read the identity identifier associated with the facial information in the database.

其中,以面部信息为索引在数据库中查询,若查询到面部信息关联的身份标识,在数据库中读取该面部信息关联的身份标识。Wherein, the facial information is used as an index to query in the database, and if the identity identifier associated with the facial information is queried, the identity identifier associated with the facial information is read in the database.

S204、若用户的身份标识和面部图像关联的身份标识不同,生成第一提示信息。S204. If the user's identity identifier and the identity identifier associated with the facial image are different, generate first prompt information.

其中,电子设备比较根据登录信息获取到的身份标识和数据库中存储的面部信息关联的身份标识不同时,生成第一提示信息,第一提示信息表示该学生为异常用户,即该学生已参加过该目标活动。Wherein, when the electronic device compares the identity identifier obtained according to the login information and the identity identifier associated with the facial information stored in the database to be different, the electronic device generates first prompt information, which indicates that the student is an abnormal user, that is, the student has participated in the the target activity.

本申请实施例的方案在执行时,服务器获取目标活动中目标用户的面部信息和身份标识,基于面部信息在数据库中查询关联的身份标识,若查询到的身份标识和获取到的身份标识不相同,生成第一提示信息,第一提示信息表示该用户为异常用户,即该目标用户以前已使用其他身份标识参加过目标活动,避免同一用户重复参见目标活动,降低服务器的处理开销。When the solution of the embodiment of the present application is executed, the server obtains the facial information and identity identifier of the target user in the target activity, and searches the database for the associated identity identifier based on the facial information. If the queried identity identifier and the acquired identity identifier are different , and generate first prompt information, the first prompt information indicates that the user is an abnormal user, that is, the target user has participated in the target activity with other identifications before, avoiding the same user repeatedly referring to the target activity and reducing the processing overhead of the server.

请参见图3,为本申请实施例提供了一种用户身份识别方法的流程示意图。本实施例以用户身份识别方法应用于服务器中来举例说明。该用户身份识别方法可以包括以下步骤:Please refer to FIG. 3 , which is a schematic flowchart of a user identity identification method provided in an embodiment of the present application. In this embodiment, the user identity identification method is applied to the server as an example for illustration. The user identification method may include the following steps:

S301、接收第一终端设备响应于目标用户的登录操作发送的登录请求。S301. Receive a login request sent by a first terminal device in response to a login operation of a target user.

其中,目标用户在第一终端设备上执行登录操作,登录操作可以是触控操作、鼠标操作、键盘操作、声控操作或体感操作中的一种或多种。终端设备检测到目标用户在第一终端设备上执行的登录操作时,生成登录请求,向服务器发送登录请求,登录请求的类型是HTTP(hypertext transferprotocol,超文本传输协议)请求、TCP(transmissioncontrolprotocol,传输控制协议)请求或UDP(user datagramprotocol,用户数据报协议)请求中的任意一种。登录请求中携带登录信息,登录信息是目标用户预先在服务器上注册的,登录信息包括用户标识和登录密码。Wherein, the target user performs a login operation on the first terminal device, and the login operation may be one or more of a touch operation, a mouse operation, a keyboard operation, a voice control operation or a somatosensory operation. When the terminal device detects the login operation performed by the target user on the first terminal device, it generates a login request, and sends the login request to the server. The type of the login request is HTTP (hypertext transfer protocol, hypertext transfer protocol) request, TCP (transmission control protocol, transmission control protocol) request or UDP (user datagram protocol, user datagram protocol) request. The login request carries login information, the login information is pre-registered on the server by the target user, and the login information includes a user ID and a login password.

例如:第一终端设备上显示有在线教育APP的图标,第一终端设备检测到图标上的点击操作后,判断本地是否存储有在线教育APP的登录信息,若判断结果为是,向服务器发送携带登录信息的登录请求;若判断结果为否,第一终端设备显示登录界面,登录界面包括登录信息输入框,第一终端设备接收用户在登录信息输入框输入的登录信息,然后向服务器发送携带该登录信息的登录请求,服务器接收来自第一终端设备的登录请求。For example, an icon of an online education APP is displayed on the first terminal device. After detecting the click operation on the icon, the first terminal device determines whether the login information of the online education APP is stored locally. A login request for login information; if the judgment result is no, the first terminal device displays a login interface, and the login interface includes a login information input box, and the first terminal device receives the login information entered by the user in the login information input box, and then sends a message carrying the login information to the server. For the login request of the login information, the server receives the login request from the first terminal device.

S302、在验证登录信息正确后,存储登录信息,以及向第一终端设备返回登录成功响应。S302. After verifying that the login information is correct, store the login information, and return a login success response to the first terminal device.

其中,服务器上预存储有目标用户的登录信息,服务器将预存储的登录信息和接收到的登录请求中的登录信息进行比较,如果二者相同,确定接收到的登录请求中的登录信息是正确的,记录登录信息为在线状态,服务器向第一终端设备返回登录成功响应,登录成功响应表示第一终端设备使用登录信息成功登录服务器,登录成功响应的类型可以是HTTP请求、TCP请求或UDP请求中的任意一种。如果服务器比较预存储的登录信息和接收到的登录请求中的登录信息不相同时,服务器上记录的登录信息保持为离线状态,服务器向第一终端设备返回登录失败响应,登录失败响应表示第一终端设备使用登录信息登录服务器失败。The login information of the target user is pre-stored on the server, and the server compares the pre-stored login information with the login information in the received login request. If the two are the same, it determines that the login information in the received login request is correct. If the record login information is online, the server returns a login success response to the first terminal device. The login success response indicates that the first terminal device successfully logs in to the server using the login information. The type of the login success response can be an HTTP request, a TCP request or a UDP request. any of the . If the server compares the pre-stored login information with the login information in the received login request, the login information recorded on the server remains offline, and the server returns a login failure response to the first terminal device. The login failure response indicates that the first The terminal device fails to log in to the server using the login information.

在一个或多个实施例中,服务器返回登录失败响应的触发条件还可能是,服务器上的负荷大于预设负荷;或服务器上的用户数大于预设数量;或服务器上资源剩余量小于预设阈值时,服务器向第一终端设备返回登录失败响应。In one or more embodiments, the triggering condition for the server to return a login failure response may also be that the load on the server is greater than a preset load; or the number of users on the server is greater than a preset number; or the remaining amount of resources on the server is less than a preset amount When the threshold is reached, the server returns a login failure response to the first terminal device.

S303、创建目标活动对应的虚拟空间,以及将第一终端设备加入到虚拟空间中。S303. Create a virtual space corresponding to the target activity, and add the first terminal device to the virtual space.

其中,虚拟空间相当于一个群组,参与目标活动的参与方的终端设备加入到虚拟空间后,任意一个终端在虚拟空间中发送消息,虚拟空间中的其他终端都可以接收该消息,消息的类型可以是文本、图片、语音或视频等。例如:在线教育平台的虚拟空间为虚拟课堂,服务器创建虚拟课堂后,将第一终端设备(学生角色)和第二终端设备(教师角色)加入到虚拟空间中,虚拟课堂中的第一终端设备可以接收来自第二终端设备的第二视频流,第二终端设备可以接收来自第一终端设备的第一视频流,第二视频流是第二终端设备利用音频采集装置和视频采集装置采集得到的,第一视频流是第一终端设备利用音频采集装置和视频采集装置采集得到的。Among them, the virtual space is equivalent to a group. After the terminal devices of the participants participating in the target activity join the virtual space, any terminal sends a message in the virtual space, and other terminals in the virtual space can receive the message. The type of the message It can be text, pictures, voice or video, etc. For example: the virtual space of the online education platform is a virtual classroom. After the server creates a virtual classroom, the first terminal device (student role) and the second terminal device (teacher role) are added to the virtual space, and the first terminal device in the virtual classroom can receive the second video stream from the second terminal device, the second terminal device can receive the first video stream from the first terminal device, and the second video stream is acquired by the second terminal device using the audio capture device and the video capture device , the first video stream is acquired by the first terminal device using the audio collection device and the video collection device.

S304、接收来自第一终端设备的第一视频流,以及向第一终端设备推送来自第二终端设备的第二视频流。S304. Receive the first video stream from the first terminal device, and push the second video stream from the second terminal device to the first terminal device.

其中,虚拟空间包括第一终端设备和第二终端设备,服务器负责对来自第一终端设备和第二终端设备的消息进行转发。第一终端设备利用音频采集装置(例如:麦克风)采集音频数据,以及视频采集装置(例如:摄像头)采集图像数据,将音频数据和图像数据进行合并处理得到第一视频流,将第一视频流发送服务器,服务器将第一视频流转发到虚拟空间中的第二终端设备;相应的,服务器将来自第二终端设备的第二视频流转发给虚拟空间中的第一终端设备,这样实现第一终端设备和第二终端设备的相互通信。虚拟空间中第一终端设备的数量可以是一个或多个,第二终端设备的数量也可以是一个或多个,本申请实施例不作限制。The virtual space includes a first terminal device and a second terminal device, and the server is responsible for forwarding messages from the first terminal device and the second terminal device. The first terminal device uses an audio collection device (for example, a microphone) to collect audio data, and a video collection device (for example, a camera) to collect image data, and combines the audio data and the image data to obtain a first video stream. Sending a server, the server forwards the first video stream to the second terminal device in the virtual space; correspondingly, the server forwards the second video stream from the second terminal device to the first terminal device in the virtual space, so that the first Intercommunication of the terminal device and the second terminal device. The number of first terminal devices in the virtual space may be one or more, and the number of second terminal devices may also be one or more, which is not limited in this embodiment of the present application.

其中,服务器采用相同的周期采集视频流,举例来说:参见图4所示,服务器检测到达预设的上课起始时刻时,创建虚拟教室,将第一终端设备和第二终端设备加入到虚拟教室中,第一终端设备开始启动摄像头采集第一视频流,将第一视频流发送给服务器;第二终端设备开始启动摄像头采集第二视频流,将第二视频流发送给服务器,第一视频流和第二视频流是实时连续的媒体流。服务器采用相同的周期T2采集预设时长T1的视频流,T1和T2的时长可以根据实际需求而定,t0为上课起始时刻。The server uses the same cycle to collect video streams. For example, as shown in FIG. 4 , when the server detects that the preset class starting time arrives, a virtual classroom is created, and the first terminal device and the second terminal device are added to the virtual classroom. In the classroom, the first terminal device starts to start the camera to collect the first video stream, and sends the first video stream to the server; the second terminal device starts to start the camera to collect the second video stream, sends the second video stream to the server, and the first video stream is sent to the server. The stream and the second video stream are real-time continuous media streams. The server uses the same cycle T2 to collect the video stream of the preset duration T1. The durations of T1 and T2 can be determined according to actual needs, and t0 is the start time of the class.

S305、根据预存储的登录信息获取目标用户的身份标识。S305. Acquire the identity identifier of the target user according to the pre-stored login information.

其中,服务器记录为预先注册的的登录信息,以及记录有各个登录信息处于在线状态或离线状态。服务器获取S301第一终端设备登录时使用的登录信息。The server records the pre-registered login information, and records that each login information is in an online state or an offline state. The server obtains the login information used when the first terminal device logs in in S301.

S306、根据来自第一终端设备的第一视频流提取目标用户的面部图像,以及基于面部图像进行识别得到目标用户的面部信息。S306. Extract the facial image of the target user according to the first video stream from the first terminal device, and perform recognition based on the facial image to obtain facial information of the target user.

其中,目标用户使用第一终端设备登录服务器,第一终端设备采集到的第一视频流包括目标用户的面部图像,提取面部图像中的特征信息得到面部信息,面部信息包括颜色信息、纹理信息、形状信息和位置信息中的一种或多种。面部信息可以使用特征向量来表示。The target user logs in to the server using the first terminal device, the first video stream collected by the first terminal device includes the face image of the target user, and the feature information in the face image is extracted to obtain the face information, and the face information includes color information, texture information, One or more of shape information and location information. Facial information can be represented using feature vectors.

参见图5所示,为第一终端设备或第二终端设备的界面示意图,以第一终端设备为例进行说明,第一终端设备设置有摄像头50,在上课起始时刻到来时,摄像头将第一终端设备和第二终端设备加入到虚拟教室中,指示第一终端设备的摄像头50将采集到的第一视频流显示在第一窗口51中,以及将第二终端设备的摄像头采集的第二视频流发送给第一终端设备,第一终端设备的第二窗口52中显示第二终端设备采集的第二视频流。第一终端设备的界面还包括聊天窗口53、文字输入框54和发送按钮55,聊天窗口用于显示第一终端设备的用户和第二终端设备的用户的聊天记录,文字输入框用户输入文字、图片、视频和表情包等信息,发送按钮55用于发送文字输入框54中的信息。第二窗口52中包括第一终端设备采集到的目标用户的面部图像,服务器提取第二窗口52中的面部图像的特征信息得到面部信息。Referring to FIG. 5 , which is a schematic diagram of the interface of the first terminal device or the second terminal device, the first terminal device is taken as an example for description. The first terminal device is provided with a camera 50. When the class starts, the camera will A terminal device and a second terminal device are added to the virtual classroom, and the camera 50 of the first terminal device is instructed to display the captured first video stream in the first window 51, and to display the second video stream captured by the camera of the second terminal device in the first window 51. The video stream is sent to the first terminal device, and the second video stream collected by the second terminal device is displayed in the second window 52 of the first terminal device. The interface of the first terminal device also includes a chat window 53, a text input box 54 and a send button 55. The chat window is used to display the chat records of the user of the first terminal device and the user of the second terminal device. In the text input box, the user enters text, For information such as pictures, videos and emoticons, the send button 55 is used to send the information in the text input box 54 . The second window 52 includes the facial image of the target user collected by the first terminal device, and the server extracts the feature information of the facial image in the second window 52 to obtain facial information.

S307、基于哈希运算对面部信息进行处理得到哈希值,以及基于哈希值指示的地址空间在目标活动关联的数据库中进行查询。S307: Process the face information based on the hash operation to obtain a hash value, and perform a query in the database associated with the target activity based on the address space indicated by the hash value.

其中,哈希运算使用的哈希算法可以是现有技术中的任意一种,本申请实施例不作限制。将面部信息进行哈希运算后得到固定长度的字符串。服务器中预存储或有配置有数据库,数据库和活动标识有关,不同的活动关联有不同的数据库。数据库中存储的数据的索引是哈希地址,在基于哈希运算对面部信息进行处理后得到的哈希值指示的地址空间中查询。The hash algorithm used in the hash operation may be any one in the prior art, which is not limited in this embodiment of the present application. The face information is hashed to get a fixed-length string. A database is pre-stored or configured in the server, the database is related to the activity ID, and different activities are associated with different databases. The index of the data stored in the database is the hash address, which is queried in the address space indicated by the hash value obtained after processing the face information based on the hash operation.

其中,目标活动关联的数据库中存储的是预设时长内已参加目标活动的学生的面部信息和身份标识,预设时长可以根据实际需求而定,本申请实施例不作限制。Wherein, the database associated with the target activity stores the facial information and identities of students who have participated in the target activity within a preset duration, and the preset duration may be determined according to actual needs, which is not limited in this embodiment of the present application.

S308、判断是否查询到与面部信息关联的身份标识。S308. Determine whether the identity identifier associated with the facial information is queried.

其中,若查询结果为是,执行S310;若查询结果为否,执行S309。Wherein, if the query result is yes, execute S310; if the query result is no, execute S309.

S309、将面部信息和目标用户的身份标识关联后写入到数据库中。S309. Write the facial information into the database after associating the facial information with the identity identifier of the target user.

其中,服务器确定目标用户为首次参与该目标活动的学生,基于S307使用的相同的哈希算法对面部信息进行运算得到哈希值,将身份标识写入到该哈希值指示的地址空间中。Wherein, the server determines that the target user is a student participating in the target activity for the first time, calculates the face information based on the same hash algorithm used in S307 to obtain a hash value, and writes the identity identifier into the address space indicated by the hash value.

S310、判断目标用户的用户标识和查询到的身份标识是否相同。S310: Determine whether the user ID of the target user and the queried ID are the same.

其中,若在数据库中查询到相应的数据,服务器比较S305中获取都的用户标识和数据库中查询的用户标识是否相同,若相同,执行S311;若不相同,执行S312。数据库中存储在面部信息为索引的身份标识,但是数据库中存储的身份标识和S305中获取到的身份标识不相同的原因包括:目标用户多次注册多个不同的登录信息,以实现多次试听在线教育平台提供的免费课程。Wherein, if the corresponding data is queried in the database, the server compares whether the user ID obtained in S305 and the user ID queried in the database are the same, if they are the same, execute S311; if not, execute S312. The identity identifier stored in the database is an index with facial information, but the reason why the identity identifier stored in the database is different from the identity identifier obtained in S305 includes: the target user registers multiple different login information multiple times to realize multiple auditions. Free courses offered by online education platforms.

S311、生成第一提示信息,在第一终端设备上显示第一提示信息,以及停止向第一终端设备推送来自第二终端设备的第二视频流。S311. Generate first prompt information, display the first prompt information on the first terminal device, and stop pushing the second video stream from the second terminal device to the first terminal device.

S312、生成第二提示信息。S312. Generate second prompt information.

其中,第二提示信息表示目标用户已参加过该目标活动,且使用相同的登录信息参与该目标活动服务器。Wherein, the second prompt information indicates that the target user has participated in the target activity and participated in the target activity server using the same login information.

实施本申请的实施例,服务器获取目标活动中目标用户的面部信息和身份标识,基于面部信息在数据库中查询关联的身份标识,若查询到的身份标识和获取到的身份标识不相同,生成第一提示信息,第一提示信息表示该用户为异常用户,即该目标用户以前已使用其他身份标识参加过目标活动,避免同一用户重复参见目标活动,降低服务器的处理开销。The embodiment of the present application is implemented, the server obtains the facial information and the identification of the target user in the target activity, and based on the facial information, the associated identification is queried in the database. A prompt message, the first prompt message indicates that the user is an abnormal user, that is, the target user has participated in the target activity with other identifications before, so as to prevent the same user from repeatedly referring to the target activity and reduce the processing overhead of the server.

下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are apparatus embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

请参见图6,其示出了本申请一个示例性实施例提供的用户身份识别装置的结构示意图。以下简称装置6,装置6可以通过软件、硬件或者两者的结合实现成为终端的全部或一部分。装置6包括获取单元601、查询单元602、读取单元603和提示单元604。Please refer to FIG. 6 , which shows a schematic structural diagram of a user identification device provided by an exemplary embodiment of the present application. The device 6 is hereinafter referred to as the device 6, and the device 6 can be implemented as all or a part of the terminal through software, hardware or a combination of the two. The apparatus 6 includes an acquiring unit 601 , a querying unit 602 , a reading unit 603 and a prompting unit 604 .

获取单元601,用于获取目标活动中目标用户的面部信息和所述目标用户的身份标识。The obtaining unit 601 is configured to obtain the facial information of the target user and the identity of the target user in the target activity.

查询单元602,用于基于所述面部信息在与所述目标活动关联的数据库中进行查询;A query unit 602, configured to perform a query in a database associated with the target activity based on the face information;

读取单元603,用于若在所述数据库查询到与所述面部信息关联的身份标识,在所述数据库中读取与所述面部图像关联的身份标识;A reading unit 603 is configured to read the identity identifier associated with the facial image in the database if the identity identifier associated with the facial information is queried in the database;

提示单元604,用于若所述目标用户的身份标识和所述面部信息关联的身份标识不同,生成第一提示信息;其中,所述第一提示信息表示所述目标用户为异常用户。The prompting unit 604 is configured to generate first prompt information if the identity identifier of the target user and the identity identifier associated with the facial information are different; wherein, the first prompt information indicates that the target user is an abnormal user.

在一个或多个实施例中,获取单元601具体用于:In one or more embodiments, the obtaining unit 601 is specifically configured to:

根据预存储的登录信息获取所述目标用户的身份标识;Obtain the identity identifier of the target user according to the pre-stored login information;

根据来自第一终端设备的第一视频流提取所述目标用户的面部图像,以及基于所述面部图像进行识别得到所述目标用户的面部信息;其中,所述第一终端设备是所述目标用户使用所述登录信息进行登录操作的终端设备。Extract the facial image of the target user according to the first video stream from the first terminal device, and identify the facial information of the target user based on the facial image; wherein the first terminal device is the target user A terminal device that uses the login information to perform a login operation.

在一个或多个实施例中,装置6还包括:In one or more embodiments, apparatus 6 further includes:

处理单元,用于接收第一终端设备响应于所述目标用户的登录操作发送的登录请求;其中,所述登录请求携带登录信息,所述登录信息包括所述目标用户的用户标识和登录密码;a processing unit, configured to receive a login request sent by the first terminal device in response to the login operation of the target user; wherein the login request carries login information, and the login information includes the user ID and login password of the target user;

在验证所述登录信息正确后,存储所述登录信息,以及向所述第一终端设备返回登录成功响应;After verifying that the login information is correct, storing the login information, and returning a login success response to the first terminal device;

创建所述目标活动对应的虚拟空间,以及将所述第一终端设备加入到所述虚拟空间中;creating a virtual space corresponding to the target activity, and adding the first terminal device to the virtual space;

接收来自所述第一终端设备的第一视频流,以及向所述第一终端设备推送来自第二终端设备的第二视频流。The first video stream from the first terminal device is received, and the second video stream from the second terminal device is pushed to the first terminal device.

在一个或多个实施例中,装置6还包括:In one or more embodiments, apparatus 6 further includes:

推送单元,用于在所述第一终端设备上显示所述第一提示信息,以及停止向所述第一终端设备推送来自所述第二终端设备的第二视频流。A pushing unit, configured to display the first prompt information on the first terminal device, and stop pushing the second video stream from the second terminal device to the first terminal device.

在一个或多个实施例中,获取单元601具体用于:In one or more embodiments, the obtaining unit 601 is specifically configured to:

采集目标活动中目标用户的面部图像,基于面部图像进行识别得到面部信息;Collect the facial image of the target user in the target activity, and identify the facial information based on the facial image;

为所述目标用户分配一个身份标识,以及将所述面部信息和所述目标用户的身份标识进行绑定后进行存储。Allocate an identity to the target user, and store the facial information after binding with the identity of the target user.

在一个或多个实施例中,查询单元602具体用于:In one or more embodiments, the query unit 602 is specifically configured to:

基于哈希运算对所述面部信息进行处理得到哈希值,以及基于所述哈希值指示的地址空间在所述目标活动关联的数据库中进行查询。The facial information is processed based on a hash operation to obtain a hash value, and a database associated with the target activity is queried based on the address space indicated by the hash value.

在一个或多个实施例中,装置6还包括:In one or more embodiments, apparatus 6 further includes:

写入单元,用于若所述目标用户的身份标识和所述面部信息关联的身份标识相同,生成第二提示信息;其中,所述第二提示信息表示所述学生为正常用户;或A writing unit, configured to generate second prompt information if the identity identifier of the target user is the same as the identity identifier associated with the facial information; wherein, the second prompt information indicates that the student is a normal user; or

若所述数据库中不存在与所述面部信息关联的身份标识,将所述面部信息和所述目标用户的身份标识关联后写入到所述数据库中。If the identity identifier associated with the facial information does not exist in the database, the facial information and the identity identifier of the target user are associated and written into the database.

需要说明的是,上述实施例提供的装置6在执行用户身份识别方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的用户身份识别方法实施例属于同一构思,其体现实现过程详见方法实施例,这里不再赘述。It should be noted that, when the device 6 provided in the above embodiment executes the user identification method, only the division of the above functional modules is used for illustration. , that is, dividing the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the user identity identification method embodiments provided by the above embodiments belong to the same concept, and the implementation process of the embodiments is described in the method embodiments, which will not be repeated here.

上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.

本申请的装置7获取目标活动中目标用户的面部信息和身份标识,基于面部信息在数据库中查询关联的身份标识,若查询到的身份标识和获取到的身份标识不相同,生成第一提示信息,第一提示信息表示该用户为异常用户,即该目标用户以前已使用其他身份标识参加过目标活动,避免同一用户重复参见目标活动,降低服务器的处理开销。The device 7 of the present application acquires the facial information and the identity identifier of the target user in the target activity, searches the database for the associated identity identifier based on the facial information, and generates a first prompt message if the queried identity identifier is different from the acquired identity identifier. , the first prompt information indicates that the user is an abnormal user, that is, the target user has previously participated in the target activity with other identity identifiers, so as to avoid the same user repeatedly referring to the target activity and reduce the processing overhead of the server.

本申请实施例还提供了一种计算机存储介质,所述计算机存储介质可以存储有多条指令,所述指令适于由处理器加载并执行如上述图2-图6所示实施例的方法步骤,具体执行过程可以参见图2-图6所示实施例的具体说明,在此不进行赘述。Embodiments of the present application further provide a computer storage medium, where the computer storage medium can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the method steps of the embodiments shown in FIG. 2 to FIG. 6 above. , and the specific execution process may refer to the specific description of the embodiments shown in FIG. 2 to FIG. 6 , which will not be repeated here.

本申请还提供了一种计算机程序产品,该计算机程序产品存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上各个实施例所述的用户身份识别方法。The present application also provides a computer program product, where the computer program product stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the user identification method described in each of the above embodiments.

图7为本申请实施例提供的一种用户身份识别装置结构示意图,以下简称装置7,装置7可以集成于前述的服务器,如图7所示,该装置包括:存储器702、处理器701、输入装置703、输出装置704和通信接口。FIG. 7 is a schematic structural diagram of a user identification device provided by an embodiment of the present application, hereinafter referred to as device 7, and device 7 may be integrated into the aforementioned server. As shown in FIG. 7, the device includes: a memory 702, a processor 701, an input device 703, output device 704 and communication interface.

存储器702可以是独立的物理单元,与处理器701、存储器702和收发器703可以通过总线连接。存储器702、处理器701、收发器703也可以集成在一起,通过硬件实现等。The memory 702 may be an independent physical unit, and may be connected to the processor 701, the memory 702 and the transceiver 703 through a bus. The memory 702, the processor 701, and the transceiver 703 may also be integrated together, implemented by hardware, and the like.

存储器702用于存储实现以上方法实施例,或者装置实施例各个模块的程序,处理器701调用该程序,执行以上方法实施例的操作。The memory 702 is used to store a program for implementing the above method embodiments or each module of the apparatus embodiment, and the processor 701 invokes the program to execute the operations of the above method embodiments.

其中,装置7还可以包括输入装置和输出装置,输入装置包括但不限于键盘、鼠标、触摸面板、摄像头和麦克风;输出装置包括但限于显示屏。Wherein, the device 7 may further include an input device and an output device, the input device includes but is not limited to a keyboard, a mouse, a touch panel, a camera and a microphone; the output device includes but is not limited to a display screen.

通信接口用于收发各种类型的消息,通信接口包括但不限于无线接口或有线接口。The communication interface is used to send and receive various types of messages, and the communication interface includes but is not limited to a wireless interface or a wired interface.

可选地,当上述实施例的分布式任务调度方法中的部分或全部通过软件实现时,装置也可以只包括处理器。用于存储程序的存储器位于装置之外,处理器通过电路/电线与存储器连接,用于读取并执行存储器中存储的程序。Optionally, when part or all of the distributed task scheduling method in the foregoing embodiment is implemented by software, the apparatus may also only include a processor. The memory for storing the program is located outside the device, and the processor is connected to the memory through a circuit/wire for reading and executing the program stored in the memory.

处理器可以是中央处理器(central processing unit,CPU),网络处理器(networkprocessor,NP)或者CPU和NP的组合。The processor may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.

处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmablelogic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complexprogrammable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gatearray,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor may further include a hardware chip. The above hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

存储器可以包括易失性存储器(volatile memory),例如存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flashmemory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。The memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); the memory may also include a combination of the above-mentioned types of memory.

其中,处理器701调用存储器702中的程序代码用于执行以下步骤:Wherein, the processor 701 invokes the program code in the memory 702 to perform the following steps:

获取目标活动中目标用户的面部信息和所述目标用户的身份标识;Obtain the facial information of the target user and the identity of the target user in the target activity;

基于所述面部信息在与所述目标活动关联的数据库中进行查询;querying a database associated with the target activity based on the facial information;

若在所述数据库查询到与所述面部信息关联的身份标识,在所述数据库中读取与所述面部图像关联的身份标识;If the identification associated with the facial information is found in the database, the identification associated with the facial image is read in the database;

若所述目标用户的身份标识和所述面部信息关联的身份标识不同,生成第一提示信息;其中,所述第一提示信息表示所述目标用户为异常用户。If the identity identifier of the target user is different from the identity identifier associated with the facial information, first prompt information is generated; wherein, the first prompt information indicates that the target user is an abnormal user.

在一个或多个实施例中,处理器701执行所述获取目标活动中目标用户的面部信息和所述目标用户的身份标识,包括:In one or more embodiments, the processor 701 executes the obtaining of the facial information of the target user and the identity of the target user in the target activity, including:

根据存储器702中预存储的登录信息获取所述目标用户的身份标识;Acquire the identity of the target user according to the login information pre-stored in the memory 702;

指示收发器703根据来自第一终端设备的第一视频流提取所述目标用户的面部图像,以及基于所述面部图像进行识别得到所述目标用户的面部信息;其中,所述第一终端设备是所述目标用户使用所述登录信息进行登录操作的终端设备。The instruction transceiver 703 extracts the facial image of the target user according to the first video stream from the first terminal device, and recognizes the facial information of the target user based on the facial image; wherein, the first terminal device is A terminal device on which the target user performs a login operation using the login information.

在一个或多个实施例中,处理器701还用于执行:In one or more embodiments, the processor 701 is further configured to perform:

指示收发器703接收第一终端设备响应于所述目标用户的登录操作发送的登录请求;其中,所述登录请求携带登录信息,所述登录信息包括所述目标用户的用户标识和登录密码;Instructing the transceiver 703 to receive a login request sent by the first terminal device in response to the login operation of the target user; wherein the login request carries login information, and the login information includes the user ID and login password of the target user;

在验证所述登录信息正确后,在存储器702中存储所述登录信息,以及向所述第一终端设备返回登录成功响应;After verifying that the login information is correct, store the login information in the memory 702, and return a login success response to the first terminal device;

创建所述目标活动对应的虚拟空间,以及将所述第一终端设备加入到所述虚拟空间中;creating a virtual space corresponding to the target activity, and adding the first terminal device to the virtual space;

指示收发器703接收来自所述第一终端设备的第一视频流,以及向所述第一终端设备推送来自第二终端设备的第二视频流。The transceiver 703 is instructed to receive the first video stream from the first terminal device, and push the second video stream from the second terminal device to the first terminal device.

在一个或多个实施例中,在所述第一终端设备上显示所述第一提示信息,以及停止向所述第一终端设备推送来自所述第二终端设备的第二视频流。In one or more embodiments, the first prompt information is displayed on the first terminal device, and the pushing of the second video stream from the second terminal device to the first terminal device is stopped.

在一个或多个实施例中,处理器701执行所述获取目标活动中目标用户的面部信息和所述目标用户的身份标识,包括:In one or more embodiments, the processor 701 executes the obtaining of the facial information of the target user and the identity of the target user in the target activity, including:

采集目标活动中目标用户的面部图像,基于面部图像进行识别得到面部信息;Collect the facial image of the target user in the target activity, and identify the facial information based on the facial image;

为所述目标用户分配一个身份标识,以及将所述面部信息和所述目标用户的身份标识进行绑定后进行存储。Allocate an identity to the target user, and store the facial information after binding with the identity of the target user.

在一个或多个实施例中,处理器701执行所述基于所述面部信息在与所述目标活动关联的数据库中进行查询,包括:In one or more embodiments, the processor 701 performs the querying in the database associated with the target activity based on the facial information, including:

基于哈希运算对所述面部信息进行处理得到哈希值,以及基于所述哈希值指示的地址空间在所述目标活动关联的数据库中进行查询。The facial information is processed based on a hash operation to obtain a hash value, and a database associated with the target activity is queried based on the address space indicated by the hash value.

在一个或多个实施例中,处理器701还用于执行:In one or more embodiments, the processor 701 is further configured to perform:

若所述目标用户的身份标识和所述面部信息关联的身份标识相同,生成第二提示信息;其中,所述第二提示信息表示所述学生为正常用户;或If the identity identifier of the target user is the same as the identity identifier associated with the facial information, second prompt information is generated; wherein, the second prompt information indicates that the student is a normal user; or

若所述数据库中不存在与所述面部信息关联的身份标识,将所述面部信息和所述目标用户的身份标识关联后写入到所述数据库中。If the identity identifier associated with the facial information does not exist in the database, the facial information and the identity identifier of the target user are associated and written into the database.

本申请实施例还提供了一种计算机存储介质,存储有计算机程序,该计算机程序用于执行上述实施例提供的用户身份识别方法。Embodiments of the present application further provide a computer storage medium storing a computer program, where the computer program is used to execute the user identity identification method provided by the foregoing embodiments.

本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例提供的用户身份识别方法。The embodiments of the present application also provide a computer program product containing instructions, which, when running on a computer, cause the computer to execute the user identity identification method provided by the above embodiments.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

Claims (10)

1. A method for identifying a user, the method comprising:
extracting feature information corresponding to the face of a target user in a target activity, and generating the face information of the target user according to the feature information; the characteristic information comprises color information, texture information, position information and spatial position information; acquiring the identity of the target user in the target activity;
querying a database associated with the target activity based on the facial information; the database stores face information and identity identification of users who have participated in the target activity within a preset time length;
if the identity identification related to the face information is inquired in the database, reading the identity identification related to the face information in the database;
if the identity of the target user is different from the identity associated with the facial information, generating first prompt information; wherein the first prompt information indicates that the target user is an abnormal user.
2. The method of claim 1, wherein the obtaining facial information of a target user and an identity of the target user in a target activity comprises:
acquiring the identity of the target user according to pre-stored login information;
extracting a face image of the target user according to a first video stream from a first terminal device, and identifying the face image to obtain face information of the target user; and the first terminal equipment is the terminal equipment which is used by the target user to perform login operation by using the login information.
3. The method of claim 2, wherein before the obtaining the identity of the target user according to the pre-stored login information, the method further comprises:
receiving a login request sent by first terminal equipment in response to the login operation of the target user; the login request carries login information, wherein the login information comprises a user identifier and a login password of the target user;
after the login information is verified to be correct, storing the login information, and returning a login success response to the first terminal equipment;
creating a virtual space corresponding to the target activity, and adding the first terminal equipment into the virtual space;
receiving a first video stream from the first terminal device, and pushing a second video stream from a second terminal device to the first terminal device.
4. The method of claim 3, wherein generating the first prompt message if the identity of the target user is different from the identity associated with the facial information further comprises:
and displaying the first prompt message on the first terminal equipment, and stopping pushing a second video stream from the second terminal equipment to the first terminal equipment.
5. The method of claim 1, wherein the obtaining facial information of a target user and an identity of the target user in a target activity comprises:
acquiring a facial image of a target user in a target activity, and identifying based on the facial image to obtain facial information;
and allocating an identity to the target user, and binding the facial information and the identity of the target user and then storing the facial information and the identity of the target user.
6. The method of any of claims 1 to 4, wherein the querying in a database associated with the target activity based on the facial information comprises:
the face information is processed based on a hash operation to obtain a hash value, and a query is made in a database associated with the target activity based on an address space indicated by the hash value.
7. The method of claim 5, further comprising:
if the identity of the target user is the same as the identity associated with the facial information, generating second prompt information; wherein the second prompt information indicates that the target user is a normal user; or
And if the identity identification associated with the face information does not exist in the database, the face information is associated with the identity identification of the target user and then written into the database.
8. An apparatus for identifying a user, the apparatus comprising:
the system comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for extracting feature information corresponding to the face of a target user in a target activity and generating the face information of the target user according to the feature information; the characteristic information comprises color information, texture information, position information and spatial position information; acquiring the identity of the target user in the target activity;
a query unit configured to query a database associated with the target activity based on the facial information; the database stores face information and identity identification of users who have participated in the target activity within a preset time length;
the reading unit is used for reading the identification mark associated with the face information in the database if the identification mark associated with the face information is inquired in the database;
the prompting unit is used for generating first prompting information if the identification of the target user is different from the identification associated with the face information; wherein the first prompt information indicates that the target user is an abnormal user.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
10. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN201910809615.1A 2019-08-29 2019-08-29 User identification method, device, storage medium and electronic device Active CN110609970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910809615.1A CN110609970B (en) 2019-08-29 2019-08-29 User identification method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910809615.1A CN110609970B (en) 2019-08-29 2019-08-29 User identification method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110609970A CN110609970A (en) 2019-12-24
CN110609970B true CN110609970B (en) 2022-06-07

Family

ID=68889842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910809615.1A Active CN110609970B (en) 2019-08-29 2019-08-29 User identification method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110609970B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327719B (en) * 2020-02-11 2021-03-26 腾讯科技(深圳)有限公司 Service processing method, device, service server and medium
CN111400510B (en) * 2020-03-18 2024-02-27 腾讯音乐娱乐科技(深圳)有限公司 Data archiving processing method, device, equipment and readable storage medium
CN112463817B (en) * 2020-11-24 2024-07-05 深圳市新系区块链技术有限公司 Mask information processing method and related equipment thereof
CN112667861B (en) * 2020-12-30 2025-02-11 北京嘀嘀无限科技发展有限公司 Data processing method, device, storage medium and electronic device
CN115660430A (en) * 2021-07-09 2023-01-31 格创东智(深圳)科技有限公司 Glass production data management method and device, electronic equipment and storage medium
CN113971196B (en) * 2021-08-13 2023-05-05 荣耀终端有限公司 Push information processing method and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303712A (en) * 2007-05-10 2008-11-12 上海银晨智能识别科技有限公司 Method for preventing enthrallment network game through human face recognition
CN106778144A (en) * 2017-02-26 2017-05-31 王田 Electronic equipment and method with identification function
CN107786487A (en) * 2016-08-24 2018-03-09 腾讯科技(深圳)有限公司 A kind of authentification of message processing method, system and relevant device
CN108734514A (en) * 2018-05-07 2018-11-02 北京科码先锋互联网技术股份有限公司 User's normalizing method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082775A (en) * 2009-11-27 2011-06-01 中国移动通信集团公司 Method, device and system for managing subscriber identity
US8990580B2 (en) * 2012-04-26 2015-03-24 Google Inc. Automatic user swap
CN103973441B (en) * 2013-01-29 2016-03-09 腾讯科技(深圳)有限公司 Based on user authen method and the device of audio frequency and video
CN109257366B (en) * 2014-05-22 2022-09-20 创新先进技术有限公司 Method and device for authenticating user
CN107485858A (en) * 2017-08-28 2017-12-19 昆明理工大学 A kind of network game indulging verification method
CN109240489A (en) * 2018-08-10 2019-01-18 广东小天才科技有限公司 User switching method, device, terminal and medium for learning machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303712A (en) * 2007-05-10 2008-11-12 上海银晨智能识别科技有限公司 Method for preventing enthrallment network game through human face recognition
CN107786487A (en) * 2016-08-24 2018-03-09 腾讯科技(深圳)有限公司 A kind of authentification of message processing method, system and relevant device
CN106778144A (en) * 2017-02-26 2017-05-31 王田 Electronic equipment and method with identification function
CN108734514A (en) * 2018-05-07 2018-11-02 北京科码先锋互联网技术股份有限公司 User's normalizing method

Also Published As

Publication number Publication date
CN110609970A (en) 2019-12-24

Similar Documents

Publication Publication Date Title
CN110609970B (en) User identification method, device, storage medium and electronic device
US11171893B2 (en) Methods and systems for providing virtual collaboration via network
CN110570698B (en) An online teaching control method, device, storage medium and terminal
CN110673777A (en) Online teaching method and device, storage medium and terminal equipment
CN105763653A (en) A method and server for generating statistical information
CN117618894A (en) Interactive methods, devices, equipment and storage media
CN113127307A (en) Method for processing tracing request, related device, system and storage medium
US20210097496A1 (en) Method and Apparatus for Managing Resume Information, and Method and Apparatus for Managing Recruitment Information
CN111935264A (en) Intelligent classroom interaction system
CN112135196A (en) Online live broadcast teaching interaction method, device, system, equipment and storage medium
WO2021159832A1 (en) Online interaction control method, device, storage medium, and electronic apparatus
KR20150081172A (en) Method for providing learning guideline, server for providing learning guideline and user device
US20220405862A1 (en) System for users to increase and monetize livestream audience engagement
CN114244793B (en) Information processing method, device, equipment and storage medium
KR102296966B1 (en) System for managing learning through preparation and review and method thereof
CN111510659A (en) Online interaction method and device, storage medium and electronic equipment
CN113747247B (en) Live broadcast method, live broadcast device, computer equipment and storage medium
US20240073362A1 (en) System and method for a timed one-on-one video conference call
CN106781762A (en) A kind of methods, devices and systems of display problem information
WO2015096678A1 (en) Information interaction method, device and server
JP2016021178A (en) Related topic display control apparatus, related topic display control method, and program
CN113420133B (en) Session processing method, device, equipment and storage medium
CN107483208A (en) Method and device for generating and verifying verification code pictures
CN112769919A (en) Push flow task distribution method and device, storage medium and electronic equipment
CN114760274B (en) Voice interaction method, device, device and storage medium for online classroom

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
TR01 Transfer of patent right

Effective date of registration: 20250226

Address after: No. 902, 9th Floor, Unit 2, Building 1, No. 333 Jiqing 3rd Road, Chengdu High tech Zone, Chengdu Free Trade Zone, Sichuan Province 610000

Patentee after: Chengdu Yudi Technology Co.,Ltd.

Country or region after: China

Address before: 100007 t4-27 floor, Damei center, courtyard 7, Qingnian Road, Chaoyang District, Beijing

Patentee before: BEIJING DA MI TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right