Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2020-01-24
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF12 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Titles in this screenshot format will not be very beautiful when used on electronic devices. The main reason is that the font size is difficult to control
If the question itself has a lot of words in one line, and it is displayed on a device with a limited screen width, the picture needs to be scaled to a smaller font size in order to fully display all the pictures of a question, which will make reading very uncomfortable
In addition, for different teaching aids and test papers, the typesetting format and font are different, which will lead to different number of words in a row of different picture-cutting questions, which will lead to different pictures of each question when displaying multiple questions on the same device. The font sizes on the
[0004] To sum up, entering the title into text will lead to a very high input cost. Although the cost of cutting the title into a picture is low, it will result in a very unsightly display on the electronic terminal screen

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for typesetting text content in picture, medium and equipment
  • Method and device for typesetting text content in picture, medium and equipment
  • Method and device for typesetting text content in picture, medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and device for typesetting text content in a picture, a medium and electronic equipment. The method for typesetting text content in a picture comprises the steps: segmenting each character in each line of text in an original text picture according to a preset segmentation model, and obtaining each segmented character; for each character, calculating the height average value of the characters and the average value of the distances between the adjacent characters, and calculating the width of each preset row of texts according to the height average value of the characters, the average value of the distances between the adjacent characters and configuration parameters set by a user; and according to the preset width of each row of texts, re-typesetting each rowof text images of the original text picture to obtain a target text picture. According to the method and device for typesetting text content in a picture by the invention, only some parameters need to be manually configured in batches, and the typeset title pictures can reach the uniform layout and more accord with equipment screen display, and the attractive effect similar to text display is achieved; and not only is manpower saved, but also attractive appearance is ensured.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device, medium and equipment for typesetting text content in pictures. Background technique [0002] The scale of the education and training market has been expanding. In recent years, online education has also developed rapidly. These education companies need to build their own question banks. Scanning paper test papers and teaching aids into pictures and then entering them into the system is an effective way to build question banks. Entering title pictures as text requires a lot of manpower, especially the editing and entry of formulas, which requires some professional knowledge of formula typesetting, which will lead to very high cost of title catalog entry. [0003] In order to save the cost of topic catalog entry, a simple solution is to only cut out the pictures corresponding to the topic, one or several pictures for each topic, and no subsequent text e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/186
Inventor 苗广艺祝斌黄灿
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products