WO2022161310A1 - Display method and apparatus, and electronic device - Google Patents

Display method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022161310A1
WO2022161310A1 PCT/CN2022/073465 CN2022073465W WO2022161310A1 WO 2022161310 A1 WO2022161310 A1 WO 2022161310A1 CN 2022073465 W CN2022073465 W CN 2022073465W WO 2022161310 A1 WO2022161310 A1 WO 2022161310A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
target
vertical super
electronic device
super
Prior art date
Application number
PCT/CN2022/073465
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 WO2022161310A1 publication Critical patent/WO2022161310A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • 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/440281Processing 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 temporal resolution, e.g. by frame skipping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • H04N21/64738Monitoring network characteristics, e.g. bandwidth, congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64746Control signals issued by the network directed to the server or the client
    • H04N21/64761Control signals issued by the network directed to the server or the client directed to the server
    • H04N21/64769Control signals issued by the network directed to the server or the client directed to the server for rate control
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application belongs to the technical field of video processing, and in particular relates to a display method, apparatus and electronic device.
  • the network condition connected to the electronic device may be abnormal.
  • the electronic device enters a tunnel or moves at a high speed, etc., resulting in poor network speed.
  • the electronic device in order to ensure that the video can continue to be played, the electronic device usually reduces the bit rate of the currently playing video, for example, from a high-definition bit rate (such as 1080p) to a low-definition bit rate (such as 480p), etc., while the video playback bit rate Lowering will result in lower image quality for video playback.
  • a high-definition bit rate such as 1080p
  • a low-definition bit rate such as 480p
  • the purpose of the embodiments of the present application is to provide a display method, device and electronic device, which can solve the problem that when the current electronic device has abnormal network conditions during the video playback process, there is an image of the video played due to the reduction of the video playback bit rate. low quality issues.
  • an embodiment of the present application provides a display method, including:
  • the bit rate of the target video played by the electronic device is reduced to the first bit rate, in the N preset vertical super-score models in the electronic device, determine the The target vertical super-score model of the target video, wherein the N is an integer greater than 1;
  • the target image frame is an image frame of the target video processed based on the target vertical super-resolution model image frame.
  • an embodiment of the present application provides a display device, including:
  • the super-score model determination module is configured to, when it is detected that the network state of the electronic device is abnormal, and the bit rate of the target video played by the electronic device is reduced to the first bit rate, N presets in the electronic device In the vertical super-resolution model, the target vertical super-resolution model of the target video is determined, wherein the N is an integer greater than 1;
  • a display module configured to display the target image frame in the case of transmitting the image frame of the target video at the first bit rate.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • embodiments of the present application provide a computer program product, including a computer program tangibly embodied on a computer-readable medium, the computer program including program code for executing the method according to the first aspect.
  • an embodiment of the present application provides an electronic device configured to execute the steps of the method described in the first aspect.
  • the electronic device when the electronic device reduces the bit rate of the playing video (ie, the target video) due to an abnormal network state, the electronic device can select the corresponding target video from a plurality of preset vertical super-resolution models.
  • the vertical super-resolution model namely the target vertical super-resolution model
  • the selected vertical super-resolution model the image frames of the video to be played are processed, and the video after the image frame processing is played.
  • the electronic device can process the image frames of the video played under the low bit rate through the selected vertical super-resolution model, so as to improve the image quality of the video played under the low bit rate, and further improve the electronic device's performance in the video.
  • the image quality when the video is played at a low bit rate due to abnormal network conditions since the selected vertical super-resolution model corresponds to the played video, the selected vertical super-resolution model is more suitable for the processing of the played video, Thereby, the processing efficiency can be improved and the energy consumption during the processing can be reduced.
  • FIG. 1 is a schematic flowchart of an embodiment of a display method provided by the present application.
  • FIG. 2 is a schematic structural diagram of an embodiment of a display device provided by the present application.
  • FIG. 3 is a schematic diagram of a hardware structure of an embodiment of an electronic device provided by the present application.
  • FIG. 4 is a schematic diagram of a hardware structure of an embodiment of another electronic device provided by the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first photographing object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • an embodiment of the present application provides a display method, and the display method is applied to an electronic device. As shown in FIG. 1 , the method includes the following steps 101 and 102 .
  • Step 101 in the case of detecting that the network state of the electronic device is abnormal, and the code rate of the target video played by the electronic device is reduced to the first code rate, in the preset N vertical super-resolution models in the electronic device, determine the target video.
  • the target vertical super-resolution model wherein the target vertical super-resolution model is a vertical super-resolution model among N preset vertical super-resolution models in the electronic device, and N is an integer greater than 1.
  • Step 102 in the case of transmitting the image frame of the target video at the first bit rate, displaying the target image frame, wherein the target image frame is an image frame after processing the image frame of the target video based on the target vertical super-resolution model.
  • the electronic device can select a vertical super-resolution model corresponding to the target video from the preset multiple vertical super-resolution models (that is, the target vertical super-resolution model), and process the image frames of the played video through the selected vertical super-resolution model, and play the video after image frame processing.
  • the electronic device can process the image frames of the video played under the low bit rate through the selected vertical super-resolution model, so as to improve the image quality of the video played under the low bit rate, and further improve the electronic device's performance in the video.
  • the image quality when the video is played at a low bit rate due to abnormal network conditions since the selected vertical super-resolution model corresponds to the played video, the selected vertical super-resolution model is more suitable for the processing of the played video, Thereby, the processing efficiency can be improved and the energy consumption during the processing can be reduced.
  • the server can detect whether the current network state of the electronic device is abnormal, and when detecting that the network state of the electronic device is abnormal, it can The current bit rate (for ease of description, referred to as "second bit rate" in this embodiment of the present application) currently used by the electronic device to play the video (that is, the server transmits the image frame of the played video to the electronic device) is reduced to the first bit rate.
  • the current bit rate for ease of description, referred to as "second bit rate" in this embodiment of the present application
  • the above-mentioned server detects whether the current network state of the electronic device is abnormal, which may be that the electronic device reports the network speed or network signal strength of the network it is currently connected to to the server, and the server reports whether the network speed or network signal strength is lower than Corresponding preset thresholds, and in the case of being lower than the corresponding preset thresholds, it is determined that the network state of the electronic device is abnormal, and so on.
  • the above-mentioned reduction of the code rate of the target video played by the electronic device to the first code rate may be that the server determines the corresponding first code rate according to the network state after the abnormality of the electronic device occurs, and adjusts the code of the image frame of the transmission target video.
  • the first bit rate is lower than the second bit rate at which the electronic device plays the target video before the abnormal network state occurs.
  • the electronic device plays a video (ie, the target video) at a bit rate of 5Mb/s (ie, the second bit rate)
  • a video ie, the target video
  • 5Mb/s ie, the second bit rate
  • the electronic device detects that its network speed is reduced, and the reduced network speed can only meet the requirements of To play a video at a bit rate of 2Mb/s
  • the electronic device reduces the bit rate of the video to be played from 5Mb/s to 2Mb/s.
  • the electronic device may determine a vertical super-resolution model corresponding to the target video among the preset N vertical super-resolution models As the above target vertical superscore model.
  • each vertical super-score model in the above-mentioned N vertical super-score models is an arbitrary deep learning model that can improve image quality.
  • Different vertical super-resolution models in the sub-model are different in at least one of network parameters, network structure, processing accuracy and processing speed, so that different vertical super-resolution models are suitable for processing videos with different video information.
  • the above-mentioned N vertical super-score models may be learned in the server and sent to the above-mentioned electronic device for storage by the server, or may be directly learned in the electronic device, and the learning process of the vertical super-score model is as follows: Those skilled in the art are well-known, and will not be described in detail here.
  • the above-mentioned target vertical super-score model based on determining the target video may be a target vertical super-score model corresponding to the target video determined from N vertical super-score models according to a preset rule.
  • the above-mentioned preset rule may be to determine the target vertical super-resolution model based on the corresponding relationship between the video information and the vertical super-resolution model, that is, the above-mentioned determination of the target vertical super-resolution model of the target video may include: In the model, the vertical super-score model that has a corresponding relationship with the video information of the target video is determined as the target vertical super-score model.
  • the video information of the above-mentioned target video can be any information used as an indicator for selecting a vertical super-score model, and it can be the image quality (including the resolution) of the target video played under the above-mentioned first bit rate. etc.), the bit rate (ie, the first bit rate) of the target video to be played after the network state is abnormal, and the video type information, and so on.
  • the above-mentioned determining the target vertical super-score model may include: in the N vertical super-score models, determining the The vertical superdivision model corresponding to the image quality of the target video played at the high rate is the target vertical superdivision waveform.
  • the electronic device is preset with a vertical super-resolution model 1 and a vertical super-resolution model 2, and the vertical super-resolution model 1 is suitable for improving the image quality of the video frame of a video with a resolution of FULL D1 (ie, a resolution of 720 ⁇ 576).
  • the vertical super-resolution model 2 is suitable for improving the image quality of the video frame of the video whose definition is HALF D1 (ie, the resolution is 720 ⁇ 288).
  • the electronic device determines that the vertical super-resolution model 1 is the target vertical super-resolution model; if the target video played by the electronic device at the first bit rate has a If the definition is HALF D1, the electronic device determines the vertical super-resolution model 2 as the target vertical super-resolution model.
  • the above-mentioned determining the target vertical super-score model may include: among the N vertical super-score models, determining a vertical super-score model that has a corresponding relationship with the first code rate is the vertical superresolution model for the target.
  • the above-mentioned step 102 may include:
  • the vertical super-score model corresponding to the video type of the target video is determined as the target vertical super-score model.
  • the electronic device can determine the corresponding target vertical super-score model among the preset N vertical super-score models according to the video type of the target video, so that the selected vertical super-score model is more suitable for playing at the first bit rate
  • the processing of the video frame of the target video further improves the image quality of the video played at a low bit rate.
  • the video types of the above-mentioned target videos may include any one of characters, animals, plants, buildings, landscapes, animations, etc.
  • the electronic device may preset a corresponding vertical superscore for each video type
  • the model that is, the above-mentioned target vertical super-score model is a vertical super-score model that has a preset corresponding relationship with the video type of the above-mentioned target video among the above-mentioned N vertical super-score models.
  • a vertical super-score model 3 and a vertical hyper-score model 4 are preset in the electronic device, and the vertical hyper-score model 3 has a corresponding relationship with the video type being a character, and the vertical hyper-score model 4 has a corresponding relationship with the video type landscape. Then, if the above-mentioned target video is a video of shooting a person (that is, the video type of the target video is a person), the electronic device determines that the vertical super-score model 3 is the above-mentioned target vertical super-score model.
  • the above video information of the target video may be video information obtained by the electronic device detecting the target video, or may be video information received by the electronic device and sent by the server.
  • the above-mentioned acquisition of the video type of the target video may include:
  • the video type information is the information sent by the server when the video data of the target video is transmitted;
  • the video type of the target video is determined based on the image of the target image frame, where the target image frame is an image frame of the target video played by the electronic device within a preset time period before the bit rate of the target video is reduced to the first bit rate.
  • the electronic device can determine the video type of the target video according to the video type information transmitted by the server, thereby improving the efficiency of video processing; it can also determine the video type of the target video according to the video frame of the target video, so that the video of the target video can be obtained.
  • Types are flexible and can meet different needs.
  • the electronic device in the process of playing the target video, can receive the video type information sent by the server in the process of transmitting the video data of the target video, and the electronic device can obtain the video type indicated by the video type information.
  • the electronic device may also acquire some image frames of the target video, and determine the video type of the target video according to the image information in the partial image frames.
  • the electronic device may acquire image frames within a preset time period (such as 1s, etc.) before reducing the bit rate of the target video to be played back to the first bit rate, and determine the target according to the acquired image frames.
  • the video type of the video Specifically, if there are more than 60 image frames including animals in the acquired 100 image frames, it is determined that the video type of the target video is animals, and so on.
  • the above-mentioned electronic equipment determines the target vertical super-resolution model corresponding to the target video in the N vertical super-resolution models, and is not limited to determining the corresponding target vertical super-resolution model based on the video information of the target video. It can also be based on other The rules determine the target vertical superscore model for the target video.
  • the method further includes:
  • the first video clip sent by the server is received, where the first video clip is a partial video clip of the target video.
  • determining the target vertical super-resolution model of the target video may include:
  • a second video clip is acquired, the second video clip is a video clip with the same content as the first video clip, and the image quality of the first video clip is higher than that of the first video clip The image quality of the two video clips;
  • a target vertical super-score model is determined among the N vertical super-score models.
  • the electronic device may determine the above target in the N vertical super-score models according to the first video clip of the target video sent by the server, and the second video clip played at the first bit rate with the same content as the first video clip
  • the vertical super-score model makes the determined target vertical super-score model for processing the target video played at the first bit rate more suitable, and further improves the image quality of the target video played at the first bit rate.
  • the above-mentioned first video clip is a partial video clip of the target video sent by the server before the electronic device reduces the bit rate of playing the target video to the first bit rate; and the above-mentioned second video clip is the electronic device.
  • a video clip having the same content as the first video clip is played at the first bit rate, and the image quality (including resolution, etc.) of the first video clip is higher than that of the second video clip.
  • the above-mentioned acquisition of the first video clip may be that when the server receives a request from the electronic device to play the target video, the server may transmit the video data of the target video to the electronic device, and also acquire at least one video clip of the target video for sending.
  • the data is sent to the electronic device, and the image quality of the at least one video segment is the first image quality.
  • the electronic device reduces the bit rate of the target video to be played to the first bit rate
  • the electronic device can obtain the at least one video segment to play The video segment whose time period is after the current time and closest to the current time is regarded as the first video segment.
  • the server may send m video clips of the target video to the electronic device, and two adjacent video clips in the m video clips are separated by a first preset duration (eg, 5s). Or 10s, etc.), and the duration of each video clip is the second preset duration (such as 0.5s or 1s, etc.) and the image quality is the first image quality (such as 1080P, etc.), if the electronic device is playing the target video for 20s. If the bit rate is lowered, the electronic device determines a video segment whose playback period is after 20 s among the m video segments as the above-mentioned first video segment, where m is an integer greater than 1.
  • a first preset duration eg, 5s). Or 10s, etc.
  • the duration of each video clip is the second preset duration (such as 0.5s or 1s, etc.) and the image quality is the first image quality (such as 1080P, etc.)
  • the electronic device determines a video segment whose playback period is after 20 s among the
  • the bit rate of the played video is reduced, the reduced first bit rate is no longer compatible with the image quality of the original video.
  • the electronic device will The image quality is reduced to an image quality suitable for the first bit rate.
  • an electronic device plays a video with a resolution of 1080P (that is, a resolution of 1920 ⁇ 1080) at a bit rate of 5Mb/s
  • the electronic device if the electronic device reduces the bit rate of the played video to 2Mb/s, the electronic device will When the video is played at 2Mb/s, the image quality of the played video will be reduced to the definition FUUL D1 (that is, the resolution is 720 ⁇ 576).
  • the first image quality of the first video clip is higher than the image quality of the second video clip, that is, the first image quality may be the image quality of the target video before the bit rate of the target video is reduced to the first bit rate; Alternatively, it may also be a preset image quality, and the preset image quality is at least higher than the image quality of the target video played at the first bit rate.
  • the electronic device can receive m video clips with a video resolution of 1080P sent by the server, and the electronic device reduces the bit rate of the target video to 2Mb/s.
  • the electronic device determines the first video clip among the m video clips, that is, the resolution of the first video clip is 1080P, and acquires a second video clip with the same content as the first video clip, that is, the second video clip
  • the resolution is FUUL D1.
  • the electronic device can compare the first video clip and the second video clip, and according to the comparison results, make a comparison between the N vertical super-score models. Determine the target vertical superresolution model.
  • the above-mentioned determination of the target vertical super-score model among the N vertical super-score models based on the first video clip and the second video clip may include:
  • the image frames of the second video segment are respectively processed based on the N vertical super-resolution models, and N video segments to be compared corresponding to the N vertical super-resolution models are obtained;
  • the target video clip to be compared determines the target video clip to be compared whose image quality is the closest to the image quality of the first video clip
  • the vertical super-score model corresponding to the target video segment to be compared is determined as the target vertical super-score model.
  • the electronic device may process the second video segment by using the preset N vertical super-score models, and compare the second video segment (ie, the video segment to be compared) processed by each vertical super-score model with the first video segment. Fragments are compared, and the vertical super-score model whose image quality of the processed second video clip is closest to that of the first video clip is determined as the above-mentioned target vertical The image quality processing effect of the video is the best, and the vertical super-score model is used as the target vertical super-score model to further improve the image quality of the target video played at a low bit rate.
  • the image resolution of the first video clip is 1080P
  • the image resolution of the second video clip is Hafl D1
  • the electronic device determines that 960P is the closest to 1080P, and determines the vertical super-resolution model 6 as the above-mentioned target vertical super-resolution model.
  • the above-mentioned determination of the target vertical super-score model among the N vertical super-score models based on the first video clip and the second video clip may include:
  • the vertical super-resolution model corresponding to the obtained degree of difference is determined as the target vertical super-resolution model.
  • the electronic device may also determine the target vertical super-score model corresponding to the degree of difference among the N vertical super-score models according to the degree of difference between the image quality of the second video segment and the image quality of the first video segment, so as to determine the
  • the method of the target vertical super-resolution model is simpler, the efficiency of determining the target vertical super-resolution model is improved, and the efficiency of video processing is further improved.
  • the vertical super-resolution model corresponding to the obtained degree of difference is determined as the target vertical super-resolution model, which may be preset in the electronic device.
  • the electronic device may determine the vertical super-resolution model that has a corresponding relationship with the acquired difference degree as the above-mentioned target vertical super-resolution model.
  • a vertical super-score model 8 and a vertical super-score model 9 are preset in the electronic device, and the preset vertical super-score model 8 corresponds to 1 to 2 preset levels (including 1080P, 960P, 720P, Full D1, which are decreased in sequence.
  • the vertical super-score model 9 corresponds to the difference in image quality of 3 to 5 preset levels, if the resolution of the first video clip is 1080P, and the second video clip has If the resolution is 720P, the image quality of the second video clip differs from the image quality of the first video clip by two preset levels, and the electronic device determines that the vertical super-score model 8 is the above-mentioned target vertical super-score model.
  • the electronic device can process the video frame of the target video played under the first code rate through the target vertical super-resolution model, thereby realizing the improvement of the first code rate.
  • the network state may recover, for example, the electronic device moves from an area with poor signal to an area with good signal. Then, the electronic device can adjust its code rate to a second code rate, where the second code rate is adapted to the restored network state.
  • step 102 it may further include:
  • the bit rate of the target video played by the electronic device is restored to the second bit rate, and the target vertical super-score model is stopped from processing the image frames of the target video.
  • the image quality of the target video played by the electronic device can be recovered along with the recovery of the bit rate.
  • the electronic device stops the processing of the image frame of the target video played at the second bit rate by the target vertical super-resolution model in time, which can save the power consumption caused by the unnecessary image processing of the target vertical super-resolution model, and realize the saving of electronic equipment. The power of the device.
  • the display device 200 includes:
  • the super-score model determination module 201 is configured to, when it is detected that the network state of the electronic device is abnormal, and the bit rate of the target video played by the electronic device is reduced to the first bit rate, the preset N vertical super-scores in the electronic device In the model, the target vertical super-score model of the target video is determined, wherein N is an integer greater than 1;
  • the display module 202 is configured to display the target image frame when the image frame of the target video is transmitted at the first bit rate.
  • the display apparatus 200 can process the image frame of the video played under the low bit rate by using the selected vertical super-resolution model, so as to improve the image quality of the video played under the low bit rate, and further improve the electronic equipment when abnormal network conditions occur.
  • the super-score model determination module 201 includes:
  • a video type acquisition unit used to acquire the video type of the target video
  • the first super-score model determination unit is configured to determine, among the N vertical super-score models, the vertical super-score model corresponding to the video type of the target video as the target vertical super-score model.
  • the display device 200 may determine a corresponding target vertical super-score model among the preset N vertical super-score models according to the video type of the target video, so that the selected vertical super-score model is more suitable for the first bit rate
  • the processing of the video frame of the target video to be played further improves the image quality of the video played at a low bit rate.
  • the video type acquisition unit which is specifically used for:
  • the video type information is the information sent by the server when the video data of the target video is transmitted;
  • the video type of the target video is determined based on the image of the target image frame, and the target image frame is: a partial image frame of the target video.
  • the display device 200 can determine the video type of the target video according to the video type information transmitted by the server, thereby improving the efficiency of video processing; it can also determine the video type of the target video according to the video frame of the target video, so as to obtain the video type of the target video.
  • the video type is flexible and can meet different needs.
  • the apparatus 200 further includes:
  • the video clip receiving module is configured to receive the first video clip sent by the server, wherein the first video clip is a partial video clip of the target video.
  • the super-score model determination module 201 may include:
  • a video clip obtaining unit configured to obtain a second video clip when the electronic device plays the target video at the first bit rate, where the second video clip is a video clip with the same content as the first video clip, and the first video clip has the same content as the first video clip.
  • the image quality of the clip is higher than the image quality of the second video clip;
  • the second super-score model determining unit is configured to determine a target vertical super-score model among the N vertical super-score models based on the first video segment and the second video segment.
  • the display apparatus 200 may determine the above-mentioned among the N vertical superscore models according to the first video segment of the target video sent by the server and the second video segment played at the first bit rate with the same content as the first video segment
  • the target vertical super-score model makes the determined target vertical super-score model for processing the target video played at the first bit rate more suitable, and further improves the image quality of the target video played at the first bit rate.
  • the second super-score model determination unit includes:
  • a video segment processing subunit configured to process the image frames of the second video segment based on the N vertical super-resolution models, respectively, to obtain N video segments to be compared corresponding to the N vertical super-resolution models;
  • a comparison subunit used to determine, among the N video clips to be compared, a target video clip to be compared whose image quality is the closest to the image quality of the first video clip;
  • the first super-resolution model determination subunit is configured to determine the vertical super-resolution model corresponding to the target video segment to be compared as the target vertical super-resolution model.
  • the display device 200 may process the second video segment by using the preset N vertical super-score models, and compare the second video segment processed by each vertical super-score model (ie, the video segment to be compared) with the second video segment.
  • the video clips are compared, and the vertical super-score model whose image quality of the processed second video clip is the closest to the image quality of the first video clip is determined as the above-mentioned target vertical super-score model, so that it is possible to choose to play at a low bit rate.
  • the image quality processing effect of the video is the best, and the vertical super-score model is used as the target vertical super-score model, which further improves the image quality of the target video played at a low bit rate.
  • the second super-score model determination unit includes:
  • a degree of difference obtaining subunit used to obtain the degree of difference between the image quality of the second video clip and the image quality of the first video clip
  • the second super-resolution model determination subunit is configured to determine, among the N vertical super-resolution models, the vertical super-resolution model corresponding to the acquired degree of difference as the target vertical super-resolution model.
  • the display apparatus 200 may, according to the degree of difference between the image quality of the second video segment and the image quality of the first video segment, determine the target vertical super-score model corresponding to the degree of difference among the N vertical super-score models, so that the determination
  • the method of the target vertical super-resolution model is simpler, the efficiency of determining the target vertical super-resolution model is improved, and the efficiency of video processing is further improved.
  • the apparatus 200 further includes:
  • the bit rate recovery module is used to restore the bit rate of the target video played by the electronic device to the second bit rate when it is detected that the network state of the electronic device returns to normal, and stop the target vertical super-resolution model from performing the image frame of the target video. to be processed.
  • the display device 200 can stop the processing of the image frame of the target video played at the second bit rate by the target vertical super-resolution model in time, which can save the power consumption caused by unnecessary image processing by the target vertical super-resolution model. , to save the power of electronic equipment.
  • the display device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the device can be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the display device in this embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the display device provided by the embodiment of the present application can implement each process implemented by the method embodiment of FIG. 1 , and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 300 , including a processor 301 , a memory 302 , a program or instruction stored in the memory 302 and executable on the processor 301 , the program Or, when the instruction is executed by the processor 301, each process of the above-mentioned display method embodiment can be implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 4 is a schematic diagram of a hardware structure of an embodiment of another electronic device provided by the present application.
  • the electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, etc. part.
  • the electronic device 400 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so that the power management system can manage charging, discharging, and power management. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 4 does not constitute a limitation to the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 410 is used for:
  • Display unit 406 for:
  • the target image frame is displayed, and the target image frame is an image frame obtained by processing the image frame of the target video based on the target vertical superdivision model.
  • the electronic device 400 can process the image frame of the video played under the low bit rate by using the selected vertical super-resolution model, so as to improve the image quality of the video played under the low bit rate, thereby improving the electronic device when abnormal network conditions occur.
  • the processor 410 is further configured to:
  • the vertical super-score model corresponding to the video type of the target video is determined as the target vertical super-score model.
  • the electronic device 400 can determine a corresponding target vertical super-score model among the preset N vertical super-score models according to the video type of the target video, so that the selected vertical super-score model is more suitable for the first bit rate
  • the processing of the video frame of the target video to be played further improves the image quality of the video played at a low bit rate.
  • the processor 410 is further configured to:
  • the video type information is the information sent by the server when the video data of the target video is transmitted;
  • the video type of the target video is determined based on the image of the target image frame, where the target image frame is: a partial image frame of the target video.
  • the electronic device 400 can determine the video type of the target video according to the video type information transmitted by the server, so that the efficiency of video processing can be improved; it can also determine the video type of the target video according to the video frame of the target video, so as to obtain the video type of the target video.
  • the video type is flexible and can meet different needs.
  • the processor 410 is further configured to:
  • a second video clip is acquired, the second video clip is a video clip with the same content as the first video clip, and the image quality of the first video clip is higher than that of the first video clip The image quality of the two video clips;
  • a target vertical super-score model is determined among the N vertical super-score models.
  • the electronic device 400 may determine the above-mentioned among the N vertical super-score models according to the first video segment of the target video sent by the server and the second video segment played at the first bit rate with the same content as the first video segment
  • the target vertical super-score model makes the determined target vertical super-score model for processing the target video played at the first bit rate more suitable, and further improves the image quality of the target video played at the first bit rate.
  • the processor 410 is further configured to:
  • the image frames of the second video segment are respectively processed based on the N vertical super-resolution models, and N video segments to be compared corresponding to the N vertical super-resolution models are obtained;
  • the target video clip to be compared determines the target video clip to be compared whose image quality is the closest to the image quality of the first video clip
  • the vertical super-score model corresponding to the target video segment to be compared is determined as the target vertical super-score model.
  • the electronic device 400 may process the second video segment by using the preset N vertical super-score models, and compare the second video segment processed by each vertical super-score model (ie, the video segment to be compared) with the second video segment.
  • the video clips are compared, and the vertical super-score model whose image quality of the processed second video clip is the closest to the image quality of the first video clip is determined as the above-mentioned target vertical super-score model, so that it is possible to choose to play at a low bit rate.
  • the image quality processing effect of the video is the best, and the vertical super-score model is used as the target vertical super-score model, which further improves the image quality of the target video played at a low bit rate.
  • the processor 410 is further configured to:
  • the vertical super-resolution model corresponding to the obtained degree of difference is determined as the target vertical super-resolution model.
  • the electronic device 400 may, according to the degree of difference between the image quality of the second video segment and the image quality of the first video segment, determine the target vertical super-score model corresponding to the degree of difference among the N vertical super-score models, so that the determination
  • the method of the target vertical super-resolution model is simpler, the efficiency of determining the target vertical super-resolution model is improved, and the efficiency of video processing is further improved.
  • the processor 410 is further configured to:
  • the bit rate of the target video played by the electronic device is restored to the second bit rate, and the target vertical super-score model is stopped from processing the image frames of the target video.
  • the electronic device 400 can stop the processing of the image frame of the target video played at the second bit rate by the target vertical super-resolution model in time, which can save the power consumption caused by unnecessary image processing by the target vertical super-resolution model. , to save the power of electronic equipment.
  • the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 407 includes a touch panel 4071 and other input devices 4072 .
  • the touch panel 4071 is also called a touch screen.
  • the touch panel 4071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 410.
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned display method embodiment can be realized, and the same technical effect can be achieved , in order to avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device in the above embodiment.
  • Readable storage media including computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or non-transitory computer-readable storage such as optical disks medium.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction, implement each process of the above display method embodiment, and can achieve the same technology The effect, in order to avoid repetition, is not repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present application belongs to the technical field of video processing. Disclosed are a display method and apparatus, and an electronic device. The method comprises: when it is detected that a network state of an electronic device is abnormal, and that a bitrate at which the electronic device plays a target video is reduced to a first bitrate, determining, from among N preset vertical super-resolution models in the electronic device, a target vertical super-resolution model of the target video, wherein N is an integer greater than 1; and when an image frame of the target video is transmitted at the first bitrate, displaying a target image frame, wherein the target image frame is an image frame obtained after the image frame of the target video is processed on the basis of the target vertical super-resolution model.

Description

显示方法、装置和电子设备Display method, device and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2021年01月27日在中国提交的中国专利申请号202110113902.6的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202110113902.6 filed in China on Jan. 27, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于视频处理技术领域,具体涉及一种显示方法、装置和电子设备。The present application belongs to the technical field of video processing, and in particular relates to a display method, apparatus and electronic device.
背景技术Background technique
随着通信技术的发展,手机和平板电脑等电子设备已成为人们日常生活中不可或缺的工具。用户通过电子设备中安装的视频应用程序,可以实现使用电子设备播放视频,如电影以及短视频,等等。With the development of communication technology, electronic devices such as mobile phones and tablet computers have become indispensable tools in people's daily life. Through the video application program installed in the electronic device, the user can use the electronic device to play videos, such as movies and short videos, and so on.
但是,在电子设备播放视频的过程中,可能出现电子设备连接的网络状况异常的情况,例如,电子设备进入隧道或者处于高速移动中等导致网络速度变差。此时,电子设备为保证继续播放视频,通常会降低当前播放的视频的码率,例如,由高清码率(如1080p)降低至低清码率(如480p)等,而视频播放的码率降低,会导致视频播放的图像质量降低。However, in the process of playing the video on the electronic device, the network condition connected to the electronic device may be abnormal. For example, the electronic device enters a tunnel or moves at a high speed, etc., resulting in poor network speed. At this time, in order to ensure that the video can continue to be played, the electronic device usually reduces the bit rate of the currently playing video, for example, from a high-definition bit rate (such as 1080p) to a low-definition bit rate (such as 480p), etc., while the video playback bit rate Lowering will result in lower image quality for video playback.
可见,目前电子设备在播放视频过程中出现网络状况异常的情况下,存在因降低视频播放码率而导致播放的视频的图像质量低的问题。It can be seen that, when an abnormal network condition occurs in the current video playback process of the electronic device, there is a problem that the image quality of the played video is low due to the reduction of the video playback bit rate.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种显示方法、装置和电子设备,能够解决目前电子设备在播放视频过程中出现网络状况异常的情况下,存在因降低视频播放码率而导致播放的视频的图像质量低的问题。The purpose of the embodiments of the present application is to provide a display method, device and electronic device, which can solve the problem that when the current electronic device has abnormal network conditions during the video playback process, there is an image of the video played due to the reduction of the video playback bit rate. low quality issues.
第一方面,本申请实施例提供了一种显示方法,包括:In a first aspect, an embodiment of the present application provides a display method, including:
在检测到电子设备的网络状态异常,以及所述电子设备播放目标视频的码率降低至第一码率的情况下,在所述电子设备中预设的N个垂直超分模型中,确定所述目标视频的目标垂直超分模型,其中,所述N为大于1的整数;When it is detected that the network state of the electronic device is abnormal, and the bit rate of the target video played by the electronic device is reduced to the first bit rate, in the N preset vertical super-score models in the electronic device, determine the The target vertical super-score model of the target video, wherein the N is an integer greater than 1;
在以所述第一码率传输所述目标视频的图像帧情况下,显示目标图像帧,所述目标图像帧为基于所述目标垂直超分模型对所述目标视频的图像帧进行处理后的图像帧。In the case of transmitting the image frame of the target video at the first bit rate, displaying the target image frame, where the target image frame is an image frame of the target video processed based on the target vertical super-resolution model image frame.
第二方面,本申请实施例提供了一种显示装置,包括:In a second aspect, an embodiment of the present application provides a display device, including:
超分模型确定模块,用于在检测到电子设备的网络状态异常,以及所述电子设备播放目标视频的码率降低至第一码率的情况下,在所述电子设备中预设的N个垂直超分模型中,确定所述目标视频的目标垂直超分模型,其中,所述N为大于1的整数;The super-score model determination module is configured to, when it is detected that the network state of the electronic device is abnormal, and the bit rate of the target video played by the electronic device is reduced to the first bit rate, N presets in the electronic device In the vertical super-resolution model, the target vertical super-resolution model of the target video is determined, wherein the N is an integer greater than 1;
显示模块,用于在以所述第一码率传输所述目标视频的图像帧情况下,显示目标图像帧。A display module, configured to display the target image frame in the case of transmitting the image frame of the target video at the first bit rate.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
第六方面,本申请实施例提供了一种计算机程序产品,包括有形地包含在计算机可读介质上的计算机程序,所述计算机程序包含用于执行如第一方面所述的方法的程序代码。In a sixth aspect, embodiments of the present application provide a computer program product, including a computer program tangibly embodied on a computer-readable medium, the computer program including program code for executing the method according to the first aspect.
第七方面,本申请实施例提供了一种电子设备,被配置成用于执行如第一方面所述的方法的步骤。In a seventh aspect, an embodiment of the present application provides an electronic device configured to execute the steps of the method described in the first aspect.
在本申请实施例中,在电子设备因网络状态异常而降低播放视频(即目标视频)的码率的情况下,电子设备可以在预设的多个垂直超分模型中选取与目标视频相对应的垂直超分模型(即目标垂直超分模型),并通过选择的垂直超分模型对播放的视频的图像帧进行处理,并播放图像帧处理后的视频。如此,通过本申请实施例,电子设备可以通过选取的垂直超分模型对在低码率下播放的视频的图像帧进行处理,提升低码率下播放的视频的图像质量,进而提升电子设备在出现网络状况异常而以低码率播放视频时的图像质量;另外,由于选择的垂直超分模型与播放的视频相对应,从而使选择的垂直超分模型更适于对播放的视频的处理,从而可以提升处理效率以及降低处理过程中的能耗。In this embodiment of the present application, when the electronic device reduces the bit rate of the playing video (ie, the target video) due to an abnormal network state, the electronic device can select the corresponding target video from a plurality of preset vertical super-resolution models. The vertical super-resolution model (namely the target vertical super-resolution model), and through the selected vertical super-resolution model, the image frames of the video to be played are processed, and the video after the image frame processing is played. In this way, through the embodiments of the present application, the electronic device can process the image frames of the video played under the low bit rate through the selected vertical super-resolution model, so as to improve the image quality of the video played under the low bit rate, and further improve the electronic device's performance in the video. The image quality when the video is played at a low bit rate due to abnormal network conditions; in addition, since the selected vertical super-resolution model corresponds to the played video, the selected vertical super-resolution model is more suitable for the processing of the played video, Thereby, the processing efficiency can be improved and the energy consumption during the processing can be reduced.
附图说明Description of drawings
图1是本申请提供的显示方法的实施例的流程示意图;1 is a schematic flowchart of an embodiment of a display method provided by the present application;
图2是本申请提供的显示装置的实施例的结构示意图;2 is a schematic structural diagram of an embodiment of a display device provided by the present application;
图3是本申请提供的电子设备的实施例的硬件结构示意图;3 is a schematic diagram of a hardware structure of an embodiment of an electronic device provided by the present application;
图4是本申请提供的另一电子设备的实施例的硬件结构示意图。FIG. 4 is a schematic diagram of a hardware structure of an embodiment of another electronic device provided by the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一拍摄对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至 少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first photographing object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体地实施例及其应用场景对本申请实施例提供的显示方法进行详细地说明。The display method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
请参见图1,本申请实施例提供一种显示方法,该显示方法应用于电子设备。如图1所示,方法包括如下步骤101和步骤102。Referring to FIG. 1 , an embodiment of the present application provides a display method, and the display method is applied to an electronic device. As shown in FIG. 1 , the method includes the following steps 101 and 102 .
步骤101、在检测到电子设备的网络状态异常,以及电子设备播放目标视频的码率降低至第一码率的情况下,在电子设备中预设的N个垂直超分模型中,确定目标视频的目标垂直超分模型,其中,目标垂直超分模型为电子设备中预设的N个垂直超分模型中的一个垂直超分模型,N为大于1的整数。 Step 101, in the case of detecting that the network state of the electronic device is abnormal, and the code rate of the target video played by the electronic device is reduced to the first code rate, in the preset N vertical super-resolution models in the electronic device, determine the target video. The target vertical super-resolution model, wherein the target vertical super-resolution model is a vertical super-resolution model among N preset vertical super-resolution models in the electronic device, and N is an integer greater than 1.
步骤102、在以第一码率传输目标视频的图像帧情况下,显示目标图像帧,其中,目标图像帧为基于目标垂直超分模型对目标视频的图像帧进行处理后的图像帧。 Step 102 , in the case of transmitting the image frame of the target video at the first bit rate, displaying the target image frame, wherein the target image frame is an image frame after processing the image frame of the target video based on the target vertical super-resolution model.
这里,在电子设备因网络状态异常而降低播放视频(即目标视频)的码率的情况下,电子设备可以在预设的多个垂直超分模型中选取与目标视频相对应的垂直超分模型(即目标垂直超分模型),并通过选择的垂直超分模型对播放的视频的图像帧进行处理,并播放图像帧处理后的视频。如此,通过本申请实施例,电子设备可以通过选取的垂直超分模型对在低码率下播放的视频的图像帧进行处理,提升低码率下播放的视频的图像质量,进而提升电子设备在出现网络状况异常而以低码率播放视频时的图像质量;另外,由于选择的垂直超分模型与播放的视频相对应,从而使选择的垂直超分模型更适于对播放的视频的处理,从而可以提升处理效率以及降低处理过程中的能耗。Here, in the case where the electronic device reduces the bit rate of the playing video (that is, the target video) due to an abnormal network state, the electronic device can select a vertical super-resolution model corresponding to the target video from the preset multiple vertical super-resolution models (that is, the target vertical super-resolution model), and process the image frames of the played video through the selected vertical super-resolution model, and play the video after image frame processing. In this way, through the embodiments of the present application, the electronic device can process the image frames of the video played under the low bit rate through the selected vertical super-resolution model, so as to improve the image quality of the video played under the low bit rate, and further improve the electronic device's performance in the video. The image quality when the video is played at a low bit rate due to abnormal network conditions; in addition, since the selected vertical super-resolution model corresponds to the played video, the selected vertical super-resolution model is more suitable for the processing of the played video, Thereby, the processing efficiency can be improved and the energy consumption during the processing can be reduced.
在上述步骤101中,电子设备在运行视频播放应用程序并播放目标视频的过程中,服务器可以检测电子设备当前的网络状态是否发生异常,并在检测到电子设备网络状态异常的情况下,可以将电子设备播放视频(即服务器向电子设备传输播放的视频的图像帧)当前所采用的码率(为便于描述,本申请实施例中称为“第二码率”)降低至第一码率。In the above step 101, during the process of the electronic device running the video playback application and playing the target video, the server can detect whether the current network state of the electronic device is abnormal, and when detecting that the network state of the electronic device is abnormal, it can The current bit rate (for ease of description, referred to as "second bit rate" in this embodiment of the present application) currently used by the electronic device to play the video (that is, the server transmits the image frame of the played video to the electronic device) is reduced to the first bit rate.
其中,上述服务器检测电子设备当前的网络状态是否发生异常,可以 是电子设备向服务器上报其当前连接的网络的网络速度或者网络信号强度,服务器根据电子设备上报的网络速度或者网络信号强度是否低于相应的预设阈值,并在低于相应的预设阈值的情况下,确定电子设备的网络状态发生异常,等等。Wherein, the above-mentioned server detects whether the current network state of the electronic device is abnormal, which may be that the electronic device reports the network speed or network signal strength of the network it is currently connected to to the server, and the server reports whether the network speed or network signal strength is lower than Corresponding preset thresholds, and in the case of being lower than the corresponding preset thresholds, it is determined that the network state of the electronic device is abnormal, and so on.
另外,上述将电子设备播放目标视频的码率降低至第一码率,可以是服务器根据电子设备发生异常后的网络状态确定相对应的第一码率,并调节传输目标视频的图像帧的码率至第一码率,该第一码率低于电子设备在网络状态发生异常前播放目标视频的第二码率。In addition, the above-mentioned reduction of the code rate of the target video played by the electronic device to the first code rate may be that the server determines the corresponding first code rate according to the network state after the abnormality of the electronic device occurs, and adjusts the code of the image frame of the transmission target video. The first bit rate is lower than the second bit rate at which the electronic device plays the target video before the abnormal network state occurs.
例如,在电子设备以5Mb/s的码率(即第二码率)播放视频(即目标视频)的情况下,若电子设备检测到其网络速度降低,且降低后的网络速度只能满足以2Mb/s的码率播放视频,则电子设备将播放视频的码率由5Mb/s降低至2Mb/s。For example, when the electronic device plays a video (ie, the target video) at a bit rate of 5Mb/s (ie, the second bit rate), if the electronic device detects that its network speed is reduced, and the reduced network speed can only meet the requirements of To play a video at a bit rate of 2Mb/s, the electronic device reduces the bit rate of the video to be played from 5Mb/s to 2Mb/s.
本申请实施例中,在电子设备播放目标视频的码率降低至第一码率之后,电子设备可以在预设的N个垂直超分模型中,确定一个与目标视频相对应的垂直超分模型作为上述目标垂直超分模型。In this embodiment of the present application, after the bit rate of the target video played by the electronic device is reduced to the first bit rate, the electronic device may determine a vertical super-resolution model corresponding to the target video among the preset N vertical super-resolution models As the above target vertical superscore model.
其中,上述N个垂直超分模型中每一垂直超分模型,为任意的能够实现提升图像质量的深度学习模型,每一垂直超分模型是预先通过大量的数据学习得到,且N个垂直超分模型中不同垂直超分模型为网络参数、网络结构、处理精度和处理速度等中至少一项存在不同,使得不同的垂直超分模型适合对不同视频信息的视频进行处理。Among them, each vertical super-score model in the above-mentioned N vertical super-score models is an arbitrary deep learning model that can improve image quality. Different vertical super-resolution models in the sub-model are different in at least one of network parameters, network structure, processing accuracy and processing speed, so that different vertical super-resolution models are suitable for processing videos with different video information.
另外,上述N个垂直超分模型可以是在服务器中学习得到,并由服务器发送至上述电子设备进行存储,或者,也可以是直接在电子设备中学习得到,而垂直超分模型的学习过程为本领域技术人员熟知,在此并不进行赘述。In addition, the above-mentioned N vertical super-score models may be learned in the server and sent to the above-mentioned electronic device for storage by the server, or may be directly learned in the electronic device, and the learning process of the vertical super-score model is as follows: Those skilled in the art are well-known, and will not be described in detail here.
本申请实施例中,上述基于确定目标视频的目标垂直超分模型,可以是根据预设规则,在N个垂直超分模型中确定与目标视频相对应的目标垂直超分模型。In the embodiment of the present application, the above-mentioned target vertical super-score model based on determining the target video may be a target vertical super-score model corresponding to the target video determined from N vertical super-score models according to a preset rule.
其中,上述预设规则可以是基于视频信息与垂直超分模型的对应关系确定目标垂直超分模型,即上述确定目标视频的目标垂直超分模型,可以 包括:将预设的N个垂直超分模型中,与目标视频的视频信息存在对应关系的垂直超分模型确定为目标垂直超分模型。Wherein, the above-mentioned preset rule may be to determine the target vertical super-resolution model based on the corresponding relationship between the video information and the vertical super-resolution model, that is, the above-mentioned determination of the target vertical super-resolution model of the target video may include: In the model, the vertical super-score model that has a corresponding relationship with the video information of the target video is determined as the target vertical super-score model.
需要说明的是,上述目标视频的视频信息,可以是任意的用于作为选择垂直超分模型的指标的信息,其可以是在上述第一码率下播放的目标视频的图像质量(包括分辨率等)、网络状态异常后播放目标视频的码率(即第一码率)以及视频类型信息,等等。It should be noted that the video information of the above-mentioned target video can be any information used as an indicator for selecting a vertical super-score model, and it can be the image quality (including the resolution) of the target video played under the above-mentioned first bit rate. etc.), the bit rate (ie, the first bit rate) of the target video to be played after the network state is abnormal, and the video type information, and so on.
那么,在上述视频信息包括在第一码率下播放的目标视频的图像质量的情况下,上述确定目标垂直超分模型,可以包括:在N个垂直超分模型中,确定与在第一码率下播放的目标视频的图像质量对应的垂直超分模型为目标垂直超分波形。Then, in the case that the above-mentioned video information includes the image quality of the target video played at the first bit rate, the above-mentioned determining the target vertical super-score model may include: in the N vertical super-score models, determining the The vertical superdivision model corresponding to the image quality of the target video played at the high rate is the target vertical superdivision waveform.
例如,假设电子设备预设有垂直超分模型1和垂直超分模型2,且垂直超分模型1适于提升清晰度为FULL D1(即分辨率720×576)的视频的视频帧的图像质量,垂直超分模型2适于提升清晰度为HALF D1(即分辨率720×288)的视频的视频帧的图像质量。若电子设备在第一码率下播放的目标视频的清晰度为FULL D1,则电子设备确定垂直超分模型1为目标垂直超分模型;若电子设备在第一码率下播放的目标视频的清晰度为HALF D1,则电子设备确定垂直超分模型2为目标垂直超分模型。For example, it is assumed that the electronic device is preset with a vertical super-resolution model 1 and a vertical super-resolution model 2, and the vertical super-resolution model 1 is suitable for improving the image quality of the video frame of a video with a resolution of FULL D1 (ie, a resolution of 720×576). , the vertical super-resolution model 2 is suitable for improving the image quality of the video frame of the video whose definition is HALF D1 (ie, the resolution is 720×288). If the definition of the target video played by the electronic device at the first bit rate is FULL D1, then the electronic device determines that the vertical super-resolution model 1 is the target vertical super-resolution model; if the target video played by the electronic device at the first bit rate has a If the definition is HALF D1, the electronic device determines the vertical super-resolution model 2 as the target vertical super-resolution model.
或者,在上述视频信息包括上述第一码率的情况下,上述确定目标垂直超分模型,可以包括:在N个垂直超分模型中,确定与第一码率存在对应关系的垂直超分模型为目标垂直超分模型。Or, in the case that the above-mentioned video information includes the above-mentioned first code rate, the above-mentioned determining the target vertical super-score model may include: among the N vertical super-score models, determining a vertical super-score model that has a corresponding relationship with the first code rate is the vertical superresolution model for the target.
又或者,在上述视频信息包括目标视频的视频类型的情况下,上述步骤102,可以包括:Alternatively, in the case that the above-mentioned video information includes the video type of the target video, the above-mentioned step 102 may include:
获取目标视频的视频类型;Get the video type of the target video;
将N个垂直超分模型中,与目标视频的视频类型对应的垂直超分模型确定为目标垂直超分模型。Among the N vertical super-resolution models, the vertical super-score model corresponding to the video type of the target video is determined as the target vertical super-score model.
这里,电子设备可以根据目标视频的视频类型,在预设的N个垂直超分模型中确定相对应的目标垂直超分模型,从而选择的垂直超分模型更适合对在第一码率下播放的目标视频的视频帧的处理,进一步提升低码率下播放视频的图像质量。Here, the electronic device can determine the corresponding target vertical super-score model among the preset N vertical super-score models according to the video type of the target video, so that the selected vertical super-score model is more suitable for playing at the first bit rate The processing of the video frame of the target video further improves the image quality of the video played at a low bit rate.
本申请实施例中,上述目标视频的视频类型可以包括人物、动物、植物、建筑、风景和动画等中的任一项,且电子设备可以为每一视频类型预设与其相对应的垂直超分模型,即上述目标垂直超分模型为上述N个垂直超分模型中,与上述目标视频的视频类型存在预设的对应关系的垂直超分模型。In the embodiment of the present application, the video types of the above-mentioned target videos may include any one of characters, animals, plants, buildings, landscapes, animations, etc., and the electronic device may preset a corresponding vertical superscore for each video type The model, that is, the above-mentioned target vertical super-score model is a vertical super-score model that has a preset corresponding relationship with the video type of the above-mentioned target video among the above-mentioned N vertical super-score models.
例如,电子设备中预设有垂直超分模型3和垂直超分模型4,且垂直超分模型3与视频类型为人物存在对应关系,以及垂直超分模型4与视频类型风景存在对应关系。那么,若上述目标视频为拍摄人物的视频(即目标视频的视频类型为人物),则电子设备确定垂直超分模型3为上述目标垂直超分模型。For example, a vertical super-score model 3 and a vertical hyper-score model 4 are preset in the electronic device, and the vertical hyper-score model 3 has a corresponding relationship with the video type being a character, and the vertical hyper-score model 4 has a corresponding relationship with the video type landscape. Then, if the above-mentioned target video is a video of shooting a person (that is, the video type of the target video is a person), the electronic device determines that the vertical super-score model 3 is the above-mentioned target vertical super-score model.
需要说明的是,上述目标视频的视频信息可以是电子设备对目标视频进行检测并获取到的视频信息,也可以是电子设备接收到服务器发送的视频信息。It should be noted that the above video information of the target video may be video information obtained by the electronic device detecting the target video, or may be video information received by the electronic device and sent by the server.
具体地,在上述视频信息为上述视频类型的情况下,上述获取目标视频的视频类型,可以包括:Specifically, in the case that the above-mentioned video information is the above-mentioned video type, the above-mentioned acquisition of the video type of the target video may include:
在接收到目标视频的视频类型信息的情况下,获取视频类型信息所指示的视频类型,视频类型信息为服务器在传输目标视频的视频数据的情况下发送的信息;或者,In the case of receiving the video type information of the target video, obtain the video type indicated by the video type information, and the video type information is the information sent by the server when the video data of the target video is transmitted; or,
基于目标图像帧的图像确定目标视频的视频类型,目标图像帧为:在将播放目标视频的码率降低至第一码率之前的预设时长内,电子设备播放目标视频的图像帧。The video type of the target video is determined based on the image of the target image frame, where the target image frame is an image frame of the target video played by the electronic device within a preset time period before the bit rate of the target video is reduced to the first bit rate.
这里,电子设备可以根据服务器传输的视频类型信息确定目标视频的视频类型,从而可以提升视频处理的效率;也可以是根据目标视频的视频帧确定目标视频的视频类型,从而使获取目标视频的视频类型的方式灵活,且可以满足不同的需求。Here, the electronic device can determine the video type of the target video according to the video type information transmitted by the server, thereby improving the efficiency of video processing; it can also determine the video type of the target video according to the video frame of the target video, so that the video of the target video can be obtained. Types are flexible and can meet different needs.
其中,电子设备在播放目标视频的过程中,可以接收到服务器在传输目标视频的视频数据的过程中发送的视频类型信息,电子设备可以获取该视频类型信息所指示的视频类型。Wherein, in the process of playing the target video, the electronic device can receive the video type information sent by the server in the process of transmitting the video data of the target video, and the electronic device can obtain the video type indicated by the video type information.
另外,电子设备也可以是获取目标视频的部分图像帧,并根据部分图 像帧中的图像信息确定目标视频的视频类型。In addition, the electronic device may also acquire some image frames of the target video, and determine the video type of the target video according to the image information in the partial image frames.
例如,电子设备在播放目标视频的过程中,可以获取在减低播放目标视频的码率至第一码率之前的预设时长(如1s等)内的图像帧,并根据获取的图像帧确定目标视频的视频类型。具体地,若获取的100幅图像帧中存在60幅以上的图像帧中包括动物,则确定目标视频的视频类型为动物,等等。For example, in the process of playing the target video, the electronic device may acquire image frames within a preset time period (such as 1s, etc.) before reducing the bit rate of the target video to be played back to the first bit rate, and determine the target according to the acquired image frames. The video type of the video. Specifically, if there are more than 60 image frames including animals in the acquired 100 image frames, it is determined that the video type of the target video is animals, and so on.
当然,上述电子设备在N个垂直超分模型中确定与目标视频对应的目标垂直超分模型,并不局限于基于目标视频的视频信息确定相对应的目标垂直超分模型,还可以是基于其它规则确定目标视频的目标垂直超分模型。Of course, the above-mentioned electronic equipment determines the target vertical super-resolution model corresponding to the target video in the N vertical super-resolution models, and is not limited to determining the corresponding target vertical super-resolution model based on the video information of the target video. It can also be based on other The rules determine the target vertical superscore model for the target video.
具体地,上述在电子设备中预设的N个垂直超分模型中,确定目标视频的目标垂直超分模型之前,还包括:Specifically, in the above-mentioned N vertical super-resolution models preset in the electronic device, before determining the target vertical super-resolution model of the target video, the method further includes:
接收服务器发送的第一视频片段,第一视频片段为目标视频的部分视频片段。The first video clip sent by the server is received, where the first video clip is a partial video clip of the target video.
在电子设备中预设的N个垂直超分模型中,确定目标视频的目标垂直超分模型,可以包括:Among the N preset vertical super-resolution models in the electronic device, determining the target vertical super-resolution model of the target video may include:
在电子设备在第一码率下播放目标视频的情况下,获取第二视频片段,第二视频片段为与第一视频片段具有相同内容的视频片段,且第一视频片段的图像质量高于第二视频片段的图像质量;In the case where the electronic device plays the target video at the first bit rate, a second video clip is acquired, the second video clip is a video clip with the same content as the first video clip, and the image quality of the first video clip is higher than that of the first video clip The image quality of the two video clips;
基于第一视频片段和第二视频片段,在N个垂直超分模型中确定目标垂直超分模型。Based on the first video segment and the second video segment, a target vertical super-score model is determined among the N vertical super-score models.
这里,电子设备可以根据服务器发送的目标视频的第一视频片段,以及在第一码率下播放的与第一视频片段内容相同的第二视频片段,在N个垂直超分模型中确定上述目标垂直超分模型,从而使确定的用于处理在第一码率下播放的目标视频的目标垂直超分模型更合适,进一步提升在第一码率下播放目标视频的图像质量。Here, the electronic device may determine the above target in the N vertical super-score models according to the first video clip of the target video sent by the server, and the second video clip played at the first bit rate with the same content as the first video clip The vertical super-score model makes the determined target vertical super-score model for processing the target video played at the first bit rate more suitable, and further improves the image quality of the target video played at the first bit rate.
本申请实施例中,上述第一视频片段为在电子设备将播放目标视频的码率降低至第一码率之前,由服务器发送的目标视频的部分视频片段;而上述第二视频片段为电子设备在第一码率下播放的与第一视频片段具有相 同内容的视频片段,且第一视频片段的图像质量(包括分辨率等)高于第二视频片段的图像质量。In the embodiment of the present application, the above-mentioned first video clip is a partial video clip of the target video sent by the server before the electronic device reduces the bit rate of playing the target video to the first bit rate; and the above-mentioned second video clip is the electronic device. A video clip having the same content as the first video clip is played at the first bit rate, and the image quality (including resolution, etc.) of the first video clip is higher than that of the second video clip.
其中,上述获取第一视频片段,可以是在服务器接收到电子设备播放目标视频的请求的情况下,服务器可以向电子设备传输目标视频的视频数据,同时还获取目标视频的至少一个视频片段发送的数据发送至电子设备,该至少一个视频片段的图像质量为第一图像质量,在电子设备将播放目标视频的码率降低至第一码率的情况下,电子设备可以获取至少一个视频片段中播放时段位于当前时刻之后且与当前时刻最接近的视频片段作为第一视频片段。Wherein, the above-mentioned acquisition of the first video clip may be that when the server receives a request from the electronic device to play the target video, the server may transmit the video data of the target video to the electronic device, and also acquire at least one video clip of the target video for sending. The data is sent to the electronic device, and the image quality of the at least one video segment is the first image quality. In the case where the electronic device reduces the bit rate of the target video to be played to the first bit rate, the electronic device can obtain the at least one video segment to play The video segment whose time period is after the current time and closest to the current time is regarded as the first video segment.
例如,服务器在传输目标视频的视频数据的过程中,可以将目标视频的m个视频片段发送至电子设备,该m个视频片段中相邻的两个视频片段间隔第一预设时长(如5s或者10s等),以及每一视频片段的时长为第二预设时长(如0.5s或者1s等)且图像质量为第一图像质量(如1080P等),若电子设备在播放目标视频20s的情况下降低码率,则电子设备将m个视频片段中播放时段位于20s之后的视频片段确定为上述第一视频片段,其中,m为大于1的整数。For example, in the process of transmitting the video data of the target video, the server may send m video clips of the target video to the electronic device, and two adjacent video clips in the m video clips are separated by a first preset duration (eg, 5s). Or 10s, etc.), and the duration of each video clip is the second preset duration (such as 0.5s or 1s, etc.) and the image quality is the first image quality (such as 1080P, etc.), if the electronic device is playing the target video for 20s. If the bit rate is lowered, the electronic device determines a video segment whose playback period is after 20 s among the m video segments as the above-mentioned first video segment, where m is an integer greater than 1.
需要说明的是,当播放视频的码率发生降低时,降低后的第一码率与原有的视频的图像质量不再适应,为保证视频播放的流畅度,电子设备会将播放的视频的图像质量降低至与第一码率相适应的图像质量。It should be noted that when the bit rate of the played video is reduced, the reduced first bit rate is no longer compatible with the image quality of the original video. To ensure the smoothness of video playback, the electronic device will The image quality is reduced to an image quality suitable for the first bit rate.
例如,在电子设备以5Mb/s的码率播放清晰度为1080P(即分辨率1920×1080)的视频的情况下,若电子设备将播放视频的码率降低至2Mb/s,则电子设备在2Mb/s下播放视频时会将播放的视频的图像质量降低至清晰度FUUL D1(即分辨率720×576)。For example, in the case where an electronic device plays a video with a resolution of 1080P (that is, a resolution of 1920×1080) at a bit rate of 5Mb/s, if the electronic device reduces the bit rate of the played video to 2Mb/s, the electronic device will When the video is played at 2Mb/s, the image quality of the played video will be reduced to the definition FUUL D1 (that is, the resolution is 720×576).
而上述第一视频片段的第一图像质量高于第二视频片段的图像质量,即上述第一图像质量可以是在播放目标视频的码率降低至第一码率之前目标视频时的图像质量;或者,也可以是预设的图像质量,且该预设的图像质量至少高于在第一码率下播放的目标视频的图像质量。The first image quality of the first video clip is higher than the image quality of the second video clip, that is, the first image quality may be the image quality of the target video before the bit rate of the target video is reduced to the first bit rate; Alternatively, it may also be a preset image quality, and the preset image quality is at least higher than the image quality of the target video played at the first bit rate.
例如,电子设备在以5Mb/s的码率播放目标视频的过程中,可以接收到服务器发送的视频清晰度为1080P的m个视频片段,在电子设备将播放 目标视频的码率降低至2Mb/s的情况下,电子设备在m个视频片段中确定第一视频片段,即第一视频片段的清晰度为1080P,并获取与第一视频片段内容相同的第二视频片段,即第二视频片段的清晰度为FUUL D1。For example, in the process of playing the target video at a bit rate of 5Mb/s, the electronic device can receive m video clips with a video resolution of 1080P sent by the server, and the electronic device reduces the bit rate of the target video to 2Mb/s. In the case of s, the electronic device determines the first video clip among the m video clips, that is, the resolution of the first video clip is 1080P, and acquires a second video clip with the same content as the first video clip, that is, the second video clip The resolution is FUUL D1.
本申请实施例中,在电子设备获取到第一视频片段和第二视频片段之后,电子设备可以对第一视频片段和第二视频片段进行比较,并根据比较结果在N个垂直超分模型中确定目标垂直超分模型。In this embodiment of the present application, after the electronic device acquires the first video clip and the second video clip, the electronic device can compare the first video clip and the second video clip, and according to the comparison results, make a comparison between the N vertical super-score models. Determine the target vertical superresolution model.
具体地,上述基于第一视频片段和第二视频片段,在N个垂直超分模型中确定目标垂直超分模型,可以包括:Specifically, the above-mentioned determination of the target vertical super-score model among the N vertical super-score models based on the first video clip and the second video clip may include:
基于N个垂直超分模型分别对第二视频片段的图像帧进行处理,得到与N个垂直超分模型对应的N个待对比视频片段;The image frames of the second video segment are respectively processed based on the N vertical super-resolution models, and N video segments to be compared corresponding to the N vertical super-resolution models are obtained;
在N个待对比视频片段中,确定图像质量与第一视频片段的图像质量最接近的目标待比对视频片段;Among the N video clips to be compared, determine the target video clip to be compared whose image quality is the closest to the image quality of the first video clip;
将目标待比对视频片段对应的垂直超分模型确定为目标垂直超分模型。The vertical super-score model corresponding to the target video segment to be compared is determined as the target vertical super-score model.
这里,电子设备可以通过预设的N个垂直超分模型对第二视频片段进行处理,并将每一垂直超分模型处理后的第二视频片段(即待比对视频片段)与第一视频片段进行比较,将处理后的第二视频片段的图像质量与第一视频片段的图像质量最接近的垂直超分模型确定为上述目标垂直超分模型,从而可以选择对在低码率下播放的视频的图像质量处理效果最好垂直超分模型作为目标垂直超分模型,进一步提升在低码率下播放目标视频的图像质量。Here, the electronic device may process the second video segment by using the preset N vertical super-score models, and compare the second video segment (ie, the video segment to be compared) processed by each vertical super-score model with the first video segment. Fragments are compared, and the vertical super-score model whose image quality of the processed second video clip is closest to that of the first video clip is determined as the above-mentioned target vertical The image quality processing effect of the video is the best, and the vertical super-score model is used as the target vertical super-score model to further improve the image quality of the target video played at a low bit rate.
例如,假设电子设备中预设有垂直超分模型5、垂直超分模型6和垂直超分模型7,在第一视频片段的图像清晰度为1080P,第二视频片段的图像清晰度为Hafl D1的情况下,若垂直超分模型5对第二视频片段处理后的视频片段的图像清晰度为Full D1,垂直超分模型6对第二视频片段处理后的视频片段的图像清晰度为960P,垂直超分模型7对第二视频片段处理后的视频片段的图像清晰度为720P,则电子设备确定960P与1080P最接近,并将垂直超分模型6确定为上述目标垂直超分模型。For example, assuming that the vertical super-resolution model 5, the vertical super-resolution model 6 and the vertical super-resolution model 7 are preset in the electronic device, the image resolution of the first video clip is 1080P, and the image resolution of the second video clip is Hafl D1 Under the situation, if the image definition of the video clip processed by the vertical super-division model 5 to the second video clip is Full D1, and the image definition of the video clip processed by the vertical super-division model 6 to the second video clip is 960P, The image definition of the video clip processed by the vertical super-resolution model 7 on the second video clip is 720P, then the electronic device determines that 960P is the closest to 1080P, and determines the vertical super-resolution model 6 as the above-mentioned target vertical super-resolution model.
需要说明的是,由于垂直超分模型对视频的视频帧进行处理的过程为 本领域技术人员熟知,在此并不进行赘述。It should be noted that, since the process of processing the video frame of the video by the vertical super-segmentation model is well known to those skilled in the art, it will not be repeated here.
或者,上述基于第一视频片段和第二视频片段,在N个垂直超分模型中确定目标垂直超分模型,可以包括:Alternatively, the above-mentioned determination of the target vertical super-score model among the N vertical super-score models based on the first video clip and the second video clip may include:
获取第二视频片段的图像质量与第一视频片段的图像质量的差异度;obtaining the degree of difference between the image quality of the second video clip and the image quality of the first video clip;
在N个垂直超分模型中,将与获取到的差异度对应的垂直超分模型确定为目标垂直超分模型。Among the N vertical super-resolution models, the vertical super-resolution model corresponding to the obtained degree of difference is determined as the target vertical super-resolution model.
这里,电子设备也可以根据第二视频片段的图像质量与第一视频片段的图像质量的差异度,在N个垂直超分模型中确定与该差异度对应的目标垂直超分模型,从而使确定目标垂直超分模型的方式更简单,提升确定目标垂直超分模型的效率,进一步提升视频处理的效率。Here, the electronic device may also determine the target vertical super-score model corresponding to the degree of difference among the N vertical super-score models according to the degree of difference between the image quality of the second video segment and the image quality of the first video segment, so as to determine the The method of the target vertical super-resolution model is simpler, the efficiency of determining the target vertical super-resolution model is improved, and the efficiency of video processing is further improved.
需要说明的是,上述在N个垂直超分模型中,将与获取到的差异度对应的垂直超分模型确定为目标垂直超分模型,可以是电子设备中预设有差异度与垂直超分模型的对应关系,电子设备可以将与获取到的差异度存在对应关系的垂直超分模型确定为上述目标垂直超分模型。It should be noted that, in the above-mentioned N vertical super-resolution models, the vertical super-resolution model corresponding to the obtained degree of difference is determined as the target vertical super-resolution model, which may be preset in the electronic device. The corresponding relationship of the models, the electronic device may determine the vertical super-resolution model that has a corresponding relationship with the acquired difference degree as the above-mentioned target vertical super-resolution model.
例如,假设电子设备中预设有垂直超分模型8和垂直超分模型9,且预设垂直超分模型8对应1~2个预设等级(包括依次降低的1080P、960P、720P、Full D1、Half D1,等等)的图像质量的差异,而垂直超分模型9对应3~5个预设等级的图像质量的差异,若第一视频片段的清晰度为1080P,且第二视频片段的清晰度为720P,则第二视频片段的图像质量与第一视频片段的图像质量相差两个预设等级,则电子设备确定垂直超分模型8为上述目标垂直超分模型。For example, it is assumed that a vertical super-score model 8 and a vertical super-score model 9 are preset in the electronic device, and the preset vertical super-score model 8 corresponds to 1 to 2 preset levels (including 1080P, 960P, 720P, Full D1, which are decreased in sequence. , Half D1, etc.), and the vertical super-score model 9 corresponds to the difference in image quality of 3 to 5 preset levels, if the resolution of the first video clip is 1080P, and the second video clip has If the resolution is 720P, the image quality of the second video clip differs from the image quality of the first video clip by two preset levels, and the electronic device determines that the vertical super-score model 8 is the above-mentioned target vertical super-score model.
上述步骤102中,在电子设备确定上述目标垂直超分模型之后,电子设备可以通过目标垂直超分模型对在第一码率下播放的目标视频的视频帧进行处理,从而实现提升第一码率下播放的目标视频的图像质量。In the above-mentioned step 102, after the electronic device determines the above-mentioned target vertical super-resolution model, the electronic device can process the video frame of the target video played under the first code rate through the target vertical super-resolution model, thereby realizing the improvement of the first code rate. The image quality of the target video played below.
需要说明的是,电子设备在第一码率下播放目标视频的过程中,可能出现网络状态恢复的情况,例如,电子设备由信号差的区域移动至信号好的区域内。那么,电子设备可以将其码率调节至第二码率,该第二码率与恢复后的网络状态相适应。It should be noted that during the process of the electronic device playing the target video at the first bit rate, the network state may recover, for example, the electronic device moves from an area with poor signal to an area with good signal. Then, the electronic device can adjust its code rate to a second code rate, where the second code rate is adapted to the restored network state.
此时,上述步骤102之后,还可以包括:At this time, after the above step 102, it may further include:
在检测到电子设备的网络状态恢复正常的情况下,将电子设备播放目标视频的码率恢复至第二码率,并停止目标垂直超分模型对目标视频的图像帧进行处理。When it is detected that the network state of the electronic device returns to normal, the bit rate of the target video played by the electronic device is restored to the second bit rate, and the target vertical super-score model is stopped from processing the image frames of the target video.
这里,在电子设备的网络状态恢复正常且恢复其播放目标视频的码率至第二码率的情况下,电子设备播放的目标视频的图像质量可以随着码率的恢复可以实现恢复,此时电子设备及时停止目标垂直超分模型对在第二码率下播放的目标视频的图像帧的处理,可以节省因目标垂直超分模型进行不必要的图像处理而造成的电量的损耗,实现节省电子设备的电量。Here, when the network status of the electronic device is restored to normal and the bit rate of the target video played by the electronic device is restored to the second bit rate, the image quality of the target video played by the electronic device can be recovered along with the recovery of the bit rate. The electronic device stops the processing of the image frame of the target video played at the second bit rate by the target vertical super-resolution model in time, which can save the power consumption caused by the unnecessary image processing of the target vertical super-resolution model, and realize the saving of electronic equipment. The power of the device.
请参见图2,本申请实施例提供一种显示装置。如图2所示,该显示装置200包括:Referring to FIG. 2 , an embodiment of the present application provides a display device. As shown in FIG. 2, the display device 200 includes:
超分模型确定模块201,用于在检测到电子设备的网络状态异常,以及电子设备播放目标视频的码率降低至第一码率的情况下,在电子设备中预设的N个垂直超分模型中,确定目标视频的目标垂直超分模型,其中,N为大于1的整数;The super-score model determination module 201 is configured to, when it is detected that the network state of the electronic device is abnormal, and the bit rate of the target video played by the electronic device is reduced to the first bit rate, the preset N vertical super-scores in the electronic device In the model, the target vertical super-score model of the target video is determined, wherein N is an integer greater than 1;
显示模块202,用于在以第一码率传输目标视频的图像帧情况下,显示目标图像帧。The display module 202 is configured to display the target image frame when the image frame of the target video is transmitted at the first bit rate.
这里,显示装置200可以通过选取的垂直超分模型对在低码率下播放的视频的图像帧进行处理,提升低码率下播放的视频的图像质量,进而提升电子设备在出现网络状况异常而以低码率播放视频时的图像质量;另外,由于选择的垂直超分模型与播放的视频相对应,从而使选择的垂直超分模型更适于对播放的视频的处理,从而可以提升处理效率以及降低处理过程中的能耗。Here, the display apparatus 200 can process the image frame of the video played under the low bit rate by using the selected vertical super-resolution model, so as to improve the image quality of the video played under the low bit rate, and further improve the electronic equipment when abnormal network conditions occur. The image quality when the video is played at a low bit rate; in addition, since the selected vertical super-resolution model corresponds to the played video, the selected vertical super-resolution model is more suitable for the processing of the played video, which can improve the processing efficiency As well as reducing energy consumption during processing.
可选的,超分模型确定模块201,包括:Optionally, the super-score model determination module 201 includes:
视频类型获取单元,用于获取目标视频的视频类型;a video type acquisition unit, used to acquire the video type of the target video;
第一超分模型确定单元,用于将N个垂直超分模型中,与目标视频的视频类型对应的垂直超分模型确定为目标垂直超分模型。The first super-score model determination unit is configured to determine, among the N vertical super-score models, the vertical super-score model corresponding to the video type of the target video as the target vertical super-score model.
这里,显示装置200可以根据目标视频的视频类型,在预设的N个垂直超分模型中确定相对应的目标垂直超分模型,从而选择的垂直超分模型更适合对在第一码率下播放的目标视频的视频帧的处理,进一步提升低码 率下播放视频的图像质量。Here, the display device 200 may determine a corresponding target vertical super-score model among the preset N vertical super-score models according to the video type of the target video, so that the selected vertical super-score model is more suitable for the first bit rate The processing of the video frame of the target video to be played further improves the image quality of the video played at a low bit rate.
可选的,视频类型获取单元,具体用于:Optionally, the video type acquisition unit, which is specifically used for:
在接收到目标视频的视频类型信息的情况下,获取视频类型信息所指示的视频类型,视频类型信息为服务器在传输目标视频的视频数据的情况下发送的信息;或者,In the case of receiving the video type information of the target video, obtain the video type indicated by the video type information, and the video type information is the information sent by the server when the video data of the target video is transmitted; or,
基于目标图像帧的图像确定目标视频的视频类型,目标图像帧为:目标视频的部分图像帧。The video type of the target video is determined based on the image of the target image frame, and the target image frame is: a partial image frame of the target video.
这里,显示装置200可以根据服务器传输的视频类型信息确定目标视频的视频类型,从而可以提升视频处理的效率;也可以是根据目标视频的视频帧确定目标视频的视频类型,从而使获取目标视频的视频类型的方式灵活,且可以满足不同的需求。Here, the display device 200 can determine the video type of the target video according to the video type information transmitted by the server, thereby improving the efficiency of video processing; it can also determine the video type of the target video according to the video frame of the target video, so as to obtain the video type of the target video. The video type is flexible and can meet different needs.
可选的,装置200,还包括:Optionally, the apparatus 200 further includes:
视频片段接收模块,用于接收服务器发送的第一视频片段,其中,第一视频片段为目标视频的部分视频片段。The video clip receiving module is configured to receive the first video clip sent by the server, wherein the first video clip is a partial video clip of the target video.
超分模型确定模块201,可以包括:The super-score model determination module 201 may include:
视频片段获取单元,用于在电子设备在第一码率下播放目标视频的情况下,获取第二视频片段,第二视频片段为与第一视频片段具有相同内容的视频片段,且第一视频片段的图像质量高于第二视频片段的图像质量;A video clip obtaining unit, configured to obtain a second video clip when the electronic device plays the target video at the first bit rate, where the second video clip is a video clip with the same content as the first video clip, and the first video clip has the same content as the first video clip. The image quality of the clip is higher than the image quality of the second video clip;
第二超分模型确定单元,用于基于第一视频片段和第二视频片段,在N个垂直超分模型中确定目标垂直超分模型。The second super-score model determining unit is configured to determine a target vertical super-score model among the N vertical super-score models based on the first video segment and the second video segment.
这里,显示装置200可以根据服务器发送的目标视频的第一视频片段,以及在第一码率下播放的与第一视频片段内容相同的第二视频片段,在N个垂直超分模型中确定上述目标垂直超分模型,从而使确定的用于处理在第一码率下播放的目标视频的目标垂直超分模型更合适,进一步提升在第一码率下播放目标视频的图像质量。Here, the display apparatus 200 may determine the above-mentioned among the N vertical superscore models according to the first video segment of the target video sent by the server and the second video segment played at the first bit rate with the same content as the first video segment The target vertical super-score model makes the determined target vertical super-score model for processing the target video played at the first bit rate more suitable, and further improves the image quality of the target video played at the first bit rate.
可选的,第二超分模型确定单元,包括:Optionally, the second super-score model determination unit includes:
视频片段处理子单元,用于基于N个垂直超分模型分别对第二视频片段的图像帧进行处理,得到与N个垂直超分模型对应的N个待对比视频片段;a video segment processing subunit, configured to process the image frames of the second video segment based on the N vertical super-resolution models, respectively, to obtain N video segments to be compared corresponding to the N vertical super-resolution models;
比对子单元,用于在N个待对比视频片段中,确定图像质量与第一视频片段的图像质量最接近的目标待比对视频片段;A comparison subunit, used to determine, among the N video clips to be compared, a target video clip to be compared whose image quality is the closest to the image quality of the first video clip;
第一超分模型确定子单元,用于将目标待比对视频片段对应的垂直超分模型确定为目标垂直超分模型。The first super-resolution model determination subunit is configured to determine the vertical super-resolution model corresponding to the target video segment to be compared as the target vertical super-resolution model.
这里,显示装置200可以通过预设的N个垂直超分模型对第二视频片段进行处理,并将每一垂直超分模型处理后的第二视频片段(即待比对视频片段)与第二视频片段进行比较,将处理后的第二视频片段的图像质量与第一视频片段的图像质量最接近的垂直超分模型确定为上述目标垂直超分模型,从而可以选择对在低码率下播放的视频的图像质量处理效果最好垂直超分模型作为目标垂直超分模型,进一步提升在低码率下播放目标视频的图像质量。Here, the display device 200 may process the second video segment by using the preset N vertical super-score models, and compare the second video segment processed by each vertical super-score model (ie, the video segment to be compared) with the second video segment. The video clips are compared, and the vertical super-score model whose image quality of the processed second video clip is the closest to the image quality of the first video clip is determined as the above-mentioned target vertical super-score model, so that it is possible to choose to play at a low bit rate. The image quality processing effect of the video is the best, and the vertical super-score model is used as the target vertical super-score model, which further improves the image quality of the target video played at a low bit rate.
可选的,第二超分模型确定单元,包括:Optionally, the second super-score model determination unit includes:
差异度获取子单元,用于获取第二视频片段的图像质量与第一视频片段的图像质量的差异度;a degree of difference obtaining subunit, used to obtain the degree of difference between the image quality of the second video clip and the image quality of the first video clip;
第二超分模型确定子单元,用于在N个垂直超分模型中,将与获取到的差异度对应的垂直超分模型确定为目标垂直超分模型。The second super-resolution model determination subunit is configured to determine, among the N vertical super-resolution models, the vertical super-resolution model corresponding to the acquired degree of difference as the target vertical super-resolution model.
这里,显示装置200可以根据第二视频片段的图像质量与第一视频片段的图像质量的差异度,在N个垂直超分模型中确定与该差异度对应的目标垂直超分模型,从而使确定目标垂直超分模型的方式更简单,提升确定目标垂直超分模型的效率,进一步提升视频处理的效率。Here, the display apparatus 200 may, according to the degree of difference between the image quality of the second video segment and the image quality of the first video segment, determine the target vertical super-score model corresponding to the degree of difference among the N vertical super-score models, so that the determination The method of the target vertical super-resolution model is simpler, the efficiency of determining the target vertical super-resolution model is improved, and the efficiency of video processing is further improved.
可选的,装置200,还包括:Optionally, the apparatus 200 further includes:
码率恢复模块,用于在检测到电子设备的网络状态恢复正常的情况下,将电子设备播放目标视频的码率恢复至第二码率,并停止目标垂直超分模型对目标视频的图像帧进行处理。The bit rate recovery module is used to restore the bit rate of the target video played by the electronic device to the second bit rate when it is detected that the network state of the electronic device returns to normal, and stop the target vertical super-resolution model from performing the image frame of the target video. to be processed.
这里,显示装置200可以及时停止目标垂直超分模型对在第二码率下播放的目标视频的图像帧的处理,可以节省因目标垂直超分模型进行不必要的图像处理而造成的电量的损耗,实现节省电子设备的电量。Here, the display device 200 can stop the processing of the image frame of the target video played at the second bit rate by the target vertical super-resolution model in time, which can save the power consumption caused by unnecessary image processing by the target vertical super-resolution model. , to save the power of electronic equipment.
本申请实施例中的显示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设 备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The display device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的显示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The display device in this embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的显示装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。The display device provided by the embodiment of the present application can implement each process implemented by the method embodiment of FIG. 1 , and to avoid repetition, details are not described here.
可选的,如图3所示,本申请实施例还提供一种电子设备300,包括处理器301,存储器302,存储在存储器302上并可在处理器301上运行的程序或指令,该程序或指令被处理器301执行时实现上述显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 3 , an embodiment of the present application further provides an electronic device 300 , including a processor 301 , a memory 302 , a program or instruction stored in the memory 302 and executable on the processor 301 , the program Or, when the instruction is executed by the processor 301, each process of the above-mentioned display method embodiment can be implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图4为本申请提供的另一电子设备的实施例的硬件结构示意图。FIG. 4 is a schematic diagram of a hardware structure of an embodiment of another electronic device provided by the present application.
该电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、以及处理器410等部件。The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, etc. part.
本领域技术人员可以理解,电子设备400还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图4中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 400 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so that the power management system can manage charging, discharging, and power management. consumption management and other functions. The structure of the electronic device shown in FIG. 4 does not constitute a limitation to the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
其中,处理器410,用于:The processor 410 is used for:
在检测到电子设备的网络状态异常,以及电子设备播放目标视频的码率降低至第一码率的情况下,在电子设备中预设的N个垂直超分模型中,确定目标视频的目标垂直超分模型,其中,N为大于1的整数;When it is detected that the network status of the electronic device is abnormal, and the bit rate of the target video played by the electronic device is reduced to the first bit rate, determine the target vertical rate of the target video in the N vertical super-score models preset in the electronic device A super-score model, where N is an integer greater than 1;
显示单元406,用于: Display unit 406 for:
在以第一码率传输目标视频的图像帧情况下,显示目标图像帧,目标图像帧为基于目标垂直超分模型对目标视频的图像帧进行处理后的图像帧。In the case where the image frame of the target video is transmitted at the first bit rate, the target image frame is displayed, and the target image frame is an image frame obtained by processing the image frame of the target video based on the target vertical superdivision model.
这里,电子设备400可以通过选取的垂直超分模型对在低码率下播放的视频的图像帧进行处理,提升低码率下播放的视频的图像质量,进而提升电子设备在出现网络状况异常而以低码率播放视频时的图像质量;另外,由于选择的垂直超分模型与播放的视频相对应,从而使选择的垂直超分模型更适于对播放的视频的处理,从而可以提升处理效率以及降低处理过程中的能耗。Here, the electronic device 400 can process the image frame of the video played under the low bit rate by using the selected vertical super-resolution model, so as to improve the image quality of the video played under the low bit rate, thereby improving the electronic device when abnormal network conditions occur. The image quality when the video is played at a low bit rate; in addition, since the selected vertical super-resolution model corresponds to the played video, the selected vertical super-resolution model is more suitable for the processing of the played video, which can improve the processing efficiency As well as reducing energy consumption during processing.
可选的,处理器410,还用于:Optionally, the processor 410 is further configured to:
获取目标视频的视频类型;Get the video type of the target video;
将N个垂直超分模型中,与目标视频的视频类型对应的垂直超分模型确定为目标垂直超分模型。Among the N vertical super-resolution models, the vertical super-score model corresponding to the video type of the target video is determined as the target vertical super-score model.
这里,电子设备400可以根据目标视频的视频类型,在预设的N个垂直超分模型中确定相对应的目标垂直超分模型,从而选择的垂直超分模型更适合对在第一码率下播放的目标视频的视频帧的处理,进一步提升低码率下播放视频的图像质量。Here, the electronic device 400 can determine a corresponding target vertical super-score model among the preset N vertical super-score models according to the video type of the target video, so that the selected vertical super-score model is more suitable for the first bit rate The processing of the video frame of the target video to be played further improves the image quality of the video played at a low bit rate.
可选的,处理器410,还用于:Optionally, the processor 410 is further configured to:
在接收到目标视频的视频类型信息的情况下,获取视频类型信息所指示的视频类型,其中,视频类型信息为服务器在传输目标视频的视频数据的情况下发送的信息;或者,In the case of receiving the video type information of the target video, obtain the video type indicated by the video type information, wherein the video type information is the information sent by the server when the video data of the target video is transmitted; or,
基于目标图像帧的图像确定目标视频的视频类型,其中,目标图像帧为:目标视频的部分图像帧。The video type of the target video is determined based on the image of the target image frame, where the target image frame is: a partial image frame of the target video.
这里,电子设备400可以根据服务器传输的视频类型信息确定目标视频的视频类型,从而可以提升视频处理的效率;也可以是根据目标视频的 视频帧确定目标视频的视频类型,从而使获取目标视频的视频类型的方式灵活,且可以满足不同的需求。Here, the electronic device 400 can determine the video type of the target video according to the video type information transmitted by the server, so that the efficiency of video processing can be improved; it can also determine the video type of the target video according to the video frame of the target video, so as to obtain the video type of the target video. The video type is flexible and can meet different needs.
可选的,处理器410,还用于:Optionally, the processor 410 is further configured to:
接收服务器发送的第一视频片段,第一视频片段为目标视频的部分视频片段;receiving the first video clip sent by the server, where the first video clip is a partial video clip of the target video;
在电子设备在第一码率下播放目标视频的情况下,获取第二视频片段,第二视频片段为与第一视频片段具有相同内容的视频片段,且第一视频片段的图像质量高于第二视频片段的图像质量;In the case where the electronic device plays the target video at the first bit rate, a second video clip is acquired, the second video clip is a video clip with the same content as the first video clip, and the image quality of the first video clip is higher than that of the first video clip The image quality of the two video clips;
基于第一视频片段和第二视频片段,在N个垂直超分模型中确定目标垂直超分模型。Based on the first video segment and the second video segment, a target vertical super-score model is determined among the N vertical super-score models.
这里,电子设备400可以根据服务器发送的目标视频的第一视频片段,以及在第一码率下播放的与第一视频片段内容相同的第二视频片段,在N个垂直超分模型中确定上述目标垂直超分模型,从而使确定的用于处理在第一码率下播放的目标视频的目标垂直超分模型更合适,进一步提升在第一码率下播放目标视频的图像质量。Here, the electronic device 400 may determine the above-mentioned among the N vertical super-score models according to the first video segment of the target video sent by the server and the second video segment played at the first bit rate with the same content as the first video segment The target vertical super-score model makes the determined target vertical super-score model for processing the target video played at the first bit rate more suitable, and further improves the image quality of the target video played at the first bit rate.
可选的,处理器410,还用于:Optionally, the processor 410 is further configured to:
基于N个垂直超分模型分别对第二视频片段的图像帧进行处理,得到与N个垂直超分模型对应的N个待对比视频片段;The image frames of the second video segment are respectively processed based on the N vertical super-resolution models, and N video segments to be compared corresponding to the N vertical super-resolution models are obtained;
在N个待对比视频片段中,确定图像质量与第一视频片段的图像质量最接近的目标待比对视频片段;Among the N video clips to be compared, determine the target video clip to be compared whose image quality is the closest to the image quality of the first video clip;
将目标待比对视频片段对应的垂直超分模型确定为目标垂直超分模型。The vertical super-score model corresponding to the target video segment to be compared is determined as the target vertical super-score model.
这里,电子设备400可以通过预设的N个垂直超分模型对第二视频片段进行处理,并将每一垂直超分模型处理后的第二视频片段(即待比对视频片段)与第二视频片段进行比较,将处理后的第二视频片段的图像质量与第一视频片段的图像质量最接近的垂直超分模型确定为上述目标垂直超分模型,从而可以选择对在低码率下播放的视频的图像质量处理效果最好垂直超分模型作为目标垂直超分模型,进一步提升在低码率下播放目标视频的图像质量。Here, the electronic device 400 may process the second video segment by using the preset N vertical super-score models, and compare the second video segment processed by each vertical super-score model (ie, the video segment to be compared) with the second video segment. The video clips are compared, and the vertical super-score model whose image quality of the processed second video clip is the closest to the image quality of the first video clip is determined as the above-mentioned target vertical super-score model, so that it is possible to choose to play at a low bit rate. The image quality processing effect of the video is the best, and the vertical super-score model is used as the target vertical super-score model, which further improves the image quality of the target video played at a low bit rate.
可选的,处理器410,还用于:Optionally, the processor 410 is further configured to:
获取第二视频片段的图像质量与第一视频片段的图像质量的差异度;obtaining the degree of difference between the image quality of the second video clip and the image quality of the first video clip;
在N个垂直超分模型中,将与获取到的差异度对应的垂直超分模型确定为目标垂直超分模型。Among the N vertical super-resolution models, the vertical super-resolution model corresponding to the obtained degree of difference is determined as the target vertical super-resolution model.
这里,电子设备400可以根据第二视频片段的图像质量与第一视频片段的图像质量的差异度,在N个垂直超分模型中确定与该差异度对应的目标垂直超分模型,从而使确定目标垂直超分模型的方式更简单,提升确定目标垂直超分模型的效率,进一步提升视频处理的效率。Here, the electronic device 400 may, according to the degree of difference between the image quality of the second video segment and the image quality of the first video segment, determine the target vertical super-score model corresponding to the degree of difference among the N vertical super-score models, so that the determination The method of the target vertical super-resolution model is simpler, the efficiency of determining the target vertical super-resolution model is improved, and the efficiency of video processing is further improved.
可选的,处理器410,还用于:Optionally, the processor 410 is further configured to:
在检测到电子设备的网络状态恢复正常的情况下,将电子设备播放目标视频的码率恢复至第二码率,并停止目标垂直超分模型对目标视频的图像帧进行处理。When it is detected that the network state of the electronic device returns to normal, the bit rate of the target video played by the electronic device is restored to the second bit rate, and the target vertical super-score model is stopped from processing the image frames of the target video.
这里,电子设备400可以及时停止目标垂直超分模型对在第二码率下播放的目标视频的图像帧的处理,可以节省因目标垂直超分模型进行不必要的图像处理而造成的电量的损耗,实现节省电子设备的电量。Here, the electronic device 400 can stop the processing of the image frame of the target video played at the second bit rate by the target vertical super-resolution model in time, which can save the power consumption caused by unnecessary image processing by the target vertical super-resolution model. , to save the power of electronic equipment.
应理解的是,本申请实施例中,输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元406可包括显示面板4061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板4061。用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器409可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。It should be understood that, in this embodiment of the present application, the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042. Such as camera) to obtain still pictures or video image data for processing. The display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072 . The touch panel 4071 is also called a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again. Memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 410.
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned display method embodiment can be realized, and the same technical effect can be achieved , in order to avoid repetition, it will not be repeated here.
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等非暂态计算机可读存储介质。The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or non-transitory computer-readable storage such as optical disks medium.
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction, implement each process of the above display method embodiment, and can achieve the same technology The effect, in order to avoid repetition, is not repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是 手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (19)

  1. 一种显示方法,包括:A display method including:
    在检测到电子设备的网络状态异常,以及所述电子设备播放目标视频的码率降低至第一码率的情况下,在所述电子设备中预设的N个垂直超分模型中,确定所述目标视频的目标垂直超分模型,其中,所述N为大于1的整数;When it is detected that the network state of the electronic device is abnormal, and the bit rate of the target video played by the electronic device is reduced to the first bit rate, in the N preset vertical super-score models in the electronic device, determine the The target vertical super-score model of the target video, wherein the N is an integer greater than 1;
    在以所述第一码率传输所述目标视频的图像帧情况下,显示目标图像帧,所述目标图像帧为基于所述目标垂直超分模型对所述目标视频的图像帧进行处理后的图像帧。In the case of transmitting the image frame of the target video at the first bit rate, displaying the target image frame, where the target image frame is an image frame of the target video processed based on the target vertical super-resolution model image frame.
  2. 根据权利要求1所述的方法,其中,所述在所述电子设备中预设的N个垂直超分模型中,确定所述目标视频的目标垂直超分模型,包括:The method according to claim 1, wherein, in the N preset vertical super-resolution models in the electronic device, determining the target vertical super-resolution model of the target video comprises:
    获取所述目标视频的视频类型;Obtain the video type of the target video;
    将所述N个垂直超分模型中,与所述目标视频的视频类型对应的垂直超分模型确定为所述目标垂直超分模型。Among the N vertical super-resolution models, the vertical super-score model corresponding to the video type of the target video is determined as the target vertical super-score model.
  3. 根据权利要求2所述的方法,其中,所述获取所述目标视频的视频类型,包括:The method according to claim 2, wherein the acquiring the video type of the target video comprises:
    在接收到所述目标视频的视频类型信息的情况下,获取所述视频类型信息所指示的视频类型,所述视频类型信息为服务器在传输所述目标视频的视频数据的情况下发送的信息;或者,In the case of receiving the video type information of the target video, obtain the video type indicated by the video type information, where the video type information is the information sent by the server when the video data of the target video is transmitted; or,
    基于所述目标视频的部分图像帧的图像,确定所述目标视频的视频类型。A video type of the target video is determined based on images of partial image frames of the target video.
  4. 根据权利要求1所述的方法,其中,所述在所述电子设备中预设的N个垂直超分模型中,确定所述目标视频的目标垂直超分模型之前,还包括:The method according to claim 1, wherein, before determining the target vertical super-score model of the target video among the N preset vertical super-score models in the electronic device, the method further comprises:
    接收服务器发送的第一视频片段,所述第一视频片段为所述目标视频的部分视频片段;receiving a first video clip sent by a server, where the first video clip is a partial video clip of the target video;
    所述在所述电子设备中预设的N个垂直超分模型中,确定所述目标视频的目标垂直超分模型,包括:Described in the preset N vertical super-resolution models in the electronic device, determining the target vertical super-resolution model of the target video, including:
    在所述电子设备在第一码率下播放所述目标视频的情况下,获取第二视频片段,其中,所述第二视频片段为与所述第一视频片段具有相同内容的视频片段,且所述第一视频片段的图像质量高于所述第二视频片段的图像质量;In the case where the electronic device plays the target video at a first bit rate, acquire a second video clip, where the second video clip is a video clip having the same content as the first video clip, and The image quality of the first video clip is higher than the image quality of the second video clip;
    基于所述第一视频片段和所述第二视频片段,在所述N个垂直超分模型中确定目标垂直超分模型。Based on the first video segment and the second video segment, a target vertical super-score model is determined among the N vertical super-score models.
  5. 根据权利要求4所述的方法,其中,所述基于所述第一视频片段和所述第二视频片段,在所述N个垂直超分模型中确定目标垂直超分模型,包括:The method according to claim 4, wherein the determining a target vertical super-score model among the N vertical super-score models based on the first video segment and the second video segment comprises:
    基于所述N个垂直超分模型分别对所述第二视频片段的图像帧进行处理,得到与所述N个垂直超分模型对应的N个待对比视频片段;respectively process the image frames of the second video segment based on the N vertical super-resolution models, to obtain N video segments to be compared corresponding to the N vertical super-resolution models;
    在所述N个待对比视频片段中,确定图像质量与所述第一视频片段的图像质量最接近的目标待比对视频片段;Among the N video clips to be compared, determining a target video clip to be compared with the image quality closest to the image quality of the first video clip;
    将所述目标待比对视频片段对应的垂直超分模型确定为目标垂直超分模型。The vertical super-score model corresponding to the target to-be-compared video segment is determined as the target vertical super-score model.
  6. 根据权利要求4所述的方法,其中,所述基于所述第一视频片段和所述第二视频片段,在所述N个垂直超分模型中确定目标垂直超分模型,包括:The method according to claim 4, wherein the determining a target vertical super-score model among the N vertical super-score models based on the first video segment and the second video segment comprises:
    获取所述第二视频片段的图像质量与所述第一视频片段的图像质量的差异度;obtaining the degree of difference between the image quality of the second video clip and the image quality of the first video clip;
    在所述N个垂直超分模型中,将与获取到的差异度对应的垂直超分模型确定为所述目标垂直超分模型。Among the N vertical super-score models, the vertical super-score model corresponding to the acquired degree of difference is determined as the target vertical over-score model.
  7. 根据权利要求1所述的方法,其中,所述在以所述第一码率传输所述目标视频的图像帧情况下,显示目标图像帧之后,还包括:The method according to claim 1, wherein, in the case of transmitting the image frame of the target video at the first bit rate, after displaying the target image frame, the method further comprises:
    在检测到所述电子设备的网络状态恢复正常的情况下,将所述电子设备播放目标视频的码率恢复至第二码率,并停止所述目标垂直超分模型对所述目标视频的图像帧进行处理。In the case of detecting that the network state of the electronic device returns to normal, restore the bit rate of the target video played by the electronic device to the second bit rate, and stop the target vertical super-score model to image the target video frame for processing.
  8. 一种显示装置,包括:A display device, comprising:
    超分模型确定模块,用于在检测到电子设备的网络状态异常,以及所 述电子设备播放目标视频的码率降低至第一码率的情况下,在所述电子设备中预设的N个垂直超分模型中,确定所述目标视频的目标垂直超分模型,其中,所述N为大于1的整数;The super-score model determination module is configured to, when it is detected that the network state of the electronic device is abnormal, and the bit rate of the target video played by the electronic device is reduced to the first bit rate, N presets in the electronic device In the vertical super-resolution model, the target vertical super-resolution model of the target video is determined, wherein the N is an integer greater than 1;
    显示模块,用于在以所述第一码率传输所述目标视频的图像帧情况下,显示目标图像帧。A display module, configured to display the target image frame in the case of transmitting the image frame of the target video at the first bit rate.
  9. 根据权利要求8所述的装置,其中,所述超分模型确定模块,包括:The apparatus according to claim 8, wherein the super-resolution model determination module comprises:
    视频类型获取单元,用于获取所述目标视频的视频类型;a video type acquisition unit, used for acquiring the video type of the target video;
    第一超分模型确定单元,用于将所述N个垂直超分模型中,与所述目标视频的视频类型对应的垂直超分模型确定为所述目标垂直超分模型。The first super-score model determining unit is configured to determine, among the N vertical super-score models, the vertical super-score model corresponding to the video type of the target video as the target vertical super-score model.
  10. 根据权利要求9所述的装置,其中,所述视频类型获取单元,具体用于:The device according to claim 9, wherein the video type acquiring unit is specifically configured to:
    在接收到所述目标视频的视频类型信息的情况下,获取所述视频类型信息所指示的视频类型,其中,所述视频类型信息为服务器在传输所述目标视频的视频数据的情况下发送的信息;或者,In the case of receiving the video type information of the target video, obtain the video type indicated by the video type information, where the video type information is sent by the server when the video data of the target video is transmitted information; or,
    基于目标图像帧的图像确定所述目标视频的视频类型,其中,所述目标图像帧为:所述目标视频的部分图像帧。The video type of the target video is determined based on the image of the target image frame, wherein the target image frame is: a partial image frame of the target video.
  11. 根据权利要求8所述的装置,还包括:The apparatus of claim 8, further comprising:
    视频片段接收模块,用于接收服务器发送的第一视频片段,其中,所述第一视频片段为所述目标视频的部分视频片段;a video clip receiving module, configured to receive a first video clip sent by a server, wherein the first video clip is a partial video clip of the target video;
    所述超分模型确定模块,包括:The super-score model determination module includes:
    视频片段获取单元,用于在所述电子设备在第一码率下播放所述目标视频的情况下,获取第二视频片段,其中,所述第二视频片段为与所述第一视频片段具有相同内容的视频片段,且所述第一视频片段的图像质量高于所述第二视频片段的图像质量;a video clip obtaining unit, configured to obtain a second video clip when the electronic device plays the target video at a first bit rate, wherein the second video clip is the same as the first video clip video clips of the same content, and the image quality of the first video clip is higher than that of the second video clip;
    第二超分模型确定单元,用于基于所述第一视频片段和所述第二视频片段,在所述N个垂直超分模型中确定目标垂直超分模型。A second super-score model determining unit, configured to determine a target vertical super-score model among the N vertical super-score models based on the first video segment and the second video segment.
  12. 根据权利要求11所述的装置,其中,所述第二超分模型确定单元,包括:The apparatus according to claim 11, wherein the second super-score model determining unit comprises:
    视频片段处理子单元,用于基于所述N个垂直超分模型分别对所述第二视频片段的图像帧进行处理,得到与所述N个垂直超分模型对应的N个待对比视频片段;a video segment processing subunit, configured to process image frames of the second video segment based on the N vertical super-resolution models, respectively, to obtain N video segments to be compared corresponding to the N vertical super-resolution models;
    比对子单元,用于在所述N个待对比视频片段中,确定图像质量与所述第一视频片段的图像质量最接近的目标待比对视频片段;a comparison subunit, configured to determine, among the N video clips to be compared, a target video clip to be compared whose image quality is closest to that of the first video clip;
    第一超分模型确定子单元,用于将所述目标待比对视频片段对应的垂直超分模型确定为目标垂直超分模型。The first super-resolution model determination subunit is configured to determine the vertical super-resolution model corresponding to the target video segment to be compared as the target vertical super-resolution model.
  13. 根据权利要求11所述的装置,其中,所述第二超分模型确定单元,包括:The apparatus according to claim 11, wherein the second super-score model determining unit comprises:
    差异度获取子单元,用于获取所述第二视频片段的图像质量与所述第一视频片段的图像质量的差异度;a degree of difference acquiring subunit, configured to acquire the degree of difference between the image quality of the second video clip and the image quality of the first video clip;
    第二超分模型确定子单元,用于在所述N个垂直超分模型中,将与获取到的差异度对应的垂直超分模型确定为所述目标垂直超分模型。The second super-score model determination subunit is configured to, among the N vertical super-score models, determine the vertical over-score model corresponding to the acquired degree of difference as the target vertical over-score model.
  14. 根据权利要求8所述的装置,还包括:The apparatus of claim 8, further comprising:
    码率恢复模块,用于在检测到所述电子设备的网络状态恢复正常的情况下,将所述电子设备播放目标视频的码率恢复至第二码率,并停止所述目标垂直超分模型对所述目标视频的图像帧进行处理。A bit rate recovery module, configured to restore the bit rate of the target video played by the electronic device to a second bit rate when it is detected that the network state of the electronic device returns to normal, and stop the target vertical super-score model The image frames of the target video are processed.
  15. 一种电子设备,所述电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至7中任一项所述的显示方法的步骤。An electronic device comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve the The steps of the display method described in any one of claims 1 to 7.
  16. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至7中任一项所述的显示方法的步骤。A readable storage medium on which programs or instructions are stored, and when the programs or instructions are executed by a processor, the steps of the display method according to any one of claims 1 to 7 are implemented.
  17. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至7中任一项所述的显示方法的步骤。A chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction to realize the display according to any one of claims 1 to 7 steps of the method.
  18. 一种计算机程序产品,包括有形地包含在计算机可读介质上的计算机程序,所述计算机程序包含用于执行权利要求1至7中任一项所述的方法的程序代码。A computer program product comprising a computer program tangibly embodied on a computer readable medium, the computer program containing program code for performing the method of any one of claims 1 to 7.
  19. 一种电子设备,被配置成用于执行如权利要求1至7中任一项所述的方法的步骤。An electronic device configured to perform the steps of the method of any one of claims 1 to 7.
PCT/CN2022/073465 2021-01-27 2022-01-24 Display method and apparatus, and electronic device WO2022161310A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110113902.6A CN112910875B (en) 2021-01-27 2021-01-27 Display method and device
CN202110113902.6 2021-01-27

Publications (1)

Publication Number Publication Date
WO2022161310A1 true WO2022161310A1 (en) 2022-08-04

Family

ID=76119195

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/073465 WO2022161310A1 (en) 2021-01-27 2022-01-24 Display method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN112910875B (en)
WO (1) WO2022161310A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910875B (en) * 2021-01-27 2023-06-30 维沃移动通信有限公司 Display method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190045248A1 (en) * 2018-05-31 2019-02-07 Intel Corporation Super resolution identifier mechanism
CN109688465A (en) * 2018-11-27 2019-04-26 Oppo广东移动通信有限公司 Video source modeling control method, device and electronic equipment
KR20190117416A (en) * 2019-09-26 2019-10-16 엘지전자 주식회사 Method and apparatus for enhancing video frame resolution
CN110958469A (en) * 2019-12-13 2020-04-03 联想(北京)有限公司 Video processing method and device, electronic equipment and storage medium
CN112910875A (en) * 2021-01-27 2021-06-04 维沃移动通信有限公司 Display method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4444354B2 (en) * 2008-08-04 2010-03-31 株式会社東芝 Image processing apparatus and image processing method
JP6689656B2 (en) * 2016-04-18 2020-04-28 ルネサスエレクトロニクス株式会社 Image processing system, image processing method, and image transmitting apparatus
CN109862370A (en) * 2017-11-30 2019-06-07 北京大学 Video super-resolution processing method and processing device
CN111784624B (en) * 2019-04-02 2024-05-24 北京沃东天骏信息技术有限公司 Target detection method, device, equipment and computer readable storage medium
CN111667406B (en) * 2020-04-24 2023-05-30 东北大学 Video image super-resolution reconstruction method based on time domain correlation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190045248A1 (en) * 2018-05-31 2019-02-07 Intel Corporation Super resolution identifier mechanism
CN109688465A (en) * 2018-11-27 2019-04-26 Oppo广东移动通信有限公司 Video source modeling control method, device and electronic equipment
KR20190117416A (en) * 2019-09-26 2019-10-16 엘지전자 주식회사 Method and apparatus for enhancing video frame resolution
CN110958469A (en) * 2019-12-13 2020-04-03 联想(北京)有限公司 Video processing method and device, electronic equipment and storage medium
CN112910875A (en) * 2021-01-27 2021-06-04 维沃移动通信有限公司 Display method and device

Also Published As

Publication number Publication date
CN112910875A (en) 2021-06-04
CN112910875B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN109783178B (en) Color adjusting method, device, equipment and medium for interface component
CN108737908B (en) Media playing method, device and storage medium
WO2022111672A1 (en) Data processing method and apparatus, and electronic device
JP6404368B2 (en) Power optimization using dynamic frame rate support
WO2021175054A1 (en) Image data processing method, and related apparatus
CN111866433B (en) Video source switching method, video source playing method, video source switching device, video source playing device, video source equipment and storage medium
CN103109267A (en) Techniques for changing image display properties
CN108536370B (en) Input interface switching method and device and electronic equipment
WO2022242213A1 (en) Refresh rate adjustment method and electronic device
WO2022161383A1 (en) Filming control method and apparatus, and electronic device
US9781380B2 (en) Method, apparatus and terminal for playing multimedia content
WO2022116962A1 (en) Video playback method and apparatus, and electronic device
CN103488450A (en) Method, device and terminal equipment for projecting picture
CN111949239B (en) Screen sharing method and device, storage medium and terminal
WO2023045885A1 (en) Synchronization method and apparatus
WO2023061096A1 (en) Method and apparatus for adjusting refresh frame rate of display screen, and processor, chip and terminal
WO2022161310A1 (en) Display method and apparatus, and electronic device
CN114189700A (en) Live broadcast card pause prompting method and device, computer equipment and storage medium
US20140240202A1 (en) Information processing method and apparatus for electronic device
US20240214443A1 (en) Methods, systems, and media for selecting video formats for adaptive video streaming
US20170064389A1 (en) Transmission apparatus, transmission method, reception apparatus, and reception method
US20230368338A1 (en) Image display method and apparatus, and electronic device
WO2023125553A1 (en) Frame interpolation method and apparatus and electronic device
JP2013015741A (en) Image output device, image output method and program
CN112199149A (en) Interface rendering method and device and electronic equipment

Legal Events

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

Ref document number: 22745185

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22745185

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17-01-2024)