CN110990747A - Image generation method, device, equipment and storage medium - Google Patents

Image generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN110990747A
CN110990747A CN201911302817.3A CN201911302817A CN110990747A CN 110990747 A CN110990747 A CN 110990747A CN 201911302817 A CN201911302817 A CN 201911302817A CN 110990747 A CN110990747 A CN 110990747A
Authority
CN
China
Prior art keywords
feed detection
line feed
target character
line
detection container
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.)
Pending
Application number
CN201911302817.3A
Other languages
Chinese (zh)
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.)
Beijing Mind Creation Information Technology Co ltd
Original Assignee
Beijing Mind Creation Information 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 Beijing Mind Creation Information Technology Co ltd filed Critical Beijing Mind Creation Information Technology Co ltd
Priority to CN201911302817.3A priority Critical patent/CN110990747A/en
Publication of CN110990747A publication Critical patent/CN110990747A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses an image generation method, an image generation device, image generation equipment and a storage medium. The method comprises the following steps: sequentially acquiring a target character as a current processing target character; wherein the target character is used for generating a target image; determining the position of the current processing target character according to the line feed detection result of the line feed detection container, and rendering to generate an image; and returning to execute the operation of sequentially acquiring one target character as the current processing target character until all the target characters are processed. By the technical scheme, the problem that the line is not changed when the line of the character is to be changed and the problem that the line is mistakenly changed when the line of the character is not to be changed can be avoided, and accurate control over line changing of the character in the image generation process is realized.

Description

