[go: up one dir, main page]

CN108614965A - Checking method, checking device and computer readable storage medium - Google Patents

Checking method, checking device and computer readable storage medium Download PDF

Info

Publication number
CN108614965A
CN108614965A CN201810308322.0A CN201810308322A CN108614965A CN 108614965 A CN108614965 A CN 108614965A CN 201810308322 A CN201810308322 A CN 201810308322A CN 108614965 A CN108614965 A CN 108614965A
Authority
CN
China
Prior art keywords
track
trajectory
verification
terminal
drawn
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810308322.0A
Other languages
Chinese (zh)
Inventor
段伟伟
吴耀华
李琳
周冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Culture 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 China Mobile Communications Group Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810308322.0A priority Critical patent/CN108614965A/en
Publication of CN108614965A publication Critical patent/CN108614965A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/36User authentication by graphic or iconic representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种校验方法,包括:在显示界面依次绘制至少两个轨迹段,且轨迹段绘制完成后在所述显示界面上清除绘制的相应轨迹段;绘制的至少两个轨迹段形成第一轨迹;检测用户的触摸操作,根据所述触摸操作,在所述显示界面上绘制第二轨迹;确定校验结果;所述校验结果为根据所述第一轨迹和所述第二轨迹的匹配程度确定的本发明还同时公开了一种校验装置以及计算机可读存储介质。

The invention discloses a verification method, comprising: sequentially drawing at least two trajectory segments on a display interface, and clearing the drawn corresponding trajectory segments on the display interface after the trajectory segment drawing is completed; the drawn at least two trajectory segments form The first track; detecting the touch operation of the user, drawing a second track on the display interface according to the touch operation; determining the verification result; the verification result is based on the first track and the second track The invention for determining the matching degree also discloses a verification device and a computer-readable storage medium.

Description

一种校验方法、装置及计算机可读存储介质A verification method, device and computer-readable storage medium

技术领域technical field

本发明涉及终端用户认证领域,尤其涉及一种校验方法、装置及计算机可读存储介质。The present invention relates to the field of terminal user authentication, in particular to a verification method, device and computer-readable storage medium.

背景技术Background technique

目前,随着计算机技术的快速发展,网络安全的问题越来越受到重视,为了保证用户的安全,终端用户的认证变得越来越重要。其中,验证码作为一种验证手段,包括:文本验证码、图形验证码、滑动验证码、短信验证码、语音验证码。At present, with the rapid development of computer technology, more and more attention is paid to the issue of network security. In order to ensure the safety of users, the authentication of end users becomes more and more important. Among them, the verification code as a verification method includes: text verification code, graphic verification code, sliding verification code, SMS verification code, and voice verification code.

但是,文本验证码可操作性较差;简单的图片验证码和简单的静态滑动验证容易被机器识别和模拟;复杂的图片验证码和滑动验证会增加人工处理的难度,导致校验成功率降低;短信验证码和语音验证码需要依赖相应的电信运营商平台,由于短信和语音接收成功率无法保证,因而校验的成功率会降低,并且需要向电信运营商平台付费,增加了运营成本。However, the operability of text verification codes is poor; simple image verification codes and simple static sliding verifications are easily recognized and simulated by machines; complex image verification codes and sliding verifications will increase the difficulty of manual processing, resulting in a lower verification success rate ; SMS verification codes and voice verification codes need to rely on the corresponding telecom operator platform. Since the success rate of SMS and voice reception cannot be guaranteed, the success rate of verification will be reduced, and the telecom operator platform needs to be paid, which increases the operating cost.

因此,亟需找到一种能够有效避免机器模拟且提高校验成功率的技术方案。Therefore, it is urgent to find a technical solution that can effectively avoid machine simulation and improve the success rate of verification.

发明内容Contents of the invention

有鉴于此,本发明实施例期望提供一种校验方法、装置及计算机可读存储介质,能够有效避免机器模拟以及提高校验成功率。In view of this, the embodiments of the present invention expect to provide a verification method, device and computer-readable storage medium, which can effectively avoid machine simulation and improve the success rate of verification.

本发明实施例的技术方案是这样实现的:The technical scheme of the embodiment of the present invention is realized like this:

本发明实施例提供一种校验方法,所述方法包括:An embodiment of the present invention provides a verification method, the method comprising:

在显示界面依次绘制至少两个轨迹段,且轨迹段绘制完成后在所述显示界面上清除绘制的相应轨迹段;绘制的至少两个轨迹段形成第一轨迹;Drawing at least two trajectory segments sequentially on the display interface, and clearing the drawn corresponding trajectory segments on the display interface after the trajectory segment drawing is completed; the drawn at least two trajectory segments form the first trajectory;

检测用户的触摸操作,根据所述触摸操作,在所述显示界面上绘制第二轨迹;Detecting a user's touch operation, and drawing a second track on the display interface according to the touch operation;

确定校验结果;所述校验结果为根据所述第一轨迹和所述第二轨迹的匹配程度确定的。Determine a verification result; the verification result is determined according to the matching degree between the first track and the second track.

上述方案中,所述在显示界面依次绘制至少两个轨迹段,包括:In the above solution, the drawing of at least two trajectory segments in sequence on the display interface includes:

从服务器获取绘制参数;所述绘制参数至少包括所述轨迹段起始点和终点的坐标、坐标点的绘制顺序;Obtain drawing parameters from the server; the drawing parameters include at least the coordinates of the starting point and the end point of the trajectory segment, and the drawing order of the coordinate points;

利用所述绘制参数中的坐标,确定一个点阵;Using the coordinates in the drawing parameters to determine a lattice;

利用每个轨迹段的起始点和终点坐标,在所述点阵中确定轨迹段的位置;Using the starting point and end point coordinates of each trajectory segment, determining the position of the trajectory segment in the lattice;

利用所述绘制参数中的坐标点的绘制顺序,确定轨迹段的绘制顺序;Using the drawing order of the coordinate points in the drawing parameters to determine the drawing order of the trajectory segments;

按照确定的绘制顺序,在显示界面依次绘制轨迹段。According to the determined drawing sequence, the trajectory segments are drawn sequentially on the display interface.

上述方案中,所述在显示界面依次绘制至少两个轨迹段,包括:In the above solution, the drawing of at least two trajectory segments in sequence on the display interface includes:

所述绘制参数至少还包括各个轨迹段的绘制速度及绘制颜色;The drawing parameters also include at least the drawing speed and drawing color of each trajectory segment;

利用所述绘制参数中的每个轨迹段的绘制速度,绘制轨迹段;Draw the trajectory segment by using the drawing speed of each trajectory segment in the drawing parameters;

利用所述绘制参数中的每个轨迹段的绘制颜色,将轨迹段的绘制颜色显示为所述绘制参数中对应的绘制颜色。Using the drawing color of each trajectory segment in the drawing parameters, the drawing color of the trajectory segment is displayed as the corresponding drawing color in the drawing parameters.

上述方案中,所述确定校验结果,包括:In the above solution, the determination of the verification result includes:

将表征所述第二轨迹的信息发送给服务器;所述信息用于供服务器进行校验;Sending information representing the second trajectory to the server; the information is used for verification by the server;

接收服务器发送的校验结果。Receive the verification result sent by the server.

本发明实施例提供一种校验方法,所述方法包括:An embodiment of the present invention provides a verification method, the method comprising:

接收终端发送的表征第二轨迹的信息;所述第二轨迹为终端根据用户的触摸操作绘制的;receiving information representing a second trajectory sent by the terminal; the second trajectory is drawn by the terminal according to the user's touch operation;

根据所述第二轨迹与第一轨迹的匹配程度,得到校验结果;所述第一轨迹为所述终端利用服务器本地保存的至少两个轨迹段绘制形成的;其中,所述轨迹段绘制完成后在所述终端的显示界面上消失;According to the degree of matching between the second trajectory and the first trajectory, a verification result is obtained; the first trajectory is drawn by the terminal using at least two trajectory segments stored locally by the server; wherein, the trajectory segment rendering is completed disappears on the display interface of the terminal;

向所述终端发送所述校验结果。Send the verification result to the terminal.

上述方案中,所述方法还包括:In the above scheme, the method also includes:

获取终端用户的账号可信度;Obtain the account credibility of the end user;

利用所述账号可信度,确定各轨迹段起始点和终点的坐标、坐标点的绘制顺序;Using the credibility of the account, determine the coordinates of the starting point and the end point of each trajectory segment, and the drawing order of the coordinate points;

将确定的坐标及坐标点的绘制顺序,作为绘制参数;所述绘制参数用于供所述终端绘制所述第一轨迹;Using the determined coordinates and the drawing order of the coordinate points as drawing parameters; the drawing parameters are used for the terminal to draw the first trajectory;

向所述终端发送所述绘制参数。Send the drawing parameters to the terminal.

所述根据所述第二轨迹与第一轨迹的匹配程度,得到校验结果,包括:The verification result obtained according to the degree of matching between the second track and the first track includes:

利用所述第二轨迹,确定对应的各个轨迹段;Using said second trajectory, determine corresponding respective trajectory segments;

针对每个轨迹段,利用所述信息中对应用户触发操作的触发顺序以及触发点的坐标,判断对应第二轨迹的轨迹段与本地保存的对应第一轨迹的轨迹段是否匹配;For each trajectory segment, using the trigger sequence corresponding to the user's trigger operation in the information and the coordinates of the trigger point to determine whether the trajectory segment corresponding to the second trajectory matches the locally saved trajectory segment corresponding to the first trajectory;

当确定匹配时,利用与第二轨迹关联的相关信息,获取所述终端用户的账号可信度;When matching is determined, using relevant information associated with the second track to obtain the account credibility of the terminal user;

判断所述终端用户的账号可信度是否大于预设阈值;judging whether the account credibility of the terminal user is greater than a preset threshold;

如果确定大于时,则校验成功;否则,校验失败。If it is determined to be greater than , the verification succeeds; otherwise, the verification fails.

本发明实施例提供一种校验装置,所述装置包括:An embodiment of the present invention provides a verification device, which includes:

绘制模块,用于在显示界面依次绘制至少两个轨迹段,且轨迹段绘制完成后在所述显示界面上清除绘制的相应轨迹段;绘制的至少两个轨迹段形成第一轨迹;A drawing module, configured to sequentially draw at least two trajectory segments on the display interface, and clear the drawn corresponding trajectory segments on the display interface after the trajectory segment drawing is completed; the drawn at least two trajectory segments form the first trajectory;

检测模块,用于检测用户的触摸操作,根据所述触摸操作,在所述显示界面上绘制第二轨迹;A detection module, configured to detect a user's touch operation, and draw a second track on the display interface according to the touch operation;

确定模块,用于确定校验结果;所述校验结果为根据所述第一轨迹和所述第二轨迹的匹配程度确定的。A determining module, configured to determine a verification result; the verification result is determined according to a matching degree between the first track and the second track.

本发明实施例提供一种校验装置,所述装置包括:An embodiment of the present invention provides a verification device, which includes:

接收模块,用于接收终端发送的表征第二轨迹的信息;所述第二轨迹为终端根据用户的触摸操作绘制的;The receiving module is configured to receive the information representing the second trajectory sent by the terminal; the second trajectory is drawn by the terminal according to the user's touch operation;

校验模块,用于根据所述第二轨迹与第一轨迹的匹配程度,得到校验结果;所述第一轨迹为所述终端利用服务器本地保存的至少两个轨迹段绘制形成的;其中,所述轨迹段绘制完成后在所述终端的显示界面上消失;A verification module, configured to obtain a verification result according to the degree of matching between the second trajectory and the first trajectory; the first trajectory is drawn and formed by the terminal using at least two trajectory segments stored locally by the server; wherein, After the trajectory segment is drawn, it disappears on the display interface of the terminal;

发送模块,用于向所述终端发送所述校验结果。A sending module, configured to send the verification result to the terminal.

本发明实施例提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现上面所述任一项校验方法的步骤。An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of any one of the verification methods described above are implemented.

本发明实施例提供一种校验装置,包括:存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序;An embodiment of the present invention provides a verification device, including: a memory, a processor, and a computer program stored in the memory and operable on the processor;

其中,所述处理器用于运行所述计算机程序时,执行上面所述任一项校验方法的步骤。Wherein, when the processor is used to run the computer program, it executes the steps of any verification method described above.

本发明实施例提供的校验方法、装置及计算机可读存储介质,在显示界面依次绘制至少两个轨迹段,且轨迹段绘制完成后在所述显示界面上清除绘制的相应轨迹段;绘制的至少两个轨迹段形成第一轨迹;检测用户的触摸操作,根据所述触摸操作,在所述显示界面上绘制第二轨迹;确定校验结果;所述校验结果为根据所述第一轨迹和所述第二轨迹的匹配程度确定的。本发明实施例中,由于轨迹段绘制完成后在终端的显示界面上清除绘制的相应轨迹段,因而终端用户能够依赖对至少两个轨迹段形成的第一轨迹的记忆,在显示界面中进行触摸操作,最终得到第二轨迹。显然,依赖用户对动态绘制的第一轨迹的记忆得到第二轨迹,降低了机器模拟的可能性,能够有效避免机器模拟,同时有助于提高校验成功率。In the verification method, device and computer-readable storage medium provided by the embodiments of the present invention, at least two trajectory segments are sequentially drawn on the display interface, and after the trajectory segment drawing is completed, the drawn corresponding trajectory segments are cleared on the display interface; the drawn At least two track segments form a first track; detect a user's touch operation, draw a second track on the display interface according to the touch operation; determine a verification result; the verification result is based on the first track The degree of matching with the second trajectory is determined. In the embodiment of the present invention, since the drawn corresponding trajectory segment is cleared on the display interface of the terminal after the trajectory segment is drawn, the terminal user can rely on the memory of the first trajectory formed by at least two trajectory segments, and touch operation, and finally obtain the second trajectory. Obviously, relying on the user's memory of the dynamically drawn first trajectory to obtain the second trajectory reduces the possibility of machine simulation, can effectively avoid machine simulation, and at the same time helps to improve the verification success rate.

附图说明Description of drawings

图1为相关技术中静态轨迹的示意图;FIG. 1 is a schematic diagram of a static trajectory in the related art;

图2为相关技术中静态轨迹的验证流程示意图;FIG. 2 is a schematic diagram of a verification process of a static trajectory in the related art;

图3为本发明实施例校验方法的流程示意图一;FIG. 3 is a schematic flow diagram of a verification method according to an embodiment of the present invention;

图4为本发明实施例校验方法的流程示意图二;FIG. 4 is a second schematic flow diagram of the verification method of the embodiment of the present invention;

图5为本发明实施例终端、服务器的功能模块框架示意图;5 is a schematic diagram of a functional module framework of a terminal and a server according to an embodiment of the present invention;

图6为本发明实施例动态绘制的各轨迹段示意图;Fig. 6 is a schematic diagram of each trajectory segment dynamically drawn in an embodiment of the present invention;

图7为本发明实施例轨迹段的示意图;7 is a schematic diagram of a trajectory segment according to an embodiment of the present invention;

图8为本发明实施例轨迹校验的具体实现流程示意图;FIG. 8 is a schematic diagram of a specific implementation process of trajectory verification in an embodiment of the present invention;

图9为本发明实施例校验装置的结构示意图一;FIG. 9 is a schematic structural diagram of a calibration device according to an embodiment of the present invention;

图10为本发明实施例校验装置的结构示意图二;Fig. 10 is a structural schematic diagram II of the calibration device according to the embodiment of the present invention;

图11为本发明实施例校验装置的结构示意图三。FIG. 11 is a schematic structural diagram III of the calibration device according to the embodiment of the present invention.

具体实施方式Detailed ways

验证码作为认证终端用户的验证手段,验证码的形式包括:文本验证码、图形验证码、滑动验证码、短信验证码、语音验证码。图1为静态轨迹的示意图,图2为静态轨迹的验证流程示意图,图2所示静态轨迹的验证过程包括:步骤201:服务端生成演示轨迹;步骤202:客户端将服务端生成的演示轨迹以静态形式展示在显示界面,所述演示轨迹用于供用户在显示界面上通过滑动操作进行模拟绘制;步骤203:用户在显示界面上通过滑动操作进行模拟绘制;步骤204:客户端采集用户的滑动操作,将基于用户的滑动操作生成的模拟轨迹上传到服务端;步骤205:服务器将所述模拟轨迹与所述演示轨迹进行校验,并返回校验结果;步骤206:校验成功;步骤207:校验失败。但是,针对静态轨迹的滑动验证容易被机器识别和模拟。Verification codes are used as a verification method for authenticating end users. The verification codes include: text verification codes, graphic verification codes, sliding verification codes, SMS verification codes, and voice verification codes. Figure 1 is a schematic diagram of a static trajectory, and Figure 2 is a schematic diagram of the verification process of a static trajectory. The verification process of a static trajectory shown in Figure 2 includes: Step 201: the server generates a demonstration trajectory; Step 202: the client generates the demonstration trajectory generated by the server It is displayed on the display interface in a static form, and the demo track is used for the user to perform simulated drawing by sliding operation on the display interface; step 203: the user performs simulated drawing by sliding operation on the display interface; step 204: the client collects the user's Sliding operation, uploading the simulated trajectory generated based on the user’s sliding operation to the server; step 205: the server verifies the simulated trajectory and the demo trajectory, and returns the verification result; step 206: the verification is successful; step 207: Validation failed. However, sliding verification against static trajectories is easily recognized and simulated by machines.

基于此,本发明实施例中,在显示界面依次绘制至少两个轨迹段,且轨迹段绘制完成后在所述显示界面上清除绘制的相应轨迹段;绘制的至少两个轨迹段形成第一轨迹;检测用户的触摸操作,根据所述触摸操作,在所述显示界面上绘制第二轨迹;确定校验结果;所述校验结果为根据所述第一轨迹和所述第二轨迹的匹配程度确定的。Based on this, in the embodiment of the present invention, at least two trajectory segments are sequentially drawn on the display interface, and after the trajectory segment drawing is completed, the drawn corresponding trajectory segments are cleared on the display interface; the drawn at least two trajectory segments form the first trajectory ; Detect the user's touch operation, draw a second track on the display interface according to the touch operation; determine the verification result; the verification result is based on the matching degree between the first track and the second track definite.

为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明。In order to understand the characteristics and technical contents of the embodiments of the present invention in more detail, the implementation of the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. The attached drawings are only for reference and description, and are not intended to limit the present invention.

如图3所示,详细说明本发明实施例校验方法,本实施例的校验方法应用于终端侧,包括以下步骤:As shown in Figure 3, the verification method of the embodiment of the present invention is described in detail. The verification method of this embodiment is applied to the terminal side and includes the following steps:

步骤301:在显示界面依次绘制至少两个轨迹段,且轨迹段绘制完成后在所述显示界面上清除绘制的相应轨迹段;绘制的至少两个轨迹段形成第一轨迹。Step 301: draw at least two trajectory segments sequentially on the display interface, and clear the drawn corresponding trajectory segments on the display interface after the trajectory segment drawing is completed; the drawn at least two trajectory segments form a first trajectory.

这里,轨迹段绘制完成后在终端显示界面清除绘制的相应轨迹段,如此,用户可以凭借记忆对所述第一轨迹进行模拟绘制,由于轨迹段在绘制完成后即被清除,可以防止机器获取,因此可有效防止机器模拟。另外,终端可以从服务器获取轨迹段,如此,服务器可以根据不同用户的记忆程度控制轨迹段的长度,不会增加用户对所述第一轨迹的模拟难度。Here, after the drawing of the trajectory segment is completed, the drawn corresponding trajectory segment is cleared on the terminal display interface. In this way, the user can simulate the drawing of the first trajectory by virtue of memory. Since the trajectory segment is cleared after the drawing is completed, the machine can be prevented from obtaining it. Machine simulation is thus effectively prevented. In addition, the terminal can obtain the track segment from the server, so that the server can control the length of the track segment according to the memory level of different users, without increasing the difficulty of simulating the first track for the user.

不同用户的记忆程度,可以根据用户在进行轨迹模拟时耗费的时间来确定,比如,可以预先对用户进行记忆程度测试,向用户提供轨迹供用户模拟测试,根据用户测试时耗费的时间确定用户的记忆程度,或者,也可以根据用户过往进行轨迹校验的平均耗时来确定,耗时越短,记忆程度越强。The memory level of different users can be determined according to the time spent by the user in trajectory simulation. For example, the user’s memory level can be tested in advance, and the trajectory can be provided to the user for user simulation test, and the user’s memory can be determined according to the time spent in user testing The degree of memory, or, can also be determined according to the average time spent by the user on track verification in the past. The shorter the time-consuming, the stronger the degree of memory.

在一实施例中,所述在显示界面依次绘制至少两个轨迹段,包括:从服务器获取绘制参数;所述绘制参数至少包括所述轨迹段起始点和终点的坐标、坐标点的绘制顺序;利用所述绘制参数中的坐标,确定一个点阵;利用每个轨迹段的起始点和终点坐标,在所述点阵中确定轨迹段的位置;利用所述绘制参数中的坐标点的绘制顺序,确定轨迹段的绘制顺序;按照确定的绘制顺序,在显示界面依次绘制轨迹段。In one embodiment, the sequentially drawing at least two trajectory segments on the display interface includes: obtaining drawing parameters from a server; the drawing parameters include at least the coordinates of the starting point and end point of the trajectory segment, and the drawing sequence of the coordinate points; Utilize the coordinates in the drawing parameters to determine a dot matrix; use the starting point and end point coordinates of each trajectory segment to determine the position of the trajectory segment in the dot matrix; use the drawing order of the coordinate points in the drawing parameters , to determine the drawing sequence of the trajectory segments; draw the trajectory segments sequentially on the display interface according to the determined drawing sequence.

这里,所述服务器和所述终端之间传输的绘制参数中的轨迹段起始点和终点的坐标是文本类数据,相对于传统的图片验证码而言,不仅占用终端更小的存储空间,而且能够减少消耗的传输流量。Here, the coordinates of the starting point and the end point of the track segment in the drawing parameters transmitted between the server and the terminal are text data, which not only takes up less storage space of the terminal compared with traditional picture verification codes, but also Ability to reduce consumed transmission traffic.

在一实施例中,所述在显示界面依次绘制至少两个轨迹段,包括:所述绘制参数至少还包括各个轨迹段的绘制速度及绘制颜色;利用所述绘制参数中的每个轨迹段的绘制速度,绘制轨迹段;利用所述绘制参数中的每个轨迹段的绘制颜色,将轨迹段的绘制颜色显示为所述绘制参数中对应的绘制颜色。In one embodiment, the drawing of at least two trajectory segments sequentially on the display interface includes: the drawing parameters at least include the drawing speed and the drawing color of each trajectory segment; Drawing speed, drawing track segments; using the drawing color of each track segment in the drawing parameters, displaying the drawing color of the track segments as the corresponding drawing color in the drawing parameters.

