Intelligent Generation Method of Text Art Pattern

By combining the edge detection algorithm and visual attention model with the energy optimization framework, keywords are automatically arranged, which solves the problem of the cumbersome creation process of traditional text art patterns and realizes efficient and automated text art pattern generation, which is suitable for fields such as advertising and graphic design. .

CN114998482BActive Publication Date: 2024-09-03XIAMEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210661212.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-13
Publication Date
2024-09-03
Estimated Expiration
2042-06-13

AI Technical Summary

Technical Problem

The creation process of traditional text art patterns is cumbersome, requires professional knowledge, is inefficient, and difficult to automate. It cannot effectively consider high-level factors, visual saliency, and semantic relevance, making it impossible for ordinary people to easily create attractive text art patterns.

Method used

Use edge detection algorithms to decompose image areas, extract weighted keywords, train visual attention models, combine energy optimization framework and aesthetic rules to automatically arrange keywords, use heuristic methods to optimize layout, and generate text art with rich semantics and visual appeal pattern.

Benefits of technology

It simplifies the generation process of text art patterns, and can generate text art patterns with rich connotations and distinctive themes for artists and non-professionals. It is suitable for advertising, graphic design and other fields, and improves the efficiency and quality of creation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114998482B
    Figure CN114998482B
Patent Text Reader

Abstract

The intelligent generation method of text art patterns involves the fields of computer graphics and art and humanities. It includes the following steps: 1) Given an image and text related to the content; 2) Detecting edges according to the edge detection algorithm, decomposing the input image into several regions, and approximating each region with a smooth vector field; 3) By analyzing the input text, extracting some weighted keywords as graphic elements, and training a visual attention model; 4) Extracting keywords based on the energy-based optimization framework, arranging the extracted keywords into several regions of the image decomposition in combination with the visual attention principle and aesthetic rules, and synthesizing text art patterns; 5) Using heuristic methods to further optimize the text layout. Simplifying the traditional method, the generated text art pattern has richer connotations. It can be applied to professional fields such as advertising and graphic design to assist designers in their creation, and can also be used in daily life as greeting cards, postcards, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the fields of computer graphics and art and humanities, and in particular to an intelligent generation method for text art patterns. Background Art

[0002] Word art patterns are similar to word paintings, which are composite artworks composed of words, which intuitively express the meaning of words or phrases. Word art patterns can well preserve the visual characteristics and content of a given image, such as color, texture, and semantics. Given the subject of an image, it is able to attract people's attention and convey richer information. Therefore, word art patterns are widely used in advertising, graphic design and other fields.

[0003] Traditional text art patterns are usually designed manually by professional artists with technical precision, usually including the following steps: (1) analyzing the content, structure, and features of a given image; (2) determining the location and content of a specified word; and (3) optimizing the layout to create a visually appealing text art pattern. However, the traditional creation process is cumbersome and requires relevant professional knowledge, which is beyond the reach of ordinary people. Therefore, it is necessary to propose a method to automatically simulate these steps. With this method, users can easily create attractive text art patterns.

[0004] At the same time, how to further consider high-level factors, visual salience and semantic relevance to generate text art patterns, arrange keywords with higher semantic relevance in more eye-catching positions, enable viewers to capture the theme of the text art pattern at a glance, and simplify the creation process is a question worthy of further exploration. Summary of the invention

[0005] The purpose of the present invention is to provide a simple method for intelligently generating text art patterns composed of words with similar semantics and visual features to a given source image under given text and image, in view of the problems of cumbersome creation process, low efficiency and need for professional knowledge in the prior art.

[0006] The present invention comprises the following steps:

[0007] 1) Given any image and text related to the content;

[0008] 2) Detect edges according to the edge detection algorithm, decompose the input image into several regions, and approximate each region with a smooth vector field;

[0009] 3) By analyzing the input text, some weighted keywords are extracted as graphic elements and a visual attention model is trained;

