Brightness adjusting method and electronic equipment
By compensating for the brightness of the fingerprint spot when the screen brightness and the grayscale value of the background image exceed preset values, the problem of unlocking failure caused by insufficient fingerprint spot brightness is solved, thereby improving the fingerprint unlocking rate and the security of electronic devices.
Patent Information
- Application Number
- CN202410162688.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-02-02
AI Technical Summary
When the grayscale value of the background image is large and the screen brightness is high, the fingerprint spot brightness of the user unlocking the electronic device is insufficient, resulting in a probability of unlocking failure.
When the screen brightness and the grayscale value of the background image exceed preset values, the brightness of the fingerprint spot is compensated to make it brighter, thereby improving the fingerprint sensor's recognition rate of the user's fingerprint.
It improves the unlocking rate of fingerprint passwords, enhancing the security and unlocking success rate of electronic devices.
Smart Images

Figure CN119274215A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of electronic devices, and in particular to a brightness adjustment method and an electronic device. Background Art
[0002] At present, in order to improve the security of electronic devices, users can set an unlock password in the electronic device to protect the electronic device. In some implementations, the unlock password can be a fingerprint password. Take unlocking the electronic device by a fingerprint password as an example.
[0003] For example, taking the electronic device as a mobile phone, when the mobile phone is in an unlocked state, an interface 1 may be displayed on the display screen. A fingerprint spot is displayed in the interface 1. When the user wants to unlock the electronic device, the user may input operation A at the position displayed by the fingerprint spot. The operation A is a pressing operation of the user's finger on the screen.
[0004] In some embodiments, a background image is also displayed in the interface 1. When the grayscale value of the background image is large and the brightness of the screen is bright, it is not conducive to the user unlocking the electronic device, and there will be a problem of probabilistic unlocking failure. Summary of the invention
[0005] The embodiment of the present application provides a brightness adjustment method and an electronic device, which is used to enable the electronic device to compensate for the brightness of the fingerprint spot, making the brightness of the fingerprint spot brighter, thereby improving the recognition rate of the electronic device for the user's fingerprint, and further improving the unlocking rate of the fingerprint password.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, a brightness adjustment method is provided, the method being applied to an electronic device, the electronic device being provided with a display screen. A fingerprint password is preset in the electronic device. The method comprises: receiving a first operation. The first operation is used to instruct the electronic device to light up the display screen. In response to the first operation, a first interface is displayed. The first interface comprises a fingerprint spot. The grayscale value of the fingerprint spot is a first grayscale value. The first grayscale value is greater than a second grayscale value. The second grayscale value is a preset grayscale value of the fingerprint spot.
[0008] It is understandable that in the embodiment of the present application, the larger the grayscale value of the fingerprint spot, the brighter the brightness of the corresponding fingerprint spot. Therefore, based on the above scheme, the electronic device can display a brighter fingerprint spot on the display screen. This facilitates the subsequent electronic device to identify the user's fingerprint and improves the unlocking rate of the fingerprint password.
[0009] Optionally, the electronic device pre-stores the second grayscale value. Before displaying the first interface, the method further includes: obtaining the second grayscale value. The first operation may include any one of a lifting operation, clicking the screen, and pressing the power button. According to the second grayscale value, the first grayscale value is determined. Based on the above scheme, the electronic device can determine the compensated first grayscale value according to the preset second grayscale value when detecting the operation of lighting up the screen.
[0010] Optionally, before acquiring the second grayscale value, the method further includes: acquiring a first brightness value, the first brightness value being a brightness value of the display screen, and determining that the first brightness value is greater than a first preset brightness value.
[0011] It should be noted that in the embodiment of the present application, the greater the brightness value of the screen, the smaller the brightness of the corresponding fingerprint spot. Therefore, based on the above scheme, the electronic device can obtain the second grayscale value and compensate for the second grayscale value when the brightness value of the screen is greater than the first preset brightness value.
[0012] Optionally, after determining that the first brightness value is greater than the first preset brightness value, the method further includes: acquiring a third grayscale value. The third grayscale value is a grayscale value of a first background image. The first background image is used to be displayed in the first interface. Acquiring the second grayscale value includes: when determining that the third grayscale value is greater than the first preset grayscale value, acquiring the second grayscale value.
[0013] It should be noted that, in the embodiment of the present application, the larger the grayscale value of the first background image, the smaller the brightness of the corresponding fingerprint spot. Therefore, based on the above scheme, when the brightness value of the screen is greater than the first preset brightness value and the grayscale value of the first background image is greater than the first preset grayscale value, the electronic device can obtain the second grayscale value and compensate for the second grayscale value.
[0014] Optionally, the second grayscale value includes a first value, a second value, and a third value. The first value is a preset grayscale value of the first monochromatic light, the second value is a preset grayscale value of the second monochromatic light, and the third value is a preset grayscale value of the third monochromatic light. Determining the first grayscale value according to the second grayscale value includes: determining a fourth value according to the first value. The fourth value is the sum of the first value plus the first compensation value. Determining a fifth value according to the second value. The fifth value is the sum of the second value plus the first compensation value. Determining a sixth value according to the third value. The sixth value is the sum of the third value plus the first compensation value. The first grayscale value includes the fourth value, the fifth value, and the sixth value.
[0015] Optionally, the electronic device is configured with a first storage unit. The first storage unit includes a first subunit, a second subunit, and a third subunit. The electronic device pre-stores the second grayscale value, including the first subunit pre-stores the first value, the second subunit pre-stores the second value, and the third subunit pre-stores the third value. The acquisition of the second grayscale value includes: acquiring the first value from the first subunit. Acquiring the second value from the second subunit. Acquiring the third value from the third subunit. Thus, the electronic device can acquire the first value from the first subunit, the second value from the second subunit, and the third value from the third subunit. So as to facilitate the subsequent processing of the first value, the second value, and the third value by the electronic device.
[0016] Optionally, after determining the first grayscale value according to the second grayscale value, the method further includes: storing the first grayscale value in the first storage unit. The storing of the first grayscale value in the first storage unit includes: storing the fourth value in the first subunit. Storing the fifth value in the second subunit. Storing the sixth value in the third subunit. In this way, it is convenient for subsequent electronic devices to obtain the first grayscale value when the first grayscale value needs to be used.
[0017] Optionally, after storing the first grayscale value in the first storage unit, the method further includes: sending a first instruction. The first instruction is used to instruct the electronic device to display the fingerprint spot. After receiving the first instruction, the fourth value is obtained from the first subunit, the fifth value is obtained from the second subunit, and the sixth value is obtained from the third subunit. Thus, the electronic device can subsequently display the fingerprint spot according to the fourth value, the fifth value, and the sixth value.
[0018] Optionally, the electronic device is configured with a second storage unit and a third storage unit. The second storage unit is used to store the first brightness value. The third storage unit is used to store the third grayscale value. The obtaining of the first brightness value includes: obtaining the first brightness value from the second storage unit. The obtaining of the third grayscale value includes: obtaining the third grayscale value from the third storage unit.
[0019] In a second aspect, an electronic device includes: a memory, a display screen, and one or more processors. The memory, the display screen, and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes the brightness adjustment method provided in the first aspect and any possible design thereof.
[0020] In a third aspect, a chip system includes a processor and a communication interface. The processor is used to call and run a computer program stored in a storage medium to perform a brightness adjustment method provided in the first aspect and any possible design thereof.
[0021] In a fourth aspect, a computer-readable storage medium stores computer instructions, which, when executed by a processor, implement the brightness adjustment method provided in the first aspect and any possible design thereof.
[0022] In a fifth aspect, a computer program product comprises computer instructions, which, when executed by a processor, implement the brightness adjustment method provided in the first aspect and any possible design thereof.
[0023] In a sixth aspect, a computer system includes a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the brightness adjustment method provided in the first aspect and any possible design thereof. It can be understood that the technical solutions provided in the second to sixth aspects above can respectively correspond to the communication control methods provided in the aforementioned designs, and the beneficial effects that can be obtained are similar and will not be described in detail. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic diagram of an interface;
[0025] Figure 2 An equivalent circuit diagram of a pixel driving circuit in an electronic device;
[0026] Figure 3 A schematic diagram of current distribution in a screen of an electronic device;
[0027] Figure 4 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application;
[0028] Figure 5 A schematic diagram of another electronic device provided in an embodiment of the present application;
[0029] Figure 6 A schematic diagram of another electronic device provided in an embodiment of the present application;
[0030] Figure 7 A schematic diagram of the interaction between modules of a brightness adjustment method provided in an embodiment of the present application;
[0031] Figure 8 A schematic diagram of the module interaction flow of a brightness adjustment method provided in an embodiment of the present application;
[0032] Fig. 9 A schematic diagram of another electronic device provided in an embodiment of the present application;
[0033] Fig.10 A schematic diagram of the composition of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0035] In the following, the terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0036] Currently, in order to improve the security of electronic devices, users can protect the electronic devices by setting unlocking passwords in the electronic devices.
[0037] For example, the unlocking password may be a conventional password such as numbers or letters.
[0038] In some implementations, the unlocking password may be a fingerprint password. Take unlocking an electronic device by a fingerprint password as an example.
[0039] refer to Figure 1 , taking the electronic device as a mobile phone, and the mobile phone having fingerprint recognition capability as an example, when the mobile phone is in an unlocked state, an interface 101 can be displayed on the display screen. The interface 101 includes a preset area 102. A fingerprint spot is displayed in the preset area 102. In some implementations, when the user wants to unlock the mobile phone, the user can input an operation 103 in the preset area 102. Among them, the operation 103 can be a pressing operation of the user's finger on the screen.
[0040] In other embodiments of the present application, the interface 101 may also be referred to as a first interface.
[0041] It should be noted that in the embodiment of the present application, a fingerprint sensor is also configured in the mobile phone. The area where the fingerprint sensor collects the user's fingerprint corresponds to the position displayed by the fingerprint spot. This allows the user to input fingerprint information when pressing the screen with a finger.
[0042] In this embodiment, the fingerprint password unlocking of the mobile phone is realized based on light sensing unlocking. Light sensing unlocking means that when the user's finger presses the screen, the light emitted by the screen penetrates the mobile phone cover to illuminate the user's fingerprint, and the reflected or scattered light signal of the user's fingerprint penetrates the screen and is sent to the fingerprint sensor in the mobile phone. After receiving the light signal, the fingerprint sensor can perform fingerprint recognition based on the light signal and obtain the fingerprint information 1 corresponding to the user's fingerprint. The mobile phone can match the fingerprint information 1 with the pre-recorded fingerprint information 2 to complete the light sensing unlocking.
[0043] In some embodiments, fingerprint information 1 successfully matches pre-recorded fingerprint information 2. In this embodiment, the mobile phone can determine that the unlock screen is displayed as follows: Figure 1 Interface 104 is shown.
[0044] In addition, when the phone is unlocked based on light sensing, the brightness of the fingerprint spot needs to be close to the target brightness, so that the fingerprint sensor can recognize the user's fingerprint, thereby improving the unlocking rate of the phone unlocked by the fingerprint password.
[0045] It is understandable that in some implementations, the mobile phone also presets a background image 1. In this implementation, the background image 1 can be displayed in the interface 101. In this implementation, the brightness of the fingerprint spot is inversely proportional to the brightness value of the mobile phone screen and the grayscale value of the background image 1.
[0046] Specifically, the greater the brightness value of the screen and the grayscale value of the background image 1, the smaller the brightness of the fingerprint spot. Conversely, the smaller the brightness value of the screen and the grayscale value of the background image 1, the greater the brightness of the fingerprint spot.
[0047] The grayscale value ranges from 0 to 255. Generally, the smaller the grayscale value, the closer the color of the corresponding background image 1 is to black, and the smaller the brightness of the corresponding background image 1 is. Conversely, the larger the grayscale value, the closer the color of the corresponding background image 1 is to white, and the higher the brightness of the corresponding background image 1 is.
[0048] In some implementations, the brightness value of the mobile phone screen may be a display brightness value (DBV). The DBV may include 4096 levels (e.g., 0 to 4095 levels). Generally, when the grayscale value of the background image 1 is fixed, the larger the DBV, the brighter the screen brightness. Conversely, the smaller the DBV, the darker the screen brightness.
[0049] The reasons why the brightness value of the screen and the grayscale value of the background image 1 affect the brightness of the fingerprint spot are described below in conjunction with the accompanying drawings.
[0050] Exemplary, reference Figure 2 , Figure 2A pixel driving circuit of a mobile phone is shown, and the pixel driving circuit is used to adjust the screen brightness value and the grayscale value of the background image 1. The pixel driving circuit includes a first switch tube T1, a second switch tube T2, a third switch tube T3, a fourth switch tube T4, a fifth switch tube T5, a sixth switch tube T6, a seventh switch tube T7, a capacitor CS, a light-emitting device, a first power supply Vinit_1, a second power supply Vinit_2, a third power supply ELVDD, a fourth power supply ELVSS and a signal line Data. Among them, the third power supply ELVDD is a positive power supply, and the fourth power supply ELVSS is a negative power supply.
[0051] exist Figure 2 In the embodiment, the source of the first switch tube T1 is connected to the third power source ELVDD and to one end of the capacitor CS. The drain of the first switch tube T1 is connected to the drain of the second switch tube T2 and to the source of the third switch tube T3. The source of the second switch tube T2 is connected to the signal line Data. The signal line Data is used to input the data voltage and control the magnitude of the driving current entering the light-emitting device. The drain of the third switch tube T3 is connected to the source of the fourth switch tube T4 and to the drain of the seventh switch tube T7. The gate of the third switch tube T3 is connected to the other end of the capacitor CS, to the drain of the sixth switch tube T6, and to the source of the seventh switch tube T7. The drain of the fourth switch tube T4 is connected to the positive electrode of the light-emitting device and to the drain of the fifth switch tube T5. The source of the fifth switch tube T5 is connected to the second power source Vinit_2. The first power source Vinit_1 is connected to the source of the sixth switch tube T6, and the fourth power source ELVSS is connected to the negative electrode of the light-emitting device.
[0052] In such Figure 2 In the example, first, the sixth switch tube T6 is in the on state, which is used to reset the capacitor CS. Then, the second switch tube T2, the third switch tube T3 and the seventh switch tube T7 are in the on state, and the data voltage input by the signal line DATA enters the capacitor CS through the second switch tube T2, the third switch tube T3 and the seventh switch tube T7, and starts to charge the capacitor CS. At the same time, the fifth switch tube T5 is also in the on state, which is used to reset the light-emitting device. Then, the first switch tube T1 and the fourth switch tube T4 are in the on state, and the driving current provided by the third power supply ELVDD and the fourth power supply ELVSS enters the light-emitting device through the first switch tube T1, the third switch tube T3 and the fourth switch tube T4, driving the light-emitting device to emit light.
[0053] refer to Figure 3 , Figure 3 The current distribution in the mobile phone screen is shown. Figure 3 (a) is the current distribution on the fourth power supply ELVSS line. Figure 3(b) is the current distribution on the third power supply ELVDD line. Figure 3 In the example, the greater the brightness of the screen and the grayscale value of the background image 1, the greater the current on the fourth power ELVSS line and the third power ELVDD line. As a result, the impedance voltage division on the fourth power ELVSS line and the third power ELVDD line is higher, which in turn makes the voltage at the corresponding position of the fingerprint spot smaller, and the current at the corresponding position of the fingerprint spot smaller. At this time, the brightness of the fingerprint spot is also smaller.
[0054] Therefore, the higher the brightness value of the mobile phone screen and the grayscale value of the background image 1 in the display screen, the lower the brightness of the fingerprint spot. In some implementations, the brightness of the fingerprint spot is lower than the target brightness. As a result, when the user unlocks the mobile phone with the fingerprint password, the fingerprint sensor's recognition rate of the user's fingerprint decreases, resulting in a probabilistic unlocking failure.
[0055] To solve the above problems, the embodiments of the present application provide a brightness adjustment method and an electronic device. Based on the method, when the brightness value of the screen exceeds the preset brightness value and the grayscale value of the background image 1 preset in the electronic device exceeds the preset grayscale value, the electronic device can compensate the brightness of the fingerprint spot to make the brightness of the fingerprint spot brighter. This can improve the recognition rate of the fingerprint sensor for the user's fingerprint, thereby improving the unlocking rate of the fingerprint password.
[0056] In other embodiments of the present application, the preset brightness value may also be referred to as a first preset brightness value, the preset grayscale value may also be referred to as a first preset grayscale value, and the background image 1 may also be referred to as a first background image.
[0057] The technical solution provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0058] It should be noted that the solution provided in the embodiments of the present application can be applied to electronic devices.
[0059] The electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, etc. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.
[0060] It should be noted that, in the embodiments of the present application, the electronic device has fingerprint recognition capability.
[0061] As an implementation, the electronic device may have Figure 4 The structure of the electronic device 400 is shown.
[0062] like Figure 4 As shown, the electronic device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera module 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc. The sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, etc.
[0063] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 400. In other embodiments of the present application, the electronic device 400 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.
[0064] The processor 410 may include one or more processing units, for example, the processor 410 may include an application processor (AP), a graphics processing unit (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.
[0065] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0066] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 may be a cache memory. The memory may store instructions or data that have been used or are frequently used by the processor 410. If the processor 410 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.
[0067] The electronic device 400 can realize the display function through a GPU, a display screen 494, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 410 may include one or more GPUs, which execute program instructions to generate or change display information.
[0068] The display screen 494 is used to display images, videos, etc. The display screen 494 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), a quantum dot light-emitting diode (QLED), etc.
[0069] The internal memory 424 can be used to store computer executable program codes, which include instructions. The internal memory 424 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 400 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 424 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 440 executes various functional methods or data processing of the electronic device 400 by running instructions stored in the internal memory 424, and / or instructions stored in a memory provided in the processor.
[0070] The fingerprint sensor 480H is used to collect fingerprints. The electronic device 400 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0071] The electronic device involved in the embodiment of the present application may also have a layered architecture. The layered architecture includes several layers, each layer has a clear role and division of labor, and the layers communicate with each other through software interfaces.
[0072] For example, Figure 5 A schematic diagram of the composition of yet another electronic device is shown.
[0073] like Figure 5 As shown, the layered architecture in the electronic device is, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime, ART) and a system library, a hardware abstraction layer (Hardware Abstract Layer, HAL), a kernel layer, and a hardware layer.
[0074] The application layer can include a series of application packages.
[0075] like Figure 5 As shown, the application layer may include applications such as music, video, call, ringtone, alarm, Bluetooth, navigation, settings, gallery, etc.
[0076] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0077] like Figure 5As shown, the application framework layer may include a window manager, an activity manager, an input manager, a resource manager, a notification manager, a view system, etc.
[0078] The window manager provides window management services (WMS). WMS can be used for window management, window animation management, surface management, and as a transfer station for the input system.
[0079] The activity manager can provide activity management services (AMS), which can be used to start, switch, and schedule system components (such as activities, services, content providers, and broadcast receivers) as well as manage and schedule application processes.
[0080] The input manager can provide input management services (IMS), which can be used to manage system input, such as touch screen input, key input, sensor input, etc. IMS takes events from input device nodes and distributes them to appropriate windows through interaction with WMS.
[0081] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0082] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0083] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can include one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0084] The Android runtime is responsible for converting source code into machine code. The Android runtime mainly uses ahead-of-time (AOT) compilation technology and just-in-time (JIT) compilation technology.
[0085] The Android runtime also includes core libraries. The core libraries are mainly used to provide basic Java class library functions, such as basic data structures, mathematics, IO, tools, databases, networks, etc. The core libraries provide APIs for users to develop Android applications.
[0086] The system library can include multiple functional modules, such as surface manager, media library, and media framework.
[0087] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media framework supports playback and recording of multiple common audio and video formats, as well as static image files. The media library can support multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0088] The hardware abstraction layer runs in user space, encapsulates the kernel layer driver, and provides a calling interface to the upper layer. The hardware abstraction layer includes at least the display module, etc.
[0089] The kernel layer is the layer between hardware and software. The kernel layer includes at least the display driver.
[0090] The hardware layer includes memory, display screen, fingerprint sensor, etc. In the embodiment of the present application, all components included in the hardware layer can correspond to Figure 4 The components of the electronic device shown. The corresponding functions of the memory, display and fingerprint sensor can be referred to Figure 4 The instructions in the article are not repeated here.
[0091] As another example, Figure 6 A schematic diagram of the composition of another electronic device is provided.
[0092] like Figure 6 As shown, the application framework layer is configured with a module A. When the electronic device detects a user input operation 1, the module A is used to read the brightness value of the current screen. The operation 1 is used to instruct the electronic device to light up the display screen.
[0093] In an embodiment of the present application, the kernel layer is configured with a display driver, and the display driver is configured with a compensation module.
[0094] It should be noted that, in some embodiments of the present application, a background image 1 is preset in the electronic device. The background image 1 can be displayed in Figure 1 Interface 101 is shown.
[0095] Taking the current screen preset brightness value as brightness value A and the grayscale value of background image 1 as grayscale value B as an example, when the brightness value A is greater than the preset brightness value and the grayscale value B is greater than the preset grayscale value, the compensation module is used to compensate for the grayscale value of the fingerprint spot, so that the grayscale value of the fingerprint spot increases, thereby correspondingly making the brightness of the fingerprint spot brighter.
[0096] In some other embodiments of the present application, the brightness value A may also be referred to as a first brightness value, and the grayscale value B may also be referred to as a third grayscale value.
[0097] In some other embodiments of the present application, when the brightness value A is greater than a preset brightness value, the compensation module is used to compensate the grayscale value of the fingerprint spot.
[0098] In such Figure 6 In the example, the various hardware components configured in the electronic device are given at the same time, and each hardware component can constitute a logical hardware layer. The hardware composition can correspond to Figure 4 Examples in .
[0099] Among them, a display driver chip (DisplayDriverIC, DDIC) is provided in the display screen, and the DDIC is used to control the display screen to perform corresponding display.
[0100] The hardware layer of the electronic device also includes a memory, which is configured with a storage unit A, a storage unit B and a storage unit C. The storage unit A is used to store the brightness value A of the current screen, and the storage unit B is used to store the grayscale value B of the background image 1.
[0101] It should be noted that, in the embodiment of the present application, the fingerprint spot can be generated by mixing the first monochromatic light, the second monochromatic light and the third monochromatic light. In this embodiment, the storage unit C is configured with subunit 1, subunit 2 and subunit 3. Subunit 1 is used to store the grayscale value of the first monochromatic light, subunit 2 is used to store the grayscale value of the second monochromatic light, and subunit 3 is used to store the grayscale value of the third monochromatic light. The grayscale value of the fingerprint spot can include the grayscale values of the three different colors of monochromatic light.
[0102] For example, the first monochromatic light includes red light, the second monochromatic light includes green light, and the third monochromatic light includes blue light.
[0103] In other embodiments of the present application, storage unit A may also be referred to as a second storage unit. Storage unit B may also be referred to as a third storage unit. Storage unit C may also be referred to as a first storage unit. Subunit 1 may also be referred to as a first subunit, subunit 2 may also be referred to as a second subunit, and subunit 3 may also be referred to as a third subunit.
[0104] In some embodiments of the present application, storage unit A, storage unit B and storage unit C may be configured in the memory of the electronic device. In other embodiments of the present application, storage unit A, storage unit B and storage unit C may be configured in the on-chip storage space of the DDIC.
[0105] In addition, if Figure 6 In the example, the configuration of module A in the application framework layer is used as an example for explanation. In other embodiments of the present application, the above module A can be configured in the application layer of the electronic device. That is, in this example, the code corresponding to the control module can be integrated in the application package.
[0106] The solutions provided in the embodiments of the present application can be applied to Figure 6 In an electronic device composed as shown.
[0107] The following combination Figure 6 The composition shown is used to describe in detail the scheme provided in the embodiments of the present application.
[0108] Exemplary, reference Figure 7 , is a schematic diagram of the interaction between modules of a brightness adjustment method provided in an embodiment of the present application. Figure 7 In the scheme shown, when the brightness value of the screen exceeds the preset brightness value and the grayscale value of the background image 1 exceeds the preset grayscale value, the electronic device can adjust the grayscale value of the fingerprint spot so that the grayscale value of the fingerprint spot increases. Thus, the electronic device can obtain a fingerprint spot with greater brightness on the display screen.
[0109] like Figure 7 As shown, the program may include:
[0110] S701, module A reads brightness value A from storage unit A.
[0111] In an embodiment of the present application, a storage unit A is provided in the memory of the electronic device, and the storage unit A pre-stores a brightness value A. The brightness value A corresponds to the brightness value of the current screen.
[0112] Exemplarily, when the electronic device detects the user input operation 1, the module A reads the brightness value A from the storage unit A. The operation 1 is used to instruct the electronic device to light up the display screen.
[0113] In some other embodiments of the present application, operation 1 may also be referred to as the first operation.
[0114] For example, the operation 1 may include any one of a lifting operation, clicking the screen, and pressing the power button.
[0115] It should be noted that in an embodiment of the present application, when the electronic device receives operation 1, it switches from the screen-off state to the screen-on state in response to operation 1.
[0116] S702: Module A sends the brightness value A to the compensation module.
[0117] Exemplarily, after acquiring the brightness value A, the module A may send the brightness value A to the compensation module.
[0118] In some embodiments of the present application, after acquiring the brightness value A, the compensation module may determine whether the brightness value A is greater than a preset brightness value.
[0119] As an implementation, the compensation module determines that the brightness value A is greater than a preset brightness value. In this implementation, the compensation module may continue to perform the interaction in S703.
[0120] In some other embodiments of the present application, when the compensation module determines that the brightness value A is greater than the preset brightness value, it can jump to execute the interaction in S704.
[0121] The method provided in the embodiment of the present application is described below by taking the case where the compensation module continues the interaction in S703 when determining that the brightness value A is greater than the preset brightness value as an example.
[0122] S703: The compensation module reads the grayscale value B from the storage unit B.
[0123] In the embodiment of the present application, a storage unit B is provided in the memory of the electronic device, and the storage unit B pre-stores a grayscale value B. The grayscale value B is a grayscale value of a background image 1 preset in the electronic device.
[0124] In this embodiment, after reading the grayscale value B, the compensation module may determine whether the grayscale value B is greater than a preset grayscale value.
[0125] As an implementation, the compensation module determines that the grayscale value B is greater than a preset grayscale value. In this implementation, the compensation module A may continue to perform the interaction in S704.
[0126] S704 , the compensation module reads the grayscale value 1 from the storage unit C.
[0127] In an embodiment of the present application, a storage unit C is provided in the memory of the electronic device. The storage unit C pre-stores a grayscale value 1. The grayscale value 1 is a preset grayscale value of the fingerprint spot.
[0128] In some other embodiments of the present application, the grayscale value 1 may also be referred to as a second grayscale value.
[0129] In the embodiment of the present application, the fingerprint light spot can be generated by mixing three colors of monochromatic light: a first monochromatic light (such as red light), a second monochromatic light (such as green light) and a third monochromatic light (such as blue light). The grayscale value 1 of the fingerprint light spot can include the grayscale values of the three colors of monochromatic light.
[0130] Combined with the above Figure 6 As described in , the storage unit C includes subunit 1, subunit 2 and subunit 3. Among them, a first value is pre-stored in subunit 1, and the first value corresponds to the preset grayscale value of red light. A second value is pre-stored in subunit 2, and the second value corresponds to the preset grayscale value of green light. A third value is pre-stored in subunit 3, and the third value corresponds to the preset grayscale value of blue light. In this embodiment, the grayscale value 1 includes the first value, the second value and the third value. The compensation module reads the grayscale value 1 from the storage unit C, including reading the first value from subunit 1, reading the second value from subunit 2 and reading the third value from subunit 3.
[0131] Exemplarily, after obtaining the grayscale value 1, the compensation module can compensate the grayscale value 1 to obtain the grayscale value 2. The grayscale value 2 is greater than the grayscale value 1. The grayscale value 2 includes a fourth value, a fifth value, and a sixth value. Among them, the fourth value is the sum of the first value plus the compensation value 1, the fifth value is the sum of the second value plus the compensation value 1, and the sixth value is the sum of the third value plus the compensation value 1.
[0132] In this example, after acquiring the grayscale value 2, the compensation module may continue the interaction in S705.
[0133] In some other embodiments of the present application, the grayscale value 2 may also be referred to as the first grayscale value. The compensation value 1 may also be referred to as the first compensation value.
[0134] S705 , the compensation module stores the grayscale value 2 in the storage unit C.
[0135] Exemplarily, the compensation module stores the grayscale value 2 in the storage unit C, including storing the fourth value in the subunit 1 of the storage unit C, storing the fifth value in the subunit 2 of the storage unit C, and storing the sixth value in the subunit 3 of the storage unit C. So that the subsequent electronic device can obtain the grayscale value 2 from the storage unit C when using it.
[0136] It should be noted that when the electronic device stores the grayscale value 2 in the storage unit C, it may overwrite the value previously stored in the storage unit C. This allows the electronic device to obtain the grayscale value of the fingerprint spot as the current grayscale value 2 in subsequent operations.
[0137] For example, the compensation module executes S704. At this time, the value stored in subunit 1 in storage unit C is the first value, the value stored in subunit 2 is the second value, and the value stored in subunit 3 is the third value. Then, the compensation module executes S705. After the compensation module executes S705, the value stored in subunit 1 in storage unit C is the fourth value, the value stored in subunit 2 is the fifth value, and the value stored in subunit 3 is the sixth value.
[0138] In the embodiment of the present application, the electronic device needs to perform the interaction in S706 before displaying the fingerprint spot.
[0139] S706. The compensation module sends instruction 1 to the DDIC.
[0140] Exemplarily, the instruction 1 is used to instruct the electronic device to display the fingerprint spot. In this example, the compensation module may send the instruction 1 to the DDIC after executing S705.
[0141] S707 , DDIC obtains grayscale value 2 from storage unit C.
[0142] In the embodiment of the present application, when the DDIC receives the instruction 1 in S706, it can obtain the grayscale value 2 from the storage unit C, so that the brightness of the fingerprint spot can be configured according to the grayscale value 2 when the fingerprint spot is displayed later.
[0143] As a specific example, upon receiving indication 1, DDIC may obtain the fourth value from subunit 1 in storage unit C, obtain the fifth value from subunit 2, and obtain the sixth value from subunit 3.
[0144] In this way, the DDIC can subsequently configure the brightness of the fingerprint spot according to the fourth value, the fifth value, and the sixth value, and control the display screen to display the fingerprint spot.
[0145] For example, after completing the processing of S707, the electronic device may display the following on the display screen: Figure 1 Interface 101 is shown. A fingerprint spot is displayed in interface 101. The grayscale value of the fingerprint spot is grayscale value 2. That is, in interface 101, the electronic device displays the fingerprint spot according to the compensated grayscale value 2. This makes the brightness of the fingerprint spot brighter, and thus, when unlocking the electronic device based on light sensing, it is easier for the fingerprint sensor to recognize the user's fingerprint, thereby improving the unlocking rate of the electronic device unlocked by the fingerprint password.
[0146] It should be noted that in Figure 7In the description of the present invention, the electronic device first performs the interaction in S701 to obtain the brightness value A of the current screen, and then performs the interaction in S703 to obtain the preset grayscale value of the fingerprint spot. In other embodiments of the present application, the electronic device may first obtain the preset grayscale value (such as grayscale value B) of the fingerprint spot, and then obtain the brightness value A of the current screen when the grayscale value B is greater than the preset grayscale value.
[0147] For example, when the electronic device receives operation 1, it can read grayscale value B from storage unit B through module A, and then obtain the grayscale value of background image 1. When the grayscale value B is greater than the preset grayscale value, the compensation module reads brightness value A from storage unit A, and then obtains the brightness value of the current screen. When the brightness value A is greater than the preset brightness, the electronic device can continue to perform the module-to-module interaction in S704 to S707.
[0148] In order to more clearly illustrate the technical solution provided by the embodiment of the present application, the following Figure 7 The schematic diagram of the interaction flow between the modules provided continues to illustrate the brightness adjustment method provided in the embodiment of the present application.
[0149] like Figure 8 As shown, the program may include:
[0150] S801, module A reads brightness value A from storage unit A.
[0151] In the embodiment of the present application, the specific implementation of S801 may refer to the description in S701.
[0152] For example, a brightness value A is pre-stored in storage unit A, and the brightness value A is the brightness of the current screen. When the electronic device detects operation 1 for indicating to light up the screen, the module A reads the brightness value A from storage unit A. The operation 1 may include any one of lifting, clicking the screen, and pressing the power button.
[0153] S802. Module A sends the brightness value A to the compensation module.
[0154] For example, after module A obtains brightness value A through the operation of S801 , it may send brightness value A to the compensation module, so that the compensation module can continue to perform subsequent processing according to brightness value A.
[0155] S803: After receiving the brightness value A, the compensation module determines whether the brightness value A is greater than a preset brightness value.
[0156] In some embodiments of the present application, after acquiring the brightness value A, the compensation module may determine whether the brightness value A is greater than a preset brightness value.
[0157] For example, the preset brightness value is 3515. After obtaining the brightness value A, the compensation module can determine whether the brightness value A is greater than 3515.
[0158] As an implementation, the compensation module determines that the brightness value A is greater than a preset brightness value. In this implementation, the compensation module may continue to perform the process in S804.
[0159] S804: The compensation module reads the grayscale value B from the storage unit B.
[0160] In an embodiment of the present application, a grayscale value B is pre-stored in the storage unit B. The grayscale value B corresponds to the grayscale value of the background image 1. In this embodiment, when the compensation module determines that the brightness value A is greater than the preset brightness value, the grayscale value B can be read from the storage unit B. This allows the compensation module to continue to perform subsequent processing according to the grayscale value B.
[0161] S805: The compensation module determines whether the grayscale value B is greater than a preset grayscale value.
[0162] In some embodiments of the present application, after acquiring the grayscale value B, the compensation module may determine whether the grayscale value B is greater than a preset grayscale value.
[0163] For example, the preset grayscale value is 200. After obtaining the grayscale value B, the compensation module can determine whether the grayscale value B is greater than 200.
[0164] As an implementation, the compensation module determines that the grayscale value B is greater than a preset grayscale value. In this implementation, the compensation module may continue to perform the process in S806.
[0165] S806 , the compensation module reads the grayscale value 1 from the storage unit C.
[0166] In the embodiment of the present application, the specific implementation of S806 may refer to the description in S704.
[0167] For example, the storage unit C is configured with subunit 1, subunit 2, and subunit 3. Subunit 1 pre-stores a first value, which corresponds to a preset grayscale value of red light. Subunit 2 pre-stores a second value, which corresponds to a preset grayscale value of green light. Subunit 3 pre-stores a third value, which corresponds to a preset grayscale value of blue light.
[0168] In this example, the grayscale value 1 is a preset grayscale value of the fingerprint spot, and the grayscale value 1 includes a first value, a second value, and a third value. The compensation module reads the grayscale value 1 from the storage unit C, including reading the first value from the subunit 1, reading the second value from the subunit 2, and reading the third value from the subunit 3.
[0169] S807 , the compensation module determines the grayscale value 2 according to the grayscale value 1 .
[0170] Exemplarily, after obtaining the grayscale value 1, the compensation module may determine the grayscale value 2 according to the grayscale value 1. The grayscale value 2 is greater than the grayscale value 1.
[0171] As a specific example, the compensation module can determine the fourth value according to the first value, determine the fifth value according to the second value, and determine the sixth value according to the third value. The fourth value is the sum of the first value plus the compensation value 1, the fifth value is the sum of the second value plus the compensation value 1, and the sixth value is the sum of the third value plus the compensation value 1. The grayscale value 2 includes the fourth value, the fifth value, and the sixth value. In this example, the compensation value 1 is a positive number.
[0172] S808 . The compensation module stores the grayscale value 2 in the storage unit C.
[0173] In the embodiment of the present application, the specific implementation method of S808 can refer to the description in S705 and will not be repeated here.
[0174] In this embodiment, after the electronic device completes the process in S808 , it may continue to perform the process in S809 .
[0175] S809. The compensation module sends instruction 1 to the DDIC.
[0176] Exemplarily, after storing the compensated grayscale value 2 in the storage unit C, the compensation module may send an indication 1 to the DDIC. The indication 1 is used to indicate the display of the fingerprint spot.
[0177] In this example, after receiving the instruction 1, the DDIC may continue the process in S810.
[0178] S810 , DDIC reads grayscale value 2 from storage unit C.
[0179] In the embodiment of the present application, the specific implementation of S809 may refer to the description in S706.
[0180] For example, after receiving instruction 1, DDIC can obtain the fourth value from subunit 1 in storage unit C, obtain the fifth value from subunit 2, and obtain the sixth value from subunit 3. This facilitates subsequent use of the fourth value, the fifth value, and the sixth value by DDIC.
[0181] S811, DDIC controls the display screen to display the fingerprint spot according to the grayscale value 2.
[0182] Exemplarily, after obtaining the grayscale value 2, the DDIC may control the display screen to display the fingerprint spot according to the grayscale value 2.
[0183] For example, DDIC can control the display screen to display the fingerprint spot in the interface 101 according to the grayscale value 2. Specifically, DDIC can configure the brightness of the fingerprint spot according to the fourth value, the fifth value and the sixth value, and control the display screen to display the fingerprint spot in the interface 101.
[0184] Combined with the description in the aforementioned S807, since the fourth value is greater than the first value, the fifth value is greater than the second value, and the sixth value is greater than the third value, the brightness of the fingerprint spot is brighter, and thus when unlocking an electronic device based on light sensing, it is easier for the fingerprint sensor to identify the user's fingerprint, thereby improving the unlocking rate of the electronic device unlocked by the fingerprint password.
[0185] It should be noted that in Figure 8 In the description of the embodiment, the electronic device first performs the processing in S801 to S803, and when the brightness value A is greater than the preset brightness value, then performs the processing in S804 to S805. In other embodiments of the present application, the electronic device may first perform the processing in S804 to S805, and when the grayscale value B is greater than the preset grayscale value, then perform the processing in S801 to S803. In this embodiment, when the brightness value A is greater than the preset brightness value, the electronic device may continue to perform the processing in S806 to S811.
[0186] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of each functional module. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 the present application.
[0187] The above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0188] For example, Fig. 9 FIG. 9 is a schematic diagram showing the composition of an electronic device 900. Fig. 9As shown, the electronic device 900 may include: a processor 901, a memory 902 and a display screen 903. The memory 902 is used to store computer execution instructions, and the display screen 903 is used to perform corresponding displays. Exemplarily, in some embodiments, when the processor 901 executes the instructions stored in the memory 902, the electronic device 900 may execute any of the methods shown in the above embodiments.
[0189] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0190] Fig.10 A schematic diagram of the composition of a chip system 1000 is shown. The chip system 1000 may include: a processor 1001 and a communication interface 1002, which are used to support related devices to implement the functions involved in the above embodiments. In a possible design, the chip system also includes a memory for storing necessary program instructions and data for electronic devices. The chip system may be composed of chips, or may include chips and other discrete devices. It should be noted that in some implementations of the present application, the communication interface 1002 may also be referred to as an interface circuit.
[0191] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0192] The functions or actions or operations or steps in the above embodiments can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may include one or more servers, data centers and other data storage devices that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0193] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A brightness adjustment method, characterized in that: The method is applied to an electronic device, wherein the electronic device is provided with a display screen; a fingerprint password is preset in the electronic device; and the method comprises: Receiving a first operation; the first operation is used to instruct the electronic device to light up the display screen; In response to the first operation, a first interface is displayed; the first interface includes a fingerprint spot; the grayscale value of the fingerprint spot is a first grayscale value; the first grayscale value is greater than a second grayscale value; the second grayscale value is a preset grayscale value of the fingerprint spot.
2. The method according to claim 1, characterized in that The electronic device pre-stores the second grayscale value; before displaying the first interface, the method further includes: Acquire the second grayscale value; The first grayscale value is determined according to the second grayscale value.
3. The method according to claim 2, characterized in that Before obtaining the second grayscale value, the method further includes: Acquire a first brightness value, where the first brightness value is a brightness value of the display screen; It is determined that the first brightness value is greater than a first preset brightness value.
4. The method according to claim 3, characterized in that After determining that the first brightness value is greater than a first preset brightness value, the method further includes: Acquire a third grayscale value; the third grayscale value is a grayscale value of a first background image; the first background image is used to be displayed in the first interface; The acquiring the second grayscale value comprises: When it is determined that the third grayscale value is greater than the first preset grayscale value, the second grayscale value is acquired.
5. The method according to any one of claims 1 to 4, characterized in that The second grayscale value includes a first value, a second value and a third value; the first value is a preset grayscale value of the first monochromatic light, the second value is a preset grayscale value of the second monochromatic light, and the third value is a preset grayscale value of the third monochromatic light; The determining the first grayscale value according to the second grayscale value comprises: Determine a fourth value according to the first value; the fourth value is the sum of the first value and the first compensation value; Determine a fifth value according to the second value; the fifth value is the sum of the second value and the first compensation value; Determine a sixth value according to the third value; the sixth value is the sum of the third value and the first compensation value; The first grayscale value includes the fourth value, the fifth value, and the sixth value.
6. The method according to claim 5, characterized in that The electronic device is configured with a first storage unit; the first storage unit includes a first subunit, a second subunit and a third subunit; the electronic device pre-stores the second grayscale value including the first subunit pre-stored with the first value, the second subunit pre-stored with the second value and the third subunit pre-stored with the third value; The acquiring the second grayscale value comprises: Obtain the first value from the first subunit; obtaining the second value from the second subunit; The third value is obtained from the third subunit.
7. The method according to claim 6, characterized in that After determining the first grayscale value according to the second grayscale value, the method further includes: storing the first grayscale value in the first storage unit; The storing the first grayscale value in the first storage unit comprises: storing the fourth value in the first subunit; storing the fifth value in the second subunit; The sixth value is stored in the third subunit.
8. The method according to claim 7, characterized in that After storing the first grayscale value in the first storage unit, the method further includes: Sending a first instruction; the first instruction is used to instruct the electronic device to display the fingerprint spot; After receiving the first indication, the fourth value is obtained from the first subunit, the fifth value is obtained from the second subunit, and the sixth value is obtained from the third subunit.
9. The method according to any one of claims 4 to 8, characterized in that: The electronic device is configured with a second storage unit and a third storage unit; the second storage unit is used to store the first brightness value; The third storage unit is used to store the third grayscale value; The obtaining of the first brightness value comprises: Acquire the first brightness value from the second storage unit; The obtaining of the third grayscale value comprises: The third grayscale value is obtained from the third storage unit.
10. An electronic device, characterized in that: The electronic device comprises: a memory, a display screen and one or more processors; the memory, the display screen and the processor are coupled; The memory is used to store computer program codes, and the computer program codes include computer instructions. When the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1 to 9.
11. A chip system, characterized in that: The chip system includes a processor and a communication interface; the processor is used to call and run a computer program stored in a storage medium, and execute the method as described in any one of claims 1-9.
12. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.
13. A computer program product, comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.
14. A computer system, comprising a memory, a processor, and a computer program stored in the memory, wherein: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Screen brightness adjustment method, electronic equipment, mobile terminal and storage medium
CN109801605A
Fingerprint identification control method and device and computer readable storage medium
CN110188698A
Fingerprint acquisition method and device, terminal and storage medium
CN113297880A
Method and device for adjusting fingerprint brightness, display panel, processing equipment and terminal
CN114783009A
Light spot display method, electronic equipment and computer readable storage medium
CN115943448A