Image generation method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an image generation method, an image generation device, image generation equipment and a storage medium.
Background
In the image generation process, there is a slight difference between the image text and the corresponding text input by the computer, and the slight difference may cause an error after being superimposed, for example, a line is changed at a position where the text is not changed.
In the prior art, a non-precise control scheme is mostly adopted, for example, the number of characters in each line is fixed to avoid line feed errors, and line feed is cut off every time the number of characters reaches a fixed threshold value. However, the widths of different types of characters are different, for example, the width difference of characters of chinese characters, english characters and small languages is large, the width of a special character is not fixed, and further, the problem of inaccurate control due to different types of characters in a scheme of fixing the number of characters in each line to avoid line change errors is solved.
Disclosure of Invention
The embodiment of the invention provides an image generation method, device, equipment and storage medium, which are used for realizing accurate control of character line feed in an image generation process.
In a first aspect, an embodiment of the present invention provides an image generation method, including:
sequentially acquiring a target character as a current processing target character; wherein the target character is used for generating a target image;
determining the position of the current processing target character according to the line feed detection result of the line feed detection container, and rendering to generate an image;
and returning to execute the operation of sequentially acquiring one target character as the current processing target character until all the target characters are processed.
In a second aspect, an embodiment of the present invention further provides an image generating apparatus, including:
the current processing target character acquisition module is used for sequentially acquiring a target character as a current processing target character; wherein the target character is used for generating a target image;
the image generation rendering module is used for determining the position of the current processing target character according to the line feed detection result of the line feed detection container and rendering to generate an image;
and the circulating module is used for returning and executing the operation of sequentially acquiring one target character as the current processing target character until all the target characters are processed.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the image generation method according to any embodiment.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the image generating method according to any embodiment.
In the embodiment of the invention, when the target image is generated according to the target characters, the position of each target character is determined according to the line feed detection result of the current line feed detection container, so that the problems that the line feed is not performed when the character is to be fed and the line feed is mistaken when the character is not to be fed can be avoided, and the accurate control of the line feed of the character in the image generation process is realized.
Drawings
Fig. 1 is a flowchart of an image generation method according to an embodiment of the present invention;
fig. 2 is a flowchart of an image generation method according to a second embodiment of the present invention;
fig. 3 is a flowchart of an image generating method according to a third embodiment of the present invention;
FIG. 4 is a schematic timing diagram of a third embodiment of a program architecture;
fig. 5 is a schematic block diagram of an image generating apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of an image generation method according to an embodiment of the present invention, where this embodiment is applicable to a case where the web (front end, mobile end) has limited capability of controlling an image (e.g., poster, etc.) when generating an image according to a text image (e.g., only the starting position of each writing is controlled, and information such as the length and the number of lines of the written content is not known), and this method may be performed by an image generation apparatus according to any embodiment of the present invention, which may be composed of hardware and/or software and may be generally integrated in a computer device, for example, a mobile terminal such as a mobile phone, a tablet computer, etc.
As shown in fig. 1, the image generation method provided in this embodiment is applied to a client, and specifically includes the following steps:
s110, sequentially acquiring a target character as a current processing target character; wherein the target character is used to generate a target image.
The target character refers to a character used for generating a target image. That is, the target image is generated according to the target characters, and the target image at least includes the target character pictures and may also include some other elements, such as non-character pictures and the like.
And sequentially acquiring each target character according to the arrangement sequence of the target characters for processing, wherein the arrangement sequence of the target characters refers to the arrangement sequence of the target characters in the target image.
Specifically, the target character is a character input by a user and used for generating a target image. When the target character used to generate the target image is a character input by the user, the superimposition of the slight differences between the image text and the corresponding text input by the computer is more likely to cause errors, such as line feed where the text is not to be fed. Correspondingly, the arrangement sequence of the target characters is the character input sequence of the user.
And S120, determining the position of the current processing target character according to the line feed detection result of the line feed detection container, and rendering to generate an image.
The line feed detection container is a virtually erected web container, and is used for realizing line feed detection of target characters, namely determining which target character is subjected to line feed operation. For example, the line feed detection container compares the character width of the current line with the total line width of the target image in real time to determine whether line feed is required, when the character width of the current line is greater than or equal to the total line width of the target image, the line feed detection result of the line feed detection container is that line feed is required, and when the character width of the current line is less than the total line width of the target image, the line feed detection result of the line feed detection container is that line feed is not required.
When the current processing target character is processed, if the line feed detection result of the line feed detection container is that line feed is required, the position of the current processing target character is the position of the first character of the next line, and if the line feed detection result of the line feed detection container is that line feed is not required, the position of the current processing target character is the position of the character immediately preceding the current line. Specifically, when the position of the current processing target character is determined, the image generation command may be used to implement, for example, when the position of the current processing target character is determined to be the first character position of the next line, the image generation command is modified, the rendering coordinate is updated (for example, line feed rendering), the rendering coordinate of the current processing target character is determined to be the start coordinate of the next line, and when the position of the current processing target character is determined to be the position of the character immediately preceding the current line, the in-line rendering may be continued.
As a specific implementation manner, the determining the position of the current processing target character according to the line feed detection result of the line feed detection container may specifically be:
adding the current processing target character to the line feed detection container;
determining the position of the current processing target character according to the line height change condition of the line feed detection container;
the line width of the line feed detection container is a width matched with the width of the target image, for example, the line width of the line feed detection container is completely consistent with the width of the target image, or the line width of the line feed detection container is slightly smaller than the width of the target image; the initial height value of the line feed detection container is a height that matches the height of the target image, and for example, the height of the line feed detection container completely matches the height of the target image, or the height of the line feed detection container is slightly larger than the height of the target image (the height of the line feed detection container needs to be 2 times the height of the target image).
When the target character is continuously added to the line feed detection container, the line width of the line feed detection container is not changed, and the line height of the line feed detection container becomes large. Furthermore, it may be determined whether line feed is required according to a line height change condition of the line feed detection container, that is, when the line height of the line feed detection container changes, it is determined that line feed is required, and when the line height of the line feed detection container does not change, it is determined that line feed is not required.
Specifically, the determining the position of the current processing target character according to the line height change condition of the line feed detection container includes:
if the line feed detection container is changed in line height, determining that the position of the current processing target character is the position of the next first line character, updating the line feed detection container, and adding the current processing target character to the updated line feed detection container;
and if the line feed detection container has unchanged line height, determining the position of the current processing target character as the position next to the character on the current line.
After the current processing target character is added to the line feed detection container, if the line height of the line feed detection container is changed, it is indicated that the line feed should be performed at the current processing target character, that is, the current processing target character is taken as the first character of the next line. And then, updating and restoring the line feed detection container, and adding the current processing target character into the updated line feed detection container again, so that the updated line feed detection container can realize the detection of the next line of target characters.
After the current processing target character is added into the line feed detection container, if the line height of the line feed detection container is not changed, it indicates that line feed is not needed at the current processing target character, that is, the current processing target character is placed next to a character on the current line.
As an optional implementation manner, the updating the line feed detection container, and adding the current processing target character to the updated line feed detection container may specifically be:
emptying the line feed detection container, and adding the current processing target character into the line feed detection container again.
In the embodiment, only one line feed detection container needs to be virtually erected, and when the line height of the line feed detection container changes, the line feed detection of the next line of target characters can be realized only by emptying the line feed detection container.
And S130, returning to execute the operation of sequentially acquiring one target character as the current processing target character until all the target characters are processed.
And continuously acquiring the next target character according to the sequence of the target characters as the current target character to determine the position of the current target character in the target image, and rendering to generate an image until all the target characters are processed, thereby finishing the rendering of the whole target image.
In the embodiment of the invention, when the target image is generated according to the target characters, the position of each target character is determined according to the line feed detection result of the current line feed detection container, so that the problems that the line is not fed when the character is to be fed and the line is not fed by mistake when the character is not to be fed can be avoided, and the accurate control of the line feeding of the character in the image generation process is realized, wherein the target characters comprise but not limited to Chinese and English characters, small-language characters, special symbols, facial expression and the like.
Example two
On the basis of the foregoing embodiment, this embodiment provides another optional implementation manner, where the line feed detection container is updated, and the current processing target character is added to the updated line feed detection container, specifically:
virtually erecting a line feed detection container as a new line feed detection container to replace the current line feed detection container, and adding the current processing target character to the new line feed detection container again;
and the new line feed detection container is used for determining the position of a target character after the current processing target character.
In the present embodiment, it is necessary to virtually span a plurality of line feed detection containers, and the total number of line feed detection containers to be finally spanned is equal to the total number of lines of the target character in the target image. The multiple line feed detection containers are not virtually erected in a unified mode during initialization, but a next line feed detection container is virtually erected only when a previous line feed detection container determines that line feed is needed, namely only a first line feed detection container is virtually erected during initialization.
As shown in fig. 2, the image generation method provided by the present embodiment includes the following steps:
s210, initializing, and virtually erecting a line feed detection container.
And S220, sequentially acquiring a target character as the current processing target character.
Specifically, after the user inputs all target characters for generating the target image, one target character is sequentially acquired according to the arrangement sequence of the target characters for processing.
And S230, adding the current processing target character into the line feed detection container.
The line width of the line feed detection container is consistent with the width of the target image, and the initial height value of the line feed detection container is consistent with the height of the target image.
S240, judging whether the line height of the line feed detection container changes or not, if so, executing S250, and if not, executing S280.
And S250, determining the position of the current processing target character as the position of the next initial character, and rendering to generate an image.
And S260, judging whether all the target characters are processed or not, if not, executing S270, and if so, executing S2100.
S270, virtually erecting a line feed detection container as a new line feed detection container to replace the current line feed detection container, adding the current processing target character into the updated line feed detection container, and executing S220.
S280, determining the position of the current processing target character as the position of a character adjacent to the current line, and rendering to generate an image.
And S290, judging whether all the target characters are processed, if not, executing S220, and if so, executing S2100.
And S2100, finishing rendering to obtain a target image.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
In the technical scheme, for each target character, whether the position of the target character is the position of the first character of the next line or not is determined according to whether the line height of the line feed detection container changes currently or not, so that the problems that the line is not fed when the character is to be fed and the line is not fed by mistake when the character is not to be fed are avoided, and the accurate control of line feeding of the character in the image generation process is realized.
EXAMPLE III
On the basis of the above embodiments, the present embodiment provides a specific implementation manner. As shown in fig. 3, the image generation method provided by the present embodiment includes the following steps:
s310, initializing, and virtually erecting a line feed detection container.
And S320, sequentially acquiring a target character as the current processing target character.
Specifically, after the user inputs all target characters for generating the target image, one target character is sequentially acquired according to the arrangement sequence of the target characters for processing.
S330, adding the current processing target character into the line feed detection container.
The line width of the line feed detection container is consistent with the width of the target image, and the initial height value of the line feed detection container is consistent with the height of the target image.
And S340, judging whether the line height of the line feed detection container is changed, if so, executing S350, and if not, executing S380.
And S350, determining the position of the current processing target character as the position of the next first character, and rendering to generate an image.
S360, emptying the line feed detection container, and adding the current processing target character into the line feed detection container again.
And S370, judging whether all the target characters are processed, if not, executing S320, and if so, executing S390.
And S380, determining the position of the current processing target character as the position of a character next to the current line, rendering the generated image, and executing S370.
And S390, finishing rendering to obtain a target image.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
For ease of understanding, FIG. 4 shows a general timing diagram of a program architecture. Referring to fig. 4, the initialization operation of the image generating apparatus in the present embodiment occurs at timing 6 in the figure, and the operation validation process of the image generating method occurs at timing 23-timing 24 in the figure.
For those parts of this embodiment that are not explained in detail, reference is made to the aforementioned embodiments, which are not repeated herein.
In the technical scheme, for each target character, whether the position of the target character is the position of the first character of the next line or not is determined according to whether the line height of the line feed detection container changes currently or not, so that the problems that the line is not fed when the character is to be fed and the line is not fed by mistake when the character is not to be fed are avoided, and the accurate control of line feeding of the character in the image generation process is realized. Meanwhile, the line feed detection of multiple lines of target characters is realized only by one line feed detection container, so that the memory occupation is reduced, and the execution efficiency is improved.
Example four
Fig. 5 is a schematic block configuration diagram of an image generating apparatus according to a fourth embodiment of the present invention, where this embodiment is applicable to a case where the web (front end, mobile end) has limited capability of controlling images (e.g., only the starting position of each writing is controlled, and the length, the number of lines, and other information of the written content are not known) when generating images (e.g., posters, and the like) according to text images, and the apparatus may be implemented in software and/or hardware, and may be generally integrated in a computer device, for example, a mobile terminal such as a mobile phone, a tablet computer, and the like.
As shown in fig. 5, the apparatus includes: a current processing target character acquisition module 510, an image generation rendering module 520, and a loop module 530. Wherein the content of the first and second substances,
a current processing target character obtaining module 510, configured to sequentially obtain a target character as a current processing target character; wherein the target character is used for generating a target image;
an image generating and rendering module 520, configured to determine the position of the current processing target character according to a line feed detection result of the line feed detection container, and render and generate an image;
and the loop module 530 is configured to return to execute the operation of sequentially obtaining one target character as the current processing target character until all the target characters are processed.
In the embodiment of the invention, when the target image is generated according to the target characters, the position of each target character is determined according to the line feed detection result of the current line feed detection container, so that the problems that the line feed is not performed when the character is to be fed and the line feed is mistaken when the character is not to be fed can be avoided, and the accurate control of the line feed of the character in the image generation process is realized.
Further, the image generation rendering module 520 includes: an adding unit and a character position determining unit, wherein,
the adding unit is used for adding the current processing target character into the line feed detection container;
the character position determining unit is used for determining the position of the current processing target character according to the line height change condition of the line feed detection container;
the line width of the line feed detection container is a width matched with the width of the target image, and the initial line height value of the line feed detection container is a height matched with the line height of the target image.
Further, the character position determination unit is specifically configured to determine that the position of the current processing target character is a next line first character position if the line height of the line feed detection container changes, update the line feed detection container, and add the current processing target character to the updated line feed detection container; and if the line feed detection container has unchanged line height, determining the position of the current processing target character as the position next to the character on the current line.
In an example, the character position determination unit is specifically configured to determine that the position of the current processing target character is a next line first character position if the line height of the line feed detection container is changed, empty the line feed detection container, and re-add the current processing target character to the line feed detection container.
In another example, the character position determination unit is specifically configured to determine that the position of the current processing target character is a next line first character position if the line height of the line feed detection container is changed, virtually erecting a line feed detection container as a new line feed detection container, replacing the current line feed detection container, and re-adding the current processing target character to the new line feed detection container; and the new line feed detection container is used for determining the position of a target character after the current processing target character.
Specifically, the target character is a character input by a user and used for generating a target image.
The image generation device provided by the embodiment of the invention can execute the image generation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the image generation method.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a computer apparatus according to a fifth embodiment of the present invention, as shown in fig. 6, the computer apparatus includes a processor 60, a memory 61, an input device 62, and an output device 63; the number of processors 60 in the computer device may be one or more, and one processor 60 is taken as an example in fig. 6; the processor 60, the memory 61, the input device 62 and the output device 63 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 6.
The memory 61, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the image generation method in the embodiment of the present invention (for example, the current processing-target character acquisition module 510, the image generation rendering module 520, and the circulation module 530 in the image generation apparatus shown in fig. 5). The processor 60 executes various functional applications of the computer device and data processing by running software programs, instructions, and modules stored in the memory 61, that is, implements the image generation method described above.
The memory 61 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 61 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 61 may further include memory located remotely from the processor 60, which may be connected to a computer device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 62 may be used to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the computer apparatus. The output device 63 may include a display device such as a display screen.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, which when executed by a computer processor is configured to perform an image generating method, the method including:
sequentially acquiring a target character as a current processing target character; wherein the target character is used for generating a target image;
determining the position of the current processing target character according to the line feed detection result of the line feed detection container, and rendering to generate an image;
and returning to execute the operation of sequentially acquiring one target character as the current processing target character until all the target characters are processed.
Of course, the computer program of the computer-readable storage medium storing the computer program provided in the embodiments of the present invention is not limited to the above method operations, and may also perform related operations in the image generation method provided in any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the image generating apparatus, the included units and modules are only divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An image generation method, comprising:
sequentially acquiring a target character as a current processing target character; wherein the target character is used for generating a target image;
determining the position of the current processing target character according to the line feed detection result of the line feed detection container, and rendering to generate an image;
and returning to execute the operation of sequentially acquiring one target character as the current processing target character until all the target characters are processed.
2. The method of claim 1, wherein determining the position of the current processing target character according to a line feed detection result of a line feed detection container comprises:
adding the current processing target character to the line feed detection container;
determining the position of the current processing target character according to the line height change condition of the line feed detection container;
the line width of the line feed detection container is a width matched with the width of the target image, and the initial line height value of the line feed detection container is a height matched with the line height of the target image.
3. The method of claim 2, wherein determining the position of the current processing target character according to the line feed detection container line height variation comprises:
if the line feed detection container is changed in line height, determining that the position of the current processing target character is the position of the next first line character, updating the line feed detection container, and adding the current processing target character to the updated line feed detection container;
and if the line feed detection container has unchanged line height, determining the position of the current processing target character as the position next to the character on the current line.
4. The method of claim 3, wherein the updating the line feed detection container and adding the current processing target character to the updated line feed detection container comprises:
emptying the line feed detection container, and adding the current processing target character into the line feed detection container again.
5. The method of claim 3, wherein the updating the line feed detection container and adding the current processing target character to the updated line feed detection container comprises:
virtually erecting a line feed detection container as a new line feed detection container to replace the current line feed detection container, and adding the current processing target character to the new line feed detection container again;
and the new line feed detection container is used for determining the position of a target character after the current processing target character.
6. The method of any one of claims 1-5, wherein the target character is a character input by a user for generating a target image.
7. An image generation apparatus, comprising:
the current processing target character acquisition module is used for sequentially acquiring a target character as a current processing target character; wherein the target character is used for generating a target image;
the image generation rendering module is used for determining the position of the current processing target character according to the line feed detection result of the line feed detection container and rendering to generate an image;
and the circulating module is used for returning and executing the operation of sequentially acquiring one target character as the current processing target character until all the target characters are processed.
8. The apparatus of claim 7, wherein the image generation rendering module comprises:
an adding unit, configured to add the current processing target character to the line feed detection container;
the character position determining unit is used for determining the position of the current processing target character according to the line height change condition of the line feed detection container;
the line width of the line feed detection container is a width matched with the width of the target image, and the initial line height value of the line feed detection container is a height matched with the line height of the target image.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the image generation method of any one of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the image generation method of any one of claims 1 to 6.
CN201911302817.3A 2019-12-17 2019-12-17 Image generation method, device, equipment and storage medium Pending CN110990747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911302817.3A CN110990747A (en) 2019-12-17 2019-12-17 Image generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911302817.3A CN110990747A (en) 2019-12-17 2019-12-17 Image generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110990747A true CN110990747A (en) 2020-04-10

