Seal control method, device and system

By providing a user interface for visual simulation in the stamping machine, users can drag and drop the stamp component in the dynamic image area to simulate stamping, which solves the problem of inaccurate stamping position determination in the existing technology and realizes flexible stamping operation and efficient office automation.

CN117763834BActive Publication Date: 2026-08-04AISINO CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
AISINO CORPORATION
Filing Date
2023-12-22
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately determine the stamping location in flexible and complex stamping scenarios, especially in effectively addressing the need for multiple stampings on a single stamp or multiple stampings on multiple stamps.

Method used

By providing a user interface for visual simulation, users can drag and drop the stamp component in the dynamic image area to simulate stamping. The system determines the stamping position based on the dragging operation and drives the hardware device to perform the actual stamping.

Benefits of technology

It enables accurate determination of the stamping position in scenarios involving multiple stamps on a single stamp and multiple stamps on multiple stamps. The user operation is intuitive and WYSIWYG, improving the efficiency of office automation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117763834B_ABST
    Figure CN117763834B_ABST
Patent Text Reader

Abstract

The application discloses a method, device and system for seal control. The method comprises: providing a user interface for seal control, the user interface comprising a seal selection area and a dynamic image area, the seal selection area comprising one or more seal components, each of the seal components corresponding to a physical seal; displaying an image of a document to be sealed in the dynamic image area, the document to be sealed comprising one or more seal areas, each of the seal areas corresponding to a seal; and in response to one or more times of a user's dragging operation on the seal components on the user interface, displaying a seal simulation result of the one or more times of the user's dragging operation on the seal components in the dynamic image area, the seal simulation result comprising any one of the following: adding a seal, moving a seal and deleting a seal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of office automation technology, and more specifically, to a stamping control method, apparatus, and system. Background Technology

[0002] A stamping machine is a device used to affix stamps to various documents and is widely used in the field of office automation.

[0003] In stamping machine operations, determining the center position of the stamp is crucial. Current technology involves pre-setting the center position or automatically obtaining it through template matching, and then driving and controlling the hardware in the stamping machine to perform the stamping.

[0004] Pre-setting the center position of the stamp can only handle scenarios with fixed stamping locations, and requires the stamped document to be placed in the correct pre-defined position. While template matching improves automation to some extent, it can only handle scenarios with pre-defined templates, and the stability and accuracy of image recognition and template matching technologies also affect the accuracy of position acquisition.

[0005] The above solutions are insufficient to handle modern, flexible, and complex stamping business scenarios, such as multiple stamps for one stamp or multiple stamps for multiple stamps. Summary of the Invention

[0006] This application provides a stamping control method that, through flexible and dynamic visual simulation of the stamping process, can meet the requirements for stamping position accuracy in application scenarios involving multiple stamps on a single stamp or multiple stamps on multiple stamps. Furthermore, by controlling the hardware of the stamping machine to stamp paper documents based on the visual simulation, a WYSIWYG (What You See Is What You Get) effect can be achieved.

[0007] Firstly, this application provides a method for controlling the stamping process, the method comprising:

[0008] A user interface for stamping control is provided, the user interface including a stamp selection area and a dynamic image area;

[0009] The image of the document to be stamped is displayed in the dynamic image area;

[0010] In response to a user dragging the stamp component once or multiple times on the user interface, the simulation results of the stamping of the stamp component once or multiple times are displayed on the dynamic image area.

[0011] The document to be stamped includes one or more stamping areas, each corresponding to a stamp. The user interface includes a stamp selection area and a dynamic image area. The stamp selection area includes one or more stamp components, each corresponding to a physical stamp.

[0012] In one possible implementation, the method further includes: controlling one or more physical seals to stamp the document to be stamped based on the results of the one or more stamping simulations. For example, updating a stamping information table based on the results of the one or more stamping simulations, the stamping information table including control information for one or more physical seals, each physical seal's control information including a seal identifier and stamping position information; controlling one or more physical seals to stamp the document based on the stamping information table. The stamping position information may include the proportional position of the stamp center, which includes the proportional value of the stamp center position in the horizontal direction and the proportional value in the vertical direction.

[0013] In another possible approach, the method further includes controlling an image acquisition device to capture and save an image of the document to be stamped.

[0014] In another possible approach, in response to one or more drag-and-drop operations by the user on the user interface on the stamp component, the simulation results of the one or more stamping operations on the stamp component are displayed on the dynamic image area, including:

[0015] In response to the user selecting a target stamp component in the stamp selection area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component.

[0016] In response to the user dropping and grabbing the target stamp component in the dynamic image area, the drag end position is obtained;

[0017] Based on the stamp image data, the drag start position and the drag end position, the simulated stamping position of the target stamp component and the stamping position information of the stamp corresponding to the target stamp component are determined.

[0018] The target stamp component is copied in the dynamic image area according to the simulated stamp position corresponding to the target stamp component.

[0019] In another possible approach, in response to one or more drag-and-drop operations by the user on the user interface on the stamp component, the simulation results of the one or more stamping operations on the stamp component are displayed on the dynamic image area, including:

[0020] In response to the user selecting a target stamp component in the dynamic image area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component.

[0021] In response to the user dropping and grabbing the target stamp component in the dynamic image area, the drag end position is obtained;

