A picture verification code processing method and device based on sliding track recognition

By recognizing the sliding trajectory on a solid color background and processing the CAPTCHA content through perspective, the problem of image CAPTCHAs being easily cracked in existing technologies is solved, achieving higher security and difficulty, and enhancing the system's protection capabilities.

CN115438329BActive Publication Date: 2026-07-28CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILE INFORMATION TECHNOLOGY CO LTD
Filing Date
2021-06-03
Publication Date
2026-07-28

AI Technical Summary

Technical Problem

Existing image CAPTCHA processing solutions have low security, are easily recognized by computers, and cannot effectively distinguish genuine user behavior.

Method used

By generating a solid color background image and a sliding trajectory recognition model, users slide on the solid color background. The server parses the sliding trajectory data and processes the CAPTCHA content through multiple interactions until it is fully displayed, increasing the difficulty for users to recognize.

Benefits of technology

This improves the security of image verification codes, increases the difficulty of brute-force attacks on computers, and enhances the system's security protection level.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115438329B_ABST
    Figure CN115438329B_ABST
Patent Text Reader

Abstract

The application provides a picture verification code processing method and device based on sliding track recognition. The method comprises the following steps: receiving verification code request information sent by a user end; generating corresponding original picture verification codes based on the verification code request information; generating identification information corresponding to the original picture verification codes and a pure color background picture, and returning the identification information and the pure color background picture to the user end; obtaining first sliding track data of the user on the pure color background picture and corresponding identification information, and obtaining corresponding original picture verification codes based on the identification information; analyzing the first sliding track data by using a sliding track recognition model, determining a first sliding track path, performing perspective processing on verification code pixel content in a covering area of the first sliding track path in the original picture verification code, and returning the first picture verification code after the perspective processing to the user end. By using the method disclosed by the application, complete picture verification codes do not need to be provided, and the security protection level of the system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer application technology, specifically to a method and apparatus for processing image verification codes based on sliding trajectory recognition. Additionally, it relates to an electronic device and a processor-readable storage medium. Background Technology

[0002] With the rapid development of internet technology, information and network security are receiving increasing attention from users and service providers. Simultaneously, many criminals have exploited computers to brute-force user accounts to steal sensitive information and property. To prevent such activities, internet service providers use image CAPTCHAs. When a user logs in, they must first verify the validity of the image CAPTCHA before manually entering the code, thus determining whether the login is genuine. Existing solutions mainly include: one is to generate a simple image containing verification information and add distracting information, allowing the user to visually identify and input the valid content; another is to generate a sliding CAPTCHA, where the user drags a specific icon in the image to a designated position using the mouse to verify their login behavior.

[0003] Currently, CAPTCHAs are implemented in various ways on the internet, primarily by adding different types of distracting information or increasing user computer behavior (such as dragging an icon to a designated location with a mouse) to increase the difficulty of recognition. However, with technological advancements, these methods can all be automatically recognized by computers through data processing and image processing techniques, making it impossible for internet application providers to determine whether the behavior is genuine. Therefore, designing a more interactive, complex, and secure image CAPTCHA processing scheme based on sliding trajectory recognition has become an important research topic in this field. Summary of the Invention

[0004] To address this issue, the present invention provides a method and apparatus for processing image CAPTCHAs based on sliding trajectory recognition, thereby solving the problem of low security in existing image CAPTCHA processing schemes.

[0005] In a first aspect, the present invention provides an image CAPTCHA processing method based on sliding trajectory recognition, comprising:

[0006] Receive verification code request information sent by the user client;

[0007] Generate the corresponding original image verification code based on the verification code request information;

[0008] Generate identification information and a solid color background image corresponding to the original image verification code, and return the identification information and the solid color background image to the user terminal;

[0009] Obtain the user's first sliding trajectory data on the solid color background image and the corresponding identification information, and obtain the corresponding original image verification code based on the identification information;

[0010] The sliding trajectory data is parsed using a sliding trajectory recognition model to determine the first sliding trajectory path; the pixel content of the verification code in the area covered by the first sliding trajectory path in the original image verification code is subjected to perspective processing, and the perspective-processed first image verification code is returned to the user terminal.

[0011] In one embodiment, the image CAPTCHA processing method based on sliding trajectory recognition further includes:

[0012] Obtain the user's second sliding trajectory data on the first image verification code and the corresponding identification information;

[0013] The sliding trajectory recognition model is used to parse the second sliding trajectory data, determine the second sliding trajectory path, perform perspective processing on the CAPTCHA pixel content in the area covered by the second sliding trajectory path in the original image CAPTCHA, and return the perspective-processed second image CAPTCHA to the user.

[0014] In one embodiment, the identification information is the unique serial number corresponding to the original image verification code.

[0015] In one embodiment, obtaining the user's first swipe trajectory data on the solid color background image specifically includes:

[0016] Obtain the user's first mouse hover trajectory data on the solid color background image; or,

[0017] Obtain the user's first touch swipe trajectory data on the solid color background image.

[0018] In one embodiment, the image verification code processing method based on sliding trajectory recognition further includes: caching the original image verification code;

[0019] The step of generating the identification information corresponding to the original image verification code specifically involves: caching the original image verification code and then generating the identification information corresponding to the original image verification code.

[0020] The step of obtaining the corresponding original image verification code based on the identification information specifically involves retrieving the corresponding original image verification code from the cache based on the identification information.

[0021] Secondly, the present invention also provides a method for processing image verification codes based on sliding trajectory recognition, comprising:

[0022] Send a verification code request to the server and obtain the identification information of the solid color background image and the original image verification code returned by the server;

[0023] Identify the user's swipe trajectory on the solid color background image and record the swipe trajectory data;

[0024] The sliding trajectory data and the corresponding identification information of the original image verification code are sent to the server, and the returned perspective-processed image verification code is obtained and displayed.

[0025] Thirdly, the present invention also provides an image verification code processing device based on sliding trajectory recognition, comprising:

[0026] The verification code request receiving unit is used to receive verification code request information sent by the user terminal.

[0027] The first information generation unit is used to generate a corresponding original image verification code based on the verification code request information;

[0028] The second information generation and sending unit is used to generate identification information and a solid color background image corresponding to the original image verification code, and return the identification information and the solid color background image to the user terminal;

[0029] The sliding trajectory data acquisition unit is used to acquire the first sliding trajectory data of the user on the solid color background image and the corresponding identification information, and to acquire the corresponding original image verification code based on the identification information;

[0030] The sliding trajectory data processing unit is used to parse the first sliding trajectory data using a sliding trajectory recognition model to determine the first sliding trajectory path; to perform perspective processing on the verification code pixel content in the area covered by the first sliding trajectory path in the original image verification code, and to return the perspective-processed first image verification code to the user terminal.

[0031] In one embodiment, in the image verification code processing device based on sliding trajectory recognition, the sliding trajectory data acquisition unit is further configured to: acquire the second sliding trajectory data of the user on the first image verification code and the corresponding identification information;

[0032] The sliding trajectory data processing unit is further configured to parse the second sliding trajectory data using the sliding trajectory recognition model, determine the second sliding trajectory path, perform perspective processing on the verification code pixel content in the area covered by the second sliding trajectory path in the original image verification code, and return the perspective-processed second image verification code to the user terminal.

[0033] In one embodiment, the identification information is the unique serial number corresponding to the original image verification code.

[0034] In one embodiment, the sliding trajectory data acquisition unit is specifically used for:

[0035] Obtain the user's first mouse hover trajectory data on the solid color background image; or,

[0036] Obtain the user's first touch swipe trajectory data on the solid color background image.

[0037] In one embodiment, the image verification code processing device based on sliding trajectory recognition further includes: a caching unit for caching the original image verification code;

[0038] The second information generation and sending unit is specifically used to: cache the original image verification code and generate identification information corresponding to the original image verification code;

[0039] The sliding trajectory data acquisition unit is specifically used to: obtain the corresponding original image verification code from the cache based on the identification information.

[0040] Fourthly, the present invention also provides an image verification code processing device based on sliding trajectory recognition, comprising:

[0041] The verification code request sending unit is used to send verification code request information to the server and obtain the identification information of the solid color background image and the original image verification code returned by the server.

[0042] The sliding trajectory recognition and recording unit is used to recognize the user's sliding trajectory on the solid color background image and record the sliding trajectory data;

[0043] The image verification code acquisition and display unit is used to send the sliding trajectory data and the corresponding identification information of the original image verification code to the server, obtain the returned perspective-processed image verification code, and display it.

[0044] Fifthly, the present invention also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the image verification code processing method based on sliding trajectory recognition as described in any of the preceding claims.

[0045] In a sixth aspect, the present invention also provides a processor-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the image verification code processing method based on sliding trajectory recognition as described in any of the preceding claims.

[0046] The image verification code processing method based on sliding trajectory recognition described in this invention increases the difficulty for computers to brute-force crack image verification codes by enhancing the interaction between users and the system. It accurately identifies the user's sliding trajectory based on the user's operation behavior and sends the corresponding part of the image verification code content multiple times according to the identified sliding trajectory, without requiring the complete image verification code. This increases the difficulty for users to pass the system verification, thereby improving the system's security protection level. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 This is one of the flowcharts illustrating the image verification code processing method based on sliding trajectory recognition provided in an embodiment of the present invention;

[0049] Figure 2 A schematic diagram of the complete process of the image verification code processing method based on sliding trajectory recognition provided in the embodiments of the present invention;

[0050] Figure 3 The flowchart below shows the mouse trajectory recognition algorithm in the image verification code processing method based on sliding trajectory recognition provided in this embodiment of the invention.

[0051] Figure 4 This is a schematic diagram of a solid color background image in the image verification code processing method based on sliding trajectory recognition provided in an embodiment of the present invention;

[0052] Figure 5 This is one of the schematic diagrams of the image verification code in the image verification code processing method based on sliding trajectory recognition provided in the embodiments of the present invention;

[0053] Figure 6 This is the second schematic diagram of the image verification code in the image verification code processing method based on sliding trajectory recognition provided in the embodiment of the present invention;

[0054] Figure 7 This is the third schematic diagram of the image verification code in the image verification code processing method based on sliding trajectory recognition provided in the embodiments of the present invention;

[0055] Figure 8 This is one of the structural schematic diagrams of the image verification code processing device based on sliding trajectory recognition provided in an embodiment of the present invention;

[0056] Figure 9This is the second flowchart illustrating the image verification code processing method based on sliding trajectory recognition provided in this embodiment of the invention.

[0057] Figure 10 This is a second schematic diagram of the image verification code processing device based on sliding trajectory recognition provided in an embodiment of the present invention;

[0058] Figure 11 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0059] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0060] The following is a detailed description of embodiments of the image CAPTCHA processing method based on sliding trajectory recognition described in this invention. For example... Figure 1 As shown, this is one of the flowcharts of the image verification code processing method based on sliding trajectory recognition provided in this embodiment of the invention. The specific implementation process includes the following steps:

[0061] Step 101: Receive the verification code request information sent by the user.

[0062] Step 102: Generate the corresponding original image verification code based on the verification code request information.

[0063] In this embodiment of the invention, after receiving the verification code request information sent by the user, the server can call a preset image algorithm to generate the corresponding original image verification code.

[0064] Step 103: Generate identification information and a solid color background image corresponding to the original image verification code, and return the identification information and the solid color background image to the user terminal.

[0065] In this embodiment of the invention, before generating the identification information corresponding to the original image verification code, the original image verification code needs to be cached in advance. After caching the original image verification code, the identification information corresponding to the original image verification code is generated. The identification information is a unique serial number corresponding to the original image verification code.

[0066] like Figure 4 As shown, the solid color background image can refer to a pure black background image, and no specific limitation is made here.

[0067] Step 104: Obtain the user's first sliding trajectory data on the solid color background image and the corresponding identification information, and obtain the corresponding original image verification code based on the identification information.

[0068] The first sliding trajectory data can refer to either the mouse sliding trajectory data on the solid color background image for the first time, or the touch sliding trajectory data on the solid color background image for the first time, without being specifically limited here.

[0069] In this step, after the server obtains the user's first sliding trajectory data on the solid color background image and the corresponding identification information, it can retrieve the corresponding original image verification code from the cache based on the identification information.

[0070] Step 105: Analyze the first sliding trajectory data using the sliding trajectory recognition model to determine the first sliding trajectory path; perform perspective processing on the verification code pixel content in the area covered by the first sliding trajectory path in the original image verification code, and return the perspective-processed first image verification code to the user terminal.

[0071] In the specific implementation process, if the first image verification code after perspective processing still cannot display all the verification code information, then the second sliding trajectory data of the user on the first image verification code and the corresponding identification information are obtained; the second sliding trajectory data is parsed using the sliding trajectory recognition model to determine the second sliding trajectory path; perspective processing is performed on the verification code pixel content in the area covered by the second sliding trajectory path in the original image verification code; and the perspective-processed second image verification code is returned to the user. In addition, the third sliding trajectory data of the user on the second image verification code and the corresponding identification information can also be obtained, and the sliding trajectory can be parsed using the sliding trajectory recognition model and further processed; these will not be described in detail here.

[0072] like Figure 2As shown, in this embodiment of the invention, the verification process of the image verification code is triggered by the front-end user terminal and generated internally by the back-end system server using a preset image algorithm. The complete original image verification code is cached internally by the system server, and a pure black background image is returned to the user terminal by default. The user slides on the pure black background image using a mouse, touch panel, or touch screen, and the sliding trajectory data is recorded by the user terminal and submitted to the back-end system server. After the server parses the sliding trajectory path using a preset sliding trajectory recognition model (such as a mouse trajectory recognition algorithm model), it returns the verification code pixel content of the area covered by the sliding trajectory path corresponding to the original image verification code to the front-end user terminal for display. In specific implementation, the user terminal can repeatedly slide the mouse, touch panel, or touch screen to interact with the back-end system server multiple times, making the hidden image verification code content more visible, and finally the original image verification code is completely displayed to the user. By using image generation algorithms and human-computer interaction, the difficulty and complexity of user recognition of the verification code are increased, avoiding brute-force computer cracking, thereby protecting the user's personal information and the service security of the Internet provider.

[0073] The following explanation uses a mouse movement trajectory recognition algorithm as an example. The specific algorithm steps include: First, establishing a coordinate system and determining the initial input coordinates based on the mouse cursor; moving the mouse to generate a series of mouse position data; based on proportional sampling, determining whether the sampling result exceeds the maximum value of the image; if not, enlarging the trajectory line and calculating all pixels within a radius of r, centered on the trajectory point; extracting the RGB values ​​of all the above pixels from the original image (original image verification code) to generate the trajectory map, i.e., the movement trajectory path. For details, please refer to... Figure 3 As shown, I will not go into details here.

[0074] In a complete embodiment, the specific steps are as follows: (1) The user initiates a verification code request through the front-end user terminal. The back-end system server calls a preset image algorithm to generate an original image verification code, deserializes the original image verification code and stores it in a cache (such as Redis), and generates a unique serial number of the original image verification code as the basis for reading the original image verification code next time. After the original image verification code is stored, the back-end system server returns the unique serial number of the original image verification code and a pure black background image (such as Redis) to the user terminal. Figure 4(2) After receiving the pure black background image, the front-end user terminal prompts the user to place the mouse on the pure black background image and click the left button to slide. At this time, the user terminal will identify the sliding trajectory of the user's mouse and record the corresponding sliding trajectory data. When the user releases the left mouse button, the user terminal sends a request to the back-end system server again. This request needs to carry the unique serial number of the original image verification code and the sliding trajectory data recorded by the user's sliding behavior. It should be noted that the present invention is not limited to the use of mouse sliding. It can also be implemented by sliding on a touch panel screen or touch screen using a touch device or finger. No specific limitation is made here. (3) After receiving the request sent by the front-end user terminal again, the back-end system server first obtains the corresponding original image verification code from the cache through the unique serial number of the original image verification code carried in the request. Then, it parses the user's sliding trajectory data through the preset sliding trajectory recognition model (i.e., sliding trajectory recognition algorithm, such as mouse sliding trajectory recognition algorithm). Combined with the original image verification code, it performs perspective processing on the verification code content covered by the sliding trajectory path and returns it to the front-end user terminal. The returned content can be as follows. Figure 5 As shown, it can also be as follows Figure 6 or Figure 7 As shown. (4) After receiving the returned content, the front-end user terminal displays the image verification code result to the user. If the partially revealed verification code is insufficient for the user to perceive the specific verification code content (e.g. Figure 5 or Figure 6 As shown in the example, the user can repeat step (2) multiple times. The front-end user sends the sliding trajectory data to the back-end system server each time, and the server processes it and returns it to the front-end user. This process is repeated multiple times until the user can clearly see the specific location of the verification code content, for example... Figure 7 The final original image verification code shown is: X5Tb. (5) After the user has clearly perceived the specific content of the image verification code, they can manually fill in the correct verification code content into the verification code box and submit the verification request. If the input content is consistent with the original image verification code content, a success message will be displayed. Otherwise, a new original image verification code will be generated and the steps (1) to (5) above will be repeated. The details will not be repeated here.

[0075] The image verification code processing method based on sliding trajectory recognition described in this invention increases the difficulty for computers to brute-force crack the image verification code by enhancing the interaction between the user and the system. It accurately identifies the user's sliding trajectory based on the user's operation behavior and sends the corresponding part of the image verification code content multiple times according to the identified sliding trajectory, without requiring the complete image verification code. This increases the difficulty for users to pass the system verification, thereby improving the system's security protection level.

[0076] Corresponding to the image CAPTCHA processing method based on sliding trajectory recognition provided above, this invention also provides an image CAPTCHA processing device based on sliding trajectory recognition. Since the embodiments of this device are similar to the above method embodiments, the description is relatively simple. For relevant details, please refer to the description in the above method embodiment section. The embodiments of the image CAPTCHA processing device based on sliding trajectory recognition described below are merely illustrative. Please refer to... Figure 8 As shown, it is one of the structural schematic diagrams of an image verification code processing device based on sliding trajectory recognition provided in an embodiment of the present invention.

[0077] The image verification code processing device based on sliding trajectory recognition described in this invention specifically includes the following parts:

[0078] The verification code request receiving unit 801 is used to receive verification code request information sent by the user terminal;

[0079] The first information generation unit 802 is used to generate a corresponding original image verification code based on the verification code request information;

[0080] The second information generation and sending unit 803 is used to generate identification information and a solid color background image corresponding to the original image verification code, and return the identification information and the solid color background image to the user terminal;

[0081] The sliding trajectory data acquisition unit 804 is used to acquire the first sliding trajectory data of the user on the solid color background image and the corresponding identification information, and to acquire the corresponding original image verification code based on the identification information;

[0082] The sliding trajectory data processing unit 805 is used to parse the first sliding trajectory data using a sliding trajectory recognition model to determine the first sliding trajectory path; to perform perspective processing on the verification code pixel content in the area covered by the first sliding trajectory path in the original image verification code; and to return the perspective-processed first image verification code to the user terminal.

[0083] The image verification code processing device based on sliding trajectory recognition described in this embodiment of the invention increases the difficulty for computers to brute-force crack image verification codes by enhancing the interaction between users and the system. It accurately identifies the user's sliding trajectory based on the user's operation behavior and sends the corresponding part of the image verification code content multiple times according to the identified sliding trajectory, without requiring the complete image verification code. This increases the difficulty for users to pass the system verification, thereby improving the system's security protection level.

[0084] Accordingly, the present invention also provides a client-side method for processing image CAPTCHAs based on sliding trajectory recognition. For example... Figure 9As shown, this is the second flowchart of the image verification code processing method based on sliding trajectory recognition provided in the embodiment of the present invention.

[0085] Step 901: Send a verification code request to the server and obtain the identification information of the solid color background image and the original image verification code returned by the server.

[0086] Step 902: Identify the user's swiping trajectory on the solid color background image and record the swiping trajectory data.

[0087] Step 903: Send the sliding trajectory data and the corresponding identification information of the original image verification code to the server, obtain the returned perspective-processed image verification code, and display it.

[0088] Corresponding to the image CAPTCHA processing method based on sliding trajectory recognition provided above, this invention also provides an image CAPTCHA processing device based on sliding trajectory recognition. Since the embodiments of this device are similar to the above method embodiments, the description is relatively simple. For relevant details, please refer to the description in the above method embodiment section. The embodiments of the image CAPTCHA processing device based on sliding trajectory recognition described below are merely illustrative. Please refer to... Figure 10 As shown, this is a second schematic diagram of the structure of an image verification code processing device based on sliding trajectory recognition provided in an embodiment of the present invention.

[0089] The verification code request sending unit 1001 is used to send verification code request information to the server and obtain the identification information of the solid color background image and the original image verification code returned by the server.

[0090] The sliding trajectory recognition and recording unit 1002 is used to recognize the sliding trajectory of the user on the solid color background image and record the sliding trajectory data;

[0091] The image verification code acquisition and display unit 1003 is used to send the sliding trajectory data and the corresponding identification information of the original image verification code to the server, obtain the returned perspective-processed image verification code, and display it.

[0092] The image verification code processing method and apparatus based on sliding trajectory recognition described in this invention increases the difficulty of brute-force cracking of image verification codes by enhancing the interaction between the user and the system. It accurately identifies the user's sliding trajectory based on the user's operation behavior and sends the corresponding part of the image verification code content multiple times according to the identified sliding trajectory, without requiring the complete image verification code. This increases the difficulty for the user to pass the system verification, thereby improving the system's security protection level.

[0093] Corresponding to the image verification code processing method based on sliding trajectory recognition provided above, this invention also provides an electronic device. Since the embodiment of this electronic device is similar to the above method embodiment, the description is relatively simple. For relevant details, please refer to the description in the above method embodiment section. The electronic device described below is merely illustrative. Figure 11 The diagram shown is a schematic representation of the physical structure of an electronic device disclosed in an embodiment of the present invention. The electronic device may include a processor 1101, a memory 1102, and a communication bus 1103. The processor 1101 and the memory 1102 communicate with each other via the communication bus 1103 and communicate with external devices via a communication interface 1104. The processor 1101 can call logic instructions in the memory 1102 to execute an image verification code processing method based on sliding trajectory recognition. The method includes: receiving verification code request information sent by a user terminal; generating a corresponding original image verification code based on the verification code request information; generating identification information and a solid color background image corresponding to the original image verification code, and returning the identification information and the solid color background image to the user terminal; acquiring first sliding trajectory data of the user on the solid color background image and the corresponding identification information, and acquiring the corresponding original image verification code based on the identification information; parsing the first sliding trajectory data using a sliding trajectory recognition model to determine the first sliding trajectory path; performing perspective processing on the verification code pixel content in the area covered by the first sliding trajectory path in the original image verification code, and returning the perspective-processed first image verification code to the user terminal. Alternatively, it may include: sending a verification code request to the server and obtaining the identification information of the solid color background image and the original image verification code returned by the server; identifying the user's sliding trajectory on the solid color background image and recording the sliding trajectory data; sending the sliding trajectory data and the corresponding identification information of the original image verification code to the server, obtaining the returned perspective-processed image verification code and displaying it.

[0094] Furthermore, the logical instructions in the aforementioned memory 1102 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0095] On the other hand, embodiments of the present invention also provide a computer program product, the computer program product including a computer program stored on a processor-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer is able to execute the image verification code processing method based on sliding trajectory recognition provided in the above-described method embodiments, the method including: receiving verification code request information sent by a user terminal; generating a corresponding original image verification code based on the verification code request information; generating identification information and a solid color background image corresponding to the original image verification code, and returning the identification information and the solid color background image to the user terminal; obtaining first sliding trajectory data of the user on the solid color background image and the corresponding identification information, and obtaining a corresponding original image verification code based on the identification information; parsing the first sliding trajectory data using a sliding trajectory recognition model to determine a first sliding trajectory path; performing perspective processing on the verification code pixel content in the area covered by the first sliding trajectory path in the original image verification code, and returning the perspective-processed first image verification code to the user terminal. Alternatively, it may include: sending a verification code request to the server and obtaining the identification information of the solid color background image and the original image verification code returned by the server; identifying the user's sliding trajectory on the solid color background image and recording the sliding trajectory data; sending the sliding trajectory data and the corresponding identification information of the original image verification code to the server, obtaining the returned perspective-processed image verification code and displaying it.

[0096] In another aspect, embodiments of the present invention also provide a processor-readable storage medium storing a computer program. When executed by a processor, the computer program implements the image verification code processing method based on sliding trajectory recognition provided in the above embodiments. The method includes: receiving verification code request information sent by a user terminal; generating a corresponding original image verification code based on the verification code request information; generating identification information and a solid color background image corresponding to the original image verification code, and returning the identification information and the solid color background image to the user terminal; obtaining first sliding trajectory data of the user on the solid color background image and the corresponding identification information, and obtaining a corresponding original image verification code based on the identification information; parsing the first sliding trajectory data using a sliding trajectory recognition model to determine a first sliding trajectory path; performing perspective processing on the verification code pixel content in the area covered by the first sliding trajectory path in the original image verification code, and returning the perspective-processed first image verification code to the user terminal. Alternatively, it may include: sending a verification code request to the server and obtaining the identification information of the solid color background image and the original image verification code returned by the server; identifying the user's sliding trajectory on the solid color background image and recording the sliding trajectory data; sending the sliding trajectory data and the corresponding identification information of the original image verification code to the server, obtaining the returned perspective-processed image verification code and displaying it.

[0097] The processor-readable storage medium can be any available medium or data storage device that the processor can access, including but not limited to magnetic memory (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disk (MO)), optical memory (e.g., CD, DVD, BD, HVD), and semiconductor memory (e.g., ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)).

[0098] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0099] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for processing image CAPTCHAs based on sliding trajectory recognition, characterized in that, include: Receive verification code request information sent by the user client; Generate the corresponding original image verification code based on the verification code request information; Generate identification information and a solid color background image corresponding to the original image verification code, and return the identification information and the solid color background image to the user terminal; Obtain the user's first sliding trajectory data on the solid color background image and the corresponding identification information, and obtain the corresponding original image verification code based on the identification information; The sliding trajectory recognition model is used to parse the first sliding trajectory data to determine the first sliding trajectory path; the pixel content of the verification code in the area covered by the first sliding trajectory path in the original image verification code is subjected to perspective processing, and the perspective-processed first image verification code is returned to the user terminal. Obtain the user's second sliding trajectory data on the first image verification code and the corresponding identification information; The sliding trajectory recognition model is used to parse the second sliding trajectory data, determine the second sliding trajectory path, perform perspective processing on the CAPTCHA pixel content in the area covered by the second sliding trajectory path in the original image CAPTCHA, and return the perspective-processed second image CAPTCHA to the user.

2. The image verification code processing method based on sliding trajectory recognition according to claim 1, characterized in that, The identification information is the unique serial number corresponding to the original image verification code.

3. The image verification code processing method based on sliding trajectory recognition according to claim 1, characterized in that, The step of obtaining the user's first swipe trajectory data on the solid color background image specifically includes: Obtain the user's first mouse hover trajectory data on the solid color background image; or, Obtain the user's first touch swipe trajectory data on the solid color background image.

4. The image verification code processing method based on sliding trajectory recognition according to claim 1, characterized in that, Also includes: Cache the original image verification code; The step of generating the identification information corresponding to the original image verification code specifically involves: caching the original image verification code and then generating the identification information corresponding to the original image verification code. The step of obtaining the corresponding original image verification code based on the identification information specifically involves retrieving the corresponding original image verification code from the cache based on the identification information.

