CN113963086A - Screen-off display method and electronic equipment - Google Patents

Screen-off display method and electronic equipment Download PDF

Info

Publication number
CN113963086A
CN113963086A CN202111101087.8A CN202111101087A CN113963086A CN 113963086 A CN113963086 A CN 113963086A CN 202111101087 A CN202111101087 A CN 202111101087A CN 113963086 A CN113963086 A CN 113963086A
Authority
CN
China
Prior art keywords
image
screen
moon
sun
color temperature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111101087.8A
Other languages
Chinese (zh)
Other versions
CN113963086B (en
Inventor
张沁峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111101087.8A priority Critical patent/CN113963086B/en
Publication of CN113963086A publication Critical patent/CN113963086A/en
Application granted granted Critical
Publication of CN113963086B publication Critical patent/CN113963086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A screen-off display method and an electronic device are provided. In the method, the screen-off image may include some elements that change with time, for example, elements such as sun or moon, starry sky or cloud, and other elements such as leaves and grass. The electronic device may determine what element to add in the screen-out image based on the information of the original image, for example, a moon is included in the original image or is suitable for adding a moon, and a moon may be added in the screen-out image.

Description

Screen-off display method and electronic equipment
Technical Field
The present application relates to the field of terminals and communication technologies, and in particular, to a screen-off display method and an electronic device.
Background
With the development of terminal devices, more and more electronic devices have a screen-off display function. The electronic equipment only needs to lighten the pixel points corresponding to the patterns needing to be displayed in the screen and keeps other pixel points not working, and then screen-off display can be achieved. For example, when the screen is off for displaying time, only corresponding pixel points in the OLED screen are lighted to form alphanumerics, and the rest of the pixel points in the OLED screen are kept not working.
The screen-off display can display common information in life, such as time information and the like, under the condition of saving power consumption, and how to make the screen-off display closer to the life of a user is one direction of current research.
Disclosure of Invention
The application provides a screen-off display method and electronic equipment, wherein the screen-off image displayed when the electronic equipment is turned off can include some elements which change along with time, so that the practicability and the interestingness of screen-off display are improved.
In a first aspect, the present application provides a method for displaying a screen-off display, the method comprising: at a first moment, when the electronic equipment detects that the screen is turned off, the electronic equipment acquires time information corresponding to the first moment, wherein the time information is used for determining time; the electronic equipment acquires a target image set according to the time information; the electronic equipment synthesizes the screen-off image according to the target image set; the electronic equipment displays a screen-off image when the screen is off, wherein the screen-off image comprises a moon or a sun; under the condition that the moon is included in the screen-off image, the shape of the moon in the screen-off image changes along with time and is used for representing the lunar phase of the moon in the current sky; in the case where the sun is included in the screen-out image, the color temperature of the screen-out image changes with time to represent the color temperature of the current sunlight.
In the above embodiment, the electronic device may determine the current rough time information by the shape of the moon in the screen-off image or the color temperature of the screen-off image, and may reflect some natural phenomena. Therefore, the screen-off image can contain more information close to the life of the user, and the practicability and the interestingness of screen-off display are improved.
With reference to the first aspect, in one embodiment, the method further includes: under the condition that the moon is included in the original image, the screen-off image includes the moon, and the target image set includes a background image and a moon image, wherein the moon image is used for determining the moon in the screen-off image; in the case where the sun is included in the original image, the sun is included in the screen-out image, and the background image, the sun image, and the color temperature setting image are included in the target image set, wherein the sun image is used to determine the sun in the screen-out image, and the color temperature image is used to determine the color temperature of the screen-out image.
In the above embodiment, whether the screen-out image includes the moon or the sun is determined according to the content in the original image, so that the use habit of the user can be better adapted, for example, if the user wants to include the sun in the screen-out image, the user can select the original image including the sun, and the electronic device can obtain the screen-out image including the sun according to the original image.
With reference to the first aspect, in an implementation, before the electronic device displays the screen-out image when the electronic device is turned off, the method further includes: the electronic equipment sets a first system image as an original image; under the condition that the time indication is at night, the screen-off image comprises a moon, and the target image set comprises a background image and a moon image, wherein the moon image is used for determining the moon in the screen-off image; in the case that the time indication is day time, the off-screen image includes the sun, and the target image set includes a background image, a sun image and a color temperature setting image, wherein the sun image is used for determining the sun in the off-screen image, and the color temperature image is used for determining the color temperature of the off-screen image.
In the above embodiment, the elements in the screen-off image can be dynamically displayed along with time, for example, the sun is displayed in the daytime, and the moon is displayed at night, so that the content contained in the screen-off image is richer, and the practicability and the interestingness thereof are increased.
With reference to the first aspect, in an implementation, before the electronic device displays the screen-out image when the electronic device is turned off, the method further includes: the electronic equipment sets the first self-defined image as an original image; the electronic equipment determines that the first custom image can match the moon, so that the screen-off image comprises the moon; the electronic equipment takes the first self-defined image as a background image corresponding to the original image; the electronic equipment acquires time information, and the time information is used for determining time; the background image and the moon image are included in the target image set, wherein the moon image is used for determining a moon in the screen-off image.
In the above embodiment, if the original image is a user-defined image, it may be determined whether it is appropriate to add some elements in the original image, for example, whether it is appropriate to add a moon, and if it is not appropriate, the moon is not included in the screen-out image. For example, if the original image is an indoor scene, it is not appropriate to add a moon, and the moon is not included in the screen-off image.
With reference to the first aspect, in an implementation, before the electronic device displays the screen-out image when the electronic device is turned off, the method further includes: the electronic equipment sets the first self-defined image as an original image; the electronic device determines that the first custom image can match the sun, so that the screen-off image includes the sun; the electronic equipment takes the first self-defined image as a background image corresponding to the original image; the target image set comprises a background image, a sun image and a color temperature setting image, wherein the sun image is used for determining the sun in the screen-out image, and the color temperature setting image is used for determining the color temperature of the screen-out image. And determining the content in the target image set according to the elements which are suitable to be added in the original image.
In the above embodiment, if the original image is a user-defined image, it can be determined whether it is appropriate to add some elements to the original image, for example, whether it is appropriate to add the sun, and if it is not appropriate, the sun is not included in the screen-out image. For example, if the original image is an indoor scene, it is not suitable to add a sun, and the sun is not included in the screen-off image. And determining the content in the target image set according to the elements which are suitable to be added in the original image.
With reference to the first aspect, in an implementation manner, in a case that a moon is included in an original image, the electronic device obtains a target image set according to the time information, and specifically includes: the electronic equipment determines a background image corresponding to the original image; the electronic equipment determines a moon image set corresponding to the background image, and determines a moon image corresponding to the time from the moon image set according to the time; the electronic device takes the moon image and the background image as the target image set.
In the above embodiment, the electronic device determines the images in the target image sets according to the elements suitable for adding in the original image, so that the elements suitable for adding are included in the screen-off images, the screen-off images determined by different target image sets are different, and the elements in the screen-off images are dynamically adjusted.
With reference to the first aspect, in an implementation manner, in a case that the original image includes the sun, the electronic device obtains the target image set according to the time information, and specifically includes: the electronic equipment determines a background image corresponding to the original image; the electronic equipment determines a sun image corresponding to the background image; the electronic equipment acquires a first color temperature setting image, determines the color temperature at the moment according to the corresponding relation between the color temperature and time, updates the color temperature of the first color temperature setting image into the color temperature at the moment to obtain a second color temperature setting image, and takes the second color temperature setting image as a color temperature setting image; the electronic device takes the sun image, the background image and the color temperature setting image as the target image set.
In the above embodiment, the electronic device determines the images in the target image sets according to the elements suitable for adding in the original image, so that the elements suitable for adding are included in the screen-off images, the screen-off images determined by different target image sets are different, and the elements in the screen-off images are dynamically adjusted. For example, in the case where the sun is suitably added to the original image, the sun image is included in the target image set while the color temperature image is set, and the color temperature of the color temperature image may be changed with time, so that the color temperature of the screen-out image may be dynamically changed with time.
With reference to the first aspect, in an implementation manner, in a case that a moon is included in an original image, the electronic device obtains a target image set according to the time information, and specifically includes: the electronic equipment determines a background image corresponding to the original image; the electronic equipment determines a moon image set corresponding to the background image, determines a moon image corresponding to the time from the moon image set according to the time, and takes the moon image as a first moon image; the electronic equipment determines a first position of the moon at the moment according to the corresponding relation between the position of the moon and the time, changes the position of the moon in the first moon image into the first position to obtain a second moon image, and takes the second moon image as a moon image; the electronic device takes the moon image and the background image as the target image set.
In the above embodiment, the electronic device determines the images in the target image sets according to the elements suitable for adding in the original image, so that the elements suitable for adding are included in the screen-off images, the screen-off images determined by different target image sets are different, and the elements in the screen-off images are dynamically adjusted. For example, in a case where it is appropriate to add a moon to the original image, the moon image is included in the target image set, so that the moon can be included in the screen-out image, and both the position and the shape of the moon can be changed with time.
With reference to the first aspect, in an implementation manner, in a case that the original image includes the sun, the electronic device obtains the target image set according to the time information, and specifically includes: the electronic equipment determines a background image corresponding to the original image; the electronic equipment determines a sun image corresponding to the background image, and takes the sun image as a first sun image; the electronic equipment determines a second position of the sun at the moment according to the corresponding relation between the position of the sun and the time, changes the position of the sun in the first sun image into the second position to obtain a second sun image, and takes the second sun image as a sun image; the electronic equipment acquires a first color temperature setting image, determines the color temperature at the moment according to the corresponding relation between the color temperature and time, updates the color temperature of the first color temperature setting image into the color temperature at the moment to obtain a second color temperature setting image, and takes the second color temperature setting image as a color temperature setting image; the electronic device takes the sun image, the background image and the color temperature setting image as the target image set.
In the above embodiment, the electronic device determines the images in the target image sets according to the elements suitable for adding in the original image, so that the elements suitable for adding are included in the screen-off images, the screen-off images determined by different target image sets are different, and the elements in the screen-off images are dynamically adjusted. For example, where the original image is adapted to have the sun added, including the sun image in the target image set allows the screen-out image to include the sun, the position of the sun may change over time and the color temperature of the image may also change over time.
With reference to the first aspect, in one embodiment, the method further includes: the screen-out image also includes time information, which is used to characterize the current time.
In a second aspect, the present application provides an electronic device comprising: one or more processors and memory; the memory coupled with the one or more processors, the memory to store computer program code, the computer program code including computer instructions, the one or more processors to invoke the computer instructions to cause the electronic device to perform: detecting that the screen is turned off at a first moment, and acquiring time information corresponding to the first moment, wherein the time information is used for determining time; acquiring a target image set according to the time information; synthesizing the screen-off image according to the target image set; displaying a screen-off image when the screen is off, wherein the screen-off image comprises a moon or a sun; under the condition that the moon is included in the screen-off image, the shape of the moon in the screen-off image changes along with time and is used for representing the lunar phase of the moon in the current sky; in the case where the sun is included in the screen-out image, the color temperature of the screen-out image changes with time to represent the color temperature of the current sunlight.
In the above embodiment, the electronic device may determine the current rough time information by the shape of the moon in the screen-off image or the color temperature of the screen-off image, and may reflect some natural phenomena. Therefore, the screen-off image can contain more information close to the life of the user, and the practicability and the interestingness of screen-off display are improved.
With reference to the second aspect, in one embodiment, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: setting a first system image as an original image; under the condition that the time indication is at night, the screen-off image comprises a moon, and the target image set comprises a background image and a moon image, wherein the moon image is used for determining the moon in the screen-off image; in the case that the time indication is day time, the off-screen image includes the sun, and the target image set includes a background image, a sun image and a color temperature setting image, wherein the sun image is used for determining the sun in the off-screen image, and the color temperature image is used for determining the color temperature of the off-screen image.
With reference to the second aspect, in one embodiment, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: setting the first self-defined image as an original image; determining that the first custom image can match the moon, so that the screen-off image comprises the moon; taking the first self-defined image as a background image corresponding to the original image; acquiring time information, wherein the time information is used for determining time; the background image and the moon image are included in the target image set, wherein the moon image is used for determining a moon in the screen-off image.
In the above embodiment, the elements in the screen-off image can be dynamically displayed along with time, for example, the sun is displayed in the daytime, and the moon is displayed at night, so that the content contained in the screen-off image is richer, and the practicability and the interestingness thereof are increased.
With reference to the second aspect, in one embodiment, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: setting the first self-defined image as an original image; determining that the first custom image can match the sun, such that the screen-out image includes the sun; taking the first self-defined image as a background image corresponding to the original image; the target image set comprises a background image, a sun image and a color temperature setting image, wherein the sun image is used for determining the sun in the screen-out image, and the color temperature setting image is used for determining the color temperature of the screen-out image.
In the above embodiment, if the original image is a user-defined image, it may be determined whether it is appropriate to add some elements in the original image, for example, whether it is appropriate to add a moon, and if it is not appropriate, the moon is not included in the screen-out image. For example, if the original image is an indoor scene, it is not appropriate to add a moon, and the moon is not included in the screen-off image.
With reference to the second aspect, in one embodiment, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: determining a background image corresponding to the original image; determining a moon image set corresponding to the background image, and determining a moon image corresponding to the time from the moon image set according to the time; and taking the moon image and the background image as the target image set.
In the above embodiment, if the original image is a user-defined image, it can be determined whether it is appropriate to add some elements to the original image, for example, whether it is appropriate to add the sun, and if it is not appropriate, the sun is not included in the screen-out image. For example, if the original image is an indoor scene, it is not suitable to add a sun, and the sun is not included in the screen-off image. And determining the content in the target image set according to the elements which are suitable to be added in the original image.
With reference to the second aspect, in one embodiment, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: determining a background image corresponding to the original image; determining a sun image corresponding to the background image; acquiring a first color temperature setting image, determining the color temperature at the moment according to the corresponding relation between the color temperature and time, updating the color temperature of the first color temperature setting image into the color temperature at the moment to obtain a second color temperature setting image, and taking the second color temperature setting image as a color temperature setting image; the sun image, the background image, and the color temperature setting image are taken as the target image set.
In the above embodiment, the electronic device determines the images in the target image sets according to the elements suitable for adding in the original image, so that the elements suitable for adding are included in the screen-off images, the screen-off images determined by different target image sets are different, and the elements in the screen-off images are dynamically adjusted. For example, in the case where the sun is suitably added to the original image, the sun image is included in the target image set while the color temperature image is set, and the color temperature of the color temperature image may be changed with time, so that the color temperature of the screen-out image may be dynamically changed with time.
With reference to the second aspect, in one embodiment, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: determining a background image corresponding to the original image; determining a moon image set corresponding to the background image, determining a moon image corresponding to the time from the moon image set according to the time, and taking the moon image as a first moon image; determining a first position of the moon at the moment according to the corresponding relation between the position of the moon and the time, changing the position of the moon in the first moon image into the first position to obtain a second moon image, and taking the second moon image as a moon image; and taking the moon image and the background image as the target image set.
In the above embodiment, the electronic device determines the images in the target image sets according to the elements suitable for adding in the original image, so that the elements suitable for adding are included in the screen-off images, the screen-off images determined by different target image sets are different, and the elements in the screen-off images are dynamically adjusted. For example, in a case where it is appropriate to add a moon to the original image, the moon image is included in the target image set, so that the moon can be included in the screen-out image, and both the position and the shape of the moon can be changed with time.
With reference to the second aspect, in one embodiment, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: determining a background image corresponding to the original image; determining a sun image corresponding to the background image, and taking the sun image as a first sun image; determining a second position of the sun at the moment according to the corresponding relation between the position of the sun and the time, changing the position of the sun in the first sun image into the second position to obtain a second sun image, and taking the second sun image as a sun image; acquiring a first color temperature setting image, determining the color temperature at the moment according to the corresponding relation between the color temperature and time, updating the color temperature of the first color temperature setting image into the color temperature at the moment to obtain a second color temperature setting image, and taking the second color temperature setting image as a color temperature setting image; the sun image, the background image, and the color temperature setting image are taken as the target image set.
In the above embodiment, the electronic device determines the images in the target image sets according to the elements suitable for adding in the original image, so that the elements suitable for adding are included in the screen-off images, the screen-off images determined by different target image sets are different, and the elements in the screen-off images are dynamically adjusted. For example, where the original image is adapted to have the sun added, including the sun image in the target image set allows the screen-out image to include the sun, the position of the sun may change over time and the color temperature of the image may also change over time.
In a third aspect, the present application provides a chip system applied to an electronic device, where the chip system includes one or more processors, and the processor is configured to invoke computer instructions to cause the electronic device to perform the method described in the first aspect or any one of the implementation manners of the first aspect.
In the above embodiment, the electronic device may determine the current approximate time information by the shape of the moon in the screen-off image or the color temperature of the screen-off image, and may reflect some natural phenomena. Therefore, the screen-off image can contain more information close to the life of the user, and the practicability and the interestingness of screen-off display are improved.
In a fourth aspect, the present application provides a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the method as described in the first aspect or any one of the embodiments of the first aspect.
In the above embodiment, the electronic device may determine the current approximate time information by the shape of the moon in the screen-off image or the color temperature of the screen-off image, and may reflect some natural phenomena. Therefore, the screen-off image can contain more information close to the life of the user, and the practicability and the interestingness of screen-off display are improved.
In a fifth aspect, the present application provides a computer-readable storage medium comprising instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in the first aspect or any one of the implementation manners of the first aspect.
In the above embodiment, the electronic device may determine the current approximate time information by the shape of the moon in the screen-off image or the color temperature of the screen-off image, and may reflect some natural phenomena. Therefore, the screen-off image can contain more information close to the life of the user, and the practicability and the interestingness of screen-off display are improved.
Drawings
FIG. 1 is an exemplary diagram of an electronic device displaying time information on a screen off;
fig. 2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
3 a-3 f are exemplary user interfaces for turning on and off the screen display function of the electronic device, and setting the original image;
4 a-4 e illustrate the process of acquiring a target image set by an electronic device;
FIG. 5 illustrates the moon shape of the first one of the lunar calendar through the thirty degrees of the lunar calendar;
FIG. 6 shows the gradual change in position of the sun in the image over time;
FIG. 7 is an exemplary user interface for an electronic device displaying a screen-out image;
fig. 8 is a block diagram of a software configuration of an electronic device according to an embodiment of the present application;
fig. 9 is a schematic interaction flow between internal modules when the electronic device obtains a screen-off image according to time information;
fig. 10 is a schematic interaction flow between internal modules when the electronic device obtains a screen-off image according to time information and weather information;
FIG. 11 is a schematic flow chart diagram illustrating a method for displaying an extinguished screen provided by an embodiment of the present application;
fig. 12 shows a schematic flow chart of a screen-off display method involved when the original image is a custom image.
Detailed Description
The terminology used in the following embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in the specification of the present application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the listed items.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
The term "User Interface (UI)" in the following embodiments of the present application is a media interface for interaction and information exchange between an application program or an operating system and a user, and implements conversion between an internal form of information and a form acceptable to the user. The user interface is source code written by java, extensible markup language (XML) and other specific computer languages, and the interface source code is analyzed and rendered on the electronic equipment and finally presented as content which can be identified by a user. A commonly used presentation form of the user interface is a Graphical User Interface (GUI), which refers to a user interface related to computer operations and displayed in a graphical manner. It may be a visual interface element such as text, an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc. displayed in the display of the electronic device.
The off screen display is a display function of the electronic device. In one implementation, in a case that the screen-off display function of the electronic device is turned on, after the screen of the electronic device is locked/turned off, a preset screen-off display resource can be displayed on a screen of the electronic device.
For example, information such as time and power may be displayed on the screen of the terminal device after the screen is turned off. As another example, an image or the like may be displayed on the screen of the terminal device after the screen is turned off.
Illustratively, as shown in fig. 1, an exemplary diagram for displaying time information for the electronic device by turning off the screen is shown. At the moment, the screen of the electronic equipment is turned off, but time information is displayed on the turned-off screen, and the time information is dynamically updated to display the current time.
However, in this implementation, the displayed information is simplified, and it is not possible to provide other information, particularly information close to the life of the user, to improve the practicality and interest of the screen-off display.
Based on the problems in the foregoing implementation manner, an embodiment of the present application provides a screen-off display method and an electronic device. The electronic device has a screen-off display function. In the method, the electronic device may provide an image to the user, which may include the sun or the moon, among other things. The electronic device may set one of the images as an original image, and obtain a screen-off image that can be displayed when the screen is off, based on the original image. The screen-out image may also include the sun or the moon.
The original image is an image which is set by the electronic equipment and used for obtaining the screen-off image after the screen-off display function is started. The original image can be a system image or a user-defined image set by a user. In the case where the original image is a system image, a background image is associated with any one of the original images, and the content of the background image is the same as that of a portion of the original image that does not include the moon or the sun. The background image may be used to obtain a screen-out image.
The system image refers to an image which is preset and stored in the electronic equipment, and is provided by the system.
The custom image is not provided by the system, and is acquired by the user using the electronic device, such as a captured image, a saved image, and the like.
For the related exemplary descriptions of the original image, the system image and the custom image, reference may be made to the following descriptions of fig. 3 d-3 f.
In the case where the moon is included in the original image, the electronic device may acquire the time information, and then determine a target image set according to the time information and the user database, where the target image set may include a plurality of images, and one of the images includes the moon. The electronic equipment can synthesize an image according to the target image set to be used as a screen-off image when screen-off display is carried out. The screen-off image is displayed in a local area of the screen, and pixel points in other areas of the screen are not lightened. The screen-out image includes a moon, the shape of which may reflect the current time as days of the lunar calendar. For example, if the shape of the moon is round, it may reflect that the current time is close to lunar calendar fifteen. The user can also determine the moon phase this evening, i.e. the profit or loss of the moon, according to the shape of the moon in the screen-out image.
In the case that the sun is included in the original image, the electronic device may acquire the time information, and then determine a target image set according to the time information and the user database, where the target image set may include a plurality of images, and one of the images includes the sun. The electronic equipment can synthesize an image according to the target image set to be used as a screen-off image when screen-off display is carried out. The screen-off image is displayed in a local area of the screen, and pixel points in other areas of the screen are not lightened. The screen-out image includes the sun, and the color temperature of the screen-out image is correlated with the time information. For example, if the color temperature of the screen-out image is blue, it may reflect that the current time is close to noon.
Thus, the current rough time information can be determined by the shape of the moon in the screen-off image or the color temperature of the screen-off image, and some natural phenomena can be reflected. Therefore, the screen-off image can contain more information close to the life of the user, and the practicability and the interestingness of screen-off display are improved.
It should be understood that the manner of displaying the screen off in the embodiments of the present application is not limited to the above-mentioned contents, and more detailed contents can refer to the following description.
An exemplary electronic device provided by an embodiment of the present application is first described below.
Fig. 2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
The following describes an embodiment specifically by taking an electronic device as an example. It should be understood that an electronic device may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device may include: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not limit the electronic device. In other embodiments of the present application, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.
It should be understood that the interface connection relationship between the modules according to the embodiment of the present invention is only an exemplary illustration, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in an electronic device may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The electronic device implements the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device may include 1 or N display screens 194, with N being a positive integer greater than 1.
The display screen 194 can achieve the function of screen-off display, the display screen 194 can light up pixel points corresponding to screen-off images, and other pixel points are kept out of work, so that screen-off display can be achieved.
In the embodiment of the present application, the display screen may also be referred to as a screen.
The electronic device may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device selects a frequency point, the digital signal processor is used for performing fourier transform and the like on the frequency point energy.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device emits infrared light to the outside through the light emitting diode. The electronic device uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device may determine that there are no objects near the electronic device. The electronic device can detect that the electronic device is held by a user and close to the ear for conversation by utilizing the proximity light sensor 180G, so that the screen is automatically extinguished, and the purpose of saving power is achieved. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. The electronic device may adaptively adjust the brightness of the display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic equipment can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device at a different position than the display screen 194.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic device may receive a key input, and generate a key signal input related to user settings and function control of the electronic device.
In this embodiment, the processor 110 may call a computer instruction stored in the internal memory 121 to enable the electronic device to execute the screen-off display method in this embodiment.
The screen-off display method provided by the embodiment of the application can be applied to various scenes, and in any scene, the screen-off image can include some elements which change along with time, for example, the elements can be sun or moon, elements such as starry sky or cloud, and other elements, such as leaves and grass. The electronic device may determine what kind of element is added to the screen-out image according to the information of the original image, for example, if the original image includes a moon or is suitable for adding a moon, the moon may be added to the screen-out image, and for the description of the original image, reference may be made to the description of the original image, which is not described herein again. The rules for the variation of different elements with time are different, and the time may be a time of day (e.g., three pm or three pm, etc.) or a time period (e.g., one or two hours, etc.). Some elements may change from time to time, i.e. once time has changed, the element may change, for example, the position of the sun or the moon. Some elements may change over time, i.e., once the time period changes, the element may change, e.g., the shape of the moon, etc. The time information acquired by the electronic device may include year, month, day, hour, minute, second, day of the week, and the like. For example, when the element to be added in the screen-out image is a moon, a shape that specifies the moon may be set to change with time, and the electronic device may acquire "day" information (time period) from the time information to determine the shape of the moon today. It is also possible to set not only the shape but also the position of the moon in the screen-out image to vary with time, and the electronic apparatus may acquire current "day" information (time is a time period) from the time information to determine the shape of the moon today and acquire the current time (time is a time) from the time information to determine the position of the moon at the current time of the moon.
In the following, the scene description is given by taking the example of the element in the screen-off image as the moon or the sun, but it should be understood that the element may be other than the moon or the sun, and should not be construed as limiting the present application.
The screen-off display method provided by the embodiment of the application includes, but is not limited to, the following scenes:
scene 1: the screen-out image includes the sun or the moon.
In this scene 1, the screen-out image may include the sun or the moon. That is, the screen-off image may include only the sun, only the moon, and both the sun and the moon.
In the case where the sun may be included in the screen-out image:
in some embodiments, the color temperature of the screen-out image may vary according to time information, so that it may simulate a natural phenomenon in which sunlight varies during a day. For example, the color temperature of the sun light in the morning is orange, the color temperature of the off-screen image is orange, the color temperature of the sun light at noon is blue, the color temperature of the off-screen image is blue, and in the evening, the sun is sunset, and the color temperature of the off-screen image without sun may be black-gray.
In some embodiments, the position of the sun in the screen-out image may vary according to time information, so that it may simulate the natural phenomenon of the sun rising to west in a day. For example, when the sun rises in the morning, the sun is located at the lower left corner in the screen-off image, and when the sun falls in the evening, the sun is located at the lower right corner in the screen-off image, and the sun is no longer displayed at night.
In some embodiments, both the position of the sun in the screen-out image and the color temperature of the screen-out image may be varied, as described in connection with the two embodiments above.
In other embodiments, the change of the sun in the screen-out image and the change of the color temperature of the screen-out image may be changed according to the change of weather information, in addition to the change of the time information. For example, the sun is not displayed in rainy days, and the color temperature of the screen-off image is blackish gray in rainy days.
In the case where the moon may be included in the screen-out image:
in some embodiments, the shape of the moon in the screen-out image may vary according to time information, and for example, the correspondence of the shape of the moon to time shown in fig. 5 described below may be referred to, so that it may simulate the natural phenomenon of a full moon with a cloudy moon in one month. For example, the moon of lunar calendar fifteen is round.
In some embodiments, the position of the moon in the screen-out image may vary according to time information, so that it may simulate the natural phenomenon of the moon rising and falling during the day. For example, the moon is not displayed during the day.
In connection with the background description of the two embodiments described above, in other embodiments, both the shape and the position of the moon in the extinguished image may vary.
The change rules of the screen-out image in the above embodiments may be combined, and in the embodiment of the present application, the change rules of the screen-out image are not limited in the above embodiments.
Scene 2: the elements in the screen-off image can be dynamically displayed according to the information of the area where the electronic equipment is located.
The information of the area may include information of the phase of the day, the time, the weather, and the like of the area where the electronic device is located. The electronic device can also dynamically adjust the type, position, shape and the like of the elements in the screen-off image according to the information of the area.
For example, in some embodiments, the sun may be included in the screen-off image during the day and the moon may be included in the screen-off image during the night. The electronic device can enable the sun to be included in the screen-off image in the daytime and enable the moon to be included in the screen-off image in the nighttime according to the change of the time information. At this time, the change rule of the off-screen image may refer to the related description in the foregoing scene 1, and is not described herein again.
In other embodiments, the electronic device may dynamically adjust the time for displaying the sun and the moon according to the information of the weather and the phase of the area, for example, if the sun is present at 10 pm in region a, the sun may be displayed in the screen-off image. However, if the moon is 10 pm in region B, the moon can be displayed in the screen-off image. If the weather is cloudy, the cloud may be displayed in the extinguished screen image without showing the sun or moon.
Scene 3: in the screen-out image, no unsuitable elements are added.
In this scenario 3, even if it is set that a certain element can be added to the screen-out image, the electronic device may determine whether it is appropriate to add the element before adding the element, and add the element only if it is appropriate, otherwise, add the element not. For example, the electronic device may set to add a moon or a sun in the screen-out image, but in a case where it is not appropriate to add an element such as a sun or a moon, neither the sun nor the moon may be included in the screen-out image. For example, if the original image selected by the user is an indoor scene, it is not appropriate to add a moon or a sun, and neither the sun nor the moon is included in the screen-out image.
In some embodiments, time information may be included in the screen-out image at this time.
In other embodiments, the color temperature of the screen-out image may vary according to time information, so that it may simulate the natural phenomenon of sunlight variation during the day.
In the following, a set of exemplary user interfaces is taken as an example to describe the screen-off display method in the embodiment of the present application in combination with the foregoing.
Fig. 3 a-3 f are exemplary user interfaces for an electronic device to turn on a screen-off display function and to set up an original image.
Fig. 3 a-3 d are a set of exemplary user interfaces for an electronic device to set a system image as an original image.
As shown in FIG. 3a, the user interface 30 provides an exemplary user interface for a setup application of the electronic device. The electronic equipment can start the screen-off display function and set the original image through the setting application. A "desktop, wallpaper, and off-screen display" setting item 301 may be displayed in the user interface 30, and the "desktop, wallpaper, and off-screen display" setting item 301 may be used to listen to an operation that triggers setting contents of the display setting item 301. In response to a user operation (e.g., a click operation) on the "desktop, wallpaper, and off-screen display" setting item 301, the electronic device may open a user interface for displaying the setting contents of the desktop, wallpaper, and off-screen display.
As shown in fig. 3b, the user interface 31 is an exemplary user interface corresponding to the set contents of the desktop, the wallpaper, and the screen-off display. In the user interface 31, the user can display a theme setting item 311, an off-screen display setting item 312, and a wallpaper setting item 313. The setting items 311 to 313 may listen to an operation that triggers display of a setting original image. The electronic apparatus can set the original image through the setting items 311 to 313. The description will be given taking an example in which the original image is set by the off-screen display setting item 312. The electronic device may open a user interface for displaying the set contents of the off-screen display in response to an operation (e.g., a click operation) by the user on the off-screen display setting item 312.
As shown in fig. 3c, the user interface 32 is an exemplary user interface corresponding to the set contents displayed in the screen-off state. Included in the user interface 32 is a screen-out display control 321. The off screen display control 322 may be used to listen for operations that trigger turning on or off the off screen display function. For example, at this time, if the on/off state of the off display control 321 in the user interface 32 is on, the electronic device may turn on the off display function. The partial image is included in the area 322. In the area 322, the images may be classified and displayed according to the style, for example, the images may be classified into different categories such as "personalized picture" and "artistic signature", where the different categories correspond to a setting item corresponding to the "personalized picture" as the personalized picture setting item 322A, for example. In response to a user operation (e.g., a click operation) on the image 322B, the electronic device may display setting content corresponding to the personalized picture, wherein more images may be displayed.
As shown in fig. 3d, the user interface 33 is an exemplary user interface corresponding to the setting content of the personalized picture. Further images may be displayed in the user interface 33, such as image 331, image 332 and image 333. Images 331-333 are system images. Wherein, any system image is associated with a background image. The content in the background image is the same as the content of the original image that does not include the moon or the sun, for example, the background image associated with the image 331 is 336. The electronic device may set one of the images as an original image. For example, at this time, the image selected by the user is the image 331, and in response to the user's operation in the application control 334, the electronic device may set the image 331 as an original image. The background image associated with the original image may be used to derive a screen-out image. Also included in the user interface 33 is a "show time and date" control 335, which "show time and date" control 335 is used to listen for operations that trigger the turning on or off of the function that displays time and date when off the screen. When the function is turned on, the electronic device may obtain an off-screen image including time information such as time and date. When the function is turned off, the screen-off image obtained by the electronic device may not include time information such as time and date.
In some embodiments, in addition to setting the system image as the original image, the electronic device may set a custom image as the original image.
Fig. 3e and 3f are exemplary user interfaces for setting the custom image as the original image by the electronic device.
As shown in fig. 3e, in response to a user operation (e.g., a click operation) in the add control 341, the electronic device can display a user interface 35 as in fig. 3f, which user interface 35 can include a custom image. Aiming at the user-defined image selected by the user, the electronic equipment can directly set the user-defined image as the original image. It can also be added to a user interface (e.g. the user interface 33 of fig. 3d) corresponding to the setting content of the personalized picture, and displayed together with the system image, and then, when the electronic device receives an input of selecting the custom image again by the user, the custom image is set as the original image. For example, as shown in FIG. 3f, the user interface 35 may be a gallery interface of the electronic device. Custom images may be displayed in the user interface 35. For example, image 351, image 352, and the like may be included. In response to a user's clicking operation on the image 351, the electronic device may treat the image 351 as an original image.
In one possible approach, after determining the original image, the electronic device may obtain a set of target images related to the screen-out image according to the time information. And synthesizing an image as a screen-off image by using the target image set. The content in the off-screen image may satisfy one of the aforementioned three scenes. The process of acquiring the target image set by the electronic device may refer to the following description of fig. 4 a-4 e.
The target image set may include a plurality of images, and specifically includes which images may be set according to different scenes, and the following description will be given by taking the aforementioned three scenes as an example:
fig. 4 a-4 e are schematic diagrams of obtaining a screen-out image corresponding to a target image set of the scene 1.
Fig. 4a and 4b are schematic diagrams corresponding to the case where the screen-off image in the scene 1 may include a moon.
At this time, it is assumed that the original image set by the electronic device is the image 331 or the image 332 in fig. 3 d. The moon may be included in the screen-out image.
In this case, the target image set may include the moon image and the background image, and may further include the information image. As shown in fig. 4a and 4b, the areas 411 and 421 show schematic diagrams of an information image, a moon image, and a background image. In fig. 4a, the time information of the corresponding part of the screen-off image is 21:08, and the lunar calendar is twelve, and in fig. 4b, the time information of the corresponding part of the screen-off image is 23:08, and the lunar calendar is twelve.
The content in the information image may include time information such as time and period, and may also include information such as battery power. For determining information in the screen-out pattern, which may include time information. In the case where the time information is included in the information image, the content in the information image may be updated according to the current time information. For example, the time information in the information image in fig. 4a is "21: 088, 19 th day, thursday, clown year, july twelve". The time information in the information image in fig. 4b is "23: 088, 19 th day, thursday, clown, july twelve".
The process of how the electronic device obtains the information image may refer to the following description of steps S105 and S303, which is not repeated herein.
The content in the moon image may include the moon for determining the moon in the screen-out map. The shape and position of the moon in the extinguished image is determined by the image of the moon.
In some embodiments, the shape of the moon in the moon image may change according to the time information, with the position being unchanged.
Specifically, for the shape of the moon, the electronic device may determine the days of the lunar calendar according to the time information, and then determine the shape of the moon according to the days of the lunar calendar. The shape of the moon of the lunar calendar differs every day, as shown in fig. 5, which shows the shape of the moon from the first one of the lunar calendar to the thirty of the lunar calendar. The moon shape 201 is a dotted line, and indicates that the moon is not present and the moon is not displayed. The moon shape 201 is a solid line indicating that the moon is present during the day, and the shape of the moon is as described by the solid line.
The position of the moon in the original image may be the same as the position of the moon in the original image relative to the background image, or may be a preset value, which may be a value substantially the same as the position of the moon in the original image relative to the background image.
For example, as shown in FIG. 4a, since it is the lunar calendar twelve in current, the shape of the moon in the moon image may be as shown in area 411A, which is different from the shape of the moon shown in area 331A in the original image 331, but the position relative to the background image may be the same.
In other embodiments, the shape and location of the moon in the moon image may vary based on temporal information. The position change rule may refer to the following description of the position change of the sun, which is not repeated herein.
For example, comparing fig. 4a and 4b, in fig. 4b, the location of the moon in region 421A is the same as the location of the moon in region 411A in fig. 4a, and at this time, the time is 21: 08. When the time becomes 23:08, the location of the moon is then the location of the moon in area 421B in FIG. 4B.
The process of how the electronic device obtains the moon image may refer to the following description of steps S105 and S303, which is not repeated herein.
The content in the background image is the same as the portion of the original image that does not include the moon or the sun. Reference may be made to the foregoing description of the background image in fig. 3d, which is not repeated here. For example, as shown in fig. 4a and 4b, if the original image set by the electronic device is the original image 331 referred to in fig. 3d, the background image is the image 336 associated with the original image 331.
How the electronic device acquires the background image may refer to the following description of steps S105 and S303.
The electronic device may synthesize the images in the set of target images to obtain a screen-out image. As shown in fig. 4a, in the screen-out image, the shape of the moon is the same as the shape of the moon in the lunar calendar for twelve days, which can be changed according to the time information, and the electronic device changes the shape of the moon in the screen-out image by changing the moon image. For how the electronic device changes the moon image, reference may be made to the following description of steps S105 and S303. As shown in fig. 4b, the shape of the moon in the extinguished image is the same as the shape of the moon in the lunar calendar for the twelve days, and the position in the image is changed at 23:08 compared to 21: 08. At this time, the shape and position of the moon may be changed according to the time information, and the electronic device changes the shape and position of the moon in the screen-out image by changing the moon image. For how the electronic device changes the moon image, reference may be made to the following description of steps S105 and S303.
Fig. 4c and 4e are schematic diagrams corresponding to the situation in which the sun may be included in the screen-out image in the scene 1.
At this time, it is assumed that the original image set by the electronic device is the image 332 or the image 333 in fig. 3d, and the associated background image is shown as 336. The sun may be included in the screen-out image.
In this case, the target image set may include a sun image, a color temperature setting image, and a background image, may include an information image, and may further include a weather image. As shown in fig. 4c and 4d, schematic diagrams of an information image, a sun image, a background image, and a color temperature setting image are shown in a region 431 and a region 441. In fig. 4c, the time information of the corresponding portion of the off-screen image is 12:08, and in fig. 4d, the time information of the corresponding portion of the off-screen image is 17: 08.
For the description of the information image and the background image, reference may be made to the related contents in fig. 4a and fig. 4b, which are not described herein again.
The content in the sun image may include the sun for determining the sun in the screen out image. The shape and position of the sun in the extinguished image is determined by the image of the sun.
In some embodiments, the sun position in the sun image is unchanged. Which may be the same as the position of the sun relative to the background image in the original image or a preset value, which may be approximately the same value as the position of the moon relative to the background image in the original image.
For example, as shown in fig. 4c, the position of the sun may be the same relative to the position of the background image.
In other embodiments, the position of the sun in the sun image may vary based on temporal information. The rule of the position change can be as shown in fig. 6, and the position of the sun in the image changes gradually with the change of time. In the morning (06: 00 in the figure), the sun rises to the east, the sun is at the position of the lower left corner in the image, in the evening (18: 00 in the figure), the sun falls to the west, the sun is at the position of the lower right corner in the screen-off image, and at other times, the sun is not displayed.
For example, comparing fig. 4c and 4d, in fig. 4d, the position of the sun in region 441A is the same as the position of the sun in region 431A in fig. 4c, at which time, the time is 12: 08. When the time becomes 15:08, the position of the sun is then the position of the moon in region 441B in FIG. 4 d.
How the electronic device acquires the sun image can refer to the following description of steps S105 and S303
The color temperature setting image is used to determine the color temperature of the screen-out image. The color temperature of the color temperature setting image may be varied according to time information for simulating a natural phenomenon that sunlight varies during a day. The change rule can be referred to as shown in fig. 6. With time, the color temperature in the morning (06: 00 in the figure) and in the evening (18: 00 in the figure) is warm (reddish), the color temperature in the midday (12: 00 in the figure) is cold (whitish), and the color temperature in the morning to the midday gradually changes from warm to cold. The color temperature gradually transitions from cold to warm at noon to evening. After 18:00, the color temperature may gradually fade from a warm color to a dark gray-off cold color.
The electronic device may synthesize the images in the set of target images to obtain a screen-out image. As shown in fig. 4c, in the screen-out image, the color temperature of the image is the same as the color of the solar light at noon, and is white, which can be changed according to the time information, and the electronic device changes the color temperature in the screen-out image by changing the color temperature setting image. For how the electronic device changes the color temperature setting image, reference may be made to the following description of steps S105 and S303. As shown in fig. 4d, in the off-screen image, the color temperature and the position of the sun both changed, and the position of the sun changed and the color temperature changed at 17:08 compared to 12:08 in fig. 4 c. The position of the sun can be changed according to the time information, and the electronic equipment realizes the change of the position of the sun in the screen-off image by changing the sun image. For how the electronic device changes the sun image, reference may be made to the following description of steps S105 and S303. The change in color temperature is the same as described above in relation to fig. 4 c.
In some embodiments, a weather image may also be included in the set of target images. The method is used for realizing the change of the sun in the screen-off image and the change of the color temperature of the screen-off image, and can also change according to the change of weather information besides the change of time information. For example, the sun is not displayed on cloudy days, and the color temperature of the screen-out image is blackish gray.
As shown in fig. 4e, when the weather image is placed in front of the sun image during the composition, and the content in the sun image may be overlaid with the content in the weather image so that the sun is not displayed in the screen-out image.
In other embodiments, the electronic device may set that in the case where it is not suitable to display the sun in cloudy days, rainy days, or the like, the information image, the background image, and the color temperature setting image may be included in the target image set and the sun image may not be included. Such that the resultant screen-out image does not include the sun. The color temperature of the color temperature setting image can also be set to vary with weather. So that the color temperature of the synthesized screen-out image varies with the weather.
In the scenario 2, when the electronic device determines that the current time is night, the acquired target image set may refer to the description of the related contents in fig. 4a and 4 b. When the electronic device determines that it is daytime, the acquired target image set may refer to the description of related contents in fig. 4 c-4 e. And will not be described in detail herein.
In scene 3, if the electronic device determines that the set original image is not suitable for adding the moon or the sun, the moon image or the sun image is not included in the target image set. The original image may be used as a background image. The other images in the target image set may refer to the descriptions of fig. 4a to 4e, which are not described herein again.
It should be understood that the images in the target image set may be changed as desired, for example, the electronic device may add images to or subtract images from the target image set. The foregoing description should not be construed as limiting the embodiments of the present application.
After the electronic device obtains the screen-off image, the screen-off image can be displayed when the electronic device is turned off.
FIG. 7, described above, is an exemplary user interface for an electronic device displaying a screen-out image.
As shown in fig. 7, the user interface 70 is an exemplary user interface when the electronic device is turned off. Only the pixel points in the region 701 are in working states, and the pixel points in other regions are not in working states, that is, the screen is black in other regions.
At this time, the electronic device displays the off-screen image using the pixel points in the region 701. In the screen, the pixel points in other areas do not work, and are in an off state.
It should be understood that the time information in the area 701A may not be displayed, and more other contents may be displayed. What contents are specifically displayed can be preset by the electronic device or can be set by the user. For example, one of the setting interfaces may refer to the user interface 33 of fig. 3d referred to above, and whether to display the information of the area 701A may be set, for example, through the "display time and date" control 335.
A software structure block diagram of an electronic device according to an embodiment of the present application is described in detail below.
Fig. 8 is a block diagram of a software configuration of an electronic device according to an embodiment of the present application.
The electronic device may be a portable terminal device, such as a mobile phone, a tablet computer, a wearable device, or the like, which carries an iOS, Android, Microsoft, or other operating system, and may also be a non-portable terminal device such as a Laptop computer (Laptop) with a touch-sensitive surface or touch panel, a desktop computer with a touch-sensitive surface or touch panel, or the like. The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android system with a layered architecture as an example.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 8, the application package may include applications (also referred to as applications) such as calendars, weather, themes, wallpaper, off-screen music, and the like.
In some embodiments, one or both of the theme, wallpaper, and off-screen display applications may be integrated into the same application, such as a settings application. As described above for the user interface 31 shown in fig. 3b, the theme, the off-screen display and the wallpaper are all integrated in one application provided.
In the embodiment of the application, the theme and the wallpaper can be used for setting the original image.
The electronic device may set an original image through a theme, in response to an operation of setting the original image in the theme, the theme may realize setting of the original image in association with the theme switching management service described below, and transmit the operation of setting the original image to the theme switching management service described below.
The electronic device may set an original image through the wallpaper, and in response to an operation of setting the original image in the wallpaper, the wallpaper may realize the setting of the original image in conjunction with the wallpaper switching management service described below, and transmit the operation of setting the original image to the theme switching management service described below.
The screen-off display comprises a screen-off display module, an information acquisition module, a user database, an image synthesis module, an interface display module and the like.
The screen-off display module may be configured to set an original image, and in response to an operation of setting the original image, the screen-off display may store a background image corresponding to the original image in a user database described below, and mark the background image as selected. And if the background image is included in the user database, directly marking the selected state of the background image as selected.
The screen-off display module can also initialize a screen-off display function to determine whether the electronic equipment can perform screen-off display. For example, the screen-off display module may determine that all the screen-off images can be displayed when the screen is turned off by detecting the current remaining power, and the screen-off display module may not call the following module to synthesize the screen-off images for display when the remaining power is less than a certain threshold.
The screen-off display module can receive various information sent by the information acquisition module, including time information, weather information and the like.
The screen-off display module can also be used for acquiring an image set required for synthesizing the screen-off image from the user database according to the time information (the time information and the weather information). Then, the image set is updated to a target image set according to the time information (time information and weather information), and then the image set is sent to an image synthesis module described below.
The information acquisition module may be used to acquire various information required to generate the screen-out image, such as time information, weather information, and the like. Which may include a time management module, a weather management module, etc.
The time management module can acquire time information through time application and send the acquired time information to the screen-off display module.
The weather management module can acquire weather information through weather application and send the acquired weather information to the screen-off display module.
The user database is used for storing various images related to the synthesis of the screen-off images, namely a plurality of groups of corresponding relations. The content in the database, such as images, may be provided by the system, or pushed to the electronic device by the server.
The image may include a background image, a moon image, a sun image, a color temperature setting image, and a weather image.
The background image is a background image associated with all the original images or a user-defined image.
The moon images may comprise a plurality of sets of moon images, each set comprising a plurality of images depicting the same moon in different shapes within a month, the shape of the moon in any one image being different but the same moon, for example, in fig. 5, the shape of the moon is different for thirty days of a month. The moon image as shown in the aforementioned fig. 4a may be an example.
The sun image may include multiple images, and the shape of the sun may be different in any of the images. The sun image as shown in fig. 4c may be an example.
The color temperature setting image is an image describing color temperature, and does not include any pattern.
The weather image can comprise a plurality of images, and any image can be used for depicting one kind of weather. A weather image as shown in fig. 4e may be an example.
The correspondence may include the following correspondence: the background image and the selected state, any group of moon images and any background image, any moon image in any group of moon images corresponding to a time, any sun image and any background image, and color temperature and time, and also can include the position and time of the moon, the position and time of the sun, the weather image and weather, and the color temperature and weather.
When the original image is a custom image, the screen-off display module can store the custom image as a background image in a database, and mark the background image as the custom image, and all the custom images can correspond to a sun image and a moon image.
The corresponding relation between the background image and the selected state is used for describing whether the background image is selected or not. The selected state comprises selected or unselected state, the background image selected in the selected state can be used for synthesizing the screen-off image, and only one background image selected in all the background images can be used as the selected background image which is the background image related to the original image set by the electronic equipment.
The image synthesis module may synthesize a screen-out image from the received set of target images. And then sends it to the interface display module described below.
The interface display module is used for calling resources such as a display screen and the like to display the screen-off image when the screen is turned off.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 8, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
In an embodiment of the application, a window manager is used for managing window programs. The window manager may be used to determine whether the electronic device is turned off. After the electronic equipment is determined to be off, the screen-off display module can be called to execute corresponding functions.
The theme switching management service is used for storing the background image corresponding to the original image into a user database after receiving the operation of setting the original image issued by the theme, and marking the background image as selected. If the background image is included in the user database, the background image is directly marked as selected.
The wallpaper switching management service is used for storing a background image corresponding to the original image into a user database after receiving an operation of setting the original image issued by wallpaper, and marking a selected state of the background image as selected. And if the background image is included in the user database, directly marking the selected state of the background image as selected.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog interface. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The Runtime (Runtime) includes a core library and a virtual machine. Runtime is responsible for scheduling and management of the system.
The core library comprises two parts: one part is the function that the programming language (e.g. java language) needs to call, and the other part is the core library of the system.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes programming files (e.g., java files) of the application layer and the application framework layer as binary files. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), and the like.
The surface manager is used to manage the display subsystem and provides a fusion of two-Dimensional (2-Dimensional, 2D) and three-Dimensional (3-Dimensional, 3D) layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing 3D graphic drawing, image rendering, synthesis, layer processing and the like.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following describes in detail an interaction flow between internal modules when the electronic device implements the screen-off display method according to the present application, with reference to the software structure of the electronic device shown in fig. 8.
Fig. 9 is a schematic interaction flow between internal modules when the electronic device obtains a screen-off image according to time information.
The process may refer to the following description of step S101 to step S108.
S101, the electronic equipment is turned off.
The screen-off includes automatic screen-off and screen-off triggered by a user.
Wherein the process of automatically turning off the screen does not involve user interaction. The electronic device may determine whether the local device is turned off through the window manager.
The screen turning-off triggered by the user means that the user sets the electronic device to turn off the screen, for example, when the electronic device is turned on, the electronic device can be turned off by pressing the power control, and the operation of triggering the screen turning-off can be transmitted to the window manager, so that the window manager determines that the electronic device turns off the screen.
And S102, the electronic equipment calls a screen-off display module through the window manager to start a screen-off display function.
S103, the electronic equipment initializes the screen-off function through the screen-off display module.
Initiating the screen-out function refers to determining whether the electronic device can turn off the screen display. For example, the screen-off display module may determine that all the screen-off images can be displayed when the screen is turned off by detecting the current remaining power, and the screen-off display module may not call the following module to synthesize the screen-off images for display when the remaining power is less than a certain threshold.
Under the condition that the screen-off display condition is met, the screen-off display module can initialize the screen-off display function and call the following module to synthesize a screen-off image for display.
And S104, the electronic equipment calls the time management module to acquire time information through the screen-off display module.
The time information includes at least information necessary for obtaining the screen-out image, for example, in the case where the shape of the moon in the screen-out image is to be changed, the time information includes several days of the lunar calendar as the current time, which can be converted by obtaining the month/day information. In the case where the position of the moon in the screen-out image or the color temperature of the image is to be changed, time/minute information of the current time may also be included in the time information.
It should be understood that the information specifically included in the time information may be set according to the rule of obtaining the screen-off image, and does not constitute a limitation to the embodiment of the present application.
In the embodiment of the present application, the time information may include month/day/hour/minute information, year/month/day information of lunar calendar, and day of week. As shown in the information images shown in the aforementioned fig. 4 a-4 e.
And the screen-off display module calls the time management module. The time management module can acquire the time information after being called, and then sends the time information to the screen-off display module.
In one possible implementation, the time management module may obtain time information from a calendar application provided by the system.
And S105, the electronic equipment acquires a target image set through the screen-off display module according to the time information and the user database.
The database is used for storing various images related to the synthesis of the screen-off images, namely a plurality of groups of corresponding relations. For the detailed description of the database, reference may be made to the foregoing description of the database, which is not repeated herein.
The target image set comprises a plurality of images for synthesizing the screen-off images.
The following description will be given by taking an example of change of the shape of the moon in the screen-out image with time information:
at this time, the target image set may be as shown in fig. 4 a. Including information images, moon images, and background images. For the target image set, reference may be made to the foregoing description of related contents in fig. 4a, which is not described herein again.
In one possible implementation, the screen-out display module may determine the background image selected in the selected state from the database as the background image to which the synthesized screen-out image relates, for example, as shown in the background image in fig. 4 a. Then, a set of moon images corresponding to the background image is selected, and the moon image corresponding to the time is determined from the set of moon images according to the date information of the lunar calendar in the time information, for example, the moon image may be as shown in the moon image in fig. 4 a. The screen-off display module determines an information image according to the time information, the information image may display the time information, the format and the position of the display time information are preset, and after the time information is acquired, the information image may be displayed according to the set format and the position, and the information image may be as shown in the information image in fig. 4 a.
The description will be given taking an example in which the shape and position of the moon in the screen-out image are changed with time information:
at this time, the target image set may be as shown in fig. 4 b. Including information images, moon images, and background images. For the target image set, reference may be made to the foregoing description of related contents in fig. 4a, which is not described herein again.
The obtaining manner of the background image and the information image is similar to that described above, and is not described herein again. For the moon image, one possible implementation manner is that the screen-off display module selects a group of moon images corresponding to the background image from the database, determines the moon image corresponding to the time according to the day information of the lunar calendar in the time information, and takes the moon image as the first moon, which may be shown as the moon image in fig. 4a, for example. And then determining the position of the moon at the moment according to the corresponding relation between the position of the moon and the time. Then, the position of the moon in the first moon image is changed to the position corresponding to the current time, so as to obtain a second moon image, which may be as shown in fig. 4b, and then, the screen-off display module uses the second moon image as the moon image required for synthesizing the screen-off image.
Taking an example of the change of the color temperature of an image with time information when the sun is displayed in a screen-out image:
at this time, the target image set may be as shown in fig. 4 c. Including information images, sun images, background images, and color temperature setting images. For the target image set, reference may be made to the foregoing description of related contents in fig. 4c, which is not described herein again.
The obtaining manner of the background image and the information image is similar to that described above, and is not described herein again. For the sun image, one possible implementation is that the screen-off display module selects the sun image corresponding to the background image from the database. The background image may be, for example, as shown in the background image in fig. 4 c. The corresponding sun image is the corresponding sun image in fig. 4 c. And for the color temperature setting image, the screen-off display module acquires a first color temperature setting image from the database, then determines the color temperature at the moment according to the corresponding relation between the color temperature and the time, then updates the color temperature of the first color temperature setting image into the color temperature at the moment to obtain a second color temperature setting image, and takes the second color temperature setting image as the color temperature setting image required by synthesizing the screen-off image.
Taking an example of the change of the position of the sun and the color temperature of the image with time information when the sun is displayed in the screen-out image:
at this time, the target image set may be as shown in fig. 4 d. Including information images, sun images, background images, and color temperature setting images. For the target image set, reference may be made to the foregoing description of related contents in fig. 4d, which is not described herein again.
The obtaining manner of the information image, the background image and the color temperature setting image is similar to that described above, and details are not repeated here. For the sun image, one possible implementation manner is that the screen-off display module selects a sun image corresponding to the background image from the database, and uses the sun image as the first sun image. The background image may be, for example, as shown in the background image in fig. 4 c. The corresponding sun image is the corresponding sun image in fig. 4 c. And then determining the position of the sun at the moment according to the corresponding relation between the position of the sun and the time. Then, the position of the sun in the first sun image is changed to the position corresponding to the current time, so as to obtain a second sun image, which may be as shown in fig. 4d, and then, the screen-off display module uses the second sun image as the sun image required for synthesizing the screen-off image.
In different scenes, the images related to the target image set acquired by the screen-off image according to the time information are different, but the acquisition mode may refer to the foregoing description, for example, in scene 2, for the case where the sun is displayed in the daytime and the moon is displayed at night, if the time information corresponds to the daytime, the target image set includes the moon image, so that the screen-off image also includes the moon, and if the time information corresponds to the night, the target image set includes the sun image, so that the screen-off image also includes the sun. The target image set and the screen-out image in other scenes can refer to the foregoing description, which is not exemplified here.
And S106, the electronic equipment sends the target image set to the image synthesis module through the screen-off display module.
And S107, the electronic equipment synthesizes a screen-off image according to the target image set through the image synthesis module.
And the image synthesis module performs superposition processing on all the images in the target image set according to a preset sequence to synthesize an off-screen image. For example, when the target image set includes an information image, a moon image, and a background image, the information image and the moon image are superimposed to obtain an image, and the image and the background image are superimposed to obtain a screen-off image.
And S108, the electronic equipment calls a screen-off display module through the image synthesis module to display the screen-off image.
FIG. 7, as previously described, is an exemplary user interface for displaying a screen-out image. Reference may be made to the foregoing description of fig. 7 for a related description. The off screen display module utilizes a partial area of the screen, such as area 701 of fig. 7, to display the off screen image. The pixel points in other areas do not work, and the display screen is in an off state.
Fig. 10 is a schematic interaction flow between internal modules when the electronic device obtains a screen-off image according to time information and weather information.
The process may refer to the following description of step S201 to step S209.
S201, the electronic equipment is turned off.
The process is the same as the above step S101, and reference may be made to the above description of step S101, which is not repeated herein.
S202, the electronic equipment calls a screen-off display module through the window manager to start a screen-off display function.
The process is the same as the above step S102, and reference may be made to the above description of step S102, which is not repeated herein.
And S203, the electronic equipment initializes the screen-off function through the screen-off display module.
The process is the same as the above step S103, and reference may be made to the above description of step S103, which is not repeated herein.
And S204, the electronic equipment calls the time management module to acquire the time information through the screen-off display module.
The process is the same as the step S104, and reference may be made to the description of the step S104, which is not described herein again.
S205, the electronic equipment calls a weather management module to acquire weather information through a screen-off display module.
The weather information comprises weather conditions corresponding to the current time and is used for describing whether the sun is properly displayed in the screen-off image. It can be divided into cloudy days, rainy days, etc. Any weather may correspond to a weather image. Wherein, a plurality of weather can correspond to the same weather image. Any weather may also correspond to one color temperature, wherein multiple weathers may correspond to the same color temperature.
S206, the electronic equipment acquires a target image set through the screen-off display module according to the time information, the weather information and the user database.
The specific process of acquiring the target image set may refer to the foregoing description of step S105.
The target image set comprises a plurality of images for synthesizing the screen-off images.
Here, the influence of the weather information on the screen-off image is illustrated by taking the change of the shape of the sun in the screen-off image with the time information and the weather information as an example, and other cases can be referred to this description.
At this time, the target image set may be as shown in fig. 4 e. Including informational images, weather images, sun images, background images, and color temperature setting images. For the target image set, reference may be made to the foregoing description of related contents in fig. 4a, which is not described herein again.
The information image, the background image and the sun image are obtained in a manner similar to that described above, and are not described herein again. The manner of acquiring the weather image and the color temperature setting image will be described below.
For the weather image, in a possible implementation manner, the screen-off display module may determine a weather image corresponding to the current weather from the database as the weather image, for example, the weather image may be as shown in the weather image in fig. 4 e.
For the color temperature setting image, the screen-off display module obtains a first color temperature setting image from the database, determines the color temperature at that time according to the corresponding relationship between the color temperature and the weather, updates the color temperature of the first color temperature setting image to the color temperature corresponding to the weather to obtain a second color temperature setting image, and uses the second color temperature setting image as the color temperature setting image required for synthesizing the screen-off image, for example, the color temperature setting image may be as shown in the color temperature setting image in fig. 4 e.
And S207, the electronic equipment sends the target image set to an image synthesis module through the screen-off display module.
The process is the same as the above step S106, and reference may be made to the above description of step S106, which is not repeated herein.
And S208, the electronic equipment synthesizes a screen-off image according to the target image set through the image synthesis module.
The process is the same as step S107, and reference may be made to the description of step S107, which is not repeated herein.
And S209, the electronic equipment displays the screen-off image through a screen-off display module.
The process is the same as the above step S108, and reference may be made to the above description of step S108, which is not repeated herein.
Fig. 11 shows a schematic flowchart of a screen-off display method provided in an embodiment of the present application.
The detailed process involved in the method can refer to the following description of steps S301 to S303.
S301, the electronic equipment acquires time information.
The time information includes at least information necessary for obtaining the screen-out image, for example, in the case where the shape of the moon in the screen-out image is to be changed, the time information includes several days of the lunar calendar as the current time, which can be converted by obtaining the month/day information. In the case where the position of the moon in the screen-out image or the color temperature of the image is to be changed, time/minute information of the current time may also be included in the time information.
It should be understood that the information specifically included in the time information may be set according to the rule of obtaining the screen-off image, and does not constitute a limitation to the embodiment of the present application.
The following situations that the electronic device triggers the local device to acquire the time information are provided:
(1) the current time is about to reach the preset screen-off time.
The electronic device may set the screen-off time, for example, may set the screen to be automatically turned off after 5 minutes. In the electronic device, when no touch is detected within 5 minutes after the screen is turned on, the time information may be acquired when the screen is turned on for approximately 5 minutes, for example, 50 seconds at the 4 th minute.
(2) After the electronic equipment automatically turns off the screen.
After the electronic equipment automatically turns off the screen. The local machine may begin to acquire time information.
(3) After receiving the screen-off operation of the user.
When the electronic equipment is on the screen, the electronic equipment can be turned off by pressing the power supply control, and the electronic equipment can start to acquire the screen turning-off time in response to the operation of triggering the screen turning-off.
S302, the electronic equipment determines a target image set according to the time information.
For a detailed description of this process, reference may be made to the previous description of step 5.
The electronic device determines a set of target images from the time information.
The target image set comprises a plurality of images for synthesizing the screen-off images.
The following description will be given by taking an example of change of the shape of the moon in the screen-out image with time information:
at this time, the target image set may be as shown in fig. 4 a. Including information images, moon images, and background images. For the target image set, reference may be made to the foregoing description of related contents in fig. 4a, which is not described herein again.
In one possible implementation, the electronic device may determine the background image of which the selected state is selected from the database as the background image to which the synthesized screen-out image relates. And selecting a group of moon images corresponding to the background image, and determining the moon image corresponding to the time from the reorganized moon images according to the date information of the lunar calendar in the time information. And determining an information image according to the time information, wherein the information image can display the time information, the format and the position of the displayed time information are preset, and after the time information is obtained, displaying the time information according to the set format and position.
The description will be given taking an example in which the shape and position of the moon in the screen-out image are changed with time information:
at this time, the target image set may be as shown in fig. 4 b. Including information images, moon images, and background images. For the target image set, reference may be made to the foregoing description of related contents in fig. 4a, which is not described herein again.
The obtaining manner of the background image and the information image is similar to that described above, and is not described herein again. For the moon image, a possible implementation manner is to select a group of moon images corresponding to the background image from the database, and determine the moon image corresponding to the time from the group of moon images according to the date information of the lunar calendar in the time information, and use the moon image as the first moon image. And then determining the position of the moon at the moment according to the corresponding relation between the position of the moon and the time. And then, changing the position of the moon in the first moon image into a position corresponding to the current time to obtain a second moon image, and then taking the second moon image as a moon image required when synthesizing the screen-off image.
Taking an example of the change of the color temperature of an image with time information when the sun is displayed in a screen-out image:
at this time, the target image set may be as shown in fig. 4 c. Including information images, sun images, background images, and color temperature setting images. For the target image set, reference may be made to the foregoing description of related contents in fig. 4c, which is not described herein again.
The obtaining manner of the background image and the information image is similar to that described above, and is not described herein again. For the sun image, one possible implementation is to select a sun image from a database that corresponds to the background image. And for the color temperature setting image, acquiring a first color temperature setting image from a database, determining the color temperature at the moment according to the corresponding relation between the color temperature and time, updating the color temperature of the first color temperature setting image into the color temperature at the moment to obtain a second color temperature setting image, and taking the second color temperature setting image as the color temperature setting image required by synthesizing the screen-off image.
Taking an example of the change of the position of the sun and the color temperature of the image with time information when the sun is displayed in the screen-out image:
at this time, the target image set may be as shown in fig. 4 d. Including information images, sun images, background images, and color temperature setting images. For the target image set, reference may be made to the foregoing description of related contents in fig. 4d, which is not described herein again.
The obtaining manner of the information image, the background image and the color temperature setting image is similar to that described above, and details are not repeated here. For the sun image, one possible implementation is to select the sun image corresponding to the background image from the database as the first sun image. And then determining the position of the sun at the moment according to the corresponding relation between the position of the sun and the time. And then, changing the position of the sun in the first sun image into a position corresponding to the current time to obtain a second sun image, and then taking the second sun image as a sun image required for synthesizing a screen-off image.
In different scenes, the images related to the target image set acquired by the screen-off image according to the time information are different, but the acquisition mode may refer to the foregoing description, for example, in scene 2, for the case where the sun is displayed in the daytime and the moon is displayed at night, if the time information corresponds to the daytime, the target image set includes the moon image, so that the screen-off image also includes the moon, and if the time information corresponds to the night, the target image set includes the sun image, so that the screen-off image also includes the sun. The target image set and the screen-out image in other scenes can refer to the foregoing description, which is not exemplified here.
And S303, the electronic equipment obtains a screen-off image according to the target image set.
And the image synthesis module performs superposition processing on all the images in the target image set according to a preset sequence to synthesize an off-screen image. For example, when the target image set includes an information image, a moon image, and a background image, the information image and the moon image are superimposed to obtain an image, and the image and the background image are superimposed to obtain a screen-off image.
The electronic device may then display the off-screen image in the screen.
FIG. 7, as previously described, is an exemplary user interface for displaying a screen-out image. Reference may be made to the foregoing description of fig. 7 for a related description. The electronic device utilizes a partial area of the screen to display the off-screen image, such as area 701 in fig. 7. The pixel points in other areas do not work, and the display screen is in an off state.
It should be understood that steps S301 to S303 correspond to the description of steps S101 to S108 described above. For the case that the electronic device obtains the screen-off image according to the time information and the weather information, the description of the step S301 to the step S303 and the aforementioned step S201 to the step S209 may be combined, and details are not repeated here. For example, the timing of acquiring the weather information may refer to the foregoing description of the case where the electronic device acquires the information in step S301.
When the original image is not a system image but a custom image, the electronic device needs to determine whether the custom image matches the moon or the sun. If the matching is suitable, the matching is carried out, and if the matching is not suitable, the moon or the sun is not matched.
Fig. 12 shows a schematic flow chart of a screen-off display method involved when the original image is a custom image.
The execution timings of step S401 and step S402 may refer to the foregoing description of the situation of the electronic device acquiring information in step S301, and are not described herein again.
S401, the electronic equipment acquires an original image selected by a user.
When an image which is set by a user through the electronic equipment and used for screen-off display is a custom image, the electronic equipment can store the custom image as a background image in a database, and mark the background image as the custom image, and all the custom images can correspond to a sun image and a moon image.
An exemplary user interface for the user to set the customized image as the original image for the screen-off display through the electronic device may refer to the foregoing description of fig. 3e and 3 f.
In one possible implementation, the electronic device may obtain a background image from the database, the background image being selected as the current state and being designated as the custom image, as the original image selected by the user.
S402, the electronic equipment acquires time information.
The process of acquiring the time information by the electronic device may refer to the foregoing description of step S301, and is not described herein again.
And S403, the electronic equipment determines whether to match according to the original image selected by the user.
Whether matching is performed or not means whether it is appropriate to include the moon or the sun in the screen-out image obtained from the original image selected by the user.
The electronic device can determine whether to match the original image selected by the user through an image recognition algorithm. For example, image features are extracted, image recognition is performed, and it is determined whether the user-selected original image already includes the moon or the sun, and if so, it is not appropriate to add the moon or the sun. If the original image does not include the moon or the sun, identifying whether the original image selected by the user is other scenes which are not suitable for adding the moon or the sun, for example, the content of the original image selected by the user describes an indoor scene, or any area in the original image selected by the user has a scene, and none area can add the moon or the sun.
In the case where it is determined that the original image selected by the user is determined that matching can be made, steps S404 to S407 are performed.
In a case where it is determined that the original image selected by the user may not be matched, step S407 and step S408 are performed.
S404, the electronic equipment determines a target image set according to the time information.
Taking the example of including the moon in the extinguished image as an illustration, the case of including the sun in the extinguished image can be referred to this description.
In one possible implementation, the original image selected by the user serves as the background image. The electronic equipment selects a group of moon images corresponding to the background image from the database, and determines the moon image corresponding to the time from the group of moon images according to the date information of the lunar calendar in the time information. The generation of the information image can refer to the foregoing description, and is not described herein again.
S405, the electronic equipment obtains a screen-off image according to the target image set.
The step S405 is similar to the process of the step S303, and reference may be made to the description of the step S303, which is not repeated herein.
S406, the electronic equipment determines whether the synthesis is successful.
In the case of no success, the execution continues from step S403 to step S406.
In case of success, step S408 is executed.
And S407, the electronic equipment obtains a screen-off image according to the original image and the time information selected by the user.
The electronic equipment obtains an information image by using the time information, and then synthesizes the information image with the original image selected by the user to obtain a screen-off image.
And S408, displaying the screen-off image by the electronic equipment.
And the electronic equipment refreshes the interface and displays the screen-off image in the interface.
FIG. 7, as previously described, is an exemplary user interface for displaying a screen-out image. Reference may be made to the foregoing description of fig. 7 for a related description. The electronic device utilizes a partial area of the screen to display the off-screen image, such as area 701 in fig. 7. The pixel points in other areas do not work, and the display screen is in an off state.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to a determination of …" or "in response to a detection of …", depending on the context. Similarly, depending on the context, the phrase "at the time of determination …" or "if (a stated condition or event) is detected" may be interpreted to mean "if the determination …" or "in response to the determination …" or "upon detection (a stated condition or event)" or "in response to detection (a stated condition or event)".
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.

Claims (14)

1. A screen-off display method, comprising: at a first moment, when electronic equipment detects that a screen is turned off, the electronic equipment acquires time information corresponding to the first moment, wherein the time information is used for determining time;
the electronic equipment acquires a target image set according to the time information;
the electronic equipment synthesizes the screen-off image according to the target image set;
the electronic equipment displays a screen-off image when the screen is turned off, wherein the screen-off image comprises a moon or a sun;
under the condition that the moon is included in the screen-off image, the shape of the moon in the screen-off image changes along with time and is used for representing the lunar phase of the moon in the current sky;
and under the condition that the sun is included in the screen-off image, the color temperature of the screen-off image changes along with time and is used for representing the color temperature of the current sunlight.
2. The method of claim 1, wherein:
under the condition that the moon is included in the original image, the screen-off image includes the moon, the target image set includes a background image and a moon image, and the moon image is used for determining the moon in the screen-off image;
and under the condition that the sun is included in the original image, the screen-out image includes the sun, and the target image set includes a background image, a sun image and a color temperature setting image, wherein the sun image is used for determining the sun in the screen-out image, and the color temperature image is used for determining the color temperature of the screen-out image.
3. The method of claim 1, wherein before the electronic device displays the screen-out image when the electronic device is off, the method further comprises:
the electronic equipment sets a first system image as an original image;
under the condition that the time indication is at night currently, the screen-off image comprises a moon, the target image set comprises a background image and a moon image, and the moon image is used for determining the moon in the screen-off image;
and under the condition that the time indication is day time at present, the screen-off image comprises the sun, and the target image set comprises a background image, a sun image and a color temperature setting image, wherein the sun image is used for determining the sun in the screen-off image, and the color temperature image is used for determining the color temperature of the screen-off image.
4. The method of claim 1, wherein before the electronic device displays the screen-out image when the electronic device is off, the method further comprises:
the electronic equipment sets the first user-defined image as an original image;
the electronic equipment determines that the first custom image can match the moon, so that the moon is included in the screen-off image;
the electronic equipment takes the first custom image as a background image corresponding to the original image;
the electronic equipment acquires time information, and the time information is used for determining time;
the target image set comprises the background image and a moon image, wherein the moon image is used for determining a moon in the screen-off image.
5. The method of claim 1, wherein before the electronic device displays the screen-out image when the electronic device is off, the method further comprises:
the electronic equipment sets the first user-defined image as an original image;
the electronic device determines that the first custom image can match the sun, such that the screen-off image includes the sun;
the electronic equipment takes the first custom image as a background image corresponding to the original image;
the target image set comprises a background image, a sun image and a color temperature setting image, wherein the sun image is used for determining the sun in the screen-off image, and the color temperature setting image is used for determining the color temperature of the screen-off image.
6. The method according to any one of claims 1 to 4, wherein, in a case where a moon is included in the original image, the acquiring, by the electronic device, the target image set according to the time information specifically includes:
the electronic equipment determines a background image corresponding to an original image;
the electronic equipment determines a moon image set corresponding to the background image, and determines a moon image corresponding to the time from the moon image set according to the time;
the electronic device takes the moon image and the background image as the target image set.
7. The method according to any one of claims 1 to 4, wherein, in a case where the original image includes the sun, the electronic device obtains the target image set according to the time information, specifically including:
the electronic equipment determines a background image corresponding to an original image;
the electronic equipment determines a sun image corresponding to the background image;
the electronic equipment acquires a first color temperature setting image, determines the color temperature at the moment according to the corresponding relation between the color temperature and time, updates the color temperature of the first color temperature setting image into the color temperature at the moment to obtain a second color temperature setting image, and takes the second color temperature setting image as the color temperature setting image;
the electronic device takes the sun image, the background image, and the color temperature setting image as the target image set.
8. The method according to claim 1 or 2, wherein, in a case where the original image includes a moon, the acquiring, by the electronic device, the target image set according to the time information specifically includes:
the electronic equipment determines a background image corresponding to an original image;
the electronic equipment determines a moon image set corresponding to the background image, determines a moon image corresponding to the time from the moon image set according to the time, and takes the moon image as a first moon image;
the electronic equipment determines a first position of the moon at the moment according to the corresponding relation between the position of the moon and the time, changes the position of the moon in the first moon image into the first position to obtain a second moon image, and takes the second moon image as a moon image;
the electronic device takes the moon image and the background image as the target image set.
9. The method according to claim 1 or 2, wherein, in a case where the original image includes the sun, the electronic device obtains the target image set according to the time information, specifically including:
the electronic equipment determines a background image corresponding to an original image;
the electronic equipment determines a sun image corresponding to the background image and takes the sun image as a first sun image;
the electronic equipment determines a second position of the sun at the moment according to the corresponding relation between the position of the sun and the time, changes the position of the sun in the first sun image into the second position to obtain a second sun image, and takes the second sun image as a sun image;
the electronic equipment acquires a first color temperature setting image, determines the color temperature at the moment according to the corresponding relation between the color temperature and time, updates the color temperature of the first color temperature setting image into the color temperature at the moment to obtain a second color temperature setting image, and takes the second color temperature setting image as the color temperature setting image;
the electronic device takes the sun image, the background image, and the color temperature setting image as the target image set.
10. The method according to any one of claims 1-9, further comprising:
the screen-off image further comprises time information, and the time information is used for representing the current time.
11. An electronic device, comprising one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors for storing computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-10.
12. A chip system for application to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform the method of any of claims 1-10.
13. A computer program product comprising instructions for causing an electronic device to perform the method according to any one of claims 1-10 when the computer program product is run on the electronic device.
14. A computer-readable storage medium comprising instructions that, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-10.
CN202111101087.8A 2021-09-18 2021-09-18 Screen-off display method and electronic equipment Active CN113963086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111101087.8A CN113963086B (en) 2021-09-18 2021-09-18 Screen-off display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111101087.8A CN113963086B (en) 2021-09-18 2021-09-18 Screen-off display method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113963086A true CN113963086A (en) 2022-01-21
CN113963086B CN113963086B (en) 2024-04-12

