CN107463868B - Electronic form verification method and device - Google Patents

Electronic form verification method and device Download PDF

Info

Publication number
CN107463868B
CN107463868B CN201610392180.1A CN201610392180A CN107463868B CN 107463868 B CN107463868 B CN 107463868B CN 201610392180 A CN201610392180 A CN 201610392180A CN 107463868 B CN107463868 B CN 107463868B
Authority
CN
China
Prior art keywords
electronic form
detection area
checked
verification
verified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610392180.1A
Other languages
Chinese (zh)
Other versions
CN107463868A (en
Inventor
李川石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610392180.1A priority Critical patent/CN107463868B/en
Publication of CN107463868A publication Critical patent/CN107463868A/en
Application granted granted Critical
Publication of CN107463868B publication Critical patent/CN107463868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/414Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text

Abstract

The invention discloses an electronic form verification method and device, which are used for verifying an electronic form to be verified. According to the verification method, according to a preset position factor, coordinate points corresponding to the position factor are searched in the electronic form to be verified, positioning coordinate points in the electronic form to be verified are determined according to set conditions, and the top points of the form in the electronic form to be verified are determined; determining a detection area in the electronic form to be checked according to the top point of the form in the electronic form to be checked and the standard checking form template; and finally, carrying out image processing on the detection area, and judging whether the electronic form to be verified meets the verification requirement. The electronic form verification device comprises a detection area determining module and an image processing module. The method and the device divide the detection area through image processing, detect the detection area to judge the verification result, and improve the verification efficiency.

Description

Electronic form verification method and device
Technical Field
The invention belongs to the technical field of computers, and particularly relates to an electronic form verification method and device.
Background
With the development of computer technology and the internet, it has become a common practice to transmit electronic forms through a network without mailing paper documents. However, in applications where the electronic form needs to be verified, the electronic form still needs to be verified manually.
For example, the authenticity check of the website recorded information needs to send a "website recorded information authenticity check bill" to a service provider, for example, a manufacturer who provides cloud computing services to the outside such as Tencent cloud, new network, century Internet, etc., and then the service provider manually checks the "website recorded information authenticity check bill" to check the authenticity of the provided material, records the permission of passing the check, or otherwise, provides the material again for the user.
The electronic form such as 'website record information authenticity check sheet' is checked manually, so that the personnel cost is increased, and omission easily occurs in the checking process. Especially, the introduction of artificial factors easily causes an unfair result caused by artificial subjective evaluation.
Disclosure of Invention
The invention aims to provide an electronic form verification method and device, which divide a detection area through image processing, detect the detection area to judge a verification result and solve the technical problem of low verification efficiency in the prior art.
In order to achieve the purpose, the technical scheme of the invention is as follows:
an electronic form verification method is used for verifying an electronic form to be verified, and comprises the following steps:
determining a detection area for verification from an input electronic form to be verified;
and processing the image of the detection area, and judging whether the electronic form to be checked meets the checking requirement.
Further, the determining a detection area for verification from the input electronic form to be verified includes:
according to a preset position factor, searching a coordinate point corresponding to the position factor in the electronic form to be checked, and determining a positioning coordinate point in the electronic form to be checked according to a set condition;
determining the top point of the form in the electronic form to be checked according to the positioning coordinate point in the electronic form to be checked and the standard checking form template;
and determining a detection area in the electronic form to be checked according to the top point of the form in the electronic form to be checked and the standard checking form template.
Further, the determining a detection area in the electronic form to be checked according to the vertex of the form in the electronic form to be checked and the standard check form template further includes:
and calculating the vertex coordinates of the detection area in the electronic form to be checked according to the vertex of the form in the electronic form to be checked and the standard checking form template.
Further, the verification method, after determining the detection area for verification, further includes:
and judging whether the electronic form to be checked meets the checking condition or not according to the vertex coordinates of the detection area in the electronic form to be checked and the coordinates of the table vertex in the electronic form to be checked, if so, carrying out image processing on the detection area, judging whether the electronic form to be checked meets the checking requirement or not, and otherwise, directly judging that the electronic form to be checked does not meet the checking requirement.
The invention carries on the image processing to the detection area, judges whether the electronic form to be checked meets the checking requirement, including:
acquiring pixel colors of images in each detection area by an image processing method;
calculating the occupation ratio of each color pixel in each detection area;
judging whether each detection area is qualified or not according to the pixel proportion set by each detection area;
and if all the detection areas are qualified, the electronic form to be checked is considered to meet the checking requirement, otherwise, the electronic form is considered not to meet the checking requirement.
The invention also provides an electronic form verification device, which is used for verifying the electronic form to be verified, and the electronic form verification device comprises:
the detection area determining module is used for determining a detection area for verification from the input electronic form to be verified;
and the image processing module is used for carrying out image processing on the detection area and judging whether the electronic form to be checked meets the checking requirement.
Further, the detection area determination module determines a detection area for verification from the input electronic form to be verified, and performs the following operations:
according to a preset position factor, searching a coordinate point corresponding to the position factor in the electronic form to be checked, and determining a positioning coordinate point in the electronic form to be checked according to a set condition;
determining the top point of the form in the electronic form to be checked according to the positioning coordinate point in the electronic form to be checked and the standard checking form template;
and determining a detection area in the electronic form to be checked according to the top point of the form in the electronic form to be checked and the standard checking form template.
Further, the detection area determination module determines the detection area in the electronic form to be checked according to the vertex of the form in the electronic form to be checked and the standard check form template, and further executes the following operations:
and calculating the vertex coordinates of the detection area in the electronic form to be checked according to the vertex of the form in the electronic form to be checked and the standard checking form template.
Further, the electronic form verification device further comprises a judgment module, and the judgment module is used for:
and judging whether the electronic form to be checked meets the checking condition or not according to the vertex coordinates of the detection area in the electronic form to be checked and the coordinates of the table vertex in the electronic form to be checked, if so, carrying out image processing on the detection area, judging whether the electronic form to be checked meets the checking requirement or not, and otherwise, directly judging that the electronic form to be checked does not meet the checking requirement.
The image processing module of the invention processes the image of the detection area, judges whether the electronic form to be checked meets the checking requirement, and executes the following operations:
acquiring pixel colors of images in each detection area by an image processing method;
calculating the occupation ratio of each color pixel in each detection area;
judging whether each detection area is qualified or not according to the pixel proportion set by each detection area;
and if all the detection areas are qualified, the electronic form to be checked is considered to meet the checking requirement, otherwise, the electronic form is considered not to meet the checking requirement.
The invention provides an electronic form checking method and device, which determine a detection area from an input electronic form and then perform image processing on the detection area to judge whether the electronic form to be checked meets the checking requirement. The method can realize efficient detection and rapid judgment of the check sheet picture submitted by the user aiming at the unified real check sheet in the cloud computing service provider filing service. Compared with various methods such as a straight line detection method, a cross detection method and a contour detection method in image processing morphology, the method has the characteristics of no requirement on a computing terminal, short processing time, easiness in implementation on a mobile phone terminal and the like.
Drawings
FIG. 1 is a diagram illustrating a website record information authenticity check sheet according to an embodiment of the present invention;
FIG. 2 is a flow chart of the electronic form verification method of the present invention;
FIG. 3 is a diagram of a location of a coordinate point according to an embodiment of the present invention;
FIG. 4 is a table vertex position diagram according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the drawings and examples, which should not be construed as limiting the present invention.
In this embodiment, the authenticity check of the website recorded information is taken as an example, and the method and the device for checking the electronic form are described in detail by checking the authenticity check form of the website recorded information, and are also applicable to the check of other electronic forms. As shown in fig. 1, the website record information authenticity check sheet needs to detect and judge detection regions such as Q1, Q2, Z1, Z2, and the like, and whether the check result is qualified or not is obtained.
Fig. 2 shows a flowchart of an electronic form verification method according to this embodiment, which includes:
and step S1, determining a detection area for verification from the input electronic form to be verified.
In the embodiment, a detection area needs to be determined from the electronic form to be verified, and the detection area is the area which needs to be detected to determine whether the verification passes or not when the verification is performed.
Usually, the electronic form to be verified is an electronic component of the scanned verification form, and in this embodiment, the "authenticity verification form of website recorded information" is taken as an example, as shown in fig. 1, wherein Q1, Q2, Z1, and Z2 are detection areas to be detected, and correspond to a verifier signature, a website principal signature, an access service unit seal, and a website unit official seal, respectively.
From the input electronic form to be checked, a detection area for checking is determined, and a plurality of methods are available. For example, a set template may be adopted, detection regions are already defined on the template, and the template is compared with the electronic form to be checked to find corresponding detection regions.
In order to improve the accuracy, preferably, the present embodiment determines the detection area for verification from the input electronic form to be verified, including:
f1, according to the preset position factor, searching a coordinate point corresponding to the position factor in the electronic form to be checked, and determining a positioning coordinate point in the electronic form to be checked according to the set condition.
The electronic form to be verified is an electronic part obtained through scanning, and skew may exist due to scanning, so that it is very important to correctly identify a detection area in the electronic form to judge whether the electronic form passes verification. The embodiment first determines a position factor according to a standard checking order template, and then determines the position of the effective area in the checking order through the position factor.
For example, the "website record information authenticity check sheet" of the present embodiment includes a check content in the upper half part and a signed signature and official seal in the lower half part, and the signature and official seal in the lower half part are usually checked during the check. And the upper half part is in a table form, wherein each table has four corners, and two ends of a connecting line between two adjacent tables are represented by the vertical intersection of a vertical line and a transverse line. In the embodiment, a vertical line and a horizontal line are perpendicularly intersected, and the positions of two ends of the vertical line which are all out of the head are preset as position factors.
Therefore, according to the preset position factor, all coordinate points meeting the condition can be easily found in the electronic form to be checked, as shown in fig. 3, all the coordinate points encircled by the circle in the figure are found. The found coordinate points are more, only a few of the coordinate points are needed for subsequent positioning, and the coordinate points used for subsequent positioning are called positioning coordinate points in the embodiment. In the present embodiment, the coordinate point a, the coordinate point B, and the coordinate point C are selected as the positioning coordinate points.
Selecting a coordinate point A, a coordinate point B and a coordinate point C as positioning coordinate points, and selecting the coordinate points according to the following conditions:
taking two points with the minimum y coordinate as candidates of A or C, wherein the small value of x is A, and the large value of x is C;
and taking the point with the maximum y coordinate as a candidate of B, wherein the point with the minimum x value is determined as the point B.
The above method for selecting the positioning coordinate point is only one embodiment and is relatively easy to find. It is easy to understand that other coordinate points can be selected as the positioning coordinate points, and only the specific formula for determining the coordinates in the subsequent steps is different, which does not affect the implementation effect of the present invention.
It should be noted that, when a coordinate point corresponding to the location factor is found in the electronic form to be verified, the coordinate of the coordinate point in the electronic form to be verified may be obtained. The length and width of the electronic form to be verified are generally expressed by pixels, or may be expressed by length units, and this embodiment is described by taking pixel expression as an example.
Therefore, after the positioning coordinate point is determined, the coordinates of the positioning coordinate point can be obtained, and it is assumed that the obtained coordinates of the coordinate point a, the coordinate point B, and the coordinate point C are respectively: (x)A,yA)、(xB,yB)、(xC,yC)。
F2, determining the top point of the form in the electronic form to be checked according to the positioning coordinate point in the electronic form to be checked and the standard checking form template.
In the scanned electronic form to be checked, the form in the electronic form to be checked is really needed to be identified, and the range of the form is determined by determining the vertex of the form. As shown in FIG. 4, the table has four vertices WN, EN, WS, ES.
The coordinates at the known coordinate point A, B and C are (x)A,yA)、(xB,yB)、(xC,yC) In the case of (2), it is not difficult to obtain the coordinates of each vertex:
let WN be (x) in coordinatesWN,yWN) Then xWN=xA,yWN=yA-W*α;
Let EN coordinate be (x)EN,yEN) Then xEN=xC,yEN=yC-W*α;
Let WS have coordinates of (x)WS,yWS) Then xWS=xB,yWS=yB+W*β;
Let ES coordinate be (x)ES,yES) Then xES=xC,yES=yB+W*β;
Wherein the width W of the table is xC-xAOf the tableThe width W is a value that can be determined by locating a coordinate point from which the coordinates of each vertex can be calculated. On the standard verification form, assuming that the width of the form is W ', W and W ' may not be the same due to scanning, but the ratio of the distance between the points in the electronic form to be verified to W to the distance between the points in the standard verification form to W ' should be the same. I.e., the electronic form to be verified is a zoom-in or zoom-out of a standard verification form template, the coordinates of the vertices in the form can be calculated from the width W of the form.
Wherein alpha and beta are set parameters which are calculated according to a standard checking list template. E.g. on a standard manifest template, the ordinate y of the WS pointWS=yBAnd + W'. beta.beta.can be calculated to obtain beta and also can be calculated to obtain alpha according to the actual coordinates on the standard check sheet template, and details are not repeated here. In this example, α is 0.08 and β is 0.55.
Thereby determining the top point of the table in the electronic form to be checked according to the positioning coordinate point.
F3, determining a detection area in the electronic form to be checked according to the top point of the form in the electronic form to be checked and the standard checking form template.
The same rationale as for calculating the vertex coordinates is that the detection area position in the spreadsheet to be verified can be calculated from the determined width W of the form and the position of the detection area on the standard verification form template.
The present embodiment takes the determined WS point coordinates as a calculation reference, and the calculation process is as follows:
1) q1 detection zone location:
q1 upper left vertex y coordinate being longitudinal coordinate y of WSWS-(W*t1)
Q1 upper left vertex x coordinate WS abscissa xWS+(W*t2)
The y coordinate of the lower right vertex of Q1 is the ordinate y of WSWS-(W*t3)
The x coordinate of the lower right vertex of Q1 is the x coordinate of the abscissa of WSWS+(W*t4)
2) Q2 detection zone location:
q2 upper left vertex y coordinate being longitudinal coordinate y of WSWS-(W*t5)
Q2 upper left vertex x coordinate WS abscissa xWS+(W*t6)
The y coordinate of the lower right vertex of Q2 is the ordinate y of WSWS-(W*t7)
The x coordinate of the lower right vertex of Q2 is the x coordinate of the abscissa of WSWS+(W*t8)
3) Z1 detection zone location:
z1 upper left vertex y coordinate being longitudinal coordinate y of WSWS-(W*t9)
Z1 upper left vertex x coordinate WS abscissa xWS+(W*t10)
Z1 bottom right vertex y coordinate being longitudinal coordinate y of WSWS-(W*t11)
Z1 bottom right vertex x coordinate is WS abscissa xWS+(W*t12)
4) Z2 detection zone location:
z1 upper left vertex y coordinate being longitudinal coordinate y of WSWS-(W*t13)
Z1 upper left vertex x coordinate WS abscissa xWS+(W*t14)
Z1 bottom right vertex y coordinate being longitudinal coordinate y of WSWS-(W*t15)
Z1 bottom right vertex x coordinate is WS abscissa xWS+(W*t16)
Wherein t 1-t 16 are set parameters, and the parameters are obtained by calculation according to the position of the detection area on the standard check sheet template, which are not described herein again. In this embodiment, t1 is 0.38, t2 is 0.16, t3 is 0.28, t4 is 0.49, t5 is 0.18, t6 is 0.19, t7 is 0.08, t8 is 0.40, t9 is 0.38, t10 is 0.71, t11 is 0.26, t12 is 0.99, t13 is 0.19, t14 is 0.40, t15 is 0.99, and t16 is 0.99.
In this embodiment, the range of the detection area may be determined only from the coordinates of WS, but may be calculated from the coordinates of any one of the four vertices. The coordinates of WS can be calculated by knowing the coordinates of coordinate point B and coordinate point C. Therefore, the coordinates of the positioning coordinate point and the coordinates of the vertex need to be calculated according to the specific condition of the electronic form to be checked, and the corresponding positioning coordinate point and vertex need to be set for different electronic forms to be checked to determine the range of the detection area, which is not described herein again.
And step S2, performing image processing on the detection area, and judging whether the electronic form to be verified meets the verification requirement.
For the electronic form to be checked, the checking requirement is determined according to the specific checking content, and the shape, the graph, the pixel color and the like of the image in the detection area are obtained through an image processing method to perform specific judgment.
In this embodiment, Q1, Q2, Z1, and Z2 are detection areas that need to be detected, and correspond to a verifier signature, a website leader signature, an access service unit seal, and a website unit official seal, respectively, and are determined according to the pixel colors in the detection areas, where the verification requirements are as follows:
the checking requirement of the Q1 detection area is that the white pixel proportion is more than 99 percent, and the white pixel proportion is regarded as qualified;
the checking requirement of the Q2 detection area is that the white pixel proportion is less than 97 percent, and the white pixel proportion is qualified;
the check requirement of the Z1 detection area is that the white pixel ratio is more than 99 percent, and the white pixel ratio is qualified;
the verification requirement for the detection zone of Z2 is that the red pixel proportion is greater than 10%, and the test is qualified.
And obtaining the pixel color of the image in each detection area through image processing, calculating the occupation ratio of each color pixel in each detection area, judging whether each detection area is qualified or not according to the occupation ratio of the pixel set by each detection area, if all the detection areas are qualified, considering that the electronic form to be checked meets the checking requirement, and otherwise, considering that the electronic form does not meet the checking requirement.
There are many methods for performing image processing, for example, an OpenCV vision processing algorithm is used to perform image processing to obtain the colors of all pixels in the detection area. The present invention is not limited to which specific image processing method is employed.
Further, the electronic form verification method of the embodiment, after determining the detection area for verification, further includes:
and judging whether the electronic form to be checked meets the checking condition or not according to the vertex coordinates of the detection area in the electronic form to be checked and the coordinates of the table vertex in the electronic form to be checked, if so, carrying out image processing on the detection area, judging whether the electronic form to be checked meets the checking requirement or not, and otherwise, directly judging that the electronic form to be checked does not meet the checking requirement.
In this embodiment, four vertices in the electronic form to be verified are calculated, and only one vertex is used when the detection area is located. In fact, the other three calculated vertices are also useful for determining whether the electronic form to be verified satisfies the verification condition.
For example, vertex ES and WS are adopted to determine whether the electronic form to be verified satisfies the verification condition:
x coordinate of upper left vertex of Q1 detection zone<Abscissa x of WSWSAnd judging that the electronic form image to be checked is unqualified if the checking condition is not met.
Or, the y coordinate of the lower left vertex of the Q2 detection zone>Ordinate y of WSWSAnd judging that the electronic form image to be checked is unqualified if the checking condition is not met.
Or, the x coordinate of the top right vertex of the Z1 detection zone>Abscissa x of ESESAnd judging that the electronic form image to be checked is unqualified if the checking condition is not met.
Or, the x coordinate of the top right vertex of the Z2 detection zone>Abscissa x of ESESAnd judging that the electronic form image to be checked is unqualified if the checking condition is not met.
Or, the y coordinate of the lower right vertex of the Z2 detection zone>Ordinate y of ESESAnd judging that the electronic form image to be checked is unqualified if the checking condition is not met.
The judgment does not list all judgment conditions, whether the image of the electronic form to be checked is accurate or not can be judged according to the specific situation of the electronic form to be checked and the position of the detection area and the coordinates of the vertex, the image can be used for carrying out the next judgment, and if the image is unqualified, the image is directly judged to be unqualified for checking.
The invention also provides an electronic form verification device, which is used for verifying the electronic form to be verified, and comprises the following components:
the detection area determining module is used for determining a detection area for verification from the input electronic form to be verified;
and the image processing module is used for carrying out image processing on the detection area and judging whether the electronic form to be checked meets the checking requirement.
Corresponding to the above method, the electronic form verification apparatus of the present embodiment has the following modules:
the detection area determination module of the embodiment determines a detection area for verification from the input electronic form to be verified, and executes the following operations:
according to a preset position factor, searching a coordinate point corresponding to the position factor in the electronic form to be checked, and determining a positioning coordinate point in the electronic form to be checked according to a set condition;
determining the top point of the form in the electronic form to be checked according to the positioning coordinate point in the electronic form to be checked and the standard checking form template;
and determining a detection area in the electronic form to be checked according to the top point of the form in the electronic form to be checked and the standard checking form template.
The detection area determining module of the embodiment determines the detection area in the electronic form to be checked according to the vertex of the form in the electronic form to be checked and the standard checking form template, and further executes the following operations:
and calculating the vertex coordinates of the detection area in the electronic form to be checked according to the vertex of the form in the electronic form to be checked and the standard checking form template.
The electronic form verification device further comprises a judgment module, wherein the judgment module can be an independent module or can be integrated in the detection area determination module. The judging module is used for:
and judging whether the electronic form to be checked meets the checking condition or not according to the vertex coordinates of the detection area in the electronic form to be checked and the coordinates of the table vertex in the electronic form to be checked, if so, carrying out image processing on the detection area, judging whether the electronic form to be checked meets the checking requirement or not, and otherwise, directly judging that the electronic form to be checked does not meet the checking requirement.
The image processing module of the embodiment performs image processing on the detection area, judges whether the electronic form to be checked meets the checking requirement, and executes the following operations:
acquiring pixel colors of images in each detection area by an image processing method;
calculating the occupation ratio of each color pixel in each detection area;
judging whether each detection area is qualified or not according to the pixel proportion set by each detection area;
and if all the detection areas are qualified, the electronic form to be checked is considered to meet the checking requirement, otherwise, the electronic form is considered not to meet the checking requirement.
The above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and those skilled in the art can make various corresponding changes and modifications according to the present invention without departing from the spirit and the essence of the present invention, but these corresponding changes and modifications should fall within the protection scope of the appended claims.

Claims (8)

1. An electronic form verification method is used for verifying an electronic form to be verified, wherein the electronic form to be verified is provided with a form, and the verification method is characterized by comprising the following steps:
determining a detection area for verification from an input electronic form to be verified;
processing the image of the detection area, and judging whether the electronic form to be checked meets the checking requirement;
the method for determining the detection area for verification from the input electronic form to be verified comprises the following steps:
presetting a position factor at a position where a vertical line and a horizontal line in the form are vertically intersected and two ends of the vertical line are respectively provided with a head, searching a coordinate point corresponding to the position factor in the electronic form to be checked according to the preset position factor, and determining a positioning coordinate point in the electronic form to be checked according to a set condition;
determining the top point of the form in the electronic form to be checked according to the positioning coordinate point in the electronic form to be checked and the standard checking form template;
and determining a detection area in the electronic form to be checked according to the top point of the form in the electronic form to be checked and the standard checking form template.
2. The method of claim 1, wherein determining the detection area in the electronic form to be verified based on the vertices of the form in the electronic form to be verified and a standard verification form template further comprises:
and calculating the vertex coordinates of the detection area in the electronic form to be checked according to the vertex of the form in the electronic form to be checked and the standard checking form template.
3. The electronic form verification method of claim 2, further comprising, after determining the detection zone for verification:
and judging whether the electronic form to be checked meets the checking condition or not according to the vertex coordinates of the detection area in the electronic form to be checked and the coordinates of the table vertex in the electronic form to be checked, if so, carrying out image processing on the detection area, judging whether the electronic form to be checked meets the checking requirement or not, and otherwise, directly judging that the electronic form to be checked does not meet the checking requirement.
4. The electronic form verification method of claim 1, wherein the image processing of the detection area to determine whether the electronic form to be verified meets the verification requirements comprises:
acquiring pixel colors of images in each detection area by an image processing method;
calculating the occupation ratio of each color pixel in each detection area;
judging whether each detection area is qualified or not according to the pixel proportion set by each detection area;
and if all the detection areas are qualified, the electronic form to be checked is considered to meet the checking requirement, otherwise, the electronic form is considered not to meet the checking requirement.
5. The utility model provides an electronic form verification device for treat the verification electronic form and verify, the form has on the electronic form of treating the verification, its characterized in that, electronic form verification device includes:
the detection area determining module is used for determining a detection area for verification from the input electronic form to be verified;
the image processing module is used for carrying out image processing on the detection area and judging whether the electronic form to be verified meets the verification requirement;
the detection area determining module determines a detection area for verification from the input electronic form to be verified, and executes the following operations:
presetting a position factor at a position where a vertical line and a horizontal line in the form are vertically intersected and two ends of the vertical line are respectively provided with a head, searching a coordinate point corresponding to the position factor in the electronic form to be checked according to the preset position factor, and determining a positioning coordinate point in the electronic form to be checked according to a set condition;
determining the top point of the form in the electronic form to be checked according to the positioning coordinate point in the electronic form to be checked and the standard checking form template;
and determining a detection area in the electronic form to be checked according to the top point of the form in the electronic form to be checked and the standard checking form template.
6. The electronic form verification device of claim 5, wherein the detection area determination module determines the detection area in the electronic form to be verified according to the vertex of the form in the electronic form to be verified and a standard verification form template, and further performs the following operations:
and calculating the vertex coordinates of the detection area in the electronic form to be checked according to the vertex of the form in the electronic form to be checked and the standard checking form template.
7. The electronic form verification device of claim 6, further comprising a determination module, the determination module configured to:
and judging whether the electronic form to be checked meets the checking condition or not according to the vertex coordinates of the detection area in the electronic form to be checked and the coordinates of the table vertex in the electronic form to be checked, if so, carrying out image processing on the detection area, judging whether the electronic form to be checked meets the checking requirement or not, and otherwise, directly judging that the electronic form to be checked does not meet the checking requirement.
8. The electronic form verification apparatus according to claim 5, wherein the image processing module performs image processing on the detection area, determines whether the electronic form to be verified meets the verification requirement, and performs the following operations:
acquiring pixel colors of images in each detection area by an image processing method;
calculating the occupation ratio of each color pixel in each detection area;
judging whether each detection area is qualified or not according to the pixel proportion set by each detection area;
and if all the detection areas are qualified, the electronic form to be checked is considered to meet the checking requirement, otherwise, the electronic form is considered not to meet the checking requirement.
CN201610392180.1A 2016-06-02 2016-06-02 Electronic form verification method and device Active CN107463868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610392180.1A CN107463868B (en) 2016-06-02 2016-06-02 Electronic form verification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610392180.1A CN107463868B (en) 2016-06-02 2016-06-02 Electronic form verification method and device

Publications (2)

Publication Number Publication Date
CN107463868A CN107463868A (en) 2017-12-12
CN107463868B true CN107463868B (en) 2021-02-23

Family

ID=60544486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610392180.1A Active CN107463868B (en) 2016-06-02 2016-06-02 Electronic form verification method and device

Country Status (1)

Country Link
CN (1) CN107463868B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113569863B (en) * 2021-09-26 2022-01-25 广东电网有限责任公司中山供电局 Document checking method, system, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008145611A (en) * 2006-12-07 2008-06-26 Fuji Xerox Co Ltd Information processor and program
CN101834968A (en) * 2009-03-10 2010-09-15 佳能株式会社 Image processing equipment and image processing method
CN102088369A (en) * 2010-12-30 2011-06-08 天津市国瑞数码安全系统有限公司 Automatic auditing method of Internet website record information
CN102567741A (en) * 2010-12-27 2012-07-11 汉王科技股份有限公司 Form matching method and device
CN103246953A (en) * 2013-04-25 2013-08-14 天津大学 Document audit method
CN105095842A (en) * 2014-05-22 2015-11-25 阿里巴巴集团控股有限公司 Method and device for identifying information of bill
CN105279525A (en) * 2015-11-19 2016-01-27 浪潮软件集团有限公司 Image processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4940973B2 (en) * 2007-02-02 2012-05-30 富士通株式会社 Logical structure recognition processing program, logical structure recognition processing method, and logical structure recognition processing apparatus
US8600164B2 (en) * 2008-03-28 2013-12-03 Smart Technologies Ulc Method and tool for recognizing a hand-drawn table
CN101882225B (en) * 2009-12-29 2013-09-18 北京中科辅龙计算机技术股份有限公司 Engineering drawing material information extraction method and system based on template

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008145611A (en) * 2006-12-07 2008-06-26 Fuji Xerox Co Ltd Information processor and program
CN101834968A (en) * 2009-03-10 2010-09-15 佳能株式会社 Image processing equipment and image processing method
CN102567741A (en) * 2010-12-27 2012-07-11 汉王科技股份有限公司 Form matching method and device
CN102088369A (en) * 2010-12-30 2011-06-08 天津市国瑞数码安全系统有限公司 Automatic auditing method of Internet website record information
CN103246953A (en) * 2013-04-25 2013-08-14 天津大学 Document audit method
CN105095842A (en) * 2014-05-22 2015-11-25 阿里巴巴集团控股有限公司 Method and device for identifying information of bill
CN105279525A (en) * 2015-11-19 2016-01-27 浪潮软件集团有限公司 Image processing method and device

Also Published As

Publication number Publication date
CN107463868A (en) 2017-12-12

Similar Documents

Publication Publication Date Title
US9275281B2 (en) Mobile image capture, processing, and electronic form generation
TWI619080B (en) Method for calculating fingerprint overlapping region and electronic device
WO2020082731A1 (en) Electronic device, credential recognition method and storage medium
CN109697414B (en) Text positioning method and device
TW201543377A (en) Method and apparatus of extracting particular information from standard card
US20180253852A1 (en) Method and device for locating image edge in natural background
CN110136156A (en) A kind of polygonal region detection method and device
CN108769803B (en) Recognition method, cutting method, system, equipment and medium for video with frame
US11657644B2 (en) Automatic ruler detection
WO2021082922A1 (en) Method and device for detecting screen display disconnection
CN113379723B (en) Irregular glue overflow port detection method, device, equipment and storage medium
TWI765442B (en) Method for defect level determination and computer readable storage medium thereof
CN111259891A (en) Method, device, equipment and medium for identifying identity card in natural scene
CN107463868B (en) Electronic form verification method and device
CN108133116B (en) Method and system for automatically identifying wall thickness of CAD house type graph
CN110969640A (en) Video image segmentation method, terminal device and computer-readable storage medium
CN113743187A (en) Method and device for identifying legend in engineering drawing, electronic equipment and storage medium
CN111860687A (en) Image identification method and device, electronic equipment and storage medium
CN112036232A (en) Image table structure identification method, system, terminal and storage medium
CN110929738A (en) Certificate card edge detection method, device, equipment and readable storage medium
WO2017000827A1 (en) Method and device for automatically screening pictures
CN108303640B (en) Line detection method and device
CN114742142A (en) Liquid crystal display screen detection method and liquid crystal display screen detection equipment
WO2021073576A1 (en) Intelligent vehicle verification method and system, computer device, and storage medium
CN114418951A (en) Pad detection method and device, computer 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
GR01 Patent grant
GR01 Patent grant