Display method and device and electronic equipment
By combining angle sensors and global positioning system information on smart watches, the brightness and color of image pixels are dynamically adjusted to solve the problem of low dial performance, achieve a richer and more dynamic dial display, and improve the image performance of electronic devices. ability.
Patent Information
- Application Number
- CN202310444246.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2024-10-22
AI Technical Summary
The dial expression capabilities of smart watches are low, and the existing static, dynamic and interactive dial presentation forms are monotonous and cannot fully utilize the image expression potential of electronic devices.
By combining visual enhancement and user interaction, the electronic device's angle sensor and global positioning system information are used to dynamically adjust the brightness and color of image pixels to generate a dial display with a three-dimensional effect.
It enhances the image performance capabilities of electronic devices, enriches the types and quantities of dials, and provides a more dynamic and interactive user experience.
Smart Images

Figure CN118819367A_ABST
Abstract
Description
[Technical field]
[0001] The present application relates to the field of computer technology, and in particular to a display method, device and electronic device. [Background technology]
[0002] With the development of electronic devices, the use of smart phones and smart watches is becoming more and more common, and electronic devices of various design styles are emerging in an endless stream. Since the dial of a smart watch is electronically displayed, the style of the dial of a smart watch can be changed at will, so the smart watch provides a function for users to manually change the presentation form of the dial.
[0003] Currently, the watch face of a smart watch can be a picture or a video, and the expressiveness of the image in the watch face is relatively low. [Summary of the invention]
[0004] In view of this, embodiments of the present application provide a display method, an apparatus, and an electronic device to combine visual enhancement with user interaction to enhance the image presentation capability of the electronic device.
[0005] The present application embodiment adopts the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a display method, which is applied to an electronic device, and the method includes:
[0007] determining a first image;
[0008] Acquiring first angle information through a first communication connection;
[0009] Determining second angle information of the electronic device;
[0010] Determine brightness information of one or more pixels according to attribute information of one or more pixels of the first image, first angle information, and second angle information;
[0011] A first user interface is displayed according to brightness information of one or more pixels.
[0012] In an implementation of the first aspect, before acquiring the first angle information and determining the second angle information of the electronic device through the first communication connection, the method further includes:
[0013] detecting a first input;
[0014] Acquiring first angle information and determining second angle information of the electronic device through the first communication connection includes:
[0015] In response to the first input, first angle information is acquired through the first communication connection, and second angle information of the electronic device is determined.
[0016] In an implementation manner of the first aspect, the first input includes:
[0017] The posture change of the electronic device reaches a preset condition; or
[0018] A first operation is performed on a first button or a screen, the first operation is used to switch the screen from an off state to a bright state; or
[0019] A second operation acting on a second button or the screen, the second operation being used to make the screen display the first image;
[0020] The electronic device includes a first button, a second button and a screen, and the first button and the second button are the same or different buttons.
[0021] In an implementation manner of the first aspect, determining the first image includes:
[0022] Set the first image as the watch face background.
[0023] In an implementation of the first aspect, before setting the first image as the dial background, the method further includes:
[0024] A first image and a first instruction are received from a first device through a second communication connection, wherein the first instruction instructs to set the first image as a dial background.
[0025] In an implementation manner of the first aspect, the second communication connection is a Bluetooth connection.
[0026] In an implementation manner of the first aspect, the first communication connection is a global positioning system or a Beidou satellite navigation system.
[0027] In an implementation manner of the first aspect, the first angle information includes solar declination, geographic latitude, and local time information.
[0028] In an implementation of the first aspect, determining brightness information of one or more pixels according to attribute information of one or more pixels of the first image, the first angle information, and the second angle information includes:
[0029] Determine the solar altitude angle information based on the solar declination, geographic latitude and local time information;
[0030] Brightness information of the one or more pixels is determined according to the attribute information of the one or more pixels of the first image, the solar altitude angle information and the second angle information.
[0031] In an implementation manner of the first aspect, the second angle information includes a device angle between a plane where the electronic device is located and a preset direction.
[0032] In an implementation of the first aspect, determining brightness information of one or more pixels according to attribute information of one or more pixels of the first image, solar altitude angle information, and second angle information includes:
[0033] Generate the light source position based on the sun altitude angle information and the device angle;
[0034] generating light intensity information of one or more pixels according to the position of the light source and the distance between the position of the light source and the position of the pixel;
[0035] generating image light information based on a light source position and height information of one or more pixels;
[0036] The electronic device generates light standard information according to the image light information;
[0037] The electronic device generates light source information based on the light standard information and light intensity information of one or more pixels;
[0038] Generate adjustment information according to normal information of one or more pixels and coordinate differences of adjacent pixels in the acquired first image;
[0039] Generate bright and dark point information according to light source information and adjustment information;
[0040] Brightness information of one or more pixels is generated according to the bright and dark point information and the color information of the first image.
[0041] In an implementation of the first aspect, the attribute information includes normal information, and after determining the first image, before determining brightness information of one or more pixels according to the attribute information of one or more pixels of the first image, the solar altitude angle information, and the second angle information, the method includes:
[0042] Generate height information of one or more pixels of the first image according to the color information of the first image;
[0043] Generate normal information of one or more pixels of the first image according to height information of the one or more pixels and height information of adjacent pixels; or,
[0044] Normal information for one or more pixels of the first image is received from the first device via the second communication connection.
[0045] In a second aspect, an embodiment of the present application provides a display method, which is applied to an electronic device, including:
[0046] determining a first image;
[0047] Detecting a first input at a first moment, the first input being used to switch the electronic device from a screen-off state to a screen-on state;
[0048] In response to the first input, displaying a first user interface, the first user interface including image data generated after the first image is subjected to the first processing;
[0049] Detecting a second input at a second moment, the second input being used to switch the electronic device from a screen-off state to a screen-on state;
[0050] In response to the second input, a second user interface is displayed, wherein the second user interface includes image data generated after the first image is subjected to the second processing; wherein,
[0051] The brightness of at least some pixels in the first user interface is different from the brightness of at least some pixels in the second user interface.
[0052] In an implementation manner of the second aspect, the first processing includes:
[0053] First brightness information of one or more pixels is determined according to the acquired attribute information, first angle information, and second angle information of one or more pixels of the first image, and the image data includes the first brightness information.
[0054] In an implementation manner of the second aspect, the second process includes:
[0055] According to the acquired attribute information, third angle information and fourth angle information of one or more pixels of the first image, second brightness information of the one or more pixels is determined, and the image data includes the second brightness information.
[0056] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is run on a computer, the computer executes the above-mentioned display method.
[0057] In a fourth aspect, an embodiment of the present application provides an electronic device, wherein the electronic device includes a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the steps of the above-mentioned display method.
Brief Description of the Drawings
[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0059] Figure 1 A schematic diagram of the structure of an electronic device provided according to an embodiment of the present application;
[0060] Figure 2a A schematic diagram of a first image provided according to an embodiment of the present application;
[0061] Figure 2b A schematic diagram of a user interface provided according to an embodiment of the present application;
[0062] Figure 2c A schematic diagram of another user interface provided according to an embodiment of the present application;
[0063] Figure 2d A schematic diagram of another user interface provided according to an embodiment of the present application;
[0064] Figure 2e A schematic diagram of another user interface provided according to an embodiment of the present application;
[0065] Figure 2f A schematic diagram of another user interface provided according to an embodiment of the present application;
[0066] Figure 3 A schematic diagram of a solar altitude angle provided according to an embodiment of the present application;
[0067] Figure 4 A flow chart of a display method provided according to an embodiment of the present application;
[0068] Figure 5 A flowchart of another display method provided according to an embodiment of the present application;
[0069] Figure 6 A flowchart of another display method provided according to an embodiment of the present application;
[0070] Figure 7 A flowchart of another display method provided according to an embodiment of the present application;
[0071] Figure 8 A flowchart for determining brightness information according to an embodiment of the present application;
[0072] Fig. 9 A schematic diagram of the structure of a display device provided according to an embodiment of the present application;
[0073] Fig.10 A schematic diagram of the structure of a third determination module provided according to an embodiment of the present application;
[0074] Fig.11 It is a schematic diagram of the structure of another display device provided according to an embodiment of the present application. [Specific implementation method]
[0075] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0076] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0077] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0078] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0079] In some embodiments, electronic devices include but are not limited to Or devices with other operating systems. Electronic devices include but are not limited to mobile phones, tablet computers, laptops, wearable devices, etc. Among them, wearable devices include smart watches.
[0080] Taking the electronic device as a smart watch as an example, since the dial of the smart watch is an electronic display, the dial style of the smart watch can be changed at will. The current smart watch dials are divided into static dials, dynamic dials or interactive dials. Among them, the static dial is a dial on which the smart watch displays a picture obtained from the first device, the dynamic dial is a dial on which the smart watch displays a video obtained from the first device in a loop, and the interactive dial is a dial that can make corresponding changes according to the user's operation of the touch screen or crown of the smart watch. For example, if the interactive dial includes a live image, when the user long presses the live image, the live image starts to play. For another example, when the user does not long press the live image, the live image is displayed according to the first frame of the live image.
[0081] In some embodiments, the first device includes a terminal device or a server. For example, the terminal device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, etc.; the server includes but is not limited to a cloud server. If the first device is a terminal device, the electronic device and the first device can communicate through wireless communication. For example, the wireless communication may include Bluetooth (BT) or Near Field Communication (NFC). If the first device is a server, the electronic device and the first device can communicate through mobile communication. For example, mobile communication may include the 4th Generation mobile communication technology (4G) or the 5th Generation mobile communication technology (5G).
[0082] The following technical solution is an operation process for a user to set the dial of a smart watch.
[0083] In one embodiment of the present application, when the user wants to set the dial of the smart watch for the first time, the smart watch needs to be paired with the mobile phone. Specifically, turn on the Bluetooth in the "Settings" application of the mobile phone, open the watch application in the mobile phone, click the "+" button in the "Device" option to add a device, then click the "Smart Watch" option, continue to select the model of the smart watch, and click the "Start Pairing" button to wirelessly connect the smart watch to the mobile phone.
[0084] Users open the device details page of the smart watch in the watch application, find the "Watch Face Market" button, click the "More" button, and then click the "Album Watch Face" button to enter the watch face settings interface.
[0085] In the album dial setting interface, the user clicks the "+" button and can choose the method of uploading photos: taking a photo or selecting from the album. The user can select a two-dimensional image at will and click the "Save" button. The two-dimensional image stored in the mobile phone has been transmitted to the smart watch. The user chooses the display mode of the two-dimensional image in the smart watch as "static dial". At this time, the electronic device sets the dial to the two-dimensional image.
[0086] When the user wants to change the "static watch face" to a "dynamic watch face", since the smart watch and the mobile phone have been paired, there is no need to re-pair them. The user only needs to turn on the Bluetooth of the mobile phone and open the device details page of the smart watch in the watch application, find the "Watch Face Market" button, click the "More" button, and then click the "Album Watch Face" button to enter the watch face setting interface.
[0087] In the album watch face setting interface, users click the "+" button and can choose how to upload photos: take a photo or select from the album. Users can select a video at will (such as photography works, parent-child videos, game recordings, etc.), and click the "Save" button. The video stored in the mobile phone has been transferred to the smart watch. The user chooses the video to be displayed in the smart watch as "dynamic desktop". At this time, the video is set as the watch face and can be played in a loop on the watch face.
[0088] When the user wants to change the "dynamic dial" to an "interactive dial", open the device details page of the smartwatch in the watch app, find the "Dial Market" button, and select the "Rhythm Disc" theme dial to set the dial to the "Rhythm Disc" dial. This dial is equipped with four quick entrances for music, payment, stopwatch, and altitude. When the user clicks on the four quick entrances for music, payment, stopwatch, or altitude, they can enter the corresponding interface. When the user selects a dial with interactive functions in the "Dial Market", the user can interact with the dial.
[0089] The presentation forms of the above-mentioned static dials, dynamic dials and interactive dials are only displayed according to the set content, which is relatively monotonous and has low expressiveness. In order to solve the technical problem of low expressiveness of the dials, an embodiment of the present application provides an electronic device.
[0090] Figure 1 FIG. 1 is a schematic diagram of a structure of an electronic device provided according to an embodiment of the present application. Figure 1 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0091] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0092] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0093] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0094] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0095] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0096] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0097] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0098] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0099] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0100] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0101] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0102] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0103] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0104] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0105] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0106] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0107] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0108] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0109] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0110] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0111] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0112] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0113] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0114] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0115] In order to solve the technical problem of low expressiveness of the above-mentioned watch dial, based on the above-mentioned electronic device, the embodiment of the present application can combine visual enhancement with user interaction, and render the two-dimensional first image into an image with a three-dimensional effect. When the electronic device is a smart watch, the expressiveness of the watch dial is enhanced, and the types and quantities of watch dials are enriched.
[0116] Combine the following Figure 2a to Figure 2f , the display method provided in the embodiment of the present application is described in detail.
[0117] The user operates the electronic device so that the screen of the electronic device lights up. When the electronic device is a smart watch, the screen lighting method may include: raising the wrist to light up the screen, clicking the screen of the smart watch to light up the screen, or pressing the crown to light up the screen. Among them, the wrist-raising screen lighting method of the smart watch usually detects the flip angle of the smart watch to determine whether the user has raised his wrist to light up the screen.
[0118] In one embodiment of the present application, taking the electronic device as a smart watch as an example, after the user turns on the screen of the smart watch, the user can set the dial of the smart watch. The user opens the device details page of the smart watch in the watch application installed in the first device, finds the "Dial Market" button, clicks the "More" button, and then clicks the "Album Dial" button to enter the dial setting interface. In the album dial setting interface, the user clicks the "+" button and can choose the way to upload photos: take a photo or select from the album. The user can arbitrarily select a second image, which is a two-dimensional image. The electronic device can crop the second image according to the screen specifications of the electronic device to generate the first image.
[0119] The electronic device determines the first image, receives the first image and the first instruction from the first device through the second communication connection, wherein the first instruction indicates that the first image is set as the dial background. In one embodiment of the present application, the second communication connection includes a Bluetooth connection. In one possible implementation, the electronic device obtains the second image from the first device, and the electronic device crops the second image according to the screen specifications of the electronic device to generate the first image to determine the first image. For example, when the first device includes a terminal device, the terminal device stores the second image, the electronic device and the terminal device are connected to each other in a short distance communication, and the terminal device can send the second image to the electronic device; for another example, when the first device includes a server, the server stores the second image, the electronic device and the server are connected to each other in a mobile communication, and the electronic device can download the second image from the server. The electronic device crops the second image according to the screen specifications of the electronic device to generate the first image. In another possible implementation, the first device stores the second image, and the first device crops the second image according to the screen specifications of the electronic device to generate the first image to determine the first image. In another possible implementation, the electronic device can shoot the first image to determine the first image. In one embodiment of the present application, the first image can also be set as a lock screen wallpaper, as well as a dial background and a lock screen wallpaper.
[0120] Figure 2a is a schematic diagram of a first image provided according to an embodiment of the present application, such as Figure 2aAs shown, the first image is a two-dimensional image cut according to the screen specifications of the electronic device. If the screen specifications include a circle, the first image is a circular image. The user can choose the first image to be presented in the electronic device as "dynamic rendering", and the electronic device executes the following method to realize the dynamic rendering of the dial. The electronic device generates height information of one or more pixels of the first image based on the color information of the first image; generates normal information of one or more pixels of the first image based on the height information of the one or more pixels and the height information of the adjacent pixels; or receives the normal information of one or more pixels of the first image from the first device through the second communication connection. For example, the first device stores the first image, generates height information of one or more pixels of the first image based on the color information of the first image; generates normal information of one or more pixels based on the height information of the one or more pixels and the height information of the adjacent pixels; the first device sends the first image and the normal information of one or more pixels of the first image to the electronic device through the second communication connection.
[0121] The electronic device detects a first input. In a possible implementation, the first input includes a posture change of the electronic device reaching a preset condition. When the electronic device includes a smart watch, the smart watch is worn on the user's wrist, and the user raises the wrist to move the electronic device to detect that the posture change of the electronic device reaches the preset condition; or, the user rotates the wrist to move the electronic device to detect that the posture change of the electronic device reaches the preset condition; or, the user holds the smart watch and swings the smart watch to move the electronic device to detect that the posture change of the electronic device reaches the preset condition.
[0122] In one embodiment of the present application, the electronic device includes an orientation sensor, and the electronic device can detect a change in the posture of the electronic device through the orientation sensor. Specifically, the electronic device can detect a change in the posture parameter of the electronic device through the orientation sensor. As an optional solution, the electronic device detects through the orientation sensor that when the posture parameter of the electronic device is greater than the posture parameter threshold, it indicates that the posture change of the electronic device reaches a preset condition. Among them, when the posture parameter is an acceleration value along the three rectangular coordinate axes of X, Y, and Z, the posture parameter threshold is a set acceleration threshold; when the posture parameter is an angular velocity value along the three rectangular coordinate axes of X, Y, and Z, the posture parameter threshold is a set angular velocity threshold.
[0123] For example, the orientation sensor may be an inertial measurement unit (IMU), a compass, a micro-electro-mechanical system (MEMS) accelerometer, or a MEMS gyroscope. Figure 1 As shown, the orientation sensor includes Figure 1The gyroscope sensor 180B and the acceleration sensor 180E in the smart watch. In one embodiment of the present application, the IMU can detect the change of the six-degree-of-freedom attitude parameters of the smart watch, wherein the six degrees of freedom include the movement freedom along the three rectangular coordinate axes of X, Y, and Z and the rotation freedom around these three coordinate axes, the attitude parameters of the movement freedom along the three rectangular coordinate axes of X, Y, and Z include the acceleration values along the three rectangular coordinate axes of X, Y, and Z, and the attitude parameters of the rotation freedom along the three rectangular coordinate axes of X, Y, and Z include the angular velocity values along the three rectangular coordinate axes of X, Y, and Z, and the angular velocity values may correspond to the yaw angle Yaw, the roll angle Roll, and the pitch angle Pitch. The electronic device can detect the acceleration values along the three rectangular coordinate axes of X, Y, and Z through the acceleration sensor 180E. When any one of the acceleration values along the three rectangular coordinate axes of X, Y, and Z is greater than the set acceleration threshold, it can be detected that the attitude change of the electronic device reaches the preset condition. The acceleration threshold can be set according to actual conditions, for example, the acceleration threshold is 10m / s2. The electronic device can detect the angular velocity values along the three rectangular coordinate axes of X, Y, and Z through the gyroscope sensor 180B. When any of the angular velocity values along the three rectangular coordinate axes of X, Y, and Z is greater than the set angular velocity threshold, it can be detected that the posture change of the electronic device reaches the preset condition. The angular velocity threshold can be set according to actual conditions, for example, the angular velocity threshold is 10rad / s. The compass, MEMS accelerometer, and MEMS gyroscope in the orientation sensor can all detect the posture change of the electronic device in the above manner, which will not be repeated here.
[0124] In another possible implementation, the first input includes a first operation acting on a first button or a screen, and the first operation is used to switch the screen from an off state to a bright state. The user operates the electronic device so that the electronic device lights up the screen. When the electronic device is a smart watch, the first input includes a first operation acting on a first button or a screen, and the first operation is used to switch the screen from an off state to a bright state. For example, the method of lighting the screen may include: raising the wrist to light up the screen, clicking on the screen of the smart watch to light up the screen, or pressing the crown to light up the screen. Among them, the method of lighting the screen by raising the wrist of a smart watch usually detects the flip angle of the smart watch to determine whether the user has raised his wrist to light up the screen.
[0125] In another possible implementation, the first input includes a second operation acting on a second button or a screen, and the second operation is used to cause the screen to display the first image. The user operates the electronic device so that the screen of the electronic device displays the first image. When the electronic device is a smart watch, the first input includes a second operation acting on a second button or a screen, and the second operation is used to cause the screen to display the first image. For example, the user clicks on the screen of the smart watch to display the first image or presses the crown to display the first image. The electronic device includes a first button, a second button, and a screen, and the first button and the second button are the same or different buttons.
[0126] The electronic device obtains the first angle information through the first communication connection. The first angle information includes solar declination, geographic latitude and local time information. Specifically, the electronic device determines the solar altitude angle information based on the solar declination, geographic latitude and local time information. The solar declination may also be referred to as the solar declination angle, the geographic latitude may also be referred to as the geographic latitude angle, and the local time may also be referred to as the local time angle. In one possible implementation, the electronic device obtains the first angle information at a set time interval, and the electronic device can set the set time interval according to actual conditions, for example, the set time interval is 5 minutes.
[0127] In a possible implementation, the first communication connection is a global positioning system (Global Positioning System, referred to as GPS) or a BeiDou Navigation Satellite System (BeiDou Navigation Satellite System, referred to as BDS). If a GPS or BDS is installed in the electronic device, the electronic device can obtain the solar declination, geographic latitude and local time information of the electronic device through the GPS or BDS. The electronic device can also obtain the solar declination, geographic latitude and local time information of the electronic device from the first device. As an optional solution, when the first device is a terminal device, a GPS or BDS is installed in the terminal device, and the terminal device can obtain the solar declination, geographic latitude and local time information of the terminal device through the GPS or BDS. The terminal device sends the solar declination, geographic latitude and local time information to the electronic device. Since the connection method between the terminal device and the electronic device is a short-range communication connection, the solar declination, geographic latitude and local time information of the terminal device can also be used as the solar declination, geographic latitude and local time information of the electronic device. As another optional solution, when the first device is a server, the electronic device sends an acquisition request to the server based on the location of the electronic device, and the server obtains the solar declination, geographic latitude and local time information of the electronic device based on the location of the electronic device in response to the acquisition request, and the server sends the solar declination, geographic latitude and local time information of the electronic device to the electronic device.
[0128] In one embodiment of the present invention, the first angle information includes solar altitude angle information. The electronic device determines the solar altitude angle information according to solar declination, geographic latitude and local time information. Figure 3 Schematic diagram of the solar altitude angle provided according to an embodiment of the present application, such as Figure 3 As shown in FIG. 1 , the solar altitude angle is the angle between the incident direction of sunlight at point A on the earth and the horizon. The solar altitude angle changes with the solar declination, geographic latitude and local time. For example, when the electronic device is located in the northern hemisphere of the earth, the solar altitude angle gradually increases from morning to noon, and gradually decreases from noon to evening.
[0129] The electronic device determines second angle information of the electronic device. The second angle information includes the device angle between the plane where the electronic device is located and the preset direction. In a possible implementation, the second angle information is the device angle between the plane where the electronic device is located and the horizontal direction.
[0130] The electronic device determines the brightness information of one or more pixels according to the attribute information, first angle information and second angle information of one or more pixels of the first image. Specifically, the electronic device generates the light source position according to the solar altitude angle and the device angle; the electronic device generates the light intensity information of one or more pixels according to the light source position and the distance between the light source position and the pixel position; the electronic device generates the image light information according to the light source position and the height information of one or more pixels; the electronic device generates the light standard information according to the image light information; the electronic device generates the light source information according to the light standard information and the light intensity information of one or more pixels; the electronic device generates the adjustment information according to the coordinate difference of adjacent pixels in the first image and the normal information of one or more pixels; the electronic device generates the bright and dark point information according to the light source information and the adjustment information; the electronic device generates the brightness information of one or more pixels according to the bright and dark point information and the color information of the first image.
[0131] The electronic device displays a first user interface based on brightness information of one or more pixels.
[0132] An embodiment of the present application provides a display method. Figure 4 is a flow chart of a display method provided according to an embodiment of the present application, such as Figure 4 As shown, the method includes:
[0133] Step 12: When the electronic device detects that the posture change of the electronic device reaches a preset condition, the electronic device obtains first angle information through the first communication connection.
[0134] In one embodiment of the present application, when the electronic device is in a screen-on state and the current user interface (User Interface, UI for short) of the electronic device is the desktop, step 12 is executed.
[0135] Step 14: The electronic device determines second angle information of the electronic device.
[0136] Step 16: The electronic device determines brightness information of one or more pixels of the first image based on the attribute information of the one or more pixels, the first angle information, and the second angle information.
[0137] Step 18: The electronic device displays a first user interface based on brightness information of one or more pixels.
[0138] The following example uses a user rotating his wrist to move an electronic device. Figure 2b and 2c , describing the first user interface before and after the posture change of the electronic device.
[0139] Figure 2b is a schematic diagram of a user interface provided according to an embodiment of the present application, Figure 2c FIG. 1 is a schematic diagram of another user interface provided according to an embodiment of the present application. In actual applications, the user's habit of checking the time is usually to lift up the smart watch and then twist the wrist to see the screen of the smart watch clearly. When the user wears the smart watch on the wrist, Figure 2b As shown, when the user raises his wrist, the right side of the user interface on the dial of the smart watch is darker and the left side is brighter. At this time, the user rotates his wrist toward the inside of the user's body. Figure 2b The arrow in indicates that the user rotates the wrist toward the inside of the user's body, such as Figure 2c As shown in FIG. 1 , when the user rotates his wrist toward the inside of the user's body, the user interface on the dial of the smart watch changes due to the change in the posture of the smart watch. The user interface on the dial of the smart watch changes from Figure 2b The image with darker right side and brighter left side changes as follows Figure 2c In the image, which is brighter on the right and darker on the left, the smartwatch can interact with the user in real time, dynamically changing the brightness of pixels in the user interface.
[0140] An embodiment of the present application provides another display method. Figure 5 is a flow chart of another display method provided according to an embodiment of the present application, such as Figure 5 As shown, the method includes:
[0141] Step 22: The electronic device performs a first operation on a first button or screen, where the first operation is used to switch the screen from an off state to a bright state, displaying the desktop of the electronic device.
[0142] In one embodiment of the present application, when the electronic device is in a screen-off state, step B1 is executed.
[0143] In one embodiment of the present application, the electronic device is used to display a user interface (UI), which can be used to display a desktop or an application interface.
[0144] In a possible implementation, a second operation is performed on a second button or a screen, and the second operation is used to cause the screen to display a first image; wherein the electronic device includes a first button, a second button, and a screen, and the first button and the second button are the same or different buttons.
[0145] In one embodiment of the present application, when the electronic device is in a screen-off state, the electronic device displays the desktop of the electronic device in response to a first operation input by a user.
[0146] As another optional solution, when the electronic device is in the screen-off state, the electronic device displays an application interface of the electronic device in response to a first operation input by the user; and the electronic device switches the application interface to the desktop of the electronic device in response to a second operation input by the user.
[0147] As another optional solution, when the electronic device is in the screen-on state, the electronic device switches the displayed application interface to the desktop of the electronic device in response to a second operation input by the user.
[0148] Step 24: The electronic device obtains first angle information through the first communication connection.
[0149] Step 26: The electronic device determines second angle information of the electronic device.
[0150] Step 28: The electronic device determines brightness information of one or more pixels of the first image based on the attribute information of the one or more pixels, the first angle information, and the second angle information.
[0151] Step 30: The electronic device displays a first user interface based on brightness information of one or more pixels.
[0152] An embodiment of the present application provides another display method. Figure 6 is a flow chart of another display method provided according to an embodiment of the present application, such as Figure 6 As shown, the method includes:
[0153] Step 32: The electronic device determines a first image.
[0154] Step 34: The electronic device detects a first input at a first moment, and the first input is used to switch the electronic device from a screen-off state to a screen-on state.
[0155] In one embodiment of the present application, the first input includes a first operation acting on a first button or a screen, and the first operation is used to switch the screen from an off state to a bright state. The user operates the electronic device so that the electronic device lights up the screen. When the electronic device is a smart watch, the first input includes a first operation acting on a first button or a screen, and the first operation is used to switch the screen from an off state to a bright state. For example, the method of lighting the screen may include: raising the wrist to light up the screen, clicking the screen of the smart watch to light up the screen, or pressing the crown to light up the screen. Among them, the method of raising the wrist to light up the screen of the smart watch usually detects the flip angle of the smart watch to determine whether the user has raised his wrist to light up the screen.
[0156] Step 36: The electronic device displays a first user interface in response to the first input, where the first user interface includes image data generated after the first image is processed by the first process.
[0157] In one embodiment of the present invention, the first processing includes: determining first brightness information of one or more pixels based on attribute information, first angle information and second angle information of one or more pixels of the acquired first image, and the image data includes the first brightness information, so that the electronic device can display a first user interface based on the first brightness information of one or more pixels.
[0158] Step 38: The electronic device detects a second input at a second moment, and the second input is used to switch the electronic device from a screen-off state to a screen-on state.
[0159] In one embodiment of the present application, the second input includes a first operation acting on a first button or a screen, and the first operation is used to switch the screen from an off state to a bright state. The user operates the electronic device so that the electronic device lights up the screen. When the electronic device is a smart watch, the second input includes a first operation acting on a first button or a screen, and the first operation is used to switch the screen from an off state to a bright state. For example, the method of lighting the screen may include: raising the wrist to light up the screen, clicking on the screen of the smart watch to light up the screen, or pressing the crown to light up the screen. Among them, the method of raising the wrist to light up the screen of a smart watch usually detects the flip angle of the smart watch to determine whether the user has raised his wrist to light up the screen.
[0160] Step 40: The electronic device displays a second user interface in response to a second input, where the second user interface includes image data generated after the first image is subjected to a second processing; wherein the brightness of at least some pixels in the first user interface is different from the brightness of at least some pixels in the second user interface.
[0161] In one embodiment of the present invention, the second processing includes: determining the second brightness information of one or more pixels based on the acquired attribute information, third angle information and fourth angle information of one or more pixels of the first image, and the image data includes the second brightness information, so that the electronic device can display the second user interface based on the second brightness information of one or more pixels.
[0162] Figure 2d is a schematic diagram of another user interface provided according to an embodiment of the present application. Figure 2e A schematic diagram of another user interface provided according to an embodiment of the present application is shown in FIG. Figure 2d and Figure 2e As shown, in one embodiment of the present application, if the user wears the smart watch and is located in the northern hemisphere of the earth, Figure 2d The corresponding time of can be 8 o'clock in the morning, then the first moment is 8 o'clock in the morning, Figure 2e The corresponding time may be 12 noon, and the second time is 12 noon. When the user switches the smart watch from the off screen state to the on screen state at the first time (8 am), the first user interface is displayed. The first user interface may be as follows: Figure 2d When the user switches the smartwatch from the off-screen state to the on-screen state at the second time (12 noon), the second user interface is displayed. The second user interface can be as shown in FIG. Figure 2e The brightness of at least some pixels in the first user interface is different from the brightness of at least some pixels in the second user interface.
[0163] In one embodiment of the present application, the posture of the smart watch does not change, the screen is always on, and when the current user interface is the desktop, the user can see that the smart watch adjusts the brightness of the pixels in the dial in real time over time. Figure 2f This is a schematic diagram of another user interface provided according to an embodiment of the present application. If a user wears the smart watch and is located in the northern hemisphere of the earth, Figure 2d The corresponding time can be 8 o'clock in the morning, Figure 2e The corresponding time can be 12 noon, Figure 2f The corresponding time can be 18:00 in the evening, such as Figure 2d , Figure 2e and Figure 2f As shown, Figure 2d The right side of the middle user interface is darker and the left side is lighter; Figure 2e The upper side of the middle user interface is lighter and the lower side is darker; Figure 2f The left side of the user interface is darker and the right side is brighter, so that the display effect of the sun rising from the east and setting in the west can be achieved, that is, the movement of the sun from morning to noon, and from noon to evening.
[0164] For example, when the electronic device is located in the northern hemisphere of the earth, the solar altitude angle gradually increases from morning to noon, and the light source displayed in the user interface moves from the left half of the user interface to the middle part; from noon to evening, the solar altitude angle gradually decreases, and the light source displayed in the user interface moves from the middle part to the right half of the user interface.
[0165] In the technical solution provided in one embodiment of the present application, Figure 2b , Figure 2c , Figure 2d , Figure 2e as well as Figure 2f The shape of the light source shown in the schematic diagram of the user interface can be any shape. For example, the shape of the light source can be a point light source, a linear light source, a strip light source, or the like.
[0166] In the technical solution provided in one embodiment of the present application, Figure 2b , Figure 2c , Figure 2d , Figure 2e as well as Figure 2f The schematic diagram of the user interface shown may also display shadows caused by the objects in the image being illuminated by the light source, so that the rendered first image has a three-dimensional visual effect.
[0167] In the technical solution provided in one embodiment of the present application, the color and content in the first image are not changed, and only the brightness of one or more pixels in the first image is changed, so that the rendered first image has a three-dimensional visual effect.
[0168] The user interface provided in one embodiment of the present application can realize light and shadow effects at different locations and times according to the solar declination, geographic latitude and local time. For example, it can realize that the light and shadow effects generated by a user wearing a smart watch in Australia and in China at the same time are different.
[0169] Figure 2b , Figure 2c , Figure 2d , Figure 2e as well as Figure 2f The schematic diagram of the user interface shown is an exemplary display of an embodiment of the present application. The schematic diagram of the user interface of the smart watch can also be in other styles, and the embodiment of the present application is not limited to this.
[0170] In addition, when the electronic device is an electronic device with a rectangular screen such as a mobile phone or a tablet computer, the display method is the same as the above technical solution, and only the screen shape is changed. When the electronic device is an electronic device with a rectangular screen such as a mobile phone or a tablet computer, the user interface of the electronic device can display a rectangular desktop, and the rectangular desktop can also realize the combination of visual enhancement and user interaction, and render the first image into an image with a three-dimensional effect, thereby enhancing the expressiveness of the desktop of the electronic device.
[0171] To implement the above technical solution, the following is a specific embodiment to illustrate the workflow of the display method. An embodiment of the present application provides another display method, Figure 7 is a flow chart of another display method provided according to an embodiment of the present application, such as Figure 7 As shown, the method includes:
[0172] Step 102: The electronic device determines a first image.
[0173] In one embodiment of the present application, the electronic device obtains a second image from the first device, the second image is a two-dimensional image, and the electronic device crops the second image according to the screen specifications of the electronic device to generate the first image. For example, when the electronic device is a smart watch, the screen specifications of the smart watch are 1.4-inch circles, and the electronic device crops the second image according to the 1.4-inch circle to generate the first image.
[0174] In one embodiment of the present application, the first image includes a plurality of pixels.
[0175] Step 104: The electronic device generates height information of one or more pixels in the first image according to the color information of the first image.
[0176] In one embodiment of the present application, the color information is RGB information, wherein the RGB information includes red (red, referred to as r), green (green, referred to as g) and blue (blue, referred to as b). Then step 104 may specifically include: the electronic device uses the formula height i,j =c1*r+c2*g+c3*b calculates the color information and generates the height information of one or more pixels, where r is the red information, g is the green information, b is the blue information, c1 is the weight coefficient of the red information, c2 is the weight coefficient of the green information, c3 is the weight coefficient of the blue information, height i,j is the height information of one or more pixels, i is the row label of the pixel in the first image, and j is the column label of the pixel in the first image.
[0177] Step 106: The electronic device generates normal information of one or more pixels according to height information of the one or more pixels and height information of adjacent pixels.
[0178] Specifically, the electronic device is calculated by the formula:
[0179] norm i,j =1 / sqrt(dx i,j 2 +dy i,j 2 +1)
[0180] dx i,j =height i,j -height i,j-1
[0181] dy i,j =height i,j -height i-1,j
[0182] Calculate the height information of one or more pixels and the height information of adjacent pixels to generate normal information of one or more pixels. The height information of adjacent pixels includes the horizontal height information height i,j-1 And the vertical height information height i-1,j , height i,j is the height information of one or more pixels, norm i,j Normal information for one or more pixels.
[0183] In the embodiment of the present application, as another optional solution, the first device may also calculate the normal information of one or more pixels in the first image according to the calculation method in steps 104 to 106, which will not be repeated here.
[0184] Step 112: The electronic device obtains the solar declination, geographic latitude and local time through the first communication connection.
[0185] Step 114: The electronic device generates a solar altitude angle according to the solar declination, the geographic latitude and the local time.
[0186] Specifically, the electronic device is The solar declination, geographic latitude and local time are calculated to generate the solar altitude angle, where φ is the geographic latitude, δ is the solar declination, t is the local time, and h is the solar altitude angle.
[0187] Step 122: When the electronic device detects that the posture change of the electronic device reaches a preset condition, the electronic device determines the device angle of the electronic device.
[0188] As an optional solution, the electronic device detects the angle between the plane where the electronic device is located and the device in the horizontal direction through an orientation sensor.
[0189] Step 132: The electronic device determines brightness information of one or more pixels based on normal information of the one or more pixels, the sun altitude angle, and the device angle.
[0190] Figure 8 A flowchart of determining brightness information according to an embodiment of the present application is provided. Figure 8 As shown, step 132 specifically includes:
[0191] Step 1322: The electronic device generates a light source position according to the sun altitude angle and the device angle.
[0192] In one embodiment of the present application, the solar altitude angle h may be taken as the angle wh between the line connecting the light source position and the image center and the image plane, that is, h and wh are equal.
[0193] Specifically, the electronic device is calculated by the formula:
[0194] X=R*cos(h)*cos(wh+dw)
[0195] Y=R*cos(h)*sin(wh+dw)
[0196] Z=R*sin(h)
[0197] The solar altitude angle, light source distance and device angle are calculated to generate the light source position. Among them, h is the solar altitude angle, wh is the angle between the line connecting the light source position and the image center and the image plane, R is the light source distance, as an optional solution, the light source distance R is the radius of the earth, dw is the device angle, X is the horizontal coordinate of the light source position, Y is the vertical coordinate of the light source position and Z is the vertical coordinate of the light source position, and the origin corresponding to the coordinates of X, Y and Z is the image center of the first image.
[0198] In one embodiment of the present application, the orientation sensor is an IMU as an example. Figure 1As shown, the acceleration sensor 180E of the IMU can detect the acceleration values along the three rectangular coordinate axes of X, Y, and Z. When any one of the acceleration values along the three rectangular coordinate axes of X, Y, and Z is greater than the set acceleration threshold, the device angle between the plane where the electronic device is located and the horizontal direction changes, so that the light source position generated in step 1322 changes. The gyroscope sensor 180B of the IMU can detect the angular velocity values along the three rectangular coordinate axes of X, Y, and Z. When any one of the angular velocity values along the three rectangular coordinate axes of X, Y, and Z is greater than the set angular velocity threshold, the device angle between the plane where the electronic device is located and the horizontal direction changes, so that the light source position generated in step 1322 changes. At this time, the angle of the light source position relative to the center of the dial changes, but the distance of the light source position relative to the center of the dial remains unchanged. The acceleration sensor 180E of the IMU detects that any one of the acceleration values along the three rectangular coordinate axes of X, Y, and Z is greater than the set acceleration threshold, and the gyroscope sensor 180B detects that any one of the angular velocity values along the three rectangular coordinate axes of X, Y, and Z is greater than the set angular velocity threshold, and the angle between the plane where the electronic device is located and the device in the horizontal direction changes, causing the position of the light source generated in step 1322 to change.
[0199] When an electronic device detects changes in the posture of the electronic device through an IMU, the technical solution provided in this application can change the rendered visual effect based on changes in the device angle obtained by the IMU.
[0200] Step 1324: The electronic device generates light intensity information of one or more pixels according to the position of the light source and the distance between the position of the light source and the position of the pixel.
[0201] Specifically, the electronic device generates the distance between the light source position and the pixel position according to the light source position and the pixel position, and calculates the light source position and the distance between the light source position and the pixel position by the formula LightCij=500 / d^2 to generate the light intensity information of one or more pixels. Wherein, LightCij is the light intensity information of one or more pixels, and d is the distance between the light source position and the pixel position.
[0202] Step 1326: The electronic device generates image light information according to the light source position and height information of one or more pixels.
[0203] Specifically, the electronic device is calculated by the formula:
[0204] lightx0=Xi
[0205] lighty0=Yj
[0206] lightz0=Z-heightij
[0207] Calculate the light source position and the height information of one or more pixels to generate image light information. Among them, lightx0, lighty0 and lightz0 are image light information, lightx0 is the image light information of the horizontal axis, lighty0 is the image light information of the vertical axis, lightz0 is the image light information of the vertical axis, X is the horizontal coordinate of the light source position, Y is the vertical coordinate of the light source position, Z is the vertical coordinate of the light source position, height i,j is the height information of one or more pixels, i is the row label of the pixel in the first image, and j is the column label of the pixel in the first image.
[0208] Step 1328: The electronic device generates light standard information according to the image light information.
[0209] Specifically, the electronic device calculates the image light information through the formula lightNorm=sqrt(lightx0*lightx0+lighty0*lighty0+lightz0*lightz0) to generate light standard information, wherein lightx0, lighty0 and lightz0 are image light information, and lightNorm is light standard information.
[0210] Step 1330: The electronic device generates light source information according to the light standard information and light intensity information of one or more pixels.
[0211] Specifically, the electronic device is calculated by the formula:
[0212] lightx=lightx / lightNorm*LightCi
[0213] lighty=lighty / lightNorm*LightCij
[0214] lightz=lightz / lightNorm*LightCij
[0215] The light standard information and the light intensity information of one or more pixels are calculated to generate the light source information, where LightCij is the light intensity information of one or more pixels, lightNorm is the light standard information, lightx, lighty and lightz are the light source information, lightx is the light source information on the horizontal axis, lighty is the light source information on the vertical axis, and lightz is the light source information on the vertical axis.
[0216] Step 1332: The electronic device generates adjustment information according to the coordinate difference between adjacent pixels in the first image and normal information of one or more pixels.
[0217] Specifically, the electronic device is calculated by the formula:
[0218] rx=-dx / norm i,j
[0219] gy=-dy / norm i,j
[0220] bz=1
[0221] The coordinate difference of adjacent pixels in the first image and the normal information of one or more pixels are calculated to generate adjustment information. Wherein, dx is the horizontal coordinate difference of adjacent pixels in the first image, dy is the vertical coordinate difference of adjacent pixels in the first image, norm i,j is the normal information of one or more pixels, rx, gy and bz are adjustment information, rx is the adjustment information of red information, gy is the adjustment information of green information, and bz is the adjustment information of blue information.
[0222] Step 1334: The electronic device generates bright and dark spot information according to the light source information and the adjustment information.
[0223] Specifically, the electronic device calculates the light source information and the adjustment information to generate the bright and dark spot information by the formula dot=rx*lightx+gy*lighty+bz*lightz, wherein rx, gy and bz are the adjustment information, lightx, lighty and lightz are the light source information, and dot is the bright and dark spot information.
[0224] Step 1336: The electronic device generates brightness information of one or more pixels according to the bright and dark point information and the color information of the first image.
[0225] Specifically, the electronic device is calculated by the formula:
[0226] r_new=dot*r
[0227] g_new=dot*g
[0228] b_new=dot*b
[0229] The bright and dark dot information and the color information of the first image are calculated to generate new color information, where dot is the bright and dark dot information, r, g and b are the color information of the first image, r is the red information, g is the green information, b is the blue information, and r_new, g_new and b_new are the brightness information of one or more pixels.
[0230] Step 134: The electronic device displays a first user interface based on brightness information of one or more pixels.
[0231] Specifically, the electronic device updates color information of one or more pixels in the first image according to brightness information of the one or more pixels to display the first user interface.
[0232] In one embodiment of the present application, the electronic device updates the color information r, g and b in the first image according to the brightness information r_new, g_new and b_new of one or more pixels to display the first user interface. At this time, the color information of the first image in the user interface is r_new, g_new and b_new.
[0233] In the technical solution provided by an embodiment of the present application, a first image is determined; first angle information is obtained through a first communication connection; second angle information of the electronic device is determined; brightness information of one or more pixels is determined based on attribute information, first angle information, and second angle information of one or more pixels of the first image; and a first user interface is displayed based on the brightness information of one or more pixels. In the technical solution provided by an embodiment of the present application, visual enhancement can be combined with user interaction, and brightness information of one or more pixels in the first image can be determined based on attribute information, first angle information, and second angle information of one or more pixels, so that the two-dimensional first image can be rendered into an image with a three-dimensional effect based on the brightness information of one or more pixels, thereby enhancing the image expression capability of the electronic device.
[0234] An embodiment of the present application provides a display device, Fig. 9 Schematic diagram of a display device according to an embodiment of the present application. Fig. 9 As shown, the device includes: a first determination module 11, a first acquisition module 12, a second determination module 13, a third determination module 14 and a display module 15.
[0235] The first determining module 11 is used to determine a first image.
[0236] The first acquisition module 12 is used to acquire first angle information through a first communication connection.
[0237] The second determining module 13 is used to determine second angle information of the electronic device.
[0238] The third determination module 14 is used to determine brightness information of one or more pixels of the first image according to the attribute information of the one or more pixels, the first angle information and the second angle information.
[0239] The display module 15 is used to display a first user interface according to brightness information of one or more pixels.
[0240] In one embodiment of the present application, the device further includes: a detection module 16.
[0241] The detection module 16 is used to detect the first input.
[0242] The first acquisition module 12 is specifically configured to acquire first angle information through a first communication connection in response to a first input detected by the detection module 16 , and trigger the second determination module 13 to determine second angle information of the electronic device.
[0243] In one embodiment of the present application, the first input includes: the posture change of the electronic device reaches a preset condition; or a first operation acting on a first button or screen, the first operation is used to switch the screen from an off state to a bright state; or a second operation acting on a second button or screen, the second operation is used to make the screen display a first image; wherein the electronic device includes a first button, a second button and a screen, and the first button and the second button are the same or different buttons.
[0244] In one embodiment of the present application, the first determination module 11 is specifically used to set the first image as the dial background.
[0245] In one embodiment of the present application, the device further includes: a receiving module 17 .
[0246] The receiving module 17 is used to receive a first image and a first instruction from a first device through a second communication connection, wherein the first instruction instructs to set the first image as a dial background.
[0247] In one embodiment of the present application, the second communication connection is a Bluetooth connection.
[0248] In one embodiment of the present application, the first communication connection is a global positioning system or a Beidou satellite navigation system.
[0249] The first angle information includes solar declination, geographic latitude and local time information.
[0250] In one embodiment of the present application, the third determination module 14 is specifically used to determine the solar altitude information based on the solar declination, geographic latitude and local time information; and determine the brightness information of one or more pixels based on the attribute information of one or more pixels of the first image, the solar altitude information and the second angle information.
[0251] In one embodiment of the present application, the second angle information includes the device angle between the plane where the electronic device is located and the preset direction.
[0252] In one embodiment of the present application, Fig.10 is a schematic diagram of the structure of a third determination module provided according to an embodiment of the present application, such as Fig.10 As shown, the third determination module 14 specifically includes: a first generation submodule 141, a second generation submodule 142, a third generation submodule 143, a fourth generation submodule 144, a fifth generation submodule 145, a sixth generation submodule 146, a seventh generation submodule 147 and an eighth generation submodule 148.
[0253] The first generating submodule 141 is used to generate the light source position according to the sun altitude angle and the device angle.
[0254] The second generating submodule 142 is used to generate light intensity information of one or more pixels according to the position of the light source and the distance between the position of the light source and the position of the pixel.
[0255] The third generating submodule 143 is used to generate image light information according to the light source position and height information of one or more pixels.
[0256] The fourth generating submodule 144 is used to generate light standard information according to the image light information.
[0257] The fifth generating submodule 145 is used to generate light source information according to the light standard information and light intensity information of one or more pixels.
[0258] The sixth generation submodule 146 is used to generate adjustment information according to normal information of one or more pixels and coordinate differences of adjacent pixels in the acquired first image.
[0259] The seventh generating submodule 147 is used to generate bright and dark spot information according to the light source information and the adjustment information.
[0260] The eighth generating submodule 148 is used to generate brightness information of one or more pixels according to the bright and dark point information and the color information of the first image.
[0261] In one embodiment of the present application, the attribute information includes normal information, and the device further includes: a first generating module 18 and a second generating module 19.
[0262] The first generating module 18 is used to generate height information of one or more pixels of the first image according to the color information of the first image.
[0263] The second generating module 19 is used to generate normal information of one or more pixels of the first image according to the height information of one or more pixels and the height information of adjacent pixels; or,
[0264] The receiving module 17 is configured to receive normal information of one or more pixels of the first image from the first device via the second communication connection.
[0265] An embodiment of the present application provides another display device, Fig.11 FIG. 1 is a schematic diagram of the structure of another display device provided according to an embodiment of the present application. Fig.11 As shown, the device includes: an image determination module 21, a first detection module 22, a first display module 23, a second detection module 24 and a second display module 25.
[0266] The image determination module 21 is used to determine a first image.
[0267] The first detection module 22 is used to detect a first input at a first moment, and the first input is used to switch the electronic device from a screen-off state to a screen-on state.
[0268] The first display module 23 is used to display a first user interface in response to the first input, where the first user interface includes image data generated after the first image is processed by the first process.
[0269] The second detection module 24 is used to detect a second input at a second moment, and the second input is used to switch the electronic device from a screen-off state to a screen-on state.
[0270] The second display module 25 is used to display a second user interface in response to a second input, wherein the second user interface includes image data generated after the first image is processed by the second processing; wherein the brightness of at least some pixels in the first user interface is different from the brightness of at least some pixels in the second user interface.
[0271] In one embodiment of the present application, the first processing includes: determining first brightness information of one or more pixels based on attribute information, first angle information and second angle information of one or more pixels of the acquired first image, and the image data includes the first brightness information.
[0272] In one embodiment of the present application, the second processing includes: determining second brightness information of one or more pixels based on the acquired attribute information, third angle information and fourth angle information of one or more pixels of the first image, and the image data includes the second brightness information.
[0273] In the technical solution provided by an embodiment of the present application, a first image is determined; first angle information is obtained through a first communication connection; second angle information of the electronic device is determined; brightness information of one or more pixels is determined based on attribute information, first angle information, and second angle information of one or more pixels of the first image; and a first user interface is displayed based on the brightness information of one or more pixels. In the technical solution provided by an embodiment of the present application, visual enhancement can be combined with user interaction, and brightness information of one or more pixels in the first image can be determined based on attribute information, first angle information, and second angle information of one or more pixels, so that the two-dimensional first image can be rendered into an image with a three-dimensional effect based on the brightness information of one or more pixels, thereby enhancing the image expression capability of the electronic device.
[0274] The embodiment of the present application provides an electronic device, which can be a terminal device or a circuit device built into the terminal device. The electronic device includes: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the device, the device can be used to perform each step in the above display method embodiment.
[0275] An embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the various steps in the above-mentioned display method embodiment.
[0276] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer or any at least one processor, the computer is enabled to execute each step in the above-mentioned display method embodiment.
[0277] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0278] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0279] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0280] In several embodiments provided in the present application, any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0281] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A display method, characterized in that: The method is applied to an electronic device, comprising: determining a first image; Acquiring first angle information through a first communication connection; Determining second angle information of the electronic device; determining brightness information of the one or more pixels according to the attribute information of the one or more pixels of the first image, the first angle information, and the second angle information; A first user interface is displayed according to the brightness information of the one or more pixels.
2. The display method according to claim 1, characterized in that: Before acquiring the first angle information through the first communication connection and determining the second angle information of the electronic device, the method further includes: detecting a first input; The acquiring the first angle information and determining the second angle information of the electronic device through the first communication connection includes: In response to the first input, first angle information is acquired through the first communication connection to determine second angle information of the electronic device.
3. The display method according to claim 2, characterized in that: The first input includes: The posture change of the electronic device reaches a preset condition; or A first operation on a first button or screen, the first operation being used to switch the screen from an off state to a bright state; or a second operation acting on a second button or the screen, the second operation being used to make the screen display the first image; The electronic device includes the first button, the second button and the screen, and the first button and the second button are the same or different buttons.
4. The display method according to any one of claims 1 to 3, characterized in that: Determining the first image includes: The first image is set as the dial background.
5. The display method according to claim 4, characterized in that: Before setting the first image as the dial background, the method further includes: The first image and a first instruction are received from a first device through a second communication connection, wherein the first instruction instructs to set the first image as a dial background.
6. The method according to claim 5, characterized in that The second communication connection is a Bluetooth connection.
7. The method according to any one of claims 1 to 6, characterized in that: The first communication connection is a global positioning system or a Beidou satellite navigation system.
8. The method according to any one of claims 1 to 7, characterized in that: The first angle information includes solar declination, geographic latitude and local time information.
9. The method according to claim 8, characterized in that The determining, according to the attribute information of the one or more pixels of the first image, the first angle information, and the second angle information, the brightness information of the one or more pixels comprises: Determine the solar altitude angle information according to the solar declination, geographic latitude and local time information; The brightness information of the one or more pixels of the first image is determined according to the attribute information of the one or more pixels, the solar altitude angle information and the second angle information.
10. The method according to any one of claims 1 to 9, characterized in that: The second angle information includes an angle between a plane where the electronic device is located and a preset direction.
11. The method according to claim 10, characterized in that The step of determining brightness information of the one or more pixels according to the attribute information of the one or more pixels of the first image, the solar altitude angle information, and the second angle information includes: Generate a light source position according to the solar altitude angle information and the device angle; Generate light intensity information of one or more pixels according to the light source position and the distance between the light source position and the pixel position; generating image light information according to the light source position and the height information of the one or more pixels; The electronic device generates light standard information according to the image light information; The electronic device generates light source information according to the light standard information and light intensity information of one or more pixels; Generate adjustment information according to the normal information of the one or more pixels and the coordinate difference of adjacent pixels in the acquired first image; Generate bright and dark point information according to the light source information and the adjustment information; Brightness information of one or more pixels is generated according to the bright and dark point information and the color information of the first image.
12. The method according to claim 1, characterized in that The attribute information includes normal information, and after determining the first image, before determining the brightness information of the one or more pixels according to the attribute information of the one or more pixels of the first image, the sun altitude information and the second angle information, the method includes: generating height information of one or more pixels of the first image according to the color information of the first image; Generate normal information of one or more pixels of the first image according to the height information of the one or more pixels and the height information of adjacent pixels; or, Normal information for one or more pixels of the first image is received from the first device via the second communication connection.
13. A display method, characterized in that: The method is applied to an electronic device, comprising: determining a first image; Detecting a first input at a first moment, the first input being used to switch the electronic device from a screen-off state to a screen-on state; In response to the first input, display a first user interface, wherein the first user interface includes image data generated after the first image is subjected to a first processing; Detecting a second input at a second moment, the second input being used to switch the electronic device from a screen-off state to a screen-on state; In response to the second input, a second user interface is displayed, wherein the second user interface includes image data generated after the first image is subjected to the second processing; wherein, The brightness of at least some pixels in the first user interface is different from the brightness of at least some pixels in the second user interface.
14. The method according to claim 13, characterized in that The first process comprises: First brightness information of one or more pixels is determined according to the acquired attribute information, first angle information, and second angle information of one or more pixels of the first image, and the image data includes the first brightness information.
15. The method according to claim 13, characterized in that The second process comprises: According to the acquired attribute information, third angle information and fourth angle information of one or more pixels of the first image, second brightness information of the one or more pixels is determined, and the image data includes the second brightness information.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the display method according to any one of claims 1 to 12; or, the display method according to any one of claims 13 to 15.
17. An electronic device, characterized in that: The electronic device comprises a memory for storing computer program instructions and a processor for executing computer program instructions, wherein, when the computer program instructions are executed by the processor, the electronic device is triggered to execute the steps of the display method as described in any one of claims 1-12; or, the steps of the display method as described in any one of claims 13-15.
