Input verification method based on touch screen

文档序号:134862 发布日期:2021-10-22 浏览:27次 中文

阅读说明:本技术 基于触屏的输入验证方法 (Input verification method based on touch screen ) 是由 陈姣 龚芝 陈芳 于 2021-07-27 设计创作,主要内容包括:本公开涉及1、基于触屏的输入验证方法,包括:S1、接收用户包含验证码申请的请求;S2、依据陀螺仪,获取电子设备当前的使用状态,该使用状态表征电子设备的触摸显示单元相对于用户使用视角的第一方向;S3、依据所述第一方向,生成一组分别指示第二方向的验证码图像;S4、获取所述验证码图像并显示在电子设备的触摸显示单元上;S5、提示用户依据所述验证码图像进行验证操作。本发明提供的基于触屏的输入验证方法,以指示方向的一组验证码图像,提示用户点击、滑动或旋转电子设备的方式进行输入验证,无需依赖知识性且无需任何文字输入,易于实现且对年龄较大的用户友好。(The disclosure relates to a touch screen-based input verification method, which includes: s1, receiving a request of a user containing a verification code application; s2, acquiring the current use state of the electronic equipment according to the gyroscope, wherein the use state represents a first direction of a touch display unit of the electronic equipment relative to a use visual angle of a user; s3, generating a group of verification code images respectively indicating a second direction according to the first direction; s4, acquiring the verification code image and displaying the verification code image on a touch display unit of the electronic equipment; and S5, prompting the user to carry out verification operation according to the verification code image. According to the input verification method based on the touch screen, the user is prompted to click, slide or rotate the electronic equipment for input verification through a group of verification code images indicating directions, knowledge does not need to be relied on, any characters do not need to be input, and the input verification method based on the touch screen is easy to implement and friendly to older users.)

1. The input verification method based on the touch screen comprises the following steps:

s1, receiving a request of a user containing a verification code application;

s2, acquiring the current use state of the electronic equipment according to the gyroscope, wherein the use state represents a first direction of a touch display unit of the electronic equipment relative to a use visual angle of a user;

s3, generating a group of verification code images respectively indicating a second direction according to the first direction;

s4, acquiring the verification code image and displaying the verification code image on a touch display unit of the electronic equipment;

and S5, prompting the user to carry out verification operation according to the verification code image.

2. The method of claim 1, wherein the electronic device has a first display interface configured to sequentially display one of the verification code images according to a first sequence according to a touch operation of a user; and each verification code image represents a different second direction by an indicator so as to prompt a user to perform corresponding touch operation.

3. The method of claim 2, the electronic device further having a second display interface located within the first display interface, the verification code image being displayed on the second display interface.

4. The method of claim 3, further comprising a third display interface located within the first display interface, wherein the verification code images are all displayed on the second display interface in a tiled manner in a preset sequence, and wherein the third display interface is configured to prompt a user to sequentially touch the verification code images in a second sequence.

5. The method of claim 2, the touch operation being a click or slide operation.

6. The method of claim 5, wherein the indicator is an arrow representing a direction, and the touch operation is a slide operation performed according to the direction indicated by the indicator.

7. The method of claim 1, wherein the authentication operation performed by the user is a rotation operation performed on the electronic device according to a direction indicated by the second direction.

8. The method of claim 1, wherein the electronic device is a cell phone or tablet.

9. The method of claim 1, wherein the first direction is a preset display direction for a landscape screen or a portrait screen.

10. The method of claim 1, wherein the second direction is a direction from a display center of the touch display unit toward the bezel and the four corners.

Technical Field

The invention relates to an information processing method, in particular to an input verification method based on a touch screen.

Background

