CN106791915A - A kind of method and apparatus for showing video image - Google Patents

A kind of method and apparatus for showing video image Download PDF

Info

Publication number
CN106791915A
CN106791915A CN201611052629.6A CN201611052629A CN106791915A CN 106791915 A CN106791915 A CN 106791915A CN 201611052629 A CN201611052629 A CN 201611052629A CN 106791915 A CN106791915 A CN 106791915A
Authority
CN
China
Prior art keywords
image
live video
ratio
video
resolution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611052629.6A
Other languages
Chinese (zh)
Other versions
CN106791915B (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

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 kind of method and apparatus for showing video image, belong to field of computer technology.Methods described includes:The live video that first terminal sends is received, the resolution ratio of the live video is determined;The ratio of resolution ratio and the corresponding reference resolution of default Datum identifier image according to the live video, determines target scale coefficient;According to the target scale coefficient, the size to the Datum identifier image is adjusted, and in the live video, the identification image after addition adjustment obtains composite video image;The composite video image is sent to second terminal, so that the second terminal shows the composite video image.Using the present invention, the information content of user's acquisition can be improved.

Description

A kind of method and apparatus for showing video image
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and apparatus for showing video image.
Background technology
As the development of terminal technology, terminal applies are more and more extensive, function is also stronger and stronger, and user can be by end The various programs of end viewing.Wherein, programme televised live is user's often one of program of viewing.User can log in the live of certain main broadcaster Between, to watch the live video of the main broadcaster.
During live, main broadcaster can shoot live video, main broadcaster's terminal by terminal (can be described as main broadcaster's terminal) The live video that will can be photographed is sent to server, after server receives live video, can add in live video Plus the identification image of default resolution ratio, composite video image is obtained, the composite video image is then sent to corresponding spectators Terminal, so that spectators then watch the live video for being added with identification image.Wherein, identification image can be the water of live platform Watermark image, such as " YY " or " bucket fish " printed words.
Realize it is of the invention during, inventor find prior art at least there is problems with:
Different main broadcaster's terminal takings to the resolution ratio of live video be typically different (such as 640x 480, or 720* 1280 etc.) identification image of equal resolution, is added in different live videos, the information content that user can be caused to obtain drops It is low, for example, when the resolution ratio of identification image is larger, resolution ratio of live video is smaller, the identification image of display can be larger, mark Image can block live video;When the resolution ratio of identification image is smaller, live video resolution ratio is larger, the identification image of display Can be smaller, spectators will not see identification image.
The content of the invention
In order to solve problem of the prior art, a kind of method and dress for showing video image is the embodiment of the invention provides Put.The technical scheme is as follows:
First aspect, there is provided a kind of method of display video image, methods described includes:
The live video that first terminal sends is received, the resolution ratio of the live video is determined;
The ratio of resolution ratio and the corresponding reference resolution of default Datum identifier image according to the live video, really Set the goal zoom factor;
According to the target scale coefficient, the size to the Datum identifier image is adjusted, and in the live figure As in, the identification image after addition adjustment obtains composite video image;
The composite video image is sent to second terminal, so that the second terminal shows the synthetic video figure Picture.
Optionally, the resolution ratio and the corresponding reference resolution of default identification image according to the live video Ratio, determines target scale coefficient, including:
Determine the horizontal pixel value in horizontal pixel value in the resolution ratio of the live video and the reference resolution Ratio, and vertical pixel value in vertical pixel value in the resolution ratio of the live video and the reference resolution Ratio, by the ratio that numerical value is minimum, as target scale coefficient.
Optionally, methods described also includes:
Obtain positional information of the Datum identifier image in benchmark live video, the resolution of the benchmark live video Rate is the reference resolution;
According to the target scale coefficient, the positional information to the Datum identifier image is adjusted;
It is described in the live video, addition adjustment after identification image include:
Based on the positional information after adjustment, in the live video, the identification image after addition adjustment.
So, positional information can be adjusted, so as to the identification image after adjustment be shown in position, Improve Consumer's Experience.
Optionally, the positional information includes the Datum identifier image and the object boundary of the benchmark live video Range information, the object boundary is near the border of the Datum identifier image;
It is described that according to the target scale coefficient, the positional information to the Datum identifier image is adjusted, including:
Determine the product of the target scale coefficient and the range information, the positional information after being adjusted.
This provides a kind of implementation of adjustment position information.
Optionally, methods described also includes:
The display mode of the identification image after the adjustment is set to translucent display mode, so that the second terminal During the composite video image is shown, based on the translucent display mode, the mark figure after the adjustment is shown Picture.
So, identification image can be shown by translucent display mode, optimizes display effect, improve Consumer's Experience.
Second aspect, there is provided a kind of device of display video image, described device includes:
Receiver module, the live video for receiving first terminal transmission, determines the resolution ratio of the live video;
Determining module, for the resolution ratio according to the live video and the corresponding basis point of default Datum identifier image The ratio of resolution, determines target scale coefficient;
Add module, for according to the target scale coefficient, the size to the Datum identifier image to be adjusted, and In the live video, the identification image after addition adjustment obtains composite video image;
Sending module, for the composite video image to be sent into second terminal, so that second terminal display institute State composite video image.
Optionally, the determining module, is used for:
Determine the horizontal pixel value in horizontal pixel value in the resolution ratio of the live video and the reference resolution Ratio, and vertical pixel value in vertical pixel value in the resolution ratio of the live video and the reference resolution Ratio, by the ratio that numerical value is minimum, as target scale coefficient.
Optionally, described device also includes:
Acquisition module, for obtaining positional information of the Datum identifier image in benchmark live video, the benchmark The resolution ratio of live video is the reference resolution;
Adjusting module, for according to the target scale coefficient, the positional information to the Datum identifier image to be adjusted It is whole;
The add module, is used for:
Based on the positional information after adjustment, in the live video, the identification image after addition adjustment.
Optionally, the positional information includes the Datum identifier image and the object boundary of the benchmark live video Range information, the object boundary is near the border of the Datum identifier image;
The adjusting module, is used for:
Determine the product of the target scale coefficient and the range information, the positional information after being adjusted.
Optionally, described device also includes:
Setup module, for the display mode of the identification image after the adjustment to be set into translucent display mode, with Make the second terminal during the composite video image is shown, based on the translucent display mode, display is described Identification image after adjustment.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, the live video that first terminal sends is received, determine the resolution ratio of the live video, root According to the resolution ratio and the ratio of the corresponding reference resolution of default Datum identifier image of the live video, target scale is determined Coefficient, according to the target scale coefficient, the size to the Datum identifier image is adjusted, and in the live video In, the identification image after addition adjustment obtains composite video image, and the composite video image is sent into second terminal, with The second terminal is shown the composite video image, so, for the live video of different resolution, difference can be added The identification image of size, it is to avoid the identification image of addition it is oversized or too small, such that it is able to improve user acquisition information Amount.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of method flow diagram for showing video image provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of Datum identifier image provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram for adjusting Datum identifier image provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of live video that with the addition of the identification image after adjustment provided in an embodiment of the present invention;
Fig. 5 is a kind of apparatus structure schematic diagram for showing video image provided in an embodiment of the present invention;
Fig. 6 is a kind of apparatus structure schematic diagram for showing video image provided in an embodiment of the present invention;
Fig. 7 is a kind of apparatus structure schematic diagram for showing video image provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of server provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
A kind of method for showing video image is the embodiment of the invention provides, the executive agent of the method can be service Device.Wherein, the server can be the background server of certain live platform.The server can include processor, memory and Transceiver.Processor, can be CPU (Central Processing Unit, CPU) etc., can be used for basis The live video that transceiver is received, determines the resolution ratio of live video, then can be according to the resolution ratio of live video and pre- If the corresponding reference resolution of Datum identifier image ratio, determine target scale coefficient, and then according to target scale coefficient, Size to Datum identifier image is adjusted, and in live video, the identification image after addition adjustment obtains synthetic video Image, so that composite video image is sent to second terminal by transceiver;Memory, can be RAM (Random Access Memory, random access memory), Flash (flash memory) etc., can be used for storing needed for data, the processing procedure for receiving Data generated in data, processing procedure etc., such as Datum identifier image, reference resolution;Transceiver, can be used for reception The live video that one terminal sends, or, for the composograph for processing generation to be sent into second terminal.In addition, the service Device can also be including the part such as communication interface and power supply.
Below in conjunction with specific embodiment, the handling process shown in Fig. 1 is described in detail, content can be as Under:
Step 101, receives the live video that first terminal sends, and determines the resolution ratio of live video.
Wherein, first terminal can be the terminal for shooting live video, such as main broadcaster's terminal.
In force, when certain main broadcaster starts broadcasting, the main broadcaster can click on choosing of starting broadcasting in the terminals such as mobile phone (i.e. first terminal) Select, first terminal can then open shooting part (such as camera), by shooting part detection image data, so as to obtain the master The live video broadcast, the live video that then will can be photographed is sent to server.Due to different terminals shooting performance not Together, so, the resolution ratio of the live video that different terminals are photographed is also different, server receive first terminal transmission it is live After image, the live video can be parsed, determine the resolution ratio of the live video, such as 720*1280, or 640*480.
Step 102, the ratio of resolution ratio and the corresponding reference resolution of default Datum identifier image according to live video Value, determines target scale coefficient.
In force, reference resolution can be pre-set in server, reference resolution can be any by technical staff Set, for example, reference resolution can support the highest resolution of shooting, such as 720* for mobile terminal at this stage 1280.Wherein, the relatively fractional value in resolution ratio is properly termed as horizontal pixel value, and the bigger numerical in resolution ratio is properly termed as vertically Pixel value.In server can with Memory Reference identification image, Datum identifier image can on the basis of resolution ratio live video The identification image of middle addition, the size of Datum identifier image, and Datum identifier image are in the live video of reference resolution Position, can be configured by technical staff, optimal effect is presented to reach.
After server determines the resolution ratio of live video, the resolution ratio of live video and the ratio of reference resolution can be calculated Value, for example, server can determine the horizontal pixel in horizontal pixel value and reference resolution in the resolution ratio of live video The ratio of the vertical pixel value in the ratio of value, and vertical pixel value in the resolution ratio of live video and reference resolution, Then a numerical value can be randomly selected in the two ratios, as determine target scale coefficient, such as live video point Resolution is 576*1024, and reference resolution is 720*1280, it may be determined that 576/720=0.8,1024/1280=0.8, then Can be using 0.8 as target scale coefficient;Or, server can determine horizontal pixel value in the resolution ratio of live video with The product (can be described as the first product) of vertical pixel value, and horizontal pixel value in reference resolution and vertical pixel value multiply Product (can be described as the second product), it is then determined that the ratio of first the second product of sum of products, obtains target scale coefficient, such as (576*1024)/(720*1280)=0.64, then can be using 0.64 as target scale coefficient.
Optionally, server can also be counted by the corresponding ratio of horizontal pixel value, and in the corresponding ratio of vertical pixel value It is worth minimum ratio, used as target scale coefficient, corresponding processing procedure can be as follows:In determining the resolution ratio of live video The ratio of the horizontal pixel value in horizontal pixel value and reference resolution, and the vertical pixel value in the resolution ratio of live video With the ratio of the vertical pixel value in reference resolution, by the ratio that numerical value is minimum, as target scale coefficient.
In force, during server can determine horizontal pixel value in the resolution ratio of live video and reference resolution Vertical pixel value in the ratio of horizontal pixel value, and vertical pixel value in the resolution ratio of live video and reference resolution Ratio, then in the two ratios, determine the minimum ratio of numerical value, the ratio that will be determined is used as target scale coefficient. For example, the resolution ratio of live video is 600 × 800, reference resolution is 720*1280, it may be determined that 600/720=0.83, 800/1280=0.625, then can be using 0.625 as target scale coefficient.So, identification image can be adjusted to relatively Small size, to reduce occlusion area of the identification image in live video, so as to increase the information content of user's acquisition, improves and uses Experience at family.
Optionally, server can be adjusted to the position of identification image, and corresponding processing procedure can be as follows:Obtain Positional information of the Datum identifier image in benchmark live video;According to target scale coefficient, to the position of Datum identifier image Information is adjusted.
Wherein, resolution ratio on the basis of the resolution ratio of benchmark live video.
In force, as described above, can pre-set reference resolution in server, and Datum identifier image is in base Positional information in quasi- live video, positional information can be coordinate information, or other be used for locative information, The present embodiment is not limited.Server can be adjusted according to target scale coefficient, the positional information to Datum identifier image, So that it is determined that position of the identification image after adjustment in live video.For example, on the basis of positional information identification image it is a certain Coordinate information of the summit in benchmark live video, or the coordinate information of the central point of Datum identifier image, server The coordinate value in the coordinate information can be used, be multiplied by target scale coefficient, obtain coordinate value of the summit in live video, According to coordinate value of the summit in live video, the identification image after display adjustment.
Optionally, on the basis of positional information the object boundary of identification image and benchmark live video range information, target Border is the border for being close to Datum identifier image, and accordingly, the processing procedure that server is adjusted to positional information can be as Under:Determine the product of target scale coefficient and range information, the positional information after being adjusted.
In force, server can also determine the distance letter of Datum identifier image and the object boundary of benchmark live video Breath, wherein, object boundary can be the border for being close to Datum identifier image, and the number of object boundary can be two, such as Fig. 2 institutes Show.The range information can on the basis of identification image distance objective border pixel number, or Datum identifier image The pixel number on distance objective border, the ratio with the pixel value on the border parallel to the range direction.For example, Datum identifier Image is located at the upper right corner of benchmark live video, then the coboundary of live video and right margin, fiducial mark on the basis of object boundary It is 100 pixels to know image with the distance of coboundary, and the distance with right margin is 80 pixels, then can be with range information 100 and 80;Or, it is also possible to determine the pixel value of coboundary, such as 720, and right margin pixel value, such as 1280, then can be with Determine that range information is 100/720=0.13,80/1280=0.06.
After server is adjusted to the size of Datum identifier image, target scale coefficient can be used, be multiplied by the distance Information, so as to the positional information after being adjusted, for example, target scale coefficient is 0.8, then can determine that range information is 100* 0.8=80, and 80*0.8=64.
Step 103, according to target scale coefficient, the size to Datum identifier image is adjusted, and in live video, Identification image after addition adjustment, obtains composite video image.
In force, after server determines target scale coefficient, can be multiplied by respectively with the length and width of Datum identifier image Target scale system, the size after being adjusted, then according to the size after adjustment, treatment is zoomed in and out to Datum identifier image, Identification image figure after being adjusted, as shown in Figure 3.Server can determine that default identification image adds in live video Plus region, in the corresponding live video in identification image Adding Area, the identification image after addition adjustment obtains synthetic video figure Picture.
Optionally, server can also be adjusted to the position of identification image, and corresponding processing procedure can be as follows:Base In the positional information after adjustment, in live video, the identification image after addition adjustment.
In force, based on above-mentioned treatment, server can determine the positional information after adjustment, then can be according to adjustment Size after positional information afterwards, and adjustment, determines identification image Adding Area, then in identification image in live video In the corresponding live video in Adding Area, the identification image after addition adjustment obtains composite video image, as shown in Figure 4.Example Such as, in the positional information after adjustment, Datum identifier image is 80 pixels with the distance of coboundary, and the distance with right margin is 64 pixels, size after adjustment is 80*100, then can in live video, it is determined that apart from the pixel of coboundary 80, Apart from 64 pixels of right margin, and size is the identification image Adding Area of 80*100, and then can be added in this region Identification image after adjustment.
Step 104, second terminal is sent to by composite video image, so that second terminal display composite video image.
Wherein, second terminal can be the terminal for playing live video, such as vlewer terminals.
In force, server is to after composite video image, it may be determined that main broadcaster's account that first terminal is logged in, Ran Houke To determine spectators' account of the direct broadcasting room for accessing main broadcaster's account, and then synthesis is sent to the second terminal for logging in spectators' account Video image, so that spectators can see the composite video image.
Optionally, server can also set the display mode of identification image, and corresponding processing procedure can be as follows:To adjust The display mode of the identification image after whole is set to translucent display mode, so that second terminal is in display composite video image During, based on translucent display mode, the identification image after display adjustment.
In force, server can also set the display mode of the identification image after adjustment, and the display mode can be half Transparence Display etc..Server can carry out image procossing to the identification image after adjustment, the identification image is processed into translucent Display effect, then the identification image after treatment can be added in live video, obtain composite video image, and then will The composite video image is sent to second terminal, and second terminal can then show the composograph, so that spectators can be live In image, it is seen that translucent identification image, so as to improve Consumer's Experience.
In the embodiment of the present invention, the live video that first terminal sends is received, the resolution ratio of live video is determined, according to straight The resolution ratio of image and the ratio of the corresponding reference resolution of default Datum identifier image are broadcast, target scale coefficient, root is determined According to target scale coefficient, the size to Datum identifier image is adjusted, and in live video, the mark figure after addition adjustment Picture, obtains composite video image, and composite video image is sent into second terminal, so that second terminal display synthetic video figure Picture, so, for the live video of different resolution, can add various sizes of identification image, it is to avoid the mark figure of addition Picture it is oversized or too small, such that it is able to improve user acquisition information content.
Based on identical technology design, the embodiment of the present invention additionally provides a kind of device for showing video image, such as Fig. 5 institutes Show, the device includes:
Receiver module 510, the live video for receiving first terminal transmission, determines the resolution ratio of the live video;
Determining module 520, for the resolution ratio according to the live video and the corresponding base of default Datum identifier image The ratio of quasi- resolution ratio, determines target scale coefficient;
Add module 530, for according to the target scale coefficient, the size to the Datum identifier image to be adjusted It is whole, and in the live video, the identification image after addition adjustment obtains composite video image;
Sending module 540, for the composite video image to be sent into second terminal, so that the second terminal shows The composite video image.
Optionally, the determining module 520, is used for:
Determine the horizontal pixel value in horizontal pixel value in the resolution ratio of the live video and the reference resolution Ratio, and vertical pixel value in vertical pixel value in the resolution ratio of the live video and the reference resolution Ratio, by the ratio that numerical value is minimum, as target scale coefficient.
Optionally, as shown in fig. 6, described device also includes:
Acquisition module 550, for obtaining positional information of the Datum identifier image in benchmark live video, the base The resolution ratio of quasi- live video is the reference resolution;
Adjusting module 560, for according to the target scale coefficient, the positional information to the Datum identifier image to be carried out Adjustment;
The add module 530, is used for:
Based on the positional information after adjustment, in the live video, the identification image after addition adjustment.
Optionally, the positional information includes the Datum identifier image and the object boundary of the benchmark live video Range information, the object boundary is near the border of the Datum identifier image;
The adjusting module 560, is used for:
Determine the product of the target scale coefficient and the range information, the positional information after being adjusted.
Optionally, as shown in fig. 7, described device also includes:
Setup module 570, for the display mode of the identification image after the adjustment to be set into translucent display mode, So that the second terminal is during the composite video image is shown, based on the translucent display mode, institute is shown State the identification image after adjustment.
In the embodiment of the present invention, the live video that first terminal sends is received, the resolution ratio of live video is determined, according to straight The resolution ratio of image and the ratio of the corresponding reference resolution of default Datum identifier image are broadcast, target scale coefficient, root is determined According to target scale coefficient, the size to Datum identifier image is adjusted, and in live video, the mark figure after addition adjustment Picture, obtains composite video image, and composite video image is sent into second terminal, so that second terminal display synthetic video figure Picture, so, for the live video of different resolution, can add various sizes of identification image, it is to avoid the mark figure of addition Picture it is oversized or too small, such that it is able to improve user acquisition information content.
It should be noted that:Above-described embodiment provide display video image device show video image when, only with The division of above-mentioned each functional module is carried out for example, in practical application, as needed can distribute by not above-mentioned functions With functional module complete, will the internal structure of equipment be divided into different functional modules, to complete whole described above Or partial function.In addition, the method implementation of the device and display video image of the display video image that above-described embodiment is provided Example belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
Fig. 9 is the structural representation of server provided in an embodiment of the present invention.The server 600 can be because of configuration or performance not The larger difference of producing ratio, can include one or more central processing units (central processing together Units, CPU) 622 (for example, one or more processors) and memory 632, one or more storages apply journey The storage medium 630 (such as one or more mass memory units) of sequence 642 or data 644.Wherein, the He of memory 632 Storage medium 630 can be of short duration storage or persistently storage.The program stored in storage medium 630 can include one or one With upper module (diagram is not marked), each module can be included to the series of instructions operation in server.Further, in Central processor 622 could be arranged to be communicated with storage medium 630, a series of in performing storage medium 630 on server 600 Command operating.
Server 600 can also include one or more power supplys 626, one or more wired or wireless networks Interface 650, one or more input/output interfaces 658, one or more keyboards 656, and/or, one or one Above operating system 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Server 600 can include memory, and one or more than one program, one of them or one Procedure above is stored in memory, and is configured to one or one by one or more than one computing device Procedure above includes the instruction for carrying out following operation:
The live video that first terminal sends is received, the resolution ratio of the live video is determined;
The ratio of resolution ratio and the corresponding reference resolution of default Datum identifier image according to the live video, really Set the goal zoom factor;
According to the target scale coefficient, the size to the Datum identifier image is adjusted, and in the live figure As in, the identification image after addition adjustment obtains composite video image;
The composite video image is sent to second terminal, so that the second terminal shows the synthetic video figure Picture.
Optionally, the resolution ratio and the corresponding reference resolution of default identification image according to the live video Ratio, determines target scale coefficient, including:
Determine the horizontal pixel value in horizontal pixel value in the resolution ratio of the live video and the reference resolution Ratio, and vertical pixel value in vertical pixel value in the resolution ratio of the live video and the reference resolution Ratio, by the ratio that numerical value is minimum, as target scale coefficient.
Optionally, methods described also includes:
Obtain positional information of the Datum identifier image in benchmark live video, the resolution of the benchmark live video Rate is the reference resolution;
According to the target scale coefficient, the positional information to the Datum identifier image is adjusted;
It is described in the live video, addition adjustment after identification image include:
Based on the positional information after adjustment, in the live video, the identification image after addition adjustment.
Optionally, the positional information includes the Datum identifier image and the object boundary of the benchmark live video Range information, the object boundary is near the border of the Datum identifier image;
It is described that according to the target scale coefficient, the positional information to the Datum identifier image is adjusted, including:
Determine the product of the target scale coefficient and the range information, the positional information after being adjusted.
Optionally, methods described also includes:
The display mode of the identification image after the adjustment is set to translucent display mode, so that the second terminal During the composite video image is shown, based on the translucent display mode, the mark figure after the adjustment is shown Picture.
In the embodiment of the present invention, the live video that first terminal sends is received, determine the resolution ratio of the live video, root According to the resolution ratio and the ratio of the corresponding reference resolution of default Datum identifier image of the live video, target scale is determined Coefficient, according to the target scale coefficient, the size to the Datum identifier image is adjusted, and in the live video In, the identification image after addition adjustment obtains composite video image, and the composite video image is sent into second terminal, with The second terminal is shown the composite video image, so, for the live video of different resolution, difference can be added The identification image of size, it is to avoid the identification image of addition it is oversized or too small, such that it is able to improve user acquisition information Amount.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, it is also possible to instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (10)

