CN112070092A - Verification code parameter acquisition method and device - Google Patents

Verification code parameter acquisition method and device Download PDF

Info

Publication number
CN112070092A
CN112070092A CN202010914216.4A CN202010914216A CN112070092A CN 112070092 A CN112070092 A CN 112070092A CN 202010914216 A CN202010914216 A CN 202010914216A CN 112070092 A CN112070092 A CN 112070092A
Authority
CN
China
Prior art keywords
image
verification code
acquiring
preprocessed
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.)
Pending
Application number
CN202010914216.4A
Other languages
Chinese (zh)
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 Minglue Zhaohui Technology Co Ltd
Original Assignee
Beijing Minglue Zhaohui 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 Minglue Zhaohui Technology Co Ltd filed Critical Beijing Minglue Zhaohui Technology Co Ltd
Priority to CN202010914216.4A priority Critical patent/CN112070092A/en
Publication of CN112070092A publication Critical patent/CN112070092A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Abstract

The application provides a method and a device for acquiring verification code parameters, which relate to the technical field of computers, and the method comprises the following steps: acquiring a verification code image; preprocessing the verification code image to obtain a preprocessed image; acquiring an information character image from the preprocessed image; matching the matched character image corresponding to the information character image in the preprocessed image; and acquiring the position coordinate parameter of the matched character image in the preprocessed image. Therefore, by implementing the embodiment, the use limitation of identifying the verification code can be avoided, and the identification precision of the verification code is improved.

Description

Verification code parameter acquisition method and device
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for acquiring verification code parameters.
Background
At present, the verification code is a public full-automatic program which effectively distinguishes a user from a computer, and can effectively prevent other people from continuously logging in a website by using a specific program so as to crack malicious behaviors such as an account and a password of the user. However, in practice, it is found that the current identifying method of the verification code generally uses a character segmentation method, and the use of the character segmentation method requires that characters cannot be overlapped and adhered in the vertical direction, thereby causing certain use limitation and reducing the identifying precision of the verification code.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for acquiring verification code parameters, which can avoid the use limitation of verification code identification, thereby improving the identification precision of the verification code.
A first aspect of an embodiment of the present application provides a method for acquiring a verification code parameter, where the method may include:
acquiring a verification code image;
preprocessing the verification code image to obtain a preprocessed image;
acquiring an information character image from the preprocessed image;
matching a matched character image corresponding to the information character image in the preprocessed image;
and acquiring the position coordinate parameter of the matched character image in the preprocessed image.
In the implementation process, the method can preferentially acquire the verification code image, and preprocesses the verification code image after acquiring the verification code image to obtain a preprocessed image; when a preprocessed image is obtained, an information character image is obtained from the preprocessed image; further matching a matched character image corresponding to the information character image in the preprocessed image; and finally, acquiring the position coordinate parameters of the matched character images in the preprocessed images. Therefore, by implementing the implementation mode, self-identification can be carried out according to the verification code image, so that the process of character identification of the verification code is avoided, and the use limitation caused by verification code identification is further avoided; on the other hand, by implementing the implementation mode, the verification code parameters can be extracted through the verification code image, so that the extraction process of the verification code is not interfered by the verification code identification process, the verification code identification error is not generated, and the identification precision of the verification code can be improved.
Further, the step of preprocessing the verification code image to obtain a preprocessed image includes:
carrying out gray level processing on the verification code image to obtain a gray level image;
and carrying out binarization processing on the gray level image to obtain a preprocessed image.
In the implementation process, the method can perform gray processing on the verification code image preferentially to obtain a gray image in the process of preprocessing the verification code image to obtain a preprocessed image; and then carrying out binarization processing on the gray level image to obtain a preprocessed image. Therefore, by implementing the embodiment, the black-white two-color preprocessed image can be obtained through gray processing and binarization processing, so that the subsequent processing of the verification code image is performed based on the simple black-white two-color preprocessed image, and the whole verification code image processing efficiency is improved; meanwhile, the desired information character image can be accurately obtained according to the black-white bicolor preprocessed image, so that the identification degree of the information character image based on the black-white bicolor is higher, and the acquisition precision of the verification code parameter can be improved.
Further, the step of obtaining the information text image from the preprocessed image includes:
carrying out region division on the preprocessed image to obtain a prompt information region and a verification information region;
and acquiring an information character image in the prompt information area.
In the implementation process, in the process of acquiring the information character image from the preprocessed image, the method can preferentially perform area division on the preprocessed image to obtain a prompt information area and a verification information area; and then, acquiring an information character image in the prompt information area. Therefore, by implementing the implementation mode, the area division can be carried out on the preprocessed image to obtain the prompt information area and the verification information area, so that the prompt information and the verification information can be obviously divided, the information character image can be accurately obtained, and the related information content in the verification information area cannot be obtained.
Further, the step of matching a matching text image corresponding to the information text image in the preprocessed image comprises:
and matching the matched character image corresponding to the information character image in the verification information area.
In the implementation process, in the process of matching the matching character image corresponding to the information character image in the preprocessed image, the method may specifically match the matching character image corresponding to the information character image in the verification information region. Therefore, by implementing the implementation mode, the matched character image corresponding to the information character image can be acquired in the verification information area, so that the matched character image can be accurately acquired and cannot be acquired in the prompt information area, the condition of false detection is avoided, and the detection precision of the matched character image is improved.
Further, the step of obtaining the position coordinate parameter of the matched text image in the preprocessed image includes:
acquiring the coordinates of the center point of each matched character in the matched character image in the preprocessed image;
and generating a position coordinate parameter according to the central point coordinate.
In the implementation process, in the process of obtaining the position coordinate parameter of the matched character image in the preprocessed image, the method can preferentially obtain the center point coordinate of each matched character in the matched character image in the preprocessed image; and then generating a position coordinate parameter according to the central point coordinate. Therefore, by implementing the implementation mode, the coordinate of the central point of each matched character can be acquired by taking the preprocessed image as a reference, so that the finally obtained position coordinate parameter is determined based on the coordinate system of the preprocessed image, the correlation between the position coordinate parameter and the preprocessed image is further ensured, and the acquisition precision of the verification code parameter is further ensured.
A second aspect of the embodiments of the present application provides an apparatus for acquiring a verification code parameter, where the apparatus for acquiring a verification code parameter includes:
a first acquisition unit configured to acquire a verification code image;
the processing unit is used for preprocessing the verification code image to obtain a preprocessed image;
the second acquisition unit is used for acquiring an information character image from the preprocessed image;
a matching unit for matching a matching character image corresponding to the information character image in the preprocessed image;
and the third acquisition unit is used for acquiring the position coordinate parameter of the matched character image in the preprocessed image.
In the implementation process, the verification code parameter acquiring device may acquire the verification code image through the first acquiring unit; preprocessing the verification code image through a processing unit to obtain a preprocessed image; acquiring an information character image in the preprocessed image through a second acquisition unit; matching a matching character image corresponding to the information character image in the preprocessed image through a matching unit; and acquiring the position coordinate parameter of the matched character image in the preprocessed image through a third acquisition unit. Therefore, by implementing the implementation mode, self-identification can be carried out according to the verification code image, so that the process of character identification of the verification code is avoided, and the use limitation caused by verification code identification is further avoided; on the other hand, by implementing the implementation mode, the verification code parameters can be extracted through the verification code image, so that the extraction process of the verification code is not interfered by the verification code identification process, the verification code identification error is not generated, and the identification precision of the verification code can be improved.
Further, the processing unit includes:
the first processing subunit is used for carrying out gray processing on the verification code image to obtain a gray image;
and the second processing subunit is used for carrying out binarization processing on the gray level image to obtain a preprocessed image.
In the implementation process, the processing unit may perform gray processing on the verification code image through the first processing subunit to obtain a gray image; and carrying out binarization processing on the gray level image through a second processing subunit to obtain a preprocessed image. Therefore, by implementing the embodiment, the black-white two-color preprocessed image can be obtained through gray processing and binarization processing, so that the subsequent processing of the verification code image is performed based on the simple black-white two-color preprocessed image, and the whole verification code image processing efficiency is improved; meanwhile, the desired information character image can be accurately obtained according to the black-white bicolor preprocessed image, so that the identification degree of the information character image based on the black-white bicolor is higher, and the acquisition precision of the verification code parameter can be improved.
Further, the second acquisition unit includes:
the dividing subunit is used for carrying out region division on the preprocessed image to obtain a prompt information region and a verification information region;
and the first acquisition subunit is used for acquiring the information character image in the prompt information area.
In the implementation process, the second obtaining unit may perform area division on the preprocessed image through the dividing subunit to obtain a prompt information area and a verification information area; and acquiring the information character image in the prompt information area through the first acquiring subunit. Therefore, by implementing the implementation mode, the area division can be carried out on the preprocessed image to obtain the prompt information area and the verification information area, so that the prompt information and the verification information can be obviously divided, the information character image can be accurately obtained, and the related information content in the verification information area cannot be obtained.
A third aspect of the embodiments of the present application provides an electronic device, including a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the method for acquiring the parameter of the verification code according to any one of the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores computer program instructions, where the computer program instructions, when read and executed by a processor, perform the method for obtaining an authentication code parameter according to any one of the first aspect of the embodiments of the present application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a method for acquiring verification code parameters according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another method for acquiring verification code parameters according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an apparatus for acquiring verification code parameters according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another apparatus for obtaining verification code parameters according to an embodiment of the present disclosure;
fig. 5 is an exemplary schematic diagram of a method for acquiring verification code parameters according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for obtaining verification code parameters according to an embodiment of the present disclosure. The method can be applied to the verification process of the verification code in any software. Specifically, the method can be used for automatically acquiring verification code parameters so as to be convenient for verifying the verification code input by the user; the method can also be used for automatically acquiring verification code parameters so as to automatically complete verification of the verification code. The method for acquiring the verification code parameters comprises the following steps:
s101, acquiring a verification code image.
As an alternative embodiment, the step of acquiring the verification code image may include:
and accessing the verification code picture interface and acquiring the verification code picture.
By implementing the implementation mode, the verification code image can be directly acquired through the verification code image interface, so that the participation and interference of other processes can be avoided, the precision of the verification code image is closest to the original precision, and the acquisition precision of the verification code parameters is further ensured.
S102, preprocessing the verification code image to obtain a preprocessed image.
In this embodiment, the preprocessing performed on the verification code image may include many kinds, including image graying processing, image binarization processing, character edge tracing processing, character edge optimization processing, and the like.
S103, acquiring an information character image in the preprocessed image.
In this embodiment, the information text image is an indication image indicating that the user searches for an object in the verification code image.
For example, the verification code image includes a typeface of "please click on ' fire ', ' learn ', ' expect ', and some scattered" fire ', "learn", "expect" chinese characters. Therefore, the verification code image requires the user to click the three characters of fire, learning and watching in sequence in scattered Chinese characters of fire, learning and watching so as to enable the user to complete the verification process. In this case, the three words "fire", "learn" and "look" in the word "please click" fire "," learn "and" look "are the information text images.
And S104, matching the matched character image corresponding to the information character image in the preprocessed image.
In this embodiment, the matching text image is an image corresponding to the information text image.
In the present embodiment, the characters in the matching character image correspond to the characters in the information character image.
For example, the matching text image is the image information obtained by matching the scattered "fire", "school" and "hope".
And S105, acquiring the position coordinate parameter of the matched character image in the preprocessed image.
In this embodiment, the position coordinate parameter is a verification code parameter.
In this embodiment, the user clicks the location of the user, and the user clicks the location of the user. Therefore, if the position coordinate parameters are acquired in the step, the coordinates of the clicked position of the user can be compared conveniently, and verification code comparison and identification are completed.
In this embodiment, the execution subject of the method may be a computing device such as a computer and a server, and is not limited in this embodiment.
In this embodiment, an execution subject of the method may also be a smart device such as a smart phone and a tablet, which is not limited in this embodiment.
It can be seen that, by implementing the method for acquiring the verification code parameters described in fig. 1, self-identification can be performed according to the verification code image, so that the process of performing character identification on the verification code is avoided, and further, the use limitation caused by verification code identification is avoided; on the other hand, by implementing the implementation mode, the verification code parameters can be extracted through the verification code image, so that the extraction process of the verification code is not interfered by the verification code identification process, the verification code identification error is not generated, and the identification precision of the verification code can be improved. .
Example 2
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another method for obtaining verification code parameters according to an embodiment of the present disclosure. The flow chart of the method for acquiring the verification code parameters described in fig. 2 is improved according to the flow chart of the method for acquiring the verification code parameters described in fig. 1. The method for acquiring the verification code parameters comprises the following steps:
s201, acquiring a verification code image.
In this embodiment, the obtained verification code image is used to further obtain verification code parameters.
In this embodiment, the verification code parameter is a coordinate parameter of a text image to be verified in the verification code image.
For example, when the coordinate parameter input by the user is matched with the coordinate parameter of the text image to be verified, it indicates that the user has completed verification correctly.
S202, carrying out gray level processing on the verification code image to obtain a gray level image.
In this embodiment, the grayscale processing may normalize multiple colors included in the verification code image, thereby facilitating identification.
And S203, carrying out binarization processing on the gray level image to obtain a preprocessed image.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating an exemplary method for obtaining verification code parameters. As shown in fig. 5, fig. 5 specifically provides an image schematic diagram of a preprocessed image after binarization processing. In the pre-processed image schematic, "click: the area of fire study and inspection constitutes the prompt information area, and the area of fire study and inspection below the prompt information area constitutes the verification information area.
In the example process, the method mainly aims to acquire coordinate parameters of three Chinese characters, namely 'fire, study and wish' in the verification information area information.
And S204, carrying out region division on the preprocessed image to obtain a prompt information region and a verification information region.
In this embodiment, the region division is to facilitate obtaining the information text image and the matching text image.
In this embodiment, the verification information area is obtained by intercepting the preprocessed image, and the verification information area is a part of the content in the prompt information area.
And S205, acquiring the information character image in the prompt information area.
In this embodiment, the information text image includes a plurality of information text images.
For example, like the three informative text sub-images shown in fig. 5, "fire", "school", "hope".
In the present embodiment, the method does not recognize three information texts "fire", "school", and "hope", that is, only images within a minimum rectangular (or circular) range including "fire", "school", or "hope" are acquired, and the acquired three information text sub-images are taken as templates for matching.
And S206, matching the matched character image corresponding to the information character image in the verification information area.
In this embodiment, the matching character image is image information corresponding to the information character image.
In this embodiment, the information text image includes a plurality of information text sub-images, and the matching text image includes a corresponding number of matching text sub-images. The number between the two is the same.
As an alternative embodiment, the step of matching a matching text image corresponding to the information text image in the verification information area includes:
acquiring an image sequence of a plurality of information character sub-images in the information character image;
sequentially matching character subimages in the verification information area according to the image sequence to obtain a plurality of matched character subimages;
and combining the image sequence and the matched character subimages to obtain a matched character image.
As an optional implementation manner, if the font sizes of the information text sub-image and the matching text sub-image are different, the matching operation may be performed after scaling the information text sub-image to a certain degree.
And S207, acquiring the center point coordinates of each matched character in the matched character image in the preprocessed image.
In this embodiment, the matching text image includes a plurality of matching text subimages, and each matching text subimage includes a corresponding matching text.
In this embodiment, the center point coordinates may be understood as the center coordinates of each matched letter (or as the center coordinates of each matched letter sub-image).
And S208, generating a position coordinate parameter according to the central point coordinate.
In this embodiment, the position coordinate parameter is a verification code parameter.
In this embodiment, the verification code parameter is used to assist in determining whether the input parameter information is correct and valid.
In this embodiment, the above steps may be implemented by some code instructions of the Opencv-python module.
By implementing the implementation mode, characters in the verification code image cannot be recognized in the whole process, so that errors and workload brought by recognition are avoided. In addition, the whole process of the method is completed by processing the image, so that the acquisition process of the verification code parameter is started from the image to the image, and the acquisition precision of the position coordinate parameter is ensured.
It can be seen that, by implementing the method for acquiring the verification code parameters described in fig. 2, self-identification can be performed according to the verification code image, so that the process of performing character identification on the verification code is avoided, and further, the use limitation caused by verification code identification is avoided; on the other hand, by implementing the implementation mode, the verification code parameters can be extracted through the verification code image, so that the extraction process of the verification code is not interfered by the verification code identification process, the verification code identification error is not generated, and the identification precision of the verification code can be improved. .
Example 3
Please refer to fig. 3, fig. 3 is a schematic structural diagram of an apparatus for acquiring verification code parameters according to an embodiment of the present disclosure. The device for acquiring the verification code parameter comprises:
a first obtaining unit 310, configured to obtain a verification code image;
the processing unit 320 is configured to perform preprocessing on the verification code image to obtain a preprocessed image;
a second obtaining unit 330, configured to obtain an information text image from the preprocessed image;
a matching unit 340 for matching a matching character image corresponding to the information character image in the preprocessed image;
and a third obtaining unit 350, configured to obtain a position coordinate parameter of the matched text image in the preprocessed image.
In this embodiment, for the explanation of the apparatus for acquiring the verification code parameter, reference may be made to the description in embodiment 1 or embodiment 2, and details are not repeated in this embodiment.
It can be seen that, the implementation of the apparatus for acquiring the verification code parameters described in fig. 3 can perform self-identification according to the verification code image, thereby avoiding the process of performing character identification on the verification code, and further avoiding the use limitation caused by verification code identification; on the other hand, by implementing the implementation mode, the verification code parameters can be extracted through the verification code image, so that the extraction process of the verification code is not interfered by the verification code identification process, the verification code identification error is not generated, and the identification precision of the verification code can be improved. .
Example 4
Referring to fig. 4, fig. 4 is a schematic structural diagram of another apparatus for acquiring verification code parameters according to an embodiment of the present disclosure. The schematic structure of the apparatus for acquiring verification code parameters depicted in fig. 4 is obtained by modifying the schematic structure of the apparatus for acquiring verification code parameters depicted in fig. 3. Wherein the processing unit 320 includes:
a first processing subunit 321, configured to perform gray scale processing on the verification code image to obtain a gray scale image;
and a second processing subunit 322, configured to perform binarization processing on the grayscale image to obtain a preprocessed image.
As an optional implementation, the second obtaining unit 330 includes:
a dividing subunit 331, configured to perform area division on the preprocessed image, so as to obtain a prompt information area and a verification information area;
the first obtaining subunit 332 is configured to obtain the information text image in the prompt information area.
As an alternative embodiment, the matching unit 340 is specifically configured to match a matching text image corresponding to the information text image in the verification information area.
As an optional implementation, the third obtaining unit 350 includes:
the second obtaining subunit 351 is configured to obtain, in the preprocessed image, coordinates of a center point of each matched character in the matched character image;
and a generating subunit 352, configured to generate a position coordinate parameter according to the center point coordinate.
In this embodiment, for the explanation of the apparatus for acquiring the verification code parameter, reference may be made to the description in embodiment 1 or embodiment 2, and details are not repeated in this embodiment.
It can be seen that, the verification code parameter acquiring device described in fig. 4 can perform self-identification according to the verification code image, thereby avoiding the process of performing character identification on the verification code, and further avoiding the use limitation caused by verification code identification; on the other hand, by implementing the implementation mode, the verification code parameters can be extracted through the verification code image, so that the extraction process of the verification code is not interfered by the verification code identification process, the verification code identification error is not generated, and the identification precision of the verification code can be improved. .
The embodiment of the application provides an electronic device, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor runs the computer program to enable the electronic device to execute the method for acquiring the verification code parameter in any one of embodiment 1 or embodiment 2 of the application.
An embodiment of the present application provides a computer-readable storage medium, which stores computer program instructions, and when the computer program instructions are read and executed by a processor, the method for acquiring a parameter of an authentication code according to any one of embodiments 1 and 2 of the present application is performed.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that, herein, 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for acquiring verification code parameters is characterized by comprising the following steps:
acquiring a verification code image;
preprocessing the verification code image to obtain a preprocessed image;
acquiring an information character image from the preprocessed image;
matching a matched character image corresponding to the information character image in the preprocessed image;
and acquiring the position coordinate parameter of the matched character image in the preprocessed image.
2. The method for obtaining the verification code parameter according to claim 1, wherein the step of preprocessing the verification code image to obtain a preprocessed image comprises:
carrying out gray level processing on the verification code image to obtain a gray level image;
and carrying out binarization processing on the gray level image to obtain a preprocessed image.
3. The method for obtaining parameters of a verification code according to claim 1, wherein the step of obtaining an information text image from the preprocessed image comprises:
carrying out region division on the preprocessed image to obtain a prompt information region and a verification information region;
and acquiring an information character image in the prompt information area.
4. The method for acquiring the parameter of the verification code according to claim 3, wherein the step of matching the matching text image corresponding to the information text image in the preprocessed image comprises:
and matching the matched character image corresponding to the information character image in the verification information area.
5. The method for obtaining the parameter of the verification code according to claim 1, wherein the step of obtaining the position coordinate parameter of the matching text image in the preprocessed image comprises:
acquiring the coordinates of the center point of each matched character in the matched character image in the preprocessed image;
and generating a position coordinate parameter according to the central point coordinate.
6. An apparatus for obtaining an authentication code parameter, the apparatus comprising:
a first acquisition unit configured to acquire a verification code image;
the processing unit is used for preprocessing the verification code image to obtain a preprocessed image;
the second acquisition unit is used for acquiring an information character image from the preprocessed image;
a matching unit for matching a matching character image corresponding to the information character image in the preprocessed image;
and the third acquisition unit is used for acquiring the position coordinate parameter of the matched character image in the preprocessed image.
7. The apparatus for obtaining the parameter of the verification code according to claim 6, wherein the processing unit comprises:
the first processing subunit is used for carrying out gray processing on the verification code image to obtain a gray image;
and the second processing subunit is used for carrying out binarization processing on the gray level image to obtain a preprocessed image.
8. The apparatus for acquiring parameter of verification code according to claim 6, wherein the second acquiring unit comprises:
the dividing subunit is used for carrying out region division on the preprocessed image to obtain a prompt information region and a verification information region;
and the first acquisition subunit is used for acquiring the information character image in the prompt information area.
9. An electronic device, characterized in that the electronic device comprises a memory for storing a computer program and a processor for executing the computer program to make the electronic device execute the method of acquiring the parameter of the verification code according to any one of claims 1 to 5.
10. A readable storage medium, wherein computer program instructions are stored in the readable storage medium, and when the computer program instructions are read and executed by a processor, the method for obtaining the parameter of the verification code according to any one of claims 1 to 5 is performed.
CN202010914216.4A 2020-09-02 2020-09-02 Verification code parameter acquisition method and device Pending CN112070092A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010914216.4A CN112070092A (en) 2020-09-02 2020-09-02 Verification code parameter acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010914216.4A CN112070092A (en) 2020-09-02 2020-09-02 Verification code parameter acquisition method and device