Family

ID=70094861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911302817.3A Pending CN110990747A (en) 2019-12-17 2019-12-17 Image generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110990747A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326458A (en) * 2021-05-31 2021-08-31 山东云缦智能科技有限公司 Processing method for multi-line text truncation display based on Javascript

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08287276A (en) * 1995-04-10 1996-11-01 Canon Inc Character layout device
US20140195902A1 (en) * 2013-01-09 2014-07-10 Beijing Founder Electronics Co., Ltd. Method for mixedly typesetting multi-language text
CN105184838A (en) * 2015-09-21 2015-12-23 深圳市金立通信设备有限公司 Picture processing method and terminal
CN105893342A (en) * 2015-12-29 2016-08-24 乐视移动智能信息技术(北京)有限公司 Text information processing method and device
US10109092B1 (en) * 2015-03-24 2018-10-23 Imagical LLC Automated text layout, color and other stylization on an image or video, and the tracking and application of user color preferences
CN109145272A (en) * 2018-07-27 2019-01-04 广州视源电子科技股份有限公司 Text rendering and layout method, device, equipment and storage medium
CN109743613A (en) * 2018-12-29 2019-05-10 腾讯音乐娱乐科技(深圳)有限公司 A kind of method for processing caption, device, terminal and storage medium
CN109978972A (en) * 2019-03-20 2019-07-05 珠海天燕科技有限公司 A kind of method and device of copy editor in picture
CN110278141A (en) * 2018-03-14 2019-09-24 腾讯科技(深圳)有限公司 A kind of processing method of instant communication information, device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08287276A (en) * 1995-04-10 1996-11-01 Canon Inc Character layout device
US20140195902A1 (en) * 2013-01-09 2014-07-10 Beijing Founder Electronics Co., Ltd. Method for mixedly typesetting multi-language text
US10109092B1 (en) * 2015-03-24 2018-10-23 Imagical LLC Automated text layout, color and other stylization on an image or video, and the tracking and application of user color preferences
CN105184838A (en) * 2015-09-21 2015-12-23 深圳市金立通信设备有限公司 Picture processing method and terminal
CN105893342A (en) * 2015-12-29 2016-08-24 乐视移动智能信息技术(北京)有限公司 Text information processing method and device
CN110278141A (en) * 2018-03-14 2019-09-24 腾讯科技(深圳)有限公司 A kind of processing method of instant communication information, device and storage medium
CN109145272A (en) * 2018-07-27 2019-01-04 广州视源电子科技股份有限公司 Text rendering and layout method, device, equipment and storage medium
CN109743613A (en) * 2018-12-29 2019-05-10 腾讯音乐娱乐科技(深圳)有限公司 A kind of method for processing caption, device, terminal and storage medium
CN109978972A (en) * 2019-03-20 2019-07-05 珠海天燕科技有限公司 A kind of method and device of copy editor in picture

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326458A (en) * 2021-05-31 2021-08-31 山东云缦智能科技有限公司 Processing method for multi-line text truncation display based on Javascript
CN113326458B (en) * 2021-05-31 2022-06-21 山东浪潮超高清视频产业有限公司 Processing method for multi-line text truncation display based on Javascript

