CN106791915B - Method and device for displaying video image - Google Patents

Method and device for displaying video image Download PDF

Info

Publication number
CN106791915B
CN106791915B CN201611052629.6A CN201611052629A CN106791915B CN 106791915 B CN106791915 B CN 106791915B CN 201611052629 A CN201611052629 A CN 201611052629A CN 106791915 B CN106791915 B CN 106791915B
Authority
CN
China
Prior art keywords
image
resolution
live broadcast
identification image
adjusted
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
CN201611052629.6A
Other languages
Chinese (zh)
Other versions
CN106791915A (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.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201611052629.6A priority Critical patent/CN106791915B/en
Publication of CN106791915A publication Critical patent/CN106791915A/en
Application granted granted Critical
Publication of CN106791915B publication Critical patent/CN106791915B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/14Transformations for image registration, e.g. adjusting or mapping for alignment of images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/23614Multiplexing of additional data and video streams
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • 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
    • 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
    • H04N21/4316Generation 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 for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a method and a device for displaying video images, and belongs to the technical field of computers. The method comprises the following steps: receiving a live broadcast image sent by a first terminal, and determining the resolution of the live broadcast image; determining a target scaling coefficient according to the ratio of the resolution of the live broadcast image to a reference resolution corresponding to a preset reference identification image; adjusting the size of the reference identification image according to the target scaling coefficient, and adding the adjusted identification image to the live broadcast image to obtain a composite video image; and sending the composite video image to a second terminal so that the second terminal displays the composite video image. By adopting the invention, the information quantity acquired by the user can be improved.

Description

Method and device for displaying video image
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying a video image.
Background
With the development of terminal technology, the terminal is more and more widely applied and has more and more powerful functions, and users can watch various programs through the terminal. Wherein the live program is one of programs that the user frequently watches. A user may log into a live room of a anchor to view live video of the anchor.
In the live broadcast process, a main broadcast can shoot live broadcast images through a terminal (which can be called a main broadcast terminal), the main broadcast terminal can send the shot live broadcast images to a server, after the server receives the live broadcast images, identification images with preset resolution can be added into the live broadcast images to obtain composite video images, and then the composite video images are sent to corresponding audience terminals, so that audiences watch the live broadcast images added with the identification images. The identification image may be a watermark image of a live broadcast platform, such as a word like "YY" or "fighting fish".
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the resolutions of live images shot by different anchor terminals are usually different (for example, 640x 480 or 720 x 1280, etc.), and adding an identification image with the same resolution to different live images may cause a reduction in the amount of information acquired by a user, for example, when the resolution of the identification image is higher and the resolution of the live image is lower, the displayed identification image may be larger, and the identification image may block the live image; when the resolution of the identification image is small and the resolution of the live broadcast image is large, the displayed identification image is small, and the identification image cannot be seen clearly by the audience.
Disclosure of Invention
To solve the problems of the prior art, embodiments of the present invention provide a method and apparatus for displaying a video image. The technical scheme is as follows:
in a first aspect, a method of displaying a video image is provided, the method comprising:
receiving a live broadcast image sent by a first terminal, and determining the resolution of the live broadcast image;
determining a target scaling coefficient according to the ratio of the resolution of the live broadcast image to a reference resolution corresponding to a preset reference identification image;
adjusting the size of the reference identification image according to the target scaling coefficient, and adding the adjusted identification image to the live broadcast image to obtain a composite video image;
and sending the composite video image to a second terminal so that the second terminal displays the composite video image.
Optionally, the determining a target scaling factor according to a ratio of the resolution of the live broadcast image to a reference resolution corresponding to a preset identification image includes:
and determining the ratio of the horizontal pixel value in the resolution of the live broadcast image to the horizontal pixel value in the reference resolution, and the ratio of the vertical pixel value in the resolution of the live broadcast image to the vertical pixel value in the reference resolution, and taking the ratio with the minimum value as a target scaling coefficient.
Optionally, the method further includes:
acquiring position information of the reference identification image in a reference live broadcast image, wherein the resolution of the reference live broadcast image is the reference resolution;
adjusting the position information of the reference identification image according to the target scaling coefficient;
adding the adjusted identification image in the live image comprises:
and adding the adjusted identification image in the live broadcast image based on the adjusted position information.
Therefore, the position information can be adjusted, so that the adjusted identification image is displayed at a proper position, and the user experience is improved.
Optionally, the position information includes distance information between the reference identifier image and a target boundary of the reference live broadcast image, where the target boundary is a boundary close to the reference identifier image;
the adjusting the position information of the reference identification image according to the target scaling factor includes:
and determining the product of the target scaling coefficient and the distance information to obtain the adjusted position information.
Thus, an implementation of adjusting location information is provided.
Optionally, the method further includes:
and setting the display mode of the adjusted identification image as a semi-transparent display mode so that the second terminal displays the adjusted identification image based on the semi-transparent display mode in the process of displaying the composite video image.
Therefore, the identification image can be displayed in a semitransparent display mode, the display effect is optimized, and the user experience is improved.
In a second aspect, there is provided an apparatus for displaying video images, the apparatus comprising:
the receiving module is used for receiving a live broadcast image sent by a first terminal and determining the resolution of the live broadcast image;
the determining module is used for determining a target scaling coefficient according to the ratio of the resolution of the live broadcast image to the reference resolution corresponding to the preset reference identification image;
the adding module is used for adjusting the size of the reference identification image according to the target scaling coefficient, and adding the adjusted identification image into the live broadcast image to obtain a composite video image;
and the sending module is used for sending the synthesized video image to a second terminal so as to enable the second terminal to display the synthesized video image.
Optionally, the determining module is configured to:
and determining the ratio of the horizontal pixel value in the resolution of the live broadcast image to the horizontal pixel value in the reference resolution, and the ratio of the vertical pixel value in the resolution of the live broadcast image to the vertical pixel value in the reference resolution, and taking the ratio with the minimum value as a target scaling coefficient.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring the position information of the reference identification image in a reference live broadcast image, and the resolution of the reference live broadcast image is the reference resolution;
the adjusting module is used for adjusting the position information of the reference identification image according to the target scaling coefficient;
the adding module is used for:
and adding the adjusted identification image in the live broadcast image based on the adjusted position information.
Optionally, the position information includes distance information between the reference identifier image and a target boundary of the reference live broadcast image, where the target boundary is a boundary close to the reference identifier image;
the adjusting module is configured to:
and determining the product of the target scaling coefficient and the distance information to obtain the adjusted position information.
Optionally, the apparatus further comprises:
and the setting module is used for setting the display mode of the adjusted identification image into a semitransparent display mode so as to enable the second terminal to display the adjusted identification image based on the semitransparent display mode in the process of displaying the composite video image.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, a live broadcast image sent by a first terminal is received, the resolution of the live broadcast image is determined, a target scaling coefficient is determined according to the ratio of the resolution of the live broadcast image to a preset reference resolution corresponding to a reference identification image, the size of the reference identification image is adjusted according to the target scaling coefficient, the adjusted identification image is added into the live broadcast image to obtain a composite video image, and the composite video image is sent to a second terminal so that the second terminal can display the composite video image.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for displaying video images according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a fiducial mark image according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an adjustment reference image according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a live image to which an adjusted identification image is added according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for displaying video images according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an apparatus for displaying video images according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an apparatus for displaying video images according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for displaying video images, and an execution main body of the method can be a server. The server may be a background server of a live platform. The server may include a processor, a memory, and a transceiver. The processor, which may be a Central Processing Unit (CPU), may be configured to determine a resolution of a live image according to the live image received by the transceiver, determine a target scaling factor according to a ratio of the resolution of the live image to a reference resolution corresponding to a preset reference identifier image, adjust a size of the reference identifier image according to the target scaling factor, add the adjusted identifier image to the live image, and obtain a composite video image, so that the transceiver sends the composite video image to the second terminal; a memory, which may be a RAM (Random access memory), a Flash (Flash memory), or the like, and may be configured to store received data, data required by a processing procedure, data generated in the processing procedure, or the like, such as a reference identification image, a reference resolution, or the like; and the transceiver can be used for receiving the live broadcast image transmitted by the first terminal or transmitting the composite image generated by processing to the second terminal. In addition, the server may also include components such as a communication interface and a power supply.
The process flow shown in fig. 1 will be described in detail below with reference to specific embodiments, and the contents may be as follows:
step 101, receiving a live broadcast image sent by a first terminal, and determining the resolution of the live broadcast image.
The first terminal may be a terminal for shooting live images, such as a main broadcast terminal.
In implementation, when a certain anchor broadcasts, the anchor can click on a broadcast selection on a terminal (i.e., a first terminal) such as a mobile phone, and the first terminal can turn on a shooting component (e.g., a camera), detect image data through the shooting component, thereby obtaining a live broadcast image of the anchor, and then send the shot live broadcast image to a server. Since the shooting performances of different terminals are different, the resolutions of live images shot by different terminals are also different, and after receiving a live image sent by a first terminal, a server can analyze the live image to determine the resolution of the live image, such as 720 × 1280 or 640 × 480.
And 102, determining a target scaling coefficient according to the ratio of the resolution of the live broadcast image to the reference resolution corresponding to the preset reference identification image.
In an implementation, the reference resolution may be preset in the server, and may be set arbitrarily by a technician, for example, the reference resolution may be the highest resolution that the mobile terminal at the present stage can support shooting, such as 720 × 1280. Here, a smaller value in the resolution may be referred to as a horizontal pixel value, and a larger value in the resolution may be referred to as a vertical pixel value. The server can also store a reference identification image, the reference identification image can be an identification image added in the live broadcast image with the reference resolution, the size of the reference identification image and the position of the reference identification image in the live broadcast image with the reference resolution, and the reference identification image can be set by technical personnel to achieve the best presentation effect.
After the server determines the resolution of the live image, a ratio of the resolution of the live image to the reference resolution may be calculated, for example, the server may determine a ratio of a horizontal pixel value in the resolution of the live image to a horizontal pixel value in the reference resolution, and a ratio of a vertical pixel value in the resolution of the live image to a vertical pixel value in the reference resolution, and then may randomly select one of the two ratios as a target scaling factor, for example, the resolution of the live image is 576 × 1024, the reference resolution is 720 × 1280, 576/720 is 0.8, 1024/1280 is 0.8, and then 0.8 may be used as the target scaling factor; alternatively, the server may determine a product of horizontal pixel values and vertical pixel values in the resolution of the live image (which may be referred to as a first product) and a product of horizontal pixel values and vertical pixel values in the reference resolution (which may be referred to as a second product), then determine a ratio of the first product and the second product, resulting in a target scaling factor, such as (576 [ 1024 ]/(720 [ 1280 ]) ] 0.64, and then may use 0.64 as the target scaling factor.
Optionally, the server may also use, as the target scaling factor, a ratio corresponding to the horizontal pixel value and a ratio with the smallest value among the ratios corresponding to the vertical pixel values, where the corresponding processing procedure may be as follows: and determining the ratio of the horizontal pixel value in the resolution of the live image to the horizontal pixel value in the reference resolution, and the ratio of the vertical pixel value in the resolution of the live image to the vertical pixel value in the reference resolution, and taking the ratio with the minimum value as a target scaling coefficient.
In an implementation, the server may determine a ratio of a horizontal pixel value in the resolution of the live image to a horizontal pixel value in the reference resolution, and a ratio of a vertical pixel value in the resolution of the live image to a vertical pixel value in the reference resolution, and then determine a ratio with a smallest value among the two ratios, and use the determined ratio as the target scaling factor. For example, if the resolution of a live image is 600 × 800, the reference resolution is 720 × 1280, and 600/720 and 800/1280 are determined to be 0.83 and 0.625, respectively, then 0.625 may be used as the target scaling factor. Therefore, the identification image can be adjusted to be relatively small in size, so that the shielding area of the identification image in the live image is reduced, the information quantity acquired by a user is increased, and the user experience is improved.
Optionally, the server may adjust the position of the identification image, and the corresponding processing procedure may be as follows: acquiring position information of a reference identification image in a reference live broadcast image; and adjusting the position information of the reference identification image according to the target scaling coefficient.
The resolution of the reference live broadcast image is a reference resolution.
In implementation, as described above, the server may preset the reference resolution and the position information of the reference identifier image in the reference live broadcast image, where the position information may be coordinate information or other information used for indicating a position, and this embodiment is not limited. The server may adjust the position information of the reference logo image according to the target scaling factor, thereby determining the position of the adjusted logo image in the live broadcast image. For example, the position information may be coordinate information of a vertex of the reference logo image in the reference live broadcast image or coordinate information of a center point of the reference logo image, and the server may obtain a coordinate value of the vertex in the live broadcast image by multiplying the coordinate value in the coordinate information by the target scaling factor, and display the adjusted logo image based on the coordinate value of the vertex in the live broadcast image.
Optionally, the position information is distance information between a reference identification image and a target boundary of the reference live broadcast image, and the target boundary is a boundary close to the reference identification image, and accordingly, a processing process of the server for adjusting the position information may be as follows: and determining the product of the target scaling coefficient and the distance information to obtain the adjusted position information.
In an implementation, the server may also determine distance information between the reference identification image and a target boundary of the reference live image, where the target boundary may be a boundary close to the reference identification image, and the number of the target boundaries may be two, as shown in fig. 2. The distance information may be the number of pixels of the reference identification image from the target boundary, or the ratio of the number of pixels of the reference identification image from the target boundary to the pixel value of the boundary parallel to the distance direction. For example, if the reference identification image is located at the upper right corner of the reference live broadcast image, the target boundary is the upper boundary and the right boundary of the reference live broadcast image, the distance between the reference identification image and the upper boundary is 100 pixel points, and the distance between the reference identification image and the right boundary is 80 pixel points, the distance information can be 100 and 80; alternatively, the pixel value of the upper boundary, e.g., 720, and the pixel value of the right boundary, e.g., 1280, may be determined, and then the distance information may be determined to be 100/720-0.13 and 80/1280-0.06.
After the server adjusts the size of the reference marker image, the server may multiply the distance information by a target scaling factor to obtain adjusted position information, for example, if the target scaling factor is 0.8, the distance information may be determined to be 100 × 0.8 — 80, and 80 × 0.8 — 64.
And 103, adjusting the size of the reference identification image according to the target scaling coefficient, and adding the adjusted identification image to the live broadcast image to obtain a composite video image.
In implementation, after determining the target scaling factor, the server may multiply the target scaling factor by the length and width of the reference marker image to obtain an adjusted size, and then perform scaling processing on the reference marker image according to the adjusted size to obtain an adjusted marker image, as shown in fig. 3. The server can determine a preset identification image adding area in the live broadcast image, and add the adjusted identification image in the live broadcast image corresponding to the identification image adding area to obtain a composite video image.
Optionally, the server may further adjust the position of the identification image, and the corresponding processing procedure may be as follows: and adding the adjusted identification image in the live broadcast image based on the adjusted position information.
In implementation, based on the above processing, the server may determine the adjusted position information, then may determine the tag image adding area in the live broadcast image according to the adjusted position information and the adjusted size, and then add the adjusted tag image to the live broadcast image corresponding to the tag image adding area to obtain a composite video image, as shown in fig. 4. For example, in the adjusted position information, the distance between the reference identification image and the upper boundary is 80 pixels, the distance between the reference identification image and the right boundary is 64 pixels, and the adjusted size is 80 × 100, then in the live broadcast image, the identification image adding region which is 80 pixels away from the upper boundary, 64 pixels away from the right boundary, and the size is 80 × 100 may be determined, and then the adjusted identification image may be added in the region.
And 104, sending the composite video image to the second terminal so that the second terminal displays the composite video image.
The second terminal may be a terminal for playing a live image, such as a viewer terminal.
In an implementation, after the server receives the composite video image, the server may determine a main broadcasting account logged in by the first terminal, then may determine a viewer account of a live broadcasting room accessing the main broadcasting account, and further transmit the composite video image to the second terminal logged in by the viewer account, so that the viewer can see the composite video image.
Optionally, the server may further set a display mode of the identification image, and the corresponding processing procedure may be as follows: and setting the display mode of the adjusted identification image as a semitransparent display mode so that the second terminal displays the adjusted identification image based on the semitransparent display mode in the process of displaying the composite video image.
In implementation, the server may further set a display mode of the adjusted identification image, where the display mode may be a semi-transparent display or the like. The server can carry out image processing on the adjusted identification image, the identification image is processed into a semitransparent display effect, the processed identification image can be added into the live broadcast image to obtain a composite video image, the composite video image is sent to the second terminal, and the second terminal can display the composite image, so that the audience can see the semitransparent identification image in the live broadcast image, and the user experience is improved.
In the embodiment of the invention, a live broadcast image sent by a first terminal is received, the resolution of the live broadcast image is determined, a target scaling coefficient is determined according to the ratio of the resolution of the live broadcast image to a preset reference resolution corresponding to a reference identification image, the size of the reference identification image is adjusted according to the target scaling coefficient, the adjusted identification image is added to the live broadcast image to obtain a composite video image, and the composite video image is sent to a second terminal to enable the second terminal to display the composite video image.
Based on the same technical concept, an embodiment of the present invention further provides an apparatus for displaying a video image, as shown in fig. 5, the apparatus including:
a receiving module 510, configured to receive a live broadcast image sent by a first terminal, and determine a resolution of the live broadcast image;
a determining module 520, configured to determine a target scaling factor according to a ratio of a resolution of the live broadcast image to a reference resolution corresponding to a preset reference identifier image;
an adding module 530, configured to adjust the size of the reference identifier image according to the target scaling factor, and add the adjusted identifier image to the live broadcast image to obtain a composite video image;
a sending module 540, configured to send the composite video image to a second terminal, so that the second terminal displays the composite video image.
Optionally, the determining module 520 is configured to:
and determining the ratio of the horizontal pixel value in the resolution of the live broadcast image to the horizontal pixel value in the reference resolution, and the ratio of the vertical pixel value in the resolution of the live broadcast image to the vertical pixel value in the reference resolution, and taking the ratio with the minimum value as a target scaling coefficient.
Optionally, as shown in fig. 6, the apparatus further includes:
an obtaining module 550, configured to obtain position information of the reference identifier image in a reference live broadcast image, where a resolution of the reference live broadcast image is the reference resolution;
an adjusting module 560, configured to adjust the position information of the reference identifier image according to the target scaling factor;
the adding module 530 is configured to:
and adding the adjusted identification image in the live broadcast image based on the adjusted position information.
Optionally, the position information includes distance information between the reference identifier image and a target boundary of the reference live broadcast image, where the target boundary is a boundary close to the reference identifier image;
the adjusting module 560 is configured to:
and determining the product of the target scaling coefficient and the distance information to obtain the adjusted position information.
Optionally, as shown in fig. 7, the apparatus further includes:
a setting module 570, configured to set the adjusted display mode of the logo image to a semi-transparent display mode, so that the second terminal displays the adjusted logo image based on the semi-transparent display mode in the process of displaying the composite video image.
In the embodiment of the invention, a live broadcast image sent by a first terminal is received, the resolution of the live broadcast image is determined, a target scaling coefficient is determined according to the ratio of the resolution of the live broadcast image to a preset reference resolution corresponding to a reference identification image, the size of the reference identification image is adjusted according to the target scaling coefficient, the adjusted identification image is added to the live broadcast image to obtain a composite video image, and the composite video image is sent to a second terminal to enable the second terminal to display the composite video image.
It should be noted that: in the apparatus for displaying a video image according to the foregoing embodiment, when displaying a video image, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus for displaying a video image and the method for displaying a video image provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 600 may vary significantly due to configuration or performance, and may include one or more Central Processing Units (CPUs) 622 (e.g., one or more processors) and memory 632, one or more storage media 630 (e.g., one or more mass storage devices) storing applications 642 or data 644. Memory 632 and storage medium 630 may be, among other things, transient or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 622 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the server 600.
The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input-output interfaces 658, one or more keyboards 656, and/or one or more operating systems 641, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The server 600 may include memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
receiving a live broadcast image sent by a first terminal, and determining the resolution of the live broadcast image;
determining a target scaling coefficient according to the ratio of the resolution of the live broadcast image to a reference resolution corresponding to a preset reference identification image;
adjusting the size of the reference identification image according to the target scaling coefficient, and adding the adjusted identification image to the live broadcast image to obtain a composite video image;
and sending the composite video image to a second terminal so that the second terminal displays the composite video image.
Optionally, the determining a target scaling factor according to a ratio of the resolution of the live broadcast image to a reference resolution corresponding to a preset identification image includes:
and determining the ratio of the horizontal pixel value in the resolution of the live broadcast image to the horizontal pixel value in the reference resolution, and the ratio of the vertical pixel value in the resolution of the live broadcast image to the vertical pixel value in the reference resolution, and taking the ratio with the minimum value as a target scaling coefficient.
Optionally, the method further includes:
acquiring position information of the reference identification image in a reference live broadcast image, wherein the resolution of the reference live broadcast image is the reference resolution;
adjusting the position information of the reference identification image according to the target scaling coefficient;
adding the adjusted identification image in the live image comprises:
and adding the adjusted identification image in the live broadcast image based on the adjusted position information.
Optionally, the position information includes distance information between the reference identifier image and a target boundary of the reference live broadcast image, where the target boundary is a boundary close to the reference identifier image;
the adjusting the position information of the reference identification image according to the target scaling factor includes:
and determining the product of the target scaling coefficient and the distance information to obtain the adjusted position information.
Optionally, the method further includes:
and setting the display mode of the adjusted identification image as a semi-transparent display mode so that the second terminal displays the adjusted identification image based on the semi-transparent display mode in the process of displaying the composite video image.
In the embodiment of the invention, a live broadcast image sent by a first terminal is received, the resolution of the live broadcast image is determined, a target scaling coefficient is determined according to the ratio of the resolution of the live broadcast image to a preset reference resolution corresponding to a reference identification image, the size of the reference identification image is adjusted according to the target scaling coefficient, the adjusted identification image is added into the live broadcast image to obtain a composite video image, and the composite video image is sent to a second terminal so that the second terminal can display the composite video image.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A method of displaying a video image, the method comprising:
receiving a live broadcast image sent by a first terminal, and determining the resolution of the live broadcast image;
determining a target scaling coefficient according to the ratio of the resolution of the live broadcast image to a reference resolution corresponding to a preset reference identification image, wherein the reference identification image is a pre-stored identification image with the reference resolution and is added into the live broadcast image;
adjusting the size of the reference identification image according to the target scaling coefficient;
acquiring position information of the reference identification image in a reference live broadcast image, wherein the resolution of the reference live broadcast image is the reference resolution;
adjusting the position information of the reference identification image according to the target scaling coefficient;
adding the adjusted identification image to the live broadcast image based on the adjusted position information to obtain a composite video image;
and sending the composite video image to a second terminal so that the second terminal displays the composite video image.
2. The method according to claim 1, wherein determining a target scaling factor according to a ratio of a resolution of the live image to a reference resolution corresponding to a preset identification image comprises:
and determining the ratio of the horizontal pixel value in the resolution of the live broadcast image to the horizontal pixel value in the reference resolution, and the ratio of the vertical pixel value in the resolution of the live broadcast image to the vertical pixel value in the reference resolution, and taking the ratio with the minimum value as a target scaling coefficient.
3. The method according to claim 1, wherein the position information includes distance information of a target boundary of the reference identification image and the reference live broadcast image, the target boundary being a boundary close to the reference identification image;
the adjusting the position information of the reference identification image according to the target scaling factor includes:
and determining the product of the target scaling coefficient and the distance information to obtain the adjusted position information.
4. The method of claim 1, further comprising:
and setting the display mode of the adjusted identification image as a semi-transparent display mode so that the second terminal displays the adjusted identification image based on the semi-transparent display mode in the process of displaying the composite video image.
5. An apparatus for displaying video images, the apparatus comprising:
the receiving module is used for receiving a live broadcast image sent by a first terminal and determining the resolution of the live broadcast image;
the determining module is used for determining a target scaling coefficient according to the ratio of the resolution of the live broadcast image to a reference resolution corresponding to a preset reference identification image, wherein the reference identification image is a pre-stored identification image which has the reference resolution and is added into the live broadcast image;
the adding module is used for adjusting the size of the reference identification image according to the target scaling coefficient;
the acquisition module is used for acquiring the position information of the reference identification image in a reference live broadcast image, and the resolution of the reference live broadcast image is the reference resolution;
the adjusting module is used for adjusting the position information of the reference identification image according to the target scaling coefficient;
the adding module is used for adding the adjusted identification image into the live broadcast image based on the adjusted position information to obtain a synthesized video image;
and the sending module is used for sending the synthesized video image to a second terminal so as to enable the second terminal to display the synthesized video image.
6. The apparatus of claim 5, wherein the determining module is configured to:
and determining the ratio of the horizontal pixel value in the resolution of the live broadcast image to the horizontal pixel value in the reference resolution, and the ratio of the vertical pixel value in the resolution of the live broadcast image to the vertical pixel value in the reference resolution, and taking the ratio with the minimum value as a target scaling coefficient.
7. The apparatus according to claim 5, wherein the position information includes distance information of a target boundary of the reference identification image and the reference live broadcast image, the target boundary being a boundary close to the reference identification image;
the adjusting module is configured to:
and determining the product of the target scaling coefficient and the distance information to obtain the adjusted position information.
8. The apparatus of claim 5, further comprising:
and the setting module is used for setting the display mode of the adjusted identification image into a semitransparent display mode so as to enable the second terminal to display the adjusted identification image based on the semitransparent display mode in the process of displaying the composite video image.
CN201611052629.6A 2016-11-24 2016-11-24 Method and device for displaying video image Active CN106791915B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611052629.6A CN106791915B (en) 2016-11-24 2016-11-24 Method and device for displaying video image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611052629.6A CN106791915B (en) 2016-11-24 2016-11-24 Method and device for displaying video image

Publications (2)

Publication Number Publication Date
CN106791915A CN106791915A (en) 2017-05-31
CN106791915B true CN106791915B (en) 2020-02-11

Family

ID=58910852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611052629.6A Active CN106791915B (en) 2016-11-24 2016-11-24 Method and device for displaying video image

Country Status (1)

Country Link
CN (1) CN106791915B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107610036B (en) * 2017-09-26 2021-09-07 武汉斗鱼网络科技有限公司 Method and device for outputting live broadcast identification picture and computer equipment
CN107797784B (en) * 2017-11-13 2020-04-03 威创集团股份有限公司 Method and device for acquiring adaptive resolution of splicing processor
CN109120997A (en) * 2018-09-30 2019-01-01 北京微播视界科技有限公司 Method for processing video frequency, device, terminal and medium
CN109697748B (en) * 2018-12-19 2023-05-16 网易(杭州)网络有限公司 Model compression processing method, model mapping processing method, model compression processing device, and storage medium
CN109756696B (en) * 2019-01-18 2020-11-06 苏州科达科技股份有限公司 Station caption adding method, video conference image generating method, system, device and medium
CN114237472B (en) * 2022-02-24 2022-05-17 深圳市鱼儿科技有限公司 Display method and device suitable for different LED display screens and LED display screen

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744595A (en) * 2013-12-30 2014-04-23 广州华多网络科技有限公司 Self-adaption display method and configuration file generating method and device
CN105447815A (en) * 2014-06-16 2016-03-30 阿里巴巴集团控股有限公司 Method and device for processing image of mobile terminal equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083752A (en) * 2007-06-05 2007-12-05 杭州华三通信技术有限公司 Method for displaying meeting place name of video conference and video terminal
US20130263044A1 (en) * 2012-03-30 2013-10-03 Ebay Inc. Method and system to provide a scroll map

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744595A (en) * 2013-12-30 2014-04-23 广州华多网络科技有限公司 Self-adaption display method and configuration file generating method and device
CN105447815A (en) * 2014-06-16 2016-03-30 阿里巴巴集团控股有限公司 Method and device for processing image of mobile terminal equipment

Also Published As

Publication number Publication date
CN106791915A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106791915B (en) Method and device for displaying video image
US10764626B2 (en) Method and apparatus for presenting and controlling panoramic image, and storage medium
CN106454407B (en) Video live broadcasting method and device
CN107911708B (en) Barrage display method, live broadcast method and related devices
CN109743626B (en) Image display method, image processing method and related equipment
CN109767447B (en) Template matching method, device, equipment and medium
CN109286824B (en) Live broadcast user side control method, device, equipment and medium
CN109309842B (en) Live broadcast data processing method and device, computer equipment and storage medium
CN112738541B (en) Picture display method and device and electronic equipment
CN109698914B (en) Lightning special effect rendering method, device, equipment and storage medium
US20190364333A1 (en) Image processing method and apparatus in video live streaming process, and storage medium
CN108176049B (en) Information prompting method, device, terminal and computer readable storage medium
CN112437318A (en) Content display method, device and system and storage medium
CN105163152A (en) Interactive access method for television interaction system
US20240153538A1 (en) Video Playback Method and Apparatus, and Electronic Device
CN113490061B (en) Live broadcast interaction method and equipment based on bullet screen
CN113965768B (en) Live broadcasting room information display method and device, electronic equipment and server
CN113099248B (en) Panoramic video filling method, device, equipment and storage medium
US20170169792A1 (en) Electronic device and method for releasing content to multiple terminals
CN110941413B (en) Display screen generation method and related device
CN104618733A (en) Image remote projection method and related device
CN113784217A (en) Video playing method, device, equipment and storage medium
US8755819B1 (en) Device location determination using images
CN115278278B (en) Page display method and device, electronic equipment and storage medium
CN114143588B (en) Playing control method and electronic equipment

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210107

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511449 28th floor, block B1, Wanda Plaza, Wanbo business district, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.