A method and system for intelligently correcting student homework

By identifying and matching hand-drawn indicator lines in students' homework in the intelligent marking system, the problem in the existing technology that text outside the answer box cannot be recognized is solved, and more accurate and efficient homework marking is achieved.

CN118609152BActive Publication Date: 2024-10-29GUANG ZHOU SHI XIAO MA ZHI XUE JI SHU YOU XIAN GONG SI

Patent Information

Application Number
CN202411082227.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-29
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

The existing intelligent correction system cannot identify and match the response text pointed by the student's hand-drawn indicator line outside the answer box, resulting in part of the answer text being unable to be recognized and matched to the corresponding answer box, especially when there are gaps or errors in the correction process of subjective questions. Extra character problem.

Method used

By introducing the homework image acquisition module, effective answer text recognition module, and text matching module into the student homework intelligent marking system, including indicator line recognition and text area division, hand-drawn indicator lines are identified and matched to the corresponding text square area frame and answer box to ensure a complete match of the answer text.

Benefits of technology

It improves the accuracy and efficiency of homework correction, avoids missing or redundant characters during matching, enhances the ability to recognize and match text outside the answer box, and improves the accuracy of correction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609152B_ABST
    Figure CN118609152B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for intelligently correcting student homework, and belongs to the technical field of homework correction. The present invention uses a first analysis module to judge whether each character is in the same text area according to the word spacing and line spacing between characters of a second valid text, sets a second text square area frame for each text area, first divides the answer texts at various locations outside the answer box to avoid missing characters or matching redundant characters when matching to the answer box, thereby improving the matching accuracy, and then uses a text matching module to identify hand-drawn indicator lines, matches the preset answer box and the second text square area frame connected by the same hand-drawn indicator line, thereby improving the efficiency and accuracy of homework correction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of homework marking, and in particular to a method and system for intelligently marking student homework. Background Art

[0002] With the development of information technology, it has been widely used in various fields, including the field of education. In order to improve teaching efficiency, many intelligent homework grading systems or methods have been derived for grading students' homework.

[0003] Most of the intelligent grading systems on the market first divide the answer box for each question, and then identify the answer text in the answer box for grading. However, for subjective questions in some subjects (such as Chinese, politics, etc.), the range of the answer box may not be enough for students to answer, which leads to part of the answer text being written outside the answer box and then pointed to the corresponding answer box by hand-drawn indicator lines. However, the grading system in the prior art only recognizes the answer text in the answer box, resulting in the answer text outside the box cannot be recognized and cannot be matched to the corresponding answer box. Therefore, in order to solve the above-mentioned technical problems existing in the prior art, the present invention provides a method and system for intelligent grading of student homework. Summary of the invention

[0004] In order to solve the technical problems existing in the prior art, the present invention provides a student homework intelligent correction system, comprising:

[0005] A homework image acquisition module is used to acquire students' homework images;

[0006] An answer range acquisition module, used to acquire a preset answer box for each question in the homework image;

[0007] An effective answer text recognition module, used to recognize effective answer text in the homework image;

[0008] A valid text division module, used for dividing the valid answer text into a first valid text and a second valid text;

[0009] The first valid text is a valid answer text in any preset answer box, and the second valid text is a valid answer text outside all preset answer boxes;

[0010] A first analysis module is used to determine whether the characters are in the same text area according to the word spacing and line spacing between the characters of the second valid text, divide the text areas into multiple areas according to the determination result, and set a second text square area frame for each text area;

[0011] The text matching module specifically includes: an indicator line recognition module, a first matching module and a second matching module;

[0012] The indicator line recognition module is used to recognize the hand-drawn lines in the operation image and extract the hand-drawn indicator lines according to the starting position and the end position of the hand-drawn lines;

[0013] The first matching module is used to match the hand-drawn indication line with the corresponding second text square area box and the preset answer box;

[0014] The second matching module is used to match the preset answer box and the second text square area box connected by the same hand-drawn indication line, and match the second valid text in the second text square area to the corresponding preset answer box.

[0015] Furthermore, the operation image acquired by the operation image acquisition module is an operation image that has undergone image preprocessing, and the image preprocessing includes image binarization, image noise filtering processing, and image rotation transformation processing.

[0016] Furthermore, the effective answer text recognition module includes:

[0017] An answer text recognition module, used to recognize the answer text in the homework image;

[0018] An invalid text elimination module is used to identify and eliminate invalid answer texts in the answer texts, and the remaining answer texts are valid answer texts;

[0019] The invalid answer text is specifically the answer text that has been painted over.

[0020] Furthermore, the first analysis module determines whether the characters are in the same text area according to the word spacing and line spacing between characters of the second valid text, divides the text areas into multiple areas according to the determination result, and sets a second text square area frame for each text area, specifically:

[0021] In the second valid text, obtain the character spacing z of adjacent characters in the horizontal row and the line spacing h of adjacent characters in the vertical row. If the character spacing is less than or equal to the preset character spacing threshold Z, the corresponding adjacent characters in the horizontal row are in the same text area. If the line spacing is less than or equal to the preset line spacing threshold H, the corresponding adjacent characters in the vertical row are in the same text area, and a second text square area box is set for each text area.

[0022] Furthermore, the indicator line recognition module recognizes the hand-drawn lines in the operation image, and extracts the hand-drawn indicator lines according to the starting position and the end position of the hand-drawn lines, specifically:

[0023] The two endpoints of the hand-drawn line are extracted as the starting point and the end point respectively. If the shortest distance d1 from the starting point to any of the second text square area boxes is less than or equal to the first preset distance threshold D1, and the end point is in any preset answer box or the shortest distance d2 from the end point to any preset answer box is less than or equal to the second preset distance threshold D2, then the corresponding hand-drawn line is a hand-drawn indicator line.

[0024] Furthermore, the first matching module matches the hand-drawn indicator line with the corresponding second text square area frame, specifically:

[0025] The shortest distance d1 from the starting point of the current hand-drawn indication line to each second text square area frame is obtained, and the minimum value d1min is extracted. The second text square area frame corresponding to the minimum value d1min is the second text square area frame connected to the current hand-drawn indication line.

[0026] Furthermore, the first matching module matches the hand-drawn indicator line with the corresponding preset answer box, specifically:

[0027] If the end point of the current hand-drawn indicator line is within any preset answer box, the corresponding preset answer box is the preset answer box connected to the current hand-drawn indicator line. If the end point of the current hand-drawn indicator line is not within any preset answer box, the shortest distance d2 from the end point of the current hand-drawn indicator line to each preset answer box is obtained, and the minimum value d2min is extracted. The preset answer box corresponding to the minimum value d2min is the preset answer box connected to the current hand-drawn indicator line.

[0028] The present invention also provides a method for intelligently correcting student homework, comprising the following steps:

[0029] S1, obtaining students' homework images;

[0030] S2, obtaining a preset answer box for each question in the homework image and identifying a valid answer text in the homework image;

[0031] S3, dividing the valid answer text into a first valid text and a second valid text;

[0032] S4, judging whether the characters are in the same text area according to the word spacing and line spacing between characters of the second valid text, dividing the text areas into multiple areas according to the judgment result, and setting a second text square area frame for each text area;

[0033] S5, matching the second valid text of each text area to the corresponding preset answer box;

[0034] Step S5 specifically includes:

[0035] S51, identifying the hand-drawn lines in the operation image, and extracting the hand-drawn indicator lines according to the starting position and the end position of the hand-drawn lines;

[0036] S52, matching the hand-drawn indicator line with a corresponding second text square area box and a preset answer box;

[0037] S53, matching the preset answer box and the second text square area box connected by the same hand-drawn indicator line, and matching the second valid text in the second text square area to the corresponding preset answer box.

[0038] Further, step S51 is specifically:

[0039] Extract the two endpoints of the hand-drawn line as the starting point and the end point respectively. If the shortest distance d1 from the starting point to any of the second text square area boxes is less than or equal to the first preset distance threshold D1, and the end point is in any preset answer box or the shortest distance d2 to any preset answer box is less than or equal to the second preset distance threshold D2, then the corresponding hand-drawn line is a hand-drawn indicator line, and the starting point and end point of the hand-drawn indicator line are the starting point and end point of the corresponding hand-drawn line.

[0040] Further, step S52 is specifically:

[0041] S521, obtaining the shortest distance d1 from the starting point of the current hand-drawn indication line to each second text square area frame, and extracting the minimum value d1min, the second text square area frame corresponding to the minimum value d1min is the second text square area frame connected to the current hand-drawn indication line;

[0042] S522. If the end point of the current hand-drawn indicator line is within any preset answer box, the corresponding preset answer box is the preset answer box connected to the current hand-drawn indicator line. If the end point of the current hand-drawn indicator line is not within any preset answer box, the shortest distance d2 from the end point of the current hand-drawn indicator line to each preset answer box is obtained, and the minimum value d2min is extracted. The preset answer box corresponding to the minimum value d2min is the preset answer box connected to the current hand-drawn indicator line.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] The present invention uses a first analysis module to determine whether each character is in the same text area according to the word spacing and line spacing between characters of the second valid text, sets a second text square area frame for each text area, first divides the answer texts at various locations outside the answer box to avoid missing characters or matching redundant characters when matching to the answer box, thereby improving matching accuracy, and then uses a text matching module to identify hand-drawn indicator lines, matches the preset answer box connected by the same hand-drawn indicator line with the second text square area frame, thereby improving the efficiency and accuracy of homework correction;

[0045] The invalid text elimination module is also used to identify and eliminate the scribbled answer text as invalid answer text, and the remaining answer text is the valid answer text, thereby improving the accuracy of homework grading. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0048] Figure 1 It is a structural block diagram of the intelligent correction system for student homework of the present invention;

[0049] Figure 2 It is an example diagram of an invalid answer text of the present invention;

[0050] Figure 3 is an example diagram of the valid text division module of the present invention dividing the first valid text and the second valid text;

[0051] Figure 4 is an example diagram of the first analysis module of the present invention dividing the text area and setting the second text square area frame;

[0052] Figure 5 It is a flow chart of the method for intelligently correcting student homework of the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0055] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0056] See also Figure 1 As shown, the present invention provides a student homework intelligent correction system, comprising:

[0057] An operation image acquisition module, an answer range acquisition module, an effective answer text recognition module, an effective text division module, a first analysis module, a text matching module and a central processing unit; the operation image acquisition module, the answer range acquisition module, the effective answer text recognition module, the effective text division module, the first analysis module and the text matching module are all communicatively connected to the central processing unit.

[0058] The homework image acquisition module is used to acquire students' homework images.

[0059] The operation image acquired by the operation image acquisition module is an operation image that has undergone image preprocessing.

[0060] The image preprocessing includes image binarization, image noise filtering, image rotation transformation, and the like. Image binarization is intended to divide the pixels in the image into two categories: foreground (usually black, representing text or lines) and background (usually white), which can significantly simplify the image content and facilitate text recognition. By eliminating color gradients, the text or graphics are more prominent, the computational complexity is reduced, the OCR recognition speed is accelerated, and the recognition accuracy is improved. Image noise filtering can reduce random noise in the image through mean filtering, median filtering, or Gaussian filtering, making the text and lines clearer and improving the stability of subsequent processing. Image rotation transformation processing: the homework images submitted by students may be tilted due to shooting angle problems, and rotation transformation is required to correct the image. Edge detection (such as Canny edge detection), Hough transformation, or feature-based methods (such as SURF, SIFT) can be used to find straight lines or key points in the image, calculate the tilt angle, and use the image processing library to perform affine transformation according to the detected angle to rotate the image to the horizontal or vertical direction to ensure that the text is neatly arranged, which is convenient for subsequent recognition and comparison work and improves the overall recognition accuracy.

[0061] The answer range acquisition module is used to obtain the preset answer box of each question in the homework image.

[0062] The preset answer box for each question can be obtained through the assignment template created by the teacher or system administrator in the system, which defines the location, answer and preset answer box of each question; it is also possible to divide the answer box for each question in the paper assignment first, and then identify the answer box in the assignment image as the preset answer box for each question.

[0063] The valid answer text recognition module is used to recognize the valid answer text in the homework image.

[0064] The effective answer text recognition module includes: an answer text recognition module and an invalid content elimination module.

[0065] The answer text recognition module is used to recognize the answer text in the homework image, including but not limited to language, numbers, symbol elements in mathematical expressions, etc.

[0066] The invalid text elimination module is used to identify and eliminate invalid answer texts in the answer texts, and the remaining answer texts are valid answer texts.

[0067] The invalid answer text is specifically the answer text that has been painted over. For example, when a student finds that a part of the answer text is wrong, he or she will paint over the part to indicate that it has been deleted. The painting method can be to draw a straight line, a diagonal line, or a color block on the text. Figure 2 As shown in the example.

[0068] The invalid text elimination module can identify and eliminate invalid answer texts by using a binary classification model trained with a data set containing images of normal answer texts and scribbled texts.

[0069] The valid text division module is used to divide the valid answer text into a first valid text and a second valid text, wherein the first valid text is a valid answer text in any preset answer box, and the second valid text is a valid answer text outside all preset answer boxes, referring to Figure 3 As shown in the example.

[0070] A first analysis module is used to determine whether the characters are in the same text area according to the word spacing and line spacing between the characters of the second valid text, divide the text areas into multiple areas according to the determination result, and set a second text square area frame for each text area;

[0071] Specifically:

[0072] In the second valid text, the character spacing z of adjacent characters in the horizontal row and the line spacing h of adjacent characters in the vertical row are obtained. If the character spacing is less than or equal to the preset character spacing threshold Z, the corresponding adjacent characters in the horizontal row are in the same text area. If the line spacing is less than or equal to the preset line spacing threshold H, the corresponding adjacent characters in the vertical row are in the same text area, and a second text square area frame is set for each text area. The second text square area frame just encompasses the second valid text in the corresponding same text area. Figure 4 As shown in the example.

[0073] A text matching module, used to match the second valid text of each text area to the corresponding preset answer box;

[0074] The text matching module includes: an indication line recognition module, a first matching module and a second matching module.

[0075] The indicator line recognition module is used to recognize the hand-drawn lines in the operation image and extract the hand-drawn indicator lines according to the starting position and the end position of the hand-drawn lines, specifically by:

[0076] Extract the two endpoints of the hand-drawn line as the starting point and the end point respectively. If the shortest distance d1 from the starting point to any of the second text square area boxes is less than or equal to the first preset distance threshold D1, and the end point is in any preset answer box or the shortest distance d2 to any preset answer box is less than or equal to the second preset distance threshold D2, then the corresponding hand-drawn line is a hand-drawn indicator line, and the starting point and end point of the hand-drawn indicator line are the starting point and end point of the corresponding hand-drawn line.

[0077] The shortest distance from the starting point to the second text square area box is the minimum value of the distances between the pixel grid position represented by the starting point and the positions of each pixel grid of the second text square area box; similarly, the distance from the end point to the preset answer box is the minimum value of the distances between the pixel grid position represented by the end point and the positions of each pixel grid of the preset answer box.

[0078] The first matching module is used to match the hand-drawn indicator line with the corresponding second text square area box and the preset answer box, specifically by:

[0079] Obtain the shortest distance d1 from the starting point of the current hand-drawn indication line to each second text square area frame, and extract the minimum value d1min. The second text square area frame corresponding to the minimum value d1min is the second text square area frame connected to the current hand-drawn indication line.

[0080] If the end point of the current hand-drawn indication line is within any preset answer box, then the corresponding preset answer box is the preset answer box connected by the current hand-drawn indication line. If the end point of the current hand-drawn indication line is not within any preset answer box, then obtain the shortest distance d2 from the end point of the current hand-drawn indication line to each preset answer box, and extract the minimum value d2min. The preset answer box corresponding to the minimum value d2min is the preset answer box connected by the current hand-drawn indication line.

[0081] The second matching module is used to match the preset answer box and the second text square area box connected by the same hand-drawn indication line, and match the second valid text of the second text square area to the corresponding preset answer box.

[0082] In another embodiment, the text matching module further includes:

[0083] A screening module, a third matching module, a pre-splicing module, and a fourth matching module.

[0084] The screening module, the third matching module, the pre-splicing module, and the fourth matching module are all communicatively connected to the central processing unit.

[0085] The screening module is used to extract the second text square area box and the preset answer box that are not connected by any hand-drawn indication line, and respectively serve as the remaining square box and the remaining answer box.

[0086] The third matching module is used to calculate the shortest distance d3 from the center point position of the remaining square box to each remaining answer box, and extract the minimum value d3min. If there is only one shortest distance d3 that is the minimum value d3min, then match the second valid text in the remaining square box corresponding to the minimum value d3min to the corresponding remaining answer box. If there is more than one shortest distance d3 that is the minimum value d3min, then activate the pre-splicing module, and use the remaining answer box corresponding to the current remaining square box with the shortest distance d3 being the minimum value d3min as the second remaining answer box of the current remaining square box.

[0087] For example, the shortest distances from the remaining square box 1 to the remaining answer box 1, the remaining answer box 2, and the remaining answer box 3 are a, a, and b respectively. If a < b, then use the remaining answer box 1 and the remaining answer box 2 as the second remaining answer boxes of the remaining square box 1.

[0088] The pre-splicing module is used to pre-splice the current remaining square box and the corresponding second remaining answer box one by one to obtain each pre-spliced text.

[0089] The fourth matching module is used to evaluate the matching degree between the pre-joined text and the questions of each corresponding second remaining answer box through the pre-trained BERT model, and match the second remaining answer box corresponding to the maximum matching degree with the second valid text in the current remaining square box.

[0090] See also Figure 5 As shown, the present invention also provides a method for intelligently correcting student homework, which uses the above-mentioned intelligent correction system for student homework and includes the following steps:

[0091] S1, obtaining students' homework images;

[0092] S2, obtaining a preset answer box for each question in the homework image and identifying a valid answer text in the homework image;

[0093] S3, dividing the valid answer text into a first valid text and a second valid text;

[0094] S4, judging whether the characters are in the same text area according to the word spacing and line spacing between characters of the second valid text, dividing the text areas into multiple areas according to the judgment result, and setting a second text square area frame for each text area;

[0095] S5. Match the second valid text in each text area to the corresponding preset answer box.

[0096] Step S5 specifically includes:

[0097] S51, identifying the hand-drawn lines in the operation image, and extracting the hand-drawn indicator lines according to the starting position and the end position of the hand-drawn lines;

[0098] S52, matching the hand-drawn indicator line with a corresponding second text square area box and a preset answer box;

[0099] S53, matching the preset answer box and the second text square area box connected by the same hand-drawn indicator line, and matching the second valid text in the second text square area to the corresponding preset answer box.

[0100] For step S51, specifically:

[0101] Extract the two endpoints of the hand-drawn line as the starting point and the end point respectively. If the shortest distance d1 from the starting point to any of the second text square area boxes is less than or equal to the first preset distance threshold D1, and the end point is in any preset answer box or the shortest distance d2 to any preset answer box is less than or equal to the second preset distance threshold D2, then the corresponding hand-drawn line is a hand-drawn indicator line, and the starting point and end point of the hand-drawn indicator line are the starting point and end point of the corresponding hand-drawn line.

[0102] For step S52, specifically:

[0103] S521, obtaining the shortest distance d1 from the starting point of the current hand-drawn indication line to each second text square area frame, and extracting the minimum value d1min, the second text square area frame corresponding to the minimum value d1min is the second text square area frame connected to the current hand-drawn indication line;

[0104] S522. If the end point of the current hand-drawn indicator line is within any preset answer box, the corresponding preset answer box is the preset answer box connected to the current hand-drawn indicator line. If the end point of the current hand-drawn indicator line is not within any preset answer box, the shortest distance d2 from the end point of the current hand-drawn indicator line to each preset answer box is obtained, and the minimum value d2min is extracted. The preset answer box corresponding to the minimum value d2min is the preset answer box connected to the current hand-drawn indicator line.

[0105] The beneficial effects of the present invention are:

[0106] The first analysis module determines whether each character is in the same text area according to the word spacing and line spacing between characters of the second valid text, sets a second text square area frame for each text area, first divides the answer texts outside the answer box to avoid missing characters or matching redundant characters when matching to the answer box, thereby improving the matching accuracy, and then identifies the hand-drawn indicator line through the text matching module, matches the preset answer box and the second text square area frame connected by the same hand-drawn indicator line, thereby improving the efficiency and accuracy of homework correction;

[0107] Through the invalid text elimination module, the smeared answer text is regarded as invalid answer text, which is identified and eliminated, and the remaining answer text is the valid answer text, which improves the accuracy of homework correction;

[0108] The second text square area box and the preset answer box that are not connected by any hand-drawn indicator line are further matched through the third matching module according to the shortest distance from the center point of the second text square area box to the preset answer box, and the fourth matching module performs a final match based on the evaluated matching degree between the pre-spliced ​​text and the question, thereby avoiding missing the unmatched second text square area box, and further improving the efficiency and accuracy of homework grading.

[0109] In the description of the specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0110] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A student homework intelligent marking system, characterized in that: include: A homework image acquisition module is used to acquire students' homework images; An answer range acquisition module, used to acquire a preset answer box for each question in the homework image; An effective answer text recognition module, used to recognize effective answer text in the homework image; A valid text division module, used for dividing the valid answer text into a first valid text and a second valid text; The first valid text is a valid answer text in any preset answer box, and the second valid text is a valid answer text outside all preset answer boxes; A first analysis module is used to determine whether the characters are in the same text area according to the word spacing and line spacing between the characters of the second valid text, divide the text areas into multiple areas according to the determination result, and set a second text square area frame for each text area; The text matching module specifically includes: an indicator line recognition module, a first matching module and a second matching module; The indicator line recognition module is used to recognize the hand-drawn lines in the operation image and extract the hand-drawn indicator lines according to the starting position and the end position of the hand-drawn lines, specifically: Extract the two endpoints of the hand-drawn line as the starting point and the end point respectively. If the shortest distance d1 from the starting point to any of the second text square area boxes is less than or equal to the first preset distance threshold D1, and the end point is within any preset answer box or the shortest distance d2 from the end point to any preset answer box is less than or equal to the second preset distance threshold D2, then the corresponding hand-drawn line is a hand-drawn indicator line; Obtain the shortest distance d1 from the starting point of the current hand-drawn indication line to each second text square area frame, and extract the minimum value d1min. The second text square area frame corresponding to the minimum value d1min is the second text square area frame connected to the current hand-drawn indication line. If the end point of the current hand-drawn indicator line is within any preset answer box, the corresponding preset answer box is the preset answer box connected to the current hand-drawn indicator line. If the end point of the current hand-drawn indicator line is not within any preset answer box, the shortest distance d2 from the end point of the current hand-drawn indicator line to each preset answer box is obtained, and the minimum value d2min is extracted. The preset answer box corresponding to the minimum value d2min is the preset answer box connected to the current hand-drawn indicator line. The first matching module is used to match the hand-drawn indication line with the corresponding second text square area box and the preset answer box; The second matching module is used to match the preset answer box and the second text square area box connected by the same hand-drawn indicator line, and match the second valid text of the second text square area to the corresponding preset answer box; The text matching module further includes: A screening module, used for extracting the second text square area frame and the preset answer frame that are not connected by any hand-drawn indicator line as the remaining square frame and the remaining answer frame respectively; The third matching module is used to calculate the shortest distance d3 from the center point of the remaining square box to each remaining answer box, and extract the minimum value d3min. If there is only one shortest distance d3 of the minimum value d3min, the second valid text in the remaining square box corresponding to the minimum value d3min is matched to the corresponding remaining answer box. If there are more than one shortest distance d3 of the minimum value d3min, the pre-joining module is started, and the remaining answer box whose shortest distance d3 corresponding to the current remaining square box is the minimum value d3min is used as the second remaining answer box of the current remaining square box; A pre-joining module, used for pre-joining the current remaining square frame and the corresponding second remaining answer frame one by one to obtain each pre-joined text; The fourth matching module is used to evaluate the matching degree between the pre-joined text and the questions of each corresponding second remaining answer box through the pre-trained BERT model, and match the second remaining answer box corresponding to the maximum matching degree with the second valid text in the current remaining square box.

2. The intelligent marking system for student homework according to claim 1 is characterized in that: The operation image acquired by the operation image acquisition module is an operation image that has been subjected to image preprocessing, wherein the image preprocessing includes image binarization, image noise filtering processing, and image rotation transformation processing.

3. The intelligent marking system for student homework according to claim 1, characterized in that: The effective answer text recognition module includes: An answer text recognition module, used to recognize the answer text in the homework image; An invalid text elimination module is used to identify and eliminate invalid answer texts in the answer texts, and the remaining answer texts are valid answer texts; The invalid answer text is specifically the answer text that has been painted over.

4. The intelligent marking system for student homework according to claim 1 is characterized in that: The first analysis module determines whether the characters are in the same text area according to the word spacing and line spacing between characters of the second valid text, divides the text areas into multiple areas according to the determination result, and sets a second text square area frame for each text area, specifically: In the second valid text, obtain the character spacing z of adjacent characters in the horizontal row and the line spacing h of adjacent characters in the vertical row. If the character spacing is less than or equal to the preset character spacing threshold Z, the corresponding adjacent characters in the horizontal row are in the same text area. If the line spacing is less than or equal to the preset line spacing threshold H, the corresponding adjacent characters in the vertical row are in the same text area, and a second text square area box is set for each text area.

5. A method for intelligently correcting student assignments, applied to the intelligently correcting student assignments system according to any one of claims 1 to 4, characterized in that: The following steps are involved: Get images of students' work; Obtaining a preset answer box for each question in the homework image and identifying valid answer text in the homework image; Dividing the valid answer text into a first valid text and a second valid text; According to the word spacing and line spacing between characters of the second valid text, determine whether the characters are in the same text area, divide the text areas into multiple areas according to the determination result, and set a second text square area frame for each text area; Match the second valid text of each text area to the corresponding preset answer box; The step of matching the second valid text of each text area to the corresponding preset answer box specifically includes: Recognize the hand-drawn lines in the operation image, and extract the hand-drawn indicator lines according to the starting position and the end position of the hand-drawn lines; Matching the hand-drawn indicator line with a corresponding second text square area box and a preset answer box; Matching the preset answer box connected by the same hand-drawn indicator line with the second text square area box, and matching the second valid text of the second text square area to the corresponding preset answer box; Extract the second text square area frame and the preset answer frame that are not connected by any hand-drawn indicator line as the remaining square frame and the remaining answer frame respectively; Calculate the shortest distance d3 from the center point of the remaining square box to each remaining answer box, and extract the minimum value d3min. If there is only one shortest distance d3 that is the minimum value d3min, match the second valid text in the remaining square box corresponding to the minimum value d3min to the corresponding remaining answer box. If there are more than one shortest distance d3 that is the minimum value d3min, start the pre-joining module, and use the remaining answer box whose shortest distance d3 corresponding to the current remaining square box is the minimum value d3min as the second remaining answer box of the current remaining square box; Pre-joining the current remaining square frame with the corresponding second remaining answer frame one by one to obtain pre-joined texts; The matching degree between the pre-joined text and the questions of each corresponding second remaining answer box is evaluated by the pre-trained BERT model, and the second remaining answer box corresponding to the maximum matching degree is matched with the second valid text in the current remaining square box; The identifying of the hand-drawn lines in the operation image and extracting the hand-drawn indicator lines according to the starting position and the end position of the hand-drawn lines is specifically as follows: Extract the two endpoints of the hand-drawn line as the starting point and the end point respectively. If the shortest distance d1 from the starting point to any of the second text square area boxes is less than or equal to the first preset distance threshold D1, and the end point is in any of the preset answer boxes or the shortest distance d2 to any of the preset answer boxes is less than or equal to the second preset distance threshold D2, then the corresponding hand-drawn line is a hand-drawn indicator line, and the starting point and the end point of the hand-drawn indicator line are the starting point and the end point of the corresponding hand-drawn line; The hand-drawn indicator line matches the corresponding second text square area box and the preset answer box, specifically: Obtain the shortest distance d1 from the starting point of the current hand-drawn indication line to each second text square area frame, and extract the minimum value d1min. The second text square area frame corresponding to the minimum value d1min is the second text square area frame connected to the current hand-drawn indication line. If the end point of the current hand-drawn indicator line is within any preset answer box, the corresponding preset answer box is the preset answer box connected to the current hand-drawn indicator line. If the end point of the current hand-drawn indicator line is not within any preset answer box, the shortest distance d2 from the end point of the current hand-drawn indicator line to each preset answer box is obtained, and the minimum value d2min is extracted. The preset answer box corresponding to the minimum value d2min is the preset answer box connected to the current hand-drawn indicator line.

Citation Information

Patent Citations

  • Method and device for deleting text by hand drawing,

    CN112527183A

  • Text image region detection method, related equipment and readable storage medium

    CN114283419A

Cited By

  • Intelligent student homework correcting system based on handwriting track analysis and knowledge tracking

    CN122333090A