CN108270796B - Method, device and system for verifying image verification code - Google Patents

Method, device and system for verifying image verification code Download PDF

Info

Publication number
CN108270796B
CN108270796B CN201810167347.3A CN201810167347A CN108270796B CN 108270796 B CN108270796 B CN 108270796B CN 201810167347 A CN201810167347 A CN 201810167347A CN 108270796 B CN108270796 B CN 108270796B
Authority
CN
China
Prior art keywords
image
depth
verification code
original image
depth value
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
CN201810167347.3A
Other languages
Chinese (zh)
Other versions
CN108270796A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810167347.3A priority Critical patent/CN108270796B/en
Publication of CN108270796A publication Critical patent/CN108270796A/en
Application granted granted Critical
Publication of CN108270796B publication Critical patent/CN108270796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2133Verifying human interaction, e.g., Captcha

Abstract

The application discloses a method, a device and a system for verifying an image verification code, wherein the method comprises the following steps: receiving a request of a user for using network resources; displaying verification information, the verification information comprising: the method comprises the following steps of obtaining an original image, an identification image, a plurality of to-be-selected image verification codes and indication information by shooting a plurality of objects with different depth degrees, wherein the indication information comprises: determining conditions required for a target image verification code, the conditions including at least: a depth degree condition; the identification image is composed of identifications for representing the depth degree of an object represented by each pixel point in the original image; if the image verification code to be verified selected by the user meets the condition required by the target image verification code, allowing the user to use the network resource; otherwise the user is not allowed to use the network resources. Since the image verification code including at least the depth degree condition is more difficult for the machine to recognize from the plurality of candidate image verification codes due to the information of the depth degree.

Description

Method, device and system for verifying image verification code
Technical Field
The present application relates to the field of image processing, and in particular, to a method, an apparatus, and a system for verifying an image verification code.
Background
At present, the rapid development of the internet brings convenience to people, and users can use internet resources according to own requirements, for example, various information such as articles, images, sounds and videos required by the users can be acquired from the internet. However, at present, a machine with a program maliciously uses internet resources, for example, downloads free resources in a large amount, sends spam mails in a mass mode, and performs saturation attacks, and these illegal uses not only occupy internet resources in a large amount, but also may lead to server paralysis and affect normal use of users when the server is seriously used.
In order to avoid server paralysis, user authentication is required before a user accesses network resources, and authentication is performed by using an authentication code with certain identification difficulty on a machine in the prior art.
However, the inventor finds in research that, in the prior art, a machine has a high recognition rate for a target verification code using a network resource, so that the machine can easily pass identity verification and then use the network resource, and therefore, it is necessary to reduce the recognition rate of the machine for the target verification code using the network resource.
Disclosure of Invention
In order to solve the above problem, the present application provides a method for verifying an image verification code, so as to reduce the recognition rate of a machine to a target verification code using a network resource.
The application also provides a verification device and a verification system of the image verification code, which are used for ensuring the realization and the application of the method in practice.
The technical scheme for solving the problems is as follows:
the application discloses a verification method of an image verification code, which comprises the following steps:
receiving a request of a user for using network resources;
displaying verification information, the verification information comprising: the image processing method comprises the following steps of obtaining an original image, an identification image, a plurality of to-be-selected image verification codes and indication information by shooting a plurality of objects with different depth degrees, wherein the identification image is as follows: the image is composed of identifications corresponding to all pixel points in the original image, wherein the identifications corresponding to the pixel points describing objects with the same depth degree in the original image are the same; the plurality of candidate image verification codes are as follows: a plurality of regions to be selected are selected from the original image or the identification image; the indication information includes: determining conditions required by a target image verification code from the plurality of candidate image verification codes, wherein the conditions at least comprise: a depth degree condition;
receiving selection information input by a user, and determining an image verification code to be verified corresponding to the selection information;
if the image verification code to be verified meets the condition required by the target image verification code, allowing the user to use network resources; and if the image verification code to be verified does not meet the condition required by the target image verification code, not allowing the user to use the network resource.
Wherein the identification image is generated by:
obtaining a depth value representing the depth degree of an object described by a pixel point in an original image; the depth value is used for representing the distance between an object described by a pixel point in the original image and the image pickup equipment during shooting;
according to the corresponding depth value of each pixel point in the original image, dividing the pixel points in the original image into: characterizing at least two sets of different depth degrees;
marking the pixel points of different sets by adopting different identifications;
and determining the marked image as the identification image.
Wherein, the dividing of the pixel points in the original image is: at least two sets representing different depth levels, including:
determining a depth value range formed by the maximum depth value and the minimum depth value;
dividing the depth value range into at least two different target depth value ranges;
and aiming at each target depth value range, dividing pixel points of which the depth values belong to the target depth value range into a set to obtain at least two sets corresponding to at least two different depth value ranges.
The obtaining of the depth value representing the depth degree of the object described by the pixel point in the original image includes:
acquiring a depth image corresponding to the original image, wherein the pixel value of a pixel point in the depth image represents the depth degree of an object represented by the pixel point;
and obtaining a depth value representing the depth degree of an object described by the pixel points in the original image from the pixel values of the pixel points in the depth image.
Wherein the conditions required for determining the target image verification code further include: a location condition for defining a location of the target image verification code within the identification image.
The application also discloses verifying attachment of image identifying code, and the device includes:
a receiving unit, configured to receive a request for a user to use a network resource;
a display unit for displaying authentication information, the authentication information including: the image processing method comprises the following steps of obtaining an original image, an identification image, a plurality of to-be-selected image verification codes and indication information by shooting a plurality of objects with different depth degrees, wherein the identification image is as follows: the image is composed of identifications corresponding to all pixel points in the original image, wherein the identifications corresponding to the pixel points describing objects with the same depth degree in the original image are the same; the plurality of candidate image verification codes are as follows: a plurality of regions to be selected from the original image or the identification image, wherein the indication information includes: determining conditions required by a target image verification code from the plurality of candidate image verification codes, wherein the conditions at least comprise: a depth degree condition;
the device comprises a determining unit, a verification unit and a verification unit, wherein the determining unit is used for receiving selection information input by a user and determining an image verification code to be verified corresponding to the selection information;
the execution unit is used for allowing a user to use network resources if the image verification code to be verified meets the condition required by the target image verification code; and if the image verification code to be verified does not meet the condition required by the target image verification code, not allowing the user to use the network resource.
Wherein the apparatus further comprises:
a generation unit configured to generate an identification image;
wherein the generating unit includes:
the acquisition subunit is used for acquiring a depth value representing the depth degree of an object described by a pixel point in the original image; the depth value is used for representing the distance between an object described by a pixel point in the original image and the image pickup equipment during shooting;
a dividing subunit, configured to divide, according to depth values corresponding to the pixel points in the original image, the pixel points in the original image into: characterizing at least two sets of different depth degrees;
the marking subunit is used for marking the pixel points of different sets by adopting different identifications;
and the determining subunit is used for determining the marked image as the identification image.
Wherein the molecular dividing unit comprises:
the determining module is used for determining a depth value range formed by the maximum depth value and the minimum depth value;
a first partitioning module for partitioning the depth value range into at least two different target depth value ranges;
and the second dividing module is used for dividing pixel points of which the depth values belong to the target depth value range into a set aiming at each target depth value range to obtain at least two sets corresponding to at least two different depth value ranges.
Wherein the obtaining subunit includes:
the first acquisition module is used for acquiring a depth image corresponding to the original image, and the pixel value of a pixel point in the depth image represents the depth degree of an object represented by the pixel point;
and the second acquisition module is used for acquiring a depth value representing the depth degree of the object described by the pixel point in the original image from the pixel value of the depth image.
The application also discloses a verification system of the image verification code, which comprises: a client and a server;
the client is used for sending a request for using network resources to the server;
the server is used for displaying verification information, and the verification information comprises: the image processing method comprises the following steps of obtaining an original image, an identification image, a plurality of to-be-selected image verification codes and indication information by shooting a plurality of objects with different depth degrees, wherein the identification image is as follows: the image is composed of identifications corresponding to all pixel points in the original image, wherein the identifications corresponding to the pixel points describing objects with the same depth degree in the original image are the same; the plurality of candidate image verification codes are as follows: a plurality of regions to be selected from the original image or the identification image, wherein the indication information includes: determining conditions required by a target image verification code from the plurality of candidate image verification codes, wherein the conditions at least comprise: a depth degree condition;
the client is further used for sending selected information determined by the user from the verification information to the server;
the server is further used for determining an image verification code to be verified corresponding to the selection information;
the server is also used for allowing the client to use network resources when the image verification code to be verified conforms to the condition required by the target image verification code; and when the image verification code to be verified does not meet the condition required by the target image verification code, the client is not allowed to use network resources.
The application includes the following advantages:
in the embodiment of the application, the depth degrees of the original image and the identification image in the same coordinate region correspond to each other, and a user needs to determine a target image verification code meeting a condition of the related depth degree from a plurality of candidate image verification codes selected from the original image or the identification image based on the corresponding relationship. Because the corresponding relation of the original image and the identification image in the depth degree of the same coordinate area has higher requirements on the visual function of the depth degree judgment of the user, the machine is more difficult to identify the target image verification code at least comprising the depth degree condition, and furthermore, the identification rate of the machine to the target image verification code can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of an embodiment of a method for verifying an image verification code according to the present application;
FIG. 2 is a flow chart of an embodiment of a method for generating a logo image according to the present application;
FIG. 3 is a schematic structural diagram of an embodiment of an apparatus for verifying an image verification code according to the present application;
fig. 4 is a schematic structural diagram of a verification system for an image verification code in the present application.
Detailed Description
The method for generating the image verification code according to the embodiment of the application can be executed by an image verification code generation device, and the device can be independently arranged.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The inventor of the present application finds in a research process that a person has the ability to identify images with the same depth degree from a plurality of images with the same depth degree, but a machine does not have the ability, and therefore, in the embodiment disclosed in the present application, a user selects a target image verification code that meets the condition in the prompt information from a plurality of candidate image verification codes by taking an original image and an identification image obtained by taking a plurality of objects with different depth degrees, selecting a plurality of candidate areas from the original image or the identification image as the candidate image verification codes, and simultaneously giving the prompt information that at least includes the depth degree condition and selects the target image verification code from the plurality of candidate image verification codes.
When the target image verification code can be identified, the difference between the depth degrees corresponding to the multiple to-be-selected image verification codes needs to be known, so that the process of selecting the target image verification code in the embodiment of the application has higher requirements on the visual function of judging the depth degree of a user, and therefore, the machine has higher difficulty in selecting the target image verification code from the multiple to-be-selected image verification codes, and further, the identification rate of the machine to the target image verification code is reduced.
Referring to fig. 1, a flow chart of an embodiment of a method for verifying an image verification code in the present application is shown, and the embodiment may include the following steps:
step 101: a request for use of a network resource by a user is received.
In this embodiment, before using the network resource, the user needs to send a request for using the network resource to the server, so that the server responds to the request, for example, performing authentication and the like.
Step 102: and displaying the verification information.
And after receiving a request for using the network resource sent by the user, verifying the user so as to ensure that only the user determining the target image verification code uses the network resource. In this embodiment, the verification information may include: the image verification method comprises an original image, an identification image, a plurality of to-be-selected image verification codes and indication information.
Wherein, the original image is: an image obtained by photographing a plurality of objects having different depth degrees, in which the depth degree of an object is reflected by the distance of the object from an image pickup apparatus, generally speaking, the greater the distance of the object from the image pickup apparatus, the greater the depth degree of the object is indicated. Specifically, the depth degree of the object described by each pixel point in the original image is represented by the pixel value in the depth image.
The identification image is an image in which pixel points describing objects with the same depth degree in an original image are marked by the same identification, and pixel points describing objects with different depth degrees are marked by different identifications. The mark may be a symbol mark, a color mark, or the like, for example, the same symbol mark is used for pixel points describing objects with the same depth degree, and different symbol marks are used for pixel points describing objects with different depth degrees. Of course, the identifier may also be represented in other specific forms, and the embodiment does not limit the specific identifier form.
Then, a plurality of candidate areas are determined from any one of the original image or the identification image, and the determined plurality of candidate areas are determined as a plurality of candidate image verification codes, so that a user can select a target image verification code from the plurality of candidate image verification codes. In this embodiment, the verification information includes prompt information required by the user to select the target image verification code, and the prompt information at least includes a depth condition. For example, the user determines the image verification code closest to the user from the multiple candidate image verification codes, and may also sequentially select each candidate image verification code from the multiple candidate image verification codes according to a sequence from far to near or from near to far, and so on. Of course, other depth degree conditions may exist in practical applications, and the present embodiment does not limit the form of the depth degree-containing condition.
It should be noted that, in this embodiment, the conditions required for selecting the target image verification code include a depth degree condition, and in practical applications, the conditions required for specifically selecting the target image verification code may include other conditions, such as a position condition, in addition to the depth degree condition.
For example, the plurality of candidate image verification codes are a plurality of areas selected from the original image, and the user determines the image verification code which is closest to the user and located in a certain coordinate area in the identification image from the plurality of candidate image verification codes.
Step 103: receiving selection information input by a user, and determining an image verification code to be verified corresponding to the selection information.
After the user selects the image verification code to be verified meeting the conditions contained in the prompt message from the displayed verification information, the step receives the selection information containing the image verification code to be verified, and determines the image verification code to be verified corresponding to the selection information from the received selection information.
Step 104: and judging whether the image verification code to be verified meets the condition required by the target image verification code, if so, executing the step 105, otherwise, executing the step 106.
After determining the corresponding image verification code to be verified in the selection information selected by the user, then, judging whether the image verification code to be verified meets the condition required by the target image verification code. Taking an example of selecting the image verification code closest to the user from the multiple image verification codes to be selected in step 102 as an example, in this step, it is required to determine whether the image verification code to be selected is the image verification code closest to the user, that is, whether the image verification code to be selected is the image with the minimum depth degree in the original image.
Step 105: allowing the user to use the network resources.
In this embodiment, the indication information at least includes a depth condition required by the target image verification code, and since the user has a higher requirement on the visual function of the user in the depth degree when selecting the target image verification code satisfying the depth condition from the plurality of candidate image verification codes, since the machine does not have such a function, when it is determined that the image verification code to be verified conforms to the condition required by the target image verification code in the verification information, the probability that the user is the machine is low, and then the user is allowed to use the network resource.
Step 106: the user is not allowed to use the network resources.
When the image verification code to be verified selected by the user does not meet the condition that the target image verification code at least comprises the depth degree, the probability that the user is a machine is high, the user is not allowed to use the network resources in the step, and the purpose of preventing the machine from using the network resources is further achieved.
In the embodiment of the application, the depth degrees of the original image and the identification image in the same coordinate region correspond to each other, and a user needs to determine a target image verification code meeting the depth degree condition of the relevant region from a plurality of candidate image verification codes selected from the original image or the identification image based on the corresponding relationship. Because the corresponding relation of the original image and the identification image in the depth degree of the same coordinate area has higher requirements on the visual function of the depth degree judgment of the user, the machine is more difficult to identify the target image verification code at least comprising the depth degree condition, and furthermore, the identification rate of the machine to the target image verification code can be reduced.
In addition, in this embodiment, the condition for selecting the target image verification code from the plurality of candidate image verification codes included in the prompt information further includes: the position condition used for limiting the position of the target image verification code in the identification image further reduces the probability that the machine selects the target image verification code from the plurality of candidate image verification codes, and further, the recognition rate of the machine recognizing the target image verification code from the plurality of candidate image verification codes is easier to reduce.
In the embodiment described in fig. 1, the target image verification code at least meeting the depth degree condition is selected from the multiple candidate image verification codes based on the multiple areas with different depth degrees in the original image and the identification image, respectively.
Referring to fig. 2, a flow chart of an embodiment of a method for generating a logo image in the present application is shown, which may include the following steps:
step 201: and obtaining the depth value representing the depth degree of the object described by each pixel point in the original image.
In this embodiment, first, a depth value corresponding to a depth degree of an object described by each pixel point in an original image is obtained. The depth value corresponding to each pixel point in the original image can be obtained through the depth image corresponding to the original image.
Step 202: according to the corresponding depth value of each pixel point in the original image, dividing the pixel points in the original image into: at least two sets of different depth degrees are characterized.
In this embodiment, after obtaining the depth value corresponding to each pixel point in the original image, then, according to the depth value corresponding to each pixel point, dividing the pixel points in the original image into: and characterizing the sets of different depth degrees to obtain at least two sets.
Specifically, the process of dividing the pixel points in the original image into at least two sets representing different depth degrees may specifically include: step A1-step A3:
step A1: and determining a depth value range formed by the maximum depth value and the minimum depth value.
After obtaining the depth values corresponding to the pixel points in the original image, then, in this step, the maximum value and the minimum value in the depth values are determined. After the maximum depth value and the minimum depth value are determined, a range of depth values is then determined that is comprised of the minimum depth value and the maximum depth value. For example, if the minimum depth value is 10 and the maximum depth value is 255 among the depth values corresponding to the pixel points in the original image, the depth value range is [10, 255 ].
Step A2: the depth value range is divided into at least two target depth value ranges.
After the depth value range is determined, the determined depth value range is divided into at least two target depth value ranges, for example, the depth value range is [10, 255], in this step, the [10, 255] may be divided into two depth value ranges of [10, 128] and [129, 255], for convenience of description, the present embodiment refers to the at least two divided depth value ranges as the at least two target depth value ranges, for example, the two depth value ranges of [10, 128] and [129, 255] are referred to as the two target depth value ranges.
It should be noted that, when the depth value range is divided into at least two target depth value ranges, the selected division point is not specifically limited in this embodiment, as long as the at least two target pixel ranges obtained after division include the target depth value range with the minimum depth value and the target depth value range with the maximum depth value, and the at least two target depth value ranges form the depth value range from the minimum depth value to the maximum depth value.
Step 203: and aiming at each target depth value range, dividing pixel points, corresponding to the target depth value range, of the depth value in the original image into a pixel point set, and obtaining at least two sets corresponding to at least two different depth value ranges.
After determining at least two target depth value ranges, in this step, for each target depth value range, determining pixel points of the original image whose corresponding depth values belong to the target depth value range, and dividing the pixel points located in the target depth value range into a set, at this time, obtaining at least two sets corresponding to at least two different depth value ranges.
Step 204: and marking the pixel points of different sets by adopting different identifications.
After at least two pixel point sets are obtained, the pixel points in the same set are marked by the same identification, wherein the identification can be a symbol, and the pixel points in different sets are marked by different identifications. For example, the pixel points in the same set are set to have the same pixel value, that is, the pixel points in the same set show the same color, and the pixel points in different sets are marked with different colors, so that the regions with the same depth degree show the same color, and the regions with different depth degrees show different colors.
Step 205: and determining the marked image as the identification image.
After the pixels in each set are marked, a marked image is obtained, and this embodiment determines the marked image as an identification image.
In this embodiment, the pixels in the original image are divided into at least two sets by the depth values corresponding to the pixels in the original image, the pixels in each set are marked by the same identifier, the pixels in different sets are marked by different identifiers, and then the identifier images with different depth degrees and different identifier marks are obtained.
Referring to fig. 3, a schematic structural diagram of an embodiment of an apparatus for verifying an image verification code in the present application is shown, where the apparatus embodiment may include:
a receiving unit 301, configured to receive a request from a user to use a network resource.
A display unit 302, configured to display authentication information, where the authentication information includes: the image processing method comprises the following steps of obtaining an original image, an identification image, a plurality of to-be-selected image verification codes and indication information by shooting a plurality of objects with different depth degrees, wherein the identification image is as follows: the image is composed of identifications corresponding to all pixel points in the original image, wherein the identifications corresponding to the pixel points describing objects with the same depth degree in the original image are the same; the plurality of candidate image verification codes are as follows: a plurality of regions to be selected from the original image or the identification image, wherein the indication information includes: determining conditions required by a target image verification code from the plurality of candidate image verification codes, wherein the conditions at least comprise: depth degree condition.
The conditions required for determining the target image verification code included in the indication information in the display unit 302 may further include: a location condition for defining a location of the target image verification code within the identification image.
The determining unit 303 is configured to receive selection information input by a user, and determine an image verification code to be verified corresponding to the selection information.
An executing unit 304, configured to allow a user to use a network resource if the image verification code to be verified meets the condition required by the target image verification code; and if the image verification code to be verified does not meet the condition required by the target image verification code, not allowing the user to use the network resource.
The embodiment of the device can also comprise:
a generation unit configured to generate an identification image;
wherein the generating unit may include:
the acquisition subunit is used for acquiring a depth value representing the depth degree of an object described by a pixel point in the original image; the depth value is used for representing the distance between an object described by a pixel point in the original image and the image pickup equipment during shooting;
wherein the obtaining subunit may include:
the first acquisition module is used for acquiring a depth image corresponding to the original image, and the pixel value of a pixel point in the depth image represents the depth degree of an object represented by the pixel point;
and the second acquisition module is used for acquiring a depth value representing the depth degree of the object described by the pixel point in the original image from the pixel value of the depth image.
A dividing subunit, configured to divide, according to depth values corresponding to the pixel points in the original image, the pixel points in the original image into: characterizing at least two sets of different depth degrees;
the marking subunit is used for marking the pixel points of different sets by adopting different identifications;
and the determining subunit is used for determining the marked image as the identification image.
Wherein dividing the sub-unit may include:
the determining module is used for determining a depth value range formed by the maximum depth value and the minimum depth value;
a first partitioning module for partitioning the depth value range into at least two different target depth value ranges;
and the second dividing module is used for dividing pixel points of which the depth values belong to the target depth value range into a set aiming at each target depth value range to obtain at least two sets corresponding to at least two different depth value ranges.
In practical applications, the embodiment of the apparatus may not have a generation unit, the identification image may be generated in advance, and the display unit of the apparatus may directly display the image.
The receiving unit in the device embodiment receives a request of a user for using the network resource, the display unit displays verification information, the determining unit determines an image verification code to be verified corresponding to the selection information input by the user according to the selection information input by the user, and the executing unit compares the image verification code to be verified with a required condition to determine whether the user is allowed to use the network resource. The embodiment of the apparatus provides conditions for the practical application of the embodiment of the method corresponding to fig. 1 and the embodiment of the method corresponding to fig. 2.
Referring to fig. 4, a schematic structural diagram of a verification system of an image verification code in the present application is shown, where the system may include: a client 401 and a server 402; wherein the content of the first and second substances,
the client 401 is configured to send a request for using a network resource to the server;
the server 402 is configured to display authentication information, where the authentication information includes: the image processing method comprises the following steps of obtaining an original image, an identification image, a plurality of to-be-selected image verification codes and indication information by shooting a plurality of objects with different depth degrees, wherein the identification image is as follows: the image is composed of identifications corresponding to all pixel points in the original image, wherein the identifications corresponding to the pixel points describing objects with the same depth degree in the original image are the same; the plurality of candidate image verification codes are as follows: a plurality of regions to be selected from the original image or the identification image, wherein the indication information includes: determining conditions required by a target image verification code from the plurality of candidate image verification codes, wherein the conditions at least comprise: a depth degree condition;
the client 401 is further configured to send selected information determined by the user from the verification information to the server;
the service 402 is further configured to determine an image verification code to be verified corresponding to the selection information;
the server 402 is further configured to allow the client to use a network resource when the image verification code to be verified meets the condition required by the target image verification code; and when the image verification code to be verified does not meet the condition required by the target image verification code, the client is not allowed to use network resources.
Through the interactive process between the client and the server in the system, the invention purpose of the application is realized, and the application of the method embodiments respectively corresponding to fig. 1 and fig. 2 in practice is guaranteed.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. In this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprising," "including," and the like, as used herein, are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, the meaning of "includes but is not limited to". The invention can be applied to various fields, such as a mobile phone, a.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for verifying an image verification code, the method comprising:
receiving a request of a user for using network resources;
displaying verification information, the verification information comprising: the image processing method comprises the following steps of obtaining an original image, an identification image, a plurality of to-be-selected image verification codes and indication information by shooting a plurality of objects with different depth degrees, wherein the identification image is as follows: the image is composed of identifications corresponding to all pixel points in the original image, wherein the identifications corresponding to the pixel points describing objects with the same depth degree in the original image are the same; the plurality of candidate image verification codes are as follows: a plurality of regions to be selected are selected from the original image or the identification image; the indication information includes: determining conditions required by a target image verification code from the plurality of candidate image verification codes, wherein the conditions at least comprise: a depth degree condition;
receiving selection information input by a user, and determining an image verification code to be verified corresponding to the selection information;
if the image verification code to be verified meets the condition required by the target image verification code, allowing the user to use network resources; and if the image verification code to be verified does not meet the condition required by the target image verification code, not allowing the user to use the network resource.
2. The method of claim 1, wherein the identification image is generated by:
obtaining a depth value representing the depth degree of an object described by a pixel point in an original image; the depth value is used for representing the distance between an object described by a pixel point in the original image and the image pickup equipment during shooting;
according to the corresponding depth value of each pixel point in the original image, dividing the pixel points in the original image into: characterizing at least two sets of different depth degrees;
marking the pixel points of different sets by adopting different identifications;
and determining the marked image as the identification image.
3. The method of claim 2, wherein the dividing of the pixels in the original image is: at least two sets representing different depth levels, including:
determining a depth value range formed by the maximum depth value and the minimum depth value;
dividing the depth value range into at least two different target depth value ranges;
and aiming at each target depth value range, dividing pixel points of which the depth values belong to the target depth value range into a set to obtain at least two sets corresponding to at least two different depth value ranges.
4. The method of claim 2, wherein obtaining depth values representing the depth degree of the object described by the pixel points in the original image comprises:
acquiring a depth image corresponding to the original image, wherein the pixel value of a pixel point in the depth image represents the depth degree of an object represented by the pixel point;
and obtaining a depth value representing the depth degree of an object described by the pixel points in the original image from the pixel values of the pixel points in the depth image.
5. The method of claim 1, wherein the conditions required to determine the target image captcha further comprise: a location condition for defining a location of the target image verification code within the identification image.
6. An apparatus for verifying an image authentication code, the apparatus comprising:
a receiving unit, configured to receive a request for a user to use a network resource;
a display unit for displaying authentication information, the authentication information including: the image processing method comprises the following steps of obtaining an original image, an identification image, a plurality of to-be-selected image verification codes and indication information by shooting a plurality of objects with different depth degrees, wherein the identification image is as follows: the image is composed of identifications corresponding to all pixel points in the original image, wherein the identifications corresponding to the pixel points describing objects with the same depth degree in the original image are the same; the plurality of candidate image verification codes are as follows: a plurality of regions to be selected from the original image or the identification image, wherein the indication information includes: determining conditions required by a target image verification code from the plurality of candidate image verification codes, wherein the conditions at least comprise: a depth degree condition;
the device comprises a determining unit, a verification unit and a verification unit, wherein the determining unit is used for receiving selection information input by a user and determining an image verification code to be verified corresponding to the selection information;
the execution unit is used for allowing a user to use network resources if the image verification code to be verified meets the condition required by the target image verification code; and if the image verification code to be verified does not meet the condition required by the target image verification code, not allowing the user to use the network resource.
7. The apparatus of claim 6, further comprising:
a generation unit configured to generate an identification image;
wherein the generating unit includes:
the acquisition subunit is used for acquiring a depth value representing the depth degree of an object described by a pixel point in the original image; the depth value is used for representing the distance between an object described by a pixel point in the original image and the image pickup equipment during shooting;
a dividing subunit, configured to divide, according to depth values corresponding to the pixel points in the original image, the pixel points in the original image into: characterizing at least two sets of different depth degrees;
the marking subunit is used for marking the pixel points of different sets by adopting different identifications;
and the determining subunit is used for determining the marked image as the identification image.
8. The apparatus of claim 7, wherein the molecular scoring unit comprises:
the determining module is used for determining a depth value range formed by the maximum depth value and the minimum depth value;
a first partitioning module for partitioning the depth value range into at least two different target depth value ranges;
and the second dividing module is used for dividing pixel points of which the depth values belong to the target depth value range into a set aiming at each target depth value range to obtain at least two sets corresponding to at least two different depth value ranges.
9. The apparatus of claim 7, wherein the obtaining subunit comprises:
the first acquisition module is used for acquiring a depth image corresponding to the original image, and the pixel value of a pixel point in the depth image represents the depth degree of an object represented by the pixel point;
and the second acquisition module is used for acquiring a depth value representing the depth degree of the object described by the pixel point in the original image from the pixel value of the depth image.
10. A system for verifying an image verification code, the system comprising: a client and a server;
the client is used for sending a request for using network resources to the server;
the server is used for displaying verification information, and the verification information comprises: the image processing method comprises the following steps of obtaining an original image, an identification image, a plurality of to-be-selected image verification codes and indication information by shooting a plurality of objects with different depth degrees, wherein the identification image is as follows: the image is composed of identifications corresponding to all pixel points in the original image, wherein the identifications corresponding to the pixel points describing objects with the same depth degree in the original image are the same; the plurality of candidate image verification codes are as follows: a plurality of regions to be selected from the original image or the identification image, wherein the indication information includes: determining conditions required by a target image verification code from the plurality of candidate image verification codes, wherein the conditions at least comprise: a depth degree condition;
the client is further used for sending selected information determined by the user from the verification information to the server;
the server is further used for determining an image verification code to be verified corresponding to the selection information;
the server is also used for allowing the client to use network resources when the image verification code to be verified conforms to the condition required by the target image verification code; and when the image verification code to be verified does not meet the condition required by the target image verification code, the client is not allowed to use network resources.
CN201810167347.3A 2018-02-28 2018-02-28 Method, device and system for verifying image verification code Active CN108270796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810167347.3A CN108270796B (en) 2018-02-28 2018-02-28 Method, device and system for verifying image verification code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810167347.3A CN108270796B (en) 2018-02-28 2018-02-28 Method, device and system for verifying image verification code

