Image display method, device, electronic device and storage medium

By displaying the target image in the designated display area of ​​the electronic device, the display difference between the display screen above the sensor device and other areas at low brightness is solved, improving the user experience and achieving a more unified full-screen display effect.

CN115442458BActive Publication Date: 2025-03-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110624376.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-04
Publication Date
2025-03-14
Estimated Expiration
2041-06-04

AI Technical Summary

Technical Problem

When the prior art realizes full-screen display, the display screen above the sensor device is made of special materials, resulting in significant display differences from other display areas under low grayscale and low brightness, affecting the user experience.

Method used

By detecting that when the electronic device is in the specified state (the screen is in the displayed state and the display brightness is lower than the specified brightness), a target image is displayed in the specified display area where the functional device is located below to block the abnormal display area and improve the display difference.

Benefits of technology

It effectively improves the display differences between the display area above the functional device and other areas of the screen, improves the user experience, and achieves a more unified full-screen display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442458B_ABST
    Figure CN115442458B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide an image display method, device, electronic device and storage medium, which relate to the field of image display. The method is applied to an electronic device, the electronic device includes a screen, and a functional device is arranged below a designated display area of ​​the screen, the method comprising: when it is detected that the electronic device is in a designated state, determining a target image, wherein in the designated state, the screen is in a display state and the display brightness is lower than a designated brightness of the screen; and displaying the target image in the designated display area. The present application can improve the display difference between the display area above the functional device of the electronic device and other areas of the screen by displaying the target image in a display area with a functional device arranged below when the screen is in a display state and the display brightness is lower than the designated brightness of the screen and the electronic device is in a designated state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image display of electronic devices, and more specifically, to an image display method, device, electronic device and storage medium. Background Art

[0002] At present, in order to achieve full-screen display, portable electronic products such as mobile phones and tablets place sensor devices under the display screen. The display screen can display normally when the sensor device is not in use, but in order to avoid the display screen affecting the function of the sensor device, the display screen in the area above the sensor device is made of special materials, which has obvious display differences with other display areas under low grayscale and low brightness conditions, affecting user use. Summary of the invention

[0003] The present application proposes an image display method, device, electronic device and storage medium to improve the above-mentioned defects.

[0004] In a first aspect, an embodiment of the present application provides an image display method, which is applied to an electronic device, wherein the electronic device includes a screen, and a functional device is arranged below a designated display area of ​​the screen. The method includes: when it is detected that the electronic device is in a designated state, determining a target image, wherein in the designated state, the screen is in a display state and the display brightness is lower than the designated brightness of the screen; and displaying the target image in the designated display area.

[0005] In a second aspect, an embodiment of the present application further provides an image display device, which is applied to an electronic device, wherein the electronic device includes a screen, and a functional device is arranged below a designated display area of ​​the screen, and the device includes: a determination unit and a display unit. The determination unit is used to determine a target image when it is detected that the electronic device is in a designated state, wherein in the designated state, the screen is in a display state and the display brightness is lower than the designated brightness of the screen; and the display unit is used to display the target image in the designated display area.

[0006] In the third aspect, an embodiment of the present application also provides an electronic device, comprising one or more processors, a memory and a screen, wherein a functional device is arranged below a designated display area of ​​the screen; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to perform the following operations: when it is detected that the electronic device is in a designated state, determining a target image, wherein in the designated state, the screen is in a display state and the display brightness is lower than a designated brightness of the screen; and displaying the target image in the designated display area.

[0007] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.

[0008] The image display method, device, electronic device and storage medium provided by the present application determine a target image when it is detected that the electronic device is in a specified state, wherein in the specified state, the screen is in a display state and the display brightness is lower than the specified brightness of the screen, and the target image is displayed in a specified display area with a functional device arranged below, which can improve the display difference between the display area above the functional device of the electronic device and other areas of the screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic diagram of a display interface of an electronic device provided in an embodiment of the present application is shown;

[0011] Figure 2 A method flow chart of an image display method provided by another embodiment of the present application is shown;

[0012] Figure 3 A schematic diagram of a display interface of an electronic device provided in another embodiment of the present application is shown;

[0013] Figure 4 A schematic diagram of a target image setting interface provided by another embodiment of the present application is shown;

[0014] Figure 5 A method flow chart of an image display method provided by an embodiment of the present application is shown;

[0015] Figure 6 A schematic diagram of a display interface of an electronic device provided in another embodiment of the present application is shown;

[0016] Figure 7 A method flow chart of an image display method provided by an embodiment of the present application is shown;

[0017] Figure 8 A schematic diagram of a display interface of an electronic device provided in an embodiment of the present application is shown;

[0018] Fig. 9 A schematic diagram showing a portion of a display interface of an electronic device provided by another embodiment of the present application is shown;

[0019] Fig.10 A schematic diagram of a display interface of an electronic device provided in another embodiment of the present application is shown;

[0020] Fig.11 A module block diagram of an image display device of an electronic device provided by an embodiment of the present application is shown;

[0021] Fig.12 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;

[0022] Fig.13 A computer-readable medium for storing or carrying a program code for implementing an image display method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0024] At present, in order to achieve full-screen display, portable electronic products such as mobile phones and tablets place sensor devices under the display screen. When the sensor device is not in use, the display screen can display the picture normally. When the sensor device is enabled, the display function of the upper display area will be temporarily turned off. Sensor devices usually include photosensitive devices. Therefore, the light transmittance of the display screen in the upper display area needs to be higher than that of other areas to reduce the diffraction problem in this area and enable the photosensitive device to be used normally. In order to meet this requirement, there are usually three solutions in the prior art: Solution 1, the pixels of the display area are removed according to a certain ratio; Solution 2, a display driver circuit is used to drive two pixels, and the colors of the two pixels are exactly the same, resulting in obvious jagged edges if there is a color boundary in the displayed picture; Solution 3, all light-emitting units are retained, and one display driver unit drives one pixel unit. The display effect is better than the previous two solutions, but the increase in light-emitting units leads to serious diffraction, and the functional effect of the sensor device is poor. The display screens in the upper display area involved in the above three solutions are usually made of special materials, such as flexible AMOLED (Active-matrix organic light-emitting diode) display screens. Since the light-emitting units made of special materials are different from those in the normal display area, the color consistency of the upper display area at low brightness is poor, and ultimately the abnormality is clearly visible when displaying pictures. The boundary between the two display areas is prominently visible, which greatly affects the display effect of the full screen.

[0025] The inventor found in the study that the difference display effect of the display area being brighter or darker at night or in a dark environment is more obvious. In order to optimize the above problems, the inventor proposes that in the above two cases, the display area can be made to display an image alone to block the abnormal display area, and the image can be given a new function or definition, etc., so as to truly realize full-screen display. Based on this, the application embodiment provides an image display method, device, electronic device and storage medium, and the execution subject of the method can be the image display device provided by the embodiment of the present application, or an electronic device integrating the image display device, wherein the image display device can be implemented in hardware or software. Among them, the electronic device can be a tablet computer, a game console, an e-book reader, a multimedia playback device, a smart watch, a mobile phone, a PC (Personal Computer) and other devices. Multiple applications are installed in the electronic device, and users can use multiple applications to achieve different functions and uses. For example, use video playback software to watch videos, use electronic game software to play games, use instant messaging applications to chat text, voice or video, and use social network platform software to share, disseminate and browse information.

[0026] like Figure 1 As shown, it shows a schematic diagram of the screen of an electronic device provided by an embodiment of the present application. In the embodiment of the present application, the screen 110 of the electronic device 100 includes a designated display area 120, and a functional device 130 is arranged below the designated display area 120. When the functional device 130 is not enabled, the functional device will be hidden, the designated display area 120 is in a display state, and the designated display area 120 will form a full screen with the main display area, and display images at the same time, and the human eye cannot observe the functional device 130 through the designated display area 120, wherein the main display area is the other display area on the screen 110 except the designated display area 120; when the functional device is enabled, the designated display area 120 does not display any image.

[0027] Please refer to Figure 2 , which shows a method flow chart of an image display method provided by another embodiment of the present application, which is applied to an electronic device, wherein the electronic device includes a screen, and the present application is based on Figure 1 The screen shown is taken as an example for illustrative description, and a functional device 130 is arranged below the designated display area 120 of the screen 110. The method includes: S210 to S220.

[0028] Step S210: When it is detected that the electronic device is in a specified state, a target image is determined, wherein in the specified state, the screen is in a display state and the display brightness is lower than the specified brightness of the screen.

[0029] The target image will be displayed only when the specified conditions are met, and the target image will be different under different conditions. In an embodiment of the present application, it is detected that the electronic device is in a specified state, and in the specified state, the screen of the electronic device is in a display state and the display brightness of the screen is lower than the specified brightness of the screen, and the image determined at this time is used as the target image. That is to say, in the specified state of the electronic device, at least two items need to be detected: whether the screen of the electronic device is in a display state and the display brightness of the electronic device is lower than the specified brightness of the screen.

[0030] The screen of the electronic device will display an image only when the screen is in the display state. Exemplarily, whether the electronic device is in the display state can be detected in the following manner.

[0031] Method 1: Considering that when an electronic device is in sleep or standby mode, the screen of the electronic device is off and the device does not display any image, it is possible to indirectly verify whether the screen is in display mode by detecting whether the electronic device is in sleep or standby mode. Only when the electronic device is not in sleep or standby mode can it be determined that the electronic device is in display mode. Method 2: Directly detect whether the screen of the electronic device is working. For example, detect whether the electronic device is powering the screen, whether the light-emitting device of the electronic device is working, etc.

[0032] In the specified state of the electronic device, in addition to the screen being in the display state, the display brightness of the screen also needs to be detected. As mentioned above, due to the presence of functional devices in the specified display area of ​​the screen, the display screen of the specified display area is made of special materials. The display screen of this special material is different from the normal display screen, resulting in poor color consistency between the specified display area and the main display area under low brightness. Therefore, when the display brightness of the screen is lower than the specified brightness of the screen, the target image is determined. In some embodiments, the specified brightness of the screen can be the critical screen brightness value when the color of the specified display area is inconsistent with that of the main display area. When the brightness of the screen is lower than the specified brightness of the screen, there will be a color display difference between the specified display area and the main display area. For example, the brightness of an electronic device is 0 for the lowest screen brightness, and the brightness is 100 for the highest screen brightness. When the screen brightness value is lower than 10, the colors of the designated display area and the main display area begin to show color display differences. Therefore, it can be determined that the brightness 10 is the critical screen brightness value. Then the designated screen brightness is also 10, indicating that in the specified state of the electronic device, the screen is in the display state and the display brightness is lower than 10. At this time, the target image is determined. In the embodiment of the present application, the brightness 10 is only an example, and the specific critical screen brightness value can be set or adjusted by the user as needed.

[0033] Step S220: Displaying the target image in the designated display area.

[0034] In the embodiment of the present application, the target image determined under the above conditions is displayed in the designated display area. In some typical embodiments, the target image is an image different from the content displayed in the main display area of ​​the screen. For example, Figure 1 As shown, the functional device is usually set at the top of the electronic device. Correspondingly, the designated display area is usually near the top status bar. The target image is set to be displayed in the designated display area. Therefore, the designated display area can be used as a part of the top status bar. The target image directly displays one or more icons of the top status bar to provide identification or reminders for the user. Figure 3 Taking the display interface shown in the figure as an example, the designated display area 320 is set on the right side of the top status bar 310, so the target image can be displayed at the position of the designated display area 320. The target image 330 in the figure is a "battery" icon, which is used to display the current remaining power of the electronic device. It can be understood that the designated display area 320 only represents a display area that can display images, and is not the specific display content on the screen. In other embodiments, the target image can also be consistent with the style of the main display area of ​​the screen, such as the style of a desktop icon, and the target image is given a function or definition that is similar to or completely different from that of the desktop icon. For example, the target image can be displayed as a floating operation ball, and different functions can be achieved by selecting the floating operation ball through a predefined or user-set touch operation. In addition, in addition to the system's default definition of the target image, a function setting page can also be provided to the user, such as Figure 4 The settings page described above allows users to customize the display content or functions of the target image. For example, the display content can be set to "status bar icon", "application icon", "system settings item", etc. After selection, you can continue to select the specific display content after selecting the arrow icon of the option. For example, after selecting "status bar icon", the specific display content includes "remaining power" and "current time" options, which correspond to a "power" icon that displays the current remaining power and a "time" icon that displays the current time, respectively.

[0035] It should be noted that when displaying the target image in the designated display area, the image size of the target image can be set to be completely consistent with the designated display area, and the display effect is that the target image completely covers the designated display area, and the target image is displayed on the screen as a complete image. At this time, the display difference formed by the target image and the images in other areas of the screen can achieve the purpose of enabling the user to clearly identify the target image from the screen without giving the user the impression of display abnormality. It is understandable that the image size of the target image can also be larger or smaller than the designated display area. As an embodiment, when the image size of the target image is larger than the designated display area, the designated display area can display most of the content of the target image, and the remaining content of the target image can be used as a buffer between the designated display area and the main display area of ​​the screen to form a transition between the display content of the designated display area and the display content of the main display area of ​​the screen. As another example, when the image size of the target image is smaller than the designated display area, the target image can be completely displayed within the designated display area. For the partial area of ​​the designated display area where the target image is not displayed, the color of the display content of the partial area can be determined based on the edge color of the target image and the color of the partial image of the main display area surrounding the designated display area. Similarly, it can serve as a buffer zone between the designated display area and the main display area of ​​the screen, forming a transition between the display content of the designated display area and the display content of the main display area of ​​the screen.

[0036] To summarize, the technical solution provided in the embodiment of the present application determines the target image by detecting that the electronic device is in a specified state, wherein in the specified state, the screen is in a display state and the display brightness is lower than the specified brightness of the screen. At this time, the target image is displayed in a designated display area with a functional device arranged below, which can improve the display difference between the display area above the functional device of the electronic device and other areas of the screen, improve the display effect, and enhance the user experience.

[0037] Please refer to Figure 5 , which shows a method flow chart of an image display method provided by another embodiment of the present application, which is applied to an electronic device, wherein the electronic device includes a screen, such as Figure 1 As shown, a functional device 130 is disposed below the designated display area 120 of the screen. The method includes: S510 to S540.

[0038] Step S510: When the screen is in display state, obtain the current time.

[0039] In the automatic adjustment mode of the screen backlight of the electronic device, the screen brightness of the electronic device will be adjusted according to the light intensity in the use environment. It is understandable that the ambient light intensity in the natural environment will vary according to the time of day. For example, the ambient light intensity is lower at night and higher during the day. The early morning and dusk when the day meets the day are the two times when the ambient light changes most dramatically. When the ambient light intensity is low at night, the electronic device will also enter a state of lower brightness in the automatic adjustment mode of the screen backlight; when the ambient light intensity is high during the day, the electronic device will also enter a state of higher brightness in the automatic adjustment mode of the screen backlight. Since the designated display area and the main display area will display abnormalities under low brightness and low grayscale of the screen, the display or non-display of the target image can be controlled according to the current moment.

[0040] As can be seen from the above embodiments, the screen of the electronic device will display an image only when the screen is in the display state. Therefore, in some embodiments of the present application, the current time can be obtained only when the screen is in the display state. The system clock of the electronic device can be directly obtained as the current time, or it can be connected to an online time server for calibration to obtain a more accurate current time. The embodiments of the present application do not limit the method for obtaining the current time.

[0041] Step S520: If the current time is within a specified time period and the electronic device is in a screen backlight automatic adjustment mode, determine that the electronic device is in a specified state.

[0042] In the application embodiment, it can be set that if the current time is within a specified time period and the electronic device is in the screen backlight automatic adjustment mode, the electronic device is determined to be in a specified state. The specified time period can be specified by the user or set by the system.

[0043] Since the designated display area and the main display area will display abnormally under low brightness and low grayscale, and the screen brightness is low when the ambient light intensity is low in the backlight automatic adjustment mode, the target image is controlled to be displayed only during the period of dark ambient light. Whether the designated time period is specified by the user or set by the system, the ambient light intensity in the environment should meet the natural law of darker light during the designated time period. For example, the system can set a reference time period, and the ambient light intensity during the reference time period is low. If the designated time period is not within the reference time period, the user is prompted to make changes. The designated time period can include a starting time and an end time. If the current time is within the designated time period, it means that the current time is between the starting time and the end time. At night, the ambient light intensity is low and the light is dark. For example, the designated time period can be set between dusk and early morning, so the starting time can be set to 19:00 and the end time can be set to 6:00 the next day.

[0044] The intensity of ambient light in the natural environment is determined by sunlight. For example, from sunrise to sunset, the intensity of ambient light changes from weak to strong, and then from strong to weak. Therefore, the time when the ambient light intensity is low can be determined as between sunset and sunrise the next day. That is to say, the starting time of the specified time period is set based on the sunset time, and the end time is set based on the sunrise time. For example, in a certain area, the local time is 8:00 for sunrise and 18:00 for sunset. Then, the time period from 18:00 to 8:00 the next day is the time period when the ambient light is relatively dark. This time period is used as the specified time period. During this time period, the electronic device will be adjusted to a lower state under automatic backlighting. At this time, the target image is in the display state. The other time periods outside this time period are in the non-display state, and the target image is not displayed.

[0045] In addition, the sunrise and sunset times will change according to the geographical location and season of the area where the electronic device is located. For example, when the sun is directly above the northern hemisphere, the higher the latitude of the northern hemisphere, the earlier the sunrise and the later the sunset; the higher the latitude of the southern hemisphere, the later the sunrise and the earlier the sunset. When the sun is directly above the southern hemisphere, the opposite is true. And the sunrise time in winter is later than in summer. Therefore, in some embodiments, the geographical location of the area where the electronic device is located and the season at the current moment can be obtained. Further, the sunrise and sunset times are determined according to the longitude and latitude of the area where the electronic device is located and the current date, and then the specified time period is determined as a basis for determining whether to display an image at the current moment.

[0046] Step S530: When it is detected that the electronic device is in a specified state, a target image is determined, wherein in the specified state, the screen is in a display state and the display brightness is lower than the specified brightness of the screen.

[0047] In the embodiment of the present application, the specified state is: when the screen is in the display state, the current time is within the specified time period, the electronic device is in the screen backlight automatic adjustment mode and the screen display brightness is lower than the screen specified brightness. For example, according to the sunrise and sunset time, the specified time period is determined to be 18:00-8:00 the next day, and the screen specified brightness is set to 10. Figure 6 , it is obtained that the current time is 20:10, which is within the specified time period, the screen is in display state, the electronic device is in the screen backlight automatic adjustment mode and the screen display brightness is 8, which is lower than the specified screen brightness of 10, and the target image at this time is determined.

[0048] Step S540: displaying the target image in the designated display area.

[0049] In the specified state, a target image is determined and displayed in the specified display area. The target image is mainly used to cover the specified display area and give the target image a functional definition. For example, the target image can be a top status bar icon, a floating operation ball, etc. displayed in the specified display area.

[0050] To summarize, the technical solution provided by the embodiment of the present application determines the target image by determining that the current moment is in a specified time period when it is detected that the electronic device is in a specified state, and in the specified state, the screen is in a display state and the display brightness is lower than the specified brightness of the screen, and the target image is displayed in a specified display area with functional devices arranged below during the specified time period, thereby improving the display difference between the upper display area of ​​the functional devices of the electronic device and other areas of the screen during the specified time period, improving the display effect, and enhancing the user experience.

[0051] Please refer to Figure 7 , which shows a method flow chart of an image display method provided by another embodiment of the present application, which is applied to an electronic device, wherein the electronic device includes a screen, and the present application is based on Figure 1 The screen shown is used as an example for illustrative description, and a functional device 130 is arranged below the designated display area 120 of the screen 110. When it is detected that the electronic device is in a designated state, before determining the target image, the method further includes: S710 to S720.

[0052] Step S710: when the screen is in display state, obtain the current ambient light brightness.

[0053] As can be seen from the above embodiments, since the designated display area and the main display area will display abnormally under low brightness and low grayscale of the screen, in the automatic adjustment mode of the screen backlight of the electronic device, the screen brightness of the electronic device will be adjusted according to the light intensity in the use environment, that is, the brightness of the display area can be detected by detecting the ambient light intensity. Therefore, in addition to being determined based on the current time, the designated state of the electronic device can also be directly determined based on the ambient light brightness in the embodiment of the present application.

[0054] As can be seen from the above embodiments, the screen of the electronic device will display an image only when the screen is in the display state. Therefore, in the embodiments of the present application, the current ambient light brightness is obtained only when the screen is in the display state. In a typical implementation, when it is detected that the screen is in the display state, a light sensing device can be used to sense the light intensity of the environment in which the electronic device is located to obtain the ambient light brightness.

[0055] Step S720: If the current ambient light brightness is less than the ambient specified brightness and the electronic device is in the screen backlight automatic adjustment mode, it is determined that the electronic device is in a specified state.

[0056] In the automatic adjustment mode of the screen backlight, in order to suit the human eye to watch the screen, the screen brightness needs to change according to the change of the ambient light intensity. Generally speaking, the stronger the ambient light, the higher the screen brightness; the weaker the ambient light, the lower the screen brightness. In addition, because the designated display area and the main display area will have display abnormalities under low brightness and low grayscale of the screen, in an embodiment of the present application, the environment specified brightness can be the environment brightness corresponding to the critical screen brightness when the color of the designated display area and the main display area is inconsistent. When the ambient light brightness is lower than the ambient specified brightness, there will be a color display difference between the designated display area and the main display area. Therefore, it can be set that if the current ambient light brightness is less than the ambient specified brightness and the electronic device is in the automatic adjustment mode of the screen backlight, it is determined that the electronic device is in a specified state.

[0057] In the embodiment of the present application, the specified state is: when the screen is in the display state, the current ambient light brightness is less than the ambient specified brightness, the electronic device is in the screen backlight automatic adjustment mode and the screen display brightness is lower than the screen specified brightness. For example, the ambient specified brightness is set to 20 lux, and the corresponding screen specified brightness in the backlight automatic adjustment mode is 10. Figure 8 , using the light sensor to obtain the current ambient light brightness of 10 lux, which is less than the ambient specified brightness of 20 lux, the screen is in display state, the electronic device is in the screen backlight automatic adjustment mode and the screen display brightness is 4, which is lower than the screen specified brightness of 10, the target image at this time is determined, and finally the above target image is displayed in the specified display area.

[0058] In some embodiments, before the target image is displayed, the color of the target image can also be changed according to the background color of the background image of the adjacent area of ​​the designated display area. First, the background color of the background image of the adjacent area of ​​the designated display area is obtained, and the target color parameters are set according to the background color of the background image. Then, the target image is set based on the target color parameters. At the same time, in order to make the color of the target image and the background image of the adjacent area consistent when the target image is displayed in the designated display area, the color difference between the display color of the target image and the background color of the background image should be less than the first specified threshold. Exemplarily, the background color of the background image within a specific pixel range adjacent to the designated display area can be obtained, and the specific pixel range can be, for example, a 10-pixel range. First, the background color of the background image within the adjacent 10-pixel range is obtained. Taking the RGB color mode as an example, the background color scale values ​​of the three channels of red, green, and blue are respectively obtained, which are recorded as Rb, Gb, and Bb, and then the target color parameters are set based on the background color scale values. After the target image is set based on the target color parameters, the target image will be displayed in the designated display area, and the color difference between the display color of the target image and the background color must be less than the first specified threshold. In particular, if the display color of the target image is consistent with the target color parameter, then the color difference between the target color parameter and the background color should also be smaller than the first specified threshold, wherein the target color scale values ​​of the three channels of red, green and blue corresponding to the target color parameter can be recorded as Ro, Go and Bo. Thus, the color difference between the display color of the target image and the background color can be exemplarily represented as the difference between the three channels of the background color scale value and the target color scale value. For example, if the first specified threshold is set to 100, the difference between the three channels of the background color scale value and the target color scale value should be smaller than the first specified threshold at the same time, that is, the difference between Rb and Ro is less than 100, the difference between Gb and Ro is less than 100, and the difference between Bb and Ro is also less than 100. Figure 6 Taking the background image shown as an example, the background color (Rb, Gb, Bb) of the background image 620 adjacent to the target image 610 in the specified display area is (187, 187, 187), then the target color parameter, that is, the display color (Ro, Go, Bo) of the target image 610 can be (127, 127, 127).

[0059] In addition, the color of the target image and the background image can be made more consistent by setting a transparency for the target image, so as to avoid affecting the user's perception due to the target image being too abrupt. If the transparency of the target image is set reasonably, when the target image is superimposed on the background image of the designated display area of ​​the screen, the color of part of the background image can be displayed through the target image, so the effect presented to the user is the superposition effect of the superimposed display of the target image and the background image, which can be represented by the superimposed color after the target image and the background image are superimposed. In addition, the background image of the designated display area and the background image of the adjacent area should belong to different areas of the same image screen and have color consistency. When the target image is superimposed on the background image of the designated display area, in order to ensure that the color of the target image and the background image is also consistent, in some embodiments, the color difference between the background color and the superimposed color of the background image of the designated display area should be less than the second designated threshold. Similarly, taking the RGB color mode as an example, the background color scale values ​​of the three channels of red, green and blue are obtained respectively. The difference between the background color scale value of the background color of the background image and the superimposed color scale value of the superimposed color is less than the second specified threshold value, and the target image is superimposed on the background image of the specified display area of ​​the screen, and the superimposed color is determined by the superimposed color value. The transparency of the target image is recorded as the specified transparency, and the specified transparency can be set to 30% by way of example. According to the transparency formula, after the superimposed color is determined, the display color of the target image itself can be determined by the transparency, background color and superimposed color. In some typical embodiments, the transparency formula is L2=L1*(1-a)+L0*a, where L2 is the superimposed color, L1 is the display color of the target image itself, L0 is the background color, and a is the transparency. In some embodiments, the second specified threshold value can be the same as the first specified threshold value, and the display effect presented is similar, but the display color of the target image itself is different. For example, set the specified transparency to 30%, set the second specified threshold to 100, and specify the background color of the background image of the display area to (187, 187, 187). Then the overlay color can also be set to (127, 127, 127). According to the transparency formula, the display color of the target image itself is calculated to be (101, 101, 101).

[0060] Since the background image is usually a complex color with different shades, and the smallest element used to describe the image is called a pixel, each pixel is assigned a clear color and position coordinates, and these pixels with various colors are combined according to the position coordinates, and displayed on the screen as a complete picture. Therefore, in some embodiments, to calculate the background color of the background image with complex colors, it is necessary to determine each pixel of the background image within the coordinate range of the adjacent area of ​​the specified display area, and then count the color levels of each pixel and convert them into the background color level of the background image, and then calculate the target color level value of the target image based on the background color level.

[0061] In other embodiments of the present application, in addition to being able to adaptively set the display color of the target image, the display content and operation function of the target image can also be set. Exemplarily, the display content of the target image can be set based on pre-set designated information, or the display content of the target image can be updated in real time based on the updated content of the designated information, and the display content of the target image can be displayed in a designated display area. For example, if the designated information is set to weather forecast, the display content of the target image can be a weather icon that displays the current weather information, and the weather icon changes according to the predicted information of the weather forecast, such as Figure 8 As shown, if the current time is 12:31 and it is sunny, the weather icon 810 is displayed as a "sun" icon. If the weather is updated to cloudy in five minutes, Fig. 9 As shown, the weather icon 910 at 12:36 will be displayed as a "dark cloud" icon. In addition, in some embodiments, after the target image is displayed in the designated display area, when a trigger operation based on the target image is detected, a preset action corresponding to the trigger operation will be executed, and the preset action may include launching an application corresponding to the target image. Taking the target image displaying the weather forecast as an example, when a trigger operation based on the target image is detected, such as clicking the weather icon shown in the target icon, etc., Fig.10 As shown, the corresponding page of the weather forecast program associated with the weather icon will be launched, such as the homepage of the weather forecast application program. Of course, the target image can also be set to only display the display content set based on the specified information without setting any interactive functions, and only serve as a mark and reminder. For example, the user can also be allowed to Figure 4 The settings interface shown changes the display content and functions of the target image.

[0062] It is understandable that the functional device disposed below the designated display area of ​​the screen may be a camera, and when the designated conditions are met and the camera is not enabled, the target image may be displayed at the position of the designated display area corresponding to the camera under the screen. When the camera is enabled, in order to avoid blocking external light and facilitate camera imaging, the designated display area of ​​the electronic device does not display any image.

[0063] In summary, the technical solution provided by the embodiment of the present application determines the target image when it is detected that the electronic device is in a specified state and when the ambient light brightness is less than the specified brightness of the environment, and in the specified state, the screen is in a display state and the display brightness is lower than the specified brightness of the screen, and the target image is displayed in a specified display area with functional devices arranged below within a specified period of time, thereby improving the display difference between the upper display area of ​​the functional devices of the electronic device and other areas of the screen when the ambient light brightness is low, improving the display effect, and enhancing the user experience. In addition, the display color of the target image can be changed with the background to ensure the consistency of the interface, and at the same time, the target image is given display content and functions, truly realizing full-screen display.

[0064] See also Fig.11 , which shows a structural block diagram of an image display device provided in an embodiment of the present application. The device may include: a determination unit 1110 and a display unit 1120.

[0065] Further, the determination unit 1110 is used to determine the target image when it is detected that the electronic device is in a specified state, wherein in the specified state, the screen is in a display state and the display brightness is lower than the specified screen brightness. The display unit 1120 is used to display the target image in the specified display area.

[0066] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0067] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0068] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0069] Please refer to Fig.12, which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 1200 can be an electronic device such as a smart phone, a tablet computer, an e-book, etc. that can run applications. The electronic device 1200 in the present application may include one or more of the following components: a processor 1210, a memory 1220, a screen 1230, and one or more applications, wherein a functional device is provided below a designated display area of ​​the screen, one or more applications may be stored in the memory 1220 and configured to be executed by one or more processors 1210, and one or more programs are configured to execute the method as described in the aforementioned method embodiment.

[0070] The electronic device 1200 can also be any one of a plurality of electronic devices, including but not limited to cellular phones, smart phones, smart watches, smart bracelets, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation instruments, calculators, programmable remote controls, pagers, laptop computers, desktop computers, printers, netbook computers, personal digital assistants (PDAs), portable multimedia players (PMPs), Moving Picture Experts Group (MPEG-1 or MPEG-2) Audio Layer 3 (MP3) players, portable medical devices, and digital cameras and combinations thereof.

[0071] In some cases, electronic device 1200 can perform multiple functions (e.g., play music, display video, store pictures, and receive and send phone calls). If desired, electronic device 1200 can be a device such as a cellular phone, a media player, other handheld device, a wristwatch device, a pendant device, a handset device, or other compact portable device.

[0072] The processor 1210 may include one or more processing cores. The processor 1210 uses various interfaces and lines to connect various parts of the entire electronic device 1200, and executes various functions and processes data of the electronic device 1200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1220, and calling data stored in the memory 1220. Optionally, the processor 1210 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1210 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1210, but may be implemented separately through a communication chip.

[0073] The memory 1320 may include a random access memory (RAM) or a read-only memory (ROM). The memory 1220 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 1200 during use.

