Method and device for typesetting text content in picture, medium and equipment
A technology in pictures and text, applied in the computer field, can solve the problems of different font sizes, uncomfortable reading, different typeset formats, etc., to achieve the effect of ensuring aesthetics, uniform layout, and saving manpower
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] Such as figure 1 As shown, according to the specific implementation manner of the present disclosure, in the first aspect, the present disclosure provides a method for typesetting text content in a picture, which specifically includes the following method steps:
[0054] S102: According to the preset cutting model, each character in each line of text in the original text image is cut to obtain each character after cutting.
[0055] In this step, the preset cutting model is established according to the cutting algorithm. Through the preset cutting model, each character in each line of text in the original text image can be accurately cut to obtain each character after cutting.
[0056] In practical application, the preset cutting model is continuously trained to obtain a continuously optimized preset cutting model.
[0057] In the typesetting method provided by the present disclosure, the process of cutting characters in the original text picture is listed as follows: ...
Embodiment 2
[0105] Such as Image 6 As shown, according to the specific implementation manner of the present disclosure, in the second aspect, the present disclosure provides a device for typesetting text content in a picture,
[0106] The typesetting device includes a cutting unit 601, a calculation unit 602, and a typesetting unit 603, etc., specifically as follows:
[0107] The cutting unit 601 is configured to cut each character in each line of text in the original text image according to a preset cutting model to obtain each character after cutting;
[0108] The calculation unit 602 is used for calculating the average height of the character and the average distance between adjacent characters for each character cut out by the cutting unit 601, and according to the average height of the character, the average value of the distance between adjacent characters and The configuration parameters set by the user are calculated to preset the width of each line of text;
[0109] The typese...
Embodiment 3
[0135] Such as Figure 7 As shown, this embodiment provides an electronic device, which is used for a method for typesetting text content in a picture, and the electronic device includes: at least one processor; and is communicatively connected to the at least one processor memory; among them,
[0136]The memory stores instructions that can be executed by the one processor, and the instructions are executed by the at least one processor, so that the at least one processor can: only need to manually configure some parameters in batches, after typesetting The title picture will achieve a unified layout and be more in line with the display of the device screen, achieving an aesthetic effect similar to that of the text display; it not only saves manpower, but also ensures the aesthetics.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com