[go: up one dir, main page]

CN108399288B - Device for automatically adding decorative elements in planar design - Google Patents

Device for automatically adding decorative elements in planar design Download PDF

Info

Publication number
CN108399288B
CN108399288B CN201810123191.9A CN201810123191A CN108399288B CN 108399288 B CN108399288 B CN 108399288B CN 201810123191 A CN201810123191 A CN 201810123191A CN 108399288 B CN108399288 B CN 108399288B
Authority
CN
China
Prior art keywords
decorative
elements
region
decoration
character
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.)
Active
Application number
CN201810123191.9A
Other languages
Chinese (zh)
Other versions
CN108399288A (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.)
Li Ronglu
Original Assignee
Li Ronglu
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 Li Ronglu filed Critical Li Ronglu
Priority to CN201810123191.9A priority Critical patent/CN108399288B/en
Publication of CN108399288A publication Critical patent/CN108399288A/en
Application granted granted Critical
Publication of CN108399288B publication Critical patent/CN108399288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the technical field of graphic and text planar design, and provides a device for automatically adding decorative elements in planar design, which can automatically provide decorative element design for a user to select according to graphic and text layout of the planar design and effectively improve the planar design efficiency, and comprises a graphic and text layout analysis module, a decorative element library and a decorative element matching module; the image-text layout analysis module is used for carrying out image-text layout analysis on the planar design product provided by the user to obtain image-text layout data of the planar design product; the decoration element library is formed by the existing decoration element components; and the decorative element matching module calls the decorative elements matched with the planar design product from a decorative element library according to the image-text layout data acquired by the image-text layout analysis module.

Description

