Intelligent Tax Compliance Inspection Method and Platform
By determining the customized stamping area and cutting the anti-counterfeiting marks in the electronic data, the risk of electronic clasp being forged is solved, ensuring the authenticity and integrity of electronic data, and improving the security of electronic documents.
Patent Information
- Application Number
- CN202510467129.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-15
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2045-04-15
AI Technical Summary
In the prior art, electronic clasp on electronic data has the risk of being forged or tampered with, mainly because the spacing of clasp is too uniform and standardized, and is easily imitated by forgers.
By obtaining the electronic layout sequence of electronic data based on the document recognition model, the customized stamping area of each document page is determined, and the stamping type is determined according to the stamping range, the anti-counterfeiting mark is cut, and the sub-proof stamp can be generated to ensure that each document page can be stamped with an electronic stamp.
It reduces the risk of electronic stamps being forged or tampered with, ensures the authenticity and integrity of electronic data, and improves the security of electronic documents.
Smart Images

Figure CN119991314B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to image processing technology, and in particular to a tax compliance intelligent inspection method and platform. Background Art
[0002] In tax compliance inspections, the authenticity and integrity of electronic data are crucial. As an advanced anti-counterfeiting technology, electronic saddle stamps are widely used on multi-page documents or contracts to ensure the integrity and authenticity of electronic files or contracts.
[0003] In the prior art, electronic interleaving seals on electronic data often have the risk of being forged or tampered with. One important reason for this is that the spacing between interleaving seals may be too uniform and standardized. If the spacing between electronic interleaving seals is fixed or highly standardized, then it may be easier for a counterfeiter to imitate this spacing through technical means such as image processing software, thereby making fake electronic interleaving seals, which may in turn lead to the replacement of electronic data.
[0004] Therefore, how to reduce the risk of electronic seals being forged or tampered with and ensure the authenticity and integrity of electronic data has become an urgent problem that needs to be solved. Summary of the invention
[0005] The present invention provides a tax compliance intelligent inspection method and platform, which can reduce the risk of electronic interline seals being forged or tampered with, and ensure the authenticity and integrity of electronic data.
[0006] A first aspect of the present invention provides a tax compliance intelligent inspection method, comprising:
[0007] Acquire an electronic layout sequence corresponding to the electronic data based on the document recognition model, and determine a customized cover area of each document page in the electronic data according to the electronic layout sequence;
[0008] Acquire the stamping range of each customized stamping area, and determine the stamping mark type according to the stamping range, wherein the stamping mark type includes a single mark type and a multiple mark type;
[0009] Cutting the anti-counterfeiting mark based on the stamping mark type and stamping range to obtain the sub-anti-counterfeiting mark of each document page, and updating the electronic data based on the sub-anti-counterfeiting mark to obtain archived data;
[0010] In response to the compliance verification information of the management end, the current anti-counterfeiting mark corresponding to the current archived data is verified based on the mark verification model to obtain compliance detection data and send it to the management end.
[0011] Optionally, in a possible implementation manner of the first aspect, obtaining an electronic layout sequence corresponding to the electronic data based on the document recognition model, and determining a customized stamping area for each document page in the electronic data, including:
[0012] Determining an evaluation index for each document page corresponding to the electronic data according to the document recognition model, and arranging each of the document pages from largest to smallest based on the evaluation index to obtain an electronic layout sequence;
[0013] Obtaining the document page ranked first in the electronic layout sequence as a reference page, and calculating an index difference between the evaluation index of the reference page and the evaluation indexes of the remaining document pages;
[0014] Determining a first stamping distance corresponding to the reference page, and offsetting the first stamping distance according to the index difference to obtain a second stamping distance corresponding to each of the remaining document pages;
[0015] Determining a stamping edge for each document page, and generating a customized edge parallel to the stamping edge at a distance of the first stamping distance or the second stamping distance from the stamping edge in the stamping direction with the stamping edge as a reference;
[0016] Determining the page area corresponding to the stamping edge and the customized edge in the document page as the customized stamping area.
[0017] Optionally, in a possible implementation manner of the first aspect, determining an evaluation index for each document page corresponding to the electronic data according to the document recognition model, including:
[0018] Performing character recognition on each document page based on the document recognition model to determine keywords corresponding to each document page;
[0019] When the keyword is a seal indicator, determining the center point of the seal indicator as the center of a circle, determining a traversal range according to a preset radius, and identifying document seals within the traversal range;
[0020] Determining a first importance index corresponding to each keyword and a second importance index of the document seal, and adding the first importance index and the second importance index corresponding to the document page to obtain an evaluation index.
[0021] Optionally, in a possible implementation manner of the first aspect, determining a first stamping distance corresponding to the reference page, and offsetting the first stamping distance according to the index difference to obtain a second stamping distance corresponding to each of the remaining document pages, including:
[0022] Counting an index average of each evaluation index, and determining the best stamping range corresponding to the index average as the first stamping distance corresponding to the reference page;
[0023] An offset coefficient is obtained based on the ratio of the exponential difference to the reference exponential difference, and a distance offset value for each of the remaining document pages is obtained based on the product of the offset coefficient and the reference offset value;
[0024] Based on the difference between the first capping distance and the distance offset value, a second capping distance corresponding to each of the remaining document pages is determined.
[0025] Optionally, in a possible implementation manner of the first aspect, the capping range of each of the customized capping areas is obtained, and a capping identification type is determined according to the capping range. The capping identification type includes a single identification type and a multiple identification type, including:
[0026] The number of document pages of each of the document pages is determined, and the document pages are arranged in the arrangement direction from smallest to largest to obtain a capping document sequence;
[0027] The capping distance of each of the document pages in the arrangement direction in the capping document sequence is obtained. The capping range includes the capping distance, and the sum of the capping distances is obtained as the total capping distance corresponding to the capping document sequence;
[0028] The identification diameter of the anti-counterfeiting identification is determined. The anti-counterfeiting identification is a circular identification, and the ceiling value of the ratio of the total capping distance to the identification diameter is obtained as the number of identifications;
[0029] When the number of identifications is equal to the preset single number, it is determined that the capping identification type is the single identification type, and when the number of identifications is greater than the preset single number, it is determined that the capping identification type is the multiple identification type.
[0030] Optionally, in a possible implementation manner of the first aspect, the anti-counterfeiting identification is cut based on the capping identification type and the capping range to obtain sub-anti-counterfeiting identifications for each of the document pages, and the electronic data is updated based on the sub-anti-counterfeiting identifications to obtain archived data, including:
[0031] When the capping identification type is the single identification type, the capping distance of each of the document pages in the capping document sequence is sequentially obtained as the cutting distance, and the anti-counterfeiting identification is cut according to the cutting distance to obtain sub-anti-counterfeiting identifications corresponding to each of the document pages;
[0032] When the capping identification type is the multiple identification type, the anti-counterfeiting identification is copied according to the number of identifications to obtain a group of anti-counterfeiting identifications, and the group of anti-counterfeiting identifications is cut according to the cutting distance to obtain sub-anti-counterfeiting identifications corresponding to each of the document pages;
[0033] The area side perpendicular to the arrangement direction in the customized capping area is determined as the first target side, and the cutting side of each of the sub-anti-counterfeiting identifications is determined as the second target side;
[0034] Obtain the sub - anti - counterfeiting label on the left side after the anti - counterfeiting label is cut as the starting label, the sub - anti - counterfeiting label in the middle as the middle label, and the sub - anti - counterfeiting label on the right side as the ending label;
[0035] Connect the second target edge of the starting label with the first target edge on the right side in the customized stamping area, connect the second target edges on both sides of the middle label with the first target edges on both sides in the customized stamping area, and connect the second target edge of the ending label with the first target edge on the left side in the customized stamping area to obtain the archived data.
[0036] Optionally, in a possible implementation manner of the first aspect, when the stamping label type is a single - label type, sequentially obtain the stamping distances of each document page in the stamping document sequence as the cutting distances, and cut the anti - counterfeiting label according to the cutting distances to obtain the sub - anti - counterfeiting labels corresponding to each document page, including:
[0037] Generate multiple first cutting lines with a spacing of the cutting distance on the anti - counterfeiting label according to the arrangement direction, and the first cutting lines are perpendicular to the arrangement direction;
[0038] Cut the anti - counterfeiting label based on the first cutting lines to obtain multiple sub - anti - counterfeiting labels, and arrange the sub - anti - counterfeiting labels based on the arrangement direction to obtain a label sequence;
[0039] Correspond the document pages and the sub - anti - counterfeiting labels with the same arrangement positions in the stamping document sequence and the label sequence to obtain the sub - anti - counterfeiting labels corresponding to each document page.
[0040] Optionally, in a possible implementation manner of the first aspect, when the stamping label type is a multi - label type, copy the anti - counterfeiting label according to the number of labels to obtain a group of anti - counterfeiting labels, and cut the group of anti - counterfeiting labels according to the cutting distances to obtain the sub - anti - counterfeiting labels corresponding to each document page, including:
[0041] Generate an arrangement reference line parallel to the arrangement direction, position the center points of each anti - counterfeiting label based on the arrangement reference line, and arrange the anti - counterfeiting labels side by side to obtain a group of anti - counterfeiting labels, and the interval distance between the center points of adjacent anti - counterfeiting labels is the distance corresponding to the label diameter;
[0042] Obtain the total label distance covered by the group of anti - counterfeiting labels on the arrangement reference line. When the total label distance is greater than the total stamping distances corresponding to each document page, rotate the group of anti - counterfeiting labels in a preset rotation direction;
[0043] Obtain the real-time total distance of the anti-counterfeiting label group in the arrangement direction during the rotation in real time. When the real-time total distance is less than the total stamping distance, stop the rotation of the anti-counterfeiting label group;
[0044] Generate a plurality of second cutting lines with a spacing of the cutting distance on the anti-counterfeiting label group in sequence according to the arrangement direction, and the second cutting lines are perpendicular to the arrangement reference line;
[0045] Cut the anti-counterfeiting label group based on the second cutting lines to obtain a plurality of sub anti-counterfeiting labels, and arrange the sub anti-counterfeiting labels based on the arrangement direction to obtain an identification sequence;
[0046] Correspond the document pages and sub anti-counterfeiting labels with the same arrangement positions in the stamped document sequence and the identification sequence to obtain the sub anti-counterfeiting labels corresponding to each document page.
[0047] Optionally, in a possible implementation manner of the first aspect, in response to the compliance verification information of the management terminal, verify the current anti-counterfeiting label corresponding to the current archived data based on the identification verification model to obtain compliance detection data and send it to the management terminal, including:
[0048] Based on the identification verification model, retrieve a plurality of sub archived labels corresponding to the current archived data in the database, and arrange the sub archived labels in sequence according to the arrangement direction to obtain an archived label sequence;
[0049] Extract a plurality of current anti-counterfeiting labels corresponding to the current archived data, and arrange the current anti-counterfeiting labels according to the arrangement direction to obtain a sequence to be verified;
[0050] Determine the sub archived labels in the archived label sequence as compliance labels in sequence, and determine the current anti-counterfeiting labels corresponding to the compliance labels in the arrangement position in the sequence to be verified as labels to be verified;
[0051] Determine the compliance label and the label to be verified as a verification group, and obtain the first coordinate position of the compliance label and the second coordinate position of the label to be verified;
[0052] When the distance difference between the first coordinate position and the second coordinate position is less than the distance difference threshold, obtain the first distance of the compliance label in the arrangement direction and the second distance of the label to be verified in the arrangement direction;
[0053] When the difference between the first distance and the second distance is less than the label stamping threshold, determine the verification group as a compliance group. When all verification groups are compliance groups, determine the current archived data as compliance detection data and send it to the management terminal.
[0054] In the second aspect of the present invention, a tax compliance intelligent inspection platform is provided, including:
[0055] An acquisition module, configured to acquire an electronic layout sequence corresponding to electronic data based on a document recognition model, and determine a customized stamping area of each document page in the electronic data according to the electronic layout sequence;
[0056] A determination module, configured to acquire a stamping range of each customized stamping area, and determine a stamping identification type according to the stamping range, where the stamping identification type includes a single identification type and a multiple identification type;
[0057] An update module, configured to cut an anti-counterfeiting identifier based on the stamping identification type and the stamping range to obtain sub-anti-counterfeiting identifiers of each document page, and update the electronic data based on the sub-anti-counterfeiting identifiers to obtain archived data;
[0058] A verification module, configured to respond to compliance verification information of a management terminal, verify a current anti-counterfeiting identifier corresponding to current archived data based on an identification verification model, and send compliance detection data to the management terminal.
[0059] The beneficial effects of the present invention are as follows:
[0060] 1. When generating an electronic split seal in the present invention, it is possible to customize the generation of the stamping range of the split seal on each page of the document in combination with the actual situation of the electronic document, thereby reducing the risk of the split seal being forged and the risk of the electronic document being replaced, and ensuring the authenticity and integrity of the electronic data. When generating a customized stamping area corresponding to each document page in the present invention, it is possible to generate corresponding ones in combination with the importance level of each document page, ensuring that the stamping position of the split seal matches the importance level of the document, thereby reducing the risk of the split seal being forged and improving the security of the electronic document.
[0061] 2. The present invention can determine the stamping identification type of the anti-counterfeiting identifier according to the total stamping distance corresponding to all document pages, and generate a corresponding number of electronic split seals for the electronic document in combination with the corresponding stamping identification type, thereby ensuring that each document page can be stamped with an electronic split seal, reducing the risk of the electronic document being replaced, and improving the security of the electronic document.
[0062] 3. The present invention can cut the anti-counterfeiting identifier in different ways in combination with the stamping identification type and the stamping range to obtain sub-anti-counterfeiting identifiers corresponding to each document page, ensuring that the anti-counterfeiting identifier on each document page is accurately matched with the corresponding stamping range, and can accurately connect the sub-anti-counterfeiting identifiers corresponding to each document page in the corresponding customized stamping area, thereby reducing the risk of the electronic document being replaced. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 is a schematic flowchart of a tax compliance intelligent inspection method provided by an embodiment of the present invention;
[0064] Figure 2 It is a schematic diagram of the first cutting line provided by an embodiment of the present invention;
[0065] Figure 3 It is a schematic diagram of the second cutting line provided by an embodiment of the present invention;
[0066] Figure 4 It is a schematic diagram of determining the second target side provided by an embodiment of the present invention;
[0067] Figure 5 It is a schematic structural diagram of a tax compliance intelligent inspection platform provided by an embodiment of the present invention. Detailed implementation manners
[0068] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0069] See Figure 1 , which is a schematic diagram of a tax compliance intelligent inspection method provided by an embodiment of the present invention, Figure 1 The execution subject of the method shown can be software and / or a hardware device. The execution subjects of the present application may include, but are not limited to, at least one of the following: user equipment, network equipment, etc. Among them, the user equipment may include, but is not limited to, a computer, a smart phone, a personal digital assistant (Personal Digital Assistant, abbreviated as: PDA), and the above-mentioned electronic devices, etc. The network equipment may include, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of computers or network servers based on cloud computing. Among them, cloud computing is a type of distributed computing, which is composed of a group of loosely coupled computers to form a super virtual computer. This embodiment does not make any restrictions. It includes steps S1 to S4, specifically as follows:
[0070] S1, obtain the electronic layout sequence corresponding to the electronic data based on the document recognition model, and determine the customized stamping areas of each document page in the electronic data according to the electronic layout sequence.
[0071] Among them, the document recognition model refers to a model that can determine the affixing area of the seal across pages corresponding to each document page of an electronic document. Electronic data refers to the electronic document. The electronic page sequence refers to the sequence obtained by arranging multiple document pages according to the importance of each page of the electronic document. A document page refers to each page of the electronic document. The customized affixing area refers to the affixing area of the seal across pages corresponding to each document page determined by combining the importance levels of different document pages of the electronic document.
[0072] In practical applications, the application of electronic data in tax inspections is becoming increasingly widespread. Ensuring the authenticity and integrity of this electronic data has become a major challenge in tax compliance inspections. As an important anti-counterfeiting technology, the electronic seal across pages plays a key role in ensuring the integrity and authenticity of electronic documents or contracts. When generating the electronic seal across pages in this solution, it is possible to make personalized adjustments to the spacing of the seal across pages on each page of the document in combination with the actual situation of the electronic document, thereby reducing the risk of the seal across pages being forged and the risk of the electronic document being replaced, and ensuring the authenticity and integrity of the electronic data.
[0073] It can be understood that since an electronic document may contain multiple document pages, the importance levels of each document page may be different. For example, the last page of an electronic document may contain a company seal, signature, etc., and these elements are usually regarded as the core parts of the document, so their importance is relatively high. In contrast, some intermediate pages may only contain background information, auxiliary data, etc., and their importance may be relatively low. To improve the security of the electronic document, when affixing the seal across pages, it is possible to determine the affixing area in combination with the importance levels of different pages, thereby reducing the risk of the seal across pages being forged and improving the security of the electronic document.
[0074] Specifically, a document recognition model that can analyze the electronic document and determine the affixing area of each document page can be retrieved. The electronic document is analyzed through the document recognition model, so that each document page can be sorted according to the importance level, and the electronic page sequence corresponding to the electronic document can be obtained. In the electronic page sequence, the importance levels of each page of the document are different. The affixing area corresponding to each document page, that is, the customized affixing area, can be determined in combination with the importance levels of different pages. The more important the document page, the larger the corresponding customized affixing area may be.
[0075] In some embodiments, the specific implementation manner of step S1 may be:
[0076] S11. Determine the evaluation index of each document page corresponding to the electronic data according to the document recognition model, and arrange each document page from large to small based on the evaluation index to obtain an electronic page sequence.
[0077] Among them, the evaluation index refers to an index that can represent the importance of each document page. The more important the document page is, the larger the corresponding evaluation index is.
[0078] Specifically, the document recognition model can be invoked to analyze the electronic data. The document recognition model can be pre-trained with a large number of electronic documents and can identify key information in the electronic documents, such as official seal images, electronic signatures, etc. According to the key information corresponding to each document page identified, the evaluation index corresponding to each document page can be determined. The corresponding document pages are arranged in descending order of the evaluation index to obtain the corresponding electronic layout sequence. In the electronic layout sequence, the document pages with larger evaluation indexes are arranged more forward.
[0079] In some embodiments, "determining the evaluation index of each document page corresponding to the electronic data according to the document recognition model" in step S11 includes the following steps:
[0080] S111, performing text recognition on each of the document pages based on the document recognition model to determine the keywords corresponding to each of the document pages.
[0081] Specifically, in an electronic document, the importance of each page of the document may be different, and the evaluation index corresponding to each page of the document is also different. When determining the evaluation index corresponding to a document page, first, the text of each document page can be recognized through the document recognition model. If the document page contains keywords, such as signatures, seals, etc., it can be considered that the document page contains relatively important content. By identifying the keywords corresponding to the document page, the evaluation index corresponding to each document page can be determined.
[0082] Among them, when performing text recognition on the document page, the pre-trained document recognition model can be used to scan each document page, and the document recognition model can extract the corresponding keywords. The keyword refers to a word that can represent the key information of the document page.
[0083] S112, when the keyword is a seal indicator, taking the center point of the seal indicator as the center of the circle, determining the traversal range according to a preset radius, and identifying the document seal within the traversal range.
[0084] In practical applications, in some tax-related document pages, it may be necessary to affix a seal. Therefore, the keywords recognized by the document recognition model may be words indicating the seal area, that is, seal indicator words. When the keyword is a seal indicator word, for example, when the keyword is "seal", since the seal is generally near the seal indicator word, the center point of the seal indicator word can be determined as the center of the circle, and a circular area can be determined according to a pre-configured preset radius. This area can be determined as the traversal range for traversing the document seal, and the document seal on the document page can be quickly extracted within the traversal range, which can improve efficiency.
[0085] Among them, the seal indicator word refers to a word that can indicate the seal area, the preset radius refers to the radius pre-configured for determining the range for recognizing the seal, the traversal range refers to the range for recognizing the seal, and the document seal refers to the seal on the document page.
[0086] S113. Determine the first importance index corresponding to each of the keywords and the second importance index of the document seal, and add the first importance index and the second importance index corresponding to the document page to obtain an evaluation index.
[0087] In practical applications, the importance levels of different keywords and different document seals corresponding to different documents are different. Corresponding importance indices can be pre-configured for different keywords and different document seals. For example, some keywords closely related to taxation, such as "signature", "seal", "tax declaration", etc., usually represent key information in the document, so they may be given a relatively high importance index. Similarly, some specific types of document seals, such as official seals and financial seals, often have strong legal effects and evidentiary functions, and can also be given a relatively high importance index. Therefore, the importance index corresponding to the keywords of each document page, that is, the first importance index, can be determined, and the importance index corresponding to the document seal of each document page, that is, the second importance index, can be determined. By adding the first importance index and the second importance index corresponding to each document page, the evaluation index corresponding to each document page can be obtained.
[0088] Among them, the first importance index refers to the importance index corresponding to the keyword, and the second importance index refers to the importance index corresponding to the document seal.
[0089] Through the above implementation methods, the key information and seals in the document can be automatically recognized, and the information recognition efficiency can be improved.
[0090] S12. Obtain the document page ranked first in the electronic page sequence as the reference page, and calculate the index difference between the evaluation index of the reference page and the evaluation indices of the remaining document pages.
[0091] Among them, the reference page refers to the first document page in the electronic page sequence. The stamping area range of the remaining document pages can be determined by referring to the stamping area range corresponding to this document page. The index difference refers to the difference between the evaluation index of the reference page and the evaluation indexes of the remaining document pages.
[0092] In the electronic page sequence, it can be considered that the first document page is the most important, and the stamping area range corresponding to it is the best and may be the largest. This document page can be determined as the reference page. The stamping area ranges corresponding to the document pages arranged after this reference page can be determined according to the difference between the evaluation index of the reference page and the evaluation indexes of each document page.
[0093] S13. Determine the first stamping distance corresponding to the reference page, and offset the first stamping distance according to the index difference to obtain the second stamping distances corresponding to the remaining document pages.
[0094] Specifically, since the saddle stamping is generally applied to the edge area of the document page, according to the evaluation indexes corresponding to each document page in the electronic page sequence, the stamping distance corresponding to the stamping area of the reference page, that is, the first stamping distance, can be obtained. According to the index difference between the evaluation index corresponding to the reference page and the evaluation indexes corresponding to the remaining document pages, the first stamping distance is offset, and the stamping distances corresponding to the remaining document pages, that is, the second stamping distances, can be obtained.
[0095] Among them, the first stamping distance refers to the stamping distance corresponding to the stamping area of the reference page, and the second stamping distance refers to the stamping distances corresponding to the stamping areas of the remaining document pages.
[0096] Based on the above embodiments, the specific implementation manner of step S13 may be:
[0097] S131. Statistically calculate the index mean of each evaluation index, and determine the best stamping range corresponding to the index mean as the first stamping distance corresponding to the reference page.
[0098] Specifically, when determining the first stamping distance, the pre-configured distance correspondence table can be retrieved. In the distance correspondence table, there are multiple mean value intervals, and each mean value interval has a corresponding best stamping range. The larger the evaluation index, the greater the importance of the corresponding document page, and the larger the proportion of the saddle stamping in the corresponding document page can be, and the corresponding best stamping range can also be larger. Therefore, after obtaining the evaluation indexes corresponding to each document page, the multiple evaluation indexes can be averaged to obtain the corresponding index mean. By comparing the index mean with the distance correspondence table, the mean value interval where the index mean is located can be determined, and the best stamping range corresponding to the mean value interval where the index mean is located can be determined, and this best stamping range can be determined as the first stamping distance corresponding to the reference page.
[0099] Among them, the exponential mean refers to the average of the evaluation indices corresponding to each document page, and the optimal stamping range refers to the range of the stamping area corresponding to the exponential mean.
[0100] S132. Obtain an offset coefficient according to the ratio of the index difference to the reference index difference, and obtain the distance offset values of the remaining document pages based on the product of the offset coefficient and the reference offset value.
[0101] Among them, the offset coefficient is a coefficient that can offset the first stamping distance. The larger the offset coefficient, the greater the degree of offset of the first stamping distance. The reference index difference refers to a pre-configured standard index difference, the reference offset value refers to a pre-configured standard value for offsetting the first stamping distance, and the distance offset value refers to the value for offsetting the first stamping distance corresponding to each document page.
[0102] After determining the first stamping distance corresponding to the reference page, the first stamping distance can be offset according to the index differences corresponding to the remaining document pages to obtain the second stamping distances corresponding to the respective document pages. Specifically, by calculating the ratio of the index difference corresponding to the document page to the pre-configured reference index difference, the offset coefficients corresponding to the respective document pages can be obtained. By multiplying the offset coefficients corresponding to the respective document pages by the pre-configured reference offset value, the distance offset values corresponding to the respective document pages can be obtained. The second stamping distances corresponding to the respective document pages can be determined according to the distance offset values.
[0103] S133. Determine the second stamping distances corresponding to the remaining document pages based on the difference between the first stamping distance and the distance offset values.
[0104] Specifically, calculate the differences between the first stamping distance and the distance offset values corresponding to the remaining document pages respectively, and the second stamping distances corresponding to the remaining document pages can be obtained.
[0105] Through the above embodiments, the stamping ranges corresponding to each document page can be determined more accurately.
[0106] S14. Determine the stamping edges of the respective document pages, and based on the stamping edges, generate custom edges parallel to the stamping edges at a distance of the first stamping distance or the second stamping distance from the stamping edges in the stamping direction.
[0107] It can be understood that the split seal is generally stamped on the side area of the document page, and there are generally four sides of the document page, namely the upper side, the lower side, the left side, and the right side. One of the four sides can be selected as the stamping side of the document page, and the direction perpendicular to the stamping side can be determined as the stamping direction. For example, the right side corresponding to the document page can be selected as the stamping side of the document page, then the stamping direction can be the direction from the right side to the left side. In the stamping direction, at a first stamping distance from the stamping side, a side parallel to the stamping side can be generated, and this side is the customized side corresponding to the reference page. According to the second stamping distance corresponding to each of the remaining document pages, at a second stamping distance from the stamping side in the stamping direction, the customized sides of the corresponding document pages can be generated.
[0108] S15. Determine the page area corresponding to the stamping side and the customized side in the document page as the customized stamping area.
[0109] Specifically, the page area between the stamping side and the customized side in the document page can be determined as the customized stamping area corresponding to each document page. Among them, the page area refers to the area on the document page.
[0110] Through the above implementation manners, it can be ensured that the stamping position of the split seal matches the importance level of the document, reduce the risks of forgery and tampering, and improve the security of the electronic document.
[0111] S2. Obtain the stamping range of each customized stamping area, and determine the stamping identification type according to the stamping range. The stamping identification type includes a single identification type and a multiple identification type.
[0112] After determining the customized stamping areas corresponding to each document page, the distances of each customized stamping area in the arrangement direction, that is, the stamping range, can be obtained. In this solution, the size specification of the anti-counterfeiting electronic split seal is determined. If there are many pages in the electronic document, it may occur that one electronic split seal cannot completely cover all the document pages. To ensure that each page of the document can be stamped with the electronic split seal and improve the security of the electronic document, multiple electronic split seals can be generated simultaneously to perform anti-counterfeiting on the electronic document.
[0113] Specifically, the stamping identification type can be determined according to the total stamping range corresponding to the electronic document. If one electronic split seal can completely cover the total stamping range corresponding to the electronic document, the corresponding stamping identification type can be determined as the single identification type. If one electronic split seal cannot completely cover the total stamping range corresponding to the electronic document, the corresponding stamping identification type can be determined as the multiple identification type, and the corresponding number of electronic split seals can be generated for the electronic document according to the corresponding stamping identification type.
[0114] Among them, the stamping range refers to the distance of the customized stamping area in the arrangement direction, the stamping identification type refers to the stamping type of the seam stamp determined according to the stamping range, the single identification type refers to the stamping type corresponding to stamping a single seam stamp on the electronic document, and the multiple identification type refers to the stamping type corresponding to stamping multiple seam stamps on the electronic document.
[0115] Based on the above embodiments, the specific implementation manner of step S2 may be:
[0116] S21. Determine the number of document pages of each of the said document pages, and arrange each of the said document pages in ascending order of the number of document pages in the arrangement direction to obtain a stamped document sequence.
[0117] Specifically, in an electronic document, the number of pages corresponding to each document page, that is, the number of document pages, can be determined. The arrangement direction can be pre-configured, and the arrangement direction is parallel and opposite to the stamping direction. For example, when the stamping direction is from the right side to the left side, the arrangement direction can be parallel to the stamping direction and from left to right. Arranging each document page in ascending order of the number of document pages can obtain a stamped document sequence.
[0118] Among them, the number of document pages refers to the number of pages corresponding to each document page in the electronic document, the arrangement direction refers to the direction in which each document page is arranged according to the number of document pages, and the stamped document sequence refers to the sequence obtained by arranging each document page in ascending order of the number of document pages in the arrangement direction. The size of the seam stamp corresponding to each document page can be determined in sequence according to the stamped document sequence.
[0119] S22. Obtain the stamping distance of each of the said document pages in the stamped document sequence in the arrangement direction. The stamping range includes the stamping distance, and sum up each of the said stamping distances to obtain the total stamping distance corresponding to the stamped document sequence.
[0120] Specifically, the distance of the customized stamping area of each document page in the arrangement direction, that is, the stamping distance, can be obtained, and the stamping distances corresponding to each document page are summed up to obtain the total stamping distance corresponding to the stamped document sequence.
[0121] Among them, the stamping distance refers to the distance of the customized stamping area of the document page in the arrangement direction, and the total stamping distance refers to the sum of the stamping distances of each document page.
[0122] S23. Determine the identification diameter of the anti-counterfeiting identification. The anti-counterfeiting identification is a circular identification, and obtain the number of identifications according to the ceiling value of the ratio of the total stamping distance to the identification diameter.
[0123] Among them, the anti-counterfeiting mark refers to a mark for anti-counterfeiting of an electronic document. For example, it can be a circular electronic seal across pages. The mark diameter refers to the diameter corresponding to the circular anti-counterfeiting mark, and the mark quantity refers to the quantity of anti-counterfeiting marks required for the electronic document.
[0124] Specifically, the anti-counterfeiting mark in this solution can be a circular electronic seal across pages. The diameter corresponding to the circular electronic seal across pages can be obtained, that is, the mark diameter. By calculating the ratio of the total stamping distance to the mark diameter, a ratio can be obtained. Since the anti-counterfeiting mark is circular and its coverage area is a fixed circular region, when the total stamping distance cannot be divided evenly by the diameter of the anti-counterfeiting mark, the remaining distance may not be sufficient to accommodate a complete anti-counterfeiting mark. However, to ensure that each page of the electronic document can be stamped with the seal across pages and improve the security of the electronic document, the remaining stamping distance still needs to be covered. The obtained ratio can be rounded up to get the quantity of anti-counterfeiting marks required for the stamped document sequence, that is, the mark quantity, so as to ensure that the total stamping distance corresponding to the stamped document sequence can be completely covered by the anti-counterfeiting mark.
[0125] S24. When the mark quantity is equal to the preset single number, determine that the stamped mark type is the single mark type. When the mark quantity is greater than the preset single number, determine that the stamped mark type is the multiple mark type.
[0126] Among them, the preset single number is 1. Specifically, if the mark quantity is equal to the preset single number, it can be considered that the total stamping distance corresponding to the stamped document sequence can be completely covered by one anti-counterfeiting mark, and the corresponding stamped mark type can be determined as the single mark type. If the mark quantity is greater than or equal to the preset single number, it can be considered that the total stamping distance corresponding to the stamped document sequence cannot be completely covered by one anti-counterfeiting mark and multiple anti-counterfeiting marks may be needed, and the corresponding stamped mark type can be determined as the multiple mark type.
[0127] Through the above implementation manner, it can be ensured that each page of the document can be effectively stamped, improving the anti-counterfeiting ability of the electronic document.
[0128] S3. Cut the anti-counterfeiting mark based on the stamped mark type and the stamping range to obtain the sub-anti-counterfeiting marks for each document page, and update the electronic data based on the sub-anti-counterfeiting marks to obtain the archived data.
[0129] After obtaining the stamped identification type corresponding to the stamped document sequence and the stamped range corresponding to each document page, when stamping the anti-counterfeiting identification of the electronic data in electronic version, in order to ensure that the anti-counterfeiting identification on each document page matches the corresponding stamped range, the anti-counterfeiting identification can be cut in combination with the stamped identification type and the stamped range to obtain sub-anti-counterfeiting identifications adapted to the stamped ranges of each document page, and the sub-anti-counterfeiting identifications corresponding to each document page are stamped into the corresponding customized stamping area to update the electronic data and obtain the corresponding archived data.
[0130] Among them, the sub-anti-counterfeiting identification refers to the partial anti-counterfeiting identification corresponding to each document page, and the archived data refers to the electronic data stamped with the anti-counterfeiting identification.
[0131] In some embodiments, step S3 includes S31 to S35, specifically as follows:
[0132] S31. When the stamped identification type is a single identification type, sequentially obtain the stamped distances of each document page in the stamped document sequence as cutting distances, and cut the anti-counterfeiting identification according to the cutting distances to obtain the sub-anti-counterfeiting identifications corresponding to each document page.
[0133] Specifically, when the stamped identification type is a single identification type, only a single anti-counterfeiting identification needs to be cut. When cutting, the stamped distances corresponding to each document page in the stamped document sequence can be sequentially obtained, and the stamped distances corresponding to each document page are sequentially determined as the cutting distances, and the complete anti-counterfeiting identification is cut according to the cutting distances, and sub-anti-counterfeiting identifications matching the stamped distances of each document page can be generated.
[0134] Among them, the cutting distance can be the distance corresponding to each sub-anti-counterfeiting identification.
[0135] In some embodiments, the specific implementation manner of step S31 can be:
[0136] S311. Sequentially generate multiple first cutting lines with a spacing of the cutting distance on the anti-counterfeiting identification according to the arrangement direction, and the first cutting lines are perpendicular to the arrangement direction.
[0137] Among them, the first cutting line refers to the line segment for cutting the anti-counterfeiting identification.
[0138] See Figure 2 which is a schematic diagram of a first cutting line provided by an embodiment of the present invention. As Figure 2As shown in [Figure 0], when cutting the anti-counterfeiting label, a first cutting line tangent to the anti-counterfeiting label and perpendicular to the arrangement direction can be generated at the leftmost side of the anti-counterfeiting label. When there are three document pages in the stamped document sequence, in the arrangement direction, first, taking the cutting distance corresponding to the first document page in the stamped document sequence as the interval distance, at a corresponding interval distance from the first cutting line, a second first cutting line perpendicular to the arrangement direction can be generated. Taking the cutting distance corresponding to the second document page in the stamped document sequence as the interval distance, at a corresponding interval distance from the second first cutting line, a third first cutting line perpendicular to the arrangement direction can be generated.
[0139] S312. Cut the anti-counterfeiting label based on the first cutting line to obtain a plurality of sub anti-counterfeiting labels, and arrange the sub anti-counterfeiting labels based on the arrangement direction to obtain a label sequence.
[0140] As Figure 2 shown in [Figure 0], the anti-counterfeiting label can be cut into three sub anti-counterfeiting labels by three first cutting lines. In the arrangement direction, the sub anti-counterfeiting labels can be arranged. For example, the sub anti-counterfeiting label on the left in [Figure 0] can be ranked first, the sub anti-counterfeiting label in the middle can be ranked second, and the sub anti-counterfeiting label on the right can be ranked third to obtain the corresponding label sequence. Among them, the label sequence refers to the sequence obtained by arranging the sub anti-counterfeiting labels in the arrangement direction. Figure 2 shown in [Figure 0], the sub anti-counterfeiting label on the left in [Figure 0] can be ranked first, the sub anti-counterfeiting label in the middle can be ranked second, and the sub anti-counterfeiting label on the right can be ranked third to obtain the corresponding label sequence. Among them, the label sequence refers to the sequence obtained by arranging the sub anti-counterfeiting labels in the arrangement direction.
[0141] S313. Corresponding the document pages and sub anti-counterfeiting labels with the same arrangement positions in the stamped document sequence and the label sequence to obtain the sub anti-counterfeiting labels corresponding to each document page.
[0142] Specifically, after obtaining the label sequence, the document pages and sub anti-counterfeiting labels with the same arrangement positions in the stamped document sequence and the label sequence can be matched. For example, in the label sequence, the sub anti-counterfeiting label on the left is ranked first, the sub anti-counterfeiting label in the middle is ranked second, and the sub anti-counterfeiting label on the right is ranked third. Then, the sub anti-counterfeiting label on the left can be matched with the first document page in the stamped document sequence, the sub anti-counterfeiting label in the middle can be matched with the second document page in the stamped document sequence, and the sub anti-counterfeiting label on the right can be matched with the third document page in the stamped document sequence, so as to obtain the sub anti-counterfeiting labels corresponding to each document page.
[0143] S32. When the stamped label type is a multi-label type, copy the anti-counterfeiting label according to the number of labels to obtain a group of anti-counterfeiting labels, and cut the group of anti-counterfeiting labels according to the cutting distance to obtain the sub anti-counterfeiting labels corresponding to each document page.
[0144] Specifically, when the type of the stamped identifier is a multi-identifier type, it indicates that multiple anti-counterfeiting identifiers need to be stamped on the stamped document sequence. At this time, the anti-counterfeiting identifiers can be copied according to the number of identifiers corresponding to the stamped document sequence to obtain an anti-counterfeiting identifier group containing multiple identical anti-counterfeiting identifiers. For example, when the number of identifiers corresponding to the stamped document sequence is 3, two anti-counterfeiting identifiers can be copied again to obtain an anti-counterfeiting identifier group containing 3 anti-counterfeiting identifiers. The stamping distances corresponding to each document page in the stamped document sequence can be obtained in sequence, and the stamping distances corresponding to each document page can be determined as the cutting distances in sequence. The anti-counterfeiting identifier group containing multiple complete anti-counterfeiting identifiers is cut according to the cutting distances to obtain the sub-anti-counterfeiting identifiers corresponding to each document page.
[0145] Among them, the anti-counterfeiting identifier group refers to a group composed of anti-counterfeiting identifiers with the number of identifiers.
[0146] In some embodiments, the specific implementation manner of step S32 may be:
[0147] S321, generate an arrangement reference line parallel to the arrangement direction, position the center points of the anti-counterfeiting identifiers based on the arrangement reference line, and arrange the anti-counterfeiting identifiers side by side to obtain an anti-counterfeiting identifier group. The interval distance between the center points of adjacent anti-counterfeiting identifiers is the distance corresponding to the identifier diameter.
[0148] Specifically, to ensure that each document page has a corresponding split seal for anti-counterfeiting, when cutting multiple anti-counterfeiting identifiers, an arrangement reference line parallel to the arrangement direction can be generated first. By positioning the center points of the anti-counterfeiting identifiers on the arrangement reference line, multiple anti-counterfeiting identifiers can be arranged side by side to obtain the corresponding anti-counterfeiting identifier group. And in the anti-counterfeiting identifier group, the interval distance between the center points of adjacent anti-counterfeiting identifiers is the identifier diameter, ensuring that the anti-counterfeiting identifiers in the anti-counterfeiting identifier group are closely connected, so as to ensure that each document page can be covered by the split seal.
[0149] Among them, the arrangement reference line refers to a line that can arrange multiple anti-counterfeiting identifiers side by side.
[0150] S322, obtain the total identifier distance covered by the anti-counterfeiting identifier group on the arrangement reference line. When the total identifier distance is greater than the total stamping distances corresponding to the document pages, rotate the anti-counterfeiting identifier group in a preset rotation direction.
[0151] Since the obtained value is rounded up when obtaining the number of anti-counterfeiting identifiers corresponding to the stamped document sequence, the total distance covered by the anti-counterfeiting identifiers may be greater than the total stamping distance corresponding to the stamped document sequence. To ensure that each anti-counterfeiting identifier can be completely displayed on the electronic document, the anti-counterfeiting identifier group can be rotated, so as to ensure the integrity of the anti-counterfeiting identifiers.
[0152] Specifically, after obtaining the anti-counterfeiting label group, the total label distance covered by the anti-counterfeiting label group on the arrangement reference line can be obtained. For example, when there are three anti-counterfeiting labels in the anti-counterfeiting label group and the three anti-counterfeiting labels are arranged side by side, the total label distance covered by the anti-counterfeiting label group on the arrangement reference line can be the sum of the diameters of the three labels. If the total label distance is greater than the total stamping distance corresponding to the stamped document sequence, in this case, some anti-counterfeiting labels in the anti-counterfeiting label group may not be completely displayed on the document page, thus affecting its integrity and anti-counterfeiting effect. At this time, the anti-counterfeiting label group can be rotated according to the pre-configured rotation direction, for example, the clockwise rotation direction, so that the anti-counterfeiting labels in the anti-counterfeiting label group can be completely displayed on the electronic document.
[0153] Among them, the total label distance refers to the total distance covered by the anti-counterfeiting labels in the anti-counterfeiting label group in the arrangement direction, and the preset rotation direction refers to the direction pre-configured for rotating the anti-counterfeiting label group.
[0154] S323. Real-time obtain the real-time total distance of the anti-counterfeiting label group in the arrangement direction during the rotation process. When the real-time total distance is less than the total stamping distance, stop the rotation of the anti-counterfeiting label group.
[0155] During the rotation of the anti-counterfeiting label group, the rotation angle of the anti-counterfeiting label group in the preset rotation direction can be obtained in real time. According to the total label distance and the real-time rotation angle, through the cosine function in trigonometric functions, the total distance of the anti-counterfeiting label group in the arrangement direction, that is, the real-time total distance, can be calculated in real time. When the real-time total distance is less than the total stamping distance, it can be considered that each anti-counterfeiting label in the anti-counterfeiting label group can be completely displayed on the electronic document at this time, and the rotation of the anti-counterfeiting label group can be stopped at this time.
[0156] Among them, the real-time total distance refers to the covered distance of the anti-counterfeiting label group in the arrangement direction obtained in real time.
[0157] S324. Generate a plurality of second cutting lines with a spacing of the cutting distance on the anti-counterfeiting label group in sequence according to the arrangement direction, and the second cutting lines are perpendicular to the arrangement reference line.
[0158] See Figure 3 , which is a schematic diagram of a second cutting line provided by an embodiment of the present invention. As Figure 3As shown in [figure], when the anti-counterfeiting label group rotates by a certain angle in the preset rotation direction, the anti-counterfeiting label group presents an inclined state. At this time, when cutting the anti-counterfeiting label group, a first second cutting line tangent to the leftmost anti-counterfeiting label and perpendicular to the arrangement reference line can be generated at the leftmost side of the anti-counterfeiting label group. When there are multiple document pages in the stamped document sequence, in the arrangement direction, first, taking the cutting distance corresponding to the first document page in the stamped document sequence as the interval distance, at a corresponding interval distance from the first second cutting line, a second second cutting line perpendicular to the arrangement reference line can be generated, and so on, multiple second cutting lines perpendicular to the arrangement reference line can be generated. Among them, the second cutting line refers to the line for cutting the anti-counterfeiting label group.
[0159] S325, cutting the anti-counterfeiting label group based on the second cutting line to obtain a plurality of sub anti-counterfeiting labels, and arranging each of the sub anti-counterfeiting labels based on the arrangement direction to obtain an identification sequence.
[0160] As Figure 3 shown in [figure], the anti-counterfeiting label group can be cut into a plurality of sub anti-counterfeiting labels through multiple second cutting lines, and in the arrangement direction, each of the sub anti-counterfeiting labels can be arranged to obtain a corresponding identification sequence.
[0161] S326, corresponding the document pages and sub anti-counterfeiting labels with the same arrangement positions in the stamped document sequence and the identification sequence to obtain the sub anti-counterfeiting labels corresponding to each of the document pages.
[0162] Specifically, by matching the document pages and sub anti-counterfeiting labels with the same arrangement positions in the stamped document sequence and the identification sequence, the sub anti-counterfeiting labels corresponding to each document page can be obtained.
[0163] S33, determining the area side perpendicular to the arrangement direction in the customized stamping area as the first target side, and determining the cutting side of each of the sub anti-counterfeiting labels as the second target side.
[0164] Specifically, the area side perpendicular to the arrangement direction in the customized stamping area of each document page can be determined as the first target side. Each customized stamping area has two area sides perpendicular to the arrangement direction, one on the left side and one on the right side. When cutting the anti-counterfeiting label to obtain sub anti-counterfeiting labels, each sub anti-counterfeiting label has a corresponding cutting side. Some sub anti-counterfeiting labels may have one cutting side, and some sub anti-counterfeiting labels may have two cutting sides. The cutting sides corresponding to each of the sub anti-counterfeiting labels can be determined as the second target side.
[0165] Among them, the area side refers to the four mutually perpendicular sides that form the customized stamping area, the first target side refers to the area side perpendicular to the arrangement direction in the customized stamping area, the cutting side refers to the side that divides the anti-counterfeiting label, and the second target side refers to the cutting side corresponding to the sub anti-counterfeiting label.
[0166] S34. Obtain the sub - anti - counterfeiting label on the left side after the anti - counterfeiting label is cut as the starting label, the sub - anti - counterfeiting label in the middle as the middle label, and the sub - anti - counterfeiting label on the right side as the ending label.
[0167] Specifically, after the anti - counterfeiting label is cut, the anti - counterfeiting label is cut into multiple sub - anti - counterfeiting labels. The sub - anti - counterfeiting label on the left side of each anti - counterfeiting label can be determined as the starting label, the sub - anti - counterfeiting label in the middle as the middle label, and the sub - anti - counterfeiting label on the right side as the ending label.
[0168] Among them, the starting label refers to the sub - anti - counterfeiting label on the left side, the middle label refers to the sub - anti - counterfeiting label in the middle, and the ending label refers to the anti - counterfeiting label on the right side.
[0169] S35. Connect the second target edge of the starting label with the first target edge on the right side in the customized stamping area, connect the second target edges on both sides of the middle label with the first target edges on both sides in the customized stamping area, and connect the second target edge of the ending label with the first target edge on the left side in the customized stamping area to obtain the archived data.
[0170] See Figure 4 , which is a schematic diagram for determining the second target edge provided by the embodiment of the present invention. As can be seen from Figure 4 , each sub - anti - counterfeiting label has a corresponding cutting edge. The starting label on the left side has a cutting edge on the right side, and this cutting edge on the right side can be determined as the second target edge corresponding to the starting label. The middle label in the middle position has two cutting edges on both sides, and the corresponding two cutting edges can be determined as the second target edges corresponding to the middle label. The ending label on the right side has a cutting edge on the left side, and this cutting edge on the left side can be determined as the second target edge corresponding to the ending label.
[0171] If the sub - anti - counterfeiting label corresponding to the document page is the starting label, the second target edge on the right side of the starting label can be connected with the first target edge on the right side in the customized stamping area of the document page. If the sub - anti - counterfeiting label corresponding to the document page is the middle label, the second target edges on both sides of the middle label can be respectively connected with the first target edges on both sides of the customized stamping area of the document page. If the sub - anti - counterfeiting label corresponding to the document page is the ending label, the second target edge on the left side of the ending label can be connected with the first target edge on the left side in the customized stamping area of the document page, so that the electronic split - seal can be stamped on the electronic document to obtain the corresponding archived data.
[0172] Through the above - mentioned implementation manner, it can be ensured that the anti - counterfeiting label on each document page is accurately matched with its stamping range, and the security of the electronic document can be improved.
[0173] S4. In response to the compliance verification information of the management terminal, verify the current anti-counterfeiting label corresponding to the current archived data based on the identification verification model, and send the compliance detection data to the management terminal.
[0174] Among them, the management terminal refers to the terminal held by the management personnel. The compliance verification information refers to the information for verifying the compliance of the archived data. The identification verification model refers to a model that can verify the anti-counterfeiting label in the archived data. The current archived data refers to the archived data to be verified for authenticity. The current anti-counterfeiting label refers to the anti-counterfeiting label to be verified on the current archived data. The compliance detection data refers to the data obtained after verifying the compliance of the current anti-counterfeiting label in the archived data.
[0175] After obtaining the archived data, multiple sub anti-counterfeiting labels corresponding to the archived data can be spliced. If the spliced anti-counterfeiting label is highly consistent with the original anti-counterfeiting label, the sub anti-counterfeiting labels in the archived data can be verified. The management personnel of the management terminal can send corresponding verification information. After the compliance verification information sent by the corresponding management terminal, the identification verification model trained in advance through a large amount of historical data can be retrieved. According to the historical data corresponding to the current archived data in the database, verify the anti-counterfeiting label in the archived data to be verified, and verify whether the anti-counterfeiting label is compliant. If the anti-counterfeiting label in the archived data is compliant, the corresponding compliance detection data can be obtained and sent to the management terminal for the management personnel to view.
[0176] Based on the above embodiments, the specific implementation manner of step S4 may be:
[0177] S41. Based on the identification verification model, retrieve multiple sub-archived labels corresponding to the current archived data from the database, and arrange the sub-archived labels in sequence according to the arrangement direction to obtain an archived label sequence.
[0178] Specifically, in the database, there is a large amount of historical archived data corresponding to the current archived data, and each historical archived data has a corresponding sub anti-counterfeiting label. Through the identification verification model, multiple historical sub anti-counterfeiting labels corresponding to the current archived data to be verified can be retrieved from the database, that is, sub-archived labels. In the arrangement direction, arrange the multiple sub-archived labels to obtain the corresponding archived label sequence.
[0179] Among them, the sub-archived label refers to the sub anti-counterfeiting label corresponding to the current archived label in the database, and the archived label sequence refers to the sequence obtained by arranging the sub-archived labels in the arrangement direction.
[0180] S42. Extract multiple current anti-counterfeiting labels corresponding to the current archived data, and arrange each current anti-counterfeiting label according to the arrangement direction to obtain a sequence to be verified.
[0181] Specifically, multiple corresponding sub anti-counterfeiting identifiers can be extracted from the current archived data, that is, the current anti-counterfeiting identifiers. In the arrangement direction, the multiple current anti-counterfeiting identifiers are arranged to obtain a corresponding sequence to be verified.
[0182] Among them, the current anti-counterfeiting identifier refers to the sub anti-counterfeiting identifier in the current archived data, and the sequence to be verified refers to the sequence obtained by arranging multiple current anti-counterfeiting identifiers in the arrangement direction.
[0183] S43. Sequentially determine the sub-archived identifiers in the archived identifier sequence as compliance identifiers, and determine the current anti-counterfeiting identifier corresponding to the arrangement position of the compliance identifier in the sequence to be verified as the identifier to be verified.
[0184] For example, in the archived identifier sequence, if the first sub-archived identifier is determined as the compliance identifier, then in the sequence to be verified, the first current anti-counterfeiting identifier can be determined as the identifier to be verified. Then, the second sub-archived identifier in the archived identifier sequence is determined as the compliance identifier, and similarly, the second current anti-counterfeiting identifier in the sequence to be verified can be determined as the identifier to be verified, and so on. Sequentially determine each sub-archived identifier in the archived identifier sequence as the compliance identifier, and similarly, the current anti-counterfeiting identifier corresponding to the arrangement position of the compliance identifier in the sequence to be verified can be sequentially determined as the identifier to be verified.
[0185] Among them, the compliance identifier refers to the sub-archived identifier in the archived identifier sequence, and the identifier to be verified refers to the current anti-counterfeiting identifier that needs to be verified in the sequence to be verified.
[0186] S44. Determine the compliance identifier and the identifier to be verified as a verification group, and obtain the first coordinate position of the compliance identifier and the second coordinate position of the identifier to be verified.
[0187] Specifically, the corresponding compliance identifier and the identifier to be verified can be determined as the same verification group. For example, the first compliance identifier in the archived identifier sequence and the first identifier to be verified in the sequence to be verified can be determined as the same verification group, and the coordinate position corresponding to the center point of the compliance identifier, that is, the first coordinate position, and the coordinate position corresponding to the center point of the identifier to be verified, that is, the second coordinate position, can be obtained. Subsequently, it can be determined whether the identifier to be verified is compliant according to the first coordinate position and the second coordinate position.
[0188] Among them, the verification group refers to the group composed of the compliance identifier and the corresponding identifier to be verified. The first coordinate position can be used to identify the position corresponding to the compliance identifier, and the second coordinate position can be used to represent the position corresponding to the identifier to be verified.
[0189] S45. When the distance difference between the first coordinate position and the second coordinate position is less than the distance difference threshold, obtain the first distance of the compliance mark in the arrangement direction and the second distance of the mark to be verified in the arrangement direction.
[0190] Specifically, after obtaining the first coordinate position and the second coordinate position, according to the distance formula between two coordinates, the distance difference corresponding to the first coordinate position and the second coordinate position can be obtained. If the distance difference is less than the distance difference threshold, it can be considered that the position of the mark to be verified is almost the same as the position of the compliance mark. In order to more accurately judge the authenticity of the mark to be verified, the stamping distance of the compliance mark in the arrangement direction, that is, the first distance, and the stamping distance of the mark to be verified in the arrangement direction, that is, the second distance, can be obtained, and the authenticity of the mark to be verified can be rejudged according to the stamping distance.
[0191] Among them, the distance difference refers to the distance between the first coordinate position and the second coordinate position, and the distance difference threshold refers to the threshold that can be used to judge whether the first coordinate position and the second coordinate position are consistent. If the distance difference is less than the distance difference threshold, it can be considered that the first coordinate position and the second coordinate position are almost the same. If the distance difference is greater than the distance difference threshold, it can be considered that there is a gap between the first coordinate position and the second coordinate position.
[0192] S46. When the difference between the first distance and the second distance is less than the mark stamping threshold, determine that the verification group is a compliance group. When all verification groups are the compliance groups, determine that the current archived data is compliance detection data and send it to the management terminal.
[0193] Specifically, if the difference between the first distance and the second distance is less than the mark stamping threshold, it can be considered that the stamping distance of the compliance mark and the stamping distance of the mark to be verified are almost the same, and the corresponding verification group can be determined as a compliance group. Verify other verification groups in the same way. If all verification groups are compliance groups, it can be determined that the current archived data is compliance detection data, and the compliance detection data can be sent to the management terminal.
[0194] Among them, the mark stamping threshold refers to the threshold that can be used to judge whether a verification group is compliant. If the difference between the first distance and the second distance is less than the mark stamping threshold, it can be considered that the corresponding verification group is compliant. If the difference between the first distance and the second distance is greater than the mark stamping threshold, it can be considered that the corresponding verification group is non-compliant. A compliance group refers to a verification group in which the difference between the first distance and the second distance is less than the mark stamping threshold.
[0195] Through the above implementation manners, the anti-counterfeiting marks in the archived data can be comprehensively and meticulously verified, reducing the risk of electronic documents being forged or tampered with.
[0196] See Figure 5 , which is a schematic structural diagram of a tax compliance intelligent inspection platform provided by an embodiment of the present invention. The data processing system based on the tax compliance intelligent inspection platform includes:
[0197] An acquisition module, configured to obtain an electronic layout sequence corresponding to electronic data based on a document recognition model, and determine a customized stamping area of each document page in the electronic data according to the electronic layout sequence;
[0198] A determination module, configured to obtain the stamping range of each customized stamping area, and determine a stamping identification type according to the stamping range, where the stamping identification type includes a single identification type and a multiple identification type;
[0199] An update module, configured to cut the anti-counterfeiting identifier based on the stamping identification type and the stamping range to obtain sub-anti-counterfeiting identifiers of each document page, and update the electronic data based on the sub-anti-counterfeiting identifiers to obtain archived data;
[0200] A verification module, configured to respond to the compliance verification information of the management end, verify the current anti-counterfeiting identifier corresponding to the current archived data based on an identifier verification model, and send the compliance detection data to the management end.
[0201] Figure 5 The device in the illustrated embodiment can correspondingly be used to execute Figure 1 the steps in the method embodiment shown. The implementation principle and technical effect are similar, and will not be elaborated here.
[0202] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A tax compliance intelligent inspection method, characterized in that: include: Acquire an electronic layout sequence corresponding to the electronic data based on a document recognition model: perform text recognition on each document page based on the document recognition model to determine the keywords corresponding to each document page; when the keyword is a seal indicator word, determine the center point of the seal indicator word as the center of a circle, determine the traversal range according to a preset radius, and identify the document seal within the traversal range; determine the first importance index corresponding to each keyword and the second importance index of the document seal, add the first importance index and the second importance index corresponding to the document page to obtain an evaluation index, and arrange each document page from large to small based on the evaluation index to obtain an electronic layout sequence; Determine the customized cover area of each document page in the electronic data according to the electronic layout sequence: obtain the first document page in the electronic layout sequence as a reference page, and calculate the index difference between the evaluation index of the reference page and the evaluation index of the remaining document pages; Determine a first capping distance corresponding to the reference page, offset the first capping distance according to the index difference, and obtain a second capping distance corresponding to each of the remaining document pages; determine the capping edge of each of the document pages, and generate a customized edge parallel to the capping edge at a first capping distance or a second capping distance from the capping edge in the capping direction based on the capping edge; determine the page area corresponding to the capping edge and the customized edge in the document page as the customized capping area; Acquire the stamping range of each customized stamping area, and determine the stamping mark type according to the stamping range, wherein the stamping mark type includes a single mark type and a multiple mark type; Cutting the anti-counterfeiting mark based on the stamping mark type and stamping range to obtain the sub-anti-counterfeiting mark of each document page, updating the electronic data based on the sub-anti-counterfeiting mark to obtain archived data, wherein the anti-counterfeiting mark is an electronic saddle seal; In response to the compliance verification information of the management end, the current anti-counterfeiting mark corresponding to the current archived data is verified based on the mark verification model to obtain compliance detection data and send it to the management end.
2. The method according to claim 1, characterized in that Determining a first capping distance corresponding to the reference page, offsetting the first capping distance according to the index difference, and obtaining second capping distances corresponding to the remaining document pages, including: Counting the index mean of each evaluation index, and determining the optimal capping range corresponding to the index mean as the first capping distance corresponding to the reference page; Obtaining a shift coefficient according to a ratio of the index difference value to the reference index difference value, and obtaining distance shift values of the remaining document pages based on a product of the shift coefficient and the reference shift value; Based on the difference between the first capping distance and the distance offset value, second capping distances corresponding to the remaining document pages are determined.
3. The method according to claim 1, characterized in that The stamping range of each customized stamping area is obtained, and the stamping mark type is determined according to the stamping range. The stamping mark type includes a single mark type and a multiple mark type, including: Determine the document page number of each of the document pages, and arrange the document pages in an arrangement direction from small to large according to the document page number to obtain a stamped document sequence; Acquire the capping distance of each document page in the capping document sequence in the arrangement direction, the capping range includes the capping distance, and sum up each capping distance to obtain a total capping distance corresponding to the capping document sequence; Determine the diameter of the anti-counterfeiting mark, the anti-counterfeiting mark is a circular mark, and obtain the number of marks according to the rounded-up value of the ratio of the total capping distance to the mark diameter; When the number of the logos is equal to a preset odd number, the stamped logo type is determined to be a single logo type; when the number of the logos is greater than the preset odd number, the stamped logo type is determined to be a multiple logo type.
4. The method according to claim 3, characterized in that Cutting the anti-counterfeiting mark based on the stamping mark type and stamping range to obtain the sub-anti-counterfeiting mark of each document page, and updating the electronic data based on the sub-anti-counterfeiting mark to obtain archived data, including: When the stamped mark type is a single mark type, sequentially obtaining stamped distances of each document page in the stamped document sequence as cutting distances, cutting the anti-counterfeiting mark according to the cutting distances, and obtaining sub-anti-counterfeiting marks corresponding to each document page; When the stamped mark type is a multiple mark type, the anti-counterfeiting mark is copied according to the number of marks to obtain an anti-counterfeiting mark group, and the anti-counterfeiting mark group is cut according to the cutting distance to obtain a sub-anti-counterfeiting mark corresponding to each of the document pages; Determine the edge of the region in the customized capping area that is perpendicular to the arrangement direction as the first target edge, and determine the cutting edge of each of the sub-anti-counterfeiting marks as the second target edge; After the anti-counterfeiting mark is cut, the sub-anti-counterfeiting mark on the left is taken as the starting mark, the sub-anti-counterfeiting mark in the middle is taken as the middle mark, and the sub-anti-counterfeiting mark on the right is taken as the ending mark; The second target edge of the starting mark is connected with the first target edge on the right side of the customized cover area, the second target edges on both sides of the middle mark are connected with the first target edges on both sides of the customized cover area, and the second target edge of the ending mark is connected with the first target edge on the left side of the customized cover area to obtain archived data.
5. The method according to claim 4, characterized in that When the stamped mark type is a single mark type, sequentially obtaining stamped distances of each document page in the stamped document sequence as cutting distances, cutting the anti-counterfeiting mark according to the cutting distances, and obtaining sub-anti-counterfeiting marks corresponding to each document page, including: According to the arrangement direction, a plurality of first cutting lines with a spacing of the cutting distance are sequentially generated on the anti-counterfeiting mark, wherein the first cutting lines are perpendicular to the arrangement direction; Cutting the anti-counterfeiting mark based on the first cutting line to obtain a plurality of sub-anti-counterfeiting marks, and arranging the sub-anti-counterfeiting marks based on the arrangement direction to obtain a mark sequence; The document pages and the sub-anti-counterfeiting marks that are arranged in the same position in the stamped document sequence and the mark sequence are matched to obtain the sub-anti-counterfeiting marks corresponding to each of the document pages.
6. The method according to claim 4, characterized in that When the stamped mark type is a multiple mark type, the anti-counterfeiting mark is copied according to the number of marks to obtain an anti-counterfeiting mark group, and the anti-counterfeiting mark group is cut according to the cutting distance to obtain the sub-anti-counterfeiting marks corresponding to each document page, including: Generate an arrangement reference line parallel to the arrangement direction, locate the center point of each anti-counterfeiting mark based on the arrangement reference line, arrange each anti-counterfeiting mark side by side to obtain an anti-counterfeiting mark group, and the interval distance between the center points of adjacent anti-counterfeiting marks is the distance corresponding to the mark diameter; Obtaining a total mark distance covered by the anti-counterfeiting mark group on the arrangement reference line, and when the total mark distance is greater than the total covering distance corresponding to each of the document pages, rotating the anti-counterfeiting mark group according to a preset rotation direction; Acquire in real time the real-time total distance of the anti-counterfeiting mark group in the arrangement direction during the rotation process, and stop the rotation of the anti-counterfeiting mark group when the real-time total distance is less than the total capping distance; According to the arrangement direction, a plurality of second cutting lines with a spacing of the cutting distance are sequentially generated on the anti-counterfeiting mark group, wherein the second cutting lines are perpendicular to the arrangement reference line; Cutting the anti-counterfeiting mark group based on the second cutting line to obtain a plurality of sub-anti-counterfeiting marks, and arranging the sub-anti-counterfeiting marks based on the arrangement direction to obtain a mark sequence; The document pages and the sub-anti-counterfeiting marks that are arranged in the same position in the stamped document sequence and the mark sequence are matched to obtain the sub-anti-counterfeiting marks corresponding to each of the document pages.
7. The method according to claim 1, characterized in that In response to the compliance verification information of the management end, the current anti-counterfeiting mark corresponding to the current archived data is verified based on the mark verification model to obtain compliance detection data and send it to the management end, including: Based on the identification verification model, multiple sub-archive identifications corresponding to the current archive data are retrieved from the database, and the sub-archive identifications are arranged in sequence according to the arrangement direction to obtain an archive identification sequence; Extracting a plurality of current anti-counterfeiting marks corresponding to the current archived data, and arranging the current anti-counterfeiting marks according to the arrangement direction to obtain a sequence to be verified; sequentially determining the sub-archiving identifiers in the archiving identifier sequence as compliance identifiers, and determining the current anti-counterfeiting identifier corresponding to the arrangement position of the compliance identifier in the to-be-verified sequence as the to-be-verified identifier; Determine the compliance mark and the mark to be verified as a verification group, and obtain a first coordinate position of the compliance mark and a second coordinate position of the mark to be verified; When the distance difference between the first coordinate position and the second coordinate position is less than a distance difference threshold, obtaining a first distance of the compliance mark in the arrangement direction and a second distance of the mark to be verified in the arrangement direction; When the difference between the first distance and the second distance is less than the identification stamping threshold, the verification group is determined to be a compliance group. When all verification groups are the compliance groups, the current archived data is determined to be compliance detection data and sent to the management end.
8. A tax compliance intelligent inspection platform, characterized in that: include: An acquisition module, used for acquiring an electronic layout sequence corresponding to the electronic data based on a document recognition model, and determining a customized cover area of each document page in the electronic data according to the electronic layout sequence, comprising: Determining the evaluation index of each document page corresponding to the electronic data according to the document recognition model, and arranging the document pages from large to small based on the evaluation index to obtain an electronic layout sequence, including: Performing text recognition on each of the document pages based on the document recognition model to determine keywords corresponding to each of the document pages; When the keyword is a seal indicator word, the center point of the seal indicator word is determined as the center of the circle, a traversal range is determined according to a preset radius, and the document seal within the traversal range is identified; Determine a first importance index corresponding to each of the keywords and a second importance index of the document seal, and add the first importance index and the second importance index corresponding to the document page to obtain an evaluation index; Acquire the first document page in the electronic layout sequence as a reference page, and calculate the index difference between the evaluation index of the reference page and the evaluation index of the remaining document pages; Determine a first capping distance corresponding to the reference page, offset the first capping distance according to the index difference, and obtain a second capping distance corresponding to the remaining document pages; Determine the capping edge of each of the document pages, and based on the capping edge, generate a customized edge parallel to the capping edge at the first capping distance or the second capping distance from the capping edge in the capping direction; Determine a page area corresponding to the capped edge and the customized edge in the document page as the customized capped area; A determination module, used for obtaining the stamping range of each customized stamping area, and determining the stamping mark type according to the stamping range, wherein the stamping mark type includes a single mark type and a multiple mark type; An updating module, used for cutting the anti-counterfeiting mark based on the stamping mark type and stamping range to obtain the sub-anti-counterfeiting mark of each document page, and updating the electronic data based on the sub-anti-counterfeiting mark to obtain archived data, wherein the anti-counterfeiting mark is an electronic saddle seal; The verification module is used to respond to the compliance verification information of the management end, verify the current anti-counterfeiting mark corresponding to the current archived data based on the mark verification model, and obtain compliance detection data and send it to the management end.
Citation Information
Patent Citations
Method and device for electronic document anti-counterfeit
CN102663324A
Seal character detection and recognition method, device, and medium for complex environments
WO2021115490A1