A method for controlling seals and archived documents of an India-controlled machine

By extracting and comparing the sidebar area and printing surface area information of the seal in the printing control machine, the problem that traditional seals cannot be verified and imitated is solved, and the authenticity and legality of the seal is automated to ensure the compliance and security of the documents.

CN119360408BActive Publication Date: 2025-07-04WUHAN WANSHI ZHICHUANG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411396328.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-07-04
Estimated Expiration
2044-10-08

AI Technical Summary

Technical Problem

Traditional seal technology cannot effectively verify whether the stamp is imitated, resulting in the uncertainty of the document's legality.

Method used

Through the printing control machine, unique seal information, such as dark patterns and identification codes, are extracted and compared to the sidebar area and the seal surface area of ​​the document seal, and used a preset database to verify the consistency between the seal information and the signer's identity.

Benefits of technology

It realizes verification of the authenticity and uniqueness of seals, prevents forgery, ensures the legality and operational compliance of documents, and simplifies the automated process of seal verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119360408B_ABST
    Figure CN119360408B_ABST
Patent Text Reader

Abstract

The present application provides a method for controlling seals and archived documents of an imprint control machine, which relates to the technical field of data processing. The method includes: obtaining a to-be-archived document input by a target object; based on scanning the to-be-archived document, identifying the document seal and document signature in the to-be-archived document; extracting first seal information from the side bar area of the document seal and second seal information from the printing surface area of the document seal; if it is determined that there is a mapping relationship between the first seal information and the second seal information, determining the user corresponding to the document seal based on the first seal information or the second seal information; if it is determined that the user and the signatory corresponding to the document signature are the same person, storing the scanned copy of the to-be-archived document in the archived document management area corresponding to the identity information based on the identity information of the target object. The present application can control the operation compliance of seals and documents through an imprint control machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data processing, and specifically relates to a method for controlling seals and archived documents of a printing control machine. Background Art

[0002] A printing control machine is an automated device dedicated to managing and controlling the printing process, and is widely used in commercial printing, label printing, and packaging industries. It can achieve automated monitoring and adjustment of printing materials, thereby ensuring the stability and consistency of printing quality. A printing control machine usually has functions such as color control, layout adjustment, pressure adjustment, and tension control. Through precise sensors and feedback systems, it optimizes the printing process, reduces errors, and improves production efficiency.

[0003] Among various types of documents, stamping is widely used as a means to confirm the legality and authority of documents, especially in the fields of law, finance, and administration. The purpose of stamping is to confirm and assume responsibility for the content of the document on behalf of a certain unit, department, or individual through the pattern and content of the seal. However, traditional seal technologies have a series of problems, especially the inability to effectively verify whether the seal has been forged, thus unable to determine the legality of the document. However, a printing control machine can also be used to monitor and calibrate the image or text quality during the printing process in real time. Through high-precision scanning sensors, the printing control machine can scan key parameters such as the color, alignment, and pattern details of printed products, and compare and analyze them with preset standards. Therefore, a method is needed to control the operation compliance of seals and documents through a printing control machine. Summary of the Invention

[0004] This application provides a method for controlling seals and archived documents of a printing control machine, which can control the operation compliance of seals and documents through a printing control machine.

[0005] In the first aspect of this application, a method for controlling seals and archived documents of a printing control machine is provided. The method includes:

[0006] Obtain an archived file input by a target object;

[0007] Based on the scanning of the archived file, identify the file seal and file signature in the archived file;

[0008] Extract first seal information from the side bar area of the file seal and second seal information from the printing surface area of the file seal;

[0009] If it is determined that there is a mapping relationship between the first seal information and the second seal information, determine the user corresponding to the file seal based on the first seal information or the second seal information;

[0010] If it is determined that the user and the signer corresponding to the document signature are the same person, based on the identity information of the target object, the scanned copy of the file to be archived is stored in the archived file management area corresponding to the identity information.

[0011] Optionally, the extracting the first seal information from the side margin area of the document seal specifically includes:

[0012] Extracting the side margin area from the document seal;

[0013] Extracting a first hidden pattern from the side margin area;

[0014] Performing feature matching on the first hidden pattern to determine a pre-stored hidden pattern identical to the first hidden pattern in a preset database;

[0015] Determining the hidden pattern type of the pre-stored hidden pattern;

[0016] Retrieving a first hidden pattern spacing corresponding to the hidden pattern type;

[0017] Measuring an actual hidden pattern spacing of the first hidden pattern;

[0018] Judging whether a difference between the first hidden pattern spacing and the actual hidden pattern spacing is less than a preset threshold;

[0019] If it is determined that the difference between the first hidden pattern spacing and the actual hidden pattern spacing is less than the preset threshold, determining the pre-stored hidden pattern as the first seal information.

[0020] Optionally, after extracting the first hidden pattern from the side margin area, the method further includes:

[0021] Extracting a second hidden pattern from the side margin area, where the first hidden pattern and the second hidden pattern are any two of multiple hidden patterns set in the side margin area;

[0022] Determining a first hidden pattern type and a first hidden pattern spacing of the first hidden pattern, and determining a second hidden pattern type and a second hidden pattern spacing of the second hidden pattern;

[0023] Judging whether the first hidden pattern type is the same as the second hidden pattern type, and whether a difference between the first hidden pattern spacing and the second hidden pattern spacing is less than the preset threshold;

[0024] If it is determined that the first hidden pattern type is the same as the second hidden pattern type, and the difference between the first hidden pattern spacing and the second hidden pattern spacing is less than the preset threshold, judging whether there is a pre-stored hidden pattern identical to the first hidden pattern in the preset database.

[0025] Optionally, the extracting the first seal information from the side margin area of the document seal specifically further includes:

[0026] Extract the side margin area from the document seal;

[0027] Extract the first hidden pattern from the side margin area;

[0028] Determine the relative position information of the first hidden pattern relative to the second seal information, where the relative position information includes a relative distance and a relative angle;

[0029] Retrieve the preset position information of the preset hidden pattern corresponding to the second seal information in the preset database, where the preset position information includes the preset relative position and the preset relative angle of the preset hidden pattern relative to the second seal information;

[0030] If it is determined that the relative distance is the same as the preset relative distance and the relative angle is the same as the preset relative angle, then determine that the preset hidden pattern is the first seal information.

[0031] Optionally, the extracting the second seal information from the printing surface area of the document seal specifically includes:

[0032] Extract the printing surface area from the document seal;

[0033] Extract a preset identification area from the printing surface area, where the preset identification area includes a preset identification pattern;

[0034] Perform character recognition on the preset identification pattern to obtain a preset identification code;

[0035] Determine whether there is a pre-stored identification code in the multiple pre-stored identification codes included in the preset database that is the same as the preset identification;

[0036] If it is determined that there is a pre-stored identification code in the multiple pre-stored identification codes that is the same as the preset identification, then determine that the preset identification code is the second seal information.

[0037] Optionally, the storing the scanned copy of the file to be archived into the archive file management area corresponding to the identity information based on the identity information of the target object specifically includes:

[0038] Identify the file type of the file to be archived;

[0039] Determine the first file storage area corresponding to the file type;

[0040] Determine whether the first file storage area includes the file storage area corresponding to the identity information;

[0041] If it is determined that the first file storage area contains the file storage area corresponding to the identity information, then in the first file storage area, determine the second file storage area corresponding to the identity information;

[0042] Determine the second file storage area as the archived file management area.

[0043] Optionally, before storing the scanned copy of the file to be archived in the archived file management area corresponding to the identity information based on the identity information of the target object, the method further includes:

[0044] Identify the file type of the file to be archived;

[0045] Determine whether the target object has the file processing permission corresponding to the file type according to the identity information;

[0046] If it is determined that the target object has the file processing permission, then determine the storage location of the file to be archived.

[0047] In a second aspect of the present application, there is provided a seal and archived file control device for an printing control machine. The device includes an acquisition module, an identification module, an extraction module, a judgment module, and an archiving module, wherein:

[0048] The acquisition module is configured to acquire a file to be archived input by a target object;

[0049] The identification module is configured to identify a file seal and a file signature in the file to be archived based on a scan of the file to be archived;

[0050] The extraction module is configured to extract first seal information from the side bar area of the file seal and extract second seal information from the printing surface area of the file seal;

[0051] The judgment module is configured to, if it is determined that there is a mapping relationship between the first seal information and the second seal information, determine the user corresponding to the file seal based on the first seal information or the second seal information;

[0052] The archiving module is configured to, if it is determined that the user and the signer corresponding to the file signature are the same person, store the scanned copy of the file to be archived in the archived file management area corresponding to the identity information of the target object.

[0053] Optionally, the extraction module is configured to extract the side bar area from the file seal;

[0054] The extraction module is configured to extract a first hidden pattern from the side bar area;

[0055] The recognition module is used to perform feature matching on the first dark pattern to determine a pre-stored dark pattern identical to the first dark pattern in a preset database;

[0056] The judgment module is used to determine the dark pattern type of the pre-stored dark pattern;

[0057] The acquisition module is used to retrieve the first dark pattern spacing corresponding to the dark pattern type;

[0058] The acquisition module is used to measure the actual dark pattern spacing of the first dark pattern;

[0059] The judgment module is used to judge whether the difference between the first dark pattern spacing and the actual dark pattern spacing is less than a preset threshold;

[0060] The judgment module is used to, if it is determined that the difference between the first dark pattern spacing and the actual dark pattern spacing is less than the preset threshold, determine that the pre-stored dark pattern is the first seal information.

[0061] Optionally, the extraction module is used to extract a second dark pattern from the sidebar area, and the first dark pattern and the second dark pattern are any two of the multiple dark patterns set in the sidebar area;

[0062] The judgment module is used to determine the first dark pattern type and the first dark pattern spacing of the first dark pattern, and determine the second dark pattern type and the second dark pattern spacing of the second dark pattern;

[0063] The judgment module is used to judge whether the first dark pattern type is the same as the second dark pattern type, and whether the difference between the first dark pattern spacing and the second dark pattern spacing is less than the preset threshold;

[0064] The judgment module is used to, if it is determined that the first dark pattern type is the same as the second dark pattern type, and the difference between the first dark pattern spacing and the second dark pattern spacing is less than the preset threshold, judge whether there is a pre-stored dark pattern identical to the first dark pattern in the preset database.

[0065] Optionally, the extraction module is used to extract the sidebar area from the document seal;

[0066] The extraction module is used to extract a first dark pattern from the sidebar area;

[0067] The judgment module is used to determine the relative position information of the first dark pattern relative to the second seal information, and the relative position information includes a relative distance and a relative angle;

[0068] The obtaining module is configured to retrieve the preset position information of the preset hidden pattern corresponding to the second seal information in the preset database, where the preset position information includes the preset relative position and the preset relative angle of the preset hidden pattern relative to the second seal information;

[0069] The determining module is configured to determine that the preset hidden pattern is the first seal information if it is determined that the relative distance is the same as the preset relative distance and the relative angle is the same as the preset relative angle.

[0070] Optionally, the extraction module is configured to extract the seal face area from the file seal;

[0071] The extraction module is configured to extract a preset identification area from the seal face area, where the preset identification area includes a preset identification pattern;

[0072] The recognition module is configured to perform character recognition on the preset identification pattern to obtain a preset identification code;

[0073] The determining module is configured to determine whether there is a pre-stored identification code in the multiple pre-stored identification codes included in the preset database that is the same as the preset identification;

[0074] The determining module is configured to determine that the preset identification code is the second seal information if it is determined that there is a pre-stored identification code in the multiple pre-stored identification codes that is the same as the preset identification;

[0075] Optionally, the recognition module is configured to recognize the file type of the file to be archived;

[0076] The determining module is configured to determine the first file storage area corresponding to the file type;

[0077] The determining module is configured to determine whether the first file storage area includes the file storage area corresponding to the identity information;

[0078] The archiving module is configured to determine the second file storage area corresponding to the identity information in the first file storage area if it is determined that the first file storage area includes the file storage area corresponding to the identity information;

[0079] The archiving module is configured to determine that the second file storage area is the archived file management area.

[0080] Optionally, the recognition module is configured to recognize the file type of the file to be archived;

[0081] The determining module is configured to determine whether the target object has the file processing permission corresponding to the file type according to the identity information;

[0082] The archiving module is used to determine the storage location of the file to be archived if it is determined that the target object has the file processing permission.

[0083] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface, and a network interface. The memory is used to store instructions. Both the user interface and the network interface are used to communicate with other devices. The processor is used to execute the instructions stored in the memory to enable the electronic device to execute the method described in any one of the above.

[0084] In the fourth aspect of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions, and when the instructions are executed, the method described in any one of the above is executed.

[0085] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0086] 1. The present application can effectively verify whether the seal is forged and determine the legality of the document. By separately extracting and comparing unique seal information (such as hidden patterns, identification codes) from the side margin area and the printing surface area of the document seal, and verifying through the preset seal information in the database, forged seals can be identified. By judging the consistency between the seal information and the signer's identity, the authenticity of the document and the compliance of the operation are ensured. In addition, the seal control machine monitors the authenticity of the document seal and signature in real time through high-precision scanning and automated comparison, effectively preventing forgery behavior, and can archive the scanned copy of the legal document to ensure the compliance of the document operation process.

[0087] 2. The present application accurately extracts, matches, and verifies the hidden patterns in the side margin area of the seal to ensure the uniqueness and anti-counterfeiting property of the seal. By comparing the characteristics, types, and spacings of the hidden patterns, whether there is forgery can be effectively detected. By matching with the pre-stored hidden patterns in the preset database and judging the deviation between the actual hidden pattern and the preset hidden pattern, the authenticity of the seal information is ensured, thereby improving the security and legality verification of document stamping and preventing the seal from being forged.

[0088] 3. The present application extracts the preset identification pattern from the printing surface area of the document seal, performs character recognition, converts it into a preset identification code, and compares it with the pre-stored identification code in the database. The authenticity and uniqueness of the printing surface area of the seal can be accurately verified to ensure that the seal has not been tampered with or counterfeited. If the same pre-stored identification code is matched, it is determined that the seal information is valid, thereby improving the anti-counterfeiting ability of the document seal and simplifying the automated process of seal verification to ensure the legality and compliance of the document. BRIEF DESCRIPTION OF THE DRAWINGS

[0089] Figure 1It is a schematic flowchart of a method for controlling a seal of a printing control machine and an archived document;

[0090] Figure 2 It is a schematic diagram of a first seal information disclosed in an embodiment of the present application;

[0091] Figure 3 It is a schematic diagram of a second seal information disclosed in an embodiment of the present application;

[0092] Figure 4 It is a schematic module diagram of a device for controlling a seal of a printing control machine and an archived document disclosed in an embodiment of the present application;

[0093] Figure 5 It is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.

[0094] Explanation of reference numerals: 401, acquisition module; 402, recognition module; 403, extraction module; 404, judgment module; 405, archiving module; 501, processor; 502, communication bus; 503, user interface; 504, network interface; 505, memory. Detailed implementation manners

[0095] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.

[0096] In the description of the embodiments of the present application, words such as "for example" or "for illustration" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "for example" or "for illustration" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, the use of words such as "for example" or "for illustration" is intended to present relevant concepts in a specific manner.

[0097] In the description of the embodiments of the present application, the meaning of the term "plurality" refers to two or more. For example, a plurality of systems refers to two or more systems, and a plurality of screen terminals refers to two or more screen terminals. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly indicating the technical features indicated. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. The terms "include", "comprise", "have" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0098] An ink control machine is an automated device widely used in the commercial and packaging industries. It has functions such as color control and layout adjustment, and optimizes the printing process and improves efficiency through sensors. Stamping, as a means to confirm the legality of documents, is commonly used in the legal, financial, and administrative fields. However, traditional stamping technologies cannot effectively prevent forgery. To solve this problem, the ink control machine can also control the compliance of stamping and document operations by real-time monitoring and calibrating printing quality.

[0099] This embodiment discloses a method for controlling an ink control machine's stamp and archived documents. Referring to Figure 1 , it includes the following steps S110 - S150:

[0100] S110, Obtain the document to be archived input by the target object.

[0101] The method for controlling an ink control machine's stamp and archived documents disclosed in the embodiments of this application is applied to the control system of the ink control machine. The control system of the ink control machine is an automated system integrating multiple sensors, actuators, and feedback mechanisms, dedicated to monitoring and adjusting key parameters during the printing process. This system can collect information such as the color, alignment, pressure, and tension of printing materials in real time, and automatically adjust and optimize by comparing preset standard parameters to ensure the stability and consistency of printing quality.

[0102] When the target object needs to archive the document to be archived, first, it needs to obtain the verification of the document to be archived by the ink control machine. The target object inputs the document to be archived into the ink control machine. The document to be archived can be a scanned copy of a paper document or an electronic document. After the ink control machine scans it, it identifies whether the stamp on the document is forged and whether the user of the stamp is the same person as the signer of the document, and then determines the compliance of the document to be archived.

[0103] S120, Based on the scanning of the document to be archived, identify the document stamp and document signature in the document to be archived.

[0104] First, the ink control machine needs to scan the document to be archived with high precision to obtain a clear electronic image to ensure the smooth progress of the subsequent identification process. During the scanning process, the quality of the scanned copy is improved through image enhancement technology, removing noise, adjusting brightness and contrast to ensure the clarity of the image.

[0105] After obtaining the electronic image of the document, it is necessary to process and analyze the image to locate the areas of the seal and signature. Edge detection algorithms (such as Canny edge detection) are used to identify different areas in the document and distinguish the seal, signature, and text areas. Seals are usually circular, square, or of specific geometric shapes, and shape detection algorithms (such as Hough circle transform or geometric template matching) can be used to quickly identify the boundaries of the seals. Signatures are generally located in specific text areas (such as the end of the document), and OCR (Optical Character Recognition) can be used to distinguish between the text area and the handwritten signature. Finally, image segmentation algorithms based on deep learning (such as Convolutional Neural Network CNN) can be used to further accurately segment the seal and signature areas, ensuring that only the target areas are processed without interfering with other content.

[0106] S130, extract the first seal information from the sidebar area of the document seal and the second seal information from the impression area of the document seal.

[0107] In a possible implementation, extracting the first seal information from the sidebar area of the document seal specifically includes: extracting the sidebar area from the document seal; extracting the first dark pattern area from the sidebar area, where the first dark pattern area includes the first dark pattern; performing feature matching on the first dark pattern to determine the pre-stored dark pattern in the preset database that is the same as the first dark pattern; determining the dark pattern type of the pre-stored dark pattern; retrieving the first dark pattern spacing corresponding to the dark pattern type; measuring the actual dark pattern spacing of the first dark pattern; determining whether the difference between the first dark pattern spacing and the actual dark pattern spacing is less than the preset threshold; if it is determined that the difference between the first dark pattern spacing and the actual dark pattern spacing is less than the preset threshold, then determine that the pre-stored dark pattern is the first seal information.

[0108] Specifically, for seal anti-counterfeiting, referring to Figure 2 , by setting multiple dark patterns that are difficult to distinguish by the naked eye in the sidebar area of the seal, corresponding to different users. For example, different numbers and spacings of dark patterns are used to distinguish different seals. The shape of the dark pattern can be a straight line, a dotted line, or a broken line, or various planar shapes, or text symbols. When multiple dark patterns are set on the seal, the spacings of the dark patterns can be the same or different, and the number of dark patterns can also be freely set.

[0109] After obtaining the scanned image of the document, it is first necessary to locate the document seal and extract its sidebar area. Convert the seal image to grayscale to reduce the complexity of processing. Use an adaptive thresholding algorithm (such as the Otsu algorithm) to convert the grayscale image to a black-and-white binary image, highlighting the outline and content of the document seal. Also use an edge detection algorithm (such as Canny edge detection) to identify the outline of the document seal. Most seals have a specific geometric shape for their sidebars (such as circular, square), and shape detection algorithms (such as Hough circle transform, Hough line transform) can be used to determine the outer edge of the seal and extract the sidebar area. Use a deep learning-based image segmentation algorithm (such as convolutional neural network CNN) to accurately extract the sidebar area of the seal. A pre-trained model can be used, or a model can be customized according to the shapes of common seals to ensure that only the target sidebar part is extracted.

[0110] After extracting the sidebar area of the document seal, the next step is to identify and extract the hidden patterns within this area. Apply filtering techniques (such as Gaussian filtering or median filtering) to remove noise and make the hidden patterns more obvious. Use algorithms based on texture analysis (such as Gabor filters or local binary pattern LBP) to detect and extract the texture features of the area where the hidden patterns are located. By adjusting the image contrast, enhance the difference between the hidden patterns and the surrounding background to make the hidden pattern area more obvious. Based on the extracted texture features, apply a clustering algorithm (such as K-Means clustering or superpixel segmentation) to divide the seal sidebar area and identify the part containing the hidden patterns as the first hidden pattern area.

[0111] Once the first hidden pattern area is extracted from the sidebar area, the next step is to perform feature matching between this hidden pattern and the pre-stored hidden patterns in the database. Specifically, perform edge detection on the hidden pattern area again to identify the shape, outline, and internal details of the hidden pattern. Use a feature point detection algorithm (such as SIFT or SURF) to extract the key feature points in the hidden pattern. Match the extracted hidden pattern features with the hidden pattern features in the preset database. The database should store the hidden pattern features of different pre-stored seals, where these pre-stored seals are the seals that a unit or company has registered, and each pre-stored seal corresponds to a different user. Use algorithms such as Euclidean distance and cosine similarity to measure the similarity between the extracted hidden pattern features and the pre-stored hidden patterns in the database, and select the feature that is closest to the hidden pattern.

[0112] After finding the pre-stored hidden pattern in the database that matches the first hidden pattern feature, the type of this hidden pattern will be identified. Next, retrieve the spacing parameters associated with the hidden pattern type. Based on the features of the pre-stored hidden pattern, automatically identify the category of this hidden pattern, such as unit name, number, anti-counterfeiting mark, etc. Hidden pattern types are usually associated with specific patterns and structures, so each type of hidden pattern will have a unique set of features. Each hidden pattern type is usually associated with specific geometric parameters, and the spacing of the hidden pattern is one of the key parameters. By looking up the record of this hidden pattern type in the database, retrieve the pre-stored standard hidden pattern spacing.

[0113] Next, it is necessary to measure the actual dark line spacing of the first dark line extracted from the document seal, and use an image measurement algorithm to calculate the spacing of the dark lines. Specifically, the spacing between the dark lines can be calculated by detecting the edges or lines between the dark lines and using geometric measurement formulas. Using feature point localization algorithms (such as Hough transform or feature point distance calculation), the physical distance between the dark lines can be accurately measured. Then, compare the pre-stored dark line spacing with the measured actual dark line spacing, judge the difference between the two, and the preset threshold can be configured according to actual needs. For example, the allowable error range of the dark line spacing may be several pixels. If the difference is less than the preset threshold, it is determined that the actual dark line spacing matches the pre-stored dark line spacing, indicating that the dark line matching is successful. If it is determined that the difference in the dark line spacing is within the acceptable range, it is determined that the pre-stored dark line matches the extracted dark line, and the pre-stored dark line is regarded as the first seal information.

[0114] In a possible implementation manner, after the first dark line is extracted from the sidebar area, the method further includes: extracting a second dark line from the sidebar area; determining the first dark line type and the first dark line spacing of the first dark line, and determining the second dark line type and the second dark line spacing of the second dark line; judging whether the first dark line type is the same as the second dark line type, and whether the difference between the first dark line spacing and the second dark line spacing is less than a preset threshold; if it is determined that the first dark line type is the same as the second dark line type, and the difference between the first dark line spacing and the second dark line spacing is less than the preset threshold, then judge whether there is a pre-stored dark line in the preset database that is the same as the first dark line.

[0115] Specifically, due to the operation of the seal user, the dark lines on the document may not be displayed, and thus cannot be recognized by the seal control machine. Therefore, by setting multiple identical dark lines, the recognition accuracy is improved. First, when extracting multiple dark lines from the seal sidebar area, taking any two of the multiple dark lines as an example, the first dark line and the second dark line need to be extracted in sequence. Through the detected dark line area, the first and second dark lines can be located respectively. Each dark line can be individually identified by its relative position or structural features, and each dark line is cropped, and its coordinates or relative position are saved for subsequent feature extraction and comparison.

[0116] Next, it is necessary to determine the type and geometric spacing of each extracted dark pattern, extract features from the image of the dark pattern, and use feature point detection algorithms (such as SIFT, SURF, or ORB) to identify key feature points in the dark pattern. Match the extracted features with a preset feature database, and determine the types of the first dark pattern and the second dark pattern (such as different unit identifiers, number types, or anti-counterfeiting features, etc.) through patterns, structures, or other feature information. Use geometric-based image measurement algorithms to calculate the actual spacing of the internal or adjacent structures of the dark pattern by analyzing the feature points or lines in the dark pattern. The measurement can be converted from pixel distance to physical units (such as millimeters). Measure the geometric spacing of the first dark pattern and the second dark pattern respectively, record the characteristic distances of each dark pattern, and store them for subsequent comparison.

[0117] After obtaining the types and spacings of the first dark pattern and the second dark pattern, it is necessary to compare them to determine whether their types and spacings meet the preset conditions. Compare the types of the first dark pattern and the second dark pattern to determine whether they belong to the same type, for example, whether they are both of the broken line type. Compare the difference between the spacing of the first dark pattern and the spacing of the second dark pattern, and use the absolute value difference formula to calculate the difference in their spacings. If the difference is less than the preset threshold range, the dark pattern spacings are considered to be consistent, indicating that the geometric features of the two dark patterns are consistent within a reasonable range. If it is determined that the type of the first dark pattern is the same as the type of the second dark pattern, and the difference between the spacing of the first dark pattern and the spacing of the second dark pattern is less than the preset threshold, then determine whether there is a pre-stored dark pattern in the preset database that is the same as the first dark pattern.

[0118] In a possible implementation, extract the second seal information from the printing surface area of the document seal, specifically including: extract the printing surface area from the document seal; extract a preset identification area from the printing surface area, and the preset identification area includes a preset identification pattern; perform character recognition on the preset identification pattern to obtain a preset identification code; determine whether there is a pre-stored identification code in the multiple pre-stored identification codes included in the preset database that is the same as the preset identification; if it is determined that there is a pre-stored identification code in the multiple pre-stored identification codes that is the same as the preset identification, then determine the preset identification code as the second seal information.

[0119] Specifically, for further seal anti-counterfeiting, refer to Figure 3 By setting an identification code in the printing surface area, each seal has a unique registered identification code, thereby preventing external personnel from forging the seal. The anti-counterfeiting code can be a pure number combination, a pure letter combination, or an alphanumeric combination. And the identification code is bound to the user of the seal, and one user corresponds to one seal corresponds to one identification code.

[0120] Using image segmentation techniques (such as GrabCut or K-Means clustering), segment the printing surface area of the seal, separating the area containing the identification pattern from other areas. Extract the preset identification area from the printing surface area, which usually contains the name of the unit, organization, individual, or other patterns and texts with identification functions. According to the design rules or structural characteristics of the seal (for example, the unit name or number is usually located at a specific position on the printing surface), use a preset template or machine learning model to locate the identification area. If the position of the identification area is not fixed, feature extraction algorithms (such as Harris corner detection, SURF, or SIFT) can be used to identify possible text or identification positions. After determining the position of the identification area, crop this area to extract the area containing the identification pattern as the input for further processing.

[0121] The pattern within the identification area usually contains recognizable text or symbols, and these texts constitute the preset identification code. Next, apply optical character recognition (OCR) technology to extract the text in the identification pattern. Further process the image of the identification area, including denoising, sharpening, adjusting contrast, etc., to make the text part clearer. Use the optical character recognition algorithm to recognize the text information in the image, and the recognized text is the preset identification code. Save the extracted text data as the preset identification code for subsequent database matching.

[0122] Once the preset identification code is extracted, it will be matched with multiple pre-stored identification codes in the database to verify the legality and authenticity of the seal. The database stores the pre-stored identification code information of various seal users, and each identification code corresponds to the seal of a specific unit, organization, or individual. Use the string comparison algorithm to match the extracted preset identification code with the pre-stored identification codes in the database. When the preset identification code matches the pre-stored identification code in the database, confirm that this identification code is valid and use it as the second seal information.

[0123] In a possible implementation, extract the first seal information from the sidebar area of the document seal, which specifically further includes: extract the sidebar area from the document seal; extract the first hidden pattern from the sidebar area; determine the relative position information of the first hidden pattern relative to the second seal information, and the relative position information includes the relative distance and the relative angle; retrieve the preset position information of the preset hidden pattern corresponding to the second seal information in the preset database, and the preset position information includes the preset relative position and the preset relative angle of the preset hidden pattern relative to the second seal information; if it is determined that the relative distance is the same as the preset relative distance and the relative angle is the same as the preset relative angle, then determine that the preset hidden pattern is the first seal information.

[0124] Specifically, the combination of the first seal information (watermark) and the second seal information (identification code) can be used for further seal anti-counterfeiting. That is, in different document seals, the relative positions of the first seal information and the second seal information are different, and they have different relative directions and relative distances. When registering the seal, this position information is stored in a preset database.

[0125] Once the edge of the seal is located, the side bar area of the seal is extracted through an image processing algorithm (such as morphological operations). This area is usually a circle around the periphery of the seal and is used to place the anti-counterfeiting watermark. After extracting the side bar area, the next step is to extract the watermark pattern. Through a high-precision image processing algorithm (such as texture analysis or pattern matching), the watermark area in the side bar is identified. Using a specific image segmentation method (such as threshold segmentation or morphological analysis), the specific shape and characteristic pattern of the watermark are extracted.

[0126] After extracting the first watermark, it is necessary to determine its relative position information with respect to the second seal information. Through a geometric algorithm, the distance between the center position of the first watermark and the center position of the identification code area is calculated. Calculate the relative angle between the first watermark and the second seal information, usually using the angle representation method in the polar coordinate system. The relative angle can be obtained through the included angle calculation formula between two points. The relative position information between the watermark and the seal face area of each seal will be pre-stored in the database. Therefore, the next step is to retrieve the preset position information associated with the second seal information (i.e., the identification information of the seal face area) from the database. By querying the database, the preset watermark corresponding to the seal, as well as the pre-stored relative distance and relative angle information of the watermark with respect to the seal face area, are obtained. This information usually includes the preset relative distance (the distance from the center of the seal face to the center of the watermark) and the relative angle (the azimuth angle from the center of the seal face to the watermark), that is, the geometric feature information of the seal.

[0127] Compare the relative distance of the extracted first watermark with the preset relative distance in the database. If the difference is within the preset tolerance range, it is determined that the distance matches. Similarly, compare the actual relative angle with the preset relative angle. If the angle difference between the two is within the preset range (such as ±1°), it is considered that the angle matches. If the distance and angle in the previous step are both within the allowable error range, it can be determined that the extracted watermark is the same as the preset watermark information in the database. At this time, it can be determined that the watermark is legal, and the first seal information corresponding to the watermark has been verified. In addition, after multiple verifications, the user of the seal and the legality of the seal can be further confirmed, thus completing the entire process of document seal authentication.

[0128] S130, if it is determined that there is a mapping relationship between the first seal information and the second seal information, then based on the first seal information or the second seal information, determine the user corresponding to the document seal.

[0129] The judgment of the mapping relationship is used for further seal anti-counterfeiting. For the seal of a certain user, there is usually only one intaglio design scheme (the first seal information) and only one identification code (the second seal information), and there is a mapping relationship between the two in the preset database. By establishing a database containing the first seal information and the second seal information, this database records the relevant information of the users, units, and departments of different seals. In the database, for each seal, there will be corresponding records, including the first intaglio information and the associated second seal identification information. These information may have been verified through filing or registration.

[0130] Once the mapping relationship is established, the user of the seal can be determined by querying the user information related to the seal in the database. This user can be a unit, an organization, or an individual, depending on the registration record of the seal. Each seal has a unique identifier (such as a number, intaglio, pattern, etc.) in it, and these identifiers are associated with the identity information of the user (such as name, organization number, ID number, etc.).

[0131] S140, if it is determined that the user and the signer corresponding to the file signature are the same person, then based on the identity information of the target object, the scanned copy of the file to be archived is stored in the archived file management area corresponding to the identity information.

[0132] The signature is usually located at the end of the file or a specific position. Use OCR or handwriting recognition technology to extract the signature information. If the signature is an electronic signature or a clear handwriting, OCR technology can be used to extract the signature text. OCR can recognize most standard fonts and handwriting, and output the corresponding signature text. For a handwritten signature, a dedicated handwriting recognition algorithm can be used to analyze the stroke characteristics, writing style, etc. of the signature, and extract the unique signature features. The handwriting recognition system based on machine learning can match in the signature database to confirm the identity of the signer. After extracting the key information of the seal and the signature, the system needs to map and verify this information with the preset database. If the user of the file seal is determined through the first seal information or the second seal information, and it is determined that the user and the signer of the file are the same person, then the verification of the seal and the file to be archived passes, and then the file to be archived can be archived.

[0133] In a possible implementation manner, before storing the scanned copy of the file to be archived in the archived file management area corresponding to the identity information based on the identity information of the target object, the method further includes: identifying the file type of the file to be archived; determining whether the target object has the file processing permission corresponding to the file type according to the identity information; if it is determined that the target object has the file processing permission, then determining the storage location of the file to be archived.

[0134] Specifically, in different scenarios, such as enterprise units, different types of documents have different processing authorities. For example, contract documents may need to be processed by personnel above the supervisor level. Therefore, by verifying the relationship between the document type and the permissions of the target object, it is ensured that only users with permissions can process and archive specific types of documents.

[0135] In some scenarios, it is necessary to analyze the document content to determine the document type. For example, although some PDF documents have the same format, their content may represent different legal documents or financial statements. The content of the document can be classified through natural language processing (NLP) technology. The content of the document can be analyzed and the category to which the document belongs can be determined by using pre-set keywords or thesaurus (such as "contract", "financial report", "policy document", etc.). A classification model trained by machine learning can also be used to judge the category to which the document content belongs. This is suitable for large-scale scenarios where a large number of different types of document content need to be processed.

[0136] After the document type is identified, it is necessary to verify whether the user has the permission to process this document type based on the user identity information. First, obtain the identity information of the target object, including its identity identifier (such as username, user ID) and its role (such as employee, manager, administrator, etc.). By querying the permission table in the permission management, it is judged whether the target object has the permission to operate on this type of document. Permission verification usually adopts a mechanism based on role-based access control (RBAC) or attribute-based access control (ABAC). Each user is granted different permissions according to their role. For example, a financial manager can process financial statement documents, and a legal advisor can process contract documents. Permissions are judged based on multiple attributes of the user, resource, and environment. For example, not only the user's role needs to be judged, but also attributes such as time and location need to be combined to confirm whether document processing is allowed. When performing permission verification, by querying the preset permission database or access control list, it is confirmed whether the current user has the processing permission for the corresponding document type. If the permission match is successful, the operation is allowed to continue; if the permission does not match, a prompt of insufficient permission will be given and the operation will be blocked.

[0137] In a possible implementation manner, based on the identity information of the target object, the scanned copy of the file to be archived is stored in the archive file management area corresponding to the identity information, which specifically includes: identifying the file type of the file to be archived; determining the first file storage area corresponding to the file type; judging whether the first file storage area contains the file storage area corresponding to the identity information; if it is determined that the first file storage area contains the file storage area corresponding to the identity information, then determining the second file storage area corresponding to the identity information in the first file storage area; and determining the second file storage area as the archive file management area.

[0138] Specifically, once the file type is determined, the file needs to be stored in the corresponding storage area. For this purpose, there are preset storage areas corresponding to different types of files (such as financial files, legal files, contract files, etc.). There will be a storage area mapping table inside, which is used to map different types of files to specific storage areas. In this way, after the file type is identified, the corresponding storage area will be automatically obtained from this mapping table. If different users or departments have independent storage paths for the same type of file, the storage path can be dynamically generated based on the identity information. For example, for financial statements, the storage path of the financial manager may be / archive / finance / reports / manager / , while the path of the financial assistant may be / archive / finance / reports / assistant / .

[0139] It is necessary to further judge whether the file storage area matches the identity information of the user to ensure the security and compliance of the file. Obtain the identity information of the target object, including its identity identifier (such as user ID, role or department, etc.), and these information can be used to restrict the access and operation permissions of the user to the file. Check whether the user identity has the storage permission for this file type, and ensure that the file storage area corresponding to its identity is located within the storage area of this file type. The usual implementation method is to use the role-based access control (RBAC) mechanism to confirm the access and storage permissions of different roles to specific file areas. For example, the financial manager can only access and store certain specific subdirectories of financial files, while the contract administrator can only access the storage area related to contracts. If the permission level of the user identity covers the storage area corresponding to the file type, then allow it to continue the operation. Otherwise, it will prompt insufficient permissions and terminate the archiving process.

[0140] If the identity information of the user is confirmed to match the file storage area, the specific storage sub - area (i.e., the second file storage area) will be further determined. File storage is usually hierarchical. The first layer (the first file storage area) is divided based on file types. For example, all financial files will be stored in the / archive / finance / directory. The second layer (the second file storage area) is further subdivided based on user identity information or departments. The storage path can be dynamically generated based on the user's role and identity information (such as department and position). In this way, it can be ensured that users with different identities store files in their corresponding permission areas. After confirming that the user has the file storage permission, the specific area where the file should be stored, that is, the second file storage area, will be finally determined. According to the previous judgment and the user's identity, a specific storage path will be generated and ensured to be unique within the file storage area.

[0141] This embodiment also discloses a device for controlling seals and archived files of a printing control machine. Refer to Figure 4 , the device includes an acquisition module 401, an identification module 402, an extraction module 403, a judgment module 404, and an archiving module 405, where:

[0142] The acquisition module 401 is used to acquire the file to be archived input by the target object.

[0143] The identification module 402 is used to identify the file seal and file signature in the file to be archived based on the scan of the file to be archived.

[0144] The extraction module 403 is used to extract the first seal information from the side - bar area of the file seal and the second seal information from the impression area of the file seal.

[0145] The judgment module 404 is used to, if it is judged that there is a mapping relationship between the first seal information and the second seal information, determine the user corresponding to the file seal based on the first seal information or the second seal information.

[0146] The archiving module 405 is used to, if it is judged that the user and the signer corresponding to the file signature are the same person, store the scanned copy of the file to be archived in the archived file management area corresponding to the identity information based on the identity information of the target object.

[0147] In a possible implementation manner, the extraction module 403 is used to extract the side - bar area from the file seal.

[0148] The extraction module 403 is used to extract the first hidden pattern from the side - bar area.

[0149] The identification module 402 is used to perform feature matching on the first hidden pattern to determine the pre - stored hidden pattern identical to the first hidden pattern in the preset database.

[0150] The determination module 404 is used to determine the type of the pre-stored dark pattern.

[0151] The acquisition module 401 is used to retrieve the first dark pattern spacing corresponding to the dark pattern type.

[0152] The acquisition module 401 is used to measure the actual dark pattern spacing of the first dark pattern.

[0153] The determination module 404 is used to determine whether the difference between the first dark pattern spacing and the actual dark pattern spacing is less than a preset threshold.

[0154] The determination module 404 is used to, if it is determined that the difference between the first dark pattern spacing and the actual dark pattern spacing is less than a preset threshold, determine that the pre-stored dark pattern is the first seal information.

[0155] In a possible implementation manner, the extraction module 403 is used to extract a second dark pattern from the sidebar area, and the first dark pattern and the second dark pattern are any two dark patterns among the multiple dark patterns set in the sidebar area.

[0156] The determination module 404 is used to determine the first dark pattern type and the first dark pattern spacing of the first dark pattern, and determine the second dark pattern type and the second dark pattern spacing of the second dark pattern.

[0157] The determination module 404 is used to determine whether the first dark pattern type is the same as the second dark pattern type, and whether the difference between the first dark pattern spacing and the second dark pattern spacing is less than a preset threshold.

[0158] The determination module 404 is used to, if it is determined that the first dark pattern type is the same as the second dark pattern type, and the difference between the first dark pattern spacing and the second dark pattern spacing is less than a preset threshold, determine whether there is a pre-stored dark pattern identical to the first dark pattern in the preset database.

[0159] In a possible implementation manner, the extraction module 403 is used to extract the sidebar area from the file seal.

[0160] The extraction module 403 is used to extract the first dark pattern from the sidebar area.

[0161] The determination module 404 is used to determine the relative position information of the first dark pattern relative to the second seal information, and the relative position information includes the relative distance and the relative angle.

[0162] The acquisition module 401 is used to retrieve the preset position information of the preset dark pattern corresponding to the second seal information in the preset database, and the preset position information includes the preset relative position and the preset relative angle of the preset dark pattern relative to the second seal information.

[0163] The determination module 404 is used to, if it is determined that the relative distance is the same as the preset relative distance and the relative angle is the same as the preset relative angle, determine that the preset dark pattern is the first seal information.

[0164] In a possible implementation, an extraction module 403 is configured to extract a seal face area from a document seal.

[0165] The extraction module 403 is configured to extract a preset identification area from the seal face area, and the preset identification area includes a preset identification pattern.

[0166] An identification module 402 is configured to perform character recognition on the preset identification pattern to obtain a preset identification code.

[0167] A judgment module 404 is configured to judge whether there is a pre-stored identification code identical to the preset identification in a plurality of pre-stored identification codes included in a preset database.

[0168] The judgment module 404 is configured to, if it is determined that there is a pre-stored identification code identical to the preset identification in the plurality of pre-stored identification codes, determine the preset identification code as the second seal information.

[0169] In a possible implementation, the identification module 402 is configured to identify the file type of a file to be archived.

[0170] The judgment module 404 is configured to determine a first file storage area corresponding to the file type.

[0171] The judgment module 404 is configured to judge whether the first file storage area includes a file storage area corresponding to the identity information.

[0172] An archiving module 405 is configured to, if it is determined that the first file storage area includes a file storage area corresponding to the identity information, determine a second file storage area corresponding to the identity information in the first file storage area.

[0173] The archiving module 405 is configured to determine the second file storage area as an archived file management area.

[0174] In a possible implementation, the identification module 402 is configured to identify the file type of a file to be archived.

[0175] The judgment module 404 is configured to determine whether a target object has file processing authority corresponding to the file type according to the identity information.

[0176] The archiving module 405 is configured to, if it is determined that the target object has file processing authority, determine the storage location of the file to be archived.

[0177] It should be noted that: when the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept. For the specific implementation process, please refer to the method embodiment, which will not be elaborated here.

[0178] This embodiment also discloses an electronic device. Referring to Figure 5 , the electronic device may include: at least one processor 501, at least one communication bus 502, a user interface 503, a network interface 504, and at least one memory 505.

[0179] Among them, the communication bus 502 is used to realize the connection and communication between these components.

[0180] Among them, the user interface 503 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 503 may further include a standard wired interface and a wireless interface.

[0181] Among them, the network interface 504 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).

[0182] Among them, the processor 501 may include one or more processing cores. The processor 501 connects various parts within the entire server through various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 505, and by calling the data stored in the memory 505, it executes various functions of the server and processes data. Optionally, the processor 501 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 501 may integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs, etc.; the GPU is responsible for the rendering and drawing of the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above modem may not be integrated into the processor 501 and may be implemented separately by a single chip.

[0183] Among them, the memory 505 may include a Random Access Memory (RAM), or may also include a Read-Only Memory. Optionally, the memory includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area. Among them, the program storage area can store instructions for implementing the operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area can store the data involved in the above-mentioned method embodiments. The memory 505 may optionally also be at least one storage device located far from the aforementioned processor 501. The memory 505, as a computer storage medium, may include an operating system, a network communication module, a user interface 503 module, and an application program for a method of controlling an imprinting machine seal and archived document.

[0184] In Figure 5 In the electronic device shown, the user interface 503 is mainly used to provide an input interface for the user to obtain the data input by the user; and the processor 501 can be used to call the application program for a method of controlling an imprinting machine seal and archived document stored in the memory 505. When executed by one or more processors 501, the electronic device is caused to execute the method as described in one or more of the above embodiments.

[0185] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0186] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0187] In several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some service interfaces. The indirect couplings or communication connections of devices or units can be in electrical or other forms.

[0188] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0189] In addition, in each embodiment of this application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0190] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory 505 and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of this application. And the aforementioned memory 505 includes: various media such as USB flash drives, mobile hard disks, magnetic disks, or optical discs that can store program codes.

[0191] This application also discloses a computer-readable storage medium that stores instructions. When executed by one or more processors 501, it causes the electronic device to execute the method as described in one or more of the above embodiments.

[0192] The above are only exemplary embodiments of the present disclosure, and the scope of the present disclosure cannot be limited thereby. That is, any equivalent changes and modifications made in accordance with the teachings of the present disclosure still fall within the scope covered by the present disclosure. Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and the practice of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include the common general knowledge or conventional technical means in the technical field not recorded in the present disclosure. The specification and the embodiments are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A control method for an imprinting machine seal and archived documents, characterized in that The method includes: Obtaining an archived file input by a target object; Based on scanning the archived file, identifying the file seal and file signature in the archived file; Extracting first seal information from the sidebar area of the file seal, and extracting second seal information from the impression area of the file seal, where the second seal information is a preset identification code; If it is determined that there is a mapping relationship between the first seal information and the second seal information, determining the user corresponding to the file seal based on the first seal information or the second seal information; If it is determined that the user and the signatory corresponding to the file signature are the same person, storing the scanned copy of the archived file in the archived file management area corresponding to the identity information based on the identity information of the target object; The extracting first seal information from the sidebar area of the file seal specifically further includes: Extracting the sidebar area from the file seal; Extracting a first hidden pattern from the sidebar area; Determining the relative position information of the first hidden pattern relative to the second seal information, where the relative position information includes a relative distance and a relative angle; Retrieving the preset position information of the preset hidden pattern corresponding to the second seal information in a preset database, where the preset position information includes the preset relative position and preset relative angle of the preset hidden pattern relative to the second seal information; If it is determined that the relative distance is the same as the preset relative distance and the relative angle is the same as the preset relative angle, determining the preset hidden pattern as the first seal information.

2. The method for controlling an imprinting machine seal and an archived document according to claim 1, characterized in that, The extracting first seal information from the sidebar area of the file seal specifically includes: Extracting the sidebar area from the file seal; Extracting a first hidden pattern from the sidebar area; Performing feature matching on the first hidden pattern to determine a pre-stored hidden pattern identical to the first hidden pattern in a preset database; Determining the hidden pattern type of the pre-stored hidden pattern; Retrieving the first hidden pattern spacing corresponding to the hidden pattern type; Measuring the actual hidden pattern spacing of the first hidden pattern; Judging whether the difference between the first hidden pattern spacing and the actual hidden pattern spacing is less than a preset threshold; If it is determined that the difference between the first hidden pattern spacing and the actual hidden pattern spacing is less than the preset threshold, determining the pre-stored hidden pattern as the first seal information.

3. A method for controlling a seal of an imprinting control machine and an archived document according to claim 2, characterized in that, After extracting the first hidden pattern from the sidebar area, the method further includes: Extracting a second hidden pattern from the sidebar area, where the first hidden pattern and the second hidden pattern are any two of the multiple hidden patterns set in the sidebar area; Determining the first hidden pattern type and first hidden pattern spacing of the first hidden pattern, and determining the second hidden pattern type and second hidden pattern spacing of the second hidden pattern; Judging whether the first hidden pattern type is the same as the second hidden pattern type, and whether the difference between the first hidden pattern spacing and the second hidden pattern spacing is less than the preset threshold; If it is determined that the first hidden pattern type is the same as the second hidden pattern type, and the difference between the first hidden pattern spacing and the second hidden pattern spacing is less than the preset threshold, judging whether there is a pre-stored hidden pattern identical to the first hidden pattern in the preset database.

4. A method for controlling a seal of a printing control machine and an archived document, according to claim 1, characterized in that Extracting the second seal information from the printing surface area of the document seal specifically includes: Extracting the printing surface area from the document seal; Extracting a preset identification area from the printing surface area, where the preset identification area includes a preset identification pattern; Performing character recognition on the preset identification pattern to obtain a preset identification code; Judging whether there is a pre-stored identification code in a plurality of pre-stored identification codes included in the preset database that is the same as the preset identification; If it is determined that there is a pre-stored identification code in the plurality of pre-stored identification codes that is the same as the preset identification, then determining the preset identification code as the second seal information.

5. A method for controlling a seal of an imprint control machine and an archived document, according to claim 1, characterized in that Based on the identity information of the target object, storing the scanned copy of the file to be archived in the archived file management area corresponding to the identity information specifically includes: Identifying the file type of the file to be archived; Determining the first file storage area corresponding to the file type; Judging whether the first file storage area includes the file storage area corresponding to the identity information; If it is determined that the first file storage area includes the file storage area corresponding to the identity information, then determining the second file storage area corresponding to the identity information in the first file storage area; Determining the second file storage area as the archived file management area.

6. A method for controlling a printing control machine seal and archived documents according to claim 1, characterized in that Before storing the scanned copy of the file to be archived in the archived file management area corresponding to the identity information based on the identity information of the target object, the method further includes: Identifying the file type of the file to be archived; Determining whether the target object has the file processing permission corresponding to the file type according to the identity information; If it is determined that the target object has the file processing permission, then determining the storage location of the file to be archived.

7. A control device for an imprinting machine seal and archived documents, characterized in that, The device includes an acquisition module (401), an identification module (402), an extraction module (403), a judgment module (404), and an archiving module (405), where: The acquisition module (401) is used to acquire the file to be archived input by the target object; The identification module (402) is used to identify the document seal and the document signature in the file to be archived based on the scan of the file to be archived; The extraction module (403) is used to extract the first seal information from the side bar area of the document seal and extract the second seal information from the printing surface area of the document seal, and the second seal information is a preset identification code; The judgment module (404) is used to, if it is judged that there is a mapping relationship between the first seal information and the second seal information, determine the user corresponding to the document seal based on the first seal information or the second seal information; The archiving module (405) is used to, if it is judged that the user and the signer corresponding to the document signature are the same person, store the scanned copy of the file to be archived in the archived file management area corresponding to the identity information based on the identity information of the target object; The acquisition module (401) is used to extract the side bar area from the document seal; The acquisition module (401) is used to extract the first hidden pattern from the side bar area; The determination module (404) is configured to determine relative position information of the first dark pattern relative to the second seal information, where the relative position information includes a relative distance and a relative angle; The acquisition module (401) is configured to retrieve preset position information of a preset dark pattern corresponding to the second seal information in a preset database, where the preset position information includes a preset relative position and a preset relative angle of the preset dark pattern relative to the second seal information; The determination module (404) is configured to determine that the preset dark pattern is the first seal information if it is determined that the relative distance is the same as the preset relative distance and the relative angle is the same as the preset relative angle; 8. An electronic device, characterized in that, It includes a processor (501), a communication bus (502), a memory (505), a user interface (503), a network interface (504), and a memory (505). The memory (505) is configured to store instructions. Both the user interface (503) and the network interface (504) are configured to communicate with other devices. The processor (501) is configured to execute the instructions stored in the memory (505) so that the electronic device executes the method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed, execute the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Seal control instrument management and control method, storage medium and computer equipment

    CN115273119A

  • Seal using control method and device and computer readable storage medium

    CN118484785A