Device for automatically adding decorative elements in planar design
Technical Field
The invention relates to the technical field of graphic and text planar design, in particular to a device for automatically adding decorative elements in planar design.
Background
With the development of the advertising industry, people have more and more demands on the flat design. Despite the advent of many computer aided design tools (e.g., Photoshop, SketchUp, Illustrator, etc.), poster design is greatly facilitated, increasing the efficiency of the design. However, it is still difficult for most people without theoretical and fundamental aesthetic knowledge of floor planning to do a professional floor planning. Among them, the decorative elements are particularly important for enhancing the aesthetic appearance of the flat design. Under the condition that the graphic layout of the planar design is finished, how to select a proper area and add a proper decorative element determines the aesthetic property of the design to a great extent. In the prior art, for a planar design product with complete image-text layout, a user usually selects, compares, selects and adds a large number of decorative elements repeatedly according to the subjective judgment basis of the planar design product, so that the operation is complex and the planar design efficiency is low.
Disclosure of Invention
Therefore, in order to solve the above problems, the present invention provides a device for automatically adding decorative elements in a planar design, which can automatically provide a decorative element design for a user to select according to the graphic layout of the planar design, thereby effectively improving the planar design efficiency.
In order to realize the technical problem, the solution scheme adopted by the invention is as follows: a device for automatically adding decorative elements in a planar design comprises an image-text layout analysis module, a decorative element library and a decorative element matching module;
the image-text layout analysis module is used for carrying out image-text layout analysis on a planar design product provided by a user to acquire image-text layout data of the planar design product, and the image-text layout data comprises: identifying each character area in a planar design product, analyzing keywords of character contents and giving weights to the keywords, analyzing the weights of the keywords to obtain the character areas with information importance, and simultaneously obtaining the aspect ratio data of the character areas; identifying and acquiring aspect ratio data of a background image in a planar design product; identifying and obtaining a salient region in a background image of the planar design product, and obtaining the aspect ratio data of the salient region;
the decoration element library is formed by the existing decoration element components;
the decoration element matching module comprises the steps of matching and adding decoration elements of the background picture and matching and adding decoration elements of the character area;
the decoration element matching addition to the background picture is as follows: calculating the width-height ratio data of each decorative element in the decorative element library one by one, carrying out approximation calculation on the width-height ratio data of each decorative element and the width-height ratio data of a significant region in a planar design product, filtering out n decorative elements with the highest width-height ratio approximation, calculating the overlapping area of the decorative elements, the significant region and a character region when the n decorative elements are applied to the significant region of a background picture one by one, filtering out m decorative elements with the smallest overlapping area, and automatically randomly selecting one significant region from the m decorative elements, wherein the hierarchy of the significant region is positioned above the background picture and below the character region;
the matching addition of the decorative elements to the text area is as follows: calculating the width-height ratio data of each decorative element in the decorative element library one by one, carrying out approximation calculation on the width-height ratio data of each decorative element and the width-height ratio data of a character region with information importance in a planar design product, filtering out N decorative elements with the highest width-height ratio approximation, then calculating the overlapping area of the decorative elements and a significant region and a character region of a background picture when the N decorative elements are applied to the character region with the information importance one by one, filtering out M decorative elements with the smallest overlapping area, and automatically randomly selecting one from the M decorative elements to apply to the character region with the information importance, wherein the hierarchy of the M decorative elements is positioned above the background picture and below the character region.
Further, the decoration element library can be expanded by adding new decoration elements through manual operation, or the decoration element library can be automatically updated and added by a web crawler so as to realize automatic expansion of the decoration element library.
Further, when a decoration element of the background map is matched and added, the approximation degree of the aspect ratio data of the decoration element and the salient region of the background map is calculated as:
Figure 950573DEST_PATH_IMAGE002
wherein, the definition.w refers to the width of the decoration element, the definition.h refers to the height of the decoration element, the canvas.w refers to the width of the background picture, and the canvas.h refers to the height of the background picture;
when the decoration elements in the character area are matched and added, the similarity of the aspect ratio data of the decoration elements and the character area is calculated as follows:
Figure 930030DEST_PATH_IMAGE004
wherein, the definition.w refers to the width of the decorative element, the definition.h refers to the height of the decorative element, the t.region.w refers to the width of the character area with information importance, and the t.region.h refers to the height of the character area with information importance;
the overlapping area of the decoration element and the salient region and the character region of the background image is calculated as follows:
Figure 772085DEST_PATH_IMAGE006
where o. pixel refers to the pixel of the overlapping portion and k refers to the total number of pixels of the overlapping portion.
By adopting the technical scheme, the invention has the beneficial effects that: according to the device for automatically adding the decorative elements in the planar design, the user can automatically provide the decorative element design for the user only by inputting one planar design product for completing the image-text layout, the automatic auxiliary design is realized, the operation is simple, the planar design efficiency is effectively improved, and the practicability is high. By collecting a large number of decorative elements in picture formats and continuously expanding the decorative elements in the decorative element library, the device can find better decorative elements for users. And continuously optimizing the design of the decorative elements recommended for the user in a data-driven mode. The device can be integrated into a common computer aided plane design tool (such as Photoshop, SketchUp, Illustrator and the like), so that the design of decorative elements in the plane design is simplified, and the efficiency of the plane design is improved.
Drawings
FIG. 1 is a block diagram of the structural principles of an embodiment of the present invention.
Detailed Description
The invention will now be further described with reference to the accompanying drawings and specific embodiments.
Referring to fig. 1, an embodiment of the present invention discloses an apparatus for automatically adding decoration elements in a planar design, including an image-text layout analysis module, a decoration element library, and a decoration element matching module.
The image-text layout analysis module is used for carrying out image-text layout analysis on a planar design product provided by a user to acquire image-text layout data of the planar design product, and the image-text layout data comprises:
identifying each character area in a planar design product by combining an optical character identification technology and a natural language processing technology, analyzing keywords of character contents and giving weights to the keywords, analyzing the weights of the keywords to obtain the character areas with information importance, and simultaneously obtaining the aspect ratio data of the character areas;
identifying and acquiring aspect ratio data of a background image in a planar design product;
identifying and obtaining a salient region in a background image of the planar design product through an image saliency detection technology, and obtaining the aspect ratio data of the salient region.
The decoration element library is formed by the existing decoration element components; the decoration element library can be expanded by adding new decoration elements through manual operation, or the decoration element library can be automatically updated and added through a web crawler so as to realize automatic expansion of the decoration element library.
The decoration element matching module comprises the steps of matching and adding decoration elements of the background picture and matching and adding decoration elements of the character area;
the decoration element matching addition to the background picture is as follows: calculating the width-height ratio data of each decorative element in the decorative element library one by one, carrying out approximation calculation on the width-height ratio data of each decorative element and the width-height ratio data of a significant region in a planar design product, filtering out n decorative elements with the highest width-height ratio approximation, calculating the overlapping area of the decorative elements, the significant region and a character region when the n decorative elements are applied to the significant region of a background picture one by one, filtering out m decorative elements with the smallest overlapping area, and automatically randomly selecting one significant region from the m decorative elements, wherein the hierarchy of the significant region is positioned above the background picture and below the character region;
wherein, the similarity of the aspect ratio data of the decoration elements and the salient region of the background image is calculated as:
Figure 167294DEST_PATH_IMAGE002
coverage.w refers to the width of the decoration element, coverage.h refers to the height of the decoration element, coverage.w refers to the width of the background map, and coverage.h refers to the height of the background map;
the overlapping area of the decoration element and the salient region and the character region of the background image is calculated as follows:
Figure 43983DEST_PATH_IMAGE006
where o. pixel refers to the pixel of the overlapping portion, k refers to the total number of pixels of the overlapping portion; and o, directly analyzing and calculating the overlapped part by the decoration element matching module to obtain pixel and k.
For example, the calculation of pixel may be:
representing the planar design product as a matrix of pixels, wherein X is the total number of pixels of the width of the planar design product, Y is the total number of pixels of the height of the planar design product, ai.jPixels representing the ith row and the jth column;
obtaining a matrix s.matrix of the salient region of the background image according to the image-text layout analysis module, if ai.jThe pixel of (b) belongs to the salient region of the background image, then ai.j=1, otherwise ai.j=0
Obtaining a matrix t.matrix of the character area according to the image-text layout analysis module, and if the pixel at ai.j belongs to the character area, ai.j=1, otherwise ai.j=0
Obtaining a matrix d.matrix of the decoration elements according to the practical application positions of the decoration elements, and if the pixels at ai.j belong to the decoration elements, a.ji.j=1, otherwise ai.j=0
Adding s.matrix and t.matrix to obtain st.matrix if ai,j>1, then order ai.j=1;
And adding the st.matrix and the d.matrix to obtain the std.matrix, and if ai and j are greater than 1, determining that the pixel of the ith row and the jth column is o.pixel.
k is calculated as:
let the limited set consisting of o.pixel be denoted O, then k = card (O).
The matching addition of the decorative elements to the text area is as follows: calculating the aspect ratio data of each decorative element in the decorative element library one by one, carrying out approximation calculation on the aspect ratio data of each decorative element and the aspect ratio data of a character region with information importance in a planar design product, filtering out N decorative elements with the highest aspect ratio approximation, then calculating the overlapping area of the decorative elements and a significant region and a character region of a background picture when the N decorative elements are applied to the character region with information importance one by one, filtering out M decorative elements with the smallest overlapping area, and automatically randomly selecting one of the M decorative elements to be applied to the character region with information importance, wherein the hierarchy of the M decorative elements is positioned above the background picture and below the character region;
wherein, the similarity of the aspect ratio data of the decorative elements and the character areas is calculated as follows:
Figure DEST_PATH_IMAGE007
wherein, the definition.w refers to the width of the decorative element, the definition.h refers to the height of the decorative element, the t.region.w refers to the width of the character area with information importance, and the t.region.h refers to the height of the character area with information importance;
the overlapping area of the decoration element and the salient region and the character region of the background image is calculated as follows:
Figure 492544DEST_PATH_IMAGE006
where o. pixel refers to the pixel of the overlapping portion and k refers to the total number of pixels of the overlapping portion.
In conclusion, the device for automatically adding the decorative elements in the planar design can automatically provide the decorative element design for a user to select according to the graphic layout of the planar design, so that the planar design efficiency is effectively improved, and the practicability is high.
The above description is only an embodiment utilizing the technical content of the present disclosure, and any modification and variation made by those skilled in the art can be covered by the claims of the present disclosure, and not limited to the embodiments disclosed.