1. it is a kind of show video image method, it is characterised in that methods described includes:
The live video that first terminal sends is received, the resolution ratio of the live video is determined;
The ratio of resolution ratio and the corresponding reference resolution of default Datum identifier image according to the live video, determines mesh Mark zoom factor;
According to the target scale coefficient, the size to the Datum identifier image is adjusted, and in the live video, Identification image after addition adjustment, obtains composite video image;
The composite video image is sent to second terminal, so that the second terminal shows the composite video image.
2. method according to claim 1, it is characterised in that the resolution ratio according to the live video and default The ratio of the corresponding reference resolution of identification image, determines target scale coefficient, including:
Determine the ratio of the horizontal pixel value in horizontal pixel value in the resolution ratio of the live video and the reference resolution The ratio of the vertical pixel value in value, and vertical pixel value in the resolution ratio of the live video and the reference resolution Value, by the ratio that numerical value is minimum, as target scale coefficient.
3. method according to claim 1, it is characterised in that methods described also includes:
Positional information of the Datum identifier image in benchmark live video is obtained, the resolution ratio of the benchmark live video is The reference resolution;
According to the target scale coefficient, the positional information to the Datum identifier image is adjusted;
It is described in the live video, addition adjustment after identification image include:
Based on the positional information after adjustment, in the live video, the identification image after addition adjustment.
4. method according to claim 3, it is characterised in that the positional information includes the Datum identifier image and institute The range information of the object boundary of benchmark live video is stated, the object boundary is near the border of the Datum identifier image;
It is described that according to the target scale coefficient, the positional information to the Datum identifier image is adjusted, including:
Determine the product of the target scale coefficient and the range information, the positional information after being adjusted.
5. method according to claim 1, it is characterised in that methods described also includes:
The display mode of the identification image after the adjustment is set to translucent display mode, so that the second terminal is aobvious During showing the composite video image, based on the translucent display mode, the identification image after the adjustment is shown.
6. it is a kind of show video image device, it is characterised in that described device includes:
Receiver module, the live video for receiving first terminal transmission, determines the resolution ratio of the live video;
Determining module, for the resolution ratio according to the live video and the corresponding reference resolution of default Datum identifier image Ratio, determine target scale coefficient;
Add module, for according to the target scale coefficient, the size to the Datum identifier image to be adjusted, and in institute State in live video, the identification image after addition adjustment obtains composite video image;
Sending module, for the composite video image to be sent into second terminal, so that the second terminal shows the conjunction Into video image.
7. device according to claim 6, it is characterised in that the determining module, is used for:
Determine the ratio of the horizontal pixel value in horizontal pixel value in the resolution ratio of the live video and the reference resolution The ratio of the vertical pixel value in value, and vertical pixel value in the resolution ratio of the live video and the reference resolution Value, by the ratio that numerical value is minimum, as target scale coefficient.
8. device according to claim 6, it is characterised in that described device also includes:
Acquisition module, for obtaining positional information of the Datum identifier image in benchmark live video, the benchmark is live The resolution ratio of image is the reference resolution;
Adjusting module, for according to the target scale coefficient, the positional information to the Datum identifier image to be adjusted;
The add module, is used for:
Based on the positional information after adjustment, in the live video, the identification image after addition adjustment.
9. device according to claim 8, it is characterised in that the positional information includes the Datum identifier image and institute The range information of the object boundary of benchmark live video is stated, the object boundary is near the border of the Datum identifier image;
The adjusting module, is used for:
Determine the product of the target scale coefficient and the range information, the positional information after being adjusted.
10. device according to claim 6, it is characterised in that described device also includes:
Setup module, for the display mode of the identification image after the adjustment to be set into translucent display mode, so that institute Second terminal is stated during the composite video image is shown, based on the translucent display mode, the adjustment is shown Identification image afterwards.
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 true CN106791915A (en) 2017-05-31
CN106791915B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107610036A (en) * 2017-09-26 2018-01-19 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for exporting live mark picture
CN107797784A (en) * 2017-11-13 2018-03-13 威创集团股份有限公司 Obtain the method and device of the adaptation resolution ratio of splicing device
CN109120997A (en) * 2018-09-30 2019-01-01 北京微播视界科技有限公司 Method for processing video frequency, device, terminal and medium
CN109697748A (en) * 2018-12-19 2019-04-30 网易(杭州)网络有限公司 Model compression processing method, model pinup picture processing method device, storage medium
CN109756696A (en) * 2019-01-18 2019-05-14 苏州科达科技股份有限公司 Logo addition and video conference image generation method, system, equipment and medium
CN114237472A (en) * 2022-02-24 2022-03-25 深圳市鱼儿科技有限公司 Display method and device suitable for different LED display screens and LED display screen

Citations (4)

* 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
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

Patent Citations (4)

* 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
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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107610036A (en) * 2017-09-26 2018-01-19 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for exporting live mark picture
CN107797784A (en) * 2017-11-13 2018-03-13 威创集团股份有限公司 Obtain the method and device of the adaptation resolution ratio of splicing device
CN109120997A (en) * 2018-09-30 2019-01-01 北京微播视界科技有限公司 Method for processing video frequency, device, terminal and medium
CN109697748A (en) * 2018-12-19 2019-04-30 网易(杭州)网络有限公司 Model compression processing method, model pinup picture processing method device, storage medium
CN109697748B (en) * 2018-12-19 2023-05-16 网易(杭州)网络有限公司 Model compression processing method, model mapping processing method, model compression processing device, and storage medium
CN109756696A (en) * 2019-01-18 2019-05-14 苏州科达科技股份有限公司 Logo addition and video conference image generation method, system, equipment and medium
CN114237472A (en) * 2022-02-24 2022-03-25 深圳市鱼儿科技有限公司 Display method and device suitable for different LED display screens and LED display screen
CN114237472B (en) * 2022-02-24 2022-05-17 深圳市鱼儿科技有限公司 Display method and device suitable for different LED display screens and LED display screen

Also Published As

Publication number Publication date
CN106791915B (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN106791915A (en) A kind of method and apparatus for showing video image
CN104754396B (en) The display methods and device of barrage data
US11863801B2 (en) Method and device for generating live streaming video data and method and device for playing live streaming video
WO2017113734A1 (en) Video multipoint same-screen play method and system
CN103379363B (en) Method for processing video frequency and device, mobile terminal and system
CN103974135B (en) A kind of video sharing method and system
CN107241556B (en) Light measuring method and device of image acquisition equipment
US10152779B2 (en) Method and apparatus for image filtering
EP3709626A1 (en) Photographing method and device, storage medium, and electronic apparatus
CN108737882A (en) Display methods, device, storage medium and the electronic device of image
CN106303565B (en) The image quality optimization method and apparatus of net cast
CN113163214A (en) Video processing method and device
JP2018503148A (en) Method and apparatus for video playback
CN104469398B (en) A kind of Internet video picture processing method and device
CN113315927B (en) Video processing method and device, electronic equipment and storage medium
CN109547724A (en) A kind of processing method of video stream data, electronic equipment and storage device
CN103442288A (en) Method, device and system for processing of trans-equipment data contents
WO2020093862A1 (en) Method for processing vr video, and related apparatus
CN110858388B (en) Method and device for enhancing video image quality
CN107147946A (en) A kind of method for processing video frequency and device
CN114945097B (en) Video stream processing method and device
CN116320769A (en) Exposure adjustment method, device, electronic equipment and readable storage medium
CN112446848B (en) Image processing method and device and electronic equipment
JP6681917B2 (en) Image synthesizing method and apparatus, instant communication method, and image synthesizing server
CN110941413B (en) Display screen generation method and related device

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

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.

TR01 Transfer of patent right