实际应用时,终端可以根据从服务器获取的绘制参数中的绘制速度,控制轨迹段的绘制快慢,如此,对于记忆超强的用户,可以加快绘制轨迹段的速度,从而有助于提高用户模拟第一轨迹的体验。另外,终端可以根据从服务器获取的绘制参数中的绘制颜色,控制轨迹段的显示颜色,如此,可以结合用户对颜色的喜好,控制绘制轨迹的显示颜色,也有助于提高用户模拟第一轨迹的体验;所述用户对颜色的喜好,可以通过对用户的颜色喜好进行测试得到。In actual application, the terminal can control the drawing speed of the trajectory segment according to the drawing speed in the drawing parameters obtained from the server. In this way, for users with super memory, the speed of drawing the trajectory segment can be accelerated, which helps to improve the user simulation first time. A track experience. In addition, the terminal can control the display color of the trajectory segment according to the drawing color in the drawing parameters obtained from the server. In this way, the display color of the drawn trajectory can be controlled in combination with the user's preference for color, which also helps to improve the user's ability to simulate the first trajectory. Experience; the user's color preference can be obtained by testing the user's color preference.

实际应用时,所述绘制参数还可以包括轨迹绘制时机,终端接收到服务器发送的所述轨迹绘制时机后,根据所述轨迹绘制时机,在显示界面显示轨迹段,轨迹绘制时机可以是不固定的,这样轨迹绘制的时间是随机的,不易被机器获取,安全性较高。In practical applications, the drawing parameters may also include a trajectory drawing timing. After receiving the trajectory drawing timing sent by the server, the terminal displays the trajectory segment on the display interface according to the trajectory drawing timing. The trajectory drawing timing may not be fixed. , so that the time of trajectory drawing is random, it is not easy to be obtained by the machine, and the security is high.

步骤302:检测用户的触摸操作,根据所述触摸操作,在所述显示界面上绘制第二轨迹。Step 302: Detect a user's touch operation, and draw a second track on the display interface according to the touch operation.

这里,第一轨迹的轨迹段可以在显示界面显示的点阵上动态绘制,第一轨迹绘制完成后,用户凭借对第一轨迹中轨迹段的记忆,在同一个点阵上进行重绘。Here, the trajectory segments of the first trajectory can be dynamically drawn on the dot matrix displayed on the display interface. After the first trajectory is drawn, the user can redraw on the same dot matrix by relying on the memory of the trajectory segments in the first trajectory.

其中,所述点阵可以为终端根据服务器发送的绘制参数中的轨迹段起始点和结束点坐标确定的,并且可以利用一组轨迹段起始点和结束点坐标确定至少一个点阵;或者,所述点阵为终端根据实际情况预先设置的。即,在本实施例中,点阵的大小也可以是动态确定的,可以有效防止机器模拟。Wherein, the dot matrix may be determined by the terminal according to the coordinates of the start point and end point of the trajectory segment in the drawing parameters sent by the server, and at least one dot matrix may be determined by using a set of coordinates of the start point and end point of the trajectory segment; or, the The dot matrix is preset by the terminal according to the actual situation. That is, in this embodiment, the size of the dot matrix can also be determined dynamically, which can effectively prevent machine simulation.

实际应用时,如果用户使用的是手机、Pad等手持端,可通过触屏进行绘制所述第二轨迹;如果用户使用的是私人电脑(PC,Personal Computer)端,可通过鼠标进行绘制所述第二轨迹。During actual application, if the user uses a handheld terminal such as a mobile phone or a Pad, the second trajectory can be drawn through a touch screen; if the user uses a personal computer (PC, Personal Computer) end, the second trajectory can be drawn through a mouse. second track.

步骤303:确定校验结果;所述校验结果为根据所述第一轨迹和所述第二轨迹的匹配程度确定的。Step 303: Determine a verification result; the verification result is determined according to the degree of matching between the first track and the second track.

在一实施例中,所述确定校验结果,包括:将表征所述第二轨迹的信息发送给服务器;所述信息用于供服务器进行校验;接收服务器发送的校验结果。In an embodiment, the determining the verification result includes: sending information characterizing the second trajectory to the server; using the information for verification by the server; and receiving the verification result sent by the server.

本发明实施例提供的校验方法,由于轨迹段绘制完成后在终端的显示界面上清除绘制的相应轨迹段,因而终端用户能够依赖对至少两个轨迹段形成的第一轨迹的记忆,在显示界面中进行触摸操作,最终得到第二轨迹。显然,依赖用户对动态绘制的第一轨迹的记忆得到第二轨迹,降低了机器模拟的可能性,能够有效避免机器模拟,同时有助于提高校验成功率。In the verification method provided by the embodiment of the present invention, since the drawn corresponding trajectory segment is cleared on the display interface of the terminal after the trajectory segment is drawn, the terminal user can rely on the memory of the first trajectory formed by at least two trajectory segments, and display The touch operation is performed in the interface, and finally the second track is obtained. Obviously, relying on the user's memory of the dynamically drawn first trajectory to obtain the second trajectory reduces the possibility of machine simulation, can effectively avoid machine simulation, and at the same time helps to improve the verification success rate.

如图4所示,详细说明本发明实施例校验方法,本实施例的校验方法应用于服务器侧,包括以下步骤:As shown in Figure 4, the verification method of the embodiment of the present invention is described in detail. The verification method of this embodiment is applied to the server side and includes the following steps:

步骤401:接收终端发送的表征第二轨迹的信息;所述第二轨迹为终端根据用户的触摸操作绘制的。Step 401: Receive information representing a second trajectory sent by the terminal; the second trajectory is drawn by the terminal according to a user's touch operation.

实际应用时,如果用户使用的是手机、Pad等手持端,可通过触屏进行绘制所述第二轨迹;如果用户使用的是PC端,可通过鼠标进行绘制所述第二轨迹。In actual application, if the user uses a handheld terminal such as a mobile phone or a Pad, the second trajectory can be drawn through a touch screen; if the user uses a PC terminal, the second trajectory can be drawn through a mouse.

步骤402:根据所述第二轨迹与第一轨迹的匹配程度,得到校验结果;所述第一轨迹为所述终端利用服务器本地保存的至少两个轨迹段绘制形成的;其中,所述轨迹段绘制完成后在所述终端的显示界面上消失。Step 402: Obtain a verification result according to the degree of matching between the second trajectory and the first trajectory; the first trajectory is drawn by the terminal using at least two trajectory segments stored locally on the server; wherein the trajectory After the segment is drawn, it disappears on the display interface of the terminal.

这里,第一轨迹的轨迹段可以在终端显示界面显示的点阵上动态绘制,第一轨迹绘制完成后,用户凭借对第一轨迹中轨迹段的记忆,在同一个点阵上进行重绘。Here, the trajectory segments of the first trajectory can be dynamically drawn on the dot matrix displayed on the terminal display interface. After the first trajectory is drawn, the user can redraw on the same dot matrix by relying on the memory of the trajectory segments in the first trajectory.

在一实施例中,所述根据所述第二轨迹与第一轨迹的匹配程度,得到校验结果,包括:利用所述第二轨迹,确定对应的各个轨迹段;针对每个轨迹段,利用所述信息中对应用户触发操作的触发顺序以及触发点的坐标,判断对应第二轨迹的轨迹段与本地保存的对应第一轨迹的轨迹段是否匹配;当确定匹配时,利用与第二轨迹关联的相关信息,获取所述终端用户的账号可信度;判断所述终端用户的账号可信度是否大于预设阈值;如果确定大于时,则校验成功;否则,校验失败。In one embodiment, the obtaining the verification result according to the degree of matching between the second track and the first track includes: using the second track to determine corresponding track segments; for each track segment, using In the information, corresponding to the trigger sequence of the user’s trigger operation and the coordinates of the trigger point, it is judged whether the track segment corresponding to the second track matches the track segment corresponding to the first track stored locally; Relevant information to obtain the account credibility of the terminal user; determine whether the terminal user account credibility is greater than a preset threshold; if it is determined to be greater than, the verification is successful; otherwise, the verification fails.

实际应用时,服务器将第二轨迹与发送给终端的轨迹段对应的第一轨迹进行匹配,当匹配时,从风控中心获取用户的账号可信度,利用账号可信度确定用户是否为机器,从而可识别出第二轨迹是否为机器模拟,提高校验识别率。In actual application, the server matches the second trajectory with the first trajectory corresponding to the trajectory segment sent to the terminal, and when matched, obtains the user's account credibility from the risk control center, and uses the account credibility to determine whether the user is a machine , so that it can be identified whether the second trajectory is a machine simulation, and the verification recognition rate can be improved.

步骤403:向所述终端发送所述校验结果。Step 403: Send the verification result to the terminal.

在一实施例中,步骤401之前,所述方法还包括:获取终端的账号可信度;利用所述账号可信度,确定各轨迹段起始点和终点的坐标、坐标点的绘制顺序;将确定的坐标及坐标点的绘制顺序,作为绘制参数;所述绘制参数用于供所述终端绘制所述第一轨迹;向所述终端发送所述绘制参数。In one embodiment, before step 401, the method further includes: acquiring the account credibility of the terminal; using the account credibility, determining the coordinates of the starting point and the end point of each trajectory segment, and the drawing order of the coordinate points; The determined coordinates and the drawing order of the coordinate points are used as drawing parameters; the drawing parameters are used for the terminal to draw the first trajectory; and the drawing parameters are sent to the terminal.

下面详细介绍下本发明实施例在实际应用中采用校验系统的结构、以及基于该结构实现校验的过程及原理。The following describes in detail the structure of the verification system adopted in the embodiment of the present invention in practical applications, and the process and principle of realizing verification based on the structure.

图5为本发明实施例终端、服务器的功能模块框架示意图。具体的,如图5所示,所述校验系统的结构包括:终端、服务器、风控中心;终端的功能模块包括:验证轨迹动态绘制模块、用户滑动轨迹接收模块;其中,FIG. 5 is a schematic diagram of a functional module framework of a terminal and a server according to an embodiment of the present invention. Specifically, as shown in FIG. 5, the structure of the verification system includes: a terminal, a server, and a risk control center; the functional modules of the terminal include: a dynamic drawing module of a verification track, and a receiving module of a user sliding track; wherein,

验证轨迹动态绘制模块,用于绘制动态轨迹。具体地,与传统静态轨迹不同,本实施例中的轨迹在显示界面上是动态绘制的,且两点之间的轨迹绘制完成之后立即消失,紧接着进行下一段轨迹的绘制,整个过程连续无间断;所述动态绘制可以为所述终端根据预设的动画效果对轨迹段进行绘制。所有轨迹绘制完成后恢复成原有点阵即无轨迹时的点阵。用户根据记忆中的轨迹,在该点阵上进行重绘。这里,动态轨迹比静态轨迹更加难以被机器识别,由于动态轨迹较短,对真实用户而言并未增加识别难度。Verify trajectory dynamic drawing module, used to draw dynamic trajectory. Specifically, unlike the traditional static trajectory, the trajectory in this embodiment is dynamically drawn on the display interface, and the trajectory between two points disappears immediately after the completion of the trajectory drawing, and then the next section of trajectory is drawn, and the whole process is continuous and endless. Intermittent; the dynamic drawing may be that the terminal draws the trajectory segment according to a preset animation effect. After drawing all trajectories, it will return to the original dot matrix, that is, the dot matrix when there is no track. The user redraws on the dot matrix according to the track in memory. Here, the dynamic trajectory is more difficult to be recognized by the machine than the static trajectory. Since the dynamic trajectory is short, it does not increase the difficulty of recognition for real users.

用户滑动轨迹接收模块,用于监听触摸事件,基于用户的滑动触摸操作,绘制用户的第二轨迹,并将第二轨迹上传给服务端。The user sliding trajectory receiving module is configured to monitor touch events, draw the user's second trajectory based on the user's sliding touch operation, and upload the second trajectory to the server.

以Android客户端为例,可将Canvas技术与Android的ValueAnimator属性动画技术相结合,实现轨迹的动态绘制和消失,图6为动态绘制的各轨迹段示意图,轨迹段的绘制过程包括以下步骤:Taking the Android client as an example, the Canvas technology can be combined with Android's ValueAnimator attribute animation technology to realize the dynamic drawing and disappearance of the trajectory. Figure 6 is a schematic diagram of each trajectory segment dynamically drawn. The drawing process of the trajectory segment includes the following steps:

步骤1:获取轨迹段。Step 1: Get trajectory segments.

图7为轨迹段的示意图,图7所示的静态轨迹包括3段轨迹段。FIG. 7 is a schematic diagram of trajectory segments, and the static trajectory shown in FIG. 7 includes three trajectory segments.

步骤2:设置绘制效果。Step 2: Set the drawing effect.

根据服务器发送的绘制参数,利用ValueAnimator设置动画效果;所述绘制参数包括但不限于轨迹绘制的速率、轨迹的绘制颜色等等;According to the drawing parameters sent by the server, use ValueAnimator to set the animation effect; the drawing parameters include but not limited to the rate of drawing the trajectory, the drawing color of the trajectory, etc.;

步骤3:绘制第一个轨迹段。Step 3: Draw the first trajectory segment.

保持轨迹的起始点不变,通过ValueAnimator动态修改结束点坐标,然后利用Canvas技术不断绘制,动画结束则轨迹绘制完成。Keep the starting point of the trajectory unchanged, dynamically modify the coordinates of the end point through ValueAnimator, and then use Canvas technology to continuously draw, and the trajectory drawing is completed when the animation ends.

步骤4:绘制下一段轨迹。Step 4: Draw the next track.

将轨迹的起始点移动到上一段轨迹的结束位置,保持不变,同样通过ValueAnimator动态修改结束点坐标,然后利用Canvas技术不断绘制。此时,上一段轨迹已经消失。Move the starting point of the trajectory to the end position of the previous trajectory and keep it unchanged. Also dynamically modify the coordinates of the end point through ValueAnimator, and then use Canvas technology to continuously draw. At this point, the previous track has disappeared.

步骤5:继续步骤4的操作,直至完成所有分段轨迹的绘制。Step 5: Continue the operation of step 4 until the drawing of all segmented trajectories is completed.

步骤6:轨迹清空。Step 6: The track is cleared.

需要说明的是,在清除轨迹时,可以在轨迹段绘制完成后在终端的显示界面清除绘制的相应轨迹段;还可以在所有轨迹段绘制完成后,将所有轨迹段形成的第一轨迹进行清除。It should be noted that when clearing the trajectory, you can clear the drawn corresponding trajectory segment on the display interface of the terminal after the trajectory segment is drawn; you can also clear the first trajectory formed by all the trajectory segments after all the trajectory segments are drawn .

将所有轨迹段形成的第一轨迹进行清除的过程包括:保持最后一段轨迹的结束点不变,通过ValueAnimator动态修改起始点坐标,然后利用Canvas技术不断绘制,起始点逐渐接近结束点,动画结束则轨迹清空。The process of clearing the first trajectory formed by all trajectory segments includes: keeping the end point of the last trajectory unchanged, dynamically modifying the starting point coordinates through ValueAnimator, and then using Canvas technology to continuously draw, the starting point gradually approaches the end point, and the animation ends. The track is cleared.

图5中,服务器的功能模块包括:验证轨迹生成模块、用户滑动轨迹校验模块;其中,In Fig. 5, the functional modules of the server include: a verification trajectory generation module, a user sliding trajectory verification module; wherein,

验证轨迹生成模块,用于获取轨迹点起始点和终点坐标。具体地,从风控中心的帐号可信度存储模块获取对应终端用户的帐号可信度,并根据所述账号可信度定制一组随机轨迹段起始点和结束点坐标,还可以定制轨迹段绘制的速度,也就是轨迹段绘制的时间。例如,利用从风控中心返回的坐标(1,1)、(2,2)、(2,3)、(3,2),可以确定图7所示的轨迹段,还可以确定出三行三列的二进制点阵,点阵包括九个位置坐标:(1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3)。Verify the trajectory generation module, used to obtain the coordinates of the starting point and the ending point of the trajectory point. Specifically, the account credibility of the corresponding terminal user is obtained from the account credibility storage module of the risk control center, and a set of random trajectory segment starting point and end point coordinates are customized according to the account credibility, and trajectory segments can also be customized The speed of drawing, that is, the time when the trajectory segment is drawn. For example, using the coordinates (1,1), (2,2), (2,3), (3,2) returned from the risk control center, the trajectory segment shown in Figure 7 can be determined, and three lines can also be determined Three-column binary lattice, the lattice includes nine position coordinates: (1,1), (1,2), (1,3), (2,1), (2,2), (2,3) , (3,1), (3,2), (3,3).

用户滑动轨迹校验模块,用于服务端对终端上传的第二轨迹与本地保存的对应第一轨迹进行分析比对,并将与第二轨迹相关的信息上传给风控中心的帐号可信度计算模块。结合用户滑动轨迹校验模块、账号可信度计算模块的分析比对结果确定第二轨迹是否校验成功。The user sliding trajectory verification module is used for the server to analyze and compare the second trajectory uploaded by the terminal with the corresponding first trajectory saved locally, and upload the information related to the second trajectory to the account credibility of the risk control center computing module. Combining the analysis and comparison results of the user sliding track verification module and the account credibility calculation module to determine whether the second track is verified successfully.

图5中,风控中心包括:帐号可信度存储模块、帐号可信度计算模块;其中,In Fig. 5, the risk control center includes: account credibility storage module, account credibility calculation module; wherein,

帐号可信度存储模块,用于存储用户的帐号可信度,提供给服务端用于定制轨迹段的复杂度。The account credibility storage module is used to store the user's account credibility and provide it to the server for customizing the complexity of the track segment.

帐号可信度计算模块,用于根据服务端反馈的第二轨迹的相关信息分析用户行为,重新计算用户的帐号可信度,以区分用户是人还是机器。The account credibility calculation module is used to analyze user behavior according to the relevant information of the second trajectory fed back by the server, and recalculate the user's account credibility to distinguish whether the user is a human or a machine.

下面以具体实施例为例,详细说明本发明在实际应用中的实现过程及原理。The implementation process and principles of the present invention in practical applications will be described in detail below by taking specific embodiments as examples.

图8为本发明实施例轨迹校验的具体实现流程示意图,具体实现过程,包括如下步骤:FIG. 8 is a schematic diagram of a specific implementation process of trajectory verification in an embodiment of the present invention. The specific implementation process includes the following steps:

步骤801:服务器从风控中心获取终端用户的帐号可信度。Step 801: the server acquires the credibility of the terminal user's account from the risk control center.

步骤802:服务端根据帐号可信度定制轨迹段的复杂度,生成一组随机的轨迹段起始点和结束点坐标,同时确定轨迹段的绘制速度、轨迹绘制时机等参数。Step 802: The server customizes the complexity of the trajectory segment according to the credibility of the account, generates a set of random coordinates of the starting point and the end point of the trajectory segment, and determines parameters such as the drawing speed and timing of the trajectory segment.

轨迹绘制速度可以为客户端在向用户显示绘制轨迹时的速度,轨迹绘制时机可以为客户端在接收到服务器返回的轨迹段后在显示界面显示轨迹段的时间点。对于可信度较低的账号,可以增加其绘制复杂度,比如增加绘制的坐标点数、加快绘制速度等等。The trajectory drawing speed may be the speed at which the client displays the drawn trajectory to the user, and the trajectory drawing timing may be the time point at which the client displays the trajectory segment on the display interface after receiving the trajectory segment returned by the server. For accounts with low credibility, the complexity of drawing can be increased, such as increasing the number of drawn coordinate points, speeding up drawing, and so on.

步骤803:终端根据服务端返回的绘制速度、绘制时机、轨迹段坐标动态绘制轨迹,并在轨迹段绘制完成后清空轨迹段。Step 803: The terminal dynamically draws the track according to the drawing speed, drawing timing, and track segment coordinates returned by the server, and clears the track segment after drawing the track segment.

步骤804:用户根据终端上展示的动态绘制的第一轨迹的记忆,在客户端界面上模拟第一轨迹。Step 804: The user simulates the first trajectory on the client interface according to the memory of the dynamically drawn first trajectory displayed on the terminal.

步骤805:终端采集用户绘制的第二轨迹,并将与第二轨迹的相关信息上传到服务器;Step 805: the terminal collects the second trajectory drawn by the user, and uploads information related to the second trajectory to the server;

步骤806:服务器分析上传的第二轨迹与预先发送给客户端的对应第一轨迹的轨迹段是否匹配;Step 806: The server analyzes whether the uploaded second track matches the track segment corresponding to the first track sent to the client in advance;

步骤807:服务器分析第二轨迹的坐标点是否全部触发,且各坐标点触发顺序是否与第一轨迹各坐标点的触发顺序匹配;Step 807: The server analyzes whether all the coordinate points of the second track are triggered, and whether the trigger sequence of each coordinate point matches the trigger sequence of each coordinate point of the first track;

步骤808:若满足,则将第二轨迹的相关信息传给风控中心。风控中心会根据所述相关信息分析用户行为,重新计算用户的帐号可信度,并将重新计算后的账号可信度返回给服务端;Step 808: If it is satisfied, send the related information of the second track to the risk control center. The risk control center will analyze the user's behavior according to the relevant information, recalculate the user's account credibility, and return the recalculated account credibility to the server;

步骤808主要是根据第二轨迹的相关信息确定操作者是否是机器,第二轨迹的相关信息可以包括用户绘制第二轨迹的速度等信息,如果第二轨迹的绘制过程是匀速的,则操作者是机器的可能较大,则会降低账号的可信度。Step 808 is mainly to determine whether the operator is a machine according to the relevant information of the second trajectory. The relevant information of the second trajectory may include information such as the speed at which the user draws the second trajectory. If the drawing process of the second trajectory is at a constant speed, the operator It is more likely to be a machine, which will reduce the credibility of the account.

步骤809:服务端根据重新计算的账号可信度确定对第二轨迹是否验证成功。Step 809: The server determines whether the verification of the second track is successful according to the recalculated account credibility.

如果重新计算的账号可信度高于设定阈值,则验证成功。If the recalculated account credibility is higher than the set threshold, the verification is successful.

步骤810:服务端将校验结果返回给终端。Step 810: the server returns the verification result to the terminal.

基于本申请各实施例提供的校验方法,本申请还提供了一种校验装置,可以设置在终端上,如图9所示,所述装置包括:绘制模块91、检测模块92、确定模块93;其中,Based on the verification method provided by each embodiment of the present application, the present application also provides a verification device, which can be set on the terminal, as shown in Figure 9, the device includes: a drawing module 91, a detection module 92, a determination module 93; among them,

绘制模块91,用于在显示界面依次绘制至少两个轨迹段,且轨迹段绘制完成后在所述显示界面上清除绘制的相应轨迹段;绘制的至少两个轨迹段形成第一轨迹;The drawing module 91 is used to sequentially draw at least two trajectory segments on the display interface, and clear the drawn corresponding trajectory segments on the display interface after the trajectory segment drawing is completed; the drawn at least two trajectory segments form the first trajectory;

检测模块92,用于检测用户的触摸操作,根据所述触摸操作,在所述显示界面上绘制第二轨迹;A detection module 92, configured to detect a user's touch operation, and draw a second track on the display interface according to the touch operation;

确定模块93,用于确定校验结果;所述校验结果为根据所述第一轨迹和所述第二轨迹的匹配程度确定的。The determining module 93 is configured to determine a verification result; the verification result is determined according to a matching degree between the first track and the second track.

需要说明的是:上述实施例提供的校验装置在进行轨迹校验时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的校验装置与校验方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the verification device provided by the above-mentioned embodiment performs trajectory verification, it only uses the division of the above-mentioned program modules as an example for illustration. In practical applications, the above-mentioned processing allocation can be completed by different program modules according to needs. , that is, divide the internal structure of the device into different program modules, so as to complete all or part of the processing described above. In addition, the verification device provided in the above embodiment and the verification method embodiment belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.

在实际应用中,绘制模块91、检测模块92、确定模块93可由位于校验装置上的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,FieldProgrammable Gate Array)等实现。In practical applications, the drawing module 91, the detection module 92, and the determination module 93 can be composed of a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), a digital signal processor ( DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA, Field Programmable Gate Array) and other implementations.

基于本申请各实施例提供的校验方法,本申请还提供了一种校验装置,可以设置在服务器上,如图10所示,所述装置包括:接收模块101、校验模块102、发送模块103;其中,Based on the verification method provided by each embodiment of the present application, the present application also provides a verification device, which can be set on the server, as shown in Figure 10, the device includes: a receiving module 101, a verification module 102, a sending Module 103; wherein,

接收模块101,用于接收终端发送的表征第二轨迹的信息;所述第二轨迹为终端根据用户的触摸操作绘制的;The receiving module 101 is configured to receive information representing a second trajectory sent by the terminal; the second trajectory is drawn by the terminal according to the user's touch operation;

校验模块102,用于根据所述第二轨迹与第一轨迹的匹配程度,得到校验结果;所述第一轨迹为所述终端利用服务器本地保存的至少两个轨迹段绘制形成的;其中,所述轨迹段绘制完成后在所述终端的显示界面上消失;The verification module 102 is configured to obtain a verification result according to the degree of matching between the second trajectory and the first trajectory; the first trajectory is drawn and formed by the terminal using at least two trajectory segments stored locally by the server; wherein , after the trajectory segment is drawn, it disappears on the display interface of the terminal;

发送模块103,用于向所述终端发送所述校验结果。A sending module 103, configured to send the verification result to the terminal.

需要说明的是:上述实施例提供的校验装置在进行轨迹校验时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的校验装置与校验方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the verification device provided by the above-mentioned embodiment performs trajectory verification, it only uses the division of the above-mentioned program modules as an example for illustration. In practical applications, the above-mentioned processing allocation can be completed by different program modules according to needs. , that is, divide the internal structure of the device into different program modules, so as to complete all or part of the processing described above. In addition, the verification device provided in the above embodiment and the verification method embodiment belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.

在实际应用中,接收模块101、发送模块103由位于数据展示装置上的网络接口实现;校验模块102可由位于校验装置上的CPU、MPU、DSP、或FPGA等实现。In practical applications, the receiving module 101 and the sending module 103 are realized by a network interface located on the data display device; the verification module 102 can be realized by a CPU, MPU, DSP, or FPGA, etc. located on the verification device.

图11是本发明校验装置的结构示意图,图11所示的校验装置1100包括:至少一个处理器1101、存储器1102、用户接口1103、至少一个网络接口1104。校验装置1100中的各个组件通过总线系统1105耦合在一起。可理解,总线系统1105用于实现这些组件之间的连接通信。总线系统1105除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统1105。FIG. 11 is a schematic structural diagram of the verification device of the present invention. The verification device 1100 shown in FIG. Various components in the verification device 1100 are coupled together through a bus system 1105 . It can be understood that the bus system 1105 is used to realize connection and communication between these components. In addition to the data bus, the bus system 1105 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 1105 in FIG. 5 for clarity of illustration.

其中,用户接口1103可以包括显示器、键盘、鼠标、轨迹球、点击轮、按键、按钮、触感板或者触摸屏等。Wherein, the user interface 1103 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch panel or a touch screen, and the like.

可以理解,存储器1102可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read OnlyMemory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random AccessMemory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,SynchronousDynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器1102旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1102 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. Wherein, non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory, Optical disc, or compact disc read-only memory (CD-ROM, Compact Disc Read-Only Memory); magnetic surface storage can be magnetic disk storage or magnetic tape storage. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory) . The memory 1102 described in the embodiments of the present invention is intended to include, but not be limited to, these and any other suitable types of memory.

本发明实施例中的存储器1102用于存储各种类型的数据以支持校验装置1100的操作。这些数据的示例包括:用于在校验装置1100上操作的任何计算机程序,如操作系统11021和应用程序11022;其中,操作系统11021包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序11022可以包含各种应用程序,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序11022中。The memory 1102 in the embodiment of the present invention is used to store various types of data to support the operation of the verification device 1100 . Examples of these data include: any computer program used to operate on the verification device 1100, such as operating system 11021 and application program 11022; wherein, the operating system 11021 includes various system programs, such as framework layer, core library layer, driver layer etc., to implement various basic services and handle hardware-based tasks. The application program 11022 may include various application programs for implementing various application services. The program for realizing the method of the embodiment of the present invention may be contained in the application program 11022 .

上述本发明实施例揭示的方法可以应用于处理器1101中,或者由处理器1101实现。处理器1101可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1101中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1101可以是通用处理器、数字信号处理器,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器1101可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器1102,处理器1101读取存储器1102中的信息,结合其硬件完成前述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 1101 or implemented by the processor 1101 . The processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1101 or instructions in the form of software. The aforementioned processor 1101 may be a general-purpose processor, a digital signal processor, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor 1101 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 1102. The processor 1101 reads the information in the memory 1102, and completes the steps of the foregoing method in combination with its hardware.

基于本申请各实施例提供的校验方法,本申请还提供一种计算机可读存储介质,参照图11所示,所述计算机可读存储介质可以包括:用于存储计算机程序的存储器1102,上述计算机程序可由校验装置1100的处理器1101执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。Based on the verification method provided by each embodiment of the present application, the present application also provides a computer-readable storage medium, as shown in FIG. 11, the computer-readable storage medium may include: a memory 1102 for storing computer programs, the The computer program can be executed by the processor 1101 of the verification device 1100 to complete the steps described in the foregoing method. The computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (10)

1. A method of verification, the method comprising:
sequentially drawing at least two track sections on a display interface, and clearing the drawn corresponding track sections on the display interface after the track sections are drawn; the at least two drawn track segments form a first track;
detecting touch operation of a user, and drawing a second track on the display interface according to the touch operation;
determining a checking result; and the verification result is determined according to the matching degree of the first track and the second track.
2. The method of claim 1, wherein the drawing at least two track segments in sequence on a display interface comprises:
obtaining drawing parameters from a server; the drawing parameters at least comprise coordinates of a starting point and an end point of the track segment and a drawing sequence of coordinate points;
determining a dot matrix by using the coordinates in the drawing parameters;
determining the position of each track segment in the dot matrix by using the coordinates of the starting point and the end point of each track segment;
determining the drawing sequence of the track segment by using the drawing sequence of the coordinate points in the drawing parameters;
and according to the determined drawing sequence, drawing the track segments in sequence on the display interface.
3. The method of claim 2, wherein the drawing at least two track segments in sequence on a display interface comprises:
the drawing parameters at least comprise the drawing speed and the drawing color of each track segment;
drawing the track segments by using the drawing speed of each track segment in the drawing parameters;
and displaying the drawing color of the track segment as the corresponding drawing color in the drawing parameters by using the drawing color of each track segment in the drawing parameters.
4. The method of claim 1, wherein determining the verification result comprises:
sending information representing the second track to a server; the information is used for the server to check;
and receiving the verification result sent by the server.
5. A method of verification, the method comprising:
receiving information which is sent by the terminal and represents a second track; the second track is drawn by the terminal according to the touch operation of the user;
obtaining a verification result according to the matching degree of the second track and the first track; the first track is formed by drawing at least two track sections locally stored by the server by the terminal; the track segment disappears on a display interface of the terminal after being drawn;
and sending the verification result to the terminal.
6. The method of claim 5, further comprising:
acquiring account credibility of a terminal user;
determining coordinates of the starting point and the end point of each track segment and a drawing sequence of the coordinate points by using the account number reliability;
taking the determined coordinates and the drawing sequence of the coordinate points as drawing parameters; the drawing parameter is used for the terminal to draw the first track;
and sending the drawing parameters to the terminal.
The obtaining a verification result according to the matching degree of the second track and the first track includes:
determining corresponding track segments by using the second track;
for each track segment, judging whether the track segment corresponding to the second track is matched with the track segment corresponding to the first track stored locally by using the triggering sequence corresponding to the user triggering operation in the information and the coordinates of the triggering point;
when the matching is determined, acquiring the account credibility of the terminal user by using the related information associated with the second track;
judging whether the account credibility of the terminal user is greater than a preset threshold value or not;
if the result is greater than the preset value, the verification is successful; otherwise, the check fails.
7. A verification apparatus, the apparatus comprising:
the drawing module is used for drawing at least two track sections in sequence on the display interface, and clearing the drawn corresponding track sections on the display interface after the track sections are drawn; the at least two drawn track segments form a first track;
the detection module is used for detecting touch operation of a user and drawing a second track on the display interface according to the touch operation;
the determining module is used for determining a checking result; and the verification result is determined according to the matching degree of the first track and the second track.
8. A verification apparatus, the apparatus comprising:
the receiving module is used for receiving the information which is sent by the terminal and represents the second track; the second track is drawn by the terminal according to the touch operation of the user;
the verification module is used for obtaining a verification result according to the matching degree of the second track and the first track; the first track is formed by drawing at least two track sections locally stored by the server by the terminal; the track segment disappears on a display interface of the terminal after being drawn;
and the sending module is used for sending the verification result to the terminal.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4, or carries out the steps of the method of any one of claims 5 to 6.
10. A verification apparatus, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 4 or to perform the steps of the method of any one of claims 5 to 6 when running the computer program.
CN201810308322.0A 2018-04-08 2018-04-08 Checking method, checking device and computer readable storage medium Pending CN108614965A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810308322.0A CN108614965A (en) 2018-04-08 2018-04-08 Checking method, checking device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810308322.0A CN108614965A (en) 2018-04-08 2018-04-08 Checking method, checking device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108614965A true CN108614965A (en) 2018-10-02

Family

ID=63659790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810308322.0A Pending CN108614965A (en) 2018-04-08 2018-04-08 Checking method, checking device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108614965A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051154A (en) * 2021-03-02 2021-06-29 长沙景嘉微电子股份有限公司 Method and corresponding device for verifying correctness of drawing function of display card
CN114168939A (en) * 2021-11-09 2022-03-11 北京中交兴路信息科技有限公司 Method, device, electronic device and medium for identifying user operation behavior
CN116339528A (en) * 2021-12-23 2023-06-27 合肥市芯海电子科技有限公司 Touch screen calibration method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023029A (en) * 2014-06-19 2014-09-03 百度在线网络技术(北京)有限公司 Method and device for verifying verification codes
CN104143063A (en) * 2014-07-04 2014-11-12 惠州Tcl移动通信有限公司 A kind of unlocking method and mobile terminal based on pattern lock screen
US20150355776A1 (en) * 2014-06-06 2015-12-10 Wipro Limited Systems and methods for generating a secure locking interface
CN107169339A (en) * 2016-03-07 2017-09-15 赤子城网络技术(北京)有限公司 Unlocking method and device
CN107679391A (en) * 2017-10-11 2018-02-09 世纪龙信息网络有限责任公司 Data processing method and system for identifying code
CN107861848A (en) * 2017-11-14 2018-03-30 东软集团股份有限公司 Gesture password method of testing, device, readable storage medium storing program for executing and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150355776A1 (en) * 2014-06-06 2015-12-10 Wipro Limited Systems and methods for generating a secure locking interface
CN104023029A (en) * 2014-06-19 2014-09-03 百度在线网络技术(北京)有限公司 Method and device for verifying verification codes
CN104143063A (en) * 2014-07-04 2014-11-12 惠州Tcl移动通信有限公司 A kind of unlocking method and mobile terminal based on pattern lock screen
CN107169339A (en) * 2016-03-07 2017-09-15 赤子城网络技术(北京)有限公司 Unlocking method and device
CN107679391A (en) * 2017-10-11 2018-02-09 世纪龙信息网络有限责任公司 Data processing method and system for identifying code
CN107861848A (en) * 2017-11-14 2018-03-30 东软集团股份有限公司 Gesture password method of testing, device, readable storage medium storing program for executing and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051154A (en) * 2021-03-02 2021-06-29 长沙景嘉微电子股份有限公司 Method and corresponding device for verifying correctness of drawing function of display card
CN114168939A (en) * 2021-11-09 2022-03-11 北京中交兴路信息科技有限公司 Method, device, electronic device and medium for identifying user operation behavior
CN116339528A (en) * 2021-12-23 2023-06-27 合肥市芯海电子科技有限公司 Touch screen calibration method, device and equipment

Similar Documents

Publication Publication Date Title
US20220355205A1 (en) Method and system for interactive imitation learning in video games
CN107463331B (en) Gesture track simulation method and device and electronic equipment
CN111427803B (en) Automated random test method, apparatus, computer device and medium
US8819630B2 (en) Automatic test tool for webpage design with micro-browsers on mobile platforms
CN110659569B (en) Electronic signature method, device, storage medium and electronic equipment
EP4242840A1 (en) Video processing method and apparatus, and electronic device and computer-readable storage medium
KR20140091555A (en) Measuring web page rendering time
CN106656944A (en) Slide verification method and apparatus for hand-held mobile device
US10872455B2 (en) Method and portable electronic device for changing graphics processing resolution according to scenario
CN111324352A (en) Code generation method of application page and related equipment
CN111125663B (en) Control method and device for child mode, storage medium and terminal
CN109726543B (en) Login method and device of application program, terminal equipment and storage medium
CN108399327B (en) Electronic device, user authentication method based on dynamic picture and storage medium
CN108614965A (en) Checking method, checking device and computer readable storage medium
CN109933971A (en) Verification method and device based on verification code, electronic equipment and storage medium
CN111881395A (en) Page presenting method, device, equipment and computer readable storage medium
CN113496017A (en) Verification method, device, equipment and storage medium
CN112818319A (en) Verification method and device of graphic verification code, electronic equipment and storage medium
CN111090849A (en) Memory, verification code implementation method, device and equipment
CN108133132B (en) Identity verification method and system and electronic equipment
CN110706221A (en) Verification method, verification device, storage medium and device for customizing pictures
US20150309713A1 (en) Method And Apparatus Of Displaying Data
CN104699406A (en) Fingerprint triggering operation simulating method, device and terminal
Chu et al. Automated GUI testing for android news applications
EP4510092A1 (en) Palm contour extraction method and apparatus, and control instruction generation method and apparatus

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181002

RJ01 Rejection of invention patent application after publication