Typesetting error checking method and device, electronic device, and storage medium
Through automatic typesetting and error checking of display pages in the online education industry, the problem of user perception and trust caused by test question typesetting errors has been solved, and efficient and comprehensive typesetting inspection has been achieved.
Patent Information
- Application Number
- CN202011087848.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-12
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2040-10-12
AI Technical Summary
In the online education industry, when the test questions are imported from the database, the layout may be errors, resulting in a decrease in user perception and a decrease in trust. The existing manual inspection methods are inefficient and have limited scope, making it difficult to fully detect typesetting errors.
Provide a typography error check method. By screenshots of the display page under the preset resolution, the actual feature data of the display object is extracted, and compared with the specified feature data to determine the typography error.
The automatic typesetting error was achieved, replaced by manual inspection, expanded the scope of typography, and avoided missing typesetting errors.
Smart Images

Figure CN112215284B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a typesetting error checking method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] In the online education industry, test questions can often be displayed to users through web pages. When test questions are imported from the database to the web page, the layout may be wrong. Incorrect test question layout will seriously affect the user's perception of the company and even reduce the user's trust. Therefore, it is necessary to check the layout of the test questions. Currently, manual sampling checks are performed on the web pages that display the test questions. If any layout errors are found, they are fed back to the relevant person in charge, who will make adjustments. However, the manual inspection method is very inefficient, and the scope of the sampling inspection is limited, and a large number of layout errors will still be missed. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a typesetting error checking method and device, an electronic device, and a computer-readable storage medium for realizing automatic typesetting error checking.
[0004] On the one hand, the present application provides a typesetting error checking method, comprising:
[0005] Taking a screenshot of the displayed page at a preset base resolution to obtain a page image;
[0006] Extracting actual feature data corresponding to each configuration item of each display object in the page image;
[0007] For any display object in the page image, determining whether actual feature data corresponding to any configuration item in the display object is consistent with specified feature data corresponding to the configuration item;
[0008] If they are inconsistent, it is determined that there is an error in the layout of the displayed page.
[0009] In some possible implementations, taking a screenshot of the displayed page at a preset reference resolution to obtain a page image includes:
[0010] selecting at least one base resolution from a plurality of candidate base resolutions;
[0011] The displayed page is captured at the at least one reference resolution by using a capture tool to obtain at least one page image.
[0012] In some possible implementations, the screenshot tool includes puppeteer and nightmare.
[0013] In some possible implementations, the determining whether the actual feature data corresponding to any configuration item in the display object is consistent with the specified feature data corresponding to the configuration item includes:
[0014] It is determined whether an error between actual feature data corresponding to any configuration item in the display object and specified feature data corresponding to the configuration item is greater than a set threshold.
[0015] In some possible implementations, after determining whether the actual feature data corresponding to any configuration item in the display object is consistent with the specified feature data corresponding to the configuration item, the method further includes:
[0016] Adding a true or false mark to the judgment result; wherein the true or false mark indicates whether the judgment result is correct or false;
[0017] Determine the error rate based on the correct and incorrect marks of all judgment results, and determine whether the error rate exceeds a preset error rate threshold;
[0018] If so, a prompt message is sent indicating that the error checking function is abnormal.
[0019] In some possible implementations, the corresponding relationship between the reference resolution, the configuration items, and the specified characteristic data are all stored in a configuration file.
[0020] In some possible implementations, after determining that there is an error in the display page layout, the method further includes:
[0021] Send a prompt message for typographical errors.
[0022] On the other hand, the present application also provides a typesetting error checking device, comprising:
[0023] A screenshot module is used to take a screenshot of the displayed page at a preset reference resolution to obtain a page image;
[0024] An extraction module, used for extracting actual feature data corresponding to each configuration item of each display object in the page image;
[0025] A judgment module, used for judging, for any display object in the page image, whether actual feature data corresponding to any configuration item in the display object is consistent with specified feature data corresponding to the configuration item;
[0026] The determination module is used to determine that there is an error in the layout of the displayed page if there is any inconsistency.
[0027] Furthermore, the present application also provides an electronic device, the electronic device comprising:
[0028] processor;
[0029] a memory for storing processor-executable instructions;
[0030] Wherein, the processor is configured to execute the above-mentioned typesetting error checking method.
[0031] In addition, the present application also provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by a processor to complete the above-mentioned typesetting error checking method.
[0032] In an embodiment of the present application, a screenshot of the display page is taken at a reference resolution to obtain a page image, and actual feature data corresponding to each configuration item of each display object can be extracted from the page image, and the actual feature data corresponding to each configuration item is compared with the specified feature data to see if they are consistent; when the actual feature data of any configuration item of any display object is different from the specified feature data, it can be determined that the display object has a layout error; this method can replace the manual inspection method, expand the scope of layout inspection, and avoid missing layout errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings required for use in the embodiments of the present application are briefly introduced below.
[0034] Figure 1 A schematic diagram of an application scenario of a typesetting error checking method provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;
[0036] Figure 3 A schematic diagram of a flow chart of a typesetting error checking method provided in an embodiment of the present application;
[0037] Figure 4 A flowchart of a verification typesetting error checking method provided in an embodiment of the present application;
[0038] Figure 5 A block diagram of a typesetting error checking device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0039] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0040] Similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0041] Figure 1 Schematic diagram of application scenarios of the typesetting error checking method provided in the embodiment of the present application. Figure 1 As shown, the application scenario includes a server 30 and a client 20. The server 30 may be a server, a server cluster or a cloud computing center. The server 30 may check the display page (e.g., a web page displaying test questions) and send an alarm message to the client 20 if it is determined that there is a typesetting error. The client 20 may be a smart device such as a smart phone, a tablet computer, a personal host, etc., for receiving the alarm message sent by the server 30.
[0042] like Figure 2 As shown, this embodiment provides an electronic device 1, including: at least one processor 11 and a memory 12, Figure 2 A processor 11 is taken as an example. The processor 11 and the memory 12 are connected via a bus 10. The memory 12 stores instructions that can be executed by the processor 11. The instructions are executed by the processor 11 so that the electronic device 1 can execute all or part of the process of the method in the following embodiment. In some possible implementations, the electronic device 1 can be the above-mentioned server 30.
[0043] The memory 12 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.
[0044] The present application also provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by the processor 11 to complete the typesetting error checking method provided by the present application.
[0045] See also Figure 3 , is a flow chart of a typesetting error checking method provided in an embodiment of the present application, such as Figure 3 As shown, the method may include the following steps 310 to 340.
[0046] Step 310: Take a screenshot of the displayed page at a preset reference resolution to obtain a page image.
[0047] The display page may be a page for displaying content, such as a web page, a local document, or a display page of an application software, and the display page includes a display object. In some possible implementations, the display page may be a test question web page displayed on an electronic device (such as a server, etc.), and the display object is a test question on the test question web page, including text information, chart information, and symbol information, etc.
[0048] In some possible implementations, the text information includes texts in multiple languages, such as Chinese text, English text, Japanese text, etc., or includes mixed texts of multiple languages, which will not be described in detail.
[0049] Base Resolution (BR) is the resolution set when creating a display page, or the resolution with the best display effect for the display page, such as the resolution that best meets the public's aesthetic taste when displayed on a certain terminal device.
[0050] In some possible implementations, different reference resolutions may be set for different terminal devices, for example, different reference resolutions may be set for mobile phones, tablet computers, and computers to improve user experience.
[0051] That is to say, when checking the layout of the display page on the server, you can pre-set a variety of benchmark resolutions corresponding to the requirements of different terminal devices, and then display and view each benchmark resolution. Only after confirming that the display page at each benchmark resolution or one or more (two or more) pre-required benchmark resolutions is displayed normally, can it be determined that this display page can be put online and used normally. For example, the test questions corresponding to this display page can be displayed on the user terminal for use by the user corresponding to the terminal. I will not go into details about this.
[0052] Specifically, the server can take a screenshot of the displayed page at a reference resolution to obtain a page image for determining whether there is a typesetting error. In some possible implementations, the displayed page is a test question web page, and the server that executes the typesetting error checking method of the present application can pre-configure the web page address of the test question web page to be checked, access the test question web page, and take a screenshot to obtain a page image.
[0053] Step 320: extracting actual feature data corresponding to each configuration item of each display object in the page image.
[0054] Among them, the configuration items may include line height, line spacing, character spacing, fill-in-the-blank size, font size, font color, font type, etc., which represent the layout effect of the display object. In some possible implementations, the display object is a test question, and the configuration items may be the distance between the question stem and the page border, the distance between the answer options and the page border, line height, whether the question stem can wrap, the question stem font size, etc., which represent the layout form of the test question.
[0055] The actual feature data is the feature data extracted from the page image, which indicates the actual layout of the current display object. For example, the display object is a test question, and the configuration item is the distance between the question stem and the page border. The corresponding actual feature data may be 8 pixels, indicating that the question stem is 8 pixels away from the page border.
[0056] Each display object has several configuration items. For each display object, the server can extract actual feature data corresponding to each configuration item of the display object from the page image.
[0057] Step 330: For any display object in the page image, determine whether the actual feature data corresponding to any configuration item in the display object is consistent with the specified feature data corresponding to the configuration item.
[0058] It should be noted that each screenshot can obtain a page image, and each page image may include at least one display image, for example, it may include 10 test questions, and each display image (such as a test question) may include at least one configuration item, for example, it may include 6 configuration items, such as character spacing, font size, font color, background color, line spacing, support for horizontal / vertical screen display, etc., which will not be elaborated on.
[0059] Step 340: If not consistent, it is determined that there is an error in the display page layout.
[0060] Among them, the specified characteristic data corresponding to the configuration item is the correct characteristic data corresponding to the configuration item at the base resolution if the display object is correctly typeset. Exemplarily, the display object is a test question, the configuration item is the distance between the question stem and the page border, and the corresponding specified characteristic data is 10 pixels, indicating that at the base resolution, if the test question is correctly typeset, the distance between the question stem and the page border should be 10 pixels. The configuration item is whether the question stem can wrap, and the corresponding specified characteristic data is "yes", indicating that at the base resolution, if the test question is correctly typeset, the question stem will wrap.
[0061] For each display object in the page image, the server determines whether the actual feature data corresponding to each configuration item of the display object is consistent with the specified feature data. On the one hand, if the actual feature data corresponding to all configuration items of the display object are the same as the specified feature data, it can be determined that the display object is correctly laid out. Of course, in some possible implementations, the situation where the actual feature data corresponding to the configuration items above a certain ratio (which can be flexibly set according to actual conditions) is consistent with the specified feature data can also be considered as a correct layout of the display object, which will not be elaborated on.
[0062] On the other hand, if the actual feature data corresponding to any configuration item of the display object is different from the specified feature data, it can be determined that the display object has a typesetting error. Of course, in some possible implementations, the display object is considered to have a typesetting error only when and only when the actual feature data corresponding to a certain (or several) configuration item of the display object is different from the specified feature data. For example, only when the line cannot be wrapped, or the character spacing is not within the set range, or the line spacing is not within the set range, the display object is considered to have a typesetting error. As for changes in font size, font shape, etc., it can be considered that there is no typesetting error, which will not be elaborated.
[0063] Through the process from step 310 to step 340, it is possible to automatically check the layout of the displayed page, replacing manual inspection, thereby greatly expanding the inspection scope and avoiding missing layout errors.
[0064] In some possible implementations, a threshold between actual feature data and specified feature data may be preset for each configuration item. The threshold may be an empirical value used to indicate an acceptable error when determining that the actual feature data is consistent with the specified feature data.
[0065] When the server determines whether the actual feature data corresponding to each configuration item of the display object is consistent with the specified feature data, it can determine whether the error between the actual feature data and the specified feature data is greater than the set threshold. On the one hand, if not, it can be determined that the error between the actual feature data and the specified feature data is within a reasonable range, so the actual feature data and the specified feature data can be considered consistent. On the other hand, if yes, it can be determined that the error between the actual feature data and the specified feature data exceeds a reasonable range, so the actual feature data and the specified feature data can be considered inconsistent.
[0066] In some possible implementations, the server may select at least one benchmark resolution from a plurality of candidate benchmark resolutions when executing step 310, and use a screenshot tool to take a screenshot of the displayed page at the selected benchmark resolution to obtain at least one page image.
[0067] The candidate reference resolution is pre-configured to correspond to the reference resolution of different terminal devices. When the server executes the typesetting error checking method, it selects each candidate reference resolution and takes a screenshot of the display page, so as to realize typesetting error checking for different terminal devices.
[0068] Of course, in order to improve efficiency and save time, you can also prioritize error checking for one or more benchmark resolutions, and it is also feasible to check for less popular resolutions or special resolutions after the product is launched. For example, if a series of test questions are mainly delivered to handheld devices rather than personal computers, you can prioritize the layout and error checking for handheld devices of several common sizes, and for personal computers with large screens, you can perform it last.
[0069] In some possible implementations, the screenshot tool may be puppeteer or nightmare, a tool produced by Google. Of course, it may also be any other tool capable of implementing the screenshot function, which will not be described in detail.
[0070] In this embodiment, the configuration items and designated feature data corresponding to different reference resolutions may be different. Therefore, there are configuration items corresponding to different reference resolutions, and designated feature data corresponding to each configuration item. When the server executes step 320, for each display object in the page image, according to each configuration item corresponding to the selected reference resolution, the server can extract the actual feature data corresponding to the configuration item from the page image.
[0071] In some possible implementations, the server may pre-store a configuration file, and the correspondence between the reference resolution, the configuration item, and the specified feature data may be stored in the configuration file. The server may determine the reference resolution, the configuration item corresponding to the reference resolution, and the specified feature data corresponding to the configuration item from the configuration file.
[0072] In some possible implementations, the server may verify the feasibility of the method before executing the above-mentioned typesetting error checking method. Figure 4 , is a flow chart of a verification typesetting error checking method provided in an embodiment of the present application, such as Figure 4 As shown, it includes steps 410 to 430.
[0073] Step 410: Add a true or false mark to the judgment result; wherein the true or false mark indicates whether the judgment result is correct or false.
[0074] The server can randomly select a display page from the display page for verifying the typesetting error checking method in the present application. In some possible implementations, the display page is a web page, and the server executing the typesetting error checking method in the present application can randomly select some web page addresses from the preconfigured display page web page addresses to access the display test page and take a screenshot of the display test page.
[0075] For the selected display page, the server can execute the layout error checking method of steps 310 to 340 to obtain a judgment result corresponding to each display object, where the judgment result indicates whether the layout of the display object is wrong.
[0076] After judging each display object in the display test page, the server can obtain a correct or incorrect mark for each judgment result. The correct or incorrect mark can be sent to the server through a user terminal (such as a computer, mobile phone, etc.) connected to the server after manually checking the judgment result. Exemplarily, the correct or incorrect mark can include "F" and "T", "F" indicates that the judgment result is wrong, and "T" indicates that the judgment result is correct.
[0077] Step 420: Determine the error rate based on the correct and incorrect marks of all the judgment results, and determine whether the error rate exceeds a preset error rate threshold.
[0078] The error rate threshold is used to indicate the critical point at which the typesetting error checking method is feasible, and can be an empirical value.
[0079] Step 430: If yes, send a prompt message indicating that the error checking function is abnormal.
[0080] After obtaining the correct or incorrect marks of all judgment results, the server calculates the error rate and determines whether the error rate exceeds the error rate threshold. On the one hand, if the error rate threshold is not exceeded, it can be considered that the typesetting error checking method is feasible, and the typesetting error checking method can be directly executed by the pre-configured configuration file in the future. On the other hand, if the error rate threshold is exceeded, it can be considered that the typesetting error checking method is temporarily unreliable, and a prompt message indicating that the error checking function is abnormal can be sent based on the preset first communication method. Among them, the first communication method may include any one of email, text message, voice call, etc. The prompt message can prompt the operator to adjust the typesetting error checking method (for example, modify the configuration file) for subsequent application.
[0081] In some possible implementations, the configuration file includes configuration items corresponding to multiple display object types. In other words, for different types of display objects, the configuration items for verifying whether there is a problem with the typesetting may be different, or even if the configuration items are the same, the specified feature data corresponding to the configuration items may be different. In this case, the configuration items corresponding to multiple display object types are pre-written in the configuration file, and accordingly, the specified feature data corresponding to each configuration item is written.
[0082] In this embodiment, when executing step 320 , the server may determine the display object type of each display object.
[0083] Exemplarily, a display object type table may be configured on the server, and the display object type table includes a mapping relationship between display object serial numbers and display object types. When the server performs a layout check on any display object, it may search the display object type table according to the display object serial number of the display object, thereby determining the display object type of the display object.
[0084] Exemplarily, when accessing the display page, the server can determine the display object type of each display object in the current display page based on the description information in the display page, and record the display object type. When executing step 320, the display object type of the display object to be checked can be determined. In some possible implementations, the display object is a test question, and the description information in the display page can be a subheading before the test question, such as "multiple choice question", "application question", "fill in the blank question", etc., and the server can determine the test question type based on this.
[0085] After determining the display object type, the server may search for several configuration items corresponding to the display object type in the configuration file, and extract actual feature data corresponding to each configuration item from the page image.
[0086] Through the measures of this embodiment, for different types of display objects, the server can determine whether there are typesetting errors based on more targeted configuration items, thereby improving the accuracy of checking typesetting errors.
[0087] In some possible implementations, after determining that any display object has a layout error, the server may send a layout error prompt message based on a preset second communication method. The second communication method may include any one of email, text message, voice call, etc. The prompt message may prompt the operator to rearrange the display object with the layout error.
[0088] Figure 5 is a block diagram of a typesetting error checking device provided by an embodiment of the present invention, such as Figure 5 As shown, the device may include: a screenshot module 510 , an extraction module 520 , a judgment module 530 , and a determination module 540 .
[0089] The screenshot module 510 is used to take a screenshot of the displayed page at a preset reference resolution to obtain a page image;
[0090] An extraction module 520, used to extract actual feature data corresponding to each configuration item of each display object in the page image;
[0091] A judgment module 530 is used to judge, for any display object in the page image, whether the actual feature data corresponding to any configuration item in the display object is consistent with the specified feature data corresponding to the configuration item;
[0092] The determination module 540 is used to determine that there is an error in the display page layout if there is no inconsistency.
[0093] In some possible implementations, the screenshot module 510 is further used to:
[0094] selecting at least one base resolution from a plurality of candidate base resolutions;
[0095] The displayed page is captured at the at least one reference resolution by using a capture tool to obtain at least one page image.
[0096] In some possible implementations, the screenshot tool includes puppeteer and nightmare.
[0097] In some possible implementations, the determination module 530 is further configured to:
[0098] It is determined whether an error between actual feature data corresponding to any configuration item in the display object and specified feature data corresponding to the configuration item is greater than a set threshold.
[0099] In some possible implementations, the device further includes:
[0100] The acquisition module 550 is used to add a true or false mark to the judgment result; wherein the true or false mark indicates whether the judgment result is correct or false;
[0101] The judgment module 530 is further used to determine the error rate according to the correctness and incorrectness marks of all judgment results, and to judge whether the error rate exceeds a preset error rate threshold;
[0102] The alarm module 560 is used to send a prompt message indicating that the error checking function is abnormal if yes.
[0103] In some possible implementations, the corresponding relationship between the reference resolution, the configuration items, and the specified characteristic data are all stored in a configuration file.
[0104] In some possible implementations, the device further includes:
[0105] The alarm module 560 is used to send a prompt message of typesetting errors.
[0106] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned typesetting error checking method, and will not be repeated here.
[0107] In several embodiments provided in the present application, the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0108] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0109] If the function is implemented in the form of a software function 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 the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
Claims
1. A typesetting error checking method, characterized in that: include: Taking a screenshot of a displayed page at a preset reference resolution to obtain a page image includes: selecting at least one reference resolution from a plurality of candidate reference resolutions; taking a screenshot of the displayed page at the at least one reference resolution by a screenshot tool to obtain at least one page image; Extracting actual feature data corresponding to each configuration item of each display object in the page image; wherein the configuration item is a combination of one or more of line height, line spacing, character spacing, filler size, font size, font color and font type; For any display object in the page image, determining whether actual feature data corresponding to any configuration item in the display object is consistent with specified feature data corresponding to the configuration item; If they are inconsistent, it is determined that there is an error in the layout of the displayed page.
2. The method according to claim 1, characterized in that The screenshot tools include puppeteer and nightmare.
3. The method according to claim 1, characterized in that The determining whether the actual feature data corresponding to any configuration item in the display object is consistent with the specified feature data corresponding to the configuration item includes: It is determined whether an error between actual feature data corresponding to any configuration item in the display object and specified feature data corresponding to the configuration item is greater than a set threshold.
4. The method according to claim 1, characterized in that: After determining whether the actual feature data corresponding to any configuration item in the display object is consistent with the specified feature data corresponding to the configuration item, the method further includes: Adding a true or false mark to the judgment result; wherein the true or false mark indicates whether the judgment result is correct or false; Determine the error rate based on the correct and incorrect marks of all judgment results, and determine whether the error rate exceeds a preset error rate threshold; If so, a prompt message is sent indicating that the error checking function is abnormal.
5. The method according to claim 1, characterized in that The corresponding relationship between the base resolution, configuration items, and specified feature data is stored in the configuration file.
6. The method according to claim 1, characterized in that After determining that there is an error in the display page layout, the method further includes: Send a prompt message for typographical errors.
7. A typesetting error checking device, characterized in that: include: A screenshot module is used to take a screenshot of a displayed page at a preset reference resolution to obtain a page image, including: selecting at least one reference resolution from a plurality of candidate reference resolutions; taking a screenshot of the displayed page at the at least one reference resolution by a screenshot tool to obtain at least one page image; An extraction module, used to extract actual feature data corresponding to each configuration item of each display object in the page image; wherein the configuration item is a combination of one or more of line height, line spacing, character spacing, filler size, font size, font color and font type; A judgment module, used for judging, for any display object in the page image, whether actual feature data corresponding to any configuration item in the display object is consistent with specified feature data corresponding to the configuration item; The determination module is used to determine that there is an error in the layout of the displayed page if there is any inconsistency.
8. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to execute the typesetting error checking method described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program can be executed by a processor to complete the typesetting error checking method described in any one of claims 1-6.
Citation Information
Patent Citations
Method and equipment for testing typesetting processing results
CN103092825A
Page detection method, computer-readable storage medium and terminal device
CN109446061A
Screenshot method and device
CN110865857A