CN107590494B - Answer sheet picture positioning method and device, readable storage medium and electronic equipment - Google Patents

Answer sheet picture positioning method and device, readable storage medium and electronic equipment Download PDF

Info

Publication number
CN107590494B
CN107590494B CN201710841829.8A CN201710841829A CN107590494B CN 107590494 B CN107590494 B CN 107590494B CN 201710841829 A CN201710841829 A CN 201710841829A CN 107590494 B CN107590494 B CN 107590494B
Authority
CN
China
Prior art keywords
answer sheet
sheet picture
target
contents
positioning frame
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.)
Expired - Fee Related
Application number
CN201710841829.8A
Other languages
Chinese (zh)
Other versions
CN107590494A (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.)
Beijing Growth Education Technology Co ltd
Original Assignee
Beijing Growth Education Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Growth Education Technology Co ltd filed Critical Beijing Growth Education Technology Co ltd
Priority to CN201710841829.8A priority Critical patent/CN107590494B/en
Publication of CN107590494A publication Critical patent/CN107590494A/en
Application granted granted Critical
Publication of CN107590494B publication Critical patent/CN107590494B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The invention provides an answer sheet picture positioning method, an answer sheet picture positioning device, a readable storage medium and electronic equipment, wherein the method comprises the following steps: acquiring a template answer sheet picture file comprising a template answer sheet picture and positioning frame information, wherein the positioning frame information comprises the size of a positioning frame and the position of the positioning frame in the template answer sheet picture; identifying target contents of positioning frame selection in the template answer sheet picture, wherein at least one positioning frame selection frame is provided with a target horizontal line or target characters; acquiring an answer sheet picture, and determining the position of a positioning frame on the answer sheet picture according to the matching relation between the answer sheet picture and the template answer sheet picture; and identifying the contents of the positioning frame on the answer sheet picture, and if the contents of the positioning frame are the same as the target contents of the positioning frame, adjusting the answer sheet picture to ensure that the contents on the answer sheet are superposed with the target contents on the template answer sheet. By the method, the probability of successful positioning of the answer sheet can be improved.

Description

Answer sheet picture positioning method and device, readable storage medium and electronic equipment
Technical Field
The invention relates to the field of data processing, in particular to an answer sheet picture positioning method, an answer sheet picture positioning device, a readable storage medium and electronic equipment.
Background
With the development of science and technology, various large-scale examinations such as college entrance examination and English level four and six examinations adopt a network examination reading mode, so that the examination reading efficiency of the large-scale examinations is greatly improved. In general, network examination papers are obtained by scanning answer sheets of examinees into answer sheet pictures, and then storing the answer sheet pictures after picture processing, so that examination papers can be called by examination paper teachers. In the picture processing process, the answer sheet picture needs to be positioned, namely the answer sheet picture is compared with the standard answer sheet picture, so that the printing content in the answer sheet picture can be superposed with the printing content of the standard answer sheet picture, and the printing content in the answer sheet picture can be corrected, so that correction of the selected question and cutting and correction of a subsequent subjective question answering area are facilitated.
The method comprises designing multiple positioning points around the answer sheet, and inputting multiple positioning frames manually, so that one positioning frame covers one positioning point in the template answer sheet picture, for example, four positioning frames cover the positioning points on four corners of the template answer sheet picture, when positioning the answer sheet picture, matching the answer sheet picture with the template answer sheet picture, then searching for the positioning points in the range defined by the positioning frames according to the positions of the four positioning frames in the answer sheet picture, and if the positioning points are found in the four positioning frames, coinciding the positioning points in the answer sheet picture with the corresponding positioning points in the template answer sheet. Since the positioning method by the positioning point is relatively simple, once the examinee leaves a mark on the positioning point carelessly in response, the positioning is easy to fail, and a new positioning method is urgently needed.
Disclosure of Invention
The invention provides an answer sheet picture positioning method, an answer sheet picture positioning device, a readable storage medium and electronic equipment, and aims to solve the problem that positioning failure is easily caused by the fact that a mode of positioning an answer sheet picture by using a positioning point is single in the prior art.
In order to solve the above problems, the present invention provides an answer sheet picture positioning method, comprising the following steps:
the method comprises the steps of obtaining a template answer sheet picture file, wherein the template answer sheet picture file comprises template answer sheet pictures and positioning frame information, and the positioning frame information comprises the size of each positioning frame and the position of each positioning frame in the template answer sheet pictures;
identifying target contents of each positioning frame in the template answer sheet picture one by one, wherein the target contents are one of target horizontal lines, target characters and target positioning points, and at least one positioning frame selects the target horizontal lines or the target characters;
a matching step, namely acquiring an answer sheet picture, and determining the position of each positioning frame on the answer sheet picture according to the matching relation between the answer sheet picture and the template answer sheet picture;
and a comparison step, namely identifying the contents of each positioning frame on the answer sheet picture one by one, and if the contents of each positioning frame are the same as the target contents of the positioning frame, adjusting the answer sheet picture to ensure that the contents on the answer sheet are superposed with the target contents on the template answer sheet.
Optionally, in the step of comparing the answer sheet pictures, if the content framed by each positioning frame on the answer sheet picture is different from the target content framed by the positioning frame, the method further includes the following steps:
rotating by a set angle by taking the center of the answer sheet picture as a rotating point;
re-identifying, namely re-identifying the content of each positioning frame on the answer sheet picture;
a judging step:
if the contents of part or all of the positioning frame frames on the answer sheet picture are different from the target contents of the positioning frame frames, and the rotation times of the answer sheet picture are less than the set times, returning to the rotation step;
if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame on the answer sheet picture, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet.
Optionally, in the step of determining the answer sheet picture positioning method, if part or all of the contents framed by the positioning frame on the answer sheet picture are different from the target contents framed by the positioning frame, and the number of rotations of the answer sheet picture is equal to or greater than a set number of times, the method further includes the following steps:
an array arrangement step, wherein a position array is arranged by taking the position of the center of the answer sheet picture as an original point and the original point as the center;
a position adjusting step, namely adjusting the answer sheet picture to enable the center of the answer sheet picture to coincide with a first position in the position array;
a content identification step, namely re-identifying the content of each positioning frame on the answer sheet picture;
an adjusting step:
if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame on the answer sheet picture, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet;
if the contents of part or all of the positioning frames on the answer sheet picture are different from the target contents of the positioning frames on the answer sheet picture, and the current position of the center of the answer sheet picture is not the last position in the position array, adjusting the center of the answer sheet to coincide with the next position of the position array, and returning to the content identification step;
and if the contents of the frame selection of part or all of the positioning frames on the answer sheet picture are different from the target contents of the frame selection of the answer sheet picture, and the current position of the center of the answer sheet picture is the last position in the position array, sending the answer sheet picture to a question and answer sheet picture area for a technician to process.
Optionally, in the step of comparing the answer sheet picture positioning methods, if the contents of the positioning frames on the answer sheet picture are respectively the same as the target contents of the positioning frames on the answer sheet picture, the method further includes:
adjusting the answer sheet picture to enable the content on the answer sheet picture, which is the same as the target content, to be superposed with the target content;
identifying the contents framed and selected by other positioning frames on the answer sheet picture;
if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame on the answer sheet picture, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet; and if the content selected by the positioning frame is different from the target content, sending the answer sheet picture to a question answer sheet picture area for a technician to process.
Optionally, in the step of comparing the answer sheet picture positioning method, the step of comparing comprises:
if the content framed by each positioning frame is the same as the target content framed by the positioning frame, randomly selecting two positioning frames as target positioning frames, calculating a content central point of the content framed by the target positioning frames and a target content central point of the target content, connecting the two content central points to obtain a content central line, connecting the two target content central points to obtain a target content central line, and rotating the answer sheet picture to enable the content central line to be parallel to the target content central line;
and translating the answer sheet picture to enable the content to be superposed with the target content.
Based on the same inventive concept, the invention also provides an answer sheet picture positioning device, comprising:
the acquisition module is used for acquiring a template answer sheet picture file, wherein the template answer sheet picture file comprises template answer sheet pictures and positioning frame information, and the positioning frame information comprises the size of each positioning frame and the position of each positioning frame in the template answer sheet pictures;
the identification module is used for identifying the target content of each positioning frame in the template answer sheet picture one by one, wherein the target content is one of a target horizontal line, target characters and target positioning points, and at least one positioning frame selects the target horizontal line or the target characters;
the matching module is used for acquiring the answer sheet pictures and determining the position of each positioning frame on the answer sheet pictures according to the matching relation between the answer sheet pictures and the template answer sheet pictures;
and the comparison module is used for identifying the contents of each positioning frame on the answer sheet picture one by one, and if the contents of each positioning frame are the same as the target contents of the positioning frame, the answer sheet picture is adjusted to ensure that the contents on the answer sheet are superposed with the target contents on the template answer sheet.
Based on the same inventive concept, the invention further provides a readable storage medium, wherein the readable storage medium stores computer instructions, and when a computer executes the computer instructions, the readable storage medium is used for executing the answer sheet picture positioning method.
Based on the same inventive concept, the present invention also provides an electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the answer sheet picture positioning method.
The invention provides an answer sheet picture positioning method, an answer sheet picture positioning device, a readable storage medium and electronic equipment, wherein the method obtains a template answer sheet picture and positioning frame information by obtaining a template answer sheet picture file, obtains content of each positioning frame on an answer sheet picture according to the matching relation between the template answer sheet picture and the positioning frame information, and can adjust the answer sheet picture to enable the content on the answer sheet to be coincident with the target content on the template answer sheet picture to realize the positioning of the answer sheet picture if the content of the positioning frame selection is the same as the target content framed on the template answer sheet picture by the positioning frame. The target content selected by the positioning frame can be one of a target horizontal line, target characters and a target positioning point, so that the diversity of the positioning content is increased, and the problem that the answer sheet picture cannot be positioned when an examinee leaves a trace on the positioning point is avoided.
Drawings
Fig. 1 is a schematic flow chart of an answer sheet picture positioning method according to embodiment 1 of the present invention.
Fig. 2 is a schematic structural diagram of a schematic structure of an answer sheet picture positioning device according to embodiment 3 of the present invention.
Fig. 3 is a schematic structural diagram of an electronic device according to embodiment 6 of the present invention.
Detailed Description
Embodiments of the present invention will be further explained with reference to the drawings.
Example 1
The embodiment provides an answer sheet picture positioning method, which can be applied to a network marking server, and as shown in fig. 1, the method includes the following steps:
s101, acquiring a template answer sheet picture file, wherein the template answer sheet picture file comprises template answer sheet pictures and positioning frame information, and the positioning frame information comprises the size of each positioning frame and the position of each positioning frame in the template answer sheet pictures.
The template answer sheet picture file is made by technicians, the technicians can select an unfilled complete undamaged answer sheet picture with clear content from a plurality of answer sheet pictures as a template answer sheet picture, the selection of the template answer sheet picture also needs to pay attention to that the printing content of the template answer sheet picture needs to be forward displayed and not skewed, or a blank answer sheet can be independently adopted, and the picture is scanned into a picture after the answer of an objective question is completely filled to obtain the template answer sheet picture; then, the technician selects a plurality of target contents in the template answer sheet picture, and plans a plurality of positioning frames aiming at the target contents, so that one positioning frame covers one target content. When the technician selects the target content, the position of the selected target content should be at the peripheral position of the template answer sheet picture, for example, the upper left area, the upper right area, the lower left area or the lower right area of the template answer sheet is selected, the number of the selected target content should be not less than three, the three target contents should be respectively located in any three areas of the upper left area, the upper right area, the lower left area or the lower right area, and the larger the range of the template answer sheet picture covered after the three target contents are connected, the lower the probability that the answer sheet picture and the template answer sheet picture are matched incorrectly is.
And S102, identifying the target content of each positioning frame in the template answer sheet picture one by one, wherein the target content is one of a target horizontal line, target characters and target positioning points, and at least one positioning frame selects the target horizontal line or the target characters.
The method comprises the steps that after a template answer sheet picture file is obtained, target content covered by a positioning frame is found according to the position and the size of the positioning frame on the template answer sheet picture, one positioning frame only covers one target content, so that a server can directly identify the target content covered by the positioning frame, the target content can be one of a target horizontal line, target characters and target positioning points, and at least one positioning frame selects the target horizontal line or the target characters. Wherein the target horizontal line is a horizontal line for the examinee to fill in the answer area, and can also be an isolation line for separating each answer area; the target characters are characters printed on the answer sheet, such as 'name', test subjects and the like, and the target positioning points are black square frames printed on the periphery of the answer sheet.
When the target content is identified, the template answer sheet picture is subjected to binarization processing, and the gray value of a pixel point on the template answer sheet picture is set to be 0 or 225, so that a black and white template answer sheet picture is obtained. And then, performing edge detection on the target content by adopting a Canny algorithm, detecting edge straight lines by depending on Hough transformation, and if the target content is a target positioning point, obtaining two groups of mutually parallel edge straight lines of the target positioning point, namely when the two groups of mutually parallel edge straight lines are obtained in the edge straight line detection, determining that a detection object is the target positioning point. Similarly, the target horizontal line may also be identified by the above method, and when a straight line is obtained in the edge straight line detection, the target content is determined as the target horizontal line. For the target characters in the template answer sheet picture, the stroke lines of the target characters can be obtained in a Canny algorithm, and the stroke lines of the common Chinese characters are complex, so when the server finds that the lines of the target contents are complex, the target contents selected by the positioning frame are considered as the target characters, at the moment, the target characters can be identified by adopting a convolutional neural network and a cyclic neural network, and the target characters can also be identified by adopting OCR (Optical Character Recognition).
S103, acquiring an answer sheet picture, and determining the position of each positioning frame on the answer sheet picture according to the matching relation between the answer sheet picture and the template answer sheet picture.
The answer sheet picture is obtained by scanning the answer sheet by the scanner, and each answer sheet is scanned to obtain an answer sheet picture. The matching relation can be frame matching, center matching and the like, the frame matching is that the frame of the answer sheet picture is superposed with the frame of the template answer sheet picture, and then the positioning frames are mapped onto the answer sheet picture, so that the position of each positioning frame on the answer sheet picture can be determined; in addition, the center matching means that the center point of the answer sheet picture is coincided with the center point of the template answer sheet picture, and then the positioning frame is mapped on the answer sheet picture.
And S104, identifying the contents of each positioning frame on the answer sheet picture one by one, and if the contents of each positioning frame are the same as the target contents of the positioning frame, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet.
For the identification of the content selected by each positioning frame on the answer sheet picture, reference may be made to the identification of the target content in the template answer sheet picture in step S102, that is, after the answer sheet picture is subjected to binarization processing, the edge of the positioning frame framing content is detected by using the Canny edge, then the edge line is identified by using Hough, and whether the positioning point, the horizontal line or the character is determined by the complexity of the edge line. If the edge lines comprise two groups of parallel straight lines, the content is determined as a positioning point; if the edge line is a straight line, the content is determined to be a horizontal line, if the line is more complex, the content is determined to be a character, and then the specific character content is identified by adopting a character identification mode.
When the contents of a positioning frame on the answer sheet picture and the target contents of the positioning frame on the answer sheet picture are recognized as positioning points or horizontal lines or character contents after being recognized, the contents of the positioning frame and the target contents of the frame are recognized as the same, for example, the server recognizes the target contents framed on the template answer sheet picture by the positioning frame 1 as the target characters of 'names', and after the answer sheet picture is matched with the template answer sheet picture, the contents framed on the answer sheet picture by the positioning frame 1 are recognized as the Chinese characters of 'names', and the server recognizes the contents framed on the answer sheet picture by the positioning frame 1 as the same as the target characters framed on the target answer sheet picture. For another example, the server identifies that the target content framed by the positioning frame 2 on the template answer sheet picture is the target positioning point, and after the answer sheet picture is matched with the template answer sheet picture, the server identifies that the content framed by the positioning frame 2 on the answer sheet picture is blank, and then the server determines that the content framed by the positioning frame 2 on the answer sheet picture is different from the target positioning point framed on the target answer sheet picture.
When the content framed by each positioning frame is the same as the target content framed by the positioning frame, the answer sheet picture is adjusted to be superposed with the template answer sheet picture, and specifically, superposition can be carried out according to the edge line on the answer sheet picture and the edge straight line on the template answer sheet. If the printed contents in the template answer sheet picture are positively displayed, the adjusted printed contents in the answer sheet picture can also be positively displayed, so that the subsequent examination paper reading by the examination paper teacher can be facilitated. And when the answer sheet picture is superposed with the template answer sheet picture, the server can correct the objective question part in the answer sheet picture according to the template answer sheet picture and cut the subjective question answering area.
In the method for positioning an answer sheet picture in this embodiment, a template answer sheet picture and positioning frame information are obtained by obtaining a template answer sheet picture file, content of each positioning frame on the answer sheet picture is obtained according to a matching relationship between the template answer sheet picture and the positioning frame information, and if the content of the positioning frame is the same as a target content framed by the positioning frame on the template answer sheet picture, the answer sheet picture can be adjusted so that the content on the answer sheet coincides with the target content on the template answer sheet picture to position the answer sheet picture. The target content selected by the positioning frame can be one of a target horizontal line, target characters and a target positioning point, so that the diversity of the positioning content is increased, and the problem that the answer sheet picture cannot be positioned when an examinee leaves a trace on the positioning point is avoided.
Example 2
The embodiment provides another answer sheet picture positioning method, which comprises the following steps:
s201, acquiring a template answer sheet picture file, wherein the template answer sheet picture file comprises template answer sheet pictures and positioning frame information, and the positioning frame information comprises the size of each positioning frame and the position of each positioning frame in the template answer sheet pictures.
And S202, identifying the target content of each positioning frame in the template answer sheet picture one by one, wherein the target content is one of a target horizontal line, target characters and target positioning points, and at least one positioning frame selects the target horizontal line or the target characters.
S203, obtaining an answer sheet picture, and determining the position of each positioning frame on the answer sheet picture according to the matching relation between the answer sheet picture and the template answer sheet picture.
S204, identifying the content of each positioning frame on the answer sheet picture one by one.
S205, if the content framed by each positioning frame on the answer sheet picture is different from the target content framed by the positioning frame, executing step S206A; if the contents of the positioning boxes on the answer sheet picture are respectively the same as the target contents of the respective boxes, then step S207A is executed; if the content framed by each positioning frame on the answer sheet picture is the same as the target content framed by the positioning frame, step S208 is executed.
In this step, due to the difference in the model and stability of the scanner and the difference in the printing during the printing process of the answer sheet, the position of the printed content on each answer sheet may be different, so that after the answer sheet picture and the template answer sheet picture are matched, the contents of some or even all of the frames of the positioning frames on the answer sheet picture may be different from the target contents of their respective frames.
S206A, rotating the answer sheet picture by a predetermined angle with the center of the answer sheet picture as a rotation point, and re-identifying the content of each of the positioning frames on the answer sheet picture.
Due to scanning or printing, the printed contents in the answer sheet picture are inclined or shifted, so that the contents of part or even all of the positioning frames on the answer sheet picture are respectively different from the target contents of the frames. When the printed content is inclined, the adjustment can be tried by adopting the step, namely, the center of the answer sheet picture is taken as a rotation point, and the rotation is carried out according to a rotation mode. The rotation mode may be any, for example, a clockwise rotation mode, the answer sheet rotates by a set angle in a clockwise direction, for example, rotates by 15 degrees, each time this step is executed, the set angle continues to rotate by 360 degrees at the current angle of the answer sheet picture, and the set number of times is 24 when the answer sheet picture rotates by 24 degrees. For example, the swing ship rotation mode is set to 20 times and set to 1 degree, and when the step is executed each time, the swing ship rotates clockwise by 1 degree, returns to the original position after 10 times, rotates counterclockwise by 1 degree each time and finishes after 10 times of counterclockwise rotation. The set times and the set angles may be obtained empirically, for example, by examining a plurality of answer sheet pictures with inclined printed contents, estimating the range of inclination angles, and determining the set times and the set angles. When the answer sheet picture rotates once for a set angle, the position of the template answer sheet is kept unchanged, the server maps the positioning frames on the template answer sheet to the answer sheet picture and identifies the content of frame selection of each positioning frame on the answer sheet picture.
S206B, if the content of the positioning frame on the answer sheet picture is different from the target content of the positioning frame on the answer sheet picture, and the number of rotations of the answer sheet picture is less than the set number, returning to step S206A; if the contents of some or all of the frames of the positioning frame on the answer sheet picture are different from the target contents of the frames thereof, and the number of rotations of the answer sheet picture is equal to or greater than the set number of times, execute step S206C; if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame, step S208 is executed.
S206C, arranging a position array with the center of the answer sheet picture as the origin, and adjusting the answer sheet picture to make the center of the answer sheet picture coincide with the first position in the position array.
After step S206A, it is substantially excluded that the content of each of the positioning boxes is different from the target content of the positioning box due to the inclination of the printed content, and this step is used to deal with the problem of positioning failure caused by the deviation of the printed content. The printed content deviation means that the printed content moves left and right or moves up and down, so that the position of the center of the answer sheet picture can be taken as an original point, a position array is arranged by taking the original point as the center, a plurality of positions can be regularly or randomly arranged in the position array, and the answer sheet picture is adjusted to ensure that the center of the answer sheet picture is sequentially superposed with the positions in the position array, namely when the center of the answer sheet picture is superposed with a certain position in the position array, the answer sheet picture is equivalently moved.
S206D, re-identifying the content of each of the positioning boxes on the answer sheet picture.
When the center of the answer sheet picture is adjusted to one position, the position of the template answer sheet is kept unchanged, the server maps the positioning frames on the template answer sheet to the answer sheet picture and identifies the content of frame selection of each positioning frame on the answer sheet picture.
S206E, if the content of the positioning frame on the answer sheet picture is different from the target content of the positioning frame on the answer sheet picture, and the current position of the center of the answer sheet picture is not the last position in the position array, adjusting the center of the answer sheet to coincide with the next position in the position array, and returning to step S206D; if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame, executing step S208; if the content framed by the positioning frame on the answer sheet picture is different from the target content framed by the positioning frame on the answer sheet picture, and the current position of the center of the answer sheet picture is the last position in the position array, step S209 is executed.
S207A, adjusting the answer sheet picture to make the content on the answer sheet picture identical to the target content coincide with the target content, and identifying other content framed by the positioning frame on the answer sheet picture.
In this step, when the contents of the frame selection of a part of the positioning frames are respectively the same as the target contents of the respective frame selection, the answer sheet picture can be adjusted to make the part of the contents coincide with the target contents, that is, the answer sheet picture is adjusted according to the contents of the frame selection of the part of the positioning frames, and the adjusted answer sheet picture may coincide with the template answer sheet or may not coincide with the template answer sheet. After the answer sheet picture is adjusted, the template answer sheet picture is kept unchanged, the server can remap the positioning frame on the template answer sheet picture to the answer sheet picture, and the contents selected by other positioning frame frames on the answer sheet picture are identified again.
S207B, if the content of the positioning box on the answer sheet picture is the same as the target content of the positioning box on the answer sheet picture, executing step S208; if the content framed by the positioning box is not the same as the target content, step S209 is executed.
S208, adjusting the answer sheet picture to enable the content on the answer sheet to be coincident with the target content on the template answer sheet.
In this step, when the content of the positioning frame on the answer sheet picture is the same as the target content of the positioning frame on the answer sheet picture, the answer sheet picture is adjusted to be completely superposed with the template answer sheet picture, and then the server can correct the selected questions in the answer sheet picture by referring to the template answer sheet picture and cut the subjective question answering part, so that different subsequent reading teachers score different subjective question answering areas in the answer sheet picture.
Adjusting the answer sheet picture so that the content on the answer sheet coincides with the target content on the template answer sheet may be performed in various ways, for example, the contour line of the content and the contour line of the target content on the answer sheet picture are extracted, the content on the answer sheet picture is coincided with the target content on the template answer sheet picture according to the contour lines, two positioning frames can be selected randomly as target positioning frames, the content central point of the content framed by the target positioning frames and the target content central point of the target content are calculated, the two content central points are connected to obtain a content central line, the two target content central points are connected to obtain a target content central line, the answer sheet picture is rotated to enable the content central line to be parallel to the target content central line, and then the answer sheet picture is translated to enable the content to be coincided with the target content.
S209, sending the answer sheet picture to a question answer sheet picture area for a technician to process.
In this step, if the positioning of a certain answer sheet picture is still failed after the answer sheet picture is processed in the above steps, that is, the content of the frame selection of each positioning frame is different from the target content of the frame selection of the positioning frame, a technician is required to perform positioning after the processing. For example, a technician drags the positioning frame mapped to the answer sheet picture to make the framed content identical to the framed target content, and after the server identifies the framed content of the positioning frame on the answer sheet picture, the server can adjust the answer sheet picture to make the framed content of each positioning frame coincide with the framed target content of each positioning frame on the template answer sheet.
In the answer sheet picture positioning method of this embodiment, when the frame-selected content of each positioning frame on the answer sheet picture is different from the target content of the frame-selected content, the answer sheet picture is tried to be positioned by rotating the answer sheet picture and moving the answer sheet picture, so as to accelerate the speed of positioning the answer sheet picture. And if the contents of the frame selection of the partial positioning frame are respectively the same as the target contents of the frame selection, the answer sheet picture can be selected and adjusted to ensure that partial contents are superposed with the target contents, so that the answer sheet picture can be superposed with the template answer sheet picture. By the method, the probability of successfully positioning the answer sheet picture by the server can be improved.
Example 3
The present embodiment provides an answer sheet picture positioning device, as shown in fig. 2, including:
the obtaining module 201 obtains a template answer sheet picture file, where the template answer sheet picture file includes a template answer sheet picture and location frame information, and the location frame information includes the size of each location frame and the position of each location frame in the template answer sheet picture.
The template answer sheet picture file is made by technicians, the technicians can select an unfilled complete undamaged answer sheet picture with clear content from a plurality of answer sheet pictures as a template answer sheet picture, the selection of the template answer sheet picture also needs to pay attention to that the printing content of the template answer sheet picture needs to be forward displayed and not skewed, or a blank answer sheet can be independently adopted, and the picture is scanned into a picture after the answer of an objective question is completely filled to obtain the template answer sheet picture; then, the technician selects a plurality of target contents in the template answer sheet picture, and plans a plurality of positioning frames aiming at the target contents, so that one positioning frame covers one target content. When the technician selects the target content, the position of the selected target content should be at the peripheral position of the template answer sheet picture, for example, the upper left area, the upper right area, the lower left area or the lower right area of the template answer sheet is selected, the number of the selected target content should be not less than three, the three target contents should be respectively located in any three areas of the upper left area, the upper right area, the lower left area or the lower right area, and the larger the range of the template answer sheet picture covered after the three target contents are connected, the lower the probability that the answer sheet picture and the template answer sheet picture are matched incorrectly is.
The identifying module 202 is configured to identify target content of each positioning frame in the template answer sheet picture one by one, where the target content is one of a target horizontal line, target characters and target positioning points, and at least one positioning frame selects the target horizontal line or the target characters.
The method comprises the steps that after a template answer sheet picture file is obtained, target content covered by a positioning frame is found according to the position and the size of the positioning frame on the template answer sheet picture, one positioning frame only covers one target content, so that a server can directly identify the target content covered by the positioning frame, the target content can be one of a target horizontal line, target characters and target positioning points, and at least one positioning frame selects the target horizontal line or the target characters. Wherein the target horizontal line is a horizontal line for the examinee to fill in the answer area, and can also be an isolation line for separating each answer area; the target characters are characters printed on the answer sheet, such as 'name', test subjects and the like, and the target positioning points are black square frames printed on the periphery of the answer sheet.
When the target content is identified, the template answer sheet picture is subjected to binarization processing, and the gray value of a pixel point on the template answer sheet picture is set to be 0 or 225, so that a black and white template answer sheet picture is obtained. And then, performing edge detection on the target content by adopting a Canny algorithm, detecting edge straight lines by depending on Hough transformation, and if the target content is a target positioning point, obtaining two groups of mutually parallel edge straight lines of the target positioning point, namely when the two groups of mutually parallel edge straight lines are obtained in the edge straight line detection, determining that a detection object is the target positioning point. Similarly, the target horizontal line may also be identified by the above method, and when a straight line is obtained in the edge straight line detection, the target content is determined as the target horizontal line. For the target characters in the template answer sheet picture, the stroke lines of the target characters can be obtained in a Canny algorithm, and the stroke lines of the common Chinese characters are complex, so when the server finds that the lines of the target contents are complex, the target contents selected by the positioning frame are considered as the target characters, at the moment, the target characters can be identified by adopting a convolutional neural network and a cyclic neural network, and the target characters can also be identified by adopting OCR (Optical Character Recognition).
The matching module 203 acquires an answer sheet picture, and determines the position of each positioning frame on the answer sheet picture according to the matching relationship between the answer sheet picture and the template answer sheet picture.
The answer sheet picture is obtained by scanning the answer sheet by the scanner, and each answer sheet is scanned to obtain an answer sheet picture. The matching relation can be frame matching, center matching and the like, the frame matching is that the frame of the answer sheet picture is superposed with the frame of the template answer sheet picture, and then the positioning frames are mapped onto the answer sheet picture, so that the position of each positioning frame on the answer sheet picture can be determined; in addition, the center matching means that the center point of the answer sheet picture is coincided with the center point of the template answer sheet picture, and then the positioning frame is mapped on the answer sheet picture.
The comparison module 204 identifies the content of each of the frames of the positioning frames on the answer sheet picture one by one, and if the content of each of the frames of the positioning frames is the same as the target content of the frame, adjusts the answer sheet picture to make the content of the answer sheet coincide with the target content of the template answer sheet.
When the contents of a positioning frame on the answer sheet picture and the target contents of the positioning frame on the answer sheet picture are recognized as positioning points or horizontal lines or character contents after being recognized, the contents of the positioning frame and the target contents of the frame are recognized as the same, for example, the server recognizes the target contents framed on the template answer sheet picture by the positioning frame 1 as the target characters of 'names', and after the answer sheet picture is matched with the template answer sheet picture, the contents framed on the answer sheet picture by the positioning frame 1 are recognized as the Chinese characters of 'names', and the server recognizes the contents framed on the answer sheet picture by the positioning frame 1 as the same as the target characters framed on the target answer sheet picture. For another example, the server identifies that the target content framed by the positioning frame 2 on the template answer sheet picture is the target positioning point, and after the answer sheet picture is matched with the template answer sheet picture, the server identifies that the content framed by the positioning frame 2 on the answer sheet picture is blank, and then the server determines that the content framed by the positioning frame 2 on the answer sheet picture is different from the target positioning point framed on the target answer sheet picture.
When the content framed by each positioning frame is the same as the target content framed by the positioning frame, the answer sheet picture is adjusted to be superposed with the template answer sheet picture, and specifically, superposition can be carried out according to the edge line on the answer sheet picture and the edge straight line on the template answer sheet. If the printed contents in the template answer sheet picture are positively displayed, the adjusted printed contents in the answer sheet picture can also be positively displayed, so that the subsequent examination paper reading by the examination paper teacher can be facilitated. And when the answer sheet picture is superposed with the template answer sheet picture, the server can correct the objective question part in the answer sheet picture according to the template answer sheet picture and cut the subjective question answering area.
The answer sheet picture positioning device described in this embodiment obtains the template answer sheet picture and the location frame information by obtaining the template answer sheet picture file, obtains the contents of each location frame selection on the answer sheet picture according to the matching relationship between the template answer sheet picture and the location frame information, and if the contents of the location frame selection are the same as the target contents framed by the location frame on the template answer sheet picture, can adjust the answer sheet picture to make the contents on the answer sheet coincide with the target contents on the template answer sheet picture to realize the positioning of the answer sheet picture. The target content selected by the positioning frame can be one of a target horizontal line, target characters and a target positioning point, so that the diversity of the positioning content is increased, and the problem that the answer sheet picture cannot be positioned when an examinee leaves a trace on the positioning point is avoided.
Example 4
This embodiment provides another answer sheet picture positioner, includes:
the acquisition module acquires a template answer sheet picture file, wherein the template answer sheet picture file comprises template answer sheet pictures and positioning frame information, and the positioning frame information comprises the size of each positioning frame and the position of each positioning frame in the template answer sheet pictures.
And the identification module is used for identifying the target content of each positioning frame in the template answer sheet picture one by one, wherein the target content is one of a target horizontal line, target characters and target positioning points, and at least one positioning frame selects the target horizontal line or the target characters.
And the matching module is used for acquiring the answer sheet pictures and determining the position of each positioning frame on the answer sheet pictures according to the matching relation between the answer sheet pictures and the template answer sheet pictures.
And the comparison module is used for identifying the contents of each positioning frame on the answer sheet picture one by one, and if the contents of each positioning frame are the same as the target contents of the positioning frame, the answer sheet picture is adjusted to ensure that the contents on the answer sheet are superposed with the target contents on the template answer sheet.
The comparison module, if on the answer sheet picture each the content of locating frame selection all is different rather than the target content of its frame selection, then answer sheet picture positioner still includes rotation module and judging module, wherein:
and the rotating module rotates by a set angle by taking the center of the answer sheet picture as a rotating point, and re-identifies the content of each positioning frame on the answer sheet picture.
The judging module returns to the rotating module if the contents of part or all of the positioning frame on the answer sheet picture are different from the target contents of the answer sheet picture, and the rotating times of the answer sheet picture are less than the set times; if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame on the answer sheet picture, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet; if the contents of the positioning frame on the answer sheet picture are different from the target contents of the positioning frame on the answer sheet picture, and the rotation times of the answer sheet picture are equal to or more than the set times, the answer sheet picture positioning device further comprises an array arrangement module, a position adjustment module, a content identification module and an adjustment module, wherein the array arrangement module, the position adjustment module, the content identification module and the adjustment module are arranged on the answer sheet picture, and the number of the rotation times of the answer sheet picture is equal to or more
The array arrangement module takes the position of the center of the answer sheet picture as an origin and takes the origin as the center to arrange a position array.
And the position adjusting module is used for adjusting the answer sheet picture to enable the center of the answer sheet picture to coincide with the first position in the position array.
And the content identification module is used for re-identifying the content of each positioning frame on the answer sheet picture.
An adjusting module, for adjusting the answer sheet picture to make the content on the answer sheet coincide with the target content on the template answer sheet if the content framed by the positioning frame on the answer sheet picture is the same as the target content framed by the positioning frame on the answer sheet picture; if the contents of part or all of the positioning frames on the answer sheet picture are different from the target contents of the positioning frames, and the current position of the center of the answer sheet picture is not the last position in the position array, adjusting the center of the answer sheet to coincide with the next position of the position array, and returning to a content identification module; and if the contents of the frame selection of part or all of the positioning frames on the answer sheet picture are different from the target contents of the frame selection of the answer sheet picture, and the current position of the center of the answer sheet picture is the last position in the position array, sending the answer sheet picture to a question and answer sheet picture area for a technician to process.
In the comparison module, if the contents of the frame selection of the positioning frame on the answer sheet picture are respectively the same as the target contents of the respective frame selection, the answer sheet positioning device further comprises:
and the content adjusting module is used for adjusting the answer sheet picture to enable the content, which is the same as the target content, on the answer sheet picture to be coincided with the target content.
And the frame selection content identification module is used for identifying other contents selected by the positioning frame on the answer sheet picture.
A judging module, for adjusting the answer sheet picture to make the content on the answer sheet coincide with the target content on the template answer sheet if the content framed by the positioning frame on the answer sheet picture is the same as the target content framed by the positioning frame on the answer sheet picture; and if the content selected by the positioning frame is different from the target content, sending the answer sheet picture to a question answer sheet picture area for a technician to process.
The comparison module is used for randomly selecting two positioning frames as target positioning frames if the content framed by each positioning frame is the same as the target content framed by the positioning frame, calculating a content central point of the content framed by the target positioning frame and a target content central point of the target content, connecting the two content central points to obtain a content central line, connecting the two target content central points to obtain a target content central line, and rotating the answer sheet picture to enable the content central line to be parallel to the target content central line; and translating the answer sheet picture to enable the content to be superposed with the target content.
In the answer sheet picture positioning device of the embodiment, when the frame-selected content of each positioning frame on the answer sheet picture is different from the frame-selected target content of the answer sheet picture, the answer sheet picture is tried to be positioned by rotating the answer sheet picture or moving the answer sheet picture so as to accelerate the positioning speed of the answer sheet picture. And if the contents of the frame selection of the partial positioning frame are respectively the same as the target contents of the frame selection, the answer sheet picture can be selected and adjusted to ensure that partial contents are superposed with the target contents, so that the answer sheet picture can be superposed with the template answer sheet picture. By the device, the probability of successfully positioning the answer sheet picture by the server can be improved.
Example 5
The present embodiment provides a readable storage medium, which may be a non-volatile computer storage medium, where the storage medium stores computer-executable instructions, and the computer-executable instructions may execute the answer sheet picture positioning method in any of the above method embodiments.
Example 6
The present embodiment provides an electronic device, as shown in fig. 3, including: at least one processor 301; and a memory 302 communicatively coupled to the at least one processor 301; wherein the content of the first and second substances,
the memory 302 stores instructions executable by the one processor 301 to cause the at least one processor 301 to:
the method comprises the steps of obtaining a template answer sheet picture file, wherein the template answer sheet picture file comprises template answer sheet pictures and positioning frame information, and the positioning frame information comprises the size of each positioning frame and the position of each positioning frame in the template answer sheet pictures;
identifying target contents of each positioning frame in the template answer sheet picture one by one, wherein the target contents are one of target horizontal lines, target characters and target positioning points, and at least one positioning frame selects the target horizontal lines or the target characters;
a matching step, namely acquiring an answer sheet picture, and determining the position of each positioning frame on the answer sheet picture according to the matching relation between the answer sheet picture and the template answer sheet picture;
and a comparison step, namely identifying the contents of each positioning frame on the answer sheet picture one by one, and if the contents of each positioning frame are the same as the target contents of the positioning frame, adjusting the answer sheet picture to ensure that the contents on the answer sheet are superposed with the target contents on the template answer sheet.
According to the scheme, the template answer sheet picture and the positioning frame information are obtained by obtaining the template answer sheet picture file, the content of frame selection of each positioning frame on the answer sheet picture is obtained according to the matching relation between the template answer sheet picture and the positioning frame information, and if the content of frame selection of the positioning frame is the same as the target content framed by the positioning frame on the template answer sheet picture, the answer sheet picture can be adjusted to enable the content on the answer sheet to be superposed with the target content on the template answer sheet picture, so that the answer sheet picture is positioned. The target content selected by the positioning frame can be one of a target horizontal line, target characters and a target positioning point, so that the diversity of the positioning content is increased, and the problem that the answer sheet picture cannot be positioned when an examinee leaves a trace on the positioning point is avoided.
In the comparing step, if the content of each of the positioning frames on the answer sheet picture is different from the target content of the positioning frame, the at least one processor 301 may:
rotating by a set angle by taking the center of the answer sheet picture as a rotating point;
re-identifying, namely re-identifying the content of each positioning frame on the answer sheet picture;
a judging step:
if the contents of part or all of the positioning frame frames on the answer sheet picture are different from the target contents of the positioning frame frames, and the rotation times of the answer sheet picture are less than the set times, returning to the rotation step;
if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame on the answer sheet picture, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet.
In the above solution, the answer sheet picture is tried to be positioned by rotating the answer sheet picture, so as to accelerate the speed of positioning the answer sheet picture and improve the probability that the processor 301 successfully positions the answer sheet picture.
The at least one processor 301 is capable of:
in the step of determining, if the contents of the positioning frame on the answer sheet picture are different from the target contents of the positioning frame on the answer sheet picture, and the number of rotations of the answer sheet picture is equal to or greater than a set number of times, the method further includes the following steps:
an array arrangement step, wherein a position array is arranged by taking the position of the center of the answer sheet picture as an original point and the original point as the center;
a position adjusting step, namely adjusting the answer sheet picture to enable the center of the answer sheet picture to coincide with a first position in the position array;
a content identification step, namely re-identifying the content of each positioning frame on the answer sheet picture;
an adjusting step:
if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame on the answer sheet picture, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet;
if the contents of part or all of the positioning frames on the answer sheet picture are different from the target contents of the positioning frames on the answer sheet picture, and the current position of the center of the answer sheet picture is not the last position in the position array, adjusting the center of the answer sheet to coincide with the next position of the position array, and returning to the content identification step;
and if the contents of the frame selection of part or all of the positioning frames on the answer sheet picture are different from the target contents of the frame selection of the answer sheet picture, and the current position of the center of the answer sheet picture is the last position in the position array, sending the answer sheet picture to a question and answer sheet picture area for a technician to process.
In the above solution, the answer sheet picture is tried to be positioned by translating the answer sheet picture, so as to accelerate the speed of positioning the answer sheet picture and improve the probability that the processor 301 successfully positions the answer sheet picture.
The at least one processor 301 is capable of:
in the comparing step, if the contents of some of the frames of the positioning frame on the answer sheet picture are respectively the same as the target contents of the respective frames, the method further comprises:
adjusting the answer sheet picture to enable the content on the answer sheet picture, which is the same as the target content, to be superposed with the target content;
identifying the contents framed and selected by other positioning frames on the answer sheet picture;
if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame on the answer sheet picture, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet; and if the content selected by the positioning frame is different from the target content, sending the answer sheet picture to a question answer sheet picture area for a technician to process.
In the above scheme, the answer sheet picture with the content selected by the partial positioning frame being the same as the target content selected by the partial positioning frame is selected and adjusted to enable the partial content to be overlapped with the target content, so that the answer sheet picture can be overlapped with the template answer sheet picture, and the probability of successfully positioning the answer sheet picture by the server can be improved.
The at least one processor 301 is capable of:
in the comparison step:
if the content framed by each positioning frame is the same as the target content framed by the positioning frame, randomly selecting two positioning frames as target positioning frames, calculating a content central point of the content framed by the target positioning frames and a target content central point of the target content, connecting the two content central points to obtain a content central line, connecting the two target content central points to obtain a target content central line, and rotating the answer sheet picture to enable the content central line to be parallel to the target content central line;
and translating the answer sheet picture to enable the content to be superposed with the target content.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (7)

1. An answer sheet picture positioning method is characterized by comprising the following steps:
the method comprises the steps of obtaining a template answer sheet picture file, wherein the template answer sheet picture file comprises template answer sheet pictures and positioning frame information, and the positioning frame information comprises the size of each positioning frame and the position of each positioning frame in the template answer sheet pictures;
identifying target contents of each positioning frame in the template answer sheet picture one by one, wherein the target contents are one of target horizontal lines, target characters and target positioning points, and at least one positioning frame selects the target horizontal lines or the target characters;
a matching step, namely acquiring an answer sheet picture, and determining the position of each positioning frame on the answer sheet picture according to the matching relation between the answer sheet picture and the template answer sheet picture;
a step of comparing, namely identifying the contents of each positioning frame on the answer sheet picture one by one, and if the contents of each positioning frame are the same as the target contents of the positioning frame, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet;
if the contents framed by each positioning frame on the answer sheet picture are different from the target contents framed by the positioning frame, the comparison step further comprises the following steps:
rotating by a set angle by taking the center of the answer sheet picture as a rotating point;
re-identifying, namely re-identifying the content of each positioning frame on the answer sheet picture;
a judging step:
if the contents of part or all of the positioning frame frames on the answer sheet picture are different from the target contents of the positioning frame frames, and the rotation times of the answer sheet picture are less than the set times, returning to the rotation step;
if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame on the answer sheet picture, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet.
2. The answer sheet picture positioning method according to claim 1, wherein in the step of determining, if the contents of some or all of the positioning frames on the answer sheet picture are different from the target contents of the positioning frames, and the number of rotations of the answer sheet picture is equal to or greater than a set number, the method further comprises the steps of:
an array arrangement step, wherein a position array is arranged by taking the position of the center of the answer sheet picture as an original point and the original point as the center;
a position adjusting step, namely adjusting the answer sheet picture to enable the center of the answer sheet picture to coincide with a first position in the position array;
a content identification step, namely re-identifying the content of each positioning frame on the answer sheet picture;
an adjusting step:
if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame on the answer sheet picture, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet;
if the contents of part or all of the positioning frames on the answer sheet picture are different from the target contents of the positioning frames on the answer sheet picture, and the current position of the center of the answer sheet picture is not the last position in the position array, adjusting the center of the answer sheet to coincide with the next position of the position array, and returning to the content identification step;
and if the contents of the frame selection of part or all of the positioning frames on the answer sheet picture are different from the target contents of the frame selection of the answer sheet picture, and the current position of the center of the answer sheet picture is the last position in the position array, sending the answer sheet picture to a question and answer sheet picture area for a technician to process.
3. The answer sheet picture positioning method according to claim 1, wherein in the step of comparing, if contents framed by a part of the positioning frames on the answer sheet picture are respectively the same as the target contents framed by the positioning frames, the method further comprises:
adjusting the answer sheet picture to enable the content on the answer sheet picture, which is the same as the target content, to be superposed with the target content;
identifying the contents framed and selected by other positioning frames on the answer sheet picture;
if the contents framed by the positioning frame on the answer sheet picture are the same as the target contents framed by the positioning frame on the answer sheet picture, adjusting the answer sheet picture to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet; and if the content selected by the positioning frame is different from the target content, sending the answer sheet picture to a question answer sheet picture area for a technician to process.
4. The answer sheet picture positioning method according to any one of claims 1-3, wherein in the step of comparing:
if the content framed by each positioning frame is the same as the target content framed by the positioning frame, randomly selecting two positioning frames as target positioning frames, calculating a content central point of the content framed by the target positioning frames and a target content central point of the target content, connecting the two content central points to obtain a content central line, connecting the two target content central points to obtain a target content central line, and rotating the answer sheet picture to enable the content central line to be parallel to the target content central line;
and translating the answer sheet picture to enable the content to be superposed with the target content.
5. An answer sheet picture positioning device, comprising:
the acquisition module is used for acquiring a template answer sheet picture file, wherein the template answer sheet picture file comprises template answer sheet pictures and positioning frame information, and the positioning frame information comprises the size of each positioning frame and the position of each positioning frame in the template answer sheet pictures;
the identification module is used for identifying the target content of each positioning frame in the template answer sheet picture one by one, wherein the target content is one of a target horizontal line, target characters and target positioning points, and at least one positioning frame selects the target horizontal line or the target characters;
the matching module is used for acquiring the answer sheet pictures and determining the position of each positioning frame on the answer sheet pictures according to the matching relation between the answer sheet pictures and the template answer sheet pictures;
the comparison module is used for identifying the contents of each positioning frame on the answer sheet picture one by one, and if the contents of each positioning frame are the same as the target contents of the positioning frame, the answer sheet picture is adjusted to enable the contents on the answer sheet to be superposed with the target contents on the template answer sheet; if the contents of each positioning frame on the answer sheet picture are different from the target contents of the template answer sheet picture, the center of the answer sheet picture is used as a rotation point to rotate for setting an angle, the contents of each positioning frame on the answer sheet picture are re-identified, if part or all of the contents of the positioning frame on the answer sheet picture are different from the target contents of the template answer sheet picture, and the rotation times of the answer sheet picture are less than the set times, the center of the answer sheet picture is used as a rotation point to rotate for setting an angle, if the contents of the positioning frame on the answer sheet picture are the same as the target contents of the template answer sheet picture, the answer sheet picture is adjusted to enable the contents on the answer sheet to be coincident with the target contents on the template answer sheet picture.
6. A readable storage medium, which stores computer instructions, when the computer instructions are executed by a computer, for performing the answer sheet picture location method of any one of claims 1-4.
7. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, so that the at least one processor can execute the answer sheet picture location method of any one of claims 1-4.
CN201710841829.8A 2017-09-18 2017-09-18 Answer sheet picture positioning method and device, readable storage medium and electronic equipment Expired - Fee Related CN107590494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710841829.8A CN107590494B (en) 2017-09-18 2017-09-18 Answer sheet picture positioning method and device, readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710841829.8A CN107590494B (en) 2017-09-18 2017-09-18 Answer sheet picture positioning method and device, readable storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107590494A CN107590494A (en) 2018-01-16
CN107590494B true CN107590494B (en) 2020-07-14

Family

ID=61047295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710841829.8A Expired - Fee Related CN107590494B (en) 2017-09-18 2017-09-18 Answer sheet picture positioning method and device, readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107590494B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932508B (en) 2018-08-13 2022-03-18 杭州大拿科技股份有限公司 Method and system for intelligently identifying and correcting subjects
CN109241869A (en) * 2018-08-16 2019-01-18 邯郸职业技术学院 The recognition methods of answering card score, device and terminal device
CN109712043B (en) * 2018-12-28 2021-03-19 杭州大拿科技股份有限公司 Answer correcting method and device
CN109670504B (en) * 2018-12-28 2021-04-16 杭州大拿科技股份有限公司 Handwritten answer recognition and correction method and device
CN109815932B (en) * 2019-02-02 2021-05-28 杭州大拿科技股份有限公司 Test paper correcting method and device, electronic equipment and storage medium
CN109886274A (en) * 2019-03-25 2019-06-14 山东浪潮云信息技术有限公司 Social security card identification method and system based on opencv and deep learning
CN111126227B (en) * 2019-12-17 2023-08-08 广东德诚科教有限公司 Detection method for scanning and collecting abnormal answer sheet

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334814A (en) * 2008-04-28 2008-12-31 华北电力大学 Automatic scanning and reading system and reading method
CN103400124A (en) * 2013-07-03 2013-11-20 北京鸿合盛视数字媒体技术有限公司 Method and device for identifying test paper
CN104239866A (en) * 2014-09-16 2014-12-24 科大讯飞股份有限公司 Answer sheet information collection method and device
CN105046200A (en) * 2015-06-19 2015-11-11 成都理想境界科技有限公司 Electronic paper marking method based on line detection
CN106446865A (en) * 2016-10-12 2017-02-22 北京新晨阳光科技有限公司 Answer sheet processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2460888A1 (en) * 2004-03-12 2005-09-12 Harpe And Associates Ltd. Method for image alignment and identification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334814A (en) * 2008-04-28 2008-12-31 华北电力大学 Automatic scanning and reading system and reading method
CN103400124A (en) * 2013-07-03 2013-11-20 北京鸿合盛视数字媒体技术有限公司 Method and device for identifying test paper
CN104239866A (en) * 2014-09-16 2014-12-24 科大讯飞股份有限公司 Answer sheet information collection method and device
CN105046200A (en) * 2015-06-19 2015-11-11 成都理想境界科技有限公司 Electronic paper marking method based on line detection
CN106446865A (en) * 2016-10-12 2017-02-22 北京新晨阳光科技有限公司 Answer sheet processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
纸卷数字化和图像识别在网上阅卷中的应用;刘胜强;《中国优秀硕士学位论文全文数据库 信息科技辑》;20110415(第4期);第I138-891页 *

Also Published As

Publication number Publication date
CN107590494A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN107590494B (en) Answer sheet picture positioning method and device, readable storage medium and electronic equipment
CN107590495B (en) Answer sheet picture correction method and device, readable storage medium and electronic equipment
CN108171297B (en) Answer sheet identification method
US11450081B2 (en) Examination paper correction method and apparatus, electronic device, and storage medium
CN110008933B (en) Universal intelligent marking system and method
CN104143094A (en) Test paper automatic test paper marking processing method and system without answer sheet
CN104112128B (en) Digital image processing system and method applied to bill image character recognition
KR101648756B1 (en) Examination paper recognition and scoring system
CN110956138B (en) Auxiliary learning method based on home education equipment and home education equipment
CN111737478B (en) Text detection method, electronic device and computer readable medium
CN109242856A (en) A kind of papery operation electronization reads and makes comments method and device
CN111126227B (en) Detection method for scanning and collecting abnormal answer sheet
CN111046644A (en) Answer sheet template generation method, identification method, device and storage medium
CN110879965A (en) Automatic reading and amending method of test paper objective questions, electronic device, equipment and storage medium
CN109947273B (en) Point reading positioning method and device
CN111860527A (en) Image correction method, image correction device, computer device, and storage medium
CN112348019B (en) Answer sheet correction method and device, electronic equipment and storage medium
CN107992869A (en) For tilting the method, apparatus and electronic equipment of word correction
CN107067399A (en) A kind of paper image segmentation processing method
CN109741273A (en) A kind of mobile phone photograph low-quality images automatically process and methods of marking
CN111783763A (en) Text positioning box correction method and system based on convolutional neural network
CN114267046A (en) Method and device for correcting direction of document image
CN107066939A (en) A kind of paper cutting process method of online paper-marking system
CN114445843A (en) Card image character recognition method and device of fixed format
JP2007233888A (en) Image processor and image processing program

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
TA01 Transfer of patent application right

Effective date of registration: 20190919

Address after: 100102 Beijing Chaoyang District Rongke Wangjing Center A Block 301

Applicant after: Beijing Growth Education Technology Co.,Ltd.

Address before: 150000 Yintai City, Lijiang Road, Harbin Road District, Harbin, Heilongjiang Province, F 601

Applicant before: HARBIN GROWTH TECHNOLOGY CO.,LTD.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200714