Publications (1)

Publication Number Publication Date
CN112070092A true CN112070092A (en) 2020-12-11

Family

ID=73665983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010914216.4A Pending CN112070092A (en) 2020-09-02 2020-09-02 Verification code parameter acquisition method and device

Country Status (1)

Country Link
CN (1) CN112070092A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282905A (en) * 2021-04-23 2021-08-20 新华三信息安全技术有限公司 Login test method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282905A (en) * 2021-04-23 2021-08-20 新华三信息安全技术有限公司 Login test method and device

Similar Documents

Publication Publication Date Title
US10049096B2 (en) System and method of template creation for a data extraction tool
US9384389B1 (en) Detecting errors in recognized text
US10643094B2 (en) Method for line and word segmentation for handwritten text images
CN109766885B (en) Character detection method and device, electronic equipment and storage medium
CN108491866B (en) Pornographic picture identification method, electronic device and readable storage medium
CN106951832A (en) A kind of verification method and device based on Handwritten Digits Recognition
JP6795195B2 (en) Character type estimation system, character type estimation method, and character type estimation program
AU2017410934B2 (en) Detecting orientation of textual documents on a live camera feed
CN112183296B (en) Simulated bill image generation and bill image recognition method and device
US20150302243A1 (en) Distance based binary classifier of handwritten words
US20180181804A1 (en) Data normalization for handwriting recognition
CN111640193A (en) Word processing method, word processing device, computer equipment and storage medium
CN114005126A (en) Table reconstruction method and device, computer equipment and readable storage medium
CN113033543A (en) Curved text recognition method, device, equipment and medium
CN112149680A (en) Wrong word detection and identification method and device, electronic equipment and storage medium
CN110414622B (en) Classifier training method and device based on semi-supervised learning
CN106250755B (en) Method and device for generating verification code
CN111414914A (en) Image recognition method and device, computer equipment and storage medium
JP5634972B2 (en) Method, computer program product and system for text segmentation
CN114386013A (en) Automatic student status authentication method and device, computer equipment and storage medium
KR102282025B1 (en) Method for automatically sorting documents and extracting characters by using computer
CN107992872B (en) Method for carrying out text recognition on picture and mobile terminal
CN112070092A (en) Verification code parameter acquisition method and device
CN111638792A (en) AR effect presentation method and device, computer equipment and storage medium
CN115270711A (en) Electronic signature method, electronic signature device, electronic apparatus, and storage medium

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