CN108961361B - Method and system for generating special effect text image and computer equipment - Google Patents

Method and system for generating special effect text image and computer equipment Download PDF

Info

Publication number
CN108961361B
CN108961361B CN201710392670.6A CN201710392670A CN108961361B CN 108961361 B CN108961361 B CN 108961361B CN 201710392670 A CN201710392670 A CN 201710392670A CN 108961361 B CN108961361 B CN 108961361B
Authority
CN
China
Prior art keywords
image
text
rendering
generating
word stock
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
CN201710392670.6A
Other languages
Chinese (zh)
Other versions
CN108961361A (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.)
Tianjin Fangzheng Handwriting Digital Technology Co ltd
Original Assignee
Tianjin Fangzheng Handwriting Digital Technology 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 Tianjin Fangzheng Handwriting Digital Technology Co ltd filed Critical Tianjin Fangzheng Handwriting Digital Technology Co ltd
Priority to CN201710392670.6A priority Critical patent/CN108961361B/en
Publication of CN108961361A publication Critical patent/CN108961361A/en
Application granted granted Critical
Publication of CN108961361B publication Critical patent/CN108961361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Abstract

The invention provides a method and a system for generating a special effect text image, a computer device and a computer readable storage medium. The method for generating the special effect text image comprises the following steps: acquiring a first word stock, first text information and image rendering attributes; generating a rendering template file according to the first word stock, the first text information and the image rendering attribute; reading a rendering template file and analyzing the rendering template file into corresponding template data; a first image or a first sequence of images is generated from the template data. According to the method for generating the special effect text image, the rendering template file is utilized to generate the image or the image sequence, the text is not required to be designed by adopting image design software, and the user operation is simplified. Further, when the first word stock, the first word information and the image rendering attribute change, the rendering template file is analyzed into new template data, so that a new image or image sequence is generated, redesign of the word image is not needed, and the user operation is simpler.

Description

Method and system for generating special effect text image and computer equipment
Technical Field
The present invention relates to the field of text information processing technology, and in particular, to a method and system for generating a special effect text image, a computer device, and a computer readable storage medium.
Background
The invention of the characters is an important mark of human civilization and is also a main means for continuing the tradition and culture of the ethnic group. The Chinese characters have long history, thousands of years, from literal pictures to pictorial characters, to oracle, gold, seal, script, cursive script, running script and regular script, and the shapes of Chinese characters are varied, but the Chinese characters are well-born, so that the brilliant histories of Chinese civilization are faithfully recorded. The number of ancient and modern word book resources of the specific carrier of the Chinese characters is huge, and the ancient and modern word book resources from east China's word speaking and decoding to the contemporary ' Chinese big dictionary ', and various books and rhymes of the large-batch writing and the shape, sound and meaning attributes are basic resources for carrying out a character research platform.
With the continuous progress of human civilization, especially in the current generation of advanced information technology, people can utilize digital media such as computers, mobile phones, televisions, electronic billboards and the like to display words after digitizing the vast word stock resources, and can transmit information from word meaning to dimensionality such as vision, color, expression, animation and the like, so that people can digest information better and faster in fragmentation time.
However, the existing text is basically displayed in black and white form, typeset according to the traditional reading mode from top to bottom and from left to right, or the text is beautified and decorated by adopting image design software, but only the text content and the fonts can be fixed, the text must be redesigned to replace the text content or the fonts, the text content and the fonts cannot be dynamically replaced, and a large amount of design and storage space is required if the whole font library is covered, so that the distribution and the propagation are not facilitated.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
To this end, a first object of the present invention is to propose a method for generating a special effect text image.
A second object of the present invention is to propose a system for generating special effect text images.
A third object of the invention is to propose a computer device.
A fourth object of the present invention is to propose a computer readable storage medium.
In view of the above, according to a first object of the present invention, there is provided a method of generating a special effect text image, comprising: acquiring a first word stock, first text information and image rendering attributes; generating a rendering template file according to the first word stock, the first text information and the image rendering attribute; reading a rendering template file and analyzing the rendering template file into corresponding template data; a first image or a first sequence of images is generated from the template data.
According to the method for generating the special effect text image, the first word stock, the first text information and the image rendering attribute are obtained, the rendering template file is generated according to the first word stock, the text content and the text quantity of the first text information and the image rendering attribute, and then the rendering template file is analyzed into the corresponding template data, so that the first image or the first image sequence with a certain rendering effect can be generated, the image or the image sequence can be automatically generated by utilizing the rendering template file, the text is not required to be designed independently by adopting image design software, and the operation of a user is simplified.
Further, by using the generated rendering template file, when the acquired first word stock, first text information and image rendering attribute change, a new image or image sequence can be dynamically and automatically generated only by analyzing the rendering template file into corresponding template data, and the text image is not required to be redesigned, so that the operation of a user is further simplified. The word stock can be a word font selected by a user, and the word information can be words dynamically input by the user.
In addition, the method for generating the special effect text image can also have the following additional technical characteristics:
In the above technical solution, preferably, the method for generating a special effect text image further includes: acquiring a second word stock; and/or obtaining second text information; generating a second image or a second image sequence according to the second word stock and/or the second text information; the rendering effects of the first image and the second image are the same, and the rendering effects of the first image sequence and the second image sequence are the same.
According to the technical scheme, the second image or the second image sequence is automatically generated through the acquired second word stock and/or the second text information, wherein the rendering effects of the first image and the second image are the same, and the rendering effects of the first image sequence and the second image sequence are the same.
Furthermore, a series of images or image sequences with the same rendering effect can be automatically generated by only storing the generated rendering template file, a large number of images or image sequences with different rendering effects are not needed to be stored, the storage space is saved, and the issuing and the spreading of the text images are facilitated.
In any of the above embodiments, preferably, the first word stock is the same as or different from the second word stock; the first text information is the same as or different from the second text information.
According to the technical scheme, the first word stock and the second word stock are set to be the same or different, and the first word information and the second word information are set to be the same or different, so that the user can randomly change the content and/or the font of the words, a series of images or image sequences with the same rendering effect can be automatically generated, redesign of the word images is not needed, the operation of the user is simplified, and the personalized requirements of the user on the word content and/or the font are met.
In any of the foregoing solutions, preferably, before the step of obtaining the first word stock, the method further includes: a word stock file is predefined.
In the technical scheme, the word stock file is predefined, so that the word stock selected by the user can be accurately obtained, and different word stocks can be contained in the word stock file, thereby meeting the personalized requirements of the user on the word fonts.
In any of the above technical solutions, preferably, the method for generating a special effect text image further includes: an image or sequence of images is presented.
According to the technical scheme, the images or the image sequences are intuitively displayed, so that people can quickly digest information conveyed on static images or dynamic images, and the transmission of text images is facilitated.
In any of the above solutions, preferably, the image rendering attribute includes at least one of the following or a combination thereof: canvas properties, text properties; canvas properties including at least one of or a combination of: canvas size, canvas background color, decoration diagram of canvas; a text attribute comprising at least one of or a combination of: the background color or texture of the text, the foreground color or texture of the text, the tracing width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text.
According to the technical scheme, images or image sequences with different rendering effects can be dynamically and automatically generated through different image rendering attributes, and the character display effect with vivid individuality is achieved. In particular embodiments, image rendering attributes, including but not limited to at least one of or a combination of: the canvas attribute and the text attribute are used for generating a static image or a dynamic image with special effect text by rendering the rendering effect of the text on the canvas, so that the requirement of a user on the personalized rendering effect of the image or the image sequence is met.
Further, canvas properties, including but not limited to at least one of or a combination of the following: canvas size, canvas background color, a decoration map of the canvas, and text attributes including, but not limited to, at least one of or a combination of: the background color or texture of the text, the foreground color or texture of the text, the description width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text, so that the image or the image sequence transmits information from the aspects of text content, vision, color, animation and the like, thereby achieving the character display effect with vivid individuality and being more beneficial to the propagation of the text image.
According to a second object of the present invention, there is provided a system for generating a special effect text image, comprising: the first acquisition unit is used for acquiring a first word stock, first text information and image rendering attributes; the template generating unit is used for generating a rendering template file according to the first word stock, the first text information and the image rendering attribute; the analysis unit is used for reading the rendering template file and analyzing the rendering template file into corresponding template data; and the first image generation unit is used for generating a first image or a first image sequence according to the template data.
According to the system for generating the special effect text image, the first word stock, the first text information and the image rendering attribute are acquired through the first acquisition unit, the rendering template file is generated through the template generation unit according to the text content and the text quantity of the first word stock and the first text information and the image rendering attribute, the rendering template file is analyzed into corresponding template data through the analysis unit, and finally the first image or the first image sequence with a certain rendering effect is generated through the first image generation unit, so that the image or the image sequence can be automatically generated by using the rendering template file, the text is not required to be designed independently through image design software, and the operation of a user is simplified.
Further, when the acquired first word stock, the first text information and the image rendering attribute change by utilizing the generated rendering template file, a new image or an image sequence can be dynamically and automatically generated by analyzing the rendering template file into corresponding template data through an analyzing unit, and the text image is not required to be redesigned, so that the operation of a user is further simplified. The word stock can be a word font selected by a user, and the word information can be words dynamically input by the user.
In addition, the system for generating the special effect text image can also have the following additional technical characteristics:
in the above technical solution, preferably, the system for generating a special effect text image further includes: the second acquisition unit is used for acquiring a second word stock; and/or further used for obtaining second text information; the second image generation unit is used for generating a second image or a second image sequence according to the second word stock and/or the second text information; the rendering effects of the first image and the second image are the same, and the rendering effects of the first image sequence and the second image sequence are the same.
In the technical scheme, the second word stock and/or the second text information are acquired through the second acquisition unit, and the second image or the second image sequence is automatically generated through the second image generation unit, wherein the rendering effects of the first image and the second image are the same, and the rendering effects of the first image sequence and the second image sequence are the same, so that when the acquired word stock or the text information is changed, a series of images or image sequences with the same rendering effects can be automatically generated by utilizing the generated rendering template file, and the text images are not required to be reset.
Furthermore, a series of images or image sequences with the same rendering effect can be automatically generated by only storing the generated rendering template file, a large number of images or image sequences with different rendering effects are not needed to be stored, the storage space is saved, and the issuing and the spreading of the text images are facilitated.
In any of the above embodiments, preferably, the first word stock is the same as or different from the second word stock; the first text information is the same as or different from the second text information.
According to the technical scheme, the first word stock and the second word stock are set to be the same or different, and the first word information and the second word information are set to be the same or different, so that the user can randomly change the content and/or the font of the words, a series of images or image sequences with the same rendering effect can be automatically generated, redesign of the word images is not needed, the operation of the user is simplified, and the personalized requirements of the user on the word content and/or the font are met.
In any of the foregoing technical solutions, preferably, the system for generating a special effect text image further includes, before the step of acquiring the first word stock: and the predefining unit is used for predefining the word stock file.
According to the technical scheme, the word stock file is predefined through the predefined unit, so that the word stock selected by the user can be accurately obtained, and different word stocks can be contained in the word stock file, so that the personalized requirements of the user on the word fonts are met.
In any of the above technical solutions, preferably, the system for generating a special effect text image further includes: and the display unit is used for displaying the image or the image sequence.
In the technical scheme, the display unit is used for intuitively displaying the images or the image sequences, so that people can quickly digest the information conveyed on the static images or the dynamic images, and the transmission of the text images is facilitated.
In any of the above solutions, preferably, the image rendering attribute includes at least one of the following or a combination thereof: canvas properties, text properties; canvas properties including at least one of or a combination of: canvas size, canvas background color, decoration diagram of canvas; a text attribute comprising at least one of or a combination of: the background color or texture of the text, the foreground color or texture of the text, the tracing width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text.
According to the technical scheme, images or image sequences with different rendering effects can be dynamically and automatically generated through different image rendering attributes, and the character display effect with vivid individuality is achieved. In particular embodiments, image rendering attributes, including but not limited to at least one of or a combination of: the canvas attribute and the text attribute are used for generating a static image or a dynamic image with special effect text by rendering the rendering effect of the text on the canvas, so that the requirement of a user on the personalized rendering effect of the image or the image sequence is met.
Further, canvas properties, including but not limited to at least one of or a combination of the following: canvas size, canvas background color, a decoration map of the canvas, and text attributes including, but not limited to, at least one of or a combination of: the background color or texture of the text, the foreground color or texture of the text, the description width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text, so that the image or the image sequence transmits information from the aspects of text content, vision, color, animation and the like, thereby achieving the character display effect with vivid individuality and being more beneficial to the propagation of the text image.
According to a third object of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and running on the processor, the processor being adapted to perform the steps of the method according to any of the above claims.
The computer equipment provided by the invention is a server for supporting the operation of the method for generating the special effect text image in any technical scheme, and the processor can automatically generate an image or an image sequence by using the generated rendering template file by executing the computer program stored on the memory, so that the text is not required to be designed independently by adopting image design software, and the operation of a user is simplified.
Further, by using the generated rendering template file, when the acquired first word stock, first text information and image rendering attribute change, a new image or image sequence can be dynamically and automatically generated only by analyzing the rendering template file into corresponding template data, and the text image is not required to be redesigned, so that the operation of a user is further simplified. The word stock can be a word font selected by a user, and the word information can be words dynamically input by the user.
According to a fourth object of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method described in any of the above claims.
The computer readable storage medium provided by the invention is arranged in the server supporting the operation of the method for generating the special effect text image in any technical scheme, the computer readable storage medium is stored with the computer program, and the image or the image sequence can be automatically generated by using the generated rendering template file by operating the computer program, so that the text is not required to be designed independently by adopting image design software, and the operation of a user is simplified.
Further, by using the generated rendering template file, when the acquired first word stock, first text information and image rendering attribute change, a new image or image sequence can be dynamically and automatically generated only by analyzing the rendering template file into corresponding template data, and the text image is not required to be redesigned, so that the operation of a user is further simplified. The word stock can be a word font selected by a user, and the word information can be words dynamically input by the user.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
fig. 1 shows a schematic flow chart of a method of generating a special effect text image according to a first embodiment of the invention;
fig. 2 shows a schematic flow chart of a method of generating a special effect text image according to a second embodiment of the invention;
fig. 3 shows a schematic flow chart of a method of generating a special effect text image according to a third embodiment of the invention;
Fig. 4 shows a schematic flow chart of a method of generating a special effect text image according to a fourth embodiment of the invention;
fig. 5 shows a schematic block diagram of a system for generating special effect text images according to a first embodiment of the invention;
FIG. 6 shows a schematic block diagram of a system for generating special effects text images in accordance with a second embodiment of the present invention;
fig. 7 shows a schematic block diagram of a system for generating special effect text images according to a third embodiment of the invention;
fig. 8 shows a schematic block diagram of a system for generating special effect text images according to a fourth embodiment of the invention;
fig. 9 shows a schematic configuration of a computer device according to a first embodiment of the present invention;
FIG. 10a shows a schematic view of a screen shot of a text image according to a first embodiment of the invention;
FIG. 10b shows a schematic view of a screenshot of a text image according to a second embodiment of the invention;
FIG. 10c shows a schematic view of a screenshot of a text image according to a third embodiment of the invention;
FIG. 10d shows a schematic view of a screen shot of a text image according to a fourth embodiment of the invention;
fig. 10e shows a schematic view of a screen shot of a text image according to a fifth embodiment of the invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
Fig. 1 shows a schematic flow chart of a method of generating a special effect text image according to a first embodiment of the invention. As shown in fig. 1, the method for generating the special effect text image includes:
102, acquiring a first word stock, first text information and image rendering attributes;
104, generating a rendering template file according to the first word stock, the first text information and the image rendering attribute;
step 106, reading the rendering template file and analyzing the rendering template file into corresponding template data;
step 108, generating a first image or a first image sequence according to the template data.
According to the method for generating the special effect text image, the first word stock, the first text information and the image rendering attribute are obtained, the rendering template file is generated according to the first word stock, the text content and the text quantity of the first text information and the image rendering attribute, and then the rendering template file is analyzed into the corresponding template data, so that the first image or the first image sequence with a certain rendering effect can be generated, the image or the image sequence can be automatically generated by utilizing the rendering template file, the text is not required to be designed independently by adopting image design software, and the operation of a user is simplified.
Further, by using the generated rendering template file, when the acquired first word stock, first text information and image rendering attribute change, a new image or image sequence can be dynamically and automatically generated only by analyzing the rendering template file into corresponding template data, and the text image is not required to be redesigned, so that the operation of a user is further simplified. The word stock can be a word font selected by a user, and the word information can be words dynamically input by the user.
Fig. 2 shows a schematic flow chart of a method of generating a special effect text image according to a second embodiment of the invention. As shown in fig. 2, the method for generating the special effect text image includes:
Step 202, acquiring a first word stock, first text information and image rendering attributes;
step 204, generating a rendering template file according to the first word stock, the first text information and the image rendering attribute;
step 206, reading the rendering template file and analyzing the rendering template file into corresponding template data;
step 208, generating a first image or a first image sequence according to the template data;
step 210, obtaining a second word stock and/or second text information;
step 212, generating a second image or a second image sequence according to the second word stock and/or the second text information;
the rendering effects of the first image and the second image are the same, and the rendering effects of the first image sequence and the second image sequence are the same.
In this embodiment, the second image or the second image sequence is automatically generated through the acquired second word stock and/or the second text information, where the rendering effects of the first image and the second image are the same, and the rendering effects of the first image sequence and the second image sequence are the same, so that when the acquired word stock or the text information changes, a series of images or image sequences with the same rendering effect can be automatically generated by using the generated rendering template file, and the text images do not need to be reset.
Furthermore, a series of images or image sequences with the same rendering effect can be automatically generated by only storing the generated rendering template file, a large number of images or image sequences with different rendering effects are not needed to be stored, the storage space is saved, and the issuing and the spreading of the text images are facilitated.
In one embodiment of the present invention, preferably, the first word stock is the same as or different from the second word stock; the first text information is the same as or different from the second text information.
In the embodiment, by setting the first word stock and the second word stock to be the same or different and setting the first word information and the second word information to be the same or different, the user can randomly change the content and/or the font of the words, a series of images or image sequences with the same rendering effect can be automatically generated, redesign of the word images is not needed, the operation of the user is simplified, and the personalized requirements of the user on the word content and/or the font are met.
In one embodiment of the present invention, preferably, before the step of obtaining the first word stock, the method further includes: a word stock file is predefined.
In the embodiment, the word stock file is predefined, so that the word stock selected by the user can be accurately obtained, and different word stocks can be contained in the word stock file, thereby meeting the personalized requirements of the user on the word fonts.
Fig. 3 shows a schematic flow chart of a method of generating a special effect text image according to a third embodiment of the invention. As shown in fig. 3, the method for generating the special effect text image includes:
step 302, predefining a word stock file;
step 304, acquiring a first word stock, first text information and image rendering attributes;
step 306, generating a rendering template file according to the first word stock, the first text information and the image rendering attribute;
step 308, reading the rendering template file and analyzing the rendering template file into corresponding template data;
step 310, a first image or a first image sequence is generated from the template data.
In the embodiment, the word stock file is predefined, so that the word stock selected by the user can be accurately obtained, and different word stocks can be contained in the word stock file, thereby meeting the personalized requirements of the user on the word fonts.
In one embodiment of the present invention, preferably, the method for generating a special effect text image further includes: an image or sequence of images is presented.
In the embodiment, the image or the image sequence is intuitively displayed, so that people can quickly digest information conveyed on the static image or the dynamic image, and the transmission of the text image is facilitated.
Fig. 4 shows a schematic flow chart of a method of generating a special effect text image according to a fourth embodiment of the invention. As shown in fig. 4, the method for generating the special effect text image includes:
step 402, acquiring a first word stock, first text information and image rendering attributes;
step 404, generating a rendering template file according to the first word stock, the first text information and the image rendering attribute;
step 406, reading the rendering template file and analyzing the rendering template file into corresponding template data;
step 408, generating a first image or a first image sequence according to the template data;
step 410, an image or sequence of images is presented.
In the embodiment, the image or the image sequence is intuitively displayed, so that people can quickly digest information conveyed on the static image or the dynamic image, and the transmission of the text image is facilitated.
In one embodiment of the present invention, the image rendering attributes preferably include at least one of or a combination of the following: canvas properties, text properties; canvas properties including at least one of or a combination of: canvas size, canvas background color, decoration diagram of canvas; a text attribute comprising at least one of or a combination of: the background color or texture of the text, the foreground color or texture of the text, the tracing width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text.
In the embodiment, images or image sequences with different rendering effects can be dynamically and automatically generated through different image rendering attributes, so that a character display effect with vivid individuality is achieved. In particular embodiments, image rendering attributes, including but not limited to at least one of or a combination of: the canvas attribute and the text attribute are used for generating a static image or a dynamic image with special effect text by rendering the rendering effect of the text on the canvas, so that the requirement of a user on the personalized rendering effect of the image or the image sequence is met.
Further, canvas properties, including but not limited to at least one of or a combination of the following: canvas size, canvas background color, a decoration map of the canvas, and text attributes including, but not limited to, at least one of or a combination of: the background color or texture of the text, the foreground color or texture of the text, the description width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text, so that the image or the image sequence transmits information from the aspects of text content, vision, color, animation and the like, thereby achieving the character display effect with vivid individuality and being more beneficial to the propagation of the text image.
Fig. 5 shows a schematic block diagram of a system for generating a special effect text image according to a first embodiment of the invention. As shown in fig. 5, the system 500 for generating a special effect text image includes:
a first obtaining unit 502, configured to obtain a first word stock, first text information, and an image rendering attribute;
the template generating unit 504 is configured to generate a rendering template file according to the first word stock, the first text information, and the image rendering attribute;
the parsing unit 506 is configured to read the rendering template file, and parse the rendering template file into corresponding template data;
a first image generation unit 508 for generating a first image or a first image sequence from the template data.
According to the system 500 for generating the special effect text image, the first word stock, the first text information and the image rendering attribute are acquired through the first acquisition unit 502, the rendering template file is generated through the template generation unit 504 according to the text content and the text quantity of the first word stock and the first text information and the image rendering attribute, the rendering template file is analyzed into corresponding template data through the analysis unit 506, and finally the first image or the first image sequence with a certain rendering effect is generated through the first image generation unit 508, so that the image or the image sequence can be automatically generated by using the rendering template file, the text is not required to be designed independently through image design software, and the operation of a user is simplified.
Further, by using the generated rendering template file, when the acquired first word stock, first text information and image rendering attribute change, a new image or image sequence can be dynamically and automatically generated only by analyzing the rendering template file into corresponding template data through the analyzing unit 506, without redesigning the text image, and further simplifying the operation of the user. The word stock can be a word font selected by a user, and the word information can be words dynamically input by the user.
Fig. 6 shows a schematic block diagram of a system for generating a special effect text image according to a second embodiment of the invention. As shown in fig. 6, the system 600 for generating a special effect text image includes:
a first obtaining unit 602, configured to obtain a first word stock, first text information, and an image rendering attribute;
the template generating unit 604 is configured to generate a rendering template file according to the first word stock, the first text information, and the image rendering attribute;
the parsing unit 606 is configured to read the rendering template file and parse the rendering template file into corresponding template data;
a first image generation unit 608 for generating a first image or a first image sequence from the template data;
A second obtaining unit 610, configured to obtain a second word stock; and/or
The method is also used for acquiring second text information;
a second image generating unit 612, configured to generate a second image or a second image sequence according to the second word stock and/or the second text information;
the rendering effects of the first image and the second image are the same, and the rendering effects of the first image sequence and the second image sequence are the same.
In this embodiment, the second word stock and/or the second text information are acquired by the second acquiring unit 610, and the second image or the second image sequence is automatically generated by the second image generating unit 612, where the rendering effects of the first image and the second image are the same, and the rendering effects of the first image sequence and the second image sequence are the same, so that when the acquired word stock or the text information changes, a series of images or image sequences with the same rendering effects can be automatically generated by using the generated rendering template file, and the text images do not need to be reset.
Furthermore, a series of images or image sequences with the same rendering effect can be automatically generated by only storing the generated rendering template file, a large number of images or image sequences with different rendering effects are not needed to be stored, the storage space is saved, and the issuing and the spreading of the text images are facilitated.
In one embodiment of the present invention, preferably, the first word stock is the same as or different from the second word stock; the first text information is the same as or different from the second text information.
In the embodiment, by setting the first word stock and the second word stock to be the same or different and setting the first word information and the second word information to be the same or different, the user can randomly change the content and/or the font of the words, a series of images or image sequences with the same rendering effect can be automatically generated, redesign of the word images is not needed, the operation of the user is simplified, and the personalized requirements of the user on the word content and/or the font are met.
In one embodiment of the present invention, preferably, the system for generating a special effect text image further includes, before the step of acquiring the first word stock: and the predefining unit is used for predefining the word stock file.
In the embodiment, the word stock file is predefined through the predefined unit, so that the word stock selected by the user can be accurately obtained, and different word stocks can be contained in the word stock file, thereby meeting the personalized requirements of the user on the word fonts.
Fig. 7 shows a schematic block diagram of a system for generating special effect text images according to a third embodiment of the invention. As shown in fig. 7, the system 700 for generating a special effect text image includes:
A predefined unit 702 for predefining a word stock file;
a first obtaining unit 704, configured to obtain a first word stock, first text information, and an image rendering attribute;
a template generating unit 706, configured to generate a rendering template file according to the first word stock, the first text information, and the image rendering attribute;
a parsing unit 708, configured to read the rendering template file, parse the rendering template file into corresponding template data;
the first image generating unit 710 is configured to generate a first image or a first image sequence according to the template data.
In this embodiment, the word stock file is predefined by the predefined unit 702, so that the word stock selected by the user can be accurately obtained, and different word stocks can be contained in the word stock file, thereby meeting the personalized requirements of the user on the word fonts.
In one embodiment of the present invention, preferably, the system for generating a special effect text image further includes: and the display unit is used for displaying the image or the image sequence.
In the embodiment, the display unit intuitively displays the images or the image sequences, so that people can quickly digest information conveyed on the static images or the dynamic images, and the transmission of the text images is facilitated.
Fig. 8 shows a schematic block diagram of a system for generating special effect text images according to a fourth embodiment of the invention. As shown in fig. 8, the system 800 for generating a special effect text image includes:
a first obtaining unit 802, configured to obtain a first word stock, first text information, and an image rendering attribute;
the template generating unit 804 is configured to generate a rendering template file according to the first word stock, the first text information, and the image rendering attribute;
the parsing unit 806 is configured to read the rendering template file, parse the rendering template file into corresponding template data;
a first image generation unit 808 for generating a first image or a first image sequence from the template data;
and a display unit 810 for displaying an image or a sequence of images.
In this embodiment, the display unit 810 intuitively displays an image or an image sequence, so that people can quickly digest information conveyed on a still image or a moving image, which is more beneficial to the propagation of text images.
In one embodiment of the present invention, the image rendering attributes preferably include at least one of or a combination of the following: canvas properties, text properties; canvas properties including at least one of or a combination of: canvas size, canvas background color, decoration diagram of canvas; a text attribute comprising at least one of or a combination of: the background color or texture of the text, the foreground color or texture of the text, the tracing width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text.
In the embodiment, images or image sequences with different rendering effects can be dynamically and automatically generated through different image rendering attributes, so that a character display effect with vivid individuality is achieved. In particular embodiments, image rendering attributes, including but not limited to at least one of or a combination of: the canvas attribute and the text attribute are used for generating a static image or a dynamic image with special effect text by rendering the rendering effect of the text on the canvas, so that the requirement of a user on the personalized rendering effect of the image or the image sequence is met.
Further, canvas properties, including but not limited to at least one of or a combination of the following: canvas size, canvas background color, a decoration map of the canvas, and text attributes including, but not limited to, at least one of or a combination of: the background color or texture of the text, the foreground color or texture of the text, the description width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text, so that the image or the image sequence transmits information from the aspects of text content, vision, color, animation and the like, thereby achieving the character display effect with vivid individuality and being more beneficial to the propagation of the text image.
An embodiment of the invention provides a computer device comprising a memory, a processor and a computer program stored on the memory and running on the processor, the processor being configured to perform the steps of the method described in any of the above claims.
The computer equipment provided by the invention is a server for supporting the operation of the method for generating the special effect text image in any technical scheme, and the processor can automatically generate an image or an image sequence by using the generated rendering template file by executing the computer program stored on the memory, so that the text is not required to be designed independently by adopting image design software, and the operation of a user is simplified.
Further, by using the generated rendering template file, when the acquired first word stock, first text information and image rendering attribute change, a new image or image sequence can be dynamically and automatically generated only by analyzing the rendering template file into corresponding template data, and the text image is not required to be redesigned, so that the operation of a user is further simplified. The word stock can be a word font selected by a user, and the word information can be words dynamically input by the user.
As shown in fig. 9, a schematic configuration of a computer device according to a first embodiment of the present invention. Wherein the computer device 9 comprises: memory 92, processor 94, and a computer program stored on memory 92 and executable on processor 94, processor 94 when executing the computer program performs the steps of:
acquiring a first word stock, first text information and image rendering attributes;
generating a rendering template file according to the first word stock, the first text information and the image rendering attribute;
reading a rendering template file and analyzing the rendering template file into corresponding template data;
a first image or a first sequence of images is generated from the template data.
The computer device 9 provided by the invention is a server for supporting the operation of the method for generating the special effect text image in any technical scheme, and the processor 94 can automatically generate an image or an image sequence by using the generated rendering template file by executing the computer program stored in the memory 92, so that the text does not need to be designed independently by adopting image design software, and the operation of a user is simplified.
Further, by using the generated rendering template file, when the acquired first word stock, first text information and image rendering attribute change, a new image or image sequence can be dynamically and automatically generated only by analyzing the rendering template file into corresponding template data, and the text image is not required to be redesigned, so that the operation of a user is further simplified. The word stock can be a word font selected by a user, and the word information can be words dynamically input by the user.
An embodiment of the invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method described in any of the above claims.
The computer readable storage medium provided by the invention is arranged in a server supporting the operation of the method for generating the special effect text image in any technical scheme, the computer readable storage medium is stored with a computer program, and the computer program is operated, so that the image or the image sequence can be automatically generated by using the generated rendering template file, the text is not required to be designed independently by adopting image design software, and the operation of a user is simplified.
Further, by using the generated rendering template file, when the acquired first word stock, first text information and image rendering attribute change, a new image or image sequence can be dynamically and automatically generated only by analyzing the rendering template file into corresponding template data, and the text image is not required to be redesigned, so that the operation of a user is further simplified. The word stock can be a word font selected by a user, and the word information can be words dynamically input by the user.
In a specific embodiment, according to the method and the system for generating the special effect text image provided by the invention, an image or an image sequence with a character display effect with vivid individuality can be generated.
As shown in fig. 10a, a schematic view of a screen shot of a text image according to a first embodiment of the present invention. As shown in fig. 10a, the background color of the canvas of the text image is white, the decoration chart of the canvas comprises splash-ink patterns, the text content in the text image is 'spring flower autumn moon, red mud is a good mind', the text is typeset according to the sequence from left to right and from top to bottom, and the tracing width, the text size and the position of the text in the canvas of each text are all distinctive.
As shown in fig. 10b, a screen shot of a text image according to a second embodiment of the present invention. As shown in FIG. 10b, the background color of the canvas of the text image is white, the decoration chart of the canvas comprises patterns of cartoon and straight line combination, the text content in the text image is "listen and talk you want to marriage", the text is typeset according to the sequence from top to bottom and from left to right, the description width of each text, the text size, the position of the text in the canvas and the rotation angle of the text are all distinctive, wherein two characters of "marriage" are obviously larger than other characters, so that people can intuitively learn key information to be transmitted by the image.
As shown in fig. 10c, a screen shot of a text image according to a third embodiment of the present invention. As shown in FIG. 10c, the background color of the canvas of the text image is white, the decoration chart of the canvas comprises patterns of combination of flowers and straight lines, the text content in the text image is 'baby does not feel happy, has little emotion, i want to buy a package', the text is typeset according to the sequence from top to bottom, from left to right and from right to left, and the tracing width, the text size and the position of the text in the canvas of each text are all distinctive.
As shown in fig. 10d, a text image screen capturing schematic diagram according to a fourth embodiment of the present invention. As shown in FIG. 10d, the background color of the canvas of the text image is black, the decoration chart of the canvas comprises a fragment pattern, the text content in the text image is "small partner is fast held and not is not touching porcelain", the text is typeset according to the sequence from top to bottom and from left to right, the tracing width, the text size and the position of the text in the canvas of each text and the rotation angle of the text are all distinctive, wherein the two words are obviously larger than other words when being held, so that people can intuitively learn the key information to be transmitted by the image.
As shown in fig. 10e, a screen shot of a text image according to a fifth embodiment of the present invention. As shown in FIG. 10e, the background color of the canvas of the text image is white, the decoration chart of the canvas comprises patterns coated by ink, the text content in the text image is "no package can not be solved, if there are two packages", the text is typeset according to the sequence from top to bottom and from right to left, and the tracing width, the text size and the position of the text in the canvas of each text are all distinctive.
Further, the user can design the background color or texture of each text, the foreground color or texture of the text, the description color or texture of the text, or design a group of dynamic images with rendering effects of the screen capturing schematic diagrams of the text images shown in fig. 10a, 10b, 10c, 10d and 10e according to the individual requirements, wherein the group of dynamic images can comprise images corresponding to any one or combination of fig. 10a, 10b, 10c, 10d and 10e, so that the text images can transmit information from the aspects of text content, vision, color, animation and the like, thereby achieving the character display effect with vivid individuality and being more beneficial to the propagation of the text images.
Preferably, the image rendering attributes include, but are not limited to, at least one of the following or a combination thereof: canvas properties, text properties; canvas properties including, but not limited to, at least one of or a combination of: canvas size, canvas background color, a decoration map of the canvas, and text attributes including, but not limited to, at least one of or a combination of: the background color or texture of the text, the foreground color or texture of the text, the tracing width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of generating a special effect text image, comprising:
acquiring a first word stock, first text information and image rendering attributes;
generating a rendering template file according to the first word stock, the first text information and the image rendering attribute;
Reading the rendering template file and analyzing the rendering template file into corresponding template data;
generating a first image or a first image sequence according to the template data;
the method for generating the special effect text image further comprises the following steps:
acquiring a second word stock; and/or
Acquiring second text information;
generating a second image or a second image sequence according to the second word stock and/or the second text information;
the rendering effects of the first image and the second image are the same, and the rendering effects of the first image sequence and the second image sequence are the same;
the image rendering attributes include at least one of or a combination of: canvas properties, text properties;
the canvas properties include at least one of or a combination of the following: canvas size, canvas background color, decoration diagram of canvas;
the text attribute comprises at least one or a combination of the following: the background color or texture of the text, the foreground color or texture of the text, the tracing width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text.
2. The method of generating a special effect text image of claim 1,
The first word stock is the same as or different from the second word stock;
the first text information is the same as or different from the second text information.
3. The method of generating a special effect text image according to claim 1 or 2, further comprising, prior to the step of obtaining the first word stock:
a word stock file is predefined.
4. The method of generating a special effect text image according to claim 1 or 2, further comprising:
the image or the sequence of images is shown.
5. A system for generating a special effect text image, comprising:
the first acquisition unit is used for acquiring a first word stock, first text information and image rendering attributes;
the template generating unit is used for generating a rendering template file according to the first word stock, the first text information and the image rendering attribute;
the analysis unit is used for reading the rendering template file and analyzing the rendering template file into corresponding template data;
a first image generation unit for generating a first image or a first image sequence according to the template data;
the system for generating the special effect text image further comprises:
the second acquisition unit is used for acquiring a second word stock; and/or
The method is also used for acquiring second text information;
the second image generation unit is used for generating a second image or a second image sequence according to the second word stock and/or the second text information;
the rendering effects of the first image and the second image are the same, and the rendering effects of the first image sequence and the second image sequence are the same;
the image rendering attributes include at least one of or a combination of: canvas properties, text properties;
the canvas properties include at least one of or a combination of the following: canvas size, canvas background color, decoration diagram of canvas;
the text attribute comprises at least one or a combination of the following: the background color or texture of the text, the foreground color or texture of the text, the tracing width of the text, the size of the text, the position of the text in the canvas and the rotation angle of the text.
6. The system for generating a special effect text image as recited in claim 5, wherein,
the first word stock is the same as or different from the second word stock;
the first text information is the same as or different from the second text information.
7. The system for generating a special effect text image according to claim 5 or 6, further comprising, prior to the step of obtaining the first word stock:
And the predefining unit is used for predefining the word stock file.
8. The system for generating a special effect text image according to claim 5 or 6, further comprising:
and the display unit is used for displaying the image or the image sequence.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the processor is adapted to perform the steps of the method according to any of claims 1 to 4.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1 to 4.
CN201710392670.6A 2017-05-27 2017-05-27 Method and system for generating special effect text image and computer equipment Active CN108961361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710392670.6A CN108961361B (en) 2017-05-27 2017-05-27 Method and system for generating special effect text image and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710392670.6A CN108961361B (en) 2017-05-27 2017-05-27 Method and system for generating special effect text image and computer equipment

