CN109218803B - Video enhancement control method and device and electronic equipment - Google Patents

Video enhancement control method and device and electronic equipment Download PDF

Info

Publication number
CN109218803B
CN109218803B CN201811141909.3A CN201811141909A CN109218803B CN 109218803 B CN109218803 B CN 109218803B CN 201811141909 A CN201811141909 A CN 201811141909A CN 109218803 B CN109218803 B CN 109218803B
Authority
CN
China
Prior art keywords
video
playing
control
played
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811141909.3A
Other languages
Chinese (zh)
Other versions
CN109218803A (en
Inventor
米岚
林进全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811141909.3A priority Critical patent/CN109218803B/en
Publication of CN109218803A publication Critical patent/CN109218803A/en
Application granted granted Critical
Publication of CN109218803B publication Critical patent/CN109218803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a video enhancement control method and device and electronic equipment. The method comprises the following steps: after a video playing interface is displayed, detecting the playing state of a video played by the video playing interface; if the playing state is detected to be the pause playing, displaying a control, wherein the control is used for controlling the starting or closing of the visual enhancement of the played video; and if the playing state is detected to be playing, hiding the control. According to the method, when the attention of the user is focused on the video playing interface under the condition that the video is paused, the control is displayed, so that the user can pay attention to the video enhancement function, and moreover, the control can be automatically hidden when the video is playing, so that the influence on the video watching of the user is avoided, and the user experience is improved.

Description

Video enhancement control method and device and electronic equipment
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a video enhancement control method and apparatus, and an electronic device.
Background
With the development of society, the application range of electronic devices with screens is continuously expanded. For example, images such as pictures and videos are displayed on the screen. The display quality of most electronic devices is severely affected by the variation of ambient light sources or the quality of the video being played.
Disclosure of Invention
In view of the foregoing problems, the present application provides a video enhancement control method, apparatus and electronic device to improve the foregoing problems.
In a first aspect, the present application provides a video enhancement control method applied to an electronic device, where the method includes: after a video playing interface is displayed, detecting the playing state of a video played by the video playing interface; if the playing state is detected to be the pause playing, displaying a control, wherein the control is used for controlling the starting or closing of the visual enhancement of the played video; and if the playing state is detected to be playing, hiding the control.
In a second aspect, the present application provides a video enhancement control apparatus, operable on an electronic device, the apparatus comprising: the playing detection unit is used for detecting the playing state of the video played by the video playing interface after the video playing interface is displayed; the control display unit is used for displaying a control if the playing state is detected to be playing pause, and the control is used for controlling the opening or closing of the visual enhancement of the played video; and the control hiding unit is used for hiding the control if the playing state is detected to be playing.
In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, the present application provides a computer-readable storage medium having program code stored therein, wherein the method described above is performed when the program code is executed.
According to the video enhancement control method and device and the electronic equipment, after a video playing interface is displayed, the playing state of a video played on the video playing interface is detected, if the playing state is detected to be playing pause, a control used for controlling the opening or closing of the visual enhancement of the played video is displayed, and if the playing state is detected to be playing, the control is hidden. Therefore, when the attention of the user is focused on the video playing interface under the condition that the video is in the pause playing, the control is displayed, so that the user can pay attention to the video enhancement function, and moreover, the control can be automatically hidden when the video is playing, so that the influence of watching the video by the user is avoided, and the user experience is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flow chart of another video decoding proposed by the present application;
fig. 2 shows a flow chart of a video enhancement control method proposed by the present application;
fig. 3 is a schematic interface diagram in a video enhancement control method proposed in the present application;
fig. 4 is a schematic diagram illustrating a prompt message in a video enhancement control method proposed in the present application;
fig. 5 is a schematic diagram illustrating another cue information in a video enhancement control method proposed in the present application;
fig. 6 is a schematic diagram illustrating a control in a video enhancement control method proposed in the present application;
fig. 7 is a schematic diagram illustrating a display control in a video enhancement control method proposed in the present application;
FIG. 8 is a flow chart illustrating another video enhancement control method proposed by the present application;
fig. 9 shows a flow chart of yet another video enhancement control method proposed by the present application;
fig. 10 is a schematic diagram illustrating one-hand operation region division in still another video enhancement control method proposed by the present application;
fig. 11 is a schematic diagram illustrating electronic device partitioning in yet another video enhancement control method proposed by the present application;
fig. 12 is a schematic diagram illustrating an electronic device posture in still another video enhancement control method proposed by the present application;
fig. 13 is a schematic diagram illustrating a control in another video enhancement control method proposed in the present application;
fig. 14 is a schematic diagram illustrating a control movement in another video enhancement control method proposed in the present application;
fig. 15 is a block diagram illustrating a structure of a video enhancement control apparatus according to the present application;
fig. 16 is a block diagram showing another video enhancement control apparatus proposed in the present application;
fig. 17 is a block diagram illustrating a structure of still another video enhancement control apparatus proposed in the present application;
fig. 18 shows a block diagram of an electronic device for executing a video enhancement control method according to an embodiment of the present application.
Fig. 19 is a storage unit for storing or carrying a program code implementing an image processing method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the improvement of the hardware performance of the electronic device, more electronic devices can support video playing. For example, the electronic device may run a video playing client and then play a video requested from the network through the video playing client, or may run a web browser and then play the video through the web browser, or the electronic device may play a locally stored video file through video playing software.
When the video is generated, the generated video is compressed in order to reduce the occupation of storage space and facilitate transmission on the network, regardless of whether the video is played or stored locally. Accordingly, when the electronic device acquires the video, the video acquired first will also be the video after compression encoding, and in this case, the electronic device will perform video decoding on the video which has been compression encoded first.
Generally, as shown in fig. 1, an electronic device can perform video decoding by both hard decoding and soft decoding. The hard decoding refers to decoding using a non-CPU, such as a gpu (graphics Processing unit), a dedicated DSP, an FPGA, an ASIC chip, and the like. And soft decoding refers to decoding using a CPU.
Specifically, as shown in fig. 1, a Media frame (multimedia frame) acquires a Video file to be played through an API interface with a client or a web browser, and delivers the Video file to a Video decoder, where the Media frame is a multimedia frame in an operating system.
Whether hard decoding or soft decoding is performed, after the video data is decoded, the decoded video data is transmitted to a surface flunger (layer delivery module), and the decoded video data is rendered and synthesized by the surface flunger and then displayed on a screen. The Surface flunger is an independent Service, receives all the surfaces as input, calculates the position of each Surface in the final composite image according to parameters such as ZOrder, transparency, size and position, and then sends the position to HWcomposer or OpenGL to generate a final display Buffer, and then displays the final display Buffer on a specific display device.
The inventor finds that the visual enhancement process can be added in the hard decoding process or the soft decoding process, so that the video played subsequently has higher visual effect. For example, video may be edge-dried, exposure-adjusted, or sharpness-enhanced based on hqv (hollywood quality video) technology, and so on. In addition, the visual experience of the played video can be improved in other ways, for example, the color flamboyance degree is improved.
However, the inventors further found that the control of whether to visually enhance the played video still remains to be improved. Therefore, the video enhancement control method and device and the electronic equipment provided by the application can improve the control convenience and the intellectualization.
The present disclosure will now be described with reference to specific embodiments.
Referring to fig. 2, a video enhancement control method provided by the present application is applied to an electronic device, and the method includes:
step S110: and after the video playing interface is displayed, detecting the playing state of the video played by the video playing interface.
In this application, the electronic device may identify whether the video playing interface is currently displayed in a variety of ways.
As a mode, it is detected whether a set video playing application program is running in a foreground of the electronic device, and if it is detected that the set video playing application program is running, it is determined that the electronic device displays a video playing interface. As one mode, if the electronic device is an Android operating system, the name of the application program currently running in the foreground may be obtained by executing a getreporting tasks method of the ActivityManager. In addition, the electronic device may further acquire a list of programs used by the user through the usagetstatsmanager, and identify a most recently used application program recorded in the list as a current foreground application. Moreover, the Android can monitor the change of the focus of the window through the barrier-free function of the Android, and the package name corresponding to the focus window is taken as the application program which runs in the foreground at the present time.
The electronic device may pre-establish a list of video playing applications, so as to record the video playing applications in the list. The list may be freely configured by a user of the electronic device, or may be determined according to a usage situation of a certain video playing application program.
Furthermore, each interface of the application program has a set name. Taking the Android system as an example, if the operating system of the electronic device is the Android system, the interface of the application program is usually activity. And the activity data structure is a stack, in this case, the electronic device may detect whether the activity stored on the top of the stack is the set activity, and if so, determine that the electronic device displays the video playing interface. Similarly, activity for a setting may also be implemented in the form of a list.
In one embodiment, after detecting that an application is installed or updated, the electronic device may start to detect whether the installed or updated application includes the activity of the video playback control, and if so, set the activity including the activity of the video playback control as one set activity. Of course, it is understood that, in order to avoid the electronic device from being recognized by mistake in the case of an activity having the same name for different applications, the electronic device may calculate a feature value of the content included in the activity, and then use the feature value as a part of the name of the activity stored therein, thereby avoiding the electronic device from being recognized by mistake in the case of an activity having the same name for different applications. Wherein the feature value may be calculated by a hash algorithm.
For example, if the electronic device detects that the installed application a has an activity named shinin and also detects that the application B has an activity named shinin, in this case, the electronic device may perform hash calculation on the content of the activity named shinin included in the application a to obtain a first characteristic value, then perform hash calculation on the content of the activity named shinin included in the application B to obtain a second characteristic value, then store the first characteristic value/shinin when the activity named in the application a is stored, and store the second characteristic value/shinin when the activity named in the application B is stored.
Optionally, as a mode in the present application, after a video playing interface is displayed, whether a video enhancement function in the system configuration is in an on state is detected; and if the video playing interface is in the open state, performing video enhancement on the video played by the video playing interface.
Optionally, after the video playing interface is displayed, the video enhancement function in the system configuration is controlled by one switch, and then when the switch is in an on state, all the applications supporting video enhancement can start video enhancement. Then in this case, detecting whether the video enhancement function in the system configuration is in an on state means detecting whether the switch that controls whether all applications can turn on video enhancement is in an on state.
Furthermore, as a finer-grained control method, a video enhancement switch is configured in the system interface corresponding to each application program supporting the video enhancement function.
For example, as shown in fig. 3, a plurality of applications and a switch corresponding to each application are displayed in the interface shown in fig. 3. It is understood that if the switch corresponding to the application program is "off" as shown in the figure, it indicates that the application program turns off the video enhancement function, and if the state corresponding to the application program is "on" as shown in the figure, it indicates that the application program turns on the video enhancement function. For example, for an application named "TX video", the corresponding status is "on", i.e. this application indicates "TX video" that allows video enhancement to be turned on. And for the application named "AQY video", the corresponding status is "off", which means that this application "AQY video" does not allow video enhancement to be turned on.
In this application, the electronic device may determine the playing state of the video played by the video playing interface in a variety of ways.
As one way, an identifier may be stored locally in advance, and the electronic device may determine the play state of the video by detecting the value of the identifier. Optionally, if the electronic device detects that the value of the identifier is 1, it is determined that the playing state of the video played by the video playing interface is playing, and if the electronic device detects that the value of the identifier is 0, it is determined that the playing state of the video played by the video playing interface is paused. It should be noted that, what value is used to represent the playing status as being played or paused may be configured according to actual situations, and the present application is not limited specifically.
In addition to the above, the electronic device may determine the video playing state by detecting whether an application of the current foreground is performing picture rendering using a CPU or a GPU or performing audio output. Optionally, if the electronic device detects that the application program of the current foreground performs the image rendering using the CPU or the GPU and performs the audio output at the same time, it is determined that the application program of the current foreground is in the video playing state, and if the electronic device detects that the application program of the current foreground does not perform the image rendering using the CPU or the GPU and performs the audio output at the same time, it is determined that the application program of the current foreground is in the pause playing state.
As a mode, after a video playing interface is displayed, detecting whether the picture quality of a video played by the video playing interface meets a set condition; and if the picture quality is detected not to accord with the set condition, displaying prompt information for starting the video enhancement function in a suspension manner on the video playing interface.
For example, as shown in fig. 4, a pop-up box 98 is displayed in a floating manner on the video playing interface 99, and a prompt message "whether the current video quality is poor and the video enhancement is started" is displayed in the pop-up box 98. And an open button and a button that is not open for the moment are displayed in the pop-up box. If the user touches the start button, the electronic device starts to perform video enhancement on the video played by the video playing interface, and if the user touches the pause button, the pop-up box 98 is hidden.
Optionally, the setting condition includes at least one of the following conditions: the resolution of the played video is higher than the set resolution; the number of noise points in the played video is less than the set number; and the color saturation of the played video is higher than the set saturation value.
It should be noted that the electronic device may acquire the resolution of the current video in multiple ways.
Optionally, the electronic device may extract a frame of target image from the played video as a basis for attribute determination. It will be appreciated that if an image is blurred, then it is blurred again and the high frequency components in the image do not change much. However, if the sharpness of the image itself is high, and the blurring process is performed once, the high-frequency component varies greatly. Then, as one mode, the electronic device may obtain a degraded image of the target image by performing a blurring process (e.g., a gaussian blurring process) on the target image once, and then compare changes of adjacent pixel values of the image before the blurring process and the image after the blurring process, determine the degree of sharpness according to the magnitude of the changes, and then use the determined sharpness as the resolution. Then in this case, the greater the variation, the higher the sharpness of the target image and the higher the resolution.
In addition, in addition to determining the sharpness of the target image by blurring the target image, the sharpness may be calculated in other manners. Alternatively, it can be calculated by the following calculation formula
D(f)=∑yx|f(x+2,y)-f(x,y)|2
To determine sharpness. Wherein f (x, y) represents the gray value of the pixel point (x, y) corresponding to the image f, and D (f) is the image definition calculation result, and then the result is taken as the resolution. Optionally, in the present application, f (x, y) may select a high-frequency component region in the live preview image.
Optionally, if the currently played video provides multiple resolutions for the user to select, the resolution of the current video may be obtained by reading the resolution for playing the video selected by the user.
Further, it is understood that if noise exists in the image, the noise may exist in an edge region (high frequency component region) or a region other than the edge in the image, but since the noise along the edge is not visually apparent, as a way of shortening the evaluation time, the mobile terminal may detect only the noise other than the edge. Edge detection can be affected by noise, so the mobile terminal can perform a noise filtering pre-process before detecting the edge. Optionally, the mobile terminal may use mean filtering to eliminate part of the noise, where the image g (x, y) after mean filtering is:
Figure BDA0001815997700000081
then correspondingly, the noise candidates are:
Dh(x,y)=|g(x,y+1)-g(x,y-1)|
Figure BDA0001815997700000082
the corresponding values can be calculated in the vertical direction in the same way. The noise candidates are then found to be:
Figure BDA0001815997700000083
then Ncand(x, y) represents the detected noise. After statistics, the number of noise points in the real-time preview image can be obtained.
As a way of improving user experience, the step of displaying, in a floating manner, the prompt information for starting the video enhancement function on the video playing interface includes: identifying a target object included in the played video; and displaying prompt information for starting the video enhancement function and prompt information capable of enhancing the visual effect of the target object in a suspension manner on the video playing interface. For example, as shown in fig. 5, if the identified target object is the sky, in addition to the prompt message "the current video quality is not good and the video enhancement is not turned on" for turning on the video enhancement function, a prompt message "the color of the sky can be made bluer" for enhancing the visual effect of the target object is displayed in the pop-up box 98. For another example, if the identified target object is a person, the displayed prompt information that can enhance the visual effect of the target object may be "can make the appearance of the person clearer" or the like.
Secondly, the electronic device can acquire the saturation of each frame of image in the video based on the existing manner of acquiring the saturation of the image.
It should be noted that, what specific preset conditions include may be adapted according to the actual application scenario.
As a manner, which of the conditions specifically included in the preset condition may be determined according to the current processing resource and power of the electronic device. It is understood that, in the case that the video enhancement is turned on, the electronic device consumes more processing resources (e.g., computing resources of the CPU or processing resources of the GPU) and power, and then in the case that the electronic device detects that the processing resources of the electronic device are less (e.g., the occupancy rate of the CPU or the GPU exceeds the set value) and/or the power is less than the set value, the electronic device may enable the preset condition to include the resolution of the played video being higher than the set resolution; the number of noise points in the played video is less than the set number; and the color saturation of the played video is higher than the set saturation value, so that the threshold for reminding a user of enhancing the video is improved, and the long-time endurance of the electronic equipment is facilitated.
Alternatively, if it is detected that the current video is played at a resolution manually selected by the user, and the resolution manually selected by the user is not the highest resolution that can be supported by the video, which indicates that the current user has no higher requirement for the resolution, the electronic device may configure the preset condition that the color saturation of the played video is higher than the set saturation value.
Wherein the step of identifying a target object included in the played video comprises: identifying objects appearing in continuous multi-frame images within a set time length of a played video based on a model obtained by pre-learning; and taking the object with the appearance frequency higher than the set frequency as the target object.
It can be understood that, in the process of playing the video, if the main object appearing in the picture is displayed with a poor visual effect, the experience of the user watching the video is greatly affected. For example, if a picture including a person is always blurred in a video mainly including the person, it is not preferable for the user to recognize the person. For another example, if the color of a scene (e.g., sea and sky) is not bright enough in a picture mainly containing the scene, the visual experience of the user may be affected. In this case, after the target object included in the played video is identified, the effect description of the visual enhancement of the target object is added to the prompt message, which is beneficial to improving the utilization rate of the visual enhancement function.
Step S120: and if the playing state is detected to be the pause playing, displaying a control, wherein the control is used for controlling the opening or closing of the visual enhancement of the played video.
As shown in fig. 6, a control 97 is displayed in the displayed video playback interface 99. The control 97 has a function of responding to a touch operation by a user. For example, when the electronic device does not perform video enhancement on the video played by the video playing interface 99, after detecting that the user touches the control 97, the electronic device starts to perform video enhancement on the played video. And under the condition that the electronic device is performing video enhancement on the video played by the video playing interface 99, after detecting that the user touches the control 97, the electronic device cancels the visual enhancement on the played video.
In the present application, the electronic device may display the control in various ways. For example, as one approach, the electronic device may cause the control to be displayed in a sliding manner. For example, as shown in FIG. 7, control 97 may slide into video playback interface 99 in the direction indicated by the arrow in FIG. 7. Furthermore, the electronic device may control the control to be displayed in the video playing interface in a manner of transparency gradual change. For example, when the control is in the hidden state, the transparency of the control is one hundred percent, and the user cannot visually see the control, and when the control is in the display state, the transparency of the control is less than one hundred percent, so that the user can visually see that the control is displayed in the video playing interface.
Step S130: and if the playing state is detected to be playing, hiding the control.
It should be noted that, if the control is already in the display state and is switched to the hidden state, the manner of hiding the control corresponds to the manner of displaying the control before.
According to the video enhancement control method, after a video playing interface is displayed, the playing state of a video played on the video playing interface is detected, if the playing state is detected to be a pause playing state, a control used for controlling the opening or closing of the visual enhancement of the played video is displayed, and if the playing state is detected to be a playing state, the control is hidden. Therefore, when the attention of the user is focused on the video playing interface under the condition that the video is in the pause playing, the control is displayed, so that the user can pay attention to the video enhancement function, and moreover, the control can be automatically hidden when the video is playing, so that the influence of watching the video by the user is avoided, and the user experience is improved.
Referring to fig. 8, a video enhancement control method provided by the present application is applied to an electronic device, and the method includes:
step S210: and after the video playing interface is displayed, detecting the playing state of the video played by the video playing interface.
Step S220: and if the playing state is detected to be the pause playing, detecting whether the video enhancement function in the system configuration is in an open state.
Step S221: and if the video is in the opening state, displaying a control, wherein the control is used for controlling the opening or closing of the visual enhancement of the played video.
Step S222: and if the video is in the closed state, detecting whether the picture quality of the played video meets the set conditions.
Step S223: and if the picture quality is detected not to accord with the set condition, displaying prompt information for starting the video enhancement function in a suspension manner on the video playing interface.
Optionally, the setting condition includes at least one of the following conditions: the resolution of the played video is higher than the set resolution; the number of noise points in the played video is less than the set number; and the color saturation of the played video is higher than the set saturation value.
If the picture quality is detected to meet the set condition, the process is ended.
Step S230: and if the playing state is detected to be playing, hiding the control.
It should be noted that, in this embodiment, reference may be made to the description of the foregoing content for a manner in which the electronic device detects whether the video is playing or paused, and details are not described here again. Accordingly, for how the electronic device detects the picture quality of the played video, reference may also be made to the foregoing contents, which are not described herein again.
According to the video enhancement control method, when the attention of the user is focused on the video playing interface under the condition that the video is in pause playing, the control is displayed, so that the user can pay attention to the video enhancement function, moreover, the control can be automatically hidden when the video is playing, the influence of watching the video by the user is avoided, and the user experience is improved. In addition, in this embodiment, when it is detected that the video enhancement function in the system configuration is in a closed state and the picture quality does not meet the set condition, the prompt information for starting the video enhancement function is displayed in a suspended manner on the video playing interface, so that the user can be guided to pay attention to the video enhancement function, the video enhancement function can be promoted, and the user experience can be improved.
Referring to fig. 9, a video enhancement control method provided by the present application is applied to an electronic device, and the method includes:
step S310: and after the video playing interface is displayed, detecting the playing state of the video played by the video playing interface.
Step S320: and if the playing state is detected to be the pause playing, displaying a control, wherein the control is used for controlling the opening or closing of the visual enhancement of the played video.
It is understood that a user may be placed in different locations while viewing a video through an electronic device. For example, if the user may be placing the electronic device on a desktop, the user may be in a handheld state. Then in the hand-held state, the user may be an electronic device held in one hand. For example, when a user is on a bus or subway, one hand may be needed to hold some fixtures to keep the body balanced, and thus only the other hand may be used to hold the electronic device. If the position of the control is displayed at a position on the video playing interface that cannot be operated by the user, the operation of the user is inconvenient. For example, as shown in fig. 10, in a state where the user holds the electronic apparatus with one hand, the region that can be operated by the finger is the region S1, and the region S2 is a region that cannot be operated by the user. If the control 97 is displayed in the area of S2, the user cannot operate it.
As one mode, after detecting that the playing state is the paused playing state, the electronic device may obtain a current posture of the electronic device, so that the display control is displayed at one end of the electronic device closer to the ground. As shown in fig. 11, the electronic device is divided into an a side and a B side along the length direction of the electronic device. As shown in fig. 12, in the case where the electronic device detects that the posture of the electronic device is the style shown in fig. 12, that is, the a end is closer to the ground than the B end, and the electronic device appears in the inclined state on the right side of fig. 12 when viewed from the side of the a end, the control 97 may be displayed in the area of S1 shown in fig. 12, thereby facilitating the one-handed operation by the user.
Step S321: detecting a gesture of the electronic device.
Step S322: moving the display control to an end of the electronic device closer to the ground.
Similar to the previous determination of the display position of the control based on the pose of the electronic device. In step S322, the control may freely move on the video playing interface, so that the user may adjust the position of the control according to the current holding gesture, thereby facilitating the operation of the user. For example, as shown in fig. 14, if the position initially displayed by the control is the position shown in the dashed box, the control may move to the position pointed by the arrow according to the real-time gesture of the electronic device according to the path shown by the arrow.
Step S330: and if the playing state is detected to be playing, hiding the control.
According to the video enhancement control method, when the attention of the user is focused on the video playing interface under the condition that the video is in pause playing, the control is displayed, so that the user can pay attention to the video enhancement function, moreover, the control can be automatically hidden when the video is playing, the influence of watching the video by the user is avoided, and the user experience is improved. And after the control is displayed, the position of the control can be adjusted along with the posture of the electronic equipment, so that the user can operate conveniently.
Referring to fig. 15, the present application provides a video enhancement control apparatus 400, operating on an electronic device, where the apparatus 400 includes: a playing detection unit 410, a control display unit 420, a control hiding unit 430, a video enhancement control unit 440, and a prompt information display unit 450.
The play detection unit 410 is configured to detect a play state of a video played by a video playing interface after the video playing interface is displayed.
A control display unit 420, configured to display a control if it is detected that the playing status is a pause playing, where the control is used to control to turn on or turn off the visual enhancement on the played video.
A control hiding unit 430, configured to hide the control if it is detected that the playing status is playing.
As one mode, the video enhancement control apparatus 400 further includes:
the video enhancement control unit 440 is configured to detect whether a video enhancement function in the system configuration is in an on state after a video playing interface is displayed; and if the video playing interface is in the open state, performing video enhancement on the video played by the video playing interface.
As one mode, the video enhancement control apparatus 400 further includes:
the prompt information display unit 450 is configured to detect whether the picture quality of a video played by a video playing interface meets a set condition after the video playing interface is displayed; and if the picture quality is detected not to accord with the set condition, displaying prompt information for starting the video enhancement function in a suspension manner on the video playing interface.
Optionally, the prompt information display unit 450 is specifically configured to identify a target object included in the played video; and displaying prompt information for starting the video enhancement function and enhancing the visual effect of the target object in a suspension manner on the video playing interface.
As one mode, the prompt information display unit 450 is specifically configured to identify an object appearing in a continuous multi-frame image within a set duration of a played video based on a model obtained through pre-learning; and taking the object with the appearance frequency higher than the set frequency as the target object.
Referring to fig. 16, a video enhancement control apparatus 500 provided by the present application is operated in an electronic device, where the apparatus 500 includes: a play detection unit 510, a system switch detection unit 520, a control display unit 530, a picture quality detection unit 540, a prompt information display unit 550, and a control hiding unit 560.
The play detection unit 510 is configured to detect a play state of a video played by a video play interface after the video play interface is displayed.
The system switch detecting unit 520 is configured to detect whether a video enhancement function in the system configuration is in an on state if it is detected that the playing state is the pause playing.
And a control display unit 530, configured to display a control if the video is in an open state, where the control is used to control to open or close the visual enhancement on the played video.
The picture quality detecting unit 540 is configured to detect whether the picture quality of the played video meets a set condition if the video is in the off state.
And a prompt information display unit 550, configured to, if it is detected that the picture quality does not meet the set condition, display, in a floating manner, a prompt information for starting the video enhancement function on the video playing interface.
Optionally, the setting condition includes at least one of the following conditions: the resolution of the played video is higher than the set resolution; the number of noise points in the played video is less than the set number; and the color saturation of the played video is higher than the set saturation value.
And a control hiding unit 560, configured to hide the control if it is detected that the playing status is playing.
Referring to fig. 17, a video enhancement control apparatus 600 provided by the present application is operated in an electronic device, where the apparatus 600 includes: play detection unit 610, control display unit 620, gesture detection unit 630, control movement unit 640, and video enhancement control unit 650.
The play detection unit 610 is configured to detect a play state of a video played by a video play interface after the video play interface is displayed.
And a control display unit 620, configured to display a control if the play status is detected to be a pause play, where the control is used to control turning on or off of the visual enhancement on the played video.
A gesture detection unit 630, configured to detect a gesture of the electronic device.
And a control moving unit 640, configured to move the display control to an end of the electronic device closer to the ground.
And the video enhancement control unit 650 is configured to hide the control if the play state is detected as being played.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling. In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
It should be noted that, in the present application, it is a prior art that can be specifically applied to how to encode audio data according to the audio encoding type, and the present application will not be described in detail.
In summary, according to the video enhancement control method and device and the electronic device provided by the application, whether the electronic device is in the video playing state or not is detected, if the electronic device is detected to be in the video playing state, the state of the control is detected, the control is used for responding to the touch operation control to open or close the visual enhancement, and if the state representation of the control is detected to open the video enhancement, the visual enhancement is performed on the played video. Therefore, in the video playing process, a user can start or close the visual enhancement of the played video by performing touch operation on the control, convenience is provided for the user to control whether the visual enhancement is performed, and the user experience is improved.
An electronic device provided by the present application will be described below with reference to fig. 18.
Referring to fig. 18, based on the video enhancement control method and apparatus, another electronic device 100 capable of executing the video enhancement control method is further provided in the embodiment of the present application. The electronic device 100 includes one or more processors 102 (only one shown), a memory 104, a network module 106, a video codec 108, a gesture capture module 110, and a screen 112 coupled to each other. The memory 104 stores programs that can execute the content of the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104.
Processor 102 may include one or more processing cores, among other things. The processor 102 interfaces with various components throughout the electronic device 100 using various interfaces and circuitry to perform various functions of the electronic device 100 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 104 and invoking data stored in the memory 104. Alternatively, the processor 102 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 102 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 102, but may be implemented by a communication chip.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The network module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as a wireless access point. The network module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 106 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
The video codec 108 may be used to decode data requested by the network module 106 from the network for transmission to the screen 112 for display. Specifically, the video codec 108 may be a GPU, a dedicated DSP, an FPGA, an ASIC chip, or the like.
The pose acquisition module 110 may be used to acquire a pose of an electronic device. The gesture collecting module 110 includes a gyroscope, an acceleration sensor, and the like.
Referring to fig. 19, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A video enhancement control method is applied to an electronic device, and comprises the following steps:
after a video playing interface is displayed, detecting the playing state of a video played by the video playing interface;
if the playing state is detected to be the pause playing, detecting whether a video enhancement function in the system configuration is in an open state;
if the video is in the opening state, displaying a control, wherein the control is used for controlling the opening or closing of the visual enhancement of the played video; if the video playing interface is in the closed state, displaying prompt information for starting the video enhancement function in a suspending way on the video playing interface;
and if the playing state is detected to be playing, hiding the control.
2. The method of claim 1, further comprising:
after a video playing interface is displayed, detecting whether a video enhancement function in system configuration is in an open state;
and if the video playing interface is in the open state, performing video enhancement on the video played by the video playing interface.
3. The method of claim 1, further comprising:
after a video playing interface is displayed, detecting whether the picture quality of a video played by the video playing interface meets a set condition;
and if the picture quality is detected not to accord with the set condition, displaying prompt information for starting the video enhancement function in a suspension manner on the video playing interface.
4. The method according to claim 1, wherein the step of displaying the prompt message for starting the video enhancement function in a floating manner on the video playing interface comprises:
identifying a target object included in the played video;
and displaying prompt information for starting the video enhancement function and prompt information capable of enhancing the visual effect of the target object in a suspension manner on the video playing interface.
5. The method of claim 4, wherein the step of identifying the target object included in the played video comprises:
identifying objects appearing in continuous multi-frame images within a set time length of a played video based on a model obtained by pre-learning;
and taking the object with the appearance frequency higher than the set frequency as the target object.
6. The method according to claim 1, wherein the step of displaying the prompt message for starting the video enhancement function in a floating manner on the video playing interface further comprises:
detecting whether the picture quality of the played video meets a set condition;
and if the picture quality is detected not to accord with the set condition, executing the prompt information for starting the video enhancement function in a suspension display mode on the video playing interface.
7. The method according to claim 6, wherein the setting condition includes at least one of the following conditions:
the resolution of the played video is higher than the set resolution;
the number of noise points in the played video is less than the set number; and
the color saturation of the played video is higher than the set saturation value.
8. The method of any of claims 1-7, wherein the step of displaying the control is further followed by:
detecting a gesture of the electronic device;
moving the display control to an end of the electronic device closer to the ground.
9. A video enhancement control apparatus, operable in an electronic device, the apparatus comprising:
the playing detection unit is used for detecting the playing state of the video played by the video playing interface after the video playing interface is displayed;
the video enhancement control unit is used for detecting whether a video enhancement function in system configuration is in an open state or not if the playing state is detected to be the pause playing;
the control display unit is used for displaying a control if the video playing device is in an open state, and the control is used for controlling the opening or closing of the visual enhancement of the played video; if the video playing interface is in the closed state, displaying prompt information for starting the video enhancement function in a suspending way on the video playing interface;
and the control hiding unit is used for hiding the control if the playing state is detected to be playing.
10. An electronic device comprising one or more processors, a video codec, and a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-8.
11. A computer-readable storage medium, having program code stored therein, wherein the method of any of claims 1-8 is performed when the program code is run.
CN201811141909.3A 2018-09-28 2018-09-28 Video enhancement control method and device and electronic equipment Active CN109218803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811141909.3A CN109218803B (en) 2018-09-28 2018-09-28 Video enhancement control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811141909.3A CN109218803B (en) 2018-09-28 2018-09-28 Video enhancement control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109218803A CN109218803A (en) 2019-01-15
CN109218803B true CN109218803B (en) 2021-03-12

Family

ID=64982134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811141909.3A Active CN109218803B (en) 2018-09-28 2018-09-28 Video enhancement control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109218803B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112684967A (en) * 2021-03-11 2021-04-20 荣耀终端有限公司 Method for displaying subtitles and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185970A (en) * 2011-04-22 2011-09-14 上海网达软件有限公司 Method for establishing standard for handset video player component model object interface

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10003781B2 (en) * 2006-08-04 2018-06-19 Gula Consulting Limited Liability Company Displaying tags associated with items in a video playback
CN102811354B (en) * 2011-05-30 2015-04-29 深圳市快播科技有限公司 Video image quality enhanced playing method and on-demand terminal
CN102572217B (en) * 2011-12-29 2014-08-20 华为技术有限公司 Visual-attention-based multimedia processing method and device
CN104038620A (en) * 2013-03-06 2014-09-10 风网科技(北京)有限公司 Mobile phone video playing control system and method thereof
CN104103243B (en) * 2013-04-01 2016-06-22 鸿富锦精密工业(武汉)有限公司 high-definition liquid crystal screen control display system and method
CN105163134B (en) * 2015-08-03 2018-09-07 腾讯科技(深圳)有限公司 Video coding parameter setting method, device and the video encoder of live video
US10359847B2 (en) * 2015-12-28 2019-07-23 The Directv Group, Inc. Advertisement viewing bypass prevention user interface component
CN106231416A (en) * 2016-08-16 2016-12-14 北京小米移动软件有限公司 Method for processing video frequency and device
CN106604106A (en) * 2016-12-29 2017-04-26 北京奇虎科技有限公司 Player control display control method and apparatus thereof
CN107454259A (en) * 2017-07-31 2017-12-08 珠海市魅族科技有限公司 A kind of control adjusting method, device and computer installation, readable storage medium storing program for executing

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185970A (en) * 2011-04-22 2011-09-14 上海网达软件有限公司 Method for establishing standard for handset video player component model object interface

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
完美解决微信video视频隐藏控件和内联播放问题;第三世界viee;《https://blog.csdn.net/jjhuiq/article/details/78478576》;20171108;全文 *

Also Published As

Publication number Publication date
CN109218803A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN109151573B (en) Video enhancement control method and device and electronic equipment
US11706484B2 (en) Video processing method, electronic device and computer-readable medium
CN109685726B (en) Game scene processing method and device, electronic equipment and storage medium
US20210168441A1 (en) Video-Processing Method, Electronic Device, and Computer-Readable Storage Medium
CN109379628B (en) Video processing method and device, electronic equipment and computer readable medium
US20210281718A1 (en) Video Processing Method, Electronic Device and Storage Medium
JP7295950B2 (en) Video enhancement control method, device, electronic device and storage medium
CN109120988B (en) Decoding method, decoding device, electronic device and storage medium
CN109688465B (en) Video enhancement control method and device and electronic equipment
CN109640179B (en) Video decoding control method and device and electronic equipment
CN109618228B (en) Video enhancement control method and device and electronic equipment
US11562772B2 (en) Video processing method, electronic device, and storage medium
WO2020108010A1 (en) Video processing method and apparatus, electronic device and storage medium
CN109218803B (en) Video enhancement control method and device and electronic equipment
CN109120979B (en) Video enhancement control method and device and electronic equipment
CN109167946B (en) Video processing method, video processing device, electronic equipment and storage medium
CN109712100B (en) Video enhancement control method and device and electronic equipment
US20230237632A1 (en) Electronic device and operating method thereof
CN109257636B (en) Switching method and device for video enhancement, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant