Teaching and assisting homework correcting method and system based on machine vision
Machine vision technology is used to perform image alignment and feature extraction on teaching aid homework images to determine the type and area bounding box of the content to be corrected, achieving efficient single-question and full-page correction, solving the problem of low efficiency of traditional manual correction, and improving the efficiency of traditional manual correction. Correction accuracy and efficiency.
Patent Information
- Application Number
- CN202410760411.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-27
AI Technical Summary
Traditional teaching-assisted homework correction relies on manual labor, which is inefficient and error-prone. Existing methods based on machine vision are difficult to handle complex images and multi-question correction, affecting accuracy and efficiency.
Using a method based on machine vision, by obtaining the image to be corrected and correction instructions, image alignment and feature extraction are performed, the type and area bounding box of the content to be corrected are determined, and the corresponding correction logic is called for correction, and single question and full page correction are supported.
It improves the accuracy and efficiency of teaching-assisted homework marking, and provides a new automated marking solution that can handle complex images and multi-question marking, and reduce manual errors.
Smart Images

Figure CN118552972A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to a method and system for correcting teaching-aid homework based on machine vision. Background Art
[0002] In the traditional process of grading homework, it mainly relies on manual grading of each question, which is inefficient and prone to errors. In recent years, although some homework grading methods based on machine vision have been proposed, they can usually only handle a single grading mode, and there are certain limitations in image preprocessing and content recognition, which affects the accuracy and efficiency of grading. Summary of the invention
[0003] The purpose of the present invention is to provide a method and system for correcting teaching-aided homework based on machine vision.
[0004] In a first aspect, an embodiment of the present invention provides a method for correcting supplementary teaching assignments based on machine vision, comprising: Acquire a teaching aid image to be corrected and a correction instruction for the teaching aid image to be corrected, wherein the teaching aid image to be corrected includes at least one teaching aid content to be corrected; When the correction instruction is characterized as a single-question correction instruction, determining the question type of the single teaching aid content to be corrected included in the teaching aid image to be corrected, and calling the correction logic corresponding to the question type to perform correction, so as to obtain a single-question correction result; When the correction instruction is a full-page correction instruction, performing image alignment on the teaching aid image to be corrected to obtain an image alignment result; According to the image alignment result, a plurality of supplementary teaching contents to be corrected included in the supplementary teaching image to be corrected are determined, and the correction logic corresponding to each supplementary teaching content to be corrected is called to perform correction, so as to obtain a full-page correction result.
[0005] In a possible implementation manner, performing image alignment on the teaching aid images to be corrected to obtain an image alignment result includes: Using the OCR service to obtain the full-text feature string of the teaching aid image to be corrected; Extracting features from the teaching aid image to be corrected and the full-text feature character string to obtain a current image-text semantic vector; Determine a target question bank image corresponding to the teaching aid image to be corrected from a preset question bank according to the current image-text semantic vector; The regional boundary boxes corresponding to the plurality of teaching aid contents to be corrected are determined according to the target question bank image to obtain the image alignment result.
[0006] In a possible implementation, extracting features from the teaching aid image to be corrected and the full-text feature character string to obtain the current image-text semantic vector includes: Using an image encoding unit constructed based on Transformer to extract features of the teaching aid image to be corrected, to obtain an image encoding vector; Using an image encoding unit constructed based on Transformer to extract features from the full-text feature string to obtain a text encoding vector, wherein the image encoding vector and the text encoding vector have the same vector length; The image encoding vector and the text encoding vector are concatenated to obtain the current image-text semantic vector.
[0007] In a possible implementation manner, determining a target question bank image corresponding to the teaching aid image to be corrected from a preset question bank according to the current image-text semantic vector includes: Searching in a preset feature vector library according to the current image-text semantic vector, the preset feature vector library includes a plurality of comparison vectors, each of the comparison vectors corresponds one-to-one to a plurality of pre-stored auxiliary teaching basic information included in the preset question library; Extracting a target comparison vector having the greatest vector similarity with the current image-text semantic vector from the preset feature vector library, and determining target pre-stored teaching aid basic information corresponding to the target comparison vector; According to the target pre-stored teaching aid basic information, a target question bank image corresponding to the target pre-stored teaching aid basic information is determined from the preset question bank.
[0008] In a possible implementation manner, determining the regional boundary boxes corresponding to the plurality of supplementary teaching contents to be corrected according to the target question bank image includes: Obtaining a preset area boundary box pre-annotated for a plurality of preset teaching supplementary contents to be corrected included in the target question bank image; The preset region boundary frame is corrected to the teaching aid image to be corrected, so as to obtain region boundary frames corresponding to the plurality of teaching aid contents to be corrected.
[0009] In a possible implementation, the step of determining a plurality of supplementary teaching contents to be corrected included in the supplementary teaching image to be corrected according to the image alignment result, and calling the correction logic corresponding to each supplementary teaching content to be corrected to perform correction, and obtaining a full-page correction result includes: Determining the plurality of supplementary teaching contents to be corrected according to the region boundary boxes of the plurality of supplementary teaching contents to be corrected; The correction logic corresponding to each of the supplementary teaching contents to be corrected is called to perform correction in each of the regional boundary boxes to obtain the correction result of the entire page.
[0010] In a possible implementation, the method further includes: Acquire a teaching aid image to be stored, wherein the teaching aid image to be stored includes a plurality of preset teaching aid contents to be corrected, and each of the preset teaching aid contents to be corrected is pre-marked with a corresponding preset area boundary box; Calling the OCR service to obtain the full-text feature string of the teaching aid image to be stored; Extracting features from the auxiliary teaching images to be stored and the feature character strings of the full text to be stored, and obtaining semantic vectors of the images and texts to be stored; Associating the image-text semantic vector to be stored with the basic teaching aid information of the teaching aid image to be stored; The associated teaching aid images to be stored in the preset question bank are stored, and the semantic vectors of the images and texts to be stored in the preset feature vector bank are stored.
[0011] In a possible implementation, the method further includes: Receiving a learning situation analysis request, and obtaining the single-question correction result or the whole-page correction result; Obtaining the student information corresponding to the teaching aid image to be corrected, and obtaining the historical correction results corresponding to the student information; According to the single question correction result or the whole page correction result, combined with the historical correction results, a learning situation analysis is performed to obtain a learning status evaluation result corresponding to the student information.
[0012] In a possible implementation, the method further includes: A request for visualization of the correction result is received, the single-question correction result or the whole-page correction result is added to a corresponding position of the auxiliary teaching material image to be corrected, and a visualization display is performed.
[0013] In a second aspect, an embodiment of the present invention provides a teaching-assistant homework grading system based on machine vision, comprising: An acquisition module, used for acquiring a teaching aid image to be corrected and a correction instruction for the teaching aid image to be corrected, wherein the teaching aid image to be corrected includes at least one teaching aid content to be corrected; The correction module is used to determine the question type of a single teaching aid content to be corrected included in the teaching aid image to be corrected, and call the correction logic corresponding to the question type to perform correction to obtain a single question correction result when the correction instruction is represented by a single-question correction instruction; when the correction instruction is represented by a full-page correction instruction, perform image alignment on the teaching aid image to be corrected to obtain an image alignment result; based on the image alignment result, determine multiple teaching aid contents to be corrected included in the teaching aid image to be corrected, and call the correction logic corresponding to each teaching aid content to be corrected to perform correction to obtain a full-page correction result.
[0014] Compared with the prior art, the beneficial effects provided by the present invention include: using a method and system for correcting supplementary teaching assignments based on machine vision disclosed by the present invention, including: first, when receiving a correction instruction, the system first obtains its type. If it is a single-question correction, the question type of the content to be corrected is determined and the corresponding correction logic is called for correction; if it is a full-page correction, image alignment is first performed to accurately locate the content to be corrected, and then the correction logic corresponding to each content is called for correction. With such a design, the accuracy and efficiency of correction are improved through the combination of image alignment and classification correction logic, providing a new solution for correcting supplementary teaching assignments. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative work.
[0016] Figure 1 A schematic diagram of the steps of a method for correcting supplementary teaching assignments based on machine vision provided by an embodiment of the present invention; Figure 2 A schematic diagram of the overall process framework of homework correction provided by an embodiment of the present invention; Figure 3 A schematic block diagram of the structure of a teaching-assistant homework grading system based on machine vision provided by an embodiment of the present invention; Figure 4 A schematic block diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0018] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings.
[0019] In order to solve the technical problems in the aforementioned background technology, Figure 1 A flow chart of a method for correcting supplementary teaching assignments based on machine vision provided in an embodiment of the present disclosure is provided below, and the method for correcting supplementary teaching assignments based on machine vision is introduced in detail.
[0020] Step S201, obtaining a teaching aid image to be corrected and a correction instruction for the teaching aid image to be corrected, wherein the teaching aid image to be corrected includes at least one teaching aid content to be corrected; Step S202, when the correction instruction is characterized as a single question correction instruction, determining the question type of the single supplementary teaching content to be corrected included in the supplementary teaching image to be corrected, and calling the correction logic corresponding to the question type to perform correction, and obtaining a single question correction result; Step S203, when the correction instruction is a full-page correction instruction, image alignment is performed on the teaching aid image to be corrected to obtain an image alignment result; Step S204, determining a plurality of supplementary teaching contents to be corrected included in the supplementary teaching image to be corrected according to the image alignment result, and calling the correction logic corresponding to each supplementary teaching content to be corrected to perform correction, and obtaining a full-page correction result.
[0021] In an embodiment of the present invention, exemplarily, the server receives the supplementary teaching homework image submitted by the student through a scanner or a high-speed scanner connected thereto. For example, the student submitted a homework picture containing five math problems. At the same time, the server also receives the correction instructions entered by the user (such as a teacher or a student) through the correction interface, which can be a correction for the entire page of homework or a correction for a specific question therein. If the user selects single-question correction and specifies the third question as the content to be corrected, the server will identify the position of the question in the math homework picture. Then, the server will analyze the type of the question, for example, determine whether it is a multiple-choice question, a fill-in-the-blank question, or a calculation question. According to the type of question, the server calls the corresponding correction logic for correction. For example, for multiple-choice questions, the server will compare whether the student's answer is consistent with the standard answer; for calculation questions, the server can perform step analysis and determine the correctness of the final answer. After the correction is completed, the server generates a single-question correction result, including score, correction details, and error analysis. If the user selects full-page correction, the server will first perform image alignment processing on the received homework image. Preprocessing can be performed first. During the actual shooting process, the homework paper may be tilted, twisted, or have uneven light. The purpose of preprocessing is to correct these distortions so that each question in the homework image can be accurately identified and located. After the preprocessing is completed, the server will identify all the questions to be corrected contained in the homework image based on image alignment and correct them one by one. For each question, the server will call the corresponding correction logic for correction, which may vary depending on the question type, difficulty, and scoring criteria. After the correction is completed, the server will generate a full page of correction results, including the score of each question, correction details, error analysis, and the total score and correction summary of the entire page of homework. Finally, the server will display the correction results to the user through the correction interface. Users can understand the student's performance on each question and the areas that need improvement based on the correction results. At the same time, the server can also store the correction results in the database for subsequent analysis and query.
[0022] In a possible implementation, the aforementioned step S203 may be implemented through the following example execution.
[0023] Using the OCR service to obtain the full-text feature string of the teaching aid image to be corrected; Extracting features from the teaching aid image to be corrected and the full-text feature character string to obtain a current image-text semantic vector; Determine a target question bank image corresponding to the teaching aid image to be corrected from a preset question bank according to the current image-text semantic vector; The regional boundary boxes corresponding to the plurality of teaching aid contents to be corrected are determined according to the target question bank image to obtain the image alignment result.
[0024] In an embodiment of the present invention, illustratively, the server first sends the image of the supplementary teaching homework to be corrected to the OCR (optical character recognition) service. The OCR service scans the image, identifies all the text in the image, and converts the text into a full-text feature string. For example, if the homework image is a test paper containing math questions, the OCR service will identify all the question texts, options and answers filled in by students on the test paper, and return these contents to the server in the form of a string. After the server receives the full-text feature string returned by the OCR, it will extract features in combination with the original supplementary teaching image to be corrected. In this process, the server can use deep learning models, such as convolutional neural networks (CNN) and recurrent neural networks (RNN), to extract high-level features in images and texts. These features are fused into a current image-text semantic vector, which can comprehensively represent the visual information and text information in the homework image. The server maintains a huge preset question bank, which contains a large number of images and text information of known questions. When the server obtains the current image-text semantic vector, it searches the question bank for the question image that is most similar to this vector. This process is usually achieved by calculating the similarity between vectors (such as cosine similarity). Eventually, the server will determine the target question bank image corresponding to the teaching aid image to be corrected from the question bank. Once the target question bank image is determined, the server can use the layout information of this image to align the teaching aid image to be corrected. Specifically, the server will identify the regional bounding boxes of each question content in the target question bank image (that is, the specific position of the question in the image), and map these bounding boxes to the teaching aid image to be corrected. In this way, even if the teaching aid image to be corrected has problems such as tilt, distortion or size change during shooting, the server can accurately locate the position of each question, thereby achieving image alignment. The aligned image will be used as input for subsequent correction steps to ensure the accuracy and efficiency of correction.
[0025] In a possible implementation, the aforementioned step of extracting features from the teaching aid image to be corrected and the full-text feature character string to obtain the current image-text semantic vector can be implemented through the following example.
[0026] Using an image encoding unit constructed based on Transformer to extract features of the teaching aid image to be corrected, to obtain an image encoding vector; Using an image encoding unit constructed based on Transformer to extract features from the full-text feature string to obtain a text encoding vector, wherein the image encoding vector and the text encoding vector have the same vector length; The image encoding vector and the text encoding vector are concatenated to obtain the current image-text semantic vector.
[0027] In an embodiment of the present invention, exemplarily, the server first uses a Transformer-based image encoding unit (such as a ViT model) to process the image of the supplementary homework to be corrected. This model divides the image into a series of small blocks and converts each small block into a vector representation. Through the self-attention mechanism of the Transformer, the model can capture the relationship between different areas in the image, thereby generating a global image encoding vector. This vector captures the key visual features of the image and provides a basis for subsequent image-text alignment and correction. For example, for an image of a math problem containing geometric figures, the image encoding unit can extract visual information such as the shape, size, and position of the figure, and encode this information into the image encoding vector. At the same time, the server also uses a Transformer-based text encoding unit (such as a BERT model) to process the full-text feature string extracted by the OCR service. This model converts each word in the string into a word vector, and captures the dependency between words through the self-attention mechanism of the Transformer, thereby generating a global text encoding vector. This vector captures the semantic information of the string and provides text-level support for subsequent image-text matching and correction. Taking the process of solving a math problem as an example, the text encoding unit can extract text information such as the student's problem-solving steps, the formula used, the result of the calculation, etc., and encode this information into the text encoding vector. After ensuring that the vector lengths of the image encoding vector and the text encoding vector are consistent (if necessary, they can be adjusted by linear transformation or filling), the server splices the two vectors. The spliced vector combines the visual information of the image and the semantic information of the text to form a richer and more comprehensive current image-text semantic vector. For example, when correcting a math problem involving a combination of graphics and text descriptions, the server can consider the graphic information in the problem and the student's text answer at the same time by splicing the image encoding vector and the text encoding vector, so as to more accurately evaluate the student's answer. In summary, through the feature extraction and splicing operations of the Transformer-based image encoding unit and the text encoding unit, the server can generate a current image-text semantic vector that combines visual and semantic information, providing strong support for subsequent homework correction.
[0028] In a possible implementation, the aforementioned step of determining the target question bank image corresponding to the teaching aid image to be corrected from a preset question bank according to the current image-text semantic vector can be implemented through the following example.
[0029] Searching in a preset feature vector library according to the current image-text semantic vector, the preset feature vector library includes a plurality of comparison vectors, each of the comparison vectors corresponds one-to-one to a plurality of pre-stored auxiliary teaching basic information included in the preset question library; Extracting a target comparison vector having the greatest vector similarity with the current image-text semantic vector from the preset feature vector library, and determining target pre-stored teaching aid basic information corresponding to the target comparison vector; According to the target pre-stored teaching aid basic information, a target question bank image corresponding to the target pre-stored teaching aid basic information is determined from the preset question bank.
[0030] In an embodiment of the present invention, exemplarily, the server first holds a preset feature vector library, in which multiple comparison vectors are stored. Each comparison vector is a feature vector extracted in advance from each pre-stored teaching aid basic information (such as questions, analysis, etc.) in the preset question library. When the server obtains the current image-text semantic vector, it will search in the preset feature vector library and compare the current image-text semantic vector with each comparison vector in the library. For example, assuming that the current image-text semantic vector is extracted from an image of a teaching aid homework containing math multiple-choice questions, the server will search for the feature vector of the math multiple-choice question that is most similar to this image in this feature vector library. During the search process, the server will calculate the similarity (such as cosine similarity) between the current image-text semantic vector and each comparison vector. After completing the search, the server will extract the comparison vector with the greatest vector similarity to the current image-text semantic vector, which is called the target comparison vector. This target comparison vector represents the characteristics of the pre-stored teaching aid basic information that is most similar to the teaching aid image to be corrected. Continuing with the above example, after searching the feature vector library, the server finds a feature vector that is most similar to the current math multiple-choice question image. This feature vector corresponds to a pre-stored math multiple-choice question and its related information. Once the target comparison vector is determined, the server can find the corresponding pre-stored teaching aid basic information in the preset question library based on this vector. This information can include the complete text of the question, standard answers, problem-solving steps, difficulty level, etc. This information is crucial for subsequent correction operations because they provide standards and basis for correction. In the above example, the server locates all relevant information of the corresponding math multiple-choice question in the preset question library based on the target comparison vector found. Finally, the server determines the corresponding target question library image from the preset question library based on the target pre-stored teaching aid basic information. This target question library image is the pre-stored image that is most similar to the teaching aid image to be corrected. It usually contains complete question content and layout information, and can be used for subsequent image alignment and correction operations. In the example, the server finally determines a pre-stored question library image that is highly similar to the math multiple-choice question image to be corrected, and this image will be used as a reference standard for subsequent correction operations.
[0031] In a possible implementation, the aforementioned step of determining the regional boundary boxes corresponding to the plurality of teaching supplementary contents to be corrected according to the target question bank image may be implemented through the following example.
[0032] Obtaining a preset area boundary box pre-annotated for a plurality of preset teaching supplementary contents to be corrected included in the target question bank image; The preset region boundary frame is corrected to the teaching aid image to be corrected, so as to obtain region boundary frames corresponding to the plurality of teaching aid contents to be corrected.
[0033] In an embodiment of the present invention, exemplarily, the server first accesses the target question bank image and obtains the regional bounding box information of the preset supplementary teaching content to be corrected associated with the image. This information has been pre-marked during the question bank construction stage, and usually includes the specific location of key content such as questions, answers, and problem-solving steps in the image (i.e., the coordinates of the bounding box). These preset regional bounding boxes provide the server with the precise location information required for correction. For example, for a question bank image containing multiple multiple-choice questions, each multiple-choice question and its options will be pre-marked with a regional bounding box so that they can be accurately located in the subsequent correction process. Since the supplementary teaching image to be corrected may differ from the image in the question bank in terms of size, angle, or lighting, the server needs to correct the preset regional bounding box to adapt to the actual situation of the supplementary teaching image to be corrected. This correction process may involve transformation operations such as scaling, rotation, and translation of the image to ensure that the bounding box can accurately cover the content to be corrected. Continuing with the above example, the server will transform and adjust the preset regional bounding boxes obtained from the question bank according to the actual size and angle of the multiple-choice question image to be corrected, to ensure that each bounding box can accurately frame the multiple-choice questions and their options in the image. After correction, the server obtains multiple regional bounding boxes that match the teaching aid image to be corrected. These bounding boxes accurately locate the position of each teaching aid content to be corrected in the image, providing accurate positioning information for subsequent correction operations. In the example, the server finally obtains a set of corrected regional bounding boxes, each of which accurately corresponds to the position of a multiple-choice question and its options in the multiple-choice question image to be corrected. In this way, in the subsequent correction process, the server can accurately identify and evaluate the students' answers based on these bounding boxes.
[0034] In a possible implementation, the aforementioned step S204 may be implemented through the following example execution.
[0035] Determining the plurality of supplementary teaching contents to be corrected according to the region boundary boxes of the plurality of supplementary teaching contents to be corrected; The correction logic corresponding to each of the supplementary teaching contents to be corrected is called to perform correction in each of the regional boundary boxes to obtain the correction result of the entire page.
[0036] In an embodiment of the present invention, illustratively, after completing the image alignment operation, the server has obtained the regional bounding boxes of multiple contents to be corrected in the supplementary teaching image to be corrected. These bounding boxes clarify the specific location of each supplementary teaching content to be corrected (such as questions, answer areas, etc.) in the image. The server will identify and extract each content to be corrected based on these bounding boxes. For example, if the supplementary teaching image to be corrected is a math test paper, the server will determine the various math questions in the test paper and their corresponding answer areas based on the regional bounding boxes. Once the content to be corrected is determined, the server will call the corresponding correction logic for each content. These correction logics are pre-defined according to the type and characteristics of the supplementary teaching content, such as multiple-choice question correction logic, fill-in-the-blank question correction logic, calculation question correction logic, etc. The server will select the appropriate correction logic for correction according to the type of content to be corrected. In the above-mentioned math test example, for the multiple-choice question part, the server will call the multiple-choice question correction logic to determine whether the answer selected by the student is correct; for the calculation question part, the server will call the calculation question correction logic to check whether the student's calculation process and results are accurate. The server will execute the corresponding grading logic within the regional bounding box of each content to be graded, and evaluate the student's answers item by item. During the grading process, the server will refer to the standard answers and scoring rules, compare and score the student's answers, and generate grading comments or suggestions. Continuing with the example of the math test paper, the server will grade the student's answers within the regional bounding box of each question, mark the correct answer, wrong answer, and deduction, and give corresponding grading feedback. When all the content to be graded has been graded, the server will integrate the grading results of each part and generate a complete full-page grading report. This report will list in detail the student's score, error analysis, and improvement suggestions for each question, providing teachers with comprehensive feedback on the grading of student homework. In summary, the server determines the regional bounding box of the supplementary teaching content to be graded, and calls the corresponding grading logic for grading, and finally obtains a full-page grading result containing detailed grading information and feedback.
[0037] In the embodiments of the present invention, the following implementation modes are also provided.
[0038] Acquire a teaching aid image to be stored, wherein the teaching aid image to be stored includes a plurality of preset teaching aid contents to be corrected, and each of the preset teaching aid contents to be corrected is pre-marked with a corresponding preset area boundary box; Calling the OCR service to obtain the full-text feature string of the teaching aid image to be stored; Extracting features from the auxiliary teaching images to be stored and the feature character strings of the full text to be stored, and obtaining semantic vectors of the images and texts to be stored; Associating the image-text semantic vector to be stored with the basic teaching aid information of the teaching aid image to be stored; The associated teaching aid images to be stored in the preset question bank are stored, and the semantic vectors of the images and texts to be stored in the preset feature vector bank are stored.
[0039] In an embodiment of the present invention, illustratively, the server first receives one or more supplementary teaching images to be stored. These images are usually uploaded by educational content providers for subsequent student homework correction. Each supplementary teaching image to be stored contains multiple preset supplementary teaching contents to be corrected, such as questions, answer areas, etc. For example, a math test paper image to be stored contains multiple math questions and their corresponding answer areas. Before or during the upload of the supplementary teaching image to be stored, the educational content provider will pre-annotate each preset supplementary teaching content to be corrected and generate a corresponding preset area bounding box. These bounding boxes clarify the specific location of each content to be corrected in the image. Continuing with the example of the math test paper, each math question and its answer area will be pre-annotated with a bounding box so that the server can accurately identify and locate it. The server will then call the OCR (optical character recognition) service to perform text recognition on the supplementary teaching image to be stored, thereby obtaining the full-text feature string in the image. This full-text feature string contains all the text information in the image and is the basis for subsequent feature extraction and image-text matching. In the example of a math test paper, the OCR service will recognize all the text on the test paper, including the question description, options, student answers, etc., and generate a full-text feature string. The server then uses the Transformer-based image encoding unit and text encoding unit to extract features from the teaching aid image to be stored and the full-text feature string to be stored. After the extracted image encoding vector and text encoding vector are spliced, a semantic vector of the image and text to be stored that combines visual and semantic information is formed. In the example of a math test paper, the server will extract the semantic vectors of the visual features of the test paper image and the text features, and splice them into a semantic vector of the image and text to be stored. The server will associate the generated semantic vector of the image and text to be stored with the basic information of the teaching aid image to be stored. This basic information can include labels such as the type of question, difficulty, knowledge points, as well as standard answers and scoring rules. This association ensures that relevant information can be retrieved quickly and accurately during the subsequent correction process. In the example of a math test paper, the semantic vector of the image and text of each question will be associated with the type of question (such as multiple-choice questions, calculation questions), difficulty level and standard answer. Finally, the server adds the associated teaching aid images to the preset question bank so that they can be retrieved and used as needed. At the same time, the server also adds the semantic vectors of the images and texts to the preset feature vector library for subsequent image-text matching and similarity calculation. In summary, through this series of steps, the server can successfully add new teaching aid images and their related information to the preset question bank and feature vector library, thereby enriching and expanding the system's correction capabilities.
[0040] In the embodiments of the present invention, the following implementation modes are also provided.
[0041] Receiving a learning situation analysis request, and obtaining the single-question correction result or the whole-page correction result; Obtaining the student information corresponding to the teaching aid image to be corrected, and obtaining the historical correction results corresponding to the student information; According to the single question correction result or the whole page correction result, combined with the historical correction results, a learning situation analysis is performed to obtain a learning status evaluation result corresponding to the student information.
[0042] In an embodiment of the present invention, illustratively, the server first receives a learning situation analysis request, which is usually initiated by a teacher or a student's parent to understand the student's learning situation. The request contains specific student information and a reference to the corresponding single question correction result or the whole page correction result. For example, a mathematics teacher wants to analyze the performance of student Xiao Ming in the most recent mathematics test, so he initiates a learning situation analysis request and attaches the whole page correction result of Xiao Ming's test paper. The server retrieves the student's historical correction results from the database based on the student information in the received request. These historical correction results include the student's homework and test scores in the past period of time, which is an important basis for analyzing the student's learning situation. Continuing with Xiao Ming's example, the server retrieves the historical correction results of his past mathematics homework and tests based on Xiao Ming's information. The server compares and analyzes the current single question correction result or the whole page correction result with the retrieved historical correction result. In this process, the server will pay attention to the changes in the student's answer accuracy, error type, knowledge point mastery, etc. at different time points. In Xiao Ming's case, the server compared the full page of grading results of his most recent math test with the previous historical grading results, and found that Xiao Ming's accuracy in answering geometry questions has improved, but he still has difficulties in answering algebra questions. Based on the above analysis, the server generates a learning status assessment result, which describes in detail the student's strengths, weaknesses, and areas for improvement at the current stage of learning. This assessment result is very valuable for teachers and students' parents, as it can help them better understand the student's learning status and develop targeted learning plans. In Xiao Ming's case, the learning status assessment result generated by the server shows that Xiao Ming has made progress in geometry, but still needs to strengthen practice and consolidation in algebra. Based on this assessment result, the mathematics teacher can develop a more personalized tutoring plan for Xiao Ming to help him improve his math grades.
[0043] In the embodiments of the present invention, the following implementation modes are also provided.
[0044] A request for visualization of the correction result is received, the single-question correction result or the whole-page correction result is added to a corresponding position of the auxiliary teaching material image to be corrected, and a visualization display is performed.
[0045] In an embodiment of the present invention, illustratively, the server receives a request for visualization of correction results. This request is usually initiated by a teacher, student or parent through the user interface of the system, in order to view and understand the correction results more intuitively. For example, an English teacher wants to view the correction of the English composition of the student Xiaohong, so he sends a request for visualization of the correction results through the teacher-side interface of the system. The server retrieves the corresponding single-question correction results or the whole page correction results from the storage system according to the received request. These correction results contain detailed correction information of the student's homework, such as correctness, score, correction comments, etc. In the example of Xiaohong's English composition, the server retrieves the whole page correction results of Xiaohong's composition, including the correction of grammatical errors in each sentence, vocabulary usage suggestions, and overall score information. The server uses image processing technology to add the retrieved correction result information to the corresponding position of the original auxiliary teaching image to be corrected. This process needs to ensure that the correction information matches the original image content accurately in position and size. For Xiaohong's English composition, the server superimposes the grammatical error corrections and vocabulary usage suggestions in the correction results on the corresponding positions of the original composition in the form of annotations, and also displays the overall score on the side. Finally, the server sends the teaching aid image with the correction results added back to the user interface of the requester for visual display. In this way, teachers, students or parents can intuitively see the situation of the corrected homework, including the location and type of errors and suggestions for improvement. In Xiaohong's example, the English teacher saw the visual display of the correction of Xiaohong's English composition through the teacher-side interface, including detailed correction information and overall score for each sentence. This enables teachers to quickly understand Xiaohong's composition level and provide timely guidance and help for existing problems. At the same time, Xiaohong can also view the correction of her own composition through the student-side interface and make targeted improvements based on the correction suggestions.
[0046] In order to more clearly describe the solution provided by the embodiments of the present application, a more complete implementation method is provided below.
[0047] In the embodiment of the invention, the input is the teaching aid picture that needs to be corrected, and the output is the correction result.
[0048] Function support description: The architecture design supports a pluggable approach to adding and deleting subject question types. Users can add required subject question types or reduce existing subject question types to reduce the system burden according to their needs.
[0049] It supports the storage of test papers and homework text pages, and users can store pre-marked teaching materials in the database.
[0050] It supports image and text semantic vector retrieval of test papers and homework text pages. Users can search for pre-labeled teaching aid pages in the question bank by inputting pictures. Image and text semantic vector search involves two modalities, image and text, and is associated in deep dimensions, and the output feature length is consistent. It can solve the problems of unstable and slow search speed caused by low accuracy of shallow single-modal search and high complexity of string matching search.
[0051] It provides grading support for multiple subjects and multiple question types. New subject question types can be connected to the grading engine process after the service development is completed.
[0052] It supports single question grading and whole page grading, and supports free grading of single questions such as free-form questions, vertical questions, expression questions, and equation solving questions, as well as whole page grading of teaching aid pages.
[0053] Supports visualization of grading results, which can display the grading results more intuitively.
[0054] It supports archiving user feedback, and can perform system tuning based on the feedback results to continuously optimize the grading engine.
[0055] It supports user data management and analysis, and users can focus on the subject questions that need attention based on previous grading results.
[0056] System architecture description: To support the functional description, please refer to Figure 2 , Figure 2 A schematic diagram of the overall process framework of homework grading in an embodiment of the present invention is provided. The homework grading system can be mainly composed of a question grading process, an image alignment process, a picture-text semantic embedding process, a question bank storage process, a question search process, a grading engine process, an algorithm service process, a data reflux process, a question feedback process, a grading result analysis process, and a grading result visualization process. The descriptions of each process are as follows: (1) Question correction process: The question correction process is mainly responsible for the access of external requests and the scheduling of internal system processes: 1. Single question correction: When the grading request received is for a single question, such as logical reasoning questions such as unstructured questions, vertical questions, expression questions, equation solving questions, etc., the question grading process calls the grading engine process to perform grading of the corresponding question type. The grading completion result is returned to the question grading process, the grading result is stored in the database, and the result is returned to the requester.
[0057] 2. Full page correction: When the correction request received is for full-page correction, the question correction process will first call the image alignment process. The image alignment process returns the corrected image annotation box and the question type content of the corresponding annotation box. The question correction process will distribute the results returned by the image alignment process to the correction engine process according to the question type. After the correction is completed, the correction engine will return the correction result to the question correction process, the correction result will be stored in the database, and the result will be returned to the requester.
[0058] (2) Image alignment process The image alignment process is responsible for registering the input image and calibrating the frame of the annotation data to the photographed image. The execution method is: First, receive the teaching aid diagram requested for correction from the question correction process; Call the printed text OCR service in the algorithm service process to obtain the full-text feature string of the image; Use the teaching supplementary images and full-text feature strings as inputs to the image-text semantic embedding process to obtain the image-text semantic vector; Call the topic search process to use the image and text semantic vector search and return the annotation results; The teaching aid picture requested for correction is matched with the picture in the question bank, and the frame of the annotated data is corrected to the teaching aid picture requested for correction based on the matching result.
[0059] (3) Image and text semantic embedding process The input of the image-text semantic embedding process is the full-text feature string of the teaching auxiliary picture and the teaching auxiliary picture, and the output is the image-text semantic vector. For example, the length of the image-encoded vector is 256, and the vector type is float. The length of the text-encoded vector is 256, and the vector type is float. The image-text semantic vector is the concatenation of the image-encoded vector and the text-encoded vector, with a length of 512 and a vector type of float. The image encoding and text encoding use the Transformer structure model.
[0060] (4) Question bank storage process The question bank storage process is responsible for two tasks in the system. The first is to store the annotated teaching aid data into the database, and the second is to return the annotated data to the image correction module as the downstream of the image alignment process and the upstream of the question search.
[0061] The method for storing the marked supplementary teaching data is as follows: Receive a request for labeling data to be stored in the database; Request the printed text OCR service in the algorithm service process to obtain the full-text feature string of the image; Use the teaching supplementary images and full-text feature strings as inputs to the image-text semantic embedding process to obtain the image-text semantic vector; The annotated data and the image-text semantic vector are associated with the teaching supplementary information, such as subject, grade, book, page number and other information, and the annotated data and the image-text semantic vector are stored in the question bank and the feature vector search bank respectively; The following is the connection between the image alignment process and the title search in the system: Receive the question bank data request from the image alignment process; Use the image-text semantic vector provided by the image alignment process to request the topic search process, which returns basic information about the supplementary material, such as subject, grade, book, page number, etc. Search the database according to the basic information of the teaching aids to obtain the annotation results; Return the labeled question bank data to the image alignment process.
[0062] (5) Question search process The question search process is responsible for returning the basic information of the annotated teaching aid data, such as subject, grade, book, page number, etc. The input is a graphic semantic vector. The underlying database involves two parts, one is a vector search engine, the vector type is float, the output is the searched matched vector id and vector result, and the top_k search results can be returned, with k being a maximum of 100. The similarity measurement methods supported include Euclidean distance (L2), inner product, Hamming distance, Jaccard distance, Tanimoto distance, superstructure distance, and substructure distance. The system achieves high-speed search by establishing indexes. The index types include FLAT, IVF_FLAT, IVF_SQ8, IVF_SQ8H, etc. The IVF_FLAT type index is commonly used to meet the needs of most scenarios. The other is a basic information repository for teaching aids, which stores information such as vector ids associated with the vector search engine and basic information of teaching aids such as subject, grade, book, page number, etc. Execution method: Receiving a picture-text semantic vector search request from a topic storage module; Pass the image and text semantic vector to the vector search engine to obtain the feature vector id; According to the feature vector ID, the basic information repository of teaching aids is searched to obtain the basic information of the teaching aids such as subject, grade, book, page number, etc.; Return the basic information of teaching aids to the question bank storage process.
[0063] (6) Review engine process The upstream of the grading engine process is the question grading process, which only focuses on the question types supported by the grading engine. The decoupled design for each question type can be independently developed and connected for continuous updating. The natively supported grading question types are fill-in-the-blank questions, expression questions, off-test questions, equation solving questions, vertical questions, application questions, and circle questions. The distributed design can be deployed on different nodes in a dispersed manner. The execution method is: Receive a grading request from the question grading process; Select the corresponding sub-grading module according to the question type, such as fill-in-the-blank questions, expression questions, off-the-cuff questions, equation-solving questions, vertical questions, application questions, circle questions, etc. The sub-correction module calls the algorithm service process to return the OCR recognition result and executes the correction logic to obtain the correction result.
[0064] (7) Return the grading results to the question grading process Algorithm service process The algorithm service process provides basic OCR algorithm capabilities and supports printed and handwritten detection and recognition. The upstream involves the image alignment process and the correction engine process. The execution method is as follows: Receive a detection and identification request from an upstream module; Call detection and recognition capabilities to obtain detection and recognition results; Return the detection and recognition results to the upstream module.
[0065] (8) Data reflow process The data reflux process is responsible for the storage and management of reflux data, such as the result data of grading. This data can be used to count the students' test results, such as knowledge weaknesses, knowledge strengths, etc. It can also be used to analyze the correctness of the grading system, find weaknesses and continuously improve the system capabilities. The input and output data of the algorithm service process can be used to analyze and evaluate whether the algorithm service process has good support for the current teaching data and can be used for training to continuously improve the algorithm capabilities. Data reflux can be turned on or off. When turned on, the execution method in the module is: The data return process is connected to the question correction process and algorithm service process in the form of a plug-in; The returned data is published to the corresponding topics of the message queue component corresponding to different module configurations. For example, the question correction process can be distributed to two topics: single question and full page, and the algorithm service process can be distributed to two topics: printed text and handwritten text. The downstream data storage service distributes and saves the messages in the message queue in the database table by subscribing to the topic.
[0066] (9) Problem feedback process The problem feedback process is mainly responsible for collecting user opinions and suggestions. The submitted content includes problem type, problem description, sample pictures and other information. The feedback information will be entered into the system problem feedback database and the problem handling status can be recorded. After receiving it, the system can manually analyze and process it and feedback the problem handling results, thereby continuously improving the system capabilities. Execution method: The system receives a problem feedback request submitted by a user; Store the information into the feedback problem record table according to user information, problem type and other information; You can send information to the problem handler by email to notify him / her to handle the problem in time; The problem handler handles the problem and provides timely feedback on the problem handling results; (10) Correction result analysis process The grading result analysis process is mainly responsible for the integrated analysis of students' past test results. The analysis results include the correct rate and error rate of each question type at each stage, the question types that students are good at, and the question types that need to be improved. The execution method is: The system receives a learning situation analysis request submitted by a user; Read student database information and integrate analysis results; Return the result to the user; (11) Visualization process of grading results; The correction result visualization process is responsible for visualizing the structured data of the correction results. The input is the correction result of the whole page of correction, and the output is the visualization result of the correction result combined with the whole page of teaching aids pictures passed in for correction. The execution method is: The system receives a request for result visualization; The correction result visualization process processes the correction results and adds visualization information to the incoming teaching aid pictures; Returns the result of the correction visualization.
[0067] Based on the above functional modules, the following operation flow description is provided: The system can be divided into five operation processes: (1) single question grading, (2) full page grading, (3) adding teaching aids to the database, (4) providing problem feedback, (5) analyzing grading results, and (6) visualizing grading results.
[0068] (1) For single question correction, the operation process is as follows: The user sends a single question image and marks this request as a single question correction to the question correction process; The question correction process sends this request to the correction engine process; The grading engine process calls the corresponding grading module to perform grading according to the question type; After the grading engine process completes the grading, it returns the grading results to the question grading process; The question correction process returns the results to the user; Full-page correction requires prior marking in the question bank storage process. This part is executed in two stages: the storage of teaching aids and the execution of full-page correction. The storage of teaching aids is a necessary condition. If they are not stored in the database, full-page correction cannot be executed.
[0069] (2) The operation process of adding teaching aids to the database is as follows: Prepare annotated supplementary teaching materials and support the script for storing annotated data in the database to call the question bank storage process; The question bank storage process calls the printed text OCR service in the request algorithm service process to obtain the full-text feature string of the image; Use the teaching supplementary images and full-text feature strings as inputs to the image-text semantic embedding process to obtain the image-text semantic vector; The annotated data and the image-text semantic vector are associated with the teaching supplementary information, such as subject, grade, book, page number and other information, and the annotated data and the image-text semantic vector are stored in the question bank and the feature vector search bank respectively; After the teaching aids are put into storage, each student can complete the teaching aid test questions, take a photo and send a grading request to the grading system to perform a full-page grading operation. The stored teaching aids can be used as a blueprint and do not need to be stored again.
[0070] (3) For full-page correction, the operation process is as follows: The user sends a full-page image and marks this request as a full-page correction to the question correction process; The question correction process calls the image alignment process; The image alignment process calls the printed text OCR service in the algorithm service process; The printed text OCR service obtains the full-text feature string of the image and returns it to the image alignment process; The image alignment process uses the teaching supplementary image and the full text feature string as the input of the image-text semantic embedding process to obtain the image-text semantic vector; The image alignment process calls the question bank storage process, which uses the image-text semantic vector search to obtain the basic information of the vector, searches the question bank based on the basic information, and returns the annotation results; The image alignment process aligns the supplementary teaching image requested for correction with the question bank image, and according to the alignment result, the frame of the annotated data is corrected to the supplementary teaching image for correction; The image alignment process returns the alignment results to the question correction process; The question correction process sends this request to the correction engine process; The grading engine process calls the corresponding grading module to perform grading according to the question type; After the grading engine process completes the grading, it returns the grading results to the question grading process; The question correction process returns the results to the user; After the correction is completed, if the user feels that there is a problem with the correction result, he or she can submit the relevant problem description to the problem feedback process.
[0071] (3) Problem feedback: The operation process is as follows: The system receives a question feedback request submitted by a user; The problem feedback process saves the submitted problems in the feedback problem record table; The problem feedback process sends an email to the problem handler to notify him to handle it in time; The problem handler handles the problem and provides timely feedback on the problem handling results; After using the system for a period of time, users need to understand the learning situation at each stage. At this time, they can submit a request for correction result analysis to the system to timely understand the answer status of each question type at the current stage.
[0072] (4) Analysis of the correction results: The operation process is as follows: The system receives a request for analysis of the grading results submitted by the user; Read student database information and integrate analysis results; Return the result to the user.
[0073] (5) After the user requests that the entire page be corrected, the user will obtain structured data of the correction results. If the correction results need to be visualized, the correction result visualization process can be used.
[0074] The correction results are visualized, and the operation process is as follows: The system receives a result visualization request submitted by a user; The visualization process of the correction results adds the visualization information to the incoming teaching aid pictures; Return the result to the user.
[0075] Based on the specific implementation steps provided above, the embodiments of the present invention have the following beneficial effects: To meet the needs of the ever-increasing types of learning, the system is flexibly designed and subjects can be connected and removed. It uses image and text semantic vector search to solve the problems of unstable and slow search speeds caused by low accuracy of shallow single-modal search and high complexity of string matching search. It supports both single-question and full-page grading modes, which can be applied to more scenarios. It uses point-to-point correction of images to solve the problem of inaccurate answer areas caused by traditional use of only image angle correction.
[0076] Please refer to Figure 3 , Figure 3 A teaching-assistant homework grading system 110 based on machine vision provided by an embodiment of the present invention includes: An acquisition module 1101 is used to acquire a teaching aid image to be corrected and a correction instruction for the teaching aid image to be corrected, wherein the teaching aid image to be corrected includes at least one teaching aid content to be corrected; The correction module 1102 is used to determine the question type of a single teaching aid content to be corrected included in the teaching aid image to be corrected, and call the correction logic corresponding to the question type to perform correction to obtain a single question correction result when the correction instruction is represented by a single-question correction instruction; when the correction instruction is represented by a full-page correction instruction, perform image alignment on the teaching aid image to be corrected to obtain an image alignment result; based on the image alignment result, determine multiple teaching aid contents to be corrected included in the teaching aid image to be corrected, and call the correction logic corresponding to each teaching aid content to be corrected to perform correction to obtain a full-page correction result.
[0077] It should be noted that the implementation principle of the aforementioned machine vision-based teaching and auxiliary homework correction system 110 can refer to the implementation principle of the aforementioned machine vision-based teaching and auxiliary homework correction method, which will not be repeated here. It should be understood that the division of the various processes of the above device is only a division of logical functions. In actual implementation, it can be fully or partially integrated into a physical entity, or physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the machine vision-based teaching and auxiliary homework correction system 110 can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above machine vision-based teaching and auxiliary homework correction system 110. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above processes can be completed by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
[0078] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (digital signal processors, DSP), or one or more field programmable gate arrays (FPGA), etc. For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0079] The embodiment of the present invention provides a computer device 100, which includes a processor and a non-volatile memory storing computer instructions. When the computer instructions are executed by the processor, the computer device 100 executes the aforementioned machine vision-based teaching homework grading system 110. Figure 4 As shown, Figure 4The computer device 100 is a block diagram of a structure of a computer device 100 provided in an embodiment of the present invention. The computer device 100 includes a teaching-assistant homework grading system 110 based on machine vision, a memory 111, a processor 112 and a communication unit 113.
[0080] To achieve data transmission or interaction, the memory 111, the processor 112 and the communication unit 113 are electrically connected to each other directly or indirectly. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The machine vision-based teaching and auxiliary homework grading system 110 includes at least one software function module that can be stored in the memory 111 in the form of software or firmware or solidified in the operating system (OS) of the computer device 100. The processor 112 is used to execute the machine vision-based teaching and auxiliary homework grading system 110 stored in the memory 111, such as the software function modules and computer programs included in the machine vision-based teaching and auxiliary homework grading system 110.
[0081] An embodiment of the present invention provides a readable storage medium, which includes a computer program. When the computer program is executed, the computer device where the readable storage medium is located is controlled to execute the aforementioned method for correcting teaching supplementary homework based on machine vision.
[0082] In summary, the solution provided by the embodiment of the present invention supports flexible single-question and full-page grading, adopts a plug-in configuration grading engine to adapt to different question types, improves grading efficiency through distributed deployment, uses graphic and text semantic vectors to achieve accurate and fast multimodal search, uses image alignment technology to accurately locate the answer area, and integrates and analyzes student data to provide real-time feedback on learning status.
[0083] For illustrative purposes, the foregoing description is made with reference to specific embodiments. However, the above illustrative discussion is not intended to be exhaustive or to limit the present disclosure to the precise form disclosed. Numerous modifications and variations are possible in accordance with the above teachings. These embodiments are selected and described in order to best illustrate the principles of the present disclosure and its practical application, so that those skilled in the art can best utilize the present disclosure and utilize various embodiments with different modifications to suit the intended specific application.
Claims
1. A method for correcting teaching homework based on machine vision. It is characterized in that include: Acquire a teaching aid image to be corrected and a correction instruction for the teaching aid image to be corrected, wherein the teaching aid image to be corrected includes at least one teaching aid content to be corrected; When the correction instruction is characterized as a single-question correction instruction, determining the question type of the single teaching aid content to be corrected included in the teaching aid image to be corrected, and calling the correction logic corresponding to the question type to perform correction, so as to obtain a single-question correction result; When the correction instruction is a full-page correction instruction, performing image alignment on the teaching aid image to be corrected to obtain an image alignment result; According to the image alignment result, a plurality of supplementary teaching contents to be corrected included in the supplementary teaching image to be corrected are determined, and the correction logic corresponding to each supplementary teaching content to be corrected is called to perform correction, so as to obtain a full-page correction result.
2. The method according to claim 1, It is characterized in that The step of performing image alignment on the teaching aid images to be corrected to obtain image alignment results includes: Using the OCR service to obtain the full-text feature string of the teaching aid image to be corrected; Extracting features from the teaching aid image to be corrected and the full-text feature character string to obtain a current image-text semantic vector; Determine a target question bank image corresponding to the teaching aid image to be corrected from a preset question bank according to the current image-text semantic vector; The regional boundary boxes corresponding to the plurality of teaching aid contents to be corrected are determined according to the target question bank image to obtain the image alignment result.
3. The method according to claim 2, It is characterized in that The step of extracting features from the teaching aid image to be corrected and the full-text feature character string to obtain a current image-text semantic vector includes: Using an image encoding unit constructed based on Transformer to extract features of the teaching aid image to be corrected, to obtain an image encoding vector; Using an image encoding unit constructed based on Transformer to extract features from the full-text feature string to obtain a text encoding vector, wherein the image encoding vector and the text encoding vector have the same vector length; The image encoding vector and the text encoding vector are concatenated to obtain the current image-text semantic vector.
4. The method according to claim 2, It is characterized in that The step of determining a target question bank image corresponding to the teaching aid image to be corrected from a preset question bank according to the current image-text semantic vector includes: Searching in a preset feature vector library according to the current image-text semantic vector, the preset feature vector library includes a plurality of comparison vectors, each of the comparison vectors corresponds one-to-one to a plurality of pre-stored auxiliary teaching basic information included in the preset question library; Extracting a target comparison vector having the greatest vector similarity with the current image-text semantic vector from the preset feature vector library, and determining target pre-stored teaching aid basic information corresponding to the target comparison vector; According to the target pre-stored teaching aid basic information, a target question bank image corresponding to the target pre-stored teaching aid basic information is determined from the preset question bank.
5. The method according to claim 2, It is characterized in that The step of determining the regional boundary boxes corresponding to the plurality of supplementary teaching contents to be corrected according to the target question bank image comprises: Obtaining a preset area boundary box pre-annotated for a plurality of preset teaching supplementary contents to be corrected included in the target question bank image; The preset region boundary frame is corrected to the teaching aid image to be corrected, so as to obtain region boundary frames corresponding to the plurality of teaching aid contents to be corrected.
6. The method according to claim 2, It is characterized in that Determining a plurality of supplementary teaching contents to be corrected included in the supplementary teaching image to be corrected according to the image alignment result, and calling the correction logic corresponding to each supplementary teaching content to be corrected to correct it, and obtaining a full-page correction result, including: Determining the plurality of supplementary teaching contents to be corrected according to the region boundary boxes of the plurality of supplementary teaching contents to be corrected; The correction logic corresponding to each of the supplementary teaching contents to be corrected is called to perform correction in each of the regional boundary boxes to obtain the correction result of the entire page.
7. The method according to claim 4, It is characterized in that The method further comprises: Acquire a teaching aid image to be stored, wherein the teaching aid image to be stored includes a plurality of preset teaching aid contents to be corrected, and each of the preset teaching aid contents to be corrected is pre-marked with a corresponding preset area boundary box; Calling the OCR service to obtain the full-text feature string of the teaching aid image to be stored; Extracting features from the auxiliary teaching images to be stored and the feature character strings of the full text to be stored, and obtaining semantic vectors of the images and texts to be stored; Associating the image-text semantic vector to be stored with the basic teaching aid information of the teaching aid image to be stored; The associated teaching aid images to be stored in the preset question bank are stored, and the semantic vectors of the images and texts to be stored in the preset feature vector bank are stored.
8. The method according to claim 1, It is characterized in that The method further comprises: Receiving a learning situation analysis request, and obtaining the single-question correction result or the whole-page correction result; Obtaining the student information corresponding to the teaching aid image to be corrected, and obtaining the historical correction results corresponding to the student information; According to the single question correction result or the whole page correction result, combined with the historical correction results, a learning situation analysis is performed to obtain a learning status evaluation result corresponding to the student information.
9. The method according to claim 1, It is characterized in that The method further comprises: A request for visualization of the correction result is received, the single-question correction result or the whole-page correction result is added to a corresponding position of the auxiliary teaching material image to be corrected, and a visualization display is performed.
10. A teaching homework grading system based on machine vision, It is characterized in that include: An acquisition module, used for acquiring a teaching aid image to be corrected and a correction instruction for the teaching aid image to be corrected, wherein the teaching aid image to be corrected includes at least one teaching aid content to be corrected; A correction module, for determining the type of a single teaching aid content to be corrected included in the teaching aid image to be corrected, and calling the correction logic corresponding to the type of the topic to perform correction to obtain a single-question correction result when the correction instruction is represented by a single-question correction instruction; and for performing image alignment on the teaching aid image to be corrected to obtain an image alignment result when the correction instruction is represented by a full-page correction instruction; According to the image alignment result, a plurality of supplementary teaching contents to be corrected included in the supplementary teaching image to be corrected are determined, and the correction logic corresponding to each supplementary teaching content to be corrected is called to perform correction, so as to obtain a full-page correction result.
Citation Information
Patent Citations
Online automatic correction method and system for paper homework
CN110110714A
Automatic homework correcting method and device, electronic equipment and storage medium
CN111753767A
Text classification and recognition method and device based on target detection
CN112036395A
Homework correcting method and system based on image recognition and intelligent terminal
CN112115736A
Homework correcting method and system based on image recognition and intelligent terminal
CN112116840A