Claims (3)

1. An apparatus for automatically adding decorative elements in a planar design, comprising: the system comprises an image-text layout analysis module, a decorative element library and a decorative element matching module;
the image-text layout analysis module is used for carrying out image-text layout analysis on a planar design product provided by a user to acquire image-text layout data of the planar design product, and the image-text layout data comprises: identifying each character area in a planar design product, analyzing keywords of character contents and giving weights to the keywords, analyzing the weights of the keywords to obtain the character areas with information importance, and simultaneously obtaining the aspect ratio data of the character areas; identifying and acquiring aspect ratio data of a background image in a planar design product; identifying and obtaining a salient region in a background image of the planar design product, and obtaining the aspect ratio data of the salient region;
the decoration element library is formed by the existing decoration element components;
the decoration element matching module comprises the steps of matching and adding decoration elements of the background picture and matching and adding decoration elements of the character area;
the decoration element matching addition to the background picture is as follows: calculating the width-height ratio data of each decorative element in the decorative element library one by one, carrying out approximation calculation on the width-height ratio data of each decorative element and the width-height ratio data of a significant region in a planar design product, filtering out n decorative elements with the highest width-height ratio approximation, calculating the overlapping area of the decorative elements, the significant region and a character region when the n decorative elements are applied to the significant region of a background picture one by one, filtering out m decorative elements with the smallest overlapping area, and automatically randomly selecting one significant region from the m decorative elements, wherein the hierarchy of the significant region is positioned above the background picture and below the character region;
the matching addition of the decorative elements to the text area is as follows: calculating the width-height ratio data of each decorative element in the decorative element library one by one, carrying out approximation calculation on the width-height ratio data of each decorative element and the width-height ratio data of a character region with information importance in a planar design product, filtering out N decorative elements with the highest width-height ratio approximation, then calculating the overlapping area of the decorative elements and a significant region and a character region of a background picture when the N decorative elements are applied to the character region with the information importance one by one, filtering out M decorative elements with the smallest overlapping area, and automatically randomly selecting one from the M decorative elements to apply to the character region with the information importance, wherein the hierarchy of the M decorative elements is positioned above the background picture and below the character region.
2. The apparatus for automatically adding decorative elements to a flat design according to claim 1, wherein: the decoration element library can be expanded by adding new decoration elements through manual operation, or the decoration element library can be automatically updated and added through a web crawler so as to realize automatic expansion of the decoration element library.
3. The apparatus for automatically adding decoration elements in planar design according to claim 1, wherein, when the decoration elements of the background image are matched and added, the approximation degree of the aspect ratio data of the decoration elements and the salient regions of the background image is calculated as:
Figure DEST_PATH_IMAGE001
wherein, the definition.w refers to the width of the decoration element, the definition.h refers to the height of the decoration element, the canvas.w refers to the width of the background picture, and the canvas.h refers to the height of the background picture;
when the decoration elements in the character area are matched and added, the similarity of the aspect ratio data of the decoration elements and the character area is calculated as follows:
Figure 845593DEST_PATH_IMAGE002
wherein, the definition.w refers to the width of the decorative element, the definition.h refers to the height of the decorative element, the t.region.w refers to the width of the character area with information importance, and the t.region.h refers to the height of the character area with information importance;
the overlapping area of the decoration element and the salient region and the character region of the background image is calculated as follows:
Figure DEST_PATH_IMAGE003
where o. pixel refers to the pixel of the overlapping portion and k refers to the total number of pixels of the overlapping portion.
CN201810123191.9A 2018-02-07 2018-02-07 Device for automatically adding decorative elements in planar design Active CN108399288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810123191.9A CN108399288B (en) 2018-02-07 2018-02-07 Device for automatically adding decorative elements in planar design

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810123191.9A CN108399288B (en) 2018-02-07 2018-02-07 Device for automatically adding decorative elements in planar design

Publications (2)

Publication Number Publication Date
CN108399288A CN108399288A (en) 2018-08-14
CN108399288B true CN108399288B (en) 2022-02-22

Family

ID=63096254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810123191.9A Active CN108399288B (en) 2018-02-07 2018-02-07 Device for automatically adding decorative elements in planar design

Country Status (1)

Country Link
CN (1) CN108399288B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110223217A (en) * 2019-06-11 2019-09-10 长春工程学院 A kind of planar design automatic addition decorative element information processing system and method
CN110245245A (en) * 2019-06-20 2019-09-17 菏泽学院 A device for automatically adding decorative elements in graphic design
CN110619671B (en) * 2019-08-21 2023-03-21 广东博智林机器人有限公司 Design framework generation determination method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998010356A1 (en) * 1996-09-09 1998-03-12 Design Intelligence, Inc. Automatic layout and formatting of content for a design in a medium
CN105045776A (en) * 2015-09-07 2015-11-11 武汉大学 Automatic page type setting method
CN107609193A (en) * 2017-10-16 2018-01-19 杭州时间线信息科技有限公司 The intelligent automatic processing method and system of picture in a kind of suitable commodity details page

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7180618B2 (en) * 2000-10-27 2007-02-20 Seiko Epson Corporation Image editing system and image editing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998010356A1 (en) * 1996-09-09 1998-03-12 Design Intelligence, Inc. Automatic layout and formatting of content for a design in a medium
CN105045776A (en) * 2015-09-07 2015-11-11 武汉大学 Automatic page type setting method
CN107609193A (en) * 2017-10-16 2018-01-19 杭州时间线信息科技有限公司 The intelligent automatic processing method and system of picture in a kind of suitable commodity details page

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Photoshop中的抠图合成技术分析;刘静;《福建电脑》;20151125;第31卷(第11期);全文 *
智能广告设计技术的应用研究;杨光炜等;《Art Science and Technology》;20171128;第30卷(第5期);全文 *
装饰元素在平面设计中的运用;穆志坚;《现代装饰(理论)》;20161231;全文 *

Also Published As

Publication number Publication date
CN108399288A (en) 2018-08-14

Similar Documents

Publication Publication Date Title
CN102169587B (en) Device and method for image processing
EP1555634B1 (en) Method and apparatus for automatically determining image foreground color
TWI559242B (en) Visual clothing retrieval
CN103177446B (en) Based on the accurate extracting method of display foreground of neighborhood and non-neighborhood smoothing prior
US6577330B1 (en) Window display device with a three-dimensional orientation of windows
US11386589B2 (en) Method and device for image generation and colorization
US9552634B2 (en) Methods and systems for automated selection of regions of an image for secondary finishing and generation of mask image of same
US8379055B2 (en) Electronic layout generation based on visual context
US20140270506A1 (en) Segmentation of an image based on color and color differences
Recky et al. Windows detection using k-means in cie-lab color space
CN108399288B (en) Device for automatically adding decorative elements in planar design
Chen et al. Shadow-based Building Detection and Segmentation in High-resolution Remote Sensing Image.
CN103578125A (en) Image processing apparatus, image processing method, and program
CN104657458A (en) Method and device for presenting object information of foreground object in scene image
CN110232726B (en) Method and device for generating creative material
CN108416827A (en) A kind of planar design autoplacement device and method analyzed based on data-driven and material
CN110659371B (en) Automatic batch generation method and device for banner images of target objects
CN104167013A (en) Volume rendering method for highlighting target area in volume data
CN108038438A (en) Multi-source face image joint feature extraction method based on singular value decomposition
CN111222530A (en) Fine-grained image classification method, system, device and storage medium
CN112883926A (en) Identification method and device for table medical images
JP2007148677A (en) Image processor and image processing method
CN104809721A (en) Segmentation method and device of cartoon
CN113284052A (en) Image processing method and apparatus
CN114581657B (en) Image semantic segmentation method, device and medium based on multi-scale strip-shaped dilated convolution

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