CN109816635A - Area of trap optimization method and device, storage medium - Google Patents

Area of trap optimization method and device, storage medium Download PDF

Info

Publication number
CN109816635A
CN109816635A CN201811649863.6A CN201811649863A CN109816635A CN 109816635 A CN109816635 A CN 109816635A CN 201811649863 A CN201811649863 A CN 201811649863A CN 109816635 A CN109816635 A CN 109816635A
Authority
CN
China
Prior art keywords
trapping
boundary
region
fracture
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811649863.6A
Other languages
Chinese (zh)
Other versions
CN109816635B (en
Inventor
张琴
郭海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Founder (wuhan) Technology Development Co Ltd
Original Assignee
Founder (wuhan) Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Founder (wuhan) Technology Development Co Ltd filed Critical Founder (wuhan) Technology Development Co Ltd
Priority to CN201811649863.6A priority Critical patent/CN109816635B/en
Publication of CN109816635A publication Critical patent/CN109816635A/en
Application granted granted Critical
Publication of CN109816635B publication Critical patent/CN109816635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The present invention discloses a kind of area of trap optimization method and device, storage medium.Wherein, which comprises analyze picture proof and obtain at least one region in the picture proof;Obtain the trapping boundary in the region between the adjacent color lump of any two;Judge whether the trapping boundary meets trapping condition;After determining that the trapping boundary meets the trapping condition, the trapping direction on the trapping boundary is determined;According to the trapping boundary in region described in the trapping walking direction with the presence or absence of fracture;After judging that there is the trapping boundary being broken there are at least one in the region, the trapping direction on the trapping boundary of fracture is adjusted;Connecting the trapping boundary all in the region is area of trap.The present invention, which is able to solve, optimizes the trapping boundary automatically processed, eliminates fracture or sawtooth because of the generation of trapping boundary.

Description

Area of trap optimization method and device, storage medium
Technical field
The present invention relates to printing technologies, are situated between in particular to a kind of area of trap optimization method and device, storage Matter.
Background technique
In printing process, the case where when polychrome chromatography usually will appear register trouble.
Due to register trouble, it is white just to will appear some tiny leakages in two adjacent color lump boundaries, very unsightly.For It avoids leaking white generation, needs to generate some tiny double exposure regions (area of trap) between different target edges, make one Eye is detectable that these leakages are white, and above-mentioned processing is called trapping.
Trapping, also habit referred to as leak repairing is white in printing industry, also known as scalable, primarily to making up because printing chromatography It is not allowed and causes the leakage between two adjacent different colours white.
When people face printed matter when, always feel it is dark close from human eye, it is light remote from human eye, therefore, to original copy into When row trapping process, always try that the light color under dark color is not allowed to expose, and dark color above remains unchanged.Accordingly even when occurring The offset of little bit, the ink of double exposure can cover the mistake of register trouble, without causing the shape of object to be distorted, from And guarantee not influence visual effect.
When carrying out trapping process to complicated image, there are some trapping sides for significantly affecting visual effect sometimes Boundary.These trapping boundaries are mainly that the trapping on trapping direction numerous trapping boundaries adjacent thereto is contrary, and image is caused to go out Situations such as now fracture or sawtooth.
Summary of the invention
The embodiment of the present invention at least discloses a kind of area of trap optimization method, is able to solve to the trapping boundary automatically processed It optimizes, eliminates fracture or sawtooth because of the generation of trapping boundary.
The described method includes:
It analyzes picture proof and obtains at least one region in the picture proof;
Obtain the trapping boundary in the region between the adjacent color lump of any two;
Judge whether the trapping boundary meets trapping condition;
After determining that the trapping boundary meets the trapping condition, the trapping direction on the trapping boundary is determined;
According to the trapping boundary in region described in the trapping walking direction with the presence or absence of fracture;
After judging that there is the trapping boundary being broken there are at least one in the region, the trapping side of fracture is adjusted The trapping direction on boundary;
Connecting the trapping boundary all in the region is area of trap.
In some embodiments disclosed by the invention, so trapping condition is configured as:
Two adjacent color lumps are primary colors, and two color lumps are irrelevant;Alternatively,
At least one is process color to two adjacent color lumps, and two color lumps do not have common component;Or Person,
Two adjacent color lumps at least one be spot color.
In some embodiments disclosed by the invention, determines the trapping direction on the trapping boundary, is configured as:
According to two adjacent color lumps in the position in the region, the area of trap is determined;Alternatively,
According to the color depth of two adjacent color lumps, the trapping direction is determined.
In some embodiments disclosed by the invention, judge all trapping contour connections for straight line;
According to the trapping boundary in region described in the trapping walking direction with the presence or absence of fracture, it is configured as,
The trapping direction for configuring the trapping boundary to occupy the majority in the region is positive trapping direction;
Determine that trapping direction described in the region is not that the trapping boundary in the positive trapping direction has fracture.
In some embodiments disclosed by the invention, judge all trapping contour connections for camber line;
According to the trapping boundary in region described in the trapping walking direction with the presence or absence of fracture, it is configured as,
The change curve in trapping direction is determined according to the trapping direction on the trapping boundary to occupy the majority in the region;
The deviation for determining any relatively described change curve in trapping direction in the region is more than that the described of threshold value falls into It prints boundary and there is fracture.
In some embodiments disclosed by the invention, the trapping direction on the trapping boundary of fracture is adjusted, is matched preceding It is set to:
Judge whether the trapping boundary of fracture influences the trapping effect in the region;
After the trapping effect in the region described in the trapping edge effect of judgement fracture, the trapping side of fracture is adjusted The trapping direction on boundary.
In some embodiments disclosed by the invention, the trapping effect in region described in the trapping edge effect of fracture, It is configured as:
Obtain the zone length in the region and the total length on all trapping boundaries;
Obtain the first ratio of the zone length and the total length;
Obtain the total length on the trapping boundary of fracture and the second ratio of the total length;
Fracture is judged after judging that first ratio is greater than a second threshold greater than a first threshold and the second ratio The trapping edge effect described in region trapping effect.
The embodiment of the present invention at least discloses a kind of storage medium, and for storing computer instruction, described instruction is by processor The step of method as described above is realized when execution.
The embodiment of the present invention at least discloses a kind of area of trap optimization device;
Described device includes:
Boundary obtains module, is configured as analysis picture proof and obtains at least one region in the picture proof, and obtains Take the trapping boundary in the region between the adjacent color lump of any two;
Direction discernment module is configured as judging whether the trapping boundary meets trapping condition, and described in the determination After trapping boundary meets the trapping condition, the trapping direction on the trapping boundary is determined;
Whether fault recognition module, the trapping boundary for being configured as the region according to the trapping walking direction deposit It is being broken, after judging that there is the trapping boundary being broken there are at least one in the region, is adjusting the trapping side of fracture The trapping direction on boundary;
Link block, being configured as connecting the trapping boundary all in the region is area of trap.
In some embodiments disclosed by the invention, described device includes visual determination module;
The visual determination module is configured as judging the trapping edge effect of fracture in the fault recognition module After the trapping effect in the region, judge whether the trapping boundary of fracture influences the trapping effect in the region;
The fault recognition module is configured as the trapping effect in the region described in the trapping edge effect of judgement fracture After fruit, the trapping direction on the trapping boundary of fracture is adjusted.
For above scheme, the present invention is by being referring to the drawings described in detail disclosed exemplary embodiment, also The other feature and its advantage for making the embodiment of the present invention understand.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the flow chart of method;
Fig. 2 is the schematic diagram of general area of trap;
Fig. 3 is the schematic diagram of area of trap after being optimized by method.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.
The present embodiment discloses a kind of area of trap optimization method.Method through this embodiment can be to shadow in area of trap The trapping boundary for ringing visual effect carries out the adjustment in trapping direction.
In order to realize above content, Fig. 1 and Fig. 2 is please referred to;The method of the present embodiment includes that steps are as follows.
S100, it analyzes picture proof and obtains the region comprising different color blocks (21 to 26) in picture proof.
All color lumps (21 to 26) in S200, scanning area, then obtain the common edge of adjacent color lump (21 to 25 and 26) Boundary, instant trapping boundary.
S300, obtain trapping boundary after, respectively judge whether trapping boundary can satisfy trapping condition.
The present embodiment constitutes two adjacent color lumps (21 to 25 and 26) on trapping boundary with one of following three conditions When, it is considered as trapping boundary and meets trapping condition;Condition is as follows:
Two adjacent color lumps are the primary colors of C, M, Y, K, and two color lump differences.
Two adjacent color lumps at least one be and two colors in C, M, Y, K at least two combined process colors Block does not have common component;For example, a color lump is red (Y+M), another color lump is yellow (Y), then two color lumps are being added When shared yellow (Y) version.
Two adjacent color lumps at least one be spot color.
S400, in two adjacent color lumps (21 to 25 and 26) for constituting trapping boundary, to meet three above-mentioned conditions any When, trapping boundary must carry out trapping process;Then it is determined that trapping direction of the trapping boundary when carrying out trapping process.
In trapping process, the determination in trapping direction is generally determined according to two color lumps in the position in region;It for example is to expand Open up two color lumps underlying color lump in the zone;Either determined according to the color depth of two color lumps;Such as two colors The shallower color lump of the color color lump extension deeper to color in block.
S500, it is determining in region behind the trapping direction on all trapping boundaries, according to the trapping direction on all trapping boundaries It is comprehensive that judge whether to have in region trapping boundary with respect to other trapping boundaries be fracture.
S510, judge after trapping contour connection all in region to be straight line or camber line.
S521, when judging the straight line of all trapping contour connection such as Fig. 2;
It is positive trapping direction according to the identical trapping direction that is in the great majority in region, determines that trapping direction is not just in region The trapping boundary in trapping direction is fracture;Such as color lump 21 and color lump 26, color lump 22 and color lump 26, color lump 24 and color lump 26, color The trapping direction of block 25 and color lump 26 is positive trapping direction, and the trapping direction of color lump 23 and color lump 26 is contrary with positive trapping, Trapping boundary between color lump 23 and color lump 26 is fracture.
S522, when judging all trapping contour connections for the camber line not shown in fig. 1 and fig. 2;
According to the change curve in trappings all in region direction;Determine that trapping direction is with respect to the deviation of change curve in region Trapping boundary more than threshold value is fracture.
For example, sharing 100 continuous and isometric trapping boundaries in region, and the change curve in all trapping directions It is 1/10th circular arcs.The trapping angular separation on so any two trapping boundary should beWhat is be judged When above range is not satisfied in the trapping direction on trapping boundary and the angle in former and later two trapping directions, then the trapping being judged Boundary is fracture.
S600, judge fracture trapping boundary whether the visual effect of influence area trapping.
Judge whether trapping boundary influences visual effect, specifically:
Obtain the zone length L1 in region and the total length L 2 on all trapping boundaries;
Obtain the first ratio K1 of zone length L1 and the total length L 2;
Obtain the total length L 3 on the trapping boundary of fracture and the second ratio K2 of the total length L 2;
Judge the first ratio K1 be greater than 1 and second ratio be greater than 1 after judge fracture trapping boundary The trapping effect of influence area.
S700, judgement fracture trapping edge effect region trapping effect after, adjust the trapping boundary of fracture fall into India side to.
If trapping boundary is straight line, keep the trapping direction on trapping boundary reversed;If trapping boundary is camber line, that The angle in the trapping direction and former and later two trapping directions that make trapping boundary meets
S800, adjustment trapping boundary trapping direction after, in join domain all trapping boundaries be as Fig. 3 trapping Region 31.
The present embodiment discloses a kind of storage medium, realizes for storing computer instruction, when instruction is executed by processor State step.
The present embodiment discloses area of trap optimization device, and described device includes that boundary obtains module, direction discernment module, breaks Split identification module, visual determination module and link block.
Boundary obtains module, is configured as analysis picture proof and obtains at least one region in the picture proof, and obtains Take the trapping boundary in the region between the adjacent color lump of any two.
Direction discernment module is configured as judging whether the trapping boundary meets trapping condition, and described in the determination After trapping boundary meets the trapping condition, the trapping direction on the trapping boundary is determined.
Whether fault recognition module, the trapping boundary for being configured as the region according to the trapping walking direction deposit It is being broken, after judging that there is the trapping boundary being broken there are at least one in the region, is judging the trapping side of fracture After boundary influences the trapping effect in the region, the trapping direction on the trapping boundary of fracture is adjusted.
Visual determination module is configured as judging described in the trapping edge effect of fracture in the fault recognition module After the trapping effect in region, judge whether the trapping boundary of fracture influences the trapping effect in the region.
Link block, being configured as connecting the trapping boundary all in the region is area of trap.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of area of trap optimization method, which is characterized in that
The described method includes:
It analyzes picture proof and obtains at least one region in the picture proof;
Obtain the trapping boundary in the region between the adjacent color lump of any two;
Judge whether the trapping boundary meets trapping condition;
After determining that the trapping boundary meets the trapping condition, the trapping direction on the trapping boundary is determined;
According to the trapping boundary in region described in the trapping walking direction with the presence or absence of fracture;
After judging that there is the trapping boundary being broken there are at least one in the region, the trapping boundary of fracture is adjusted Trapping direction;
Connecting the trapping boundary all in the region is area of trap.
2. area of trap optimization method as described in claim 1, which is characterized in that
So trapping condition is configured as:
Two adjacent color lumps are primary colors, and two color lumps are irrelevant;Alternatively,
At least one is process color to two adjacent color lumps, and two color lumps do not have common component;Alternatively,
Two adjacent color lumps at least one be spot color.
3. area of trap optimization method as described in claim 1, which is characterized in that
The trapping direction for determining the trapping boundary, is configured as:
According to two adjacent color lumps in the position in the region, the area of trap is determined;Alternatively,
According to the color depth of two adjacent color lumps, the trapping direction is determined.
4. area of trap optimization method as described in claim 1, which is characterized in that
Judge all trapping contour connections for straight line;
According to the trapping boundary in region described in the trapping walking direction with the presence or absence of fracture, it is configured as,
The trapping direction for configuring the trapping boundary to occupy the majority in the region is positive trapping direction;
Determine that trapping direction described in the region is not that the trapping boundary in the positive trapping direction has fracture.
5. area of trap optimization method as described in claim 1, which is characterized in that
Judge all trapping contour connections for camber line;
According to the trapping boundary in region described in the trapping walking direction with the presence or absence of fracture, it is configured as,
The change curve in trapping direction is determined according to the trapping direction on the trapping boundary to occupy the majority in the region;
The deviation for determining any relatively described change curve in trapping direction in the region is more than the trapping side of threshold value There is fracture in boundary.
6. area of trap optimization method as described in claim 1, which is characterized in that
The trapping direction for adjusting the trapping boundary of fracture, is configured as preceding:
Judge whether the trapping boundary of fracture influences the trapping effect in the region;
After the trapping effect in the region described in the trapping edge effect of judgement fracture, the trapping boundary of fracture is adjusted Trapping direction.
7. area of trap optimization method as claimed in claim 6, which is characterized in that
The trapping effect in region described in the trapping edge effect of fracture, is configured as:
Obtain the zone length in the region and the total length on all trapping boundaries;
Obtain the first ratio of the zone length and the total length;
Obtain the total length on the trapping boundary of fracture and the second ratio of the total length;
The institute of fracture is judged after judging that first ratio is greater than a second threshold greater than a first threshold and the second ratio State the trapping effect in region described in trapping edge effect.
8. a kind of storage medium, for storing computer instruction, which is characterized in that realized such as when described instruction is executed by processor The step of claim 1-7 any one the method.
9. a kind of area of trap optimizes device, which is characterized in that
Described device includes:
Boundary obtains module, is configured as analysis picture proof and obtains at least one region in the picture proof, and obtains institute State the trapping boundary between the adjacent color lump of any two in region;
Direction discernment module is configured as judging whether the trapping boundary meets trapping condition, and is determining the trapping After boundary meets the trapping condition, the trapping direction on the trapping boundary is determined;
Fault recognition module is configured as the trapping boundary in the region according to the trapping walking direction with the presence or absence of disconnected It splits, after judging that there is the trapping boundary being broken there are at least one in the region, adjusts the trapping boundary of fracture Trapping direction;
Link block, being configured as connecting the trapping boundary all in the region is area of trap.
10. area of trap as claimed in claim 8 optimizes device, which is characterized in that
Described device includes visual determination module;
The visual determination module is configured as judging described in the trapping edge effect of fracture in the fault recognition module After the trapping effect in region, judge whether the trapping boundary of fracture influences the trapping effect in the region;
The fault recognition module is configured as the trapping effect in the region described in the trapping edge effect of judgement fracture Afterwards, the trapping direction on the trapping boundary of fracture is adjusted.
CN201811649863.6A 2018-12-31 2018-12-31 Trap area optimization method and device and storage medium Active CN109816635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811649863.6A CN109816635B (en) 2018-12-31 2018-12-31 Trap area optimization method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811649863.6A CN109816635B (en) 2018-12-31 2018-12-31 Trap area optimization method and device and storage medium

Publications (2)

Publication Number Publication Date
CN109816635A true CN109816635A (en) 2019-05-28
CN109816635B CN109816635B (en) 2023-08-22

Family

ID=66603295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811649863.6A Active CN109816635B (en) 2018-12-31 2018-12-31 Trap area optimization method and device and storage medium

Country Status (1)

Country Link
CN (1) CN109816635B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330602A (en) * 2020-10-15 2021-02-05 方正株式(武汉)科技开发有限公司 Intelligent trapping direction judgment method and device
CN112967250A (en) * 2021-03-03 2021-06-15 方正株式(武汉)科技开发有限公司 Trapping area optimization method and device based on non-adjacent color blocks

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610343A (en) * 2008-06-16 2009-12-23 北京大学 A kind of method and system of automatic trapping
CN102404491A (en) * 2010-09-08 2012-04-04 方正国际软件(北京)有限公司 Trapping method and trapping system including gradient blocks
CN103051828A (en) * 2012-12-26 2013-04-17 方正国际软件有限公司 Method and system for quickly modifying trapping direction
EP3048785A1 (en) * 2015-01-23 2016-07-27 PACKZ Software BVBA Computer-implemented method for evaluating a trap in a polychromatic document image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610343A (en) * 2008-06-16 2009-12-23 北京大学 A kind of method and system of automatic trapping
CN102404491A (en) * 2010-09-08 2012-04-04 方正国际软件(北京)有限公司 Trapping method and trapping system including gradient blocks
CN103051828A (en) * 2012-12-26 2013-04-17 方正国际软件有限公司 Method and system for quickly modifying trapping direction
EP3048785A1 (en) * 2015-01-23 2016-07-27 PACKZ Software BVBA Computer-implemented method for evaluating a trap in a polychromatic document image

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张宏志等: "一种基于边界分析的图像陷印方法", 《中国印刷与包装研究》 *
陈易沅等: "浅谈不同类型的陷印处理方法", 《广东印刷》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330602A (en) * 2020-10-15 2021-02-05 方正株式(武汉)科技开发有限公司 Intelligent trapping direction judgment method and device
CN112330602B (en) * 2020-10-15 2022-09-27 方正株式(武汉)科技开发有限公司 Intelligent trapping direction judgment method and device
CN112967250A (en) * 2021-03-03 2021-06-15 方正株式(武汉)科技开发有限公司 Trapping area optimization method and device based on non-adjacent color blocks
CN112967250B (en) * 2021-03-03 2023-02-28 方正株式(武汉)科技开发有限公司 Trapping area optimization method and device based on non-adjacent color blocks

Also Published As

Publication number Publication date
CN109816635B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
JP6455016B2 (en) Image inspection apparatus, image forming system, and image inspection method
CN103491357B (en) A kind of auto white balance treatment method of image sensor
CA2609526C (en) Vehicle and road sign recognition device
US10250779B2 (en) Image processing apparatus, image processing method, and program
CN109816635A (en) Area of trap optimization method and device, storage medium
JP4750047B2 (en) Misalignment detection apparatus, misalignment detection method, misalignment detection program, and recording medium
US20100166305A1 (en) Method for detecting and correcting chromatic aberration, and apparatus and method for processing image using the same
KR101030369B1 (en) Apparatus and method for classifing image
US20070211176A1 (en) Apparatus and method for adjusting saturation image
WO2020000546A1 (en) Method and apparatus for enhancing image color
CN110390648A (en) A kind of image high-intensity region method distinguished based on unsaturation and saturation bloom
CN107507142A (en) Signal lamp image processing method
CN104917935A (en) Image processing apparatus and image processing method
CN103500457B (en) A kind of method of video image color cast detection
CN103973997A (en) Image processing method and device
WO2001071421A8 (en) Red-eye correction by image processing
CN107864365B (en) Method for eliminating purple border of image
EP1976260A3 (en) Image forming apparatus and control method thereof
CN105678240B (en) It is a kind of to remove reflective image processing method for road
WO2017187842A1 (en) Image projection device, image projection system, and correction method
US20110080616A1 (en) Automatic Red-Eye Object Classification In Digital Photographic Images
Naccari et al. Natural scenes classification for color enhancement
CN101222572B (en) White balance processing equipment
JP2007159071A (en) Projector, video output method, and video output program
CN102375980B (en) Image processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant