CN113920526A - Test paper image processing method, electronic device and storage medium - Google Patents

Test paper image processing method, electronic device and storage medium Download PDF

Info

Publication number
CN113920526A
CN113920526A CN202111162981.6A CN202111162981A CN113920526A CN 113920526 A CN113920526 A CN 113920526A CN 202111162981 A CN202111162981 A CN 202111162981A CN 113920526 A CN113920526 A CN 113920526A
Authority
CN
China
Prior art keywords
image
test paper
template
evaluated
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111162981.6A
Other languages
Chinese (zh)
Inventor
林锦龙
吴炜权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Xinyu Information Technology Co ltd
Original Assignee
Guangdong Xinyu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Xinyu Information Technology Co ltd filed Critical Guangdong Xinyu Information Technology Co ltd
Priority to CN202111162981.6A priority Critical patent/CN113920526A/en
Publication of CN113920526A publication Critical patent/CN113920526A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a test paper image processing method, electronic equipment and a storage medium, wherein the test paper image processing method comprises the following steps: acquiring a test paper image of a test paper to be evaluated; acquiring a pre-stored image segmentation template; segmenting the test paper image according to the image segmentation template to obtain a first image representing an identity information area to be assessed in the test paper to be assessed and a second image representing a content area to be assessed and answered in the test paper to be assessed; and obtaining identity information according to the first image, and obtaining the information to be evaluated of the examination paper to be evaluated according to the identity information and the second image. The invention can obtain the identity information of the answerer and the corresponding answering content on the test paper to be evaluated for subsequent examination paper evaluation, so that the invention can automatically identify and intercept the obtained identity information and the answering content area in the test paper image, thereby improving the efficiency of the test paper image processing.

Description

Test paper image processing method, electronic device and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a test paper image processing method, an electronic device, and a storage medium.
Background
At present, the on-line paper reading of drawing examination papers generally needs to be carried out by scanning the examination papers, recording the number of an examination paper, manually intercepting pictures in a drawing area as uploaded contents, and allowing a teacher to carry out on-line paper reading.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a test paper image processing method, electronic equipment and a storage medium, which can automatically identify and intercept the identity information and the answering content area in the test paper image, and improve the efficiency of test paper image processing.
The test paper image processing method according to the first aspect of the present invention is characterized by comprising:
acquiring a test paper image of a test paper to be evaluated;
acquiring a pre-stored image segmentation template;
segmenting the test paper image according to the image segmentation template to obtain a first image representing an identity information area to be assessed in the test paper to be assessed and a second image representing a content area to be assessed and answered in the test paper to be assessed;
and obtaining identity information according to the first image, and obtaining the information to be evaluated of the examination paper to be evaluated according to the identity information and the second image.
The test paper image processing method provided by the embodiment of the invention at least has the following beneficial effects: according to the test paper image processing method in the embodiment of the invention, after the test paper image of the test paper to be evaluated is obtained, the test paper image is segmented according to the pre-stored image segmentation template to obtain the first image respectively representing the identity information area to be evaluated in the test paper to be evaluated and the second image representing the answering content area to be evaluated in the test paper to be evaluated, and after the identity information is obtained according to the first image, the identity information and the corresponding second image are used for obtaining the information to be evaluated, namely the identity information of the answering person on the test paper to be evaluated and the corresponding answering content, so that the follow-up test paper evaluation can be carried out.
According to some embodiments of the invention, the image segmentation template is obtained according to the following steps:
acquiring a template image of a template test paper;
framing a template identity information area in the template image to obtain first image identification information, framing a template answering content area in the template image to obtain second image identification information, wherein the template identity information area corresponds to the identity information area to be evaluated, and the template answering content area corresponds to the answering content area to be evaluated;
and obtaining the image segmentation template according to the first image identification information, the second image identification information and the template image.
According to some embodiments of the present invention, the segmenting the test paper image according to the image segmentation template to obtain a first image representing an identity information area to be assessed in the test paper to be assessed and a second image representing a content area to be assessed and answered in the test paper to be assessed includes:
acquiring offset information between the test paper image and the image segmentation template;
and segmenting the test paper image according to the offset information and the image segmentation template to obtain the first image representing the identity information area to be evaluated in the test paper to be evaluated and the second image representing the content area to be evaluated and answered in the test paper to be evaluated.
According to some embodiments of the present invention, the obtaining offset information between the test paper image and the image segmentation template includes:
obtaining a positioning identification area to be evaluated in the test paper image according to the test paper image and the positioning identification information;
and obtaining the offset information between the test paper image and the image segmentation template according to the position relationship between the to-be-evaluated positioning identification area and the template positioning identification area.
According to some embodiments of the present invention, the obtaining identity information according to the first image and obtaining information to be evaluated of the examination paper to be evaluated according to the identity information and the second image includes:
performing image correction on the first image and the second image according to the offset information;
and obtaining the identity information according to the corrected first image, and obtaining the information to be evaluated of the test paper to be evaluated according to the identity information and the corrected second image.
According to some embodiments of the invention, the positioning identification information is obtained according to the following steps:
acquiring a template image of a template test paper;
and framing the template positioning identification area in the template image to obtain the positioning identification information.
According to some embodiments of the invention, the obtaining identity information from the first image comprises:
carrying out binarization processing on the first image to obtain a first sub-image;
carrying out reverse color processing on the first sub-image to obtain a second sub-image;
carrying out contour detection on the second subimage to obtain a positioning point representing the identity information;
and obtaining the identity information according to the positioning point.
According to some embodiments of the invention, said obtaining said identity information according to said anchor point comprises:
carrying out coordinate division on the second sub-image to obtain a third sub-image;
obtaining coordinate information of the positioning point in the third sub-image according to the positioning point and the third sub-image;
and obtaining the identity information according to the coordinate information.
An electronic device according to a second aspect of the present invention is characterized by comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of processing a test paper image according to any one of the embodiments of the first aspect of the present invention when executing the computer program.
A computer-readable storage medium according to an embodiment of the third aspect of the present invention stores a program that is executed by a processor to implement the test paper image processing method according to the embodiment of the first aspect of the present invention.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The invention is further described with reference to the following figures and examples, in which:
FIG. 1 is a schematic flow chart of a test paper image processing method according to some embodiments of the present invention;
FIG. 2 is a schematic flow chart of a test paper image processing method according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of obtaining information having a first image identifier according to some embodiments of the invention;
FIG. 4 is a schematic diagram of obtaining information with a second image identifier according to some embodiments of the invention;
FIG. 5 is a flowchart illustrating a method for processing a test paper image according to another embodiment of the present invention;
FIG. 6 is a schematic diagram of image correction provided by some embodiments of the present invention;
FIG. 7 is a flowchart illustrating a method for processing a test paper image according to another embodiment of the present invention;
FIG. 8 is a flowchart illustrating a method for processing a test paper image according to another embodiment of the present invention;
FIG. 9 is a flowchart illustrating a method for processing test paper images according to other embodiments of the present invention;
fig. 10 is a diagram illustrating obtaining information with location identifiers according to some embodiments of the invention;
FIG. 11 is a flowchart illustrating a method for processing a test paper image according to another embodiment of the present invention;
FIG. 12 is a schematic diagram of a process for obtaining identity information from a first image according to some embodiments of the invention;
FIG. 13 is a flowchart illustrating a method for processing test paper images according to further embodiments of the present invention;
fig. 14 is a schematic diagram of an electronic device according to some embodiments of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and the above, below, exceeding, etc. are understood as excluding the present numbers, and the above, below, within, etc. are understood as including the present numbers. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
In the description of the present invention, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The invention provides a test paper image processing method, electronic equipment and a storage medium, which can automatically identify and intercept the identity information and the answering content area in the test paper image, and improve the efficiency of test paper image processing.
The embodiments of the present invention will be further explained with reference to the drawings.
An embodiment of the present invention provides a test paper image processing method, and as shown in fig. 1, the control method of the embodiment of the present invention includes, but is not limited to, step S110 to step S140.
Step S110, obtaining the test paper image of the test paper to be evaluated.
And step S120, acquiring a pre-stored image segmentation template.
Step S130, the test paper image is segmented according to the image segmentation template, and a first image representing the identity information area to be evaluated in the test paper to be evaluated and a second image representing the answering content area to be evaluated in the test paper to be evaluated are obtained.
Step S140, obtaining identity information according to the first image, and obtaining information to be evaluated of the examination paper to be evaluated according to the identity information and the second image.
In some embodiments of the present invention, the method for processing the test paper image can be applied to a test paper image processing system, the test paper image processing system can obtain the test paper image of the test paper to be evaluated, the test paper to be evaluated is the test paper which needs to be processed by the test paper image processing method and then is sent to a teacher or a back-end server for subsequent review operation, the test paper to be evaluated is the test paper which is answered by the examinee, the test paper to be evaluated can have a plurality of test papers, and after the test paper image of the test paper to be evaluated is obtained each time, the test paper image processing system processes the test paper image by the method for processing the test paper image in the embodiments of the present invention, wherein the test paper image processing system performs segmentation processing on the test paper image according to a pre-stored image segmentation template to obtain a first image representing the identity information area to be evaluated in the test paper to be evaluated and a second image representing the content area to be evaluated in the test paper to be evaluated, which can be understood that, the method comprises the steps of obtaining identity information of an answerer of a test paper to be evaluated according to a first image, obtaining information to be evaluated of the test paper to be evaluated according to the identity information and a second image, wherein the second image and the identity information are matched and are information on the same test paper.
It should be noted that the test paper image processing system may include an image obtaining module and a processing module, the image processing module may obtain an image of a test paper, the image processing module may obtain an image of the test paper to be evaluated, the image processing module may be a high-definition camera or other devices, or may be a wireless or wired data receiving module, and may receive test paper image information sent by a third-party device, the processing module is a processing device disposed in the test paper image system, and may perform segmentation processing on the obtained test paper image according to a pre-stored image cutting template, and finally obtain information to be evaluated, in an embodiment, the test paper image processing system may further be connected to a cloud device such as a back-end server and a cloud, and send the obtained information to be evaluated to the cloud device, that is to obtain identity information of an responder and a corresponding answering content area image, and package the obtained information and the answering content area image to the cloud device, the cloud device can conveniently perform subsequent review operation on the test paper image processing system, and the test paper image processing system can further comprise other functional modules to realize corresponding functions.
Referring to fig. 2, the image segmentation template in the embodiment of the present invention is obtained according to the following steps, including but not limited to step S210 to step S230.
Step S210, obtaining a template image of the template test paper.
Step S220, a template identity information area in the template image is selected to obtain first image identification information, a template answering content area in the template image is selected to obtain second image identification information, the template identity information area corresponds to the identity information area to be evaluated, and the template answering content area corresponds to the content area to be evaluated.
Step S230, obtaining an image segmentation template according to the first image identification information, the second image identification information and the template image.
In some embodiments of the present invention, the image segmentation template is obtained by processing a template paper as a template in advance, wherein the paper image processing system obtains a template image of the template paper, the template paper is a paper that is answered by an examinee and used as a template, the template paper has obvious characteristics, as shown in fig. 3, the paper image processing system frames a template identity information area in the template image to obtain first image identification information, as shown in fig. 4, frames a template answering content area in the template image to obtain second image identification information, the template identity information area corresponds to an identity information area to be reviewed, the template answering content area corresponds to an answering content area to be reviewed, it can be understood that the template identity information area and the answering content area to be reviewed both correspond to an answering content area on the paper, the template answering content area and the answering content area to be reviewed both correspond to an answering content area on the paper, for example, in an art test paper, the template identity information area and the identity information area to be evaluated are both characterized as areas in which the number of an examinee is filled up by an answerer, the template answering content area and the answering content area to be evaluated are both characterized as areas in which the answerer draws, and the template test paper and the examination paper to be evaluated are both of the same test paper type, so that the identity information areas and the answering content areas are in the same position, and the first image identification information and the second image identification information are obtained by framing the corresponding identity information area and the answering content area on a template image and are recorded in the positions of the image for storage, so that the image segmentation template is formed.
It should be noted that, on the premise that the requirements of the embodiment of the present invention are met, other areas on the test paper may be framed according to actual needs and corresponding selection frames may be generated and placed in the image segmentation template to perform segmentation processing on the test paper image, which is not limited in the embodiment of the present invention.
Referring to fig. 5, in an embodiment, the step S120 may further include, but is not limited to, the following steps S310 to S320.
In step S310, offset information between the test paper image and the image segmentation template is obtained.
Step S320, the test paper image is segmented according to the offset information and the image segmentation template, and a first image representing the identity information area to be evaluated in the test paper to be evaluated and a second image representing the content area to be evaluated and answered in the test paper to be evaluated are obtained.
In some embodiments of the present invention, the test paper image processing system may perform a correction process on the test paper image, the image segmentation template established by the test paper image processing system is obtained according to a correctly placed template test paper, as shown in fig. 6, and the actually obtained test paper image does not necessarily have a correct placement position, so that the segmentation directly according to the obtained test paper image may have a deviation, so that the test paper image with a deviation needs to be corrected, wherein the test paper image processing system obtains the deviation information between the obtained test paper image and the image segmentation template, and performs a segmentation process on the test paper image according to the deviation information and the image segmentation template, so as to obtain a first image representing the identity information area to be evaluated in the test paper to be evaluated and a second image representing the content area to be evaluated in the test paper to be evaluated, and the deviation information may represent a position relationship between the obtained test paper image and the template image, and calculating the offset distance and angle to obtain offset information.
It should be noted that, in the embodiment of the present invention, the acquired image information is an image acquired by an image acquisition module in a test paper image processing system at a fixed position, the test paper is located in the area, and the established image segmentation template is a template established in a picture obtained by the image acquisition module.
Referring to fig. 7, in an embodiment, the image segmentation template includes location identification information characterizing a template location identification area, and the step S310 may further include, but is not limited to, the following steps S410 to S420.
And S410, obtaining a positioning identification area to be evaluated in the test paper image according to the test paper image and the positioning identification information.
Step S420, obtaining the offset information between the test paper image and the image segmentation template according to the position relation between the positioning identification area to be evaluated and the template positioning identification area.
In some embodiments of the present invention, the test paper image processing system obtains the offset information according to the specific identifier, the image segmentation template includes the positioning identifier information characterizing the template positioning identifier area, the template positioning identifier area is the specific identifier on the template test paper, the test paper image processing system obtains the to-be-evaluated positioning identifier area in the test paper image according to the test paper image and the positioning identifier information, the obtained to-be-evaluated positioning identifier area corresponds to the template positioning identifier area, for example, in an embodiment, the test paper image processing system marks the title bar on the template test paper as the template positioning identifier area, in a common test paper, the title bar generally writes the year, the school date, the year and the test type of the test and displays the test bar in a thick font, which has a good positioning effect on the positioning identifier, so the embodiment of the present invention selects the area with obvious and fixed characteristics on the test paper as the area for positioning, and obtaining corresponding positioning identification information in the image segmentation template, wherein the test paper image processing system obtains offset information between the test paper image and the image segmentation template according to the position relation between the positioning identification area to be evaluated and the template positioning identification area, including the distance and the angle of displacement.
Referring to fig. 8, it should be noted that, on the premise that the requirements of the embodiment of the present invention are met, the offset information may also be information manually input by a user, and the user may input an offset distance and an offset angle according to an actual offset condition, which is not limited in the embodiment of the present invention.
In an embodiment, the step S130 may further include, but is not limited to, the following steps S510 to S520.
Step S510, image correction is performed on the first image and the second image according to the offset information.
And step S520, obtaining identity information according to the corrected first image, and obtaining information to be evaluated of the test paper to be evaluated according to the identity information and the corrected second image.
In some embodiments of the present invention, after obtaining the offset information, the test paper image processing system performs image correction on the first image and the second image according to the offset angle and the distance represented in the offset information to obtain a corrected first image and a corrected second image, obtains the identity information according to the corrected first image, and obtains the information to be evaluated of the test paper to be evaluated according to the identity information and the corrected second image.
It should be noted that, in an embodiment, the test paper image processing system searches a template region intercepted in the test paper image according to an image segmentation template by using a shape matching algorithm, if a to-be-evaluated positioning identification region can be searched, calculates an offset (x, y, α) of the to-be-evaluated positioning identification region with respect to the template positioning identification region, calculates an offset of a reference certificate number smearing region, namely a first image, and calculates an offset of a drawing region, namely a second image, and intercepts the two regions, and moves the regions (-x, -y, - α) by using an affine transformation method to restore the regions to a rectangle, so as to obtain a corrected first image and a corrected second image.
Referring to fig. 9, the positioning identification information in the embodiment of the present invention is obtained according to the following steps, including but not limited to step S610 to step S620.
Step S610, a template image of the template test paper is acquired.
Step S610, a template positioning identification area in the template image is selected to obtain positioning identification information.
In some embodiments of the present invention, the image segmentation template is obtained by processing a template test paper as a template in advance, wherein the test paper image processing system obtains a template image of the template test paper, the template test paper is completed in response to an examinee and is used as a template test paper, the template test paper has obvious characteristics, the test paper image processing system frames a template positioning identification area in the template image to obtain positioning identification information, the template positioning identification area corresponds to a positioning identification area to be evaluated, it can be understood that the template positioning identification area and the positioning identification area to be evaluated both correspond to an area with obvious characteristics on the test paper, for example, as shown in fig. 10, in an art test paper, a title bar generally writes the year, the school date, the year and the type of an examination, and is displayed in a row with thick fonts, which has a good positioning effect on the positioning identification, therefore, in the embodiment of the invention, the area with obvious and fixed characteristics is selected on the test paper as the characteristic identification area for positioning, the corresponding positioning identification information is obtained in the image segmentation template, the template test paper and the test paper to be evaluated are both of the same set of test paper type, so that the positions of the characteristic identification areas of the template test paper and the test paper to be evaluated are the same, the positioning identification information is obtained by framing the corresponding template positioning identification area on the template image, and the position recorded in the image is stored, so that the image segmentation template with the positioning identification information is obtained.
Referring to fig. 11, in an embodiment, the step S130 may further include, but is not limited to, the following steps S710 to S740.
Step S710, a binarization process is performed on the first image to obtain a first sub-image.
Step S720, performing a color reversal process on the first sub-image to obtain a second sub-image.
And step S730, carrying out contour detection on the second subimage to obtain a positioning point representing the identity information.
Step S740, obtaining identity information according to the location point.
In some embodiments of the present invention, obtaining the identity information of the responder according to the first image includes performing image processing on a filled area of the answer sheet of the examinee's number intercepted according to the first image, then identifying the filled position, and obtaining the examinee's number according to the filled position, wherein, referring to fig. 12, the method includes first performing binarization processing on the first image to obtain a first sub-image, the binarization processing includes performing large law binarization segmentation on the first image, then performing reverse color processing on the first sub-image to obtain a white painted picture with black as a base, then performing contour detection on the white painted picture, filtering the detected contour, and when the area and aspect ratio of the contour satisfies a predetermined range, retaining the contour as a criterion of the examinee's number, calculating a center point of the retained contour, that is, obtaining the examinee's number according to the position, the identity information of the responder is obtained, in one embodiment, the test paper image processing system takes the identified examinee number as the ID of the answering content area code, such as the ID of the Base64 coded picture, and packages and uploads the whole data to the back-end server.
Referring to fig. 13, in an embodiment, the step S740 may further include, but is not limited to, the following steps S810 to S830.
And step S810, performing coordinate division on the second sub-image to obtain a third sub-image.
And step S820, obtaining coordinate information of the positioning point in the third sub-image according to the positioning point and the third sub-image.
And step S830, obtaining identity information according to the coordinate information.
In some embodiments of the present invention, the process of obtaining the identity information of the responder by the test paper image processing system according to the positioning point includes performing coordinate division on the second sub-image to obtain the third sub-image, for example, dividing the region of the responder's test taker number into 10 × 10 regions, obtaining the coordinate information of the positioning point in the third sub-image according to the positioning point and the third sub-image, taking the x axis of the abscissa as the number of bits of the test taker number, and taking the y axis of the ordinate as the value of the test taker number, then calculating the information of the test taker number with a certain number of bits within 10 according to the position of the center of the positioning point to obtain the identity information, on the premise of meeting the requirements of the embodiments of the present invention, further performing division of images with different sizes according to actual needs to obtain a more accurate test taker number as the identity information, or, after obtaining the coordinate information of the positioning point in the third sub-image by the test paper image processing system, and looking up a table to obtain the position of the coordinate information in a preset standard template examinee number table, and obtaining the corresponding examinee number as identity information.
Referring to fig. 14, fig. 14 is a schematic diagram of an electronic device 100 according to an embodiment of the present invention. The electronic device 100 according to the embodiment of the present invention is built in the image scanning system, and includes one or more control processors 101 and a memory 102, and fig. 14 illustrates one memory 102 and one control processor 101 as an example.
The control processor 101 and the memory 102 may be connected by a bus or other means, and fig. 14 illustrates the connection by a bus as an example.
The memory 102, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer-executable programs. Further, the memory 102 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 102 may optionally include memory 102 located remotely from the control processor 101, and the remote memory 102 may be connected to the electronic device 100 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Those skilled in the art will appreciate that the arrangement of devices shown in fig. 14 is not intended to be limiting of electronic device 100 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The non-transitory software programs and instructions required to implement the image scanning method applied to the electronic device 100 in the above-described embodiment are stored in the memory 102, and when executed by the control processor 101, perform the image scanning method applied to the electronic device 100 in the above-described embodiment, for example, perform the above-described method steps S110 to S140 in fig. 1, method steps S210 to S230 in fig. 2, method steps S310 to S320 in fig. 5, method steps S410 to S420 in fig. 7, method steps S510 to S520 in fig. 8, method steps S610 to S620 in fig. 9, method steps S710 to S740 in fig. 11, and method steps S810 to S830 in fig. 13.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the components can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, an embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions, which are executed by one or more control processors, for example, by one control processor 101 in fig. 14, and can cause the one or more control processors 101 to execute the image scanning method in the above-described method embodiment, for example, execute the above-described method steps S110 to S140 in fig. 1, the method steps S210 to S230 in fig. 2, the method steps S310 to S320 in fig. 5, the method steps S410 to S420 in fig. 7, the method steps S510 to S520 in fig. 8, the method steps S610 to S620 in fig. 9, the method steps S710 to S740 in fig. 11, and the method steps S810 to S830 in fig. 13.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program components or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program components or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as is well known to those of ordinary skill in the art.
While the preferred embodiments of the present invention have been described in detail, it will be understood by those skilled in the art that the foregoing and various other changes, omissions and deviations in the form and detail thereof may be made without departing from the scope of this invention.

Claims (10)

1. A test paper image processing method is characterized by comprising the following steps:
acquiring a test paper image of a test paper to be evaluated;
acquiring a pre-stored image segmentation template;
segmenting the test paper image according to the image segmentation template to obtain a first image representing an identity information area to be assessed in the test paper to be assessed and a second image representing a content area to be assessed and answered in the test paper to be assessed;
and obtaining identity information according to the first image, and obtaining the information to be evaluated of the examination paper to be evaluated according to the identity information and the second image.
2. The test paper image processing method according to claim 1, wherein the image segmentation template is obtained according to the following steps:
acquiring a template image of a template test paper;
framing a template identity information area in the template image to obtain first image identification information, framing a template answering content area in the template image to obtain second image identification information, wherein the template identity information area corresponds to the identity information area to be evaluated, and the template answering content area corresponds to the answering content area to be evaluated;
and obtaining the image segmentation template according to the first image identification information, the second image identification information and the template image.
3. The test paper image processing method according to claim 1, wherein said segmenting said test paper image according to said image segmentation template to obtain a first image representing an identity information area to be evaluated in said test paper to be evaluated and a second image representing a content area to be answered by said review paper to be evaluated comprises:
acquiring offset information between the test paper image and the image segmentation template;
and segmenting the test paper image according to the offset information and the image segmentation template to obtain the first image representing the identity information area to be evaluated in the test paper to be evaluated and the second image representing the content area to be evaluated and answered in the test paper to be evaluated.
4. The test paper image processing method according to claim 3, wherein the image segmentation template includes positioning identification information characterizing a template positioning identification area, and the obtaining offset information between the test paper image and the image segmentation template includes:
obtaining a positioning identification area to be evaluated in the test paper image according to the test paper image and the positioning identification information;
and obtaining the offset information between the test paper image and the image segmentation template according to the position relationship between the to-be-evaluated positioning identification area and the template positioning identification area.
5. The test paper image processing method according to claim 3, wherein obtaining identity information from the first image and obtaining information to be evaluated of the test paper to be evaluated from the identity information and the second image comprises:
performing image correction on the first image and the second image according to the offset information;
and obtaining the identity information according to the corrected first image, and obtaining the information to be evaluated of the test paper to be evaluated according to the identity information and the corrected second image.
6. The test paper image processing method according to claim 4, wherein the positioning identification information is obtained according to the following steps:
acquiring a template image of a template test paper;
and framing the template positioning identification area in the template image to obtain the positioning identification information.
7. The test paper image processing method according to claim 1, wherein obtaining identity information from the first image comprises:
carrying out binarization processing on the first image to obtain a first sub-image;
carrying out reverse color processing on the first sub-image to obtain a second sub-image;
carrying out contour detection on the second subimage to obtain a positioning point representing the identity information;
and obtaining the identity information according to the positioning point.
8. The method for processing the test paper image according to claim 7, wherein the obtaining the identity information according to the anchor point comprises:
carrying out coordinate division on the second sub-image to obtain a third sub-image;
obtaining coordinate information of the positioning point in the third sub-image according to the positioning point and the third sub-image;
and obtaining the identity information according to the coordinate information.
9. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the test paper image processing method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the test paper image processing method according to any one of claims 1 to 8.
CN202111162981.6A 2021-09-30 2021-09-30 Test paper image processing method, electronic device and storage medium Pending CN113920526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111162981.6A CN113920526A (en) 2021-09-30 2021-09-30 Test paper image processing method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111162981.6A CN113920526A (en) 2021-09-30 2021-09-30 Test paper image processing method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113920526A true CN113920526A (en) 2022-01-11

Family

ID=79237608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111162981.6A Pending CN113920526A (en) 2021-09-30 2021-09-30 Test paper image processing method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113920526A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117765560A (en) * 2024-01-08 2024-03-26 北京和气聚力教育科技有限公司 Answer sheet identification method, system, computer equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117765560A (en) * 2024-01-08 2024-03-26 北京和气聚力教育科技有限公司 Answer sheet identification method, system, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN104143094B (en) A kind of paper automatic marking processing method and system without answering card
CN111046644A (en) Answer sheet template generation method, identification method, device and storage medium
CN106033535A (en) Electronic paper marking method
CN109859104B (en) Method for generating picture by video, computer readable medium and conversion system
CN109584250B (en) Robust method for automatically dividing and marking visual region
CN110490141A (en) A kind of recognition methods, device, terminal and the storage medium of full-filling information
CN106056028A (en) Rapid scanning and waybill recording method and device thereof
CN113920526A (en) Test paper image processing method, electronic device and storage medium
CN109741273A (en) A kind of mobile phone photograph low-quality images automatically process and methods of marking
US10055668B2 (en) Method for the optical detection of symbols
CN110348353B (en) Image processing method and device
US20230343120A1 (en) Automatic scoring method and system
CN109189246B (en) Method, device and system for processing scribbled content on handwriting board
US20210281742A1 (en) Document detections from video images
CN113344084A (en) Jewelry quality identification method and device based on image recognition
CN109977710B (en) Method for accurately positioning bookshelf to which book belongs, electronic equipment and storage medium
US10181077B1 (en) Document image orientation assessment and correction
CN108447107B (en) Method and apparatus for generating video
CN113762244A (en) Document information extraction method and device
CN112380957A (en) Method and device for identifying other item ticket information, computer equipment and storage medium
CN111950356A (en) Seal text positioning method and device and electronic equipment
CN111292374A (en) Method and equipment for automatically plugging and unplugging USB interface
CN117058700B (en) Answer sheet identification method, device, equipment and storage medium
CN110751140A (en) Character batch recognition method and device and computer equipment
CN116798056B (en) Form image positioning method, apparatus, device and computer readable 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