Seal control method and device, electronic equipment and readable medium
By using image sensors and light-emitting devices in the printing control device to collect and compare image data, determine whether the document to be stamped has been replaced or moved, and an alarm is issued, the problem of file replacement in the portable printing control device is solved, and the security of seal use is improved.
Patent Information
- Application Number
- CN202510109008.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2045-01-23
AI Technical Summary
During the process of controlling the movement of the seal by the portable seal controller, there is a problem that without the authorized person's knowledge, the documents that originally had the seal authorization were replaced with documents that did not obtain the seal authorization.
By installing an image sensor, a light emitting device and a converging lens in the printing control device, the initial image and target image of the document to be stamped are collected, the initial data group and the target data group are compared, and whether the document to be stamped has been replaced or moved, and an alarm is issued when a replacement or movement occurs.
The security detection during the use of the seal is realized, ensuring that authorized personnel know the status of the documents during the movement of the seal, and improving the safety effect of using the seal.
Smart Images

Figure CN120024135A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of seals, and in particular to a seal control method, a seal control device, an electronic device and a computer-readable medium. Background Art
[0002] In the related art, portable seal controllers have been widely used in the field of seal security management. The seal can be installed in the portable seal controller, and the document to be stamped can be placed in a specific position. If the seal is not authorized by the authorized person to stamp the document to be stamped, the seal will be physically locked in the seal controller and cannot be taken out or used. Once the seal obtains the stamping authorization of the authorized person for the document to be stamped, the portable seal controller will control the seal to move to a suitable position for stamping. This position is usually an exit or window of the seal controller, through which the seal can be pressed on the document to be stamped to complete the stamping operation.
[0003] However, in the process of controlling the movement of the seal by the portable seal control device, there is a problem that the document originally authorized for stamping is replaced by a document without the authorization for stamping without the knowledge of the authorized personnel. Summary of the invention
[0004] The embodiments of the present invention provide a seal control method, device, electronic device and computer-readable storage medium to solve the problem that in the process of controlling the movement of the seal by a portable seal control device, a document originally authorized for stamping is replaced by a document not authorized for stamping without the knowledge of the authorized personnel.
[0005] The embodiment of the present invention discloses a seal control method, which is applied to a seal control device, wherein a preset seal is installed in the seal control device, and the seal surface of the seal is located inside the seal control device. The method comprises:
[0006] In response to a stamping instruction for a document to be stamped, an initial image of the document to be stamped is collected; the document to be stamped is placed at a preset stamping document position; pixels in the initial image have at least one pixel type;
[0007] assigning corresponding type data to the at least one pixel type, and acquiring an initial data group corresponding to the initial image based on the type data corresponding to the pixel type;
[0008] Controlling the seal to move, and when the seal face of the seal moves to the position of the stamped document, collecting the target image at the position of the stamped document;
[0009] Based on the type data corresponding to the pixel type, obtaining a target data group corresponding to the target image;
[0010] By comparing the initial data group and the target data group, determining whether the document to be stamped at the stamped document position has been replaced and / or moved;
[0011] When the document to be stamped is replaced and / or moved, the printing control device is controlled to issue an alarm.
[0012] Optionally, the step of comparing the initial data set with the target data set to determine whether the document to be stamped at the stamped document position has been replaced and / or moved comprises:
[0013] calculating an error between the initial data set and the target data set;
[0014] When the error exceeds a preset error range, it is determined that the document to be stamped is replaced and / or moved.
[0015] Optionally, the printing control device further includes an image sensor, a light emitting device and a converging lens; and the collecting of the initial image of the document to be stamped includes:
[0016] Controlling the light emitting device to emit light to 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 convergent light;
[0017] The image sensor is controlled to acquire the initial image using the converged light.
[0018] Optionally, acquiring an initial data group corresponding to the initial image based on type data corresponding to the pixel type includes:
[0019] Determining initial data corresponding to a pixel point in the initial image based on the type data corresponding to the pixel point type;
[0020] The initial data set is constructed using the initial data.
[0021] Optionally, the pixel point type includes white pixel points and / or black pixel points; and the assigning corresponding type data to the at least one pixel point type includes:
[0022] Corresponding type data is allocated to the white pixel point and / or the black pixel point.
[0023] Optionally, the light is red light.
[0024] Optionally, the seal control device further includes a seal lifting device and a drive motor; the control of the seal to move includes:
[0025] By controlling the driving motor, control the seal lifting device to move the seal.
[0026] An embodiment of the present invention also discloses a control device for a seal, which is applied to a seal control instrument. A preset seal is installed in the seal control instrument, and the printing surface of the seal is located inside the seal control instrument. The device includes:
[0027] An image acquisition module, configured 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 document stamping position; the pixel points in the initial image have at least one pixel point type;
[0028] A data distribution module, configured to assign corresponding type data 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;
[0029] A movement control module, configured to control the movement of the seal, and acquire a target image at the document stamping position when the printing surface of the seal moves to the document stamping position;
[0030] A target data group acquisition module, configured to obtain a target data group corresponding to the target image based on the type data corresponding to the pixel point type;
[0031] A judgment module, configured to judge whether the document to be stamped at the document stamping position is replaced and / or moved by comparing the initial data group and the target data group;
[0032] An alarm sending module, configured to control the seal control instrument to send an alarm in the case where the document to be stamped is replaced and / or moved.
[0033] Optionally, the judgment module includes:
[0034] An error calculation sub-module, configured to calculate the error between the initial data group and the target data group;
[0035] A determination sub-module, configured to determine that the document to be stamped is replaced and / or moved in the case where the error exceeds a preset error range.
[0036] Optionally, the seal control instrument further includes an image sensor, a light emitting device, and a converging lens; the image acquisition module includes:
[0037] A light emission sub-module, configured to control the light emitting device to emit light towards the document stamping position; the light is reflected at the document stamping position 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 converged light.
[0039] Optionally, the data allocation module includes:
[0040] An initial data determination submodule, used to determine initial data corresponding to a pixel point in the initial image based on type data corresponding to the pixel point type;
[0041] The initial data group construction submodule is used to construct the initial data group using the initial data.
[0042] Optionally, the pixel type includes white pixel and / or black pixel; and the data allocation module includes:
[0043] The allocation submodule is used to allocate corresponding type data to the white pixel point and / or the black pixel point.
[0044] Optionally, the light is red light.
[0045] Optionally, the seal control device further includes a seal lifting device and a drive motor; the movement control module includes:
[0046] The moving submodule is used to control the seal lifting device by controlling the driving motor to move the seal.
[0047] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0048] The memory is used to store computer programs;
[0049] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0050] The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.
[0051] The embodiments of the present invention include the following advantages:
[0052] In an embodiment of the present invention, a preset seal is installed in the seal control device, and the seal face is located inside the seal control device. In response to a seal instruction for a document to be sealed, an initial image of the document to be sealed is collected; the document to be sealed is placed at a preset seal document position; the pixels in the initial image have at least one pixel type; corresponding type data is assigned to at least one pixel type, and based on the type data corresponding to the pixel type, an initial data group corresponding to the initial image is obtained; the seal is controlled to move, and when the seal face moves to the seal document position, a target image at the seal document position is collected; based on the type data corresponding to the pixel 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 document to be sealed at the seal document position is replaced and / or moved; in the case where the document to be sealed is replaced and / or moved, the seal control device is controlled to issue an alarm. By comparing the initial data group and the target data group, it is determined whether the document to be stamped at the stamped document position has been replaced and / or moved, thereby determining whether there is a risk that the authorized document to be stamped at the stamped document position is replaced by an unauthorized document. This realizes the security detection of the seal control device during the use of the seal, so that the authorized personnel know whether the document to be stamped at the stamped document position has been moved or replaced by other files during the process of the seal control device controlling the movement of the seal until the seal surface moves to the stamped document position, thereby improving the security effect of using the seal. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a flow chart of steps of a seal control method provided in an embodiment of the present invention;
[0054] Figure 2 is a schematic diagram of a printing control device provided in an embodiment of the present invention;
[0055] Figure 3 is a schematic diagram of image acquisition of a printing control device provided in an embodiment of the present invention;
[0056] Figure 4 is a schematic diagram of image acquisition of another printing control device provided in an embodiment of the present invention;
[0057] Figure 5 is a schematic diagram of comparison between an initial image and a target image provided in an embodiment of the present invention;
[0058] Figure 6 is a structural block diagram of a seal control device provided in an embodiment of the present invention;
[0059] Figure 7 is a block diagram of an electronic device provided in an embodiment of the present invention;
[0060] Figure 8is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0061] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0062] Reference Figure 1 , shows a flow chart of the steps of a seal control method provided in an embodiment of the present invention, which is applied to a seal control instrument, wherein a preset seal is installed in the seal control instrument, and the seal surface of the seal is located inside the seal control instrument, and specifically 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 collected; the document to be stamped is placed at a preset stamping document position; pixels in the initial image have at least one pixel type;
[0064] In the embodiment of the present invention, the seal control device may be a portable seal control device, which may be used for the security management of seals. A seal may be installed in the seal control device, and the seal is physically locked inside the seal control device, with the seal surface located inside the seal control device, so that the seal cannot be used to stamp documents that are not authorized by authorized personnel.
[0065] Reference Figure 2 , which shows a schematic diagram of a seal control device provided in an embodiment of the present invention. Figure 2 The interior of the printing control device shown in the figure. The printing control device mainly includes a seal lifting mechanism component, a main control circuit board, a power module and a frame component. Among them, the seal lifting mechanism component can also be called a seal lifting device.
[0066] In an embodiment of the present invention, a user can place the document to be stamped on the desktop, and the location where the document to be stamped is placed can be called the stamped document location. Then, the user can place the portable seal control device in the stamping area of the document to be stamped, and then the user logs in to the seal system through the APP (Application) of the mobile phone, and sends the electronic file of the document to be stamped to the authorized person through the seal system. The authorized person can determine whether to grant authorization for the document to be stamped based on the electronic file. If the authorized person grants authorization for the document to be stamped, the user can then connect to the seal control device through the mobile phone Bluetooth, and the mobile phone APP can send a stamping instruction for the authorized document to be stamped to the seal control device.
[0067] In an embodiment of the present invention, the printing control device can capture an initial image of the document to be stamped in response to a stamping instruction for the document to be stamped, wherein the document to be stamped is placed at a stamping document position, the printing control device is in the stamping area of the document to be stamped, and the document to be stamped has obtained the stamping authorization of the authorized person.
[0068] In the embodiment of the present 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 printing control device further includes an image sensor, a light emitting device and a converging lens; and the collecting of the initial image of the document to be stamped includes:
[0070] Controlling the light emitting device to emit light to 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 converged light.
[0072] Reference Figure 3 , shows a schematic diagram of image acquisition of a printing control device provided in an embodiment of the present invention. The document to be stamped is placed on the WorkSurface, and the frame components of the printing 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 light emitting diode is also called a light emitting device.
[0073] Reference Figure 4 , shows a schematic diagram of image acquisition 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 the embodiment of the present invention, both the optical sensor and the image sensor can be used to acquire images.
[0074] In the embodiment of the present invention, in response to the stamping instruction for the document to be stamped, the printing control device controls the light emitting device to emit light to the position of the document to be stamped. The light can reach the position of the document to be stamped after multiple reflections of the plane mirror.
[0075] Since the document to be stamped is placed at the position of the document to be stamped, the light will be reflected by the document to be stamped at the position of the document to be stamped, forming a reflected light. When the reflected light reaches the converging lens, the reflected light is converged to form a converging light. The printing controller can control the image sensor or the optical sensor to convert the light signal of the converging light into a digital signal, and then convert the digital signal into the initial image of the document to be stamped.
[0076] In some embodiments of the present invention, the light is red light.
[0077] In an embodiment of the present invention, the light emitted by the light-emitting device can be red light; the image sensor on the printing control device can realize infrared photoelectric detection, collect the initial image of the document to be stamped at the stamping position, and can also continuously collect the image at the stamping position of the document during the process of the printing control device controlling the seal to stamp.
[0078] Step 102, assigning corresponding type data to the at least one pixel type, and acquiring an initial data group corresponding to the initial image based on the type data corresponding to the pixel type;
[0079] In the embodiment of the present invention, the initial image of the document to be stamped that obtains the stamping authorization and is placed at the stamping document position includes at least one pixel point, and the pixel points of the initial image include at least one pixel point type.
[0080] In the embodiment of the present invention, corresponding type data may be allocated to the pixel type, and based on the type data corresponding to the pixel type, an initial data group corresponding to the initial image may be acquired.
[0081] In some embodiments of the present invention, the acquiring, based on the type data corresponding to the pixel type, an initial data group corresponding to the initial image includes:
[0082] Determining initial data corresponding to a pixel point in the initial image based on the type data corresponding to the pixel point type;
[0083] The initial data set is constructed using the initial data.
[0084] In the embodiment of the present invention, the printing control device 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 according to the type data corresponding to the pixel type. Then, the initial data is used to construct the initial data group.
[0085] In some embodiments of the present invention, the pixel type includes white pixel points and / or black pixel points; and the assigning corresponding type data to the at least one pixel type includes:
[0086] Corresponding type data is allocated to the white pixel point and / or the black pixel point.
[0087] In the embodiment of the present invention, the pixel type of the pixel of the initial image may include white pixel and / or black pixel. In the embodiment of the present invention, corresponding type data may be allocated to the white pixel and / or black pixel.
[0088] In a specific example, the initial image includes only white pixels and black pixels. The printer controller assigns type data 0 to white pixels and type data 1 to black pixels. If the initial image includes only 6 pixels, the initial data group may be "0, 1, 0, 1, 0, 1".
[0089] Step 103, controlling the seal to move, and when the seal face of the seal moves to the position of the stamped document, collecting the target image at the position of the stamped document;
[0090] In the embodiment of the present invention, the seal control device can control the seal to move in response to the seal instruction for the document to be stamped, so that the seal surface moves to the position of the document to be stamped, and stamps the document to be stamped.
[0091] When the seal moves to the position of the stamped document, the seal control device can use the light emitting device, the converging lens and the image sensor to collect the target image at the position of the stamped document. The method of collecting the target image is similar to the method of collecting the initial image, and the present invention will not be repeated here.
[0092] In some embodiments of the present invention, the seal control device further includes a seal lifting device and a drive motor; the control of the seal to move includes:
[0093] By controlling the driving motor, the seal lifting device is controlled to move the seal.
[0094] In an embodiment of the present invention, the printing control instrument further includes a seal lifting device, a main control circuit board, a drive motor and a power module. The power module is used to supply power for the operation of the printing control instrument, and the main control circuit board may include a control chip, and the control operation of the printing control instrument can be performed by the control chip in the main control circuit board.
[0095] In the embodiment of the present invention, when controlling the movement of the seal, the seal control device can use the main control circuit board to control the driving motor, and manipulate the seal lifting device to move, so that the seal moves, and the seal face moves to the position of the document to be stamped. After the seal face moves to the position of the document to be stamped, the driving motor is controlled to stop running, and the target image is captured by the image sensor.
[0096] Step 104, acquiring a target data group corresponding to the target image based on the type data corresponding to the pixel type;
[0097] In the embodiment of the present invention, the pixel type of the target image at the stamped document position is the same as the pixel type corresponding to the initial image of the document to be stamped. The pixel points of the target image may also include white pixels and / or black pixels.
[0098] In an embodiment of the present invention, the printing control device 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 includes only white pixels and black pixels. The printer controller assigns type data 0 to white pixels and type data 1 to black pixels. If the target image includes only 6 pixels, the target data group may be "1, 1, 1, 1, 0, 1".
[0100] Step 105, by comparing the initial data group and the target data group, determining whether the document to be stamped at the stamped document position has been replaced and / or moved;
[0101] In an embodiment of the present invention, the initial image and the target image can be compared by comparing the initial data group and the target data group to determine whether the file to be stamped at the stamping file position is moved or replaced by other files during the process in which the seal control device controls the seal to move until the seal surface moves to the stamping file position.
[0102] In the embodiment of the present invention, the printing control device can also determine the initial position of the document to be stamped in the initial image according to the initial image, and determine the target position of the document in the target image according to the target image, and determine whether the document has been moved according to the initial position and the target position.
[0103] In some embodiments of the present invention, the step of comparing the initial data set with the target data set to determine whether the document to be stamped at the stamped document position has been replaced and / or moved includes:
[0104] calculating an error between the initial data set and the target data set;
[0105] When the error exceeds a preset error range, it is determined that the document to be stamped is replaced and / or moved.
[0106] In the embodiment of the present invention, the error between the initial data set and the target data set can be calculated. When the error exceeds the preset error range, it can be determined that during the process in which the seal is controlled by the seal control device to move until the seal surface moves to the position of the stamped document, the document to be stamped is replaced and / or moved, and there is a risk that the authorized document to be stamped is replaced by a document without authorization. The preset error range is determined based on a large number of experiments.
[0107] Reference Figure 5 , shows a schematic diagram of comparison between an initial image and a target image provided in an embodiment of the present invention. Figure 5 The first image in the image is the initial image, and the second image is the target image. Both the initial image and the target image include only white pixels and black pixels. The error between the initial data group corresponding to the initial image and the target data group corresponding to the target image can be calculated to achieve the comparison between the initial image and the target image, and determine whether the document to be stamped at the stamping document position is moved or replaced by other files in the process of the seal control instrument controlling the seal to move until the seal surface moves to the stamping document position.
[0108] In the embodiment of the present invention, the absolute error or mean square error between the initial data set and the target data set may be calculated, and the absolute error or mean square error may be used to determine whether the document to be stamped at the stamped document position is moved and / or replaced.
[0109] Step 106, when the document to be stamped is replaced and / or moved, control the printing control device to issue an alarm.
[0110] In an embodiment of the present invention, the printing control device may include a buzzer. When the printing control device determines that the document to be stamped at the stamping document position is replaced and / or moved, and the printing control device determines that the authorized document to be stamped is at risk of being replaced by a document without authorization, the printing control device may control the buzzer to sound an alarm, and record the event that the document to be stamped is replaced and / or moved in a preset event log.
[0111] In an embodiment of the present invention, a preset seal is installed in the seal control device, and the seal face is located inside the seal control device. In response to a seal instruction for a document to be sealed, an initial image of the document to be sealed is collected; the document to be sealed is placed at a preset seal document position; the pixels in the initial image have at least one pixel type; corresponding type data is assigned to at least one pixel type, and based on the type data corresponding to the pixel type, an initial data group corresponding to the initial image is obtained; the seal is controlled to move, and when the seal face moves to the seal document position, a target image at the seal document position is collected; based on the type data corresponding to the pixel 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 document to be sealed at the seal document position is replaced and / or moved; in the case where the document to be sealed is replaced and / or moved, the seal control device is controlled to issue an alarm. By comparing the initial data group and the target data group, it is determined whether the document to be stamped at the stamped document position has been replaced and / or moved, thereby determining whether there is a risk that the authorized document to be stamped at the stamped document position is replaced by an unauthorized document. This realizes the security detection of the seal control device during the use of the seal, so that the authorized personnel know whether the document to be stamped at the stamped document position has been moved or replaced by other files during the process of the seal control device controlling the movement of the seal until the seal surface moves to the stamped document position, thereby improving the security effect of using the seal.
[0112] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0113] Reference Figure 6 , shows a structural block diagram of a seal control device provided in an embodiment of the present invention, which is applied to a seal control instrument, in which a preset seal is installed, and the seal surface of the seal is located inside the seal control instrument, and specifically may include the following modules:
[0114] The 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] A data allocation module 602 is used to allocate corresponding type data to the at least one pixel type, and obtain an initial data group corresponding to the initial image based on the type data corresponding to the pixel type;
[0116] A movement control module 603 is used to control the movement of the seal, and when the seal face of the seal moves to the position of the document to be stamped, collect a target image at the position of the document to be stamped;
[0117] A target data group acquisition module 604 is used to acquire a target data group corresponding to the target image based on the type data corresponding to the pixel point type;
[0118] A judgment module 605 is used to judge whether the document to be stamped at the stamped document position has been replaced and / or moved by comparing the initial data group with the target data group;
[0119] The alarm issuing module 606 is used to control the printing control device 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 judgment module includes:
[0121] an error calculation submodule, 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 is replaced and / or moved when the error exceeds a preset error range.
[0123] In an optional embodiment of the present invention, the printing control instrument further includes an image sensor, a light emitting device and a converging lens; the image acquisition module includes:
[0124] The light emitting submodule is used to control the light emitting device to emit light to 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 convergent light;
[0125] The image acquisition submodule is used to control the image sensor to acquire the initial image using the converged light.
[0126] In an optional embodiment of the present invention, the data allocation module includes:
[0127] An initial data determination submodule, used to determine initial data corresponding to a pixel point in the initial image based on type data corresponding to the pixel point type;
[0128] The initial data group construction submodule is used to construct the initial data group using the initial data.
[0129] In an optional embodiment of the present invention, the pixel type includes white pixel and / or black pixel; the data allocation module includes:
[0130] The allocation submodule is used to allocate corresponding type data to the white pixel point and / or the black pixel point.
[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 driving motor to move the seal.
[0134] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0135] In addition, an embodiment of the present invention further provides 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, used for storing computer programs;
[0137] The processor 701 is used to execute the program stored in the memory 703 to implement 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 collected; the document to be stamped is placed at a preset stamping document position; pixels in the initial image have at least one pixel type;
[0139] assigning corresponding type data to the at least one pixel type, and acquiring an initial data group corresponding to the initial image based on the type data corresponding to the pixel type;
[0140] Controlling the seal to move, and when the seal face of the seal moves to the position of the stamped document, collecting the target image at the position of the stamped document;
[0141] Based on the type data corresponding to the pixel type, obtaining a target data group corresponding to the target image;
[0142] By comparing the initial data group and the target data group, determining whether the document to be stamped at the stamped document position has been replaced and / or moved;
[0143] When the document to be stamped is replaced and / or moved, the printing control device is controlled to issue an alarm.
[0144] In an optional embodiment of the present invention, the step of comparing the initial data set with the target data set to determine whether the document to be stamped at the stamped document position has been replaced and / or moved includes:
[0145] calculating an error between the initial data set and the target data set;
[0146] When the error exceeds a preset error range, it is determined that the document to be stamped is replaced and / or moved.
[0147] 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 collecting of the initial image of the document to be stamped includes:
[0148] Controlling the light emitting device to emit light to 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 convergent light;
[0149] The image sensor is controlled to acquire the initial image using the converged light.
[0150] In an optional embodiment of the present invention, the acquiring the initial data group corresponding to the initial image based on the type data corresponding to the pixel point type includes:
[0151] Determining initial data corresponding to a pixel point in the initial image based on the type data corresponding to the pixel point type;
[0152] The initial data set is constructed using the initial data.
[0153] In an optional embodiment of the present invention, the pixel point type includes white pixel points and / or black pixel points; and the assigning corresponding type data to the at least one pixel point type includes:
[0154] Corresponding type data is allocated to the white pixel point and / or the black pixel point.
[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; the control of the seal to move includes:
[0157] By controlling the driving motor, the seal lifting device is controlled to move the seal.
[0158] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0159] The communication interface is used for communication between the above terminal and other devices.
[0160] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0161] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0162] like Figure 8 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 801 is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes a seal control method described in the above embodiment.
[0163] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the seal control method described in the above embodiment.
[0164] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of 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, the process or function described in the embodiment of the present invention is generated in whole or in part. 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 computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). 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 includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0165] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0166] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0167] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A seal control method, characterized in that: Applied to a printing control instrument, wherein a preset seal is installed in the printing control instrument, and the printing surface of the seal is located inside the printing control instrument, the method comprises: In response to a stamping instruction for a document to be stamped, an initial image of the document to be stamped is collected; the document to be stamped is placed at a preset stamping document position; pixels in the initial image have at least one pixel type; assigning corresponding type data to the at least one pixel type, and acquiring an initial data group corresponding to the initial image based on the type data corresponding to the pixel type; Controlling the seal to move, and when the seal face of the seal moves to the position of the stamped document, collecting the target image at the position of the stamped document; Based on the type data corresponding to the pixel type, obtaining a target data group corresponding to the target image; By comparing the initial data group and the target data group, determining whether the document to be stamped at the stamped document position has been replaced and / or moved; When the document to be stamped is replaced and / or moved, the printing control device is controlled to issue an alarm.
2. The method according to claim 1, characterized in that: The step of comparing the initial data set with the target data set to determine whether the document to be stamped at the stamped document position has been replaced and / or moved comprises: calculating an error between the initial data set and the target data set; When the error exceeds a preset error range, it is determined that the document to be stamped is replaced and / or moved.
3. The method according to claim 1, characterized in that The printing control device also includes an image sensor, a light emitting device and a converging lens; the collecting of the initial image of the document to be stamped includes: Controlling the light emitting device to emit light to 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; The image sensor is controlled to acquire the initial image using the converged light.
4. The method according to claim 1, characterized in that The acquiring, based on the type data corresponding to the pixel type, an initial data group corresponding to the initial image comprises: Determining 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 set is constructed using the initial data.
5. The method according to claim 1, characterized in that: The pixel point types include white pixel points and / or black pixel points; and the assigning corresponding type data to the at least one pixel point type includes: Corresponding type data is allocated to the white pixel point and / or the black pixel point.
6. The method according to claim 3, characterized in that The light is red light.
7. The method according to claim 1, characterized in that The seal control device also includes a seal lifting device and a driving motor; the control of the seal to move includes: The seal is moved by controlling the driving motor and the seal lifting device.
8. A seal control device, characterized in that: Applied to a printing control instrument, wherein a preset seal is installed in the printing control instrument, and the printing surface of the seal is located inside the printing control instrument, and the device comprises: 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; and the pixels in the initial image have at least one pixel type; a data allocation module, configured to allocate corresponding type data to the at least one pixel type, and acquire an initial data group corresponding to the initial image based on the type data corresponding to the pixel type; A moving control module, used for controlling the movement of the seal, and when the seal face of the seal moves to the position of the document to be stamped, collecting a target image at the position of the document to be stamped; A target data group acquisition module, used for acquiring a target data group corresponding to the target image based on the type data corresponding to the pixel point type; A judgment module, used for judging whether the document to be stamped at the stamped document position has been replaced and / or moved by comparing the initial data group with the target data group; The alarm issuing module is used to control the printing control device to issue an alarm when the document to be stamped is replaced and / or moved.
9. An electronic device, characterized in that: It includes 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; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. One or more computer-readable media having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method of any one of claims 1-7.
Citation Information
Patent Citations
Intrusion detection method and system of printing-control instrument and printing-control instrument
CN107323114A
Control method, device and system of automatic stamping machine
CN108177451A
Operation method, system and device based on intelligent seal machine
CN110481177A
Electronic seal generation and verification method and device, electronic equipment and storage medium
CN112508145A
Stamper using method and device of stamper control instrument
CN113997705A
Cited By
Real-time seal use risk interception method of intelligent seal system and intelligent seal system
CN121919852A
Intelligent seal system real-time stamping risk interception method and intelligent seal system
CN121919852B