Law service whole process supervision and control method and system

By generating a unique task number and combining it with printing job vouchers, stamping area masking, and micro-dot decoding, the problem of legal documents being reprinted or tampered with by unauthorized devices after being stamped is solved, achieving full-process supervision and compliance management.

CN121120318APending Publication Date: 2025-12-12SHENZHEN ZHILU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511322110.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-16
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

Existing technologies are insufficient to effectively identify and prevent legal documents from being reprinted or altered by unauthorized devices after being stamped, making it difficult to guarantee the authenticity and compliance of the documents.

Method used

By generating a unique task number, and combining it with printed job vouchers, stamp area masks, and micro-dot decoding, a full-process data association system is constructed to achieve accurate comparison and compliance determination of documents.

Benefits of technology

It enables full-process supervision of legal documents, accurately identifies and prevents reprinting and tampering, ensures the authenticity and compliance of documents, and forms a closed-loop management system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121120318A_ABST
    Figure CN121120318A_ABST
Patent Text Reader

Abstract

The invention discloses a legal service whole-process supervision and control method and system, and relates to the technical field of legal service process supervision and control, and the method comprises the steps: generating a task number based on acceptance information; generating a printing job voucher at the authorized printing end and binding a task number; collecting a sealed file image and segmenting the file image to obtain a mask; aligning the mask with the archiving scanning piece, and respectively performing micro-point decoding inside and outside the mask to obtain a decoding result; comparing the decoding result with the printing job voucher, and judging to obtain a judgment result; and generating and sending a delivery file according to the judgment result, and storing the task number, the printing job voucher, the decoding result and the judgment result into an evidence library. According to the method, the whole legal service process is supervised and controlled through a deterministic rule of micro-point existence and equipment identity equivalence.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of legal service process supervision and control, and particularly relates to a legal service whole-process supervision and control system. BACKGROUND

[0002] In the legal service field, whether it is contract signing, case agency or legal document circulation, it involves a large number of paper files generation, printing, entity stamping and final delivery links. These files are directly related to the definition of legal rights and responsibilities, the protection of the rights and interests of the parties, and the authenticity, integrity and process compliance are the core basis of the legal service credibility. In actual operation, after the authorized printing end outputs the file, the file may be printed again by unauthorized equipment or the content may be tampered with after the entity stamping. Such irregular operation will cause substantial differences between the file and the original authorized version, not only destroying the standardization of the legal service process, but also possibly causing legal disputes and damaging the rights and interests of the parties.

[0003] The prior art usually relies on traditional log auditing and file execution traceability control by stamping, which is difficult to accurately compare the file paper, cannot effectively cover the actual scenarios such as non-reproducible content after stamping or pseudo-stamp copying, and cannot restore the physical code in the printing process through image technology, resulting in identification breakpoints at key nodes and affecting the authenticity judgment of the delivery link. There is an urgent need for a technical solution based on device consistency and physical signal integrity for automatic comparison and compliance determination. SUMMARY

[0004] The purpose of the present application is to solve the problems in the prior art that it is difficult to objectively identify whether the document has been imaged twice after stamping, the source of the printing equipment is difficult to verify, and there is a lack of reproducible criteria for delivery and evidence. A legal service whole-process supervision and control method and system are proposed.

[0005] In order to solve the problems in the prior art, the present application adopts the following technical solutions:

[0006] A legal service whole-process supervision and control method, comprising:

[0007] S1, generating a unique task number based on legal project service acceptance information;

[0008] S2, when the authorized printing end performs printing operation, generating a printing job voucher at the authorized printing end, and binding the voucher and the task number;

[0009] S3, collecting the file image after stamping, performing image segmentation on the file image to obtain a mask of the file stamping area, and binding the mask and the task number;

[0010] S4, align the mask of the file seal area with the coordinates of the archival scan, and perform micro-point decoding in the inside and outside areas of the mask respectively to obtain decoding results, and bind the decoding results with the task number;

[0011] S5, compare and determine the decoding results and the print job voucher to obtain a determination result, and bind the determination result with the task number;

[0012] S6, generate and deliver a file according to the determination result, and store the task number, print job voucher, decoding result and determination result in the evidence library.

[0013] Preferably, a unique task number is generated based on legal project service acceptance information, including:

[0014] Obtain legal project service acceptance information, and perform hash calculation on the legal project service acceptance information to generate a unique task number.

[0015] Preferably, when the authorized printing end performs a printing operation, a print job voucher is generated at the authorized printing end, and the voucher is bound with the task number, including:

[0016] When the authorized printing end performs a printing operation, a print job voucher is generated at the authorized printing end, wherein the print job voucher includes: device ID and printing time.

[0017] Preferably, the file image after completing the seal is collected, the file image is subjected to image segmentation to obtain a mask of the file seal area, and the mask is bound with the task number, including:

[0018] When the file completes the physical seal, a file image is obtained by a quick image collection of the file through an image collection device;

[0019] Color recognition is performed on the file image to obtain color features of the file seal area, and then binaryzation processing is performed on the area in the file image that meets the color features of the seal to obtain a binaryzation distinction result of the red seal area and the non-red seal area;

[0020] The binaryzation distinction result is subjected to connected region analysis to determine the core boundary of the seal area mask.

[0021] Preferably, the mask of the file seal area is aligned with the coordinates of the archival scan, and micro-point decoding is performed in the inside and outside areas of the mask respectively to obtain decoding results, and the decoding results are bound with the task number, including:

[0022] The file image and the archival scan are derived from the same sealed paper original and are bound with the same task number;

[0023] The mask of the seal area is aligned with the scan image of the archival scan through coordinate mapping;

[0024] Decode the yellow micro-dots in the aligned mask area and mask area respectively to obtain the number of micro-dots in the mask area, the number of micro-dots in the mask area, the device ID corresponding to the mask area, and the device ID corresponding to the mask area.

[0025] The decoding result is obtained by combining the number of micro-dots in the mask area, the number of micro-dots in the mask area, the device ID corresponding to the mask area, and the device ID corresponding to the mask area. The decoding result is then bound to the task number.

[0026] Preferably, the decoding result and the printed job voucher are compared and judged to obtain a judgment result, and the judgment result is bound to the task number, including:

[0027] If the number of micro-dots in the area inside the mask is zero, the number of micro-dots in the area outside the mask is greater than or equal to one, and the device ID corresponding to the area outside the mask is consistent with the device ID in the printed job voucher, then it is considered compliant.

[0028] If the number of micro-dots in the area inside the mask is greater than or equal to one, the number of micro-dots in the area outside the mask is greater than or equal to one, and the device ID corresponding to the area outside the mask is inconsistent with the device ID in the print job voucher, or the device ID corresponding to the area inside the mask is inconsistent with the device ID in the print job voucher, then it is determined to be a secondary imaging anomaly.

[0029] If the number of micro-dots in the area inside the mask is greater than or equal to one, the number of micro-dots in the area outside the mask is greater than or equal to one, the device ID corresponding to the area outside the mask is consistent with the device ID in the print job voucher, and the device ID corresponding to the area inside the mask is consistent with the device ID in the print job voucher, then it is determined to be an abnormal reprint on the same machine.

[0030] Preferably, a document is generated and delivered based on the judgment result, and the task number, printed job voucher, decoding result, and judgment result are stored in the evidence database, including:

[0031] If the judgment result is compliant, the legal service project delivery documents will be generated and sent; if the judgment result is abnormal secondary imaging or abnormal reprinting on the same machine, the sending of the legal service project documents will be blocked.

[0032] The task number, printed job voucher, decoding result, and judgment result are integrated into an audit package and stored in the evidence library.

[0033] To address the aforementioned problems, the present invention also provides a legal service end-to-end supervision and control system, the system comprising:

[0034] The task number generation module is used to generate a unique task number based on the legal project service acceptance information.

[0035] The print voucher generation module is used to generate a print job voucher on the authorized printing terminal when the authorized printing terminal performs a printing operation, and bind the voucher with the job number;

[0036] The mask generation module is used to acquire the document image after stamping, perform image segmentation on the document image, obtain the mask of the document stamping area, and bind the mask to the task number.

[0037] The micro-dot decoding module is used to align the mask of the document's stamped area with the coordinates of the archived scanned document, and perform micro-dot decoding in the areas inside and outside the mask to obtain the decoding result, and then bind the decoding result with the task number;

[0038] The compliance determination module is used to compare and determine the decoding result and the printed job voucher, obtain the determination result, and bind the determination result with the task number;

[0039] The evidence storage module is used to generate and deliver documents based on the judgment results, and store the task number, printed job voucher, decoding result and judgment result into the evidence database.

[0040] Compared with the prior art, the beneficial effects of the present invention are:

[0041] 1. In this invention, by generating a unique task number and integrating it throughout the entire process, legal project service acceptance information, printed work vouchers, stamped area masks, micro-dot decoding results, and judgment results are all bound to the task number, thus constructing a full-link data association system from acceptance to evidence storage. This ensures that any operation at any stage can be accurately located through the task number, providing basic data support for process supervision.

[0042] 2. In this invention, a mask for the stamped area is generated by acquiring the image of the stamped document, aligning the mask with the archived scanned document, decoding the yellow micro-dots in the inner and outer areas of the mask, and comparing and judging with the device ID in the printing job voucher. This constructs a precise identification mechanism for handling violations after physical stamping, effectively identifying violations such as secondary printing and tampering after physical stamping.

[0043] 3. In this invention, by controlling the sending of the control file according to the judgment result, and integrating the task number, printed job voucher, decoding result and judgment result into an audit package and storing it in the evidence library, a closed-loop management is formed from judgment to processing to evidence storage. Attached Figure Description

[0044] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0045] Figure 1A flowchart illustrating a method for supervising and controlling the entire legal service process according to an embodiment of the present invention;

[0046] Figure 2 This is a functional module diagram of a legal service full-process supervision and control system provided in an embodiment of the present invention. Detailed Implementation

[0047] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.

[0048] Example: This example provides a method for supervising and controlling the entire legal service process. See [link to example]. Figure 1 Specifically, including:

[0049] S1. Generate a unique task number based on the legal project service acceptance information;

[0050] In an embodiment of the present invention, a unique task number is generated based on legal project service acceptance information, including:

[0051] Obtain legal project service acceptance information, perform hash calculation on the legal project service acceptance information, and generate a unique task number;

[0052] Specifically, the process involves acquiring legal project service acceptance information, including: the name and number of the legal project, service type, acceptance time, client name and code, service provider name and code, service requirement description, and all other key information related to the acceptance of the legal project service. The acquired legal project service acceptance information is then standardized, unifying the data format of each information item and removing potentially redundant spaces, special symbols, and other interfering information to ensure the integrity and consistency of the information. The standardized legal project service acceptance information is converted into a string using the SHA-256 algorithm and input into the hash algorithm. The hash algorithm calculates a fixed-length hash value from the input string. This hash value is then used as the unique task number for the corresponding legal project service. Due to the one-way and collision-resistant nature of the hash algorithm, different legal project service acceptance information will generate different hash values, while the same legal project service acceptance information will generate the same hash value, thus ensuring that the task number uniquely identifies the corresponding legal project service.

[0053] S2. When the authorized printer performs a printing operation, a print job voucher is generated on the authorized printer and the voucher is bound to the job number;

[0054] In an embodiment of the present invention, when the authorized printing terminal performs a printing operation, a print job voucher is generated on the authorized printing terminal, and the voucher is bound to the job number, including:

[0055] When an authorized printer performs a printing operation, a print job certificate is generated on the authorized printer. The print job certificate includes: device ID and printing time.

[0056] Bind the print job voucher to the task number;

[0057] Specifically, when the authorized printing terminal receives a print instruction corresponding to the current legal project service and begins to execute the print operation, it calls its stored hardware identification information to extract its unique device ID. This device ID is an immutable identifier pre-written into the authorized printing terminal's hardware or system, used to uniquely identify the printing terminal. Simultaneously, the authorized printing terminal obtains the precise time of the current print operation execution, accurate to the second, recorded in the format of year, month, day, hour, minute, and second, ensuring the uniqueness and traceability of the time information. The authorized printing terminal integrates the extracted device ID and the obtained print time into a structured print job voucher, including a device ID field and a print time field, with the fields separated by a preset separator to ensure the accuracy of data parsing. The task number corresponding to the current legal project service is retrieved, and the corresponding information of the two is stored in the system's internal database, so that the task number and the print job voucher form a one-to-one mapping, ensuring that the corresponding print job voucher information can be directly queried through the task number in subsequent processes.

[0058] S3. Acquire the image of the document after it has been stamped, perform image segmentation on the document image to obtain the mask of the stamped area, and bind the mask to the task number.

[0059] In an embodiment of the present invention, the process includes acquiring a document image after stamping, performing image segmentation on the document image to obtain a mask for the stamped area, and binding the mask to a task number, including:

[0060] When the physical stamp of the document is completed, the document is quickly imaged using an image acquisition device to obtain the document image.

[0061] Color recognition is performed on the document image to obtain the color features of the document stamp area. Then, the areas in the document image that match the stamp color features are binarized to obtain the binarized distinction results between the red stamp area and the non-red stamp area.

[0062] Specifically, after the physical stamping of the document is completed, an image acquisition device is activated. This device is a high-definition industrial camera, installed at a preset vertical distance from the document's surface to ensure the entire document is covered during capture. The image acquisition device has a resolution of at least 300 dpi, and its built-in supplementary lighting module provides uniform white light illumination to avoid shadows or reflections affecting image quality. The acquisition process is completed within one second to ensure timeliness, ultimately generating a digital document image containing the complete document content and the stamped area. The acquired document image undergoes preprocessing, including removing Gaussian noise and salt-and-pepper noise to reduce interference, and color normalization is performed to unify the image. The brightness and contrast of the image are adjusted, and the pre-processed document image is converted from the RGB color space to the HSV color space. By analyzing the hue, saturation, and lightness channels in the HSV space, pixel areas that match the typical color characteristics of a physical seal are selected. In particular, red pixels with hue values ​​in the range of 0° to 10° and 350° to 360° are identified. At the same time, the saturation is not less than 60% and the lightness is in the range of 30% to 80% for auxiliary judgment. The color parameter set of pixels in this range is extracted to form the color characteristics of the document seal area. This feature includes key information such as the main hue range, average saturation, and average lightness of the seal area.

[0063] In detail, based on the extracted color features of the document stamp area, a threshold range for binarization is determined. This threshold range is based on the hue range, average saturation, and average brightness of the stamp area. The hue threshold corresponds to the typical hue range of a red stamp, the saturation threshold is not less than 80% of the average saturation of the stamp area, and the brightness threshold is within ±20% of the average brightness of the stamp area. Pixel-by-pixel analysis is performed on the document image, comparing the HSV color parameters of each pixel with the aforementioned threshold range. If the hue, saturation, and brightness of a pixel are all within the preset threshold range, the pixel is determined to belong to the red stamp area, and its pixel value is set to a preset first value. If the color parameters of a pixel are not entirely within the threshold range, the pixel is determined to belong to a non-red stamp area, and its pixel value is set to a preset second value. The first and second values ​​are distinct binary values. Finally, a binarized image containing only the first and second values ​​is generated.

[0064] Connectivity analysis was performed on the binarization results to determine the core boundary of the stamp region mask;

[0065] Bind the mask of the document's stamped area to the task number;

[0066] Specifically, a connected component analysis is performed on the binarized distinction results between red-stamp and non-red-stamp regions. First, all pixels in the binarized image are traversed, using the first value set during binarization as the target pixel value. An 8-neighborhood connectivity rule is applied: if other pixels with the same first value exist in the top, middle, bottom, left, right, and four diagonal directions of a pixel with that first value, then these pixels are considered to belong to the same connected region. A seed-filling algorithm is used to mark all pixels with the same first value, forming multiple independent connected regions. The number of pixels in each marked connected region is calculated. An area threshold is set based on the typical size range of a physical stamp, and connected regions with fewer pixels than this threshold are removed to eliminate false red-stamp regions caused by image noise or local color interference. For the remaining connected regions, [the following steps are taken]. The connected region with the most pixels is selected as the target region, which is the main area of ​​the red stamp. Boundary extraction is performed on the target region by calculating the extreme coordinates of all pixels within the region to determine the minimum bounding rectangle of the region. Then, the contour boundary of the region is fitted using the convex hull algorithm. At the same time, morphological closing operations are used to smooth the boundary, removing burrs and depressions on the boundary, and finally obtaining a continuous and complete closed boundary. This boundary is the core boundary of the stamp area mask. The mask is bounded by this boundary, with the area inside the boundary being the red stamp area and the area outside the boundary being the non-red stamp area. The storage address of the mask is mapped to the task number, and a one-to-one corresponding index relationship is established in the database so that the task number can be uniquely associated with the mask of the stamp area of ​​the file, ensuring that the corresponding mask data can be accurately retrieved through the task number in subsequent processes.

[0067] S4. Align the mask of the document stamp area with the coordinates of the archived scanned document, and perform micro-dot decoding in the areas inside and outside the mask to obtain the decoding result, and bind the decoding result with the task number;

[0068] In an embodiment of the present invention, the mask of the document stamping area is aligned with the coordinates of the archived scanned document, and micro-dot decoding is performed in the areas inside and outside the mask to obtain the decoding result. The decoding result is then bound to the task number, including:

[0069] The document images and archived scans originated from the same stamped paper original and were bound to the same task number;

[0070] The mask of the stamp area is aligned with the scanned image of the archived document using coordinate mapping.

[0071] Specifically, the document image is a digital image quickly captured by an image acquisition device after the document has been physically stamped, while the archived scan is a high-resolution digital image of the document generated by a scanning device during the subsequent archiving process. Both originate from the same stamped original paper document and are associated with a unique task number corresponding to the legal project service in the system. The correspondence between the two can be found in the system database through the task number index, ensuring consistency and relevance of the source. When aligning the mask of the stamp area with the scanned image of the archived scan through coordinate mapping, feature points are extracted from both the document image and the archived scan. Fixed feature regions present in both are selected as the benchmark. These feature regions include the document edge outline and header. The corner coordinates of the fixed text area in the footer and the watermark pattern on the paper itself are extracted as matching point pairs. Based on the extracted matching point pairs, the geometric transformation parameters between the two images are calculated. These parameters include translation, rotation angle, and scaling ratio. The least squares method is used to optimize the transformation parameters to reduce errors caused by differences in image acquisition angle or scaling. The calculated geometric transformation parameters are applied to the mask of the stamp area, and the coordinates of the mask are transformed to make the pixel coordinate system of the mask consistent with the coordinate system of the scanned image of the archived document. Finally, the mask of the stamp area is accurately aligned in the scanned image of the archived document, ensuring that the areas inside and outside the mask can accurately correspond to the red stamp area and non-red stamp area in the scanned image.

[0072] Decode the yellow micro-dots in the aligned mask area and mask area respectively to obtain the number of micro-dots in the mask area, the number of micro-dots in the mask area, the device ID corresponding to the mask area, and the device ID corresponding to the mask area.

[0073] Specifically, after aligning the mask with the archived scanned document's coordinates, the scanned image of the archived document is divided into an inner-mask region and an outer-mask region based on the aligned mask boundaries. The inner-mask region corresponds to the area covered by the red stamp, and the outer-mask region corresponds to the area not covered by the red stamp. Image preprocessing is performed on both regions, including grayscale conversion to highlight the contrast between the yellow micro-dots and the background, Gaussian filtering to remove high-frequency noise, and adaptive threshold segmentation to enhance the micro-dot contours, thus separating the yellow micro-dots from the complex background. Based on the color characteristics of the yellow micro-dots, the hue range of yellow in the HSV color space is set to 20° to 35°, saturation not less than 50%, and brightness between 40% and 90%. The preprocessed images of the two regions are then further processed. Pixel-by-pixel filtering is performed to extract pixels that fit the specified range as candidate microdot regions. Morphological analysis is then conducted on these candidate regions. Based on the preset yellow microdot size range and roundness threshold, interference areas that do not meet the characteristics are eliminated to determine the valid microdots. The yellow microdot serves as an identifier pre-embedded in the printed document, and its basic size parameters are defined during the design phase. The roundness threshold is determined based on the design morphology of the yellow microdot. By testing microdot samples from 1000 standard printed documents, the roundness concentration range of qualified microdots is statistically analyzed and used as the roundness threshold. The number of valid microdots within the mask region is counted, which is the total number of microdots within the mask region. Similarly, the same process is followed to count the number of valid microdots outside the mask region, yielding the total number of microdots outside the mask region.

[0074] In detail, for each valid microdot, a microdot decoding algorithm is used to parse the device ID information contained in the yellow microdot. The algorithm is designed based on a preset encoding rule for the yellow microdots, which stipulates that the microdots carry binary encoded information through a specific dot matrix arrangement or geometric structure. During algorithm execution, the determined valid yellow microdot regions are first enhanced by sharpening to highlight the encoded details within the microdots. Then, an edge detection algorithm is used to extract the bounding boxes of the microdots. Using these bounding boxes as a reference, the microdot regions are normalized to a preset size, eliminating the influence of size deviations caused by printing or scanning. Based on the encoding rule of the yellow microdots, the region is divided into multiple sub-regions of preset sizes. Each sub-region corresponds to one binary bit. Sub-regions contain preset markers, such as small circular dots representing binary 1, and no marker representing binary 0; or... The arrangement direction of the markers within a sub-region, such as horizontal or vertical, distinguishes different binary values. The algorithm traverses the normalized micro-dot region, identifies the marker state or direction of each sub-region, and converts it into the corresponding binary sequence. For the binary sequence, based on a preset mapping relationship (pre-stored in the system), a specific binary sequence is bound to a unique device ID, and the binary sequence is converted into the corresponding device ID, thus completing the decoding of a single yellow micro-dot. If multiple valid micro-dots exist in the same region, the decoding results of each micro-dot are checked for consistency. If the results are consistent, the device ID corresponding to that region is determined. If there are inconsistencies, abnormal results are removed, and the majority of consistent results are taken as the final device ID to improve the reliability of decoding. If a region has no valid micro-dots, the number of micro-dots corresponding to that region is zero, and the device ID is empty.

[0075] The decoding result is obtained by combining the number of micro-dots in the mask area, the number of micro-dots in the mask area, the device ID corresponding to the mask area, and the device ID corresponding to the mask area. The decoding result is then bound to the task number.

[0076] Specifically, the number of micro-dots in the area inside the mask, the number of micro-dots in the area outside the mask, the device ID corresponding to the area inside the mask, and the device ID corresponding to the area outside the mask are integrated to form a structured set containing four data items. This set is the decoding result. The task number corresponding to the current legal project service is retrieved, and a relationship is established between the decoding result and the task number. The relationship table contains a task number field and a decoding result field, where the task number field serves as the primary key to ensure that one task number corresponds to only one decoding result. This allows subsequent processes to directly query the corresponding decoding result through the task number, achieving effective data connection throughout the entire process.

[0077] S5. Compare and judge the decoding result and the printed job voucher to obtain the judgment result, and bind the judgment result with the task number;

[0078] In an embodiment of the present invention, the decoding result and the printed job voucher are compared and judged to obtain a judgment result, and the judgment result is bound to the task number, including:

[0079] If the number of micro-dots in the area inside the mask is zero, the number of micro-dots in the area outside the mask is greater than or equal to one, and the device ID corresponding to the area outside the mask is consistent with the device ID in the printed job voucher, then it is considered compliant.

[0080] Specifically, stamping is a physical operation that adds a layer of high-density red ink to the already printed product; the yellow micro-dots are extremely fine yellow dots evenly superimposed across the entire page by the printing equipment; the red ink strongly masks and scatters the yellow channel during imaging and scanning, making it difficult to stably locate and decode the yellow dots within the stamp area; therefore, when the process is printing first, then physical stamping, and then direct scanning, the failure to decode the micro-dots in the mask area is a normal characteristic, meaning the number of micro-dots in the mask area is zero; during normal printing, at least one yellow micro-dot should be embedded in the area outside the mask to record printing equipment information, so the number of micro-dots in the area outside the mask is greater than or equal to one, indicating that the printing process has proceeded according to the instructions. The preset rules embed an identifier to meet basic printing specifications. This condition proves that the page is a decodeable medium and excludes situations where the device does not generate yellow log dots or the entire page is undecodeable due to extremely low-quality scanning. The device identity corresponding to the area outside the mask is the device identifier deciphered from the physical embedding code on the paper. The device identity in the print job voucher is the device identifier recorded by the authorized printing terminal when the job occurs. If the device ID corresponding to the area outside the mask is consistent with the device ID in the print job voucher, it means that the printing device with embedded micro dots is consistent with the authorized printing terminal, and no secondary printing or replacement by unauthorized devices has occurred, ensuring the uniqueness and authorization of the printing operation.

[0081] If the number of micro-dots in the area inside the mask is greater than or equal to one, the number of micro-dots in the area outside the mask is greater than or equal to one, and the device ID corresponding to the area outside the mask is inconsistent with the device ID in the print job voucher, or the device ID corresponding to the area inside the mask is inconsistent with the device ID in the print job voucher, then it is determined to be a secondary imaging anomaly.

[0082] Specifically, in the normal process, after a document is printed once by an authorized printer, micro-dots are embedded. Then, a physical stamp is applied. The stamping operation covers the area within the mask, causing the original micro-dots in that area to be obscured or unrecognizable. Therefore, the number of micro-dots within the mask should be zero. If the number of micro-dots within the mask is greater than or equal to one, it indicates a secondary printing operation occurred after the physical stamp. The newly embedded micro-dots were not covered by the stamp, forming a trace of secondary imaging. Simultaneously, if the number of micro-dots outside the mask is greater than or equal to one, it indicates that at least one printing operation has created micro-dot identifiers. When the device ID corresponding to the area outside the mask is inconsistent with the device ID in the print job voucher, it indicates that an unauthorized device was used for the secondary printing, deviating from the initial authorized printer operation. When the device ID corresponding to the area inside the mask is inconsistent with the device ID in the print job voucher, it indicates that the device used for the secondary printing is different from the initial authorized device, also posing a risk of unauthorized operation. Both situations point to the document being re-imaged by an unauthorized device after stamping, potentially leading to document content tampering or replacement.

[0083] If the number of micro-dots in the area inside the mask is greater than or equal to one, the number of micro-dots in the area outside the mask is greater than or equal to one, the device ID corresponding to the area outside the mask is consistent with the device ID in the print job voucher, and the device ID corresponding to the area inside the mask is consistent with the device ID in the print job voucher, then it is determined to be an abnormal reprint on the same machine.

[0084] Specifically, in the normal process, after a document is printed once by an authorized printer and embedded with micro-dots, it is then stamped. The stamping operation covers the area within the mask, causing the original micro-dots in that area to be obscured or unrecognizable. Therefore, the number of micro-dots in the area within the mask should be zero. If the number of micro-dots in the area within the mask is greater than or equal to one, it indicates that a secondary printing operation occurred after the physical stamping. The newly embedded micro-dots were not covered by the stamp, forming a trace of reprinting. If the number of micro-dots outside the mask is greater than or equal to one, it indicates that there are micro-dot identifiers formed by printing. Since the device IDs corresponding to both the area outside and inside the mask are consistent with the device IDs in the print job voucher, it indicates that the secondary printing operation used the initial authorized printer, i.e., the same device. In this case, although the printing device is an authorized device, reprinting on the same machine after stamping may lead to the document content being tampered with, disrupting the normal sequence of printing before stamping and the originality of the document.

[0085] Bind the judgment result to the task number;

[0086] Specifically, the task number corresponding to the current legal project service is retrieved, and the judgment result is associated with the task number. The association table contains a task number field and a judgment result field, with the task number field serving as the primary key to ensure that one task number corresponds to only one judgment result. This allows the corresponding judgment result to be directly queried through the task number in subsequent processes, achieving effective data connection throughout the entire process.

[0087] S6. Generate and deliver the document based on the judgment result, and store the task number, printed job voucher, decoding result and judgment result in the evidence database;

[0088] In an embodiment of the present invention, a document is generated and delivered based on the judgment result, and the task number, printed job voucher, decoding result, and judgment result are stored in an evidence database, including:

[0089] If the judgment result is compliant, the legal service project delivery documents will be generated and sent; if the judgment result is abnormal secondary imaging or abnormal reprinting on the same machine, the sending of the legal service project documents will be blocked.

[0090] The task number, printed job voucher, decoding result, and judgment result are integrated into an audit package and stored in the evidence library;

[0091] Specifically, if the judgment result is compliant, a structured legal service project delivery document is generated based on the original document content, task number, print job voucher, and compliance judgment result of the legal project service. This document contains key information such as the document text, process compliance identifier, and associated task number. The generated delivery document is then pushed to the target recipient. Simultaneously, the sending time, recipient identifier, and other sending logs are recorded and stored in conjunction with the task number. If the extracted judgment result indicates a secondary imaging anomaly or a reprinting anomaly, sending any form of document is prohibited. The anomaly type, task number, and current document status are recorded, and administrators are prompted to conduct manual verification to ensure that abnormal documents do not enter the delivery process. The document bound to the current task number is retrieved from the database. The audit package consists of four core data items: the task number itself, the printed job voucher, the decoding result, and the judgment result. These four data items are combined into an audit package, which is encapsulated using Extensible Markup Language (XML) format. The data within the package is uniquely linked through the task number field to ensure the correspondence of all information. The audit package is stored in a designated directory of the evidence repository using an asymmetric encryption algorithm. This directory is managed in segments by task number to improve query efficiency. At the same time, the evidence repository automatically adds a storage timestamp and an immutable blockchain identifier to the audit package, generates a unique storage index and binds it to the task number, ensuring that the audit package can be quickly retrieved through the task number or index, and that its content remains original and complete during storage, meeting the normative requirements for evidence retention in legal service processes.

[0092] To address the aforementioned problems, the present invention also provides a legal service end-to-end supervision and control system, the system comprising:

[0093] The task number generation module is used to generate a unique task number based on the legal project service acceptance information.

[0094] The print voucher generation module is used to generate a print job voucher on the authorized printing terminal when the authorized printing terminal performs a printing operation, and bind the voucher with the job number;

[0095] The mask generation module is used to acquire the document image after stamping, perform image segmentation on the document image, obtain the mask of the document stamping area, and bind the mask to the task number.

[0096] The micro-dot decoding module is used to align the mask of the document's stamped area with the coordinates of the archived scanned document, and perform micro-dot decoding in the areas inside and outside the mask to obtain the decoding result, and then bind the decoding result with the task number;

[0097] The compliance determination module is used to compare and determine the decoding result and the printed job voucher, obtain the determination result, and bind the determination result with the task number;

[0098] The evidence storage module is used to generate and deliver documents based on the judgment results, and store the task number, printed job voucher, decoding result and judgment result into the evidence database.

[0099] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A method for supervising and controlling the entire legal service process, characterized in that, include: S1. Generate a unique task number based on the legal project service acceptance information; S2. When the authorized printer performs a printing operation, a print job voucher is generated on the authorized printer and the voucher is bound to the job number; S3. Acquire the image of the document after it has been stamped, perform image segmentation on the document image to obtain the mask of the stamped area, and bind the mask to the task number. S4. Align the mask of the document stamp area with the coordinates of the archived scanned document, and perform micro-dot decoding in the areas inside and outside the mask to obtain the decoding result, and bind the decoding result with the task number; S5. Compare and judge the decoding result and the printed job voucher to obtain the judgment result, and bind the judgment result with the task number; S6. Generate and deliver the document based on the judgment result, and store the task number, printed job voucher, decoding result and judgment result in the evidence database.

2. The method for full-process supervision and control of legal services according to claim 1, characterized in that, A unique task number is generated based on the legal project service acceptance information, including: Obtain legal project service acceptance information, perform hash calculation on the legal project service acceptance information, and generate a unique task number.

3. The method for full-process supervision and control of legal services according to claim 1, characterized in that, When an authorized printer performs a print operation, a print job voucher is generated on the authorized printer, and this voucher is bound to the job number, including: When an authorized printer performs a printing operation, it generates a print job certificate, which includes the device ID and the printing time.

4. The method for full-process supervision and control of legal services according to claim 1, characterized in that, After acquiring the image of the stamped document, perform image segmentation on the document image to obtain a mask of the stamped area, and bind the mask to the task number, including: When the physical stamp of the document is completed, the document image is quickly captured by an image acquisition device to obtain the document image. Color recognition is performed on the document image to obtain the color features of the document stamp area. Then, the areas in the document image that match the stamp color features are binarized to obtain the binarized distinction results between the red stamp area and the non-red stamp area. Connectivity analysis was performed on the binarization results to determine the core boundary of the stamp region mask.

5. The method for full-process supervision and control of legal services according to claim 1, characterized in that, Align the mask of the document's stamped area with the coordinates of the archived scanned document, and perform micro-dot decoding in both the inner and outer areas of the mask to obtain the decoding result. Then, bind the decoding result to the task number, including: The document images and archived scans originated from the same stamped paper original and were bound to the same task number; The mask of the stamp area is aligned with the scanned image of the archived document using coordinate mapping. Decode the yellow micro-dots in the aligned mask area and mask area respectively to obtain the number of micro-dots in the mask area, the number of micro-dots in the mask area, the device ID corresponding to the mask area, and the device ID corresponding to the mask area. The decoding result is obtained by combining the number of micro-dots in the mask area, the number of micro-dots in the mask area, the device ID corresponding to the mask area, and the device ID corresponding to the mask area. The decoding result is then bound to the task number.

6. The method for full-process supervision and control of legal services according to claim 5, characterized in that, The decoding result and the printed job voucher are compared and judged to obtain the judgment result, which is then bound to the task number, including: If the number of micro-dots in the area inside the mask is zero, the number of micro-dots in the area outside the mask is greater than or equal to one, and the device ID corresponding to the area outside the mask is consistent with the device ID in the printed job voucher, then it is considered compliant. If the number of micro-dots in the area inside the mask is greater than or equal to one, the number of micro-dots in the area outside the mask is greater than or equal to one, and the device ID corresponding to the area outside the mask is inconsistent with the device ID in the print job voucher, or the device ID corresponding to the area inside the mask is inconsistent with the device ID in the print job voucher, then it is determined to be a secondary imaging anomaly. If the number of micro-dots in the area inside the mask is greater than or equal to one, the number of micro-dots in the area outside the mask is greater than or equal to one, the device ID corresponding to the area outside the mask is consistent with the device ID in the print job voucher, and the device ID corresponding to the area inside the mask is consistent with the device ID in the print job voucher, then it is determined to be an abnormal reprint on the same machine.

7. The method for full-process supervision and control of legal services according to claim 6, characterized in that, Based on the judgment result, a document is generated and delivered, and the task number, printed job voucher, decoding result, and judgment result are stored in the evidence database, including: If the judgment result is compliant, the legal service project delivery documents will be generated and sent; if the judgment result is abnormal secondary imaging or abnormal reprinting on the same machine, the sending of the legal service project documents will be blocked. The task number, printed job voucher, decoding result, and judgment result are integrated into an audit package and stored in the evidence library.

8. A legal service full-process supervision and control system, characterized in that, The system includes: The task number generation module is used to generate a unique task number based on the legal project service acceptance information. The print voucher generation module is used to generate a print job voucher on the authorized printing terminal when the authorized printing terminal performs a printing operation, and bind the voucher with the job number; The mask generation module is used to acquire the document image after stamping, perform image segmentation on the document image, obtain the mask of the document stamping area, and bind the mask to the task number. The micro-dot decoding module is used to align the mask of the document's stamped area with the coordinates of the archived scanned document, and perform micro-dot decoding in the areas inside and outside the mask to obtain the decoding result, and then bind the decoding result with the task number; The compliance determination module is used to compare and determine the decoding result and the printed job voucher, obtain the determination result, and bind the determination result with the task number; The evidence storage module is used to generate and deliver documents based on the judgment results, and store the task number, printed job voucher, decoding result and judgment result into the evidence database.