+

CN108159700B - Method, device, storage medium, processor and terminal for generating verification code - Google Patents

Method, device, storage medium, processor and terminal for generating verification code Download PDF

Info

Publication number
CN108159700B
CN108159700B CN201810065477.6A CN201810065477A CN108159700B CN 108159700 B CN108159700 B CN 108159700B CN 201810065477 A CN201810065477 A CN 201810065477A CN 108159700 B CN108159700 B CN 108159700B
Authority
CN
China
Prior art keywords
verification code
code picture
tag
label
game
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
CN201810065477.6A
Other languages
Chinese (zh)
Other versions
CN108159700A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201810065477.6A priority Critical patent/CN108159700B/en
Publication of CN108159700A publication Critical patent/CN108159700A/en
Application granted granted Critical
Publication of CN108159700B publication Critical patent/CN108159700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/71Game security or game management aspects using secure communication between game devices and game servers, e.g. by encrypting game data or authenticating players
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method, a device, a storage medium, a processor and a terminal for generating a verification code. Wherein, the method comprises the following steps: acquiring at least one tag object, wherein at least one tag object has preset tag information; generating a verification code picture according to at least one label object; determining the label information of the verification code picture according to the label information of the label object contained in the verification code picture; and generating at least one group of verification questions and answers corresponding to the verification code picture according to the label information of the verification code picture. The invention solves the technical problems that the scheme of realizing the verification code by adopting a braille scheme or a jigsaw scheme in the prior art needs a large amount of databases and is easy to crack by a machine recognition technology.

Description

Method, device, storage medium, processor and terminal for generating verification code
Technical Field
The invention relates to the field of identity authentication, in particular to a method, a device, a storage medium, a processor and a terminal for generating a verification code.
Background
With the rapid development of the internet technology, the information security problem is increasingly prominent, and in order to prevent phenomena such as malicious password cracking, ticket swiping, forum water filling and the like, the prior art mainly adopts a verification code to distinguish whether a user is a computer or a human.
Currently, the most common verification code methods are "braille", "jigsaw", "identifying picture" (e.g. verification code of 12036 website).
However, with the improvement of signal processing and image recognition technologies, how to enrich the verification code database and how to improve the difficulty of machine cracking are urgent problems to be solved.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a storage medium, a processor and a terminal for generating a verification code, which at least solve the technical problems that in the prior art, a scheme of realizing the verification code by adopting a dot word or jigsaw scheme needs a large number of databases and is easy to crack by a machine identification technology.
According to an aspect of an embodiment of the present invention, there is provided a method of generating a verification code, including: acquiring at least one tag object, wherein at least one tag object has preset tag information; generating a verification code picture according to at least one label object; determining the label information of the verification code picture according to the label information of the label object contained in the verification code picture; and generating at least one group of verification questions and answers corresponding to the verification code picture according to the label information of the verification code picture.
Further, the position and/or the orientation of each label object in a preset coordinate space is determined according to the first parameters; at least one tag object in the coordinate space is virtually shot in at least one preset observation position in the coordinate space in at least one preset direction to generate at least one verification code picture.
Further, determining the tag information of the verification code picture according to the tag information of the tag object contained in the verification code picture includes: determining label information of the verification code picture according to preset label information of a label object and virtually shot dynamic label information contained in the verification code picture; the dynamic label information of the virtual shooting is determined according to at least any one of the following items: the method comprises the steps of presetting a viewing position, a preset direction, the position and/or orientation of each label object in a preset coordinate space, and the action of each label object.
Further, the tag object is a three-dimensional resource object, and the coordinate space is a three-dimensional space.
Further, the tag object is a game resource object model, and the coordinate space is a game scene space.
Further, at least one of the tag objects serves as a background for the authentication code picture.
Further, the verification questions and answers are the questions and answers for verifying the tag information of each verification code picture.
Further, obtaining at least one tag object, comprises: generating at least one game resource object model; and selecting or creating a game scene space according to the game resource object model.
Further, after selecting or creating a game scene space according to the game resource object model, the method comprises the following steps: adding any one or more game resource object models in the at least one game resource object model into the game scene space; and at least one preset observation position in the game scene space, capturing the screen of the game scene space added with the game resource object model in at least one preset direction to obtain at least one verification code picture.
Further, adding any one or more game resource object models of the at least one game resource object model to the game scene space includes: adding any one or more game resource object models in the at least one game resource object model into the game scene space according to any one of the following rules: random rules, predetermined game rules.
Further, the tag object in the verification code picture includes: the tag comprises a first tag object to be identified and a second tag object used as an interference element when the first tag object is identified.
Further, the tag object in the verification code picture includes: the game system comprises a first game entity to be identified or a static picture of the first game entity, and a second game entity or a static picture of the second game entity used as an interference element when the first game entity is identified.
According to an aspect of the embodiments of the present invention, there is also provided an apparatus for generating a verification code, including: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring at least one label object, and at least one of the label objects has preset label information; the first generating unit is used for generating a verification code picture according to at least one label object; the determining unit is used for determining the label information of the verification code picture according to the label information of the label object contained in the verification code picture; and the second generating unit is used for generating at least one group of verification questions and answers corresponding to the verification code picture according to the label information of the verification code picture.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus on which the storage medium is located is controlled to execute any one of the above methods for generating a verification code.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes a method for generating a verification code according to any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a terminal, including: one or more processors, memory, a display device, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of generating a validation code of any of the above.
In the embodiment of the invention, at least one label object is obtained, and at least one of the label objects has preset label information; generating a verification code picture according to at least one label object; determining the label information of the verification code picture according to the label information of the label object contained in the verification code picture; according to the tag information of the verification code picture, at least one group of verification problems and answers corresponding to the verification code picture are generated, the purposes of providing diversified verification code pictures and corresponding tag information by using game scenes and game entities and providing verification problems and answers based on game logic are achieved, the technical effect of improving the verification code identification difficulty is achieved, and the technical problems that in the prior art, a scheme of realizing the verification code by adopting a braille or jigsaw scheme needs a large number of databases and is easy to crack by a machine identification technology are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow diagram of a method of generating a verification code according to an embodiment of the invention;
FIG. 2 is a flow diagram of an alternative method of generating a verification code, according to an embodiment of the present invention;
FIG. 3 is a flow diagram of an alternative method of generating a verification code, according to an embodiment of the present invention;
FIG. 4 is a flow diagram of an alternative method of generating a verification code in accordance with embodiments of the present invention;
FIG. 5 is a flow diagram of a preferred method of generating a validation code in accordance with embodiments of the present invention; and
fig. 6 is a schematic diagram of an apparatus for generating a verification code according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided an embodiment of a method of generating a verification code, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Fig. 1 is a flowchart of a method for generating a verification code according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, at least one label object is obtained, and at least one of the label objects has preset label information.
Specifically, the tag object may be a three-dimensional resource model, or may also be a two-dimensional picture obtained by shooting the three-dimensional resource model, and in at least one obtained tag object, any one tag object may be selected as an element to be identified in the verification code picture, and other tag objects may be used as elements for interfering with identification of the object to be identified. Because the character verification code based on character recognition or the jigsaw scheme based on shape recognition is easy to crack through an image recognition technology, in addition, the interference elements added to the background are superposed on the characters to be recognized, which is easy to increase the difficulty of user recognition. Therefore, as an alternative embodiment, in the step S102 of the present application, the verification code picture is made by using the tag object with the tag information, so as to generate the verification problem and the answer for verifying the tag information, because the tag information of the tag object needs to be recognized by a certain logic by the user and cannot be directly obtained by the image recognition technology, the difficulty of cracking the verification code by the image recognition technology can be greatly increased.
In an alternative embodiment, the tag object may be a model of various game entities or game backgrounds in a 3D or 2.5D game, or a static picture corresponding to an entity element, a game scene (e.g., a three-dimensional game scene) or a static picture of a game scene is used as a background, a game entity (e.g., a game character, an NPC, and other virtual resource objects) or a static picture of a game entity in a game is used as a tag object in an authentication code picture, an authentication code picture with certain game logic may be generated, and authentication is performed through the game logic to verify whether a user to be authenticated is a machine or a human, which may convert simple "image recognition" into "answer to view", and since information (e.g., game-related information) that needs to be recognized by a human is added, on one hand, security of the authentication code is improved; on the other hand, the difficulty of user identification is not increased.
And step S104, generating a verification code picture according to at least one label object.
Specifically, the verification code image may be an image obtained by shooting or screenshot a model according to one or more acquired tag objects (e.g., a three-dimensional virtual model), or an image obtained by synthesizing static images corresponding to multiple tags; after the verification code picture is generated according to at least one tag object, the user for the identity to be verified can verify the identity of the user according to the tag information of the tag object contained in the verification code picture. The above tag information may refer to information describing an attribute of each tag object, for example, a character, a sex, a dressing color, a skin color, and the like of each game entity in the game.
In an optional embodiment, at least one of the at least one tag object may be a background of the verification code picture.
Taking a game as an example, the verification code picture may be a picture generated after one or more game entities are added to a game background.
It should be noted that, when the verification code picture including the game entity is generated, the function for generating the game entity may be called to generate a three-dimensional model of the game entity, and the function for generating the game is called to generate a three-dimensional model of the game scene, so as to generate a three-dimensional model of the game scene including the game entity according to the game entity and the three-dimensional model of the game scene, and further perform screenshot on the three-dimensional model of the game scene to generate the verification code picture including the game entity element, or synthesize a static picture of the game entity into the screenshot of the game scene, so as to obtain the verification code picture including the game entity element.
As a first optional implementation manner, the verification code picture may be generated according to a three-dimensional model of a game scene and a three-dimensional model of a game entity, and when the verification code picture is generated according to the three-dimensional model of the game scene and the three-dimensional model of the game entity, at least one three-dimensional model of the game entity and the game scene may be generated by calling different generation functions, and then, a screenshot is performed on the generated three-dimensional model of the game scene including the game entity, so as to obtain the verification code picture including the game entity.
Through the embodiment, the verification code pictures and the corresponding label information are generated according to the game scene and the three-dimensional model of the game entity, so that at least one group of verification problems and answers corresponding to each verification code picture are generated according to the label information of each verification code picture, the aims of providing diversified verification code pictures and corresponding label information and providing verification problems and answers based on game logic by using the game scene and the game entity are achieved, and the technical effect of improving the identification difficulty of the verification codes is achieved.
As a second optional implementation manner, the verification code picture may be generated according to a static picture of a game scene and a static picture of a game entity, and when the verification code picture is generated according to the static picture of the game scene and the static picture of the game entity, a screenshot of any one selected game scene may be used as a background picture, the selected at least one static picture of the game entity is used as a tag object, and the selected at least one static picture of the game entity is added to the selected static picture of the game scene, so that the verification code picture including the game entity is obtained.
Through the embodiment, the picture verification and the corresponding label information are generated according to the static pictures of the game scene and the static pictures of the game entity, so that at least one group of verification questions and answers corresponding to each verification code picture are generated according to the label information of each verification code picture, the aims of providing diversified verification code pictures and corresponding label information and providing verification questions and answers based on game logic by using the game scene and the game entity are achieved, and the technical effect of improving the difficulty of identifying the verification codes is achieved.
It should be noted that, compared with the second embodiment, the first optional embodiment uses a three-dimensional game scene of the game as a background, and different angles of different coordinates on a map of the game scene may have different scenery, so that after a game entity is synthesized into the game scene according to game logic, the game scene synthesized with the game entity may be subjected to screenshot in different angles of different coordinates, so that a plurality of verification code pictures may be obtained.
And step S106, determining the label information of the verification code picture according to the label information of the label object contained in the verification code picture.
Specifically, after selecting any one or more tag objects and generating the verification code picture according to the selected tag objects, the tag information of the verification code picture may be generated according to at least one tag object included in the verification code picture and the tag information of each tag object, that is, the tag information of the verification code picture includes all tag objects included in the verification code picture and the tag information of each tag object.
In an optional embodiment, the tag information of the tag object may be attribute information of the tag object, and taking a game as an example, the tag object may be each game entity in the game, and the tag information of the tag object may include, but is not limited to, at least one of the following: at least one of: number, location, expression, skin tone, hair color, clothing color, gender, occupation, action, ride vehicle.
Since in a game, by calling different generating functions, game entities with different attributes can be generated, for example, for a game entity "hero", the gender of the game entity may be male or female; skin color may be white, yellow, black, etc.; expressions include, but are not limited to, happy, sad, angry, etc.; since there may be one or more tag objects (i.e., game entities) contained in each verification code picture, and the attribute of each tag object may be different, after the tag information of the tag object contained in each verification code picture is obtained, the tag information of each verification code picture may be determined according to the tag information of the tag object contained in each verification code picture through the above step S104.
Step S108, generating at least one group of verification questions and answers corresponding to the verification code picture according to the label information of the verification code picture.
Specifically, the verification question and answer may be a question and answer for verifying the tag information of each verification code picture, that is, a question and a corresponding answer for prompting the user to be verified to answer in order to identify the identity information of the user to be verified. If the answer input by the user to be verified is the same as the generated answer of the verification question, the verification is successful; otherwise, the verification fails. After the tag information of the verification code picture is determined according to the tag objects contained in the verification code picture and the tag information of the tag objects, as the selected object to be identified can be one or more of at least one tag object contained in the verification code picture, different tag objects are selected as the object to be identified of the verification code picture for the same verification code picture, and different verification problems and answers can be generated.
For example, in a game, tag information of a verification code picture can be defined as follows:
Figure BDA0001556575940000071
the meaning of the above label is: in the picture with the picture number qn _2017122803051, there are two entities: monster, main role (Player), where there is one Monster (Cnt ═ 1), 5 players (Cnt ═ 1+2+1+1 ═ 5), 1 female painting (Cnt ": 1", "genter": 1 "," Class ": 10"), 2 male painting (Cnt ": 2", "genter": 0 "," Class ": 10"), 1 female doctor (Cnt ": 1", "genter": 1 "," Class ": 6"), one male doctor (Cnt ": 1", "genter": 0 "," Class ": 6"); thus, for this picture, the corresponding verification questions may include, but are not limited to: (1) there are several monsters in the figure; (2) there are several players in the figure; (3) there are several occupations in the figures; (4) how many female characters there are in the graph; (5) there are several drawings in the figure.
It should be noted that, for each verification code picture generated based on the game entity and the game scene as the background, the verification problems include, but are not limited to, the above-mentioned cases, and various known data in the game such as where each person is located, what action, color development of skin color, whether to ride or not may be added.
As an alternative embodiment, the verification question and answer may be a question and answer for verifying the tag information of each verification code picture. Since the tag information of each captcha picture is determined according to the tag information of the tag object included in each captcha picture, and the tag information of the tag object includes a certain logic (e.g., game logic) for identifying the tag object, the captcha pictures generated through the above steps S102 to S108 of the present application are difficult to identify through an image identification technique, and thus, the difficulty of breaking the captcha pictures can be greatly increased based on the verification problem and the answer of the tag information.
As can be seen from the above, in the above-mentioned embodiments of the present application, by adding tag information to the tag object used for generating the verification code picture in advance, after the at least one label object is obtained, generating a verification code picture according to one or more label objects in the obtained at least one label object, and determines as the tag information of the authentication code picture according to the tag information of the tag object contained in the authentication code picture, so as to generate at least one group of corresponding verification questions and answers according to the label information of each verification code picture, achieve the purpose of verifying the verification codes by identifying the label information of each verification code picture, thereby realizing the technical effect of improving the difficulty of identifying the verification codes, and further solves the technical problems that the scheme of realizing the verification code by adopting a braille scheme or a jigsaw scheme in the prior art needs a large amount of databases and is easy to crack by a machine recognition technology.
Since the tag object used for generating the verification code picture in the embodiments of the present application is a three-dimensional resource object (i.e., a three-dimensional model) or a two-dimensional picture corresponding to a three-dimensional resource, since each three-dimensional resource object may be located at a different position and have a different orientation in a virtual space (including a three-dimensional space and a two-dimensional space) when each three-dimensional resource object is generated, as an alternative embodiment, the generating the verification code picture according to at least one tag object may include the following steps:
step S202, determining the position and/or orientation of each label object in a preset coordinate space according to the first parameter;
step S204, at least one label object in the coordinate space is virtually shot in at least one preset direction at least one preset observation position in the coordinate space to generate at least one verification code picture.
Specifically, since each tag object used for generating the verification code picture may be a three-dimensional resource model generated by calling a preset generation function, or a static picture obtained by capturing a generated three-dimensional resource model, the three-dimensional resource model being located at different positions in the space and having different orientations, and being used for generating different verification code pictures, the first parameter may be a parameter that makes the position or orientation of each tag object in the space more natural and logical, for example, a parameter that makes the position and/or orientation of the game resource object model in the game scene space more natural and more consistent with the game rules in the game (for example, placing a character in the game on the ground in the game scene).
The tag object may be a three-dimensional resource object or a two-dimensional resource object, and correspondingly, the coordinate space may be a three-dimensional space or a two-dimensional space. As a preferred embodiment, the present application will be described by taking an example in which the tag object is a three-dimensional resource object and the coordinate space is a three-dimensional space. Taking a game as an example, the coordinate space may be a game scene space of a 3D or 2.5D game.
For each tag object, different pictures are taken from different angles, and thus, as an alternative embodiment, determining the tag information of the verification code picture according to the tag information of the tag object contained in the verification code picture may include: determining label information of the verification code picture according to preset label information of a label object and virtually shot dynamic label information contained in the verification code picture; the dynamic label information of the virtual shooting is determined according to at least any one of the following items: the method comprises the steps of presetting a viewing position, a preset direction, the position and/or orientation of each label object in a preset coordinate space, and the action of each label object.
Specifically, in the above-described embodiment, the dynamic tag information of the virtual photographing may be information that dynamically changes when the tag object is virtually photographed, such as the position of a photographing point (i.e., a preset observation position), the angle (i.e., a preset direction), the position or orientation of each tag object within a preset coordinate space, and the motion information of each tag object (e.g., a change in the body posture of a leading corner in a game, etc.).
Through the embodiment, a large amount of label information of the verification code pictures can be generated according to the preset label information of the label object contained in each verification code picture and the virtually shot dynamic label information, so that fewer pictures are used, and a rich verification code database is provided.
Taking a game as an example, in an optional embodiment, the tag object may be a game resource object model, and the coordinate space is a game scene space.
Based on the foregoing embodiment, as an optional implementation manner, as shown in fig. 3, the obtaining of at least one tag object may include the following steps:
step S302, generating at least one game resource object model;
step S304, a game scene space is selected or created according to the game resource object model.
Specifically, in the above embodiment, the game resource object model may be a middle three-dimensional game entity of a three-dimensional game, one or more game resource object models having different attributes are generated by calling a generation function of the game entity for generating different attributes in the game, and different game scenes are generated by calling a function of a game scene model for generating different attributes in the game, for example, a principal of a certain gender and a certain occupation may be generated by calling a function createpender (name, gender, occupation); the non-player controlled character may be generated by calling the function createpc (npcid). It should be noted that the game scene space may be a game scene in the existing game or a game scene newly created by a generating function.
Based on the above embodiment, as shown in fig. 4, after selecting or creating a game scene space according to the game resource object model, the method may further include the following steps:
step S402, any one or more game resource object models in at least one game resource object model are added into the game scene space.
Optionally, when any one or more of the at least one game resource object model is added to the game scene space, any one or more of the at least one game resource object model may be added to the game scene space according to any one of the following rules: random rules, predetermined game rules.
If one or more game entities are added into a game scene according to a random rule, and finally a verification code picture is obtained, the game entities (namely game resource object models) are randomly distributed in a game scene space; if one or more game entities (namely game resource object models) are added into the game scene space according to a preset game rule, finally, the verification code pictures are obtained, and the game entities are distributed in the game scene space according to a certain game logic.
Step S404, at least one preset observation position in the game scene space, capturing the game scene space added with the game resource object model in at least one preset direction to obtain at least one verification code picture.
Specifically, under the condition that the game scene is a three-dimensional virtual scene, different verification code pictures can be obtained by performing screenshot at different positions in the game scene, and after one or more game resource object models are added to the game scene space, screenshot at different positions and in different directions can be performed on the game scene space to which the game entity (resource object model) is added, so that a plurality of verification code pictures can be obtained. Specifically, after at least one coordinate position in a game scene is obtained, the game scene added with a game entity is virtually shot and captured in multiple directions at each coordinate position to obtain multiple verification code pictures.
According to the scheme disclosed by the embodiment, different positions and different angles of the three-dimensional game scene have different landscapes, so that different coordinate positions are selected in the three-dimensional game scene, and the three-dimensional game scene is shot and captured in multiple directions at each coordinate position, so that a large number of verification code pictures can be obtained.
As another alternative, a static picture of the game resource object model may be used to generate the verification code picture, and specifically, one or more game entities (game resource object models) with different attributes may be generated by invoking a generation function of the game entity for generating different attributes, and the generated game entity (game resource object model) is photographed and captured, so that the static picture of the game entity (game resource object model) with different attributes may be obtained. When obtaining the static picture of the game scene, as a first optional implementation manner, the game scene can be selected from the existing games according to the game entity, and the screenshot is performed to obtain the static picture of the game scene; as a second optional implementation, a new game scene may also be created according to the game entity, and a screenshot is captured to obtain a static picture of the game scene. If the second optional implementation manner is adopted, different game scenes can be generated by calling functions of game scene models for generating different attributes in a game, at least one coordinate position is selected in a three-dimensional game scene, and the game scene is shot and captured in multiple directions at each coordinate position to obtain multiple static pictures of different game scenes. And finally, synthesizing the static image of the game resource object model and the static image of the game scene to generate a verification code image.
Optionally, the static picture of the game resource object model and the static picture of the game scene may be synthesized to generate the verification code picture according to any one of the following rules: random rules, predetermined game rules.
If the static pictures of one or more game entities are added to the static pictures of the game scene according to the random rule, the verification code picture is finally obtained, and the game entities are randomly distributed in the two-dimensional game scene; if the static pictures of one or more game entities are added to the static pictures of the game scene according to the preset game rules, the game entities are distributed in the two-dimensional game scene according to certain game logic in the finally obtained verification code picture.
In order to further improve the difficulty of identifying the verification code picture through the image identification technology, based on any one of the optional embodiments, as an optional embodiment, the tag object in the verification code picture may include: the tag comprises a first tag object to be identified and a second tag object used as an interference element when the first tag object is identified.
Through the embodiment, the generated verification code picture not only comprises the first tag object to be identified, but also comprises the second tag object which is used as an interference element when the object to be identified is identified, so that the difficulty of identifying the verification code picture by a machine is further increased.
Taking a game as an example, if the verification problem of one verification code picture is the number of actors contained in the verification picture, therefore, the same verification code picture not only contains the entity element of the actors, but also contains various entity elements such as NPC and monsters, and the entity elements as noise can further increase the difficulty of machine recognition of the verification code picture.
It is easy to notice that reasonable noise is not hard to be normal like the traditional identifying code, but is difficult to distinguish by the image identification technology. For example, in the prior art, the difficulty of recognizing characters by a machine is increased by twisting characters or adding messy codes, but on one hand, the difficulty of recognizing verification codes by normal users is also increased.
As a preferred implementation manner, fig. 5 is a flowchart of a preferred method for generating a verification code according to an embodiment of the present invention, as shown in fig. 5, including the following steps:
in step S501, a game entity is selected. Selected game entities include, but are not limited to, hero, NPC, monster, plant (flowers, grass, trees), animal (e.g., bird, rabbit), and the like.
Step S502, a tag object is prepared. The physical objects (or pictures of the physical objects) having different attributes are generated by calling corresponding generating functions implemented within the game.
In step S503, a background is selected. A game scene (or a picture of a game scene) within the game may be selected that is unobstructed.
Step S504, add an interference element. For example, the interference of a humanoid NPC within a game with a hero, or the interference between different expressions, actions or fashion items of a hero.
Step S505 generates a verification code picture and corresponding tag information. And generating identification information for each generated verification code picture, and recording the label information of each verification code picture through a text.
Step S506, generating a verification question and an answer of the verification code picture. For example, the tag information of a certain verification code picture is: 1 NPC, 1 monster, 1 girl painting soul, the generated verification question and answer may be: several persons (3) in the picture; which job (soul) in the picture; gender of the primary education in the picture (woman); there are several principal angles (1) in the picture.
Through the scheme disclosed by the embodiment, the following technical effects can be achieved:
(1) the game logic (label information) is added into the verification code picture, the verification code problem is converted from a simple image recognition problem into a complex image answering problem, the difficulty of machine recognition is increased, and a normal user (person) can increase the difficulty of machine recognition through simple logic recognition instead of only relying on visual recognition difficulty like the prior art, and meanwhile, the normal person is difficult.
(2) And a large number of pictures with marks are generated by using a small number of marks, so that the marking problem is solved. For example, 10 monsters, npc, 10 maps, 20 shots per map, 4 directions per shot, 1-5 objects per picture, and at least 1700 non-repeating pictures can be generated. Namely, it is
Figure BDA0001556575940000121
(3) With the logic within the game, the problem difficulty is increased. By reasonably designing the verification questions and answers of the verification code picture, the difficulty of machine identification of the verification code can be greatly improved.
It should be noted that the tag object used for generating the verification code picture may be randomly generated, and when the tag object is a game entity, the game entity is synthesized into a game scene, and a screenshot is performed on the game scene where the game entity is synthesized, so that a large number of verification code pictures with tags can be obtained, and then at least one set of verification questions and answers is generated according to the tag object included in each verification code picture.
According to an embodiment of the present invention, an apparatus embodiment for implementing the method for generating the verification code is further provided, fig. 6 is a schematic diagram of an apparatus for generating the verification code according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes: an acquisition unit 601, a first generation unit 603, a determination unit 605, and a second generation unit 607.
The acquiring unit 601 is configured to acquire at least one tag object, where at least one of the tag objects has preset tag information;
a first generating unit 603, configured to generate a verification code picture according to at least one tag object;
a determining unit 605, configured to determine tag information of the verification code picture according to tag information of a tag object included in the verification code picture;
the second generating unit 607 is configured to generate at least one set of verification questions and answers corresponding to the verification code picture according to the tag information of the verification code picture.
It should be noted here that the above-mentioned obtaining unit 601, first generating unit 603, determining unit 605 and second generating unit 607 correspond to steps S102 to S108 in the method embodiment, and the above-mentioned modules are the same as examples and application scenarios realized by the corresponding steps, but are not limited to what is disclosed in the above-mentioned method embodiment. It should be noted that the modules described above as part of an apparatus may be implemented in a computer system such as a set of computer-executable instructions.
As can be seen from the above, in the above embodiment of the present application, after at least one tag object is obtained by the obtaining unit 801, the first generating unit 803 generates the verification code picture according to one or more tag objects in the obtained at least one tag object, and the determining unit 605 generates the tag information of the verification code picture according to the tag information of the tag object included in the verification code picture, so that the second generating unit 805 generates at least one set of verification problems and answers corresponding to the verification code picture according to the tag information of the verification code picture, thereby achieving the purpose of verifying the verification code by identifying the tag information of each verification code picture, achieving the technical effect of improving the difficulty of identifying the verification code, and further solving the problem of realizing the verification code by using a dot word or jigsaw scheme in the prior art, a large amount of databases are needed and the technical problem of easy cracking by machine recognition technology is solved.
In an alternative embodiment, the verification questions and answers may be questions and answers for verifying the label information of each verification code picture.
In an alternative embodiment, the first generating unit may include: the determining module is used for determining the position and/or the orientation of each label object in a preset coordinate space according to the first parameter; the first generation module is used for virtually shooting at least one label object in the coordinate space in at least one preset observation position in the coordinate space in at least one preset direction to generate at least one verification code picture.
In an optional embodiment, the determining unit is further configured to determine the tag information of the verification code picture according to preset tag information of a tag object included in the verification code picture and virtually-photographed dynamic tag information; the dynamic label information of the virtual shooting is determined according to at least any one of the following items: the method comprises the steps of presetting a viewing position, a preset direction, the position and/or orientation of each label object in a preset coordinate space, and the action of each label object.
In an alternative embodiment, the tag object is a three-dimensional resource object, and the coordinate space is a three-dimensional space.
In an optional embodiment, the tag object is a game resource object model, and the coordinate space is a game scene space.
In an alternative embodiment, at least one of the above tag objects serves as a background for the verification code picture.
In an alternative embodiment, the obtaining unit may include: a second generation module for generating at least one game resource object model; and the acquisition module is used for selecting or creating a game scene space according to the game resource object model.
In an optional embodiment, the apparatus further comprises: the first processing module is used for adding any one or more game resource object models in at least one game resource object model into a game scene space; and the second processing module is used for carrying out screenshot on the game scene space added with the game resource object model in at least one preset observation position in the game scene space in at least one preset direction to obtain at least one verification code picture.
In an optional embodiment, the first processing module is further configured to add any one or more game resource object models of the at least one game resource object model to the game scene space according to any one of the following rules: random rules, predetermined game rules.
Based on any optional embodiment, as an optional embodiment, the tag object in the verification code picture includes: the tag comprises a first tag object to be identified and a second tag object used as an interference element when the first tag object is identified.
According to an embodiment of the present invention, there is further provided a storage medium including a stored program, where the program, when executed, controls a device on which the storage medium is located to perform any one of the optional or preferred methods for generating a verification code in the foregoing method embodiments.
According to an embodiment of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes any one of the optional or preferred methods for generating the verification code in the foregoing method embodiments.
According to an embodiment of the present invention, there is also provided a terminal including: one or more processors, a memory, a display device, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any one of the optional or preferred methods of generating a passcode of the above method embodiments.
The above-mentioned apparatus may comprise a processor and a memory, and the above-mentioned units may be stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement the corresponding functions.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The order of the embodiments of the present application described above does not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways.
The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (13)

