CN116527986A - Split-screen text display control method, device and storage medium - Google Patents

Split-screen text display control method, device and storage medium Download PDF

Info

Publication number
CN116527986A
CN116527986A CN202310468453.6A CN202310468453A CN116527986A CN 116527986 A CN116527986 A CN 116527986A CN 202310468453 A CN202310468453 A CN 202310468453A CN 116527986 A CN116527986 A CN 116527986A
Authority
CN
China
Prior art keywords
screen
text
sub
split
offset
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.)
Granted
Application number
CN202310468453.6A
Other languages
Chinese (zh)
Other versions
CN116527986B (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.)
AMPLESKY COMMUNICATION TECHNOLOGIES Ltd
Original Assignee
AMPLESKY COMMUNICATION TECHNOLOGIES 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 AMPLESKY COMMUNICATION TECHNOLOGIES Ltd filed Critical AMPLESKY COMMUNICATION TECHNOLOGIES Ltd
Priority to CN202310468453.6A priority Critical patent/CN116527986B/en
Publication of CN116527986A publication Critical patent/CN116527986A/en
Application granted granted Critical
Publication of CN116527986B publication Critical patent/CN116527986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a split-screen text display control method, equipment and a storage medium, wherein the method comprises the following steps: setting a split screen for the video conference, and determining text parameters added on each sub-screen; establishing a matrix structure body container for storing sub-screen split-screen information; finding out matrix data of the corresponding sub-split screen through the split screen field; calculating the width and the height of the text according to the font size; calculating the coordinates of the initial position of the text according to the text position and the matrix data of the sub-screen; calculating the distance of the initial position of the text to the basic coordinate according to the offset of the text; and transmitting the calculated coordinates of the initial position of the text, parameters such as text content, font size and the like and video stream to an encoder. The text setting of all the sub-screens can be completed through one-time setting, the operation is simpler, the number of the sub-screens is not limited, the office efficiency is improved, and the method and the device are particularly suitable for meeting video scenes.

Description

Split-screen text display control method, device and storage medium
Technical Field
The present disclosure relates to a video word processing method, and in particular, to a method, an apparatus, and a storage medium for controlling split screen text display.
Background
In a conference system, personalized text descriptions such as titles, banners, subtitles and the like need to be added to video pictures of a conference site, and in the process of adding text, different requirements are placed on the positions, sizes and fonts of the text displayed in the video pictures. The traditional conference system is to perform custom addition of characters on a conference terminal, including character positions, sizes, fonts and the like. Therefore, when the conference system needs to control the video pictures of a plurality of conference sites, the conference systems need to be spliced after setting up each conference site. The operation mode is complex, and the effect of changing the display of characters on all split screens by one operation can not be achieved. As the number of split screens increases, the number of times that text needs to be set increases, which certainly reduces office efficiency.
How to realize simplification, singleization and programming of Chinese character display control in a video picture of a conference place and provide convenience for custom setting of all word displays of a conference place in a conference system is a problem which needs to be solved currently.
Disclosure of Invention
According to the first aspect of the application, a split-screen text display control method is provided, the method can control text display on a plurality of sub-screens of a video display system (particularly a conference system) after split-screen, no matter how many split-screens are, only one time of setting or modifying text is needed, convenience is provided for custom setting of split-screen text display of all conference sites, and office efficiency is greatly improved.
The split-screen text display control method comprises the following steps:
acquiring text parameters of each sub-screen after screen division; the text parameters comprise text positions, font sizes and offsets;
the rear end is provided with a matrix structure body container, wherein the matrix structure body container comprises matrix structure body members of all sub-screens and is used for storing split screen information of all the sub-screens; the matrix data contained in the matrix structure body of the corresponding sub-screen is found out through the split screen field; the split screen information comprises the position and the size of each sub-screen;
calculating the width and the height of the text according to the font size of the text;
calculating the coordinates of the initial position of the text according to the text position and the matrix data of the sub-screen;
calculating the distance of the initial position of the text to the basic coordinate according to the offset of the text;
and transmitting the width and height of the text, the coordinates of the initial position of the text, the parameter information of the distance of the initial position of the text deviated from the basic coordinates and the video stream to an encoder to obtain a sub-screen text display picture at the designated position.
The split field refers to a parameter for determining the number of split screens. For example, the split field of the tri-split screen may be 3 (the value of the actual parameter is determined according to the actual situation), representing the tri-split screen.
Preferably, the structural data of the matrix structure includes left, top, width, height; the left is used for storing the position of the left frame of the sub-screen from the main screen, the top is used for storing the position of the sub-screen from the upper frame of the main screen, the width is used for storing the width of the sub-screen relative to the main screen, and the height is used for storing the height of the sub-screen relative to the main screen.
Preferably, the left, top, width, height is represented by a percentage structure, the percentage structure comprises a numerator and a denominator, and the position of the sub-screen in the whole screen can be confirmed after the structural data is formed into a fraction. For example, the data in the structure of a certain sub-screen is { {0,0}, {1,4}, {1,2}, and includes four arrays, wherein the first value of each array is a numerator, the second value is a denominator, and {0,1/4,1/2 }, i.e., the value corresponding to left, top, width, height is formed after combination. Left=0 indicates that the Left side frame of the sub-screen is shifted to the right by the width 0 of the total screen at the Left side frame of the total screen, namely, is overlapped; top=1/4 means that the frame on the sub-screen moves down by 1/4 of the total screen height on the total screen, i.e. 1/4 from the top; width=1/2, height=1/2 indicates the ratio of the width and height of the sub-screen to the total screen width and height, i.e., the sub-screen width and height are half of the total screen. Left, top are used to determine position, width, height are used to determine size.
Preferably, the calculating the coordinates of the initial position of the text includes the steps of:
(1) Dividing the screen into an upper layer and a lower layer, wherein each layer is divided into a left block, a middle block and a right block, and dividing the whole screen into six areas which are respectively an upper left area, a middle upper area, an upper right area, a lower left area, a lower middle area and a lower right area; each region has a fixed basic coordinate, and the positions of the six basic coordinates are respectively a left vertex, a middle vertex, a right vertex, a left bottom point, a middle bottom point and a right bottom point;
(2) Setting four offset values, namely an upper offset, a lower offset, a left offset and a right offset; the offset is offset according to the percentage of the screen size; regarding the width and height of the screen as 100%, and shifting 1% to the corresponding direction when one numerical value is added;
(3) And determining the position of the corresponding basic coordinate according to the text position, and calling a corresponding formula to calculate the initial position of the text according to the position of the basic coordinate.
Preferably, the calling the corresponding formula to calculate the initial position of the text includes:
when the left vertex is taken as a basic coordinate, the calculation formula of the initial position (x, y) of the text is as follows:
x=W*L+W*lo/100,
y=H*T+H*to/100;
when the middle vertex is taken as a basic coordinate, the calculation formula of the initial position (x, y) of the text is as follows:
x=W*L+(W*w-tw)/2,
y=H*T+H*to/100;
when the right vertex is taken as a basic coordinate, the calculation formula of the initial position (x, y) of the text is as follows:
x=W*L+W*w-tw-W*ro/100,
y=H*T+H*to/100;
when the left bottom point is taken as a basic coordinate, the calculation formula of the text initial position (x, y) is as follows:
x=W*L+W*lo/100,
y=H*T+H*h-th-H*bo/100;
when the mid-sole point is taken as a basic coordinate, the text initial position (x, y) is calculated as follows:
x=W*L+(W*w-tw)/2,
y=H*T+H*h-th-H*bo/100;
when the right bottom point is taken as a basic coordinate, the calculation formula of the text initial position (x, y) is as follows:
x=W*L+W*w-tw-W*ro/100,
y=H*T+H*h-th-H*bo/100;
other conversion formulas:
lo=-ro,
to=-bo;
wherein W is the screen width, H is the screen height, tw is the length of text, th is the width of text, L is the distance percentage of the sub-screen from the left frame, T is the distance percentage of the sub-screen from the upper frame, W is the width percentage of the sub-screen from the middle screen, H is the height percentage of the sub-screen from the total screen, lo is the distance (right offset) percentage from the left frame, ro is the distance (left offset) percentage from the right frame, to is the distance (lower offset) percentage from the upper frame, and bo is the distance (upper offset) percentage from the lower frame.
Preferably, in step (2), the offset is offset by pixel units, that is, each time a value is added, one pixel is offset in the corresponding direction.
According to a second aspect of the present application, there is provided an electronic device comprising: a processor and a memory;
the memory stores a computer program which when executed by a processor implements some or all of the steps in a split screen text display control method as described above.
According to a third aspect of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements some or all of the steps of a split screen text display control method as described above.
The beneficial effects that this application can produce include:
1) The split-screen text display control method provided by the application can finish the text custom setting on all the sub-screens at one time, so that the office efficiency is greatly improved;
2) The matrix structure provided by the application adopts the percentage structure to represent each member, so that the data quantity required to be stored can be reduced, and the problem that the precision of the calculated final result is reduced due to the fact that the data is stored as a specific value is solved;
3) When the initial position of the text is calculated, a calculation formula confirmation mode taking the basic coordinates as a reference is provided, the screen is divided into six areas, the text is arranged at six common positions, and if the text needs to be changed, the text can be shifted on the basic coordinates which are fixed respectively. The method is convenient to operate, and does not need to spend more effort to find the accurate position.
Drawings
FIG. 1 is a schematic view of two-dimensional coordinates of a screen according to an embodiment of the present application;
FIG. 2 is a flow chart of a calculation for calculating text position based on base coordinates in one embodiment of the present application;
FIG. 3 is a flowchart of overall calculation of a split screen text display control method according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a meeting place font setting and a conventional meeting system font setting implemented in an embodiment of the present application.
Detailed Description
The present application is described in detail below with reference to examples, but the present application is not limited to these examples.
The application provides a split screen text display control method which can calculate the accurate coordinates of the positions where characters appear more simply and display the characters on the required positions. The method comprises the following steps:
acquiring text parameters of each sub-screen after screen division; the text parameters comprise text positions, font sizes and offsets;
the rear end is provided with a matrix structure body container, wherein the matrix structure body container comprises matrix structure body members of all sub-screens and is used for storing split screen information of all the sub-screens; the matrix data contained in the matrix structure body of the corresponding sub-screen is found out through the split screen field; the split screen information comprises the position and the size of each sub-screen;
calculating the width and the height of the text according to the font size of the text;
calculating the coordinates of the initial position of the text according to the text position and the matrix data of the sub-screen;
calculating the distance of the initial position of the text to the basic coordinate according to the offset of the text;
and transmitting the width and height of the text, the coordinates of the initial position of the text, the parameter information of the distance of the initial position of the text deviated from the basic coordinates and the video stream to an encoder to obtain a sub-screen text display picture at the designated position.
The present application requires providing a general orientation and four offsets up, down, left, and right of the added text. Finding a fixed basic coordinate according to the approximate direction, shifting based on the basic coordinate according to the offset, finally determining the initial coordinate of the first text, adding the text content and the initial coordinate into an encoder, and coding by the encoder to write the text content to the appointed position of the video.
In one embodiment, the present application first secures six positions: the screen is divided into an upper layer and a lower layer, and each layer is divided into a left block, a middle block and a right block, so that the whole screen is divided into six areas which are respectively an upper left area, a middle upper area, an upper right area, a lower left area, a lower middle area and a lower right area. Each region has a fixed basic coordinate, and the positions of the six basic coordinates are respectively a left vertex, a middle vertex, a right vertex, a left bottom point, a middle bottom point and a right bottom point.
If the entire screen is put into a two-dimensional coordinate system, as shown in fig. 1, the lower left corner is (0, 0), the lower right corner is (1, 0), the upper left corner is (0, 1), and the upper right corner is (1, 1). In this two-dimensional coordinate system, the positions of the six base coordinates of the six region fixes can then be determined: the coordinates of the upper left region are (0, 1), the coordinates of the upper middle region are (0, 1/2), the coordinates of the upper right region are (1, 1), the coordinates of the lower left region are (0, 0), the coordinates of the lower middle region are (1/2, 0), and the coordinates of the lower right region are (1, 0).
According to the method, the screen is divided into six areas, the practical application is combined, the text can be conveniently arranged at six common positions, and if the text needs to be changed, the text can be shifted on the base coordinates fixed respectively, so that the operation is more convenient, and more efforts are not required to find the accurate position.
In one embodiment, the present application includes four offsets, up offset, down offset, left offset, right offset, respectively. The offset can be set according to the requirement by itself, and can be offset according to the pixel point as a unit, and also can be offset according to the percentage of the screen size. The pixel point is shifted in the corresponding direction every time a value is added, the pixel point is shifted in the corresponding direction, and the screen width and height are regarded as 100% according to the percentage shift, and the pixel point is shifted in the corresponding direction every time a value is added.
For different areas only part of the offset direction is valid. This is because each region is provided with a fixed base coordinate on which the offset is made.
The following describes the calculation of the coordinate positions of the characters according to the percentages, a split screen and single characters:
for the upper left region, the default base coordinates are at the left vertex on the screen, i.e., (0, 1), so only the right, lower two offset directions are valid. For example, the rightward shift amount is 1, that is, 1% of the screen length is shifted rightward on the basis of the basic coordinates, expressed in the form of coordinates (0.01,1).
For the middle-upper region, the default set base coordinates are at the middle vertex on the screen, i.e., (0.5, 1), and the middle is represented on the central axis, so only the lower offset direction is valid. For example, the downward offset is 1, i.e., 1% of the screen length is moved downward on the basis of the base coordinates. Because it is centered, it is necessary to shift the length of the letter to the left by a further half, expressed in coordinates as (0.5- (tw/2), 0.99), where tw is the letter length.
For the upper right region, the default set base coordinates are at the right vertex on the screen, i.e., (1, 1), so only the left and lower two offset directions are valid. For example, the left offset is 1, i.e., 1% of the screen length is shifted to the left on the basis of the base coordinates. Since the initial position of the text is calculated on the right side, it is necessary to move the text to the left by one more text length to ensure that the text is displayed in the form of an array (0.99-tw, 1), where tw is the text length.
For the lower left region, the default base coordinates are at the bottom left point on the screen, i.e., (0, 0), so only the two offset directions, right and upper, are valid. For example, the rightward shift amount is 1, that is, 1% of the screen length is shifted rightward on the basis of the basic coordinates, expressed in the form of coordinates (0.01,0).
For the mid-lower region, the default set base coordinates are at the mid-bottom point on the screen, i.e., (0.5, 0), and the center is represented on the central axis, so only the up-offset direction is valid. For example, the upward offset is 1, i.e., 1% of the screen length is moved upward on the basis of the base coordinates. Since it is centered, it is necessary to shift the length of the letter to the left by a half again, expressed in coordinates as (0.5- (tw/2), 0.01), where tw is the letter length.
For the lower right region, the default set base coordinates are at the bottom right point on the screen, i.e., (1, 0), so only the upper and left offset directions are valid. For example, the left offset is 1, i.e., 1% of the screen length is shifted to the left on the basis of the base coordinates. Since the area is on the right, the initial position of the text is calculated, so the text needs to be moved to the left by one text length to ensure that the text is in the screen, and is expressed in a coordinate form (0.99,0).
The coordinates calculated above are only the positions of the individual characters in the case of only one split screen. The practical application needs to be text composed of a plurality of characters, and the functions (banners, titles, subtitles, etc.) and the number of split screens (one split screen, two split screens, three split screens, etc.) are different. The following is a calculation formula (the offset is calculated by percentage) obtained based on the basic coordinates, and the calculation flow is shown in fig. 2.
Calculating the initial position (x, y) of the text:
when the left vertex is taken as a basic coordinate, the calculation formula is as follows:
x=W*L+W*lo/100,
y=H*T+H*to/100;
when the middle vertex is taken as a basic coordinate, the calculation formula is as follows:
x=W*L+(W*w-tw)/2,
y=H*T+H*to/100;
when the right vertex is taken as a basic coordinate, the calculation formula is as follows:
x=W*L+W*w-tw-W*ro/100,
y=H*T+H*to/100;
when the left bottom point is taken as a basic coordinate, the calculation formula is as follows:
x=W*L+W*lo/100,
y=H*T+H*h-th-H*bo/100;
when the midsole point is taken as a basic coordinate, the calculation formula is as follows:
x=W*L+(W*w-tw)/2,
y=H*T+H*h-th-H*bo/100;
when the right bottom point is taken as a basic coordinate, the calculation formula is as follows:
x=W*L+W*w-tw-W*ro/100,
y=H*T+H*h-th-H*bo/100;
other conversion formulas:
lo=-ro,
to=-bo;
wherein W is the screen width, H is the screen height, tw is the length of text, th is the width of text, L is the distance percentage of the sub-screen from the left frame, T is the distance percentage of the sub-screen from the upper frame, W is the width percentage of the sub-screen from the middle screen, H is the height percentage of the sub-screen from the total screen, lo is the distance (right offset) percentage from the left frame, ro is the distance (left offset) percentage from the right frame, to is the distance (lower offset) percentage from the upper frame, and bo is the distance (upper offset) percentage from the lower frame.
By passing the position information and text content to the encoder, text can be written to the specified location on the screen.
The method and the device can be better suitable for video conference scenes, and can support the position in each sub-screen under multiple split screens by calculating the positions of the added captions, banners and titles in the video conference. As shown in fig. 3, taking title setting in a video conference as an example, the overall calculation flow of the split screen text display control method described in the present application is as follows:
s1: after the video conference is set with the split screen (in this embodiment, the resolution is 1280×720), a title needs to be added to each sub-screen, and fields of relevant positions of the title, including the title position, the font size and the offset, are set, and these data are transmitted to the back end.
The title position is used to determine which of the six areas the title is in, to confirm that the title is offset based on which fixed base coordinates. The upper left region is selected for this embodiment.
Font size affects the height and width of the text in the screen and affects the location of the text's initial coordinates. The present embodiment selects a medium font size.
And the offset is offset in a specified direction on the basis of the basic coordinates, and is offset by a specified distance. This embodiment chooses to shift 1 percentage point to the right.
S2: the rear end receives the data and processes the data. The rear end is provided with a matrix structure body container for storing the position and the size of the sub-screen, and left, top, width, height members are stored in the structure body in the container, and each member is in a percentage structure, namely each member comprises a molecule and a denominator. left stores the position of the sub-screen from the left frame of the main screen; the top stores the position of the sub-screen from the frame on the main screen; width stores the width of the sub-screen relative to the total screen; the height stores the height of the sub-screen relative to the total screen. The size and position of the sub-screen of the multi-screen is stored in this structure. And finding out matrix data of the corresponding sub-split screen through the split screen field. And sending the matrix data, the title position, the font size, the offset and other data to a video text processing module.
In this embodiment, there are two members in the matrix structure container, namely, a sub-screen 1 and a sub-screen 2. The data in the structure of the sub-screen 1 is { {0,0}, {1,4}, {1,2}, and the data in the structure of the sub-screen 2 is { { {1,2}, {1,4}, {1,2}, and {1,2 }.
S3: the video text processing module calculates the width and the height of the text through the font size.
In this embodiment, since the coordinate position is the upper left region, the text size does not affect whether the text can be fully displayed in the video, and the text size does not need to be processed.
S4: the video text processing module calculates the coordinates of the initial position of the text by determining which calculation formula to call through the position of the title, and determines on which basic coordinates the title is based.
In this embodiment, the fixed base coordinates of the upper left region are (0, 1) as known from the title position, and the formula selected is a calculation formula based on the left vertex:
x=W*L+W*lo/100,
y=H*T+H*to/100;
wherein, (x, y) is the text initial position.
From the resolution, w=1280, h=720, and from the offset, lo=1, to=0.
S5: the video text processing module calculates the distance of the text initial position offset basic coordinates through the offset.
S6: and the video text processing module calculates the coordinates of the initial position of the text according to the selected formula and the determined data.
In the sub-screen 1, according to left= {0,0}, l=0×100% =0% can be calculated, so the carry-in formula can calculate x=1280×0+1280×1/100=12.8; from top= {1,4}, t=1/4×100% = 25% can be calculated, so substituting the formula can calculate y=720×0.25+720×0/100=180. The coordinates of the initial position of the text in the first sub-screen are finally found to be (12.8, 180).
In the sub-screen 2, according to left= {1,2}, l=1/2×100% = 50% can be calculated, so the carry-in formula can calculate x=1280×0.5+1280×1/100= 652.8; from top= {1,4}, t=1/4×100% = 25% can be calculated, so substituting the formula can calculate y=720×0.25+720×0/100=180. The coordinates of the initial position of the text in the second sub-screen are finally derived (652.8, 180).
S7: and transmitting the calculated coordinates of the initial position of the text, the text content, parameters such as font size and the like and video streams to an encoder, and finally obtaining a two-screen picture for displaying the sub-screen title at the designated position.
The text display method and device have great advantages for the text display of the multiple conference terminals in the conference system. Taking video conferencing as an example, conventional text settings are typically set up on separate sites, which are then spliced together, as shown in the bottom half of fig. 4. As the number of split screens increases, the number of times text is set increases, and the efficiency is definitely reduced. After each sub-conference site is spliced, text setting is performed on the whole conference site, as shown in the upper half of fig. 4. Therefore, no matter how many split screens are, only one text is needed to be set, and the efficiency is greatly improved.
In one embodiment, an electronic device described herein includes: a processor and a memory;
the memory stores a computer program which when executed by a processor implements some or all of the steps in a split screen text display control method as described above.
In one embodiment, a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements some or all of the steps of a split screen text display control method as described above.
The foregoing description is only a few examples of the present application and is not intended to limit the present application in any way, and although the present application is disclosed in the preferred examples, it is not intended to limit the present application, and any person skilled in the art may make some changes or modifications to the disclosed technology without departing from the scope of the technical solution of the present application, and the technical solution is equivalent to the equivalent embodiments.

Claims (8)

1. A split-screen text display control method is characterized by comprising the following steps:
acquiring text parameters of each sub-screen after screen division; the text parameters comprise text positions, font sizes and offsets;
the rear end is provided with a matrix structure body container, wherein the matrix structure body container comprises matrix structure body members of all sub-screens and is used for storing split screen information of all the sub-screens; the matrix data contained in the matrix structure body of the corresponding sub-screen is found out through the split screen field; the split screen information comprises the position and the size of each sub-screen;
calculating the width and the height of the text according to the font size of the text;
calculating the coordinates of the initial position of the text according to the text position and the matrix data of the sub-screen;
calculating the distance of the initial position of the text to the basic coordinate according to the offset of the text;
and transmitting the width and height of the text, the coordinates of the initial position of the text, the parameter information of the distance of the initial position of the text deviated from the basic coordinates and the video stream to an encoder to obtain a sub-screen text display picture at the designated position.
2. The split-screen text display control method according to claim 1, wherein the structural data of the matrix structure body includes left, top, width, height; the left is used for storing the position of the left frame of the sub-screen from the main screen, the top is used for storing the position of the sub-screen from the upper frame of the main screen, the width is used for storing the width of the sub-screen relative to the main screen, and the height is used for storing the height of the sub-screen relative to the main screen.
3. The split-screen text display control method according to claim 2, wherein left, top, width, height is represented by a percentage structure, and the percentage structure comprises a numerator and a denominator.
4. The split-screen text display control method according to claim 1, wherein the calculating coordinates of the initial position of the text comprises the steps of:
(1) Dividing the screen into an upper layer and a lower layer, wherein each layer is divided into a left block, a middle block and a right block, and dividing the whole screen into six areas which are respectively an upper left area, a middle upper area, an upper right area, a lower left area, a lower middle area and a lower right area; each region has a fixed basic coordinate, and the positions of the six basic coordinates are respectively a left vertex, a middle vertex, a right vertex, a left bottom point, a middle bottom point and a right bottom point;
(2) Setting four offset values, namely an upper offset, a lower offset, a left offset and a right offset; the offset is offset according to the percentage of the screen size; regarding the width and height of the screen as 100%, and shifting 1% to the corresponding direction when one numerical value is added;
(3) And determining the position of the corresponding basic coordinate according to the text position, and calling a corresponding formula to calculate the initial position of the text according to the position of the basic coordinate.
5. The split-screen text display control method of claim 4, wherein the calling the corresponding formula to calculate the text initial position includes:
when the left vertex is taken as a basic coordinate, the calculation formula of the initial position (x, y) of the text is as follows:
x=W*L+W*lo/100,
y=H*T+H*to/100;
when the middle vertex is taken as a basic coordinate, the calculation formula of the initial position (x, y) of the text is as follows:
x=W*L+(W*w-tw)/2,
y=H*T+H*to/100;
when the right vertex is taken as a basic coordinate, the calculation formula of the initial position (x, y) of the text is as follows:
x=W*L+W*w-tw-W*ro/100,
y=H*T+H*to/100;
when the left bottom point is taken as a basic coordinate, the calculation formula of the text initial position (x, y) is as follows:
x=W*L+W*lo/100,
y=H*T+H*h-th-H*bo/100;
when the mid-sole point is taken as a basic coordinate, the text initial position (x, y) is calculated as follows:
x=W*L+(W*w-tw)/2,
y=H*T+H*h-th-H*bo/100;
when the right bottom point is taken as a basic coordinate, the calculation formula of the text initial position (x, y) is as follows:
x=W*L+W*w-tw-W*ro/100,
y=H*T+H*h-th-H*bo/100;
other conversion formulas:
lo=-ro,
to=-bo;
wherein W is the screen width, H is the screen height, tw is the length of text, th is the width of text, L is the distance percentage of the sub-screen from the left frame, T is the distance percentage of the sub-screen from the upper frame, W is the width percentage of the sub-screen from the middle screen, H is the height percentage of the sub-screen from the total screen, lo is the distance percentage from the left frame, ro is the distance percentage from the right frame, to is the distance percentage from the upper frame, and bo is the distance percentage from the lower frame.
6. The method of claim 4, wherein in the step (2), the offset is offset in units of pixel points, i.e., each time a value is added, the offset is offset by one pixel point in the corresponding direction.
7. An electronic device, comprising: a processor and a memory;
the memory has stored thereon a computer program which, when executed by a processor, implements the split-screen text display control method as claimed in any one of claims 1 to 6.
8. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the split-screen text display control method according to any one of claims 1 to 6.
CN202310468453.6A 2023-04-26 2023-04-26 Split-screen text display control method, device and storage medium Active CN116527986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310468453.6A CN116527986B (en) 2023-04-26 2023-04-26 Split-screen text display control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310468453.6A CN116527986B (en) 2023-04-26 2023-04-26 Split-screen text display control method, device and storage medium

Publications (2)

Publication Number Publication Date
CN116527986A true CN116527986A (en) 2023-08-01
CN116527986B CN116527986B (en) 2024-06-04

Family

ID=87395380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310468453.6A Active CN116527986B (en) 2023-04-26 2023-04-26 Split-screen text display control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN116527986B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061381A (en) * 2018-10-16 2020-04-24 南京仁光电子科技有限公司 Screen global input control system and method
CN112689119A (en) * 2021-03-11 2021-04-20 全时云商务服务股份有限公司 Processing method and device for screen combination of recorded videos in cloud conference
US20210357170A1 (en) * 2018-09-28 2021-11-18 Boe Technology Group Co., Ltd. Method for determining offset distance of splicing screen and related apparatus
CN113687745A (en) * 2021-08-19 2021-11-23 深圳康佳电子科技有限公司 Interface display method, system and terminal of split screen window
CN114827718A (en) * 2022-06-27 2022-07-29 全时云商务服务股份有限公司 Method and device for self-adaptive alignment display of real-time video screen-combining characters in cloud conference
CN115344222A (en) * 2022-07-29 2022-11-15 江苏视睿迪光电有限公司 Image processing method, device, system, electronic device and storage medium
CN115988170A (en) * 2023-03-20 2023-04-18 全时云商务服务股份有限公司 Method and device for clearly displaying Chinese and English characters in real-time video screen combination in cloud conference

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210357170A1 (en) * 2018-09-28 2021-11-18 Boe Technology Group Co., Ltd. Method for determining offset distance of splicing screen and related apparatus
CN111061381A (en) * 2018-10-16 2020-04-24 南京仁光电子科技有限公司 Screen global input control system and method
CN112689119A (en) * 2021-03-11 2021-04-20 全时云商务服务股份有限公司 Processing method and device for screen combination of recorded videos in cloud conference
CN113687745A (en) * 2021-08-19 2021-11-23 深圳康佳电子科技有限公司 Interface display method, system and terminal of split screen window
CN114827718A (en) * 2022-06-27 2022-07-29 全时云商务服务股份有限公司 Method and device for self-adaptive alignment display of real-time video screen-combining characters in cloud conference
CN115344222A (en) * 2022-07-29 2022-11-15 江苏视睿迪光电有限公司 Image processing method, device, system, electronic device and storage medium
CN115988170A (en) * 2023-03-20 2023-04-18 全时云商务服务股份有限公司 Method and device for clearly displaying Chinese and English characters in real-time video screen combination in cloud conference

Also Published As

Publication number Publication date
CN116527986B (en) 2024-06-04

Similar Documents

Publication Publication Date Title
US8739060B2 (en) Method and system for displaying multiple aspect ratios of a viewport
US5640580A (en) Method and system for previewing computer output
JP4262229B2 (en) Display method
US20050102634A1 (en) Understandable navigation of an information array
US10659742B2 (en) Image generating apparatus and image display control apparatus
US20040261103A1 (en) Image display method and program
CN101420534B (en) Multiple image display method and apparatus
US11812188B2 (en) Method and device for displaying a screen shot
US7050072B2 (en) Method and system for specifying a pan path
CN115022703B (en) Rolling caption display method and device
US6215479B1 (en) Apparatus for displaying image with pointing character
JP2006513486A (en) Handheld device with display screen
CN110322424B (en) High-resolution image processing method and device, VR image display method and VR equipment
CN116527986B (en) Split-screen text display control method, device and storage medium
JP2005189937A (en) Gradation image forming device and method
CN114741016B (en) Operation method, device, electronic equipment and computer readable storage medium
US6816202B1 (en) Picture frame generating circuit and digital television system using the same
US20080062174A1 (en) Method and Device for the Display of Images
JP2002095014A (en) Stereo image displaying device, stereo image display method and storage medium
JP4537813B2 (en) 3D image display device
JP2021018722A (en) Display method and display unit
CN112734639B (en) Image display stitching method and system
CN113554659B (en) Image processing method, device, electronic equipment, storage medium and display system
US20210294963A1 (en) Italic character creation module and method
JPS6136235B2 (en)

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Rao Mingjing

Inventor after: Li Pingshi

Inventor after: Chen Xinan

Inventor after: Liu Xuan

Inventor before: Rao Mingjing

Inventor before: Chen Xinan

Inventor before: Liu Xuan

GR01 Patent grant
GR01 Patent grant