5. A method for processing image CAPTCHAs based on sliding trajectory recognition, characterized in that, include: Send a verification code request to the server and obtain the identification information of the solid color background image and the original image verification code returned by the server; Identify the user's swipe trajectory on the solid color background image and record the swipe trajectory data; The sliding trajectory data and the corresponding identification information of the original image verification code are sent to the server, and the returned perspective-processed image verification code is obtained and displayed. The sliding trajectory data includes first sliding trajectory data and second sliding trajectory data; the perspective-processed image verification code includes first image verification code and second image verification code. The server performs the following operations: Obtain the user's first sliding trajectory data on the solid color background image and the corresponding identification information, and obtain the corresponding original image verification code based on the identification information; The sliding trajectory recognition model is used to parse the first sliding trajectory data to determine the first sliding trajectory path; the pixel content of the verification code in the area covered by the first sliding trajectory path in the original image verification code is subjected to perspective processing, and the perspective-processed first image verification code is returned to the user terminal. Obtain the user's second sliding trajectory data on the first image verification code and the corresponding identification information; The sliding trajectory recognition model is used to parse the second sliding trajectory data, determine the second sliding trajectory path, perform perspective processing on the CAPTCHA pixel content in the area covered by the second sliding trajectory path in the original image CAPTCHA, and return the perspective-processed second image CAPTCHA to the user.

6. An image CAPTCHA processing device based on sliding trajectory recognition, characterized in that, include: The verification code request receiving unit is used to receive verification code request information sent by the user terminal. The first information generation unit is used to generate a corresponding original image verification code based on the verification code request information; The second information generation and sending unit is used to generate identification information and a solid color background image corresponding to the original image verification code, and return the identification information and the solid color background image to the user terminal; The sliding trajectory data acquisition unit is used to acquire the first sliding trajectory data of the user on the solid color background image and the corresponding identification information, and to acquire the corresponding original image verification code based on the identification information; The sliding trajectory data processing unit is used to parse the first sliding trajectory data using a sliding trajectory recognition model to determine the first sliding trajectory path; perform perspective processing on the verification code pixel content in the area covered by the first sliding trajectory path in the original image verification code; and return the perspective-processed first image verification code to the user terminal. The sliding trajectory data acquisition unit is further configured to acquire the second sliding trajectory data of the user on the first image verification code and the corresponding identification information; The sliding trajectory data processing unit is further configured to parse the second sliding trajectory data using the sliding trajectory recognition model, determine the second sliding trajectory path, perform perspective processing on the verification code pixel content in the area covered by the second sliding trajectory path in the original image verification code, and return the perspective-processed second image verification code to the user terminal.

7. An image verification code processing device based on sliding trajectory recognition, characterized in that, include: The verification code request sending unit is used to send verification code request information to the server and obtain the identification information of the solid color background image and the original image verification code returned by the server. The sliding trajectory recognition and recording unit is used to recognize the user's sliding trajectory on the solid color background image and record the sliding trajectory data; The image verification code acquisition and display unit is used to send the sliding trajectory data and the corresponding identification information of the original image verification code to the server, obtain the returned perspective-processed image verification code, and display it; the sliding trajectory data includes first sliding trajectory data and second sliding trajectory data; the perspective-processed image verification code includes first image verification code and second image verification code. The server performs the following operations: Obtain the user's first sliding trajectory data on the solid color background image and the corresponding identification information, and obtain the corresponding original image verification code based on the identification information; The sliding trajectory recognition model is used to parse the first sliding trajectory data to determine the first sliding trajectory path; the pixel content of the verification code in the area covered by the first sliding trajectory path in the original image verification code is subjected to perspective processing, and the perspective-processed first image verification code is returned to the user terminal. Obtain the user's second sliding trajectory data on the first image verification code and the corresponding identification information; The sliding trajectory recognition model is used to parse the second sliding trajectory data, determine the second sliding trajectory path, perform perspective processing on the CAPTCHA pixel content in the area covered by the second sliding trajectory path in the original image CAPTCHA, and return the perspective-processed second image CAPTCHA to the user.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the image verification code processing method based on sliding trajectory recognition as described in any one of claims 1-5.

9. A processor-readable storage medium having stored thereon a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the image verification code processing method based on sliding trajectory recognition as described in any one of claims 1-5.