Method and device for determining typesetting area based on cartoon translation
A region determination and area technology, applied in the computer field, can solve the problems of time-consuming and labor-intensive manual correction, the expansion of the translation area depends on manual subjective judgment, rough typesetting area determination, etc., to achieve standardized typesetting standards, reduce the influence of subjective factors, and reduce manual participation. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] The present invention provides a typesetting area determination method based on comic translation, such as figure 2 Its flow chart is shown, including:
[0057] Step S1 , preset multiple sets of expansion step values in different directions, and the expansion step values are used to gradually expand the translation area in the horizontal and / or vertical directions.
[0058] In this step, it is necessary to preset a multi-scale step size group extended in the horizontal and vertical directions, that is, scale_anchors=[(a1,b1),(a2,b2),...,(an,bn)] , where a represents the step size of the progressive expansion in the horizontal direction, and b represents the step size of the progressive expansion in the vertical direction. Selecting step size groups of different scales will have different extension effects on the initial translation area, as shown in image 3 As shown in the figure, the solid-line rectangular area in the first bubble diagram is the initial transla...
Embodiment 2
[0075] The embodiment of the present invention also provides a typesetting area determination device based on comic translation, such as Figure 5 shown, including:
[0076] an extension step value setting module, configured to preset multiple sets of extension step values in different directions, the extension step values are used to gradually expand the translation area in the horizontal and / or vertical directions;
[0077] The candidate extension area area calculation module is used to expand the initial translation area to obtain a candidate extension area based on the area progressive extension method and each group of extension step values, and calculate the area of the candidate extension area;
[0078] The target translation typesetting area determination module is used to select the expansion step value with the largest area of the expansion area, and use the candidate expansion area corresponding to the step value as the target translation typesetting area. ...
Embodiment 3
[0089] 1.1 Area progressive expansion method based on the change of the pixel mean value of the background area
[0090] The main steps are as follows:
[0091] 1) The clockwise four points of the rectangular coordinates of the known initial translation area are expressed as box=[(x1, y1), (x2, y1), (x2, y2), (x1, y2)], and (x1, y1) is The horizontal and vertical coordinates of the upper left vertex, and the pixel mean value of the current area is crop_mean, and the expansion stop threshold is set expand_threshold>=0
[0092] 2) Set the horizontal expansion step as a and the vertical expansion step as b, where a and b are both positive integers or 0, and not 0 at the same time
[0093] 3) Select the left boundary of the rectangular area, the corresponding coordinate points of the boundary are [(x1,y1),(x1,y2)], and expand to the left to obtain new coordinates as [(x1-a,y1),(x1-a ,y2)], the new rectangle coordinates are [(x1-a,y1),(x2,y1),(x2,y2),(x1-a,y2)], and the pixel mea...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com