Test paper structure-based answer sheet automatic generation and coordinate marking method and system, electronic equipment and computer readable storage medium

CN122904858APending Publication Date: 2026-10-13SHENZHEN SEA SKY LAND TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611183532.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-10-13

AI Technical Summary

Technical Problem

[0006]本申请提出了一种基于试卷结构的答题卡自动生成与坐标标注方法,旨在解决现有技术中答题卡制作依赖人工排版导致的效率低、易出错,以及版面与坐标分离维护导致的数据链路断裂的问题

Benefits of technology

[0011]本申请通过通过获取试卷结构数据;根据预设的答题卡配置参数生成答题卡布局;在生成答题卡布局过程中,根据纸张规格对栏数进行联动约束校正,依据识别模式区分生成不同类型的识别区域;按照答题卡布局,在各栏的可用区域范围内根据题型和作答区域需求生成对应的答题区域,根据题号对答题区域进行标识,经排版分页后渲染生成答题卡页面;采集各答题区域在答题卡页面中的坐标信息,将坐标信息与答题区域对应的题号、父子题标识及所在页码进行关联分类绑定;输出答题卡页面及关联绑定的坐标信息。以此,能够根据试卷结构自动生成答题卡布局并同步输出坐标标注数据,提高了答题卡生成效率和全流程数据一致性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122904858A_ABST
    Figure CN122904858A_ABST
Patent Text Reader

Abstract

The application discloses a test paper structure-based answer sheet automatic generation and coordinate marking method and system, electronic equipment and computer readable storage medium. The scheme obtains test paper structure data; generates an answer sheet layout according to preset answer sheet configuration parameters; in the process of generating the answer sheet layout, the number of columns is linked and constrained and corrected according to the paper size, different types of identification areas are generated according to the identification mode; according to the answer sheet layout, the corresponding answer areas are generated in the available area range of each column according to the question type and the answer area requirement, the answer areas are marked according to the question number, and the answer sheet page is rendered and generated after layout and pagination; the coordinate information of each answer area in the answer sheet page is collected, the coordinate information is associated and classified and bound with the question number, parent-child question identification and page code corresponding to the answer area; and the answer sheet page and the associated and bound coordinate information are output. The answer sheet generation efficiency and the whole-process data consistency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information technology for educational examinations, and in particular to a method, system, electronic device, and computer-readable storage medium for automatically generating and annotating answer sheets based on test paper structure. Background Technology

[0002] In scenarios that combine paper-based exams with digital grading, the answer sheet is a key link between the paper-based exam and the electronic grading system. It typically needs to integrate multiple functional modules such as student information area, QR code area, objective question filling area, subjective question answering area, and absence / discipline marking area.

[0003] Currently, answer sheet production mainly relies on manual typesetting or the use of fixed templates. Exam creators need to manually adjust the layout or select a similar layout from an existing template library based on the number of questions, question types, number of options, and space requirements. However, as exam structures become increasingly complex (such as a single exam often containing a mix of multiple-choice, true / false, fill-in-the-blank, short-answer, essay, and combination questions with multiple sub-questions of different types), the existing methods have the following significant shortcomings: First, the automation level is low and the consistency is poor. Every time the content of the test paper changes, the layout needs to be manually readjusted, which is inefficient and prone to problems such as missing question numbers, disordered question number order, incorrect configuration of the number of options, insufficient space for subjective questions, or incorrect splitting of questions that span multiple pages. It is difficult to ensure that the layout is strictly aligned with the test paper structure.

[0004] Secondly, the system faces challenges in maintaining coordinates and is prone to data link disruptions. In information-based marking, the system requires not only the printed answer sheet layout but also precise page coordinates for each functional area (such as the objective question filling box, student ID area, QR code, and subjective question answer area) to guide scanning positioning and image cropping. In existing technologies, layout generation and coordinate annotation are often performed separately, and coordinate data frequently requires subsequent manual calibration or additional configuration. This leads to misalignment between the scanned recognition results and the question numbers and marking areas, increasing implementation costs and the risk of errors.

[0005] Therefore, there is an urgent need for a technical solution that can improve the automation and intelligence of the answer sheet generation process and achieve effective data connection between the answer sheet layout information and the subsequent scanning and marking process. Summary of the Invention

[0006] This application proposes an automatic generation and coordinate labeling method for answer sheets based on test paper structure, aiming to solve the problems of low efficiency and error-proneness caused by manual typesetting in the existing technology, as well as the data link breakage caused by the separation of page layout and coordinate maintenance.

[0007] This application provides a method for automatically generating and annotating answer sheets based on a test paper structure. The method includes: Obtain the test paper structure data, which includes at least the question type, question number, answer area requirements, and parent-child hierarchical relationship information for each question. The answer sheet layout is generated based on the preset answer sheet configuration parameters, which include at least the paper size, number of columns, and recognition mode. During the generation of the answer sheet layout, the number of columns is adjusted according to the paper size, and different types of recognition areas are generated according to the recognition mode. According to the answer sheet layout, within the available area of ​​each column, corresponding answer areas are generated based on the question type and answer area requirements. The answer areas are identified according to the question number, and the answer sheet page is rendered after layout and pagination. Collect the coordinate information of each answer area on the answer sheet page, and associate and bind the coordinate information with the question number, parent and child question identifiers and page number of the answer area; Output the answer sheet page and its associated coordinate information.

[0008] Accordingly, this application also provides an automatic answer sheet generation and coordinate annotation system based on the test paper structure, including: The test paper structure parsing module is used to obtain test paper structure data. The test paper structure data includes at least the question type, question number, answer area requirements, and parent-child hierarchical relationship information for each question. The answer sheet data source construction module is used to convert the test paper structure into a unified answer sheet question structure; The layout decision module is used to generate the answer sheet layout according to the preset answer sheet configuration parameters, which include at least the paper size, number of columns, and recognition mode. During the process of generating the answer sheet layout, the number of columns is adjusted according to the paper size, and different types of recognition areas are generated according to the recognition mode. The answer area generation module is used to generate corresponding answer areas according to the question type and answer area requirements within the available area of ​​each column, based on the answer sheet layout, and to identify the answer areas according to the question number; The pagination module is used to format and paginate the answer area. The rendering module is used to render the page for generating the answer sheet; The coordinate annotation module is used to collect the coordinate information of each answer area on the answer sheet page, and associate and classify the coordinate information with the question number, parent and child question identifiers and page number of the answer area. The data output module is used to output the answer sheet page and the associated coordinate information.