Publications (2)

Publication Number Publication Date
CN108961361A CN108961361A (en) 2018-12-07
CN108961361B true CN108961361B (en) 2023-06-27

Family

ID=64494836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710392670.6A Active CN108961361B (en) 2017-05-27 2017-05-27 Method and system for generating special effect text image and computer equipment

Country Status (1)

Country Link
CN (1) CN108961361B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111275794B (en) * 2019-12-09 2023-07-11 佛山欧神诺云商科技有限公司 Method, device and storage medium for automatically generating expression picture
CN111242881B (en) * 2020-01-07 2021-01-12 北京字节跳动网络技术有限公司 Method, device, storage medium and electronic equipment for displaying special effects
CN113392268A (en) * 2021-03-31 2021-09-14 百果园技术(新加坡)有限公司 Special effect text rendering method and device, electronic equipment and storage medium
CN113223117A (en) * 2021-05-12 2021-08-06 北京世纪好未来教育科技有限公司 Image processing method and related device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629917A (en) * 2012-03-15 2012-08-08 齐凡 Personalized information transmission method and transmission system
CN106201161B (en) * 2014-09-23 2021-09-03 北京三星通信技术研究有限公司 Display method and system of electronic equipment
CN105956894A (en) * 2016-04-15 2016-09-21 山东建筑大学 Model designing method and model designing system
CN106649209A (en) * 2016-12-30 2017-05-10 深圳天珑无线科技有限公司 Text display method and device

Also Published As

Publication number Publication date
CN108961361A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108961361B (en) Method and system for generating special effect text image and computer equipment
Moschini The" Face with Tears of Joy" Emoji. A Socio-Semiotic and Multimodal Insight into a Japan-America Mash-Up
US11507727B2 (en) Font rendering method and apparatus, and computer-readable storage medium
CN101699426A (en) Document format conversion system and method
CN108805960A (en) Composing Method of Mixing, device, computer readable storage medium and terminal
CN111221596B (en) Font rendering method, apparatus and computer readable storage medium
CN104572683A (en) Word stroke animation processing method and device
CN106126140B (en) A kind of method, apparatus and electronic equipment of rendering type
CN109388725A (en) The method and device scanned for by video content
CN106297477A (en) A kind of method and device generating digitized copybook
CN102902658A (en) Colorful character displaying method and device
CN111199138A (en) Method, system, server and storage medium for stroking bullet screen containing Emoji expression by using QML (QML)
Hurlburt Emoji: Lingua Franca or Passing Fancy?
Grannell et al. The essential guide to HTML5 and CSS3 web design
CN111399788B (en) Media file playing method and media file playing device
Carlsson et al. Future Potentials for ASCII art CAC. 3, Paris, France
Salim et al. Comparative study of low-cost tools to create effective educational infographics content
CN105138296A (en) Method and apparatus for splicing character by avatars of virtual audiences
KR20150024170A (en) A Method and Apparatus For Providing Layout Based On Handwriting Input
Calonaci Practical Responsive Typography
Huang et al. Designing infographics/visual icons of social network by referencing to the design concept of ancient oracle bone characters
Zhao et al. Interface adaption to elderly users: Effects of icon styles and semantic distance
CN113535017B (en) Method and device for processing and synchronously displaying drawing files and storage medium
Soegaard The power of white space in design
Hou Research on Flattening Style Design of Game Interface Based on Cognitive Psychology

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