[0074] The screen 1230 may include an LCD display, a light emitting diode (LED) display, a three-dimensional (3D) display, or a plasma display (PDP), etc. Furthermore, the screen 1230 described in the embodiment of the present application may also have a full screen, a curved screen, a special-shaped screen, a folding screen or other screen forms. The present application does not specifically limit the type or form of the screen.

[0075] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the processor 1210, memory 1220 and screen 1230 of the electronic device described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0076] Please refer to Fig.13 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 1300 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0077] The computer readable storage medium 1300 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. Optionally, the computer readable storage medium 1300 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1300 has storage space for program code 1310 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 1310 can be compressed, for example, in an appropriate form.

[0078] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0079] The terms "first" and "second" in the description and claims of the embodiments of the present invention are used to distinguish different objects rather than to describe a specific order of the objects. For example, the first area and the second area are used to distinguish different areas rather than to describe a specific order of the areas. In the description of the embodiments of the present invention, unless otherwise specified, the meaning of "plurality" refers to two or more.

[0080] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.

[0081] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An image display method, characterized in that: Applied to an electronic device, the electronic device includes a screen, and a functional device is arranged below a designated display area of ​​the screen, the method includes: When it is detected that the electronic device is in a specified state, a target image is determined, wherein in the specified state, the screen is in a display state and the display brightness is lower than the specified screen brightness, wherein the specified screen brightness is a critical screen brightness value when the colors of the specified display area and the main display area are inconsistent, and when the screen brightness is lower than the specified screen brightness, a color display difference will appear between the specified display area and the main display area; The target image is displayed in the designated display area.

2. The method according to claim 1, characterized in that: When the electronic device is detected to be in a specified state, before determining the target image, the method further includes: When the screen is in a display state, obtaining the current time; If the current time is within a specified time period and the electronic device is in a screen backlight automatic adjustment mode, it is determined that the electronic device is in a specified state.

3. The method according to claim 2, characterized in that The designated time period includes a start time and an end time, wherein the start time is set based on a sunset time, and the end time is set based on a sunrise time.

4. The method according to claim 1, characterized in that When the electronic device is detected to be in a specified state, before determining the target image, the method further includes: When the screen is in a display state, obtaining the current ambient light brightness; If the current ambient light brightness is less than the ambient specified brightness and the electronic device is in the screen backlight automatic adjustment mode, it is determined that the electronic device is in the specified state.

5. The method according to claim 1, characterized in that Determining the target image includes: Determining a background color of a background image of an area adjacent to a designated display area of ​​the screen; Setting target color parameters based on the background color; The target image is set based on the target color parameter so that when the target image is displayed in the designated display area, the color difference between the display color of the target image and the background color is less than a first designated threshold.

6. The method according to claim 1, characterized in that The transparency corresponding to the target image is a specified transparency, and displaying the target image in the specified display area includes: The target image is superimposed and displayed on a background image in a specified display area of ​​the screen, wherein the color difference between the background color of the background image and the superimposed color is less than a second specified threshold, and the superimposed color is the color of the target image after superimposing the background image.

7. The method according to claim 1, characterized in that The display content of the target image is pre-set based on the designated information, and after the target image is displayed in the designated display area, the method further includes: Obtaining updated content of the specified information; The display content of the target image is updated in real time based on the update content, and is displayed in the designated display area.

8. The method according to claim 1, characterized in that After displaying the target image in the designated display area, the method further includes: When a trigger operation based on the target image is detected, a preset action corresponding to the trigger operation is performed.

9. The method according to claim 8, characterized in that The executing a preset action corresponding to the trigger operation includes: An application corresponding to the target image is started.

10. The method according to any one of claims 1 to 9, characterized in that: The functional device is a camera.

11. The method according to claim 10, characterized in that The step of displaying the target image in the designated display area includes: When it is detected that the camera is not started, the target image is displayed in the designated display area.

12. An image display device, characterized in that: Applied to an electronic device, the electronic device includes a screen, a functional device is arranged below a designated display area of ​​the screen, and the device includes: a determination unit, configured to determine a target image when it is detected that the electronic device is in a specified state, wherein in the specified state, the screen is in a display state and the display brightness is lower than a specified screen brightness, wherein the specified screen brightness is a critical screen brightness value when the colors of the specified display area and the main display area are inconsistent, and when the screen brightness is lower than the specified screen brightness, a color display difference will appear between the specified display area and the main display area; A display unit is configured to display the target image in the designated display area.

13. An electronic device, characterized in that: include: one or more processors; Memory; A screen, wherein a functional device is arranged below a designated display area of ​​the screen; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-11.

14. A computer readable medium, characterized in that The computer-readable medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Method and device for lighting screen

    CN106371794A

  • Screen control method, device and terminal and storage medium

    CN109375859A