[0010] 4) Extract keywords based on the energy-based optimization framework, arrange the extracted keywords into several regions of the image decomposition by combining visual attention principles and aesthetic rules, and preliminarily synthesize text art patterns;

[0011] 5) Use heuristic methods to further optimize the text layout and obtain the final generated text art pattern.

[0012] In step 2), the edge detection according to the edge detection algorithm is to select a static vector field generation module, provide a drawing panel that allows the user to control, and detect the user's input edge according to the edge detection algorithm; the input image is decomposed into several areas, which are the text filling areas.

[0013] In step 3), the input text is analyzed to extract some weighted keywords as graphic elements, and a visual attention model is trained. The specific steps are: integrating the text feature extraction function to extract keywords from the input text, and assigning a weight to each keyword to measure its semantic relevance to the input image, combining the semantic relevance with the high-level facial features collected in advance, and training a visual attention model; the visual attention model is used to measure the possibility of a location in the input image attracting the observer's attention;

[0014] The specific steps of training a visual attention model are as follows: (1) performing Gaussian filtering and smoothing processing on the eye movement data to obtain a continuous saliency map; (2) extracting feature maps such as color, edge, intensity, and face of each image; (3) in each sampling iteration, randomly selecting a coordinate from the salient area, and then obtaining all grayscale pixel values ​​at the same coordinate from each feature map to form a classification feature vector of the sample; (4) training a linear support vector machine as a visual attention model.

[0015] In step 4), the energy-based optimization framework is used to extract keywords; as shown in the following formula:

[0016]

[0017] E k (x)∈{E va (x),E b (x),E n (x),E c (x),E f (x),E vf (x)}

[0018] stx∈X

[0019] In the formula, α k Represents the weight of each energy term, E va(x) indicates that the keyword is placed in a specific position according to its semantic weight. b (x),E n (x),E c (x) represents visual balance, text non-overlapping and compactness, respectively. f (x) indicates the text size, E vf (x) represents the word arrangement in the vector field, arranging the extracted keywords into the decomposed regions;

[0020] The visual attention principle includes: keywords with greater topic relevance are arranged in larger fonts in more eye-catching positions, etc.; the aesthetic rules include: visual balance effect, non-overlapping text and compactness, etc.

[0021] The synthesized text art pattern first obtains a saliency map by the visual attention model trained in step 3), combines visual attention principles and aesthetic rules, uses streamlined arrangement to extract keywords in each area of ​​the image decomposition, and uses the saliency map to further adjust the position of the keywords to ensure that more important or more informative words are arranged in more attractive positions, forming a visually appealing and themed text art pattern.

[0022] In step 5), the specific steps of further optimizing the text layout using the heuristic method may be: by sampling a set of seed points and searching along the vector field, and then mapping the keywords to the specified area according to the semantic weight, a series of different text layouts are obtained by adjusting the initial position and sampling interval of the seed points, and the one with the smallest energy value is selected as the text to be drawn.

[0023] The present invention first detects the edge of the image by an edge detection algorithm, and then divides the input image into regions according to the edge, and the divided regions are the text filling regions. Then, the image region is filled with text according to the visual attention principle. According to the visual attention principle, keywords with greater relevance to the topic are arranged in a more eye-catching position with a larger font. The style of text filling mainly considers aesthetic rules, that is, visual balance effect, non-overlapping text and compactness.

[0024] Compared with the prior art, the present invention has the following outstanding technical effects:

[0025] The present invention can generate text art patterns for artists and non-professionals. Given any image and content-related text as input, the present invention comprehensively considers the correlation between visual features, text semantic information and visual attention mechanism. On the basis of maintaining the visual features of the input image and the semantic relationship between the keywords and the input image, a text art pattern with rich semantic information and a distinct theme is generated. The present invention can well simplify the traditional method of generating text art patterns, and fully consider information such as visual features and text semantics, so that the generated text art pattern has richer connotations. The present invention can be applied to professional fields such as advertising and graphic design to assist designers in creation, and can also be used in daily life as greeting cards, postcards, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 Schematic diagram of a flow chart of an embodiment of the present invention.

[0027] Figure 2 This is a reference diagram of the effect of an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following embodiments will further illustrate the present invention in conjunction with the accompanying drawings.

[0029] The embodiment of the present invention includes the following steps:

[0030] 1) Given any image and text related to its content.

[0031] 2) Detecting edges according to an edge detection algorithm, decomposing the input image into several regions, and approximating each region with a smooth vector field; detecting edges according to the edge detection algorithm is to select a static vector field generation module, provide a drawing panel that allows the user to control, and detect the user's input edge according to the edge detection algorithm; the input image is decomposed into several regions, and the region is the text filling region.

[0032] 3) Integrate the text feature extraction function to extract keywords from the input text, and assign a weight to each keyword to measure its semantic relevance to the input image, combine the semantic relevance with the high-level facial features collected in advance, and train a visual attention model; the visual attention model is used to measure the possibility of a position in the input image attracting the observer's attention; the specific steps of training a visual attention model can be: (1) Gaussian filtering and smoothing the eye movement data to obtain a continuous saliency map; (2) extracting feature maps such as color, edge, intensity, and face of each image; (3) in each sampling iteration, randomly select a coordinate from the salient area, and then obtain all grayscale pixel values ​​at the same coordinate from each feature map to form a classification feature vector of the sample; (4) train a linear support vector machine as a visual attention model.

[0033] 4) Extract keywords based on the energy-based optimization framework, arrange the extracted keywords into several regions of the image decomposition by combining visual attention principles and aesthetic rules, and synthesize text art patterns;

[0034] The energy-based optimization framework is used to extract keywords, as shown in the following formula:

[0035]

[0036] E k (x)∈{E va (x),E b (x),E n (x),E c (x),E f (x),E vf (x)}

[0037] stx∈X

[0038] In the formula, α k Represents the weight of each energy term, E va (x) indicates that the keyword is placed in a specific position according to its semantic weight. b (x),E n (x),E c (x) represents visual balance, text non-overlapping and compactness, respectively. f (x) indicates the text size, E vf (x) represents the word arrangement in the vector field, arranging the extracted keywords into the decomposed regions;

[0039] The visual attention principle includes: keywords with greater topic relevance are arranged in larger fonts in more eye-catching positions, etc.; the aesthetic rules include: visual balance effect, non-overlapping text and compactness, etc.

[0040] The synthesized text art pattern first obtains a saliency map by the visual attention model trained in step 3), combines visual attention principles and aesthetic rules, uses streamlined arrangement to extract keywords in each area of ​​the image decomposition, and uses the saliency map to further adjust the position of the keywords to ensure that more important or more informative words are arranged in more attractive positions, forming a visually appealing and themed text art pattern.

[0041] 5) Use heuristic methods to optimize text layout: By sampling a set of seed points and searching along the vector field, the keywords are mapped to the specified area according to the semantic weight. A series of different text layouts are obtained by adjusting the initial position of the seed points and the sampling interval, and the one with the smallest energy value is selected as the text to be drawn.

[0042] Figure 1 A flowchart of an embodiment of an English text art pattern is provided, which specifically includes the following steps:

[0043] (1) Given an image and some text as input, such as a Kung Fu Panda image and text such as “Article of Kung FuPanda”;

[0044] (2) The input image is divided according to the edge according to the edge detection algorithm, and each region is approximated using a smooth vector field. Weighted keywords are extracted from the text as graphic elements and assigned weights, such as assigning a weight of 0.970559 to "Kung Fu Panda";

[0045] (3) According to the visual attention principle and aesthetic rules, the given text is allocated to different areas and the text is mapped;

[0046] (4) Obtain the final generated text art pattern, that is, the Kung Fu Panda image composed of the given "Article of Kung Fu Panda" text.

[0047] Figure 2 A reference diagram of the Chinese art pattern effect generated by the method of the present invention is provided.

[0048] The present invention can generate a set of artistic patterns containing given texts under the condition of given images and texts. The present invention formulates an energy-based optimization framework, which integrates text semantic information, visual attention principles and aesthetic rules to guide text layout generation. The edge detection algorithm can divide the image into regions according to the changes, and the smooth vector field approximation region mainly refers to the mathematical representation of each region; the text mapping is mainly based on the energy-based optimization framework proposed by the present invention, which can fully consider the relationship between text semantic information, visual attention principles and aesthetic rules, and realize the mapping of text.

Claims

1. A method for intelligently generating text art patterns, characterized in that The following steps are involved: 1) Given any image and text related to the content; 2) Detect edges according to the edge detection algorithm, decompose the input image into several regions, and approximate each region with a smooth vector field; 3) By analyzing the input text, some weighted keywords are extracted as graphic elements, and a visual attention model is trained. The specific steps are as follows: the text feature extraction function is integrated to extract keywords from the input text, and a weight is assigned to each keyword to measure its semantic relevance to the input image. The semantic relevance is combined with the high-level facial features collected in advance to train a visual attention model; the visual attention model is used to measure the possibility of attracting the observer's attention in the input image; The specific steps of training a visual attention model are: (1) performing Gaussian filtering and smoothing on the eye movement data to obtain a continuous saliency map; (2) extracting the color, edge, intensity, and face feature maps of each image; (3) In each sampling iteration, a coordinate is randomly selected from the salient region, and then all grayscale pixel values ​​at the same coordinate are obtained from each feature map to form the classification feature vector of the sample; (4) Training a linear support vector machine as a visual attention model; 4) Extract keywords based on the energy-based optimization framework, arrange the extracted keywords into several regions of the image decomposition by combining visual attention principles and aesthetic rules, and preliminarily synthesize text art patterns; The visual attention principle includes: keywords with greater topic relevance are arranged in larger fonts in more eye-catching positions; the aesthetic rules include: visual balance effect, non-overlapping text and compactness; 5) Using heuristic methods to further optimize the text layout and obtain the final generated text art pattern; The specific steps of further optimizing the text layout using the heuristic method are as follows: sampling a set of seed points and searching along the vector field, then mapping the keywords to the specified area according to the semantic weights, obtaining a series of different text layouts by adjusting the initial position of the seed points and the sampling interval, and selecting the one with the smallest energy value as the text to be drawn.

2. The method for intelligently generating text art patterns as claimed in claim 1, characterized in that In step 2), the edge detection according to the edge detection algorithm is to select a static vector field generation module, provide a drawing panel allowing user control, and detect the user's input edge according to the edge detection algorithm; the input image is decomposed into several areas, which are the text filling areas.

3. The method for intelligently generating text art patterns as claimed in claim 1, characterized in that In step 4), the energy-based optimization framework extracts keywords as follows: AND k (x)∈{E va (x),And b (x),And n (x),And c (x),And f (x),And vf (x)} stx∈X In the formula, α k Represents the weight of each energy term, E va (x) indicates that the keyword is placed in a specific position according to its semantic weight. b (x), E n (x), E c (x) represents visual balance, text non-overlapping and compactness, respectively. f (x) indicates the text size, E vf (x) represents the word arrangement in the vector field, arranging the extracted keywords into the decomposed regions.

4. The method for intelligently generating text art patterns as claimed in claim 1, characterized in that In step 4), the synthesized text art pattern first obtains a saliency map by the visual attention model trained in step 3), combines visual attention principles and aesthetic rules, uses streamlined arrangement to extract keywords in each area of ​​the image decomposition, and uses the saliency map to further adjust the position of the keywords to ensure that more important or more informative words are arranged in more attractive positions, forming a visually appealing and themed text art pattern.