WO2022252807A1 - Image display method and apparatus, electronic device, and storage medium - Google Patents

Image display method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2022252807A1
WO2022252807A1 PCT/CN2022/085525 CN2022085525W WO2022252807A1 WO 2022252807 A1 WO2022252807 A1 WO 2022252807A1 CN 2022085525 W CN2022085525 W CN 2022085525W WO 2022252807 A1 WO2022252807 A1 WO 2022252807A1
Authority
WO
WIPO (PCT)
Prior art keywords
target image
screen
display
display area
specified
Prior art date
Application number
PCT/CN2022/085525
Other languages
French (fr)
Chinese (zh)
Inventor
李豪凯
崔志佳
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022252807A1 publication Critical patent/WO2022252807A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1626Constructional details or arrangements for portable computers with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components

Definitions

  • the present application relates to the field of image display of electronic equipment, and more specifically, to an image display method, device, electronic equipment and storage medium.
  • sensor devices are placed 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 from affecting the function of the sensor device, the display screen in the area above the sensor device is made of special materials, and it is compatible with other display screens under low grayscale and low brightness conditions. There are obvious display differences between regions, which will affect the use of users.
  • the present application proposes an image display method, device, electronic equipment and storage medium to improve the above defects.
  • the embodiment of the present application provides an image display method, which is applied to an electronic device, and the electronic device includes a screen, and a functional device is arranged under a designated display area of the screen, and the method includes: when detecting When the electronic device is in a specified state, determine a target image, 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 the specified display area.
  • the embodiment of the present application also provides an image display device, which is applied to electronic equipment, and the electronic equipment 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 display unit.
  • the determining unit is configured 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 brightness of the screen; the display unit is used to set the The target image is displayed in the designated display area.
  • the embodiment of the present application also provides an electronic device, including one or more processors, memory and a screen, and a functional device is arranged below the designated display area of the screen; one or more application programs, wherein The one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs are configured to perform the following operations: when the When the electronic device is in a specified state, determine a target image, 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 display the target image in the specified display area.
  • the embodiment of the present application further provides a computer-readable medium, the readable storage medium stores program code executable by a processor, and when the program code is executed by the processor, the processor Execute the method above.
  • the embodiment of the present application further provides a computer program product, including computer programs/instructions, wherein the computer program/instructions implement the above method when executed by a processor.
  • FIG. 1 shows a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application
  • FIG. 2 shows a method flowchart of an image display method provided by another embodiment of the present application
  • FIG. 3 shows a schematic diagram of a display interface of an electronic device provided by another embodiment of the present application.
  • FIG. 4 shows a schematic diagram of a target image setting interface provided by another embodiment of the present application.
  • FIG. 5 shows a method flowchart of an image display method provided by an embodiment of the present application
  • FIG. 6 shows a schematic diagram of a display interface of an electronic device provided by another embodiment of the present application.
  • FIG. 7 shows a method flowchart of an image display method provided by an embodiment of the present application.
  • FIG. 8 shows a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application.
  • FIG. 9 shows a schematic diagram of a partial display interface of an electronic device provided by another embodiment of the present application.
  • FIG. 10 shows a schematic diagram of a display interface of an electronic device provided in another embodiment of the present application.
  • Fig. 11 shows a module block diagram of an image display device of an electronic device provided by an embodiment of the present application
  • FIG. 12 shows a structural block diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 13 shows a computer-readable medium used to save or carry the program code for realizing the image display method according to the embodiment of the application;
  • FIG. 14 shows a structural block diagram of a computer program product provided by an embodiment of the present application.
  • sensor devices are placed under the display screen.
  • the display screen can display images normally.
  • the sensor device is enabled, the upper display area will temporarily turn off the display function.
  • the sensor device usually includes a photosensitive device. 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 make the photosensitive device work normally.
  • Option 1 remove the pixels in the display area by a certain proportion
  • Option 2 use a display driving circuit to drive two pixels, and the colors of the two pixels are exactly the same, resulting in If there is a color boundary in the displayed picture, there will be obvious jaggedness
  • scheme 3 keep all the light-emitting units, and one display driver unit drives one pixel unit, the display effect is better than the previous two schemes, but the increase in light-emitting units will cause diffraction significantly, the functional effect of the sensor device is poor.
  • the display screens in the upper display area involved in the above three schemes are usually made of special materials, such as flexible AMOLED (Active-matrix organic light-emitting diode, active organic light-emitting display) display screens.
  • AMOLED Active-matrix organic light-emitting diode, active organic light-emitting display
  • the unit is different from the normal display area, resulting in poor color consistency of the upper display area under low brightness, and finally the abnormality is obviously visible when displaying pictures, and the boundary between the two display areas is prominently visible, which greatly affects the display effect of the full screen.
  • the embodiment of the application provides an image display method, device, electronic equipment, and storage medium.
  • the execution subject of the method may be the image display device provided in the embodiment of the application, or an electronic device integrated with the image display device.
  • the image display device can be realized by means of hardware or software.
  • the electronic device may be a device such as a tablet computer, a game console, an e-book reader, a multimedia playback device, a smart watch, a mobile phone, a PC (Personal Computer, personal computer), and the like.
  • FIG. 1 it shows a schematic diagram of a screen of an electronic device provided by an 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 disposed below the designated display area 120 .
  • the functional device 130 When the functional device 130 is not enabled, the functional device will be hidden, the designated display area 120 is in the display state, and the designated display area 120 will form a full screen with the main display area, and the image will be displayed at the same time, and the human eyes cannot observe through the designated display area 120
  • the functional device 130 wherein the main display area is other display areas 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.
  • FIG. 2 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, and the electronic device includes a screen.
  • This application takes the screen shown in FIG. 1 as an example.
  • a functional device 130 is disposed under the designated display area 120 of the screen 110 .
  • the method includes: S210 to S220.
  • Step S210 When it is detected that the electronic device is in a specified state, determine a target image, 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.
  • the target image will be displayed only when the specified condition is met, and the target image will be different under different conditions.
  • the screen of an electronic device displays images only when the screen is in a display state.
  • whether the electronic device is in the display state can be detected in the following manner.
  • Method 1 considering that when the electronic device is in the sleep or standby state, the screen of the electronic device is off and the device does not display any images, so it can be verified whether the screen is in the display state by detecting whether the electronic device is in the sleep or standby state.
  • the display state of the electronic device can only be determined when the electronic device is not in a sleep or standby state.
  • the second way is to directly detect whether the screen of the electronic device is working. For example, it is detected whether the electronic device supplies power to the screen, whether the light emitting device of the electronic device is working, and so on.
  • the display screen in the designated display area is made of special materials.
  • the display screen of this special material is different from the normal display screen, resulting in the designated display area under low brightness Color consistency is poorer in the main display area than in the main display area. Therefore, when the display brightness of the screen is lower than the specified brightness of the screen, the target image is determined.
  • the specified brightness of the screen may be the critical screen brightness when the colors of the specified display area and the main display area are inconsistent.
  • the brightness 10 when the brightness of the screen is lower than the specified brightness of the screen, there will be a difference in color display between the designated display area and the main display area.
  • an electronic device with a brightness of 0 is the lowest brightness of the screen, and a brightness of 100 is the highest brightness of the screen.
  • the screen brightness value is lower than 10
  • the color display difference between the designated display area and the main display area begins to appear, so it can be determined that a brightness of 10 is a critical screen Brightness value
  • the specified brightness of the screen is also a brightness of 10, which means that in the specified state of the electronic device, the screen is in the display state and the display brightness is lower than the brightness of 10.
  • the target image is determined.
  • the brightness 10 is only an example, and the specific critical screen brightness value can be set or adjusted by the user as required.
  • Step S220 Display the target image in the designated display area.
  • the target image determined under the aforementioned conditions is displayed in the designated display area.
  • the target image is an image different from the content displayed in the main display area of the screen.
  • the functional device is usually set on the top of the electronic device, correspondingly, the designated display area is usually near the top status bar, and the target image is set to be displayed in the designated display area, so the designated display area can be used as A part of the top status bar, the target image directly displays one or more icons on the top status bar, providing users with the function of identification or reminder. Taking the display interface shown in FIG.
  • the specified 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 specified display area 320, and the target image 330 in the figure is an icon of "battery capacity" , used to display the current remaining power of the electronic device.
  • the specified display area 320 only represents a display area where an image can be displayed, rather than specific display content on the screen.
  • the target image may also be in the same style as the main display area of the screen, such as a desktop icon, and at the same time, the target image may be given a function or definition similar to or completely different from the desktop icon.
  • the target image can be displayed as a floating operation ball, and different functions can be realized by selecting the floating operation ball through a predefined or user-set touch operation.
  • a function setting page can also be provided for the user, such as the setting page shown in Figure 4.
  • the user can customize the display content or function of the target image, such as displaying
  • the content can be set as "status bar icon", "application icon”, "system setting item”, etc.
  • the specific displayed content includes options of "remaining power” and "current time”, which respectively correspond to a “battery” icon showing the current remaining power and a “time” icon showing the current time.
  • the image size of the target image can be set exactly the same as the specified display area, and the display effect is that the target image completely covers the specified display area, and the target image is displayed as a complete image in the On the screen, the display difference formed between the target image and images in other areas of the screen at this time can achieve the purpose of enabling the user to clearly recognize the target image from the screen without giving the user the impression that the display is abnormal. It can be understood that the image size of the target image may also be larger or smaller than the designated display area.
  • the specified 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 specified display area and the main display area of the screen. Form a transition between the display content of the specified display area and the display content of the main display area of the screen.
  • the target image can be completely displayed inside the specified display area, that is, the specified display area is divided into the first display area and the area surrounding the first display area. the second display area, and display the target image in the first display area.
  • the color of the display content of the second display area can be determined according to the edge color of the target image and the color of the image surrounding the specified display area, It also serves as a buffer between the first display area and the main display area of the screen, forming a transition between the display content of the target image in the designated display area and the display content of the main display area of the screen.
  • the technical solution provided by 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 that of the screen. Specifying the brightness, at this time, displaying the target image in the designated display area provided with functional devices below, can improve the display difference between the upper display area of the electronic equipment functional device and other areas of the screen, improve the display effect, and enhance the user experience.
  • FIG. 5 shows a method flow chart of an image display method provided in another embodiment of the present application, which is applied to an electronic device, and the electronic device includes a screen.
  • the designated display area of the screen A functional device 130 is disposed below 120 .
  • the method includes: S510 to S540.
  • Step S510 Obtain the current time when the screen is in the display state.
  • the screen brightness of the electronic device will be adjusted according to the brightness of the ambient light in the use environment. It is understandable that the brightness of the ambient light in the natural environment will vary according to the time of day. For example, the ambient light brightness is low at night, and the ambient light brightness is high during the day, and the early morning and dusk are the two moments when the ambient light changes most violently.
  • the electronic device When the ambient light brightness is low at night, the electronic device will also enter a low brightness state in the screen backlight automatic adjustment mode; high state. Since the designated display area and the main display area may display abnormally under low brightness and low gray scale of the screen, the display or non-display of the target image can be controlled according to the current moment.
  • the screen of the electronic device displays images 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 obtained directly as the current time, or it can be calibrated by connecting to an online time server to obtain a more accurate current time.
  • the embodiment of the present application does not limit the method of obtaining the current time.
  • 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.
  • the electronic device 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, it can be determined that the electronic device is in a specified state.
  • the specified time period can be specified by the user or set by the system.
  • the specified period is specified by the user or set by the system, the ambient light brightness in the environment should meet the natural law of dark light during the specified period.
  • the system can set a reference period, and the environment within the reference period The brightness is low.
  • the specified time period may include a start time and an end time, and if the current time is within the specified time period, it means that the current time is between the start time and the end time.
  • the ambient light is low and the light is dark.
  • the specified time period can be set between dusk and early morning, so the start time can be set to 19:00, and the end time can be set to 6:00 the next day.
  • the ambient light brightness in the natural environment is determined by sunlight. For example, from sunrise to sunset, the ambient light brightness is a process from weak to strong, and then from strong to weak. Therefore, the time when the ambient light brightness is low can be determined as between the time of sunset and the time of sunrise of the next day, that is to say, the start time of the specified period is set based on the time of sunset, and the end time is set based on the time of sunrise. For example, if 8:00 local time in a certain area is the sunrise time and 18:00 is the sunset time, then the time period from 18:00 to 8:00 the next day is the time period when the ambient light is relatively dark. During this time period, the electronic equipment will be adjusted to a lower state under the automatic backlight, and the target image is displayed at this time, and other time periods outside this time period are not displayed, and the target image is not displayed.
  • the sunrise time and sunset time will change according to the geographic location and season of the area where the electronic device is located. For example, when the sun shines directly on the northern hemisphere, the higher the latitude in the northern hemisphere, the earlier the sunrise and the later the sunset; the higher the latitude in the southern hemisphere, the later the sunrise and the earlier the sunset. And vice versa when the sun shines directly on the southern hemisphere. And the sunrise time in winter is later than in summer.
  • the geographic location of the area where the electronic device is located and the season at the current moment can be obtained, and further, the sunrise and sunset times can be determined according to the latitude and longitude of the area where the electronic device is located and the current date, and then the specified time period can be determined , as the basis for judging whether to display the image at the current moment.
  • Step S530 When it is detected that the electronic device is in a specified state, determine a target image, 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.
  • 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.
  • the specified period is determined to be 18:00-8:00 the next day, and the specified brightness of the screen is set to 10, as shown in Figure 6.
  • the current time is 20:10, which is within the specified period, and the screen is displaying 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.
  • Step S540 Display the target image in the specified display area.
  • the target image is mainly used to cover the specified display area and give function definition to the target image.
  • the target image may be an icon on the top status bar, a floating operation ball, etc. displayed in the specified display area.
  • the target image is determined by determining that the current time is within a specified time period, and in the specified state, the screen is in Display the status and display brightness lower than the specified brightness of the screen, and display the target image in the designated display area with functional devices at the bottom within the designated time period, and improve the display of the upper display area of the functional device of the electronic device and other areas of the screen within the designated time period differences, improve the display effect, and enhance the user experience.
  • FIG. 7 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, and the electronic device includes a screen.
  • the present application uses the screen shown in FIG. 1 as an example.
  • a functional device 130 is disposed under the designated display area 120 of the screen 110 .
  • the method further includes: S710 to S720.
  • Step S710 Acquiring the current ambient light brightness when the screen is in the display state.
  • the screen brightness of the electronic device will be adjusted according to the light in the use environment.
  • the brightness is adjusted, that is, the brightness of the display area can be detected by detecting the brightness of the ambient light. Therefore, in addition to determining the specified state of the electronic device according to the current time, in the embodiment of the present application, it may also be directly determined according to the brightness of the ambient light.
  • the screen of the electronic device displays images only when the screen is in the display state. Therefore, in the embodiment of the present application, the current ambient light brightness only needs to be acquired when the screen is in the display state.
  • the light sensing device may be used to sense the light intensity of the environment where the electronic device is located to obtain the ambient light brightness.
  • Step S720 If the current ambient light brightness is lower than the specified ambient brightness and the electronic device is in the screen backlight automatic adjustment mode, determine that the electronic device is in a specified state.
  • the screen brightness In the screen backlight automatic adjustment mode, in order to be suitable for human eyes to watch the screen, the screen brightness needs to change according to the change of the ambient light brightness. Generally speaking, the stronger the ambient light brightness, the higher the screen display brightness; the weaker the ambient light brightness, the lower the screen display brightness.
  • the specified display area and the main display area will display abnormally under low brightness and low gray scale, in this embodiment of the application, the specified brightness of the environment can be the critical screen when the colors of the designated display area and the main display area are inconsistent. Brightness corresponds to ambient light brightness. When the brightness of the ambient light is lower than the specified brightness of the environment, there will be a difference in color display between the designated display area and the main display area. Therefore, it can be set that if the current ambient light brightness is lower than the specified ambient brightness and the electronic device is in the screen backlight automatic adjustment mode, it can be determined that the electronic device is in a specified state.
  • the specified state is: when the screen is in the display state, the current ambient light brightness is lower than the specified ambient brightness, and the electronic device is in the screen backlight automatic adjustment mode and the screen display brightness is lower than the specified screen brightness.
  • the specified brightness of the environment is set to 20 lux
  • the specified brightness of the corresponding screen in the backlight automatic adjustment mode is 10, as shown in Figure 8.
  • the current ambient light brightness obtained by the light sensor is 10 lux, which is 20 lux less than the specified brightness of the environment.
  • the electronic device is in the screen backlight automatic adjustment mode and the screen display brightness is 4, which is lower than the specified screen brightness of 10, the target image at this time is determined, and finally the above target image is displayed in the designated display area.
  • the color of the target image may also be changed according to the background color of the background image of the adjacent area of the specified display area.
  • First obtain the background color of the background image of the adjacent area of the designated display area set the target color parameter according to the background color of the background image, and then set the target image based on the target color parameter, and at the same time, in order to make the target image in the
  • the color of the target image is consistent with that of the background image in the adjacent area, and the color difference between the display color of the target image and the background color of the background image should be smaller than the first specified threshold.
  • the background color of the background image within a specified pixel range adjacent to the specified display area may be acquired, and the specified pixel range may be, for example, a range of 10 pixels.
  • the color difference between the target color parameter and the background color should also be smaller than the first specified threshold, where the red, green and blue corresponding to the target color parameter can be
  • the channel's target level values are denoted as Ro, Go, Bo.
  • the color difference between the display color of the target image and the background color can be exemplarily expressed as the difference between the three channels of the background color scale value and the target color scale value.
  • the difference between the three channels of the background color level value and the target color level 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, and the difference between Gb and Ro The value is less than 100, and the difference between Bb and Ro is also less than 100.
  • the background color (Rb, Gb, Bb) of the background image 620 adjacent to the target image 610 of the designated display area is (187, 187, 187), then the target color parameter is the target image
  • the display color (Ro, Go, Bo) of 610 may be (127, 127, 127).
  • the color difference between the background color of the background image of the designated display area and the superimposed color should be smaller than the second designated threshold.
  • the background color scale values of the three channels of red, green, and blue are obtained respectively, and 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 If the value is less than the second specified threshold, the target image is displayed superimposed on the background image in 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, for example, the specified transparency can be set to 30%.
  • the transparency formula after the overlay color is determined, the display color of the target image itself can be determined by the transparency of the target image, the background color and the overlay color.
  • the second specified threshold may be the same as the first specified threshold, and the presented display effect is similar, but the display color of the target image itself is different.
  • the overlay color can also be set to (127, 127, 127), according to the transparency
  • the display color of the target image itself is calculated as (101, 101, 101).
  • each pixel is assigned a clear color and position coordinates, these pixels with various colors are based on the position coordinates Combined, it is a complete picture displayed on the screen. Therefore, in some embodiments, to calculate the background color of a 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 obtain the background of the background image based on the color scale of each pixel Color scale, such as counting the color scale of each pixel and converting it to the background color scale of the background image, and then calculating the target color scale value of the target image according to the background color scale.
  • display content and operation functions of the target image can also be set.
  • the display content of the target image can be set based on the preset designation information, or can be updated in real time based on the update content of the designation information, and the display content of the target image can be displayed in the designated display area .
  • the display content of the target image can be a weather icon showing current weather information, and the weather icon changes according to the forecast information of the weather forecast, as shown in Figure 8, as the current moment is 12:31 , the weather icon 810 is displayed as a "sun” icon when it is currently sunny, and if the weather is updated to cloudy after five minutes, as shown in Figure 9, the weather icon 910 at 12:36 will be displayed as a "dark cloud” icon.
  • a preset action corresponding to the trigger operation will be executed, and the preset action may include starting and The application program corresponding to the target image.
  • the preset action may include starting and The application program corresponding to the target image.
  • the target image it is also possible to set the target image to only display the display content set based on the specified information, without setting any interactive function, and it is only used as a sign and a reminder.
  • the user can also be allowed to set the The interface changes the display content and functionality of the target image.
  • the functional device provided under the designated display area of the screen may be a camera, and when the specified conditions are met and the camera is not enabled, the target image may be displayed in the designated display area corresponding to the camera under the screen. However, when the camera is enabled, in order to avoid blocking external light and facilitate imaging by the camera, the designated display area of the electronic device does not display any images at this time.
  • the target image when it is detected that the electronic device is in a specified state, and at the same time when the ambient light brightness is less than the specified environment brightness, the target image is determined, and in the specified state, the When the screen is in the display state and the display brightness is lower than the specified brightness of the screen, within a specified period of time, the target image is displayed in the designated display area provided with functional devices below, which improves the connection between the upper display area of the functional device of the electronic device when the ambient light brightness is dark.
  • the display difference in other areas of the screen improves the display effect and enhances the user experience.
  • the display color of the target image can be changed with the background to ensure a consistent interface, and at the same time, the display content and functions can be given to the target image to truly realize a full-screen display.
  • FIG. 11 shows a structural block diagram of an image display device provided by an embodiment of the present application, and the device may include: a determination unit 1110 and a display unit 1120 .
  • the determining unit 1110 is 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 the specified brightness of the screen.
  • the display unit 1120 is configured to display the target image in the specified display area.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
  • the electronic device 1200 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, and an e-book.
  • the electronic device 1200 in this application may include one or more of the following components: a processor 1210, a memory 1220, a screen 1230, and one or more application programs, wherein a functional device is arranged under the designated display area of the screen, one or A plurality of application programs 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 perform the methods described in the foregoing method embodiments.
  • Electronic device 1200 may also be any of a number 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 Equipment, 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.
  • PDAs Personal Digital assistants
  • PMPs portable multimedia players
  • MPEG-1 or MPEG-2 Moving Picture Experts Group
  • MP3 audio layer 3
  • the electronic device 1200 may perform various functions (eg, play music, display video, store pictures, and receive and send phone calls).
  • Electronic device 1200 may be a device such as a cellular phone, media player, other handheld device, wrist watch device, pendant device, earpiece device, or other compact portable device, if desired.
  • Processor 1210 may include one or more processing cores.
  • the processor 1210 uses various interfaces and circuits to connect various parts of the entire electronic device 1200, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1220, and calls data stored in the memory 1220 to execute Various functions of the electronic device 1200 and processing data.
  • the processor 1210 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the displayed content
  • the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 1210, but implemented by a communication chip alone.
  • the memory 1320 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 1220 may be used to store instructions, programs, codes, sets of codes or sets of instructions.
  • 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 and 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 method embodiments, and the like.
  • the data storage area may also be data created by the electronic device 1200 during use (such as phonebook, audio and video data, chat record data) and the like.
  • the screen 1230 may include an LCD liquid crystal display, may be a light emitting diode (light emitting diode, LED) display, may also be a three-dimensional (Three Dimensional, 3D) display, or a plasma display (Plasma Display Panel, PDP), etc., further ,
  • 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, and this application does not specifically limit the type or form of the screen.
  • FIG. 13 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program codes are stored in the computer-readable medium 1300, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
  • the computer readable storage medium 1300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 1300 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • the computer-readable storage medium 1300 has a storage space for program code 1310 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products.
  • Program code 1310 may, for example, be compressed in a suitable form.
  • each part of the present application may be realized by hardware, software, firmware or a combination thereof.
  • various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • FIG. 14 shows a computer program product 1400 provided by an embodiment of the present application, including a computer program/instruction 1410 , which implements the above method when executed by a processor.
  • 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 sequence of objects.
  • first area, the second area, etc. are used to distinguish different areas, not to describe a specific order of the areas.
  • plural means two or more.
  • words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present invention shall not be construed as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.

Abstract

Embodiments of the present application relate to the field of image display, and provide an image display method and apparatus, an electronic device, and a storage medium. The method is applied to an electronic device, the electronic device comprises a screen, and a functional component is provided below a designated display region of the screen. The method comprises: 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 thereof is lower than the designated brightness of the screen; and displaying the target image in the designated display region. In the present application, when the screen is in the display state and the display brightness thereof is lower than the designated brightness of the screen, and the electronic device is in the designated state, the target image is displayed in the display region below which the functional component is provided, so that the display difference between an upper display region of the functional component of the electronic device and other regions of the screen may be improved.

Description

图像显示方法、装置、电子设备及存储介质Image display method, device, electronic device and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年06月04日提交中国专利局的申请号为202110624376.X、名称为“图像显示方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with application number 202110624376.X and titled "Image display method, device, electronic equipment and storage medium" filed with the China Patent Office on June 04, 2021, the entire contents of which are incorporated by reference incorporated in this application.
技术领域technical field
本申请涉及电子设备的图像显示领域,更具体地,涉及一种图像显示方法、装置、电子设备及存储介质。The present application relates to the field of image display of electronic equipment, and more specifically, to an image display method, device, electronic equipment and storage medium.
背景技术Background technique
目前,手机、平板等便携式电子产品为了实现全面屏显示,将传感器器件置于显示屏下方。传感器器件未使用时显示屏能正常显示,但为避免显示屏对传感器器件的功能造成影响,此类传感器器件上方区域的显示屏采用特殊材料制成,在低灰阶低亮度情况下与其他显示区域存在明显显示差异,对用户的使用造成影响。At present, in order to realize full-screen display in portable electronic products such as mobile phones and tablets, sensor devices are placed 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 from affecting the function of the sensor device, the display screen in the area above the sensor device is made of special materials, and it is compatible with other display screens under low grayscale and low brightness conditions. There are obvious display differences between regions, which will affect the use of users.
发明内容Contents of the invention
本申请提出了一种图像显示方法、装置、电子设备及存储介质,以改善上述缺陷。The present application proposes an image display method, device, electronic equipment and storage medium to improve the above defects.
第一方面,本申请实施例提供了一种图像显示方法,应用于电子设备,所述电子设备包括屏幕,所述屏幕的指定显示区域的下方设置有功能器件,所述方法包括:当检测到所述电子设备处于指定状态时,确定目标图像,其中,所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度;将所述目标图像在所述指定显示区域显示。In the first aspect, the embodiment of the present application provides an image display method, which is applied to an electronic device, and the electronic device includes a screen, and a functional device is arranged under a designated display area of the screen, and the method includes: when detecting When the electronic device is in a specified state, determine a target image, 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 the specified display area.
第二方面,本申请实施例还提供了一种图像显示装置,应用于电子设备,所述电子设备包括屏幕,所述屏幕的指定显示区域的下方设置有功能器件,所述装置包括:确定 单元和显示单元。确定单元,用于当检测到所述电子设备处于指定状态时,确定目标图像,其中,所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度;显示单元,用于将所述目标图像在所述指定显示区域显示。In the second aspect, the embodiment of the present application also provides an image display device, which is applied to electronic equipment, and the electronic equipment 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 display unit. The determining unit is configured 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 brightness of the screen; the display unit is used to set the The target image is displayed in the designated display area.
第三方面,本申请实施例还提供了一种电子设备,包括一个或多个处理器、存储器及屏幕,所述屏幕的指定显示区域的下方设置有功能器件;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行以下操作:当检测到所述电子设备处于指定状态时,确定目标图像,其中,所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度;将所述目标图像在所述指定显示区域显示。In the third aspect, the embodiment of the present application also provides an electronic device, including one or more processors, memory and a screen, and a functional device is arranged below the designated display area of the screen; one or more application programs, wherein The one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs are configured to perform the following operations: when the When the electronic device is in a specified state, determine a target image, 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 display the target image in the specified display area.
第四方面,本申请实施例还提供了一种计算机可读介质,所述可读存储介质存储有处理器可执行的程序代码,所述程序代码被所述处理器执行时使所述处理器执行上述方法。In a fourth aspect, the embodiment of the present application further provides a computer-readable medium, the readable storage medium stores program code executable by a processor, and when the program code is executed by the processor, the processor Execute the method above.
第五方面,本申请实施例还提供了一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现上述方法。In a fifth aspect, the embodiment of the present application further provides a computer program product, including computer programs/instructions, wherein the computer program/instructions implement the above method when executed by a processor.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本申请一实施例提供的电子设备的显示界面示意图;FIG. 1 shows a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application;
图2示出了本申请另一实施例提供的图像显示方法的方法流程图;FIG. 2 shows a method flowchart of an image display method provided by another embodiment of the present application;
图3示出了本申请另一实施例提供的电子设备的显示界面示意图;FIG. 3 shows a schematic diagram of a display interface of an electronic device provided by another embodiment of the present application;
图4示出了本申请另一实施例提供的目标图像的设置界面示意图;FIG. 4 shows a schematic diagram of a target image setting interface provided by another embodiment of the present application;
图5示出了本申请一实施例提供的图像显示方法的方法流程图;FIG. 5 shows a method flowchart of an image display method provided by an embodiment of the present application;
图6示出了本申请另一实施例提供的电子设备的显示界面示意图;FIG. 6 shows a schematic diagram of a display interface of an electronic device provided by another embodiment of the present application;
图7示出了本申请一实施例提供的图像显示方法的方法流程图;FIG. 7 shows a method flowchart of an image display method provided by an embodiment of the present application;
图8示出了本申请一实施例提供的电子设备的显示界面示意图;FIG. 8 shows a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application;
图9示出了本申请另一实施例提供的电子设备的部分显示界面示意图;FIG. 9 shows a schematic diagram of a partial display interface of an electronic device provided by another embodiment of the present application;
图10示出了本申请又一实施例提供的电子设备的显示界面示意图;FIG. 10 shows a schematic diagram of a display interface of an electronic device provided in another embodiment of the present application;
图11示出了本申请一实施例提供的电子设备的图像显示装置的模块框图;Fig. 11 shows a module block diagram of an image display device of an electronic device provided by an embodiment of the present application;
图12示出了本申请实施例提供的电子设备的结构框图;FIG. 12 shows a structural block diagram of an electronic device provided by an embodiment of the present application;
图13示出了本申请实施例的用于保存或者携带实现根据本申请实施例的图像显示 方法的程序代码的计算机可读介质;Fig. 13 shows a computer-readable medium used to save or carry the program code for realizing the image display method according to the embodiment of the application;
图14示出了本申请实施例提供的计算机程序产品的结构框图。FIG. 14 shows a structural block diagram of a computer program product provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions 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.
目前,手机、平板等便携式电子产品为了实现全面屏显示,将传感器器件置于显示屏下方。传感器器件未使用时显示屏能正常显示画面,传感器器件启用时,上方显示区域将暂时关闭显示功能。传感器器件通常包括感光器件,因此,上方显示区域的显示屏透光率需要高于其他区域,才能降低该区域的衍射问题,使感光器件能够正常使用。为达到这一要求,现有技术通常有三种方案:方案一,将该显示区域的像素按一定比例去除;方案二,用一个显示驱动电路驱动两个像素,两个像素的颜色完全一致,导致在显示图片中如果有颜色交界,会出现明显的锯齿;方案三,保留所有的发光单元,一个显示驱动单元驱动一个像素单元,显示效果相较前两个方案较好,但发光单元增多导致衍射严重,传感器器件的功能效果较差。以上三种方案所涉及的上方显示区域的显示屏通常采用特殊材料制成,特殊材料例如柔性AMOLED(Active-matrix organic light-emitting diode,主动有机发光显示器)显示屏,由于特殊材料制成的发光单元与正常显示区域不同,导致上方显示区域在低亮度下的颜色一致性差,最终在显示图片时明显可见异常,两个显示区域的边界突出可见,大大影响全面屏的显示效果。At present, in order to realize full-screen display in portable electronic products such as mobile phones and tablets, sensor devices are placed under the display screen. When the sensor device is not in use, the display screen can display images normally. When the sensor device is enabled, the upper display area will temporarily turn off the display function. The sensor device usually includes a photosensitive device. 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 make the photosensitive device work normally. In order to meet this requirement, there are generally three solutions in the prior art: Option 1, remove the pixels in the display area by a certain proportion; Option 2, use a display driving circuit to drive two pixels, and the colors of the two pixels are exactly the same, resulting in If there is a color boundary in the displayed picture, there will be obvious jaggedness; scheme 3, keep all the light-emitting units, and one display driver unit drives one pixel unit, the display effect is better than the previous two schemes, but the increase in light-emitting units will cause diffraction Seriously, the functional effect of the sensor device is poor. The display screens in the upper display area involved in the above three schemes are usually made of special materials, such as flexible AMOLED (Active-matrix organic light-emitting diode, active organic light-emitting display) display screens. The unit is different from the normal display area, resulting in poor color consistency of the upper display area under low brightness, and finally the abnormality is obviously visible when displaying pictures, and the boundary between the two display areas is prominently visible, which greatly affects the display effect of the full screen.
发明人在研究中发现,在夜晚或者环境较暗的环境中该显示区域出现偏亮或偏暗的差异显示效果更加明显。为优化上述问题,发明人提出,在上述两种情况下,可以使该显示区域单独显示一个图像来遮挡异常显示区域,且为该图像赋予新的功能或定义等,真正实现全面屏显示。基于此,申请实施例提供了一种图像显示方法、装置、电子设备及存储介质,该方法的执行主体可以是本申请实施例提供的图像显示装置,或者集成了该图像显示装置的电子设备,其中该图像显示装置可以采用硬件或者软件的方式实现。其中,电子设备可以是如平板电脑、游戏主机、电子书阅读器、多媒体播放设备、智能手表、手机、PC(Personal Computer,个人计算机)等设备。电子设备内安装有多个应用程序,用户可以使用多个应用程序实现不同的功能、用途。例如,利用视频播放软件观看视频,利用电子游戏软件玩游戏,利用即时聊天应用程序进行文字、语音或视频聊天,利用社交网络平台软件进行信息分享、传播以及浏览等。The inventors found in the research that the difference display effect of the display area being brighter or darker is more obvious at night or in a darker environment. In order to optimize the above problems, the inventor proposes that in the above two cases, an image can be displayed independently in the display area to block the abnormal display area, and new functions or definitions can be given to the image to truly realize full-screen display. Based on this, the embodiment of the application provides an image display method, device, electronic equipment, and storage medium. The execution subject of the method may be the image display device provided in the embodiment of the application, or an electronic device integrated with the image display device. Wherein the image display device can be realized by means of hardware or software. Wherein, the electronic device may be a device such as a tablet computer, a game console, an e-book reader, a multimedia playback device, a smart watch, a mobile phone, a PC (Personal Computer, personal computer), and the like. There are multiple application programs installed in the electronic device, and the user can use the multiple application programs to realize different functions and purposes. For example, use video playback software to watch videos, use electronic game software to play games, use instant chat applications to conduct text, voice or video chats, and use social networking platform software to share, disseminate and browse information, etc.
如图1所示,其示出了本申请一实施例提供的电子设备的屏幕示意图。在本申请实施例中,所述电子设备100的屏幕110包括了指定显示区域120,所述指定显示区域120的下方设置有功能器件130。当功能器件130未启用时,功能器件将隐藏,指定显示区 域120处于显示状态,并且指定显示区域120将与主显示区域组成全面屏,同时显示图像,人眼无法透过指定显示区域120观察到功能器件130,其中主显示区域为屏幕110上除指定显示区域120以外的其他显示区域;当功能器件启用时,指定显示区域120不显示任何图像。As shown in FIG. 1 , it shows a schematic diagram of a 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 disposed 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 the display state, and the designated display area 120 will form a full screen with the main display area, and the image will be displayed at the same time, and the human eyes cannot observe through the designated display area 120 The functional device 130, wherein the main display area is other display areas 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.
请参考图2,其示出了本申请另一实施例提供的图像显示方法的方法流程图,应用于电子设备,所述电子设备包括屏幕,本申请以图1所示的屏幕为例进行示例性说明,所述屏幕110的指定显示区域120的下方设置有功能器件130。该方法包括:S210至S220。Please refer to FIG. 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, and the electronic device includes a screen. This application takes the screen shown in FIG. 1 as an example. To illustrate, a functional device 130 is disposed under the designated display area 120 of the screen 110 . The method includes: S210 to S220.
步骤S210:当检测到所述电子设备处于指定状态时,确定目标图像,其中,所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度。Step S210: When it is detected that the electronic device is in a specified state, determine a target image, 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.
只有当在满足指定条件时,才会显示目标图像,并且不同条件下,目标图像也会有所差异。在本申请实施例中,检测到所述电子设备处于指定状态,在所述指定状态下电子设备的屏幕处于显示状态且屏幕的显示亮度低于屏幕指定亮度,将此时确定的图像作为目标图像。即是说,在电子设备的指定状态下,至少需要检测两项:电子设备的屏幕是否处于显示状态以及电子设备的显示亮度低于屏幕指定亮度。The target image will be displayed only when the specified condition is met, and the target image will be different under different conditions. In the embodiment of the present application, it is detected that the electronic device is in a specified state, in which 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 designated 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 whether the display brightness of the electronic device is lower than the designated brightness of the screen.
只有当屏幕处于显示状态时,电子设备的屏幕才会显示图像。示例性地,可以通过以下方式来检测电子设备是否处于显示状态。The screen of an electronic device displays images only when the screen is in a display state. Exemplarily, whether the electronic device is in the display state can be detected in the following manner.
方式一,考虑到电子设备处于休眠或待机状态时,电子设备的屏幕熄灭,设备不显示任何图像,因此可以通过检测电子设备是否处于休眠或待机状态,来侧面印证屏幕是否处于显示状态。只有当电子设备未处于休眠或待机状态时,才能确定电子设备处于显示状态。方式二,直接检测电子设备的屏幕是否正在工作。例如,检测电子设备是否为屏幕供电,电子设备的发光器件是否正在工作等。Method 1, considering that when the electronic device is in the sleep or standby state, the screen of the electronic device is off and the device does not display any images, so it can be verified whether the screen is in the display state by detecting whether the electronic device is in the sleep or standby state. The display state of the electronic device can only be determined when the electronic device is not in a sleep or standby state. The second way is to directly detect whether the screen of the electronic device is working. For example, it is detected whether the electronic device supplies power to the screen, whether the light emitting device of the electronic device is working, and so on.
在电子设备的指定状态下,除了屏幕需要处于显示状态外,还需要检测屏幕的显示亮度。由前所述,由于屏幕的指定显示区域下功能器件的存在,指定显示区域部分的显示屏采用特殊材质制成,该特殊材质的显示屏与正常显示屏不同,导致低亮度下指定显示区域与主显示区域相比颜色一致性较差。因此当屏幕的显示亮度低于屏幕指定亮度时,才将目标图像确定下来,其中,在一些实施例中,所述屏幕指定亮度可以为指定显示区域与主显示区域的颜色不一致时的临界屏幕亮度值,当屏幕的亮度低于屏幕指定亮度时,指定显示区域与主显示区域将出现颜色显示差异。例如,电子设备亮度0为屏幕最低亮度,亮度100为屏幕最高亮度,当屏幕亮度值低于10时,指定显示区域与主显示区域的颜色开始出现颜色显示差异,因此可以确定亮度10为临界屏幕亮度值,那么屏幕指定亮度也为亮度10,表示电子设备的指定状态下,屏幕处于显示状态且显示亮度低于亮度10,此时将目标图像确定下来,在本申请实施例中,所述亮度10仅为示例说明,具体临界屏幕亮度值可以根据需要由用户进行设置或者调整。In a specified state of the electronic device, in addition to the screen needing to be in the display state, it is also necessary to detect the display brightness of the screen. As mentioned above, due to the existence of functional devices in the designated display area of the screen, the display screen in the designated display area is made of special materials. The display screen of this special material is different from the normal display screen, resulting in the designated display area under low brightness Color consistency is poorer in the main display area than in the main display area. Therefore, when the display brightness of the screen is lower than the specified brightness of the screen, the target image is determined. Wherein, in some embodiments, the specified brightness of the screen may be the critical screen brightness when the colors of the specified display area and the main display area are inconsistent. value, when the brightness of the screen is lower than the specified brightness of the screen, there will be a difference in color display between the designated display area and the main display area. For example, an electronic device with a brightness of 0 is the lowest brightness of the screen, and a brightness of 100 is the highest brightness of the screen. When the screen brightness value is lower than 10, the color display difference between the designated display area and the main display area begins to appear, so it can be determined that a brightness of 10 is a critical screen Brightness value, then the specified brightness of the screen is also a brightness of 10, which means that in the specified state of the electronic device, the screen is in the display state and the display brightness is lower than the brightness of 10. At this time, the target image is determined. In this embodiment of the application, the brightness 10 is only an example, and the specific critical screen brightness value can be set or adjusted by the user as required.
步骤S220:将所述目标图像在所述指定显示区域显示。Step S220: Display the target image in the designated display area.
在本申请实施例中,将前述条件下确定的目标图像显示在指定显示区域。在一些典型的实施例中,目标图像为区别于屏幕主显示区域显示内容的图像。例如,如图1所示,功能器件通常设置在电子设备的顶部,与之对应地,指定显示区域通常也在顶部状态栏附近,将目标图像设置在指定显示区域显示,因此指定显示区域可以作为顶部状态栏的一部分,目标图像直接显示顶部状态栏的一个或多个图标,为用户提供标识或提醒的作用。以图3所示的显示界面为例,指定显示区域320设置在顶部状态栏310的右侧,因此可以在指定显示区域320的位置显示目标图像,图中所述目标图像330为“电量”图标,用于显示电子设备当前剩余电量。可以理解的是,指定显示区域320仅表示一个可以显示图像的显示区域,并不是屏幕上的具体显示内容。在另一些实施例中,目标图像也可以与屏幕主显示区域的样式一致,如为桌面图标的样式,同时为目标图像赋予与桌面图标类似或完全不同的功能或定义。例如,目标图像可以显示为悬浮操作球,并通过预定义或用户设定的触控操作选中悬浮操作球可以实现不同功能。此外,除了系统对目标图像进行默认定义外,还可以为用户提供功能设置页面,如图4所述的设置页面,在设置页面用户可以对目标图像的显示内容或功能进行自定义设置,例如显示内容可设置为“状态栏图标”、“应用图标”、“系统设置项”等,选择后,还可以在选中选项的箭头图标后继续选择具体显示的内容,例如选中“状态栏图标”后,具体显示的内容包括“剩余电量”和“当前时间”选项,分别对应一个显示当前剩余电量的“电量”图标和一个显示当前时间的“时间”图标。In the embodiment of the present application, the target image determined under the aforementioned 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, as shown in Figure 1, the functional device is usually set on the top of the electronic device, correspondingly, the designated display area is usually near the top status bar, and the target image is set to be displayed in the designated display area, so the designated display area can be used as A part of the top status bar, the target image directly displays one or more icons on the top status bar, providing users with the function of identification or reminder. Taking the display interface shown in FIG. 3 as an example, the specified 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 specified display area 320, and the target image 330 in the figure is an icon of "battery capacity" , used to display the current remaining power of the electronic device. It can be understood that the specified display area 320 only represents a display area where an image can be displayed, rather than specific display content on the screen. In other embodiments, the target image may also be in the same style as the main display area of the screen, such as a desktop icon, and at the same time, the target image may be given a function or definition similar to or completely different from the desktop icon. For example, the target image can be displayed as a floating operation ball, and different functions can be realized by selecting the floating operation ball through a predefined or user-set touch operation. In addition, in addition to the default definition of the target image by the system, a function setting page can also be provided for the user, such as the setting page shown in Figure 4. On the setting page, the user can customize the display content or function of the target image, such as displaying The content can be set as "status bar icon", "application icon", "system setting item", etc. After selecting, you can also continue to select the specific displayed content after selecting the arrow icon of the option, for example, after selecting "status bar icon", The specific displayed content includes options of "remaining power" and "current time", which respectively correspond to a "battery" icon showing the current remaining power and a "time" icon showing the current time.
需要说明的是,将目标图像在所述指定显示区域显示,可以将目标图像的图像尺寸设置与指定显示区域完全一致,显示效果为目标图像完全覆盖指定显示区域,目标图像作为一个完整图像展示在屏幕上,此时目标图像与屏幕其他区域的图像形成的显示差异可以达到使用户能够清晰地从屏幕上辨识出目标图像的目的,而不会使用户产生显示异常的印象。可以理解的是,目标图像的图像尺寸也可以大于或小于指定显示区域。作为一种实施例,当目标图像的图像尺寸大于指定显示区域时,指定显示区域可以显示大部分目标图像的内容,目标图像的剩余内容,可以作为指定显示区域与屏幕主显示区域的缓冲区,对指定显示区域的显示内容和屏幕主显示区域的显示内容形成过渡。作为另一种实例,当目标图像的图像尺寸小于指定显示区域时,目标图像可以完全显示在指定显示区域内部,即是说,将指定显示区域划分为第一显示区域和围绕第一显示区域的第二显示区域,并且在第一显示区域内显示目标图像。而针对指定显示区域未显示目标图像的部分区域,即第二显示区域,则可以根据目标图像的边缘颜色及围绕指定显示区域的图像的颜色,来确定该第二显示区域的显示内容的颜色,同样使其作为第一显示区域与屏幕主显示区域的缓冲区,对指定显示区域内目标图像的显示内容和屏幕主显示区域的显示内容形成过渡。It should be noted that, to display the target image in the specified display area, the image size of the target image can be set exactly the same as the specified display area, and the display effect is that the target image completely covers the specified display area, and the target image is displayed as a complete image in the On the screen, the display difference formed between the target image and images in other areas of the screen at this time can achieve the purpose of enabling the user to clearly recognize the target image from the screen without giving the user the impression that the display is abnormal. It can be understood that the image size of the target image may 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 specified display area, the specified 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 specified display area and the main display area of the screen. Form a transition between the display content of the specified 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 specified display area, the target image can be completely displayed inside the specified display area, that is, the specified display area is divided into the first display area and the area surrounding the first display area. the second display area, and display the target image in the first display area. For the partial area where the target image is not displayed in the specified display area, that is, the second display area, the color of the display content of the second display area can be determined according to the edge color of the target image and the color of the image surrounding the specified display area, It also serves as a buffer between the first display area and the main display area of the screen, forming a transition between the display content of the target image in the designated display area and the display content of the main display area of the screen.
综上所述,本申请实施例提供的技术方案,通过检测到所述电子设备处于指定状态时,确定目标图像,其中,所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度,此时在下方设置有功能器件的指定显示区域显示所述目标图像,能够改善电子设备功能器件的上方显示区域与屏幕其他区域的显示差异,改善显示效果,提升用户的使用体验。To sum up, the technical solution provided by 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 that of the screen. Specifying the brightness, at this time, displaying the target image in the designated display area provided with functional devices below, can improve the display difference between the upper display area of the electronic equipment functional device and other areas of the screen, improve the display effect, and enhance the user experience.
请参考图5,其示出了本申请另一实施例提供的图像显示方法的方法流程图,应用于电子设备,所述电子设备包括屏幕,如图1所示,所述屏幕的指定显示区域120的下方设置有功能器件130。该方法包括:S510至S540。Please refer to FIG. 5 , which shows a method flow chart of an image display method provided in another embodiment of the present application, which is applied to an electronic device, and the electronic device includes a screen. As shown in FIG. 1 , the designated display area of the screen A functional device 130 is disposed below 120 . The method includes: S510 to S540.
步骤S510:在所述屏幕处于显示状态的情况下,获取当前时刻。Step S510: Obtain the current time when the screen is in the display state.
在电子设备的屏幕背光自动调整模式下,电子设备的屏幕亮度将根据使用环境下的环境光亮度进行调整。可以理解的是,自然环境中环境光亮度会根据每天时间的不同有所变化。例如夜晚环境光亮度较低,白天环境光亮度较高,白昼相接的凌晨和黄昏是则是环境光变化最为剧烈的两个时刻。夜晚环境光亮度较低时,在屏幕背光自动调整模式下,电子设备也将进入亮度较低的状态;白天环境光亮度较高时,在屏幕背光自动调整模式下,电子设备也将进入亮度较高的状态。由于指定显示区域和主显示区域在屏幕低亮度低灰阶下会出现显示异常,由此,可以根据当前时刻,来控制目标图像的显示与不显示。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 brightness of the ambient light in the use environment. It is understandable that the brightness of the ambient light in the natural environment will vary according to the time of day. For example, the ambient light brightness is low at night, and the ambient light brightness is high during the day, and the early morning and dusk are the two moments when the ambient light changes most violently. When the ambient light brightness is low at night, the electronic device will also enter a low brightness state in the screen backlight automatic adjustment mode; high state. Since the designated display area and the main display area may display abnormally under low brightness and low gray scale of the screen, the display or non-display of the target image can be controlled according to the current moment.
由前述实施例可知,只有当屏幕处于显示状态时,电子设备的屏幕才会显示图像,因此在本申请的一些实施例中,可以只在屏幕处于显示状态的情况下,才获取当前时刻。可以直接获取电子设备的系统时钟作为当前时刻,也可以连接线上时间服务器进行校准,获取更加准确的当前时刻,本申请实施例对当前时刻的获取方式不作限定。It can be known from the foregoing embodiments that the screen of the electronic device displays images 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 obtained directly as the current time, or it can be calibrated by connecting to an online time server to obtain a more accurate current time. The embodiment of the present application does not limit the method of obtaining the current time.
步骤S520:若所述当前时刻位于指定时段内且所述电子设备处于屏幕背光自动调整模式下,判定所述电子设备处于指定状态。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.
在申请实施例中,可以设定若所述当前时刻位于指定时段内且所述电子设备处于屏幕背光自动调整模式下,判定所述电子设备处于指定状态。指定时段可以由用户指定,也可以由系统设定。In the embodiment of the application, 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, it can be determined that the electronic device is in a specified state. The specified time period can be specified by the user or set by the system.
由于指定显示区域与主显示区域在低亮度低灰阶下会出现显示异常,且背光自动调整模式下环境光亮度较低时屏幕亮度较低,因此只有在环境光较暗的时间段,才控制目标图像进行显示。指定时段无论由用户指定,还是由系统设定,在指定时段下,环境中环境光亮度都应该满足光线较暗的自然规律,示例性地,系统可以设置一个参考时段,该参考时段内的环境光亮度较低,若指定时段不在参考时段内,则提示用户进行修改。指定时段可以包含一个起始时刻和一个终点时刻,当前时刻位于指定时段内则表示当前时刻位于起始时刻与终点时刻之间。夜晚环境光亮度较低,光线暗,示例性地,指定时段可以设置在黄昏与凌晨之间,那么可以设置起始时刻为19:00,终点时刻为次日6:00。Since the designated display area and the main display area will display abnormally under low brightness and low grayscale, and the screen brightness will be low when the ambient light brightness is low in the backlight automatic adjustment mode, so only in the time period when the ambient light is dark, control The target image is displayed. Whether the specified period is specified by the user or set by the system, the ambient light brightness in the environment should meet the natural law of dark light during the specified period. For example, the system can set a reference period, and the environment within the reference period The brightness is low. If the specified time period is not within the reference time period, the user will be prompted to modify it. The specified time period may include a start time and an end time, and if the current time is within the specified time period, it means that the current time is between the start time and the end time. At night, the ambient light is low and the light is dark. For example, the specified time period can be set between dusk and early morning, so the start time can be set to 19:00, and the end time can be set to 6:00 the next day.
自然环境中的环境光亮度由日照确定,例如从日出到日落,环境光亮度是一个由弱变强,再由强变弱的过程。因此,可以将环境光亮度较低时刻确定为日落时刻到次日的日出时刻之间,即是说,指定时段的起始时刻基于日落时刻而设定,终点时刻基于日出时刻设定。例如,某地区当地时间8:00为日出时刻,18:00为日落时刻,则在18:00-次日8:00为环境光比较暗的时间段,将此时间段作为指定时段,在此时间段内,电子设备在自动背光下会调至较低状态,此时目标图像为显示状态,在此时间段以外的其他时间段为不显示状态,不显示目标图像。The ambient light brightness in the natural environment is determined by sunlight. For example, from sunrise to sunset, the ambient light brightness is a process from weak to strong, and then from strong to weak. Therefore, the time when the ambient light brightness is low can be determined as between the time of sunset and the time of sunrise of the next day, that is to say, the start time of the specified period is set based on the time of sunset, and the end time is set based on the time of sunrise. For example, if 8:00 local time in a certain area is the sunrise time and 18:00 is the sunset time, then the time period from 18:00 to 8:00 the next day is the time period when the ambient light is relatively dark. During this time period, the electronic equipment will be adjusted to a lower state under the automatic backlight, and the target image is displayed at this time, and other time periods outside this time period are not displayed, and the target image is not displayed.
此外,日出时刻和日落时刻会根据电子设备所处地区的地理位置及季节变化。例如,当太阳直射北半球时,北半球纬度越高,日出越早,日落越晚;南半球纬度越高,日出越晚,日落越早。当太阳直射南半球时反之。并且冬季的日出时间晚于夏季。因此,在一些实施例中,可以获取电子设备所处地区的地理位置及当前时刻所处季节,进一步地,根据电子设备所处地区的经纬度及当前日期确定日出、日落时间,进而确定指定时段,作为判断当前时刻是否显示图像的依据。In addition, the sunrise time and sunset time will change according to the geographic location and season of the area where the electronic device is located. For example, when the sun shines directly on the northern hemisphere, the higher the latitude in the northern hemisphere, the earlier the sunrise and the later the sunset; the higher the latitude in the southern hemisphere, the later the sunrise and the earlier the sunset. And vice versa when the sun shines directly on the southern hemisphere. And the sunrise time in winter is later than in summer. Therefore, in some embodiments, the geographic location of the area where the electronic device is located and the season at the current moment can be obtained, and further, the sunrise and sunset times can be determined according to the latitude and longitude of the area where the electronic device is located and the current date, and then the specified time period can be determined , as the basis for judging whether to display the image at the current moment.
步骤S530:当检测到所述电子设备处于指定状态时,确定目标图像,其中,所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度。Step S530: When it is detected that the electronic device is in a specified state, determine a target image, 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.
在本申请实施例中指定状态为:在所述屏幕处于显示状态下,当前时刻位于指定时段内,所述电子设备处于屏幕背光自动调整模式下且屏幕显示亮度低于屏幕指定亮度。例如,根据日出、日落时间确定指定时段为18:00-次日8:00,屏幕指定亮度设置为10,如图6,获取到当前时刻为20:10,位于指定时段内,屏幕处于显示状态,电子设备处于屏幕背光自动调整模式下且屏幕显示亮度为8,低于屏幕指定亮度10,将此时的目标图像确定下来。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 times, the specified period is determined to be 18:00-8:00 the next day, and the specified brightness of the screen is set to 10, as shown in Figure 6. The current time is 20:10, which is within the specified period, and the screen is displaying 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.
步骤S540:将所述目标图像在所述指定显示区域显示。Step S540: Display the target image in the specified display area.
在指定状态下,确定目标图像,并将所述目标图像显示在所述指定显示区域。其中,目标图像主要用于将指定显示区域覆盖,并且为目标图像赋予功能定义。例如,目标图像可以为在指定显示区域显示的顶部状态栏图标、悬浮操作球等。In the specified state, determine the target image, and display the target image in the specified display area. Among them, the target image is mainly used to cover the specified display area and give function definition to the target image. For example, the target image may be an icon on the top status bar, a floating operation ball, etc. displayed in the specified display area.
综上所述,本申请实施例提供的技术方案,在检测到所述电子设备处于指定状态下,通过确定当前时刻位于指定时段,来确定目标图像,并且所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度,在指定时段内显示在下方设置有功能器件的指定显示区域显示所述目标图像,改善指定时段内电子设备功能器件的上方显示区域与屏幕其他区域的显示差异,改善显示效果,提升用户的使用体验。To sum up, in the technical solution provided by the embodiment of the present application, when the electronic device is detected to be in a specified state, the target image is determined by determining that the current time is within a specified time period, and in the specified state, the screen is in Display the status and display brightness lower than the specified brightness of the screen, and display the target image in the designated display area with functional devices at the bottom within the designated time period, and improve the display of the upper display area of the functional device of the electronic device and other areas of the screen within the designated time period differences, improve the display effect, and enhance the user experience.
请参考图7,其示出了本申请另一实施例提供的图像显示方法的方法流程图,应用于电子设备,所述电子设备包括屏幕,本申请以图1所示的屏幕为例进行示例性说明,所述屏幕110的指定显示区域120的下方设置有功能器件130。所述当检测到所述电子设备处于指定状态时,确定目标图像之前,该方法还包括:S710至S720。Please refer to FIG. 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, and the electronic device includes a screen. The present application uses the screen shown in FIG. 1 as an example. To illustrate, a functional device 130 is disposed under the designated display area 120 of the screen 110 . When it is detected that the electronic device is in a specified state, before determining the target image, the method further includes: S710 to S720.
步骤S710:在所述屏幕处于显示状态的情况下,获取当前环境光亮度。Step S710: Acquiring the current ambient light brightness when the screen is in the display state.
由前述实施例可知,由于指定显示区域和主显示区域在屏幕低亮度低灰阶下会出现显示异常,在电子设备的屏幕背光自动调整模式下,电子设备的屏幕亮度将根据使用环境下的光亮度进行调整,即是说,可以通过检测环境光亮度来检测显示区域的亮度。因此电子设备的指定状态除了可以根据当前时间确定,在本申请实施例中,还可以直接根据环境光亮度确定。It can be seen from the foregoing embodiments that, since the designated display area and the main display area may display abnormally under low brightness and low gray scale, 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 in the use environment. The brightness is adjusted, that is, the brightness of the display area can be detected by detecting the brightness of the ambient light. Therefore, in addition to determining the specified state of the electronic device according to the current time, in the embodiment of the present application, it may also be directly determined according to the brightness of the ambient light.
由前述实施例可知,只有当屏幕处于显示状态时,电子设备的屏幕才会显示图像,因此在本申请实施例中,只需要在屏幕处于显示状态的情况下,才获取当前环境光亮度。在一种典型的实施方式中,当检测到屏幕处于显示状态时,可以利用光线感应装置感应电子设备所处环境的光线强弱,得到环境光亮度。It can be seen from the foregoing embodiments that the screen of the electronic device displays images only when the screen is in the display state. Therefore, in the embodiment of the present application, the current ambient light brightness only needs to be acquired when the screen is in the display state. In a typical implementation, when it is detected that the screen is in the display state, the light sensing device may be used to sense the light intensity of the environment where the electronic device is located to obtain the ambient light brightness.
步骤S720:若所述当前环境光亮度小于环境指定亮度且所述电子设备处于屏幕背光自动调整模式下,判定所述电子设备处于指定状态。Step S720: If the current ambient light brightness is lower than the specified ambient brightness and the electronic device is in the screen backlight automatic adjustment mode, determine that the electronic device is in a specified state.
在屏幕背光自动调整模式下,为适合人眼观看屏幕,屏幕亮度需要根据环境光亮度的变化而变化。一般来说,环境光亮度越强,屏幕显示亮度越高;环境光亮度越弱,屏幕显示亮度越低。另外,由于指定显示区域和主显示区域在屏幕低亮度低灰阶下会出现显示异常,因此在本申请实施例中,环境指定亮度可以为指定显示区域与主显示区域的颜色不一致时的临界屏幕亮度对应的环境光亮度。当环境光亮度低于环境指定亮度时,指定显示区域与主显示区域的将出现颜色显示差异。因此可以设定若所述当前环境光亮度小于环境指定亮度且所述电子设备处于屏幕背光自动调整模式下,判定所述电子设备处于指定状态。In the screen backlight automatic adjustment mode, in order to be suitable for human eyes to watch the screen, the screen brightness needs to change according to the change of the ambient light brightness. Generally speaking, the stronger the ambient light brightness, the higher the screen display brightness; the weaker the ambient light brightness, the lower the screen display brightness. In addition, since the specified display area and the main display area will display abnormally under low brightness and low gray scale, in this embodiment of the application, the specified brightness of the environment can be the critical screen when the colors of the designated display area and the main display area are inconsistent. Brightness corresponds to ambient light brightness. When the brightness of the ambient light is lower than the specified brightness of the environment, there will be a difference in color display between the designated display area and the main display area. Therefore, it can be set that if the current ambient light brightness is lower than the specified ambient brightness and the electronic device is in the screen backlight automatic adjustment mode, it can be determined that the electronic device is in a specified state.
在本申请实施例中指定状态为:在所述屏幕处于显示状态下,当前环境光亮度小于环境指定亮度,所述电子设备处于屏幕背光自动调整模式下且屏幕显示亮度低于屏幕指定亮度。例如,环境指定亮度设置为20勒克斯,此时背光自动调整模式下对应的屏幕指定亮度为10,如图8,利用光线传感器获取到当前环境光亮度为10勒克斯,小于环境指定亮度20勒克斯,屏幕处于显示状态,电子设备处于屏幕背光自动调整模式下且屏幕显示亮度为4,低于屏幕指定亮度10,将此时的目标图像确定下来,最后上述目标图像显示在所述指定显示区域。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 lower than the specified ambient brightness, and the electronic device is in the screen backlight automatic adjustment mode and the screen display brightness is lower than the specified screen brightness. For example, if the specified brightness of the environment is set to 20 lux, the specified brightness of the corresponding screen in the backlight automatic adjustment mode is 10, as shown in Figure 8. The current ambient light brightness obtained by the light sensor is 10 lux, which is 20 lux less than the specified brightness of the environment. In the 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 specified screen brightness of 10, the target image at this time is determined, and finally the above target image is displayed in the designated display area.
在一些实施例中,在目标图像显示之前,还可以根据指定显示区域的邻近区域的背景图像的背景颜色来改变目标图像的颜色。首先获取指定显示区域的邻近区域的背景图像的背景颜色,根据背景图像的背景颜色设置目标颜色参数,然后基于所述目标颜色参数设置所述目标图像,同时,为了使所述目标图像在所述指定显示区域内显示时目标图像与邻近区域背景图像的颜色具有一致性,所述目标图像的显示颜色与背景图像的背景颜色之间的色差应当小于第一指定阈值。示例性地,可以获取与指定显示区域邻近的指定像素范围内的背景图像的背景颜色,指定像素范围例如可以为10个像素范围。首先 获取邻近10个像素范围内背景图像的背景颜色,以RGB颜色模式为例,分别获取红、绿、蓝三个通道的背景色阶值,记为Rb、Gb、Bb,然后基于背景色阶值设置目标颜色参数。基于目标颜色参数设置目标图像后,将在所述指定显示区域内显示目标图像,并且所述目标图像的显示颜色要与所述背景颜色之间的色差小于第一指定阈值。特别地,若目标图像的显示颜色与目标颜色参数一致,那么目标颜色参数与背景颜色之间的色差也应该小于第一指定阈值,其中,可以将目标颜色参数对应的红、绿、蓝三个通道的目标色阶值记为Ro、Go、Bo。由此,可以示例性地将所述目标图像的显示颜色与所述背景颜色之间的色差表示为背景色阶值与目标色阶值的三个通道之间的差值。例如若第一指定阈值设置为100,则背景色阶值与目标色阶值的三个通道的差值应该同时小于第一指定阈值,即Rb与Ro的差值小于100,Gb与Ro的差值小于100,同时Bb与Ro的差值也小于100。以图6所示的背景图像为例,与指定显示区域的目标图像610相邻近的背景图像620的背景颜色(Rb、Gb、Bb)为(187,187,187),则目标颜色参数即目标图像610的显示颜色(Ro、Go、Bo)可以为(127,127,127)。In some embodiments, before the target image is displayed, the color of the target image may also be changed according to the background color of the background image of the adjacent area of the specified display area. First obtain the background color of the background image of the adjacent area of the designated display area, set the target color parameter according to the background color of the background image, and then set the target image based on the target color parameter, and at the same time, in order to make the target image in the When displayed in the specified display area, the color of the target image is consistent with that of the background image in the adjacent area, and the color difference between the display color of the target image and the background color of the background image should be smaller than the first specified threshold. Exemplarily, the background color of the background image within a specified pixel range adjacent to the specified display area may be acquired, and the specified pixel range may be, for example, a range of 10 pixels. First obtain the background color of the background image within the range of 10 adjacent pixels. Taking the RGB color mode as an example, obtain the background color scale values of the red, green, and blue channels respectively, which are recorded as Rb, Gb, and Bb, and then based on the background color scale Value sets the target color parameter. After the target image is set based on the target color parameter, the target image will be displayed in the specified display area, and the color difference between the display color of the target image and the background color should be smaller than a 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, where the red, green and blue corresponding to the target color parameter can be The channel's target level values are denoted as Ro, Go, Bo. Thus, the color difference between the display color of the target image and the background color can be exemplarily expressed 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 level value and the target color level 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, and the difference between Gb and Ro The value is less than 100, and the difference between Bb and Ro is also less than 100. Taking the background image shown in Figure 6 as an example, the background color (Rb, Gb, Bb) of the background image 620 adjacent to the target image 610 of the designated display area is (187, 187, 187), then the target color parameter is the target image The display color (Ro, Go, Bo) of 610 may be (127, 127, 127).
除此之外,还可以通过为目标图像设置一个透明度,来使目标图像与背景图像的颜色更加具有一致性,避免因目标图像过于突兀而影响用户观感。若目标图像的透明度设置合理,当所述目标图像在所述屏幕的指定显示区域的背景图像之上叠加显示的时候,透过目标图像可以显示出部分背景图像的颜色,因此呈现给用户的效果是目标图像和所述背景图像叠加显示的叠加效果,可以用目标图像与所述背景图像叠加后的叠加颜色来表示。并且指定显示区域的背景图像与邻近区域的背景图像应当属于同一副图像画面的不同区域,具有颜色一致性,当目标图像在指定显示区域的背景图像之上叠加显示的时候,为保证目标图像与背景图像的颜色也具有一致性,在一些实施例中,所述指定显示区域的背景图像的背景颜色与叠加颜色之间的色差应当小于第二指定阈值。同样地,以RGB颜色模式为例,分别获取红、绿、蓝三个通道的背景色阶值,所述背景图像的背景颜色的背景色阶值与叠加颜色的叠加色阶值之间的差值小于第二指定阈值,将所述目标图像在所述屏幕的指定显示区域的背景图像之上叠加显示,并且叠加颜色由叠加色价值确定。将目标图像的透明度记为指定透明度,示例性地,指定透明度可以设置为30%。根据透明度公式,当叠加颜色确定之后,由目标图像的透明度、背景颜色及叠加颜色可以确定目标图像自身的显示颜色。在一些典型的实施例中,所述透明度公式为L2=L1*(1-a)+L0*a,其中L2为叠加颜色,L1为目标图像自身的显示颜色,L0为背景颜色,a为透明度。其中,在一些实施例中,第二指定阈值可以与第一指定阈值相同,呈现出来的显示效果类似,但目标图像自身的显示颜色不同。例如,设置指定透明度为30%,同样将第二指定阈值设置为100,指定显示区域的背景图像的背景颜色为(187,187,187),那么叠加颜色同样可以设置为(127,127,127),根据透明度公式,计算得出目标图像自身的显示颜色为(101,101,101)。In addition, you can also set a transparency for the target image to make the color of the target image and the background image more consistent, so as to avoid affecting the user's perception because the target image is too abrupt. If the transparency of the target image is properly set, when the target image is superimposed on the background image in 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 is a superimposed effect of superimposed display of the target image and the background image, and may be represented by superimposed colors of the superimposed target image and the background image. And the background image of the specified display area and the background image of the adjacent area should belong to different areas of the same secondary image screen, with color consistency. When the target image is superimposed on the background image of the specified display area, in order to ensure that the target image The color of the background image is also consistent. In some embodiments, the color difference between the background color of the background image of the designated display area and the superimposed color should be smaller 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, and 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 If the value is less than the second specified threshold, the target image is displayed superimposed on the background image in 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, for example, the specified transparency can be set to 30%. According to the transparency formula, after the overlay color is determined, the display color of the target image itself can be determined by the transparency of the target image, the background color and the overlay color. In some typical embodiments, the transparency formula is L2=L1*(1-a)+L0*a, wherein L2 is the overlay color, L1 is the display color of the target image itself, L0 is the background color, and a is the transparency . Wherein, in some embodiments, the second specified threshold may be the same as the first specified threshold, and the presented display effect is similar, but the display color of the target image itself is different. For example, if the specified transparency is set to 30%, the second specified threshold is also set to 100, and the background color of the background image of the specified display area is (187, 187, 187), then the overlay color can also be set to (127, 127, 127), according to the transparency According to the formula, the display color of the target image itself is calculated as (101, 101, 101).
由于背景图像通常是深浅不一的复杂颜色,而用于描述图像画面的最小元素称为像素,每个像素被分配了一个明确的颜色和位置坐标,将这些拥有各种颜色的像素根据位置坐标组合起来,显示在屏幕上便是一副完整的画面。因此,在一些实施例中,计算拥有复杂颜色的背景图像的背景颜色,需要确定指定显示区域的邻近区域坐标范围内背景图像的每个像素,再基于每个像素的色阶得到背景图像的背景色阶,例如统计各个像素的色阶并将其换算为背景图像的背景色阶,然后再根据背景色阶计算目标图像的目标色阶值。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, these pixels with various colors are based on the position coordinates Combined, it is a complete picture displayed on the screen. Therefore, in some embodiments, to calculate the background color of a 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 obtain the background of the background image based on the color scale of each pixel Color scale, such as counting the color scale of each pixel and converting it to the background color scale of the background image, and then calculating the target color scale value of the target image according to the background color scale.
在本申请的另一些实施例中,除了可以自适应地设置目标图像的显示颜色外,还可以设置目标图像的显示内容和操作功能。示例性地,目标图像的显示内容可以基于预先设置的指定信息而设定,也可以基于指定信息的更新内容实时更新所述目标图像的显示内容,并将目标图像的显示内容显示在指定显示区域。例如,设置指定信息为天气预报,那么目标图像的显示内容可以为显示当前天气信息的天气图标,并且天气图标根据天气预报的预测信息进行更改,如图8所示,如当前时刻为12:31,当前为晴天时天气图标810显示为“太阳”图标,若五分钟后天气更新为阴天,如图9所示,则12:36时刻的天气图标910将显示为“乌云”图标。此外,在一些实施方式中,目标图像在指定显示区域显示后,当检测到基于所述目标图像的触发操作时,将执行与所述触发操作对应的预设动作,预设动作可以包括启动与所述目标图像对应的应用程序。以目标图像显示天气预报为例,当检测到基于所述目标图像的触发操作如点击目标图标所示的天气图标等,如图10所示,将启动与天气图标关联的天气预报程序的对应页面,例如天气预报应用程序主页等。当然也可以设置目标图像只显示基于指定信息而设定的显示内容,而不设置任何互动功能,仅用作标识和提醒的作用,示例性地,还可以允许用户在如图4所示的设置界面更改目标图像的显示内容和功能。In other embodiments of the present application, in addition to adaptively setting the display color of the target image, display content and operation functions of the target image can also be set. Exemplarily, the display content of the target image can be set based on the preset designation information, or can be updated in real time based on the update content of the designation information, and the display content of the target image can be displayed in the designated display area . For example, if the specified information is set as a weather forecast, then the display content of the target image can be a weather icon showing current weather information, and the weather icon changes according to the forecast information of the weather forecast, as shown in Figure 8, as the current moment is 12:31 , the weather icon 810 is displayed as a "sun" icon when it is currently sunny, and if the weather is updated to cloudy after five minutes, as shown in Figure 9, the weather icon 910 at 12:36 will be displayed as a "dark cloud" icon. In addition, in some implementations, 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 starting and The application program corresponding to the target image. Taking the weather forecast displayed on the target image 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., as shown in Figure 10, the corresponding page of the weather forecast program associated with the weather icon will be started , such as the home page of a weather forecast app, etc. Of course, it is also possible to set the target image to only display the display content set based on the specified information, without setting any interactive function, and it is only used as a sign and a reminder. For example, the user can also be allowed to set the The interface changes the display content and functionality of the target image.
可以理解的是,屏幕的指定显示区域的下方设置的功能器件可以为摄像头,当满足指定条件且摄像头未启用时,可以将目标图像显示在屏下摄像头对应的指定显示区域的位置。而当摄像头启用时,为避免对外部光线造成遮挡,方便摄像头成像,此时电子设备的指定显示区域不显示任何图像。It can be understood that the functional device provided under the designated display area of the screen may be a camera, and when the specified conditions are met and the camera is not enabled, the target image may be displayed in the designated display area corresponding to the camera under the screen. However, when the camera is enabled, in order to avoid blocking external light and facilitate imaging by the camera, the designated display area of the electronic device does not display any images at this time.
综上所述,本申请实施例提供的技术方案,在检测到所述电子设备处于指定状态下,同时当环境光亮度小于环境指定亮度时,确定目标图像,并且所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度,在指定时段内显示在下方设置有功能器件的指定显示区域显示所述目标图像,改善环境光亮度较暗时电子设备功能器件的上方显示区域与屏幕其他区域的显示差异,改善显示效果,提升用户的使用体验。此外,还可以使目标图像的显示颜色可以随背景改变,确保界面一致,同时为目标图像赋予显示内容和功能,真正实现全面屏显示。To sum up, in the technical solution provided by the embodiment of the present application, when it is detected that the electronic device is in a specified state, and at the same time when the ambient light brightness is less than the specified environment brightness, the target image is determined, and in the specified state, the When the screen is in the display state and the display brightness is lower than the specified brightness of the screen, within a specified period of time, the target image is displayed in the designated display area provided with functional devices below, which improves the connection between the upper display area of the functional device of the electronic device when the ambient light brightness is dark. The display difference in other areas of the screen improves the display effect and enhances the user experience. In addition, the display color of the target image can be changed with the background to ensure a consistent interface, and at the same time, the display content and functions can be given to the target image to truly realize a full-screen display.
请参阅图11,其示出了本申请实施例提供的一种图像显示装置的结构框图,该装置 可以包括:确定单元1110和显示单元1120。Please refer to FIG. 11 , which shows a structural block diagram of an image display device provided by an embodiment of the present application, and the device may include: a determination unit 1110 and a display unit 1120 .
进一步的,确定单元1110用于当检测到所述电子设备处于指定状态时,确定目标图像,其中,所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度。显示单元1120用于将所述目标图像在所述指定显示区域显示。Further, the determining unit 1110 is 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 the specified brightness of the screen. The display unit 1120 is configured to display the target image in the specified display area.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the devices and modules described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
请参考图12,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备1200可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备1200可以包括一个或多个如下部件:处理器1210、存储器1220、屏幕1230以及一个或多个应用程序,其中所述屏幕的指定显示区域的下方设置有功能器件,一个或多个应用程序可以被存储在存储器1220中并被配置为由一个或多个处理器1210执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 12 , which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 1200 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, and an e-book. The electronic device 1200 in this application may include one or more of the following components: a processor 1210, a memory 1220, a screen 1230, and one or more application programs, wherein a functional device is arranged under the designated display area of the screen, one or A plurality of application programs 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 perform the methods described in the foregoing method embodiments.
电子设备1200还可以是多个电子设备中的任何一个,多个电子设备包括但不限于蜂窝电话、智能电话、智能手表、智能手环、其他无线通信设备、个人数字助理、音频播放器、其他媒体播放器、音乐记录器、录像机、照相机、其他媒体记录器、收音机、医疗设备、车辆运输仪器、计算器、可编程遥控器、寻呼机、膝上型计算机、台式计算机、打印机、上网本电脑、个人数字助理(PDA)、便携式多媒体播放器(PMP)、运动图像专家组(MPEG-1或MPEG-2)音频层3(MP3)播放器,便携式医疗设备以及数码相机及其组合。Electronic device 1200 may also be any of a number 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 Equipment, 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.
在一些情况下,电子设备1200可以执行多种功能(例如,播放音乐,显示视频,存储图片以及接收和发送电话呼叫)。如果需要,电子设备1200可以是诸如蜂窝电话、媒体播放器、其他手持设备、腕表设备、吊坠设备、听筒设备或其他紧凑型便携式设备。In some cases, the electronic device 1200 may perform various functions (eg, play music, display video, store pictures, and receive and send phone calls). Electronic device 1200 may be a device such as a cellular phone, media player, other handheld device, wrist watch device, pendant device, earpiece device, or other compact portable device, if desired.
处理器1210可以包括一个或者多个处理核。处理器1210利用各种接口和线路连接整个电子设备1200内的各个部分,通过运行或执行存储在存储器1220内的指令、程序、代码集或指令集,以及调用存储在存储器1220内的数据,执行电子设备1200的各种功能和处理数据。可选地,处理器1210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics  Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1210中,单独通过一块通信芯片进行实现。Processor 1210 may include one or more processing cores. The processor 1210 uses various interfaces and circuits to connect various parts of the entire electronic device 1200, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1220, and calls data stored in the memory 1220 to execute Various functions of the electronic device 1200 and processing data. Optionally, the processor 1210 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the displayed content; the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 1210, but implemented by a communication chip alone.
存储器1320可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器1220可用于存储指令、程序、代码、代码集或指令集。存储器1220可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以电子设备1200在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 1320 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory). The memory 1220 may be used to store instructions, programs, codes, sets of codes or sets of instructions. 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 and 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 method embodiments, and the like. The data storage area may also be data created by the electronic device 1200 during use (such as phonebook, audio and video data, chat record data) and the like.
屏幕1230可以包括LCD液晶显示屏、可以为发光二极管(light emitting diode,LED)显示屏,也可以为三维(Three Dimensional,3D)显示屏,或者等离子显示器(Plasma Display Panel,PDP)等,进一步地,本申请实施例所述的屏幕1230还可以具有全面屏、曲面屏、异形屏、折叠屏或其他屏幕形态,本申请对屏幕的种类或形态均不做具体限定。The screen 1230 may include an LCD liquid crystal display, may be a light emitting diode (light emitting diode, LED) display, may also be a three-dimensional (Three Dimensional, 3D) display, or a plasma display (Plasma Display Panel, PDP), etc., further , 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, and this application does not specifically limit the type or form of the screen.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的电子设备的处理器1210、存储器1220及屏幕1230的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the processor 1210, memory 1220, and screen 1230 of the electronic device described above can refer to the corresponding process in the foregoing method embodiment. This will not be repeated here.
请参考图13,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质1300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 13 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program codes are stored in the computer-readable medium 1300, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
计算机可读存储介质1300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质1300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质1300具有执行上述方法中的任何方法步骤的程序代码1310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1310可以例如以适当形式进行压缩。The computer readable storage medium 1300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1300 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The computer-readable storage medium 1300 has a storage space for program code 1310 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products. Program code 1310 may, for example, be compressed in a suitable form.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
请参考图14,其示出了本申请实施例提供的一种计算机程序产品1400,包括计算机程序/指令1410,该计算机程序/指令被处理器执行时实现上述方法。Please refer to FIG. 14 , which shows a computer program product 1400 provided by an embodiment of the present application, including a computer program/instruction 1410 , which implements the above method when executed by a processor.
本发明实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一区域和第二区域等是用于区别不同的区域,而不是用于描述区域的特定顺序。在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。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 sequence of objects. For example, the first area, the second area, etc. are used to distinguish different areas, not to describe a specific order of the areas. In the description of the embodiments of the present invention, unless otherwise specified, "plurality" means two or more.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this article is an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone These three situations. The symbol "/" in this document indicates that the associated object is an or relationship, for example, A/B indicates A or B.
在本发明的实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention shall not be construed as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (23)

  1. 一种图像显示方法,其特征在于,应用于电子设备,所述电子设备包括屏幕,所述屏幕的指定显示区域的下方设置有功能器件,所述方法包括:An image display method, characterized in that it 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, and the method includes:
    当检测到所述电子设备处于指定状态时,确定目标图像,其中,所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度;When it is detected that the electronic device is in a specified state, the 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;
    将所述目标图像在所述指定显示区域显示。and displaying the target image in the designated display area.
  2. 根据权利要求1所述的方法,其特征在于,所述目标图像的图像尺寸小于指定显示区域,所述将所述目标图像在所述指定显示区域显示,包括:The method according to claim 1, wherein the image size of the target image is smaller than a designated display area, and displaying the target image in the designated display area includes:
    将所述指定显示区域划分为第一显示区域和围绕所述第一显示区域的第二显示区域;dividing the specified display area into a first display area and a second display area surrounding the first display area;
    在所述第一显示区域内显示所述目标图像。The target image is displayed in the first display area.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, further comprising:
    根据所述目标图像的边缘颜色及围绕所述指定显示区域的图像的颜色确定所述第二显示区域的颜色。The color of the second display area is determined according to the edge color of the target image and the color of images surrounding the designated display area.
  4. 根据权利要求1所述的方法,其特征在于,所述当检测到所述电子设备处于指定状态时,确定目标图像之前,还包括:The method according to claim 1, wherein when it is detected that the electronic device is in a specified state, before determining the target image, further comprising:
    在所述屏幕处于显示状态的情况下,获取当前时刻;When the screen is in a display state, obtain the current moment;
    若所述当前时刻位于指定时段内且所述电子设备处于屏幕背光自动调整模式下,判定所述电子设备处于指定状态。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.
  5. 根据权利要求4所述的方法,其特征在于,所述指定时段包括起始时刻和终点时刻,所述起始时刻基于日落时刻而设定,所述终点时刻基于日出时刻而设定。The method according to claim 4, wherein the specified time period includes a start time and an end time, the start time is set based on the sunset time, and the end time is set based on the sunrise time.
  6. 根据权利要求5所述的方法,其特征在于,所述日出时刻和所述日落时刻基于所述电子设备所处地区的地理位置及季节而变化。The method according to claim 5, wherein the sunrise time and the sunset time are changed based on the geographic location and season of the area where the electronic device is located.
  7. 根据权利要求1所述的方法,其特征在于,所述当检测到所述电子设备处于指定状态时,确定目标图像之前,还包括:The method according to claim 1, wherein when it is detected that the electronic device is in a specified state, before determining the target image, further comprising:
    在所述屏幕处于显示状态的情况下,获取当前环境光亮度;When the screen is in the display state, obtain the current ambient light brightness;
    若所述当前环境光亮度小于环境指定亮度且所述电子设备处于屏幕背光自动调整模式下,判定所述电子设备处于指定状态。If the current ambient light brightness is less than the specified ambient brightness and the electronic device is in a screen backlight automatic adjustment mode, it is determined that the electronic device is in a specified state.
  8. 根据权利要求1所述的方法,其特征在于,确定所述目标图像,包括:The method according to claim 1, wherein determining the target image comprises:
    确定所述屏幕的指定显示区域的邻近区域的背景图像的背景颜色;determining the background color of the background image in the vicinity of the specified display area of the screen;
    基于所述背景颜色设置所述目标颜色参数;setting the target color parameter 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 specified display area, the color difference between the display color of the target image and the background color is smaller than a first specified threshold.
  9. 根据权利要求8所述的方法,其特征在于,所述确定所述屏幕的指定显示区域的邻近区域的背景图像的背景颜色,包括:The method according to claim 8, wherein the determining the background color of the background image of the adjacent area of the specified display area of the screen comprises:
    获取与所述指定显示区域邻近的指定像素范围内的背景图像的背景颜色。Obtain the background color of the background image within the specified pixel range adjacent to the specified display area.
  10. 根据权利要求8所述的方法,其特征在于,所述背景颜色由背景色阶构成,所述确定所述屏幕的指定显示区域的邻近区域的背景图像的背景颜色,包括:The method according to claim 8, wherein the background color is composed of a background color scale, and the determination of the background color of the background image of the adjacent area of the designated display area of the screen includes:
    确定所述指定显示区域的邻近区域坐标范围内背景图像的每个像素;determining each pixel of the background image within the coordinate range of the adjacent area of the designated display area;
    基于每个所述像素的色阶得到背景图像的背景色阶。A background color level of the background image is obtained based on the color level of each pixel.
  11. 根据权利要求1所述的方法,其特征在于,所述目标图像对应的透明度为指定透明度,所述将所述目标图像在所述指定显示区域显示,包括:The method according to claim 1, wherein the transparency corresponding to the target image is specified transparency, and displaying the target image in the specified display area comprises:
    将所述目标图像在所述屏幕的指定显示区域的背景图像之上叠加显示,其中,所述背景图像的背景颜色与叠加颜色之间的色差小于第二指定阈值,所述叠加颜色为所述目标图像与所述背景图像叠加后的颜色。superimposing and displaying the target image on the background image of the specified display area of the screen, wherein the color difference between the background color of the background image and the superimposed color is smaller than a second specified threshold, and the superimposed color is the The color of the overlay of the target image and the background image.
  12. 根据权利要求11所述的方法,其特征在于,所述将所述目标图像在所述屏幕的指定显示区域的背景图像之上叠加显示之前,还包括:The method according to claim 11, wherein, before superimposing and displaying the target image on the background image of the designated display area of the screen, further comprising:
    确定所述叠加颜色;determining the overlay color;
    由所述目标图像的透明度、背景颜色及叠加颜色确定所述目标图像的显示颜色。The display color of the target image is determined by the transparency, background color and superimposed color of the target image.
  13. 根据权利要求12所述的方法,其特征在于,所述由所述目标图像的透明度、背景颜色及叠加颜色确定所述目标图像的显示颜色,包括:The method according to claim 12, wherein the determining the display color of the target image by the transparency, background color and superimposed color of the target image comprises:
    根据透明度公式,由所述目标图像的透明度、背景颜色及叠加颜色确定所述目标图像的显示颜色,其中,所述透明度公式为:According to the transparency formula, the display color of the target image is determined by the transparency, the background color and the overlay color of the target image, wherein the transparency formula is:
    L2=L1*(1-a)+L0*a,其中,L2为所述叠加颜色,L1为所述目标图像的显示颜色,L0为所述背景颜色,a为所述目标图像的透明度。L2=L1*(1-a)+L0*a, where L2 is the superimposed color, L1 is the display color of the target image, L0 is the background color, and a is the transparency of the target image.
  14. 根据权利要求1所述的方法,其特征在于,所述目标图像的显示内容预先基于指定信息而设定,所述将所述目标图像在所述指定显示区域显示之后,还包括:The method according to claim 1, wherein the display content of the target image is set in advance based on specified information, and after displaying the target image in the specified display area, further comprising:
    获取所述指定信息的更新内容;Obtain updated content of the specified information;
    基于所述更新内容实时更新所述目标图像的显示内容,并在所述指定显示区域显示。The display content of the target image is updated in real time based on the update content, and displayed in the designated display area.
  15. 根据权利要求1所述的方法,其特征在于,所述将所述目标图像在所述指定显示区域显示之后,还包括:The method according to claim 1, wherein after displaying the target image in the designated display area, further comprising:
    当检测到基于所述目标图像的触发操作时,执行与所述触发操作对应的预设动作。When a trigger operation based on the target image is detected, a preset action corresponding to the trigger operation is executed.
  16. 根据权利要求8所述的方法,其特征在于,所述执行与所述触发操作对应的预设动作,包括:The method according to claim 8, wherein the performing a preset action corresponding to the trigger operation comprises:
    启动与所述目标图像对应的应用程序。An application corresponding to the target image is launched.
  17. 根据权利要求1-16任一所述的方法,其特征在于,所述功能器件为摄像头。The method according to any one of claims 1-16, wherein the functional device is a camera.
  18. 根据权利要求17所述的方法,其特征在于,所述将所述目标图像在所述指定显示区域显示,包括:The method according to claim 17, wherein the displaying the target image in the designated display area comprises:
    当检测到所述摄像头未启用时,将所述目标图像在所述指定显示区域显示。When it is detected that the camera is not activated, the target image is displayed in the designated display area.
  19. 根据权利要求18所述的方法,其特征在于,所述方法还包括:The method according to claim 18, further comprising:
    当所述摄像头启用时,所述指定显示区域不显示任何图像。When the camera is enabled, the designated display area does not display any images.
  20. 一种图像显示装置,其特征在于,应用于电子设备,所述电子设备包括屏幕,所述屏幕的指定显示区域的下方设置有功能器件,所述装置包括:An image display device, characterized in that it is applied to electronic equipment, the electronic equipment includes a screen, and a functional device is arranged below a designated display area of the screen, and the device includes:
    确定单元,用于当检测到所述电子设备处于指定状态时,确定目标图像,其中,所述指定状态下,所述屏幕处于显示状态且显示亮度低于屏幕指定亮度;A determining 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 the specified brightness of the screen;
    显示单元,用于将所述目标图像在所述指定显示区域显示。a display unit, configured to display the target image in the designated display area.
  21. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    一个或多个处理器;one or more processors;
    存储器;memory;
    屏幕,所述屏幕的指定显示区域的下方设置有功能器件;a screen, a functional device is arranged below the designated display area of the screen;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行如权利要求1-19任一项所述的方法。one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs are configured to perform The method according to any one of claims 1-19.
  22. 一种计算机可读介质,其特征在于,所述计算机可读介质存储有处理器可执行的程序代码,所述程序代码被所述处理器执行时使所述处理器执行权利要求1-19任一项所述方法。A computer-readable medium, wherein the computer-readable medium stores program code executable by a processor, and when the program code is executed by the processor, the processor executes any of claims 1-19. one of the methods described.
  23. 一种计算机程序产品,其特征在于,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现权利要求1-19任一项所述的方法。A computer program product, characterized in that it includes a computer program/instruction, and is characterized in that, when the computer program/instruction is executed by a processor, the method described in any one of claims 1-19 is implemented.
PCT/CN2022/085525 2021-06-04 2022-04-07 Image display method and apparatus, electronic device, and storage medium WO2022252807A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110624376.X 2021-06-04
CN202110624376.XA CN115442458A (en) 2021-06-04 2021-06-04 Image display method, image display device, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022252807A1 true WO2022252807A1 (en) 2022-12-08

Family

ID=84240573

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/085525 WO2022252807A1 (en) 2021-06-04 2022-04-07 Image display method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN115442458A (en)
WO (1) WO2022252807A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060020906A1 (en) * 2003-07-16 2006-01-26 Plut William J Graphics preservation for spatially varying display device power conversation
CN107209534A (en) * 2015-02-12 2017-09-26 高通股份有限公司 Content shows through control in wearable display
CN111443765A (en) * 2020-03-16 2020-07-24 维沃软件技术有限公司 Electronic equipment and screen display method
CN111627369A (en) * 2020-05-14 2020-09-04 Oppo广东移动通信有限公司 Display screen display method, display screen assembly and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060020906A1 (en) * 2003-07-16 2006-01-26 Plut William J Graphics preservation for spatially varying display device power conversation
CN107209534A (en) * 2015-02-12 2017-09-26 高通股份有限公司 Content shows through control in wearable display
CN111443765A (en) * 2020-03-16 2020-07-24 维沃软件技术有限公司 Electronic equipment and screen display method
CN111627369A (en) * 2020-05-14 2020-09-04 Oppo广东移动通信有限公司 Display screen display method, display screen assembly and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; Video formats for 3GPP services (Release 15)", 3GPP STANDARD; TECHNICAL REPORT; 3GPP TR 26.949, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), no. V15.0.0, 22 June 2018 (2018-06-22), pages 1 - 41, XP051473319 *
DENG, CHENG: "Energy-saving Technology Based on Dual-display Mobile Terminals from the Perspective of Patents", C-ENTERPRISE MANAGEMENT, no. 2, 10 February 2016 (2016-02-10), CN, pages 78 - 79, XP009541684, ISSN: 2096-8620 *

Also Published As

Publication number Publication date
CN115442458A (en) 2022-12-06

Similar Documents

Publication Publication Date Title
US9502001B2 (en) Display control method and apparatus for power saving
CN113647084B (en) Control method for screen-off display, terminal equipment and storage medium
US10204593B2 (en) Display apparatus and method for controlling the same
US20220230594A1 (en) Method for operating electronic device and electronic device for supporting the same
US8933958B2 (en) Enhanced user interface elements in ambient light
US10629167B2 (en) Display apparatus and control method thereof
KR102353766B1 (en) Apparatus and method for controlling display
US9712779B2 (en) Image display method and apparatus
US20150116344A1 (en) Method and apparatus for controlling screen brightness in electronic device
US10761564B2 (en) Electronic apparatus including emissive display and transparent display and method of controlling same
US11050968B2 (en) Method for driving display including curved display area, display driving circuit supporting the same, and electronic device including the same
EP2717590B1 (en) Display apparatus, user terminal apparatus, external apparatus, display method, data receiving method and data transmitting method
US10115372B2 (en) Display apparatus and controlling method thereof
US20200257411A1 (en) Method for providing user interface related to note and electronic device for the same
US10978027B2 (en) Electronic display partial image frame update systems and methods
WO2018119575A1 (en) Display method and electronic device
CN104133632B (en) Portable terminal and method for protecting displayed object
WO2014111835A2 (en) Low-power mode for display
US10803827B2 (en) Display apparatus and display method
CN106873851A (en) Method, device and terminal that 3D regards the Widget imitated are created in interactive interface
WO2021015853A1 (en) Adaptive low power touch and display device
WO2020042595A1 (en) Display device and control method for display device
WO2022252807A1 (en) Image display method and apparatus, electronic device, and storage medium
CN111862873A (en) Power supply control method of display screen and terminal
EP3066640B1 (en) Electronic device having display function and operating method therefor

Legal Events

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

Ref document number: 22814854

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE