Stamping processing method and device, electronic equipment and storage medium
The intelligent seal device performs image detection on documents and controls the seal barrel, which solves the problem in the existing technology of being unable to effectively detect paper changing operations, achieves accuracy and safety in the sealing process, and reduces risk control risks.
Patent Information
- Application Number
- CN202410621824.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-03
AI Technical Summary
When using seals to verify documents, the existing technology cannot effectively detect the customer's operation of quickly changing paper after verification, which poses risk control risks.
Using an intelligent seal device, the image of the document is collected through the image acquisition equipment, and the first detection is performed to ensure that the document is consistent with the legally authorized document. After the stamp bucket is placed, the second detection is performed to control the unlocking of the stamp bucket, and detect whether the document has moved to ensure that the seal is sealed. Chapter process accuracy.
It effectively prevents users from quickly changing paper after verification at different stages, reduces risk control, and ensures the accuracy and safety of the stamping process.
Smart Images

Figure CN118587721A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of seal management, and in particular to a seal processing method, device, electronic device and storage medium. Background Art
[0002] In daily life, we often encounter scenarios where seals are needed to determine the validity and authority of documents. Before stamping a document, we often need to verify whether the document to be stamped is complete, compliant, and has not been modified.
[0003] The existing verification method for verifying documents to be stamped requires that the document paper is clear and intact and not blocked by debris. It cannot detect the customer's quick paper replacement after verification, which poses a risk to risk control. Therefore, there is an urgent need for a method that can effectively avoid the theft of documents during the stamping process. Summary of the invention
[0004] The purpose of this application is to provide a seal processing method, device, electronic device and storage medium to improve the accuracy of seal processing in view of the deficiencies in the above-mentioned prior art.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a stamp processing method, which is applied to a smart stamp device, wherein the smart stamp device comprises: a smart stamp terminal, a stamp table, an image acquisition device arranged on the top of the stamp table, and a stamp barrel, wherein the image acquisition device is used to acquire an image of a document placed on the stamp table, and the method comprises:
[0007] Acquire a first image of a document placed on the seal table, perform a first detection on the first image to obtain a first detection result, and output a prompt message for placing the document in the seal barrel according to the first detection result, wherein the first detection result is used to indicate whether the content of the document is consistent with the content of the corresponding legally authorized document;
[0008] Acquire a second image of the document after it is placed in the chapter bucket, perform a second detection on the second image to obtain a second detection result, and control the chapter bucket to be unlocked according to the second detection result;
[0009] Detect whether the document is moved, and if not, control the seal barrel to stamp the document.
[0010] Optionally, performing a first detection on the first image to obtain a first detection result includes:
[0011] The first image is sent to a server, which compares and analyzes the first image with a pre-stored legal authorized document image corresponding to the document to determine whether the first image is consistent with the authorized document image corresponding to the document. If they are consistent, the first detection result is consistent.
[0012] Optionally, the detecting the second image to obtain a second detection result includes:
[0013] performing masking on the blocked area in the second image to obtain a masked second image;
[0014] Performing feature extraction on the masked second image to obtain a feature image corresponding to the second image;
[0015] The second image is detected according to the feature image corresponding to the second image and the first image to obtain the second detection result.
[0016] Optionally, the performing feature extraction on the masked second image to obtain features corresponding to the second image includes:
[0017] Feature points are extracted from other image areas except the masked area in the masked second image, and the image of the area adjacent to the feature points is intercepted to obtain a feature image corresponding to the second image.
[0018] Optionally, the detecting the second image according to the feature image corresponding to the second image and the first image to obtain the second detection result includes:
[0019] Selecting a target area image corresponding to the feature image from the first image;
[0020] The similarity between the target area image and the feature image is determined to obtain a similarity result, and the second detection result is determined according to the similarity result and a preset threshold.
[0021] Optionally, it also includes:
[0022] A real-time image of the document is acquired in real time, and it is detected whether the real-time image is an abnormal image. If so, the detection is stopped and an abnormal warning message is output.
[0023] Optionally, the detecting whether the real-time image is an abnormal image includes:
[0024] If the real-time image appears blurred or is inconsistent with the first image, the real-time image is determined to be an abnormal image.
[0025] In a second aspect, the present application also provides a stamp processing device, the device comprising:
[0026] A first detection module is used to obtain a first image of the document after it is placed still on the seal table for a first preset time, perform a first detection on the first image to obtain a first detection result, and output a prompt message for placing the document in the seal barrel according to the first detection result, wherein the first detection result is used to indicate whether the content of the document is consistent with the content of the corresponding legally authorized document;
[0027] A second detection module, used for acquiring a second image after the document is placed in the chapter bucket and the chapter bucket is placed still for a second preset time, performing a second detection on the second image to obtain a second detection result, and controlling the unlocking of the chapter bucket according to the second detection result;
[0028] The third detection module is used to detect whether the document is moved, and if not, control the seal barrel to stamp the document.
[0029] Optionally, the first detection module is specifically used to:
[0030] The first image is sent to a server, which compares and analyzes the first image with a pre-stored legal authorized document image corresponding to the document to determine whether the first image is consistent with the authorized document image corresponding to the document. If they are consistent, the first detection result is consistent.
[0031] Optionally, the second detection module is specifically used to:
[0032] performing masking on the blocked area in the second image to obtain a masked second image;
[0033] Performing feature extraction on the masked second image to obtain a feature image corresponding to the second image;
[0034] The second image is detected according to the feature image corresponding to the second image and the first image to obtain the second detection result.
[0035] Optionally, the second detection module is specifically used to:
[0036] Feature points are extracted from other image areas except the masked area in the masked second image, and the image of the area adjacent to the feature points is intercepted to obtain a feature image corresponding to the second image.
[0037] Optionally, the second detection module is specifically used to:
[0038] Selecting a target area image corresponding to the feature image from the first image;
[0039] The similarity between the target area image and the feature image is determined to obtain a similarity result, and the second detection result is determined according to the similarity result and a preset threshold.
[0040] Optionally, the third detection module is specifically used to:
[0041] A real-time image of the document is acquired in real time, and it is detected whether the real-time image is an abnormal image. If so, the detection is stopped and an abnormal warning message is output.
[0042] Optionally, the third detection module is specifically used to:
[0043] If the real-time image appears blurred or is inconsistent with the first image, the real-time image is determined to be an abnormal image.
[0044] In the third aspect, an embodiment of the present application also provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the application is running, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the stamp processing method described in the first aspect above.
[0045] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is read and executes the steps of the stamp processing method described in the first aspect above.
[0046] The beneficial effects of this application are:
[0047] The present application provides a stamp processing method, device, electronic device and storage medium. By detecting the first image of a document placed on a stamp table and outputting a prompt message for placing the document in a stamp barrel according to the first detection result, the consistency of the document before placing the document in the stamp barrel with the legally authorized document corresponding to the document can be ensured. By detecting the second image after placing the document in the stamp barrel and controlling the unlocking of the stamp barrel according to the second detection result, the consistency of the document after placing the document in the stamp barrel with the document of the first image can be ensured, thereby ensuring the risk of users changing paper during the process of placing the document in the stamp barrel. After unlocking the stamp barrel, it is also necessary to detect whether the document has moved. If it has not moved, the stamp barrel can be controlled to stamp the document. This process can ensure the user's quick paper change operation after the stamp barrel is unlocked. Through the entire process, users can be prevented from quickly changing paper after verification at different stages, avoiding risk of risk control. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 A schematic diagram of a flow chart of a stamping processing method provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of a detection interface provided in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of another detection interface provided in an embodiment of the present application;
[0052] Figure 4 A schematic flow chart of another stamping processing method provided in an embodiment of the present application;
[0053] Figure 5 A schematic diagram of a process for determining features provided in an embodiment of the present application;
[0054] Figure 6 A schematic diagram of another detection interface provided in an embodiment of the present application;
[0055] Figure 7 A complete flow chart of a stamping process provided in an embodiment of the present application;
[0056] Figure 8 A schematic diagram of a device for a stamp processing method provided in an embodiment of the present application;
[0057] Fig. 9 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0059] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0060] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0061] The stamp processing method provided in the embodiment of the present application is applied to a smart stamp device, which may include a smart stamp terminal, a stamp table, an image acquisition device arranged on the top of the stamp table, and a stamp barrel. The smart stamp terminal can be communicated with the image acquisition device and the stamp barrel respectively.
[0062] Among them, the image acquisition device can be used to acquire the image of the document placed on the seal table. The smart seal terminal can be, for example, a mobile phone, a tablet computer, a laptop computer, a PDA, a desktop computer, or other terminal devices with computing and display capabilities. Specifically, it can be applied to applications in terminal devices, such as: mobile phone APP (application, mobile phone software), application systems on computers, etc. The smart seal terminal can use the method provided in the embodiment of the present application to stamp the document based on the image of the document placed on the seal table acquired by the image acquisition device, thereby controlling the seal barrel to stamp the document.
[0063] The specific implementation process of the stamping process provided in the embodiments of the present application is explained in detail below.
[0064] Figure 1 The flowchart of a stamp processing method provided in the embodiment of the present application is shown in FIG. 1 , and the execution subject of the method is the aforementioned smart stamp terminal. Figure 1 As shown, the method includes:
[0065] S101, obtaining a first image of a document placed on a stamp table, performing a first detection on the first image, and obtaining a first detection result.
[0066] Optionally, the first detection result is used to indicate whether the content of the document is consistent with the content of the corresponding legally authorized document. The document is a paper version of the document, and the legally authorized document is the electronic version of the legally authorized document corresponding to the paper version of the document. There may be a risk of changing paper when the paper version of the document is actually stamped, but there is no problem of changing paper for the electronic version of the legally authorized document. Therefore, whether the paper version of the document has been changed can be determined by detecting whether the content of the paper version of the document is consistent with the corresponding legally authorized document.
[0067] Optionally, after a document is placed on the seal table under the image acquisition device, the image acquisition device can take a photo of the document after detecting the document. When the complete paper outline of the document is detected, the first image of the document is captured. It is worth noting that the captured first image of the document is the complete paper document of the document.
[0068] Specifically, as follows Figure 2 As shown, Figure 2 A schematic diagram of a detection interface provided in an embodiment of the present application, such as Figure 2 As shown, after the complete outline of the document is detected in the left frame diagram in the figure, the first image of the document is captured and synchronized to the original image frame diagram on the right. When the first image in the original image is detected, the prompt message "Original image entry is successful and is being detected" can also be displayed in the interface.
[0069] Optionally, the image acquisition device may also detect that the document has been stationary for a first preset time and then take a photo of the document, thereby acquiring a first image. The first preset time may be, for example, 0.5s, or other time such as 0.4s, 0.6s, 0.7s, 0.8s, 0.9s, or 1s, which is set according to actual needs.
[0070] Specifically, if the image acquisition device detects the complete paper outline of the document and the document has been placed on the seal table for a first preset time, the image acquisition device can take a photo of the document, capture the first image of the document, and send the captured first image to the smart seal terminal to detect the first image to determine whether the document content of the first image is consistent with the content of the corresponding legally authorized document.
[0071] Optionally, if the first detection result is consistent, the smart seal terminal may output prompt information for placing the seal in the seal barrel; if the first detection result is inconsistent, no prompt information for placing the seal in the seal barrel is output, and the detection is stopped.
[0072] S102: Determine whether the first detection result is consistent.
[0073] Optionally, if they are consistent, S103 is executed; if they are inconsistent, the documents are rearranged and S101 is executed again.
[0074] For example, if the document content in the first image is consistent with the content of the pre-stored legal authorization document, then Figure 2 The prompt message "Detection is consistent, put into the chapter bucket" is output in the interface. If the document content in the first image is inconsistent with the content of the pre-stored legal authorization document, you can Figure 2 The prompt message "Detection stopped, paper change occurred" is output in the interface, and the documents are rearranged and S101 is executed again.
[0075] S103: Output prompt information for putting the chapter into the chapter barrel.
[0076] S104, obtaining a second image after the document is placed in the chapter barrel, and detecting the second image to obtain a second detection result.
[0077] Optionally, when putting a chapter barrel, the user may use certain actions, such as using the chapter barrel to cover the camera, to change the paper and avoid detection. Therefore, by acquiring a second image after the chapter barrel is put in, for example, acquiring a second image after the chapter barrel is placed still for a second preset time, the second image is detected to obtain a second detection result. The second detection result can be used to indicate whether the content of the document after the chapter barrel is put in is consistent with the content of the document in the first image.
[0078] For example, Figure 3 Another detection interface schematic diagram provided in the embodiment of the present application is as follows: Figure 3 As shown, in the left frame diagram of the figure, after detecting that a document is placed in a chapter barrel, a second image of the document placed in the chapter barrel is captured. Figure 3 The first image is still synchronized in the original frame on the right side.
[0079] Optionally, if the second detection result is that the content of the document after being placed in the seal barrel is consistent with the content of the document in the first image, the smart seal terminal can control the seal barrel to unlock; if the second detection result is that the content of the document after being placed in the seal barrel is inconsistent with the content of the document in the first image, the smart seal terminal does not control the seal barrel to unlock, stops the detection, and rearranges the document to return to execute step S101.
[0080] S105: Determine whether the second detection result is consistent.
[0081] Optionally, if they are consistent, execute S106; if they are inconsistent, rearrange the documents and return to execute step S101.
[0082] Exemplarily, if the second detection result is consistent, then the above Figure 3 The prompt message "Detection is consistent, chapter barrel unlocked" is output in the interface. If the second detection result is inconsistent, you can Figure 3 The prompt message "Detection stopped, paper change occurred" is output in the interface, and the documents are rearranged to return to execute step S101.
[0083] Among them, the second preset duration can be, for example, 0.4s, or other durations such as 0.3s, 0.5s, 0.6s, 0.7s, 0.8s, 0.9s, 1s, etc., which can be set according to actual needs.
[0084] S106. Control the seal barrel to unlock.
[0085] S107: Detect whether the document has been moved.
[0086] Optionally, after the seal barrel is unlocked, it is necessary to detect whether the document has been moved. If the document has not been moved, the following S108 is executed. If it has been moved, a prompt message "Detection stopped, paper change occurred" is output, the seal is locked and the document is rearranged, and the step S101 is returned to be executed.
[0087] S108, controlling the stamp barrel to stamp the document.
[0088] Optionally, the smart seal terminal can control the seal barrel to stamp the document.
[0089] For example, if the document is not moved, the Figure 3 The prompt message of "stamp" is output in the interface.
[0090] In this embodiment, by detecting the first image of the document after it is placed on the stamp table, and outputting the prompt information for placing the document in the stamp barrel according to the first detection result, the consistency of the document before placing the document in the stamp barrel and the legally authorized document corresponding to the document can be ensured. By detecting the second image after placing the document in the stamp barrel, and controlling the unlocking of the stamp barrel according to the second detection result, the consistency of the document after placing the document in the stamp barrel and the document of the first image can be ensured, thereby ensuring the risk of the user changing the paper during the process of placing the document in the stamp barrel. After unlocking the stamp barrel, it is also necessary to detect whether the document moves. If it does not move, the stamp barrel can be controlled to stamp the document. This process can ensure the user's quick paper change operation after the stamp barrel is unlocked. Through the whole process, it can effectively prevent the user from quickly changing the paper after verification at different stages, avoiding risk control risks.
[0091] Optionally, performing a first detection on the first image in S101 to obtain a first detection result may include:
[0092] Optionally, the first image can be sent to a server, which compares and analyzes the first image with a pre-stored legally authorized document image corresponding to the document to determine whether the first image is consistent with the legally authorized document image corresponding to the document. If they are consistent, the first detection result is consistent; if they are inconsistent, the first detection result is inconsistent.
[0093] Optionally, when the smart seal terminal receives the first image sent by the image acquisition device, the smart seal terminal can send the first image to the server, and the server detects the first image. Specifically, one or more of the digital watermark method, document content comparison, and image similarity method can be used to compare and determine whether the document content in the first image is consistent with the content of the pre-stored legal authorization document.
[0094] Figure 4 A flow chart of another stamping method provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the detection of the second image in the above S102 to obtain the second detection result may include:
[0095] S201 , performing mask processing on the blocked area in the second image to obtain a masked second image.
[0096] Optionally, when the second image is detected, the local processor of the smart seal terminal performs the detection processing, and at this time, the second image does not need to be sent to the server for detection.
[0097] Specifically, an image processing technology may be used to generate a mask for an image region in the second image where there are obstructions such as a seal barrel or a user's palm, so as to obtain a masked second image.
[0098] For example, Figure 5 A schematic diagram of a process for determining features provided in an embodiment of the present application, such as Figure 5 As shown, the second image is Figure 5 The leftmost image in the second image contains an area image blocked by the chapter barrel, and the second image is masked to obtain a masked second image. The masked second image is as follows: Figure 5 The middle image.
[0099] S202: extract features from the masked second image to obtain a feature image corresponding to the second image.
[0100] Specifically, for example, shif feature point extraction can be used to extract feature points in the second image. The extracted feature points can be one or more. The extracted features can be, for example, text features or image features. Thus, a feature map corresponding to the second image can be obtained.
[0101] Exemplarily, the feature points extracted from the second image after masking are such as Figure 5 Feature points in the rightmost image.
[0102] S203: Detect the second image according to the feature image corresponding to the second image and the first image to obtain a second detection result.
[0103] Optionally, a preset method may be used to detect the second image based on the feature image corresponding to the second image and the first image to detect whether the content in the second image is consistent with the content in the first image.
[0104] In this embodiment, the smart seal terminal detects the second image to obtain the second detection result, thereby improving the detection efficiency.
[0105] Optionally, the above S202, extracting features from the masked second image to obtain a feature image corresponding to the second image, may include:
[0106] Optionally, feature points may be extracted from image regions other than the masked region in the masked second image, and images of regions adjacent to the feature points may be captured to obtain a feature image corresponding to the second image.
[0107] Specifically, for example, feature points can be extracted from text in other image areas, such as Figure 5 The feature point in the rightmost image is selected, and the regional image adjacent to the feature point is intercepted, for example, the image around the feature point is selected as the feature image corresponding to the second image.
[0108] Optionally, in S203, detecting the second image according to the feature image corresponding to the second image and the first image to obtain the second detection result may include:
[0109] Optionally, a target area image corresponding to the feature image is selected from the first image. Then, the similarity between the target area image and the feature image can be determined to obtain a similarity result, and the second detection result is determined according to the similarity result and a preset threshold.
[0110] Specifically, the similarity between the text content in the target area image and the text content in the feature image can be determined. If the similarity result is greater than or equal to a preset threshold, it means that the text content of the feature image is highly similar to the text content of the target area image, and the second detection result is consistent; if the similarity result is less than the preset threshold, it means that the text content of the feature image is low similar to the text content of the target area image, and the second detection result is inconsistent.
[0111] Optionally, after obtaining the feature image in the second image and the target area image in the first image, the feature image in the second image can be synchronized to the above Figure 3 At the feature image frame in the image, synchronize the target area image to Figure 3 In the comparison image frame.
[0112] Optionally, the stamping processing method may further include:
[0113] Optionally, a real-time image of the document is acquired in real time, and the real-time image is detected to see if it is an abnormal image. If so, the detection is stopped and an abnormal warning message is output. Specifically, the smart seal terminal can synchronously display the acquired real-time image on the Figure 2 as well as Figure 3 In the left frame of the figure, when an abnormal image is detected, the detected abnormal image can be displayed on Figure 2 as well as Figure 3 The frame diagram of the exception graph.
[0114] Optionally, when the smart seal terminal acquires the first image of the document, the image acquisition device is controlled to continuously acquire images of the document in real time, and acquire a real-time image of the document until the stamping is completed.
[0115] Optionally, in an embodiment of the present application, except when detecting the first image, the first image needs to be sent to the server for detection. For image detection in other stages, such as detecting whether the real-time image is an abnormal image and the detection of the second image mentioned above, the detection is performed by the smart seal terminal without sending it to the server, which can greatly save detection time and improve detection efficiency.
[0116] Optionally, the above-mentioned detecting whether the real-time image is an abnormal image may include:
[0117] Optionally, if the real-time image appears blurred or inconsistent with the first image, the real-time image is determined to be an abnormal image, such as Figure 6 As shown in the box diagram of the anomaly graph.
[0118] Figure 7 A complete flow chart of a stamping process provided in an embodiment of the present application is shown as follows: Figure 7As shown: After placing the document under the image acquisition device, the first image is collected and sent to the server for detection. If the first detection result is consistent, it will prompt to put the seal barrel; if it is inconsistent, it will prompt that the detection failed and the document will be re-placed. After the seal barrel is placed, the second image is collected and detected. If the detection is consistent, the seal barrel is unlocked; if it is inconsistent, it will prompt that the paper has been changed, and then the document will be placed under the image acquisition device again and re-detected. Detect whether the paper has moved. If it has not moved, the document will be stamped. If it has moved, the seal barrel will be locked, and a prompt will be given to change the paper, and the document will be placed under the image acquisition device again and re-detected.
[0119] Optionally, the entire process from verifying the first image to stamping requires real-time image capture to determine whether the paper has moved. If not, the above steps are executed in order; if moved, the detection is stopped, the document is placed under the image capture device again, and the detection is repeated.
[0120] Figure 8 A schematic diagram of a device for a stamp processing method provided in an embodiment of the present application, such as Figure 8 As shown, the device comprises:
[0121] A first detection module 301 is used to obtain a first image of a document placed on a seal table, perform a first detection on the first image to obtain a first detection result, and output a prompt message for placing the document in a seal barrel according to the first detection result, wherein the first detection result is used to indicate whether the content of the document is consistent with the content of a corresponding legally authorized document;
[0122] A second detection module 302 is used to obtain a second image of the document after it is placed in the chapter bucket, perform a second detection on the second image to obtain a second detection result, and control the unlocking of the chapter bucket according to the second detection result;
[0123] The third detection module 303 is used to detect whether the document is moved, and if not, control the seal barrel to stamp the document.
[0124] Optionally, the first detection module 301 is specifically used to:
[0125] The first image is sent to a server, which compares and analyzes the first image with a pre-stored legal authorized document image corresponding to the document to determine whether the first image is consistent with the authorized document image corresponding to the document. If they are consistent, the first detection result is consistent.
[0126] Optionally, the second detection module 302 is specifically configured to:
[0127] performing masking on the blocked area in the second image to obtain a masked second image;
[0128] Performing feature extraction on the masked second image to obtain a feature image corresponding to the second image;
[0129] The second image is detected according to the feature image corresponding to the second image and the first image to obtain the second detection result.
[0130] Optionally, the second detection module 302 is specifically configured to:
[0131] Feature points are extracted from other image areas except the masked area in the masked second image, and the image of the area adjacent to the feature points is intercepted to obtain a feature image corresponding to the second image.
[0132] Optionally, the second detection module 302 is specifically configured to:
[0133] Selecting a target area image corresponding to the feature image from the first image;
[0134] The similarity between the target area image and the feature image is determined to obtain a similarity result, and the second detection result is determined according to the similarity result and a preset threshold.
[0135] Optionally, the third detection module 303 is specifically used to:
[0136] A real-time image of the document is acquired in real time, and it is detected whether the real-time image is an abnormal image. If so, the detection is stopped and an abnormal warning message is output.
[0137] Optionally, the third detection module 303 is specifically used to:
[0138] If the real-time image appears blurred or is inconsistent with the first image, the real-time image is determined to be an abnormal image.
[0139] Fig. 9 This is a structural block diagram of an electronic device 400 provided in an embodiment of the present application. The electronic device may be, for example, the smart seal terminal described in the above embodiment. Fig. 9 As shown, the electronic device may include: a processor 401 and a memory 402 .
[0140] Optionally, a bus 403 may also be included, wherein the memory 402 is used to store machine-readable instructions executable by the processor 401 (for example, Figure 8The execution instructions corresponding to the first detection module, the second detection module, and the third detection module in the device, etc.), when the electronic device 400 is running, the processor 401 communicates with the memory 402 through the bus 403, and when the machine-readable instructions are executed by the processor 401, the method steps in the above method embodiment are executed.
[0141] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method steps in the embodiment of the above-mentioned stamp processing method are executed.
[0142] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0143] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function 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 storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program code.
[0144] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A stamping method, characterized in that: Applied to a smart seal device, the smart seal device comprises: a smart seal terminal, a seal table, an image acquisition device arranged on the top of the seal table and a seal barrel, the image acquisition device is used to acquire an image of a document placed on the seal table, the method comprises: Acquire a first image of a document placed on the seal table, perform a first detection on the first image to obtain a first detection result, and output a prompt message for placing the document in the seal barrel according to the first detection result, wherein the first detection result is used to indicate whether the content of the document is consistent with the content of the corresponding legally authorized document; Acquire a second image of the document after it is placed in the chapter bucket, perform a second detection on the second image to obtain a second detection result, and control the chapter bucket to be unlocked according to the second detection result; Detect whether the document is moved, and if not, control the seal barrel to stamp the document.
2. The stamping method according to claim 1, characterized in that: The performing a first detection on the first image to obtain a first detection result includes: The first image is sent to a server, which compares and analyzes the first image with a pre-stored legal authorized document image corresponding to the document to determine whether the first image is consistent with the authorized document image corresponding to the document. If they are consistent, the first detection result is consistent.
3. The stamping method according to claim 1, characterized in that: The detecting the second image to obtain a second detection result includes: performing masking on the blocked area in the second image to obtain a masked second image; Performing feature extraction on the masked second image to obtain a feature image corresponding to the second image; The second image is detected according to the feature image corresponding to the second image and the first image to obtain the second detection result.
4. The stamping method according to claim 3, characterized in that: The extracting features of the masked second image to obtain features corresponding to the second image includes: Feature points are extracted from other image areas except the masked area in the masked second image, and the image of the area adjacent to the feature points is intercepted to obtain a feature image corresponding to the second image.
5. The stamping method according to claim 3, characterized in that: The detecting the second image according to the feature image corresponding to the second image and the first image to obtain the second detection result includes: Selecting a target area image corresponding to the feature image from the first image; The similarity between the target area image and the feature image is determined to obtain a similarity result, and the second detection result is determined according to the similarity result and a preset threshold.
6. The stamping method according to claim 1, characterized in that: Also includes: A real-time image of the document is acquired in real time, and it is detected whether the real-time image is an abnormal image. If so, the detection is stopped and an abnormal warning message is output.
7. The stamping method according to claim 6, characterized in that: The detecting whether the real-time image is an abnormal image comprises: If the real-time image appears blurred or is inconsistent with the first image, the real-time image is determined to be an abnormal image.
8. A stamp processing device, characterized in that: include: A first detection module, used for acquiring a first image of a document placed on the seal table, performing a first detection on the first image to obtain a first detection result, and outputting a prompt message for placing the document in the seal barrel according to the first detection result, wherein the first detection result is used for indicating whether the content of the document is consistent with the content of the corresponding legally authorized document; A second detection module, used for acquiring a second image of the document after it is placed in the chapter barrel, performing a second detection on the second image to obtain a second detection result, and controlling the chapter barrel to be unlocked according to the second detection result; The third detection module is used to detect whether the document is moved, and if not, control the seal barrel to stamp the document.
9. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program executable by the processor, and the processor implements the steps of the stamp processing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the stamp processing method according to any one of claims 1 to 7 are executed.
