CN112801016A - Vote data statistical method, device, equipment and medium - Google Patents

Vote data statistical method, device, equipment and medium Download PDF

Info

Publication number
CN112801016A
CN112801016A CN202110172512.6A CN202110172512A CN112801016A CN 112801016 A CN112801016 A CN 112801016A CN 202110172512 A CN202110172512 A CN 202110172512A CN 112801016 A CN112801016 A CN 112801016A
Authority
CN
China
Prior art keywords
vote
counted
item
image
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110172512.6A
Other languages
Chinese (zh)
Other versions
CN112801016B (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.)
Lianren Healthcare Big Data Technology Co Ltd
Original Assignee
Lianren Healthcare Big Data 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 Lianren Healthcare Big Data Technology Co Ltd filed Critical Lianren Healthcare Big Data Technology Co Ltd
Priority to CN202110172512.6A priority Critical patent/CN112801016B/en
Publication of CN112801016A publication Critical patent/CN112801016A/en
Application granted granted Critical
Publication of CN112801016B publication Critical patent/CN112801016B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Molecular Biology (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • Character Input (AREA)

Abstract

The embodiment of the invention discloses a vote data statistical method, a vote data statistical device, vote data statistical equipment and a vote data statistical medium, wherein the method comprises the following steps: acquiring a ballot image to be counted, and extracting the content in a table in the ballot image to be counted, wherein the content in the table comprises a mark selection item and a numerical evaluation item, the mark selection item is a voting item which needs to take preset characters as a voting selection result in the ballot, and the numerical evaluation item is a voting item which needs to take a numerical score as a result in the ballot; respectively identifying characters corresponding to the mark selection items in the table content and numbers corresponding to the numerical evaluation items; and generating a statistical result of the votes to be counted based on the characters and the numbers. The technical scheme of the embodiment solves the problem that the efficiency of manual vote and score counting in the prior art is low, realizes that vote counting efficiency is improved and manual counting errors are avoided by respectively identifying vote selection and score in vote images and automatically counting vote results.

Description

Vote data statistical method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a vote data statistical method, a vote data statistical device, vote data statistical equipment and a vote data statistical medium.
Background
In some scoring activities, people qualified for voting or scoring are generally required to vote or score the objects to be scored, and then statistics are performed by the statistical personnel to obtain statistical results.
However, when the amount of the acquired evaluation data is large, the number and/or the score of the evaluation result cannot be counted in a short time due to limited manpower of a statistic staff, the statistical efficiency is low, and a statistical error may exist.
Disclosure of Invention
The embodiment of the invention provides a vote data statistical method, a device, equipment and a medium, which are used for improving the statistical efficiency of voting and scoring conditions in votes and reducing the statistical result error influenced by human.
In a first aspect, an embodiment of the present invention provides a vote data statistics method, where the method includes:
obtaining a ballot image to be counted, and extracting the content in a table in the ballot image to be counted, wherein the content in the table comprises a mark selection item and a numerical evaluation item, the mark selection item is a voting item which needs to take a preset character as a voting selection result in the ballot, and the numerical evaluation item is a voting item which needs to take a numerical score as a result in the ballot;
respectively identifying characters corresponding to the mark selection items in the table content and numbers corresponding to the numerical evaluation items;
and generating a statistical result of the votes to be counted based on the characters and the numbers.
Optionally, the extracting the content in the table in the vote image to be counted includes:
preprocessing the vote image to be counted;
identifying and extracting lines with intersections in the preprocessed ballot image to be counted to obtain a form frame in the ballot image to be counted;
and determining the content in the table based on the vote image to be counted and the table frame.
Optionally, the preprocessing the vote image to be counted includes:
carrying out gray level processing on the ballot image to be counted, and carrying out binarization processing to obtain a binarization ballot image;
and corroding and expanding the binary vote image.
Optionally, the respectively identifying the character corresponding to the mark selection item and the number corresponding to the numerical score item in the content in the table includes:
identifying characters corresponding to the mark selection items in the contents in the table by an optical character recognition method;
and identifying corresponding numbers in the numerical evaluation items through a preset handwritten number identification model.
Optionally, the identifying the character corresponding to the mark selection item in the content in the table by an optical character recognition method includes:
identifying handwritten symbols in a preset pixel coordinate area in the vote image to be counted by an optical character identification method, wherein the preset pixel coordinate area corresponds to an area corresponding to the mark option;
determining whether the recognized handwritten symbols belong to symbols in a preset symbol library;
and when the recognized handwritten symbols belong to symbols in the preset symbol library, taking the recognized handwritten symbols as preset characters corresponding to the mark selection items.
Optionally, the preset symbol library includes symbols associated with the shape of the designated handwritten symbol in the image to be statistically selected.
Optionally, the generating a statistical result of the vote to be counted based on the characters and the numbers includes:
counting the selection result corresponding to the mark selection item through the characters;
and counting the scores corresponding to the numerical scoring items through the numbers.
In a second aspect, an embodiment of the present invention further provides a vote data statistics apparatus, where the apparatus includes:
the system comprises a content extraction module, a vote processing module and a decision module, wherein the content extraction module is used for acquiring a vote image to be counted and extracting the content in a table in the vote image to be counted, the content in the table comprises a mark selection item and a numerical evaluation item, the mark selection item is a voting item which needs to take preset characters as a voting selection result in a vote, and the numerical evaluation item is a voting item which needs to take a numerical score as a result in the vote;
the content identification module is used for respectively identifying characters corresponding to the mark selection items in the table content and numbers corresponding to the numerical evaluation items;
and the vote counting module is used for generating a counting result of the votes to be counted based on the characters and the numbers.
Optionally, the content extraction module is specifically configured to:
preprocessing the vote image to be counted;
identifying and extracting lines with intersections in the preprocessed ballot image to be counted to obtain a form frame in the ballot image to be counted;
and determining the content in the table based on the vote image to be counted and the table frame.
Optionally, the content extraction module is further configured to:
carrying out gray level processing on the ballot image to be counted, and carrying out binarization processing to obtain a binarization ballot image;
and corroding and expanding the binary vote image.
Optionally, the content identification module includes:
the character recognition submodule is used for recognizing characters corresponding to the mark selection items in the contents in the table by an optical character recognition method;
and the number recognition submodule is used for recognizing corresponding numbers in the numerical evaluation items through a preset handwritten number recognition model.
Optionally, the character recognition sub-module is specifically configured to:
identifying handwritten symbols in a preset pixel coordinate area in the vote image to be counted by an optical character identification method, wherein the preset pixel coordinate area corresponds to an area corresponding to the mark option;
determining whether the recognized handwritten symbols belong to symbols in a preset symbol library;
and when the recognized handwritten symbols belong to symbols in the preset symbol library, taking the recognized handwritten symbols as preset characters corresponding to the mark selection items.
Optionally, the preset symbol library includes symbols associated with the shape of the designated handwritten symbol in the image to be statistically selected.
Optionally, the vote counting module is specifically configured to:
counting the selection result corresponding to the mark selection item through the characters;
and counting the scores corresponding to the numerical scoring items through the numbers.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a vote data statistics method as provided by any embodiment of the invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the vote data statistical method provided in any embodiment of the present invention.
The embodiment of the invention has the following advantages or beneficial effects:
according to the embodiment of the invention, through acquiring and extracting the table content in the vote image to be counted, wherein the table content comprises a mark selection item and a numerical evaluation item, characters corresponding to the mark selection item and numbers corresponding to the numerical evaluation item in the table content are respectively identified; finally, generating a statistical result of the votes to be counted based on the characters and the numbers; the method solves the problem of low efficiency of manual vote and score counting in the prior art, realizes the automatic vote result counting by respectively identifying vote selection and score in the vote image, improves the vote counting efficiency and avoids manual counting errors.
Drawings
Fig. 1 is a flowchart of a vote data statistics method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an image of a vote to be counted according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a preprocessed ballot image to be counted according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a table extracted from a preprocessed vote image to be counted according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of extracting contents in a table from a preprocessed vote image to be counted according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating characters corresponding to tag selections in the identified content of a table according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating numbers corresponding to numerical scores in the contents of an identified table according to an embodiment of the present invention;
FIG. 8 is a schematic diagram illustrating statistics performed according to vote image recognition results according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a vote data statistics apparatus according to a second embodiment of the present invention;
fig. 10 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a vote data statistics method according to an embodiment of the present invention, which is applicable to statistics of handwritten votes. The method can be executed by a vote counting device, which can be implemented by software and/or hardware and is integrated in an electronic device with application development function.
As shown in fig. 1, the vote data statistical method includes the following steps:
s110, obtaining a ballot image to be counted, and extracting the content in the table in the ballot image to be counted.
The votes to be counted can be a pre-designed form, and the contents in the form include the objects to be evaluated and evaluation items of the objects to be evaluated. Specifically, the items to be evaluated in the table include a marker selection item and a numerical score item. The marked option is a voting item in the ballot which needs to take a preset character as a voting selection result, for example, by circling, hooking or other preset characters as an identifier for indicating the selection result. The numerical score item is a voting item in the vote which needs to take the numerical score as a result, for example, an item for scoring the work performance of the selected object.
In the ballot, the contents such as the name of the object to be evaluated and the name of the evaluation item of each object to be evaluated can be printed characters, the ballot is printed in advance, and the ballot is filled in by the people participating in the evaluation event, so that the ballot is filled in. The ballot image to be counted can be obtained through scanning or photographing and the like. For example, the ballot to be counted may be as shown in fig. 2. The ballot in fig. 2 contains basic information such as the name, age, department, post, job level, etc. of the subject being evaluated, as well as the voting content. The voting content comprises mark selection items, the satisfaction degree of the selection items to the selected objects, numerical evaluation items, items of responsibility, team consciousness, professional ability, result output and the like of each selected object. It should be noted that the content of the vote may be set according to specific evaluation content and rules, which are only described herein by way of example.
Furthermore, after acquiring a plurality of images of votes to be counted, the content in the vote form needs to be extracted for data statistics.
Specifically, the vote image to be counted is preprocessed to make table lines in the image more prominent, so that the extraction effect is better in the subsequent table extraction. The process of preprocessing the ballot image to be counted can comprise the steps of carrying out gray level processing on the ballot image to be counted and carrying out binarization processing to obtain a binarization ballot image; and then, corroding and expanding the binary vote image. The result of the image preprocessing can be seen with reference to the schematic diagram of fig. 3, where the table in fig. 3 is shown to be enhanced.
To obtain the content in the form, the form in the image is separated from the text, and the form frame in the vote image to be counted can be obtained by identifying and extracting lines with intersections in the preprocessed vote image to be counted. The table frame includes horizontal lines and vertical lines, each four intersections can form a cell, and the table can be extracted by only reserving the intersected frame and positioning the cells based on the intersections, as shown in fig. 4. Finally, the contents in the form can be determined based on the ballot image to be counted and the form frame. For example, the extracted form is differentiated from the vote image to be counted, which is subjected to the gray processing, so as to obtain the characters and symbols without the form, and the characters extracted by the content shown in fig. 5 can be referred to, wherein the characters include print characters and handwritten characters.
And S120, respectively identifying characters corresponding to the mark selection items in the table and numbers corresponding to the numerical evaluation items.
Specifically, for the character corresponding to the mark selection item in the content in the table extracted in the previous step, the character corresponding to the mark selection item in the content in the table may be recognized by an optical character recognition method. For example, in fig. 6, the options such as "satisfied, substantially satisfied, unsatisfied and unknown" are marked items that need to use preset characters to represent the evaluation result, and the printed characters and the handwritten symbols therein can be extracted by combining the optical character recognition technology. Considering that the recognition effect of the optical character recognition technology on the handwritten character may not meet the requirement, only the handwritten character in the preset pixel coordinate area is recognized in the step to occupy the recognized cell, the situation that the format is not corresponding due to unrecognized errors does not occur, and then all recognition results are stored. And the preset pixel coordinate area is the area corresponding to the corresponding mark selection item.
In fig. 6, the default characters are designated as circles, and the corresponding handwritten characters in the "satisfied, substantially satisfied, not satisfied and not known" options are identified as D, O, 0, c, d, b and o, which are similar to or have similar points in shape to the circles. These characters may be stored in a predetermined symbol library, and when the recognized character belongs to a character in the predetermined symbol library, it indicates that the person taking part in the selection selects the mark selection item corresponding to the character. If other preset characters are appointed in the vote, a corresponding preset symbol library can be set according to the corresponding preset characters.
For the numbers corresponding to the numerical evaluation items in the contents in the table extracted in the previous step, the corresponding numbers in the numerical evaluation items can be identified through a preset handwritten number identification model. The preset handwritten form digital recognition model can be a model which is pre-established and trained based on Python language and keras neural network, and the extracted handwritten form digital content part is input into the preset handwritten form digital recognition model, so that a result output by the model, namely the recognized number, can be obtained.
By recognizing the handwritten character symbols and the handwritten numerals, respectively, the recognition result as shown in fig. 7 can be finally obtained. In each of the evaluation items, the evaluation opinions and scores given to the evaluated object by the evaluation person are reflected.
And S130, generating a statistical result of the vote to be counted based on the characters and the numbers.
After the content in the ballot image to be counted is identified, the voting data can be counted. Specifically, the selection result corresponding to the marker selection item may be counted by the character; and counting scores corresponding to the scoring items, such as total scores and score ranking. The objects with single high scores can be further selected according to the scores of any one of the scoring items. Or, the comprehensive results of the statistical marker selection item and the numerical scoring item can be combined for evaluation.
According to the technical scheme, through obtaining and extracting table contents in the vote image to be counted, wherein the table contents comprise a mark selection item and a numerical evaluation item, characters corresponding to the mark selection item and numbers corresponding to the numerical evaluation item in the table contents are respectively identified; finally, generating a statistical result of the votes to be counted based on the characters and the numbers; the method solves the problem of low efficiency of manual vote and score counting in the prior art, realizes the automatic vote result counting by respectively identifying vote selection and score in the vote image, improves the vote counting efficiency and avoids manual counting errors.
The following is an embodiment of the vote data statistical device provided in the embodiments of the present invention, and the device and the vote data statistical method in the embodiments described above belong to the same inventive concept, and can implement the vote data statistical method in the embodiments described above. Reference may be made to the above-described embodiments of the vote data statistics method, for details not explicitly described in the embodiments of the vote data statistics apparatus.
Example two
Fig. 9 is a schematic structural diagram of a vote data statistics apparatus according to a third embodiment of the present invention, which is applicable to statistics of handwritten votes.
As shown in fig. 9, the vote data statistics apparatus includes a content extraction module 210, a content identification module 220, and a vote statistics module 230.
The content extraction module 210 is configured to obtain a vote image to be counted, and extract content in a table in the vote image to be counted, where the content in the table includes a mark selection item and a numerical score item, the mark selection item is a voting item that needs to use a preset character as a voting selection result in a vote, and the numerical score item is a voting item that needs to use a numerical score as a result in the vote; a content identification module 220, configured to identify characters corresponding to the tag selection items in the table content and numbers corresponding to the numerical score items, respectively; and a vote counting module 230, configured to generate a counting result of the votes to be counted based on the characters and the numbers.
According to the technical scheme, through obtaining and extracting table contents in the vote image to be counted, wherein the table contents comprise a mark selection item and a numerical evaluation item, characters corresponding to the mark selection item and numbers corresponding to the numerical evaluation item in the table contents are respectively identified; finally, generating a statistical result of the votes to be counted based on the characters and the numbers; the method solves the problem of low efficiency of manual vote and score counting in the prior art, realizes the automatic vote result counting by respectively identifying vote selection and score in the vote image, improves the vote counting efficiency and avoids manual counting errors.
Optionally, the content extraction module 210 is specifically configured to:
preprocessing the vote image to be counted;
identifying and extracting lines with intersections in the preprocessed ballot image to be counted to obtain a form frame in the ballot image to be counted;
and determining the content in the table based on the vote image to be counted and the table frame.
Optionally, the content extracting module 210 is further configured to:
carrying out gray level processing on the ballot image to be counted, and carrying out binarization processing to obtain a binarization ballot image;
and corroding and expanding the binary vote image.
Optionally, the content identification module 220 includes:
the character recognition submodule is used for recognizing characters corresponding to the mark selection items in the contents in the table by an optical character recognition method;
and the number recognition submodule is used for recognizing corresponding numbers in the numerical evaluation items through a preset handwritten number recognition model.
Optionally, the character recognition sub-module is specifically configured to:
identifying handwritten symbols in a preset pixel coordinate area in the vote image to be counted by an optical character identification method, wherein the preset pixel coordinate area corresponds to an area corresponding to the mark option;
determining whether the recognized handwritten symbols belong to symbols in a preset symbol library;
and when the recognized handwritten symbols belong to symbols in the preset symbol library, taking the recognized handwritten symbols as preset characters corresponding to the mark selection items.
Optionally, the preset symbol library includes symbols associated with the shape of the designated handwritten symbol in the image to be statistically selected.
Optionally, the vote counting module 230 is specifically configured to:
counting the selection result corresponding to the mark selection item through the characters;
and counting the scores corresponding to the numerical scoring items through the numbers.
The vote data statistical device provided by the embodiment of the invention can execute the vote data statistical method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 10 is a schematic structural diagram of a server according to a third embodiment of the present invention. FIG. 10 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 10 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention. The computer device 12 may be any terminal device with computing capability, such as a terminal device of an intelligent controller, a server, a mobile phone, and the like.
As shown in FIG. 10, computer device 12 is embodied in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 10, and commonly referred to as a "hard drive"). Although not shown in FIG. 10, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be appreciated that although not shown in FIG. 10, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, to implement a vote data statistics method provided by the embodiment of the present invention, the method including:
obtaining a ballot image to be counted, and extracting the content in a table in the ballot image to be counted, wherein the content in the table comprises a mark selection item and a numerical evaluation item, the mark selection item is a voting item which needs to take a preset character as a voting selection result in the ballot, and the numerical evaluation item is a voting item which needs to take a numerical score as a result in the ballot;
respectively identifying characters corresponding to the mark selection items in the table content and numbers corresponding to the numerical evaluation items;
and generating a statistical result of the votes to be counted based on the characters and the numbers.
Example four
A fourth embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a vote data statistics method according to any embodiment of the present invention, where the method includes:
obtaining a ballot image to be counted, and extracting the content in a table in the ballot image to be counted, wherein the content in the table comprises a mark selection item and a numerical evaluation item, the mark selection item is a voting item which needs to take a preset character as a voting selection result in the ballot, and the numerical evaluation item is a voting item which needs to take a numerical score as a result in the ballot;
respectively identifying characters corresponding to the mark selection items in the table content and numbers corresponding to the numerical evaluation items;
and generating a statistical result of the votes to be counted based on the characters and the numbers.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, Python, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A vote data statistical method, comprising:
obtaining a ballot image to be counted, and extracting the content in a table in the ballot image to be counted, wherein the content in the table comprises a mark selection item and a numerical evaluation item, the mark selection item is a voting item which needs to take a preset character as a voting selection result in the ballot, and the numerical evaluation item is a voting item which needs to take a numerical score as a result in the ballot;
respectively identifying characters corresponding to the mark selection items in the table content and numbers corresponding to the numerical evaluation items;
and generating a statistical result of the votes to be counted based on the characters and the numbers.
2. The method according to claim 1, wherein the extracting of the contents in the table in the vote image to be counted comprises:
preprocessing the vote image to be counted;
identifying and extracting lines with intersections in the preprocessed ballot image to be counted to obtain a form frame in the ballot image to be counted;
and determining the content in the table based on the vote image to be counted and the table frame.
3. The method according to claim 2, wherein the preprocessing of the vote image to be counted comprises:
carrying out gray level processing on the ballot image to be counted, and carrying out binarization processing to obtain a binarization ballot image;
and corroding and expanding the binary vote image.
4. The method of claim 1, wherein the identifying the character corresponding to the tag option and the number corresponding to the numerical score in the content of the table respectively comprises:
identifying characters corresponding to the mark selection items in the contents in the table by an optical character recognition method;
and identifying corresponding numbers in the numerical evaluation items through a preset handwritten number identification model.
5. The method of claim 4, wherein the identifying the character corresponding to the tag option in the content of the table by an optical character recognition method comprises:
identifying handwritten symbols in a preset pixel coordinate area in the vote image to be counted by an optical character identification method, wherein the preset pixel coordinate area corresponds to an area corresponding to the mark option;
determining whether the recognized handwritten symbols belong to symbols in a preset symbol library;
and when the recognized handwritten symbols belong to symbols in the preset symbol library, taking the recognized handwritten symbols as preset characters corresponding to the mark selection items.
6. The method according to claim 5, wherein the predetermined symbol library comprises symbols associated with a specified handwritten symbol shape in the image to be statistically selected.
7. The method of claim 1, wherein generating statistics of the votes to be counted based on the characters and the numbers comprises:
counting the selection result corresponding to the mark selection item through the characters;
and counting the scores corresponding to the numerical scoring items through the numbers.
8. A vote data statistics apparatus comprising:
the system comprises a content extraction module, a vote processing module and a decision module, wherein the content extraction module is used for acquiring a vote image to be counted and extracting the content in a table in the vote image to be counted, the content in the table comprises a mark selection item and a numerical evaluation item, the mark selection item is a voting item which needs to take preset characters as a voting selection result in a vote, and the numerical evaluation item is a voting item which needs to take a numerical score as a result in the vote;
the content identification module is used for respectively identifying characters corresponding to the mark selection items in the table content and numbers corresponding to the numerical evaluation items;
and the vote counting module is used for generating a counting result of the votes to be counted based on the characters and the numbers.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the vote data statistics method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the vote data statistical method according to one of claims 1 to 7.
CN202110172512.6A 2021-02-08 2021-02-08 Ballot data statistics method, device, equipment and medium Active CN112801016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110172512.6A CN112801016B (en) 2021-02-08 2021-02-08 Ballot data statistics method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110172512.6A CN112801016B (en) 2021-02-08 2021-02-08 Ballot data statistics method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112801016A true CN112801016A (en) 2021-05-14
CN112801016B CN112801016B (en) 2024-06-21

Family

ID=75814804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110172512.6A Active CN112801016B (en) 2021-02-08 2021-02-08 Ballot data statistics method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112801016B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113919308A (en) * 2021-10-20 2022-01-11 国网江苏省电力有限公司 Method and device for determining vote information, electronic equipment and storage medium
CN117195846A (en) * 2023-11-07 2023-12-08 江西五十铃汽车有限公司 Expert table management method, system, storage medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030173404A1 (en) * 2001-10-01 2003-09-18 Chung Kevin Kwong-Tai Electronic voting method for optically scanned ballot
CN101447017A (en) * 2008-11-27 2009-06-03 浙江工业大学 Method and system for quickly identifying and counting votes on the basis of layout analysis
CN104766043A (en) * 2014-10-15 2015-07-08 南通北城科技创业管理有限公司 Method of fast identification of ballot image
CN105740857A (en) * 2016-01-31 2016-07-06 华南理工大学 OCR based automatic acquisition and recognition system for fast pencil-and-paper voting result

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030173404A1 (en) * 2001-10-01 2003-09-18 Chung Kevin Kwong-Tai Electronic voting method for optically scanned ballot
CN101447017A (en) * 2008-11-27 2009-06-03 浙江工业大学 Method and system for quickly identifying and counting votes on the basis of layout analysis
CN104766043A (en) * 2014-10-15 2015-07-08 南通北城科技创业管理有限公司 Method of fast identification of ballot image
CN105740857A (en) * 2016-01-31 2016-07-06 华南理工大学 OCR based automatic acquisition and recognition system for fast pencil-and-paper voting result

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗维;: "一种基于OCR识别技术的通用计票系统设计", 企业科技与发展, no. 09 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113919308A (en) * 2021-10-20 2022-01-11 国网江苏省电力有限公司 Method and device for determining vote information, electronic equipment and storage medium
CN117195846A (en) * 2023-11-07 2023-12-08 江西五十铃汽车有限公司 Expert table management method, system, storage medium and equipment
CN117195846B (en) * 2023-11-07 2024-03-01 江西五十铃汽车有限公司 Expert table management method, system, storage medium and equipment

Also Published As

Publication number Publication date
CN112801016B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
CN112597312A (en) Text classification method and device, electronic equipment and readable storage medium
CN110619568A (en) Risk assessment report generation method, device, equipment and storage medium
CN108959257B (en) Natural language parsing method, device, server and storage medium
CN112380870A (en) User intention analysis method and device, electronic equipment and computer storage medium
CN112699775A (en) Certificate identification method, device and equipment based on deep learning and storage medium
CN112801016B (en) Ballot data statistics method, device, equipment and medium
CN111860377A (en) Live broadcast method and device based on artificial intelligence, electronic equipment and storage medium
CN109918984A (en) Insurance policy number identification method, device, electronic equipment and storage medium
CN114185935A (en) Social security data processing method and device combining RPA and AI and storage medium
CN114626731A (en) Risk identification method and device, electronic equipment and computer readable storage medium
CN112328657A (en) Feature derivation method, feature derivation device, computer equipment and medium
CN113064994A (en) Conference quality evaluation method, device, equipment and storage medium
CN113127621A (en) Dialogue module pushing method, device, equipment and storage medium
CN115934928A (en) Information extraction method, device, equipment and storage medium
CN113963364A (en) Target laboratory test report generation method and device, electronic equipment and storage medium
CN113821602A (en) Automatic answering method, device, equipment and medium based on image-text chatting record
CN112396048B (en) Picture information extraction method and device, computer equipment and storage medium
CN113420684A (en) Report recognition method and device based on feature extraction, electronic equipment and medium
CN113254814A (en) Network course video labeling method and device, electronic equipment and medium
CN112528984A (en) Image information extraction method, device, electronic equipment and storage medium
CN113705164A (en) Text processing method and device, computer equipment and readable storage medium
CN112270318A (en) Automatic scoring method and device, electronic equipment and storage medium
CN115409041B (en) Unstructured data extraction method, device, equipment and storage medium
CN116664066A (en) Method and system for managing enterprise planning income and actual income
CN114049686A (en) Signature recognition model training method and device and electronic equipment

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