Screen control method and device, electronic equipment and storage medium
By dynamically adjusting the screen refresh rate according to whether there is a barrage in the display screen when the barrage function is turned on, the problem of large power consumption and affecting the user experience in the prior art screen refresh rate control is solved, and the smoothness and power consumption of video playback are achieved.
Patent Information
- Application Number
- CN202311386248.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2025-04-25
AI Technical Summary
When the existing screen control method controls the screen refresh rate, the power consumption is high, which affects the user experience. Especially when the barrage function is turned on, the refresh rate cannot be adjusted in time based on whether there are barrages in the display screen.
Provides a screen control method, when the barrage function is turned on, dynamically adjust the refresh rate of the screen according to whether there are barrages in the display screen. If there is a barrage, the control screen is displayed at a higher first refresh rate; if there is no barrage, the control screen is displayed at a lower second refresh rate.
By dynamically adjusting the screen refresh rate, effectively reduce or prevent barrage from being stuck, ensure the smoothness of video playback, and reduce power consumption when there is no barrage, saving overall power consumption.
Smart Images

Figure CN119889255A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic devices, and in particular to a screen control method, device, electronic device and storage medium. Background Art
[0002] In recent years, with the rapid development of multimedia technology, screens with high refresh rates have been widely used in various electronic devices. The refresh rate of the screen will directly affect the video playback effect and the smoothness of the barrage in the video. Therefore, the control of the screen refresh rate is particularly critical.
[0003] However, the screen control method using the related art to control the refresh rate of the screen consumes a lot of power and affects the user experience. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a screen control method, device, electronic device and storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a screen control method is provided, the screen control method comprising:
[0006] When the bullet screen function is turned on, if there is a bullet screen in the display, the screen is controlled to display at the first refresh rate;
[0007] When the barrage function is turned on, if there is no barrage in the displayed image, the screen is controlled to display at a second refresh rate, and the first refresh rate is higher than the second refresh rate.
[0008] In some embodiments of the present disclosure, when the bullet screen function is turned on, the screen control method further includes:
[0009] Get the actual frame rate of the screen;
[0010] Based on the actual frame rate and the video frame rate of the currently playing video, determine whether there is a bullet screen in the display screen.
[0011] In some embodiments of the present disclosure, determining whether there is a bullet screen in the display screen based on the actual frame rate and the video frame rate of the currently playing video includes:
[0012] If the actual frame rate is greater than the video frame rate, determining that there is a bullet screen in the display screen;
[0013] If the actual frame rate is equal to the video frame rate, it is determined that no bullet screen exists in the display image.
[0014] In some embodiments of the present disclosure, before acquiring the actual frame rate of the screen, the screen control method further includes:
[0015] The refresh rate of the screen is adjusted to the second refresh rate, where the second refresh rate is greater than the refresh rate corresponding to the video frame rate and less than the automatic refresh rate corresponding to when the barrage appears.
[0016] In some embodiments of the present disclosure, the screen control method further includes:
[0017] When the barrage function is in the off state, the screen is controlled to display at a third refresh rate, and the third refresh rate corresponds to the video frame rate of the currently playing video.
[0018] In some embodiments of the present disclosure, the screen control method further includes:
[0019] When it is determined that the preset detection conditions are met, a detection image of the display screen within the preset detection range is obtained;
[0020] According to the detection image, determine whether the barrage function is in an on state.
[0021] In some embodiments of the present disclosure, the preset detection conditions include:
[0022] The display screen is displayed in full screen and a touch screen operation is detected.
[0023] In some embodiments of the present disclosure, determining whether the bullet screen function is in an on state according to the detection image includes:
[0024] Based on the detection image and the image recognition model, determine whether the barrage function is in an enabled state.
[0025] In some embodiments of the present disclosure, the first refresh rate is an automatic refresh rate corresponding to when the bullet screen appears; and / or,
[0026] The second refresh rate is determined based on the video frame rate of the currently playing video.
[0027] According to a second aspect of an embodiment of the present disclosure, a screen control device is provided, the screen control device comprising:
[0028] A first control module, wherein when the bullet screen function is turned on, if there is a bullet screen in the display, the first control module is used to control the screen to display at a first refresh rate;
[0029] The second control module is used to control the screen to display at a second refresh rate when the barrage function is turned on and there is no barrage in the display screen, and the first refresh rate is higher than the second refresh rate.
[0030] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:
[0031] processor;
[0032] a memory for storing processor-executable instructions;
[0033] Wherein, the processor is configured to:
[0034] When the bullet screen function is turned on, if there is a bullet screen in the display, the screen is controlled to display at the first refresh rate;
[0035] When the barrage function is turned on, if there is no barrage in the displayed image, the screen is controlled to display at a second refresh rate, and the first refresh rate is higher than the second refresh rate.
[0036] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform a screen control method. The screen control method includes:
[0037] When the bullet screen function is turned on, if there is a bullet screen in the display, the screen is controlled to display at the first refresh rate;
[0038] When the barrage function is turned on, if there is no barrage in the displayed image, the screen is controlled to display at a second refresh rate, and the first refresh rate is higher than the second refresh rate.
[0039] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: when the barrage function is in the on state, if there is a barrage in the display screen, the screen is controlled to be displayed at a higher first refresh rate, thereby effectively reducing or preventing the barrage from freezing and ensuring the smoothness of video playback. If the barrage function is turned on but there is no barrage in the display screen, the screen is controlled to be displayed at a lower second refresh rate, thereby effectively reducing power consumption. In this way, the screen control method of the present disclosure can adjust the refresh rate of the screen in time according to whether there is actually a barrage in the display screen during the video playback process with the barrage function turned on, thereby saving overall power consumption while ensuring the smoothness of the video and barrage.
[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0042] Figure 1 The figure is a flow chart of a screen control method according to an exemplary embodiment.
[0043] Figure 2 is a flowchart of a screen control method according to another exemplary embodiment.
[0044] Figure 3 is a flowchart of a screen control method according to another exemplary embodiment.
[0045] Figure 4 is a flowchart of a screen control method according to another exemplary embodiment.
[0046] Figure 5 is a block diagram of a screen control device according to an exemplary embodiment.
[0047] Figure 6 is a block diagram of an electronic device according to an exemplary embodiment.
[0048] In the figure:
[0049] 10-first control module; 20-second control module; 101-processing component; 102-memory; 103-power component; 104-multimedia component; 105-audio component; 106-input / output interface; 107-sensor component; 108-communication component; 109-processor. DETAILED DESCRIPTION
[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0051] In recent years, with the rapid development of multimedia technology, screens with high refresh rates have been widely used in various electronic devices such as mobile phones and tablets. When playing videos on the screen of an electronic device, the refresh rate of the screen will directly affect the video playback effect and the smoothness of the bullet screen in the video. If the refresh rate of the screen is only adapted according to the played video, it will cause the bullet screen to freeze when it appears, affecting the video playback effect. Therefore, the control of the refresh rate of the screen is particularly critical.
[0052] To solve the above problem, the video playback software can control the screen refresh rate according to the playback scene through the variable refresh rate (VRR) method. When the barrage function is detected to be turned on, the screen refresh rate is controlled to a higher fixed value such as 60Hz. This method cannot adjust the screen refresh rate in time according to whether there is actually a barrage in the display screen. When the barrage function is turned on but there is no barrage in the display screen, the screen is controlled to always maintain a high refresh rate, which will cause excessive power consumption.
[0053] Based on this, an exemplary embodiment of the present disclosure provides a screen control method. When the barrage function is in the on state, if there is a barrage in the display screen, the screen is controlled to be displayed at a higher first refresh rate, thereby effectively reducing or preventing the barrage from being stuck and ensuring the smoothness of video playback. If the barrage function is turned on but there is no barrage in the display screen, the screen is controlled to be displayed at a lower second refresh rate, which can avoid excessive power consumption caused by continuing to display at an excessively high refresh rate when there is no barrage, thereby effectively reducing power consumption. In this way, the screen control method of the present disclosure can adjust the refresh rate of the screen in a timely manner according to whether there is actually a barrage in the display screen during the video playback process with the barrage function turned on, thereby saving overall power consumption while ensuring the smoothness of the video and barrage.
[0054] In an exemplary embodiment, a screen control method is provided. The screen may be a screen of an electronic device having a screen display function, such as a mobile phone, a tablet computer, a laptop computer, etc. Figure 1 As shown, the screen control method includes:
[0055] S100: When the bullet screen function is turned on, if there is a bullet screen in the display, control the screen to display at a first refresh rate.
[0056] In step S100, when playing a video using a video playback software or platform through an electronic device with a screen display function, the barrage function of the video can be turned on or off to control whether the barrage can appear in the display screen. When the barrage function is turned off, regardless of whether the currently playing video has a barrage, it will not be displayed in the display screen. When the barrage function is turned on, for different videos or different video playback progress, there may or may not be a barrage in the display screen. If there is a barrage in the display screen, that is, there is actually a barrage in the currently playing screen, the screen is controlled to display at a first refresh rate. The refresh rate of the screen described in this article can be, for example, the number of times the screen refreshes the displayed content in a unit time. A screen refresh rate of 1Hz means that it is refreshed once per second.
[0057] S200. When the barrage function is turned on, if there is no barrage in the displayed image, the screen is controlled to display at a second refresh rate, and the first refresh rate is higher than the second refresh rate.
[0058] In step S200, if there is no barrage in the displayed picture, that is, although the barrage function is turned on, there is actually no barrage in the currently played picture, the screen is controlled to be displayed at the second refresh rate. Among them, the first refresh rate is higher than the second refresh rate. Exemplarily, when the barrage function is turned on, if there is a barrage in the displayed picture, the screen is controlled to be displayed at the first refresh rate of 60Hz, and if there is no barrage in the displayed picture, the screen is controlled to be displayed at the second refresh rate of 30Hz.
[0059] In this embodiment, when the barrage function is turned on, if there is a barrage in the display screen, the screen is controlled to display at a higher first refresh rate, thereby effectively reducing or preventing the barrage from freezing and ensuring the smoothness of video playback. If the barrage function is turned on but there is no barrage in the display screen, the screen is controlled to display at a lower second refresh rate, which can avoid excessive power consumption caused by continuous display at an excessively high refresh rate when there is no barrage, thereby effectively reducing power consumption. In this way, during the video playback process with the barrage function turned on, the screen refresh rate can be adjusted in time according to whether there is actually a barrage in the display screen, saving overall power consumption while ensuring the smoothness of the video and barrage.
[0060] In some embodiments, the first refresh rate is an automatic refresh rate corresponding to when the barrage appears.
[0061] Among them, when a bullet screen appears, that is, there is a bullet screen in the display screen, the video playback software or platform will usually automatically adjust the screen refresh rate at this time to a corresponding fixed refresh rate, that is, the automatic refresh rate corresponding to the appearance of the bullet screen. In this embodiment, the screen is controlled to display at the automatic refresh rate automatically adjusted when the bullet screen appears, and as long as the bullet screen continues to appear, that is, there is always a bullet screen in the display screen, the screen is always controlled to maintain the automatic refresh rate for display. Exemplarily, the automatic refresh rate corresponding to the appearance of the bullet screen is 60Hz. If there is a bullet screen in the display screen, the screen is controlled to display at a refresh rate of 60Hz.
[0062] In this embodiment, the automatic refresh rate corresponding to the appearance of the bullet screen is used as the first refresh rate. When the bullet screen appears, the screen can be controlled to display at the automatic refresh rate, so that the screen refresh rate at this time maintains a refresh rate that is compatible with the bullet screen, avoiding the barrage freeze caused by the screen refresh rate being too low when the bullet screen appears, and ensuring the smoothness of video playback. In addition, the automatic refresh rate is directly used as the first refresh rate, and there is no need to adjust the refresh rate according to other factors, which improves the response speed of determining the refresh rate of the screen.
[0063] In some embodiments, the second refresh rate is determined based on a video frame rate of a currently playing video.
[0064] Among them, if there is no barrage in the display screen, the second refresh rate can be determined according to the video frame rate of the currently playing video. The video frame rate is the frequency of continuous appearance of images in frames in the video. The video frame rate of the currently playing video is a fixed value. If the video frame rate is 1Hz, it means that one frame of image appears per second. When there is no barrage in the display screen, it is necessary to control the screen to display at a lower refresh rate to avoid unnecessary power consumption caused by the high refresh rate, and the refresh rate of the screen needs to be adapted to the video frame rate to ensure the playback effect and smoothness of the video. The second refresh rate corresponding to the video frame rate can be determined according to the video frame rate of the video, and the screen can be controlled to display at the second refresh rate. Exemplarily, the second refresh rate can be equal to the refresh rate corresponding to the video frame rate of the currently playing video, or it can be slightly larger than the refresh rate corresponding to the video frame rate of the currently playing video.
[0065] In this embodiment, the corresponding second refresh rate is determined according to the video frame rate of the currently playing video, which can ensure that the second refresh rate is compatible with the video frame rate, and then when there is no bullet screen in the display screen, the screen can be controlled to display at the second refresh rate to ensure the playback effect and smoothness of the video. In addition, the corresponding second refresh rate is determined according to the video frame rate of the currently playing video, and the screen can also be controlled to display at a lower refresh rate, avoiding excessive power consumption caused by a high refresh rate.
[0066] In some embodiments, the second refresh rate corresponds to the first refresh rate gear, the video frame rate of the currently playing video corresponds to the second refresh rate gear, and the first refresh rate gear is one gear higher than the second refresh rate gear.
[0067] Among them, the second refresh rate and the video frame rate of the currently playing video correspond to the first refresh rate gear and the second refresh rate gear respectively. When the corresponding second refresh rate is determined based on the video frame rate of the currently playing video, the first refresh rate gear can be determined to be one gear higher than the second refresh rate gear, so that the value of the second refresh rate is greater than the value of the video frame rate.
[0068] Exemplarily, the refresh rate of the screen can include multiple different refresh rate gears such as 24Hz, 30Hz, 60Hz, 90Hz, 120Hz, etc. The video frame rate of the currently playing video is 24Hz, and the corresponding second refresh rate gear is 24Hz. The first refresh rate gear can be determined to be 30Hz, which is one gear higher than the second refresh rate gear, so that the second refresh rate is 30Hz.
[0069] In this embodiment, by setting the first refresh rate gear to be one gear higher than the second refresh rate gear, it is ensured that the value of the second refresh rate is greater than the value of the video frame rate, so that when there is no bullet screen in the display screen and the screen is controlled to display at the second refresh rate, when the display screen changes from the absence of bullet screen to the presence of bullet screen, the actual frame rate of the screen can be greater than the video frame rate, which is convenient for continuously judging whether there is a bullet screen in the display screen in real time according to the actual frame rate of the screen and the video frame rate of the currently playing video, and providing a basis for continuous control of the refresh rate of the screen (detailed introduction is later). In addition, the first refresh rate gear is only one gear higher than the second refresh rate gear, which ensures the timeliness of the judgment of whether the bullet screen appears, while reducing the second refresh rate as much as possible, avoiding excessive power consumption caused by the high refresh rate.
[0070] In some embodiments, reference Figure 2 As shown, when the bullet screen function is turned on, the screen control method also includes:
[0071] S300: Obtain the actual frame rate of the screen.
[0072] In step S300, the actual frame rate is the current statistical frame rate of the screen, which is the actual frame rate when playing the video, and is determined by factors such as the video frame rate of the currently playing video and whether there is a bullet screen in the display screen. The actual frame rate can be extracted from the background data.
[0073] S400: Determine whether there is a bullet comment in the display screen based on the actual frame rate and the video frame rate of the currently playing video.
[0074] In step S400, it can be determined whether there is a barrage in the display screen based on the video frame rate of the currently playing video and the actual frame rate of the screen obtained, so that when the barrage function is turned on, the screen can be controlled to display at the first refresh rate or the second refresh rate based on whether there is a barrage in the display screen.
[0075] In this embodiment, by obtaining the actual frame rate of the screen, it is possible to determine whether there is a barrage in the display screen based on the actual frame rate and the video frame rate of the currently playing video, and then when the barrage function is in the on-state, the screen can be controlled to display at the first refresh rate or the second refresh rate based on whether there is a barrage in the display screen, thereby providing a basis for controlling the refresh rate of the screen, saving overall power consumption while ensuring the smoothness of the video and barrage.
[0076] In some embodiments, based on the actual frame rate and the video frame rate of the currently playing video, determining whether there is a bullet comment in the display screen includes:
[0077] S410: If the actual frame rate is greater than the video frame rate, determine that there is a bullet screen in the display screen.
[0078] S420: If the actual frame rate is equal to the video frame rate, determine that no bullet screen exists in the display screen.
[0079] In step S410 to step S420, the actual frame rate of the screen is compared with the video frame rate of the currently playing video. If the actual frame rate is greater than the video frame rate, it means that barrage appears and affects the actual frame rate of the screen. It can be determined that barrage exists in the display screen at this time. If the actual frame rate is equal to the video frame rate, it means that no barrage appears, and the actual frame rate is only affected by the video frame rate. It can be determined that there is no barrage in the display screen at this time. It can be understood that the actual frame rate described here is equal to the video frame rate, which can be completely equal or approximately equal.
[0080] In this embodiment, by comparing the actual frame rate of the screen with the video frame rate of the currently playing video, it is possible to determine the presence or absence of barrage when the actual frame rate is greater than the video frame rate and when the actual frame rate is equal to the video frame rate, respectively, thereby realizing the judgment of whether there is barrage in the display screen based on the actual frame rate and the video frame rate. Furthermore, when the barrage function is on, the screen can be controlled to display at the first refresh rate or the second refresh rate based on whether there is barrage in the display screen, thereby providing a basis for controlling the refresh rate of the screen, saving overall power consumption while ensuring the smoothness of the video and barrage.
[0081] In the embodiment where the second refresh rate is equal to the refresh rate corresponding to the video frame rate, at the moment when the bullet screen appears, since the screen is still refreshed at the refresh rate corresponding to the video frame rate, the actual frame rate of the screen remains equal to the video frame rate due to the limitation of the screen refresh rate. Since the video playback software or platform will automatically increase the screen refresh rate to the automatic refresh rate when the bullet screen appears, the actual frame rate of the screen will be greater than the video frame rate due to the appearance of the bullet screen at the next moment when the bullet screen appears. At this time, it is determined that there is a bullet screen in the display screen, and the refresh rate of the control screen is maintained at the automatic refresh rate.
[0082] In other embodiments, before obtaining the actual frame rate of the screen, the screen control method also includes: adjusting the refresh rate of the screen to a second refresh rate, the second refresh rate is greater than the refresh rate corresponding to the video frame rate and less than the automatic refresh rate corresponding to when the barrage appears.
[0083] Among them, before obtaining the actual frame rate of the screen, the refresh rate of the screen is first adjusted to a second refresh rate, and the second refresh rate is greater than the refresh rate corresponding to the video frame rate and less than the automatic refresh rate corresponding to the appearance of the barrage. Exemplarily, the video frame rate and the corresponding refresh rate are both 24Hz, and the automatic refresh rate corresponding to the appearance of the barrage is 60Hz, for example. Then, before obtaining the actual frame rate of the screen, the refresh rate of the screen can be first adjusted to a second refresh rate of 30Hz. Exemplarily, the second refresh rate is less than the first refresh rate and the first refresh rate gear corresponding to the second refresh rate is one gear higher than the second refresh rate gear corresponding to the video frame rate.
[0084] In this embodiment, before obtaining the actual frame rate of the screen, the refresh of the screen is first adjusted to the second refresh rate, ensuring that the second refresh rate is greater than the refresh rate corresponding to the video frame rate, so that when the bullet screen appears, the actual frame rate of the screen will be greater than the video frame rate, so that when the bullet screen appears, it can be judged that there is a bullet screen in the display screen. In addition, the second refresh rate is less than the automatic refresh rate corresponding to the appearance of the bullet screen, ensuring that it can be judged whether there is a bullet screen in the display screen, while reducing the second refresh rate as much as possible, avoiding excessive power consumption caused by a high refresh rate.
[0085] In some embodiments, the screen control method also includes: when the barrage function is in an off state, controlling the screen to display at a third refresh rate, and the third refresh rate corresponds to the video frame rate of the currently playing video.
[0086] Among them, when the bullet screen function is turned off, for any video or video playback progress, there will be no bullet screen in the display screen, and at this time, the screen can be controlled to display at a third refresh rate corresponding to the video frame rate of the currently playing video. For example, the video frame rate of the currently playing video and its corresponding third refresh rate are 24Hz, and when the bullet screen function is turned off, the screen is controlled to display at a refresh rate of 24Hz.
[0087] In this embodiment, when the barrage function is in the off state, the control screen is displayed at the third refresh rate. When it is impossible for barrage to appear in the display screen, there is no need to ensure that the refresh rate of the screen can be used to determine whether there is barrage in the display screen. The control screen is always displayed at a refresh rate corresponding to the video frame rate of the currently playing video, so that the refresh rate of the screen is always maintained at the minimum refresh rate that can ensure the video playback effect, thereby saving power consumption.
[0088] In some embodiments, reference Figure 3 As shown, the screen control method also includes:
[0089] S500: When it is determined that the preset detection condition is met, a detection image of the display screen within a preset detection range is obtained.
[0090] In step S500, the monitoring state is turned on and maintained, and when it is determined that the current scene meets the preset detection condition, a detection image of the display screen within the preset detection range is obtained. Exemplarily, the acquisition of the detection image can be, for example, by taking a screenshot of the preset detection range of the display screen when the preset detection condition is triggered by a concurrent write back (CWB) module. The preset detection range can, for example, include the entire display screen, or a partial area of the display screen.
[0091] S600: Determine whether the bullet screen function is turned on according to the detected image.
[0092] In step S600, it is determined whether the barrage function is in an on state or in an off state according to the acquired detection image. It should be noted that step S500 and step S600 are performed before the above steps. After determining whether the barrage function is in an on state, the refresh rate of the subsequent screen can be determined according to whether the barrage function is in an on state or an off state according to the above steps.
[0093] In this embodiment, by obtaining a detection image of the display screen within a preset detection range when it is determined that the preset detection conditions are met, it is possible to determine whether the barrage function is in an on state based on the detection image, thereby realizing the judgment of the on and off states of the barrage function, and providing a basis for the subsequent determination of the corresponding screen refresh rate when the barrage function is in an on or off state, thereby realizing the selection of different refresh rates of the screen in different situations.
[0094] In some embodiments, the preset detection conditions include: the display screen is displayed in full screen and a touch screen operation is detected.
[0095] When using different video playback software or platforms to play videos, option buttons for controlling different functions are included in the display screen, such as option buttons for controlling definition selection, playback progress selection, language selection, and bullet screen function. These option buttons usually pop up only when the display screen is displayed in full screen and the user touches and clicks the screen.
[0096] In this embodiment, the preset detection conditions are set so that the display screen is displayed in full screen and a touch screen operation is detected, so that when it is determined that the detection conditions are met, the option button for controlling the status of the barrage function can pop up in the display screen, and then when the detection image is acquired, the option button can be presented in the detection image, so as to facilitate the subsequent determination of whether the barrage function is in the turned-on state based on the detection image.
[0097] In some embodiments, determining whether the barrage function is in an on state according to a detection image includes: determining whether the barrage function is in an on state based on a detection image and an image recognition model.
[0098] For example, images of areas corresponding to a preset detection range in multiple different display screens when the bullet screen function is in an on state or an off state can be used as samples, and an image recognition model can be obtained by sample training. The image recognition model is used to determine whether the bullet screen function is in an on state or in an off state according to the image. Exemplarily, the detection image can be input into the image recognition model, and the image recognition model can determine whether the option button for controlling the state of the bullet screen function in the detection image is selected. When the option button for turning on the bullet screen function is selected, it can be determined that the bullet screen function is in an on state. When the option button for turning on the bullet screen function is not selected, it can be determined that the bullet screen function is in an off state.
[0099] In this embodiment, whether the barrage function is in an on state is determined based on the detection image and the image recognition model, thereby realizing the determination of whether the barrage function is in an on state based on the detection image, providing a basis for the subsequent determination of the corresponding screen refresh rate when the barrage function is in an on state or an off state, thereby realizing the selection of different screen refresh rates in different situations.
[0100] In some embodiments, the preset detection range includes the area where the option button for controlling the barrage function status is located.
[0101] In this embodiment, the preset detection range is set to include the area where the option button for controlling the status of the barrage function is located, ensuring that the option button can be presented in the detection image when the detection image is acquired, thereby facilitating the subsequent determination of whether the barrage function is in the on state based on whether the option button is selected in the detection image, thereby improving the accuracy of judging whether the barrage function is in the on state.
[0102] In an exemplary embodiment, a screen control method is provided, referring to Figure 4 As shown, the screen control method includes:
[0103] S1. When it is determined that the display screen is displayed in full screen and a touch screen operation is detected, a detection image of the display screen within a preset detection range is obtained;
[0104] S2. Based on the detected image and the image recognition model, determine whether the bullet screen function is turned on. If so, execute S3; otherwise, execute S8.
[0105] S3, adjusting the refresh rate of the screen to a second refresh rate, where the second refresh rate is greater than the refresh rate corresponding to the video frame rate and less than the automatic refresh rate corresponding to when the barrage appears;
[0106] S4, obtaining the actual frame rate of the screen;
[0107] S5. Based on the actual frame rate and the video frame rate of the currently playing video, determine whether there is a bullet screen in the display screen. If so, execute S6; otherwise, execute S7;
[0108] S6. Control the screen to display at a first refresh rate, where the first refresh rate is an automatic refresh rate corresponding to when the bullet screen appears;
[0109] S7, controlling the screen to display at a second refresh rate;
[0110] S8. Control the screen to display at a third refresh rate, where the third refresh rate corresponds to a video frame rate of the currently playing video.
[0111] In this embodiment, by judging whether the barrage function is in the on state, and judging whether there is a barrage in the display screen when the barrage function is in the on state, the refresh rate of the screen corresponding to different situations can be determined. When the barrage function is in the on state, if there is a barrage in the display screen, the screen is controlled to display at a higher first refresh rate, thereby effectively reducing or preventing the barrage from freezing and ensuring the smoothness of video playback. If the barrage function is turned on but there is no barrage in the display screen, the screen is controlled to display at a lower second refresh rate, which can avoid excessive power consumption caused by continuous display at an excessively high refresh rate when there is no barrage, thereby effectively reducing power consumption. In this way, during the video playback process with the barrage function turned on, the refresh rate of the screen can be adjusted in time according to whether there is actually a barrage in the display screen, and during the video playback process with the barrage function turned off, the refresh rate of the screen is determined to correspond to the video frame rate, while ensuring the smoothness of the video and barrage, saving overall power consumption.
[0112] In an exemplary embodiment, reference Figure 5 As shown, a screen control device is provided, the screen control device includes a first control module 10 and a second control module 20. The first control module 10 is used to control the screen to display at a first refresh rate when the barrage function is turned on and there is a barrage in the display screen. The second control module 20 is used to control the screen to display at a second refresh rate when the barrage function is turned on and there is no barrage in the display screen, and the first refresh rate is higher than the second refresh rate.
[0113] In this embodiment, when the barrage function is turned on, if there is a barrage in the display screen, the first control module 10 controls the screen to display at a higher first refresh rate, thereby effectively reducing or preventing the barrage from freezing and ensuring the smoothness of video playback. If the barrage function is turned on but there is no barrage in the display screen, the second control module 20 controls the screen to display at a lower second refresh rate, which can avoid excessive power consumption caused by continuous display at an excessively high refresh rate when there is no barrage, thereby effectively reducing power consumption. In this way, during the video playback process with the barrage function turned on, the screen refresh rate can be adjusted in time according to whether there is actually a barrage in the display screen, saving overall power consumption while ensuring the smoothness of the video and barrage.
[0114] In some embodiments, the screen control device also includes a first acquisition module and a first determination module. The first acquisition module is used to obtain the actual frame rate of the screen, and the first determination module is used to determine whether there is a barrage in the display screen based on the actual frame rate and the video frame rate of the currently playing video.
[0115] In this embodiment, the actual frame rate of the screen is obtained through the first acquisition module, and the first determination module can determine whether there is a barrage in the display screen according to the actual frame rate and the video frame rate of the currently playing video. Then, when the barrage function is in the turned-on state, the screen can be controlled to display at the first refresh rate or the second refresh rate according to whether there is a barrage in the display screen, which provides a basis for controlling the refresh rate of the screen, saving overall power consumption while ensuring the smoothness of the video and barrage.
[0116] In one embodiment, the first determination module is further used to: if the actual frame rate is greater than the video frame rate, determine that there is a barrage in the display screen; if the actual frame rate is equal to the video frame rate, determine that there is no barrage in the display screen.
[0117] In some embodiments, the screen control device also includes a third control module, which is used to control the screen to display at a third refresh rate when the barrage function is in an off state, and the third refresh rate corresponds to the video frame rate of the currently playing video.
[0118] In this embodiment, when the barrage function is in the off state, the screen is controlled by the third control module to display at a third refresh rate. When it is impossible for barrage to appear in the display screen, there is no need to ensure that the refresh rate of the screen can be used to determine whether there is barrage in the display screen. The screen is controlled to always display at a refresh rate corresponding to the video frame rate of the currently playing video, so that the refresh rate of the screen is always maintained at the minimum refresh rate that can ensure the video playback effect, thereby saving power consumption.
[0119] In some embodiments, the screen control device further includes a second acquisition module and a second determination module, wherein the second acquisition module is used to obtain a detection image of the display screen within a preset detection range when the preset detection condition is determined to be met. The second determination module is used to determine whether the bullet screen function is in an on state based on the detection image.
[0120] In this embodiment, the second acquisition module obtains a detection image of the display screen within the preset detection range when it is determined that the preset detection conditions are met. The second determination module can determine whether the barrage function is in the on state based on the detection image, thereby realizing the judgment of the on and off states of the barrage function, providing a basis for the subsequent determination of the corresponding screen refresh rate when the barrage function is in the on or off state, thereby realizing the selection of different refresh rates of the screen in different situations.
[0121] In one embodiment, the second determination module is further used to determine whether the barrage function is in an on state based on the detection image and the image recognition model.
[0122] In an exemplary embodiment, an electronic device is provided. The electronic device is an electronic device with a picture display function, such as a mobile phone, a tablet computer, a laptop computer, etc. The electronic device displays pictures through a screen.
[0123] refer to Figure 6 As shown, the electronic device may include one or more of the following components: a processing component 101 , a memory 102 , a power component 103 , a multimedia component 104 , an audio component 105 , an input / output (I / O) interface 106 , a sensor component 107 , and a communication component 108 .
[0124] The processing component 101 generally controls the overall operation of the electronic device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 101 may include one or more processors 109 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 101 may include one or more modules to facilitate the interaction between the processing component 101 and other components. For example, the processing component 101 may include a multimedia module to facilitate the interaction between the multimedia component 104 and the processing component 101.
[0125] The memory 102 is configured to store various types of data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc. The memory 102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0126] The power component 103 provides power to various components of the electronic device. The power component 103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device.
[0127] The multimedia component 104 includes a screen that provides an output interface between the electronic device and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 104 includes a front camera and / or a rear camera. When the electronic device is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0128] The audio component 105 is configured to output and / or input audio signals. For example, the audio component 105 includes a microphone (MIC), and when the electronic device is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 102 or sent via the communication component 108. In some embodiments, the audio component 105 also includes a speaker for outputting audio signals.
[0129] I / O interface 106 provides an interface between processing component 101 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0130] The sensor assembly 107 includes one or more sensors for providing various aspects of status assessment for the electronic device. For example, the sensor assembly 107 can detect the on / off state of the electronic device, the relative positioning of components, such as the display and keypad of the electronic device, and the sensor assembly 107 can also detect the position change of the electronic device or a component of the electronic device, the presence or absence of user contact with the electronic device, the orientation or acceleration / deceleration of the electronic device and the temperature change of the electronic device. The sensor assembly 107 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 107 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 107 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0131] The communication component 108 is configured to facilitate wired or wireless communication between the electronic device and other devices. The device can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 108 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 108 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0132] In an exemplary embodiment, the electronic device may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned screen control method applied to the electronic device.
[0133] In an exemplary embodiment, a non-temporary computer-readable storage medium including instructions is also provided, such as a memory 102 including instructions, and the above instructions can be executed by a processor 109 of an electronic device to complete the above-mentioned screen control method applied to the electronic device. For example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a tape, a floppy disk, and an optical data storage device. When the instructions in the storage medium are executed by the processor 109 of the electronic device, the electronic device is enabled to execute the screen control method shown in the above embodiment.
[0134] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0135] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A screen control method, characterized in that: The screen control method comprises: When the bullet screen function is turned on, if there is a bullet screen in the display, the screen is controlled to display at the first refresh rate; When the barrage function is turned on, if there is no barrage in the displayed image, the screen is controlled to display at a second refresh rate, and the first refresh rate is higher than the second refresh rate.
2. The screen control method according to claim 1, characterized in that: When the bullet screen function is turned on, the screen control method further includes: Get the actual frame rate of the screen; Based on the actual frame rate and the video frame rate of the currently playing video, determine whether there is a bullet screen in the display screen.
3. The screen control method according to claim 2, characterized in that: The determining whether there is a bullet screen in the display screen based on the actual frame rate and the video frame rate of the currently playing video includes: If the actual frame rate is greater than the video frame rate, determining that there is a bullet screen in the display screen; If the actual frame rate is equal to the video frame rate, it is determined that no bullet screen exists in the display image.
4. The screen control method according to claim 3, characterized in that: Before acquiring the actual frame rate of the screen, the screen control method further includes: The refresh rate of the screen is adjusted to the second refresh rate, where the second refresh rate is greater than the refresh rate corresponding to the video frame rate and less than the automatic refresh rate corresponding to when the barrage appears.
5. The screen control method according to any one of claims 1 to 4, characterized in that: The screen control method further includes: When the barrage function is in the off state, the screen is controlled to display at a third refresh rate, and the third refresh rate corresponds to the video frame rate of the currently playing video.
6. The screen control method according to any one of claims 1 to 4, characterized in that: The screen control method further includes: When it is determined that the preset detection conditions are met, a detection image of the display screen within the preset detection range is obtained; According to the detection image, determine whether the barrage function is in an on state.
7. The screen control method according to claim 6, characterized in that: The preset detection conditions include: The display screen is displayed in full screen and a touch screen operation is detected.
8. The screen control method according to claim 6, characterized in that: The determining, according to the detection image, whether the bullet screen function is in an on state includes: Based on the detection image and the image recognition model, determine whether the barrage function is in an enabled state.
9. The screen control method according to any one of claims 1 to 4, characterized in that: The first refresh rate is an automatic refresh rate corresponding to when the bullet screen appears; and / or, The second refresh rate is determined based on the video frame rate of the currently playing video.
10. A screen control device, characterized in that: The screen control device comprises: A first control module, wherein when the bullet screen function is turned on, if there is a bullet screen in the display, the first control module is used to control the screen to display at a first refresh rate; The second control module is used to control the screen to display at a second refresh rate when the barrage function is turned on and there is no barrage in the display screen, and the first refresh rate is higher than the second refresh rate.
11. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: When the bullet screen function is turned on, if there is a bullet screen in the display, the screen is controlled to display at the first refresh rate; When the barrage function is turned on, if there is no barrage in the displayed image, the screen is controlled to display at a second refresh rate, and the first refresh rate is higher than the second refresh rate.
12. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute a screen control method, the screen control method comprising: When the bullet screen function is turned on, if there is a bullet screen in the display, the screen is controlled to display at the first refresh rate; When the barrage function is turned on, if there is no barrage in the displayed image, the screen is controlled to display at a second refresh rate, and the first refresh rate is higher than the second refresh rate.
Citation Information
Patent Citations
Frame rate control method and device, terminal and storage medium
CN110798738A
Bullet screen generation method and device and computer readable storage medium
CN112118491A
Video playing method and device, storage medium and terminal
CN115842941A
Bullet screen identification method and related device
CN116095382A
Display device and mirror image projection screen data display method
CN116489438A