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

Screen-off display method and electronic equipment Download PDF

Info

Publication number
CN113963086B
CN113963086B CN202111101087.8A CN202111101087A CN113963086B CN 113963086 B CN113963086 B CN 113963086B CN 202111101087 A CN202111101087 A CN 202111101087A CN 113963086 B CN113963086 B CN 113963086B
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.)
Active
Application number
CN202111101087.8A
Other languages
Chinese (zh)
Other versions
CN113963086A (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

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. In the method, the screen extinguishing image can comprise some elements which change with time, for example, elements such as sun or moon, elements such as starry sky or cloud, and other elements such as leaves, grass and the like. The electronic device may determine from the information of the original image what elements to add in the off-screen image, e.g. a moon is included in the original image or is suitable to add a moon, which may be added in the off-screen image.

Description

Screen-off display method and electronic equipment
Technical Field
The application relates to the technical field of terminals and communication, in particular to a screen-off display method and electronic equipment.
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 pattern to be displayed in the screen, keeps other pixel points not working, and can realize the off-screen display. For example, in the off-screen display time, the corresponding pixels in the OLED screen are only lightened to form alphanumeric, and the pixels in the rest part of the OLED screen are kept inactive.
The off-screen 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 off-screen 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 in screen-off state can comprise elements which change along with time, so that the practicability and the interestingness of the screen-off display are improved.
In a first aspect, the present application provides a method for displaying a screen in a screen-off state, where the method includes: 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 moon or sun; in the case that the screen-off image includes a moon, the shape of the moon in the screen-off image changes with time, and is used for representing the moon phase of the moon in the current sky; in case that the off-screen image includes the sun, the color temperature of the off-screen image varies with time to characterize the color temperature of the current sunlight.
In the above embodiment, the electronic device may determine the current approximate time information by the shape of the moon in the off-screen image or the color temperature of the off-screen image, and may reflect some natural phenomena. The screen-extinguishing image can contain more information close to the life of the user, and the practicability and the interestingness of screen-extinguishing display are improved.
With reference to the first aspect, in an embodiment, the method further includes: under the condition that the original image comprises a moon, the screen-off image comprises the 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 original image comprises the sun, the off-screen image comprises the sun, 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 off-screen image, and the color temperature image is used for determining the color temperature of the off-screen image.
In the above embodiment, whether the screen-off image includes moon or sun is determined according to the content in the original image, so that the usage habit of the user can be more matched, for example, if the user wants to include sun in the screen-off image, the original image including sun can be selected, and the electronic device can obtain the screen-off image including sun according to the original image.
With reference to the first aspect, in an implementation manner, before the electronic device displays the screen-off image when the screen is off, the method further includes: the electronic device sets a first system image as an original image; when the time indicates that the night is 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 currently daytime, the off-screen image comprises the sun, 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 off-screen image, and the color temperature image is used for determining the color temperature of the off-screen image.
In the embodiment, elements in the screen-off image can be dynamically displayed along with time, for example, sun is displayed in daytime and moon is displayed at night, so that the screen-off image contains more abundant content, and the practicability and the interestingness of the screen-off image are improved.
With reference to the first aspect, in an implementation manner, before the electronic device displays the screen-off image when the screen is off, the method further includes: the electronic device sets the first custom image as an original image; the electronic device determines that the first custom image can be matched with a moon, so that the screen-off image comprises the moon; the electronic equipment takes the first custom image as a background image corresponding to the original image; the electronic equipment acquires time information, wherein 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.
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 how it is inappropriate to quench the screen image so that the moon is not included. For example, when the original image is an indoor scene, it is not suitable to add a moon, and the moon is not included in the screen-off image.
With reference to the first aspect, in an implementation manner, before the electronic device displays the screen-off image when the screen is off, the method further includes: the electronic device sets the first custom image as an original image; the electronic device determines that the first custom image can match the sun so that the screen-off image comprises 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 off-screen image, and the color temperature setting image is used for determining the color temperature of the off-screen 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 may be determined whether it is suitable to add some elements in the original image, for example, whether it is suitable to add sun, and how it is unsuitable to quench the sun, where the sun is not included. For example, when the original image is an indoor scene, it is not suitable to add the 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 the original image includes moon, the electronic device obtains the target image set according to the time information, and specifically includes: the electronic device 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 set according to the elements suitable for addition in the original image, so that the off-screen images including the elements suitable for addition are different in the off-screen images determined by different target image sets, and dynamically adjusts the elements in the off-screen images.
With reference to the first aspect, in an implementation manner, in a case that the original image includes sun, the electronic device obtains the target image set according to the time information, and specifically includes: the electronic device 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, then 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 uses 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 set according to the elements suitable for addition in the original image, so that the off-screen images including the elements suitable for addition are different in the off-screen images determined by different target image sets, and dynamically adjusts the elements in the off-screen images. For example, in the case where it is appropriate to add the sun in the original image, the sun image is included in the target image set while setting the color temperature image, and the color temperature of the color temperature image may change with time, so that the color temperature of the off-screen image may change dynamically with time.
With reference to the first aspect, in an implementation manner, in a case that the original image includes moon, the electronic device obtains the target image set according to the time information, and specifically includes: the electronic device 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 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 according to the corresponding relation between the position of the moon and time, changes the position of the moon in the first moon image into the first position, obtains a second moon image, and takes the second moon image as a moon image; the electronic device uses 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 set according to the elements suitable for addition in the original image, so that the off-screen images including the elements suitable for addition are different in the off-screen images determined by different target image sets, and dynamically adjusts the elements in the off-screen images. For example, in the case where it is appropriate to add a moon in the original image, the moon image is included in the target image set, so that the moon may be included in the screen-off image, and both the position and shape of the moon may change with time.
With reference to the first aspect, in an implementation manner, in a case that the original image includes sun, the electronic device obtains the target image set according to the time information, and specifically includes: the electronic device 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 time, changes the position of the sun in the first sun image into the second position, obtains a second sun image, and takes the second sun image as a sun image; the electronic equipment acquires a first color temperature setting image, then 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 uses 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 set according to the elements suitable for addition in the original image, so that the off-screen images including the elements suitable for addition are different in the off-screen images determined by different target image sets, and dynamically adjusts the elements in the off-screen images. For example, where it is appropriate to add the sun to the original image, including the sun image in the target image set allows the off-screen 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 an embodiment, the method further includes: the off-screen image also includes time information that characterizes the current time.
In a second aspect, the present application provides an electronic device, comprising: one or more processors and memory; the memory is coupled to the one or more processors, the memory for storing computer program code, the computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform: detecting screen extinction 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 moon or sun; in the case that the screen-off image includes a moon, the shape of the moon in the screen-off image changes with time, and is used for representing the moon phase of the moon in the current sky; in case that the off-screen image includes the sun, the color temperature of the off-screen image varies with time to characterize the color temperature of the current sunlight.
In the above embodiment, the electronic device may determine the current approximate time information by the shape of the moon in the off-screen image or the color temperature of the off-screen image, and may reflect some natural phenomena. The screen-extinguishing image can contain more information close to the life of the user, and the practicability and the interestingness of screen-extinguishing 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; when the time indicates that the night is 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 currently daytime, the off-screen image comprises the sun, 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 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 custom image as an original image; determining that the first custom image can be matched with the moon so that the screen-off image comprises the moon; taking the first custom image as a background image corresponding to the original image; acquiring time information, wherein 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.
In the embodiment, elements in the screen-off image can be dynamically displayed along with time, for example, sun is displayed in daytime and moon is displayed at night, so that the screen-off image contains more abundant content, and the practicability and the interestingness of the screen-off image 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 the first custom image as an original image; determining that the first custom image can be matched with the sun so that the screen-off image comprises the sun; taking 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 off-screen image, and the color temperature setting image is used for determining the color temperature of the off-screen 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 how it is inappropriate to quench the screen image so that the moon is not included. For example, when the original image is an indoor scene, it is not suitable 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 may be determined whether it is suitable to add some elements in the original image, for example, whether it is suitable to add sun, and how it is unsuitable to quench the sun, where the sun is not included. For example, when the original image is an indoor scene, it is not suitable to add the 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 to 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; and taking 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 set according to the elements suitable for addition in the original image, so that the off-screen images including the elements suitable for addition are different in the off-screen images determined by different target image sets, and dynamically adjusts the elements in the off-screen images. For example, in the case where it is appropriate to add the sun in the original image, the sun image is included in the target image set while setting the color temperature image, and the color temperature of the color temperature image may change with time, so that the color temperature of the off-screen image may change dynamically 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 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 according to the corresponding relation between the position of the moon and 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 set according to the elements suitable for addition in the original image, so that the off-screen images including the elements suitable for addition are different in the off-screen images determined by different target image sets, and dynamically adjusts the elements in the off-screen images. For example, in the case where it is appropriate to add a moon in the original image, the moon image is included in the target image set, so that the moon may be included in the screen-off image, and both the position and shape of the moon may change 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 according to the corresponding relation between the position of the sun and 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 to 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; and taking 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 set according to the elements suitable for addition in the original image, so that the off-screen images including the elements suitable for addition are different in the off-screen images determined by different target image sets, and dynamically adjusts the elements in the off-screen images. For example, where it is appropriate to add the sun to the original image, including the sun image in the target image set allows the off-screen 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 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 a method as described in the first aspect or any implementation 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 off-screen image or the color temperature of the off-screen image, and may reflect some natural phenomena. The screen-extinguishing image can contain more information close to the life of the user, and the practicability and the interestingness of screen-extinguishing 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 a method as described in the first aspect or any implementation 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 off-screen image or the color temperature of the off-screen image, and may reflect some natural phenomena. The screen-extinguishing image can contain more information close to the life of the user, and the practicability and the interestingness of screen-extinguishing display are improved.
In a fifth aspect, the present application provides a computer readable storage medium comprising instructions, characterized in that the instructions, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect or any implementation 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 off-screen image or the color temperature of the off-screen image, and may reflect some natural phenomena. The screen-extinguishing image can contain more information close to the life of the user, and the practicability and the interestingness of screen-extinguishing display are improved.
Drawings
FIG. 1 is an exemplary schematic diagram of an electronic device off-screen display time information;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
3 a-3 f are a set of exemplary user interfaces for an electronic device to turn on an off screen display function, setting up an original image;
FIGS. 4 a-4 e are processes for an electronic device to acquire a set of target images;
FIG. 5 illustrates the moon shape of the first lunar calendar to the thirty lunar calendar;
FIG. 6 shows the position of the sun in the image as a function of time;
FIG. 7 is an exemplary user interface of an electronic device displaying an off-screen image;
FIG. 8 is a software architecture block diagram of an electronic device of an embodiment of the present application;
FIG. 9 is a schematic interaction flow between internal modules when an electronic device obtains an off-screen image based on time information;
FIG. 10 is a schematic interaction flow between the internal modules when the electronic device obtains a quench screen image based on time information and weather information;
FIG. 11 shows a schematic flow chart of an off-screen display method provided by an embodiment of the present application;
fig. 12 shows a schematic flow chart of the off-screen display method involved when the original image is a custom image.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification 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 to the contrary. It should also be understood that the term "and/or" as used in this application refers to and encompasses any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is 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, which enables conversion between an internal form of information and an acceptable form of the user. The user interface is a source code written in a specific computer language such as java, extensible markup language (extensible markup language, XML) and the like, and the interface source code is analyzed and rendered on the electronic equipment to finally be presented as content which can be identified by a user. A commonly used presentation form of the user interface is a graphical user interface (graphic user interface, GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It may be a visual interface element of text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc., displayed in a display of the electronic device.
The off screen is displayed as a display function of the electronic device. In one implementation manner, when 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 the screen of the electronic device.
For example, information such as time and electricity can be always displayed on the screen of the terminal device after the screen is turned off. For another example, an image or the like may be displayed on the screen of the terminal device after the screen is turned off.
Exemplary, as shown in fig. 1, an exemplary schematic diagram of time information is displayed for an electronic device to be off-screen. At this time, the screen of the electronic device is turned off, but the time information is displayed on the screen of the turned off screen, and the time information is dynamically updated to display the current time.
However, in this implementation, the displayed information is single, and other information, especially information close to the life of the user, cannot be provided to improve the practicality and interest of the off-screen display.
Based on the problems in the implementation manner, the embodiment of the application provides a screen-off display method and electronic equipment. The electronic equipment has a screen-off display function. In this method, the electronic device may provide an image to the user, which may include content such as the sun or the moon. The electronic device can set one of the images as an original image, and obtain a screen-off image which can be displayed when the screen is off according to the original image. The screen-off image may also include content such as sun or 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 custom image set by a user. In the case where the original images are system images, any one of the original images is associated with a background image whose content is identical to that of the original image excluding the moon or sun. The background image may be used to obtain an off-screen image.
The system image is an image which is preset and stored in the electronic equipment and is provided by the system.
Custom images are not provided by the system, which are captured by the user using an electronic device, such as a captured image, saved image, or the like.
For relevant exemplary descriptions of the original image, the system image, and the custom image, reference may be made to the descriptions of fig. 3 d-3 f below.
In the case that the original image includes a moon, the electronic device may acquire 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 image includes the moon. The electronic device can synthesize an image according to the target image set to be used as an off-screen image when the off-screen image is displayed. The off-screen image is displayed in a local area of the screen, and pixels in other areas of the screen are not illuminated. The screen-off image comprises a moon, and the shape of the moon can reflect that the current time is a few days of lunar calendar. For example, if the shape of the moon is circular, it may be reflected that the current time is close to fifteen lunar calendar. The user may also determine the phase of the moon, i.e. the abundance or abundance of the moon, in the tonight from the shape of the moon in the quench screen image.
In the case where the original image includes the sun, 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, where one image includes the sun. The electronic device can synthesize an image according to the target image set to be used as an off-screen image when the off-screen image is displayed. The off-screen image is displayed in a local area of the screen, and pixels in other areas of the screen are not illuminated. The off-screen image comprises sun, and the color temperature of the off-screen image is related to time information. For example, the color temperature of the off-screen image is blue, which may reflect that the current time is near noon.
Thus, the current approximate time information can be determined through the shape of the moon in the off-screen image or the color temperature of the off-screen image, and meanwhile, some natural phenomena can be reflected. The screen-extinguishing image can contain more information close to the life of the user, and the practicability and the interestingness of screen-extinguishing display are improved.
It should be understood that the screen-off display manner in the embodiments of the present application is not limited to the above-mentioned, and reference may be made to the following description for more details.
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 according to an embodiment of the present application.
The embodiment will be specifically described below with reference to 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: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity 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 should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
A memory may also be provided in the 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 connection relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger.
The power management module 141 is used for connecting the battery 142, and the charge 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, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into 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 for wireless communication including 2G/3G/4G/5G, etc. applied on an electronic device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. 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 provided in the same device as at least some of the modules of the processor 110.
The electronic device implements display functions via a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 194, N being a positive integer greater than 1.
The display screen 194 can realize the screen-off display function, the display screen 194 can lighten the pixel points corresponding to the screen-off image, and the other pixel points are kept to be not operated, so that the screen-off display can be realized.
In the embodiment of the application, the display screen may also be referred to as a screen.
The electronic device may implement shooting functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize 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 onto the photosensitive element.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, and so on.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device.
The internal memory 121 may be used to store computer executable program code including 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 storage program area and a storage data area.
The pressure sensor 180A is used to sense a pressure signal, and may convert 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 outwards 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 may be determined that an object is in the vicinity of the electronic device. When insufficient reflected light is detected, the electronic device may determine that there is no object in the vicinity of the electronic device. The electronic device may detect that the user holds the electronic device near the ear to talk using the proximity light sensor 180G, so as to automatically extinguish the screen for power saving purposes. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device can adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect if the electronic device is in a pocket to prevent false 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 the application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The touch sensor 180K, 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 for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device.
In the embodiment of the present application, the processor 110 may invoke the computer instructions stored in the internal memory 121, so that the electronic device performs the off-screen display method in the embodiment of the present application.
The screen-off display method provided by the embodiment of the invention can be applied to various scenes, and in any scene, the screen-off image can comprise some elements which change along with time, for example, elements such as sun or moon, elements such as starry sky or cloud, and other elements such as leaves, grass and the like. The electronic device may determine what elements are added in the screen-off image according to the information of the original image, for example, the original image includes a moon or is suitable for adding a moon, and the moon may be added in the screen-off image. The rules of the variation of the different elements with time are different, and the time can be time (such as three pm or three pm, etc.), or time period (such as one day or two hours, etc.). Some elements may change from time to time, i.e. once changed, the element may change, for example, the position of the sun or moon. Some elements may change over a period of time, i.e., once the period of time 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, time, minute, second, day of week, etc. The relevant time may be obtained from the time information for different elements to change the state of the element, for example, when the element to be added in the screen-off image is a moon, it may be set that the shape of the moon changes with time, and the electronic device may obtain "day" information (time period) from the time information to determine the shape of the moon today. It may also be provided that not only the shape of the moon but also the position of the moon changes with time in the quench screen image, and the electronic device may obtain current "day" information (time is a period of time) from the time information to determine the shape of the moon today, and obtain 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, a scene description will be given taking moon or sun as an example of elements in the screen extinguishing image, but it should be understood that elements other than moon or sun may be other elements, and should not be construed as limiting the application.
The screen-off display method provided by the embodiment of the application comprises the following scenes:
scene 1: the quench screen image includes the sun or moon.
In this scene 1, the off-screen image may include the sun or the moon. That is, the screen-off image may include only the sun, only the moon, or both the sun and the moon.
In the case where the sun may be included in the quench image:
in some embodiments, the color temperature of the off-screen image may be varied according to time information so that it may simulate the natural phenomenon of solar light variation in one day. For example, in the morning the color temperature of sunlight is orange, the color temperature of the quench image is orange, the color temperature of the noon sunlight is blue, the color temperature of the quench image is blue, in the evening, the sun falls off, and the color temperature of the quench image without sunlight may be black gray.
In some embodiments, the position of the sun in the quench image may be varied according to time information such that it may simulate the natural phenomenon of the sun rising and falling in the day. For example, in the morning, the sun is at the lower left corner in the screen-off image, in the evening, the sun is at the lower right corner in the screen-off image, and in the evening, the sun is no longer displayed.
In combination with the description of the two embodiments above, in some embodiments, both the position of the sun in the off-screen image and the color temperature of the off-screen image may be varied.
In other embodiments, the change in the sun in the off-screen image and the change in the color temperature of the off-screen image may be changed according to weather information in addition to time information. For example, the sun is not displayed in a rainy day, and the color temperature of the screen-off image is blackish gray in a rainy day.
In the case where moon may be included in the screen-off image:
in some embodiments, the shape of the moon in the screen-off image may be changed according to time information, and for example, reference may be made to the correspondence between the shape of the moon and time shown in fig. 5 described below, so that it may simulate the natural phenomenon of a moon in one month, that is, a moon in a sun, a moon, and a moon. For example, the moon of lunar calendar fifteen is round.
In some embodiments, the position of the moon in the quench image may be varied according to time information such that it may simulate the natural phenomenon of moon rising and falling during the day. For example, the moon is not displayed in the daytime.
In other embodiments, the shape and location of the moon in the quench image may vary, as described in the background of both embodiments above.
The change rules of the screen-off image in the above embodiment may be combined, and in the embodiment of the present application, the change rules of the screen-off image are not limited by the above embodiment.
Scene 2: the elements in the screen-quenching 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 such as weather, time, and weather of the area where the electronic device is located. The electronic equipment can dynamically adjust the types, positions or shapes of elements in the screen-quenching image according to the information of the area.
For example, in some embodiments, the sun may be included in the off-screen image during the day and the moon may be included in the off-screen image during the night. The electronic device can enable the sun to be included in the off-screen image during the daytime and the moon to be included in the off-screen image during the night according to the change of the time information. At this time, the change rule of the screen-off image may refer to the related description in the foregoing scene 1, which is not repeated here.
In other embodiments, the electronic device may dynamically adjust the timing of displaying the sun and the moon in conjunction with the weather information of the area, for example, 10 pm in region a or the sun, and the sun may be displayed in the screen-off image. But 10 pm in region B is moon, moon can be displayed in the off-screen image. If the weather is cloudy, the cloud may be displayed in the quench image and no longer the sun or moon.
Scene 3: and no unsuitable elements are added to the screen-extinguishing image.
In the scene 3, even if a certain element can be added in the screen-off image, the electronic device can judge whether the element is suitable for being added before adding, and the element is suitable for being added, or else, the element is not added. For example, the electronic device may be arranged to add a moon or sun in the quench image, but neither the sun nor the moon may be included in the quench image in case it is not suitable to add elements such as the sun or the moon. For example, when the original image selected by the user is an indoor scene, it is not suitable to add moon or sun, and neither sun nor moon is included in the quench screen image.
In some embodiments, time information may be included in the off-screen image at this time.
In other embodiments, the color temperature of the off-screen image may be varied according to time information so that it may simulate the natural phenomenon of solar light variation in one day.
In the following, a set of exemplary user interfaces are taken as an example to describe the method for displaying a screen in an embodiment of the present application.
Fig. 3 a-3 f are an exemplary set of user interfaces for an electronic device to turn on an off screen display function, setting 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 to an original image.
As shown in fig. 3a, the user interface 30 is one exemplary user interface provided for a setup application of an electronic device. The electronic device may turn on the off-screen display function by setting the application and set the original image. A "desktop, wallpaper, and off-screen display" setting item 301 may be displayed in the user interface 30, the "desktop, wallpaper, and off-screen display" setting item 301 being operable to monitor operations that trigger the display of the setting content of the 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 settings of the desktop, wallpaper, and off-screen display.
As shown in fig. 3b, the user interface 31 is one exemplary user interface corresponding to the desktop, wallpaper, and settings of the off-screen display. In this 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 item 311-313 may listen to the operation that triggers the display of the set original image. The electronic device can set the original image through the setting item 311 to the setting item 313. The description will be given taking an example of setting an original image through the off-screen display setting item 312. The electronic device may open a user interface for displaying the settings of the off-screen display in response to a user operation (e.g., a click operation) on the off-screen display settings item 312.
As shown in FIG. 3c, user interface 32 is one exemplary user interface corresponding to the settings of the quench display. An off screen display control 321 is included in the user interface 32. The off-screen display control 322 may be used to monitor operations that trigger on or off of the off-screen display function. For example, at this time, the on-off state of the off-screen display control 321 in the user interface 32 is on, and the electronic device may turn on the off-screen display function. The region 322 includes a partial image therein. The images in the region 322 may be classified and displayed according to the style, for example, the images may be classified into different categories such as "individual pictures" and "artistic signatures", and the setting items corresponding to the different categories corresponding to one setting item "individual picture" are individual picture setting items 322A, for example. In response to a user operation (e.g., a click operation) on the image 322B, the electronic device may display setting contents corresponding to the personality picture, in which 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 personality picture. More images, such as image 331, image 332, and image 333, may be displayed in user interface 33. 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 portion of the original image that does not include the moon or sun, e.g., image 331 is associated with background image 336. The electronic device may set one of the images as the original image. For example, at this point, the image selected by the user is image 331, and in response to the user's operation in application control 334, the electronic device can set image 331 as the original image. The background image associated with the original image may be used to obtain an off-screen image. Also included in the user interface 33 is a "display time and date" control 335, which "display time and date" control 335 is used to monitor operations that trigger the opening or closing of functions that display time and date when the screen is turned off. When the function is started, the off-screen image obtained by the electronic equipment can comprise time, date and the like. In the case where the function is turned off, the off-screen image obtained by the electronic device may not include time and date and the like information.
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 the electronic device to set the custom image as the original image.
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 therein. Aiming at the user-defined image selected by the user, the electronic equipment can directly set the user-defined image as an original image. It may also be added to a user interface (e.g., user interface 33 of fig. 3 d) corresponding to the setting content of the personalized picture, displayed together with the system image, and then, when the electronic device receives the input of the user selecting the custom image again, 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. A custom image may be displayed in the user interface 35. For example, the image 351, the image 352, and the like may be included. In response to a click operation by the user on the image 351, the electronic device may take the image 351 as an original image.
In one possible manner, after determining the original image, the electronic device may obtain, according to the time information, a set of target images involved in obtaining the off-screen image. And synthesizing an image by using the target image set as a screen-off image. The content in the off-screen image may satisfy one of the three aforementioned scenarios. The process by which the electronic device acquires the set of target images may be referred to below in connection with fig. 4 a-4 e.
The target image set may include a plurality of images, which images may be set according to different scenes, and the following description will take three scenes as examples of the foregoing description:
fig. 4 a-4 e are schematic diagrams of a set of target images corresponding to scene 1 resulting in an off-screen image.
Fig. 4a and fig. 4b are schematic diagrams corresponding to the case where moon may be included in the screen-off image in the aforementioned scene 1.
At this time, it is assumed that the original image set by the electronic device is the aforementioned image 331 or 332 in fig. 3 d. The moon may be included in the quench image.
In this case, the target image set may include a moon image and a background image, and may further include an information image. As shown in fig. 4a and 4b, a schematic diagram of an information image, a moon image, and a background image is shown in the area 411 and the area 421. The time information of the corresponding part of the screen-off image in fig. 4a is 21:08, the lunar calendar is twelve, and the time information of the corresponding part of the screen-off image in fig. 4b is 23:08, and the lunar calendar is twelve.
The content in the information image may include information such as time and period, and may also include information such as battery power. For determining information in the quench map, which may include time information. In the case where 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:08 month 19 days thursday octobook year July twelve". The time information in the information image in FIG. 4b is "23:088 month 19 days, thursday, october, 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 here.
The content in the moon image may include a moon for determining the moon in the quench screen. The shape and position of the moon in the quench screen image are determined by the moon image.
In some embodiments, the shape of the moon in the moon image may be changed according to the time information, with the location unchanged.
Specifically, for the shape of the moon, the electronic device may determine, according to the time information, a few days of the current lunar calendar, and then determine the shape of the moon according to the few days of the current lunar calendar. The lunar shapes are different every day of the lunar calendar, as shown in fig. 5, which shows the shapes of the moon from the first lunar calendar to the thirty lunar calendar. The moon shape 201 is a broken line, and indicates that no moon is present on the same day, and the moon is not displayed. The moon shape 201 is a solid line indicating that there is a moon on the day, and the shape of the moon is as described in the solid line.
The position of the moon may be the same as the position of the moon in the original image with respect to the background image, or may be a preset value, which may be approximately the same as the position of the moon in the original image with respect to the background image.
For example, as shown in fig. 4a, due to the twelve-calendar being currently present, the shape of the moon in the moon image may be as shown by region 411A, which is different from the shape of the moon shown in region 331A in the original image 331, but may be the same in position relative to the background image.
In other embodiments, the shape and location of the moon in the moon image may be varied according to time information. The rule of the position change may be described with reference to the position change of the sun, which is not described herein.
For example, in contrast to fig. 4a and 4b, in fig. 4b, the position of the moon in the area 421A is the same as the position of the moon in the area 411A in fig. 4a, and the time is 21:08. When the time becomes 23:08, the position of the moon is then the position of the moon in the 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 here.
The content in the background image is the same as the portion of the original image that does not include the moon or sun. Reference may be made to the foregoing description of the background image in fig. 3d, and no further description is given here. For example, as shown in fig. 4a and 4b, if the original image set by the electronic device is the original image 331 as referred to in fig. 3d, the background image is the image 336 associated with the original image 331.
The process of how the electronic device acquires the background image can be described with reference to the following description of steps S105 and S303.
The electronic device can synthesize the images in the target image set to obtain a screen-off image. As shown in fig. 4a, in the screen-off image, the shape of the moon is the same as the shape of the moon on twelve days of lunar calendar, which can be changed according to time information, and the electronic device changes the shape of the moon in the screen-off image by changing the moon image. How the electronic device changes the moon image specifically may refer to the following description of the steps S105 and S303. As shown in fig. 4b, in the off-screen image, the shape of the moon is the same as the shape of the moon on twelve days of lunar calendar, and the position in the image is changed at 23:08 compared with 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-off image by changing the moon image. How the electronic device changes the moon image specifically may refer to the following description of the steps S105 and S303.
Fig. 4c and 4e are schematic diagrams corresponding to the case where the screen-off image in the aforementioned scene 1 may include the sun.
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 off-screen image may include the sun therein.
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 include a weather image. As shown in fig. 4c and 4d, schematic diagrams of the information image, the sun image, the background image, and the color temperature setting image are shown in the region 431 and the region 441. The time information of the corresponding part of the screen-off image in fig. 4c is 12:08, and the time information of the corresponding part of the screen-off image in fig. 4d is 17:08.
The description of the information image and the background image may refer to the related content in fig. 4a and fig. 4b, and will not be repeated here.
The content in the sun image may include the sun for determining the sun in the quench image. The shape and position of the sun in the quench image is determined by the sun image.
In some embodiments, the sun position in the sun image is unchanged. It may be the same as the position of the sun in the original image relative to the background image or a preset value which may be approximately the same as the position of the moon in the original image relative to the background image.
For example, as shown in fig. 4c, the position of the sun relative to the background image may be the same.
In other embodiments, the position of the sun in the sun image may be varied according to time information. The rule of the position change may be as shown in fig. 6, where the position of the sun in the image gradually changes with time. In the morning (06:00 in the figure), the sun is at the position of the lower left corner in the image, in the evening (18:00 in the figure), the sun is at the position of the lower right corner in the screen extinguishing image, and the sun is not displayed at other times.
For example, in contrast to 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.
The process of how the electronic device acquires the sun image can be described with reference to the following related descriptions in steps S105 and S303
The color temperature setting image is used to determine the color temperature of the off-screen image. The color temperature of the color temperature setting image can be changed according to time information to simulate the natural phenomenon of sunlight change in one day. The change rule may be as shown with reference to fig. 6. With time, the color temperatures in the morning (06:00 in the figure) and in the evening (18:00 in the figure) are warm (reddish), the color temperature in the noon (12:00 in the figure) is cold (white), and the color temperature gradually changes from warm to cold in the morning to noon. The color temperature from midday to evening gradually transitions from a cool color to a warm color. After 18:00, the color temperature may gradually fade from a warm color to a blackish-grey cool color.
The electronic device can synthesize the images in the target image set to obtain a screen-off image. As shown in fig. 4c, in the off-screen image, the color temperature of the image is the same as the color of the solar light in noon, and is white, which can be changed according to time information, and the electronic device changes the color temperature in the off-screen image by changing the color temperature setting image. Here, how the electronic apparatus changes the color temperature setting image specifically can be referred to the following description of the correlation in steps S105 and S303. As shown in fig. 4d, in the off-screen image, both the color temperature and the position of the sun are changed, and the position of the sun is changed and the color temperature is also changed at 17:08 compared with 12:08 in fig. 4 c. The position of the sun can be changed according to the time information, and the electronic equipment changes the position of the sun in the screen extinguishing image by changing the sun image. How the electronic device changes the sun image specifically may refer to the following description of steps S105 and S303. The change in color temperature is the same as described above for the relevant content in fig. 4 c.
In some embodiments, a weather image may also be included in the set of target images. The change of the sun in the screen-off image and the change of the color temperature of the screen-off image can be changed according to the change of the weather information besides the change of the time information. For example, the sun is not displayed on a cloudy day, and the color temperature of the off-screen image is blackish gray.
As shown in fig. 4e, when the weather image is placed before the sun image during synthesis, in a case that the sun is not suitable to be displayed, the content in the weather image may be overlaid with the content in the sun image, so that the sun is not displayed in the screen-off image.
In other embodiments, the electronic device may set that the target image set may include an information image, a background image, and a color temperature setting image and may not include a sun image in case that a cloudy day, a rainy day, etc. are unsuitable for displaying the sun. So that the resultant off-screen image does not include the sun. The color temperature of the color temperature setting image may also be set to vary with weather. So that the color temperature of the synthesized off-screen image changes with weather.
In scenario 2, when the electronic device determines that it is currently night, the acquired target image set may refer to the description of the related content in fig. 4a and fig. 4 b. When the electronic device determines that it is currently on day, the acquired set of target images may refer to the description of the relevant content in fig. 4 c-4 e, previously described. And will not be described in detail herein.
In scenario 3, the electronic device determines that the set original image is not suitable for adding moon or sun, and then the target image set does not include the moon image or sun image. The original image may be taken as a background image. The other images in the target image set may refer to the descriptions of fig. 4a to fig. 4e, and are not described here again.
It should be appreciated that the images in the target image set may be changed as desired, e.g., the electronic device may add images or subtract images from the target image set. The foregoing description is not intended to limit the embodiments of the present application.
After the electronic device obtains the off-screen image, the off-screen image may be displayed when the screen is off.
FIG. 7 above is an exemplary user interface for an electronic device displaying an off-screen image.
As shown in fig. 7, the user interface 70 is one exemplary user interface for an electronic device when it is off-screen. Only the pixels in the region 701 are in an active state, and the pixels in other regions are inactive, i.e., the other regions have black screen.
At this time, the electronic device displays the off-screen image using the pixel points in the region 701. In the screen, the pixels in other areas are not operated and are in an off state.
It should be understood that the time information in the region 701A may not be displayed, or more other content may be displayed. Which content is specifically displayed may be preset by the electronic device or may be set by the user. For example, one of the setup interfaces may refer to the user interface 33 in fig. 3d as previously referred to, e.g., by the "display time and date" control 335 may set up whether to display information for the region 701A.
The following describes in detail a software architecture block diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is a software configuration block diagram 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, etc. on which iOS, android, microsoft or other operating systems are mounted, or may be a non-portable terminal device such as a Laptop computer (Laptop) having a touch-sensitive surface or touch panel, a desktop computer having a touch-sensitive surface or touch panel, etc. The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, an Android system with a layered architecture is taken as an example.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in FIG. 8, the application package may include applications (which may also be referred to as applications) such as calendars, weather, themes, wallpaper, off-screen display music, and the like.
In some embodiments, one or both of the applications of the theme, wallpaper, and off-screen display may be integrated into the same application, such as a setup application. Theme, off screen display and wallpaper are all integrated into this application as previously described for the user interface 31 shown in fig. 3 b.
In the embodiment of the application, the theme and the wallpaper can be used for setting the original image.
The electronic device may set the original image through a theme, and in response to an operation of setting the original image in the theme, the theme may link a theme switching management service described below to implement setting of the original image, and transmit the operation of setting the original image to the theme switching management service described below.
The electronic device may set the original image through the wallpaper, and in response to an operation of setting the original image in the wallpaper, the wallpaper may link a wallpaper switching management service described below to realize setting of the original image, and transmit the operation of setting the original image to a 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 can be used for setting an original image, and in response to the operation of setting the original image, the screen-off display module can store a background image corresponding to the original image into a user database, and mark the background image as selected. If the background image is included in the user database, the selected state of the background image is marked as selected directly.
The screen-off display module can also initialize the screen-off display function to determine whether the electronic equipment can display screen-off. For example, the off-screen display module can determine that the off-screen images can be displayed when the off-screen is performed by detecting the current residual electric quantity, and the off-screen display module does not call the following modules to synthesize the off-screen images for displaying under the condition that the residual electric quantity is smaller than a certain threshold value.
The screen-off display module can receive various information sent by the information acquisition module, wherein the information comprises time information, weather information and the like.
The off-screen display module can also be used for acquiring an image set needed for synthesizing the off-screen image from a user database according to time information (time information and weather information). Then the image set is updated to a target image set according to 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 off-screen 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 extinguishing 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, can be provided by a system or pushed to the electronic device by a server.
The images can comprise 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 original images or a user-defined image.
The moon image may comprise a plurality of sets of moon images, each set comprising a plurality of images for depicting different shapes of the same moon in a month, the shapes of the moon in any one image being different but all the same moon, for example, in the foregoing fig. 5, the shapes of the moon in a month are different for thirty days. The moon image as shown in the aforementioned fig. 4a may be an example.
The sun image may comprise a plurality of images, and the shape of the sun in any one image may be different. The sun image as shown in fig. 4c may be one example.
The color temperature setting image is an image describing the color temperature, and does not include any pattern.
The weather image may include a plurality of images, any of which may be used to characterize a weather. The weather image as shown in fig. 4e may be one example.
The correspondence may be included in the following correspondence: the corresponding relation between the background image and the selected state, the corresponding relation between any group of moon images and any background image, and any moon image in any group of moon images corresponds to one time, the corresponding relation between any sun image and any background image, and the corresponding relation between the color temperature and the time, and the corresponding relation between the position of the moon and the time, the corresponding relation between the position of the sun and the time, the corresponding relation between the weather image and the weather, and the corresponding relation between the color temperature and the weather can be included.
When the original image is a custom image, the screen-off display module can store the custom image as a background image in the database, and calibrate the background image as the custom image, and all the custom images can correspond to one sun image and one moon image.
The corresponding relation between the background image and the selected state is used for describing whether a background image is selected or not. The selected state comprises selected or unselected, the background images with the selected state can be used for synthesizing the screen-off image, and only one background image at a time in all the background images is selected, and the background images are background images related to the original image set by the electronic equipment.
The image synthesis module can synthesize the screen-off image according to the received target image set. And then sends it to an interface display module described below.
The interface display module is used for calling resources such as a display screen and displaying a screen-off image when the screen is off.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 8, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
In the embodiment of the application, the window manager is used for managing the window program. The window manager may be used to determine whether the electronic device is off-screen. After determining that the electronic equipment is out of screen, the out-of-screen display module can be called to execute corresponding functions.
The theme switching management service is used for storing a background image corresponding to an original image into a user database after receiving an operation of setting the original image issued by a theme, and marking the background image as selected. If the background image is included in the user database, the background image is marked as selected directly.
The wallpaper switching management service is used for storing a background image corresponding to an original image into a user database after receiving an operation of setting the original image issued by wallpaper, and marking the selected state of the background image as selected. If the background image is included in the user database, the selected state of the background image is marked as selected directly.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification presented in the form of a chart or scroll bar text in the system top status bar, such as a notification of a background running application, or a notification presented on a screen in the form of a dialog interface. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, 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, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The Runtime (run time) includes core libraries and virtual machines. Run time is responsible for scheduling and management of the system.
The core library consists of two parts: one part is the function that the programming language (e.g., the 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 the programming files (e.g., java files) of the application layer and the application framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (e.g., openGL ES), etc.
The surface manager is used to manage the display subsystem and provides a fusion of two-Dimensional (2D) and three-Dimensional (3D) layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
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 the interaction flow between the internal modules when the electronic device implements the off-screen display method according to the present application, in conjunction with 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 an off-screen 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 quenching includes automatic screen quenching and screen quenching triggered by a user.
Wherein the process of automatically extinguishing the screen does not involve user interaction. The electronic device may determine, via the window manager, whether the local device is off-screen.
The screen-off triggered by the user means that the user sets the screen-off of the electronic device, for example, when the electronic device is on, the screen-off of the electronic device can be caused by pressing the power control, and the operation of triggering the screen-off can be transmitted to the window manager, so that the window manager determines that the screen-off is locally performed.
S102, the electronic equipment calls a screen-off display module through a window manager to start a screen-off display function.
S103, initializing a screen quenching function by the electronic equipment through the screen quenching display module.
Initializing the off-screen function refers to determining whether the electronic device can off-screen display. For example, the off-screen display module can determine that the off-screen images can be displayed when the off-screen is performed by detecting the current residual electric quantity, and the off-screen display module does not call the following modules to synthesize the off-screen images for displaying under the condition that the residual electric quantity is smaller than a certain threshold value.
Under the condition that the screen-off display condition is met, the screen-off display module can initialize the screen-off display function, and the later module is called to synthesize the screen-off image for display.
S104, the electronic equipment calls a time management module through the screen-off display module to acquire time information.
The time information includes at least information necessary for obtaining the screen-off image, for example, in the case where the shape of the moon in the screen-off image is to be changed, the time information includes a few days of which the current time is lunar calendar, which can be obtained by acquiring the month/day information conversion. In the case where the position of the moon in the screen-off image or the color temperature of the image is to be changed, the time information may further include time/minute information of the current time.
It should be understood that the information specifically included in the time information may be set according to a rule of obtaining the screen-off image, and is not limited to the embodiment of the present application.
In the embodiment of the application, the time information may include month/day/time/minute information, year/month/day information of lunar calendar, and day of week. As shown in the information images shown in the previous figures 4 a-4 e.
The screen-off display module invokes the time management module. The time management module may obtain time information after being invoked and then send the time information to the off screen display module.
In one possible implementation, the time management module may obtain time information from a calendar application provided by the system.
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 a specific description of the database, reference may be made to the foregoing description of the database, and details thereof will not be repeated here.
The target image set comprises a plurality of images for synthesizing the screen-off image.
Taking the change of the shape of the moon in the screen-off image with time information as an example, the following description will be given:
At this time, the target image set may be as shown in fig. 4 a. Including information images, moon images, and background images. Reference may be made to the description of the related content in fig. 4a for this target image set, and this is not repeated here.
In a possible implementation, the off-screen display module may determine, from the database, a background image whose selected state is selected as the background image involved in synthesizing the off-screen image, for example, as shown in the background image in fig. 4 a. And then selecting a group of moon images corresponding to the background image, and determining a moon image corresponding to the time from the group of moon images according to the day information of the lunar calendar in the time information, wherein the moon image can be shown as a moon image in fig. 4 a. The screen-off display module determines an information image according to the time information, wherein the information image can display the time information, the format and the position for displaying the time information are preset, and after the time information is acquired, the information image can be displayed according to the set format and the position, and the information image can be shown as the information image in fig. 4 a.
Taking the change of the shape and position of the moon in the screen-off image with time information as an example, the following description will be given:
At this time, the target image set may be as shown in fig. 4 b. Including information images, moon images, and background images. Reference may be made to the description of the related content in fig. 4a for this target image set, and this is not repeated here.
The obtaining manner of the background image and the information image is similar to that described above, and will not be repeated here. 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, and for example, the first moon image may be as shown in the moon image in fig. 4 a. 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 the position corresponding to the current time to obtain a second moon image, wherein the second moon image can be shown in the aforesaid figure 4b, and then the screen-off display module takes the second moon image as a moon image required when the screen-off image is synthesized.
Taking the example that the color temperature of the image changes with time information when the sun is displayed in the screen-off image, the following description is made:
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. Reference may be made to the description of the related content in fig. 4c for this target image set, which is not repeated here.
The obtaining manner of the background image and the information image is similar to that described above, and will not be 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. For example, the background image may be as shown in the background image in fig. 4 c. Its corresponding sun image is the corresponding sun image in fig. 4 c. For the color temperature setting image, the off-screen display module acquires a first color temperature setting image from a database, then 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 to 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 off-screen image.
Taking the example that the position of the sun and the color temperature of the image change with time information when the sun is displayed in the screen-off image, the following description is made:
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. Reference may be made to the description of the related content in fig. 4d for this target image set, which is not repeated here.
The information image, the background image, and the color temperature setting image are obtained in a similar manner to those described above, and are not described here again. 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. For example, the background image may be as shown in the background image in fig. 4 c. Its 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 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, wherein the second sun image can be shown in the previous figure 4d, and then the screen-off display module takes the second sun image as a sun image required when the screen-off image is synthesized.
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 can refer to the description, for example, in scene 2, for the case that the sun is displayed in daytime and the moon is displayed at night, if the time information corresponds to 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 night, the target image set includes the sun image, so that the screen-off image also includes the sun. The set of target images and the off-screen images in other scenes can be referred to in the foregoing description, and are not exemplified here.
S106, the electronic equipment sends the target image set to the image synthesis module through the screen-off display module.
S107, the electronic equipment synthesizes the screen-off image according to the target image set through the image synthesis module.
And the image synthesis module carries out superposition processing on all images in the target image set according to a preset sequence to synthesize a screen-off image. For example, when the target image set includes the information image, the moon image and the background image, an image is obtained by overlapping the information image and the moon image, and then the image and the background image are overlapped to obtain the screen-off image.
S108, the electronic equipment calls a screen-off display module through the image synthesis module to display the screen-off image.
Fig. 7, described above, is an exemplary user interface displaying a quench screen image. The relevant description may refer to the description of fig. 7 previously described. The off-screen display module 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.
Fig. 10 is a schematic interaction flow between the 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 here.
S202, the electronic equipment calls a screen-off display module through a 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 here.
S203, initializing a screen quenching function by the electronic equipment through the screen quenching 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 here.
S204, the electronic equipment calls a time management module through the screen-off display module to acquire time information.
The process is the same as the step S104, and reference may be made to the description of the step S104, which is not repeated here.
S205, the electronic equipment calls a weather management module through the screen extinguishing display module to acquire weather information.
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-extinguishing image. It can be classified into cloudy days, rainy days, etc. Any weather may be associated with a weather image. Wherein, a plurality of weather can correspond to the same weather image. Any weather may also correspond to one color temperature, where multiple days 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 image.
The influence of weather information on the screen-off image is described by taking the change of the shape of the sun in the screen-off image with time information and weather information as an example, and other cases can refer to the description.
At this time, the target image set may be as shown in fig. 4 e. Including information images, weather images, sun images, background images, and color temperature setting images. Reference may be made to the description of the related content in fig. 4a for this target image set, and this is not repeated here.
The information image, the background image and the sun image are obtained in a similar manner to those described above, and will not be described here again. The following describes the manner in which the weather image, the color temperature setting image, are acquired.
For a weather image, in one possible implementation, the off-screen display module may determine a weather image corresponding to the current weather from the database as the weather image, which may be shown as the weather image in fig. 4e, for example.
For the color temperature setting image, the off-screen display module acquires the first color temperature setting image from the database, then determines the color temperature at this time according to the corresponding relation between the color temperature and weather, then 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 when synthesizing the off-screen image, for example, the color temperature setting image may be as shown in the color temperature setting image in fig. 4 e.
S207, the electronic equipment sends the target image set to the 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 here.
S208, the electronic equipment synthesizes the screen-off image according to the target image set through the image synthesis module.
The process is the same as the above step S107, and reference may be made to the above description of step S107, which is not repeated here.
S209, the electronic equipment displays the screen-off image through the screen-off display module.
The process is the same as the above step S108, and reference is made to the above description of step S108, which is not repeated here.
Fig. 11 shows a schematic flowchart of an off-screen display method provided in an embodiment of the present application.
The detailed procedure involved in the method can be referred to the following description of step S301 to step S303.
S301, the electronic equipment acquires time information.
The time information includes at least information necessary for obtaining the screen-off image, for example, in the case where the shape of the moon in the screen-off image is to be changed, the time information includes a few days of which the current time is lunar calendar, which can be obtained by acquiring the month/day information conversion. In the case where the position of the moon in the screen-off image or the color temperature of the image is to be changed, the time information may further include time/minute information of the current time.
It should be understood that the information specifically included in the time information may be set according to a rule of obtaining the screen-off image, and is not limited to the embodiment of the present application.
The electronic device triggers the local device to acquire time information in the following cases:
(1) The current time is about to reach the preset screen-off time.
The electronic device may set the off-screen time, for example, may set an automatic off-screen after 5 minutes. In the case where the electronic device cannot detect a touch within 5 minutes after the screen is turned on, the electronic device may start to acquire time information when the electronic device approaches 5 minutes after the screen is turned on, for example, when the 4 th minute is zero for 50 seconds.
(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 device is on, the electronic device can be enabled to be off by pressing the power control, and the electronic device can start to acquire the off-screen time in response to the off-screen triggering operation.
S302, the electronic equipment determines a target image set according to the time information.
For a detailed description of this process reference is 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 image.
Taking the change of the shape of the moon in the screen-off image with time information as an example, the following description will be given:
at this time, the target image set may be as shown in fig. 4 a. Including information images, moon images, and background images. Reference may be made to the description of the related content in fig. 4a for this target image set, and this is not repeated here.
In one possible implementation, the electronic device may determine, from the database, a background image whose selected state is selected as the background image involved in composing the off-screen image. 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 day information of the lunar calendar in the time information. And determining an information image according to the time information, wherein the time information can be displayed in the information image, the format and the position for displaying the time information are preset, and after the time information is acquired, the information image is displayed according to the set format and position.
Taking the change of the shape and position of the moon in the screen-off image with time information as an example, the following description will be given:
at this time, the target image set may be as shown in fig. 4 b. Including information images, moon images, and background images. Reference may be made to the description of the related content in fig. 4a for this target image set, and this is not repeated here.
The obtaining manner of the background image and the information image is similar to that described above, and will not be repeated here. For the moon images, one possible implementation manner is to select a set of moon images corresponding to the background image from the database, determine the moon image corresponding to the time from the set of moon images according to the day information of the lunar calendar in the time information, and take 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 the position corresponding to the current time to obtain a second moon image, and taking the second moon image as a moon image required when the screen extinguishing image is synthesized.
Taking the example that the color temperature of the image changes with time information when the sun is displayed in the screen-off image, the following description is made:
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. Reference may be made to the description of the related content in fig. 4c for this target image set, which is not repeated here.
The obtaining manner of the background image and the information image is similar to that described above, and will not be repeated here. For sun images, one possible implementation is to select a sun image from a database that corresponds to the background image. For the color temperature setting image, a first color temperature setting image is acquired from a database, then the color temperature at the moment is determined according to the corresponding relation between the color temperature and time, then the color temperature of the first color temperature setting image is updated to the color temperature at the moment to obtain a second color temperature setting image, and the second color temperature setting image is used as a color temperature setting image required when the screen extinguishing image is synthesized.
Taking the example that the position of the sun and the color temperature of the image change with time information when the sun is displayed in the screen-off image, the following description is made:
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. Reference may be made to the description of the related content in fig. 4d for this target image set, which is not repeated here.
The information image, the background image, and the color temperature setting image are obtained in a similar manner to those described above, and are not described here again. For the sun image, one possible implementation is to select a 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 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 taking the second sun image as a sun image required when the screen extinguishing image is synthesized.
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 can refer to the description, for example, in scene 2, for the case that the sun is displayed in daytime and the moon is displayed at night, if the time information corresponds to 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 night, the target image set includes the sun image, so that the screen-off image also includes the sun. The set of target images and the off-screen images in other scenes can be referred to in the foregoing description, and are not exemplified here.
S303, the electronic equipment obtains a screen-off image according to the target image set.
And the image synthesis module carries out superposition processing on all images in the target image set according to a preset sequence to synthesize a screen-off image. For example, when the target image set includes the information image, the moon image and the background image, an image is obtained by overlapping the information image and the moon image, and then the image and the background image are overlapped to obtain the screen-off image.
The electronic device may then display the off-screen image in the screen.
Fig. 7, described above, is an exemplary user interface displaying a quench screen image. The relevant description may refer to the description of fig. 7 previously described. The electronic device utilizes a partial region of the screen to display the off-screen image, such as region 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 step S301 to step S303 correspond to the description of step S101 to step S108 described above. The step S301 to step S303 and the description of the step S201 to step S209 may be combined with the case that the electronic device obtains the screen-off image according to the time information and the weather information, which will not be described herein. For example, the timing of acquiring the weather information may refer to the foregoing description of the case where the electronic apparatus acquires the information in step S301.
In the case where 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 sun. If so, matching is performed, and if not, moon or sun is not matched.
Fig. 12 shows a schematic flow chart of the off-screen display method involved when the original image is a custom image.
The execution timing of step S401 and step S402 may refer to the foregoing description of the case where the electronic device obtains the information in step S301, which is not described herein.
S401, the electronic equipment acquires an original image selected by a user.
When the image for screen-off display set by the user through the electronic equipment is a custom image, the electronic equipment can store the custom image as a background image in the database, calibrate the background image as the custom image, and all the custom images can correspond to one solar image and one moon image.
One exemplary user interface in which a user sets a custom image via an electronic device as an original image for an off-screen display may be referred to the foregoing description of fig. 3e and 3 f.
In one possible implementation, the electronic device may obtain the background image, whose current state is selected and calibrated as the custom image, from the database as the original image selected by the user.
S402, the electronic equipment acquires time information.
The process of the electronic device obtaining the time information may refer to the foregoing description of step S301, which is not repeated here.
S403, the electronic equipment determines whether to match according to the original image selected by the user.
Whether matching is performed refers to whether moon or sun is suitable for inclusion in the screen-off image obtained from the original image selected by the user.
The electronic device may 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, it is determined whether the moon or sun is already included in the original image selected by the user, and if so, it is not suitable to add the moon or sun. If the original image does not include moon or sun, it is identified whether the original image selected by the user is a scene that is not suitable for adding moon or 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 landscape, and none of the areas can add moon or sun.
In the case where it is determined that the original image selected by the user is determined that matching is possible, step S404 to step S407 are performed.
In the case where it is determined that the original image selected by the user is determined not to be matched, step S407 and step S408 are executed.
S404, the electronic equipment determines a target image set according to the time information.
Taking the example of the moon included in the screen-off image as an illustration, the case of the sun included in the screen-off image can be referred to this description.
In one possible implementation, the user selected original image is used as the background image. The electronic device 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 day information of the lunar calendar in the time information. The generation of the information image may refer to the foregoing description and will not be repeated here.
S405, the electronic equipment obtains a screen-off image according to the target image set.
This step S405 is similar to the process of the previous step S303, and reference may be made to the previous description of this step S303, which is not repeated here.
S406, the electronic device determines whether the synthesis is successful.
If not, the process continues from step S403 to step S406.
In case of success, step S408 is performed.
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 utilizing the time information, and then synthesizes the information image with the original image selected by the user to obtain a screen-off image.
S408, the electronic equipment displays the screen-off image.
The electronic device refreshes the interface and displays the screen-off image in the interface.
Fig. 7, described above, is an exemplary user interface displaying a quench screen image. The relevant description may refer to the description of fig. 7 previously described. The electronic device utilizes a partial region of the screen to display the off-screen image, such as region 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 merely for illustrating the technical solution 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions 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 determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part 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, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, 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 a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more 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), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (7)

1. A method of off-screen display, 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;
before the time information is acquired, the electronic equipment detects an operation of selecting an original image, wherein the original image is a system image;
the electronic equipment acquires a target image set according to the time information and the original image; when the original image comprises moon, the target image set comprises moon images and first background images corresponding to the original image, and the content in the first background images is the same as the content which does not comprise moon in the original image; the moon image corresponds to the time information, and is used for determining the shape of the moon in the screen extinguishing image; when the original image comprises the sun, the target image set comprises a sun image, a color temperature setting image and a second background image corresponding to the original image, and the content in the second background image is the same as the content which does not comprise the sun in the original image; the color temperature setting image corresponds to time information; the color temperature image is used for determining the color temperature of the screen extinction image;
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;
in the case that the original image comprises moon or sun, the screen-off image comprises moon or sun; the position of the moon or the sun in the screen extinguishing image is the same as the position of the moon or the sun in the original image;
in the case where the screen-off image includes a moon, the screen-off image includes the content in the first background image and the moon, the shape of the moon in the screen-off image changes with time but the content in the first background image does not change with time; the shape of the moon in the screen-extinguishing image changes along with time and is used for representing the moon phase of the moon in the current sky; the position relation between the content in the first background image and the moon in the screen-off image is the same as that in the original image;
when the screen-off image comprises the sun, the screen-off image comprises the content in the second background image and the color temperature corresponding to the sun, wherein the color temperature corresponding to the sun changes with time but the content in the second background image does not change with time; the color temperature of the screen-off image changes along with time and is used for representing the color temperature corresponding to the current sun.
2. The method according to claim 1, wherein in case the original image includes a moon, the electronic device obtains a set of target images according to the time information and the original image, specifically comprising:
the electronic equipment determines a first background image corresponding to an original image;
the electronic equipment determines a moon image set corresponding to the first background image, and determines a moon image corresponding to time from the moon image set according to the time;
the electronic device takes the moon image and the first background image as the target image set.
3. The method according to claim 1, wherein in case the original image includes sun, the electronic device obtains a set of target images according to the time information and the original image, specifically comprising:
the electronic equipment determines a second background image corresponding to the original image;
the electronic equipment determines a sun image corresponding to the second background image;
the electronic equipment acquires a first color temperature setting image, then 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 second background image and the color temperature setting image as the target image set.
4. A method according to any one of claims 1-3, characterized in that the method further comprises:
the off-screen image also includes time information for characterizing the current time.
5. 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, the one or more memories 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-4.
6. A chip system for application to an electronic device, the chip system comprising one or more processors to invoke computer instructions to cause the electronic device to perform the method of any of claims 1-4.
7. A computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-4.
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 CN113963086A (en) 2022-01-21
CN113963086B true 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 (6)

* 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
CN113411445A (en) * 2019-04-10 2021-09-17 华为技术有限公司 Control method for screen-off display and terminal equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210105153A (en) * 2020-02-18 2021-08-26 삼성전자주식회사 Device and control method thereof

Patent Citations (6)

* 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
CN111913771A (en) * 2020-07-17 2020-11-10 维沃移动通信有限公司 Wallpaper display method, device and equipment

Also Published As

Publication number Publication date
CN113963086A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
CN109814766B (en) Application display method and electronic equipment
CN110471639B (en) Display method and related device
CN112148400B (en) Display method and device in locking state
CN113553130B (en) Method for executing drawing operation by application and electronic equipment
CN113961157B (en) Display interaction system, display method and equipment
CN109857401B (en) Display method of electronic equipment, graphical user interface and electronic equipment
CN113360222A (en) Application information display method and related equipment
CN114979457B (en) Image processing method and related device
CN112817610A (en) Cota package installation method and related device
CN113963086B (en) Screen-off display method and electronic equipment
CN115525783B (en) Picture display method and electronic equipment
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
CN117215446B (en) Display method and electronic equipment
CN116688494B (en) Method and electronic device for generating game prediction frame
CN116027933B (en) Method and device for processing service information
CN117689796A (en) Rendering processing method and electronic equipment
CN117762281A (en) Method for managing service card and electronic equipment
CN116974663A (en) Method and device for displaying dynamic wallpaper and electronic equipment
CN117667278A (en) Interface display method, device and system
CN116033063A (en) Method for checking message and electronic equipment
CN116781808A (en) Display method and electronic equipment
CN118233558A (en) Display method, user interface and related device
CN116737292A (en) Display mode switching method, electronic equipment and readable storage medium

Legal Events

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