WO2017173817A1 - Computing method and apparatus for video display quality - Google Patents

Computing method and apparatus for video display quality Download PDF

Info

Publication number
WO2017173817A1
WO2017173817A1 PCT/CN2016/104245 CN2016104245W WO2017173817A1 WO 2017173817 A1 WO2017173817 A1 WO 2017173817A1 CN 2016104245 W CN2016104245 W CN 2016104245W WO 2017173817 A1 WO2017173817 A1 WO 2017173817A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
display
resolution
quality
screen
Prior art date
Application number
PCT/CN2016/104245
Other languages
French (fr)
Chinese (zh)
Inventor
孙李娜
陈兵
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017173817A1 publication Critical patent/WO2017173817A1/en

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/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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4516Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally

Definitions

  • the present invention relates to the field of multimedia technologies, and in particular, to a method and a device for calculating video display quality.
  • the video quality is calculated according to the video frame type, the video frame size, the frame rate, and the code rate; in another implementation manner, the peak signal to noise ratio of the video data is calculated. :Peak Signal to Noise Ratio (PSNR), to determine the video quality.
  • PSNR Peak Signal to Noise Ratio
  • the inventors In the process of realizing the above-mentioned calculation of video quality, the inventors have found that the prior art only calculates according to the parameters of the video data itself, and can only determine the quality of the video compression coding, or the quality during the video transmission process, and cannot accurately represent the video display. quality.
  • the embodiment of the invention provides a method and a device for calculating the video display quality.
  • the technical solution is as follows:
  • the present invention provides a method for calculating video display quality, the method comprising:
  • the screen display quality of the video is used to indicate the highest value of the display quality of the video on the display screen;
  • the video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video, and the video display quality is used to indicate the display quality of the video on the display screen.
  • the video display quality is positively correlated with the screen display quality
  • the video display quality is positively correlated with the video frame rate
  • the video display quality is positively correlated with the video code rate
  • the quality of the screen display of the video is obtained, including:
  • the size of the display screen is used to indicate the size of the display screen, and the display resolution includes at least one of a resolution of the video and a resolution of the display screen. Item, the size of the display screen is negatively correlated with the screen display quality, and the display resolution is positively correlated with the screen display quality.
  • the display screen may be rectangular, and the size of the display screen may be the diagonal length of the display screen.
  • the screen display quality is calculated according to the second preset algorithm according to the size and display resolution of the display screen, including:
  • the first formula is:
  • Q sc is the screen display quality
  • Q max is a constant, used to indicate the maximum value of the display quality
  • P is the effective display pixel density
  • the effective display pixel density is calculated according to the display resolution and the size of the display screen
  • D s To display the size of the screen d, e, and f are constants.
  • the effective display pixel density P is used to indicate the number of pixels actually displayed by the video within the unit area of the display screen.
  • the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the effective display pixel density is obtained, including: calculating the effective display pixel density according to the second formula, the second formula For:
  • S w is the width of the display resolution
  • S h is the height of the display resolution
  • the display resolution is the resolution of the display screen
  • the display resolution is video. Resolution.
  • the display resolution includes the resolution of the video and the resolution of the display screen to obtain an effective display pixel density, and further includes:
  • the third formula is:
  • is a resolution matching factor
  • V w is the width of the resolution of the video
  • V h is the height of the resolution of the video
  • D w is the width of the resolution of the display screen
  • D h is the height of the resolution of the display screen
  • g is a constant.
  • the video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video, including:
  • the fourth formula is:
  • is the frame rate factor
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the code rate of the video
  • Q sc is the display quality of the screen
  • Q min is a constant
  • U is an adjustment function, and increases as ⁇ increases
  • Y 1 is the first quality factor
  • Y 2 is the second quality factor.
  • the video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video, including:
  • the fifth formula is:
  • Func( ⁇ ) is the correction factor, which decreases with increasing ⁇
  • is the frame rate factor
  • F B /F v
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the video
  • Q sc is the screen display quality
  • Q min is a constant, used to indicate the minimum value of the display quality
  • a and c are constants
  • Y 1 is the first quality factor
  • Y 2 is the second quality factor.
  • a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
  • the video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video, including:
  • the video display quality Q v is calculated according to the sixth formula, and the sixth formula is:
  • c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
  • V c fun1(V c )
  • Y 1 fun2(V c )
  • V c is used to indicate the content complexity of the video
  • fun1(V c ) and fun2(V c ) are functions of V c , and both The increase in V c increases.
  • the content complexity of a video includes time complexity and content complexity.
  • the method further includes:
  • the present invention provides an electronic device, including:
  • a first obtaining unit configured to acquire a screen display quality of the video, where the screen display quality is used to indicate a highest value of the display quality of the video on the display screen;
  • a second acquiring unit configured to acquire a frame rate of the video and a code rate of the video
  • a calculating unit configured to: according to the screen display quality acquired by the first acquiring unit, the frame rate of the video acquired by the second acquiring unit, and the code rate of the video
  • the first preset algorithm calculates the video display quality, and the video display quality is used to indicate the display quality of the video on the display screen.
  • the first obtaining unit is configured to calculate a screen display quality according to a second preset algorithm according to a size and a display resolution of the display screen, where the size of the display screen is used to indicate the size of the display screen, and the display resolution is The rate includes at least one of the resolution of the video and the resolution of the display screen.
  • the size of the display screen is inversely related to the quality of the screen display, and the display resolution is positively correlated with the quality of the screen display.
  • the electronic device includes the display screen, or the display screen does not belong to the electronic device.
  • the first obtaining unit is specifically configured to obtain an effective display pixel density, and calculate a screen display quality according to the first formula.
  • the first formula is:
  • Q sc is the screen display quality
  • Q max is a constant, used to indicate the maximum value of the display quality
  • P is the effective display pixel density
  • the effective display pixel density is calculated according to the display resolution and the size of the display screen
  • D s To display the size of the screen d, e, and f are constants.
  • the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen
  • the first acquiring unit is specifically configured to calculate the effective display pixel density according to the second formula, and the second formula for:
  • S w is the width of the display resolution
  • S h is the height of the display resolution
  • the display resolution is the resolution of the display screen
  • the display resolution is video. Resolution.
  • the display resolution includes the resolution of the video and the resolution of the display screen.
  • the first obtaining unit is specifically configured to calculate an effective display pixel density according to the third formula, and the third formula is:
  • is a resolution matching factor
  • V w is the width of the resolution of the video
  • V h is the height of the resolution of the video
  • D w is the width of the resolution of the display screen
  • D h is the height of the resolution of the display screen
  • g is a constant.
  • the calculating unit is specifically configured to calculate a video display quality Q v according to the fourth formula, and the fourth formula is:
  • is the frame rate factor
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the code rate of the video
  • Q sc is the display quality of the screen
  • Q min is a constant
  • U is an adjustment function, and increases as ⁇ increases
  • Y 1 is the first quality factor
  • Y 2 is the second quality factor.
  • the calculating unit is specifically configured to calculate a video display quality Q v according to the fifth formula, and the fifth formula is:
  • Func( ⁇ ) is the correction factor, which decreases with increasing ⁇
  • is the frame rate factor
  • F B /F v
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the video
  • Q sc is the screen display quality
  • Q min is a constant, used to indicate the minimum value of the display quality
  • a and c are constants
  • Y 1 is the first quality factor
  • Y 2 is the second quality factor.
  • a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
  • the calculating unit is specifically configured to calculate a video display quality Q v according to the sixth formula when the frame rate of the video is greater than the reference frame rate, and the sixth formula is:
  • c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
  • V c fun1(V c )
  • Y 1 fun2(V c )
  • V c is used to indicate the content complexity of the video
  • fun1(V c ) and fun2(V c ) are functions of V c , and both The increase in V c increases.
  • the acquisition unit is also used to obtain the content complexity of the video.
  • the present invention provides an electronic device, including: an electronic device including: a processor, a memory, and a bus, wherein the processor and the memory are connected to each other through a bus, and the memory is used to store programs and numbers. According to the processor, the processor is used to call a program stored in the memory to perform a calculation method of the video display quality;
  • a processor for obtaining a screen display quality of the video the screen display quality is used to indicate a highest value of the display quality of the video on the display screen; obtaining a frame rate of the video and a code rate of the video; according to the screen display quality, the frame of the video
  • the rate of the video and the video are calculated according to the first preset algorithm, and the video display quality is used to indicate the display quality of the video on the display screen.
  • the processor is configured to calculate a screen display quality according to a size of the display screen and a display resolution according to a second preset algorithm, where the size of the display screen is used to indicate the size of the display screen, and the display resolution includes At least one of the resolution of the video and the resolution of the display screen, the size of the display screen is negatively correlated with the display quality of the screen, and the display resolution is positively correlated with the display quality of the screen.
  • the processor is specifically configured to obtain an effective display pixel density, and calculate a screen display quality according to the first formula.
  • the first formula is:
  • Q sc is the screen display quality
  • Q max is a constant, used to indicate the maximum value of the display quality
  • P is the effective display pixel density
  • the effective display pixel density is calculated according to the display resolution and the size of the display screen
  • D s To display the size of the screen d, e, and f are constants.
  • the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the processor is specifically configured to calculate the effective display pixel density according to the second formula.
  • the second formula is:
  • S w is the width of the display resolution
  • S h is the height of the display resolution
  • the display resolution is the resolution of the display screen
  • the display resolution is video. Resolution.
  • the display resolution includes the resolution of the video and the resolution of the display screen.
  • the processor is specifically configured to calculate an effective display pixel density according to the third formula, and the third formula is:
  • is a resolution matching factor
  • V w is the width of the resolution of the video
  • V h is the height of the resolution of the video
  • D w is the width of the resolution of the display screen
  • D h is the height of the resolution of the display screen
  • g is a constant.
  • the processor is specifically configured to calculate a video display quality Q v according to the fourth formula, and the fourth formula is:
  • is the frame rate factor
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the code rate of the video
  • Q sc is the display quality of the screen
  • Q min is a constant
  • U is an adjustment function, and increases as ⁇ increases
  • Y 1 is the first quality factor
  • Y 2 is the second quality factor.
  • the processor is specifically configured to calculate a video display quality Q v according to the fifth formula, and the fifth formula is:
  • Func( ⁇ ) is the correction factor, which decreases with increasing ⁇
  • is the frame rate factor
  • F B /F v
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the video
  • Q sc is the screen display quality
  • Q min is a constant, used to indicate the minimum value of the display quality
  • a and c are constants
  • Y 1 is the first quality factor
  • Y 2 is the second quality factor.
  • a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
  • the processor is specifically configured to calculate a video display quality Q v according to the sixth formula when the frame rate of the video is greater than the reference frame rate, and the sixth formula is:
  • c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
  • V c fun1(V c )
  • Y 1 fun2(V c )
  • V c is used to indicate the content complexity of the video
  • fun1(V c ) and fun2(V c ) are functions of V c , and both The increase in V c increases.
  • the processor is also used to obtain the content complexity of the video.
  • the method and device for calculating the video display quality obtained by the present invention obtain the screen display quality of the video, the frame rate of the video, and the bit rate of the video, according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video.
  • the video display quality is calculated, wherein the screen display quality is used to indicate the highest value of the display quality of the video on the display screen.
  • the integrated screen display quality, the frame rate of the video, and the bit rate of the video calculate the video display quality, not only based on the parameters of the video data itself, but also the display of the video on the display screen, which can more accurately reflect the video display. quality.
  • FIG. 1 is a schematic structural diagram of a network system according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for calculating video display quality according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an electronic device according to another embodiment of the present invention.
  • the embodiment of the invention provides a calculation method for video display quality, which is used for calculating the video display quality, and can accurately reflect the display quality of the video on the display screen.
  • FIG. 1 shows a network system.
  • the server 101 transmits the video to the terminal device 103 through the access network 102, and the user views the video on the terminal device 103.
  • the terminal device 103 can be a tablet computer, a mobile phone, a television, a computer, or the like. The present invention does not limit this.
  • the display quality of the video may be affected due to packet loss, transmission speed, etc.; when viewing video on different terminal devices 103, different terminal devices 103 are different in size and display screen.
  • the video display quality calculation method provided by the embodiment can accurately reflect the video display quality.
  • the calculation method of the video display quality provided in this embodiment may be performed by the terminal device 103 or may be performed by other electronic devices, and the present invention is not limited thereto.
  • the video is a collection of images that can be continuously played on the display screen, as long as the object that can be calculated by the calculation method of the video display quality provided by the present invention belongs to the video referred to in the present invention, and should not
  • the scope of the claimed invention is defined by the conventional understanding of video in people's daily lives.
  • the method for calculating video display quality includes the following steps:
  • the screen display quality is used to indicate the highest value of the display quality of the video on the display screen.
  • the screen display quality is calculated based on the size of the display screen and the display resolution.
  • the display screen may be rectangular, and the size of the display screen may be the diagonal length of the display screen.
  • the screen display quality is calculated according to a second preset algorithm according to the size and display resolution of the display screen, and the size of the display screen is used to indicate the size of the display screen, and the display resolution includes the resolution of the video and the resolution of the display screen.
  • At least one of the display screens has a negative correlation with the screen display quality, and the display resolution is positively correlated with the screen display quality, that is, the larger the size of the display screen, the smaller the screen display quality; the higher the display resolution, The screen display quality is greater.
  • the video display quality is positively correlated with the screen display quality
  • the video display quality is positively correlated with the video frame rate
  • the video display quality is positively correlated with the video code rate
  • the maximum value of the display quality is Q max
  • the minimum value of the display quality is Q min .
  • the maximum value of the display quality may be set to 5, and the minimum value is set to 1, the two boundaries.
  • the values apply to all display devices, and different display devices can calculate the different screen display quality.
  • This allows different display devices to have a common display quality standard, which can more accurately reflect the display quality of the video, two different The video can be compared to its display quality even if it is viewed on different display devices.
  • the embodiment provides a specific manner for calculating the display quality of the screen.
  • there are more than one way to calculate the display quality of the screen there are more than one way to calculate the display quality of the screen.
  • only a preferred implementation manner is illustrated, which does not represent The invention is limited to this.
  • obtaining a valid display pixel density, and calculating a screen display quality according to the first formula is:
  • Q sc is the screen display quality
  • Q max is a constant, used to indicate the maximum value of the display quality
  • P is the effective display pixel density
  • the effective display pixel density is calculated according to the display resolution and the size of the display screen
  • D s In order to display the size of the screen, d, e, and f are constants, and d, e, and f may be constants obtained by model training.
  • the effective display pixel density P is used to indicate the number of pixels actually displayed by the video within the unit area of the display screen.
  • the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the effective display pixel density is calculated according to the second formula.
  • the second formula is:
  • S w is the width of the display resolution
  • S h is the height of the display resolution.
  • the display resolution only includes the resolution of the video
  • S w is the width of the resolution of the video
  • S h is the height of the resolution of the video
  • the display resolution includes the resolution of the video and the resolution of the display screen, when the resolution of the video is greater than the resolution of the display screen
  • the display resolution is the resolution of the display screen.
  • the display resolution is the resolution of the video.
  • the display resolution includes the resolution of the video and the resolution of the display screen, and the effective display pixel density is calculated according to the third formula.
  • the third formula is:
  • is a resolution matching factor
  • V w is the width of the resolution of the video
  • V h is the height of the resolution of the video
  • D w is the width of the resolution of the display screen
  • D h is the height of the resolution of the display screen
  • g is a constant, which can be a very A small positive number, preferably, g can be 0.05.
  • the code rate of the video is used to indicate the number of bits transmitted in the video unit time
  • the frame rate of the video is used to indicate the number of frames displayed by the video per second.
  • the video display quality is used to indicate the display quality of the video on the display screen.
  • the embodiment provides three specific manners for calculating the video display quality.
  • the video display quality can also be calculated by other algorithms.
  • the specific algorithm is as follows:
  • the fourth formula is:
  • is the frame rate factor
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the code rate of the video
  • Q sc is the display quality of the screen
  • Q min is a constant , used to indicate the minimum value of the display quality
  • a, c are constant
  • the size of a, c is related to the encoding type and resolution of the video
  • U is the adjustment function, which increases with the increase of ⁇
  • Y 1 is the first quality.
  • Factor, Y 2 is the second quality factor.
  • U may be a function of ⁇ , which increases as ⁇ increases, and in one possible implementation,
  • b is a constant and can be a small positive number.
  • b can be 0.05.
  • the fifth formula is:
  • Func( ⁇ ) is the correction factor, which decreases with increasing ⁇
  • is the frame rate factor
  • F B /F v
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the video Code rate
  • Q sc is the screen display quality
  • Q min is a constant, used to indicate the minimum value of display quality
  • a, c is a constant
  • the size of a, c is related to the encoding type and resolution of the video
  • Y 1 is the first The quality factor
  • Y 2 is the second quality factor.
  • func( ⁇ ) a 1 -a 2 ⁇ log(a 3 ⁇ ), (a 1 , a 2 , a 3 >0); when ⁇ 1, a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
  • the video display quality Q v is calculated according to the sixth formula, and the sixth formula is:
  • c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
  • the reference frame rate F B is the frame rate at which the video can be played smoothly, and the unit is frame per second (English: Frame Per Second, FPS for short), generally 24FPS-30FPS can be regarded as
  • FPS Frame Per Second
  • the reference frame rate can be set according to specific conditions, and the present invention does not limit this.
  • the first quality factor Y 1 and the second quality factor Y 2 may be set to 1.
  • the video may be added when calculating the video display quality.
  • the method of calculating the video display quality provided by this embodiment may further include the step of acquiring the content complexity of the video. In the case of considering the complexity of the content of the video, the calculated result can be made to more accurately reflect the video display quality.
  • the content complexity of the video may include at least one of a time complexity of the video and a spatial complexity of the video, where the time complexity is used to indicate the degree of change of the included image between one frame and one frame of the video, two frames. The larger the difference between the images of the video, the higher the time complexity. It can also be said that the time complexity is used to indicate the degree of change of the sequence of the video over time. The time complexity of the sequence in which the content of the video is faster is higher; the space is complicated. Degree is used to indicate the texture complexity of an image in a frame. The more complex the scene displayed by the image of the video, the higher the spatial complexity.
  • the time complexity of the video can be determined according to the size of the video frame and the code rate. Specifically, according to the formula:
  • TCC is the time complexity of the video
  • B v is the code rate of the video
  • ABI is the average frame size
  • t 0 is a constant.
  • the spatial complexity of a video can be calculated from the number of bits of a pixel in a frame of a video and the parameter x.
  • the content complexity of the video can also be calculated according to other methods. Calculate, the content complexity of the video is used to indicate the difficulty of video playback. The more complex the content of the video, the smaller the video display quality, the smaller the content complexity of the video, and the greater the video display quality.
  • the calculation method of the video display quality obtained by the embodiment obtains the screen display quality of the video, the frame rate of the video, and the code rate of the video, and is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video.
  • the video display quality wherein the screen display quality is used to indicate the highest value of the display quality of the video on the display screen.
  • the integrated screen display quality, the frame rate of the video, and the bit rate of the video calculate the video display quality, not only based on the parameters of the video data itself, but also the display of the video on the display screen, which can more accurately reflect the video display. quality.
  • the embodiment of the present invention provides an electronic device for performing the calculation method of the video display quality described in the embodiment corresponding to FIG. 2, based on the method for calculating the video display quality described in the embodiment corresponding to FIG. 2 above.
  • the electronic device 30 includes a first obtaining unit 301, a second obtaining unit 302, and a calculating unit 303.
  • the first obtaining unit 301 is configured to acquire a screen display quality of the video, where the screen display quality is used to indicate a highest value of the display quality of the video on the display screen;
  • the second obtaining unit 302 is configured to acquire a frame rate of the video and a code rate of the video.
  • the calculating unit 303 is configured to use the screen display quality acquired by the first acquiring unit 301, the frame rate of the video acquired by the second acquiring unit 302, and the video.
  • the code rate calculates the video display quality according to the first preset algorithm, and the video display quality is used to indicate the display quality of the video on the display screen.
  • the first obtaining unit 301 is configured to calculate a screen display quality according to a size and a display resolution of the display screen according to a second preset algorithm, where the size of the display screen is used to indicate the size of the display screen, and the display resolution includes the video. At least one of the resolution and the resolution of the display screen, the size of the display screen is negatively correlated with the display quality of the screen, and the display resolution is positively correlated with the display quality of the screen, that is, the larger the size of the display screen, the quality of the screen display The smaller the display resolution, the higher the display quality.
  • the electronic device includes the display screen, or the display screen does not belong to the electronic device.
  • the first obtaining unit 301 is specifically configured to obtain an effective display pixel density, and calculate a screen display quality according to the first formula.
  • the first formula is:
  • Q sc is the screen display quality
  • Q max is a constant, used to indicate the maximum value of the display quality
  • P is the effective display pixel density
  • the effective display pixel density is calculated according to the display resolution and the size of the display screen
  • D s To display the size of the screen d, e, and f are constants.
  • the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen
  • the first obtaining unit 301 is specifically configured to calculate the effective display pixel density according to the second formula, and the second formula for:
  • S w is the width of the display resolution
  • S h is the height of the display resolution.
  • the display resolution includes the resolution of the video and the resolution of the display screen
  • the display resolution is the resolution of the display screen
  • the resolution of the video is smaller than the display
  • the display resolution is the resolution of the video.
  • the display resolution includes the resolution of the video and the resolution of the display screen
  • the first obtaining unit 301 is specifically configured to calculate the effective display pixel density according to the third formula, and the third formula is:
  • is a resolution matching factor
  • V w is the width of the resolution of the video
  • V h is the height of the resolution of the video
  • D w is the width of the resolution of the display screen
  • D h is the height of the resolution of the display screen
  • g is a constant.
  • the calculating unit 303 is specifically configured to calculate a video display quality Q v according to the fourth formula, where the fourth formula is:
  • is the frame rate factor
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the code rate of the video
  • Q sc is the display quality of the screen
  • Q min is a constant
  • U is an adjustment function, and increases as ⁇ increases
  • Y 1 is the first quality factor
  • Y 2 is the second quality factor.
  • the calculating unit 303 is specifically configured to calculate a video display quality Q v according to the fifth formula, where the fifth formula is:
  • Func( ⁇ ) is the correction factor, which decreases with increasing ⁇
  • is the frame rate factor
  • F B /F v
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the video
  • Q sc is the screen display quality
  • Q min is a constant, used to indicate the minimum value of the display quality
  • a and c are constants
  • Y 1 is the first quality factor
  • Y 2 is the second quality factor.
  • func( ⁇ ) a 1 -a 2 ⁇ log(a 3 ⁇ ), (a 1 , a 2 , a 3 >0); when ⁇ 1, Wherein a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
  • the calculating unit 303 is specifically configured to: when the frame rate of the video is greater than the reference frame rate, calculate the video display quality Q v according to the sixth formula, where the sixth formula is:
  • c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
  • the acquiring unit 301 is specifically configured to acquire content complexity of the video.
  • the structure of the electronic device is described by using a virtual module.
  • the specific implementation manner may be that the program and data for implementing the calculation method of the video display quality of the present invention are stored in the memory, and the processor calls the memory.
  • the program implements the calculation method of the video display quality of the present invention.
  • the electronic device can be divided into virtual modules in the embodiment according to different functions in the respective steps, and does not represent that each electronic device includes the physical structure of each virtual module.
  • the electronic device 40 includes: a processor 401, a memory 402, and a bus 403.
  • the processor 401 and the memory 402 are connected to each other through a bus.
  • the memory 402 is used to store programs and data, and the processor 401 is used by the processor 401. Performing a video display quality calculation method by calling a program stored in the memory;
  • the processor 401 is configured to acquire a screen display quality of the video, where the screen display quality is used to indicate a highest value of the display quality of the video on the display screen; obtain a frame rate of the video and a code rate of the video; according to the screen display quality, the video The frame rate and the code rate of the video are calculated according to a first preset algorithm, and the video display quality is used to indicate the display quality of the video on the display screen.
  • the processor 401 is configured to calculate, according to a size and a display resolution of the display screen, a screen display quality according to a second preset algorithm, where a size of the display screen is used to indicate a size of the display screen, and the display resolution includes a resolution of the video. At least one of the rate and the resolution of the display screen, the size of the display screen is negatively correlated with the screen display quality, and the display resolution is positively correlated with the screen display quality.
  • the processor 401 is specifically configured to obtain an effective display pixel density, and calculate a screen display quality according to the first formula, where the first formula is:
  • Q sc is the screen display quality
  • Q max is a constant, used to indicate the maximum value of the display quality
  • P is the effective display pixel density
  • the effective display pixel density is calculated according to the display resolution and the size of the display screen
  • D s To display the size of the screen d, e, and f are constants.
  • the display resolution is the resolution of the video, or the display score
  • the resolution is the resolution of the display screen
  • the processor 401 is specifically configured to calculate the effective display pixel density according to the second formula.
  • the second formula is:
  • S w is the width of the display resolution
  • S h is the height of the display resolution.
  • the display resolution is the resolution of the display screen
  • the display resolution is the resolution of the video.
  • the display resolution includes the resolution of the video and the resolution of the display screen.
  • the processor 401 is specifically configured to calculate an effective display pixel density according to the third formula, and the third formula is:
  • is a resolution matching factor
  • V w is the width of the resolution of the video
  • V h is the height of the resolution of the video
  • D w is the width of the resolution of the display screen
  • D h is the height of the resolution of the display screen
  • g is a constant.
  • the processor 401 is specifically configured to calculate a video display quality Q v according to the fourth formula, where the fourth formula is:
  • is the frame rate factor
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the code rate of the video
  • Q sc is the display quality of the screen
  • Q min is a constant
  • U is an adjustment function, and increases as ⁇ increases
  • Y 1 is the first quality factor
  • Y 2 is the second quality factor.
  • the processor 401 is specifically configured to calculate a video display quality Q v according to the fifth formula, where the fifth formula is:
  • Func( ⁇ ) is the correction factor, which decreases with increasing ⁇
  • is the frame rate factor
  • F B /F v
  • F B is the reference frame rate
  • F v is the frame rate of the video
  • B v is the video
  • Q sc is the screen display quality
  • Q min is a constant, used to indicate the minimum value of the display quality
  • a and c are constants
  • Y 1 is the first quality factor
  • Y 2 is the second quality factor.
  • a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
  • the processor 401 is configured to: when the frame rate of the video is greater than the reference frame rate, calculate the video display quality Q v according to the sixth formula, where the sixth formula is:
  • c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
  • V c fun1(V c )
  • Y 1 fun2(V c )
  • V c is used to indicate the content complexity of the video
  • fun1(V c ) and fun2(V c ) are functions of V c , and both The increase in V c increases.
  • the processor 401 is further configured to acquire content complexity of the video.
  • the electronic device provided by the embodiment obtains the screen display quality of the video, the frame rate of the video, and the code rate of the video, and calculates the video display quality according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video.
  • the screen display quality is used to indicate the display quality of the video on the display screen. The highest value.
  • the integrated screen display quality, the frame rate of the video, and the bit rate of the video calculate the video display quality, not only based on the parameters of the video data itself, but also the display of the video on the display screen, which can more accurately reflect the video display. quality.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention relates to the technical field of multimedia, and discloses a computing method and apparatus for video display quality, used to solve the problem in which video quality computation methods in the prior art cannot accurately indicate video display quality. The specific solution comprises: acquiring screen display quality of a video, a frame rate of the video, and a bit rate of the video; and computing, according to the screen display quality, the video frame rate, and the video bit rate and on the basis of a first predetermined algorithm, video display quality, wherein the screen display quality is used to indicate a maximum value of display quality of the video on a display screen. The present invention is used to compute video display quality.

Description

视频显示质量的计算方法及设备Video display quality calculation method and device
本申请要求于2016年4月6日提交中国专利局、申请号为201610209567.9、发明名称为“视频显示质量的计算方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610209567.9, entitled "Calculation Method and Apparatus for Video Display Quality", filed on April 6, 2016, the entire contents of which is incorporated herein by reference. in.
技术领域Technical field
本发明涉及多媒体技术领域,特别涉及一种视频显示质量的计算方法及设备。The present invention relates to the field of multimedia technologies, and in particular, to a method and a device for calculating video display quality.
背景技术Background technique
随着多媒体技术的快速发展,视频数据已成为网络传输的主要数据,视频显示质量也成为衡量网络服务质量的关键指标。因此,如何便捷有效地确定视频显示质量成为一个亟待解决的问题。With the rapid development of multimedia technology, video data has become the main data of network transmission, and video display quality has become a key indicator to measure the quality of network services. Therefore, how to conveniently and effectively determine the quality of video display has become an urgent problem to be solved.
现有技术中,在一种实现方式下,根据视频帧类型、视频帧大小、帧率和码率进行计算得到视频质量;在另一种实现方式下,计算视频数据的峰值信噪比(英文:Peak Signal to Noise Ratio,简称:PSNR),以此确定视频质量。In the prior art, in one implementation manner, the video quality is calculated according to the video frame type, the video frame size, the frame rate, and the code rate; in another implementation manner, the peak signal to noise ratio of the video data is calculated. :Peak Signal to Noise Ratio (PSNR), to determine the video quality.
在实现上述计算视频质量的过程中,发明人发现现有技术中只是根据视频数据自身的参数进行计算,只能确定视频压缩编码的质量,或是视频传输过程中的质量,无法准确体现视频显示质量。In the process of realizing the above-mentioned calculation of video quality, the inventors have found that the prior art only calculates according to the parameters of the video data itself, and can only determine the quality of the video compression coding, or the quality during the video transmission process, and cannot accurately represent the video display. quality.
发明内容Summary of the invention
为了解决现有技术中的视频质量计算方法无法准确体现视频显示质量的问题,本发明实施例提供了一种视频显示质量的计算方法及设备。所述技术方案如下:In order to solve the problem that the video quality calculation method in the prior art cannot accurately represent the video display quality, the embodiment of the invention provides a method and a device for calculating the video display quality. The technical solution is as follows:
第一方面,本发明提供一种视频显示质量的计算方法,该方法包括: In a first aspect, the present invention provides a method for calculating video display quality, the method comprising:
获取视频的屏幕显示质量,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值;Obtaining the screen display quality of the video, and the screen display quality is used to indicate the highest value of the display quality of the video on the display screen;
获取视频的帧率和视频的码率;Obtain the frame rate of the video and the bit rate of the video;
根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,视频显示质量用于指示视频在显示屏幕上的显示质量。The video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video, and the video display quality is used to indicate the display quality of the video on the display screen.
在一种可能的实现中,视频显示质量与屏幕显示质量呈正相关关系,视频显示质量与视频的帧率呈正相关关系,视频显示质量与视频的码率呈正相关关系。In a possible implementation, the video display quality is positively correlated with the screen display quality, the video display quality is positively correlated with the video frame rate, and the video display quality is positively correlated with the video code rate.
在一种可能的实现中,获取视频的屏幕显示质量,包括:In one possible implementation, the quality of the screen display of the video is obtained, including:
根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系。Calculating the screen display quality according to the size of the display screen and the display resolution according to a second preset algorithm, the size of the display screen is used to indicate the size of the display screen, and the display resolution includes at least one of a resolution of the video and a resolution of the display screen. Item, the size of the display screen is negatively correlated with the screen display quality, and the display resolution is positively correlated with the screen display quality.
示例性的,该显示屏幕可以是矩形的,该显示屏幕的尺寸可以是该显示屏幕的对角线长度。Illustratively, the display screen may be rectangular, and the size of the display screen may be the diagonal length of the display screen.
在一种可能的实现中,根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,包括:In a possible implementation, the screen display quality is calculated according to the second preset algorithm according to the size and display resolution of the display screen, including:
获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:Get the effective display pixel density, calculate the screen display quality according to the first formula, the first formula is:
Figure PCTCN2016104245-appb-000001
Figure PCTCN2016104245-appb-000001
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数。Where Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, and the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s To display the size of the screen, d, e, and f are constants.
示例性的,有效显示像素密度P用于指示视频在显示屏幕的单位面积内实际显示的像素数。Illustratively, the effective display pixel density P is used to indicate the number of pixels actually displayed by the video within the unit area of the display screen.
在一种可能的实现中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,获取有效显示像素密度,包括:根据第二公式计算有效显示像素密度,第二公式为: In a possible implementation, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the effective display pixel density is obtained, including: calculating the effective display pixel density according to the second formula, the second formula For:
Figure PCTCN2016104245-appb-000002
Figure PCTCN2016104245-appb-000002
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。Wherein, S w is the width of the display resolution, S h is the height of the display resolution.
在一种可能的实现中,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。In a possible implementation, when the resolution of the video is greater than the resolution of the display screen, the display resolution is the resolution of the display screen, and when the resolution of the video is smaller than the resolution of the display screen, the display resolution is video. Resolution.
在一种可能的实现中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,获取有效显示像素密度,还包括:In one possible implementation, the display resolution includes the resolution of the video and the resolution of the display screen to obtain an effective display pixel density, and further includes:
根据第三公式计算有效显示像素密度,第三公式为:Calculate the effective display pixel density according to the third formula. The third formula is:
Figure PCTCN2016104245-appb-000003
Figure PCTCN2016104245-appb-000003
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时,
Figure PCTCN2016104245-appb-000004
Where θ is a resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Figure PCTCN2016104245-appb-000004
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant.
在一种可能的实现中,根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,包括:In a possible implementation, the video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video, including:
根据第四公式计算视频显示质量Qv,第四公式为:Calculate the video display quality Q v according to the fourth formula. The fourth formula is:
Figure PCTCN2016104245-appb-000005
Figure PCTCN2016104245-appb-000005
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Where λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the display quality of the screen, and Q min is a constant For indicating the minimum value of the display quality, a and c are constants, U is an adjustment function, and increases as λ increases, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
Figure PCTCN2016104245-appb-000006
Figure PCTCN2016104245-appb-000006
其中,b为常数。Where b is a constant.
在一种可能的实现中,根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,包括: In a possible implementation, the video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video, including:
根据第五公式计算视频显示质量Qv,第五公式为:Calculate the video display quality Q v according to the fifth formula. The fifth formula is:
Qv=QB·func(λ);Q v =Q B ·func(λ);
其中,QB为参考质量,Where Q B is the reference quality,
Figure PCTCN2016104245-appb-000007
Figure PCTCN2016104245-appb-000007
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。Func(λ) is the correction factor, which decreases with increasing λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video The code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);When λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0);
当λ<1时,
Figure PCTCN2016104245-appb-000008
When λ<1,
Figure PCTCN2016104245-appb-000008
其中,a1,a2,a3,b1,b2,b3为常数。Wherein a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
在一种可能的实现中,当视频的帧率大于基准帧率时,根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,包括:In a possible implementation, when the frame rate of the video is greater than the reference frame rate, the video display quality is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video, including:
根据第六公式计算视频显示质量Qv,第六公式为:The video display quality Q v is calculated according to the sixth formula, and the sixth formula is:
Qv=func(QB,λ);Q v = func (Q B , λ);
其中,
Figure PCTCN2016104245-appb-000009
c1,c2,c3,c4为常数,QB为参考质量,
among them,
Figure PCTCN2016104245-appb-000009
c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
Figure PCTCN2016104245-appb-000010
Figure PCTCN2016104245-appb-000010
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q Min is a constant indicating the minimum value of the display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
Y1=1,Y2=1,或者,Y 1 =1, Y 2 =1, or,
Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大。Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, and fun1(V c ) and fun2(V c ) are functions of V c , and both The increase in V c increases.
示例性的,视频的内容复杂度包含时间复杂度和内容复杂度。Illustratively, the content complexity of a video includes time complexity and content complexity.
在一种可能的实现中,该方法还包括: In a possible implementation, the method further includes:
获取视频的内容复杂度。Get the content complexity of the video.
第二方面,本发明提供一种电子设备,包括:In a second aspect, the present invention provides an electronic device, including:
第一获取单元,用于获取视频的屏幕显示质量,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值;a first obtaining unit, configured to acquire a screen display quality of the video, where the screen display quality is used to indicate a highest value of the display quality of the video on the display screen;
第二获取单元,用于获取视频的帧率和视频的码率;计算单元,用于根据第一获取单元获取的屏幕显示质量、第二获取单元获取的视频的帧率及视频的码率按照第一预设算法计算视频显示质量,视频显示质量用于指示视频在显示屏幕上的显示质量。a second acquiring unit, configured to acquire a frame rate of the video and a code rate of the video; and a calculating unit, configured to: according to the screen display quality acquired by the first acquiring unit, the frame rate of the video acquired by the second acquiring unit, and the code rate of the video The first preset algorithm calculates the video display quality, and the video display quality is used to indicate the display quality of the video on the display screen.
在一种可能的实现中,第一获取单元,具体用于根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系。In a possible implementation, the first obtaining unit is configured to calculate a screen display quality according to a second preset algorithm according to a size and a display resolution of the display screen, where the size of the display screen is used to indicate the size of the display screen, and the display resolution is The rate includes at least one of the resolution of the video and the resolution of the display screen. The size of the display screen is inversely related to the quality of the screen display, and the display resolution is positively correlated with the quality of the screen display.
示例性的,该电子设备包含该显示屏幕,或者,该显示屏幕不属于该电子设备。Illustratively, the electronic device includes the display screen, or the display screen does not belong to the electronic device.
在一种可能的实现中,第一获取单元,具体用于获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:In a possible implementation, the first obtaining unit is specifically configured to obtain an effective display pixel density, and calculate a screen display quality according to the first formula. The first formula is:
Figure PCTCN2016104245-appb-000011
Figure PCTCN2016104245-appb-000011
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数。Where Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, and the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s To display the size of the screen, d, e, and f are constants.
在一种可能的实现中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,第一获取单元,具体用于根据第二公式计算有效显示像素密度,第二公式为:In a possible implementation, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the first acquiring unit is specifically configured to calculate the effective display pixel density according to the second formula, and the second formula for:
Figure PCTCN2016104245-appb-000012
Figure PCTCN2016104245-appb-000012
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。 Wherein, S w is the width of the display resolution, S h is the height of the display resolution.
在一种可能的实现中,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。In a possible implementation, when the resolution of the video is greater than the resolution of the display screen, the display resolution is the resolution of the display screen, and when the resolution of the video is smaller than the resolution of the display screen, the display resolution is video. Resolution.
在一种可能的实现中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,In one possible implementation, the display resolution includes the resolution of the video and the resolution of the display screen.
第一获取单元,具体用于根据第三公式计算有效显示像素密度,第三公式为:The first obtaining unit is specifically configured to calculate an effective display pixel density according to the third formula, and the third formula is:
Figure PCTCN2016104245-appb-000013
Figure PCTCN2016104245-appb-000013
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时,
Figure PCTCN2016104245-appb-000014
Where θ is a resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Figure PCTCN2016104245-appb-000014
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant.
在一种可能的实现中,In one possible implementation,
计算单元,具体用于根据第四公式计算视频显示质量Qv,第四公式为:The calculating unit is specifically configured to calculate a video display quality Q v according to the fourth formula, and the fourth formula is:
Figure PCTCN2016104245-appb-000015
Figure PCTCN2016104245-appb-000015
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Where λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the display quality of the screen, and Q min is a constant For indicating the minimum value of the display quality, a and c are constants, U is an adjustment function, and increases as λ increases, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
Figure PCTCN2016104245-appb-000016
Figure PCTCN2016104245-appb-000016
其中,b为常数。Where b is a constant.
在一种可能的实现中,In one possible implementation,
计算单元,具体用于根据第五公式计算视频显示质量Qv,第五公式为:The calculating unit is specifically configured to calculate a video display quality Q v according to the fifth formula, and the fifth formula is:
Qv=QB·func(λ);Q v =Q B ·func(λ);
其中,QB为参考质量, Where Q B is the reference quality,
Figure PCTCN2016104245-appb-000017
Figure PCTCN2016104245-appb-000017
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。Func(λ) is the correction factor, which decreases with increasing λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video The code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);When λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0);
当λ<1时,
Figure PCTCN2016104245-appb-000018
When λ<1,
Figure PCTCN2016104245-appb-000018
其中,a1,a2,a3,b1,b2,b3为常数。Wherein a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
在一种可能的实现中,In one possible implementation,
计算单元,具体用于当视频的帧率大于基准帧率时,根据第六公式计算视频显示质量Qv,第六公式为:The calculating unit is specifically configured to calculate a video display quality Q v according to the sixth formula when the frame rate of the video is greater than the reference frame rate, and the sixth formula is:
Qv=func(QB,λ);Q v = func (Q B , λ);
其中,
Figure PCTCN2016104245-appb-000019
c1,c2,c3,c4为常数,QB为参考质量,
among them,
Figure PCTCN2016104245-appb-000019
c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
Figure PCTCN2016104245-appb-000020
Figure PCTCN2016104245-appb-000020
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q Min is a constant indicating the minimum value of the display quality, a and c are constants, U is an adjustment function, and increases as λ increases, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
Y1=1,Y2=1,或者,Y 1 =1, Y 2 =1, or,
Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大。Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, and fun1(V c ) and fun2(V c ) are functions of V c , and both The increase in V c increases.
在一种可能的实现中,In one possible implementation,
获取单元,还用于获取视频的内容复杂度。The acquisition unit is also used to obtain the content complexity of the video.
第三方面,本本发明提供一种电子设备,包括:电子设备包括:处理器、存储器及总线,处理器及存储器通过总线相互连接,存储器用于存储程序和数 据,处理器用于调用存储器存储的程序执行视频显示质量的计算方法;In a third aspect, the present invention provides an electronic device, including: an electronic device including: a processor, a memory, and a bus, wherein the processor and the memory are connected to each other through a bus, and the memory is used to store programs and numbers. According to the processor, the processor is used to call a program stored in the memory to perform a calculation method of the video display quality;
处理器,用于获取视频的屏幕显示质量,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值;获取视频的帧率和视频的码率;根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,视频显示质量用于指示视频在显示屏幕上的显示质量。a processor for obtaining a screen display quality of the video, the screen display quality is used to indicate a highest value of the display quality of the video on the display screen; obtaining a frame rate of the video and a code rate of the video; according to the screen display quality, the frame of the video The rate of the video and the video are calculated according to the first preset algorithm, and the video display quality is used to indicate the display quality of the video on the display screen.
在一种可能的实现中,处理器,具体用于根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系。In a possible implementation, the processor is configured to calculate a screen display quality according to a size of the display screen and a display resolution according to a second preset algorithm, where the size of the display screen is used to indicate the size of the display screen, and the display resolution includes At least one of the resolution of the video and the resolution of the display screen, the size of the display screen is negatively correlated with the display quality of the screen, and the display resolution is positively correlated with the display quality of the screen.
在一种可能的实现中,处理器,具体用于获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:In a possible implementation, the processor is specifically configured to obtain an effective display pixel density, and calculate a screen display quality according to the first formula. The first formula is:
Figure PCTCN2016104245-appb-000021
Figure PCTCN2016104245-appb-000021
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数。Where Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, and the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s To display the size of the screen, d, e, and f are constants.
在一种可能的实现中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,处理器,具体用于根据第二公式计算有效显示像素密度,第二公式为:In a possible implementation, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the processor is specifically configured to calculate the effective display pixel density according to the second formula. The second formula is:
Figure PCTCN2016104245-appb-000022
Figure PCTCN2016104245-appb-000022
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。Wherein, S w is the width of the display resolution, S h is the height of the display resolution.
在一种可能的实现中,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。In a possible implementation, when the resolution of the video is greater than the resolution of the display screen, the display resolution is the resolution of the display screen, and when the resolution of the video is smaller than the resolution of the display screen, the display resolution is video. Resolution.
在一种可能的实现中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,In one possible implementation, the display resolution includes the resolution of the video and the resolution of the display screen.
处理器,具体用于根据第三公式计算有效显示像素密度,第三公式为: The processor is specifically configured to calculate an effective display pixel density according to the third formula, and the third formula is:
Figure PCTCN2016104245-appb-000023
Figure PCTCN2016104245-appb-000023
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时,
Figure PCTCN2016104245-appb-000024
Where θ is a resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Figure PCTCN2016104245-appb-000024
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant.
在一种可能的实现中,In one possible implementation,
处理器,具体用于根据第四公式计算视频显示质量Qv,第四公式为:The processor is specifically configured to calculate a video display quality Q v according to the fourth formula, and the fourth formula is:
Figure PCTCN2016104245-appb-000025
Figure PCTCN2016104245-appb-000025
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Where λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the display quality of the screen, and Q min is a constant For indicating the minimum value of the display quality, a and c are constants, U is an adjustment function, and increases as λ increases, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
Figure PCTCN2016104245-appb-000026
Figure PCTCN2016104245-appb-000026
其中,b为常数。Where b is a constant.
在一种可能的实现中,In one possible implementation,
处理器,具体用于根据第五公式计算视频显示质量Qv,第五公式为:The processor is specifically configured to calculate a video display quality Q v according to the fifth formula, and the fifth formula is:
Qv=QB·func(λ);Q v =Q B ·func(λ);
其中,QB为参考质量,Where Q B is the reference quality,
Figure PCTCN2016104245-appb-000027
Figure PCTCN2016104245-appb-000027
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。Func(λ) is the correction factor, which decreases with increasing λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video The code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中, In one possible implementation,
当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);When λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0);
当λ<1时,
Figure PCTCN2016104245-appb-000028
When λ<1,
Figure PCTCN2016104245-appb-000028
其中,a1,a2,a3,b1,b2,b3为常数。Wherein a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
在一种可能的实现中,In one possible implementation,
处理器,具体用于当视频的帧率大于基准帧率时,根据第六公式计算视频显示质量Qv,第六公式为:The processor is specifically configured to calculate a video display quality Q v according to the sixth formula when the frame rate of the video is greater than the reference frame rate, and the sixth formula is:
Qv=func(QB,λ);Q v = func (Q B , λ);
其中,
Figure PCTCN2016104245-appb-000029
c1,c2,c3,c4为常数,QB为参考质量,
among them,
Figure PCTCN2016104245-appb-000029
c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
Figure PCTCN2016104245-appb-000030
Figure PCTCN2016104245-appb-000030
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q Min is a constant indicating the minimum value of the display quality, a and c are constants, U is an adjustment function, and increases as λ increases, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在一种可能的实现中,In one possible implementation,
Y1=1,Y2=1,或者,Y 1 =1, Y 2 =1, or,
Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大。Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, and fun1(V c ) and fun2(V c ) are functions of V c , and both The increase in V c increases.
在一种可能的实现中,In one possible implementation,
处理器,还用于获取视频的内容复杂度。The processor is also used to obtain the content complexity of the video.
本发明提供的视频显示质量的计算方法及设备,获取视频的屏幕显示质量、视频的帧率、视频的码率,根据屏幕显示质量、视频的帧率及视频的码率按照第一预设算法计算视频显示质量,其中,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值。综合屏幕显示质量以及视频的帧率、视频的码率对视频显示质量进行计算,不仅仅是根据视频数据自身的参数进行计算,兼顾了视频在显示屏幕的显示情况,能够更加准确地体现视频显示质量。The method and device for calculating the video display quality provided by the present invention obtain the screen display quality of the video, the frame rate of the video, and the bit rate of the video, according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the bit rate of the video. The video display quality is calculated, wherein the screen display quality is used to indicate the highest value of the display quality of the video on the display screen. The integrated screen display quality, the frame rate of the video, and the bit rate of the video calculate the video display quality, not only based on the parameters of the video data itself, but also the display of the video on the display screen, which can more accurately reflect the video display. quality.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are merely the present invention. Some of the embodiments can be obtained by those of ordinary skill in the art in view of the drawings without any inventive effort.
图1是本发明实施例提供的一种网络***的结构示意图;1 is a schematic structural diagram of a network system according to an embodiment of the present invention;
图2是本发明实施例提供的一种视频显示质量的计算方法的流程示意图;2 is a schematic flowchart of a method for calculating video display quality according to an embodiment of the present invention;
图3是本发明实施例提供的一种电子设备的结构示意图;3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
图4是本发明另一实施例提供的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device according to another embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
本发明实施例提供了一种视频显示质量的计算方法,用于对视频显示质量进行计算,能够准确体现视频在显示屏幕上的显示质量。The embodiment of the invention provides a calculation method for video display quality, which is used for calculating the video display quality, and can accurately reflect the display quality of the video on the display screen.
优选的,用户在网络上观看视频时,本实施例提供的视频显示质量的计算方法可以准确地计算出用户所观看的视频的显示质量,参照图1所示,图1示出一种网络***的结构,在该网络***10中,服务器101将视频通过接入网102传输至终端设备103,用户在终端设备103上观看视频,该终端设备103可以是平板电脑、手机、电视机、电脑等,本发明对此不做限制。在视频通过接入网102传输的过程中,因为丢包、传输速度等原因可能会影响视频的显示质量;在不同的终端设备103上观看视频时,不同的终端设备103因为尺寸、显示屏幕的分辨率等原因,其显示出的视频的质量也各不相同,因此,可以利用本实施例提供的视频显示质量的计算方法准确反映视频显示质量。本实施例提供的视频显示质量的计算方法可以由终端设备103执行,也可以由其他电子设备执行,对此,本发明不做限制。在本发明中,视频是可以在显示屏幕上持续播放的图像集合,只要能够用本发明所提供的视频显示质量的计算方法进行计算的对象,均属于本发明中所指代的视频,不应以人们日常生活中对视频惯有的理解去限定本发明所要求保护的范围。Preferably, when the user views the video on the network, the video display quality calculation method provided by the embodiment can accurately calculate the display quality of the video viewed by the user. Referring to FIG. 1, FIG. 1 shows a network system. In the network system 10, the server 101 transmits the video to the terminal device 103 through the access network 102, and the user views the video on the terminal device 103. The terminal device 103 can be a tablet computer, a mobile phone, a television, a computer, or the like. The present invention does not limit this. In the process of transmitting video through the access network 102, the display quality of the video may be affected due to packet loss, transmission speed, etc.; when viewing video on different terminal devices 103, different terminal devices 103 are different in size and display screen. For the reason of the resolution and the like, the quality of the displayed video is also different. Therefore, the video display quality calculation method provided by the embodiment can accurately reflect the video display quality. The calculation method of the video display quality provided in this embodiment may be performed by the terminal device 103 or may be performed by other electronic devices, and the present invention is not limited thereto. In the present invention, the video is a collection of images that can be continuously played on the display screen, as long as the object that can be calculated by the calculation method of the video display quality provided by the present invention belongs to the video referred to in the present invention, and should not The scope of the claimed invention is defined by the conventional understanding of video in people's daily lives.
具体的,参见图2,本实施例提供的视频显示质量的计算方法包括以下步骤:Specifically, referring to FIG. 2, the method for calculating video display quality provided by this embodiment includes the following steps:
201、获取视频的屏幕显示质量。201. Obtain a screen display quality of the video.
其中,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值, 屏幕显示质量是根据显示屏幕的尺寸以及显示分辨率计算得到的。The screen display quality is used to indicate the highest value of the display quality of the video on the display screen. The screen display quality is calculated based on the size of the display screen and the display resolution.
示例性的,该显示屏幕可以是矩形的,该显示屏幕的尺寸可以是该显示屏幕的对角线长度。Illustratively, the display screen may be rectangular, and the size of the display screen may be the diagonal length of the display screen.
可选的,根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系,即显示屏幕的尺寸越大,屏幕显示质量越小;显示分辨率越高,屏幕显示质量越大。Optionally, the screen display quality is calculated according to a second preset algorithm according to the size and display resolution of the display screen, and the size of the display screen is used to indicate the size of the display screen, and the display resolution includes the resolution of the video and the resolution of the display screen. At least one of the display screens has a negative correlation with the screen display quality, and the display resolution is positively correlated with the screen display quality, that is, the larger the size of the display screen, the smaller the screen display quality; the higher the display resolution, The screen display quality is greater.
优选的,视频显示质量与屏幕显示质量呈正相关关系,视频显示质量与视频的帧率呈正相关关系,视频显示质量与视频的码率呈正相关关系。Preferably, the video display quality is positively correlated with the screen display quality, the video display quality is positively correlated with the video frame rate, and the video display quality is positively correlated with the video code rate.
优选的,本实施例中显示质量的最大值为Qmax,显示质量的最小值为Qmin,例如,可以将显示质量的最大值设定为5,最小值设定为1,这两个边界值适用于所有的显示设备,而不同的显示设备可以计算各自不同的屏幕显示质量,这样,就使得不同的显示设备有共同的显示质量标准,能够更准确地反应视频的显示质量,两个不同的视频即使是分别在不同的显示设备上观看,也可以对比其显示质量。此处,可选的,本实施例提供一种具体的计算屏幕显示质量的方式,当然,计算屏幕显示质量的方式不止一种,此处只是列举一种优选的实现方式进行说明,并不代表本发明局限于此。可选的,获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:Preferably, in this embodiment, the maximum value of the display quality is Q max , and the minimum value of the display quality is Q min . For example, the maximum value of the display quality may be set to 5, and the minimum value is set to 1, the two boundaries. The values apply to all display devices, and different display devices can calculate the different screen display quality. This allows different display devices to have a common display quality standard, which can more accurately reflect the display quality of the video, two different The video can be compared to its display quality even if it is viewed on different display devices. Here, optionally, the embodiment provides a specific manner for calculating the display quality of the screen. Of course, there are more than one way to calculate the display quality of the screen. Here, only a preferred implementation manner is illustrated, which does not represent The invention is limited to this. Optionally, obtaining a valid display pixel density, and calculating a screen display quality according to the first formula, the first formula is:
Figure PCTCN2016104245-appb-000031
Figure PCTCN2016104245-appb-000031
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数,d、e、f可以是模型训练所得的常数。有效显示像素密度P用于指示视频在显示屏幕的单位面积内实际显示的像素数。Where Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, and the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s In order to display the size of the screen, d, e, and f are constants, and d, e, and f may be constants obtained by model training. The effective display pixel density P is used to indicate the number of pixels actually displayed by the video within the unit area of the display screen.
在一种应用场景中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,根据第二公式计算有效显示像素密度,第二公式为: In an application scenario, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the effective display pixel density is calculated according to the second formula. The second formula is:
Figure PCTCN2016104245-appb-000032
Figure PCTCN2016104245-appb-000032
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。可选的,如果显示分辨率只包含视频的分辨率,则Sw为视频的分辨率的宽度,Sh为视频的分辨率的高度;如果显示分辨率只包含显示屏幕的分辨率,则Sw为显示屏幕的分辨率的宽度,Sh为显示屏幕的分辨率的高度;如果显示分辨率包含视频的分辨率和显示屏幕的分辨率,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。Wherein, S w is the width of the display resolution, S h is the height of the display resolution. Optionally, if the display resolution only includes the resolution of the video, S w is the width of the resolution of the video, and S h is the height of the resolution of the video; if the display resolution only includes the resolution of the display screen, then S w is the width of the resolution of the display screen, and S h is the height of the resolution of the display screen; if the display resolution includes the resolution of the video and the resolution of the display screen, when the resolution of the video is greater than the resolution of the display screen, The display resolution is the resolution of the display screen. When the resolution of the video is smaller than the resolution of the display screen, the display resolution is the resolution of the video.
在另一种应用场景中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,根据第三公式计算有效显示像素密度,第三公式为:In another application scenario, the display resolution includes the resolution of the video and the resolution of the display screen, and the effective display pixel density is calculated according to the third formula. The third formula is:
Figure PCTCN2016104245-appb-000033
Figure PCTCN2016104245-appb-000033
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时,
Figure PCTCN2016104245-appb-000034
Where θ is a resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Figure PCTCN2016104245-appb-000034
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数,可以是一个很小的正数,优选的,g可以是0.05。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant, which can be a very A small positive number, preferably, g can be 0.05.
202、获取视频的帧率和视频的码率。202. Obtain a frame rate of the video and a code rate of the video.
示例性的,该视频的码率用于指示该视频单位时间内传输的比特数,该视频的帧率用于指示该视频每秒显示的帧数。Exemplarily, the code rate of the video is used to indicate the number of bits transmitted in the video unit time, and the frame rate of the video is used to indicate the number of frames displayed by the video per second.
203、根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量。203. Calculate video display quality according to a first preset algorithm according to screen display quality, a video frame rate, and a video code rate.
其中,视频显示质量用于指示视频在显示屏幕上的显示质量。Among them, the video display quality is used to indicate the display quality of the video on the display screen.
可选的,本实施例提供三种具体的方式计算视频显示质量,当然,也可以通过其他算法计算视频显示质量,此处只是举例说明本发明可以实现的方式,具体算法如下:Optionally, the embodiment provides three specific manners for calculating the video display quality. Of course, the video display quality can also be calculated by other algorithms. Here, only the manner in which the present invention can be implemented is illustrated. The specific algorithm is as follows:
第一种方式:The first way:
根据第四公式计算视频显示质量Qv,第四公式为: Calculate the video display quality Q v according to the fourth formula. The fourth formula is:
Figure PCTCN2016104245-appb-000035
Figure PCTCN2016104245-appb-000035
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,a、c的大小与视频的编码类型和分辨率相关,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Where λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the display quality of the screen, and Q min is a constant , used to indicate the minimum value of the display quality, a, c are constant, the size of a, c is related to the encoding type and resolution of the video, U is the adjustment function, which increases with the increase of λ, and Y 1 is the first quality. Factor, Y 2 is the second quality factor.
进一步的,U可以是关于λ的函数,随λ增大而增大,在一种可能的实现中,Further, U may be a function of λ, which increases as λ increases, and in one possible implementation,
Figure PCTCN2016104245-appb-000036
Figure PCTCN2016104245-appb-000036
其中,b为常数,可以是一个很小的正数,优选的,b可以是0.05。Where b is a constant and can be a small positive number. Preferably, b can be 0.05.
第二种方式:The second way:
根据第五公式计算视频显示质量Qv,第五公式为:Calculate the video display quality Q v according to the fifth formula. The fifth formula is:
Qv=QB·func(λ);Q v =Q B ·func(λ);
其中,QB为参考质量,Where Q B is the reference quality,
Figure PCTCN2016104245-appb-000037
Figure PCTCN2016104245-appb-000037
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,a、c的大小与视频的编码类型和分辨率相关,Y1为第一质量因子,Y2为第二质量因子。Func(λ) is the correction factor, which decreases with increasing λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video Code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of display quality, a, c is a constant, the size of a, c is related to the encoding type and resolution of the video, Y 1 is the first The quality factor, Y 2 is the second quality factor.
可选的,当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);当λ<1时,
Figure PCTCN2016104245-appb-000038
a1,a2,a3,b1,b2,b3为常数。
Alternatively, when λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0); when λ<1,
Figure PCTCN2016104245-appb-000038
a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
第三种方式:当视频的帧率大于基准帧率时;The third way: when the frame rate of the video is greater than the reference frame rate;
根据第六公式计算视频显示质量Qv,第六公式为:The video display quality Q v is calculated according to the sixth formula, and the sixth formula is:
Qv=func(QB,λ);Q v = func (Q B , λ);
其中,
Figure PCTCN2016104245-appb-000039
c1,c2,c3,c4为常数,QB为参考质量,
among them,
Figure PCTCN2016104245-appb-000039
c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
Figure PCTCN2016104245-appb-000040
Figure PCTCN2016104245-appb-000040
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q Min is a constant indicating the minimum value of the display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
在上述三种计算视频显示质量的方式中,基准帧率FB是视频可以流畅播放的帧率,单位是帧每秒(英文:Frame Per Second,简称FPS),一般24FPS-30FPS即可视为流畅播放,基准帧率可以根据具体情况进行设定,本发明对此不做限制。In the above three ways of calculating the video display quality, the reference frame rate F B is the frame rate at which the video can be played smoothly, and the unit is frame per second (English: Frame Per Second, FPS for short), generally 24FPS-30FPS can be regarded as For smooth playback, the reference frame rate can be set according to specific conditions, and the present invention does not limit this.
另外,可选的,第一质量因子Y1和第二质量因子Y2用于调节视频显示质量,Y1=1,Y2=1,或者,In addition, optionally, the first quality factor Y 1 and the second quality factor Y 2 are used to adjust the video display quality, Y 1 =1, Y 2 =1, or,
Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大,并使得Qsc随之减小,即视频的内容复杂度越大,视频显示质量越小。在视频的内容复杂度未知时,可以将第一质量因子Y1以及第二质量因子Y2设定为1,当已知视频的内容复杂度时,可以在计算视频显示质量的时候加入视频的内容复杂度的影响,需要说明的是,本实施例提供的视频显示质量的计算方法还可以包括获取视频的内容复杂度的步骤。在考虑视频的内容复杂度的情况下,可以使得计算出的结果更加准确地反应视频显示质量。Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, and fun1(V c ) and fun2(V c ) are functions of V c , and both The increase of V c increases, and the Q sc decreases accordingly, that is, the greater the content complexity of the video, the smaller the video display quality. When the content complexity of the video is unknown, the first quality factor Y 1 and the second quality factor Y 2 may be set to 1. When the content complexity of the video is known, the video may be added when calculating the video display quality. The method of calculating the video display quality provided by this embodiment may further include the step of acquiring the content complexity of the video. In the case of considering the complexity of the content of the video, the calculated result can be made to more accurately reflect the video display quality.
其中,视频的内容复杂度可以包含视频的时间复杂度和视频的空间复杂度中的至少一项,时间复杂度用于指示视频一帧与一帧之间的包含的图像的变化程度,两帧之间视频的图像相差越大,时间复杂度越高,也可以说时间复杂度用于指示视频的序列随时间的变化程度,视频的内容运动较快的序列的时间复杂度越高;空间复杂度用于指示一帧中图像的纹理复杂度,视频的图像所显示的场景越复杂,其空间复杂度越高。视频的时间复杂度可以根据视频一帧的大小以及码率确定,具体的,可以根据公式:The content complexity of the video may include at least one of a time complexity of the video and a spatial complexity of the video, where the time complexity is used to indicate the degree of change of the included image between one frame and one frame of the video, two frames. The larger the difference between the images of the video, the higher the time complexity. It can also be said that the time complexity is used to indicate the degree of change of the sequence of the video over time. The time complexity of the sequence in which the content of the video is faster is higher; the space is complicated. Degree is used to indicate the texture complexity of an image in a frame. The more complex the scene displayed by the image of the video, the higher the spatial complexity. The time complexity of the video can be determined according to the size of the video frame and the code rate. Specifically, according to the formula:
Figure PCTCN2016104245-appb-000041
计算;
Figure PCTCN2016104245-appb-000041
Calculation
TCC为视频的时间复杂度,Bv为视频的码率,ABI为平均一帧的大小,t0为常数。TCC is the time complexity of the video, B v is the code rate of the video, ABI is the average frame size, and t 0 is a constant.
视频的空间复杂度可以根据视频一帧中一个像素的比特数及参量x计算得到。The spatial complexity of a video can be calculated from the number of bits of a pixel in a frame of a video and the parameter x.
当然,此处只是举例说明,视频的内容复杂度也可以根据其他方式进行计 算,视频的内容复杂度用于指示视频播放的难易程度,视频的内容复杂度越大,视频显示质量越小,视频的内容复杂度越小,视频显示质量越大。Of course, this is just an example. The content complexity of the video can also be calculated according to other methods. Calculate, the content complexity of the video is used to indicate the difficulty of video playback. The more complex the content of the video, the smaller the video display quality, the smaller the content complexity of the video, and the greater the video display quality.
本实施例提供的视频显示质量的计算方法,获取视频的屏幕显示质量、视频的帧率、视频的码率,根据屏幕显示质量、视频的帧率及视频的码率按照第一预设算法计算视频显示质量,其中,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值。综合屏幕显示质量以及视频的帧率、视频的码率对视频显示质量进行计算,不仅仅是根据视频数据自身的参数进行计算,兼顾了视频在显示屏幕的显示情况,能够更加准确地体现视频显示质量。The calculation method of the video display quality provided by the embodiment obtains the screen display quality of the video, the frame rate of the video, and the code rate of the video, and is calculated according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video. The video display quality, wherein the screen display quality is used to indicate the highest value of the display quality of the video on the display screen. The integrated screen display quality, the frame rate of the video, and the bit rate of the video calculate the video display quality, not only based on the parameters of the video data itself, but also the display of the video on the display screen, which can more accurately reflect the video display. quality.
基于上述图2对应的实施例中所描述的视频显示质量的计算方法,本发明实施例提供一种电子设备,用于执行上述图2对应的实施例中所描述的视频显示质量的计算方法,参照图3所示,该电子设备30包括:第一获取单元301、第二获取单元302和计算单元303。The embodiment of the present invention provides an electronic device for performing the calculation method of the video display quality described in the embodiment corresponding to FIG. 2, based on the method for calculating the video display quality described in the embodiment corresponding to FIG. 2 above. Referring to FIG. 3, the electronic device 30 includes a first obtaining unit 301, a second obtaining unit 302, and a calculating unit 303.
其中,第一获取单元301,用于获取视频的屏幕显示质量,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值;The first obtaining unit 301 is configured to acquire a screen display quality of the video, where the screen display quality is used to indicate a highest value of the display quality of the video on the display screen;
第二获取单元302,用于获取视频的帧率和视频的码率;计算单元303,用于根据第一获取单元301获取的屏幕显示质量、第二获取单元302获取的视频的帧率及视频的码率按照第一预设算法计算视频显示质量,视频显示质量用于指示视频在显示屏幕上的显示质量。The second obtaining unit 302 is configured to acquire a frame rate of the video and a code rate of the video. The calculating unit 303 is configured to use the screen display quality acquired by the first acquiring unit 301, the frame rate of the video acquired by the second acquiring unit 302, and the video. The code rate calculates the video display quality according to the first preset algorithm, and the video display quality is used to indicate the display quality of the video on the display screen.
可选的,第一获取单元301,具体用于根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系,即显示屏幕的尺寸越大,屏幕显示质量越小;显示分辨率越高,屏幕显示质量越大。Optionally, the first obtaining unit 301 is configured to calculate a screen display quality according to a size and a display resolution of the display screen according to a second preset algorithm, where the size of the display screen is used to indicate the size of the display screen, and the display resolution includes the video. At least one of the resolution and the resolution of the display screen, the size of the display screen is negatively correlated with the display quality of the screen, and the display resolution is positively correlated with the display quality of the screen, that is, the larger the size of the display screen, the quality of the screen display The smaller the display resolution, the higher the display quality.
示例性的,该电子设备包含该显示屏幕,或者,该显示屏幕不属于该电子设备。Illustratively, the electronic device includes the display screen, or the display screen does not belong to the electronic device.
优选的,第一获取单元301,具体用于获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为: Preferably, the first obtaining unit 301 is specifically configured to obtain an effective display pixel density, and calculate a screen display quality according to the first formula. The first formula is:
Figure PCTCN2016104245-appb-000042
Figure PCTCN2016104245-appb-000042
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数。Where Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, and the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s To display the size of the screen, d, e, and f are constants.
在一种应用场景中,显示分辨率为视频的分辨率,或者,显示分辨率为显示屏幕的分辨率,第一获取单元301,具体用于根据第二公式计算有效显示像素密度,第二公式为:In an application scenario, the display resolution is the resolution of the video, or the display resolution is the resolution of the display screen, and the first obtaining unit 301 is specifically configured to calculate the effective display pixel density according to the second formula, and the second formula for:
Figure PCTCN2016104245-appb-000043
Figure PCTCN2016104245-appb-000043
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。可选的,如果显示分辨率包含视频的分辨率和显示屏幕的分辨率,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。Wherein, S w is the width of the display resolution, S h is the height of the display resolution. Optionally, if the display resolution includes the resolution of the video and the resolution of the display screen, when the resolution of the video is greater than the resolution of the display screen, the display resolution is the resolution of the display screen, and when the resolution of the video is smaller than the display When the resolution of the screen is reached, the display resolution is the resolution of the video.
在另一种应用场景中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,第一获取单元301,具体用于根据第三公式计算有效显示像素密度,第三公式为:In another application scenario, the display resolution includes the resolution of the video and the resolution of the display screen, and the first obtaining unit 301 is specifically configured to calculate the effective display pixel density according to the third formula, and the third formula is:
Figure PCTCN2016104245-appb-000044
Figure PCTCN2016104245-appb-000044
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时,
Figure PCTCN2016104245-appb-000045
Where θ is a resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Figure PCTCN2016104245-appb-000045
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant.
可选的,计算单元303,具体用于根据第四公式计算视频显示质量Qv,第四公式为:Optionally, the calculating unit 303 is specifically configured to calculate a video display quality Q v according to the fourth formula, where the fourth formula is:
Figure PCTCN2016104245-appb-000046
Figure PCTCN2016104245-appb-000046
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Where λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the display quality of the screen, and Q min is a constant For indicating the minimum value of the display quality, a and c are constants, U is an adjustment function, and increases as λ increases, Y 1 is the first quality factor, and Y 2 is the second quality factor.
可选的,Optional,
Figure PCTCN2016104245-appb-000047
Figure PCTCN2016104245-appb-000047
其中,b为常数。Where b is a constant.
可选的,计算单元303,具体用于根据第五公式计算视频显示质量Qv,第五公式为:Optionally, the calculating unit 303 is specifically configured to calculate a video display quality Q v according to the fifth formula, where the fifth formula is:
Qv=QB·func(λ);Q v =Q B ·func(λ);
其中,QB为参考质量,Where Q B is the reference quality,
Figure PCTCN2016104245-appb-000048
Figure PCTCN2016104245-appb-000048
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。Func(λ) is the correction factor, which decreases with increasing λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video The code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
进一步可选的,当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);当λ<1时,
Figure PCTCN2016104245-appb-000049
其中,a1,a2,a3,b1,b2,b3为常数。
Further optionally, when λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0); when λ<1,
Figure PCTCN2016104245-appb-000049
Wherein a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
可选的,计算单元303,具体用于当视频的帧率大于基准帧率时,根据第六公式计算视频显示质量Qv,第六公式为:Optionally, the calculating unit 303 is specifically configured to: when the frame rate of the video is greater than the reference frame rate, calculate the video display quality Q v according to the sixth formula, where the sixth formula is:
Qv=func(QB,λ);Q v = func (Q B , λ);
其中,
Figure PCTCN2016104245-appb-000050
c1,c2,c3,c4为常数,QB为参考质量,
among them,
Figure PCTCN2016104245-appb-000050
c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
Figure PCTCN2016104245-appb-000051
Figure PCTCN2016104245-appb-000051
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q Min is a constant indicating the minimum value of the display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
可选的,Y1=1,Y2=1,或者,Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频 的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大。Optionally, Y 1 =1, Y 2 =1, or, Y 1 = fun1 (V c ), Y 1 = fun2 (V c ), V c is used to indicate the content complexity of the video, fun1(V c ) And fun2(V c ) is a function of V c and both increase with increasing V c .
另外,可选的,获取单元301,具体用于获取视频的内容复杂度。In addition, the acquiring unit 301 is specifically configured to acquire content complexity of the video.
当然,本实施例中只是以虚拟模块对电子设备的结构进行说明,其具体的实现方式可以是将实现本发明视频显示质量的计算方法的程序及数据存储于存储器中,处理器调用存储器中的程序实现本发明视频显示质量的计算方法,电子设备根据各个步骤中功能的不同可以划分为本实施例中的虚拟模块,并不代表各个电子设备包含各个虚拟模块的实体结构。Of course, in this embodiment, the structure of the electronic device is described by using a virtual module. The specific implementation manner may be that the program and data for implementing the calculation method of the video display quality of the present invention are stored in the memory, and the processor calls the memory. The program implements the calculation method of the video display quality of the present invention. The electronic device can be divided into virtual modules in the embodiment according to different functions in the respective steps, and does not represent that each electronic device includes the physical structure of each virtual module.
基于上述图2对应的实施例中所描述的视频显示质量的计算方法,本发明另一实施例提供一种电子设备,用于执行上述图2对应的实施例中所描述的视频显示质量的计算方法,参照图4所示,该电子设备40包括:包括:处理器401、存储器402及总线403,处理器401及存储器402通过总线相互连接,存储器402用于存储程序和数据,处理器401用于调用存储器存储的程序执行视频显示质量的计算方法;Based on the calculation method of the video display quality described in the embodiment corresponding to FIG. 2, another embodiment of the present invention provides an electronic device for performing the calculation of the video display quality described in the embodiment corresponding to FIG. 2 above. As shown in FIG. 4, the electronic device 40 includes: a processor 401, a memory 402, and a bus 403. The processor 401 and the memory 402 are connected to each other through a bus. The memory 402 is used to store programs and data, and the processor 401 is used by the processor 401. Performing a video display quality calculation method by calling a program stored in the memory;
处理器401,用于获取视频的屏幕显示质量,屏幕显示质量用于指示视频在显示屏幕上的显示质量的最高取值;获取视频的帧率和视频的码率;根据屏幕显示质量、视频的帧率、视频的码率按照第一预设算法计算视频显示质量,视频显示质量用于指示视频在显示屏幕上的显示质量。The processor 401 is configured to acquire a screen display quality of the video, where the screen display quality is used to indicate a highest value of the display quality of the video on the display screen; obtain a frame rate of the video and a code rate of the video; according to the screen display quality, the video The frame rate and the code rate of the video are calculated according to a first preset algorithm, and the video display quality is used to indicate the display quality of the video on the display screen.
可选的,处理器401,具体用于根据显示屏幕的尺寸、显示分辨率按照第二预设算法计算屏幕显示质量,显示屏幕的尺寸用于指示显示屏幕的大小,显示分辨率包含视频的分辨率和显示屏幕的分辨率中的至少一项,显示屏幕的尺寸与屏幕显示质量呈负相关关系,显示分辨率与屏幕显示质量呈正相关关系。Optionally, the processor 401 is configured to calculate, according to a size and a display resolution of the display screen, a screen display quality according to a second preset algorithm, where a size of the display screen is used to indicate a size of the display screen, and the display resolution includes a resolution of the video. At least one of the rate and the resolution of the display screen, the size of the display screen is negatively correlated with the screen display quality, and the display resolution is positively correlated with the screen display quality.
可选的,处理器401,具体用于获取有效显示像素密度,根据第一公式计算屏幕显示质量,第一公式为:Optionally, the processor 401 is specifically configured to obtain an effective display pixel density, and calculate a screen display quality according to the first formula, where the first formula is:
Figure PCTCN2016104245-appb-000052
Figure PCTCN2016104245-appb-000052
其中,Qsc为屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,有效显示像素密度是根据显示分辨率和显示屏幕的尺寸计算得到的,Ds为显示屏幕的尺寸,d、e、f为常数。Where Q sc is the screen display quality, Q max is a constant, used to indicate the maximum value of the display quality, P is the effective display pixel density, and the effective display pixel density is calculated according to the display resolution and the size of the display screen, D s To display the size of the screen, d, e, and f are constants.
可选的,在一种应用场景中,显示分辨率为视频的分辨率,或者,显示分 辨率为显示屏幕的分辨率,处理器401,具体用于根据第二公式计算有效显示像素密度,第二公式为:Optionally, in one application scenario, the display resolution is the resolution of the video, or the display score The resolution is the resolution of the display screen, and the processor 401 is specifically configured to calculate the effective display pixel density according to the second formula. The second formula is:
Figure PCTCN2016104245-appb-000053
Figure PCTCN2016104245-appb-000053
其中,Sw为显示分辨率的宽度,Sh为显示分辨率的高度。优选的,当视频的分辨率大于显示屏幕的分辨率时,显示分辨率为显示屏幕的分辨率,当视频的分辨率小于显示屏幕的分辨率时,显示分辨率为视频的分辨率。Wherein, S w is the width of the display resolution, S h is the height of the display resolution. Preferably, when the resolution of the video is greater than the resolution of the display screen, the display resolution is the resolution of the display screen, and when the resolution of the video is less than the resolution of the display screen, the display resolution is the resolution of the video.
可选的,在另一种应用场景中,显示分辨率包含视频的分辨率和显示屏幕的分辨率,Optionally, in another application scenario, the display resolution includes the resolution of the video and the resolution of the display screen.
处理器401,具体用于根据第三公式计算有效显示像素密度,第三公式为:The processor 401 is specifically configured to calculate an effective display pixel density according to the third formula, and the third formula is:
Figure PCTCN2016104245-appb-000054
Figure PCTCN2016104245-appb-000054
其中,θ为分辨率匹配因子,当视频的分辨率小于或等于显示屏幕的分辨率时,θ=1,当视频的分辨率大于显示屏幕的分辨率时,
Figure PCTCN2016104245-appb-000055
Where θ is a resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
Figure PCTCN2016104245-appb-000055
Vw为视频的分辨率的宽度,Vh为视频的分辨率的高度,Dw为显示屏幕的分辨率的宽度,Dh为显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, D h is the height of the resolution of the display screen, and g is a constant.
可选的,处理器401,具体用于根据第四公式计算视频显示质量Qv,第四公式为:Optionally, the processor 401 is specifically configured to calculate a video display quality Q v according to the fourth formula, where the fourth formula is:
Figure PCTCN2016104245-appb-000056
Figure PCTCN2016104245-appb-000056
其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Where λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the display quality of the screen, and Q min is a constant For indicating the minimum value of the display quality, a and c are constants, U is an adjustment function, and increases as λ increases, Y 1 is the first quality factor, and Y 2 is the second quality factor.
进一步的,further,
Figure PCTCN2016104245-appb-000057
Figure PCTCN2016104245-appb-000057
其中,b为常数。Where b is a constant.
可选的,处理器401,具体用于根据第五公式计算视频显示质量Qv,第五公式为: Optionally, the processor 401 is specifically configured to calculate a video display quality Q v according to the fifth formula, where the fifth formula is:
Qv=QB·func(λ);Q v =Q B ·func(λ);
其中,QB为参考质量,Where Q B is the reference quality,
Figure PCTCN2016104245-appb-000058
Figure PCTCN2016104245-appb-000058
func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。Func(λ) is the correction factor, which decreases with increasing λ, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, and B v is the video The code rate, Q sc is the screen display quality, Q min is a constant, used to indicate the minimum value of the display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the second quality factor.
进一步的,当λ>1时,func(λ)=a1-a2·log(a3·λ),(a1,a2,a3>0);Further, when λ>1, func(λ)=a 1 -a 2 ·log(a 3 ·λ), (a 1 , a 2 , a 3 >0);
当λ<1时,
Figure PCTCN2016104245-appb-000059
When λ<1,
Figure PCTCN2016104245-appb-000059
其中,a1,a2,a3,b1,b2,b3为常数。Wherein a 1 , a 2 , a 3 , b 1 , b 2 , and b 3 are constants.
可选的,处理器401,具体用于当视频的帧率大于基准帧率时,根据第六公式计算视频显示质量Qv,第六公式为:Optionally, the processor 401 is configured to: when the frame rate of the video is greater than the reference frame rate, calculate the video display quality Q v according to the sixth formula, where the sixth formula is:
Qv=func(QB,λ);Q v = func (Q B , λ);
其中,
Figure PCTCN2016104245-appb-000060
c1,c2,c3,c4为常数,QB为参考质量,
among them,
Figure PCTCN2016104245-appb-000060
c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
Figure PCTCN2016104245-appb-000061
Figure PCTCN2016104245-appb-000061
λ为帧率因子,且λ<1,λ=FB/Fv,FB为基准帧率,Fv为视频的帧率,Bv为视频的码率,Qsc为屏幕显示质量,Qmin为常数,用于指示显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。λ is the frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc is the screen display quality, Q Min is a constant indicating the minimum value of the display quality, a and c are constants, U is an adjustment function, and increases as λ increases, Y 1 is the first quality factor, and Y 2 is the second quality factor.
进一步的,Y1=1,Y2=1,或者,Further, Y 1 =1, Y 2 =1, or,
Y1=fun1(Vc),Y1=fun2(Vc),Vc用于指示视频的内容复杂度,fun1(Vc)和fun2(Vc)为关于Vc的函数,且均随Vc的增大而增大。Y 1 =fun1(V c ), Y 1 =fun2(V c ), V c is used to indicate the content complexity of the video, and fun1(V c ) and fun2(V c ) are functions of V c , and both The increase in V c increases.
在一种可能的实现中,In one possible implementation,
处理器401,还用于获取视频的内容复杂度。The processor 401 is further configured to acquire content complexity of the video.
本实施例提供的电子设备,获取视频的屏幕显示质量、视频的帧率、视频的码率,根据屏幕显示质量、视频的帧率及视频的码率按照第一预设算法计算视频显示质量,其中,屏幕显示质量用于指示视频在显示屏幕上的显示质量的 最高取值。综合屏幕显示质量以及视频的帧率、视频的码率对视频显示质量进行计算,不仅仅是根据视频数据自身的参数进行计算,兼顾了视频在显示屏幕的显示情况,能够更加准确地体现视频显示质量。The electronic device provided by the embodiment obtains the screen display quality of the video, the frame rate of the video, and the code rate of the video, and calculates the video display quality according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video. Wherein, the screen display quality is used to indicate the display quality of the video on the display screen. The highest value. The integrated screen display quality, the frame rate of the video, and the bit rate of the video calculate the video display quality, not only based on the parameters of the video data itself, but also the display of the video on the display screen, which can more accurately reflect the video display. quality.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims (19)

  1. 一种视频显示质量的计算方法,其特征在于,所述方法包括:A method for calculating video display quality, characterized in that the method comprises:
    获取视频的屏幕显示质量,所述屏幕显示质量用于指示所述视频在显示屏幕上的显示质量的最高取值;Obtaining a screen display quality of the video, the screen display quality being used to indicate a highest value of the display quality of the video on the display screen;
    获取所述视频的帧率和所述视频的码率;Obtaining a frame rate of the video and a code rate of the video;
    根据所述屏幕显示质量、所述视频的帧率、所述视频的码率按照第一预设算法计算视频显示质量,所述视频显示质量用于指示所述视频在所述显示屏幕上的显示质量。Calculating a video display quality according to the first display algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video, where the video display quality is used to indicate display of the video on the display screen. quality.
  2. 根据权利要求1所述的方法,其特征在于,所述获取视频的屏幕显示质量,包括:The method according to claim 1, wherein the obtaining a screen display quality of the video comprises:
    根据所述显示屏幕的尺寸、显示分辨率按照第二预设算法计算所述屏幕显示质量,所述显示屏幕的尺寸用于指示所述显示屏幕的大小,所述显示分辨率包含所述视频的分辨率和所述显示屏幕的分辨率中的至少一项,所述显示屏幕的尺寸与所述屏幕显示质量呈负相关关系,所述显示分辨率与所述屏幕显示质量呈正相关关系。Calculating the screen display quality according to a size and a display resolution of the display screen according to a second preset algorithm, where the size of the display screen is used to indicate a size of the display screen, where the display resolution includes the video At least one of a resolution and a resolution of the display screen, the size of the display screen is inversely related to the screen display quality, the display resolution being positively correlated with the screen display quality.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述显示屏幕的尺寸、显示分辨率按照第二预设算法计算所述屏幕显示质量,包括:The method according to claim 2, wherein the calculating the display quality of the screen according to the size and display resolution of the display screen according to a second preset algorithm comprises:
    获取有效显示像素密度,根据第一公式计算所述屏幕显示质量,所述第一公式为:Obtaining an effective display pixel density, and calculating the screen display quality according to the first formula, the first formula is:
    Figure PCTCN2016104245-appb-100001
    Figure PCTCN2016104245-appb-100001
    其中,Qsc为所述屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为所述有效显示像素密度,所述有效显示像素密度是根据所述显示分辨率和所述显示屏幕的尺寸计算得到的,Ds为所述显示屏幕的尺寸,d、e、f为常数。Where Q sc is the screen display quality, Q max is a constant for indicating the maximum value of the display quality, P is the effective display pixel density, and the effective display pixel density is according to the display resolution and the The size of the display screen is calculated, D s is the size of the display screen, and d, e, and f are constants.
  4. 根据权利要求3所述的方法,其特征在于,所述显示分辨率为所述视频 的分辨率,或者,所述显示分辨率为所述显示屏幕的分辨率,所述获取有效显示像素密度,包括:根据第二公式计算所述有效显示像素密度,所述第二公式为:The method of claim 3 wherein said display resolution is said video The resolution of the display screen is the resolution of the display screen, and the obtaining the effective display pixel density comprises: calculating the effective display pixel density according to the second formula, the second formula is:
    Figure PCTCN2016104245-appb-100002
    Figure PCTCN2016104245-appb-100002
    其中,Sw为所述显示分辨率的宽度,Sh为所述显示分辨率的高度。Wherein, S w is the width of the display resolution, and S h is the height of the display resolution.
  5. 根据权利要求4所述的方法,其特征在于,The method of claim 4 wherein:
    当所述视频的分辨率大于所述显示屏幕的分辨率时,所述显示分辨率为所述显示屏幕的分辨率,当所述视频的分辨率小于所述显示屏幕的分辨率时,所述显示分辨率为所述视频的分辨率。When the resolution of the video is greater than the resolution of the display screen, the display resolution is a resolution of the display screen, when the resolution of the video is smaller than the resolution of the display screen, The display resolution is the resolution of the video.
  6. 根据权利要求3所述的方法,其特征在于,所述显示分辨率包含所述视频的分辨率和所述显示屏幕的分辨率,所述获取有效显示像素密度,还包括:The method according to claim 3, wherein the display resolution comprises a resolution of the video and a resolution of the display screen, and the obtaining an effective display pixel density further comprises:
    根据第三公式计算所述有效显示像素密度,所述第三公式为:Calculating the effective display pixel density according to a third formula, the third formula is:
    Figure PCTCN2016104245-appb-100003
    Figure PCTCN2016104245-appb-100003
    其中,θ为分辨率匹配因子,当所述视频的分辨率小于或等于所述显示屏幕的分辨率时,θ=1,当所述视频的分辨率大于所述显示屏幕的分辨率时,Where θ is a resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
    Figure PCTCN2016104245-appb-100004
    Figure PCTCN2016104245-appb-100004
    Vw为所述视频的分辨率的宽度,Vh为所述视频的分辨率的高度,Dw为所述显示屏幕的分辨率的宽度,Dh为所述显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, and D h is the height of the resolution of the display screen. g is a constant.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述根据所述屏幕显示质量、所述视频的帧率、所述视频的码率按照第一预设算法计算视频显示质量,包括:The method according to any one of claims 1-6, wherein the calculating the video display quality according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video ,include:
    根据第四公式计算所述视频显示质量Qv,所述第四公式为:Calculating the video display quality Q v according to a fourth formula, the fourth formula is:
    Figure PCTCN2016104245-appb-100005
    Figure PCTCN2016104245-appb-100005
    其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为所述视频的帧率,Bv为所述视频的码率,Qsc为所述屏幕显示质量,Qmin为常数,用于指示所述显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因子,Y2为第二质量因子。Where λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, and Q sc is the screen display Mass, Q min is a constant, used to indicate the minimum value of the display quality, a, c are constants, U is an adjustment function, increases with λ, Y 1 is the first quality factor, and Y 2 is the second Quality factor.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述根据所述屏幕显示质量、所述视频的帧率、所述视频的码率按照第一预设算法计算视频显示质量,包括:The method according to any one of claims 1-6, wherein the calculating the video display quality according to the first preset algorithm according to the screen display quality, the frame rate of the video, and the code rate of the video ,include:
    根据第五公式计算所述视频显示质量Qv,所述第五公式为:Calculating the video display quality Q v according to a fifth formula, the fifth formula is:
    Qv=QB·func(λ);Q v =Q B ·func(λ);
    其中,QB为参考质量,Where Q B is the reference quality,
    Figure PCTCN2016104245-appb-100006
    Figure PCTCN2016104245-appb-100006
    func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为所述视频的帧率,Bv为所述视频的码率,Qsc为所述屏幕显示质量,Qmin为常数,用于指示所述显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。Func(λ) is the correction factor, which decreases as λ increases, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is The code rate of the video, Q sc is the display quality of the screen, Q min is a constant, used to indicate the minimum value of the display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the first Two quality factors.
  9. 根据权利要求1-6任一项所述的方法,其特征在于,当所述视频的帧率大于基准帧率时,所述根据所述屏幕显示质量、所述视频的帧率、所述视频的码率按照第一预设算法计算视频显示质量,包括:The method according to any one of claims 1 to 6, wherein when the frame rate of the video is greater than a reference frame rate, the video according to the screen display quality, the frame rate of the video, the video The code rate calculates the video display quality according to the first preset algorithm, including:
    根据第六公式计算所述视频显示质量Qv,所述第六公式为:Calculating the video display quality Q v according to a sixth formula, the sixth formula is:
    Qv=func(QB,λ);Q v = func (Q B , λ);
    其中,
    Figure PCTCN2016104245-appb-100007
    c1,c2,c3,c4为常数,QB为参考质量,
    among them,
    Figure PCTCN2016104245-appb-100007
    c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
    Figure PCTCN2016104245-appb-100008
    Figure PCTCN2016104245-appb-100008
    λ为帧率因子,且λ<1,λ=FB/Fv,FB为所述基准帧率,Fv为所述视频的帧率,Bv为所述视频的码率,Qsc为所述屏幕显示质量,Qmin为常数,用于指示所述显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。 λ is a frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc the display screen of the quality, Q min is a constant for indicating a minimum value of the quality, a, c are constants, Y 1 is a first quality factor, Y 2 is a second quality factor.
  10. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    第一获取单元,用于获取视频的屏幕显示质量,所述屏幕显示质量用于指示所述视频在显示屏幕上的显示质量的最高取值;a first acquiring unit, configured to acquire a screen display quality of the video, where the screen display quality is used to indicate a highest value of the display quality of the video on the display screen;
    第二获取单元,用于获取所述视频的帧率和所述视频的码率;计算单元,用于根据所述第一获取单元获取的所述屏幕显示质量、所述第二获取单元获取的所述视频的帧率及所述视频的码率按照第一预设算法计算视频显示质量,所述视频显示质量用于指示所述视频在所述显示屏幕上的显示质量。a second acquiring unit, configured to acquire a frame rate of the video and a code rate of the video; a calculating unit, configured to be used according to the screen display quality acquired by the first acquiring unit, and acquired by the second acquiring unit The frame rate of the video and the code rate of the video are calculated according to a first preset algorithm for indicating a display quality of the video on the display screen.
  11. 根据权利要求10所述的设备,其特征在于,The device according to claim 10, characterized in that
    所述第一获取单元,具体用于根据所述显示屏幕的尺寸、显示分辨率按照第二预设算法计算所述屏幕显示质量,所述显示屏幕的尺寸用于指示所述显示屏幕的大小,所述显示分辨率包含所述视频的分辨率和所述显示屏幕的分辨率中的至少一项,所述显示屏幕的尺寸与所述屏幕显示质量呈负相关关系,所述显示分辨率与所述屏幕显示质量呈正相关关系。The first acquiring unit is configured to calculate the screen display quality according to a size and a display resolution of the display screen according to a second preset algorithm, where the size of the display screen is used to indicate the size of the display screen. The display resolution includes at least one of a resolution of the video and a resolution of the display screen, the size of the display screen being negatively correlated with the screen display quality, the display resolution and the The screen display quality is positively correlated.
  12. 根据权利要求11所述的设备,其特征在于,The device according to claim 11 wherein:
    所述第一获取单元,具体用于获取有效显示像素密度,根据第一公式计算所述屏幕显示质量,所述第一公式为:The first acquiring unit is specifically configured to obtain an effective display pixel density, and calculate the screen display quality according to the first formula, where the first formula is:
    Figure PCTCN2016104245-appb-100009
    Figure PCTCN2016104245-appb-100009
    其中,Qsc为所述屏幕显示质量,Qmax为常数,用于指示显示质量的最大值,P为有效显示像素密度,所述有效显示像素密度是根据所述显示分辨率和所述显示屏幕的尺寸计算得到的,Ds为所述显示屏幕的尺寸,d、e、f为常数。Where Q sc is the display quality of the screen, Q max is a constant for indicating the maximum value of the display quality, P is the effective display pixel density, and the effective display pixel density is according to the display resolution and the display screen The size is calculated, D s is the size of the display screen, and d, e, and f are constants.
  13. 根据权利要求12所述的设备,其特征在于,所述显示分辨率为所述视频的分辨率,或者,所述显示分辨率为所述显示屏幕的分辨率,The device according to claim 12, wherein the display resolution is a resolution of the video, or the display resolution is a resolution of the display screen,
    所述第一获取单元,具体用于根据第二公式计算所述有效显示像素密度,所述第二公式为: The first acquiring unit is specifically configured to calculate the effective display pixel density according to a second formula, where the second formula is:
    Figure PCTCN2016104245-appb-100010
    Figure PCTCN2016104245-appb-100010
    其中,Sw为所述显示分辨率的宽度,Sh为所述显示分辨率的高度。Wherein, S w is the width of the display resolution, and S h is the height of the display resolution.
  14. 根据权利要求13所述的方法,其特征在于,The method of claim 13 wherein:
    当所述视频的分辨率大于所述显示屏幕的分辨率时,所述显示分辨率为所述显示屏幕的分辨率,当所述视频的分辨率小于所述显示屏幕的分辨率时,所述显示分辨率为所述视频的分辨率。When the resolution of the video is greater than the resolution of the display screen, the display resolution is a resolution of the display screen, when the resolution of the video is smaller than the resolution of the display screen, The display resolution is the resolution of the video.
  15. 根据权利要求12所述的设备,其特征在于,所述显示分辨率包含所述视频的分辨率和所述显示屏幕的分辨率;The device according to claim 12, wherein said display resolution comprises a resolution of said video and a resolution of said display screen;
    所述第一获取单元,具体用于根据第三公式计算所述有效显示像素密度,所述第三公式为:The first acquiring unit is specifically configured to calculate the effective display pixel density according to a third formula, where the third formula is:
    Figure PCTCN2016104245-appb-100011
    Figure PCTCN2016104245-appb-100011
    其中,θ为分辨率匹配因子,当所述视频的分辨率小于或等于所述显示屏幕的分辨率时,θ=1,当所述视频的分辨率大于所述显示屏幕的分辨率时,Where θ is a resolution matching factor, when the resolution of the video is less than or equal to the resolution of the display screen, θ=1, when the resolution of the video is greater than the resolution of the display screen,
    Figure PCTCN2016104245-appb-100012
    Figure PCTCN2016104245-appb-100012
    Vw为所述视频的分辨率的宽度,Vh为所述视频的分辨率的高度,Dw为所述显示屏幕的分辨率的宽度,Dh为所述显示屏幕的分辨率的高度,g为常数。V w is the width of the resolution of the video, V h is the height of the resolution of the video, D w is the width of the resolution of the display screen, and D h is the height of the resolution of the display screen. g is a constant.
  16. 根据权利要求10-15任一项所述的设备,其特征在于,Apparatus according to any of claims 10-15, wherein
    所述计算单元,具体用于根据第四公式计算所述视频显示质量Qv,所述第四公式为:The calculating unit is specifically configured to calculate the video display quality Q v according to a fourth formula, where the fourth formula is:
    Figure PCTCN2016104245-appb-100013
    Figure PCTCN2016104245-appb-100013
    其中,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为所述视频的帧率,Bv为所述视频的码率,Qsc为所述屏幕显示质量,Qmin为常数,用于指示所述显示质量的最小值,a、c为常数,U为调节函数,随λ增大而增大,Y1为第一质量因 子,Y2为第二质量因子。Where λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, and Q sc is the screen display Mass, Q min is a constant, used to indicate the minimum value of the display quality, a, c are constants, U is an adjustment function, increases with λ, Y 1 is the first mass factor, and Y 2 is the second Quality factor.
  17. 根据权利要求10-15任一项所述的设备,其特征在于,Apparatus according to any of claims 10-15, wherein
    所述计算单元,具体用于根据第五公式计算所述视频显示质量Qv,所述第五公式为:The calculating unit is specifically configured to calculate the video display quality Q v according to a fifth formula, where the fifth formula is:
    Qv=QB·func(λ);Q v =Q B ·func(λ);
    其中,QB为参考质量,Where Q B is the reference quality,
    Figure PCTCN2016104245-appb-100014
    Figure PCTCN2016104245-appb-100014
    func(λ)为修正因子,随λ增大而减小,λ为帧率因子,λ=FB/Fv,FB为基准帧率,Fv为所述视频的帧率,Bv为所述视频的码率,Qsc为所述屏幕显示质量,Qmin为常数,用于指示所述显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。Func(λ) is the correction factor, which decreases as λ increases, λ is the frame rate factor, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is The code rate of the video, Q sc is the display quality of the screen, Q min is a constant, used to indicate the minimum value of the display quality, a and c are constants, Y 1 is the first quality factor, and Y 2 is the first Two quality factors.
  18. 根据权利要求10-15任一项所述的设备,其特征在于,Apparatus according to any of claims 10-15, wherein
    所述计算单元,具体用于当所述视频的帧率大于基准帧率时,根据第六公式计算所述视频显示质量Qv,所述第六公式为:The calculating unit is specifically configured to: when the frame rate of the video is greater than a reference frame rate, calculate the video display quality Q v according to a sixth formula, where the sixth formula is:
    Qv=func(QB,λ);Q v = func (Q B , λ);
    其中,
    Figure PCTCN2016104245-appb-100015
    c1,c2,c3,c4为常数,QB为参考质量,
    among them,
    Figure PCTCN2016104245-appb-100015
    c 1 , c 2 , c 3 , c 4 are constants, and Q B is a reference mass.
    Figure PCTCN2016104245-appb-100016
    Figure PCTCN2016104245-appb-100016
    λ为帧率因子,且λ<1,λ=FB/Fv,FB为所述基准帧率,Fv为所述视频的帧率,Bv为所述视频的码率,Qsc为所述屏幕显示质量,Qmin为常数,用于指示所述显示质量的最小值,a、c为常数,Y1为第一质量因子,Y2为第二质量因子。λ is a frame rate factor, and λ<1, λ=F B /F v , F B is the reference frame rate, F v is the frame rate of the video, B v is the code rate of the video, Q sc the display screen of the quality, Q min is a constant for indicating a minimum value of the quality, a, c are constants, Y 1 is a first quality factor, Y 2 is a second quality factor.
  19. 一种电子设备,其特征在于,所述电子设备包括:处理器、存储器及总线,所述处理器及所述存储器通过所述总线相互连接,所述存储器用于存储程序和数据,所述处理器用于调用所述存储器存储的程序执行如权利要求1-9中任一项所述方法。 An electronic device, comprising: a processor, a memory, and a bus, the processor and the memory being connected to each other by the bus, the memory for storing programs and data, the processing The program for invoking the memory store performs the method of any of claims 1-9.
PCT/CN2016/104245 2016-04-06 2016-11-01 Computing method and apparatus for video display quality WO2017173817A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610209567.9 2016-04-06
CN201610209567.9A CN105847970A (en) 2016-04-06 2016-04-06 Video display quality calculating method and equipment

Publications (1)

Publication Number Publication Date
WO2017173817A1 true WO2017173817A1 (en) 2017-10-12

Family

ID=56596720

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104245 WO2017173817A1 (en) 2016-04-06 2016-11-01 Computing method and apparatus for video display quality

Country Status (2)

Country Link
CN (1) CN105847970A (en)
WO (1) WO2017173817A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225911A (en) * 2022-08-19 2022-10-21 腾讯科技(深圳)有限公司 Code rate self-adaption method and device, computer equipment and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847970A (en) * 2016-04-06 2016-08-10 华为技术有限公司 Video display quality calculating method and equipment
CN106792156A (en) * 2016-12-08 2017-05-31 深圳Tcl新技术有限公司 Lift the method and device of Internet video definition
CN106791846B (en) * 2016-12-09 2019-12-13 浙江宇视科技有限公司 Method and device for adjusting image coding quality factor
CN109889816B (en) * 2019-02-19 2020-09-25 西安电子科技大学 Video quality evaluation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007306108A (en) * 2006-05-09 2007-11-22 Nippon Telegr & Teleph Corp <Ntt> Image quality estimation apparatus, method, and program
CN101151903A (en) * 2006-05-09 2008-03-26 日本电信电话株式会社 Video quality estimating device, method, and program
CN103379360A (en) * 2012-04-23 2013-10-30 华为技术有限公司 Assessment method and device for video quality
CN103533367A (en) * 2013-10-23 2014-01-22 传线网络科技(上海)有限公司 No-reference video quality evaluation method and device
CN105847970A (en) * 2016-04-06 2016-08-10 华为技术有限公司 Video display quality calculating method and equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102740108B (en) * 2011-04-11 2015-07-08 华为技术有限公司 Video data quality assessment method and apparatus thereof
CN103634594B (en) * 2012-08-21 2015-04-29 华为技术有限公司 Method and apparatus for obtaining video coding compression quality
CN103152599A (en) * 2013-02-01 2013-06-12 浙江大学 Mobile video service user experience quality evaluation method based on ordinal regression
CN104023232B (en) * 2014-06-27 2015-10-28 北京邮电大学 Based on the mobile video method for evaluating quality of step analysis and multiple linear regression
CN104618924B (en) * 2015-01-30 2018-08-10 南京邮电大学 User experience quality index system and measurement method based on wireless ubiquitous network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007306108A (en) * 2006-05-09 2007-11-22 Nippon Telegr & Teleph Corp <Ntt> Image quality estimation apparatus, method, and program
CN101151903A (en) * 2006-05-09 2008-03-26 日本电信电话株式会社 Video quality estimating device, method, and program
CN103379360A (en) * 2012-04-23 2013-10-30 华为技术有限公司 Assessment method and device for video quality
CN103533367A (en) * 2013-10-23 2014-01-22 传线网络科技(上海)有限公司 No-reference video quality evaluation method and device
CN105847970A (en) * 2016-04-06 2016-08-10 华为技术有限公司 Video display quality calculating method and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YAMAGISHI ET AL.: "Video Quality Estimation Model based on Display size and Resolution for Audiovisual Communication Services", IEICE TECHNICAL REPORT CQ2005-60, OIS2005-45, IE 2005-53, 30 September 2005 (2005-09-30) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225911A (en) * 2022-08-19 2022-10-21 腾讯科技(深圳)有限公司 Code rate self-adaption method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN105847970A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
WO2017173817A1 (en) Computing method and apparatus for video display quality
CN114584849B (en) Video quality evaluation method, device, electronic equipment and computer storage medium
JP5784587B2 (en) Method and device for image selection and combination
TWI777112B (en) Method, apparatus and electronic device for image processing and storage medium
JP7162683B2 (en) Image denoising model training method, image denoising method, device and medium
WO2013155880A1 (en) Image compression method and device
WO2014086142A1 (en) Method and apparatus for processing video image
CN108416722B (en) Image display method, storage medium and terminal equipment
US11917158B2 (en) Static video recognition
WO2017113917A1 (en) Imaging method, imaging apparatus, and terminal
CN105979363A (en) Identity identification method and device
US11070705B2 (en) System and method for image dynamic range adjusting
CN107465903B (en) Image white balance method, device and computer readable storage medium
US20190139204A1 (en) Method and device for adjusting grayscale values of image
US9330340B1 (en) Noise estimation for images using polynomial relationship for pixel values of image features
CN110120039B (en) Screen detection method, screen detection device, electronic equipment and readable storage medium
WO2017143654A1 (en) Method for selecting photo to be outputted, photographing method, device and storage medium
WO2023142715A1 (en) Video coding method and apparatus, real-time communication method and apparatus, device, and storage medium
CN110753243A (en) Image processing method, image processing server and image processing system
WO2018192518A1 (en) Data processing method and device and storage medium
TWI520048B (en) Method for outputting cloud image data and cloud server
WO2019112544A1 (en) Method for denoising omnidirectional videos and rectified videos
CN110677728B (en) Method, device and equipment for playing video and storage medium
US20140161199A1 (en) Method and apparatus for processing video image
WO2023050590A1 (en) Image processing method and apparatus, storage medium, and terminal

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16897749

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16897749

Country of ref document: EP

Kind code of ref document: A1