Family

ID=79461630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111101087.8A Active CN113963086B (en) 2021-09-18 2021-09-18 Screen-off display method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113963086B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115254A (en) * 2006-07-27 2008-01-30 三星电子株式会社 Screen displaying method of mobile terminal
CN106791438A (en) * 2017-01-20 2017-05-31 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108345624A (en) * 2017-01-24 2018-07-31 阿里巴巴集团控股有限公司 Generate the method and device of the page
CN109634475A (en) * 2018-11-26 2019-04-16 北京梧桐车联科技有限责任公司 Graphical interface display method and device, electronic equipment and storage medium
CN111913771A (en) * 2020-07-17 2020-11-10 维沃移动通信有限公司 Wallpaper display method, device and equipment
US20210255766A1 (en) * 2020-02-18 2021-08-19 Samsung Electronics Co., Ltd. Device and control method thereof
CN113411445A (en) * 2019-04-10 2021-09-17 华为技术有限公司 Control method for screen-off display and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115254A (en) * 2006-07-27 2008-01-30 三星电子株式会社 Screen displaying method of mobile terminal
CN106791438A (en) * 2017-01-20 2017-05-31 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108345624A (en) * 2017-01-24 2018-07-31 阿里巴巴集团控股有限公司 Generate the method and device of the page
CN109634475A (en) * 2018-11-26 2019-04-16 北京梧桐车联科技有限责任公司 Graphical interface display method and device, electronic equipment and storage medium
CN113411445A (en) * 2019-04-10 2021-09-17 华为技术有限公司 Control method for screen-off display and terminal equipment
US20210255766A1 (en) * 2020-02-18 2021-08-19 Samsung Electronics Co., Ltd. Device and control method thereof
CN111913771A (en) * 2020-07-17 2020-11-10 维沃移动通信有限公司 Wallpaper display method, device and equipment

Also Published As

Publication number Publication date
CN113963086B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN109814766B (en) Application display method and electronic equipment
CN112148400B (en) Display method and device in locking state
CN113553130B (en) Method for executing drawing operation by application and electronic equipment
WO2020102978A1 (en) Image processing method and electronic device
CN109857401B (en) Display method of electronic equipment, graphical user interface and electronic equipment
CN113961157B (en) Display interaction system, display method and equipment
CN114979457B (en) Image processing method and related device
CN115145436B (en) Icon processing method and electronic equipment
CN115525783B (en) Picture display method and electronic equipment
CN113515327A (en) Time display method and electronic equipment
CN113963086B (en) Screen-off display method and electronic equipment
EP4145278A1 (en) Application module startup method and electronic device
CN116055856A (en) Camera interface display method, electronic device, and computer-readable storage medium
CN113495733A (en) Theme pack installation method and device, electronic equipment and computer readable storage medium
CN117170560B (en) Image transformation method, electronic equipment and storage medium
CN114244951B (en) Method for opening page by application program, medium and electronic equipment thereof
CN114816169B (en) Desktop icon display method and device and storage medium
CN113487272B (en) Schedule activity conflict judgment method, electronic device and storage medium
WO2023280021A1 (en) Method for generating theme wallpaper, and electronic device
CN117762540A (en) Dial display method and related device
CN117632329A (en) Display method, storage medium and electronic device
CN115373778A (en) Screen projection method and related device
CN117762281A (en) Method for managing service card and electronic equipment
CN116781808A (en) Display method and electronic equipment
CN117666861A (en) Service card distribution method, system and electronic equipment

Legal Events

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