Interactive trapping method and system
By analyzing the artwork and capturing the user's mouse drag operation, identifying and combining color block boundaries, interactive trapping is achieved, and white leakage caused by inaccurate overprinting is solved, improving the ease of use and efficiency of trapping, and avoiding manual Verification operation.
Patent Information
- Application Number
- CN202111650373.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2041-12-30
AI Technical Summary
During the multi-color overprinting process, overprinting is inaccurate, resulting in white leakage. The existing trap processing methods have manual dependence on high efficiency and automatic trapping rules, which cannot meet the special needs of users and require manual calibration.
By analyzing the artwork, capturing the user's mouse drag operation, identifying the target color block boundary and trapping direction, and determining whether the adjacent color block boundary has completed trapping. If so, the target color block boundary and adjacent color block boundary are merged and unified Regenerate the trap area to achieve interactive trapping.
It improves the ease of use and efficiency of traps, reduces the experience dependence on workers, avoids manual checksum correction operations, and achieves a more efficient trap effect.
Smart Images

Figure CN114385294B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of printing, and more particularly to an interactive trapping method and system. Background Art
[0002] In the printing process, misregistration often occurs when multi-color overprinting. Overprinting is performed when the corresponding area of the previous color plate is hollowed out (Knockout), so misregistration is prone to occur. Due to misregistration, some small white leaks will appear at the boundary of two adjacent color blocks, which is very unsightly. In order to avoid the occurrence of white leaks, it is necessary to generate some small overprinting areas (trapping areas) between the edges of different objects so that the human eye cannot detect these white leaks. The above process is called trapping.
[0003] The current trapping process is basically divided into two situations: 1. Manual processing; 2. Automatic trapping. Among them:
[0004] 1. Manual processing: It requires high technical experience from workers and requires manual production of each trapping area, which results in low work efficiency.
[0005] 2. Automatic trapping: Use a set of commonly used trapping rules to automatically trap the artwork. Since the rules are relatively rigid, they can handle most situations, but some special places still need manual calibration. For example, the generated trapping area result diagram can be seen in Figure 1 , and the user's expected result may be Figure 5 , so manual calibration is required. Summary of the invention
[0006] The present invention aims at solving the technical problems existing in the prior art and provides an interactive trapping method and system.
[0007] According to a first aspect of the present invention, there is provided an interactive trapping method, comprising:
[0008] Analyze the artwork and obtain all the color blocks and each color block boundary in the artwork;
[0009] Capturing the user's mouse dragging operation, and identifying the target color block boundary and trapping direction from the mouse dragging operation;
[0010] Find the adjacent color block boundary of the target color block boundary, determine whether the adjacent color block boundary has completed trapping, and if so, merge the target color block boundary and the adjacent color block boundary to uniformly regenerate a trapping area;
[0011] Iterates through all the traps in the artwork that need to be processed at the boundaries of the patches.
[0012] Based on the above technical solution, the present invention can also make the following improvements.
[0013] Optionally, capturing the user's mouse dragging operation and identifying the target color block boundary and trapping direction from the mouse dragging operation includes:
[0014] According to the mouse dragging operation of the user, the color block boundary over which the mouse dragging operation slides is identified as the target color block boundary, and the direction from the starting point to the ending point of the mouse dragging operation is the trapping direction.
[0015] Optionally, use the shift, ctrl, and alt shortcut keys to complete the mouse drag operation.
[0016] Optionally, also include:
[0017] The basic trapping parameters are set, wherein the basic trapping parameters at least include a trapping area width, a corner shape, and a port shape.
[0018] Optionally, there are multiple adjacent color block boundaries of the target color block boundary, and the step of finding the adjacent color block boundary of the target color block boundary, determining whether the adjacent color block boundary has completed trapping, and if so, merging the target color block boundary and the adjacent color block boundary to uniformly generate a trapping area includes:
[0019] If the plurality of adjacent color block boundaries of the target color block boundary are all trapped, identifying the adjacent color block boundaries that are in the same horizontal or vertical direction as the target color block boundary;
[0020] The target color block boundary and adjacent color block boundaries in the same horizontal or vertical direction are merged to uniformly regenerate a trapping area.
[0021] Optionally, also include:
[0022] Set marks for the boundaries of the patches where trapping is done;
[0023] Correspondingly, the step of judging whether the adjacent color block boundaries have completed trapping includes:
[0024] Whether trapping is completed is determined according to the marks of the borders of the adjacent color blocks.
[0025] According to a second aspect of the present invention, there is provided an interactive trapping system, comprising:
[0026] An acquisition module is used to analyze the artwork and acquire all the color blocks and each color block boundary in the artwork;
[0027] A recognition module, used for capturing the user's mouse dragging operation, and identifying the target color block boundary and trapping direction from the mouse dragging operation;
[0028] The merging generation module is used to find the adjacent color block boundary of the target color block boundary, determine whether the adjacent color block boundary has completed trapping, and if so, merge the target color block boundary and the adjacent color block boundary to uniformly regenerate the trapping area; traverse the trapping of all color block boundaries that need to be processed in the artwork.
[0029] According to a third aspect of the present invention, an electronic device is provided, comprising a memory and a processor, wherein the processor is configured to implement the steps of the interactive trapping method when executing a computer management program stored in the memory.
[0030] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium on which a computer management program is stored. When the computer management program is executed by a processor, the steps of the interactive trapping method are implemented.
[0031] The present invention provides an interactive trapping method and system. When generating a trapping area for a color block boundary, it checks whether the adjacent color block boundary participates in the trapping. If so, the target color block boundary and the adjacent color block boundary are merged to uniformly regenerate the trapping area. Compared with the traditional manual trapping scheme, it is easier to use and more efficient, and has a lower reliance on the experience of workers, and is very easy to use. Compared with the traditional automatic trapping scheme, there is no need for manual verification and correction operations, because each step of the interactive trapping represents the subjective intention of the operator, and it is very efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a schematic diagram of the traditional automatic trapping results;
[0033] Figure 2 A flow chart of an interactive trapping method provided by the present invention;
[0034] Figure 3 .It is a schematic diagram after the original artwork is analyzed;
[0035] Figure 4 A schematic diagram of interactive trapping results according to an embodiment of the present invention;
[0036] Figure 5 This is a schematic diagram of dragging the mouse to operate the color block boundary 2;
[0037] Figure 6 Schematic diagram of the trapping area generated for color block boundary 2;
[0038] Figure 7 Schematic diagram of mouse dragging to operate color block boundary 4;
[0039] Figure 8 An overall flow chart of an interactive trapping method provided by an embodiment of the present invention;
[0040] Fig. 9A schematic diagram of the structure of an interactive trapping system provided by an embodiment of the present invention;
[0041] Fig.10 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention;
[0042] Fig.11 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0043] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0044] Embodiment 1
[0045] An interactive trapping method, see Figure 2 , the interactive trapping method mainly includes the following steps:
[0046] S1, analyzing the artwork, obtaining all the color blocks and each color block boundary in the artwork;
[0047] Specifically, for the original artwork, interactive trapping data analysis is first performed, mainly analyzing the artwork to obtain all the color blocks and color block boundaries in the artwork. The subsequent operation object is the color block boundary. All boundary states are set to the initial state, such as Figure 3 The color blocks A, B, C and the color block boundaries 1, 2, 3, 4, 5, 6 described in FIG.
[0048] S2, capturing the user's mouse dragging operation, and identifying the target color block boundary and trapping direction from the mouse dragging operation.
[0049] As an embodiment, the method of capturing the user's mouse dragging operation and identifying the target color block boundary and the trapping direction from the mouse dragging operation includes: based on the user's mouse dragging operation, identifying the color block boundary over which the mouse dragging operation slides as the target color block boundary, and the direction from the starting point to the ending point of the mouse dragging operation as the trapping direction.
[0050] Before generating a trapping area for a color block, you need to set basic trapping parameters, such as trapping width, corner shape, port shape, etc. Based on the basic trapping parameters, a trapping area of the corresponding shape can be generated.
[0051] If it is automatic trapping, the trapping direction determined by the rules may result in the following trapping results: Figure 1 As shown, the ideal trapping result that users want is as follows Figure 4 As shown, the automatic trapping requires an additional step of manual verification and modification.
[0052] The present invention sets basic trapping parameters. Unlike the automatic trapping solution, these basic trapping parameters can also be modified in the middle of generating interactive trapping to meet the real intention of the user.
[0053] If you need to trap a certain color block boundary, you can first determine a target color block boundary and the desired trapping direction. Then use the mouse to drag a line on both sides of the color block boundary. The starting point of the line indicates the starting direction of the trap, and the end point of the line indicates the ending direction of the trap. Figure 5 shown.
[0054] It should be noted that mouse dragging is the most basic operation. In combination with the shift, ctrl, alt and other keys, multiple selections, color blocks to the surroundings, surroundings to the color blocks and other quick operations can be completed. As long as the boundaries of the color blocks to be processed and the direction of the color block boundaries can be determined, the user's mouse dragging operation can indicate the boundaries of the color blocks to be processed and the direction of the trapping.
[0055] The system kernel finds the color block boundary that needs to be trapped and the trapping direction of the boundary according to the user's mouse drag operation, that is, Figure 5 The color block boundary 2 in the figure has a trapping direction of A to B.
[0056] S3, find the adjacent color block boundary of the target color block boundary, determine whether the adjacent color block boundary has completed trapping, and if so, merge the target color block boundary and the adjacent color block boundary to uniformly regenerate the trapping area; traverse the trapping of all color block boundaries that need to be processed in the artwork.
[0057] As an embodiment, there are multiple adjacent color block boundaries of the target color block boundary, and the adjacent color block boundaries of the target color block boundary are found, and it is determined whether the adjacent color block boundaries have completed trapping. If so, the target color block boundary and the adjacent color block boundaries are merged to uniformly generate a trapping area, including: if multiple adjacent color block boundaries of the target color block boundary have completed trapping, the adjacent color block boundaries belonging to the same horizontal or vertical direction as the target color block boundary are identified; and the target color block boundary and the adjacent color block boundaries belonging to the same horizontal or vertical direction are merged to uniformly regenerate the trapping area.
[0058] Specifically, the above step S2 identifies the color block boundary and trapping direction to be processed from the user's mouse dragging operation. When trapping the color block boundary, this step finds the adjacent color block boundary of the color block boundary. If the adjacent color block boundary has participated in trapping, it should be combined and considered together, and its corresponding trapping area needs to be regenerated. Figure 5 As shown, at this time, the adjacent color block boundaries 4 or 3 of the color block boundary 2 have not yet participated in the trapping, so they do not need to be considered. Only the trapping area is generated for the color block boundary 2, and the state of the boundary 2 is changed to the state of completing the trapping, such as Figure 6 shown.
[0059] If there are still color block boundaries that need to be processed, repeat the above steps to generate the corresponding trapping area. It should be noted that after the trapping area is generated for color block boundary 2, the color block boundary 4 is trapped, and the trapping direction is A to C as expected by the user. Therefore, if the mouse is operated again, Figure 7 shown.
[0060] At this time, the system kernel finds the target color block boundary 4, and discovers that the adjacent color block boundary 2 of color block boundary 4 is in a trapped state. Therefore, color block boundary 4 and color block boundary 2 should be considered together, and the trapping area associated with color block boundary 2 should be recalculated.
[0061] It should be noted that the adjacent boundaries of color block boundary 4 are boundaries 2, 3, and 5. Therefore, when selecting to merge and uniformly regenerate the adjacent boundaries of the trapping area, the adjacent color block boundaries that belong to the same horizontal or vertical direction as the target color block boundary are identified; the target color block boundary and the adjacent color block boundaries that belong to the same horizontal or vertical direction are merged and uniformly regenerated into the trapping area. Figure 7 In the figure, border 2 and border 4 are borders in the same horizontal direction. Therefore, border 4 and border 2 are combined to regenerate the trapping area. The effect diagram of the trapping area is as follows: Figure 4 shown.
[0062] Wherein, a mark is set for the color block boundary that has completed trapping, and when judging whether the adjacent color block boundary has completed trapping, it can be judged whether it has completed trapping according to the mark of the adjacent color block boundary.
[0063] Embodiment 2
[0064] An interactive trapping method, see Figure 8 The interactive trapping method includes: first, analyzing the original artwork to obtain all the color blocks and all the color block boundaries in the artwork; setting basic trapping parameters; the user drags the mouse to find the target color block boundary and drag a line on both sides of the color block boundary according to the user's intention. The starting point of the line is the trapping From and the end point of the line is the trapping To. The trapping direction can be represented according to the starting point and the end point of the line.
[0065] The system kernel identifies the color block boundary and trapping direction that need to be trapped according to the user's mouse drag operation. When trapping the target color block, determine whether the adjacent color block boundary of the target color block boundary has participated in the trapping. If so, the target color block boundary and the adjacent color block boundary are merged to regenerate the trapping area, and the adjacent color block boundary needs to be trapped again. Mark the color block boundary that has generated the trapping area, traverse all the color block boundaries that need to be trapped in the artwork, and generate the artwork trap.
[0066] Embodiment 3
[0067] An interactive trapping system, see Fig. 9 The interactive trapping system includes an acquisition module 101, a recognition module 102 and a merge generation module 103.
[0068] Among them, the acquisition module 101 is used to analyze the artwork, obtain all the color blocks and each color block boundary in the artwork; the identification module 102 is used to capture the user's mouse dragging operation, and identify the target color block boundary and the trapping direction from the mouse dragging operation; the merge generation module 103 is used to find the adjacent color block boundary of the target color block boundary, and determine whether the adjacent color block boundary has completed the trapping. If so, the target color block boundary and the adjacent color block boundary are merged to uniformly regenerate the trapping area; traverse the trapping of all color block boundaries that need to be processed in the artwork.
[0069] It can be understood that the interactive trapping system provided by the present invention corresponds to the interactive trapping methods provided by the aforementioned embodiments. The relevant technical features of the interactive trapping system can refer to the relevant technical features of the interactive trapping method, which will not be repeated here.
[0070] Embodiment 4
[0071] See also Fig.10 , Fig.10 Schematic diagram of an electronic device provided by an embodiment of the present invention. Fig.10 As shown, an embodiment of the present invention provides an electronic device 1000, including a memory 1010, a processor 1020, and a computer program 1011 stored in the memory 1010 and executable on the processor 1020. When the processor 1020 executes the computer program 1011, the interactive trapping method of the first or second embodiment is implemented.
[0072] Embodiment 5
[0073] See also Fig.11 , Fig.11 Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Fig.11 As shown, this embodiment provides a computer-readable storage medium 1100 on which a computer program 1111 is stored. When the computer program 1111 is executed by a processor, the interactive trapping method of the first or second embodiment is implemented.
[0074] An interactive trapping method and system provided by an embodiment of the present invention, when generating a trapping area for a color block boundary, checks whether its adjacent color block boundary participates in trapping. If so, the target color block boundary and the adjacent color block boundary are merged to uniformly regenerate the trapping area. Compared with traditional trapping schemes, it is easier to use, the connection between the trapping areas is also very good, and the efficiency is very high.
[0075] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0076] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0077] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0078] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0080] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0081] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An interactive trapping method, characterized in that: include: Analyze the artwork and obtain all the color blocks and each color block boundary in the artwork; Capturing the user's mouse dragging operation, and identifying the target color block boundary and trapping direction from the mouse dragging operation; Find the adjacent color block boundary of the target color block boundary, determine whether the adjacent color block boundary has completed trapping, and if so, merge the target color block boundary and the adjacent color block boundary to uniformly regenerate a trapping area; Traverse all the traps of the color block boundaries that need to be processed in the artwork; There are multiple adjacent color block boundaries of the target color block boundary, and the adjacent color block boundaries of the target color block boundary are found, and it is determined whether the adjacent color block boundaries have completed trapping. If so, the target color block boundary and the adjacent color block boundary are merged to uniformly generate a trapping area, including: If the plurality of adjacent color block boundaries of the target color block boundary are all trapped, identifying the adjacent color block boundaries that are in the same horizontal or vertical direction as the target color block boundary; The target color block boundary and adjacent color block boundaries in the same horizontal or vertical direction are merged to uniformly regenerate a trapping area.
2. The interactive trapping method according to claim 1, characterized in that: The capturing of the user's mouse dragging operation and identifying the target color block boundary and the trapping direction from the mouse dragging operation include: According to the mouse dragging operation of the user, the color block boundary over which the mouse dragging operation slides is identified as the target color block boundary, and the direction from the starting point to the ending point of the mouse dragging operation is the trapping direction.
3. The interactive trapping method according to claim 2, characterized in that: Complete the mouse drag operation by combining the shift, ctrl, and alt shortcut keys.
4. The interactive trapping method according to claim 1 or 2, characterized in that: Also includes: The basic trapping parameters are set, wherein the basic trapping parameters at least include a trapping area width, a corner shape, and a port shape.
5. The interactive trapping method according to claim 1, characterized in that: Also includes: Set marks for the boundaries of the color patches where trapping is done; Correspondingly, the step of judging whether the adjacent color block boundaries have completed trapping includes: Whether trapping is completed is determined according to the marks of the borders of the adjacent color blocks.
6. An interactive trapping system, characterized in that: include: An acquisition module is used to analyze the artwork and acquire all the color blocks and each color block boundary in the artwork; A recognition module, used for capturing the user's mouse dragging operation, and identifying the target color block boundary and trapping direction from the mouse dragging operation; A merging and generating module is used to find the adjacent color block boundary of the target color block boundary, determine whether the adjacent color block boundary has completed trapping, and if so, merge the target color block boundary and the adjacent color block boundary to uniformly regenerate the trapping area; traverse the trapping of all color block boundaries that need to be processed in the artwork; There are multiple adjacent color block boundaries of the target color block boundary, and the adjacent color block boundaries of the target color block boundary are found, and it is determined whether the adjacent color block boundaries have completed trapping. If so, the target color block boundary and the adjacent color block boundary are merged to uniformly generate a trapping area, including: If the plurality of adjacent color block boundaries of the target color block boundary are all trapped, identifying the adjacent color block boundaries that are in the same horizontal or vertical direction as the target color block boundary; The target color block boundary and adjacent color block boundaries in the same horizontal or vertical direction are merged to uniformly regenerate a trapping area.
7. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the processor is used to implement the steps of the interactive trapping method according to any one of claims 1 to 5 when executing a computer management program stored in the memory.
8. A computer-readable storage medium, characterized in that: A computer management program is stored thereon, and when the computer management program is executed by a processor, the steps of the interactive trapping method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Pretreatment method before trapping and system thereof
CN101771799A
Generating method and generating system of trapping areas
CN102404490A
Trapped area optimization method and device and storage medium
CN109816635A
Trapping area optimization processing method and device
CN111277723A
Trap area optimization method and device based on non-adjacent color blocks
CN112967250A