[0009] Accordingly, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the program, it implements the above-described method for automatic generation and coordinate labeling of answer sheets based on the test paper structure.

[0010] Accordingly, this application also provides a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute the above-described method for automatic generation and coordinate annotation of answer sheets based on a test paper structure.

[0011] This application achieves this by acquiring test paper structure data; generating an answer sheet layout based on preset answer sheet configuration parameters; adjusting the number of columns according to paper size constraints during layout generation; differentiating and generating different types of recognition areas based on recognition modes; generating corresponding answer areas within the available area of ​​each column according to question type and answer area requirements, identifying answer areas by question number, and rendering the answer sheet page after layout and pagination; collecting the coordinate information of each answer area on the answer sheet page; associating and binding the coordinate information with the corresponding question number, parent-child question identifier, and page number; and outputting the answer sheet page and associated coordinate information. This allows for the automatic generation of answer sheet layouts based on test paper structure and simultaneous output of coordinate annotation data, improving answer sheet generation efficiency and overall data consistency. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] in: Figure 1 This is a schematic diagram of an automatic answer sheet generation and coordinate labeling system based on a test paper structure, provided as an embodiment of this application.

[0014] Figure 2 This is a flowchart illustrating a method for automatically generating and annotating answer sheets based on a test paper structure, as provided in an embodiment of this application.

[0015] Figure 3 This is a schematic diagram of another automatic answer sheet generation and coordinate labeling system based on a test paper structure provided in an embodiment of this application.

[0016] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0018] This application provides a method, apparatus, computer-readable storage medium, and electronic device for automatically generating and annotating answer sheets based on a test paper structure. Specifically, the method for automatically generating and annotating answer sheets based on a test paper structure can be executed by an electronic device, which can be a terminal or a server. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, and big data and artificial intelligence platforms.

[0019] To address the aforementioned issues, this application provides a method, system, electronic device, and computer-readable storage medium for automatically generating and annotating answer sheets based on test paper structure. This enables the automatic generation of answer sheet layouts and simultaneous output of coordinate annotation data according to the test paper structure, thereby improving the efficiency of answer sheet generation and the consistency of data throughout the entire process.

[0020] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.

[0021] This application provides an automatic answer sheet generation and coordinate annotation system based on a test paper structure.

[0022] For example, please see Figure 1 , Figure 1 This is a schematic diagram of an automatic answer sheet generation and coordinate annotation system based on a test paper structure, provided as an embodiment of this application. The system includes the following functional modules: The test paper structure parsing module is used to obtain test paper structure data. The test paper structure data includes at least the question type, question number, answer area requirements, and parent-child hierarchical relationship information for each question. The answer sheet data source construction module is used to convert the test paper structure into a unified answer sheet question structure; The layout decision module is used to generate the answer sheet layout according to the preset answer sheet configuration parameters, which include at least the paper size, number of columns, and recognition mode. During the process of generating the answer sheet layout, the number of columns is adjusted according to the paper size, and different types of recognition areas are generated according to the recognition mode. The answer area generation module is used to generate corresponding answer areas according to the question type and answer area requirements within the available area of ​​each column, based on the answer sheet layout, and to identify the answer areas according to the question number; The pagination module is used to format and paginate the answer area. The rendering module is used to render the page for generating the answer sheet; The coordinate annotation module is used to collect the coordinate information of each answer area on the answer sheet page, and associate and classify the coordinate information with the question number, parent and child question identifiers and page number of the answer area. The data output module is used to output the answer sheet page and the associated coordinate information.

[0023] The modules can be connected and work collaboratively in sequence according to the following data flow: After the test paper structure parsing module parses the input test paper structure data, the answer sheet data source construction module converts it into a unified answer sheet question structure. Then, the layout decision module determines the overall layout of the answer sheet. The answer area generation module generates various types of answer areas based on the layout and question structure. The pagination processing module automatically paginates the answer areas. The coordinate annotation module collects the coordinate metadata of each area. Finally, the data output module binds and saves the rendering results with the coordinate metadata. When an existing answer sheet template is modified, the template difference comparison module compares the test paper structure before and after the modification to assist the answer area generation module in performing local reuse and rearrangement.

[0024] Corresponding to the above system embodiments, this application also provides a method for automatically generating and annotating answer sheets based on test paper structure.

[0025] For example, please see Figure 2 , Figure 2 This is a flowchart illustrating a method for automatically generating and annotating answer sheets based on a test paper structure, as provided in an embodiment of this application. The specific process of this method is as follows: 101. Obtain the test paper structure data.

[0026] The test paper structure data includes at least the question type, question number, answer area requirements, and parent-child hierarchical relationship information for each question.

[0027] Among them, the answer area requirements are used to characterize the constraints on the size and quantity of the answer area for different question types. For example, the answer area requirements may include information such as: score, number of options, number of spaces, preset number of rows, and answer space requirements.

[0028] Specifically, for objective questions, the answer area requirement is reflected in the number of options, which determines the number of fill-in boxes or recognition boxes to be generated; for fill-in-the-blank questions, the answer area requirement is reflected in the number of blanks, which determines the number of fill-in-the-blank answer areas to be generated; for subjective questions, the answer area requirement is reflected in the question score, the preset number of lines, or the answer space requirement, which determines the size of the writing area; for combined questions, the answer area requirement is reflected in the question type, score, and answer space requirement of each sub-question, which determines the type and size of the answer area for each sub-question.