Publications (2)

Publication Number Publication Date
CN108270796A CN108270796A (en) 2018-07-10
CN108270796B true CN108270796B (en) 2020-11-03

Family

ID=62774516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810167347.3A Active CN108270796B (en) 2018-02-28 2018-02-28 Method, device and system for verifying image verification code

Country Status (1)

Country Link
CN (1) CN108270796B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447207B (en) * 2020-03-24 2022-11-01 咪咕文化科技有限公司 Verification code verification method, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424485A (en) * 2013-08-22 2015-03-18 北京卓易讯畅科技有限公司 Method and device for obtaining specific information based on image recognition
CN104657653A (en) * 2013-11-19 2015-05-27 博雅网络游戏开发(深圳)有限公司 Image verification code verification method and device
CN104966097A (en) * 2015-06-12 2015-10-07 成都数联铭品科技有限公司 Complex character recognition method based on deep learning
CN106034029A (en) * 2015-03-20 2016-10-19 阿里巴巴集团控股有限公司 Verification method and apparatus based on image verification codes
CN106156595A (en) * 2015-04-02 2016-11-23 深圳市腾讯计算机系统有限公司 A kind of method, Apparatus and system being carried out by identifying code picture verifying
CN107454118A (en) * 2017-10-11 2017-12-08 北京安博通科技股份有限公司 Identifying code acquisition methods and device, login method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424485A (en) * 2013-08-22 2015-03-18 北京卓易讯畅科技有限公司 Method and device for obtaining specific information based on image recognition
CN104657653A (en) * 2013-11-19 2015-05-27 博雅网络游戏开发(深圳)有限公司 Image verification code verification method and device
CN106034029A (en) * 2015-03-20 2016-10-19 阿里巴巴集团控股有限公司 Verification method and apparatus based on image verification codes
CN106156595A (en) * 2015-04-02 2016-11-23 深圳市腾讯计算机系统有限公司 A kind of method, Apparatus and system being carried out by identifying code picture verifying
CN104966097A (en) * 2015-06-12 2015-10-07 成都数联铭品科技有限公司 Complex character recognition method based on deep learning
CN107454118A (en) * 2017-10-11 2017-12-08 北京安博通科技股份有限公司 Identifying code acquisition methods and device, login method and system