1. A method of generating a verification code, comprising:
acquiring at least one tag object, wherein at least one tag object has preset tag information;
generating a verification code picture according to the at least one label object;
determining the label information of the verification code picture according to the label information of the label object contained in the verification code picture;
generating at least one group of verification questions and answers corresponding to the verification code picture according to the label information of the verification code picture;
the verification questions and answers are questions and answers for verifying the label information of the verification code picture;
wherein generating the verification code picture according to the at least one tag object comprises:
determining the position and/or orientation of each label object in a preset coordinate space according to the first parameter;
and virtually shooting the at least one label object in the coordinate space in at least one preset observation position in the coordinate space in at least one preset direction to generate at least one verification code picture.
2. The method of claim 1, wherein determining the tag information of the captcha picture according to the tag information of the tag object contained in the captcha picture comprises:
determining the label information of the verification code picture according to the preset label information of the label object contained in the verification code picture and the virtually shot dynamic label information;
wherein the dynamic tag information of the virtual shooting is determined according to at least any one of the following items: the preset observation position, the preset direction, the position and/or orientation of each label object in the preset coordinate space, and the action of each label object.
3. The method of claim 1 or 2, wherein the tag object is a three-dimensional resource object and the coordinate space is a three-dimensional space.
4. The method of claim 1 or 2, wherein the tag object is a game resource object model and the coordinate space is a game scene space.
5. The method of claim 4, wherein obtaining at least one tag object comprises:
generating at least one game resource object model;
and selecting or creating a game scene space according to the game resource object model.
6. The method of claim 5, after selecting or creating a game scene space based on the game resource object model, comprising:
adding any one or more game resource object models of the at least one game resource object model to the game scene space;
and at least one preset observation position in the game scene space, capturing the game scene space added with the game resource object model in at least one preset direction to obtain at least one verification code picture.
7. The method of claim 6, wherein adding any one or more of the at least one game resource object model to the game scene space comprises:
adding any one or more game resource object models in the at least one game resource object model to the game scene space according to any one of the following rules: random rules, predetermined game rules.
8. A method of generating a verification code, comprising:
acquiring at least one tag object, wherein at least one tag object has preset tag information;
generating a verification code picture according to the at least one label object;
determining the label information of the verification code picture according to the label information of the label object contained in the verification code picture;
generating at least one group of verification questions and answers corresponding to the verification code picture according to the label information of the verification code picture;
wherein at least one of the tag objects serves as a background for the verification code picture;
wherein generating the verification code picture according to the at least one tag object comprises:
determining the position and/or orientation of each label object in a preset coordinate space according to the first parameter;
and virtually shooting the at least one label object in the coordinate space in at least one preset observation position in the coordinate space in at least one preset direction to generate at least one verification code picture.
9. A method of generating a verification code, comprising:
acquiring at least one tag object, wherein at least one tag object has preset tag information;
generating a verification code picture according to the at least one label object;
determining the label information of the verification code picture according to the label information of the label object contained in the verification code picture;
generating at least one group of verification questions and answers corresponding to the verification code picture according to the label information of the verification code picture;
wherein the tag object in the verification code picture comprises: the tag comprises a first tag object to be identified and a second tag object used as an interference element when the first tag object is identified;
wherein generating the verification code picture according to the at least one tag object comprises:
determining the position and/or orientation of each label object in a preset coordinate space according to the first parameter;
and virtually shooting the at least one label object in the coordinate space in at least one preset observation position in the coordinate space in at least one preset direction to generate at least one verification code picture.
10. An apparatus for generating a verification code, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring at least one label object, and at least one of the label objects has preset label information;
the first generating unit is used for generating a verification code picture according to the at least one label object;
the determining unit is used for determining the label information of the verification code picture according to the label information of the label object contained in the verification code picture;
the second generation unit is used for generating at least one group of verification questions and answers corresponding to the verification code picture according to the label information of the verification code picture;
the verification questions and answers are questions and answers for verifying the label information of the verification code picture;
wherein the first generation unit includes: determining the position and/or orientation of each label object in a preset coordinate space according to the first parameter;
and virtually shooting the at least one label object in the coordinate space in at least one preset observation position in the coordinate space in at least one preset direction to generate at least one verification code picture.
11. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the method for generating the verification code according to any one of claims 1 to 9.
12. A processor, configured to run a program, wherein the program when running performs the method of generating a verification code according to any one of claims 1 to 9.
13. A terminal, comprising:
one or more processors, memory, a display device, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of generating a validation code of any of claims 1 to 9.
CN201810065477.6A 2018-01-23 2018-01-23 Method, device, storage medium, processor and terminal for generating verification code Active CN108159700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810065477.6A CN108159700B (en) 2018-01-23 2018-01-23 Method, device, storage medium, processor and terminal for generating verification code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810065477.6A CN108159700B (en) 2018-01-23 2018-01-23 Method, device, storage medium, processor and terminal for generating verification code

Publications (2)

Publication Number Publication Date
CN108159700A CN108159700A (en) 2018-06-15
CN108159700B true CN108159700B (en) 2021-09-24

Family

ID=62515733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810065477.6A Active CN108159700B (en) 2018-01-23 2018-01-23 Method, device, storage medium, processor and terminal for generating verification code

Country Status (1)

Country Link
CN (1) CN108159700B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382413A (en) * 2018-12-28 2020-07-07 武汉极意网络科技有限公司 Memory, and verification code implementation method, device and equipment based on reasoning
CN110210204B (en) * 2019-05-30 2021-07-13 网易(杭州)网络有限公司 Verification code generation method and device, storage medium and electronic equipment
CN111143813B (en) * 2019-12-27 2022-02-22 网易(杭州)网络有限公司 Verification problem generation method, verification method and device
CN113626114A (en) * 2020-05-08 2021-11-09 北京密境和风科技有限公司 Picture loading method, system, storage medium and computer equipment thereof
CN112288060B (en) * 2020-11-09 2025-02-21 北京沃东天骏信息技术有限公司 Method and apparatus for identifying tags
CN113158167B (en) * 2021-04-30 2024-02-23 腾讯音乐娱乐科技(深圳)有限公司 Verification code implementation method, electronic equipment and computer readable storage medium
CN113570680B (en) * 2021-07-30 2024-11-05 咪咕文化科技有限公司 Verification code generation method, device and computing equipment based on image filtering transformation
CN115146249A (en) * 2022-05-24 2022-10-04 瑞数信息技术(上海)有限公司 Information verification method, device, electronic device and readable storage medium
CN114936356A (en) * 2022-06-06 2022-08-23 咪咕文化科技有限公司 Identity verification method, device, equipment and computer storage medium
CN119577730A (en) * 2024-10-30 2025-03-07 中移互联网有限公司 A verification code verification method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895542A (en) * 2010-07-05 2010-11-24 北京畅游时空软件技术有限公司 Verification code acquiring method and device
CN104468101A (en) * 2013-09-12 2015-03-25 深圳市腾讯计算机系统有限公司 User identity authentication method and device and authentication service system
CN106920266A (en) * 2015-12-28 2017-07-04 腾讯科技(深圳)有限公司 The Background Generation Method and device of identifying code
CN107026842A (en) * 2016-11-24 2017-08-08 阿里巴巴集团控股有限公司 A kind of method and device of generation and the authentication of safety problem
CN107066862A (en) * 2007-09-24 2017-08-18 苹果公司 Embedded authentication systems in electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938466A (en) * 2010-07-30 2011-01-05 百度在线网络技术(北京)有限公司 Open knowledge bases method and equipment for user authentication
CN103428163A (en) * 2012-05-15 2013-12-04 上海博路信息技术有限公司 Verification code based on image content
US10171454B2 (en) * 2012-08-23 2019-01-01 Alejandro V. Natividad Method for producing dynamic data structures for authentication and/or password identification
CN104468486B (en) * 2013-09-23 2019-01-15 联想(北京)有限公司 Information processing method, system and electronic equipment
CN106485114B (en) * 2016-11-10 2019-12-31 北京像素软件科技股份有限公司 Data verification method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066862A (en) * 2007-09-24 2017-08-18 苹果公司 Embedded authentication systems in electronic equipment
CN101895542A (en) * 2010-07-05 2010-11-24 北京畅游时空软件技术有限公司 Verification code acquiring method and device
CN104468101A (en) * 2013-09-12 2015-03-25 深圳市腾讯计算机系统有限公司 User identity authentication method and device and authentication service system
CN106920266A (en) * 2015-12-28 2017-07-04 腾讯科技(深圳)有限公司 The Background Generation Method and device of identifying code
CN107026842A (en) * 2016-11-24 2017-08-08 阿里巴巴集团控股有限公司 A kind of method and device of generation and the authentication of safety problem

