Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flow chart of a method for generating a dynamic verification code picture according to an embodiment of the present invention, where the method includes:
s11: the method comprises the steps of obtaining at least two frames of static verification code pictures, wherein each frame of static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where a verification code is located, the second sub-picture is a sub-picture where a background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, and the first display content and the second display content display the verification code after being played.
The static verification code picture of each frame can be obtained by splicing a first sub-picture and a second sub-picture which are obtained in advance; or, the verification code picture can be obtained by dividing the area to be occupied by the verification code picture and filling corresponding contents; alternatively, the information may be directly generated according to a preset program.
The area occupied by each sub-picture may be regular, for example, referring to fig. 2, the area to be occupied by the captcha picture is divided into 5 rows and 3 columns of sub-areas, and each sub-picture occupies one of the sub-areas. Or,
the area occupied by each sub-picture may be irregular, e.g. see fig. 3, the size of the sub-areas being different.
The position of the first sub-picture may be preset, and when actually set, a specific position value, for example, a specific horizontal and vertical coordinate value, may be set. Or,
it is also possible to set a position interval and then randomly select the position interval, for example, set the interval value of the horizontal and vertical coordinates and randomly select the position interval.
It can be understood that the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture. For example, the larger the number of sub-pictures included in each frame of static verification code picture, the larger the preset position interval may be, that is, the character to be displayed may float in a larger range.
Referring to fig. 4 and 5, taking the character to be displayed as "8" for example, two different position effects are given by randomly choosing the position of the first sub-picture within the position interval.
In addition, in fig. 4 and 5, the sub-picture occupied by "8" is the first sub-picture, and the remaining blank sub-pictures are the second sub-pictures.
Wherein, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In the different frames, it is possible to have,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
For example, referring to fig. 6, in the same frame, taking the first display content as an example, the number "1" may be in some sub-pictures, and the letter "L" may be in other sub-pictures (for easier distinction, L is used to replace L in fig. 6); alternatively, the first display content is all gears, but the number of gears in different positions is different, for example, gears with three teeth in some positions, gears with four teeth in other positions, and the like.
In addition, the display content in different frames may be the same or different. Still taking the first display content as an example, the number "1" may be in one frame and the letter "L" (lower case L) may be in another frame.
In this embodiment, taking the example that the first display content and the second display content are both numbers "1", since the first display content and the second display content are the same in the same frame, the machine cannot recognize the verification code even if capturing a frame of picture.
S12: and playing the static verification code picture to obtain a dynamic verification code picture, wherein a first dynamic content is obtained according to the first display content during playing, a second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
The static verification code picture can be played frame by frame to obtain a dynamic verification code picture.
Through playing, dynamic display content can be obtained, the first dynamic content and the second dynamic content have different dynamic information, and the verification code which can be identified by human eyes is obtained.
For example, referring to fig. 7, "1" in the first display content is rotated clockwise with the center point, and "1" in the second display content is rotated counterclockwise with the center point.
Because the rotation directions of the two are different, human eyes can distinguish the two, and the displayed character is '8'. However, the machine can only capture static content, that is, when the machine captures a static verification code, the machine sees all the content of "1" and cannot see that the displayed character is "8", thereby reducing the success rate of automatic recognition of the machine.
It is to be understood that the dynamic information is not limited to direction, but may be different in frequency and/or different in motion. For example, the first display content and the second display content are both rotated clockwise, but the frequency of rotation is different; and/or the first display content is panned and the second display content is rotated.
In addition, the static verification code picture further comprises a third sub-picture, the third sub-picture is a sub-picture where the interference point is located, the third sub-picture comprises third display content, third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
Optionally, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
In the embodiment, the sub-picture where the verification code is located and the sub-picture where the background is located are distinguished, the sub-picture where the verification code is located and the sub-picture where the background is located have different motion information to realize the identification of the verification code by human eyes, in addition, the verification code is displayed only after the first display content in the sub-picture where the verification code is located and the second display content in the sub-picture where the background is located are played frame by frame, and the verification code cannot be identified when a single frame is used, so that the success rate of automatic identification of a machine can be reduced, the risk of cracking the verification code is reduced, and the network safety is improved. In addition, compared with the methods of blurring, warping, adding noise and the like generally used by static verification code pictures, the present embodiment may not perform the processing of blurring, warping, adding noise and the like, and may improve the user experience.
Fig. 8 is a schematic flowchart of another method for generating a dynamic verification code picture according to an embodiment of the present invention, where the embodiment takes generating multiple dynamic pictures as an example, the embodiment includes:
s81: and obtaining a first frame of static verification code picture.
The composition of each frame of static verification code picture can be referred to the embodiment shown in fig. 1.
S82, obtaining a second frame of static verification code picture, wherein the first display content has different states in the second frame of static verification code picture and the first frame of static verification code picture.
A specific process of obtaining a frame of static verification code picture may refer to the embodiment shown in fig. 1.
The having different states, including:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In this embodiment, taking translation as an example, the position of the first sub-picture in the first frame of static verification code picture may be set to differ by a preset step length relative to the position of the first sub-picture in the second frame, as shown in fig. 9, to obtain two frames of static verification code pictures, where the difference between the positions of the verification codes in the two frames of static verification code pictures is set to be a set step length.
S83: and sequentially playing the first frame of static verification code picture and the second frame of static verification code picture to obtain the dynamic verification code picture.
According to the embodiment, the verification code has different states in different frames through processing, so that the machine identification success rate can be further reduced, the risk of the verification code being cracked is reduced, and the network security is improved.
Fig. 10 is a schematic structural diagram of a device for generating a dynamic verification code picture according to another embodiment of the present invention, where thedevice 100 includes an obtainingmodule 101 and a combiningmodule 102.
The obtainingmodule 101 is configured to obtain at least two frames of static verification code pictures, where each frame of static verification code picture includes a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where a verification code is located, the second sub-picture is a sub-picture where a background is located, the first sub-picture includes first display content, the second sub-picture includes second display content, and the first display content and the second display content display the verification code after being played; the mergingmodule 102 is configured to play the static verification code picture to obtain a dynamic verification code picture, where a first dynamic content is obtained according to the first display content during playing, a second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
In one embodiment, the dynamic information includes at least one of:
direction of motion, frequency of motion, mode of motion.
In another embodiment, the first frame is, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In another embodiment, the frame is divided, in different frames,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
In another embodiment, the position of the first sub-picture is determined as follows:
and randomly selecting the position of the first sub-picture within a preset position interval.
In another embodiment, the preset position intervals are the same in different frames; or,
in different frames, the preset position intervals are different, so that the verification code has different states in different frames.
In another embodiment, the having different states includes:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In another embodiment, the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture.
In another embodiment, the static verification code picture further includes a third sub-picture, where the third sub-picture is a sub-picture where the interference point is located, the third sub-picture includes third display content, a third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
In another embodiment, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
The specific contents of each parameter, process, etc. in the device for generating a dynamic verification code picture may refer to the above method for generating a dynamic verification code picture, and are not described herein again.
In the embodiment, the sub-picture where the verification code is located and the sub-picture where the background is located are distinguished, the sub-picture where the verification code is located and the sub-picture where the background is located have different motion information, so that the verification code is recognized by human eyes, and the verification code cannot be recognized when a single frame is displayed only after the first display content in the sub-picture where the verification code is located and the second display content in the sub-picture where the background is located are played frame by frame, so that the verification code cannot be recognized even if the machine captures a frame of picture, the success rate of automatic recognition of the machine can be reduced, the risk of cracking of the verification code is reduced, and the network security is improved. In addition, compared with the methods of blurring, warping, adding noise and the like generally used by static verification code pictures, the present embodiment may not perform the processing of blurring, warping, adding noise and the like, and may improve the user experience.
Fig. 11 is a schematic flowchart of a verification method for a dynamic verification code picture according to another embodiment of the present invention, where the method includes:
s111: and displaying the dynamic verification code picture.
The dynamic verification code picture is obtained by playing the static verification code picture, wherein each frame of the static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where the verification code is located, the second sub-picture is a sub-picture where the background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, the verification code is displayed after the first display content and the second display content are played, the first dynamic content is obtained according to the first display content during playing, the second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
S112: receiving user input such as numbers, letters, underlines, and the like;
s113: and verifying the user input according to the dynamic verification code picture.
If the input is correct, the user is given the right of legal login, if the input is incorrect, the verification code is refreshed, another verification code picture is displayed, the user is prompted to input again until the correct verification code is input, and the user is given the right of legal login.
In one embodiment, the dynamic information includes at least one of:
direction of motion, frequency of motion, mode of motion.
In another embodiment, the first frame is, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In another embodiment, the frame is divided, in different frames,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
In another embodiment, the position of the first sub-picture is determined as follows:
and randomly selecting the position of the first sub-picture within a preset position interval.
In another embodiment, the preset position intervals are the same in different frames; or,
in different frames, the preset position intervals are different, so that the verification code has different states in different frames.
In another embodiment, the having different states includes:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In another embodiment, the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture.
In another embodiment, the static verification code picture further includes a third sub-picture, where the third sub-picture is a sub-picture where the interference point is located, the third sub-picture includes third display content, a third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
In another embodiment, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
The specific contents of each parameter, process, etc. in the device for generating a dynamic verification code picture may refer to the above method for generating a dynamic verification code picture, and are not described herein again.
The specific generation process of the dynamic verification code picture adopted in the verification method may refer to the generation process of the dynamic verification code picture, and is not described herein again.
According to the embodiment, the dynamic verification code picture is adopted during verification, the verification code can be displayed only after the display contents in the static verification code picture forming the dynamic verification code picture are played frame by frame, the verification code cannot be acquired by a single frame, the machine identification success rate can be reduced, the risk of cracking the verification code is reduced, and the network security is improved.
Fig. 12 is a schematic structural diagram of an authentication apparatus according to another embodiment of the present invention, where theapparatus 120 includes adisplay module 121, a receivingmodule 122, and anauthentication module 123.
Thedisplay module 121 is configured to display a dynamic verification code picture.
The dynamic verification code picture is obtained by playing the static verification code picture, wherein each frame of the static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where the verification code is located, the second sub-picture is a sub-picture where the background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, the verification code is displayed after the first display content and the second display content are played, the first dynamic content is obtained according to the first display content during playing, the second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
The receivingmodule 122 is used for receiving user input.
Theverification module 123 is configured to verify the user input according to the dynamic verification code picture.
In one embodiment, the dynamic information includes at least one of:
direction of motion, frequency of motion, mode of motion.
In another embodiment, the first frame is, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In another embodiment, the frame is divided, in different frames,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
In another embodiment, the position of the first sub-picture is determined as follows:
and randomly selecting the position of the first sub-picture within a preset position interval.
In another embodiment, the preset position intervals are the same in different frames; or,
in different frames, the preset position intervals are different, so that the verification code has different states in different frames.
In another embodiment, the having different states includes:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In another embodiment, the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture.
In another embodiment, the static verification code picture further includes a third sub-picture, where the third sub-picture is a sub-picture where the interference point is located, the third sub-picture includes third display content, a third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
In another embodiment, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
The generation of the dynamic verification code picture adopted in the verification device may refer to the above-mentioned generation method of the dynamic verification code picture, and is not described herein again.
According to the embodiment, the dynamic verification code picture is adopted during verification, the verification code can be displayed only after the display contents in the static verification code picture forming the dynamic verification code picture are played frame by frame, the verification code cannot be acquired by a single frame, the machine identification success rate can be reduced, the risk of cracking the verification code is reduced, and the network security is improved.
The embodiment of the invention also provides client equipment which comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the apparatus; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s11': the method comprises the steps of obtaining at least two frames of static verification code pictures, wherein each frame of static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where a verification code is located, the second sub-picture is a sub-picture where a background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, and the first display content and the second display content display the verification code after being played.
The static verification code picture of each frame can be obtained by splicing a first sub-picture and a second sub-picture which are obtained in advance; or, the verification code picture can be obtained by dividing the area to be occupied by the verification code picture and filling corresponding contents; alternatively, the information may be directly generated according to a preset program.
The area occupied by each sub-picture may be regular, for example, referring to fig. 2, the area to be occupied by the captcha picture is divided into 5 rows and 3 columns of sub-areas, and each sub-picture occupies one of the sub-areas. Or,
the area occupied by each sub-picture may be irregular, e.g. see fig. 3, the size of the sub-areas being different.
The position of the first sub-picture may be preset, and when actually set, a specific position value, for example, a specific horizontal and vertical coordinate value, may be set. Or,
it is also possible to set a position interval and then randomly select the position interval, for example, set the interval value of the horizontal and vertical coordinates and randomly select the position interval.
It can be understood that the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture. For example, the larger the number of sub-pictures included in each frame of static verification code picture, the larger the preset position interval may be, that is, the character to be displayed may float in a larger range.
Referring to fig. 4 and 5, taking the character to be displayed as "8" for example, two different position effects are given by randomly choosing the position of the first sub-picture within the position interval.
In addition, in fig. 4 and 5, the sub-picture occupied by "8" is the first sub-picture, and the remaining blank sub-pictures are the second sub-pictures.
Wherein, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In the different frames, it is possible to have,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
For example, referring to fig. 6, in the same frame, taking the first display content as an example, the number "1" may be in some sub-pictures, and the letter "L" may be in other sub-pictures (for easier distinction, L is used to replace L in fig. 6); alternatively, the first display content is all gears, but the number of gears in different positions is different, for example, gears with three teeth in some positions, gears with four teeth in other positions, and the like.
In addition, the display content in different frames may be the same or different. Still taking the first display content as an example, the number "1" may be in one frame and the letter "L" (lower case L) may be in another frame.
In this embodiment, taking the example that the first display content and the second display content are both numbers "1", since the first display content and the second display content are the same in the same frame, the machine cannot recognize the verification code even if capturing a frame of picture.
S12': and playing the static verification code picture to obtain a dynamic verification code picture, wherein a first dynamic content is obtained according to the first display content during playing, a second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
The static verification code picture can be played frame by frame to obtain the dynamic verification code picture.
Dynamic display content can be obtained by playing frame by frame, the first dynamic content and the second dynamic content have different dynamic information, and the verification code which can be identified by human eyes is obtained.
For example, referring to fig. 7, "1" in the first display content is rotated clockwise with the center point, and "1" in the second display content is rotated counterclockwise with the center point.
Because the rotation directions of the two are different, human eyes can distinguish the two, and the displayed character is '8'. However, the machine can only capture static content, that is, when the machine captures a static verification code, the machine sees all the content of "1" and cannot see that the displayed character is "8", thereby reducing the success rate of automatic recognition of the machine.
It is to be understood that the dynamic information is not limited to direction, but may be different in frequency and/or different in motion. For example, the first display content and the second display content are both rotated clockwise, but the frequency of rotation is different; and/or the first display content is panned and the second display content is rotated.
In addition, the static verification code picture further comprises a third sub-picture, the third sub-picture is a sub-picture where the interference point is located, the third sub-picture comprises third display content, third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
Optionally, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
In the embodiment, the sub-picture where the verification code is located and the sub-picture where the background is located are distinguished, the sub-picture where the verification code is located and the sub-picture where the background is located have different motion information to realize the identification of the verification code by human eyes, in addition, the verification code is displayed only after the first display content in the sub-picture where the verification code is located and the second display content in the sub-picture where the background is located are played frame by frame, and the verification code cannot be identified when a single frame is used, so that the success rate of automatic identification of a machine can be reduced, the risk of cracking the verification code is reduced, and the network safety is improved. In addition, compared with the methods of blurring, warping, adding noise and the like generally used by static verification code pictures, the present embodiment may not perform the processing of blurring, warping, adding noise and the like, and may improve the user experience.
Fig. 8 is a schematic flowchart of another method for generating a dynamic verification code picture according to an embodiment of the present invention, where the embodiment takes generating multiple dynamic pictures as an example, the embodiment includes:
s81': and obtaining a first frame of static verification code picture.
S82', a second frame of static verification code picture is obtained, wherein the first display content has different states in the second frame of static verification code picture and the first frame of static verification code picture.
A specific process of obtaining a frame of static verification code picture may refer to the embodiment shown in fig. 1.
The having different states, including:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In this embodiment, taking translation as an example, the position of the first sub-picture in the first frame of static verification code picture may be set to differ by a preset step length relative to the position of the first sub-picture in the second frame, as shown in fig. 9, to obtain two frames of static verification code pictures, where the difference between the positions of the verification codes in the two frames of static verification code pictures is set to be a set step length.
S83': and sequentially playing the first frame of static verification code picture and the second frame of static verification code picture to obtain the dynamic verification code picture.
According to the embodiment, the verification code has different states in different frames through processing, so that the machine identification success rate can be further reduced, the risk of the verification code being cracked is reduced, and the network security is improved.
The embodiment of the invention also provides client equipment which comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the apparatus; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s111': and displaying the dynamic verification code picture.
The dynamic verification code picture is obtained by playing the static verification code picture frame by frame, wherein each frame of the static verification code picture comprises a first sub-picture and a second sub-picture, the first sub-picture is a sub-picture where the verification code is located, the second sub-picture is a sub-picture where the background is located, the first sub-picture comprises first display content, the second sub-picture comprises second display content, the first display content and the second display content display the verification code after being played frame by frame, the first dynamic content is obtained according to the first display content during the playing frame by frame, the second dynamic content is obtained according to the second display content, and the first dynamic content and the second dynamic content have different dynamic information.
S112': receiving user input such as numbers, letters, underlines, and the like;
s113': and verifying the user input according to the dynamic verification code picture.
If the input is correct, the user is given the right of legal login, if the input is incorrect, the verification code is refreshed, another verification code picture is displayed, the user is prompted to input again until the correct verification code is input, and the user is given the right of legal login.
In one embodiment, the dynamic information includes at least one of:
direction of motion, frequency of motion, mode of motion.
In another embodiment, the first frame is, in the same frame,
the first display content is the same at different positions, the second display content is the same at different positions, and the first display content and the second display content are the same; or,
the first display content is different at different locations; or,
the second display content is different at different locations.
In another embodiment, the frame is divided, in different frames,
the first display contents are the same or different; and/or the presence of a gas in the gas,
the second display contents are the same or different.
In another embodiment, the position of the first sub-picture is determined as follows:
and randomly selecting the position of the first sub-picture within a preset position interval.
In another embodiment, the preset position intervals are the same in different frames; or,
in different frames, the preset position intervals are different, so that the verification code has different states in different frames.
In another embodiment, the having different states includes:
translation of the verification code occurs; or,
stretching the verification code; or,
the verification code appears zoomed; or,
the authentication code is distorted.
In another embodiment, the preset position interval has a positive correlation with the sum of the numbers of the first sub-picture and the second sub-picture.
In another embodiment, the static verification code picture further includes a third sub-picture, where the third sub-picture is a sub-picture where the interference point is located, the third sub-picture includes third display content, a third dynamic content is obtained according to the third display content when the third sub-picture is played frame by frame, and the third dynamic content and the first dynamic content have the same dynamic information.
In another embodiment, the third display content is the same or different in the same frame; or,
the third display content is the same or different in different frames; or,
the third display content is the same as or different from the first display content and/or the second display content in the same frame.
The specific contents of each parameter, process, etc. in the device for generating a dynamic verification code picture may refer to the above method for generating a dynamic verification code picture, and are not described herein again.
The specific generation process of the dynamic verification code picture adopted in the verification method may refer to the generation process of the dynamic verification code picture, and is not described herein again.
According to the embodiment, the dynamic verification code picture is adopted during verification, the verification code can be displayed only after the display contents in the static verification code picture forming the dynamic verification code picture are played frame by frame, the verification code cannot be acquired by a single frame, the machine identification success rate can be reduced, the risk of cracking the verification code is reduced, and the network security is improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.