[0029] The parent-child hierarchical relationship information for combined questions refers to the data set used to describe the hierarchical relationship between the parent question and each child question in a combined question. It includes at least parent question identifier information, child question identifier information, hierarchical relationship information, question type information for each child question, and score information for each child question. Specifically, the parent question identifier information identifies which question is the parent question of the combined question; the child question identifier information identifies which questions belong to the combined question; the hierarchical relationship information establishes the hierarchical correspondence between the parent question and each child question; and the question type and score information for each child question provide the basis for generating the answer areas for each subsequent child question.

[0030] In some embodiments, the test paper data results may also include major question information and sub-question information. Major question information refers to information describing the overall structure of each major question in the test paper, including at least the major question number, major question type, total score of the major question, and number of sub-questions contained therein. It is used to identify the division method, question type, and score distribution of each major question in the test paper, and serves as the basic data for the system to identify the overall framework of the test paper.

[0031] The sub-question information refers to the specific information describing each sub-question under the main question, including at least the sub-question number, sub-question type, sub-question score, and answer area requirements. It describes the specific attributes of each question and serves as the direct basis for the system to generate the corresponding answer area for each question.

[0032] The information for major questions and minor questions has a hierarchical relationship, meaning that information for each major question corresponds to information for each minor question. Information for major questions determines the overall framework and question type distribution of the exam paper, while information for minor questions determines how the answer area for each specific question is generated.

[0033] In some embodiments, after obtaining the test paper structure data, an answer sheet data source is first constructed, and questions of different types and levels are uniformly converted into a standardized data structure for subsequent modules to call uniformly.

[0034] Specifically, the questions in the test paper structure data come from diverse sources, including major questions, minor questions, and sub-questions within combined questions. These questions have different levels and attribute fields in the original data. The system parses the acquired test paper structure data, extracting the key fields necessary for generating the answer area from the original data of various question types. These fields include question number, displayed question number, question type, score, options, parent-child question relationships, and answer area requirements. The data is then reorganized according to a unified format to form the answer sheet data source.

[0035] Through the above transformation, questions from different sources are represented in the answer sheet data source with a unified structure, enabling subsequent modules to traverse and process all questions in a consistent manner without having to write differentiated processing logic for different data sources. This avoids problems such as missing question numbers, disordered hierarchical relationships, or abnormal area generation caused by inconsistent data formats.

[0036] 102. Generate the answer sheet layout according to the preset answer sheet configuration parameters; during the process of generating the answer sheet layout, perform linkage constraint correction on the number of columns according to the paper specifications, and generate different types of recognition areas according to the recognition mode.

[0037] The answer sheet configuration parameters include at least the paper size, number of columns, and recognition mode. Paper size refers to the physical size of the answer sheet, which determines the page size and usable area; number of columns refers to the number of columns on the answer sheet page in the horizontal direction; recognition mode refers to the data acquisition method used in the scanning and recognition stage of the answer sheet, including optical mark recognition (OMR) and optical character recognition (OCR), as well as student ID recognition method (OMR, OCR, or barcode recognition).

[0038] In some embodiments, the answer sheet configuration parameters may also include printing method, student information field, QR code configuration, and header configuration.

[0039] The printing method refers to the output format of the answer sheet, including single-sided and double-sided printing, which determines the page layout logic. For double-sided printing, the corresponding page number and number of QR codes need to be generated according to the front and back page order. The student information field refers to the personal identification information items that students need to fill in on the answer sheet, such as name, student ID, and class, which determines the generated content of the student information area. The QR code configuration refers to the position and number of QR codes on the answer sheet, which are used to quickly locate the answer sheet type and version information during the scanning and recognition stage. The header configuration refers to the content of the top area of ​​the answer sheet page, such as the exam name and subject name, which determines the information displayed at the top of the page.

[0040] The above configuration parameters can be flexibly combined and set according to actual exam needs to meet the different requirements of different exams for answer sheet format.

[0041] In this embodiment, the answer sheet layout is generated based on the answer sheet configuration parameters (including paper size, number of columns, recognition mode, printing method, etc.) and the total number of questions, question type distribution, and answer area requirements in the answer sheet data source, and the overall page structure of the answer sheet is calculated.

[0042] The specific process can be as follows: First, determine the page size and available area based on the paper specifications; second, perform linkage constraint correction on the number of columns based on the paper specifications, and automatically adjust to the matching number of columns when the number of columns does not match the paper specifications to avoid overflow of the answer area, abnormal coordinates, or printing format errors due to mismatch between paper type and number of columns; then, calculate the available area range of each column based on the paper specifications and the corrected number of columns, which will serve as the placement boundary for the subsequent generation of the answer area.

[0043] The generated layout is a structured answer sheet layout, which includes at least the page size, the available area of ​​each column, the type configuration of the recognition area, and header and footer information, serving as input constraints for subsequent answer area generation steps. Through the above processing, the system achieves automatic matching of paper size and number of columns.

[0044] In some embodiments, during the generation of the answer sheet layout, the number of columns is adjusted according to the paper size. Specifically, this may include: obtaining the paper size and number of columns from the configuration parameters; determining the allowed range of columns for the paper size; and checking if the current number of columns falls within that range. If the current number of columns is not within the allowed range, it is automatically adjusted to the default number of columns for that paper size; otherwise, it remains unchanged. Through this adjustment, the final number of columns used for layout generation is guaranteed to always match the paper size.

[0045] For example, when the paper size is A4, the page width is narrow, supporting only a single-column layout; when the paper size is A3 or 8K, the page width is larger, allowing for a two-column or three-column layout. If the user switches the paper size from A3 to A4, and the current number of columns is two, the system automatically corrects the number of columns from two to one; conversely, if the paper size is switched from A4 to A3, and the current number of columns is one, the system allows the user to maintain one column or switch to two or three columns.

[0046] Through the above-mentioned linkage constraint correction mechanism, problems such as the answer area overflowing the page boundary, coordinate data exceeding the valid range, or printing errors caused by the mismatch between the number of columns and paper size are avoided, ensuring that the space allocation of the answer sheet on the physical page is reasonable and all answer areas can be fully presented.

[0047] In some embodiments, the recognition patterns include at least objective question recognition patterns and student ID recognition patterns; the step of "generating different types of recognition regions based on recognition patterns" may include the following operations: If the objective question recognition mode is optical mark recognition, then fill-in boxes for each option are generated; if the objective question recognition mode is optical character recognition, then recognition boxes for filling in the option characters are generated. If the student ID recognition mode is optical mark recognition, a number filling area will be generated; if the student ID recognition mode is optical character recognition, a number writing recognition area will be generated; if the student ID recognition mode is barcode recognition, a barcode pasting area will be generated.

[0048] In this embodiment, different types of recognition regions are generated based on the recognition pattern.

[0049] The processing of objective question recognition patterns can include the following: The objective question recognition mode includes two methods: optical marker recognition and optical character recognition. When the objective question recognition mode is optical marker recognition, the system generates fill boxes for each option and records the coordinate information of each fill box; when the objective question recognition mode is optical character recognition, the system generates recognition boxes for filling in the option characters and records the coordinate information of each recognition box.

[0050] Processing for student ID recognition patterns can include the following: The student ID recognition mode includes three methods: optical mark recognition, optical character recognition, and barcode recognition. When the student ID recognition mode is optical mark recognition, the system generates a number filling area; when the student ID recognition mode is optical character recognition, the system generates a number writing recognition area; when the student ID recognition mode is barcode recognition, the system generates a barcode pasting area; and the system records the coordinate information of the corresponding area when generating each type of student ID recognition area.

[0051] By using recognition patterns to drive region generation, the shape and structure of each recognition region are determined according to the configured recognition pattern during the answer sheet layout generation stage. This ensures that the generated answer sheet matches the processing method of the subsequent scanning and recognition system, eliminating the need to develop independent answer sheet templates for different recognition patterns and improving the system's versatility and adaptability.

[0052] In some embodiments, the answer sheet configuration parameters further include a layout density parameter; the method may also include the following steps: Adjust the spacing and arrangement of each answer area according to the layout density parameters; Save the layout density parameters in association with the coordinate information of the corresponding answer area.

[0053] The layout density parameter controls the spacing and arrangement of each answer area. Layout density can include a moderate mode and a compact mode. In the moderate mode, priority is given to ensuring the clarity of the answer space and area boundaries, and a larger gap is reserved between each answer area. In the compact mode, while meeting the minimum size of the recognition area and the available space in the answer area, the blank interval between each answer area is reduced to increase the number of questions that can be accommodated on a single page.

[0054] For example, when a test paper contains many questions and users want to reduce paper usage, they can choose the compact mode. The system will compress the spacing between each answer area to the minimum value that meets the requirements of recognition and answering, thereby improving space utilization while ensuring usability. When the test paper has fewer questions or requires higher clarity of area boundaries, users can choose the moderate mode. The system will appropriately expand the spacing between each area to prioritize the answering and recognition experience.

[0055] When generating the answer area and collecting coordinate information, the layout density parameters are associated with and saved with the coordinate information of the corresponding answer area. When the answer sheet template is subsequently edited or re-rendered, the saved layout density parameters can be used to determine whether the spacing and arrangement of the original answer area are still applicable in the current density mode, thereby determining whether the answer area can be reused. This avoids the need to regenerate the entire answer sheet due to changes in layout density and improves template maintenance efficiency.

[0056] 103. According to the answer sheet layout, generate the corresponding answer area within the available area of ​​each column based on the question type and answer area requirements. Identify the answer area according to the question number, and render the answer sheet page after layout and pagination.

[0057] The available area refers to the actual page space on the answer sheet page that can be used to arrange the answer area after deducting unusable areas such as margins, headers, and footers.

[0058] Specifically, according to the page structure and column division method determined by the answer sheet layout, answer areas are generated within the available area of ​​each column. The question type determines the type of answer area (fill-in box, recognition box, writing area, or fill-in-the-blank area), and the requirements for the answer area determine its size (number of options, number of spaces, score, or preset number of rows, etc.). Based on the question type and answer area requirements, the space required for each answer area is calculated. Then, a specific location is allocated to that area within the available area of ​​the corresponding column, ensuring that all answer areas are completely placed within the available space without overlapping, preventing them from overflowing the page boundaries, and maintaining a neat layout.

[0059] In some embodiments, the step "generating corresponding answer areas according to the question type and answer area requirements within the available area of ​​each column, based on the answer sheet layout" may include the following operations: When the question type is objective, generate a corresponding number of fill boxes or recognition boxes based on the number of options required for the answer area; When the question type is fill-in-the-blank, generate the corresponding number of fill-in-the-blank answer areas based on the number of blank spaces required for the answer area; When the question type is subjective, a writing area is generated based on the question score, preset number of lines, or writing space requirements corresponding to the answer area requirements; When the question type is a combination question, the hierarchical relationship between the parent question and the child question is established based on the parent-child hierarchical relationship information of the combination question. Each child question under the parent question is traversed, and the corresponding answer area for each child question is generated according to the question type of each child question.

[0060] In this embodiment, according to the answer sheet layout, corresponding answer areas are generated within the available area of ​​each column based on the question type and answer area requirements. The area generation methods for different types of questions are as follows: For objective questions: Based on the number of options required for the answer area, generate a corresponding number of fill-in boxes or recognition boxes, and record the option identifier for each box. The specific shape of the fill-in box or recognition box is determined by the recognition mode: fill-in boxes are generated under optical mark recognition mode, and recognition boxes are generated under optical character recognition mode.

[0061] Fill-in-the-blank questions: Generate the corresponding number of fill-in-the-blank answer areas based on the required number of blank spaces in the answer area.

[0062] Subjective questions: A writing area is generated based on the question score, preset number of lines, or writing space requirements corresponding to the answer area needs. The higher the question score or the more preset lines, the larger the generated writing area.

[0063] Combination questions: Establish a hierarchical relationship between parent and child questions based on the parent-child relationship information of combination questions. Traverse each child question under the parent question, generate the corresponding answer area for each child question according to the question type using the above method, and save the parent question identifier and each child question identifier together. This allows each child question in the combination question to be independently identified and scored during subsequent marking, while maintaining its correspondence with the parent question.

[0064] In some embodiments, the method may further include the following steps: During the generation of the answer area, automatic pagination is performed based on the available page height and column width corresponding to the paper size, the height of the answer area, and the preset printing method. When the answer area cannot be fully placed on the current page or in the current column, move the answer area to the next page or in the next column; When a question allows for splitting across pages, the answer area of ​​the question is split into multiple page segments, and the same question number, parent question number, question type, and page number information are retained in each page segment.

[0065] In this embodiment, during the generation of the answer area, automatic pagination is performed based on the available page height and column width corresponding to the paper size, the height of the answer area, and the preset printing method.

[0066] The basic rules can be as follows: Monitor the remaining space of the current page or column in real time. If the height of the current answer area exceeds the remaining space, move the answer area to the next column or the next page to ensure that each answer area is fully presented and avoids being truncated by the page boundary.

[0067] When a question allows for splitting across pages, the answer area can be divided into multiple page segments and placed on different pages. Each segment should retain the same question number, parent question number, question type, and page number information. This allows subsequent scanning and grading to identify segments distributed across different pages as the same question and aggregate multiple answer segments for that question for display. For questions that do not allow for splitting across pages, the entire answer area should be moved to the next page to ensure that the answer content is not fragmented.

[0068] Through the above mechanism, the system can include all questions within a limited page content, while ensuring that questions spanning multiple pages can still be correctly identified and associated after being split.

[0069] In this embodiment, after generating each answer area and completing the layout and pagination, the answer sheet page is rendered. This step includes two stages: identification and rendering, as follows: During the identification process, based on the question number corresponding to each answer area, a question number label is generated near the answer area or written into the area data structure. This establishes a connection between each answer area and its corresponding question, ensuring that candidates can clearly identify the question corresponding to each answer location. The identification information is included in subsequent layout and pagination along with the answer area, and the question number label is always associated with and not separated from the corresponding answer area.

[0070] During the rendering process, the structured page data after layout and pagination is converted into a visual answer sheet image or document. The rendered answer sheet page is output in a printable or previewable format (such as PDF or image), containing all page elements such as answer areas, question number identifiers, student information areas, and QR code areas, and can be directly used for printing or electronic distribution.

[0071] 104. Collect the coordinate information of each answer area on the answer sheet page, and associate and bind the coordinate information with the question number, parent-child question identifier and page number corresponding to the answer area.

[0072] In some embodiments, the step "collecting the coordinate information of each answer area on the answer sheet page, and associating and classifying the coordinate information with the question number, parent-child question identifier, and page number corresponding to the answer area" may include the following operations: Obtain the coordinates of the top left and bottom right corners of each answer area on the answer sheet page; Perform a validity check on the obtained top-left and bottom-right corner coordinates; If the x-coordinate of the top-left corner is greater than the x-coordinate of the bottom-right corner, or the y-coordinate of the top-left corner is greater than the y-coordinate of the bottom-right corner, then the coordinates are considered abnormal and the corresponding answer area is regenerated. After the verification is passed, a rectangular coordinate information containing the horizontal coordinate, vertical coordinate, width and height is generated based on the coordinates of the upper left corner and the lower right corner. The horizontal and vertical coordinates are determined by the coordinates of the upper left corner, the width is determined by the difference between the horizontal coordinates of the lower right corner and the horizontal coordinates of the upper left corner, and the height is determined by the difference between the vertical coordinates of the lower right corner and the vertical coordinates of the upper left corner. Based on the region type of each answer area, the rectangular coordinate information is classified and associated with the corresponding question number, parent-child question identifier, and page number. The region types include objective question area, subjective question area, student information area, QR code area, and absence / discipline mark area.

[0073] First, by traversing each answer area on the answer sheet page, the coordinates of the top-left corner and bottom-right corner of each area on the page are obtained. Each answer area has definite position information after the page is rendered. The top-left corner coordinates and the bottom-right corner coordinates together define the boundary of the answer area. The top-left corner coordinates represent the starting position of the area on the page, and the bottom-right corner coordinates represent the ending position of the area on the page.

[0074] The obtained top-left and bottom-right corner coordinates are validated for validity. The validation rule is as follows: the x-coordinate of the top-left corner should be less than the x-coordinate of the bottom-right corner, and the y-coordinate of the top-left corner should be less than the y-coordinate of the bottom-right corner. If the x-coordinate of the top-left corner is greater than the x-coordinate of the bottom-right corner, or the y-coordinate of the top-left corner is greater than the y-coordinate of the bottom-right corner, it indicates that there is a logical error in the coordinate data of that area, and it cannot form a valid rectangular area. In this case, the coordinates are judged as abnormal, and the corresponding answer area is regenerated. Through this validation mechanism, abnormal data is excluded before generating coordinate metadata, avoiding subsequent scanning and positioning failures or image cropping errors caused by coordinate errors.

[0075] After successful verification, the coordinates of the top-left and bottom-right corners are converted into rectangular coordinate format. The rectangular coordinate information includes four parameters: x-coordinate, y-coordinate, width, and height. The x-coordinate and y-coordinate are determined by the top-left corner coordinate, corresponding to the horizontal and vertical positions of the top-left corner of the rectangle on the page, respectively; the width is determined by the difference between the x-coordinate of the bottom-right corner and the x-coordinate of the top-left corner; and the height is determined by the difference between the y-coordinate of the bottom-right corner and the y-coordinate of the top-left corner. Through this conversion, the system transforms the coordinates of the top-left and bottom-right corners into a rectangular coordinate format that is easier to store and use. Subsequent scanning and recognition can directly locate the target area and perform image cropping based on these four parameters.

[0076] Then, based on the region type of each answer area, the rectangular coordinate information is associated and bound with the corresponding question number, parent-child question identifier, and page number to form coordinate metadata. The coordinate metadata is organized by region type: the objective question region records the coordinates of the option box, question number, and option identifier; the subjective question region records the coordinates of the writing area, question number, and parent question number; the student information area, QR code area, and absence / disciplinary mark area each record their corresponding coordinates. The system also sets a region type identifier for each area so that the corresponding recognition process can be called according to the type during subsequent scanning and recognition. The coordinate metadata also includes the answer sheet code, serving as a unique identifier for the answer sheet.

[0077] Through the above operations, the coordinate data of the answer area was accurately generated and structured, providing an accurate data foundation for subsequent scanning, recognition, and marking.

[0078] 105. Output the answer sheet page and its associated coordinate information.

[0079] In this embodiment, after the answer sheet page is rendered and the coordinates are collected, the answer sheet page and the associated coordinate information are output together.

[0080] Specifically, the answer sheet page is bound and saved with coordinate metadata to form the answer sheet content data. The saved data includes the answer sheet page structure, answer sheet image, total number of pages, total number of columns, single / double-sided identification, number of QR codes, answer sheet code, coordinate information for each area, and the original answer sheet data source. The answer sheet code serves as a unique identifier for the answer sheet, ensuring accurate location of each answer sheet in scenarios where multiple versions of answer sheets are used simultaneously.

[0081] The output answer sheet data can be used in multiple subsequent stages, such as: generating printable documents during printing; locating objective question areas, student ID areas, QR code areas, and absence / disciplinary violation areas based on coordinate metadata during scanning and calling the corresponding recognition processes; automatically recognizing filled-in or written content based on question number and coordinates during objective question scoring; cropping answer images based on question number and coordinates and pushing them to the grading end during subjective question grading; and associating recognition and grading results with the corresponding questions based on the binding relationship between coordinates and question numbers during score backfilling. Coordinate metadata also supports the aggregated display of questions spanning multiple pages. When the same subjective question is split into multiple page segments due to spanning multiple pages, each segment retains the same question number, parent question number, question type, and page number information. The grading end can aggregate and display all answer segments for that question by question number, ensuring that graders can view the complete answer content for the same question.

[0082] Through the above processing, the system has established a complete data link from test paper generation, printing, scanning to test paper marking and data filling, and has achieved data unification for layout generation, coordinate annotation and subsequent test paper recognition and marking.

[0083] In some embodiments, after generating the answer sheet page, the method may further include the following steps: When the test paper structure corresponding to the answer sheet page is modified, the modified test paper structure is compared with the original test paper structure to generate information on the changes in questions; Based on the changes in the question information, the original coordinate information of the answer area that has not changed is reused, and the answer area that has been added, deleted or whose layout parameters have changed is regenerated and the corresponding coordinate information is updated.

[0084] In this embodiment, after the answer sheet page is generated, when the test paper structure is modified, the system supports incremental updates instead of regenerating the entire answer sheet.

[0085] The process involves comparing the modified test paper structure with the original test paper structure to generate information on changes in the questions. This can include: for objective questions, comparing whether the number of questions and options has changed; for fill-in-the-blank questions, comparing whether the number of questions and fill-in-the-blanks has changed; for subjective questions, comparing whether the question scores, the preset number of lines, and the writing style have changed; and for combined questions, comparing whether the number of objective sub-questions, the number of fill-in-the-blank sub-questions, and the number of lines and the writing style of subjective sub-questions have changed.

[0086] Based on the comparison results, the original coordinate information of the answer areas that have not changed is reused, and the corresponding coordinate information of the answer areas that have been added, deleted or whose layout parameters have changed is regenerated and updated.

[0087] By employing the aforementioned local reuse and local rearrangement mechanisms, we avoid the need for the entire answer sheet to be re-paged and the coordinates to shift due to local modifications. This preserves the coordinate stability of the unchanged parts, reduces the computational load when modifying the template, and improves maintenance efficiency.

[0088] Based on the above description, the following examples will further illustrate the automatic generation and coordinate labeling method of answer sheets based on the test paper structure of this application.

[0089] For example, please see Figure 3 , Figure 3 This is a flowchart illustrating another method for automatically generating and annotating answer sheets based on a test paper structure, provided in an embodiment of this application.

[0090] 201. Obtain the test paper structure data.

[0091] Input the exam paper for which the answer sheet is to be generated, and obtain the exam paper structure data. The exam paper structure data includes information on major questions, sub-questions, question types, question numbers, marks, number of options, question numbering method, and information on combined questions and sub-questions.

[0092] 202. Analyze the test paper structure data.

[0093] The obtained test paper structure data is analyzed to extract the question type, question number, score, number of options, and sub-question information of each question, and to identify the major question division method, the distribution of each question type, and the hierarchical relationship between questions in the test paper.

[0094] 203. Construct a unified answer sheet data source.

[0095] The parsed test paper structure data is converted into a unified answer sheet data source: the key fields necessary for generating the answer area are extracted from the original data of various types of questions, including question number, display question number, question type, score, options, parent-child question relationship and answer area requirements, and reorganized according to a unified format, so that the subsequent processing can access all questions in a consistent data format without distinguishing whether the questions come from major questions, minor questions or combination questions.

[0096] 204. Determine the layout of the answer sheet based on the paper specifications, number of columns, and recognition method.

[0097] The overall layout of the answer sheet is determined based on preset configuration parameters. These parameters include paper size (e.g., A4), number of columns, and recognition method (optical mark recognition or optical character recognition). During layout generation, the number of columns is adjusted according to the paper size: if the number of columns does not match the paper size, it is automatically adjusted to match, preventing overflow of the answer area or printing errors due to improper configuration. The usable area of ​​each column is calculated based on the paper size and the adjusted number of columns, serving as the placement boundary for the subsequently generated answer area.

[0098] 205. Automatically generate objective question area, subjective question area, student information area, and QR code area.

[0099] Based on the question type and answer area requirements for each question, corresponding answer areas are generated within the available area of ​​each column. For objective questions, corresponding fill-in boxes or identification boxes are generated based on the question number and the number of options, with an option identifier recorded for each box. For fill-in-the-blank questions, corresponding fill-in-the-blank answer areas are generated based on the number of blanks. For subjective questions, writing areas are generated based on the question score, preset number of lines, or answer space requirements. For combined questions, a hierarchical relationship between parent and child questions is first established, and then corresponding answer areas are generated for each child question, with the parent question identifier and child question identifier linked and saved. Simultaneously, auxiliary areas such as a student information area, a QR code area, an absence / disciplinary violation marking area, and a prohibited answer area are generated according to configuration parameters. While generating the answer areas, each answer area is identified based on the question number, establishing a link between each answer area and the corresponding question.

[0100] 206. Perform automatic pagination and cross-page handling based on page size.

[0101] During the generation of the answer area, automatic pagination is performed based on the available page height, column width, answer area height, and preset printing method. When the answer area cannot fit completely into the current page or column, it is moved to the next column or page to ensure that each answer area is fully displayed and avoids being truncated by page boundaries. When a question allows for splitting across pages, the answer area for that question is divided into multiple page segments and placed on different pages. Each page segment retains the same question number, parent question number, question type, and page number information, ensuring that the answers to cross-page questions are fully aggregated and displayed during subsequent grading. For questions that do not allow for splitting across pages, the entire answer area for that question is moved to the next page.

[0102] 207. Render and generate the answer sheet.

[0103] After generating and paginating all answer areas, a rendering operation is performed to convert the structured page data into a visual answer sheet page. The rendered answer sheet page is output in a printable or previewable format (such as PDF or image), containing all answer areas, question number identifiers, student information areas, QR code areas, and other page elements, and can be directly used for printing or electronic distribution.

[0104] 208. Collect the page coordinates of each answer area and recognition area.

[0105] After the answer sheet page is rendered, the coordinate information of each answer area and recognition area on the page is collected. Each answer area on the page is traversed, and the coordinates of the top-left and bottom-right corners of each area are obtained. The obtained coordinates are then validated: if the x-coordinate of the top-left corner is greater than the x-coordinate of the bottom-right corner, or the y-coordinate of the top-left corner is greater than the y-coordinate of the bottom-right corner, the coordinates are considered abnormal, and the corresponding answer area is regenerated. After successful validation, the top-left and bottom-right corner coordinates are converted into a rectangular coordinate format containing x-coordinate, y-coordinate, width, and height.

[0106] 209. Bind and save the answer sheet rendering results and coordinate metadata.

[0107] Based on the region type of each answer area, the rectangular coordinate information is categorized and associated with the corresponding question number, parent-child question identifier, and page number to form coordinate metadata. The coordinate metadata is organized by region type: the objective question region records the coordinates, question number, and option identifier of each option box; the subjective question region records the coordinates, question number, and parent question number of the writing area; the student information region, QR code region, and absence / disciplinary mark region each record their corresponding coordinate information. The coordinate metadata also includes the answer sheet code, serving as a unique identifier for the answer sheet. Finally, the rendered answer sheet page is bound to the coordinate metadata, saved, and output. The output answer sheet page can be directly used for printing and distribution, while the coordinate metadata is used for subsequent scanning and recognition, automatic scoring of objective questions, subjective question marking and location, and score backfilling.

[0108] Through the above steps, this solution achieves unified and automated data processing throughout the entire process from test paper generation, printing, scanning to marking and filling in the answer sheet, thereby improving the efficiency of answer sheet generation and the consistency of data throughout the entire process.

[0109] Accordingly, embodiments of this application also provide an electronic device. For example... Figure 4 As shown, Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 400 includes a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 and the memory 402 are electrically connected. Those skilled in the art will understand that... Figure 4 The electronic device structures shown herein do not constitute a limitation on electronic devices and may include, but are not limited to, those shown. Figure 4 It can show more or fewer parts, or combine certain parts, or arrange different parts.

[0110] The processor 401 is the control center of the electronic device 400. It connects various parts of the electronic device 400 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, it performs various functions of the electronic device 400 and processes data, thereby monitoring the electronic device 400 as a whole.

[0111] In this embodiment of the application, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more applications into the memory 402 according to the following steps, and the processor 401 runs the applications stored in the memory 402 to realize various functions.

[0112] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0113] Optional, such as Figure 4 As shown, the electronic device 400 may further include a display 403 and an input unit 404. The processor 401 is electrically connected to both the display 403 and the input unit 404. Those skilled in the art will understand that... Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0114] The display 403 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The display 403 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, guidance information, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), an organic light-emitting diode (OLED), or other similar devices. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program. Optionally, the touch panel may include a touch detection device and a touch controller.

[0115] The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 401. It can also receive and execute commands from the processor 401. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 401 to determine the type of touch event. Subsequently, the processor 401 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and display panel can be integrated into the display 403 to achieve input and output functions. However, in some embodiments, the touch panel and display panel can be implemented as two independent components to achieve input and output functions. That is, the display 403 can also be used as part of the input unit 404 to achieve input functions.

[0116] The input unit 404 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0117] In some embodiments, the electronic device may further include an audio circuit, which can provide an audio interface between the user and the electronic device via a speaker and a microphone. The audio circuit can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by the audio circuit, converted back into audio data, and output to processor 401 for processing. The audio data is then transmitted via radio frequency circuitry to, for example, another electronic device, or output to memory 402 for further processing. The audio circuit may also include an earphone jack to provide communication between peripheral headphones and the electronic device.

[0118] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0119] Therefore, embodiments of this application provide a computer-readable storage medium storing multiple computer programs that can be loaded by a digital signal processor to execute the steps in any of the automatic generation and coordinate annotation methods for answer sheets based on test paper structures provided in embodiments of this application.