Currently, in a conventional internet application, in order to ensure that a user has a good and normal interactive access in a process of interaction between a client and a server, information is acquired. The use of CAPTCHA (CAPTCHA) technology to verify input has emerged over the past century. Briefly, captchas are a common, fully automated program that distinguishes whether a user is a computer or a person. Of course, although there are many schemes in addition to the captcha for distinguishing human behavior from machine behavior, the captcha is an optimal scheme in consideration of implementation cost, security, usability, and the like in actual production, and thus is widely used. Besides determining whether the input related information is a natural person or a computer, the verification code has a more imaging function and is mainly embodied in that: 1) the method prevents the violent cracking of the login password through software during login; for the password with simple composition, if the verification code is not available, the password can be directly logged in after being violently cracked, and after the verification code is available, the verification code needs to be attacked first through program brute force cracking. In addition, for some special captcha schemes, such as reachccha by Google, there is currently no suitable means for cracking. The verification code cannot be efficiently identified, so that the input of the verification code cannot be completed, and the login cannot be successful. 2) The verification code can also prevent hackers from maliciously attacking or maliciously obtaining server information through a 'crawler' program, so that the server is too stressed and crashed.

Although the setting of the verification code generally has the advantages of preventing malicious access, violently breaking the login password and the like, the setting of the verification code cannot be replaced. However, with the popularization of mobile terminals, many authentication code input scenarios have been shifted from PCs to mobile terminals. Because the screen of the mobile terminal is small and the input is input through the touch screen, the input experience is very poor for the verification code in the conventional form. Especially for some older users, entering a verification code is a task that is almost impossible to accomplish. To overcome this problem, manufacturers have developed input verification schemes that are more suitable for touch screen operations. For example, as shown in fig. 1, a currently common verification code suitable for touch screen operation is shown, in this scheme, when a web content requested by a user includes a verification code application, an embedded JS code or API requests a server for verification, the server returns verification code information and presents the verification code information on a verification display area 200 of a touch screen of an electronic device, where the verification display area specifically includes an operation area 201 and a prompt area 202, and the user sequentially clicks corresponding content displayed in the operation area in a click manner according to a prompt in the prompt area 202 during verification to complete verification. Fig. 2 shows another common verification method with better usability in touch screen applications, as shown in the figure, a verification display area 300 is clearly divided into an operation area 301 and a prompt area 302, the prompt area displays a hollow puzzle and a floating puzzle, which is intuitive and prompts a user to complete the puzzle to realize verification. Above two kinds of prior art, all can avoid the inconvenience of touch screen input to a certain extent, have certain realistic meaning. However, the inventor finds that the touch screen input verification method which exists at present and is widely applied needs to have certain knowledge and imagination, is relatively friendly to young people, and is still not easy to complete for the older people.

Disclosure of Invention

In view of the above problems in the prior art, it is an object of the present invention to provide a touch screen based input verification method that is more intuitive for the user.

In order to achieve the above object, the input verification method based on a touch screen according to the present invention includes:

s1, receiving a request of a user containing a verification code application;

s2, acquiring the current use state of the electronic equipment according to the gyroscope, wherein the use state represents a first direction of a touch display unit of the electronic equipment relative to a use visual angle of a user;

s3, generating a group of verification code images respectively indicating a second direction according to the first direction;

s4, acquiring the verification code image and displaying the verification code image on a touch display unit of the electronic equipment;

and S5, prompting the user to carry out verification operation according to the verification code image.

Preferably, the electronic device has a first display interface, and the first display interface is configured to sequentially display one image of the group of verification code images according to a first sequence according to a touch operation of a user; and each verification code image represents a different second direction by an indicator so as to prompt a user to perform corresponding touch operation.

Preferably, the electronic device further has a second display interface located within the first display interface, and the verification code image is displayed on the second display interface.

Preferably, the electronic device further has a third display interface located in the first display interface, the verification code images are all displayed on the second display interface in a tiled manner with a preset sequence, and the third display interface is configured to prompt the user to perform touch operation on the verification code images in sequence with a second sequence.

Preferably, the touch operation is a click or slide operation.

Preferably, the indicator is an arrow indicating a direction, and the touch operation is a slide operation performed in accordance with the direction indicated by the indicator.

Preferably, the verification operation performed by the user is a rotation operation performed on the electronic device according to a direction indicated by the second direction.

Preferably, the electronic device is a mobile phone or a tablet.

Preferably, the first direction is a preset display direction in a horizontal screen or a vertical screen.

Preferably, the second direction is a direction from a display center of the touch display unit to the frame and four corners.

Compared with the prior art, the input verification method based on the touch screen prompts the user to click, slide or rotate the electronic equipment for input verification by a group of verification code images indicating directions, does not need to rely on knowledge and does not need any character input, is easy to implement and is friendly to older users.

Drawings

Fig. 1 is a schematic diagram of a conventional touch screen input verification method.

Fig. 2 is a schematic diagram of another conventional touch screen input verification method.

FIG. 3 is a flowchart of a method of a touch screen based input validation method of the present invention.

FIG. 4 is a system block diagram of a touch screen based input validation method embodying the present invention.

Fig. 5 is a schematic diagram of a verification process of a first embodiment of the touch-screen-based input verification method according to the present invention.

Fig. 6 is a schematic diagram of a verification process of a second embodiment of the touch-screen-based input verification method according to the present invention.

Fig. 7 is a schematic diagram of a verification process of a third embodiment of the touch-screen-based input verification method according to the present invention.

Fig. 8 is a schematic diagram of a verification process of a fourth embodiment of the touch-screen-based input verification method according to the present invention.

Fig. 9 is a schematic diagram of a verification process of a fifth embodiment of the touch-screen-based input verification method according to the present invention.

Detailed Description

In order to make the technical solutions of the present invention better understood, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

Various aspects and features of the present invention are described herein with reference to the drawings.

These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.

It should also be understood that, although the invention has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of the invention, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.

The above and other aspects, features and advantages of the present invention will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

Specific embodiments of the present invention are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the invention, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the invention in unnecessary or unnecessary detail based on the user's historical actions. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present invention in virtually any appropriately detailed structure.

The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the invention.

As shown in fig. 3 and 4, the touch screen-based input verification method provided by the present invention includes:

s1, receiving a request of a user containing a verification code application;

s2, acquiring a current usage status of the electronic device 100 according to the gyroscope 105, where the usage status represents a first direction of the touch display unit 108 of the electronic device relative to a user usage perspective;

s3, generating a group of verification code images respectively indicating a second direction according to the first direction;

s4, acquiring the verification code image and displaying the verification code image on the touch display unit 108 of the electronic device 100;

and S5, prompting the user to carry out verification operation according to the verification code image.

In the basic implementation manner described above, the step S1 is similar to the existing implementation manner, and is not specifically described in the present invention. For the step S2, since the current touch screen terminal, especially the mobile phone or tablet applicable to the method of the present invention, is equipped with the touch display unit 108, the gyroscope 105, the processor 106, and other units, it can be implemented that the electronic device 100 is used by detecting whether the user is a landscape screen or a portrait screen through the gyroscope 105. Therefore, in the present invention, the first direction is a preset display direction in the case of a landscape screen or a portrait screen. The preset display mode refers to a default display direction of all display elements displayed by the touch display unit 108 when the user normally uses the electronic device 100. The second direction, in the method of the present invention, may be exemplified as a direction from the display center (geometric center of the physical screen) of the touch display unit 108 toward the frame and four corners. This direction is a preset direction, and may be randomly embodied on each verification code image in the form of an indicator, such as an arrow, by the server 400 or the electronic device 100 itself when generating a set of verification code images. Because the indicator has the prompt attribute at the same time, the user can make intuitive judgment without thinking. Of course, the method of the present invention does not exclude the possibility of giving the user an operation prompt at the same time.

In the implementation process of the present invention, since the method is mainly applied to the electronic device with the touch screen, the user may perform the verification operation in a conventional manner such as character input, click operation, sliding operation, shaking or deflecting the electronic device, theoretically. Therefore, in the method of the present invention, the verification operation performed by the user may specifically be a click operation, a slide operation, or a shake-and-shake or a yaw operation performed on the electronic device itself. More preferably, a touch operation, i.e., a click operation or a slide operation.

When the verification operation is implemented, the electronic device 100 generally needs to set at least one display interface 101, where the first display interface 101 is configured to sequentially display one image of a group of verification code images according to a first sequence according to a touch operation of a user; and each verification code image represents a different second direction by an indicator so as to prompt a user to perform corresponding touch operation. The first sequence is actually the sequence of the initial generation of the verification code images, and may include a plurality of pairs including indicators, such as the arrow 103 indicating the second direction, and the first sequence strictly characterizes the display order of the verification code images, each of which is in the first sequence of verification code images, and the second direction indicated by the indicators may be the same or different. And the user only needs to perform touch operation according to the second direction of the graph respectively when the corresponding verification code image is displayed. Specifically, in the embodiment of fig. 5 and 6, the electronic device 100 further has a second display interface 102 located within the first display interface 101, and the verification code images are displayed on the second display interface 102 according to a first sequence. The user can slide the verification code image in the direction indicated by the arrow 103 to complete the switching, that is, the user can slide the corresponding verification code image in the direction indicated by the arrow by a sliding operation to complete the verification like turning pages. The same embodiment can also be seen in fig. 7, except that in the embodiment of fig. 7, the authentication code image is displayed directly on the first display interface 101 in a full screen manner.

In addition, in another relatively different implementation manner, referring to fig. 8, the electronic device 100 further includes a third display interface 104 located in the first display interface 101, and also includes a second display interface 102, where the second display interface 102 has sub-display areas 1021 corresponding to the number of the verification code images, the verification code images are all displayed on the sub-display interfaces 1021 of the second display interface in a tiled manner in a preset sequence, and the third display interface 104 is configured to prompt the user to perform a touch operation on the verification code images in sequence in a second sequence. That is, in this manner, the preset sequence is different from the first sequence, and may be an image sequence formed by a preset rule after the verification code image is generated, but the preset sequence only affects the tiling arrangement sequence of the verification code image on the second display interface 102 and does not represent the verification sequence. The actual verification operation is presented in the third display interface 104, and the user 10 may sequentially click or slide the indicator on the sub-display interface 1021 according to the operation instruction of the third display interface 104. It is worth mentioning that in this embodiment, the indicator may not be an arrow indicating the second direction, but may be symbols different from each other, such as geometric figures, e.g. circles, triangles, squares or diamonds, etc.

For the embodiment shown in fig. 9, there is still another completely different implementation manner, in which the indicator is still an arrow indicating the second direction, and each verification code image is sequentially displayed according to the first sequence, and only after the user completes the first step of operation, the next verification code is displayed. But this first operation does not suggest a correct answer. As shown in fig. 9, the verification operation performed by the user is a rotation operation performed on the electronic device according to the direction indicated by the second direction. After all the device deflection operations in the direction indicated by the arrow are completed in sequence, the input verification process is completed.

It can be seen that in the above embodiments provided by the present invention, it is not necessary to understand the verification content deliberately, and it is not necessary to perform the processing of "anti-machine recognition" on the verification prompt content, and it is only necessary to present the operation prompt in a very large and clear manner, so that the user can complete the operation smoothly, even for the elderly, it is very friendly.

Various specific embodiments of the methods described above, including various software modules, may be implemented on the computer-readable storage media.

In the above, various operations or functions are described herein, which may be implemented as or defined as software code or instructions. Such content may be directly executable ("object" or "executable" form) source code or differential code ("delta" or "patch" code). Software implementations of embodiments described herein may be provided via an article of manufacture having code or instructions stored therein or via a method of operating a communication interface to transmit data via the communication interface. A machine or computer-readable storage medium may cause a machine to perform the functions or operations described, and includes any mechanism for storing information in a form accessible by a machine (e.g., a computing device, an electronic system, etc.), such as recordable/non-recordable media (e.g., Read Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media, optical storage media, flash memory devices, etc.). A communication interface includes any mechanism that interfaces to any of a hardwired, wireless, optical, etc. medium to communicate with another device, such as a memory bus interface, a processor bus interface, an internet connection, a disk controller, etc. The communication interface may be configured by providing configuration parameters and/or transmitting signals to prepare the communication interface to provide data signals describing the software content. The communication interface may be accessed via one or more commands or signals sent to the communication interface.

The present invention also relates to a system for performing the operations herein. The system may be specially constructed for the required purposes, or it may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer readable storage medium, such as, but is not limited to, any type of disk including floppy disks, optical disks, CDROMs, and magnetic-optical disks, read-only memories (ROMs), Random Access Memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any type of media suitable for storing electronic instructions, each coupled to a computer system bus.

The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:直播页面切换方法、视频页面切换方法、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类