Similar Documents

Publication Publication Date Title
KR20190082297A (en) App data processing method and apparatus, and storage medium
CN107943363B (en) Background image configuration method and device, interactive intelligent panel and storage medium
CN113190781B (en) Page layout method, device, equipment and storage medium
CN112055244B (en) Image acquisition method and device, server and electronic equipment
CN110472701A (en) Text error correction method, device, electronic equipment and storage medium
CN111381748A (en) Image display method, device, equipment and storage medium
CN113703893A (en) Page rendering method, device, terminal and storage medium
CN110990747A (en) Image generation method, device, equipment and storage medium
EP3301908A1 (en) Numerical image conversion method and device, and storage medium and device
CN110502975B (en) Batch processing system for pedestrian re-identification
CN116933728A (en) Text processing method, electronic device and storage medium
CN115454365A (en) Picture processing method and device, electronic equipment and medium
US11580292B2 (en) Style transfer
CN111079771B (en) Method, system, terminal equipment and storage medium for extracting characteristics of click-to-read image
US11074392B2 (en) Information processing apparatus and non-transitory computer readable medium for switching between an attribute information mode and an image information mode
CN113296841A (en) Application program processing method, device, equipment and medium
CN109492195B (en) Font loading method and device, terminal and storage medium
CN115964084A (en) Data interaction method, electronic equipment and storage medium
US11677902B2 (en) Data processing method and related product
CN113553865A (en) Information display method and device, electronic equipment and storage medium
CN110895592B (en) Link starting method, device, equipment and medium on mobile terminal
CN113127260A (en) Display exception handling method, device, equipment and medium
CN112329407A (en) Method and device for adding data in table and electronic equipment
CN113672332B (en) Window display method, device, apparatus, storage medium, and program
CN113111713B (en) Image detection method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200410