An automatic detection method, device and computer readable storage medium
By using automatic detection methods, the problem of design defects in answer sheet design not being detected in a timely manner was solved, enabling rapid and accurate defect detection and correction, and improving the quality and efficiency of answer sheet design.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN SEA SKY LAND TECH
- Filing Date
- 2022-10-09
- Publication Date
- 2026-06-12
AI Technical Summary
In existing technologies, design flaws in answer sheets cannot be detected in a timely manner, leading to errors and omissions in subsequent data collection, which affects the reputation of design companies and causes losses.
An automatic detection method is provided, which determines the actual configuration values of each graphic element in the answer sheet design data source file, obtains a standard template for detection parameters, matches the graphic element configuration values based on the template, outputs the detection results, and automatically discovers design defects.
It enables timely detection and correction of defects during the answer sheet design process, reducing project implementation difficulty and risk, improving design quality, and saving costs.
Smart Images

Figure CN115631358B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and in particular to an automatic detection method, apparatus and computer-readable storage medium. Background Technology
[0002] The design of the answer sheets used for online grading is carried out by designers who use professional vector graphics software to draw various graphic elements of the answer sheets and obtain the answer sheet data file.
[0003] Because the preparation period is highly confidential, with no contact or communication with external personnel, the expert team cannot monitor the design quality of the answer sheets in real time. Design errors can only be discovered after the exam when data is collected. Even minor design flaws require significant manpower to correct. Experienced designers can perform simple manual checks, but this is difficult and prone to errors. Failure to correct these design flaws promptly can lead to omissions in later data collection, resulting in losses. In high-stakes exams, such occurrences can damage the design company's reputation and generate public controversy. Summary of the Invention
[0004] This application provides an automatic detection method, device, and computer-readable storage medium, which can at least solve the problem that related technologies fail to detect design defects in a timely manner during the design of answer sheets, resulting in errors and omissions in subsequent data collection.
[0005] The first aspect of this application provides an automatic detection method, including:
[0006] Determine the actual configuration values of each graphic element in the answer sheet design data source file;
[0007] Obtain a detection parameter standard template for the graphic elements corresponding to the actual configuration value; wherein, the detection parameter standard template includes multiple mapping relationships between the graphic elements of different types and their corresponding standard configuration values;
[0008] The actual configuration values of the graphic elements are matched based on the standard template of the detection parameters;
[0009] Based on the matching result of the actual configuration value of the graphic element, the corresponding detection result of the graphic element is output.
[0010] A second aspect of this application provides an automatic detection device, comprising:
[0011] The determination module is used to determine the actual configuration values of each graphic element in the answer sheet design data source file;
[0012] The acquisition module is used to acquire the detection parameter standard template of the graphic elements corresponding to the actual configuration value; wherein, the detection parameter standard template includes multiple mapping relationships between the graphic elements of different types and their corresponding standard configuration values;
[0013] The detection module is used to match the actual configuration values of the graphic elements based on the standard template of the detection parameters;
[0014] The output module is used to output the detection result of the corresponding graphic element based on the matching result of the actual configuration value of the graphic element.
[0015] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the automatic detection method provided in the first aspect of this application.
[0016] The fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the steps of the automatic detection method provided in the first aspect of this application.
[0017] As can be seen from the above, according to the automatic detection method, apparatus, and computer-readable storage medium provided in this application, the actual configuration values of each graphic element in the answer sheet design data source file are determined; a detection parameter standard template corresponding to the actual configuration values of the graphic elements is obtained; wherein, the detection parameter standard template includes multiple mapping relationships between different types of graphic elements and their corresponding standard configuration values; the actual configuration values of the graphic elements are matched based on the detection parameter standard template; and the detection results corresponding to the graphic elements are output based on the matching results of the actual configuration values of the graphic elements. Through the implementation of this application, graphic element data in the answer sheet design data source file is automatically read, the actual configuration values of each graphic element are detected, and the detection results corresponding to the graphic elements are output, thereby easily and quickly identifying design defects in the answer sheet and improving the accuracy of the answer sheet design. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of the basic process of the automatic detection method provided in the first embodiment of this application;
[0019] Figure 2 A schematic diagram of the element distribution of a data source file for answer sheet design, provided in the first embodiment of this application;
[0020] Figure 3 This is a schematic diagram of an automatic detection device provided in the second embodiment of this application;
[0021] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the third embodiment of this application. Detailed Implementation
[0022] To make the inventive objectives, technical solutions, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0023] Design flaws in online evaluation question cards are the most challenging problem in online evaluation projects. Because designers are involved in implementation, the expert team cannot monitor the design quality in real time. Defects such as missing or misaligned synchronization headers; missing or misaligned objective question options; discontinuous or disordered objective question numbers; missing, identical, or incorrectly positioned question card type points in versions A and B; and synchronization headers being too close to the edge are extremely difficult to detect with the naked eye. Once the question card design is flawed, it will cause errors and omissions in the subsequent data collection.
[0024] The automatic detection method provided in this application enables answer sheet designers to promptly identify and correct design defects during the design process, thereby reducing project implementation difficulty and risks, improving design quality, and greatly saving various costs, which aligns with the goals of cost reduction, quality improvement, and efficiency enhancement.
[0025] To address the problem of data collection errors caused by the failure to promptly detect design flaws in answer sheet design, the first embodiment of this application provides an automatic detection method. This method is based on MSVS2019 C++, such as... Figure 1 This is a basic flowchart of the automatic detection method provided in this embodiment. The automatic detection method includes the following steps:
[0026] Step 101: Determine the actual configuration values of each graphic element in the answer sheet design data source file.
[0027] Specifically, in this embodiment, the actual configuration value of each graphic element is the initial configuration value of the graphic element in the answer sheet design data source file. The answer sheet design data source file includes multiple graphic elements. The type, quantity, and actual configuration value of the graphic elements in different types of answer sheet design data source files are also different. Determining the actual configuration value of a graphic element can be determining the actual configuration value of all or part of the graphic elements. In this embodiment, the terminal may automatically determine the actual configuration value of all graphic elements.
[0028] In some embodiments of this example, before determining the actual configuration value of each graphic element in the answer sheet design data source file, the method further includes: reading the answer sheet design data source file; parsing the graphic data in the answer sheet design data source file according to the type of graphic element to be detected; wherein the graphic data includes graphic elements and the actual configuration value corresponding to the graphic elements.
[0029] Specifically, this embodiment can automatically read the answer sheet design data source file and, based on different types of graphic elements, such as numerical, textual, and basic shape elements, parse out various types of graphic data contained in the answer sheet design data source file. For example... Figure 2 The diagram shown is a schematic of the graphic element distribution in a data source file for answer sheet design provided in this embodiment. The graphic elements can be text (e.g., text prompts), objective question numbers (e.g., multiple-choice question numbers), image positioning points (e.g., the black rectangles at the four corners of the answer sheet), etc. The actual configuration values corresponding to the graphic elements can be the configuration values of objective question numbers (e.g., multiple-choice question number "24"), words related to the answer sheet (e.g., candidate information, barcode pasting area, do not answer in shaded areas, etc.), and position parameter values of image positioning points (e.g., the horizontal and vertical positions of the positioning points). Similarly, they can also be the position parameter values of the synchronization header, the position parameter values of the paper type points, the position parameter values of the absent candidate points, etc.
[0030] Furthermore, in some embodiments of this example, before determining the actual configuration values of each graphic element in the answer sheet design data source file, the method further includes: obtaining detection item information corresponding to the answer sheet design data source file; and determining the corresponding type of graphic element to be detected based on the detection item information.
[0031] Specifically, in this embodiment, the graphic element to be detected is determined to be a basic shape type, text type, or number type by obtaining the parameter information corresponding to the graphic element in the answer sheet design data source file, such as attribute parameter values, text, and numbers.
[0032] Step 102: Obtain the detection parameter standard template of the graphic elements corresponding to the actual configuration value; wherein, the detection parameter standard template includes the mapping relationship between multiple different types of graphic elements and their corresponding standard configuration values.
[0033] Specifically, in this embodiment, the actual configuration values of each graphic element in the answer sheet design data source file are detected by a detection parameter standard template. The detection parameter standard template includes multiple different types of graphic elements and the mapping relationship corresponding to the standard configuration values of the graphic elements. The standard configuration values of all types of graphic elements in the answer sheet data source file can be uniformly managed through the detection parameter standard template.
[0034] In some embodiments of this example, before the step of obtaining the detection parameter standard template corresponding to the actual configuration value of the graphic element, the method further includes: obtaining the standard configuration values of different types of graphic elements in the answer sheet design data source file respectively; and generating the detection parameter standard template according to the standard configuration values of different types of graphic elements.
[0035] Specifically, the detection parameter standard template in this embodiment mainly consists of the standard configuration values of all or part of the graphic elements in the answer sheet design data source file. Different types of answer sheet design data source files have different graphic elements, and the corresponding standard configuration values are also different. Therefore, when detecting different types of answer sheet design data source files, different detection parameter standard templates need to be formulated, such as the red card standard template and the red card AB template. Taking the red card standard template as an example, it can include pages (A3 page, A4 page, minimum page margin) and their configuration values (e.g., the width of the A3 page is 429mm and the height is 293mm; the width of the A4 page is 21mm). The template includes the following attributes: width 6.096mm, height 4.064mm; minimum page margin 8mm; positioning points (image positioning points, OMR positioning points, missing points) and their configuration values (e.g., image positioning point width 6.096mm, height 4.064mm; missing point width 3.5mm, height 4mm; OMR positioning point width 3.556mm, height 2.032mm); and other attributes (minimum horizontal distance of positioning points, minimum vertical distance of positioning points, maximum alignment deviation of positioning points) and their configuration values (e.g., minimum horizontal distance of positioning points 6.096mm; minimum vertical distance of positioning points 3.556mm; maximum alignment deviation of positioning points 0). Additionally, the template can include the selection of detection items, such as page detection, synchronization header detection, objective question detection, detection point detection (minimum grayscale value is 25, maximum value is 30), page layout point detection, missing point detection, and sensitive word detection (sensitive words can be added by the user). Users can choose the items they need to detect.
[0036] Step 103: Match the actual configuration values of the graphic elements based on the standard template of the detection parameters.
[0037] Specifically, in this embodiment, after obtaining the detection parameter standard template corresponding to the actual configuration value of the graphic element, the standard configuration value corresponding to the same graphic element in the detection parameter standard template is matched one by one with the actual configuration value.
[0038] In some embodiments of this example, before matching the actual configuration values of graphic elements based on the standard template of detection parameters, the method further includes: determining the type of the answer sheet design data source file, and determining the total number of answer sheet design data source files of the same type among multiple answer sheet design data source files; and generating a package of items to be detected based on the type of the answer sheet design data source file and the total number of answer sheet design data source files of the same type.
[0039] Specifically, in this embodiment, for ease of management, all answer sheet design data source files to be tested are managed in a project manner. A project package to be tested may include answer sheet design data source files of different or the same type. The number of answer sheet design data source files of the same type is variable. Taking the answer sheet design project package of a certain province's college entrance examination in 2022 as an example, the project package may include answer sheets for 6 different subjects. Each subject may include multiple answer sheets, and the types of answer sheets may be multiple, such as answer sheet A or answer sheet B. Alternatively, the project package may only include answer sheets for the same subject, such as a mathematics project package, a geography project package, or a chemistry project package. Similarly, the subject project package may also include multiple answer sheets and multiple types of answer sheets.
[0040] In some implementations of this embodiment, the step of matching the actual configuration values of graphic elements based on the detection parameter standard template includes: matching the actual configuration values of graphic elements in all answer sheet design data source files in the test item package based on the detection parameter standard template corresponding to each test item package.
[0041] Specifically, in this embodiment, all answer sheets to be tested in the answer sheet design data source file can be batch matched with the detection parameter standard template by project or subject. In this embodiment, by obtaining different types of project packages to be tested, such as college entrance examination answer sheet data source files from different regions, and the corresponding detection rule templates for the project packages, such as the red card standard card template, the actual configuration values of each graphic element in the answer sheets of each subject in the project package are matched; or the actual configuration values of each graphic element in the answer sheets of a subject project package containing only the same subject are matched with the corresponding detection rule template to obtain the detection results of a single subject answer sheet.
[0042] Step 104: Based on the matching results of the actual configuration values of the graphic elements, output the detection results corresponding to the graphic elements.
[0043] Specifically, in this embodiment, after matching the actual configuration value of the graphic element, the detection result of the graphic element corresponding to the actual configuration value will be output. In addition, the number of detected pages, the number of detected objects, and the total number of seconds consumed for detection can also be output, and the detection results will be displayed in a simple and clear table format so that designers can know where the design defects are and make timely modifications.
[0044] In some implementations of this embodiment, the output of the detection result corresponding to the graphic element based on the matching result of the actual configuration value of the graphic element includes: when the actual configuration value of the graphic element successfully matches the corresponding detection parameter standard template, the output of the detection result corresponding to the graphic element is qualified; when the actual configuration value of the graphic element fails to match the corresponding detection parameter standard template, the output of the detection result corresponding to the graphic element is unqualified; and in the detected answer sheet design data source file, the unqualified graphic elements are highlighted and marked.
[0045] Specifically, in this embodiment, when the actual configuration value of a graphic element successfully matches the corresponding standard template for detection parameters, a detection result indicating that the graphic element corresponding to the actual configuration value has passed the detection will be output. The detection result includes a prompt indicating that the graphic element has passed the detection and corresponding detection information. Taking the data source file for the chemistry subject answer sheet design as an example, when the page detection item passes the detection, a "Pass" prompt and the detection information "Total 2 pages, size conforms to specification A3WH: 420*293" will be output; when the synchronization head detection item passes the detection, a "Pass" prompt and the detection information "Horizontal synchronization heads (total 24) and vertical synchronization heads (total 8) conform to the specification" will be output; when the detection point detection item passes the detection, a "Pass" prompt and the detection information "Detection points conform to the specification - red, gray, and black detection points" will be output; when the missing point detection item passes the detection, a "Pass" prompt and "Missing point conforms to the specification" will be output. The system outputs the detection information; when the actual configuration value of a graphic element fails to match the corresponding standard template of the detection parameters, it outputs the detection result of the graphic element corresponding to the actual configuration value as unqualified. For example, when the objective question detection item fails, it outputs the prompt "Failed" and the design defect information "Objective question does not meet the specification - Question 9 OMR filling box position offset 0.296mm greater than 0.000mm"; when the sensitive word detection item fails, it outputs the prompt "Failed" and the detection information "Sensitive words detected and their order of appearance"; in addition, for some missing detection items, it outputs design defect information such as "No roll-type points detected"; and it highlights all unqualified graphic elements in the data source file that has been detected; the highlighting can be achieved by changing the color of the graphic element or by using symbols (such as lines, triangles) to mark it, or a combination of both.
[0046] In some embodiments of this example, the step of outputting the detection result corresponding to the graphic element based on the matching result of the actual configuration value of the graphic element includes: for the graphic element that fails the detection, generating graphic element design defect information based on the deviation value between the actual configuration value and the standard configuration value in the detection parameter standard template; and noting the graphic element design defect information in the detected answer sheet design data source file for the graphic element that fails the detection.
[0047] Specifically, in this embodiment, for elements that fail the inspection, design defect information is generated based on the deviation between the actual configuration value of the element and the standard configuration value in the inspection parameter standard template. This design defect information is then noted in the completed answer sheet design data source file to facilitate correct modification by the designer. After the user is informed of the design defect, the modified configuration value of the element is obtained and matched against the corresponding inspection parameter standard template. When the modified configuration value matches successfully, the highlighted mark of the element and the design defect information are hidden.
[0048] Based on the above technical solution of the embodiments of this application, the actual configuration value of each graphic element in the answer sheet design data source file is determined; a detection parameter standard template corresponding to the actual configuration value is obtained; wherein, the detection parameter standard template includes multiple mapping relationships between different types of graphic elements and corresponding standard configuration values; the actual configuration value of the graphic element is matched based on the detection parameter standard template; and the detection result corresponding to the graphic element is output according to the matching result of the actual configuration value of the graphic element. Through the implementation of the solution of this application, graphic element data in the answer sheet design data source file is automatically read, and the actual configuration value of each graphic element is detected, and the detection result corresponding to the graphic element is output, thereby easily and quickly discovering design defects in the answer sheet and improving the accuracy of the answer sheet design.
[0049] Figure 3 An automatic detection device is provided as a second embodiment of this application. This automatic detection device can be used to implement the automatic detection method in the foregoing embodiments. For example... Figure 3 As shown, the automatic detection device mainly includes:
[0050] Module 301 is used to determine the actual configuration values of each graphic element in the answer sheet design data source file;
[0051] The acquisition module 302 is used to acquire the detection parameter standard template of the graphic elements corresponding to the actual configuration values; wherein, the detection parameter standard template includes the mapping relationship between multiple different types of graphic elements and their corresponding standard configuration values;
[0052] Detection module 303 is used to match the actual configuration values of graphic elements based on the standard template of detection parameters;
[0053] The output module 304 is used to output the detection result of the corresponding graphic element based on the matching result of the actual configuration value of the graphic element.
[0054] In some embodiments of this example, the automatic detection device further includes: a parsing module, used to read the answer sheet design data source file before determining the actual configuration values of each graphic element in the answer sheet design data source file; and to parse the graphic data elements in the answer sheet design data source file according to the type of graphic element to be detected; wherein the graphic data elements include graphic elements and the actual configuration values corresponding to the graphic elements. After parsing the graphic data elements in the answer sheet design data source file, the determining module 301 performs the function of determining the actual configuration values of each graphic element in the answer sheet design data source file.
[0055] In some embodiments of this example, the automatic detection device further includes: a determination module, configured to obtain detection item information corresponding to the answer sheet design data source file before parsing the graphic data in the answer sheet design data source file according to the graphic element type to be detected; and determine the corresponding graphic element type to be detected based on the detection item information.
[0056] In some embodiments of this example, the automatic detection device further includes: a first generation module, configured to acquire standard configuration values of different types of graphic elements from the answer sheet design data source file; and generate detection parameter standard templates based on the standard configuration values of different types of graphic elements. After generating the detection parameter standard templates based on the standard configuration values of different types of graphic elements, the acquisition module 302 performs the function of acquiring the detection parameter standard templates of the graphic elements corresponding to the actual configuration values.
[0057] In some embodiments of this example, the automatic detection device further includes: a second generation module, used to determine the type of the answer sheet design data source file, and to determine the total number of answer sheet design data source files of the same type among multiple answer sheet design data source files; and to generate a package of items to be detected based on the type of the answer sheet design data source file and the total number of answer sheet design data source files of the same type.
[0058] In some embodiments of this example, the detection module 303 is specifically used to: match the actual configuration values of graphic elements in all answer sheet design data source files in the test item package based on the standard template of detection parameters corresponding to each test item package.
[0059] In some embodiments of this example, the output module 304 is specifically used to: output a detection result corresponding to the successful detection of the graphic element when the actual configuration value of the graphic element matches the corresponding detection parameter standard template; output a detection result corresponding to the failed detection of the graphic element and the reason for the failed detection when the actual configuration value of the graphic element fails to match the corresponding detection parameter standard template; and highlight the graphic elements that failed the detection in the detected answer sheet design data source file.
[0060] Furthermore, in some embodiments of this example, the output module 304 is also used to: generate graphic element design defect information based on the deviation between the actual configuration value and the standard configuration value in the standard template of the detection parameters for the unqualified graphic elements; and to add the graphic element design defect information to the unqualified graphic elements in the detected answer sheet design data source file.
[0061] It should be noted that the automatic detection method in the first embodiment can be implemented based on the automatic detection device provided in this embodiment. Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process of the automatic detection device described in this embodiment can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0062] According to the automatic detection device provided in this embodiment, the actual configuration values of each graphic element in the answer sheet design data source file are determined; a detection parameter standard template corresponding to the actual configuration values is obtained; wherein, the detection parameter standard template includes multiple mapping relationships between different types of graphic elements and corresponding standard configuration values; the actual configuration values of the graphic elements are matched based on the detection parameter standard template; and the detection result corresponding to the graphic element is output according to the matching result of the actual configuration values of the graphic elements. Through the implementation of this application's solution, graphic element data in the answer sheet design data source file is automatically read, the actual configuration values of each graphic element are detected, and the detection result corresponding to the graphic element is output, thereby easily and quickly identifying design defects in the answer sheet and improving the accuracy of the answer sheet design.
[0063] Please see Figure 4 , Figure 4 An electronic device is provided as a third embodiment of this application. This electronic device can be used to implement the automatic detection method in the foregoing embodiments. For example... Figure 4 As shown, the electronic device mainly includes:
[0064] The system includes a memory 401, a processor 402, and a computer program 403 stored in the memory 401 and executable on the processor 402. The memory 401 and the processor 402 are connected via a bus. When the processor 402 executes the computer program 403, it implements the automatic detection method described in the foregoing embodiments. The number of processors can be one or more.
[0065] The memory 401 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk storage device. The memory 401 is used to store executable program code, and the processor 402 is coupled to the memory 401.
[0066] Furthermore, embodiments of this application also provide a computer-readable storage medium, which may be disposed in the electronic device of the above embodiments, and the computer-readable storage medium may be the aforementioned... Figure 4 The memory in the illustrated embodiment.
[0067] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the automatic detection method described in the foregoing embodiments. Furthermore, the computer-readable storage medium can also be a USB flash drive, a portable hard drive, a read-only memory (ROM), RAM, a magnetic disk, or an optical disk, or any other medium capable of storing program code.
[0068] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0069] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0070] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0071] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned readable storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0072] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0073] 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 of other embodiments.
[0074] The above is a description of the automatic detection method, apparatus and computer-readable storage medium provided in this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. An automatic detection method, characterized in that, include: Determine the actual configuration values of each graphic element in the answer sheet design data source file; Obtain a detection parameter standard template for the graphic elements corresponding to the actual configuration value; wherein, the detection parameter standard template includes multiple mapping relationships between the graphic elements of different types and their corresponding standard configuration values; The actual configuration values of the graphic elements are matched based on the standard template of the detection parameters; Before the step of matching the actual configuration value of the graphic element based on the detection parameter standard template, the method further includes: determining the type of the answer sheet design data source file, and determining the total number of answer sheet design data source files of the same type among multiple answer sheet design data source files; generating a package of items to be detected based on the type of the answer sheet design data source file and the total number of answer sheet design data source files of the same type; The step of matching the actual configuration values of the graphic elements based on the detection parameter standard template includes: matching the actual configuration values of the graphic elements in all the answer sheet design data source files in the test item package based on the detection parameter standard template corresponding to each test item package; Based on the matching result of the actual configuration value of the graphic element, output the detection result corresponding to the graphic element; The step of outputting the detection result corresponding to the graphic element based on the matching result of the actual configuration value of the graphic element includes: When the actual configuration value of the graphic element successfully matches the corresponding standard template of the detection parameter, the detection result corresponding to the graphic element being detected as qualified is output; When the actual configuration value of the graphic element fails to match the corresponding standard template of the detection parameter, a detection result corresponding to the failure of the graphic element detection is output. For the graphic elements that fail the inspection, graphic element design defect information is generated based on the deviation between the actual configuration value and the standard configuration value in the inspection parameter standard template. In the data source file of the tested answer sheet design, the design defect information of the graphic elements is noted in the graphic elements that fail the test, and the graphic elements that fail the test are highlighted. The automatic detection method is implemented during the answer sheet design phase.
2. The automatic detection method as described in claim 1, characterized in that, Before the step of determining the actual configuration values of each graphic element in the answer sheet design data source file, the method further includes: Read the answer sheet design data source file; According to the type of graphic element to be detected, the graphic element data in the answer sheet design data source file is parsed; wherein, the graphic element data includes graphic elements and the actual configuration values corresponding to the graphic elements.
3. The automatic detection method as described in claim 2, characterized in that, Before the step of parsing the graphic data in the answer sheet design data source file according to the type of graphic element to be detected, the method further includes: Obtain the detection item information corresponding to the answer sheet design data source file; The corresponding type of graphic element to be detected is determined based on the detection item information.
4. The automatic detection method as described in claim 1, characterized in that, Before the step of obtaining the detection parameter standard template of the primitive corresponding to the actual configuration value, the method further includes: Obtain the standard configuration values of different types of graphic elements from the answer sheet design data source file; Generate standard templates for detection parameters based on the standard configuration values of the different types of graphic elements.
5. An automatic detection device, characterized in that, include: The determination module is used to determine the actual configuration values of each graphic element in the answer sheet design data source file; The acquisition module is used to acquire the detection parameter standard template of the graphic elements corresponding to the actual configuration value; wherein, the detection parameter standard template includes multiple mapping relationships between the graphic elements of different types and their corresponding standard configuration values; The detection module is used to match the actual configuration values of the graphic elements based on the detection parameter standard template. Before the step of matching the actual configuration values of the graphic elements based on the detection parameter standard template, the module further includes: determining the type of the answer sheet design data source file, and determining the total number of answer sheet design data source files of the same type among multiple answer sheet design data source files; generating a package of items to be detected based on the type of the answer sheet design data source file and the total number of answer sheet design data source files of the same type. The step of matching the actual configuration values of the graphic elements based on the detection parameter standard template includes: matching the actual configuration values of the graphic elements in all the answer sheet design data source files in the test item package based on the detection parameter standard template corresponding to each test item package; The output module is used to output the detection result of the corresponding graphic element based on the matching result of the actual configuration value of the graphic element; The step of outputting the detection result corresponding to the graphic element based on the matching result of the actual configuration value of the graphic element includes: When the actual configuration value of the graphic element successfully matches the corresponding standard template of the detection parameter, the detection result corresponding to the graphic element being detected as qualified is output; When the actual configuration value of the graphic element fails to match the corresponding standard template of the detection parameter, a detection result corresponding to the failure of the graphic element detection is output. For the graphic elements that fail the inspection, graphic element design defect information is generated based on the deviation between the actual configuration value and the standard configuration value in the inspection parameter standard template. In the data source file of the tested answer sheet design, the design defect information of the graphic elements is noted in the graphic elements that fail the test, and the graphic elements that fail the test are highlighted. The automatic detection method is implemented during the answer sheet design phase.
6. An electronic device, characterized in that, include: Memory and processor, wherein: The processor is used to execute computer programs stored in the memory; When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.