[0022] Based on the stamp image data, the drag start position and the drag end position, the simulated stamping position of the target stamp component and the stamping position information of the stamp corresponding to the target stamp component are determined.

[0023] The target stamp component is moved in the dynamic image area according to the simulated stamping position of the target stamp component.

[0024] In another possible approach, in response to one or more drag-and-drop operations by the user on the user interface on the stamp component, the simulation results of the one or more stamping operations on the stamp component are displayed on the dynamic image area, including:

[0025] In response to the user selecting a target stamp component in the dynamic image area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component.

[0026] In response to a user dropping and grabbing the target stamp component outside the dynamic image area, the drag end position is obtained;

[0027] The image of the target stamp to be deleted in the dynamic image area is determined based on the drag start position and the drag end position.

[0028] The method provided in the above embodiments can provide a relatively accurate stamping position by visually simulating the stamping operation, and supports multiple stampings of one stamp and multiple stamps of multiple stamps, which is convenient for users, WYSIWYG, and improves office efficiency.

[0029] Secondly, this application provides a stamping control device, which has the function of implementing the methods in the first aspect and any possible implementation thereof. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions. For example, the device includes a user interface module for providing a user interface for stamping control, the user interface including a stamp selection area and a dynamic image area, the stamp selection area including one or more stamp components, each stamp component corresponding to a physical stamp; an image display module for displaying an image of a document to be stamped in the dynamic image area, the document to be stamped including one or more stamping areas, each stamping area corresponding to a stamp; and a simulation control module for responding to one or more drag-and-drop operations of the user on the user interface to display the stamping simulation results of the one or more drag-and-drop operations of the stamp components in the dynamic image area, the stamping simulation results including any of the following: adding a stamp, moving a stamp, and deleting a stamp.

[0030] Thirdly, this application provides a stamping control device, including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the stamping control device with the chip installed performs the method in the first aspect and any possible implementation thereof.

[0031] In one possible implementation, the stamping control device in the second aspect can be a chip.

[0032] Fourthly, this application provides a stamping control system, including a hardware subsystem and a software subsystem, wherein the software subsystem includes a stamping control device as described in the second aspect and any possible implementation thereof, or a stamping control device as described in the third aspect and any possible implementation thereof.

[0033] Fifthly, this application provides a computer-readable storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0034] Sixthly, this application provides a computer program product comprising: computer program code, which, when run on a computer, causes the computer to perform the methods described in the first aspect and any possible implementation thereof.

[0035] The stamping control method, device, and system provided in this application embodiment can provide relatively accurate stamping positions by visually simulating the stamping operation, and support multiple stampings on one stamp and multiple stampings on multiple stamps, which is convenient for users, WYSIWYG, and improves office efficiency. Attached Figure Description

[0036] Figure 1 This is a schematic diagram of the structure of a stamping control system provided in an embodiment of this application;

[0037] Figure 2 A schematic flowchart of a stamping control method provided in an embodiment of this application;

[0038] Figure 3 A schematic diagram of a user interface provided for an embodiment of this application;

[0039] Figure 4 A schematic flowchart of a stamping control method provided in an embodiment of this application;

[0040] Figure 5 This is a schematic diagram of the structure of a stamping control device provided in one embodiment of this application;

[0041] Figure 6This is a schematic diagram showing the result of a stamping control device provided in one embodiment of this application. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be further described clearly and completely below in conjunction with the embodiments of this application. It should be noted that the described embodiments are merely some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0043] The terms “first,” “second,” “third,” and “fourth” are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, the use of “first,” “second,” “third,” and “fourth” to designate a feature may explicitly or implicitly include one or more of that feature.

[0044] like Figure 1 As shown, a stamping control system 100 is provided, which can provide intelligent stamping services. The stamping control system 100 includes a hardware subsystem 110 and a software subsystem 120.

[0045] The hardware subsystem 110 includes a hardware device 111 and a hardware management unit 112. The hardware device 111 includes at least one or more of the following: a stamping cabinet, a document tray, a stamp, a camera, a power supply, and a robotic arm. The hardware management unit 112 communicates with the software subsystem 120 and controls and manages the hardware device 111, such as through communication handshakes with the software subsystem 120, status queries of the hardware device 111, and controlling the hardware device 111 to open, stamp, and return stamps.

[0046] The software subsystem 120 includes functional modules such as a system initialization unit 121, a drag-and-drop simulation and control unit 122, an image display and retention unit 123, and a hardware control unit 124.

[0047] The system initialization unit 121 is used for automated detection and identification of devices, such as cameras, serial ports of stamping machines, etc.

[0048] The drag-and-drop simulation and control unit 122 is used to provide flexible and dynamic simulation during the stamping process. For example, by dragging and dropping to add, delete, and move the stamping position, the effect of the stamping can be determined on the user interface, which is WYSIWYG.

[0049] The image display and retention unit 123 is used to provide a visual image of the stamping process and to capture and retain the image of the stamped document to achieve the purpose of security and traceability.

[0050] The hardware control unit 124 is used to interact with the hardware through a communication protocol to control the stamping machine's actions or query the device status. The sub-functions involved include: handshake, unpacking, stamping, returning the stamp, and status query.