Also Published As

Publication number Publication date
CN108159700A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN108159700B (en) Method, device, storage medium, processor and terminal for generating verification code
CN112348969B (en) Display method and device in augmented reality scene, electronic equipment and storage medium
US11256901B2 (en) Image information processing method and apparatus, and computer storage medium
US12002160B2 (en) Avatar generation method, apparatus and device, and medium
TWI738717B (en) Verification processing method and device based on verification code
CN113362263B (en) Method, apparatus, medium and program product for transforming an image of a virtual idol
CN111639613B (en) Augmented reality AR special effect generation method and device and electronic equipment
CN109035415B (en) Virtual model processing method, device, equipment and computer readable storage medium
CN114494556A (en) Special effect rendering method, device and equipment and storage medium
KR101500798B1 (en) Method and apparatus for making avatar
CN114917590B (en) Virtual reality game system
KR102805529B1 (en) Device and method for image automatic generation
CN109876457A (en) Game role generation method, device and storage medium
CN114758041B (en) Virtual object display method, device, electronic device and storage medium
KR20200052812A (en) Activity character creating method in virtual environment
KR102758007B1 (en) Apparatus and Method for providing facial motion retargeting of 3 dimensional virtual character
KR20230134832A (en) A Method For Creating realistic shape Model
CN114425162A (en) Video processing method and related device
CN114049130A (en) Virtual resource generation and acquisition method and device, electronic equipment and storage medium
CN113643417A (en) Image adjusting method and device, electronic equipment and storage medium
CN116912639B (en) Training method and device of image generation model, storage medium and electronic equipment
CN116778107B (en) Expression model generation method, device, equipment and medium
JP2025138557A (en) Avatar output device, avatar output method, and avatar output program
CN116935461A (en) Method and device for generating face picture in mixed attack style
HK40068048A (en) Special effect rendering method, equipment, device and storage medium

Legal Events

Date Code Title Description
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载