Credit reading template auditing method and device, electronic equipment and storage medium
By extracting and matching the target template identification and feature information of the reading template, the existing problem of low manual review efficiency is solved, fast and accurate template review is achieved, and the review efficiency is improved.
Patent Information
- Application Number
- CN202411940298.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-11
AI Technical Summary
The existing method of manually reviewing letter reading templates has the problem of inefficient auditing, which makes the audit process time-consuming and inefficient.
By obtaining the reading template information to be reviewed, extracting the target template identification and template element information, determining the target comparison template information corresponding to the target template identification, and matching the template element information with the target comparison template information to generate the audit result.
It realizes the rapid and accurate review of the review template information of the review template, effectively improving the review efficiency of the reading template.
Smart Images

Figure CN119808747A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a letter reading template review method, device, electronic equipment and storage medium. Background Art
[0002] Yuexin is a communication service that allows users to send and receive rich media messages, such as text, pictures, videos, and voice, through preset entrances. Compared with traditional SMS services, this service provides richer functions and a better experience. The publication of Yuexin usually requires the Yuexin operator to send the edited template to the display platform, and the reviewer of the display platform will review the template, output and display the template that meets the requirements, and return the template that does not meet the requirements.
[0003] As the popularity of Yuexin increases, more and more users are using Yuexin, which means that the display platforms need to review more and more Yuexin templates. Reviewers review hundreds of templates every day, and the template review process is relatively long. In other words, the existing method of manually reviewing Yuexin templates has the problem of low review efficiency. Summary of the invention
[0004] The present application provides a letter reading template review method, device, electronic device and storage medium to solve the problem of low review efficiency in the existing related technology of manual letter reading template review.
[0005] In a first aspect, the present application provides a method for reviewing a letter reading template, characterized in that it includes:
[0006] Get the template information of the letter to be reviewed;
[0007] Extracting the target template identifier and template element information from the pending review template information;
[0008] Determine the target comparison template information corresponding to the target template identifier;
[0009] Matching the template element information with the target comparison element information corresponding to the target comparison template information to obtain matching result information;
[0010] Based on the matching result information, the review result corresponding to the letter review template information to be reviewed is generated.
[0011] Optionally, the determining the target comparison template information corresponding to the target template identifier includes:
[0012] Obtaining a preset template identifier corresponding to at least one preset comparison template information;
[0013] Determine whether the target template identifier is consistent with each of the preset template identifiers;
[0014] When the target template identifier is consistent with the preset template identifier, the preset comparison template information corresponding to the preset template identifier is determined as the target comparison template information.
[0015] Optionally, matching the template element information with the target comparison element information corresponding to the target comparison template information to obtain matching result information includes:
[0016] Extracting first picture element information, first text element information and first button element information from the template element information;
[0017] Extracting second picture element information, second text element information and second button element information from the target comparison element information;
[0018] Performing picture element matching on the first picture element information and the second picture element information to obtain first matching information;
[0019] Performing text element matching on the first text element information and the second text element information to obtain second matching information;
[0020] Perform button element matching on the first button element information and the second button element information to obtain third matching information;
[0021] The matching result information is determined according to the first matching information, the second matching information, and the third matching information.
[0022] Optionally, determining the matching result information according to the first matching information, the second matching information, and the third matching information includes:
[0023] In a case where the first matching information is a picture element match, the second matching information is a text element match, and the third matching information is a button element match, determining a preset matching success result as the matching result information;
[0024] When the first matching information is that the image element does not match, and / or the second matching information is that the text element does not match, and / or the third matching information is that the button element does not match, the preset matching failure result is determined as the matching result information.
[0025] Optionally, performing picture element matching on the first picture element information and the second picture element information to obtain first matching information includes:
[0026] Extracting first picture ratio information and first picture position information from the first picture element information;
[0027] Extracting second picture ratio information and second picture position information from the second picture element information;
[0028] Matching the first picture ratio information with the second picture ratio information to obtain picture ratio matching information;
[0029] Matching the first picture position information with the second picture position information to obtain picture position matching information;
[0030] The first matching information is generated based on the picture ratio matching information and the picture position matching information.
[0031] Optionally, performing button element matching on the first button element information and the second button element information to obtain third matching information includes:
[0032] Extracting first button quantity information from the first button element information;
[0033] Extracting the second button number information from the second button element information;
[0034] Matching the first button number information with the second button number information to obtain button number matching information;
[0035] The third matching information is generated based on the button number matching information.
[0036] Optionally, generating the review result corresponding to the to-be-reviewed letter review template information according to the matching result information includes:
[0037] Determine the matching degree information corresponding to the pending review template information according to the matching result information;
[0038] When the matching degree information meets the preset matching degree, the audit passing result is determined as the audit result;
[0039] In the case that the matching degree information does not meet the preset matching degree, retrial prompt information is output, and the audit result is generated according to the audit operation information corresponding to the retrial prompt information.
[0040] In a second aspect, the present application provides a letter reading template review device, comprising:
[0041] The acquisition module is used to obtain the information of the letter template to be reviewed;
[0042] An extraction module, used to extract the target template identifier and template element information from the pending review template information;
[0043] A determination module, used to determine the target comparison template information corresponding to the target template identifier;
[0044] A matching module, used for matching the template element information with the target comparison element information corresponding to the target comparison template information to obtain matching result information;
[0045] A generation module is used to generate the review result corresponding to the letter review template information to be reviewed based on the matching result information.
[0046] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0047] Memory, used to store computer programs;
[0048] The processor is used to implement the letter reading template review method described in any one of the first aspects when executing the program stored in the memory.
[0049] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the letter reading template review method as described in any one of the first aspects is implemented.
[0050] The embodiment of the present application obtains the letter reading template information to be reviewed, and extracts the target template identifier and template element information from the letter reading template information to be reviewed, determines the target comparison template information corresponding to the target template identifier, matches the template element information with the target comparison element information corresponding to the target comparison template information, obtains the matching result information, and then generates the review result corresponding to the letter reading template information to be reviewed based on the matching result information; thereby, the letter reading template information to be reviewed can be reviewed quickly and accurately, thereby solving the problem of low review efficiency in the existing related technology of manually reviewing letter reading templates, and can effectively improve the review efficiency of letter reading templates. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A flowchart of a letter reading template review method provided in an embodiment of the present application;
[0052] Figure 2 A schematic diagram of an application scenario of a letter reading template review method provided in an embodiment of the present application;
[0053] Figure 3 A schematic diagram of the structure of a letter reading template review device provided in an embodiment of the present application;
[0054] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0056] Figure 1 A flow chart of a letter reading template review method provided in an embodiment of the present application. This method can be applied to one or more electronic devices such as a client and a server. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.
[0057] like Figure 1 As shown, a method for reviewing a letter template provided in an embodiment of the present application may specifically include the following steps:
[0058] Step S110: Obtain the template information of the letter to be reviewed.
[0059] The pending letter review template information may indicate a letter review template that currently needs to be reviewed. The pending letter review template information may be sent by a user or may be actively acquired at regular intervals, and this embodiment does not specifically limit this.
[0060] Step S120: extracting the target template identifier and template element information from the pending review template information.
[0061] Specifically, after obtaining the pending review template information, the target template identifier and template element information can be extracted from the pending review template information, where the target template identifier can represent an identifier used to mark the template to which the pending review template information belongs, and the template element information can represent specific elements included in the pending review template information, such as pictures, text, buttons and other elements.
[0062] It should be noted that, in the process of extracting the target template identifier from the pending letter reading template information in the present embodiment, the template identifier can be directly extracted from the pending letter reading template information, and the template identifier is determined as the target template identifier; or the layout information of the pending letter reading template is extracted from the pending letter reading template information, and the preset template identifier corresponding to the pending letter reading template layout information is determined, and the preset template identifier is determined as the target template identifier, wherein the pending letter reading template layout information can represent the layout of each element included in the pending letter reading template information, such as typesetting distribution, element type and quantity, etc., and the preset template identifier can represent the template identifier corresponding to each type of letter reading template pre-configured, that is, the preset template identifier can be in a one-to-one correspondence with the letter reading template, thereby playing the role of determining the target template identifier corresponding to the pending letter reading template information in real time according to the specific layout of the pending letter reading template information.
[0063] Step S130: Determine the target comparison template information corresponding to the target template identifier.
[0064] Specifically, after obtaining the target template identifier, the target comparison template information corresponding to the target template identifier can be determined, and the target comparison template information can represent a letter reading template pre-configured as an audit standard. Since the types of letter reading are relatively diverse, multiple different types of target comparison template information can be pre-configured, and of course different types of target comparison template information correspond to different target template identifiers.
[0065] Step S140: Match the template element information with the target comparison element information corresponding to the target comparison template information to obtain matching result information.
[0066] Specifically, after determining the target comparison template information, the target comparison element information corresponding to the target comparison template information is obtained, and the target comparison element can represent the element information contained in the standard letter reading template represented by the target comparison template information; thereby, the template element information can be matched with the target comparison element information to obtain matching result information, wherein the matching result information can represent the degree of matching between the template element information and the target comparison element information, such as a percentage matching result or a matching success result, a matching failure result, etc. This embodiment does not make any specific limitation on this.
[0067] like Figure 2 As shown, the left side of the figure is the target comparison template information, and the right side is the target comparison element information corresponding to the target comparison template information.
[0068] Step S150: Generate the review result corresponding to the letter review template information to be reviewed based on the matching result information.
[0069] Specifically, after obtaining the matching result information, an audit result corresponding to the pending letter review template information can be generated based on the matching result information. The audit result can indicate whether the pending letter review template information has passed the audit, that is, the audit result can be an audit failure result indicating that the pending letter review template information has failed the audit, or an audit success result indicating that the pending letter review template information has passed the audit. Of course, the audit result can also indicate whether the audit has passed in other ways, and this embodiment does not make any specific limitations on this.
[0070] It should be noted that, in the process of generating the audit result corresponding to the to-be-examined letter review template information according to the matching result information, the result type corresponding to the matching result information can be determined, the generation strategy corresponding to the result type can be obtained, and the generation strategy can be used to generate the audit result corresponding to the to-be-examined letter review template information in combination with the matching result information, wherein the result type can represent the specific type of the matching result information, such as the percentage matching result type, the pass or fail result type, etc., which is not specifically limited in this embodiment, and the generation strategy can represent the strategy for pre-configuring the generation of the audit result corresponding to the result type, for example, in the case where the result type is the percentage matching result type, the determined generation strategy is "90% is determined to be audit passed, otherwise the audit is determined to be different", at this time, when the matching percentage represented by the matching result information reaches 90%, the audit pass result can be determined as the audit result, and when the matching percentage represented by the matching result information does not reach 90%, the audit failure result can be determined as the audit result. Of course, the above is only an example for illustration, and the results and generation strategies can be adaptively adjusted in specific implementation, which is not specifically limited in this embodiment.
[0071] It can be seen that this embodiment obtains the letter reading template information to be reviewed, and extracts the target template identifier and template element information from the letter reading template information to be reviewed, determines the target comparison template information corresponding to the target template identifier, matches the template element information with the target comparison element information corresponding to the target comparison template information, obtains the matching result information, and then generates the review result corresponding to the letter reading template information to be reviewed based on the matching result information; thereby, the letter reading template information to be reviewed can be reviewed quickly and accurately, thereby solving the problem of low review efficiency in the existing related technology of manually reviewing letter reading templates, and can effectively improve the review efficiency of letter reading templates.
[0072] In an optional embodiment of the present application, step S130 determines the target comparison template information corresponding to the target template identifier, which may specifically include the following steps:
[0073] Obtaining a preset template identifier corresponding to at least one preset comparison template information;
[0074] Determine whether the target template identifier is consistent with each preset template identifier;
[0075] When the target template identifier is consistent with the preset template identifier, the preset comparison template information corresponding to the preset template identifier is determined as the target comparison template information.
[0076] After obtaining the target template identifier, this embodiment can obtain a preset template identifier corresponding to at least one preset comparison template information, wherein the preset comparison template information can represent a pre-configured letter reading template with standard elements, and the preset template identifier can represent an identifier used to mark the preset comparison template information, that is, multiple preset comparison template information can be pre-configured, and each preset comparison template information is configured with its corresponding preset template identifier. Then, the target template identifier can be compared with each preset template identifier to determine whether the target template identifier is consistent with each preset template identifier. In the case that the target template identifier is consistent with the preset template identifier, the preset comparison template information corresponding to the preset template identifier can be determined as the target comparison template information. Therefore, by comparing the preset template identifiers, the preset comparison template information required to review the letter reading template information to be reviewed corresponding to the target template identifier can be accurately determined, thereby improving the review efficiency of the letter reading template.
[0077] It should be noted that, when the target template identifier is inconsistent with each preset template identifier, it means that there is no pre-configured template related to the pending review template information corresponding to the target template identifier. At this time, a preset prompt information can be output, wherein the preset prompt information can be a manual review prompt information or a template abnormality prompt information, wherein the manual review prompt information can represent prompt information for prompting the template reviewer to perform manual review, and the template abnormality prompt information can represent prompt information for prompting the pending review template information to be abnormal, that is, when the target template identifier is inconsistent with each preset template identifier, the manual review prompt information can be used to prompt the reviewer to perform manual review, or the template abnormality prompt information can be used to prompt the corresponding user who uploaded the pending review template information that the uploaded pending review template information has an abnormality. Of course, the above is only an example, and this embodiment does not make specific limitations on this.
[0078] In an optional embodiment of the present application, step S140 matches the template element information with the target comparison element information corresponding to the target comparison template information to obtain matching result information, which may specifically include the following steps:
[0079] Extracting first picture element information, first text element information and first button element information from the template element information;
[0080] Extracting second picture element information, second text element information, and second button element information from the target comparison element information;
[0081] Performing picture element matching on the first picture element information and the second picture element information to obtain first matching information;
[0082] Performing text element matching on the first text element information and the second text element information to obtain second matching information;
[0083] Perform button element matching on the first button element information and the second button element information to obtain third matching information;
[0084] Matching result information is determined according to the first matching information, the second matching information, and the third matching information.
[0085] In the process of matching the template element information with the target comparison element information corresponding to the target comparison template information, the present embodiment can extract the first picture element information, the first text element information and the first button element information from the template element information, wherein the first picture element information can represent the relevant information about the picture element contained in the pending review template information, such as the number of pictures, the proportion of pictures, the position of pictures, etc., the first text element information can represent the relevant information about the text element contained in the pending review template information, such as the number of text words, the text font, etc., and the first button element information can represent the relevant information about the button element contained in the pending review template information, such as the number of buttons, the size of buttons, etc.; the second picture element information, the second text element information and the second button element information can also be extracted from the target comparison element information, wherein the second picture element information can represent the relevant information about the picture element contained in the target comparison element information, such as the number of pictures, the proportion of pictures, the position of pictures, etc., the second text element information can represent the relevant information about the text element contained in the target comparison element information, such as the number of text words, the text font, etc., and the second button element information can represent the relevant information about the button element contained in the target comparison element information, such as the number of buttons, the size of buttons, etc.
[0086] Next, the first picture element information and the second picture element information can be matched for picture elements respectively to obtain first matching information, and the first matching information can represent the information on the degree of matching between the first picture element information and the second picture element information, which can specifically be information such as picture element matching, picture element mismatching, or picture element matching percentage, etc., which is not specifically limited in this embodiment; the first text element information and the second text element information can be matched for text elements to obtain second matching information, and the second matching information can represent the information on the degree of matching between the first text element information and the second text element information, which can specifically be information such as text element matching, text element mismatching, or text element matching percentage, etc., which is not specifically limited in this embodiment; the first button element information and the second button element information can be matched for button elements to obtain third matching information, and the third matching information can represent the information on the degree of matching between the first button element information and the second button element information, which can specifically be information such as button element matching, button element mismatching, or button element matching percentage, which is not specifically limited in this embodiment.
[0087] In addition, it should be noted that in this embodiment, in the process of matching the first text element information with the second text element information to obtain the second matching information,
[0088] In an optional embodiment of the present application, determining the matching result information according to the first matching information, the second matching information, and the third matching information may specifically include the following steps:
[0089] In the case where the first matching information is a picture element match, the second matching information is a text element match, and the third matching information is a button element match, the preset matching success result is the matching result information;
[0090] When the first matching information is that the image element does not match, and / or the second matching information is that the text element does not match, and / or the third matching information is that the button element does not match, the preset matching failure result is determined as the matching result information.
[0091] In this embodiment, matching result information is determined based on the first matching information, the second matching information, and the third matching information. In the process of determining the matching result information, it can be judged whether the first matching information is a picture element match, whether the second matching information is a text element match, and whether the third matching information is a button element match, respectively. Picture element matching can indicate that the matching degree between the first picture element information and the second picture element information reaches a preset degree, text element matching can indicate that the matching degree between the first text element information and the second text element information reaches a preset degree, and button element matching can indicate that the matching degree between the first button element information and the second button element information reaches a preset degree. When the first matching information is a picture element match, the second matching information is a text element match, and the third matching information is a button element match, it means that at this time, the three major elements of picture, text and button between the first picture element information and the second picture element information have reached a preset matching degree, and the successful matching result can be determined as the matching result information; second, when the first matching information is a picture element mismatch, and / or the second matching information is a text element mismatch, and / or the third matching information is a button element mismatch, it means that at this time, there is at least one element between the three major elements of picture, text and button between the first picture element information and the second picture element information that has not reached a preset matching degree, and the failed matching result can be determined as the matching result information.
[0092] Of course, in other embodiments, when the matching percentage indicated by the first matching information reaches the first preset percentage, the matching percentage indicated by the second matching information reaches the second preset percentage, and the matching percentage indicated by the third matching information reaches the third preset percentage, the matching success result can be determined as the matching result information; on the contrary, when the matching percentage indicated by the first matching information does not reach the first preset percentage, and / or the matching percentage indicated by the second matching information does not reach the second preset percentage, and / or the matching percentage indicated by the third matching information does not reach the third preset percentage, the matching failure result can be determined as the matching result information. Of course, other methods for determining the matching result information can also be used, and this embodiment does not specifically limit this.
[0093] In an optional embodiment of the present application, performing picture element matching on the first picture element information and the second picture element information to obtain first matching information may specifically include the following steps:
[0094] Extracting first picture ratio information and first picture position information from the first picture element information;
[0095] Extracting second picture ratio information and second picture position information from the second picture element information;
[0096] Matching the first picture ratio information with the second picture ratio information to obtain picture ratio matching information;
[0097] Matching the first picture position information with the second picture position information to obtain picture position matching information;
[0098] First matching information is generated based on the picture ratio matching information and the picture position matching information.
[0099] In the present embodiment, in the process of performing picture element matching between the first picture element information and the second picture element information to obtain the first matching information, the first picture ratio information and the first picture position information can be extracted from the first picture element information, wherein the first picture ratio information can indicate the picture ratio corresponding to the first picture contained in the first picture element information, such as 1:1, 3:4, etc., and the first picture position information can indicate the position area of the first picture contained in the first picture ratio information in the overall layout corresponding to the to-be-examined letter review template information; the second picture ratio information and the second picture position information can also be extracted from the second picture element information, wherein the second picture ratio information can indicate the picture ratio corresponding to the second picture contained in the second picture element information For example, such as 1:1, 3:4, etc., and the second picture position information can indicate that the second picture contained in the second picture ratio information is in the position area in the overall layout corresponding to the target comparison template information; then the first picture ratio information and the second picture ratio information can be matched respectively to obtain picture ratio matching information, and the first picture position information and the second picture position information can be matched to obtain picture position matching information; wherein the picture ratio matching information can indicate the matching degree between the first picture ratio information and the second picture ratio information, and the picture position matching information can indicate the matching degree between the first picture position information and the second picture position information; then the first matching information can be generated based on the picture ratio matching information and the picture position matching information.
[0100] Specifically, the first matching information may be generated based on the specific states of the image ratio matching information and the image position matching information, for example, respectively determining whether the image ratio matching information is consistent with the image ratio, and determining whether the image position matching information is consistent with the image position. When the image ratio matching information is consistent with the image ratio, and the image position matching information is consistent with the image position, the image element matching may be determined as the first matching information; and when the image ratio matching information is inconsistent with the image ratio, and / or the image position matching information is inconsistent with the image position, the image element mismatch may be determined as the first matching information. Of course, the above is only an example, and this embodiment does not specifically limit this.
[0101] It should be noted that when the first picture element information includes multiple first pictures, the above steps can be performed for each first picture to obtain the first matching information. The specific process is as described above, and this embodiment will not be repeated here.
[0102] In an optional embodiment of the present application, performing button element matching on the first button element information and the second button element information to obtain third matching information may specifically include the following steps:
[0103] Extracting the number of first buttons from the first button element information;
[0104] Extracting the number of second buttons from the second button element information;
[0105] Matching the first button number information with the second button number information to obtain button number matching information;
[0106] Based on the button number matching information, third matching information is generated.
[0107] In the present embodiment, in the process of performing button element matching between the first button element information and the second button element information to obtain the third matching information, the first button number information can be extracted from the first button element information, wherein the first button number information can indicate the number of first buttons included in the first button element information; the second button number information can also be extracted from the second button element information, wherein the second button number information can indicate the number of second buttons included in the second button element information; the first button number information can then be matched with the second button number information to obtain button number matching information, wherein the button number matching information can indicate the degree of matching between the first button number information and the second button number information, for example, whether the number of buttons indicated by the first button number information is consistent with the number of buttons indicated by the second button number information; and the third matching information can then be generated based on the button number matching information.
[0108] Specifically, the third matching information may be generated according to the specific state of the button number matching information. For example, when the number of buttons indicated by the first button number information is consistent with the number of buttons indicated by the second button number information, the button element matching may be determined as the third matching information; and when the number of buttons indicated by the first button number information is inconsistent with the number of buttons indicated by the second button number information, the button element mismatch may be determined as the third matching information. Of course, the above is only an example for illustration, and this embodiment does not specifically limit this.
[0109] In addition, in the process of text element matching the first text element information with the second text element information to obtain the second matching information, the number of first text words corresponding to the first text element information can be determined, and the number of second text words corresponding to the second text element information can be determined. The first text word number can represent the number of words included in the text in the overall layout corresponding to the to-be-reviewed letter review template information, and the second text word number can represent the number of words included in the text in the overall layout corresponding to the target letter review template information. At this time, it can be determined whether the first text word number is less than the second text word number. In the case that the first text word number is less than the second text word number, the text element match can be determined as the second matching information, and in the case that the first text word number is not less than the second text word number, the text element mismatch can be determined as the second matching information. The second matching information can also be determined by judging whether the number of words in the first text is greater than the number of words in the second text. Of course, other methods can also be used, such as when the number of words in the second text is a word interval, judging whether the number of words in the first text is within the word interval corresponding to the number of words in the second text, when the number of words in the first text is within the word interval corresponding to the number of words in the second text, the text element matching is determined as the second matching information, and when the number of words in the first text is not within the word interval corresponding to the number of words in the second text, the text element mismatch is determined as the second matching information. Of course, other methods can also be used to determine the second matching information, and this embodiment does not specifically limit this.
[0110] In an optional embodiment of the present application, generating the review result corresponding to the to-be-reviewed letter review template information according to the matching result information may specifically include the following steps:
[0111] According to the matching result information, the matching degree information corresponding to the template information of the letter to be reviewed is determined;
[0112] When the matching degree information meets the preset matching degree, the audit pass result is determined as the audit result;
[0113] When the matching degree information does not meet the preset matching degree, retrial prompt information is output, and the audit result is generated according to the audit operation information corresponding to the retrial prompt information.
[0114] In the process of generating the audit result corresponding to the pending letter review template information based on the matching result information, the present embodiment can determine the matching degree information corresponding to the pending letter review template information based on the matching result information, wherein the matching degree information indicates the matching degree between the pending letter review template information and the target letter review template information, for example, it can be the matching percentage, matching success result or matching failure result and other information used to indicate the matching degree; then it can be determined whether the matching degree information meets the preset matching degree, wherein the preset matching degree can indicate the matching degree that can meet the audit requirements in advance, such as the matching percentage threshold, matching success degree and other degree. When the matching degree information meets the preset matching degree, it means that the matching percentage represented by the matching result information at this time reaches the matching percentage threshold, or the matching result information is a matching success result, etc., which is used to indicate that the matching degree that meets the audit requirements. At this time, the audit pass result can be determined as the audit result; when the matching degree information does not meet the preset matching degree, it means that the matching percentage represented by the matching result information at this time does not reach the matching percentage threshold, or the matching result information is a matching failure result, etc., which is used to indicate that the matching degree that does not meet the audit requirements. At this time, a re-examination prompt information can be output. The re-examination prompt information can indicate prompt information that prompts the template reviewer to conduct a manual re-examination, that is, the template reviewer can conduct a manual re-examination based on the re-examination prompt information. The review template information is reviewed again, and the review operation information is input according to the situation of the re-review. The review operation information can be a review pass operation or a review fail operation, wherein the review pass operation can represent an operation used to indicate that the to-be-reviewed review template information meets the preset requirements, and the review fail operation can represent an operation used to indicate that the to-be-reviewed review template information does not meet the preset requirements, so that the review result can be generated according to the review operation information corresponding to the re-review prompt information. Specifically, when the review operation information is a review pass operation, the review pass result is determined as the review result, and when the review operation information is a review fail operation, the review fail result is determined as the review result. This embodiment does not make specific limitations on this.
[0115] like Figure 3 As shown, the present application also discloses an embodiment, providing a letter reading template review device, including:
[0116] The acquisition module 310 is used to obtain the information of the letter template to be reviewed;
[0117] The extraction module 320 is used to extract the target template identifier and template element information from the pending review template information;
[0118] A determination module 330 is used to determine target comparison template information corresponding to the target template identifier;
[0119] A matching module 340 is used to match the template element information with the target comparison element information corresponding to the target comparison template information to obtain matching result information;
[0120] The generation module 350 is used to generate the review result corresponding to the letter review template information to be reviewed based on the matching result information.
[0121] According to the method for reviewing letter templates according to claim 1, it is characterized in that the determination module 330 may include:
[0122] A first acquisition unit, configured to acquire a preset template identifier corresponding to at least one preset comparison template information;
[0123] A first determining unit, used to determine whether the target template identifier is consistent with each of the preset template identifiers;
[0124] The second determining unit is configured to determine the preset comparison template information corresponding to the preset template identifier as the target comparison template information when the target template identifier is consistent with the preset template identifier.
[0125] 3. The method for reviewing letter templates according to claim 1, wherein the matching module 340 may include:
[0126] A first extraction unit, configured to extract first picture element information, first text element information and first button element information from the template element information;
[0127] A second extraction unit, configured to extract second picture element information, second text element information and second button element information from the target comparison element information;
[0128] A first matching unit, configured to perform picture element matching on the first picture element information and the second picture element information to obtain first matching information;
[0129] A second matching unit, configured to perform text element matching on the first text element information and the second text element information to obtain second matching information;
[0130] A third matching unit, configured to perform button element matching on the first button element information and the second button element information to obtain third matching information;
[0131] The third determining unit is used to determine the matching result information according to the first matching information, the second matching information and the third matching information.
[0132] 4. The method for reviewing a letter template according to claim 3, wherein the third determining unit may include:
[0133] A first determining subunit, configured to determine a preset successful matching result as the matching result information when the first matching information is a picture element matching, the second matching information is a text element matching, and the third matching information is a button element matching;
[0134] The second determination subunit is used to determine a preset matching failure result as the matching result information when the first matching information is a picture element mismatch, and / or the second matching information is a text element mismatch, and / or the third matching information is a button element mismatch.
[0135] 5. The method for reviewing a letter template according to claim 3, wherein the first matching unit may include:
[0136] A first extraction subunit, configured to extract first picture ratio information and first picture position information from the first picture element information;
[0137] A second extraction subunit, configured to extract second picture ratio information and second picture position information from the second picture element information;
[0138] A first matching subunit, configured to match the first picture ratio information with the second picture ratio information to obtain picture ratio matching information;
[0139] A second matching subunit is used to match the first picture position information with the second picture position information to obtain picture position matching information;
[0140] The first generating subunit is used to generate the first matching information based on the picture ratio matching information and the picture position matching information.
[0141] 6. The method for reviewing letter templates according to claim 3, wherein the third matching unit may include:
[0142] A third extraction subunit is used to extract the first button number information from the first button element information;
[0143] a fourth extraction subunit, configured to extract second button quantity information from the second button element information;
[0144] a third matching subunit, configured to match the first button number information with the second button number information to obtain button number matching information;
[0145] The second generating subunit is used to generate the third matching information based on the button number matching information.
[0146] 7. The method for reviewing a letter template according to claim 1, wherein the generating module 350 may include:
[0147] A fourth determining unit, configured to determine, based on the matching result information, matching degree information corresponding to the pending review template information;
[0148] A fifth determining unit, configured to determine the audit pass result as the audit result if the matching degree information meets a preset matching degree;
[0149] The generating unit is used to output retrial prompt information when the matching degree information does not meet the preset matching degree, and generate the audit result according to the audit operation information corresponding to the retrial prompt information.
[0150] 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 method, which will not be repeated here.
[0151] like Figure 4 As shown, an embodiment of the present application provides an electronic device, including a processor 410, a communication interface 420, a memory 430 and a communication bus 430, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 430;
[0152] Memory 430, for storing computer programs;
[0153] In one embodiment of the present application, the processor 410, when executing the program stored in the memory 430, implements the letter reading template review method provided by any of the aforementioned method embodiments, by obtaining the letter reading template information to be reviewed, and extracting the target template identifier and template element information from the letter reading template information to be reviewed, determining the target comparison template information corresponding to the target template identifier, so as to match the template element information with the target comparison element information corresponding to the target comparison template information to obtain the matching result information, and then generating the review result corresponding to the letter reading template information to be reviewed based on the matching result information; thereby, the letter reading template information to be reviewed can be reviewed quickly and accurately, thereby solving the problem of low review efficiency in the existing related technology of manually reviewing letter reading templates, and can effectively improve the review efficiency of letter reading templates.
[0154] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the letter reading template review method provided in any of the aforementioned method embodiments are implemented, by obtaining the letter reading template information to be reviewed, and extracting the target template identifier and template element information from the letter reading template information to be reviewed, determining the target comparison template information corresponding to the target template identifier, so as to match the template element information with the target comparison element information corresponding to the target comparison template information to obtain matching result information, and then generating the review result corresponding to the letter reading template information to be reviewed based on the matching result information; thereby, the letter reading template information to be reviewed can be reviewed quickly and accurately, thereby solving the problem of low review efficiency in the existing related technology of manually reviewing letter reading templates, and can effectively improve the review efficiency of letter reading templates.
[0155] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0156] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0157] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0158] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for reviewing a letter template, characterized in that: include: Get the information of the letter template to be reviewed; Extracting the target template identifier and template element information from the pending review template information; Determine the target comparison template information corresponding to the target template identifier; Matching the template element information with the target comparison element information corresponding to the target comparison template information to obtain matching result information; Based on the matching result information, the review result corresponding to the letter review template information to be reviewed is generated.
2. The method for reviewing a letter template according to claim 1, characterized in that: The determining the target comparison template information corresponding to the target template identifier includes: Obtaining a preset template identifier corresponding to at least one preset comparison template information; Determine whether the target template identifier is consistent with each of the preset template identifiers; When the target template identifier is consistent with the preset template identifier, the preset comparison template information corresponding to the preset template identifier is determined as the target comparison template information.
3. The method for reviewing letter templates according to claim 1, characterized in that: The step of matching the template element information with the target comparison element information corresponding to the target comparison template information to obtain matching result information includes: Extracting first picture element information, first text element information and first button element information from the template element information; Extracting second picture element information, second text element information and second button element information from the target comparison element information; Performing picture element matching on the first picture element information and the second picture element information to obtain first matching information; Performing text element matching on the first text element information and the second text element information to obtain second matching information; Perform button element matching on the first button element information and the second button element information to obtain third matching information; The matching result information is determined according to the first matching information, the second matching information, and the third matching information.
4. The method for reviewing letter templates according to claim 3 is characterized in that: The determining the matching result information according to the first matching information, the second matching information, and the third matching information includes: In a case where the first matching information is a picture element match, the second matching information is a text element match, and the third matching information is a button element match, determining a preset matching success result as the matching result information; When the first matching information is that the image element does not match, and / or the second matching information is that the text element does not match, and / or the third matching information is that the button element does not match, the preset matching failure result is determined as the matching result information.
5. The method for reviewing letter templates according to claim 3 is characterized in that: The performing picture element matching on the first picture element information and the second picture element information to obtain first matching information includes: Extracting first picture ratio information and first picture position information from the first picture element information; Extracting second picture ratio information and second picture position information from the second picture element information; Matching the first picture ratio information with the second picture ratio information to obtain picture ratio matching information; Matching the first picture position information with the second picture position information to obtain picture position matching information; The first matching information is generated based on the picture ratio matching information and the picture position matching information.
6. The method for reviewing letter templates according to claim 3, characterized in that: The performing button element matching on the first button element information and the second button element information to obtain third matching information includes: Extracting first button quantity information from the first button element information; Extracting the second button number information from the second button element information; Matching the first button number information with the second button number information to obtain button number matching information; The third matching information is generated based on the button number matching information.
7. The method for reviewing letter templates according to claim 1, characterized in that: Generating the review result corresponding to the to-be-reviewed letter review template information according to the matching result information includes: Determine the matching degree information corresponding to the pending review template information according to the matching result information; When the matching degree information meets the preset matching degree, the audit passing result is determined as the audit result; In the case that the matching degree information does not meet the preset matching degree, retrial prompt information is output, and the audit result is generated according to the audit operation information corresponding to the retrial prompt information.
8. A letter reading template review device, characterized in that: include: The acquisition module is used to obtain the information of the letter template to be reviewed; An extraction module, used to extract the target template identifier and template element information from the pending review template information; A determination module, used to determine the target comparison template information corresponding to the target template identifier; A matching module, used for matching the template element information with the target comparison element information corresponding to the target comparison template information to obtain matching result information; A generation module is used to generate the review result corresponding to the letter review template information to be reviewed based on the matching result information.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the letter reading template review method described in any one of claims 1-7 when executing the program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the letter reading template review method as described in any one of claims 1-7 is implemented.