CN105335645A - Verification method and apparatus for picture verification code - Google Patents
Verification method and apparatus for picture verification code Download PDFInfo
- Publication number
- CN105335645A CN105335645A CN201510614233.5A CN201510614233A CN105335645A CN 105335645 A CN105335645 A CN 105335645A CN 201510614233 A CN201510614233 A CN 201510614233A CN 105335645 A CN105335645 A CN 105335645A
- Authority
- CN
- China
- Prior art keywords
- picture
- verification code
- verification
- area
- image information
- 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.)
- Granted
Links
- 238000012795 verification Methods 0.000 title claims abstract description 378
- 238000000034 method Methods 0.000 title claims abstract description 76
- 239000000284 extract Substances 0.000 claims abstract description 23
- 230000008859 change Effects 0.000 claims abstract description 4
- 238000000605 extraction Methods 0.000 claims description 9
- 230000008901 benefit Effects 0.000 description 5
- 230000009467 reduction Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 1
- 238000005336 cracking Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/36—User authentication by graphic or iconic representation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing 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/2133—Verifying human interaction, e.g., Captcha
Landscapes
- Engineering & Computer Science (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)
- Image Processing (AREA)
Abstract
本发明提供了一种图片验证码验证方法和装置,方法包括:从预设的图库中选择图片,并根据图片生成验证码,验证码的形态可变,且验证码在特定形态下形成图片;接收用户的验证操作,并根据验证操作改变验证码的形态;从修改后的验证码上选择第一区域并提取第一区域的图像信息;从图片中选择第二区域并提取第二区域的图像信息,第二区域在图片上的位置与第一区域在验证码上的位置相对应;将第一区域的图像信息与第二区域的图像信息进行比较,根据结果判断用户的验证操作是否成功。根据本发明,提取位置相对应的部分区域的图像进行比较,由于提取的图像信息变少,所以对于所提取图像信息的比较效率就变高,从而可以快速判断是否验证成功。
The present invention provides a picture verification code verification method and device. The method includes: selecting a picture from a preset gallery, and generating a verification code according to the picture. The form of the verification code is variable, and the verification code forms a picture in a specific form; Receive the user's verification operation, and change the form of the verification code according to the verification operation; select the first area from the modified verification code and extract the image information of the first area; select the second area from the picture and extract the image of the second area Information, the position of the second area on the picture corresponds to the position of the first area on the verification code; compare the image information of the first area with the image information of the second area, and judge whether the user's verification operation is successful according to the result. According to the present invention, the images of the partial regions corresponding to the positions are extracted for comparison, and since the extracted image information is reduced, the comparison efficiency of the extracted image information becomes high, so that it is possible to quickly determine whether the verification is successful.
Description
技术领域technical field
本发明涉及互联网技术领域,具体而言,涉及一种图片验证码验证方法和装置。The invention relates to the technical field of the Internet, in particular to a method and device for verifying a picture verification code.
背景技术Background technique
目前,验证码的应用比较普遍,其用于区分用户是计算机和人,能够有效地防止恶意破解密码、刷票、论坛灌水等现象的发生。At present, the application of verification code is relatively common. It is used to distinguish whether the user is a computer or a human, and can effectively prevent the occurrence of malicious password cracking, swiping tickets, and flooding forums.
验证码的一种类型是图片验证码,其是通过对一张图片进行切割、变形等方式形成的验证码,需要用户对验证码通过拼接等操作将验证码还原为原始图片。这种验证码的好处在图片中的图像较丰富,比文字、数字更难被机器识别,但是这种验证码也存在一定的缺陷:One type of verification code is a picture verification code, which is a verification code formed by cutting and deforming a picture, and requires the user to restore the verification code to the original picture through splicing and other operations on the verification code. The advantage of this kind of verification code is that the images in the pictures are richer, and it is more difficult to be recognized by machines than text and numbers, but this kind of verification code also has certain defects:
1、判断验证是否成功时,需要将图片与验证码的图像进行分析对比,计算量非常大,同时耗时比较长;1. When judging whether the verification is successful, it is necessary to analyze and compare the picture with the image of the verification code, which is very computationally intensive and time-consuming;
2、与文字、数字等内容不同,图片图像不能够随机生成,需要使用预先准备的图片,而预先准备的图片是有限的,则得到的验证码也是有限的,如果收集所有图片验证码的验证方式,则仍有可能通过机器枚举所有图片验证码的验证方式进行验证。2. Unlike text, numbers, etc., pictures and images cannot be randomly generated, and pre-prepared pictures need to be used, and the pre-prepared pictures are limited, so the verification codes obtained are also limited. If you collect verification codes for all pictures method, it is still possible to verify through the verification method of enumerating all image verification codes by the machine.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的图片验证码验证方法和装置。In view of the above problems, the present invention is proposed to provide a method and device for verifying a picture verification code that overcomes the above problems or at least partially solves the above problems.
依据本发明的一个方面,提供了一种图片验证码验证方法,其包括:从预设的图库中选择图片,并根据所述图片生成验证码,所述验证码的形态可变,且所述验证码在特定形态下形成所述图片;接收用户的验证操作,并根据所述验证操作改变所述验证码的形态;从修改后的所述验证码上选择第一区域并提取所述第一区域的图像信息;从所述图片中选择第二区域并提取所述第二区域的图像信息,所述第二区域在所述图片上的位置与所述第一区域在所述验证码上的位置相对应;将所述第一区域的图像信息与所述第二区域的图像信息进行比较,根据所述结果判断所述用户的所述验证操作是否成功。According to one aspect of the present invention, a method for verifying a picture verification code is provided, which includes: selecting a picture from a preset gallery, and generating a verification code according to the picture, the form of the verification code is variable, and the The verification code forms the picture in a specific form; receives the verification operation of the user, and changes the form of the verification code according to the verification operation; selects the first area from the modified verification code and extracts the first The image information of the area; select the second area from the picture and extract the image information of the second area, the position of the second area on the picture is the same as the position of the first area on the verification code Position correspondence: comparing the image information of the first area with the image information of the second area, and judging whether the verification operation of the user is successful or not according to the result.
可选地,前述的图片验证码验证方法,还包括:获取所述图库外的外部图片,对所述图库内的所述图片进行更新。Optionally, the aforementioned picture verification code verification method further includes: acquiring external pictures outside the gallery, and updating the pictures in the gallery.
可选地,前述的图片验证码验证方法,获取所述图库外的外部图片,具体包括:根据使用所述验证码的应用,选择所述应用对应的网页并从所述网页中获取所述外部图片。Optionally, the aforementioned verification method for picture verification codes, obtaining external pictures outside the gallery, specifically includes: according to the application using the verification code, selecting a webpage corresponding to the application and obtaining the external pictures from the webpage picture.
可选地,前述的图片验证码验证方法,选择所述应用对应的网页并从所述网页中获取所述外部图片,具体包括:从所述网页中选择发布时间与当前时间的差值在预设阈值内的图片作为所述外部图片。Optionally, in the aforementioned picture verification code verification method, selecting the webpage corresponding to the application and obtaining the external picture from the webpage specifically includes: selecting from the webpage that the difference between the release time and the current time is within a preset Set the pictures within the threshold as the external pictures.
可选地,前述的图片验证码验证方法,根据所述图片生成验证码,具体包括:从预设的多种用于生成所述验证码的方式中选择生成方式,并按照所选生成方式生成所述验证码。Optionally, in the aforementioned picture verification code verification method, generating the verification code according to the picture specifically includes: selecting a generation method from a variety of preset methods for generating the verification code, and generating the verification code according to the selected generation method The verification code.
可选地,前述的图片验证码验证方法,所述验证码包括多个部分,所述多个部分中的至少一个部分可发生移动。Optionally, in the aforementioned method for verifying a picture verification code, the verification code includes a plurality of parts, and at least one part of the plurality of parts can be moved.
可选地,前述的图片验证码验证方法,从修改后的所述验证码上选择第一区域,具体包括:根据所述用户进行验证操作后所述验证码中的所述至少一个可移动部分的位置,确定所述验证码上选择所述第一区域的位置并选择。Optionally, in the aforementioned picture verification code verification method, selecting the first area from the modified verification code specifically includes: according to the at least one movable part in the verification code after the verification operation is performed by the user The location of the first area on the verification code is determined and selected.
可选地,前述的图片验证码验证方法,从修改后的所述验证码上选择第一区域,具体包括:根据所述验证码形成所述图片时所述至少一个可移动部分的位置,确定所述验证码上选择所述第一区域的位置并选择。Optionally, in the aforementioned picture verification code verification method, selecting the first area from the modified verification code specifically includes: determining the position of the at least one movable part according to the position of the at least one movable part when the verification code forms the picture. Select the position of the first area on the verification code and select it.
可选地,前述的图片验证码验证方法,将所述第一区域的图像信息与所述第二区域的图像信息进行比较,具体包括:对所述第一区域和所述第二区域进行同等程度降噪之后,再提取颜色信息进行比较。Optionally, in the aforementioned picture verification code verification method, comparing the image information of the first area with the image information of the second area specifically includes: performing an equivalent operation on the first area and the second area. After the degree of noise reduction, the color information is extracted for comparison.
依据本发明的另一方面,还提供了一种图片验证码验证装置,其包括:验证码生成模块,用于从预设的图库中选择图片,并根据所述图片生成验证码,所述验证码的形态可变,且所述验证码在特定形态下形成所述图片;验证操作模块,用于接收用户的验证操作,并根据所述验证操作改变所述验证码的形态;第一区域提取模块,用于从修改后的所述验证码上选择第一区域并提取所述第一区域的图像信息;第二区域提取模块,用于从所述图片中选择第二区域并提取所述第二区域的图像信息,所述第二区域在所述图片上的位置与所述第一区域在所述验证码上的位置相对应;图像信息比较模块,用于将所述第一区域的图像信息与所述第二区域的图像信息进行比较,根据所述结果判断所述用户的所述验证操作是否成功。According to another aspect of the present invention, there is also provided a picture verification code verification device, which includes: a verification code generation module, used to select a picture from a preset gallery, and generate a verification code according to the picture, the verification The form of the code is variable, and the verification code forms the picture in a specific form; the verification operation module is used to receive the verification operation of the user, and change the form of the verification code according to the verification operation; the first area is extracted A module for selecting a first area from the modified verification code and extracting image information of the first area; a second area extraction module for selecting a second area from the picture and extracting the first area The image information of the second area, the position of the second area on the picture corresponds to the position of the first area on the verification code; the image information comparison module is used to compare the image of the first area The information is compared with the image information of the second area, and it is judged according to the result whether the verification operation by the user is successful.
可选地,前述的图片验证码验证装置,还包括:图库更新模块,用于获取所述图库外的外部图片,对所述图库内的所述图片进行更新。Optionally, the aforementioned image verification code verification device further includes: a gallery update module, configured to acquire external pictures outside the gallery, and update the pictures in the gallery.
可选地,前述的图片验证码验证装置,所述图库更新模块根据使用所述验证码的应用,选择所述应用对应的网页并从所述网页中获取所述外部图片。Optionally, in the aforementioned image verification code verification device, the gallery update module selects a webpage corresponding to the application and obtains the external picture from the webpage according to the application using the verification code.
可选地,前述的图片验证码验证装置,所述图库更新模块从所述网页中选择发布时间与当前时间的差值在预设阈值内的图片作为所述外部图片。Optionally, in the aforementioned picture verification code verification device, the gallery updating module selects from the webpage a picture whose difference between the publishing time and the current time is within a preset threshold as the external picture.
可选地,前述的图片验证码验证装置,所述验证码生成模块从预设的多种用于生成所述验证码的方式中选择生成方式,并按照所选生成方式生成所述验证码。Optionally, in the aforementioned picture verification code verification device, the verification code generation module selects a generation method from a plurality of preset methods for generating the verification code, and generates the verification code according to the selected generation method.
可选地,前述的图片验证码验证装置,所述验证码包括多个部分,所述多个部分中的至少一个部分可发生移动。Optionally, in the aforementioned device for verifying a picture verification code, the verification code includes a plurality of parts, and at least one part of the plurality of parts can be moved.
可选地,前述的图片验证码验证装置,所述第一区域提取模块根据所述用户进行验证操作后所述验证码中的所述至少一个可移动部分的位置,确定所述验证码上选择所述第一区域的位置并选择。Optionally, in the aforementioned picture verification code verification device, the first region extraction module determines the selected area on the verification code according to the position of the at least one movable part in the verification code after the user performs a verification operation. The location of the first area and select it.
可选地,前述的图片验证码验证装置,所述第一区域提取模块根据所述验证码形成所述图片时所述至少一个可移动部分的位置,确定所述验证码上选择所述第一区域的位置并选择。Optionally, in the aforementioned picture verification code verification device, the first area extraction module determines that the first area selected on the verification code is based on the position of the at least one movable part when the verification code forms the picture. location of the region and select it.
可选地,前述的图片验证码验证装置,所述图像信息比较模块对所述第一区域和所述第二区域进行同等程度降噪之后,再提取颜色信息进行比较。Optionally, in the aforementioned image verification code verification device, the image information comparison module extracts color information for comparison after performing noise reduction on the first area and the second area to the same degree.
根据以上的技术方案,本发明的图片验证码验证方法和装置至少具有以下优点:According to the above technical solutions, the picture verification code verification method and device of the present invention have at least the following advantages:
在本发明的技术方案中,将对验证码和图片进行比较时,并非是对验证码和图片的全部图像信息进行比较,而是提取位置相对应的部分区域的图像进行比较,由于提取的图像信息变少,所以对于所提取图像信息的比较效率就变高,从而可以快速判断是否验证成功。In the technical solution of the present invention, when comparing the verification code and the picture, it is not to compare all the image information of the verification code and the picture, but to extract the images of the partial regions corresponding to the positions for comparison. The information becomes less, so the comparison efficiency of the extracted image information becomes higher, so that it is possible to quickly judge whether the verification is successful.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明的一个实施例的图片验证码验证方法的流程图;Fig. 1 shows the flow chart of the picture verification code verification method according to one embodiment of the present invention;
图2示出了根据本发明的一个实施例的图片验证码验证方法的流程图;Fig. 2 shows a flow chart of a method for verifying a picture verification code according to an embodiment of the present invention;
图3示出了根据本发明的一个实施例的图片验证码验证方法的流程图;Fig. 3 shows a flowchart of a method for verifying a picture verification code according to an embodiment of the present invention;
图4示出了根据本发明的一个实施例的图片验证码验证方法的验证码示意图;FIG. 4 shows a schematic diagram of a verification code of a method for verifying a picture verification code according to an embodiment of the present invention;
图5示出了根据本发明的一个实施例的图片验证码验证装置的框图;Fig. 5 shows a block diagram of a picture verification code verification device according to an embodiment of the present invention;
图6示出了根据本发明的一个实施例的图片验证码验证装置的框图。Fig. 6 shows a block diagram of an apparatus for verifying a picture verification code according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
如图1所示,本发明的一个实施例中提供了一种图片验证码验证方法,其包括:As shown in Figure 1, an embodiment of the present invention provides a method for verifying a picture verification code, which includes:
步骤110,从预设的图库中选择图片,并根据图片生成验证码,验证码的形态可变,且验证码在特定形态下形成图片。在本实施例中,对于如何生成验证码不进行限制,例如,可以将图片切分成拼图形式的验证码,其中拼图的块数也不进行限制。Step 110, select a picture from a preset gallery, and generate a verification code according to the picture. The form of the verification code is variable, and the verification code forms a picture in a specific form. In this embodiment, there is no limitation on how to generate the verification code. For example, the picture may be divided into puzzle-shaped verification codes, and the number of pieces of the puzzle is not limited.
步骤120,接收用户的验证操作,并根据验证操作改变验证码的形态。例如,基于前述的拼图形式验证码,用户的验证操作即为对验证码的拼接操作。Step 120, receiving the user's verification operation, and changing the form of the verification code according to the verification operation. For example, based on the aforementioned puzzle-style verification code, the user's verification operation is the splicing operation of the verification code.
步骤130,从修改后的验证码上选择第一区域并提取第一区域的图像信息。Step 130, select the first area from the modified verification code and extract the image information of the first area.
步骤140,从图片中选择第二区域并提取第二区域的图像信息,第二区域在图片上的位置与第一区域在验证码上的位置相对应。在本实施例中,假如用户验证操作正确,则验证码上第一区域的图像信息与图片上第二区域的图像信息必定相同。Step 140, select the second area from the picture and extract the image information of the second area, the position of the second area on the picture corresponds to the position of the first area on the verification code. In this embodiment, if the user's verification operation is correct, the image information of the first area on the verification code must be the same as the image information of the second area on the picture.
步骤150,将第一区域的图像信息与第二区域的图像信息进行比较,根据结果判断用户的验证操作是否成功。根据本实施例的技术方案,将对验证码和图片进行比较时,并非是对验证码和图片的全部图像信息进行比较,而是提取位置相对应的部分区域的图像进行比较,由于提取的图像信息变少,所以对于所提取图像信息的比较效率就变高,从而可以快速判断是否验证成功。Step 150, comparing the image information of the first area with the image information of the second area, and judging whether the user's verification operation is successful or not according to the result. According to the technical solution of this embodiment, when comparing the verification code and the picture, it is not to compare the entire image information of the verification code and the picture, but to extract the image of the partial area corresponding to the position for comparison, because the extracted image The information becomes less, so the comparison efficiency of the extracted image information becomes higher, so that it is possible to quickly judge whether the verification is successful.
如图2所示,本发明的一个实施例中提供了一种图片验证码验证方法,其包括:As shown in Figure 2, an embodiment of the present invention provides a method for verifying a picture verification code, which includes:
步骤210,获取图库外的外部图片,对图库内的图片进行更新。在本实施例中,通过对图库内的图片进行更新,可以使得生成的验证码持续发生变化,从而验证码的验证方式不会被完全收集,避免了通过机器通过枚举方式进行验证。Step 210, acquiring external pictures outside the gallery, and updating pictures in the gallery. In this embodiment, by updating the pictures in the gallery, the generated verification codes can be continuously changed, so that the verification methods of the verification codes will not be completely collected, avoiding verification by machines through enumeration.
具体地,可以根据使用验证码的应用,选择应用对应的网页并从网页中获取外部图片。例如,该验证码使用于一款手机游戏中,则从该手机游戏的官方网页上提取图片添加到图库中,这可以增强验证码与应用之间的关联性,使得验证码更容易被使用该应用的用户所理解。Specifically, according to the application using the verification code, the webpage corresponding to the application can be selected and the external picture can be acquired from the webpage. For example, if the verification code is used in a mobile game, extract pictures from the official web page of the mobile game and add them to the gallery, which can enhance the association between the verification code and the application, making it easier to use the verification code. understood by users of the application.
进一步地,可以从网页中选择发布时间与当前时间的差值在预设阈值内的图片作为外部图片。例如,可以选择与当前时间差值在一周内的图片;通过本实施例的技术方案,可以保证获取的图片为较新的图片,通过较新的图片生成验证码不容易被机器识别。Further, a picture with a difference between the publishing time and the current time within a preset threshold may be selected from the webpage as the external picture. For example, a picture within one week of the current time difference can be selected; through the technical solution of this embodiment, it can be guaranteed that the acquired picture is a newer picture, and the verification code generated by the newer picture is not easy to be recognized by a machine.
步骤220,从预设的图库中选择图片,从预设的多种用于生成验证码的方式中选择生成方式,并按照所选生成方式生成验证码,验证码的形态可变,且验证码在特定形态下形成图片。在本实施例中,对于同一张图库图片,通过不同的生成方式可以生成多个验证码,可见本实施例的技术方案有利于丰富验证码的种类,使得验证码的破解难度加大。Step 220, select a picture from a preset gallery, select a generation method from a variety of preset methods for generating a verification code, and generate a verification code according to the selected generation method, the form of the verification code is variable, and the verification code Form a picture in a specific shape. In this embodiment, for the same gallery picture, multiple verification codes can be generated through different generation methods. It can be seen that the technical solution of this embodiment is conducive to enriching the types of verification codes and making it more difficult to crack the verification codes.
步骤230,接收用户的验证操作,并根据验证操作改变验证码的形态。Step 230, receiving the user's verification operation, and changing the form of the verification code according to the verification operation.
步骤240,从修改后的验证码上选择第一区域并提取第一区域的图像信息。Step 240, select the first area from the modified verification code and extract the image information of the first area.
步骤250,从图片中选择第二区域并提取第二区域的图像信息,第二区域在图片上的位置与第一区域在验证码上的位置相对应。Step 250, select the second area from the picture and extract the image information of the second area, the position of the second area on the picture corresponds to the position of the first area on the verification code.
步骤260,对第一区域和第二区域进行同等程度降噪之后,再提取颜色信息进行比较。在本实施例的技术方案中,在进行一定的程度的降噪之后,第一区域和第二区域的中彩色会被消除,只剩余黑白色,此时提取的颜色信息会更少,更加容易进行比较。In step 260 , after denoising the first area and the second area to the same degree, the color information is extracted for comparison. In the technical solution of this embodiment, after a certain degree of noise reduction, the mid-color in the first area and the second area will be eliminated, leaving only black and white. At this time, the extracted color information will be less and easier Compare.
如图3所示,本发明的一个实施例中提供了一种图片验证码验证方法,其包括:As shown in Figure 3, an embodiment of the present invention provides a method for verifying a picture verification code, which includes:
步骤310,从预设的图库中选择图片,并根据图片生成验证码,验证码的形态可变,且验证码在特定形态下形成图片。验证码包括多个部分,多个部分中的至少一个部分可发生移动。Step 310, select a picture from a preset gallery, and generate a verification code according to the picture. The form of the verification code is variable, and the verification code forms a picture in a specific form. The verification code includes multiple parts, at least one of which can be moved.
步骤320,接收用户的验证操作,并根据验证操作改变验证码的形态。Step 320, receiving the user's verification operation, and changing the form of the verification code according to the verification operation.
步骤330,从修改后的验证码上选择第一区域并提取第一区域的图像信息。Step 330, select the first area from the modified verification code and extract the image information of the first area.
步骤340,根据用户进行验证操作后验证码中的至少一个可移动部分的位置,确定验证码上选择第一区域的位置并选择。在本实施例的技术方案中,如果验证码与图片不同,那么验证码的至少一个可移动部分的位置是不正确的,所以可以基于验证码上该可移动部分的位置来选取第一区域。例如,在图4所示的图片验证码中,410为可移动的部分,而虚线线框的位置为可移动部分410的正确位置,则根据本身实施例的技术方案,所选取的第一区域可以是阴影部分420。Step 340, according to the position of at least one movable part in the verification code after the user performs the verification operation, determine and select the position of the selected first area on the verification code. In the technical solution of this embodiment, if the verification code is different from the picture, the position of at least one movable part of the verification code is incorrect, so the first region can be selected based on the position of the movable part on the verification code. For example, in the picture verification code shown in Figure 4, 410 is a movable part, and the position of the dotted line frame is the correct position of the movable part 410, then according to the technical solution of the embodiment itself, the selected first area May be shaded portion 420 .
或,根据验证码形成图片时至少一个可移动部分的位置,确定验证码上选择第一区域的位置并选择。同理,基于前述的内容,也可以根据该可移动部分的正确位置来选取第一区域,如果验证码错误则该可移动部分必然没有位于正确位置上,该区域的颜色信息与图片对应位置的颜色信息必然不同,结合图4,则选取的第一区域可以是阴影部分430。Or, according to the position of at least one movable part when the verification code forms a picture, determine and select the position of the selected first area on the verification code. Similarly, based on the aforementioned content, the first area can also be selected according to the correct position of the movable part. If the verification code is wrong, the movable part must not be in the correct position. The color information of this area is the same as the corresponding position of the picture. The color information must be different. Referring to FIG. 4 , the selected first area may be the shaded part 430 .
步骤350,将第一区域的图像信息与第二区域的图像信息进行比较,根据结果判断用户的验证操作是否成功。Step 350, comparing the image information of the first area with the image information of the second area, and judging whether the user's verification operation is successful or not according to the result.
如图5所示,本发明的一个实施例中提供了一种图片验证码验证装置,其包括:As shown in Figure 5, an embodiment of the present invention provides a picture verification code verification device, which includes:
验证码生成模块510,从预设的图库中选择图片,并根据图片生成验证码,验证码的形态可变,且验证码在特定形态下形成图片。在本实施例中,对于如何生成验证码不进行限制,例如,可以将图片切分成拼图形式的验证码,其中拼图的块数也不进行限制。The verification code generating module 510 selects a picture from a preset gallery, and generates a verification code according to the picture. The form of the verification code is variable, and the verification code forms a picture in a specific form. In this embodiment, there is no limitation on how to generate the verification code. For example, the picture may be divided into puzzle-shaped verification codes, and the number of pieces of the puzzle is not limited.
验证操作模块520,接收用户的验证操作,并根据验证操作改变验证码的形态。例如,基于前述的拼图形式验证码,用户的验证操作即为对验证码的拼接操作。The verification operation module 520 receives the user's verification operation, and changes the form of the verification code according to the verification operation. For example, based on the aforementioned puzzle-style verification code, the user's verification operation is the splicing operation of the verification code.
第一区域提取模块530,从修改后的验证码上选择第一区域并提取第一区域的图像信息。The first area extracting module 530 selects the first area from the modified verification code and extracts the image information of the first area.
第二区域提取模块540,从图片中选择第二区域并提取第二区域的图像信息,第二区域在图片上的位置与第一区域在验证码上的位置相对应。在本实施例中,假如用户验证操作正确,则验证码上第一区域的图像信息与图片上第二区域的图像信息必定相同。The second area extraction module 540 selects the second area from the picture and extracts the image information of the second area. The position of the second area on the picture corresponds to the position of the first area on the verification code. In this embodiment, if the user's verification operation is correct, the image information of the first area on the verification code must be the same as the image information of the second area on the picture.
图像信息比较模块550,将第一区域的图像信息与第二区域的图像信息进行比较,根据结果判断用户的验证操作是否成功。根据本实施例的技术方案,将对验证码和图片进行比较时,并非是对验证码和图片的全部图像信息进行比较,而是提取位置相对应的部分区域的图像进行比较,由于提取的图像信息变少,所以对于所提取图像信息的比较效率就变高,从而可以快速判断是否验证成功。The image information comparing module 550 compares the image information of the first area with the image information of the second area, and judges whether the verification operation of the user is successful or not according to the result. According to the technical solution of this embodiment, when comparing the verification code and the picture, it is not to compare the entire image information of the verification code and the picture, but to extract the image of the partial area corresponding to the position for comparison, because the extracted image The information becomes less, so the comparison efficiency of the extracted image information becomes higher, so that it is possible to quickly judge whether the verification is successful.
如图6所示,本发明的一个实施例中提供了一种图片验证码验证装置,其包括:As shown in Figure 6, an embodiment of the present invention provides a picture verification code verification device, which includes:
图库更新模块610,获取图库外的外部图片,对图库内的图片进行更新。在本实施例中,通过对图库内的图片进行更新,可以使得生成的验证码持续发生变化,从而验证码的验证方式不会被完全收集,避免了通过机器通过枚举方式进行验证。The gallery updating module 610, acquires external pictures outside the gallery, and updates the pictures in the gallery. In this embodiment, by updating the pictures in the gallery, the generated verification codes can be continuously changed, so that the verification methods of the verification codes will not be completely collected, avoiding verification by machines through enumeration.
具体地,可以根据使用验证码的应用,选择应用对应的网页并从网页中获取外部图片。例如,该验证码使用于一款手机游戏中,则从该手机游戏的官方网页上提取图片添加到图库中,这可以增强验证码与应用之间的关联性,使得验证码更容易被使用该应用的用户所理解。Specifically, according to the application using the verification code, the webpage corresponding to the application can be selected and the external picture can be acquired from the webpage. For example, if the verification code is used in a mobile game, extract pictures from the official web page of the mobile game and add them to the gallery, which can enhance the association between the verification code and the application, making it easier to use the verification code. understood by users of the application.
进一步地,可以从网页中选择发布时间与当前时间的差值在预设阈值内的图片作为外部图片。例如,可以选择与当前时间差值在一周内的图片;通过本实施例的技术方案,可以保证获取的图片为较新的图片,通过较新的图片生成验证码不容易被机器识别。Further, a picture with a difference between the publishing time and the current time within a preset threshold may be selected from the webpage as the external picture. For example, a picture within one week of the current time difference can be selected; through the technical solution of this embodiment, it can be guaranteed that the acquired picture is a newer picture, and the verification code generated by the newer picture is not easy to be recognized by a machine.
验证码生成模块620,从预设的图库中选择图片,从预设的多种用于生成验证码的方式中选择生成方式,并按照所选生成方式生成验证码,验证码的形态可变,且验证码在特定形态下形成图片。在本实施例中,对于同一张图库图片,通过不同的生成方式可以生成多个验证码,可见本实施例的技术方案有利于丰富验证码的种类,使得验证码的破解难度加大。The verification code generation module 620 selects a picture from a preset gallery, selects a generation method from a variety of preset methods for generating a verification code, and generates a verification code according to the selected generation method, and the form of the verification code is variable. And the verification code forms a picture in a specific form. In this embodiment, for the same gallery picture, multiple verification codes can be generated through different generation methods. It can be seen that the technical solution of this embodiment is conducive to enriching the types of verification codes and making it more difficult to crack the verification codes.
验证操作模块630,接收用户的验证操作,并根据验证操作改变验证码的形态。The verification operation module 630 receives the user's verification operation, and changes the form of the verification code according to the verification operation.
第一区域提取模块640,从修改后的验证码上选择第一区域并提取第一区域的图像信息。The first area extracting module 640 selects the first area from the modified verification code and extracts the image information of the first area.
第二区域提取模块650,从图片中选择第二区域并提取第二区域的图像信息,第二区域在图片上的位置与第一区域在验证码上的位置相对应。The second area extracting module 650 selects the second area from the picture and extracts the image information of the second area. The position of the second area on the picture corresponds to the position of the first area on the verification code.
图像信息比较模块660,对第一区域和第二区域进行同等程度降噪之后,再提取颜色信息进行比较。在本实施例的技术方案中,在进行一定的程度的降噪之后,第一区域和第二区域的中彩色会被消除,只剩余黑白色,此时提取的颜色信息会更少,更加容易进行比较。The image information comparison module 660 extracts color information for comparison after denoising the first area and the second area to the same degree. In the technical solution of this embodiment, after a certain degree of noise reduction, the mid-color in the first area and the second area will be eliminated, leaving only black and white. At this time, the extracted color information will be less and easier Compare.
本发明的一个实施例中提供了一种图片验证码验证装置,其包括:An embodiment of the present invention provides a picture verification code verification device, which includes:
验证码生成模块510,从预设的图库中选择图片,并根据图片生成验证码,验证码的形态可变,且验证码在特定形态下形成图片。验证码包括多个部分,多个部分中的至少一个部分可发生移动。The verification code generating module 510 selects a picture from a preset gallery, and generates a verification code according to the picture. The form of the verification code is variable, and the verification code forms a picture in a specific form. The verification code includes multiple parts, at least one of which can be moved.
验证操作模块520,接收用户的验证操作,并根据验证操作改变验证码的形态。The verification operation module 520 receives the user's verification operation, and changes the form of the verification code according to the verification operation.
第一区域提取模块530,从修改后的验证码上选择第一区域并提取第一区域的图像信息。The first area extracting module 530 selects the first area from the modified verification code and extracts the image information of the first area.
第二区域提取模块540,根据用户进行验证操作后验证码中的至少一个可移动部分的位置,确定验证码上选择第一区域的位置并选择。在本实施例的技术方案中,如果验证码与图片不同,那么验证码的至少一个可移动部分的位置是不正确的,所以可以基于验证码上该可移动部分的位置来选取第一区域。例如,在图4所示的图片验证码中,410为可移动的部分,而虚线线框的位置为可移动部分410的正确位置,则根据本身实施例的技术方案,所选取的第一区域可以是阴影部分420。The second area extraction module 540 determines and selects the position of the first area on the verification code according to the position of at least one movable part in the verification code after the verification operation is performed by the user. In the technical solution of this embodiment, if the verification code is different from the picture, the position of at least one movable part of the verification code is incorrect, so the first region can be selected based on the position of the movable part on the verification code. For example, in the picture verification code shown in Figure 4, 410 is a movable part, and the position of the dotted line frame is the correct position of the movable part 410, then according to the technical solution of the embodiment itself, the selected first area May be shaded portion 420 .
或,根据验证码形成图片时至少一个可移动部分的位置,确定验证码上选择第一区域的位置并选择。同理,基于前述的内容,也可以根据该可移动部分的正确位置来选取第一区域,如果验证码错误则该可移动部分必然没有位于正确位置上,该区域的颜色信息与图片对应位置的颜色信息必然不同,结合图4,则选取的第一区域可以是阴影部分430。Or, according to the position of at least one movable part when the verification code forms a picture, determine and select the position of the selected first area on the verification code. Similarly, based on the aforementioned content, the first area can also be selected according to the correct position of the movable part. If the verification code is wrong, the movable part must not be in the correct position. The color information of this area is the same as the corresponding position of the picture. The color information must be different. Referring to FIG. 4 , the selected first area may be the shaded part 430 .
图像信息比较模块550,将第一区域的图像信息与第二区域的图像信息进行比较,根据结果判断用户的验证操作是否成功。The image information comparing module 550 compares the image information of the first area with the image information of the second area, and judges whether the verification operation of the user is successful or not according to the result.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的图片验证码验证装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the device for verifying a picture verification code according to an embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
A1、一种图片验证码验证方法,其包括:A1. A picture verification code verification method, which includes:
从预设的图库中选择图片,并根据所述图片生成验证码,所述验证码的形态可变,且所述验证码在特定形态下形成所述图片;Select a picture from a preset gallery, and generate a verification code according to the picture, the form of the verification code is variable, and the verification code forms the picture in a specific form;
接收用户的验证操作,并根据所述验证操作改变所述验证码的形态;receiving the user's verification operation, and changing the form of the verification code according to the verification operation;
从修改后的所述验证码上选择第一区域并提取所述第一区域的图像信息;selecting a first area from the modified verification code and extracting image information of the first area;
从所述图片中选择第二区域并提取所述第二区域的图像信息,所述第二区域在所述图片上的位置与所述第一区域在所述验证码上的位置相对应;selecting a second area from the picture and extracting image information of the second area, where the position of the second area on the picture corresponds to the position of the first area on the verification code;
将所述第一区域的图像信息与所述第二区域的图像信息进行比较,根据所述结果判断所述用户的所述验证操作是否成功。comparing the image information of the first area with the image information of the second area, and judging whether the verification operation by the user is successful according to the result.
A2、根据A1所述的图片验证码验证方法,其中,还包括:A2. According to the method for verifying the picture verification code described in A1, it also includes:
获取所述图库外的外部图片,对所述图库内的所述图片进行更新。Obtain external pictures outside the gallery, and update the pictures in the gallery.
A3、根据A2所述的图片验证码验证方法,其中,获取所述图库外的外部图片,具体包括:A3. According to the picture verification code verification method described in A2, obtaining external pictures outside the gallery specifically includes:
根据使用所述验证码的应用,选择所述应用对应的网页并从所述网页中获取所述外部图片。According to the application using the verification code, select a webpage corresponding to the application and obtain the external picture from the webpage.
A4、根据A3所述的图片验证码验证方法,其中,选择所述应用对应的网页并从所述网页中获取所述外部图片,具体包括:A4. According to the picture verification code verification method described in A3, selecting the webpage corresponding to the application and obtaining the external picture from the webpage specifically includes:
从所述网页中选择发布时间与当前时间的差值在预设阈值内的图片作为所述外部图片。Selecting from the webpage a picture with a difference between the publishing time and the current time within a preset threshold as the external picture.
A5、根据A1所述的图片验证码验证方法,其中,根据所述图片生成验证码,具体包括:A5. According to the method for verifying a picture verification code described in A1, wherein generating a verification code according to the picture specifically includes:
从预设的多种用于生成所述验证码的方式中选择生成方式,并按照所选生成方式生成所述验证码。Select a generation method from a plurality of preset methods for generating the verification code, and generate the verification code according to the selected generation method.
A6、根据A1所述的图片验证码验证方法,其中,所述验证码包括多个部分,所述多个部分中的至少一个部分可发生移动。A6. The method for verifying a picture verification code according to A1, wherein the verification code includes a plurality of parts, and at least one part of the plurality of parts can be moved.
A7、根据A6所述的图片验证码验证方法,其中,从修改后的所述验证码上选择第一区域,具体包括:A7. According to the picture verification code verification method described in A6, the first area is selected from the modified verification code, which specifically includes:
根据所述用户进行验证操作后所述验证码中的所述至少一个可移动部分的位置,确定所述验证码上选择所述第一区域的位置并选择。According to the position of the at least one movable part in the verification code after the user performs the verification operation, the position on the verification code where the first area is selected is determined and selected.
A8、根据A6所述的图片验证码验证方法,其中,从修改后的所述验证码上选择第一区域,具体包括:A8. According to the method for verifying the picture verification code described in A6, selecting the first area from the modified verification code includes:
根据所述验证码形成所述图片时所述至少一个可移动部分的位置,确定所述验证码上选择所述第一区域的位置并选择。According to the position of the at least one movable part when the verification code forms the picture, the position on the verification code for selecting the first area is determined and selected.
A9、根据A1至A8中任一项所述的图片验证码验证方法,其中,将所述第一区域的图像信息与所述第二区域的图像信息进行比较,具体包括:A9. The picture verification code verification method according to any one of A1 to A8, wherein comparing the image information of the first area with the image information of the second area specifically includes:
对所述第一区域和所述第二区域进行同等程度降噪之后,再提取颜色信息进行比较。After denoising the first area and the second area to the same degree, the color information is extracted for comparison.
A10、一种图片验证码验证装置,其包括:A10, a picture verification code verification device, which includes:
验证码生成模块,用于从预设的图库中选择图片,并根据所述图片生成验证码,所述验证码的形态可变,且所述验证码在特定形态下形成所述图片;The verification code generation module is used to select a picture from a preset gallery, and generate a verification code according to the picture, the form of the verification code is variable, and the verification code forms the picture in a specific form;
验证操作模块,用于接收用户的验证操作,并根据所述验证操作改变所述验证码的形态;A verification operation module, configured to receive a user's verification operation, and change the form of the verification code according to the verification operation;
第一区域提取模块,用于从修改后的所述验证码上选择第一区域并提取所述第一区域的图像信息;A first area extraction module, configured to select a first area from the modified verification code and extract image information of the first area;
第二区域提取模块,用于从所述图片中选择第二区域并提取所述第二区域的图像信息,所述第二区域在所述图片上的位置与所述第一区域在所述验证码上的位置相对应;The second area extraction module is used to select a second area from the picture and extract the image information of the second area, the position of the second area on the picture is the same as that of the first area in the verification corresponding to the position on the code;
图像信息比较模块,用于将所述第一区域的图像信息与所述第二区域的图像信息进行比较,根据所述结果判断所述用户的所述验证操作是否成功。An image information comparison module, configured to compare the image information of the first area with the image information of the second area, and judge whether the verification operation of the user is successful according to the result.
A11、根据A10所述的图片验证码验证装置,其中,还包括:A11. The picture verification code verification device according to A10, which also includes:
图库更新模块,用于获取所述图库外的外部图片,对所述图库内的所述图片进行更新。The gallery update module is used to acquire external pictures outside the gallery, and update the pictures in the gallery.
A12、根据A11所述的图片验证码验证装置,其中,A12. The picture verification code verification device according to A11, wherein,
所述图库更新模块根据使用所述验证码的应用,选择所述应用对应的网页并从所述网页中获取所述外部图片。The gallery update module selects the webpage corresponding to the application according to the application using the verification code and obtains the external picture from the webpage.
A13、根据A12所述的图片验证码验证装置,其中,A13. The picture verification code verification device according to A12, wherein,
所述图库更新模块从所述网页中选择发布时间与当前时间的差值在预设阈值内的图片作为所述外部图片。The image gallery update module selects the image whose release time and current time difference is within a preset threshold as the external image from the web page.
A14、根据A10所述的图片验证码验证装置,其中,A14. The picture verification code verification device according to A10, wherein,
所述验证码生成模块从预设的多种用于生成所述验证码的方式中选择生成方式,并按照所选生成方式生成所述验证码。The verification code generation module selects a generation method from a plurality of preset methods for generating the verification code, and generates the verification code according to the selected generation method.
A15、根据A10所述的图片验证码验证装置,其中,所述验证码包括多个部分,所述多个部分中的至少一个部分可发生移动。A15. The device for verifying a picture verification code according to A10, wherein the verification code includes a plurality of parts, and at least one part of the plurality of parts can be moved.
A16、根据A15所述的图片验证码验证装置,其中,A16. The picture verification code verification device according to A15, wherein,
所述第一区域提取模块根据所述用户进行验证操作后所述验证码中的所述至少一个可移动部分的位置,确定所述验证码上选择所述第一区域的位置并选择。The first area extracting module determines and selects a position on the verification code where the first area is selected according to the position of the at least one movable part in the verification code after the user performs a verification operation.
A17、根据A15所述的图片验证码验证装置,其中,A17. The picture verification code verification device according to A15, wherein,
所述第一区域提取模块根据所述验证码形成所述图片时所述至少一个可移动部分的位置,确定所述验证码上选择所述第一区域的位置并选择。The first area extracting module determines and selects the position of the first area on the verification code according to the position of the at least one movable part when the verification code forms the picture.
A18、根据A10至A17中任一项所述的图片验证码验证装置,其中,A18. The picture verification code verification device according to any one of A10 to A17, wherein,
所述图像信息比较模块对所述第一区域和所述第二区域进行同等程度降噪之后,再提取颜色信息进行比较。The image information comparison module extracts color information for comparison after denoising the first area and the second area to the same degree.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510614233.5A CN105335645B (en) | 2015-09-23 | 2015-09-23 | Image verification code verification method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510614233.5A CN105335645B (en) | 2015-09-23 | 2015-09-23 | Image verification code verification method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105335645A true CN105335645A (en) | 2016-02-17 |
CN105335645B CN105335645B (en) | 2019-02-22 |
Family
ID=55286165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510614233.5A Active CN105335645B (en) | 2015-09-23 | 2015-09-23 | Image verification code verification method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105335645B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108846274A (en) * | 2018-04-09 | 2018-11-20 | 腾讯科技(深圳)有限公司 | A kind of safe verification method, device and terminal |
CN109782989A (en) * | 2017-11-14 | 2019-05-21 | 腾讯科技(深圳)有限公司 | Safe verification method and relevant apparatus |
CN110232269A (en) * | 2018-03-05 | 2019-09-13 | 北京京东尚科信息技术有限公司 | The verification method and device of picture validation code |
CN113742697A (en) * | 2021-08-09 | 2021-12-03 | 杭州华橙软件技术有限公司 | Equipment ownership changing method, device, equipment and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101526944A (en) * | 2008-12-23 | 2009-09-09 | 广州乐庚信息科技有限公司 | Image retrieving comparison method |
CN102592254A (en) * | 2011-10-25 | 2012-07-18 | 上海博路信息技术有限公司 | Identifying code system based on image splicing |
CN103139204A (en) * | 2012-12-19 | 2013-06-05 | 姚爱军 | Network identifying code method and system |
US20130145441A1 (en) * | 2011-06-03 | 2013-06-06 | Dhawal Mujumdar | Captcha authentication processes and systems using visual object identification |
CN103312512A (en) * | 2013-06-07 | 2013-09-18 | 深圳第七大道网络技术有限公司 | Image verification code generating method, image verification code generating device, identity verification method and identity verification device |
CN103955678A (en) * | 2014-05-13 | 2014-07-30 | 深圳市同洲电子股份有限公司 | Image recognition method and device |
CN104702406A (en) * | 2013-12-04 | 2015-06-10 | 腾讯科技(深圳)有限公司 | Identity verification method and identity verification device |
CN104796428A (en) * | 2015-04-30 | 2015-07-22 | 中国联合网络通信集团有限公司 | Dynamic verification method, client side, server and system |
-
2015
- 2015-09-23 CN CN201510614233.5A patent/CN105335645B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101526944A (en) * | 2008-12-23 | 2009-09-09 | 广州乐庚信息科技有限公司 | Image retrieving comparison method |
US20130145441A1 (en) * | 2011-06-03 | 2013-06-06 | Dhawal Mujumdar | Captcha authentication processes and systems using visual object identification |
CN102592254A (en) * | 2011-10-25 | 2012-07-18 | 上海博路信息技术有限公司 | Identifying code system based on image splicing |
CN103139204A (en) * | 2012-12-19 | 2013-06-05 | 姚爱军 | Network identifying code method and system |
CN103312512A (en) * | 2013-06-07 | 2013-09-18 | 深圳第七大道网络技术有限公司 | Image verification code generating method, image verification code generating device, identity verification method and identity verification device |
CN104702406A (en) * | 2013-12-04 | 2015-06-10 | 腾讯科技(深圳)有限公司 | Identity verification method and identity verification device |
CN103955678A (en) * | 2014-05-13 | 2014-07-30 | 深圳市同洲电子股份有限公司 | Image recognition method and device |
CN104796428A (en) * | 2015-04-30 | 2015-07-22 | 中国联合网络通信集团有限公司 | Dynamic verification method, client side, server and system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109782989A (en) * | 2017-11-14 | 2019-05-21 | 腾讯科技(深圳)有限公司 | Safe verification method and relevant apparatus |
CN109782989B (en) * | 2017-11-14 | 2021-08-03 | 腾讯科技(深圳)有限公司 | Security verification method and related device |
CN110232269A (en) * | 2018-03-05 | 2019-09-13 | 北京京东尚科信息技术有限公司 | The verification method and device of picture validation code |
CN108846274A (en) * | 2018-04-09 | 2018-11-20 | 腾讯科技(深圳)有限公司 | A kind of safe verification method, device and terminal |
CN108846274B (en) * | 2018-04-09 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Security verification method, device and terminal |
CN113742697A (en) * | 2021-08-09 | 2021-12-03 | 杭州华橙软件技术有限公司 | Equipment ownership changing method, device, equipment and medium |
CN113742697B (en) * | 2021-08-09 | 2024-05-28 | 杭州华橙软件技术有限公司 | Equipment ownership change method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN105335645B (en) | 2019-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105809164B (en) | Character recognition method and device | |
CN104391797A (en) | GUI (graphical user interface) widget identification method and device | |
JP6491959B2 (en) | Information processing apparatus, information processing method, and program | |
CN102222199A (en) | Method and system for identifying identification of application program | |
CN105335645A (en) | Verification method and apparatus for picture verification code | |
CN105653056A (en) | Input method test method and device | |
CN106815522A (en) | Mobile terminal software vacation interface identification method and device | |
CN109068150A (en) | A kind of excellent picture extracting method, terminal and the computer-readable medium of video | |
CN110766068B (en) | Verification code identification method and computing equipment | |
CN105138245B (en) | A kind of duplicate removal treatment method and device of intelligent terminal screenshot picture | |
CN104809053B (en) | A kind of test method and device for control pattern | |
CN106789973B (en) | Page security detection method and terminal equipment | |
CN106250755B (en) | Method and device for generating verification code | |
CN104699619B (en) | The method and apparatus tested on line | |
US9727145B2 (en) | Detecting device and detecting method | |
CN103685259B (en) | The method and its device of Account Logon | |
KR101833220B1 (en) | Deobfuscation assessing apparatus of application code and method of assessing deobfuscation of application code using the same | |
WO2018077059A1 (en) | Barcode identification method and apparatus | |
CN109635601B (en) | Password anti-theft method and device | |
US10354164B2 (en) | Method for detecting glint | |
CN106327457B (en) | Picture processing method, device and equipment | |
CN103914306A (en) | Method and device for providing executing result of software program | |
CN106897602A (en) | Account recommends method and apparatus | |
CN104809394A (en) | Virus scanning and killing method, device and terminal | |
WO2017071554A1 (en) | Upgrade method and device for account of designated platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220715 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |