A control method and device of a seal, an electronic device and a readable medium
By collecting and comparing the initial and target image data sets of the document to be stamped in the seal control device, it can be determined whether the document has been replaced or moved, thus solving the problem of document replacement during seal movement and improving the security of seal use.
Patent Information
- Application Number
- CN202510109008.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2045-01-23
AI Technical Summary
During the process of using a portable seal control device to move the seal, the authorized personnel, without their knowledge, had documents that were originally authorized to be stamped replaced with documents that were not authorized to be stamped.
The system acquires an initial image of the document to be stamped in the stamp controller, assigns pixel type data, obtains an initial data set, and acquires a target image when the stamp moves to the document's stamping position. By comparing the initial and target data sets, it determines whether the document has been replaced or moved. If it has been replaced or moved, an alarm is issued.
It enables security checks during the use of seals, ensuring that authorization documents have not been replaced and improving the security of seal use.
Smart Images

Figure CN120024135B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of seal technology, and in particular to a seal control method, a seal control device, an electronic device, and a computer-readable medium. Background Technology
[0002] Portable seal control devices have been widely used in the field of seal security management. The seal can be installed inside the portable seal control device, and the document to be stamped can be placed in a specific location. Without authorization from an authorized person to stamp the document, the seal is physically locked inside the seal control device, making it impossible to remove or use. Once authorized, the portable seal control device moves the seal to a suitable stamping position. This position is typically an exit or window of the seal control device, through which the seal can be pressed onto the document to complete the stamping operation.
[0003] However, during the process of using a portable seal control device to move the seal, there is a problem that, without the knowledge of the authorized personnel, documents that originally had the authority to stamp the seal may be replaced with documents that did not have the authority to stamp the seal. Summary of the Invention
[0004] This invention provides a method, apparatus, electronic device, and computer-readable storage medium for controlling a seal, in order to solve the problem that, during the process of controlling the movement of a seal with a portable seal controller, a document originally authorized for stamping may be replaced with a document without stamping authorization without the knowledge of the authorized personnel.
[0005] This invention discloses a method for controlling a seal, applied to a seal control device, wherein a preset seal is installed in the seal control device, and the seal's imprint surface is located inside the seal control device. The method includes:
[0006] In response to a stamping instruction for a document to be stamped, an initial image of the document to be stamped is acquired; the document to be stamped is placed at a preset stamping document position; the pixels in the initial image have at least one pixel type;
[0007] Assign corresponding type data to the at least one pixel type, and obtain the initial data group corresponding to the initial image based on the type data corresponding to the pixel type;
[0008] Control the seal to move, and when the seal's surface moves to the location of the stamped document, capture the target image at the location of the stamped document;
[0009] Based on the type data corresponding to the pixel type, obtain the target data group corresponding to the target image;
[0010] By comparing the initial data set and the target data set, it is determined whether the document to be stamped at the location of the stamped document has been replaced and / or moved;
[0011] If the document to be stamped is replaced and / or moved, the control unit will issue an alarm.
[0012] Optionally, determining whether the document to be stamped at the location of the stamped document has been replaced and / or moved by comparing the initial data set and the target data set includes:
[0013] Calculate the error between the initial data set and the target data set;
[0014] If the error exceeds a preset error range, it is determined that the document to be stamped has been replaced and / or moved.
[0015] Optionally, the stamping control device further includes an image sensor, a light-emitting device, and a converging lens; acquiring the initial image of the document to be stamped includes:
[0016] The light-emitting device is controlled to emit light towards the location of the stamped document; the light is reflected at the location of the stamped document to form reflected light; the reflected light is converged by the converging lens to form converged light;
[0017] The image sensor is controlled to acquire the initial image using the converging light rays.
[0018] Optionally, obtaining the initial data group corresponding to the initial image based on the type data corresponding to the pixel type includes:
[0019] Based on the type data corresponding to the pixel type, determine the initial data corresponding to the pixels in the initial image;
[0020] The initial data set is constructed using the initial data.
[0021] Optionally, the pixel type includes white pixels and / or black pixels; the step of assigning corresponding type data to the at least one pixel type includes:
[0022] Assign corresponding type data to the white pixels and / or the black pixels.
[0023] Optionally, the light source is red light.
[0024] Optionally, the seal control device further includes a seal lifting device and a drive motor; controlling the movement of the seal includes:
[0025] By controlling the drive motor, the seal lifting device is controlled to move the seal.
[0026] This invention also discloses a seal control device applied to a seal control instrument, wherein a preset seal is installed in the seal control instrument, and the seal's imprint surface is located inside the seal control instrument. The device includes:
[0027] An image acquisition module is used to acquire an initial image of the document to be stamped in response to a stamping instruction for the document to be stamped; the document to be stamped is placed at a preset stamping document position; the pixels in the initial image have at least one pixel type;
[0028] The data allocation module is used to allocate corresponding type data for the at least one pixel type, and to obtain the initial data group corresponding to the initial image based on the type data corresponding to the pixel type.
[0029] The motion control module is used to control the movement of the seal and to capture a target image at the location of the stamped document when the seal's surface moves to the location of the stamped document.
[0030] The target data group acquisition module is used to acquire the target data group corresponding to the target image based on the type data corresponding to the pixel type.
[0031] The judgment module is used to determine whether the document to be stamped at the location of the stamped document has been replaced and / or moved by comparing the initial data group and the target data group;
[0032] An alarm issuing module is used to control the seal controller to issue an alarm if the document to be stamped is replaced and / or moved.
[0033] Optionally, the determination module includes:
[0034] An error calculation submodule is used to calculate the error between the initial data set and the target data set.
[0035] The determination submodule is used to determine that the document to be stamped has been replaced and / or moved if the error exceeds a preset error range.
[0036] Optionally, the printing control device further includes an image sensor, a light-emitting device, and a converging lens; the image acquisition module includes:
[0037] A light emitting submodule is used to control the light-emitting device to emit light towards the location of the stamped document; the light is reflected at the location of the stamped document to form reflected light; the reflected light is converged by the converging lens to form converged light;
[0038] The image acquisition submodule is used to control the image sensor to acquire the initial image using the converging light rays.
[0039] Optionally, the data allocation module includes:
[0040] The initial data determination submodule is used to determine the initial data corresponding to the pixels in the initial image based on the type data corresponding to the pixel type.
[0041] The initial data set construction submodule is used to construct the initial data set using the initial data.
[0042] Optionally, the pixel type includes white pixels and / or black pixels; the data allocation module includes:
[0043] The allocation submodule is used to allocate corresponding type data to the white pixels and / or the black pixels.
[0044] Optionally, the light source is red light.
[0045] Optionally, the seal control device further includes a seal lifting device and a drive motor; the motion control module includes:
[0046] The moving submodule is used to control the seal lifting device by controlling the drive motor, so that the seal can be moved.
[0047] This invention also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0048] The memory is used to store computer programs;
[0049] When the processor executes a program stored in the memory, it implements the method described in the embodiments of the present invention.
[0050] This invention also discloses one or more computer-readable media storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this invention.
[0051] The embodiments of the present invention have the following advantages:
[0052] In this embodiment of the invention, a preset seal is installed in the seal control device, and the seal's surface is located inside the seal control device. In response to a stamping command for a document to be stamped, an initial image of the document to be stamped is acquired; the document to be stamped is placed at a preset stamping document position; the pixels in the initial image have at least one pixel type; corresponding type data is assigned to the at least one pixel type, and based on the type data corresponding to the pixel type, an initial data set corresponding to the initial image is obtained; the seal is controlled to move, and when the seal's surface moves to the stamping document position, a target image at the stamping document position is acquired; based on the type data corresponding to the pixel type, a target data set corresponding to the target image is obtained; by comparing the initial data set and the target data set, it is determined whether the document to be stamped at the stamping document position has been replaced and / or moved; if the document to be stamped has been replaced and / or moved, the seal control device is controlled to issue an alarm. By comparing the initial data set and the target data set, it is determined whether the document to be stamped at the stamping location has been replaced and / or moved. This helps to determine whether there is a risk that the authorized document to be stamped at the stamping location has been replaced with an unauthorized document. This achieves security detection of the seal control device during the use of the seal, allowing authorized personnel to know whether the document to be stamped at the stamping location has been moved or replaced with other documents during the process of the seal control device moving the seal until the seal surface moves to the stamping location. This can improve the security of seal use. Attached Figure Description
[0053] Figure 1 This is a flowchart of the steps of a seal control method provided in an embodiment of the present invention;
[0054] Figure 2 This is a schematic diagram of a printing control device provided in an embodiment of the present invention;
[0055] Figure 3 This is a schematic diagram of image acquisition of a printing control instrument provided in an embodiment of the present invention;
[0056] Figure 4 This is a schematic diagram of image acquisition for another printing control device provided in an embodiment of the present invention;
[0057] Figure 5 This is a schematic diagram of the comparison between an initial image and a target image provided in an embodiment of the present invention;
[0058] Figure 6 This is a structural block diagram of a seal control device provided in an embodiment of the present invention;
[0059] Figure 7 This is a block diagram of an electronic device provided in an embodiment of the present invention;
[0060] Figure 8This is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. Detailed Implementation
[0061] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0062] Reference Figure 1 This diagram illustrates a flowchart of a seal control method provided in an embodiment of the present invention. The method is applied to a seal control device, which has a preset seal installed therein, and the seal's surface is located inside the device. Specifically, the method may include the following steps:
[0063] Step 101: In response to a stamping instruction for a document to be stamped, an initial image of the document to be stamped is acquired; the document to be stamped is placed at a preset stamping document position; the pixels in the initial image have at least one pixel type.
[0064] In this embodiment of the invention, the seal control device can be a portable seal control device, which can be used for the secure management of seals. A seal can be installed in the seal control device, and the seal is physically locked inside the device. The seal's face is located inside the device, preventing the seal from being used to stamp documents without authorization.
[0065] Reference Figure 2 The diagram illustrates a stamp control device provided in an embodiment of the present invention. The stamp is installed... Figure 2 The image shows the interior of the seal control device. The seal control device mainly includes a seal lifting mechanism assembly, a main control circuit board, a power supply module, and a frame assembly. The seal lifting mechanism assembly can also be referred to as a seal lifting device.
[0066] In this embodiment of the invention, the user can place the document to be stamped on a desktop, the location of which can be referred to as the stamping document location. Then, the user places the portable seal control device in the stamping area of the document. Next, the user logs into the seal usage system via a mobile app and sends the electronic version of the document to be stamped to the authorized personnel. The authorized personnel can determine whether the document is worthy of stamping based on the electronic version and grant authorization. If the authorized personnel grant authorization, the user can then connect to the seal control device via Bluetooth on their mobile phone, and the mobile app can send a stamping command to the seal control device for the authorized document.
[0067] In this embodiment of the invention, the seal control device, in response to a stamping command for a document to be stamped, can acquire an initial image of the document to be stamped. The document to be stamped is placed at the stamping location, the seal control device is in the stamping area of the document to be stamped, and the document to be stamped has already obtained stamping authorization from an authorized person.
[0068] In this embodiment of the invention, the document to be stamped includes at least one pixel, and the pixel of the document to be stamped includes at least one pixel type.
[0069] In some embodiments of the present invention, the stamp control device further includes an image sensor, a light-emitting device, and a converging lens; acquiring the initial image of the document to be stamped includes:
[0070] The light-emitting device is controlled to emit light towards the location of the stamped document; the light is reflected at the location of the stamped document to form reflected light; the reflected light is converged by the converging lens to form converged light;
[0071] The image sensor is controlled to acquire the initial image using the converging light rays.
[0072] Reference Figure 3 This diagram illustrates an image acquisition schematic of a seal control device provided in an embodiment of the present invention. The document to be stamped is placed on the WorkSurface. The frame components of the seal control device include a Sensor, a Lens, and an LED (Light Emitting Diode). The sensor can be an image sensor or an optical sensor, the lens can be a converging lens, and the LED is also known as a light-emitting device.
[0073] Reference Figure 4 This diagram illustrates an image acquisition schematic of another printing control device provided in an embodiment of the present invention. The printing control device includes an optical sensor, a light-emitting diode, a plane mirror, and a converging lens. In this embodiment of the present invention, both the optical sensor and the image sensor can be used to acquire images.
[0074] In this embodiment of the invention, in response to a stamping command for a document to be stamped, the stamping controller controls a light-emitting device to emit light towards the location of the document to be stamped. This light can reach the location of the document to be stamped after multiple reflections by a plane mirror.
[0075] Because the document to be stamped is placed at the stamping location, light is reflected from the document, creating reflected light. This reflected light then converges at the converging lens, forming a converging ray. The stamping control unit can control an image sensor or optical sensor to convert the light signal of the converging ray into a digital signal, and then convert this digital signal into an initial image of the document to be stamped.
[0076] In some embodiments of the present invention, the light is red light.
[0077] In this embodiment of the invention, the light emitted by the light-emitting device can be red light; the image sensor on the seal controller can realize infrared photoelectric detection, and acquire the initial image of the document to be stamped at the stamping location, or continuously acquire the image of the document at the stamping location while the seal controller controls the seal to stamp.
[0078] Step 102: Assign corresponding type data to the at least one pixel type, and obtain the initial data group corresponding to the initial image based on the type data corresponding to the pixel type;
[0079] In this embodiment of the invention, the initial image of the document to be stamped, which is obtained by stamping authorization and placed at the stamping document location, includes at least one pixel, and the pixels of the initial image include at least one pixel type.
[0080] In this embodiment of the invention, corresponding type data can be assigned to pixel types, and the initial data group corresponding to the initial image can be obtained based on the type data corresponding to the pixel types.
[0081] In some embodiments of the present invention, obtaining the initial data group corresponding to the initial image based on the type data corresponding to the pixel type includes:
[0082] Based on the type data corresponding to the pixel type, determine the initial data corresponding to the pixels in the initial image;
[0083] The initial data set is constructed using the initial data.
[0084] In this embodiment of the invention, the printing control instrument can determine the pixel type of each pixel in the initial image, and determine the initial data corresponding to each pixel in the initial image based on the type data corresponding to the pixel type. Then, the initial data is used to construct an initial data set.
[0085] In some embodiments of the present invention, the pixel type includes white pixels and / or black pixels; the step of assigning corresponding type data to the at least one pixel type includes:
[0086] Assign corresponding type data to the white pixels and / or the black pixels.
[0087] In this embodiment of the invention, the pixel type of the initial image may include white pixels and / or black pixels. In this embodiment, corresponding type data can be assigned to white pixels and / or black pixels.
[0088] In a specific example, the initial image contains only white and black pixels. The printer assigns type data of 0 to white pixels and type data of 1 to black pixels. If the initial image contains only 6 pixels, the initial data set can be "0, 1, 0, 1, 0, 1".
[0089] Step 103: Control the seal to move, and when the seal surface moves to the location of the stamped document, acquire the target image at the location of the stamped document;
[0090] In this embodiment of the invention, the seal controller, in response to a stamping command for a document to be stamped, can control the seal to move so that the seal face moves to the document's stamping position, thereby stamping the document.
[0091] When the stamp's surface moves to the location of the document to be stamped, the stamp control device can use a light-emitting device, a converging lens, and an image sensor to acquire a target image of the document's location. The method for acquiring the target image is similar to the method for acquiring the initial image, and will not be described in detail here.
[0092] In some embodiments of the present invention, the seal control device further includes a seal lifting device and a drive motor; controlling the movement of the seal includes:
[0093] By controlling the drive motor, the seal lifting device is controlled to move the seal.
[0094] In this embodiment of the invention, the seal control device further includes a seal lifting device, a main control circuit board, a drive motor, and a power module. The power module provides power for the operation of the seal control device, and the main control circuit board may include a control chip, allowing the control operations of the seal control device to be performed through the control chip on the main control circuit board.
[0095] In this embodiment of the invention, when the seal controller moves the seal, it can use the main control circuit board to control the drive motor, thereby moving the seal lifting device so that the seal's surface moves to the document stamping position. After the seal's surface moves to the document stamping position, the drive motor stops running, and an image sensor is used to acquire the target image.
[0096] Step 104: Based on the type data corresponding to the pixel type, obtain the target data group corresponding to the target image;
[0097] In this embodiment of the invention, the pixel type of the target image at the location of the stamped document is the same as the pixel type of the initial image of the document to be stamped. The pixels of the target image may also include white pixels and / or black pixels.
[0098] In this embodiment of the invention, the printing control instrument can determine the pixel type of each pixel in the target image, and determine the target data corresponding to each pixel in the target image according to the type data corresponding to the pixel type, and construct a target data group using the target data.
[0099] In a specific example, the target image contains only white and black pixels. The printer assigns a type data of 0 to white pixels and a type data of 1 to black pixels. If the target image contains only 6 pixels, the target data set can be "1, 1, 1, 1, 0, 1".
[0100] Step 105: By comparing the initial data set and the target data set, determine whether the document to be stamped at the location of the stamped document has been replaced and / or moved;
[0101] In this embodiment of the invention, the initial image and the target image can be compared by comparing the initial data set and the target data set. This allows for the determination of whether the document to be stamped at the stamping document position has been moved or replaced with another document during the process of the stamp being moved by the stamp control device until the stamp surface is moved to the stamping document position.
[0102] In this embodiment of the invention, the stamping control device can also determine the initial position of the document to be stamped in the initial image based on the initial image; and determine the target position of the document in the target image based on the target image. Based on the initial position and the target position, it is determined whether the document has been moved.
[0103] In some embodiments of the present invention, determining whether the document to be stamped at the location of the stamped document has been replaced and / or moved by comparing the initial data set and the target data set includes:
[0104] Calculate the error between the initial data set and the target data set;
[0105] If the error exceeds a preset error range, it is determined that the document to be stamped has been replaced and / or moved.
[0106] In this embodiment of the invention, the error between the initial data set and the target data set can be calculated. If the error exceeds a preset error range, it can be determined that during the process of the seal controller moving the seal until the seal's surface moves to the position of the document to be stamped, the document to be stamped may be replaced and / or moved, and there is a risk that the authorized document to be stamped may be replaced with an unauthorized document. The preset error range is determined based on numerous experiments.
[0107] Reference Figure 5 This diagram illustrates a comparison of an initial image and a target image provided in an embodiment of the present invention. Figure 5 The first image in the diagram is the initial image, and the second image is the target image. Both the initial and target images contain only white and black pixels. The error between the initial data set corresponding to the initial image and the target data set corresponding to the target image can be calculated to compare the initial and target images and determine whether the document to be stamped at the stamping location has been moved or replaced with another document during the process of the stamp moving under the control of the stamping device until the stamp's surface reaches the stamping document position.
[0108] In this embodiment of the invention, the absolute error or mean square error between the initial data set and the target data set can be calculated, and the absolute error or mean square error can be used to determine whether the document to be stamped at the stamping document position has been moved and / or replaced.
[0109] Step 106: If the document to be stamped is replaced and / or moved, control the stamping device to issue an alarm.
[0110] In this embodiment of the invention, the seal control device may include a buzzer. If the seal control device determines that the document to be stamped at the designated location has been replaced and / or moved, and the seal control device determines that there is a risk that the authorized document to be stamped may be replaced with an unauthorized document, the seal control device may control the buzzer to sound an alarm, and simultaneously record the event of the replacement and / or movement of the document to be stamped in a preset event log.
[0111] In this embodiment of the invention, a preset seal is installed in the seal control device, and the seal's surface is located inside the seal control device. In response to a stamping command for a document to be stamped, an initial image of the document to be stamped is acquired; the document to be stamped is placed at a preset stamping document position; the pixels in the initial image have at least one pixel type; corresponding type data is assigned to the at least one pixel type, and based on the type data corresponding to the pixel type, an initial data set corresponding to the initial image is obtained; the seal is controlled to move, and when the seal's surface moves to the stamping document position, a target image at the stamping document position is acquired; based on the type data corresponding to the pixel type, a target data set corresponding to the target image is obtained; by comparing the initial data set and the target data set, it is determined whether the document to be stamped at the stamping document position has been replaced and / or moved; if the document to be stamped has been replaced and / or moved, the seal control device is controlled to issue an alarm. By comparing the initial data set and the target data set, it is determined whether the document to be stamped at the stamping location has been replaced and / or moved. This helps to determine whether there is a risk that the authorized document to be stamped at the stamping location has been replaced with an unauthorized document. This achieves security detection of the seal control device during the use of the seal, allowing authorized personnel to know whether the document to be stamped at the stamping location has been moved or replaced with other documents during the process of the seal control device moving the seal until the seal surface moves to the stamping location. This can improve the security of seal use.
[0112] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0113] Reference Figure 6 This diagram illustrates a structural block diagram of a seal control device provided in an embodiment of the present invention. The device is applied to a seal control instrument, which houses a preset seal, with the seal's printing surface located inside the instrument. Specifically, it may include the following modules:
[0114] Image acquisition module 601 is used to acquire an initial image of the document to be stamped in response to a stamping instruction for the document to be stamped; the document to be stamped is placed at a preset stamping document position; the pixels in the initial image have at least one pixel type;
[0115] The data allocation module 602 is used to allocate corresponding type data for the at least one pixel type, and obtain the initial data group corresponding to the initial image based on the type data corresponding to the pixel type.
[0116] The motion control module 603 is used to control the movement of the seal and to capture a target image at the location of the stamped document when the seal's surface moves to the location of the stamped document.
[0117] The target data group acquisition module 604 is used to acquire the target data group corresponding to the target image based on the type data corresponding to the pixel type.
[0118] The judgment module 605 is used to determine whether the document to be stamped at the location of the stamped document has been replaced and / or moved by comparing the initial data group and the target data group;
[0119] Alarm issuing module 606 is used to control the seal controller to issue an alarm when the document to be stamped is replaced and / or moved.
[0120] In an optional embodiment of the present invention, the determining module includes:
[0121] An error calculation submodule is used to calculate the error between the initial data set and the target data set.
[0122] The determination submodule is used to determine that the document to be stamped has been replaced and / or moved if the error exceeds a preset error range.
[0123] In an optional embodiment of the present invention, the printing control device further includes an image sensor, a light-emitting device, and a converging lens; the image acquisition module includes:
[0124] A light emitting submodule is used to control the light-emitting device to emit light towards the location of the stamped document; the light is reflected at the location of the stamped document to form reflected light; the reflected light is converged by the converging lens to form converged light;
[0125] The image acquisition submodule is used to control the image sensor to acquire the initial image using the converging light rays.
[0126] In an optional embodiment of the present invention, the data allocation module includes:
[0127] The initial data determination submodule is used to determine the initial data corresponding to the pixels in the initial image based on the type data corresponding to the pixel type.
[0128] The initial data set construction submodule is used to construct the initial data set using the initial data.
[0129] In an optional embodiment of the present invention, the pixel type includes white pixels and / or black pixels; the data allocation module includes:
[0130] The allocation submodule is used to allocate corresponding type data to the white pixels and / or the black pixels.
[0131] In an optional embodiment of the present invention, the light is red light.
[0132] In an optional embodiment of the present invention, the seal control device further includes a seal lifting device and a drive motor; the movement control module includes:
[0133] The moving submodule is used to control the seal lifting device by controlling the drive motor, so that the seal can be moved.
[0134] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0135] In addition, embodiments of the present invention also provide an electronic device, such as... Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703, and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.
[0136] Memory 703 is used to store computer programs;
[0137] When processor 701 executes a program stored in memory 703, it performs the following steps:
[0138] In response to a stamping instruction for a document to be stamped, an initial image of the document to be stamped is acquired; the document to be stamped is placed at a preset stamping document position; the pixels in the initial image have at least one pixel type;
[0139] Assign corresponding type data to the at least one pixel type, and obtain the initial data group corresponding to the initial image based on the type data corresponding to the pixel type;
[0140] Control the seal to move, and when the seal's surface moves to the location of the stamped document, capture the target image at the location of the stamped document;
[0141] Based on the type data corresponding to the pixel type, obtain the target data group corresponding to the target image;
[0142] By comparing the initial data set and the target data set, it is determined whether the document to be stamped at the location of the stamped document has been replaced and / or moved;
[0143] If the document to be stamped is replaced and / or moved, the control unit will issue an alarm.
[0144] In an optional embodiment of the present invention, determining whether the document to be stamped at the location of the stamped document has been replaced and / or moved by comparing the initial data set and the target data set includes:
[0145] Calculate the error between the initial data set and the target data set;
[0146] If the error exceeds a preset error range, it is determined that the document to be stamped has been replaced and / or moved.
[0147] In an optional embodiment of the present invention, the stamp control device further includes an image sensor, a light-emitting device, and a converging lens; the acquisition of the initial image of the document to be stamped includes:
[0148] The light-emitting device is controlled to emit light towards the location of the stamped document; the light is reflected at the location of the stamped document to form reflected light; the reflected light is converged by the converging lens to form converged light;
[0149] The image sensor is controlled to acquire the initial image using the converging light rays.
[0150] In an optional embodiment of the present invention, obtaining the initial data group corresponding to the initial image based on the type data corresponding to the pixel type includes:
[0151] Based on the type data corresponding to the pixel type, determine the initial data corresponding to the pixels in the initial image;
[0152] The initial data set is constructed using the initial data.
[0153] In an optional embodiment of the present invention, the pixel type includes white pixels and / or black pixels; the step of assigning corresponding type data to the at least one pixel type includes:
[0154] Assign corresponding type data to the white pixels and / or the black pixels.
[0155] In an optional embodiment of the present invention, the light is red light.
[0156] In an optional embodiment of the present invention, the seal control device further includes a seal lifting device and a drive motor; controlling the movement of the seal includes:
[0157] By controlling the drive motor, the seal lifting device is controlled to move the seal.
[0158] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0159] The communication interface is used for communication between the aforementioned terminal and other devices.
[0160] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0161] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0162] like Figure 8 As shown, in another embodiment of the present invention, a computer-readable storage medium 801 is also provided, which stores instructions that, when executed on a computer, cause the computer to perform a seal control method as described in the above embodiment.
[0163] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute a seal control method described in the above embodiments.
[0164] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0165] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0166] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0167] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.
Claims
1. A control method of a seal, characterized by, The method is applied to a seal control instrument, a preset seal is installed in the seal control instrument, and a seal surface of the seal is located inside the seal control instrument, and the method comprises the following steps: In response to a seal instruction for a file to be sealed, an initial image of the file to be sealed is collected; the file to be sealed is placed at a preset seal file position; a pixel point in the initial image has at least one pixel point type; Corresponding type data is assigned to the at least one pixel point type, and an initial data group corresponding to the initial image is obtained based on the type data corresponding to the pixel point type; The seal is controlled to move, and when the seal surface of the seal moves to the seal file position, a target image at the seal file position is collected; Based on the type data corresponding to the pixel point type, a target data group corresponding to the target image is obtained; By comparing the initial data group and the target data group, it is determined whether the file to be sealed at the seal file position is replaced and / or moved; In the case that the file to be sealed is replaced and / or moved, the seal control instrument is controlled to issue an alarm; The initial data group corresponding to the initial image is obtained based on the type data corresponding to the pixel point type, which comprises the following steps: Based on the type data corresponding to the pixel point type, the initial data corresponding to the pixel point in the initial image is determined; The initial data group is constructed by using the initial data; The pixel point type includes white pixel points and / or black pixel points; the assignment of corresponding type data to the at least one pixel point type comprises the following steps: Corresponding type data is assigned to the white pixel points and / or the black pixel points.
2. The method of claim 1, wherein, The determination of whether the file to be sealed at the seal file position is replaced and / or moved by comparing the initial data group and the target data group comprises the following steps: The error between the initial data group and the target data group is calculated; In the case that the error exceeds a preset error range, it is determined that the file to be sealed is replaced and / or moved.
3. The method of claim 1, wherein, The seal control instrument further comprises an image sensor, a light emitting device, and a converging lens; the collection of the initial image of the file to be sealed comprises the following steps: The light emitting device is controlled to emit light to the seal file position; the light is reflected at the seal file position to form reflected light; the reflected light is converged by the converging lens to form converging light; The image sensor is controlled to obtain the initial image by using the converging light.
4. The method of claim 3, wherein, The light is infrared light.
5. The method of claim 1, wherein, The seal control instrument further comprises a seal lifting device and a driving motor; the control of the movement of the seal comprises the following steps: The seal lifting device is controlled to move the seal by controlling the driving motor.
6. A control device for a seal, characterized in that The device is applied to a seal control instrument, a preset seal is installed in the seal control instrument, and a seal surface of the seal is located inside the seal control instrument, and the device comprises the following steps: An image collection module is used to collect an initial image of a file to be sealed in response to a seal instruction for the file to be sealed; the file to be sealed is placed at a preset seal file position; a pixel point in the initial image has at least one pixel point type; The data distribution module is configured to assign type data corresponding to the at least one pixel point type, and obtain an initial data group corresponding to the initial image based on the type data corresponding to the pixel point type. The movement control module is configured to control the seal to move, and capture a target image at the stamping file position when the seal surface of the seal moves to the stamping file position. The target data group acquisition module is configured to obtain a target data group corresponding to the target image based on the type data corresponding to the pixel point type. The judgment module is configured to judge whether the to-be-stamped file at the stamping file position is replaced and / or moved by comparing the initial data group and the target data group. The alarm issuing module is configured to control the seal control instrument to issue an alarm when the to-be-stamped file is replaced and / or moved. The data distribution module comprises: The initial data determination submodule is configured to determine initial data corresponding to a pixel point in the initial image based on the type data corresponding to the pixel point type. The initial data group construction submodule is configured to construct the initial data group by using the initial data. The pixel point type comprises white pixel points and / or black pixel points; and the data distribution module comprises: The distribution submodule is configured to assign type data corresponding to the white pixel points and / or the black pixel points.
7. An electronic device, comprising: The apparatus comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus. The memory is configured to store a computer program. The processor is configured to execute the program stored on the memory, and implement the method in any one of claims 1-5.
8. One or more computer-readable media having instructions stored thereon, the instructions, when executed by one or more processors, cause the processors to perform the method in any one of claims 1-5.
Citation Information
Patent Citations
Intrusion detection method and system of printing-control instrument and printing-control instrument
CN107323114A
Stamper using method and device of stamper control instrument
CN113997705A