Detection method, device and equipment, computer readable storage medium and computer program product
By combining business scenario information and inspection specifications, the design draft is automatically tested, which solves the problem of inaccurate and time-consuming inspection results in the existing technology, and achieves efficient and accurate design quality inspection.
Patent Information
- Application Number
- CN202411793848.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-06-24
AI Technical Summary
The test results of the design draft in the prior art are not accurate enough and take a long time, making it difficult to ensure the uniformity and accuracy of design quality.
By determining the business scenario information and elements corresponding to the document to be detected, combining the first detection specification and the second detection specification, the document to be detected is processed, the target detection results are generated, and the abnormal situation of the design draft is characterized.
Automatic detection is realized, detection efficiency and accuracy are improved, manual participation is reduced, and hidden problems in the design draft can be quickly identified.
Smart Images

Figure CN120196530A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the detection technology in the field of computer technology, and in particular, to a detection method, device, equipment, computer-readable storage medium, and computer program product. Background Art
[0002] Currently, in the process of upstream and downstream collaboration in product design, a relatively complete collaboration process has been established with planning and R & D. However, in the actual implementation process, it is found that it is difficult for designers to output design drafts that meet unified specification standards, and the design quality is difficult to guarantee. To ensure that the design output meets the specification standards, in related technologies, generally, designers with rich experience are required to manually review and audit each version of the design draft; however, the detection results of this artificial detection method in related technologies are not accurate enough and time-consuming. Summary of the Invention
[0003] To solve the above technical problems, embodiments of this application are expected to provide a detection method, device, equipment, computer-readable storage medium, and computer program product, which solve the problems that the detection results of the scheme of artificially detecting design drafts in related technologies are not accurate enough and time-consuming, and improve the detection efficiency.
[0004] The technical solution of this application is implemented as follows:
[0005] A detection method, the method includes:
[0006] Determine the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected; wherein, the document to be detected is used to generate a display interface;
[0007] Determine a first detection specification and a second detection specification; wherein, the first detection specification is for the elements of the document; the second detection specification is for the business scenario;
[0008] Based on the first detection specification and the second detection specification, process the information of the business scenario and the elements in the document to be detected to obtain a target detection result; wherein, the target detection result characterizes the abnormal situation of the document to be detected.
[0009] In the above solution, the processing the information of the business scenario and the elements in the document to be detected based on the first detection specification and the second detection specification to obtain a target detection result includes:
[0010] Process the elements in the document to be detected to obtain processed elements;
[0011] Based on the first detection specification and the second detection specification, detect the processed elements and the information of the business scenario to obtain the target detection result.
[0012] In the above solution, the step of detecting the information of the processed element and the business scenario based on the first detection specification and the second detection specification to obtain the target detection result includes:
[0013] Detecting the processed element based on the first detection specification to obtain a first detection result;
[0014] Detecting the information of the business scenario based on the second detection specification to obtain a second detection result;
[0015] Determining the target detection result based on the first detection result and the second detection result.
[0016] In the above solution, the step of detecting the information of the processed element and the business scenario based on the first detection specification and the second detection specification to obtain the target detection result includes:
[0017] Detecting the information of the business scenario based on the second detection specification;
[0018] When it is determined that the information of the business scenario is normal, determining, based on the business scenario, a first matching rule in the first detection specification that matches each processed element;
[0019] Detecting each processed element based on the first matching detection rule to obtain the target detection result.
[0020] In the above solution, the step of detecting the processed element based on the first detection specification to obtain a first detection result includes:
[0021] Determining a first matching rule in the first detection specification that matches each processed element;
[0022] Detecting each processed element based on the first matching detection rule to obtain the first detection result of each processed element.
[0023] In the above solution, the step of detecting the information of the business scenario based on the second detection specification includes:
[0024] Determining a second matching rule in the second detection specification that matches each business scenario;
[0025] Detecting the information of each business scenario based on the second matching rule.
[0026] In the above solution, the method further includes:
[0027] Determine the historical detection results of the document to be detected;
[0028] Process the historical detection results and the target detection results to obtain the target detection information of the document to be detected; wherein, the target detection information characterizes the correction situation of the document to be detected.
[0029] In the above solution, the method further includes:
[0030] Obtain the update information input by the user based on the target detection results for the first detection specification and the second detection specification;
[0031] Update the first detection specification and the second detection specification based on the update information.
[0032] A detection device, the device includes:
[0033] An acquisition unit, configured to determine the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected; wherein, the document to be detected is used to generate a display interface;
[0034] A determination unit, configured to determine a first detection specification and a second detection specification; wherein, the first detection specification is for the elements of the document; the second detection specification is for the business scenario;
[0035] A processing unit, configured to process the information of the business scenario and the elements in the document to be detected based on the first detection specification and the second detection specification to obtain a target detection result; wherein, the target detection result characterizes the abnormal situation of the document to be detected.
[0036] A detection device, the device includes: a processor, a memory, and a communication bus;
[0037] The communication bus is used to implement the communication connection between the processor and the memory;
[0038] The processor is configured to execute the detection program in the memory to implement the steps of the above detection method.
[0039] A computer-readable storage medium, the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above detection method.
[0040] A computer program product, the computer program product includes a computer program, and the computer program implements the above detection method when executed by a processor.
[0041] The detection method, device, equipment, computer-readable storage medium, and computer program product provided by the embodiments of the present application can determine the information of the business scenario corresponding to the document to be detected for generating the display interface and the elements in the document to be detected, determine the first detection specification and the second detection specification. The first detection specification is for the elements of the document; the second detection specification is for the business scenario; based on the first detection specification and the second detection specification, the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected are processed to obtain the target detection result, and the target detection result characterizes the abnormal situation of the document to be detected. In this way, the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected can be detected according to the determined first detection specification and the second detection specification to obtain the detection result of the document to be detected, without the need for manual participation, and different detection specifications for the elements of the document and for the business scenario are considered, thus solving the problems of inaccurate detection results and time-consuming in the related art of manually detecting design drafts and improving the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a schematic flowchart of a detection method provided by an embodiment of the present application;
[0043] Figure 2 It is a schematic flowchart of another detection method provided by an embodiment of the present application;
[0044] Figure 3 It is a schematic flowchart of yet another detection method provided by the embodiment;
[0045] Figure 4 It is a schematic diagram of the document to be detected in a detection method provided by an embodiment of the present application;
[0046] Figure 5 It is a schematic diagram of the operation interface for detecting the document to be detected in a detection method provided by an embodiment of the present application;
[0047] Figure 6 It is a schematic diagram of a target detection result in a detection method provided by an embodiment of the present application;
[0048] Figure 7 It is a schematic diagram of another target detection result in a detection method provided by an embodiment of the present application;
[0049] Figure 8 It is a schematic structural diagram of a detection device provided by an embodiment of the present application;
[0050] Figure 9 It is a schematic structural diagram of a detection device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0051] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
[0052] It should be understood that the "embodiments of the present application" or "the foregoing embodiments" mentioned throughout the specification mean that specific features, structures, or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, the "in the embodiments of the present application" or "in the foregoing embodiments" that appear throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In various embodiments of the present application, the order of the above processes does not mean the order of execution. The order of execution of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0053] Without special instructions, when performing any step in the embodiments of the present application, it may be the processor of the device that executes the step. It is also worth noting that the embodiments of the present application do not limit the order of execution of the following steps by the device. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the device, that is, when the device executes any step in the following embodiments, it may not depend on the execution of other steps.
[0054] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0055] The embodiments of the present application provide a detection method, which can be applied to a detection device. Referring to Figure 1 as shown, the method may include the following steps:
[0056] Step 101: Determine the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected.
[0057] Among them, the document to be detected is used to generate a display interface.
[0058] In the embodiments of the present application, the document to be detected may refer to a document that needs to be detected for generating various different display interfaces; among them, the document to be detected may refer to a design document for the display interface. In a feasible implementation manner, the document to be detected may refer to a design draft of the display interface (which may also be a display page). The elements in the document to be detected may refer to the elements in the design draft, that is, all components in the display interface generated by the design draft; of course, the elements in the design draft may also refer to all nodes in the design draft. The information of the business scenario corresponding to the document to be detected may be obtained by performing visual recognition on the image of the document to be detected. Specifically, it may be to perform visual recognition on the image of the pre-processed document to be detected to obtain the information of the business scenario; the image of the document to be detected may refer to a picture of the design draft, that is, a picture generated based on the design draft itself, and the information of the business scenario is the description information of the components in the image of the document to be detected. In a feasible implementation manner, pre-processing the image of the document to be detected may be to convert the image of the document to be detected into a static resource.
[0059] In the embodiments of the present application, artificial intelligence (AI) component recognition technology may be used to perform AI visual recognition on the processed image to obtain an AI recognition result; specifically, the AI recognition result may refer to the information of the business scenario included in the processed image. In a feasible implementation manner, the information of the business scenario may refer to the information of the components represented by different component types in the display interface, such as the basic attribute parameters of components such as the size and color of the form.
[0060] It should be noted that the image of the document to be detected and the elements in the document to be detected may be obtained by the terminal and sent to the detection device (i.e., the server); specifically, the user may select the design draft (i.e., the document to be detected) that needs to be inspected on the Mastergo design draft page, and then click the browser plugin or the Mastergo plugin to start processing. The browser plugin or the Mastergo plugin will extract the nodes (i.e., elements) of the design draft and export the picture of the design draft, and send the obtained nodes and pictures to the server.
[0061] Step 102, determine the first detection specification and the second detection specification.
[0062] Among them, the first detection specification is for the elements of the document; the second detection specification is for the business scenario.
[0063] In the embodiments of the present application, the first detection specification and the second detection specification can be specifications determined according to the design specification and the Design to Code (D2C) specification in combination with specific requirements for checking whether there are problems with elements and business scenarios; moreover, the first detection specification and the second detection specification can be pre-determined and stored in the specification detection library on the server side. Among them, the business scenario can characterize the type of component; in a feasible implementation manner, the business scenario can include forms, tables, and various component elements, etc.
[0064] Step 103: Based on the first detection specification and the second detection specification, process the information of the business scenario and the elements in the document to be detected to obtain a target detection result.
[0065] Among them, the target detection result characterizes the abnormal situation of the document to be detected.
[0066] In the embodiments of the present application, the server can detect the information of the business scenario and the elements in the document to be detected according to the first detection specification and the second detection specification to obtain the target detection result of the document to be detected; specifically, the elements in the document to be detected can be processed first, and the first detection specification and the second detection specification can be used to detect the information of the business scenario and the processed information to obtain the target detection result.
[0067] The detection method provided by the embodiments of the present application can detect the information of the business scenario and the elements in the document to be detected according to the determined first detection specification and the second detection specification to obtain the detection result of the document to be detected, without the need for manual participation, and considering different detection specifications for the elements of the document and for the business scenario, thus solving the problems of inaccurate detection results and time-consuming in the related art's manual detection solution for design drafts and improving the detection efficiency.
[0068] Based on the foregoing embodiments, the embodiments of the present application provide a detection method. Referring to Figure 2 as shown, the method may include the following steps:
[0069] Step 201: The detection device determines the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected.
[0070] Among them, the document to be detected is used to generate a display interface.
[0071] Step 202: The detection device determines the first detection specification and the second detection specification.
[0072] Among them, the first detection specification is for the elements of the document; the second detection specification is for the business scenario.
[0073] Step 203: The detection device processes the elements in the document to be detected to obtain processed elements.
[0074] In the embodiment of the present application, the elements in the document to be detected can be processed according to certain requirements; specifically, the elements in the document to be detected can be preprocessed so that the obtained processed elements meet certain requirements. In a feasible implementation manner, redundant information in the elements of the document to be detected is removed for subsequent detection of the document to be detected.
[0075] Step 204: The detection device detects the processed elements and the information of the business scenario based on the first detection specification and the second detection specification to obtain a target detection result.
[0076] In the embodiment of the present application, the processed elements can be detected using the first detection specification, and the information of the business scenario can be detected using the second detection specification, and finally the target detection result of the design draft is obtained. It should be noted that the processed elements and the information of the business scenario can be detected separately, or the processed elements can be detected after it is detected that the information of the business scenario is normal.
[0077] It should be noted that the descriptions of the same steps and the same content in this embodiment and other embodiments can refer to the descriptions in other embodiments, and will not be repeated here.
[0078] The detection method provided by the embodiment of the present application can detect the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected according to the determined first detection specification and second detection specification, obtain the detection result of the document to be detected, without manual participation, and takes into account different detection specifications for the elements of the document and for the business scenario, thus solving the problems of inaccurate detection results and time consumption in the related art of manually detecting the design draft, and improving the detection efficiency.
[0079] Based on the foregoing embodiments, an embodiment of the present application provides a detection method. Referring to Figure 3 as shown, the method may include the following steps:
[0080] Step 301: The detection device determines the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected.
[0081] Among them, the document to be detected is used to generate a display interface.
[0082] Step 302: The detection device determines the first detection specification and the second detection specification.
[0083] Among them, the first detection specification is for the elements of the document; the second detection specification is for the business scenario.
[0084] In the embodiments of the present application, the business scenarios targeted by different design drafts can be diverse. For example, for buttons, there are button specifications, so a single button can be inspected according to the button specifications. However, when multiple buttons are arranged horizontally and combined into a button group, there are also spacing specification requirements (i.e., the second detection specification) between these buttons. Here, the button group is a business scenario. For components such as input boxes and dropdown boxes, there are their own design specifications, and these individual components can be inspected using the corresponding component specification requirements. However, when components and elements such as input boxes, dropdown boxes, and text jointly form a form, there are spacing and other specification requirements between these input boxes, dropdown boxes, and text. Here, the form is a business scenario, and there are corresponding specification requirements (i.e., the second detection specification) in this business scenario.
[0085] Step 303: The detection device processes the elements in the document to be detected to obtain a processed image and processed elements.
[0086] It should be noted that after step 303, step 304-306 can also be executed, or step 307-309 can also be executed.
[0087] Step 304: The detection device detects the processed elements based on the first detection specification to obtain a first detection result.
[0088] In the embodiments of the present application, the first detection specification may include multiple rules, such as rule A, rule B, and other rules. Specifically, the rules corresponding to the processed elements in the first detection specification can be used to detect the processed elements to obtain the first detection result. That is to say, the first detection result can include the detection results of all elements in the design draft. The first detection result can refer to whether there are problems with the design of each element in the design draft.
[0089] In the embodiments of the present application, step 304 can be implemented in the following manner:
[0090] Step 304a: The detection device determines the first matching rule in the first detection specification that matches each processed element.
[0091] Among them, the specification detection library can screen the first matching rules that match each element in the design draft from the first detection specification stored by itself. That is to say, the first matching rule is the standard rule corresponding to each element in the design draft. It should be noted that the first detection specification may include the detection rules for all elements.
[0092] Step 304b: The detection device detects each processed element based on the first matching detection rule to obtain the first detection result of each processed element.
[0093] Among them, the specification detection library can detect each processed element by using the first matching rule that matches each element in the design draft, and obtain the first detection result of each processed element; that is to say, the detection results of all elements in the design draft can be obtained, that is, the first detection result can include multiple ones.
[0094] Step 305: The detection device detects the information of the business scenario based on the second detection specification, and obtains the second detection result.
[0095] In the embodiment of the present application, the second detection specification may include multiple rules, such as rule C, rule D, and other rules. Specifically, the rules corresponding to the business scenario in the second detection specification can be used to detect the information of the business scenario to obtain the second detection result; that is to say, the second detection result can include the detection results of the information of all business scenarios of the picture of the design draft; the second detection result can refer to whether there are problems in the design of all business scenarios in the design draft.
[0096] In the embodiment of the present application, step 305, "detecting the information of the business scenario based on the second detection specification", can be implemented in the following manner:
[0097] Step 305a: The detection device determines the second matching rule in the second detection specification that matches each business scenario.
[0098] Among them, the specification detection library can screen the second matching rules that match each business scenario in the picture of the design draft from the second detection specification stored by itself; that is to say, the second matching rule is the standard rule corresponding to each business scenario in the design draft. It should be noted that the second detection specification may include the detection rules of all possible business scenarios.
[0099] Step 305b: The detection device detects the information of each business scenario based on the second matching rule.
[0100] Among them, the specification detection library can detect the information of each business scenario by using the second matching rule that matches each business scenario in the picture of the design draft, and obtain the second detection result of each business scenario; that is to say, the detection results of the information of all business scenarios in the design draft can be obtained, that is, the second detection result can include multiple ones.
[0101] In the embodiment of the present application, the set of components targeted by each business scenario can be regarded as a new element.
[0102] It should be noted that there may be no sequence difference in the execution order between step 304 and step 305; specifically, the execution order of step 304 and step 305 can depend on the settings in the specification detection library.
[0103] Step 306: The detection device determines a target detection result based on the first detection result and the second detection result.
[0104] In the embodiment of the present application, after obtaining multiple first detection results and multiple second detection results, the specification detection library can merge the multiple first detection results and the second detection results according to the first mapping relationship between the elements and the detection results and the second mapping relationship between the service scenarios and the detection results to obtain the final target detection result. Specifically, the results in the second detection result related to the elements targeted by the first detection result can be stored in the first mapping relationship (that is, the problem summaries of different rules for the same element are grouped together); finally, the target detection result stored according to the first mapping relationship and the target detection result stored according to the second mapping relationship are generated.
[0105] In addition, the obtained target detection result can be displayed so that relevant personnel can process the problems and perform corresponding operations. It should be noted that the target detection result can be displayed on the corresponding design platform where the design draft is generated; for example, it can be displayed on the corresponding interface of the Mastergo platform.
[0106] It should be noted that Step 304, Step 305, and Step 306 can all be implemented through the specification detection library in the server; that is, the information of the processed elements and the service scenarios can be input into the specification detection library, and the specification detection library can detect the information of the corresponding processed elements and service scenarios according to the stored first detection specification and second detection specification respectively to obtain the first detection result and the second detection result, and perform a merging process on the first detection result and the second detection result to obtain the target detection result. Among them, the first detection rule and the second detection rule are loaded in the form of plugins, so in the future, different design specifications only need to focus on the specific implementation of the rules.
[0107] Step 307: The detection device detects the information of the service scenario based on the second detection specification.
[0108] It should be noted that the detection of the information of the service scenario based on the second detection specification is the same as the implementation process in Step 305 described above. For specific descriptions, reference can be made to the description of Step 305 above.
[0109] Step 308: When it is determined that the information of the service scenario is normal, the detection device determines a first matching rule matching each processed element from the first detection specification based on the service scenario.
[0110] In the embodiments of the present application, when there is no abnormality in the information of the business scenario of the document to be detected, it indicates that the information of the business scenario of the document to be detected complies with the second detection specification. At this time, the first matching rule that conforms to the business scenario and matches the element can be determined from the first detection specification.
[0111] Step 309: The detection device performs detection on each processed element based on the first matching detection rule to obtain a target detection result.
[0112] In the embodiments of the present application, the detection device can use the first matching rule to detect each processed element to obtain a detection result for each processed element, and merge the detection results of each processed element to obtain a final target detection result.
[0113] In other embodiments of the present application, if the document to be detected can refer to the design draft to be detected as shown in Figure 4 ; then the design draft to be detected can be selected in the left window of the interface as shown in Figure 5 and the start detection button can be clicked to detect the design draft to be detected by adopting the solution of the present application; finally, the obtained target detection result can be displayed as shown in Figure 6 . It should be noted that after the detection of the design draft to be detected is completed, if there are no problems in the design draft to be detected, the display interface as shown in Figure 7 can be presented.
[0114] In other embodiments of the present application, the method may further include the following steps:
[0115] Step 310: The detection device determines the historical detection result of the document to be detected.
[0116] Step 311: The detection device processes the historical detection result and the target detection result to obtain the target detection information of the document to be detected.
[0117] Among them, the target detection information characterizes the correction situation of the document to be detected.
[0118] In the embodiments of the present application, the historical detection result may refer to the detection result obtained after the previous detection of the document to be detected; specifically, the historical detection result can be obtained as the detection result of the document to be detected generated at a time before the current time. The server can compare the historical detection result and the target detection result to obtain the target detection information about the correction situation of the document to be detected. It should be noted that the target detection information may include: whether the problems newly appeared in the target detection result of the document to be detected compared with the historical detection result, whether the problems appeared in the historical detection result, and whether the problems detected in the historical detection result have been repaired, etc.
[0119] Step 312: The detection device obtains the update information input by the user for the first detection specification and the second detection specification based on the target detection result.
[0120] In the embodiments of the present application, designers or relevant technical personnel can analyze the obtained target detection result, and based on the analysis result, some update information for updating the first detection specification and the second detection specification can be input. Specifically, the update information can be determined by designers or relevant technical personnel after further checking the target detection result according to the document to be detected.
[0121] Step 313: The detection device updates the first detection specification and the second detection specification based on the update information.
[0122] In the embodiments of the present application, relevant rules in the first detection specification and the second detection specification can be corrected according to the input update information, so that the updated first detection specification and the updated second detection specification are more standard and correct, thereby ensuring that the obtained detection result is more accurate. In addition, the detection scheme for the design draft provided in the present application is very simple to implement. Only need to select the design draft to be inspected and click to start the inspection, then the inspection of the design draft can be automatically completed. Traditional manual inspection takes a long time because each node needs to be clicked and the design elements need to be viewed. Moreover, the more content there is in the design draft, the longer it takes. While the scheme of the present application can basically complete the inspection of the design draft within 3 - 10 seconds. And for many very hidden design problems in the design draft, such as hidden design nodes, redundant transparent design nodes, etc., the scheme of the present application will inspect all nodes of the entire design draft, making all these problematic design nodes that are difficult to be discovered manually surface, avoiding the situation of missed inspection.
[0123] It should be noted that for the descriptions of the same steps and the same content in this embodiment and other embodiments, reference can be made to the descriptions in other embodiments, and details will not be repeated here.
[0124] The detection method provided by the embodiments of the present application can detect the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected according to the determined first detection specification and the second detection specification, obtain the detection result of the document to be detected, without the need for manual participation, and considers different detection specifications for the elements of the document and for the business scenario, thereby solving the problems of inaccurate detection results and time consumption in the scheme of manually detecting the design draft in the related art, and improving the detection efficiency.
[0125] Based on the foregoing embodiments, the embodiments of the present application provide a detection device, which can be applied to Figures 1 - 3 the detection method provided by the corresponding embodiment, with reference to Figure 8As shown, the detection device 4 may include: an acquisition unit 41, a determination unit 42, and a processing unit 43, where:
[0126] The acquisition unit 41 is configured to determine information about the business scenario corresponding to the document to be detected and elements in the document to be detected; wherein, the document to be detected is for generating a display interface;
[0127] The determination unit 42 is configured to determine a first detection specification and a second detection specification; wherein, the first detection specification is for the elements of the document; the second detection specification is for the business scenario;
[0128] The processing unit 43 is configured to process the information about the business scenario and the elements in the document to be detected based on the first detection specification and the second detection specification to obtain a target detection result; wherein, the target detection result characterizes an abnormal situation of the document to be detected.
[0129] In other embodiments of the present application, the processing unit 43 is further configured to perform the following steps:
[0130] Process the elements in the document to be detected to obtain processed elements;
[0131] Detect the processed elements and the information about the business scenario based on the first detection specification and the second detection specification to obtain a target detection result.
[0132] In other embodiments of the present application, the processing unit 43 is further configured to perform the following steps:
[0133] Detect the information about the business scenario based on the second detection specification;
[0134] When it is determined that there is no abnormality in the information about the business scenario, determine a first matching rule matching each of the processed elements from the first detection specification based on the business scenario;
[0135] Detect each processed element based on the first matching detection rule to obtain a target detection result.
[0136] In other embodiments of the present application, the processing unit 43 is further configured to perform the following steps:
[0137] Detect the processed elements based on the first detection specification to obtain a first detection result;
[0138] Detect the information about the business scenario based on the second detection specification to obtain a second detection result;
[0139] Determine the target detection result based on the first detection result and the second detection result.
[0140] In other embodiments of the present application, the processing unit 43 is further configured to perform the following steps:
[0141] Determine the first matching rule in the first detection specification that matches each processed element;
[0142] Detect each processed element based on the first matching detection rule to obtain the first detection result of each processed element.
[0143] In other embodiments of the present application, the processing unit 43 is further configured to perform the following steps:
[0144] Determine the second matching rule in the second detection specification that matches each service scenario;
[0145] Detect the information of each service scenario based on the second matching rule.
[0146] In other embodiments of the present application, the processing unit 43 is further configured to perform the following steps:
[0147] Determine the historical detection result of the document to be detected:
[0148] Process the historical detection result and the target detection result to obtain the target detection information of the document to be detected; wherein, the target detection information characterizes the correction situation of the document to be detected.
[0149] In other embodiments of the present application, the processing unit 43 is further configured to perform the following steps:
[0150] Obtain the update information input by the user for the first detection specification and the second detection specification based on the target detection result;
[0151] Update the first detection specification and the second detection specification based on the update information.
[0152] It should be noted that the specific descriptions of the steps performed by each unit can be referred to Figures 1 - 3 in the detection method provided in the corresponding embodiment, which will not be elaborated here.
[0153] The detection device provided by the embodiments of the present application can detect the information of the service scenario corresponding to the document to be detected and the elements in the document to be detected according to the determined first detection specification and second detection specification, obtain the detection result of the document to be detected, without manual participation, and consider different detection specifications for the elements of the document and for the service scenario, thereby solving the problems of inaccurate detection results and time consumption in the manual detection scheme for design drafts in the related art, and improving the detection efficiency.
[0154] Based on the foregoing embodiments, the embodiments of the present application provide a detection device, which can be applied to Figures 1 - 3 in the detection method provided in the corresponding embodiment, refer to Figure 9As shown, the detection device 5 may include: a processor 51, a memory 52, and a communication bus 53, where:
[0155] The communication bus 53 is used to implement a communication connection between the processor 51 and the memory 52;
[0156] The processor 51 is used to execute the detection program in the memory 52 to implement the following steps:
[0157] Determine the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected; wherein, the document to be detected is used to generate a display interface;
[0158] Determine a first detection specification and a second detection specification; wherein, the first detection specification is for the elements of the document; the second detection specification is for the business scenario;
[0159] Based on the first detection specification and the second detection specification, process the information of the business scenario and the elements in the document to be detected to obtain a target detection result; wherein, the target detection result characterizes the abnormal situation of the document to be detected.
[0160] In other embodiments of the present application, the processor 51 is used to execute the detection program in the memory 52. Based on the first detection specification and the second detection specification, process the information of the business scenario and the elements in the document to be detected to obtain a target detection result, so as to implement the following steps:
[0161] Process the elements in the document to be detected to obtain processed elements;
[0162] Based on the first detection specification and the second detection specification, detect the processed elements and the information of the business scenario to obtain a target detection result.
[0163] In other embodiments of the present application, the processor 51 is used to execute the detection program in the memory 52. Based on the first detection specification and the second detection specification, detect the processed elements and the information of the business scenario to obtain a target detection result, so as to implement the following steps:
[0164] Detect the processed elements based on the first detection specification to obtain a first detection result;
[0165] Detect the information of the business scenario based on the second detection specification to obtain a second detection result;
[0166] Based on the first detection result and the second detection result, determine the target detection result.
[0167] In other embodiments of the present application, the processor 51 is configured to execute the detection program in the memory 52. Based on the first detection specification and the second detection specification, the processor detects the information of the processed elements and the business scenarios to obtain a target detection result, so as to implement the following steps:
[0168] Detect the information of the business scenarios based on the second detection specification;
[0169] When it is determined that the information of the business scenarios is normal, determine the first matching rules matching each of the processed elements from the first detection specification based on the business scenarios;
[0170] Detect each processed element based on the first matching detection rules to obtain a target detection result.
[0171] In other embodiments of the present application, the processor 51 is configured to execute the detection program in the memory 52. Based on the first detection specification, the processor detects the processed elements to obtain a first detection result, so as to implement the following steps:
[0172] Determine the first matching rules matching each of the processed elements in the first detection specification;
[0173] Detect each processed element based on the first matching detection rules to obtain the first detection result of each processed element.
[0174] In other embodiments of the present application, the processor 51 is configured to execute the detection program in the memory 52. Based on the second detection specification, the processor detects the information of the business scenarios, so as to implement the following steps:
[0175] Determine the second matching rules matching each of the business scenarios in the second detection specification;
[0176] Detect the information of each business scenario based on the second matching rules.
[0177] In other embodiments of the present application, the processor 51 is configured to execute the detection program in the memory 52, and can also implement the following steps:
[0178] Determine the historical detection results of the document to be detected:
[0179] Process the historical detection results and the target detection results to obtain the target detection information of the document to be detected; wherein, the target detection information represents the correction situation of the document to be detected.
[0180] In other embodiments of the present application, the processor 51 is configured to execute the detection program in the memory 52, and can also implement the following steps:
[0181] Obtain the update information input by the user for the first detection specification and the second detection specification based on the target detection result;
[0182] Update the first detection specification and the second detection specification based on the updated information.
[0183] It should be noted that for the specific description of the steps executed by the processor, reference can be made to Figures 1 - 3 the detection method provided in the corresponding embodiment, which will not be elaborated here.
[0184] The detection device provided by the embodiments of the present application can detect the information of the business scenario corresponding to the document to be detected and the elements in the document to be detected according to the determined first detection specification and the second detection specification, obtain the detection result of the document to be detected, without the need for manual participation, and consider different detection specifications for the elements of the document and for the business scenario, thereby solving the problems of inaccurate detection results and time consumption in the manual detection solution in the related art and improving the detection efficiency.
[0185] Based on the foregoing embodiments, an embodiment of the present application provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figures 1 - 3 the steps of the detection method provided in the corresponding embodiment.
[0186] Based on the foregoing embodiments, an embodiment of the present application provides a computer program product, including a computer program, which can be executed by the processor 51 to complete Figures 1 - 3 the steps of the detection method provided in the corresponding embodiment.
[0187] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0188] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data transmission devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data transmission devices generate for implementing in the process Figure 1 one process or multiple processes and / or blocksFigure 1 means for the functions specified in one or more boxes.
[0189] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data transmission device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction means that implements the functions specified in one Figure 1 process or more processes and / or boxes Figure 1 or more boxes.
[0190] These computer program instructions can also be loaded onto a computer or other programmable data transmission device, such that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one Figure 1 process or more processes and / or boxes Figure 1 or more boxes.
[0191] As described above, it is only the preferred embodiment of the present application, and is not used to limit the protection scope of the present application.
Claims
1. A detection method, characterized in that: The method comprises: Determine information of a business scenario corresponding to a document to be detected and elements in the document to be detected; wherein the document to be detected is used to generate a display interface; Determine a first detection specification and a second detection specification; wherein the first detection specification is for elements of a document; and the second detection specification is for a business scenario; Based on the first detection specification and the second detection specification, the information of the business scenario and the elements in the document to be detected are processed to obtain a target detection result; wherein the target detection result represents an abnormality of the document to be detected.
2. The method according to claim 1, characterized in that The processing of the information of the business scenario and the elements in the document to be detected based on the first detection specification and the second detection specification to obtain a target detection result includes: Processing the elements in the document to be detected to obtain processed elements; Based on the first detection specification and the second detection specification, the processed element and the information of the business scenario are detected to obtain the target detection result.
3. The method according to claim 2, characterized in that The detecting the processed element and the information of the business scenario based on the first detection specification and the second detection specification to obtain the target detection result includes: Detecting the processed element based on the first detection specification to obtain a first detection result; Detect the information of the business scenario based on the second detection specification to obtain a second detection result; The target detection result is determined based on the first detection result and the second detection result.
4. The method according to claim 2, characterized in that: The detecting the processed element and the information of the business scenario based on the first detection specification and the second detection specification to obtain the target detection result includes: Detecting the information of the business scenario based on the second detection specification; When it is determined that there is no abnormality in the information of the business scenario, determining a first matching rule matching each of the processed elements from the first detection specification based on the business scenario; Each of the processed elements is detected based on the first matching detection rule to obtain the target detection result.
5. The method according to claim 3, characterized in that: The detecting the processed element based on the first detection specification to obtain a first detection result includes: Determining a first matching rule in the first detection specification that matches each of the processed elements; Each processed element is detected based on the first matching detection rule to obtain a first detection result of each processed element.
6. The method according to claim 3 or 4, characterized in that: Detecting the information of the business scenario based on the second detection specification includes: Determine a second matching rule in the second detection specification that matches each of the business scenarios; The information of each business scenario is detected based on the second matching rule.
7. The method according to claim 1, characterized in that The method further comprises: Determine the historical detection result of the document to be detected; The historical detection results and the target detection results are processed to obtain target detection information of the document to be detected; wherein the target detection information represents the correction status of the document to be detected.
8. The method according to claim 1, characterized in that The method further comprises: Acquire update information for the first detection specification and the second detection specification input by a user based on the target detection result; The first detection specification and the second detection specification are updated based on the update information.
9. A detection device, characterized in that: The device comprises: An acquisition unit, used to determine information of a business scenario corresponding to a document to be detected and elements in the document to be detected; wherein the document to be detected is used to generate a display interface; A determination unit, configured to determine a first detection specification and a second detection specification; wherein the first detection specification is for an element of a document; and the second detection specification is for a business scenario; A processing unit is used to process the information of the business scenario and the elements in the document to be detected based on the first detection specification and the second detection specification to obtain a target detection result; wherein the target detection result represents an abnormal situation of the document to be detected.
10. A detection device, characterized in that: The device comprises: a processor, a memory and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the detection program in the memory to implement the steps of the detection method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the detection method according to any one of claims 1 to 8.
12. A computer program product, comprising a computer program, characterized in that: When the computer program is executed by a processor, the computer program implements the detection method according to any one of claims 1 to 8.