Also Published As

Publication number Publication date
CN108270796A (en) 2018-07-10

Similar Documents

Publication Publication Date Title
KR101773885B1 (en) A method and server for providing augmented reality objects using image authentication
TWI616821B (en) Bar code generation method, bar code based authentication method and related terminal
KR20170081558A (en) Method and apparatus for identifying web address
US20170170967A1 (en) Captcha image generation method and apparatus, and server
CN106303599B (en) Information processing method, system and server
CN108429879B (en) Electronic apparatus, camera control method, camera control apparatus, and computer-readable storage medium
CN107786487B (en) Information authentication processing method, system and related equipment
CN109902475B (en) Verification code image generation method and device and electronic equipment
CN109410675B (en) Exercise recommendation method based on student portrait and family education equipment
CN109902611B (en) Target certificate detection method and device and terminal equipment
CN105574398A (en) Verification code verification method and device
CN105357008A (en) Identity verification method and device
CN105657859B (en) Equipment connection method and electronic equipment
CN111310233A (en) Application interface display method, device, equipment and storage medium
CN105577651A (en) Service providing method and apparatus
CN109189960A (en) Information acquisition method, information acquisition device and computer storage medium
US20230222843A1 (en) Method and device for registering biometric feature
CN107613491B (en) Method and apparatus for obtaining password information of wireless access point using augmented reality
CN115018565A (en) Advertisement media image identification method, system, equipment and readable storage medium
CN108270796B (en) Method, device and system for verifying image verification code
CN108037989B (en) SDK component identification method and device
CN107844696B (en) Verification code interference method and server
CN112230824A (en) Data processing method and device of human-computer interaction system and electronic equipment
US20130101104A1 (en) Method and a system for establishing a communication channel between a predetermined number of selected devices and a device and a server arranged for use in the system
CN113536129A (en) Service push method and related product

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