CN109756696B - Station caption adding method, video conference image generating method, system, device and medium - Google Patents

Station caption adding method, video conference image generating method, system, device and medium Download PDF

Info

Publication number
CN109756696B
CN109756696B CN201910047437.3A CN201910047437A CN109756696B CN 109756696 B CN109756696 B CN 109756696B CN 201910047437 A CN201910047437 A CN 201910047437A CN 109756696 B CN109756696 B CN 109756696B
Authority
CN
China
Prior art keywords
station caption
size
channel image
image
caption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910047437.3A
Other languages
Chinese (zh)
Other versions
CN109756696A (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.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda 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 Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN201910047437.3A priority Critical patent/CN109756696B/en
Publication of CN109756696A publication Critical patent/CN109756696A/en
Application granted granted Critical
Publication of CN109756696B publication Critical patent/CN109756696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a station caption adding method, a video conference image generating method, a system, equipment and a medium, wherein the station caption adding method comprises the following steps: acquiring the display size of each channel image in the video conference image; acquiring the starting point position, the display content and the size of the station caption to be added in the corresponding channel image; judging whether the station caption exceeds the display range of the corresponding channel image according to the display size of the channel image corresponding to the station caption; if the channel image exceeds the channel image, reducing the size of the station caption to enable the station caption to be positioned in the display range of the corresponding channel image; and adding the station caption to the corresponding channel image according to the size of the station caption, the display content and the position of the starting point. By adopting the invention, the authority for setting the size of the station caption is released to the user, the user is allowed to select the size of the station caption in a certain range, and the condition that the station caption only can display a part of the station caption or exceeds the terminal images of other channels is avoided.

Description

Station caption adding method, video conference image generating method, system, device and medium
Technical Field
The invention relates to the technical field of image processing, in particular to a station caption adding and video conference image generating method, system, equipment and medium.
Background
A video conferencing system generally comprising: video conference terminals, Multipoint control units (MCUs for short) and other audio and video acquisition and output devices. Among them, a multipoint control unit (MCU for short) is an important component of the video processing platform. In the video conference process, various different terminals call in the MCU for centralized management and control to form a video conference network. The video processing is one of the important functions of the MCU, and is responsible for processing videos from each terminal, combining videos from multiple terminals into a video stream with a predetermined resolution, and sending the video stream to each receiving terminal.
In the multipoint conference, the multi-screen function allows the user to see videos of a plurality of call terminals at the same time, and station marks can be displayed in each screen to indicate the source of the images, so that each user can select the terminal to watch according to own intention. In the existing system, because the size of the synthesized picture is limited, the size of the terminal picture of each channel is limited according to the synthesis style, so that the size of the station caption which can be displayed by each channel is also limited, in order to ensure that the station caption can be normally displayed, the character size of the station caption is not allowed to be set by a user, when the station caption is added, a default character size is calculated to generate the station caption, and due to the reasons of an algorithm and the like, the generated station caption is smaller, and the effect is not ideal.
Disclosure of Invention
The invention aims to provide a station caption adding method, a video conference image generating method, a station caption adding system, a video conference image generating device and a video conference image generating medium, wherein the authority of setting the size of the station caption is released to a user, the user is allowed to select the size of the station caption in a certain range, and the condition that the station caption can only display one part or exceeds the terminal images of other channels is avoided.
The embodiment of the invention provides a station caption adding method, which is used for adding at least one station caption in a video conference image, wherein each station caption corresponds to a channel image in the video conference image;
the station caption adding method comprises the following steps:
acquiring the display size of each channel image in the video conference image;
acquiring the starting point position, the display content and the original station caption size of the station caption needing to be added in the corresponding channel image;
judging whether the station caption exceeds the display range of the corresponding channel image according to the display size of the channel image corresponding to the station caption;
if the channel icon exceeds the display range of the channel image, reducing the size of the station caption to obtain the reduced size of the station caption, enabling the station caption to be located in the display range of the corresponding channel image, and taking the reduced size of the station caption as the size of the station caption needing to be added;
adding the station caption to the corresponding channel image according to the reduced size of the station caption, the display content and the position of the starting point;
and if the station caption size does not exceed the original size, the display content and the starting point position, adding the station caption to the corresponding channel image.
Optionally, the method for acquiring the display content and the original size of the station caption to be added in the corresponding channel image includes the following steps:
acquiring the character content to be displayed and the character size of the characters in the station caption to be added;
and calculating the character word number in the character content, and calculating the height and the width of the station caption according to the character word number and the character size of the characters.
Optionally, the display size of the channel image includes a width of the channel image, the size of the stage mark includes a width of the stage mark, and a position of a starting point of the stage mark in the corresponding channel image includes an abscissa of the starting point of the stage mark, where a lower left corner or an upper left corner of the channel image is taken as an origin of coordinates;
the method for judging whether the station caption needing to be added exceeds the display range of the corresponding channel image comprises the following steps:
calculating the width difference between the horizontal coordinate of the starting point of the station caption and the width of the corresponding channel image after adding the width of the station caption, wherein if the width difference is more than 0, the station caption to be added exceeds the width range of the corresponding channel image;
the size reduction of the station caption needing to be added comprises the following steps:
and if the platform caption needing to be added exceeds the width range of the corresponding channel image, subtracting the width difference value from the width of the platform caption needing to be added to obtain the reduced width of the platform caption.
Optionally, the display size of the channel image includes a height of the channel image, the size of the station caption includes a height of the station caption, a position of a starting point of the station caption in the corresponding channel image includes a vertical coordinate of the starting point of the station caption, wherein a lower left corner or an upper left corner of the channel image is taken as a coordinate origin;
the method for judging whether the station caption needing to be added exceeds the display range of the corresponding channel image comprises the following steps:
calculating a height difference value between the vertical coordinate of the starting point of the station caption and the height of the corresponding channel image after adding the height of the station caption, wherein if the height difference value is more than 0, the station caption to be added exceeds the height range of the corresponding channel image;
the size reduction of the station caption needing to be added comprises the following steps:
and if the station caption needing to be added exceeds the height range of the corresponding channel image, subtracting the height difference value from the height of the station caption needing to be added to obtain the height of the station caption after reduction.
Optionally, the obtaining of the starting point position, the display content, and the original size of the station caption to be added in the corresponding channel image includes the following steps:
traversing all channel images in the video conference image, and judging whether station captions need to be added in each channel image;
if so, acquiring the starting point position, the display content and the original station caption size of the station caption needing to be added in the corresponding channel image.
The embodiment of the invention also provides a video conference image generation method, which comprises the following steps:
determining the display size of each channel image in the video conference image according to the resolution of the video conference image and the picture segmentation mode of each channel;
receiving video images of all channels of a video conference, and synthesizing the video images of all channels into video conference images according to the display size of each channel image;
and adding the station caption into the video conference image by adopting the station caption adding method.
Optionally, the synthesizing the video images of the channels into the video conference image includes the following steps:
for each channel, comparing the size of the received video image with the display size of the channel image, and judging whether the video image needs to be zoomed;
if yes, scaling the video image to the display size of the corresponding channel image;
and synthesizing the video images of the channels into video conference images.
The embodiment of the invention also provides a video conference image generation system, which is applied to the video conference image generation method, and the system comprises:
the image size determining module is used for determining the display size of each channel image in the video conference image according to the resolution of the video conference image and the picture segmentation mode of each channel;
the channel image synthesis module is used for receiving the video images of all channels of the video conference and synthesizing the video images of all the channels into video conference images according to the display size of each channel image;
and the station caption adding module is used for adding station captions in the video conference images.
An embodiment of the present invention further provides a video conference image generation device, including:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the video conference image generation method via execution of the executable instructions.
An embodiment of the present invention further provides a computer-readable storage medium, which is used for storing a program, and when the program is executed, the steps of the video conference image generation method are implemented.
The station caption adding and video conference image generating method, system, equipment and medium provided by the invention release the authority of setting the size of the station caption to the user, allow the user to select the size of the station caption in a certain range, and avoid the condition that the station caption can only display a part of or exceeds the terminal images of other channels, thereby satisfying the personalized setting of the station caption and simultaneously considering the display effect of the station caption and improving the user experience.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, with reference to the accompanying drawings.
Fig. 1 is a flowchart of a station caption adding method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of generating video conference images according to an embodiment of the invention;
FIG. 3 is a flow chart of a method for generating video conference images in accordance with an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a video conference image generation system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a video conference image generation device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer storage medium according to an embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their repetitive description will be omitted.
As shown in fig. 1, an embodiment of the present invention provides a station caption adding method, configured to add at least one station caption in a video conference image, where each station caption corresponds to a channel image in the video conference image; the station caption adding method comprises the following steps:
s310: acquiring the display size of each channel image in the video conference image;
s320: acquiring the starting point position, the display content and the original station caption size of the station caption needing to be added in the corresponding channel image; the starting point position, the display content and the display size can be set by a user, and when the user does not set one or more items, default information can be adopted;
s330: judging whether the station caption exceeds the display range of the corresponding channel image according to the display size of the channel image corresponding to the station caption;
if so, continue to step S340: reducing the size of the station caption to obtain the reduced size of the station caption so that the station caption is positioned in the display range of the corresponding channel image, taking the reduced size of the station caption as the size of the station caption needing to be added, and continuing to step S350;
if not, the original station caption size is not changed, and the step S350 is continued;
s350: and adding the station caption into the corresponding channel image according to the size of the station caption, the display content and the position of the starting point. Here, if the size of the station caption is changed, the reduced size of the station caption is used, and if the size of the station caption is not changed, the original size of the station caption is used.
In step S350, when adding the station caption to the corresponding channel image, first, an area covered by the station caption in the channel image is determined according to the starting point position of the station caption and the original size of the station caption, for example, the starting point position of the station caption is at the lower left corner of the channel image, the coordinates of the starting point of the station caption are (0,0), the height and the width of the station caption are h1 and w1, respectively, the area covered by the station caption in the channel image is a rectangular area with the connecting line of (0,0) and (w1, h1) as the diagonal line, then the text or the picture in the display content is adjusted according to the height and the width of the station caption, so that the display content is adapted to the size of the station caption, and then the text or the picture in the adjusted display content is added to the area covered by the station caption in the channel image. For another example, the starting point of the station caption is at the upper right corner of the channel image, the height of the channel image is h2, the width of the channel image is w2, the coordinates of the starting point of the station caption are (w2, h2), the coverage area of the station caption in the channel image is a rectangular area with the connecting line of (w2, h2) and (w2-w1, h2-h1) as the diagonal line, and the characters or pictures in the adjusted display content are added to the area covered by the station caption in the channel image. Specifically, the position and size of the overlay area of the stage in the channel image vary with the starting point position and the size of the stage.
Therefore, in order to improve the user experience, the authority of setting the station caption size can be released to the user, and the user is allowed to select the station caption size within a certain range. Meanwhile, when the station caption size is set by a user, the station caption size may exceed the channel image, and at the moment, the station caption only can display a part of the station caption or exceeds the terminal images of other channels, so that the experience of the user is not friendly. Therefore, the invention further judges whether the station caption exceeds the display range of the channel image, if so, the size of the station caption is reduced, the condition that the size of the station caption exceeds the channel image is avoided, and the display effect of the station caption is considered while the individualized setting of the station caption is met.
In this embodiment, not all channels need to be added with a station caption, and in the step S320, obtaining a start point position, display content, and an original station caption size of the station caption that needs to be added in the corresponding channel image may include the following steps:
traversing all channel images in the video conference image, and judging whether station captions need to be added in each channel image;
if so, acquiring the starting point position, the display content and the original station caption size of the station caption needing to be added in the corresponding channel image.
In this embodiment, the user can set the size of the station caption by setting the content of the characters to be displayed in the station caption and the display size of each character. Therefore, this embodiment releases the authority to set the size of the font size of the station caption to the user, allowing the user to select the size of the font size of the station caption within a certain range. Specifically, in step S320, acquiring the display content and the original size of the station caption to be added in the corresponding channel image includes the following steps:
acquiring the character content to be displayed and the character size of the characters in the station caption to be added;
and calculating the number of words of the characters in the character content, determining the display size of each character according to the number of the characters, and calculating the height and the width of the station caption according to the number of the words of the characters and the display size of each character.
If the characters in the station caption are arranged and displayed in a transverse arrangement mode, the height of the station caption can be determined according to the height of each character, and the width of the station caption is calculated according to the width of each character, the set interval between two adjacent characters and the number of characters of the characters. If the characters in the station caption are arranged and displayed in a longitudinal arrangement mode, the width of the station caption can be determined according to the width of each character, and the height of the station caption can be calculated according to the height of each character, the set distance between two adjacent characters and the number of characters.
In this embodiment, the display size of the channel image includes a width W2 of the channel image, the size of the stage mark includes a width W1 of the stage mark, and the position of the start point of the stage mark in the corresponding channel image includes an abscissa X of the start point of the stage mark;
the method for judging whether the station caption needing to be added exceeds the display range of the corresponding channel image comprises the following steps:
calculating a width difference value delta W between the abscissa X of the starting point of the station caption and the width W2 of the corresponding channel image after adding the width W1 of the station caption, wherein the width difference value delta W is X + W1-W2, and if the width difference value delta W is larger than 0, the station caption needing to be added exceeds the width range of the corresponding channel image;
the size reduction of the station caption needing to be added comprises the following steps:
if the logo to be added exceeds the width range of the corresponding channel image, subtracting the width difference Δ W from the width W1 of the logo to be added to obtain the reduced width W1 ═ W1- Δ W of the logo.
In this embodiment, the display size of the channel image includes a height H2 of the channel image, the station caption size includes a height H1 of the station caption, and the position of the start point of the station caption in the corresponding channel image includes a vertical coordinate Y of the start point of the station caption;
the method for judging whether the station caption needing to be added exceeds the display range of the corresponding channel image comprises the following steps:
calculating a height difference value delta H between the vertical coordinate Y of the starting point of the station caption and the height H2 of the corresponding channel image after the height H1 of the station caption is added, wherein the height difference value delta H is Y + H1-H2, and if the height difference value delta H is larger than 0, the station caption needing to be added exceeds the height range of the corresponding channel image;
the size reduction of the station caption needing to be added comprises the following steps:
if the station caption needing to be added exceeds the height range of the corresponding channel image, subtracting the height difference delta H from the height H1 of the station caption needing to be added to obtain the height H1' ═ H1-delta H of the reduced station caption.
In practical application, the width of the station caption can be selected to be reduced, the height of the station caption can be selected to be reduced, and the width and the height of the station caption can be simultaneously reduced. When the Chinese characters in the station caption are transversely arranged and displayed, whether the width of the station caption can exceed the width range of the channel image or not can be judged, if so, the width of the station caption is reduced, wherein the width of each character is correspondingly reduced, when the Chinese characters in the station caption are longitudinally arranged and displayed, whether the height of the station caption can exceed the height range of the channel image or not can be judged, if so, the height of the station caption is reduced, and wherein the height of each character is correspondingly reduced. Or judging whether the width of the station caption exceeds the width range of the channel image and whether the height of the station caption exceeds the height range of the channel image, if the size of the station caption in any direction (width and/or width) exceeds, adjusting the size of the station caption in the corresponding direction.
The coordinates of the starting point of the station caption can also be provided for the user to select, for example, the station caption can be selected by the user to be displayed at the upper left corner, the upper right corner, the lower left corner, the lower right corner and the like. For example, assuming that the channel start coordinate point is located at (0,0), when the station caption is displayed at the upper left corner, the station caption start coordinate point (X, Y) is determined to be (10, 4); when the station mark is displayed at the lower left corner, X of the start coordinate point of the station mark is 10, Y is the height of the channel H2 — the height of the station mark H1-4, and if Y <0, Y is 4; when the station mark is displayed at the upper right corner, Y of the starting coordinate point of the station mark is 4, X is the width W2 of the channel-W1-10 of the station mark, and if X is <0, X is 10; when the logo is displayed at the lower right corner, X of the start coordinate point of the logo is equal to the width W2 of the channel — the width S1-10 of the logo, and if X <0, X is equal to 10. Y-channel height H2-plateau height H1-4, if Y <0, then Y-4.
The embodiment of the invention also provides a video conference image generation method. The invention relates to a multipoint control unit in a video conference system, which mainly relates to a video picture synthesis function, and comprises a plurality of aspects such as network receiving and decoding of audio and video, picture synthesis of video, audio mixing, coding and sending of audio and video and the like.
As shown in fig. 2, in this embodiment, the video conference image generation method includes the following steps:
s100: determining the display size of each channel image in the video conference image according to the resolution of the video conference image and the picture segmentation mode of each channel;
s200: receiving video images of all channels of a video conference, and synthesizing the video images of all channels into video conference images according to the display size of each channel image;
s300: and adding the station caption into the video conference image by adopting the station caption adding method, namely adding the station caption into the video conference image by adopting the methods of the step S310 to the step S350.
Therefore, in the video conference image generation method provided by the invention, the authority for setting the size of the station caption is released to the user, the user is allowed to select the size of the station caption in a certain range, and the condition that the station caption only can display a part of the station caption or exceeds the terminal images of other channels is avoided. Specifically, the display content, the starting point position, and the display size of the station caption set by the user are obtained in step S300, the size of the station caption exceeding the display range of the channel image is scaled, and then the station caption meeting the size requirement is added to the corresponding channel image, so that the display effect of the station caption is considered while the personalized setting of the station caption is met, and the user experience is improved. The starting point position, the display content and the display size may be set by a user, and default information may be used when one or more items are not set by the user.
Fig. 3 is a flowchart of a video conference image generation method according to an embodiment of the present invention. In this embodiment, the step S100 includes the steps of:
s110: determining the resolution of the synthesized video conference image and the picture segmentation mode of each channel according to the conference information; the picture segmentation mode refers to the synthesis style of the video conference synthesized image, and comprises the number of channels involved in the synthesized image, the size proportion distributed by each channel and the like;
s120: and determining the display size of each channel image in the video conference image according to the resolution of the video conference image and the picture segmentation mode of each channel.
In this embodiment, the step S200 includes the following steps:
s210: receiving video images of all channels of the video conference;
s220: for each channel, comparing the size of the received video image with the display size of the channel image, and judging whether the size of the received video image is equal to the display size of the channel image, so as to judge whether the video image needs to be zoomed;
if the size of the received video image is not equal to the display size of the channel image, and the video image needs to be scaled, then the step S230 is continued: scaling the video image to the display size of the corresponding channel image, and then continuing to step S240;
if the size of the received video image is equal to the display size of the channel image, the video image is not zoomed, and the step S240 is continued;
s240: and when the video images of all the channels are received and processed, synthesizing the video images of all the channels into a video conference image.
In this embodiment, the step S200 further includes a step S250: and adding a frame for each channel image in the video image, thereby dividing and identifying the channel image of each channel.
As shown in fig. 4, an embodiment of the present invention further provides a video conference image generation system, which is applied to the video conference image generation method, and the system includes:
an image size determining module M100, configured to determine a display size of each channel image in a video conference image according to a resolution of the video conference image and a picture segmentation manner of each channel;
the channel image synthesis module M200 is configured to receive video images of each channel of the video conference, and synthesize the video images of each channel into a video conference image according to a display size of each channel image;
and a station caption adding module M300, configured to add a station caption to the video conference image.
In this embodiment, the station caption adding module M300 includes:
a channel image information obtaining unit M310 for obtaining a display size of each channel image in the video conference image;
a station caption information obtaining unit M320, configured to obtain a start point position, display content, and a station caption size of a station caption to be added in a corresponding channel image;
a station caption scaling unit M330, configured to determine, according to a display size of a channel image corresponding to the station caption, whether the station caption exceeds a display range of the corresponding channel image, if so, reduce the station caption size, so that the station caption is located in the display range of the corresponding channel image, and use the reduced station caption size as a station caption size to be added;
and the station caption adding unit M340 is configured to add the station caption to the corresponding channel image according to the size of the station caption, the display content, and the start point position.
Therefore, in the video conference image generation system of the present invention, the station caption adding module M300 releases the authority to set the size of the station caption to the user, allows the user to select the size of the station caption within a certain range, and avoids the situation that the station caption only displays a part of or exceeds the terminal images of other channels. Specifically, the station caption information acquiring unit M320 may acquire the starting point position, the display content, and the size of the station caption set by the user, the station caption zooming unit M330 may zoom the station caption exceeding the display range of the channel image, and the station caption adding unit M340 may add the station caption meeting the size requirement to the corresponding channel image, so as to meet the personalized setting of the station caption, and also give consideration to the display effect of the station caption, and improve the user experience. The starting point position, the display content and the display size may be set by a user, and default information may be used when one or more items are not set by the user.
The embodiment of the invention also provides video conference image generation equipment, which comprises a processor; a memory having stored therein executable instructions of the processor; wherein the processor is configured to perform the steps of the video conference image generation method via execution of the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 5. The electronic device 600 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 2.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
An embodiment of the present invention further provides a computer-readable storage medium, which is used for storing a program, and when the program is executed, the steps of the video conference image generation method are implemented. In some possible embodiments, aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of this specification, when the program product is run on the terminal device.
Referring to fig. 6, a program product 800 for implementing the above-described video conference image generation method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, compared with the prior art, the video conference image generation method, system, device and storage medium provided by the present invention have the following advantages:
the video conference image generation method, the system, the equipment and the storage medium provided by the invention have the following advantages:
the station caption adding and video conference image generating method, system, equipment and medium provided by the invention release the authority of setting the size of the station caption to the user, allow the user to select the size of the station caption in a certain range, and avoid the condition that the station caption can only display a part of or exceeds the terminal images of other channels, thereby satisfying the personalized setting of the station caption and simultaneously considering the display effect of the station caption and improving the user experience.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A station caption adding method is characterized in that the method is used for adding at least one station caption in a video conference image, and each station caption corresponds to a channel image in the video conference image;
the station caption adding method comprises the following steps:
acquiring the display size of each channel image in the video conference image;
acquiring the starting point position, the display content and the original station caption size of the station caption needing to be added in the corresponding channel image;
judging whether the station caption exceeds the display range of the corresponding channel image according to the display size of the channel image corresponding to the station caption;
if the station caption exceeds the display range of the channel image, reducing the size of the station caption to obtain the reduced size of the station caption, so that the station caption is positioned in the display range of the corresponding channel image;
adding the station caption to the corresponding channel image according to the reduced size of the station caption, the display content and the position of the starting point;
and if the station caption size does not exceed the original size, the display content and the starting point position, adding the station caption to the corresponding channel image.
2. The station caption adding method according to claim 1, wherein the step of obtaining the display content and the original station caption size of the station caption to be added in the corresponding channel image comprises the steps of:
acquiring the character content to be displayed and the character size of the characters in the station caption to be added;
and calculating the character word number in the character content, and calculating the height and the width of the station caption according to the character word number and the character size of the characters.
3. The station caption adding method according to claim 1, wherein a display size of the channel image includes a width of the channel image, the station caption size includes a width of the station caption, a position of a start point of the station caption in the corresponding channel image includes an abscissa of the start point of the station caption, wherein a lower left corner or an upper left corner of the channel image is taken as an origin of coordinates;
the method for judging whether the station caption needing to be added exceeds the display range of the corresponding channel image comprises the following steps:
calculating the width difference between the horizontal coordinate of the starting point of the station caption and the width of the corresponding channel image after adding the width of the station caption, wherein if the width difference is more than 0, the station caption to be added exceeds the width range of the corresponding channel image;
the size reduction of the station caption needing to be added comprises the following steps:
and if the platform caption needing to be added exceeds the width range of the corresponding channel image, subtracting the width difference value from the width of the platform caption needing to be added to obtain the reduced width of the platform caption.
4. The station caption adding method according to any one of claims 1 to 3, wherein a display size of the channel image includes a height of the channel image, the station caption size includes the height of the station caption, a position of a start point of the station caption in the corresponding channel image includes an ordinate of the start point of the station caption, wherein a lower left corner or an upper left corner of the channel image is taken as an origin of coordinates;
the method for judging whether the station caption needing to be added exceeds the display range of the corresponding channel image comprises the following steps:
calculating a height difference value between the vertical coordinate of the starting point of the station caption and the height of the corresponding channel image after adding the height of the station caption, wherein if the height difference value is more than 0, the station caption to be added exceeds the height range of the corresponding channel image;
the size reduction of the station caption needing to be added comprises the following steps:
and if the station caption needing to be added exceeds the height range of the corresponding channel image, subtracting the height difference value from the height of the station caption needing to be added to obtain the height of the station caption after reduction.
5. The station caption adding method according to claim 1, wherein the step of obtaining the starting point position, the display content and the original station caption size of the station caption to be added in the corresponding channel image comprises the following steps:
traversing all channel images in the video conference image, and judging whether station captions need to be added in each channel image;
if so, acquiring the starting point position, the display content and the original station caption size of the station caption needing to be added in the corresponding channel image.
6. A video conference image generation method is characterized by comprising the following steps:
determining the display size of each channel image in the video conference image according to the resolution of the video conference image and the picture segmentation mode of each channel;
receiving video images of all channels of a video conference, and synthesizing the video images of all channels into video conference images according to the display size of each channel image;
the station caption adding method as claimed in any one of claims 1 to 5, wherein a station caption is added to the video conference image.
7. The video conference image generation method according to claim 6, wherein the synthesizing of the video images of the respective channels into the video conference image includes:
for each channel, comparing the size of the received video image with the display size of the channel image, and judging whether the video image needs to be zoomed;
if yes, scaling the video image to the display size of the corresponding channel image;
and synthesizing the video images of the channels into video conference images.
8. A video conference image generation system applied to the video conference image generation method according to claim 6 or 7, the system comprising:
the image size determining module is used for determining the display size of each channel image in the video conference image according to the resolution of the video conference image and the picture segmentation mode of each channel;
the channel image synthesis module is used for receiving the video images of all channels of the video conference and synthesizing the video images of all the channels into video conference images according to the display size of each channel image;
and the station caption adding module is used for adding station captions in the video conference images.
9. A video conference image generation apparatus, characterized by comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the video conference image generation method of claim 6 or 7 via execution of the executable instructions.
10. A computer-readable storage medium storing a program, wherein the program is executed to implement the steps of the video conference image generation method of claim 6 or 7.
CN201910047437.3A 2019-01-18 2019-01-18 Station caption adding method, video conference image generating method, system, device and medium Active CN109756696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910047437.3A CN109756696B (en) 2019-01-18 2019-01-18 Station caption adding method, video conference image generating method, system, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910047437.3A CN109756696B (en) 2019-01-18 2019-01-18 Station caption adding method, video conference image generating method, system, device and medium

Publications (2)

Publication Number Publication Date
CN109756696A CN109756696A (en) 2019-05-14
CN109756696B true CN109756696B (en) 2020-11-06

Family

ID=66404652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910047437.3A Active CN109756696B (en) 2019-01-18 2019-01-18 Station caption adding method, video conference image generating method, system, device and medium

Country Status (1)

Country Link
CN (1) CN109756696B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112040168A (en) * 2020-09-04 2020-12-04 苏州科达科技股份有限公司 Station caption processing method, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000196934A (en) * 1998-12-25 2000-07-14 Casio Comput Co Ltd Method and device for picking up image
CN101127035A (en) * 2007-10-11 2008-02-20 金蝶软件(中国)有限公司 Method and device drafting character string at targeted area
CN103824252A (en) * 2014-02-10 2014-05-28 安徽科大讯飞信息科技股份有限公司 Picture processing method and system
CN104935998A (en) * 2015-06-01 2015-09-23 无锡天脉聚源传媒科技有限公司 Adjustment method and device for station caption plug-in display region
CN108055493A (en) * 2017-12-13 2018-05-18 苏州科达科技股份有限公司 The method and device of embedded watermark in video image
CN109040658A (en) * 2018-09-25 2018-12-18 视联动力信息技术股份有限公司 conference control method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631213B (en) * 2009-07-07 2011-08-03 北京市警视达机电设备研究所 Method for overlaying video sequential characters/graphics and device thereof
CN106791915B (en) * 2016-11-24 2020-02-11 广州华多网络科技有限公司 Method and device for displaying video image
US10929597B2 (en) * 2017-03-15 2021-02-23 Adobe Inc. Techniques and systems for storing and protecting signatures and images in electronic documents
CN108322692B (en) * 2018-02-26 2020-10-27 苏州科达科技股份有限公司 Method, system, equipment and storage medium for determining watermark embedding position in video

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000196934A (en) * 1998-12-25 2000-07-14 Casio Comput Co Ltd Method and device for picking up image
CN101127035A (en) * 2007-10-11 2008-02-20 金蝶软件(中国)有限公司 Method and device drafting character string at targeted area
CN103824252A (en) * 2014-02-10 2014-05-28 安徽科大讯飞信息科技股份有限公司 Picture processing method and system
CN104935998A (en) * 2015-06-01 2015-09-23 无锡天脉聚源传媒科技有限公司 Adjustment method and device for station caption plug-in display region
CN108055493A (en) * 2017-12-13 2018-05-18 苏州科达科技股份有限公司 The method and device of embedded watermark in video image
CN109040658A (en) * 2018-09-25 2018-12-18 视联动力信息技术股份有限公司 conference control method and device

Also Published As

Publication number Publication date
CN109756696A (en) 2019-05-14

Similar Documents

Publication Publication Date Title
CN109168026B (en) Instant video display method and device, terminal equipment and storage medium
CN109618225B (en) Video frame extraction method, device, equipment and medium
CN110572622A (en) Video decoding method and device
CN109600656B (en) Video list display method and device, terminal equipment and storage medium
US20220248102A1 (en) Subtitle border-crossing processing method and apparatus, and electronic device
WO2020007113A1 (en) Method and device for loading image
US20230362328A1 (en) Video frame insertion method and apparatus, and electronic device
CN113965809A (en) Method and device for simultaneous interactive live broadcast based on single terminal and multiple platforms
US9774821B2 (en) Display apparatus and control method thereof
CN109756696B (en) Station caption adding method, video conference image generating method, system, device and medium
CN111241043A (en) Multimedia file sharing method, terminal and storage medium
CN110557578A (en) Subtitle display device and method for LED spliced screen and related equipment
CN114040144A (en) Video call method and electronic equipment
CN113986161A (en) Method and device for real-time word extraction in audio and video communication
CN115334355B (en) Multi-picture mode switching method and device of web player
CN111008934A (en) Scene construction method, device, equipment and storage medium
CN113949900B (en) Live broadcast mapping processing method, system, equipment and storage medium
CN114020375A (en) Display method and device
CN113194279B (en) Recording method of network conference, computer readable storage medium and electronic device
CN113626120A (en) Method and device for determining display page, electronic equipment and storage medium
CN111709342B (en) Subtitle segmentation method, device, equipment and storage medium
CN113805709A (en) Information input method and device
CN114092362A (en) Panoramic picture loading method and device
CN111083552A (en) Thumbnail generation method, device, equipment and medium
CN110618771B (en) Content display method, device, terminal 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
GR01 Patent grant
GR01 Patent grant