[0120] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0121] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0122] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the automatic generation and coordinate annotation methods for answer sheets based on test paper structure provided in the embodiments of this application, the beneficial effects that any of the automatic generation and coordinate annotation methods for answer sheets based on test paper structure provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0123] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A method for automatically generating and annotating answer sheets based on test paper structure, characterized in that, The method includes: Obtain the test paper structure data, which includes at least the question type, question number, answer area requirements, and parent-child hierarchical relationship information for each question. An answer sheet layout is generated based on preset answer sheet configuration parameters, which include at least paper size, number of columns, and recognition mode. During the generation of the answer sheet layout, the number of columns is adjusted according to the paper size, and different types of recognition areas are generated based on the recognition mode. According to the answer sheet layout, within the available area of ​​each column, corresponding answer areas are generated based on the question type and the answer area requirements. The answer areas are identified according to the question number. After layout and pagination, the answer sheet page is rendered and generated. Collect the coordinate information of each answer area on the answer sheet page, and associate and classify the coordinate information with the question number, parent-child question identifier and page number corresponding to the answer area; Output the answer sheet page and the associated coordinate information.

2. The method according to claim 1, characterized in that, The step of generating corresponding answer areas according to the question type and answer area requirements within the available area of ​​each column, based on the answer sheet layout, includes: When the question type is an objective question, a corresponding number of fill boxes or recognition boxes are generated according to the number of options required by the answer area. When the question type is a fill-in-the-blank question, generate a corresponding number of fill-in-the-blank answer areas based on the number of blank spaces required by the answer area. When the question type is a subjective question, a writing area is generated according to the question score, preset number of lines, or answer space requirements corresponding to the answer area requirements; When the question type is a combination question, a hierarchical relationship between the parent question and the child question is established based on the parent-child hierarchical association information of the combination question. Each child question under the parent question is traversed, and a corresponding answer area for each child question is generated according to the question type of each child question.

3. The method according to claim 1, characterized in that, The process of collecting the coordinate information of each answer area on the answer sheet page, and associating and binding the coordinate information with the question number, parent-child question identifier, and page number corresponding to the answer area, includes: Obtain the coordinates of the top left and bottom right corners of each answer area on the answer sheet page; The obtained upper left corner coordinates and lower right corner coordinates are validated for legality. If the x-coordinate of the top-left corner is greater than the x-coordinate of the bottom-right corner, or the y-coordinate of the top-left corner is greater than the y-coordinate of the bottom-right corner, then the coordinates are determined to be abnormal and the corresponding answer area is regenerated. After the verification is passed, a rectangular coordinate information containing a horizontal coordinate, a vertical coordinate, a width, and a height is generated based on the coordinates of the upper left corner and the lower right corner. The horizontal coordinate and the vertical coordinate are determined by the coordinates of the upper left corner, the width is determined by the difference between the horizontal coordinates of the lower right corner and the horizontal coordinates of the upper left corner, and the height is determined by the difference between the vertical coordinates of the lower right corner and the vertical coordinates of the upper left corner. Based on the region type of each answer area, the rectangular coordinate information is classified and associated with the corresponding question number, parent-child question identifier, and page number. The region types include objective question area, subjective question area, student information area, QR code area, and absence / discipline mark area.

4. The method according to claim 1, characterized in that, The identification patterns include at least an objective question identification pattern and a student ID identification pattern; The method of generating different types of recognition regions based on recognition patterns includes: If the objective question recognition mode is optical mark recognition, then fill-in boxes for each option are generated; if the objective question recognition mode is optical character recognition, then recognition boxes for filling in option characters are generated. If the student ID recognition mode is optical mark recognition, a number filling area is generated; if the student ID recognition mode is optical character recognition, a number writing recognition area is generated; if the student ID recognition mode is barcode recognition, a barcode pasting area is generated.

5. The method according to claim 1, characterized in that, The answer sheet configuration parameters also include layout density parameters; The method further includes: Adjust the spacing and arrangement of each answer area according to the layout density parameters; The layout density parameter is associated with and saved in relation to the coordinate information of the corresponding answer area.

6. The method according to claim 1, characterized in that, After generating the answer sheet page, the following is also included: When the test paper structure corresponding to the answer sheet page is modified, the modified test paper structure is compared with the original test paper structure to generate question change information; Based on the changes in the questions, the original coordinate information of the answer areas that have not changed is reused, and the answer areas that have been added, deleted, or whose layout parameters have changed are regenerated and their corresponding coordinate information is updated.

7. The method according to claim 1, characterized in that, The method further includes: During the generation of the answer area, automatic pagination is performed based on the available page height and column width corresponding to the paper size, the height of the answer area, and the preset printing method. When the answer area cannot be fully placed on the current page or in the current column, the answer area will be moved to the next page or in the next column. When a question allows for splitting across pages, the answer area of ​​the question is split into multiple page segments, and the same question number, parent question number, question type, and page number information are retained in each page segment.

8. A system for automatically generating and annotating answer sheets based on test paper structure, characterized in that, The system includes: The test paper structure parsing module is used to obtain test paper structure data, which includes at least the question type, question number, answer area requirements, and parent-child hierarchical relationship information for each question. The answer sheet data source construction module is used to convert the test paper structure into a unified answer sheet question structure; The layout decision module is used to generate an answer sheet layout based on preset answer sheet configuration parameters, which include at least paper size, number of columns, and recognition mode. During the generation of the answer sheet layout, the number of columns is adjusted according to the paper size, and different types of recognition areas are generated according to the recognition mode. The answer area generation module is used to generate corresponding answer areas according to the question type and the answer area requirements within the available area of ​​each column, based on the answer sheet layout, and to identify the answer areas according to the question number; The pagination processing module is used to format and paginate the answer area; The rendering module is used to render the page for generating the answer sheet; The coordinate annotation module is used to collect the coordinate information of each answer area on the answer sheet page, and associate and classify the coordinate information with the question number, parent-child question identifier and page number corresponding to the answer area; The data output module is used to output the answer sheet page and the associated coordinate information.

9. An electronic device, characterized in that, The electronic device includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the program, it implements the automatic generation and coordinate labeling method for answer sheets based on the test paper structure as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores multiple instructions adapted for loading by a processor to execute the automatic generation and coordinate annotation method for answer sheets based on the test paper structure as described in any one of claims 1 to 7.