[0051] It should be noted that the above unit division is only an exemplary division, and the units can be merged and split as needed during implementation.

[0052] The aforementioned stamping control system employs real-time video throughout the entire stamping process, providing flexible and dynamic visual simulation of stamp selection, switching, and position calibration. It accurately determines the stamping position coordinates, thereby driving and controlling the hardware to perform the stamping operation. The system supports multiple stamps on a single stamp, multiple stamps on multiple stamps, stamping area location restrictions, and image capture and retention of stamped documents. It also provides a highly scalable stamping service signaling protocol design method, significantly improving the level of automation in smart offices.

[0053] like Figure 2 As shown, a stamping control method is provided, which can be used for... Figure 1 The stamping control system shown can be deployed, for example, on a software subsystem of the stamping control system, and can be implemented by dragging and dropping the simulation and control unit 122 within the aforementioned software subsystem. This method can perform stamping simulation control in response to user operations on the user interface.

[0054] The method includes:

[0055] Step 210: Provide a user interface for stamp control.

[0056] To facilitate user operation, a user interface for stamping control is provided. For example... Figure 3 The image shows an exemplary user interface (UI). The UI may include a dynamic image area and a stamp selection area. The dynamic image area provides a dynamic image with an aspect ratio consistent with the camera resolution for flexible visualization and simulation. The stamp selection area provides the user with one or more selectable stamp components. Each stamp component corresponds to a physical stamp and can be presented as an image of the stamp for the user to select and drag in a simulated manner. The user can move the stamp component by clicking on it with the mouse on the user interface, or by grabbing it on the touchscreen user interface.

[0057] Step 220: Display the image of the document to be stamped in the dynamic image area.

[0058] The documents to be stamped can typically be some tickets, which may include one or more stamping areas, each of which can be stamped by a stamp. The image of the documents to be stamped can be captured by an image acquisition device in the hardware subsystem 110, such as a camera device. After the drag simulation and control unit 122 interacts with the hardware subsystem 110 through the hardware control unit 124 to acquire the image of the documents to be stamped, it is displayed on the dynamic image area.

[0059] Step 230: In response to one or more drag operations by the user on the user interface, display the stamping simulation results of the one or more times the stamp component is applied on the dynamic image area.

[0060] The stamping simulation result includes any of the following: adding a stamp, moving a stamp, or deleting a stamp.

[0061] Since users can see the image of the document to be stamped and the stamp component in the stamp selection area on the user interface, they can determine the required stamp based on the business type and select the target stamp component for the current drag operation on the user interface. For example, they can select the target stamp component by clicking the mouse, holding down the button and dragging, or they can select and drag it on the touchscreen with their finger or stylus. The QDrag component in Qt can be used to handle drag-related events, combined with a series of drag response events and their handling, mainly including: dragEnterEvent, dragMoveEvent, dropEvent, and mousePressEvent. For example, if the current business requires stamp number 1, the target stamp is stamp number 1, and the user can click the stamp component of stamp number 1 in the stamp selection area with the mouse, holding down the button and dragging. When a user clicks on a target stamp component with a mouse or selects it on a touchscreen, the system can obtain the stamp icon of the clicked target stamp component and the coordinates of the starting position of the drag. When the user releases the selected target stamp component, the system can obtain the coordinates of the ending position of the drag.

[0062] If a user selects a target stamp component in the stamp selection area and drags it to the valid stamping area in the dynamic image area, it can be considered that the user is performing a new stamping operation.

[0063] If a user selects a target stamp component in the dynamic image area and drags it out of the dynamic image area, it can be considered that the user is performing a deletion stamp operation.

[0064] If a user selects a target stamp component in the video area and drags it to another location within the valid stamping area of ​​the video area, this can be considered a move stamp operation. Since the document to be stamped may include multiple valid stamping areas, moving the stamp can be done by dragging it to another location within the current stamping area or by dragging it to another stamping area.

[0065] The stamping operation and its effects can be simulated and displayed on the user interface via drag-and-drop simulation and control unit 122. Each stamp drag-and-drop operation operates on one target stamp component, and multiple stamp drag-and-drop operations can be performed. Each stamp drag-and-drop operation can operate on the same target stamp component or different target stamp components.

[0066] In one possible implementation, drag-and-drop simulation and control unit 122 simulates and demonstrates the new stamping operation. This includes:

[0067] In response to the user selecting a target stamp component in the stamp selection area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component.

[0068] In response to the user dropping and grabbing the target stamp component in the dynamic image area, the drag end position is obtained;

[0069] Based on the stamp image data, the drag start position and the drag end position, the simulated stamping position of the target stamp component and the stamping position information of the stamp corresponding to the target stamp component are determined.

[0070] The target stamp component is copied in the dynamic image area according to the simulated stamp position corresponding to the target stamp component.

[0071] In another possible implementation, drag-and-drop simulation and control unit 122 simulates and demonstrates the moving stamping operation. This includes:

[0072] In response to the user selecting a target stamp component in the dynamic image area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component.

[0073] In response to the user dropping and grabbing the target stamp component in the dynamic image area, the drag end position is obtained;

[0074] Based on the stamp image data, the drag start position and the drag end position, the simulated stamping position of the target stamp component and the stamping position information of the stamp corresponding to the target stamp component are determined.

[0075] The target stamp component is moved in the dynamic image area according to the simulated stamping position of the target stamp component.

[0076] In another possible implementation, drag-and-drop simulation and control unit 122 simulates and demonstrates the stamp deletion operation. This includes:

[0077] In response to the user selecting a target stamp component in the dynamic image area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component.

[0078] In response to a user dropping and grabbing the target stamp component outside the dynamic image area, the drag end position is obtained;

[0079] The image of the target stamp to be deleted in the dynamic image area is determined based on the drag start position and the drag end position.

[0080] In the above implementation, the image data of the stamp component can include the stamp image, its size, pixels, and vertex positions. The vertex positions are used to calculate the position offset of the drag start position. These vertex positions can be the top-left, top-right, bottom-left, or bottom-right corners. For ease of description, the top-left corner is used as an example below; however, it is understood that other vertices can be selected to achieve the same technical effect.

[0081] The following is an exemplary description of how to determine the stamping position information of the stamp corresponding to the target stamp component based on the stamp image data, the drag start position, and the drag end position.

[0082] 1) The center offset of the stamp image can be obtained based on the stamp image data and the drag start position. For example, the drag position offset can be calculated based on the vertex position topOffset and the drag start position Pos of the stamp image. This drag position offset includes horizontal and vertical offsets. The center offset of the stamp image is obtained based on the size of the stamp image and the position offset. For example, the center of the stamp image is generally 1 / 2 the width from the vertex in the horizontal direction and 1 / 2 the height from the vertex in the vertical direction. Therefore, the center offset can be calculated based on the drag position offset and the size of the stamp image.

[0083] The following is a code example for obtaining the center position offset:

[0084]

[0085] 2) After obtaining the drag-end position eventPos, the simulated stamping position of the target stamp component and the stamping position information of the corresponding stamp can be determined based on the center position offset and the drag-end position. The simulated stamping position of the target stamp component can be determined by the center pixel position centerPoint(X,Y) of the target stamp component, where X is the horizontal movement distance in pixels with the upper left corner of the dynamic image area as the origin, and Y is the vertical movement distance in pixels with the upper left corner of the dynamic image area as the origin.

[0086] centerPoint(X,Y)=eventPos–centerOffset

[0087] In one possible implementation provided in this application, to facilitate control over the stamping position of the stamp corresponding to the target stamp component, the stamping position information of the stamp corresponding to the target stamp component may include the stamping center ratio position ratioPoint(ratioX, ratioY), where ratioX is the horizontal ratio of the center pixel position in the dynamic image area, and ratioY is the vertical ratio of the center pixel position in the dynamic image area. For ease of calculation, ratioX and ratioY can be the numerator of the ratio value when calculated as a percentage, and their values ​​range from [0, 100] to real numbers. It is understood that other forms can also be used to represent the ratio value, such as percentage values, or decimals, fractions, etc. This application is not limited thereto.

[0088] The ratioX and ratioY can be obtained in the following ways:

[0089] Assume the width and height pixel values ​​of the dynamic image area are W and H, respectively, and the center position of the target stamp component is centerPoint(X,Y).

[0090] If we take the top-left corner of the moving image area as the origin BasePos(0,0), then:

[0091] ratioX = 100 * X / W;

[0092] ratioY = 100 * Y / H;

[0093] If we take the upper right corner of the moving image area as the origin BasePos(0,0), then:

[0094] ratioX = 100*(W–X) / W;

[0095] ratioY = 100 * Y / H;

[0096] This yields the stamp center ratio point (ratioPoint(ratioX, ratioY)).

[0097] After the hardware subsystem obtains the above-mentioned stamp center ratio position, it can easily calculate the actual stamping position of the physical stamp by combining it with the size of the document to be stamped.

[0098] For example, ratioX = 20 and ratioY = 30 represent the position of the center pixel at 20% horizontally and 30% vertically within the dynamic image area. Assuming the dynamic image area is 10 cm high and 20 cm wide, and taking the top left corner of the dynamic image area as the origin, with centimeters as the unit, the simulated stamp center's proportional position (20, 30) gives the center pixel coordinates as (4, 3). These are just examples and are not intended to be limiting.

[0099] Assuming the actual stamping image area is 15 cm high and 30 cm wide, based on the obtained proportional position (20, 30) of the simulated stamping center, the position (6, 4.5) of the stamping center of the physical seal can be determined by taking the upper left corner of the actual stamping image area as the origin and centimeters as the unit.

[0100] Although the size of the dynamic image area, such as its width and height, may not be consistent with the size of the actual stamping image area, the relative proportions of the width and height of the dynamic image area and the actual stamping image area are consistent. Therefore, by obtaining the proportional position of the simulated stamping center in the horizontal and vertical directions, the proportional position of the actual stamping center in the horizontal and vertical directions can be determined. Combining this with the width and height information of the actual stamping image area, the position of the actual stamping center can be obtained. The advantage of this design is that users can freely zoom the dynamic image area to a suitable size without affecting the change of the actual stamping position, greatly enhancing the user simulation experience.

[0101] Furthermore, the validity of the stamp position can be determined. If the stamp position is within the valid stamping area, the dragged stamp component graphic can be copied or moved to the simulated stamping position in the dynamic image area. If the stamp position is not within the valid stamping area, the user is prompted to perform the operation again.

[0102] The valid area for stamping can be defined within the actual area of ​​the document to be stamped. For example, the actual area of ​​the document tray can be used as the initial area, and a valid stamping area can be defined within this initial area. Stamping is permitted within this area, and stamping is prohibited otherwise. The purpose is to prevent stamping from extending beyond the outer edge of the document tray or too close to the edge of the hardware structure.

[0103] The specific method for determining validity is as follows: The overall valid stamp area can be defined by setting the proportion range of the valid stamp area in both the horizontal and vertical directions. If the center proportion of the stamp is valid in both the horizontal and vertical directions, then the center proportion of the stamp is considered valid. For example, the valid area proportion range in the horizontal direction is [100-validX, validX], and the valid area proportion range in the vertical direction is [100-validY, validY]. If ratioX is greater than validX or less than 100-validX, then the center proportion of the stamp is valid in the horizontal direction; otherwise, the center proportion of the stamp is invalid. Similarly, if ratioY is greater than validY or less than 100-validY, then the center proportion of the stamp is valid in the vertical direction; otherwise, the center proportion of the stamp is invalid. Example code is given below:

[0104]

[0105]

[0106] The above-mentioned stamping control method provides a relatively accurate stamping position through visual simulation of the stamping operation. It also supports multiple stampings on one stamp and multiple stampings on multiple stamps, making it convenient for users to operate. What you see is what you get, which improves office efficiency.

[0107] Optionally, the above method may further include:

[0108] Step 240: Based on the stamping simulation results of the stamping component once or multiple times, control one or more physical stamps to stamp the document to be stamped.

[0109] In response to the user's confirmation of the stamping operation, for example, when the user clicks the confirmation button, the stamping information is encapsulated into a stamping notification signal according to the stamping signaling protocol, and the hardware subsystem is notified to control the hardware device to operate the physical seal for stamping.

[0110] In one possible embodiment, the stamping information can be recorded through a stamping information table. This table may include control information for one or more stamps, such as stamp identifiers and stamp center proportions. In step 220, each time a new stamping operation is performed, a corresponding target stamp identifier and stamp center proportion are added to the stamping information table. Each time a stamping operation is moved, the stamp center proportion of the corresponding target stamp is updated in the stamping information table. Each time a stamping operation is deleted, the control information of the corresponding target stamp is deleted from the stamping information table.

[0111] If the number of control information for the stamp in the stamp information table is 0, the user will be prompted to perform stamp simulation control in the user interface, for example: "The current number of stamps is 0. Please drag the stamp to the effective area of ​​the dynamic image."

[0112] If the number of control information entries for a stamp in the stamp information table exceeds the maximum allowed number of stamps, the user will be prompted to delete the stamps in the user interface. For example, if the maximum allowed number of stamps is set to 10, and the current stamp information table contains control information entries for 12 stamps, the user will be prompted that "Too many stamps in the same batch, cannot exceed 10".

[0113] It should be noted that the above are examples only and are not intended to be limiting.

[0114] If the number of control information entries for the seal in the seal information table is 1, a single seal mode can be used for sealing. The control information of the seal is encapsulated in a seal signaling protocol and sent to the hardware subsystem, thereby controlling the corresponding physical seal to seal the document in the seal area.

[0115] If the number of control information entries for the seals in the seal information table is greater than 1 and does not exceed the maximum allowed number of seals, then the multi-seal mode is used for sealing. The control information entries for multiple seals in the seal information table are encapsulated in the seal signaling protocol and sent to the hardware subsystem, thereby controlling the corresponding multiple physical seals to seal multiple areas of the document to be sealed.

[0116] Step 250: Control the image acquisition device to capture and save the stamping process of the document to be stamped.

[0117] After the physical stamping operation is completed, the image of the stamped document needs to be captured and saved for security and traceability, which is also one of the important bases for software and hardware maintenance. The image file of the stamped document can be saved in JPG format and named in date and time order, for example, 2023-05-25-162804.jpg, and saved to a default specific directory or a user-specified directory.

[0118] The following is an exemplary description of the stamping control process of the entire system. For example... Figure 4 As shown, a stamping control method is provided, which can be used for... Figure 1 The stamping control system shown. The method includes:

[0119] Step 410: System startup initialization.

[0120] After the system starts up, it completes the initialization of the hardware and software subsystems, and can configure the parameters used during system operation, perform self-tests on the devices, and load the corresponding configurations.

[0121] In one possible implementation, system initialization may include the following:

[0122] 1) Configuration loading

[0123] Used to load configuration parameters, which can be configured by the user or loaded with default values ​​by the system, such as:

[0124] Camera parameters

[0125] You can configure the default camera used by the system. For a single-camera device, the default camera will be used after the system starts. For a multi-camera device, the user can specify one of the cameras as the default camera. If the user does not specify one, the system can also select the default camera based on the detected camera information.

[0126] 2) Seal parameters

[0127] The seal parameters can include the number of valid seals and the seal name.

[0128] Based on actual business needs, specify the number of valid stamps N for the stamping machine. N is a natural number and must be less than or equal to the maximum number of stamps supported by the hardware. For example, setting it to 2 will enable stamps number 1 and 2. For ease of use, you can also set stamp names, etc.

[0129] For valid stamps in the stamping machine, a unique stamp identifier can be assigned. The stamp identifier can be automatically numbered by the system or numbered according to the user's specified method.

[0130] 3) Stamp center parameters

[0131] The stamp center parameters can include stamp center offset parameters and stamp center correction parameters, which are used to avoid stamp center position deviations caused by hardware devices. These parameters can be adjusted by the user according to the actual usage of the hardware device.

[0132] It should be noted that the above parameters are just examples, and more parameters can be included in actual use, without being limited by these.

[0133] Device self-test and initialization

[0134] For example, it can detect the names of all current camera devices in the system. If a default camera name exists in the configuration, it can enable that camera and display the dynamic image in the user interface; otherwise, it can use the system's default camera and display the dynamic image in the user interface.

[0135] The stamp selection area can be initialized based on the number of valid stamps and their names configured. For example, if the number of valid stamps is 2, the stamp selection area will display images of the two valid stamps, and the corresponding stamp names can also be displayed in the UI. For easy identification, different stamps in the UI can be labeled with numbers, such as stamp number 1 being stamp number 1, and so on.

[0136] For example, all available communication ports can be detected and port handshakes can be performed. If the handshake is successful, it indicates that the port is the system's stamping port, and all subsequent signaling interactions between system hardware and software will use this port. If all port handshakes fail, the initialization fails.

[0137] 3. Modify the initialization status flag:

[0138] After completing all the above operations, the initialization status flag will be modified to indicate successful initialization; otherwise, it will indicate initialization failure and display an error message. Only after successful initialization can subsequent stamping machine operations be performed.

[0139] Step 420: Obtain the document to be stamped.

[0140] The documents to be stamped are typically a series of tickets, which may include one or more stamping areas, each of which can be stamped with a single stamp. In one possible implementation, the documents can be retrieved from a ticket box. When ready to stamp, the user clicks the pop-up button, triggering the pop-up operation; the software then sends a command to the hardware to eject the ticket box. The user places the ticket document into the ticket tray and closes the box door, ready for simulated stamping.

[0141] Optionally, after successful initialization, the system can automatically trigger the pop-up box operation, allowing users to place tickets and documents, eliminating the need for manual triggering of the pop-up box via a button.

[0142] After obtaining the document to be stamped, an image of the document can be displayed on the user interface for simulating stamping control.

[0143] Step 430: Stamping simulation control.

[0144] Users can select and drag stamps on the UI. For example, a user can choose a stamp corresponding to their business needs from the stamp selection area and drag it to the stamping area of ​​the document image to complete a new stamping operation. Alternatively, a user can select a stamp image from the animated image area and drag it out of the animated image area to complete a stamp deletion operation. Another example is that a user can select a stamp image from the animated image area and adjust its position on the document image to complete a stamp repositioning operation.

[0145] The system responds to the user's drag-and-drop operation, simulating and controlling the stamping process, and displays the stamping effect in a dynamic image area. This allows the user to confirm the stamping effect and then instruct the hardware device of the stamping machine to operate the physical stamp to complete the stamping on the document. Before confirming the stamping, the user can perform multiple stamping operations, selecting different stamps to drag and drop to add, move, or delete stamps, thus easily achieving the effect of stamping one stamp multiple times or multiple stamps multiple times.

[0146] This step can be referenced. Figure 2 The corresponding steps of the stamping control method embodiment shown are not repeated here.

[0147] Step 440: Physical stamping control.

[0148] After the user confirms the stamp, the system detects the stamp information, the software subsystem encapsulates the stamp signaling protocol, and notifies the hardware subsystem to control the hardware device to perform the stamping. See step 230 of the aforementioned embodiment for details.

[0149] Step 450: Stamp image capture and retention.

[0150] After the physical stamping operation is completed, the image of the stamped document needs to be captured and saved for security and traceability, which is also one of the important bases for software and hardware maintenance. The image file of the stamped document can be saved in JPG format and named in date and time order, for example, 2023-05-25-162804.jpg, and saved to a default specific directory or a user-specified directory.

[0151] Step 460: Clear stamp information.

[0152] Prepare for the next stamping simulation control, for example, by clearing the stamp control information in the stamping information table.

[0153] Step 470: Exit with stamped document.

[0154] When the stamping is completed or an error occurs, the user can click the pop-up box button to trigger the pop-up box operation, retrieve the document, and then close the box door.

[0155] Optionally, when the stamping is completed or an error occurs, the system can automatically trigger the pop-up box operation, saving the user the step of triggering the pop-up box through a button.

[0156] After a user finishes stamping a paper document, if they need to start a new paper document stamping process, they can repeat steps 220 to 270 above.

[0157] The aforementioned stamping control method, by employing real-time video throughout the entire stamping process, provides flexible and dynamic visual simulation of stamp selection, stamp switching, and position calibration. This allows for precise determination of the stamping position coordinates, thereby driving and controlling the hardware device to perform the stamping operation. Consequently, it supports multiple stamps on a single stamp, multiple stamps on multiple stamps, stamping area location restrictions, and image capture and retention of stamped documents. Furthermore, it provides a highly scalable stamping service signaling protocol design method, significantly improving the level of automation in smart offices.

[0158] Figure 5 This is a schematic diagram of a stamping control device 500 provided in an embodiment of this application. The stamping control device can be used to execute the above-described method embodiments; see the description in the foregoing method embodiments for details, which will not be repeated here. The stamping control device 500 may include a user interface module 510, an image display module 520, and a simulation control module 530, wherein:

[0159] The user interface module 510 is used to provide a user interface for stamping control, the user interface including a stamp selection area and a dynamic image area, the stamp selection area including one or more stamp components, each stamp component corresponding to a physical stamp;

[0160] The image display module 520 is used to display an image of a document to be stamped in the dynamic image area. The document to be stamped includes one or more stamping areas, and each stamping area corresponds to a stamp.

[0161] The simulation control module 530 is used to respond to one or more drag operations of the stamp component by the user on the user interface and to display the stamping simulation results of the one or more times on the dynamic image area.

[0162] In one possible implementation, a stamping control module 540 may also be included, which controls one or more physical stamps to stamp the document to be stamped based on the results of one or more stamping simulations.

[0163] In one possible implementation, an image retention module 550 may also be included, which controls the image acquisition device to capture and save the image of the document to be stamped.

[0164] The stamping control device provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0165] It should be noted that the aforementioned stamping control device 500 is embodied in the form of a functional module. The term "module" here can be implemented in software and / or hardware, without specific limitations.

[0166] For example, a "module" can be a software program, a hardware circuit, or a combination of both that implements the above functions. The hardware circuit may include an application-specific integrated circuit (ASIC), electronic circuitry, a processor (e.g., a shared processor, a proprietary processor, or a group processor) and memory for executing one or more software or firmware programs, integrated logic circuitry, and / or other suitable components that support the described functions.

[0167] Therefore, the modules of the various examples described in the embodiments of this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0168] Figure 6 This is a schematic diagram of the stamping control device provided in the embodiments of this application. Figure 6 The stamping control device 600 shown includes a memory 610 and a processor 620.

[0169] The memory 610 may be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 610 may store a program. When the program stored in the memory 610 is executed by the processor 620, the processor 620 performs various steps of the stamping control method of this embodiment, for example, executing... Figure 2 The steps shown.

[0170] The processor 620 may be a general-purpose central processing unit (CPU), microprocessor, application-specific integrated circuit (ASIC), graphics processing unit (GPU), or one or more integrated circuits, used to execute relevant programs to implement the stamping control method of the method embodiments of this application.

[0171] The processor 620 can also be an integrated circuit chip with signal processing capabilities. In implementation, each step of the stamping control method of this application can be completed through integrated logic circuits in the processor 620 or through software instructions.

[0172] The processor 620 described above can also be a general-purpose processor, 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, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory 610, and the processor 620 reads the information in memory 610 and, in conjunction with its hardware, completes the implementation of this application. Figure 5 The functions required to be performed by the modules included in the stamping control device shown, or the functions required to perform the methods of this application embodiment. Figure 2 The stamping control method is shown.

[0173] It should be noted that although the above-described device 600 only shows a memory and a processor, those skilled in the art should understand that in specific implementations, device 600 may also include other devices necessary for normal operation. Furthermore, depending on specific needs, those skilled in the art should understand that the above-described device 600 may also include hardware devices for implementing other additional functions. Moreover, those skilled in the art should understand that the above-described device 600 may only include the devices necessary for implementing the embodiments of this application, and may not necessarily include... Figure 3 All the devices shown.

[0174] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0175] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0176] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

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

[0178] In addition, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.

[0179] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0180] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A stamping control method, characterized in that, The method includes: A user interface for stamping control is provided, the user interface including a stamp selection area and a dynamic image area, the stamp selection area including one or more stamp components, each stamp component corresponding to a physical stamp; The dynamic image area displays an image of a document to be stamped, which includes one or more stamping areas, each stamping area corresponding to a stamp. In response to a user's dragging operation on the stamp component once or multiple times on the user interface, the stamping simulation results of the one or more times the stamp component are displayed on the dynamic image area. The stamping simulation results include any of the following: adding a stamp, moving a stamp, and deleting a stamp. The method further includes: updating the stamping information table based on the one or more stamping simulation results, wherein the stamping information table includes control information for one or more physical stamps, and the control information for each physical stamp includes a stamp identifier and stamping position information; and controlling one or more physical stamps to stamp the document according to the stamping information table.

2. The method according to claim 1, further comprising: The image acquisition device is controlled to capture and save the image of the document to be stamped.

3. The method according to claim 1, wherein displaying the stamping simulation results of the one or more drag operations of the stamp component on the dynamic image area in response to one or more drag operations of the user on the user interface includes: In response to the user selecting a target stamp component in the stamp selection area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component. In response to the user dropping and grabbing the target stamp component in the dynamic image area, the drag end position is obtained; Based on the stamp image data, the drag start position and the drag end position determine the position information of the target stamp component. The position information of the target stamp component includes the simulated stamping position and the stamping position information of the stamp corresponding to the target stamp component. The target stamp component is copied in the dynamic image area according to its position information.

4. The method according to claim 1, wherein displaying the stamping simulation results of the one or more drag operations of the stamp component on the dynamic image area in response to one or more drag operations of the user on the user interface includes: In response to the user selecting a target stamp component in the dynamic image area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component. In response to the user dropping and grabbing the target stamp component in the dynamic image area, the drag end position is obtained; Based on the stamp image data, the drag start position and the drag end position determine the position information of the target stamp component. The position information of the target stamp component includes the simulated stamping position and the stamping position information of the stamp corresponding to the target stamp component. The target stamp component is moved in the dynamic image area according to its position information.

5. The method according to claim 1, wherein displaying the stamping simulation results of the one or more drag operations of the stamp component on the dynamic image area in response to one or more drag operations of the user on the user interface includes: In response to the user selecting a target stamp component in the dynamic image area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component. In response to a user dropping and grabbing the target stamp component outside the dynamic image area, the drag end position is obtained; The image of the target stamp to be deleted in the dynamic image area is determined based on the drag start position and the drag end position.

6. The method according to claim 3 or 4, wherein the seal image data includes the seal image, the size of the seal image, the pixels of the seal image, and the vertex position of the seal image; The step of determining the stamping position information of the target stamp based on the stamp image data of the target stamp component, the drag start position, and the drag end position includes: The center position offset of the target stamp component is obtained based on the stamp image data of the target stamp component and the drag start position; The stamping position information is determined based on the end position of the drag and the center position offset of the target stamp component.

7. The method according to claim 6, wherein the simulated stamping position of the target stamp component includes the horizontal and vertical coordinates of the center pixel of the target stamp component in the dynamic image area; The stamping position of the target stamp component includes the proportional information of the stamping center position of the target stamp component relative to the horizontal and vertical directions.

8. A stamping control device, characterized in that, include: A user interface module is used to provide a user interface for stamping control. The user interface includes a stamp selection area and a dynamic image area. The stamp selection area includes one or more stamp components, each of which corresponds to a physical stamp. The image display module is used to display an image of a document to be stamped in the dynamic image area. The document to be stamped includes one or more stamping areas, and each stamping area corresponds to a stamp. The simulation control module is used to respond to one or more drag operations of the user on the user interface on the stamp component, and to display the stamping simulation results of the one or more times on the stamp component on the dynamic image area. The stamping simulation results include any of the following: adding a stamp, moving a stamp, and deleting a stamp. The stamping control module is used to update the stamping information table based on the results of one or more stamping simulations. The stamping information table includes control information for one or more physical stamps. The control information for each physical stamp includes a stamp identifier and stamping position information. The module controls one or more physical stamps to stamp the document according to the stamping information table.

9. The apparatus according to claim 8, further comprising: The image retention module is used to control the image acquisition device to capture and save the image of the document to be stamped.

10. The apparatus according to claim 8, wherein the simulation control module is specifically used for: In response to the user selecting a target stamp component in the stamp selection area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component. In response to the user dropping and grabbing the target stamp component in the dynamic image area, the drag end position is obtained; Based on the stamp image data, the drag start position and the drag end position determine the position information of the target stamp component. The position information of the target stamp component includes the simulated stamping position and the stamping position information of the stamp corresponding to the target stamp component. The target stamp component is copied in the dynamic image area according to its position information.

11. The apparatus according to claim 8, wherein the simulation control module is specifically used for: In response to the user selecting a target stamp component in the dynamic image area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component. In response to the user dropping and grabbing the target stamp component in the dynamic image area, the drag end position is obtained; Based on the stamp image data, the drag start position and the drag end position determine the position information of the target stamp component. The position information of the target stamp component includes the simulated stamping position and the stamping position information of the stamp corresponding to the target stamp component. The target stamp component is moved in the dynamic image area according to its position information.

12. The apparatus according to claim 8, wherein the simulation control module is specifically used for: In response to the user selecting a target stamp component in the dynamic image area, the system obtains the stamp identifier, stamp image data, and drag start position of the target stamp component. In response to a user dropping and grabbing the target stamp component outside the dynamic image area, the drag end position is obtained; The image of the target stamp to be deleted in the dynamic image area is determined based on the drag start position and the drag end position.

13. The apparatus according to claim 10 or 11, wherein the stamp image data includes the stamp image, the size of the stamp image, the pixels of the stamp image, and the vertex positions of the stamp image; The step of determining the stamping position information of the target stamp based on the stamp image data of the target stamp component, the drag start position, and the drag end position includes: The center position offset of the target stamp component is obtained based on the stamp image data of the target stamp component and the drag start position; The stamping position information is determined based on the end position of the drag and the center position offset of the target stamp component.

14. The apparatus of claim 13, wherein the simulated stamping position of the target stamp component includes the horizontal and vertical coordinates of the center pixel of the target stamp component in the dynamic image area; The stamping position of the target stamp component includes the proportional information of the stamping center position of the target stamp component relative to the horizontal and vertical directions.

15. A stamping control device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and executable on the processor; when the processor executes the computer program, it implements the stamping control method as described in any one of claims 1-7.

16. A stamping control system, characterized in that, It includes a hardware subsystem and a software subsystem, wherein the hardware subsystem includes one or more physical seals and an image acquisition device, and the software subsystem includes a stamping control device as described in any one of claims 8 to 15.

17. A computer-readable storage medium, characterized in that, It stores executable instructions that, when executed by a computer, cause the method according to any one of claims 1-7 to be implemented.