CN111563941B - Picture verification code generation method, verification method, device and related equipment - Google Patents

Picture verification code generation method, verification method, device and related equipment Download PDF

Info

Publication number
CN111563941B
CN111563941B CN202010390154.1A CN202010390154A CN111563941B CN 111563941 B CN111563941 B CN 111563941B CN 202010390154 A CN202010390154 A CN 202010390154A CN 111563941 B CN111563941 B CN 111563941B
Authority
CN
China
Prior art keywords
picture
sliding
verification
target area
verification code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010390154.1A
Other languages
Chinese (zh)
Other versions
CN111563941A (en
Inventor
范晓锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lazas Network Technology Shanghai Co Ltd
Original Assignee
Lazas Network Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lazas Network Technology Shanghai Co Ltd filed Critical Lazas Network Technology Shanghai Co Ltd
Priority to CN202010390154.1A priority Critical patent/CN111563941B/en
Publication of CN111563941A publication Critical patent/CN111563941A/en
Application granted granted Critical
Publication of CN111563941B publication Critical patent/CN111563941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention provides a picture verification code generation method, a picture verification code generation device and related equipment, which comprise the following steps: acquiring a reference picture of a first knowledge domain; selecting a target area from the reference picture, and extracting picture content of the target area as a sliding picture; acquiring a filling picture of a second knowledge domain, wherein the first knowledge domain is different from the second knowledge domain; covering the filling picture at least in a target area of the reference picture to obtain a background picture; the background picture and the sliding picture form the picture verification code. The embodiment of the invention can increase the difficulty of identifying the target area by the machine and improve the reliability of the picture verification code.

Description

Picture verification code generation method, verification method, device and related equipment
Technical Field
The embodiment of the invention relates to the technical field of verification, in particular to a picture verification code generation method, a picture verification code generation device and related equipment.
Background
The picture verification code technology is a part of modern network security technology and is used for performing man-machine verification on an access object so as to prevent a machine from performing large-flow malicious access. The picture sliding verification code is a mainstream picture verification code, mainly comprising: a background picture and a slide picture for sliding located above the background picture; when the picture sliding verification code is used for verification, the sliding picture is mainly slid to a target area of the background picture.
At present, when a picture sliding verification code is generated, the picture content of a target area in a background picture is mainly scratched to obtain a sliding picture, the target area is very easy to identify by a machine in the mode, and therefore the machine is very easy to disguise to slide the sliding picture to the target area, and human-computer verification is difficult to effectively realize.
Therefore, the reliability of the currently generated picture sliding verification code is low, so how to provide an improved picture verification code generation scheme to increase the difficulty of machine identification of the target area and improve the reliability of the picture verification code becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, the embodiment of the invention provides a method, a device and a related device for generating a picture verification code, so as to increase the difficulty of identifying a target area by a machine and improve the reliability of the picture verification code.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for generating a picture verification code, including:
acquiring a reference picture of a first knowledge domain;
selecting a target area from the reference picture, and extracting picture content of the target area as a sliding picture;
Acquiring a filling picture of a second knowledge domain, wherein the first knowledge domain is different from the second knowledge domain;
covering the filling picture at least in a target area of the reference picture to obtain a background picture; the background picture and the sliding picture form the picture verification code.
With reference to the first aspect, in a first implementation manner of the first aspect, the extracting, as a sliding picture, the picture content of the target area includes:
and copying the picture content of the target area to obtain a sliding picture.
With reference to the first aspect, in a second implementation manner of the embodiment of the present invention, the covering the filling picture at least in the target area of the reference picture, to obtain a background picture includes:
and covering the filling picture on the target area of the reference picture, and carrying out boundary blurring processing on the boundary of the filling picture corresponding to the reference picture so as to obtain a background picture.
In a second aspect, an embodiment of the present invention provides a verification method, including:
acquiring a picture verification code, wherein the picture verification code comprises a background picture and a sliding picture; the sliding picture is picture content extracted from a target area of a reference picture of a first knowledge domain, and the background picture comprises the reference picture and a filling picture of a second knowledge domain covered by the target area of the reference picture;
Displaying the background picture and the sliding picture positioned above the background picture, and displaying prompt information, wherein the prompt information is used for prompting sliding of the sliding picture so as to restore the complete picture content of the background picture;
detecting a sliding instruction of the sliding picture, and sliding the sliding picture;
determining sliding data of the sliding picture when an instruction for releasing sliding is detected;
and sending a verification request to a server at least according to the sliding data.
With reference to the second aspect, in a first implementation manner of the embodiment of the present invention, the determining the sliding data of the sliding picture includes:
and determining the position of the sliding picture and the track point corresponding to the sliding picture sliding process when the sliding releasing instruction is detected.
In a third aspect, an embodiment of the present invention provides a device for generating a picture verification code, including:
the first acquisition module is used for acquiring a reference picture of the first knowledge domain;
the selection and extraction module is used for selecting a target area from the reference picture and extracting the picture content of the target area as a sliding picture;
the second acquisition module is used for acquiring a filling picture of a second knowledge domain, and the first knowledge domain is different from the second knowledge domain;
The background picture obtaining module is used for covering the filling picture at least in the target area of the reference picture to obtain a background picture; the background picture and the sliding picture form the picture verification code.
In a fourth aspect, an embodiment of the present invention provides an authentication apparatus, including:
the picture verification code acquisition module is used for acquiring a picture verification code, wherein the picture verification code comprises a background picture and a sliding picture; the sliding picture is picture content extracted from a target area of a reference picture of a first knowledge domain, and the background picture comprises the reference picture and a filling picture of a second knowledge domain covered by the target area of the reference picture;
the picture verification code display module is used for displaying the background picture and the sliding picture positioned above the background picture and displaying prompt information, wherein the prompt information is used for prompting sliding of the sliding picture;
the sliding detection module is used for detecting a sliding instruction of the sliding picture and sliding the sliding picture;
the sliding data determining module is used for determining sliding data of the sliding picture when an instruction for releasing sliding is detected;
and the request sending module is used for sending a verification request to the server at least according to the sliding data.
In a fifth aspect, an embodiment of the present invention provides a server, including: at least one memory and at least one processor; the memory stores one or more computer-executable instructions that the processor invokes to perform the picture verification code generation method described above.
In a sixth aspect, an embodiment of the present invention provides a terminal, including: at least one memory and at least one processor; the memory stores one or more computer-executable instructions that the processor invokes to perform the verification method described above.
In a seventh aspect, embodiments of the present invention provide a storage medium storing one or more computer-executable instructions for performing a picture verification code generation method as described above, or for performing a verification method as described above.
According to the picture verification code generation method provided by the embodiment of the invention, the reference picture of the first knowledge domain can be obtained, the target region is selected from the reference picture, and the picture content of the target region is extracted as a sliding picture; acquiring a filling picture of a second knowledge domain, wherein the first knowledge domain is different from the second knowledge domain; and covering the filling picture at least in a target area of the reference picture to obtain a background picture, and further forming the picture verification code by the background picture and the sliding picture.
It can be seen that the picture verification code generated by the embodiment of the invention comprises a background picture and a sliding picture, wherein the embodiment of the invention is that at least in a target area of a reference picture of a first knowledge domain, a filling picture of a second knowledge domain is covered to obtain the background picture, and the sliding picture is picture content extracted from the target area of the reference picture of the first knowledge domain; because the first knowledge domain is different from the second knowledge domain, a user can understand that the sliding picture is the original picture content of the target area in the background picture from the knowledge angle, so that the user can understand and identify the target area to which the sliding picture in the background picture should slide from the knowledge angle, and the convenient use of the picture verification code is realized; meanwhile, the filling picture is covered at least on the target area of the reference picture, so that the filling picture can shield the target area, and the difficulty of identifying the target area by a machine is increased. Therefore, the embodiment of the invention can realize the generation of the picture verification code and improve the reliability of the generated picture verification code under the condition that the difficulty of identifying the target area by the machine is improved and the user can understand the position of the target area in the background picture from the knowledge angle.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a diagram illustrating a prior art picture verification code;
FIG. 2 is a flowchart of a method for generating a picture verification code according to an embodiment of the present invention;
fig. 3 is an alternative exemplary diagram of a sliding picture according to an embodiment of the present invention;
fig. 4 is another alternative exemplary diagram of a sliding picture according to an embodiment of the present invention;
FIG. 5 is an alternative schematic view of a sliding picture covering a target area according to an embodiment of the present invention
FIG. 6 is an exemplary diagram of obtaining a fill picture of a second knowledge domain, provided by an embodiment of the invention;
FIG. 7 is a flow chart of the blurring process according to an embodiment of the present invention;
fig. 8 is an exemplary diagram of a signaling flow of a method for generating a picture verification code according to an embodiment of the present invention;
FIG. 9 is an alternative flowchart of a verification method provided by an embodiment of the present invention;
FIG. 10 is a further signaling flow diagram of a verification method provided by an embodiment of the present invention;
FIG. 11 is an optional block diagram of a device for generating a picture verification code according to an embodiment of the present invention;
fig. 12 is another optional block diagram of a device for generating a picture verification code according to an embodiment of the present invention;
fig. 13 is a hardware structure implementation diagram of a server according to an embodiment of the present invention;
FIG. 14 is an alternative block diagram of a verification device provided in an embodiment of the invention;
FIG. 15 is another alternative block diagram of a verification device provided in an embodiment of the present invention;
fig. 16 is a further alternative block diagram of a verification device provided in an embodiment of the invention.
Detailed Description
As known from the background technology, in the existing picture sliding verification code generation scheme, the picture content of a target area in a background picture is generally scratched, and the scratched picture content is used as a sliding picture; when verifying based on the picture sliding verification code, the sliding picture can be displayed at a random position except for the target area on the background picture in a superimposed manner, if the sliding picture is slid to the target area of the background picture, the verification is passed, otherwise, the verification is not passed;
for example, as shown in fig. 1, when the picture content of the target area 001 in the background picture 002 is scratched out as the sliding picture 003, there will be an obvious edge between the target area 001 of the scratched picture content and the non-target area of the background picture 002, where the obvious edge may be an edge with an obvious regular shape of the target area 001 (as shown in fig. 1, the target area 001 is a regular shape, and the non-target area of the background picture 002 is an edge with a regular shape), and there may be an obvious boundary between the pixels of the target area 001 and the pixels of the non-target area (as shown in fig. 1, the pixel change between the edge pixels of the target area 001 and the pixels of the non-target area is obvious), which makes it very easy for a machine to detect the target area 001 from the background picture 002; while in verification, the machine will be very prone to disguise the operation of sliding the sliding picture 003 to the target area 001, making human-machine verification difficult to achieve effectively. In the example of fig. 1, if the user operates the sliding picture 003, the user may implement the sliding of the sliding picture 003 by operating the slider 005 in the sliding bar 004.
In summary, the target area of the background picture in the picture sliding verification code generated in the prior art is very easy to be identified by a machine, so that the reliability of the picture sliding verification code is low. Therefore, the embodiment of the invention provides an improved picture verification code generation scheme so as to increase the difficulty of machine identification of the target area and improve the reliability of the picture verification code.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In an optional implementation, an optional flow of the method for generating the picture verification code provided by the embodiment of the invention may be shown in fig. 2, and the flow may be executed by a server; optionally, the server may be a service device that interacts with the terminal to implement man-machine verification, where before the terminal displays the picture verification code, the server may generate the picture verification code based on the picture verification code generation method provided by the embodiment of the present invention, so that the server may send the generated picture verification code to the terminal, so that the terminal displays the picture verification code;
In a possible example, the server may be a server corresponding to a page that the terminal requests to access, for example, the server may be a service device that provides one or more specific services, and when the terminal requests to access the page of the service, the server may incorporate man-machine verification in the process of the terminal accessing the page to distinguish whether the access is performed by a human operation terminal or a machine control terminal.
Referring to fig. 2, the method for generating the picture verification code according to the embodiment of the present invention may include:
and S1, acquiring a reference picture of the first knowledge domain.
One knowledge domain refers to the knowledge range of a certain knowledge branch in the discipline, and different knowledge domains correspond to the knowledge ranges of different knowledge branches. Optionally, in the embodiment of the present invention, a plurality of knowledge domain photo libraries may be configured in advance, where knowledge branches corresponding to the photo expression content in the knowledge domain photo libraries are different, for example, the content types of the photo expression content in the knowledge domain photo libraries are different, and for example, in the case of setting the knowledge domain photo libraries of different knowledge domains such as daily necessities, animals, and plants, the content types of the photo expression content in the knowledge domain photo libraries of the daily necessities are daily necessities, and the content types of the photo expression content in the knowledge domain photo libraries of the animals are animals.
The first knowledge domain may be any knowledge domain of a plurality of knowledge domains, and in an alternative implementation, the embodiment of the present invention may configure a picture library of the first knowledge domain in advance, so as to obtain a reference picture of the first knowledge domain from the picture library of the first knowledge domain, for example, randomly obtain the reference picture of the first knowledge domain from the picture library of the first knowledge domain. In one example, assuming that the first knowledge domain is an animal knowledge domain, the picture of the first knowledge domain may be an animal picture, for example, the reference picture of the first knowledge domain may be an animal picture randomly selected from an animal picture library.
In the embodiment of the invention, the reference picture is used as a basic picture for generating the picture verification code, and the sliding picture and the background picture in the picture verification code can be generated based on the reference picture.
And S2, selecting a target area from the reference picture, and extracting the picture content of the target area as a sliding picture.
After the reference picture is acquired, the server may select a target area from the reference picture, and then extract the picture content of the target area, thereby taking the extracted picture content as a sliding picture. In an alternative implementation, the target area may be an area randomly selected in the reference picture, for example, the area position and the area shape of the target area are randomly selected, so that the embodiment of the invention can determine the target area from the reference picture based on the randomly selected area position and the randomly selected area shape in the reference picture; in a possible other implementation, the embodiment of the present invention may also select the target area from the reference picture based on the set rule, for example, set the area of the target area, and randomly select the target area having the area in the reference picture.
An optional implementation manner of extracting the picture content of the target area as the sliding picture in the embodiment of the present invention may be to copy the picture content in the target area to obtain the sliding picture; after selecting a target area, copying the picture content of the target area in the reference picture, thereby copying the picture content of the obtained target area as a sliding picture; obtaining a sliding picture based on the mode, and reserving the picture content of a target area in the reference picture; for example, as shown in fig. 3, the dashed area represents the target area 11, the sliding picture 13 is obtained after copying the picture content of the target area 11 in the reference picture 12, and the reference picture 12 retains the picture content of the target area 11.
In other optional implementation manners of obtaining the sliding picture, the embodiment of the invention can pick up the picture content of the target area in the reference picture (for example, pick up the picture content in the target area in a mode of picking up the picture), so that the picked up picture content of the target area is used as the sliding picture; obtaining a sliding picture based on the mode, wherein the picture content of a target area in the reference picture is not reserved; for example, as shown in fig. 4, the dashed area represents the target area 11, and after the picture content of the target area 11 in the reference picture 12 is scratched, the sliding picture 13 can be obtained, and the picture content of the target area of the reference picture 12 is not retained.
Of course, the above-mentioned implementation manner of obtaining the sliding picture is only optional, and other possible implementation manners may also be supported by the embodiment of the present invention, so long as the picture content of the target area can be used as the sliding picture.
It can be understood that, since the reference picture belongs to the first knowledge domain, the picture content expressed by the sliding picture obtained based on the reference picture is a part of the content of the reference picture of the first knowledge domain; the user can understand the relationship between the slide picture and the reference picture based on knowledge, i.e., the user can understand from a knowledge perspective that the slide picture is the picture content in the target area of the reference picture.
And S3, acquiring a filling picture of a second knowledge domain, wherein the first knowledge domain is different from the second knowledge domain.
The second knowledge domain may be a plurality of knowledge domains configured in advance, which are different from the first knowledge domain, and in an optional implementation, the embodiment of the present invention may preset a picture library of the second knowledge domain, so as to obtain a filling picture of the second knowledge domain from the picture library of the second knowledge domain, e.g. randomly select the filling picture from the picture library of the second knowledge domain.
It should be noted that, the first knowledge domain is different from the second knowledge domain, for example, the first knowledge domain belongs to an animal knowledge domain, and the second knowledge domain may be a knowledge domain other than the animal knowledge domain, for example, the first knowledge domain is an animal knowledge domain, and the second knowledge domain is a plant knowledge domain.
Step S4, at least covering the filling picture in a target area of the reference picture to obtain a background picture; the background picture and the sliding picture form the picture verification code.
After the filling picture is acquired, the filling picture is used for covering the target area of the reference picture and shielding the content of the target area in the reference picture, and in an optional implementation, the filling picture can be overlapped and displayed in the target area of the reference picture to cover the target area. For example, as shown in fig. 5, because the first knowledge domain is different from the second knowledge domain, assuming that the reference picture of the first knowledge domain is the panda head portrait picture shown in fig. 5 (belonging to the animal knowledge domain), and the filling picture of the second knowledge domain is the flowerpot picture (belonging to the plant knowledge domain), after extracting the picture content of the target area in the panda head portrait picture, the flowerpot picture can be covered to the target area of the panda head portrait picture after obtaining the sliding picture; it will be appreciated that based on the knowledge understanding of the user, in the example of fig. 5, the user may understand that the sliding picture should be the original picture content of the area where the flowerpot picture is located.
In an alternative implementation, the picture area of the filling picture may be not greater than the area of the target area, so that the filling picture can be completely embedded in the target area to achieve coverage of the target area. In another optional implementation manner, the picture area of the filling picture may be slightly larger than the area of the target area, so as to cover the target area; the picture area of the filled picture is slightly larger than the area of the target region, for example: the area of the filling picture is larger than the area of the target area, but the area proportion of the filling picture exceeding the target area is smaller than a preset proportion, for example, 50%, which can be set according to practical situations, and the embodiment of the invention does not limit.
In an optional implementation of the embodiment of the present invention, the sliding picture may be different from the shape of the filling picture, for example, when the shape of the sliding picture is trapezoidal, the shape of the filling picture may be square; in other optional implementations of the embodiments of the present invention, the sliding picture may also have the same shape as the filling picture, for example, the shape of the sliding picture and the shape of the filling picture are both square.
According to the embodiment of the invention, the filling picture can be covered at least on the target area of the reference picture to obtain the background picture, and the difficulty of identifying the target area by the machine can be increased because the filling picture shields the target area.
The background picture and the sliding picture obtained by the embodiment of the invention can form the picture verification code generated by the embodiment of the invention.
It can be understood that, because the filling picture in the background picture belongs to the second knowledge domain, and the reference picture in the background picture belongs to the first knowledge domain, based on the difference between the first knowledge domain and the second knowledge domain, the user can obviously understand that the filling picture has an essential difference with the picture content expressed by the reference picture from the knowledge angle, so that the user can understand the relationship among the filling picture, the background picture and the sliding picture from the knowledge angle, and after the background picture and the sliding picture are displayed by the terminal, the user can understand the target area (namely the area where the filling picture in the background picture is located) to which the sliding picture should slide from the knowledge angle; meanwhile, as the filling picture is at least covered on the target area of the reference picture, the filling picture can shield the target area, and the difficulty of identifying the target area by a machine is increased; therefore, the embodiment of the invention can realize the generation of the picture verification code and improve the reliability of the generated picture verification code under the condition that the difficulty of identifying the target area by the machine is improved and the user can understand the position of the target area in the background picture from the knowledge angle.
According to the picture verification code generation method provided by the embodiment of the invention, the reference picture of the first knowledge domain can be obtained, the target region is selected from the reference picture, and the picture content of the target region is extracted as a sliding picture; acquiring a filling picture of a second knowledge domain, wherein the first knowledge domain is different from the second knowledge domain; thus, covering the filling picture in the target area of the reference picture, and carrying out boundary blurring processing on the boundary of the filling picture corresponding to the reference picture so as to obtain a background picture; and forming the picture verification code by the background picture and the sliding picture.
It can be seen that the picture verification code generated by the embodiment of the invention comprises a background picture and a sliding picture, wherein the embodiment of the invention is that at least in a target area of a reference picture of a first knowledge domain, a filling picture of a second knowledge domain is covered to obtain the background picture, and the sliding picture is picture content extracted from the target area of the reference picture of the first knowledge domain; because the first knowledge domain is different from the second knowledge domain, a user can understand that the sliding picture is the original picture content of the target area in the background picture from the knowledge angle, so that the user can understand and identify the target area to which the sliding picture in the background picture should slide from the knowledge angle, and the convenient use of the picture verification code is realized; meanwhile, the filling picture is covered at least on the target area of the reference picture, so that the filling picture can shield the target area, and the difficulty of identifying the target area by a machine is increased. According to the embodiment of the invention, under the condition that the difficulty of machine identification of the target area is improved, and a user can understand the position of the target area in the background picture from the knowledge angle, the generation of the picture verification code is realized, and the reliability of the generated picture verification code is improved.
In an optional implementation, in order to further increase the difficulty of machine recognition of a target area, the embodiment of the invention can cover a filling picture in the target area of a reference picture, and perform boundary blurring processing on a boundary of the filling picture corresponding to the reference picture, thereby obtaining a background picture. By carrying out boundary blurring processing on the boundary between the filling picture and the reference picture, the pixel change at the boundary position between the filling picture and the reference picture is gradual, namely the pixel change from the outer ring to the inner ring of the boundary between the reference picture and the filling picture is regular, so that a machine is difficult to identify a target area through the boundary pixel change of different pictures, and the difficulty of identifying the target area by the machine can be improved.
In another alternative implementation, the pixels of the filling picture selected in the embodiment of the present invention may be close to the pixels of the boundary of the target area of the reference picture, for example, the pixels of the filling picture and the pixels of the boundary of the target area of the reference picture are graded, so that the embodiment of the present invention may directly cover the filling picture in the target area of the reference picture to obtain the background picture. Because the filling picture close to the pixels at the boundary of the target area is selected, the filling picture is directly covered on the target area of the reference picture, the pixel change at the boundary position of the filling picture and the reference picture is gradual, the machine is difficult to identify the target area through the boundary pixel change of different pictures, and the difficulty of identifying the target area by the machine can be improved.
In yet another alternative implementation, if there are multiple boundaries in the reference picture (e.g., there are multiple boundaries in the reference picture with large differences in pixel variation), the target area from which the sliding picture is extracted is only one of the multiple boundaries, in which case the difficulty of identifying the target area from the reference picture by the machine is greater and the probability of identifying the target area is lower; at this time, the embodiment of the invention can directly cover the filling picture on the target area of the reference picture to obtain the background picture, and can further increase the difficulty of identifying the target area from a plurality of boundaries of the reference picture by the machine because the filling picture is used for shielding the target area.
In an optional implementation, the embodiment of the invention can set the area of the filling picture not larger than the area of the target area so as to avoid the situation that the user cannot understand the position of the target area due to the overlarge area of the filling picture; optionally, based on pre-configuring the picture library of the second knowledge domain, the embodiment of the invention can obtain the filling picture with the picture area not larger than the area of the target area from the picture library of the second knowledge domain based on the area of the target area, that is, directly obtain the filling picture with the picture area not larger than the area of the target area from the picture library of the second knowledge domain according to the area of the target area.
In the embodiment of the present invention, another optional implementation manner of obtaining the filling picture may be to randomly obtain an original filling picture in a picture library in the second knowledge domain, and if the area of the original filling picture may be larger than the area of the target area, the embodiment of the present invention may cut a picture not larger than the area of the target area from the original filling picture, so as to obtain the filling picture.
In still another optional implementation manner of the embodiment of the present invention, the embodiment of the present invention may randomly acquire a picture from a picture library in the second knowledge domain, where the acquired picture may be used as an original filling picture, and if the area of the original filling picture is greater than the area of the target area, the area compression processing may be performed on the original filling picture, so that the area of the original filling picture is compressed to be not greater than the area of the target area, so as to acquire the filling picture. Referring to fig. 6, for an alternative example of compressing the area of the original filling picture to obtain the filling picture according to the embodiment of the present invention, specifically, the area of the original filling picture 33 randomly acquired from the picture library of the second knowledge domain is larger than the area of the target area 31, the area of the original filling picture 33 may be compressed to be not larger than the area of the target area 31, so as to obtain the filling picture 33'.
Taking an example of covering a filling picture in a target area of a reference picture and performing boundary blurring processing on a boundary between the filling picture and the reference picture, where the boundary between the filling picture and the reference picture is difficult to be identified by a machine, an optional flow of performing boundary blurring processing on the boundary between the filling picture and the reference picture according to an embodiment of the present invention may be as shown in fig. 7, where the optional flow includes:
step S41, determining surrounding pixels located around the boundary between the filler picture and the reference picture.
Optionally, surrounding pixels located around the boundary of the filler picture and the reference picture may be: pixels of one or more circles around the boundary (covering the inside and outside of the boundary) of the filler picture and the reference picture.
And step S42, blurring processing is carried out on the surrounding pixels so that the pixels of the surrounding pixels are changed into a gradual change state.
Optionally, when the pixels of the surrounding pixels change to a gradual change state, the pixel change from the outer ring to the inner ring of the boundary between the reference picture and the filling picture is regular, which makes it difficult for the machine to identify the target area through the boundary pixel change of different pictures, and can improve the difficulty of identifying the target area by the machine.
In the embodiment of the present invention, an alternative implementation manner of performing blurring processing on surrounding pixels after determining the surrounding pixels may be: blurring processing is performed on the surrounding pixels through a Gaussian algorithm, so that the pixel change of the surrounding pixels is in a gradual change state.
According to the embodiment of the invention, the background picture is obtained by carrying out boundary blurring processing on the boundary corresponding to the filling picture and the reference picture, so that the difficulty of machine recognition of the target region can be increased and the reliability of the picture verification code can be improved on the basis that a user understands the position of the target region in the background picture from the knowledge angle.
The method for generating the picture verification code provided by the embodiment of the invention can be applied to scenes such as data reverse crawling, login verification and the like of websites and platforms, and the scene of the data reverse crawling scene is taken as an example to introduce the method for generating the picture verification code provided by the embodiment of the invention.
The crawler is a machine program for automatically extracting webpage information, in the current information interaction era, the crawler is free from entering, the webpage can be easily accessed through the crawler to acquire a large amount of data, and the requirement that the data are not expected to be acquired by the crawler is often existed in the websites and the platforms, so that the data of the websites and the platforms are prevented from being maliciously acquired, the data security of the websites and the platforms is protected, and the picture verification code generation method provided by the embodiment of the invention can be utilized to distinguish the access objects accessing the websites and the platforms by a man-machine, so that the access objects are refused to access when the access objects are identified as machines.
Optionally, fig. 8 shows a signaling flow of the method for generating the picture verification code according to the embodiment of the present invention, where the signaling flow may be implemented by a server and a terminal accessing an object, and the terminal accessing the object may be a terminal device used by the access object; referring to fig. 8, the signaling flow may include:
step S51, the terminal of the access object sends a page access request to the server.
When the access object uses the terminal (i.e. the accessed object terminal) to access the page of the website and platform where the server is located, the accessed object terminal can send a page access request to the server.
Step S52, the server judges whether the preset wind control rule is hit, if yes, step S53 is executed, and if not, step S56 is executed.
Optionally, the preset wind control rule may be a preset data anti-crawling rule, for example, an access frequency of the access object is higher than a predetermined access frequency; in an optional implementation, the server may determine whether the access frequency of the access object is higher than the predetermined access frequency, so as to determine whether to hit a preset wind control rule;
the crawler accesses the pages of the website and the platform through the extremely high access frequency so as to grab a large amount of data of the website and the platform, so that the access frequency of the crawler is generally higher. Based on the above, when the server obtains the page access request sent by the accessed object terminal, the server can judge whether the access frequency of the accessed object is higher than the preset access frequency; if so, the access object has the suspicion of a crawler, and the server can generate the picture verification code by using the picture verification code generation method provided by the embodiment of the invention so as to distinguish whether the access object is the crawler or not based on the generated picture verification code; if not, the access frequency of the access object is lower, and the server may not perform man-machine verification on the access object, so that a picture verification code may not be generated, for example, the server may directly feed back a page requesting access to the access object terminal.
Optionally, the access objects can be distinguished by access object identifiers such as access IP and access account numbers, and the embodiment of the invention can count the access frequency of the access object identifiers used by the access objects, so as to determine whether the access frequency of the access objects is higher than a predetermined access frequency; in an optional implementation manner of the embodiment of the present invention, the server may determine an IP address of the access object, count an access frequency of the IP address, and determine whether the access frequency of the access object is higher than a predetermined access frequency by determining whether the access frequency of the IP address is higher than the predetermined access frequency; in another optional implementation manner of the embodiment of the present invention, the server may determine an access account of the access object, count an access frequency of the access account, and determine whether the access frequency of the access object is higher than a predetermined access frequency by determining whether the access frequency of the access account is higher than the predetermined access frequency.
The predetermined access frequency may be an access frequency preset by a server, and the size of the predetermined access frequency may be set to match an application scenario according to the different servers, which is not limited here.
In other optional implementations of the embodiment of the present invention, the preset wind control rule may define other forms of content that needs to trigger the verification mechanism of the picture verification code, for example, the preset wind control rule may define a specific page that needs to be distinguished by a man-machine, when an access object requests to access the specific page, the server may determine that the preset wind control rule is hit, that is, based on a predefined specific page, when any access object requests to access the specific page, the verification mechanism of the picture verification code in the embodiment of the present invention is triggered.
Step S53, the server acquires a reference picture of the first knowledge domain; selecting a target area from the reference picture, and extracting picture content of the target area as a sliding picture; acquiring a filling picture of a second knowledge domain, wherein the first knowledge domain is different from the second knowledge domain; covering the filling picture at least in a target area of the reference picture to obtain a background picture; the background picture and the sliding picture form the picture verification code.
When the preset wind control rule is hit, the server can trigger the picture verification code generation method provided by the embodiment of the invention to be executed, so that the picture verification code is generated. The content of the process of generating the picture verification code provided by the embodiment of the present invention may refer to the description of the corresponding parts in the foregoing, and will not be repeated here.
And step S54, the server sends the picture verification code to the terminal of the access object.
And step S55, the terminal accessing the object displays the picture verification code.
Optionally, the terminal accessing the object may jump to the page to be verified, and display the picture verification code on the verification page, or the terminal may superimpose a picture verification code floating layer on the currently displayed page, where the picture verification code floating layer displays the picture verification code. Optionally, the photo verification code floating layer may be in a semitransparent state, so as to support the access object to perform verification operation based on the photo verification code floating layer.
After the server sends the generated picture verification code to the terminal of the access object, the terminal of the access object can display the picture verification code, so that the access object can perform verification operation based on the picture verification code displayed by the terminal of the access object.
Step S56, the server feeds back the page requested to be accessed to the terminal of the access object.
When the determination result in step S52 is no, the server may feed back the page requested to be accessed by the terminal of the access object to the terminal of the access object without performing man-machine authentication on the access object.
It can be seen that when the accessed object terminal requests to access the page to the server, if the server determines that the preset wind control rule is hit, the server needs to generate a picture verification code to distinguish whether the accessed object is a crawler or a user based on the picture verification code, so that the accessed object terminal needs to display the picture verification code after acquiring the picture verification code fed back by the server, so that the accessed object can perform verification operation. It can be understood that, based on the picture verification code generated by the embodiment of the invention, a user can understand and identify the target area in the picture verification code according to knowledge, so that the operation of sliding the sliding picture to the target area is completed, and meanwhile, because the machine is difficult to identify the target area, when the access object is a machine program such as a crawler, the identification verification can be effectively performed, and therefore, effective guarantee is provided for avoiding the machine program such as the crawler from capturing data wantonly.
In a further optional implementation, the embodiment of the present invention may perform man-machine verification by using the generated picture verification code, and the verification method provided by the embodiment of the present invention is described below, where the verification method may perform man-machine verification based on the picture verification code generated by the picture verification code generation method provided by the embodiment of the present invention. In an optional implementation, fig. 9 shows an optional flow of the verification method provided by the embodiment of the present invention, where the flow may be executed by a terminal, for example, in a process that the terminal accesses a website where the server is located, a page of a platform, or at the beginning of the access, the server may issue a generated picture verification code to the terminal, so as to perform man-machine verification on an object operating the terminal; as shown in fig. 9, the verification method may specifically include:
step S60, requesting to access the page;
step S61, obtaining a picture verification code, wherein the picture verification code comprises a background picture and a sliding picture.
The terminal may trigger the man-machine verification mechanism in the process of accessing the web site where the server is located and the page of the platform, so as to obtain the picture verification code sent by the server, for example, the server determines that the preset wind control rule is hit based on the access request of the terminal (for example, it is determined that the access frequency of the terminal is higher than the preset access frequency), and then the server may send the generated picture verification code to the terminal. In other possible implementations, the terminal may also acquire the picture verification code sent by the server in a verification scenario such as login verification or password input verification.
It can be understood that the sliding picture is the picture content extracted from the target area of the reference picture of the first knowledge domain, and the background picture includes the reference picture and the filling picture of the second knowledge domain covered by the target area of the reference picture.
Step S62, displaying the background picture and the sliding picture positioned above the background picture, and displaying prompt information, wherein the prompt information is used for prompting sliding of the sliding picture.
Optionally, the terminal may jump to a verification page to display the background picture and the sliding picture located above the background picture; in another optional implementation, the terminal may display the background picture and the sliding picture located above the background picture by superimposing and displaying a picture verification code floating layer on the current page.
Optionally, the position of the sliding picture may be located on the same horizontal line as the position of the filling picture on the background picture, or the position of the sliding picture may be located at other positions than the filling picture on the background picture, so as to enable the sliding picture not to block the filling picture on the background picture, which is not limited in any way.
Optionally, the prompt information may be a text prompt, for example, "drag a sliding picture to restore a background picture", where the prompt information is based on the fact that the complete content of the background picture can be restored by prompting, and the embodiment of the present invention is not limited.
Step S63, detecting a sliding instruction of the sliding picture, and sliding the sliding picture.
Optionally, the user may perform sliding control on the sliding picture through an operation body (finger, stylus, mouse, etc.) according to the prompt information, and in an optional implementation, the user may click on the sliding picture using the operation body, and drag the sliding picture under the condition of maintaining clicking, so that the sliding picture slides; in other possible implementations, the sliding of the sliding picture may be controlled by a slider in the sliding bar (fig. 1 illustrates the sliding bar and the slider in the sliding bar, reference may be made), the user may click on the slider in the sliding bar, and drag the slider with the click maintained, so that the sliding of the sliding picture is controlled by the drag of the slider.
Optionally, the terminal may have a touch screen, and the user may directly operate on the touch screen through an operation body such as a finger, a stylus, or the like, so as to implement sliding of the sliding picture.
Optionally, in the process of dragging the sliding picture by the user described above, based on the user operation, the terminal may detect a corresponding sliding instruction of the sliding picture (for example, an instruction that the user clicks the sliding picture and drags the sliding picture, and for example, an instruction that the user clicks a slider in the sliding bar and drags the slider), so that based on the sliding instruction, the terminal may slide the displayed sliding picture.
Step S64, when an instruction for releasing sliding is detected, sliding data of the sliding picture are determined.
The instruction for detecting the release of the slide may, for example, not keep clicking the slide picture or the slide block in the slide bar, but release the click of the slide picture or the slide block in the slide bar; the terminal detects the instruction of releasing the sliding, and at the moment, the sliding of the sliding picture by the user is completed.
In an alternative implementation, the sliding data of the sliding picture may include: the method comprises the steps that when a terminal detects a sliding instruction, the terminal slides the position of a picture, and track points corresponding to the sliding picture in the sliding process.
Optionally, in the embodiment of the present invention, a coordinate system may be established with one corner point of the background picture as an origin, so that the position of the sliding picture is determined by determining the position of the center point of the sliding picture; in an example, the embodiment of the invention can take the upper left corner of the background picture as the origin, increase the horizontal axis to the right and increase the vertical axis to the down to establish a coordinate system, so that when the terminal detects the instruction of releasing the sliding, the terminal can determine the position of the center point of the sliding picture (namely, the center position of the sliding picture) so as to determine the position of the sliding picture when the user releases the sliding.
Optionally, in the sliding process of the sliding picture, the terminal can detect the position point where the sliding picture is located at regular time, so that when the user releases the sliding, the terminal can collect the position points detected at regular time in the sliding process, and track points corresponding to the sliding picture in the sliding process are obtained.
Of course, the form of the sliding data in the above example is only optional, and the sliding data may also only include the position of the sliding picture when the terminal detects the instruction to release the sliding.
And step S65, sending a verification request to a server at least according to the sliding data.
After the terminal determines the sliding data of the sliding picture, the terminal can send a verification request to a server based on the sliding data so as to request whether verification is passed or not; in an optional implementation, the verification request may include a position of the sliding picture when the portable terminal detects an instruction for releasing sliding, and a track point corresponding to the sliding picture in a sliding process; in another alternative implementation, the authentication request may carry the position of the slide picture when the terminal detects an instruction to release the slide.
The embodiment of the invention discloses a verification method, when a server detects an access request of an access object, if the server needs to perform man-machine verification on the access object, the server can send a picture verification code to a terminal used by the access object, so that the terminal can display the picture verification code and prompt sliding of a sliding picture in the picture verification code, when one-time sliding is finished, the terminal detects a sliding instruction releasing the sliding, the terminal can send a verification request to the server based on sliding data of the sliding picture, and therefore the server provides a verification result to distinguish whether the object operating the terminal is a machine or a user. It is worth noting that the target area to which the sliding picture in the picture verification code should slide is difficult to identify by a machine, but a user can identify according to understanding of a knowledge domain, so that the verification method disclosed by the embodiment of the invention can effectively perform man-machine verification on the object of the operation terminal.
After the terminal sends a verification request to the server, the server can determine whether the verification passes or fails according to the sliding data of the sliding picture and feed the result back to the terminal; if the verification is passed, the object of the operation terminal is indicated as a user, otherwise, the object of the operation terminal is considered as not being the user; in an alternative implementation, taking an example that the sliding data of the sliding picture includes a position of the sliding picture when the sliding is released and a track point of the sliding picture in the sliding process, from an interaction angle of the terminal and the server, fig. 10 shows a signaling flow of the verification method provided by the embodiment of the present invention, as shown in fig. 10, the signaling flow may include:
step S71, the terminal of the access object sends a page access request to the server.
Step S72, the server judges whether the preset wind control rule is hit or not, if not, step S73 is executed, and if yes, step S74 is executed.
Step S73, the server control terminal jumps to the page which is requested to be accessed.
If the preset wind control rule is not hit, the server can feed back the page requested to be accessed by the terminal, so that the terminal is controlled to jump to the page requested to be accessed.
Step S74, the server generates a picture verification code.
The process of generating the picture verification code by the server can refer to the description of the corresponding parts, and the description is omitted here.
And step S75, the server sends the picture verification code to the terminal of the access object.
Step S76, the terminal accessing the object displays the picture verification code.
Step 77, the terminal detects a sliding instruction of a sliding picture in the picture verification code, slides the sliding picture, and determines sliding data of the sliding picture when detecting the instruction for releasing the sliding.
And step S78, the terminal sends a verification request to the server based on the sliding data.
The description of the optional steps S76 to S78 may refer to the description of the corresponding parts above, and will not be repeated here.
Step S79, the server judges whether the verification request accords with a preset verification retry rule, if yes, step S710 is executed, and if not, step S714 is executed.
In order to avoid repeated verification of the same picture verification code for a plurality of times or for a long time, the embodiment of the invention can set a preset verification retry rule, and optionally, the preset verification retry rule can define preset retry times or preset timeout time; specifically, in order to ensure the reliability of verification, the embodiment of the invention can set the retry times for one picture verification code, and optionally, the retry times can be 3-5 times, when the verification times of a user for one picture verification code exceeds the retry times, the picture verification code is invalid, and the user needs to wait for a period of time to verify with the picture verification code newly issued by the server; the embodiment of the invention can also set the overtime time of the verification time for the picture verification code, when the verification time of a user for one picture verification code exceeds the overtime time, the picture verification code is invalid, and the user needs to wait for a period of time and then verify with the picture verification code newly issued by the server; the timeout period may be 1 minute to 5 minutes.
In an optional implementation, when the number of times of verification of the terminal on the picture verification code does not exceed a preset retry number, or when the time of verification of the terminal on the picture verification code does not exceed a preset timeout time, the verification request can be determined to conform to a preset verification retry rule, and verification on the verification request can be allowed; when the verification times of the terminal for the picture verification code exceeds the preset retry times, or the verification time of the terminal for the picture verification code exceeds the preset timeout time, the verification request can be determined to be not in accordance with the preset verification retry rule, and the server can determine a verification failure result and reject the page access of the terminal.
Step S710, the server determines whether the position of the slider picture corresponds to the position of the target area, if not, step S711 is executed, and if yes, step S712 is executed.
In an optional embodiment of the present invention, determining whether the position of the slider picture corresponds to the position of the target area may be: judging whether the central position of the slider picture corresponds to the central position of the target area or not; specifically, if the error between the central position of the slider picture and the central position of the target area is within the set error range, the position of the slider picture corresponds to the position of the target area, otherwise, the position of the slider picture does not correspond to the position of the target area; optionally, the setting error range may be set according to practical situations, for example, the deviation of the center position of the slider picture from the target area is within 5%, and so on.
It should be noted that, in the case of establishing a coordinate system with one corner point of the background picture as the origin, the embodiment of the invention can determine and record the center position of the target area when selecting the target area.
Step S711, the server feeds back the verification result which is not passed by the verification to the terminal, and allows the terminal to re-request the verification for the picture verification code.
Step S712, the server determines that the release of the track point of the slider picture in the sliding process accords with the manual operation track, if yes, step S713 is executed, and if no, step S714 is executed.
Optionally, the embodiment of the invention can verify whether the track point of the slide block picture in the sliding process accords with the manual operation track through a machine learning model. The machine learning model can acquire new knowledge or skills by researching how a computer simulates or realizes learning behaviors of a user, and reorganizes the existing knowledge structure to continuously improve the performance of the machine learning model; the embodiment of the invention can train the machine learning model based on the real track from the sliding block picture to the target area by the user history, so that the trained machine learning model can be used for verifying whether the track point of the sliding block picture accords with the manual operation track in the sliding process.
Step S713, the server feeds back the verification result of the verification to the terminal, and controls the terminal to jump to the page requested to be accessed.
Alternatively, the determination of step S710 and step S712 may be performed simultaneously, or the determination of step S712 may be performed, and then the determination of step S710 may be performed. It can be understood that, in the embodiment of the invention, when the position of the sliding picture corresponds to the position of the target area and the track point is verified by the machine learning model to conform to the human operation track, the verification result is obtained to be verification passing, and/or when the position of the sliding picture does not correspond to the position of the target area and/or the track point is verified by the machine learning model to not conform to the human operation track, the verification result is obtained to be verification failing; and when the verification result is that the verification is not passed and the number of times of the verification of the picture verification code currently exceeds the preset retry number or the time-out time of the verification is not exceeded, the embodiment of the invention allows the terminal to re-request the verification of the picture verification code, so that the terminal can return to execute the step of detecting the sliding instruction of the sliding picture in the picture verification code in the step S77 and slide the sliding picture, thereby re-detecting the sliding operation of the access object on the sliding picture.
Step S714, the server feeds back the verification result which is not passed by the verification to the terminal, and refuses the page access of the terminal.
Step S715, the terminal accessing the object executes processing logic corresponding to the verification result.
Optionally, if the verification result sent by the server is that verification is passed, the terminal accessing the object may obtain the requested access page from the server and display the requested access page; if the verification result sent by the server is that the verification is not passed and the current verification accords with the preset retry rule, the embodiment of the invention can re-execute the verification operation process, for example, if the verification result sent by the server is that the verification is not passed and the number of times of verification retry is not greater than the preset number of times of retry, the step of re-detecting the sliding instruction of the sliding picture in the picture verification code in step S77 and sliding the sliding picture can be returned to re-send the verification request based on the sliding operation of the sliding picture again.
Therefore, the verification method disclosed by the embodiment of the invention can distinguish the access object from each other by a human-computer, and particularly, when in verification, the server sends a picture verification code to the terminal of the access object so as to verify the access object; the server determines the verification result of the access object based on the sliding data of the sliding picture in the picture verification code sent by the terminal, and feeds the verification result back to the terminal of the access object; further, the terminal accessing the object may determine subsequent processing logic according to the verification result. Because the target area in the picture verification code is difficult to identify by the machine, but a user can understand and identify the target area according to knowledge, the user can manually and conveniently and correctly operate the picture verification code, and the machine is difficult to disguise the correct operation of the picture verification code.
The foregoing describes several embodiments of the present invention, and the various alternatives presented by the various embodiments may be combined, cross-referenced, with each other without conflict, extending beyond what is possible embodiments, all of which are considered to be embodiments of the present invention disclosed and disclosed.
The following describes the device for generating the picture verification code according to the embodiment of the present invention, and the device for generating the picture verification code described below may be considered as a functional module required to be set by a server for implementing the method for pushing an object according to the embodiment of the present invention. The contents of the picture authentication code generation apparatus described below may be referred to in correspondence with the contents of the picture authentication code generation method described above.
In an optional implementation, fig. 11 shows an optional block diagram of a picture verification code generating apparatus provided by an embodiment of the present invention, and as shown in fig. 11, the picture verification code generating apparatus may include:
a first obtaining module 81, configured to obtain a reference picture of a first knowledge domain;
a selection extraction module 82, configured to select a target area from the reference picture, and extract a picture content of the target area as a sliding picture;
A second obtaining module 83, configured to obtain a filling picture of a second knowledge domain, where the first knowledge domain is different from the second knowledge domain;
a background picture obtaining module 84, configured to cover the filling picture at least in a target area of the reference picture, and obtain a background picture; the background picture and the sliding picture form the picture verification code.
Optionally, the selecting an extracting module 82, configured to extract, as a sliding picture, the picture content of the target area includes: and copying the picture content of the target area to obtain a sliding picture.
Optionally, the area of the filling picture is not larger than the area of the target area.
Optionally, the second obtaining module 83, configured to obtain a filling picture of the second knowledge domain includes:
acquiring a filling picture with the picture area not larger than the area of the target area from a picture library of the second knowledge domain;
or randomly acquiring an original filling picture from a picture library of a second knowledge domain, if the area of the original filling picture is larger than the area of the target area, compressing the area of the original filling picture to be not larger than the area of the target area, or cutting out a picture which is not larger than the area of the target area from the original filling picture so as to acquire the filling picture.
Optionally, the background picture obtaining module 84 is configured to cover the filling picture at least in a target area of the reference picture, where obtaining the background picture includes:
and covering the filling picture on the target area of the reference picture, and carrying out boundary blurring processing on the boundary of the filling picture corresponding to the reference picture so as to obtain a background picture.
Optionally, the background picture obtaining module 84, configured to perform boundary blurring processing on a boundary between the filling picture and the reference picture may include:
determining surrounding pixels located around a boundary of the filler picture and the reference picture;
and blurring the surrounding pixels to change the pixels of the surrounding pixels into a gradual change state.
Optionally, referring to another block diagram of the apparatus for generating a picture verification code shown in fig. 12, the apparatus may further include:
the wind control rule judging module 85 is configured to judge whether a preset wind control rule is hit, and if yes, trigger the first obtaining module to execute the step of obtaining the reference picture of the first knowledge domain; the preset wind control rule at least comprises that the access frequency of the access object is higher than the preset access frequency.
Optionally, as further shown in fig. 12, the apparatus provided by the embodiment of the present invention may further include:
And the verification code sending module 86 is configured to send the picture verification code to the terminal of the access object, so that the terminal jumps to a verification page on which the picture verification code is displayed, or the terminal superimposes a picture verification code floating layer on a currently displayed page.
Alternatively, it may be further explained that the shape of the sliding picture may be different from the shape of the filler picture.
The embodiment of the invention also provides a server which can load the picture verification code generating device in a program form so as to realize the picture verification code generating method provided by the embodiment of the invention. Alternatively, as shown in fig. 13, the hardware structure of the server may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;
in the embodiment of the invention, the number of the processor 1, the communication interface 2, the memory 3 and the communication bus 4 is at least one, and the processor 1, the communication interface 2 and the memory 3 complete the communication with each other through the communication bus 4; obviously, the communication connection illustrations of the illustrated processor 1, communication interface 2, memory 3 and communication bus 4 are only optional;
Alternatively, the communication interface 2 may be an interface of a communication module for performing network communication;
alternatively, the processor 1 may be a CPU (central processing unit), GPU (Graphics Processing Unit, graphics processor), NPU (embedded neural network processor), FPGA (Field Programmable Gate Array ), TPU (tensor processing unit), AI chip, specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention, or the like.
The memory 3 may comprise a high-speed RAM memory or may further comprise a non-volatile memory, such as at least one disk memory.
The memory 3 stores one or more computer executable instructions, and the processor 1 invokes the one or more computer executable instructions to execute the method for generating the picture verification code executed by the server according to the embodiment of the present invention.
The verification device provided by the embodiment of the present invention is described below, and the verification device described below may be considered as a functional module that is required to be set by the terminal to implement the verification method provided by the embodiment of the present invention. The contents of the authentication apparatus described below may be referred to in correspondence with the contents of the authentication method described above.
In an alternative implementation, fig. 14 shows an alternative block diagram of an authentication apparatus provided by an embodiment of the present invention, as shown in fig. 14, where the authentication apparatus may include:
the picture verification code obtaining module 91 is configured to obtain a picture verification code, where the picture verification code includes a background picture and a sliding picture; the sliding picture is picture content extracted from a target area of a reference picture of a first knowledge domain, and the background picture comprises the reference picture and a filling picture of a second knowledge domain covered by the target area of the reference picture.
The picture verification code display module 92 is configured to display the background picture and the sliding picture located above the background picture, and display a prompt message, where the prompt message is used to prompt sliding of the sliding picture.
And the sliding detection module 93 is configured to detect a sliding instruction of the sliding picture, and slide the sliding picture.
And the sliding data determining module 94 is used for determining the sliding data of the sliding picture when the instruction for releasing the sliding is detected.
And the request sending module 95 is configured to send a verification request to the server at least according to the sliding data.
Optionally, in the verification device disclosed in the embodiment of the present invention, the sliding data determining module 94 is configured to determine sliding data of the sliding picture, including:
And determining the position of the sliding picture and the track point corresponding to the sliding picture sliding process when the sliding releasing instruction is detected.
Optionally, in another alternative embodiment of the present invention, referring to fig. 15, the verification apparatus may further include:
a verification result receiving module 96, configured to receive a verification result fed back by the server; the position of the sliding picture corresponds to the position of the target area, and the track point is verified to be in accordance with the manual operation track through the machine learning model, the verification result is verification passing, the position of the sliding picture does not correspond to the position of the target area, and/or the track point is verified to be not in accordance with the manual operation track through the machine learning model, and the verification result is verification failing.
The result execution module 97 is configured to execute processing logic corresponding to the verification result.
Optionally, in another optional embodiment of the present invention, referring to fig. 16, the verification apparatus further includes:
the page request module 98 is configured to request access to a page before the picture verification code acquisition module acquires the picture verification code.
Optionally, the result execution module 97, configured to execute processing logic corresponding to the verification result may further include:
If the verification result is that the verification is passed, acquiring the access page and displaying the access page;
and if the verification result is that the verification is failed, and the verification times do not exceed the preset retry times or the verification time does not exceed the preset timeout time, controlling the sliding detection module 93 to execute the sliding instruction for detecting the sliding picture again, and sliding the sliding picture.
The embodiment of the invention also provides a terminal which can be loaded with the verification device in the program form so as to realize the verification method executed by the terminal. Alternatively, the hardware structure of the terminal may be shown in fig. 13, including: at least one processor, at least one communication interface;
the memory stores one or more computer executable instructions, and the processor invokes the one or more computer executable instructions to execute the verification method executed by the terminal provided by the embodiment of the invention.
The embodiment of the invention provides a storage medium which can store one or more computer executable instructions, wherein the one or more computer executable instructions can be used for executing the picture verification code generation method executed by the terminal provided by the embodiment of the invention or executing the verification method. .
The foregoing describes several embodiments of the present invention, and the various alternatives presented by the various embodiments may be combined, cross-referenced, with each other without conflict, extending beyond what is possible embodiments, all of which are considered to be embodiments of the present invention disclosed and disclosed.
Although the embodiments of the present invention are disclosed above, the present invention is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention should be assessed accordingly to that of the appended claims.
In summary, in the 1 st aspect, an embodiment of the present invention provides a method for generating a picture verification code, including:
acquiring a reference picture of a first knowledge domain;
selecting a target area from the reference picture, and extracting picture content of the target area as a sliding picture;
acquiring a filling picture of a second knowledge domain, wherein the first knowledge domain is different from the second knowledge domain;
covering the filling picture at least in a target area of the reference picture to obtain a background picture; the background picture and the sliding picture form the picture verification code.
With reference to the 1 st aspect, in a 1 st implementation manner of the 1 st aspect, the extracting the picture content of the target area as a sliding picture includes:
and copying the picture content of the target area to obtain a sliding picture.
With reference to aspect 1, in a 2 nd implementation manner of aspect 1, an area of the filling picture is not greater than an area of the target area.
With reference to the 2 nd implementation manner of the 1 st aspect, in a 3 rd implementation manner of the 1 st aspect, the acquiring a filling picture of the second knowledge domain includes:
acquiring a filling picture with the area not larger than the area of the target area from a picture library of the second knowledge domain;
or randomly acquiring an original filling picture from a picture library of a second knowledge domain, if the area of the original filling picture is larger than the area of the target area, compressing the area of the original filling picture to be not larger than the area of the target area, or cutting out a picture which is not larger than the area of the target area from the original filling picture so as to acquire the filling picture.
With reference to any one of the 3 rd implementation manners of the 1 st aspect to the 1 st aspect, in a 4 th implementation manner of the 1 st aspect, the overlaying the filler picture on the target area of the reference picture includes:
And superposing the filling picture in a target area of the reference picture in a mapping mode.
With reference to the 1 st aspect, in a 5 th implementation manner of the embodiment of the 1 st aspect, the covering the filling picture at least in the target area of the reference picture, to obtain a background picture includes:
and covering the filling picture on the target area of the reference picture, and carrying out boundary blurring processing on the boundary of the filling picture corresponding to the reference picture so as to obtain a background picture.
With reference to the 5 th implementation manner of the 1 st aspect, in a 6 th implementation manner of the embodiment of the present invention, performing boundary blurring processing on a boundary between the filler picture and the reference picture includes:
determining surrounding pixels located around a boundary of the filler picture and the reference picture;
and blurring the surrounding pixels to change the pixels of the surrounding pixels into a gradual change state.
With reference to the 1 st aspect, in a 7 th implementation manner of the 1 st aspect, before acquiring the reference picture of the first knowledge domain, the method further includes:
judging whether a preset wind control rule is hit or not, if yes, triggering and executing the step of acquiring the reference picture of the first knowledge domain; the preset wind control rule at least comprises that the access frequency of the access object is higher than the preset access frequency.
With reference to the 7 th implementation manner of the 1 st aspect, in an 8 th implementation manner of the 1 st aspect, an embodiment of the present invention further includes:
and sending the picture verification code to the terminal of the access object, so that the terminal jumps to a verification page displayed with the picture verification code, or the terminal overlaps a picture verification code floating layer on the currently displayed page.
With reference to the 1 st aspect, in a 9 th implementation manner of the 1 st aspect, a shape of the sliding picture is different from a shape of the filling picture.
In aspect 2, an embodiment of the present invention discloses a verification method, including:
acquiring a picture verification code, wherein the picture verification code comprises a background picture and a sliding picture; the sliding picture is picture content extracted from a target area of a reference picture of a first knowledge domain, and the background picture comprises the reference picture and a filling picture of a second knowledge domain covered by the target area of the reference picture;
displaying the background picture and the sliding picture positioned above the background picture, and displaying prompt information, wherein the prompt information is used for prompting sliding of the sliding picture;
detecting a sliding instruction of the sliding picture, and sliding the sliding picture;
Determining sliding data of the sliding picture when an instruction for releasing sliding is detected;
and sending a verification request to a server at least according to the sliding data.
With reference to the 2 nd aspect, in a 1 st implementation manner of the 2 nd aspect, the determining the sliding data of the sliding picture includes:
and determining the position of the sliding picture and the track point corresponding to the sliding picture sliding process when the sliding releasing instruction is detected.
With reference to implementation manner of the 1 st aspect of the 2 nd aspect, in implementation manner of the 2 nd aspect, the embodiment of the present invention further includes:
receiving a verification result fed back by the server; if the position of the sliding picture corresponds to the position of the target area and the track point is verified to be in accordance with the manual operation track through the machine learning model, the verification result is verification passing, and if the position of the sliding picture does not correspond to the position of the target area and/or the track point is verified to be not in accordance with the manual operation track through the machine learning model, the verification result is verification failing;
and executing processing logic corresponding to the verification result.
With reference to the 2 nd implementation manner of the 2 nd aspect of the embodiment of the present invention, in the 3 rd implementation manner of the 2 nd aspect of the embodiment of the present invention, before obtaining the picture verification code, the method further includes:
Requesting access to the page;
the executing processing logic corresponding to the verification result comprises:
if the verification result is that the verification is passed, acquiring the access page and displaying the access page;
and if the verification result is that the verification is not passed, and the verification times do not exceed the preset retry times or the verification time does not exceed the preset timeout time, returning the sliding instruction for detecting the sliding picture again, and sliding the sliding picture.
In the 3 rd aspect, in an apparatus for generating a picture verification code according to an embodiment of the present invention, the apparatus includes:
the first acquisition module is used for acquiring a reference picture of the first knowledge domain;
the selection and extraction module is used for selecting a target area from the reference picture and extracting the picture content of the target area as a sliding picture;
the second acquisition module is used for acquiring a filling picture of a second knowledge domain, and the first knowledge domain is different from the second knowledge domain;
the background picture obtaining module is used for covering the filling picture at least in the target area of the reference picture to obtain a background picture; the background picture and the sliding picture form the picture verification code.
With reference to the 3 rd aspect, in a 1 st implementation manner of the 3 rd aspect of the embodiment of the present invention, the selecting and extracting module, configured to extract, as a sliding picture, a picture content of the target area includes:
And copying the picture content of the target area to obtain a sliding picture.
With reference to aspect 3, in a 2 nd implementation manner of aspect 3 of the embodiment of the present invention, an area of the filling picture is not greater than an area of the target area.
With reference to the 2 nd implementation manner of the 3 rd aspect of the embodiment of the present invention, in a 3 rd implementation manner of the 3 rd aspect of the embodiment of the present invention, the second obtaining module, configured to obtain a filling picture of a second knowledge domain includes:
acquiring a filling picture with the area not larger than the area of the target area from a picture library of the second knowledge domain;
or randomly acquiring an original filling picture from a picture library of a second knowledge domain, if the area of the original filling picture is larger than the area of the target area, compressing the area of the original filling picture to be not larger than the area of the target area so as to acquire the filling picture, or cutting out a picture which is not larger than the area of the target area from the original filling picture so as to acquire the filling picture.
With reference to the 3 rd aspect, in a 4 th implementation manner of the 3 rd aspect of the embodiment of the present invention, the background picture obtaining module is configured to cover the filling picture at least in a target area of the reference picture, and obtaining the background picture includes:
And covering the filling picture on the target area of the reference picture, and carrying out boundary blurring processing on the boundary of the filling picture corresponding to the reference picture so as to obtain a background picture.
With reference to the 4 th implementation manner of the 3 rd aspect, in a 5 th implementation manner of the 3 th aspect, the background picture obtaining module is configured to perform boundary blurring processing on a boundary corresponding to the filling picture and the reference picture, where the boundary blurring processing includes:
determining surrounding pixels located around a boundary of the filler picture and the reference picture;
and blurring the surrounding pixels to change the pixels of the surrounding pixels into a gradual change state.
With reference to aspect 3, in a 6 th implementation manner of aspect 3 of the embodiment of the present invention, the method further includes:
the wind control rule judging module is used for judging whether a preset wind control rule is hit or not, and if yes, triggering the first acquisition module to execute the step of acquiring the reference picture of the first knowledge domain; the preset wind control rule at least comprises that the access frequency of the access object is higher than the preset access frequency.
With reference to implementation manner of the 6 th aspect of the 3 th aspect, in implementation manner of the 7 th aspect of the 3 th aspect, an embodiment of the present invention further includes:
And the verification code sending module is used for sending the picture verification code to the terminal equipment of the access object so as to lead the terminal to jump to a verification page displayed with the picture verification code or lead the terminal to superimpose a picture verification code floating layer on the page currently displayed.
With reference to the 3 rd aspect, in an 8 th implementation manner of the embodiment of the present invention, a shape of the sliding picture is different from a shape of the filling picture.
In the 4 th aspect, the invention discloses a verification device, which comprises:
the picture verification code acquisition module is used for acquiring a picture verification code, wherein the picture verification code comprises a background picture and a sliding picture; the sliding picture is picture content extracted from a target area of a reference picture of a first knowledge domain, and the background picture comprises the reference picture and a filling picture of a second knowledge domain covered by the target area of the reference picture;
the picture verification code display module is used for displaying the background picture and the sliding picture positioned above the background picture and displaying prompt information, wherein the prompt information is used for prompting sliding of the sliding picture so as to restore the complete picture content of the background picture;
The sliding detection module is used for detecting a sliding instruction of the sliding picture and sliding the sliding picture;
the sliding data determining module is used for determining sliding data of the sliding picture when an instruction for releasing sliding is detected;
and the request sending module is used for sending a verification request to the server at least according to the sliding data.
With reference to the 4 th aspect, in a 1 st implementation manner of the 4 st aspect of the embodiment of the present invention, the sliding data determining module, configured to determine sliding data of the sliding picture includes:
and determining the position of the sliding picture and the track point corresponding to the sliding picture sliding process when the sliding releasing instruction is detected.
With reference to implementation manner of 1 st aspect of 4 th aspect, in implementation manner of 2 nd aspect of 4 nd aspect, an embodiment of the present invention further includes:
the verification result receiving module is used for receiving the verification result fed back by the server; if the position of the sliding picture corresponds to the position of the target area and the track point is verified to be in accordance with the manual operation track through the machine learning model, the verification result is verification passing, and if the position of the sliding picture does not correspond to the position of the target area and/or the track point is verified to be not in accordance with the manual operation track through the machine learning model, the verification result is verification failing;
And the result execution module is used for executing the processing logic corresponding to the verification result.
With reference to implementation manner of the 2 nd aspect of the 4 nd aspect, in implementation manner of the 3 rd aspect of the 4 rd aspect, an embodiment of the present invention further includes:
the page request module is used for requesting to access a page before the picture verification code acquisition module acquires the picture verification code;
the result execution module, configured to execute processing logic corresponding to the verification result, further includes:
if the verification result is that the verification is passed, acquiring the access page and displaying the access page;
and if the verification result is that the verification is not passed, and the verification times do not exceed the preset retry times or the verification time does not exceed the preset timeout time, controlling the sliding detection module to execute the sliding instruction for detecting the sliding picture again, and sliding the sliding picture.
In a 5 th aspect, an embodiment of the present invention provides a server, including: at least one memory and at least one processor; the memory stores one or more computer-executable instructions that the processor invokes to perform the picture verification code generation method described above.
In a 6 th aspect, an embodiment of the present invention provides a terminal, including: at least one memory and at least one processor; the memory stores one or more computer-executable instructions that the processor invokes to perform the verification method described above.
In a 7 th aspect, an embodiment of the present invention provides a storage medium storing one or more computer-executable instructions for performing the above-described picture authentication code generation method or performing the above-described authentication method.

Claims (30)

1. A picture verification code generation method is characterized in that a picture library of a plurality of knowledge domains is pre-configured, wherein the content types of the content expressed by pictures in the picture libraries of different knowledge domains are different; the method comprises the following steps:
obtaining a reference picture from a picture library of a first knowledge domain of the plurality of knowledge domains;
selecting a target area from the reference picture, and extracting picture content of the target area as a sliding picture;
acquiring a filling picture from a picture library of any one second knowledge domain which is different from the first knowledge domain in the plurality of knowledge domains;
Covering the filling picture at least in a target area of the reference picture to obtain a background picture; and the boundary between the filling picture and the reference picture is subjected to blurring treatment, and the background picture and the sliding picture form the picture verification code.
2. The method of claim 1, wherein the extracting the picture content of the target area as a sliding picture comprises:
and copying the picture content of the target area to obtain a sliding picture.
3. The picture verification code generation method according to claim 1, wherein an area of the filled picture is not larger than an area of the target area.
4. The method for generating a picture verification code according to claim 3, wherein the acquiring a filler picture from a picture library of any one of the plurality of knowledge domains different from the first knowledge domain includes:
acquiring a filling picture with the area not larger than the area of the target area from a picture library of any one second knowledge domain which is different from the first knowledge domain in the plurality of knowledge domains;
or randomly acquiring an original filling picture from a picture library of any one second knowledge domain different from the first knowledge domain in the plurality of knowledge domains, if the area of the original filling picture is larger than the area of the target area, compressing the area of the original filling picture to be not larger than the area of the target area, or cutting out a picture which is not larger than the area of the target area from the original filling picture so as to acquire the filling picture.
5. The picture verification code generation method according to any one of claims 1 to 4, wherein the overlaying the filler picture on the target area of the reference picture includes:
and superposing the filling picture in a target area of the reference picture in a mapping mode.
6. The method for generating a picture verification code according to claim 1, wherein the covering the filler picture at least in the target area of the reference picture to obtain a background picture includes:
and covering the filling picture on the target area of the reference picture, and carrying out boundary blurring processing on the boundary of the filling picture corresponding to the reference picture so as to obtain a background picture.
7. The method of generating a picture verification code according to claim 6, wherein the performing boundary blurring processing on the boundary between the filler picture and the reference picture includes:
determining surrounding pixels located around a boundary of the filler picture and the reference picture;
and blurring the surrounding pixels to change the pixels of the surrounding pixels into a gradual change state.
8. The picture verification code generation method according to claim 1, wherein before the reference picture of the first knowledge domain is acquired, the method further comprises:
Judging whether a preset wind control rule is hit or not, if yes, triggering and executing the step of acquiring the reference picture of the first knowledge domain; the preset wind control rule at least comprises that the access frequency of the access object is higher than the preset access frequency.
9. The picture verification code generation method according to claim 8, further comprising:
and sending the picture verification code to the terminal of the access object, so that the terminal jumps to a verification page displayed with the picture verification code, or the terminal overlaps a picture verification code floating layer on the currently displayed page.
10. The picture verification code generation method according to claim 1, wherein the shape of the sliding picture is different from the shape of the filling picture.
11. A method of authentication, comprising:
acquiring a picture verification code, wherein the picture verification code comprises a background picture and a sliding picture; the sliding picture is picture content extracted from a target area of a reference picture of a first knowledge domain, and the background picture comprises the reference picture and a filling picture of a second knowledge domain covered by the target area of the reference picture; the reference picture is obtained from a picture library of a first knowledge domain in a picture library of a plurality of knowledge domains which are preconfigured, and the filling picture is obtained from a picture library of any one second knowledge domain which is different from the first knowledge domain in the plurality of knowledge domains; wherein, the content types of the content expressed by the pictures in the picture libraries of different knowledge domains are different; in the background picture, the boundary between the filling picture and the reference picture is subjected to blurring processing;
Displaying the background picture and the sliding picture positioned above the background picture, and displaying prompt information, wherein the prompt information is used for prompting sliding of the sliding picture;
detecting a sliding instruction of the sliding picture, and sliding the sliding picture;
determining sliding data of the sliding picture when an instruction for releasing sliding is detected;
and sending a verification request to a server at least according to the sliding data.
12. The method of claim 11, wherein the determining the slide data of the slide picture comprises:
and determining the position of the sliding picture and the track point corresponding to the sliding picture sliding process when the sliding releasing instruction is detected.
13. The authentication method of claim 12, further comprising:
receiving a verification result fed back by the server; if the position of the sliding picture corresponds to the position of the target area and the track point is verified to be in accordance with the manual operation track through the machine learning model, the verification result is verification passing, and if the position of the sliding picture does not correspond to the position of the target area and/or the track point is verified to be not in accordance with the manual operation track through the machine learning model, the verification result is verification failing;
And executing processing logic corresponding to the verification result.
14. The method of authentication of claim 13, wherein prior to obtaining the picture authentication code, the method further comprises:
requesting access to the page;
the executing processing logic corresponding to the verification result comprises:
if the verification result is that the verification is passed, acquiring the access page and displaying the access page;
and if the verification result is that the verification is not passed, and the verification times do not exceed the preset retry times or the verification time does not exceed the preset timeout time, returning the sliding instruction for detecting the sliding picture again, and sliding the sliding picture.
15. The picture verification code generating device is characterized in that a picture library of a plurality of knowledge domains is pre-configured, wherein the content types of the contents expressed by pictures in the picture libraries of different knowledge domains are different; the device comprises:
the first acquisition module is used for acquiring a reference picture from a picture library of a first knowledge domain in the plurality of knowledge domains;
the selection and extraction module is used for selecting a target area from the reference picture and extracting the picture content of the target area as a sliding picture;
The second acquisition module is used for acquiring a filling picture from a picture library of any one second knowledge domain which is different from the first knowledge domain in the plurality of knowledge domains;
the background picture obtaining module is used for covering the filling picture at least in the target area of the reference picture to obtain a background picture; and the boundary between the filling picture and the reference picture is subjected to blurring treatment, and the background picture and the sliding picture form the picture verification code.
16. The picture verification code generation apparatus according to claim 15, wherein the selection extraction module for extracting the picture content of the target area as a slide picture comprises:
and copying the picture content of the target area to obtain a sliding picture.
17. The picture verification code generation apparatus according to claim 15, wherein an area of the filler picture is not larger than an area of the target area.
18. The apparatus for generating a picture verification code according to claim 17, wherein the second obtaining module, configured to obtain a filling picture from a picture library of any one of the plurality of knowledge domains different from the first knowledge domain, includes:
Acquiring a filling picture with the area not larger than the area of the target area from a picture library of any one second knowledge domain which is different from the first knowledge domain in the plurality of knowledge domains;
or,
and randomly acquiring an original filling picture from a picture library of any one second knowledge domain different from the first knowledge domain in the plurality of knowledge domains, and if the area of the original filling picture is larger than the area of the target area, compressing the area of the original filling picture to be not larger than the area of the target area, or cutting out a picture which is not larger than the area of the target area from the original filling picture so as to acquire the filling picture.
19. The picture verification code generation device according to claim 15, wherein the background picture obtaining module, configured to cover the filler picture at least in a target area of the reference picture, obtains a background picture, includes:
and covering the filling picture on the target area of the reference picture, and carrying out boundary blurring processing on the boundary of the filling picture corresponding to the reference picture so as to obtain a background picture.
20. The apparatus for generating a picture verification code according to claim 19, wherein the background picture obtaining module configured to perform boundary blurring processing on a boundary of the filler picture corresponding to the reference picture includes:
Determining surrounding pixels located around a boundary of the filler picture and the reference picture;
and blurring the surrounding pixels to change the pixels of the surrounding pixels into a gradual change state.
21. The picture verification code generation apparatus according to claim 15, further comprising:
the wind control rule judging module is used for judging whether a preset wind control rule is hit or not, and if yes, triggering the first acquisition module to execute the step of acquiring the reference picture of the first knowledge domain; the preset wind control rule at least comprises that the access frequency of the access object is higher than the preset access frequency.
22. The picture verification code generation apparatus of claim 21, further comprising:
and the verification code sending module is used for sending the picture verification code to the terminal of the access object so as to enable the terminal to jump to a verification page displayed with the picture verification code or enable the terminal to superimpose a picture verification code floating layer on the currently displayed page.
23. The picture verification code generation apparatus according to claim 15, wherein the shape of the sliding picture is different from the shape of the filling picture.
24. A verification apparatus, comprising:
The picture verification code acquisition module is used for acquiring a picture verification code, wherein the picture verification code comprises a background picture and a sliding picture; the sliding picture is picture content extracted from a target area of a reference picture of a first knowledge domain, and the background picture comprises the reference picture and a filling picture of a second knowledge domain covered by the target area of the reference picture; the reference picture is obtained from a picture library of a first knowledge domain in a picture library of a plurality of knowledge domains which are preconfigured, and the filling picture is obtained from a picture library of any one second knowledge domain which is different from the first knowledge domain in the plurality of knowledge domains; wherein, the content types of the content expressed by the pictures in the picture libraries of different knowledge domains are different; in the background picture, the boundary between the filling picture and the reference picture is subjected to blurring processing;
the picture verification code display module is used for displaying the background picture and the sliding picture positioned above the background picture and displaying prompt information, wherein the prompt information is used for prompting sliding of the sliding picture;
the sliding detection module is used for detecting a sliding instruction of the sliding picture and sliding the sliding picture;
The sliding data determining module is used for determining sliding data of the sliding picture when an instruction for releasing sliding is detected;
and the request sending module is used for sending a verification request to the server at least according to the sliding data.
25. The apparatus according to claim 24, wherein the slide data determining module for determining slide data of the slide picture includes:
and determining the position of the sliding picture and the track point corresponding to the sliding picture sliding process when the sliding releasing instruction is detected.
26. The authentication apparatus of claim 25, further comprising:
the verification result receiving module is used for receiving the verification result fed back by the server; if the position of the sliding picture corresponds to the position of the target area and the track point is verified to be in accordance with the manual operation track through the machine learning model, the verification result is verification passing, and if the position of the sliding picture does not correspond to the position of the target area and/or the track point is verified to be not in accordance with the manual operation track through the machine learning model, the verification result is verification failing;
and the result execution module is used for executing the processing logic corresponding to the verification result.
27. The authentication apparatus of claim 25, further comprising:
the page request module is used for requesting to access a page before the picture verification code acquisition module acquires the picture verification code;
the result execution module is configured to execute processing logic corresponding to the verification result, including:
if the verification result is that the verification is passed, acquiring the access page and displaying the access page;
and if the verification result is that the verification is not passed, and the verification times do not exceed the preset retry times or the verification time does not exceed the preset timeout time, controlling the sliding detection module to execute the sliding instruction for detecting the sliding picture again, and sliding the sliding picture.
28. A server, comprising: at least one memory and at least one processor; the memory stores one or more computer-executable instructions that the processor invokes to perform the picture verification code generation method of any one of claims 1-10.
29. A terminal, comprising: at least one memory and at least one processor; the memory stores one or more computer-executable instructions that the processor invokes to perform the authentication method of any of claims 11-14.
30. A storage medium storing one or more computer-executable instructions for performing the picture authentication code generation method of any one of claims 1-10 or the authentication method of any one of claims 11-14.
CN202010390154.1A 2020-05-08 2020-05-08 Picture verification code generation method, verification method, device and related equipment Active CN111563941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010390154.1A CN111563941B (en) 2020-05-08 2020-05-08 Picture verification code generation method, verification method, device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010390154.1A CN111563941B (en) 2020-05-08 2020-05-08 Picture verification code generation method, verification method, device and related equipment

Publications (2)

Publication Number Publication Date
CN111563941A CN111563941A (en) 2020-08-21
CN111563941B true CN111563941B (en) 2023-12-22

Family

ID=72070894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010390154.1A Active CN111563941B (en) 2020-05-08 2020-05-08 Picture verification code generation method, verification method, device and related equipment

Country Status (1)

Country Link
CN (1) CN111563941B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241522B (en) * 2020-09-29 2024-02-09 全通金信控股(广东)有限公司 Picture verification code generation method and verification system
CN113190310B (en) * 2021-04-27 2023-03-14 中冶华天工程技术有限公司 Verification code design method based on random position object semantic recognition
CN113852619B (en) * 2021-09-22 2024-03-01 北京顶象技术有限公司 Interactive verification method and device and electronic equipment
CN114386011A (en) * 2021-12-10 2022-04-22 北京云测信息技术有限公司 Verification code picture generation method and device, electronic equipment and storage medium
CN114626047A (en) * 2022-03-04 2022-06-14 北京百度网讯科技有限公司 Verification method, device and equipment based on man-machine interaction
CN115150137B (en) * 2022-06-23 2023-06-23 浪潮通用软件有限公司 Redis-based high-frequency access early warning method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618350A (en) * 2015-01-15 2015-05-13 湘潭大学 Generation method of image checking code
CN105354480A (en) * 2014-08-20 2016-02-24 阿里巴巴集团控股有限公司 Verification code picture generation method and apparatus
CN108959900A (en) * 2018-07-10 2018-12-07 浪潮软件股份有限公司 Method for generating sliding verification code picture
CN109902470A (en) * 2019-01-08 2019-06-18 平安科技(深圳)有限公司 Sliding block verification method, device, computer equipment and storage medium
CN110135145A (en) * 2019-05-23 2019-08-16 四川新网银行股份有限公司 Click identifying code method based on turing test
CN110266497A (en) * 2013-12-04 2019-09-20 腾讯科技(深圳)有限公司 Auth method, device, server, user terminal and storage medium
CN110308846A (en) * 2019-05-22 2019-10-08 广西链全科技有限公司 A kind of generation of two-dimension translational puzzle type identifying code and verification method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670291B (en) * 2017-10-17 2022-08-09 腾讯科技(深圳)有限公司 Verification code implementation method and device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266497A (en) * 2013-12-04 2019-09-20 腾讯科技(深圳)有限公司 Auth method, device, server, user terminal and storage medium
CN105354480A (en) * 2014-08-20 2016-02-24 阿里巴巴集团控股有限公司 Verification code picture generation method and apparatus
CN104618350A (en) * 2015-01-15 2015-05-13 湘潭大学 Generation method of image checking code
CN108959900A (en) * 2018-07-10 2018-12-07 浪潮软件股份有限公司 Method for generating sliding verification code picture
CN109902470A (en) * 2019-01-08 2019-06-18 平安科技(深圳)有限公司 Sliding block verification method, device, computer equipment and storage medium
CN110308846A (en) * 2019-05-22 2019-10-08 广西链全科技有限公司 A kind of generation of two-dimension translational puzzle type identifying code and verification method
CN110135145A (en) * 2019-05-23 2019-08-16 四川新网银行股份有限公司 Click identifying code method based on turing test

Also Published As

Publication number Publication date
CN111563941A (en) 2020-08-21

Similar Documents

Publication Publication Date Title
CN111563941B (en) Picture verification code generation method, verification method, device and related equipment
CA2753694C (en) System and methods for automatically accessing a web site on behalf of a client
CN110377500A (en) Test method, device, terminal device and the medium of Website page
CN106485164A (en) A kind of image processing method and mobile terminal
US10339334B2 (en) Augmented reality captcha
CN107566200B (en) Monitoring method, device and system
CN104796428A (en) Dynamic verification method, client side, server and system
CN112818456B (en) Layer configuration method, electronic equipment and related products
US10706488B2 (en) Embedding debugging information via watermarks
CN113852619B (en) Interactive verification method and device and electronic equipment
CN109710362B (en) Screenshot processing method, computing device and computer storage medium
US11409849B2 (en) System, method and program for preventing unauthorized copies of webcomics and tracking replicated webcomics
CN109960753B (en) Method and device for detecting internet surfing equipment user, storage medium and server
RU2611961C2 (en) Method and system of regression testing of web page functionality, machine-readable data storage media
CN113296653B (en) Simulation interaction model construction method, interaction method and related equipment
DE102017117903A1 (en) Access permission to incorrect data
CN115205087A (en) Screen watermark generation method, system, device and storage medium
CN109308253B (en) Code detection method and device
CN111583159B (en) Image complement method and device and electronic equipment
US20210271588A1 (en) Rendering gui test object of application under test to reflect test information
CN112445514B (en) Code review method and related products
CN106528640A (en) Browser-based fingerprint check method and system
KR101995535B1 (en) Method and program for protecting copying webtoon
KR101837963B1 (en) System, method and program for protecting copying webtoon
CN105339974A (en) Simulating sensors

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant