CN117744057A - Clock image verification code identification method, system, computer equipment and storage medium - Google Patents

Clock image verification code identification method, system, computer equipment and storage medium Download PDF

Info

Publication number
CN117744057A
CN117744057A CN202311630083.8A CN202311630083A CN117744057A CN 117744057 A CN117744057 A CN 117744057A CN 202311630083 A CN202311630083 A CN 202311630083A CN 117744057 A CN117744057 A CN 117744057A
Authority
CN
China
Prior art keywords
clock
picture
verification code
image verification
identified
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
CN202311630083.8A
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.)
Guangzhou Yishu Information Technology Co ltd
Original Assignee
Guangzhou Yishu Information 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 Guangzhou Yishu Information Technology Co ltd filed Critical Guangzhou Yishu Information Technology Co ltd
Priority to CN202311630083.8A priority Critical patent/CN117744057A/en
Publication of CN117744057A publication Critical patent/CN117744057A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a clock image verification code identification method, a system, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a clock image verification code picture to be identified of a data acquisition target website; acquiring picture parameter information of the clock image verification code picture to be identified; generating clock pointer template pictures of all times in a binary mode according to the picture parameter information; sequentially carrying out graying and binarization treatment on the clock image verification code picture to be identified; sequentially superposing the processed clock image verification code picture to be identified with clock pointer template pictures in the clock pointer template group corresponding to the picture parameter information, and calculating the area of an image overlapping contour region; comparing to obtain a clock pointer template picture with the largest area of the overlapped outline area of the images; outputting the time pointed by the pointer in the clock pointer template picture with the largest area of the image overlapping outline area; the invention can accurately and efficiently identify the clock image verification code.

Description

Clock image verification code identification method, system, computer equipment and storage medium
Technical Field
The invention relates to the technical field of identifying verification codes, in particular to a clock image verification code identification method, a clock image verification code identification system, computer equipment and a storage medium.
Background
The existing CAPTCHA (CAPTCHA, full name: completely Automated Public Turing test to tell Computers and Humans Apart) is a public, fully automated program that distinguishes whether a user is a computer or a person. The method is mainly used for distinguishing human-machine behaviors. The common verification code forms at present comprise an image verification code, a short message verification code, a voice verification code and the like. The image verification code is easy to transmit, relatively low in cost and wide in use. Currently, most common image verification codes are numbers, letters, characters and the like.
With the continuous development and deep application of information technology and the continuous development of big data industry, the attribute of data as a key element is continuously highlighted, and the construction of some data platform systems usually has the requirement of data acquisition. However, some data collection target websites typically use verification code technology to distinguish between normal users and robot programs, thereby restricting access to computer programs. In order to realize data acquisition, a verification code program of a website needs to be identified or bypassed, so that the aim of data acquisition is fulfilled.
The existing identifying technology of identifying codes mainly identifies the image identifying codes in modes of image identification, machine learning/deep learning and the like, has complex processing steps and large performance loss, the identifying accuracy depends on the sample quality of the identifying codes and an identifying algorithm, the identifying accuracy is high or low, the identifying technology mainly aims at character type (numbers, letters, characters and the like) image identifying codes, and no special solution is provided for identifying clock image identifying codes. The recognition technology for the character type image verification code cannot well solve the recognition problem of the clock image verification code.
Disclosure of Invention
The invention aims to provide a clock image verification code identification method, a clock image verification code identification system, computer equipment and a storage medium, which can accurately and efficiently identify a clock image verification code.
To achieve the purpose, the invention adopts the following technical scheme:
the clock image verification code identification method is characterized by comprising the following steps:
receiving a clock image verification code picture to be identified of a data acquisition target website;
acquiring picture parameter information of the clock image verification code picture to be identified, wherein the picture parameter information comprises: the width and the height of the picture, the width and the length of the hour hand and the width and the length of the minute hand;
generating clock pointer template pictures of all times in a binary mode according to the picture parameter information, naming the clock pointer template pictures respectively by using the time pointed by the clock pointer, and storing the clock pointer template pictures in the same clock pointer template group;
sequentially carrying out graying and binarization processing on the clock image verification code picture to be identified;
sequentially superposing the processed clock image verification code picture to be identified with clock pointer template pictures in the clock pointer template group corresponding to the picture parameter information, and calculating the area of an image overlapping contour region;
comparing to obtain a clock pointer template picture with the largest area of the overlapped outline area of the images;
and outputting the time pointed by the pointer in the clock pointer template picture with the largest area of the image overlapping outline area.
As a preferred scheme of the clock image verification code identification method, after the step of obtaining the picture parameter information of the clock image verification code picture to be identified, the method includes:
judging whether the picture parameter information of the clock image verification code to be identified is the same as the picture parameter information of the generated clock pointer template group;
if not, executing the step of generating clock pointer template pictures of all times in a binary mode according to the picture parameter information, naming the clock pointer template pictures by using the time pointed by the clock pointer respectively, and storing the clock pointer template pictures in the same clock pointer template group;
if yes, directly executing the steps of sequentially carrying out graying and binarizing on the clock image verification code picture to be identified.
As a preferred scheme of the clock image identifying code identifying method, the step of generating clock pointer template pictures of all times in a binary manner according to the picture parameter information, naming the clock pointer template pictures respectively by using the time pointed by the clock pointer and storing the clock pointer template pictures in the same clock pointer template group includes:
generating a base map of the clock pointer template picture by using the width value and the height value of the clock image verification code picture to be identified;
drawing a clock dial by using a white background;
drawing a black clock minute hand according to the minute hand width and the minute hand length of the clock image verification code picture to be identified;
and drawing a black clock hour according to the hour width and the hour length of the clock image verification code picture to be identified.
As a preferred scheme of the clock image identifying code identifying method, the step of sequentially performing graying and binarizing processing on the clock image identifying code picture to be identified includes:
acquiring pixel data information of the clock image verification code picture to be identified;
carrying out gray scale processing on each acquired pixel by using a weighted average algorithm;
and carrying out binarization processing on the picture subjected to gray level processing, wherein the threshold value is set to be 180-200, when the pixel value is larger than the threshold value, the pixel value is set to be 255, and otherwise, the pixel value is set to be 0.
As a preferred scheme of the clock image identifying code identifying method, the step of sequentially superposing the processed clock image identifying code picture to be identified with the clock pointer template pictures in the clock pointer template group corresponding to the picture parameter information and calculating the area of the image overlapping outline area includes:
acquiring pixel data information of the processed clock image verification code picture to be identified and the clock pointer template picture;
adding pixel values of the same positions of the processed clock image verification code picture to be identified and the clock pointer template picture according to pixel information to generate a superimposed image;
extracting all contours in the superimposed image and storing the contours in a collection form, wherein each contour comprises a coordinate vector of a contour pixel;
calculating the area of each contour by using a Grignard formula;
and adding the areas of the outlines to obtain the area of the overlapped outline area of the image.
As a preferred embodiment of the clock image identifying code identifying method, after the step of outputting the time pointed by the pointer in the clock pointer template picture with the largest area of the overlapping contour area of the image, the method includes:
and labeling and naming the clock image verification code picture to be identified according to the time pointed by the pointer in the clock pointer template picture with the largest image overlapping contour area, and storing the clock image verification code picture.
The invention also provides a clock image verification code identification system, which comprises:
the receiving module is used for receiving the clock image verification code picture to be identified of the data acquisition target website;
the image parameter information extraction module is used for obtaining image parameter information of the clock image verification code image to be identified, wherein the image parameter information comprises: the width and the height of the picture, the width and the length of the hour hand and the width and the length of the minute hand;
the template group generating module is used for generating clock pointer template pictures of all times in a binary mode according to the picture parameter information, naming the clock pointer template pictures respectively by using the time pointed by the clock pointer and storing the clock pointer template pictures in the same clock pointer template group;
the processing module is used for sequentially carrying out graying and binarization processing on the clock image verification code picture to be identified;
the superposition calculating module is used for sequentially superposing the processed clock image verification code picture to be identified with clock pointer template pictures in the clock pointer template group corresponding to the picture parameter information and calculating the area of the image superposition contour area;
the comparison module is used for comparing and obtaining the clock pointer template picture with the largest area of the image overlapping outline area;
and the output module is used for outputting the time pointed by the pointer in the clock pointer template picture with the largest area of the image overlapping contour area.
As a preferred embodiment of the clock image verification code identification system, the clock image verification code identification system further includes:
the judging module is used for judging whether the picture parameter information of the clock image verification code to be identified is the same as the picture parameter information of the generated clock pointer template group;
and the storage module is used for labeling and naming the clock image verification code picture to be identified according to the time pointed by the pointer in the clock pointer template picture with the largest image overlapping contour area and storing the clock image verification code picture.
The invention also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the clock image verification code identification method as described in any one of the above when executing the computer program.
The invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the clock image verification code identification method as described in any of the preceding claims.
The invention has the beneficial effects that: the clock image verification code identification method, the system, the computer equipment and the storage medium can accurately and efficiently identify the clock image verification code by adopting a clock pointer template matching mode; compared with the recognition modes such as image recognition, machine learning, deep learning and the like, the method has the advantages that the performance is greatly improved, the recognition speed is far higher than that of other recognition schemes, the recognition cost is reduced, a large number of samples are not required to be trained, the resource requirement is low, the implementation is simple, and the deployment cost is extremely low.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are required to be used in the embodiments of the present invention will be briefly described below. It is evident that the drawings described below are only some embodiments of the present invention and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a flowchart of a clock image verification code identification method according to an embodiment of the invention;
FIG. 2 is a diagram of one display mode of the data acquisition target website when the clock image verification code is verified;
FIG. 3 is a schematic flow chart of clock image verification code identification according to an embodiment of the present invention;
FIG. 4 is a partial time-consuming Zhong Zhizhen master picture of a clock hand master component in accordance with one embodiment of the present invention;
FIG. 5 is a partially named stored clock image verification code picture in accordance with one embodiment of the present invention;
FIG. 6 is a block diagram schematically illustrating a clock image verification code recognition system according to an embodiment of the present invention;
FIG. 7 is a block diagram of a computer device according to one embodiment of the invention;
the achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Other advantages and effects of the present disclosure will become readily apparent to those skilled in the art from the following disclosure, which describes embodiments of the present disclosure by way of specific examples. It will be apparent that the described embodiments are merely some, but not all embodiments of the present disclosure. The disclosure may be embodied or practiced in other different specific embodiments, and details within the subject specification may be modified or changed from various points of view and applications without departing from the spirit of the disclosure. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure.
Referring to fig. 1-5, an embodiment of the present invention provides a clock image verification code identification method, including:
s1: receiving a clock image verification code picture to be identified of a data acquisition target website;
s2: acquiring picture parameter information of the clock image verification code picture to be identified, wherein the picture parameter information comprises: the width and the height of the picture, the width and the length of the hour hand and the width and the length of the minute hand;
s3: generating clock pointer template pictures of all times in a binary mode according to the picture parameter information, naming the clock pointer template pictures respectively by using the time pointed by the clock pointer, and storing the clock pointer template pictures in the same clock pointer template group;
s4: sequentially carrying out graying and binarization processing on the clock image verification code picture to be identified;
s5: sequentially superposing the processed clock image verification code picture to be identified with clock pointer template pictures in the clock pointer template group corresponding to the picture parameter information, and calculating the area of an image overlapping contour region;
s6: comparing to obtain a clock pointer template picture with the largest area of the overlapped outline area of the images;
s7: and outputting the time pointed by the pointer in the clock pointer template picture with the largest area of the image overlapping outline area.
As described in step S1, when the data collection target website displays that the verification of the clock image verification code is required, as shown in fig. 2, the verification of the clock image verification code is a picture with color, and an input box is arranged at the bottom for inputting a corresponding time number for verification; the receiving module receives a clock image verification code picture to be identified, which is displayed by a data acquisition target website.
As described in step S3, the template production module names the clock pointer template pictures in a binary mode of white background and black foreground according to the picture parameter information, and uses the time pointed by the clock pointer to name the clock pointer template pictures and store the clock pointer template pictures in the same clock pointer template group; the clock pointer template groups corresponding to the clock image verification code pictures with different picture parameter information are different, namely, any one of the width and the height of the pictures, the width and the length of the hour hand, the width and the length of the minute hand and the like are different, and the corresponding clock pointer template groups are also different; each clock pointer template group has 720 clock pointer template pictures (the total number of clock scales is 12 x the total number of minute scales is 60), the mode of naming the clock pointer template pictures is the time pointed by the clock pointer, specifically, two digits of the clock pointer are added and divided into two digits of the pointer, more than 12 points are represented by 0 points, the digits are less than two digits, and the front is added with 0. The clock pointer template picture is generated as shown in fig. 4.
And step S7, the output module outputs the time pointed by the pointer in the clock pointer template picture with the largest area of the image overlapping outline area, and the output time is the identification result of the clock image verification code picture to be identified and is used for inputting the identification result to the input frame at the bottom of the clock image verification code verification displayed by the data acquisition target website for verification.
In the embodiment, the clock pointer template matching mode is adopted, so that the clock image verification code can be accurately and efficiently identified; compared with the recognition modes such as image recognition, machine learning, deep learning and the like, the method has the advantages that the performance is greatly improved, the recognition speed is far higher than that of other recognition schemes, the recognition cost is reduced, a large number of samples are not required to be trained, the resource requirement is low, the implementation is simple, and the deployment cost is extremely low.
In some embodiments, after the step S2 of obtaining the picture parameter information of the to-be-identified clock image verification code picture, the method includes:
s21: judging whether the picture parameter information of the clock image verification code to be identified is the same as the picture parameter information of the generated clock pointer template group;
s22: if not, executing the step of generating clock pointer template pictures of all times in a binary mode according to the picture parameter information, naming the clock pointer template pictures by using the time pointed by the clock pointer respectively, and storing the clock pointer template pictures in the same clock pointer template group;
s23: if yes, directly executing the steps of sequentially carrying out graying and binarizing on the clock image verification code picture to be identified.
The step S21-S23 is that the judging module compares the picture parameter information of the clock image verification code to be identified with the picture parameter information of the generated clock pointer template group one by one, judges whether the generated clock pointer template group has a corresponding matched clock pointer template group, and regenerates the clock pointer template group if the generated clock pointer template group does not have the corresponding matched clock pointer template group; if so, the clock pointer template group is not needed to be generated, the corresponding matched clock pointer template group can be directly used, repeated generation is avoided, and the identification is faster and more efficient.
In some embodiments, the step S3 of generating clock pointer template pictures of all times in a binary manner according to the picture parameter information, naming the clock pointer template pictures respectively by using the time pointed by the clock pointer, and storing the clock pointer template pictures in the same clock pointer template group includes:
s31: generating a base map of the clock pointer template picture by using the width value and the height value of the clock image verification code picture to be identified, wherein the base map is the same as the size of the clock image verification code picture to be identified;
s32: drawing a clock dial by using a white background;
s33: drawing a black clock minute hand according to the minute hand width and the minute hand length of the clock image verification code picture to be recognized, specifically, drawing the black clock minute hand by taking the center of the picture as a starting point and pointing to the clock minute hand time;
s34: and drawing a black clock hour according to the hour width and the hour length of the clock image verification code picture to be recognized, specifically, drawing the black clock hour by taking the picture center as a starting point and pointing to the clock hour time.
In some embodiments, the step S4 of sequentially performing graying and binarizing processing on the clock image verification code picture to be identified includes:
s41: acquiring pixel data information of the clock image verification code picture to be identified;
s42: carrying out gray scale processing on each acquired pixel by using a weighted average algorithm; the weighted average algorithm formula is as follows: gray=0.299r+0.587g+0.114b, wherein R, G, B represents the values of three color channels of red, green, and blue, gray represents the Gray value, the weight of the red channel is 0.299, the weight of the green channel is 0.587, and the weight of the blue channel is 0.114 in the weighted average algorithm;
s43: and carrying out binarization processing on the picture subjected to gray level processing, wherein the threshold value is set to be 180-200, when the pixel value is larger than the threshold value, the pixel value is set to be 255, and otherwise, the pixel value is set to be 0.
According to the embodiment, the processing of the other clock image verification code picture can be realized, the picture noise is removed, the noise point in the picture is effectively removed, and the influence on the identification result is prevented.
In some embodiments, the step S5 of sequentially superposing the processed clock image identifying code picture to be identified with the clock pointer template pictures in the clock pointer template group corresponding to the picture parameter information and calculating the area of the image overlapping contour area includes:
s51: acquiring pixel data information of the processed clock image verification code picture to be identified and the clock pointer template picture;
s52: adding pixel values of the same positions of the processed clock image verification code picture to be identified and the clock pointer template picture according to pixel information to generate a superimposed image; specifically, the superposition mode is: reading pixel data of two pictures, adding pixel values at the same position of the two pictures, and setting the added pixel values as 255 when the added pixel values are larger than 255;
s53: extracting all contours in the superimposed image and storing the contours in a collection form, wherein each contour comprises a coordinate vector of a contour pixel; specifically, the contour extraction algorithm logic is: searching all contours, but not establishing a hierarchical relationship among the contours, and storing all continuous contour points on the image boundary;
s54: calculating the area of each contour by using a Grignard formula; specifically, the green formula theorem is: let the closed region D be surrounded by a piecewise smooth simple curve L, the functions P (x, y) and Q (x, y) have first-order continuous partial derivatives on D, then there are:
wherein: l is a boundary curve of the orientation of D;
this formula can be used to calculate the area of the irregular surface.
S55: and adding the areas of the outlines to obtain the area of the overlapped outline area of the image.
In some embodiments, after the step S7 of outputting the time pointed by the pointer in the clock pointer template picture with the largest image overlapping contour area, the method includes:
s8: and labeling and naming the clock image verification code picture to be identified according to the time pointed by the pointer in the clock pointer template picture with the largest image overlapping contour area, and storing the clock image verification code picture.
As described in step S8, the clock image verification code pictures are marked and named according to the identified time and stored in the designated folder, and the naming mode may be the format of the identified time plus the english underline and the random character string, as shown in fig. 5.
The above embodiment facilitates the subsequent periodic inspection or statistics of the accuracy of the identification result of the present invention, such as: the verification or statistics are performed by means of manual verification or other image recognition.
Referring to fig. 6, the present invention further provides a clock image verification code identification system, including:
the receiving module is used for receiving the clock image verification code picture to be identified of the data acquisition target website;
the image parameter information extraction module is used for obtaining image parameter information of the clock image verification code image to be identified, wherein the image parameter information comprises: the width and the height of the picture, the width and the length of the hour hand and the width and the length of the minute hand;
the template group generating module is used for generating clock pointer template pictures of all times in a binary mode according to the picture parameter information, naming the clock pointer template pictures respectively by using the time pointed by the clock pointer and storing the clock pointer template pictures in the same clock pointer template group;
the processing module is used for sequentially carrying out graying and binarization processing on the clock image verification code picture to be identified;
the superposition calculating module is used for sequentially superposing the processed clock image verification code picture to be identified with clock pointer template pictures in the clock pointer template group corresponding to the picture parameter information and calculating the area of the image superposition contour area;
the comparison module is used for comparing and obtaining the clock pointer template picture with the largest area of the image overlapping outline area;
and the output module is used for outputting the time pointed by the pointer in the clock pointer template picture with the largest area of the image overlapping contour area.
In some embodiments, the clock image verification code identification system further comprises:
the judging module is used for judging whether the picture parameter information of the clock image verification code to be identified is the same as the picture parameter information of the generated clock pointer template group;
and the storage module is used for labeling and naming the clock image verification code picture to be identified according to the time pointed by the pointer in the clock pointer template picture with the largest image overlapping contour area and storing the clock image verification code picture.
Referring to fig. 7, a computer device is further provided in the embodiment of the present application, where the computer device may be a server, and the internal structure of the computer device may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a storage medium, an internal memory. The storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing clock image verification code pictures, clock pointer template groups and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, may implement the clock image verification code identification method described in any one of the above embodiments.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device to which the present application is applied.
The embodiment of the application further provides a computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the clock image verification code identification method described in any one of the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by hardware associated with a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
In the description of the present invention, it should be understood that the terms "middle," "length," "upper," "lower," "front," "rear," "vertical," "horizontal," "inner," "outer," "radial," "circumferential," and the like indicate an orientation or a positional relationship based on that shown in the drawings, merely for convenience of description and to simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the invention.
In the present invention, unless expressly stated or limited otherwise, a first feature "on" a second feature may be that the first and second features are in direct contact, or that the first and second features are in indirect contact via an intervening medium. The meaning of "a plurality of" means at least two, e.g., two, three, etc., unless explicitly defined otherwise.
In the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly, through intermediaries, or both, may be in communication with each other or in interaction with each other, unless expressly defined otherwise. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
The above description is for the purpose of illustrating the embodiments of the present invention and is not to be construed as limiting the invention, but is intended to cover all modifications, equivalents, improvements and alternatives falling within the spirit and principles of the invention.

Claims (10)

1. A clock image verification code identification method, comprising:
receiving a clock image verification code picture to be identified of a data acquisition target website;
acquiring picture parameter information of the clock image verification code picture to be identified, wherein the picture parameter information comprises: the width and the height of the picture, the width and the length of the hour hand and the width and the length of the minute hand;
generating clock pointer template pictures of all times in a binary mode according to the picture parameter information, naming the clock pointer template pictures respectively by using the time pointed by the clock pointer, and storing the clock pointer template pictures in the same clock pointer template group;
sequentially carrying out graying and binarization processing on the clock image verification code picture to be identified;
sequentially superposing the processed clock image verification code picture to be identified with clock pointer template pictures in the clock pointer template group corresponding to the picture parameter information, and calculating the area of an image overlapping contour region;
comparing to obtain a clock pointer template picture with the largest area of the overlapped outline area of the images;
and outputting the time pointed by the pointer in the clock pointer template picture with the largest area of the image overlapping outline area.
2. The clock image verification code identification method according to claim 1, wherein after the step of acquiring the picture parameter information of the clock image verification code picture to be identified, comprising:
judging whether the picture parameter information of the clock image verification code to be identified is the same as the picture parameter information of the generated clock pointer template group;
if not, executing the step of generating clock pointer template pictures of all times in a binary mode according to the picture parameter information, naming the clock pointer template pictures by using the time pointed by the clock pointer respectively, and storing the clock pointer template pictures in the same clock pointer template group;
if yes, directly executing the steps of sequentially carrying out graying and binarizing on the clock image verification code picture to be identified.
3. The method for identifying clock image verification code according to claim 1, wherein the step of generating clock pointer template pictures of all times in a binary manner according to the picture parameter information, naming the clock pointer template pictures respectively by using the time pointed by the clock pointer and storing the clock pointer template pictures in the same clock pointer template group comprises the following steps:
generating a base map of the clock pointer template picture by using the width value and the height value of the clock image verification code picture to be identified;
drawing a clock dial by using a white background;
drawing a black clock minute hand according to the minute hand width and the minute hand length of the clock image verification code picture to be identified;
and drawing a black clock hour according to the hour width and the hour length of the clock image verification code picture to be identified.
4. The method for identifying clock image verification codes according to claim 1, wherein the step of sequentially performing graying and binarizing processing on the clock image verification code picture to be identified comprises:
acquiring pixel data information of the clock image verification code picture to be identified;
carrying out gray scale processing on each acquired pixel by using a weighted average algorithm;
and carrying out binarization processing on the picture subjected to gray level processing, wherein the threshold value is set to be 180-200, when the pixel value is larger than the threshold value, the pixel value is set to be 255, and otherwise, the pixel value is set to be 0.
5. The method for identifying clock image verification codes according to claim 1, wherein the step of sequentially superposing the processed clock image verification code pictures to be identified with clock pointer template pictures in the clock pointer template group corresponding to the picture parameter information and calculating the area of the image overlapping contour region comprises the steps of:
acquiring pixel data information of the processed clock image verification code picture to be identified and the clock pointer template picture;
adding pixel values of the same positions of the processed clock image verification code picture to be identified and the clock pointer template picture according to pixel information to generate a superimposed image;
extracting all contours in the superimposed image and storing the contours in a collection form, wherein each contour comprises a coordinate vector of a contour pixel;
calculating the area of each contour by using a Grignard formula;
and adding the areas of the outlines to obtain the area of the overlapped outline area of the image.
6. The method according to claim 1, characterized by comprising, after the step of outputting the time pointed to by the pointer in the clock pointer template picture where the image overlapping contour area is the largest:
and labeling and naming the clock image verification code picture to be identified according to the time pointed by the pointer in the clock pointer template picture with the largest image overlapping contour area, and storing the clock image verification code picture.
7. A clock image verification code identification system, comprising:
the receiving module is used for receiving the clock image verification code picture to be identified of the data acquisition target website;
the image parameter information extraction module is used for obtaining image parameter information of the clock image verification code image to be identified, wherein the image parameter information comprises: the width and the height of the picture, the width and the length of the hour hand and the width and the length of the minute hand;
the template group generating module is used for generating clock pointer template pictures of all times in a binary mode according to the picture parameter information, naming the clock pointer template pictures respectively by using the time pointed by the clock pointer and storing the clock pointer template pictures in the same clock pointer template group;
the processing module is used for sequentially carrying out graying and binarization processing on the clock image verification code picture to be identified;
the superposition calculating module is used for sequentially superposing the processed clock image verification code picture to be identified with clock pointer template pictures in the clock pointer template group corresponding to the picture parameter information and calculating the area of the image superposition contour area;
the comparison module is used for comparing and obtaining the clock pointer template picture with the largest area of the image overlapping outline area;
and the output module is used for outputting the time pointed by the pointer in the clock pointer template picture with the largest area of the image overlapping contour area.
8. The clock image verification code identification system of claim 7, further comprising:
the judging module is used for judging whether the picture parameter information of the clock image verification code to be identified is the same as the picture parameter information of the generated clock pointer template group;
and the storage module is used for labeling and naming the clock image verification code picture to be identified according to the time pointed by the pointer in the clock pointer template picture with the largest image overlapping contour area and storing the clock image verification code picture.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the clock image verification code identification method according to any one of claims 1 to 6.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the clock image verification code identification method according to any one of claims 1 to 6.
CN202311630083.8A 2023-11-30 2023-11-30 Clock image verification code identification method, system, computer equipment and storage medium Pending CN117744057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311630083.8A CN117744057A (en) 2023-11-30 2023-11-30 Clock image verification code identification method, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311630083.8A CN117744057A (en) 2023-11-30 2023-11-30 Clock image verification code identification method, system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117744057A true CN117744057A (en) 2024-03-22

Family

ID=90257093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311630083.8A Pending CN117744057A (en) 2023-11-30 2023-11-30 Clock image verification code identification method, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117744057A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107679535A (en) * 2017-09-16 2018-02-09 西安电子科技大学 A kind of pointer-type water meter automatic indication recognition system and method based on template matches
CN108230168A (en) * 2016-12-22 2018-06-29 Tcl集团股份有限公司 The method and system of personalized route planning is shared by customizing multimedia method
CN114092728A (en) * 2021-11-09 2022-02-25 国网智能科技股份有限公司 Pointer instrument intelligent identification method and system based on deep learning
CN114638961A (en) * 2022-03-28 2022-06-17 北京国电瑞源科技发展有限公司 Pointer dial plate identification method, system and computer storage medium
CN114863129A (en) * 2022-04-11 2022-08-05 珠海优特电力科技股份有限公司 Instrument numerical analysis method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108230168A (en) * 2016-12-22 2018-06-29 Tcl集团股份有限公司 The method and system of personalized route planning is shared by customizing multimedia method
CN107679535A (en) * 2017-09-16 2018-02-09 西安电子科技大学 A kind of pointer-type water meter automatic indication recognition system and method based on template matches
CN114092728A (en) * 2021-11-09 2022-02-25 国网智能科技股份有限公司 Pointer instrument intelligent identification method and system based on deep learning
CN114638961A (en) * 2022-03-28 2022-06-17 北京国电瑞源科技发展有限公司 Pointer dial plate identification method, system and computer storage medium
CN114863129A (en) * 2022-04-11 2022-08-05 珠海优特电力科技股份有限公司 Instrument numerical analysis method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110046529B (en) Two-dimensional code identification method, device and equipment
CN108399405B (en) Business license identification method and device
CN110516577B (en) Image processing method, image processing device, electronic equipment and storage medium
CN110619274A (en) Identity verification method and device based on seal and signature and computer equipment
KR101606469B1 (en) Method for image analysis, especially for mobile stations
CN111178355B (en) Seal identification method, device and storage medium
CN111274957A (en) Webpage verification code identification method, device, terminal and computer storage medium
CN110197238B (en) Font type identification method, system and terminal equipment
CN110675940A (en) Pathological image labeling method and device, computer equipment and storage medium
US11714921B2 (en) Image processing method with ash code on local feature vectors, image processing device and storage medium
US20150213313A1 (en) Methods and systems for efficient automated symbol recognition using multiple clusters of symbol patterns
CN111178290A (en) Signature verification method and device
CN112861842A (en) Case text recognition method based on OCR and electronic equipment
CN112330331A (en) Identity verification method, device and equipment based on face recognition and storage medium
CN116311214B (en) License plate recognition method and device
CN112528318A (en) Image desensitization method and device and electronic equipment
CN112613513A (en) Image recognition method, device and system
CN105426944A (en) Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group
CN114092938B (en) Image recognition processing method and device, electronic equipment and storage medium
CN117496521A (en) Method, system and device for extracting key information of table and readable storage medium
CN117744057A (en) Clock image verification code identification method, system, computer equipment and storage medium
CN113792849B (en) Training method of character generation model, character generation method, device and equipment
CN112395834B (en) Brain graph generation method, device and equipment based on picture input and storage medium
CN116246161A (en) Method and device for identifying target fine type of remote sensing image under guidance of domain knowledge
CN114612647A (en) Image processing method, image processing device, electronic equipment 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