Brightness adjustment method and electronic device
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 decreased fingerprint recognition rate is solved and the fingerprint unlocking success rate is improved.
Patent Information
- Application Number
- CN202410162688.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2025-12-12
- 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 recognition rate of users unlocking electronic devices decreases, leading to probabilistic unlocking failures.
When the screen brightness exceeds the preset brightness value and the grayscale value of the background image exceeds the preset grayscale value, the brightness of the fingerprint spot is compensated to make it brighter. The recognition rate is improved by adjusting the grayscale value of the fingerprint spot.
This improves the fingerprint sensor's recognition rate of users' fingerprints, thereby increasing the fingerprint password unlocking rate.
Smart Images

Figure CN119274215B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] 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
[0002] Currently, in order to improve the security of an electronic device, a user can set an unlocking password in the electronic device to protect the electronic device. In some implementations, the unlocking password can be a fingerprint password. Taking unlocking the electronic device by the fingerprint password as an example.
[0003] For example, when the electronic device is a mobile phone, the mobile phone can display interface 1 in the display screen when the mobile phone is in an unlocked state. The interface 1 displays a fingerprint light spot. When the user wants to unlock the electronic device, the user can input operation A at the position displayed by the fingerprint light spot. The operation A is a pressing operation of the user's finger on the screen.
[0004] In some embodiments, the interface 1 also displays a background image. When the gray scale value of the background image is large and the brightness of the screen is bright, it is not conducive for the user to unlock the electronic device, and there is a problem of probabilistic unlocking failure. SUMMARY
[0005] Embodiments of the present application provide a brightness adjustment method and an electronic device, which are used to compensate for the brightness of the fingerprint light spot by the electronic device, so that the brightness of the fingerprint light spot is brighter. Thereby, the recognition rate of the user's fingerprint by the electronic device can be improved, and the unlocking rate of the fingerprint password can be improved.
[0006] To achieve the above object, embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, a brightness adjustment method is provided. The method is applied to an electronic device, and the electronic device is configured 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 includes a fingerprint light spot. The gray scale value of the fingerprint light spot is a first gray scale value. The first gray scale value is greater than a second gray scale value. The second gray scale value is a preset gray scale value of the fingerprint light spot.
[0008] It can be understood that, in embodiments of the present application, the greater the gray scale value of the fingerprint light spot, the brighter the brightness of the corresponding fingerprint light spot. Therefore, based on the above scheme, the electronic device can display a fingerprint light spot with brighter brightness on the display screen. This facilitates subsequent recognition of the user's fingerprint by the electronic device and improves the unlocking rate of the fingerprint password.
[0009] Optionally, the electronic device pre-stores the second gray scale value. Before the first interface is displayed, the method further includes obtaining the second gray scale value. The first operation can include any one of a lifting operation, a screen click, and a power key press. The first gray scale value is determined according to the second gray scale value. Based on the above scheme, the electronic device can determine the compensated first gray scale value according to the preset second gray scale value when detecting the screen-on operation.
[0010] Optionally, before the second gray scale value is obtained, the method further includes obtaining a first brightness value, the first brightness value being a brightness value of the display screen. It is determined that the first brightness value is greater than a first preset brightness value.
[0011] It should be noted that in the embodiments of the present application, the greater the brightness value of the screen, the smaller the brightness of the corresponding fingerprint light spot. Thus, based on the above scheme, the electronic device can obtain the second gray scale value when the brightness value of the screen is greater than the first preset brightness value, and compensate the second gray scale value.
[0012] Optionally, after it is determined that the first brightness value is greater than the first preset brightness value, the method further includes obtaining a third gray scale value. The third gray scale value is a gray scale value of a first background image. The first background image is used to display in the first interface. The second gray scale value is obtained when it is determined that the third gray scale value is greater than a first preset gray scale value.
[0013] It should be noted that in the embodiments of the present application, the greater the gray scale value of the first background image, the smaller the brightness of the corresponding fingerprint light spot. Thus, based on the above scheme, the electronic device can obtain the second gray scale value when the brightness value of the screen is greater than the first preset brightness value, and the gray scale value of the first background image is greater than the first preset gray scale value, and compensate the second gray scale value.
[0014] Optionally, the second gray scale value includes a first value, a second value, and a third value. The first value is a preset gray scale value of a first monochromatic light, the second value is a preset gray scale value of a second monochromatic light, and the third value is a preset gray scale value of a third monochromatic light. The first gray scale value is determined according to the second gray scale value, including determining a fourth value according to the first value. The fourth value is the sum of the first value and a first compensation value. A fifth value is determined according to the second value. The fifth value is the sum of the second value and the first compensation value. A sixth value is determined according to the third value. The sixth value is the sum of the third value and the first compensation value. The first gray scale 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 sub-unit, a second sub-unit and a third sub-unit. The electronic device pre-stores the second gray scale value, including that the first sub-unit pre-stores the first value, the second sub-unit pre-stores the second value, and the third sub-unit pre-stores the third value. The obtaining the second gray scale value includes: obtaining the first value from the first sub-unit, obtaining the second value from the second sub-unit, and obtaining the third value from the third sub-unit. Thus, the electronic device can obtain the first value from the first sub-unit, obtain the second value from the second sub-unit, and obtain the third value from the third sub-unit, so as to facilitate subsequent processing of the first value, the second value and the third value by the electronic device.
[0016] Optionally, after the determining the first gray scale value according to the second gray scale value, the method further includes: storing the first gray scale value in the first storage unit. The storing the first gray scale value in the first storage unit includes: storing the fourth value in the first sub-unit, storing the fifth value in the second sub-unit, and storing the sixth value in the third sub-unit. In this way, the electronic device can subsequently obtain the first gray scale value when needed.
[0017] Optionally, after the storing the first gray scale value in the first storage unit, the method further includes: sending a first indication. The first indication 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 sub-unit, the fifth value is obtained from the second sub-unit, and the sixth value is obtained from the third sub-unit. 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 luminance value. The third storage unit is used to store the third gray scale value. The obtaining the first luminance value includes: obtaining the first luminance value from the second storage unit. The obtaining the third gray scale value includes: obtaining the third gray scale value from the third storage unit.
[0019] In a second aspect, an electronic device is provided. The 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 configured to store computer program code including computer instructions. When the processor executes the computer instructions, the electronic device is caused to perform the luminance 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 configured to invoke and run a computer program stored in a storage medium to perform the 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 includes 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. 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 above-mentioned second aspect to the sixth aspect can correspond to the communication control method provided in the foregoing designs, and similar beneficial effects can be achieved, which will not be described herein. BRIEF DESCRIPTION OF DRAWINGS
[0024] Figure 1 FIG. 1 is a schematic diagram of an interface;
[0025] Figure 2 FIG. 2 is an equivalent circuit diagram of a pixel driving circuit in an electronic device;
[0026] Figure 3 FIG. 3 is a schematic diagram of current distribution in a screen of an electronic device;
[0027] Figure 4 FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the present application;
[0028] Figure 5 FIG. 5 is a schematic diagram of another electronic device according to an embodiment of the present application;
[0029] Figure 6 FIG. 6 is a schematic diagram of another electronic device according to an embodiment of the present application;
[0030] Figure 7 FIG. 7 is a schematic diagram of interaction between modules of a brightness adjustment method according to an embodiment of the present application;
[0031] Figure 8 FIG. 8 is a schematic diagram of an interaction process between modules of a brightness adjustment method according to an embodiment of the present application;
[0032] Figure 9 Another electronic device provided in an embodiment of the present application is shown in the following composition diagram.
[0033] Figure 10 A chip system provided in an embodiment of the present application is shown in the following composition diagram. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application.
[0035] Hereinafter, the terms "first", "second", and the like are used only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second", and the like can explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more.
[0036] At present, in order to improve the security of electronic devices, users can set an unlocking password in electronic devices to protect electronic devices.
[0037] For example, the unlocking password can be a regular password such as a number, a letter, and the like.
[0038] In some implementations, the unlocking password can be a fingerprint password. Taking unlocking an electronic device by a fingerprint password as an example.
[0039] Reference Figure 1 Taking the electronic device as a mobile phone with fingerprint recognition capability as an example, the mobile phone can display an interface 101 on the display screen when it is in an unlocked state. The interface 101 includes a preset area 102. The preset area 102 displays a fingerprint light spot. In some implementations, when a user wants to unlock the mobile phone, the user can input an operation 103 in the preset area 102. The operation 103 can be a pressing operation of the user's finger on the screen.
[0040] In some other embodiments of the present application, the interface 101 can also be referred to as a first interface.
[0041] It should be noted that in the embodiments of the present application, the mobile phone is also configured with a fingerprint sensor. The area of the user's fingerprint collected by the fingerprint sensor corresponds to the position displayed by the fingerprint light spot. Thus, when the user presses the screen with the finger, the input of the fingerprint information is realized.
[0042] In this embodiment, the fingerprint password unlocking of the mobile phone is implemented based on light sensing unlocking. The light sensing unlocking refers to that when a user's finger presses the screen, the light emitted by the screen penetrates the cover plate of the mobile phone 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. The fingerprint sensor can perform fingerprint identification according to the light signal after receiving 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, so as to complete the light sensing unlocking.
[0043] In some embodiments, the fingerprint information 1 is successfully matched with the pre-recorded fingerprint information 2. In this embodiment, the mobile phone can determine to unlock the screen and display the interface 104 as shown. Figure 1
[0044] In addition, when the mobile phone is unlocked based on light sensing, the brightness of the fingerprint light spot needs to approach the target brightness. In order to improve the unlocking rate of the mobile phone through the fingerprint password unlocking, the fingerprint sensor identifies the user's fingerprint.
[0045] It can be understood that in some implementations, the mobile phone also has a pre-set 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 light spot is inversely proportional to the brightness value of the screen of the mobile phone and the gray scale value of the background image 1.
[0046] Specifically, the greater the brightness value of the screen and the gray scale value of the background image 1, the smaller the brightness of the fingerprint light spot. Conversely, the smaller the brightness value of the screen and the gray scale value of the background image 1, the greater the brightness of the fingerprint light spot.
[0047] The gray scale value ranges from 0 to 255. Generally, the smaller the gray scale value, the closer the color of the background image 1 to black, and the smaller the brightness of the corresponding background image 1. Conversely, the greater the gray scale value, the closer the color of the background image 1 to white, and the higher the brightness of the corresponding background image 1.
[0048] In some implementations, the brightness value of the screen of the mobile phone can be a display brightness value (DBV). The DBV can include 4096 gears (for example, 0 to 4095 gears). Generally, in the case that the gray scale value of the background image 1 is fixed, the greater the DBV, the brighter the screen. Conversely, the smaller the DBV, the darker the screen.
[0049] The reasons why the brightness value of the screen and the gray scale value of the background image 1 affect the brightness of the fingerprint light spot are described below in combination with the drawings.
[0050] For example, referring to Figure 2 , Figure 2 A pixel driving circuit for a mobile phone is shown, which is used to adjust the screen brightness value and the gray scale value of a background image 1. The pixel driving circuit comprises 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. The third power supply ELVDD is a positive power supply, and the fourth power supply ELVSS is a negative power supply.
[0051] In Figure 2 , the source of the first switch tube T1 is connected to the third power supply 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 a data voltage, which controls the size 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 supply Vinit_2. The first power supply Vinit_1 is connected to the source of the sixth switch tube T6, and the fourth power supply ELVSS is connected to the negative electrode of the light emitting device.
[0052] In the example as Figure 2 , first, the sixth switch tube T6 is in an 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 an 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 an 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 an 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, and drives the light emitting device to emit light.
[0053] Reference is made to Figure 3 , Figure 3 The current distribution in the screen of a mobile phone is shown. In Figure 3 , (a) is the current distribution on the fourth power supply ELVSS wiring, Figure 3(b) is the current distribution on the third power supply ELVDD wire. In Figure 3 In the formula, the greater the brightness value of the screen and the greater the gray scale value of the background image 1, the greater the current on the fourth power supply ELVSS wire and the third power supply ELVDD wire. Thus, the impedance voltage division on the fourth power supply ELVSS wire and the third power supply ELVDD wire is higher, and the voltage at the position corresponding to the fingerprint light spot is smaller, and the current at the position corresponding to the fingerprint light spot is smaller. At this time, the brightness of the fingerprint light spot is also smaller.
[0054] Thus, the greater the brightness value of the screen and the greater the gray scale value of the background image 1 in the display screen, the lower the brightness of the fingerprint light spot. In some implementations, the brightness of the fingerprint light spot is lower than the target brightness. This further leads to a decrease in the recognition rate of the fingerprint sensor for the user's fingerprint when the user unlocks the mobile phone through the fingerprint password, and the problem of probabilistic unlocking failure occurs.
[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 a preset brightness value and the gray scale value of the preset background image 1 in the electronic device exceeds a preset gray scale value, the brightness of the fingerprint light spot can be compensated by the electronic device, so that the brightness of the fingerprint light spot is brighter. Thus, the recognition rate of the fingerprint sensor for the user's fingerprint can be improved, and the unlocking rate of the fingerprint password can be improved.
[0056] In some other embodiments of the present application, the preset brightness value can also be referred to as a first preset brightness value, the preset gray scale value can also be referred to as a first preset gray scale value, and the background image 1 can also be referred to as a first background image.
[0057] The technical solutions 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 solutions provided by the embodiments of the present application can be applied to electronic devices.
[0059] The electronic device in the embodiments of the present application can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, 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) \ virtual reality (VR) device, etc. The specific form of the electronic device is not specially limited in the embodiments of the present application.
[0060] It should be noted that in the embodiments of the present application, the electronic device has a fingerprint recognition capability.
[0061] As an implementation, the electronic device can have a structure as shown in Figure 4
[0062] As shown in Figure 4 The electronic device 400 can include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charge 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, a headset interface 470D, a sensor module 480, a key 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 can include a pressure sensor 480A, a gyroscope sensor 480B, a barometric 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 can be understood that the structure shown in the embodiments 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 can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0064] The processor 410 can include one or more processing units, for example: the processor 410 can 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 can be independent devices, or can be integrated in one or more processors.
[0065] The processor can generate operation control signals according to the instruction operation code and the timing signal, and complete the control of fetching and executing instructions.
[0066] The processor 410 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 can be a cache memory. The memory can store instructions or data that have been used or used frequently by the processor 410. If the processor 410 needs to use the instructions or data, it can be directly called from the memory. Avoiding repeated access reduces the waiting time of the processor 410, thus improving the efficiency of the system.
[0067] The electronic device 400 can realize display functions through a GPU, a display screen 494, and an application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 410 can include one or more GPUs that 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 adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), 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 including instructions. The internal memory 424 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program (such as a sound playing function, an image playing function, etc.) required by at least one function, etc. The data storage area can store data (such as audio data, a phone book, etc.) created during use of the electronic device 400, etc. In addition, the internal memory 424 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 440 executes various functions or data processing of the electronic device 400 by running instructions stored in the internal memory 424 and / or instructions stored in a memory disposed in the processor.
[0070] The fingerprint sensor 480H is used to collect a fingerprint. The electronic device 400 can implement fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint answering a call, etc. by using characteristics of the collected fingerprint.
[0071] Embodiments of the present application also relate to an electronic device having a layered architecture. The layered architecture includes several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces.
[0072] An example of the layered architecture is shown in FIG. 4. Figure 5 Another example of the composition of an electronic device is shown in FIG. 5.
[0073] As shown in FIG. 5, the layered architecture in the electronic device includes, from top to bottom, an application layer, an application framework layer, an Android runtime (ART) and a system library, a hardware abstraction layer (HAL), a kernel layer, and a hardware layer. Figure 5 The application layer can include a series of application packages.
[0074] As shown in FIG. 5, the application layer can include music, video, call, ringtone, alarm, Bluetooth, navigation, settings, gallery, etc.
[0075] Figure 5 As shown in FIG. 5, the application layer can include 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 of the application layer. The application framework layer includes some pre-defined functions.
[0077] As shown in FIG. 5, the application framework layer can include a resource management framework, an activity framework, a window management framework, a view management framework, a package application management framework, a telephony framework, a location framework, a connectivity framework, a media framework, a content provider framework, a notification framework, a search framework, a security framework, a data storage framework, a notification framework, a search framework, a security framework, a data storage framework, a graphics framework, a multimedia framework, a network framework, a resource management framework, an activity framework, a window management framework, a view management framework, a package application management framework, a telephony framework, a location framework, a connectivity framework, a media framework, a content provider framework, etc. Figure 5 As shown, the application framework layer can 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 a window management service (WMS), which can be used for window management, window animation management, surface management, and as a relay station for an input system.
[0079] The activity manager can provide an activity management service (AMS), which can be used for starting, switching, scheduling of system components (e.g., activities, services, content providers, broadcast receivers), and management and scheduling of application processes.
[0080] The input manager can provide an input management service (IMS), which can be used for managing inputs of the system, such as touch screen input, key input, sensor input, etc. The IMS takes events from input device nodes and distributes the events to appropriate windows through interaction with the WMS.
[0081] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc.
[0082] The notification manager enables applications to display notification information in the status bar, which can be used to convey messages of the notification type, which can automatically disappear 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 in the form of a chart or a scroll bar text appearing in the top status bar of the system, such as a notification of an application running in the background, and can also be a notification in the form of a dialog window appearing on the screen. For example, a text information prompt in the status bar, a prompt sound, a vibration of the electronic device, a flashing of the indicator light, etc.
[0083] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build an application. A display interface can include one or more views. For example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures.
[0084] The Android runtime is responsible for converting source code into machine code. The Android runtime mainly includes an ahead-of-time (AOT) compilation technique and a just-in-time (JIT) compilation technique.
[0085] The Android runtime also includes a core library. The core library is mainly used to provide functions of basic Java class library, such as libraries of basic data structure, mathematics, IO, tools, database, network and the like. The core library provides an API for a user to develop an Android application.
[0086] The system library can include a plurality of functional modules. For example, a surface manager, a media library, and a media framework.
[0087] The surface manager is used to manage a display subsystem, and provides fusion of 2D and 3D layers for a plurality of application programs. The media framework supports playback and recording of a plurality of commonly used audio, video formats, and static image files. The media library can support a plurality of audio and video coding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG and the like.
[0088] The hardware abstraction layer runs in a user space, encapsulates kernel layer drivers, and provides a calling interface to an upper layer. The hardware abstraction layer at least includes a display module.
[0089] The kernel layer is a layer between hardware and software. The kernel layer at least includes a display driver.
[0090] The hardware layer includes a memory, a display screen, a fingerprint sensor and the like. In embodiments of the present application, all components included in the hardware layer can correspond to components in the electronic device shown in Figure 4 The functions of the memory, the display screen and the fingerprint sensor can be referred to the description in Figure 4 , which will not be described herein again.
[0091] As another example, Figure 6 a schematic diagram of components of another electronic device is provided.
[0092] As shown in Figure 6 , the application program 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 a brightness value of a current screen. The operation 1 is used to instruct the electronic device to light up the display screen.
[0093] In embodiments 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 on the interface 101 as shown in Figure 1 .
[0095] Taking the preset luminance value of the current screen as a luminance value A and the gray scale value of the background image 1 as a gray scale value B as an example, in a case where the luminance value A is greater than the preset luminance value and the gray scale value B is greater than the preset gray scale value, the compensation module is configured to compensate the gray scale value of the fingerprint light spot, so that the gray scale value of the fingerprint light spot is increased, and correspondingly, the luminance of the fingerprint light spot is brighter.
[0096] In some other embodiments of the present application, the luminance value A can also be referred to as a first luminance value, and the gray scale value B can also be referred to as a third gray scale value.
[0097] In some other embodiments of the present application, in a case where the luminance value A is greater than the preset luminance value, the compensation module is configured to compensate the gray scale value of the fingerprint light spot.
[0098] In the example as Figure 6 , each hardware component configured in the electronic device is given, and each hardware component can constitute a logical hardware layer. The hardware components can correspond to the example as Figure 4 .
[0099] The display screen is provided with a display driver chip (DDIC), and the DDIC is configured to control the display screen to display accordingly.
[0100] The hardware layer of the electronic device further includes a memory, and the memory is configured with a storage unit A, a storage unit B, and a storage unit C. The storage unit A is configured to store the luminance value A of the current screen, and the storage unit B is configured to store the gray scale value B of the background image 1.
[0101] It should be noted that in the embodiments of the present application, the fingerprint light 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 a subunit 1, a subunit 2, and a subunit 3. The subunit 1 is configured to store the gray scale value of the first monochromatic light, the subunit 2 is configured to store the gray scale value of the second monochromatic light, and the subunit 3 is configured to store the gray scale value of the third monochromatic light. The gray scale value of the fingerprint light spot can include the gray scale 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 some other embodiments of the present application, the storage unit A can also be referred to as a second storage unit. The storage unit B can also be referred to as a third storage unit. The storage unit C can also be referred to as a first storage unit. The subunit 1 can also be referred to as a first subunit, the subunit 2 can also be referred to as a second subunit, and the subunit 3 can also be referred to as a third subunit.
[0104] In some embodiments of the present application, the storage unit A, the storage unit B and the storage unit C can be configured in the memory of the electronic device. In some other embodiments of the present application, the storage unit A, the storage unit B and the storage unit C can be configured in the on-chip storage space of the DDIC.
[0105] In addition, as Figure 6 In the example, the module A is configured in the application framework layer. In some other embodiments of the present application, the module A can be configured in the application layer of the electronic device. That is, in the example, the code corresponding to the control module can be integrated in the application package.
[0106] The schemes provided by the embodiments of the present application can be applied to the electronic device with the components as shown in Figure 6
[0107] The schemes provided by the embodiments of the present application will be described in detail below in combination with the components as shown in Figure 6
[0108] For example, reference is made to the schematic diagram of the inter-module interaction of the brightness adjustment method provided by the embodiments of the present application as shown in Figure 7 Figure 7 In the case that the brightness value of the screen exceeds the preset brightness value and the gray scale value of the background image 1 exceeds the preset gray scale value, the electronic device can adjust the gray scale value of the fingerprint light spot, so that the gray scale value of the fingerprint light spot increases. Thus, the electronic device can obtain the fingerprint light spot with larger brightness on the display screen.
[0109] As shown in Figure 7 The scheme can include:
[0110] S701, the module A reads the brightness value A from the storage unit A.
[0111] In the embodiments of the present application, the storage unit A is provided in the memory of the electronic device, and the brightness value A is pre-stored in the storage unit A. The brightness value A corresponds to the brightness value of the current screen.
[0112] For example, 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, the operation 1 can also be referred to as the first operation.
[0114] For example, the operation 1 can include any one of the lifting operation, the clicking operation on the screen and the pressing operation on the power key.
[0115] It should be noted that in the embodiments of the present application, the electronic device switches from the screen-off state to the screen-on state in response to operation 1 when operation 1 is received.
[0116] S702, the module A sends the luminance value A to the compensation module.
[0117] For example, after obtaining the luminance value A, the module A can send the luminance value A to the compensation module.
[0118] In some embodiments of the present application, after obtaining the luminance value A, the compensation module can determine whether the luminance value A is greater than a preset luminance value.
[0119] As an implementation manner, the compensation module determines that the luminance value A is greater than the preset luminance value. In this implementation manner, the compensation module can continue the interaction in S703.
[0120] In other embodiments of the present application, the compensation module can jump to perform the interaction in S704 when it is determined that the luminance value A is greater than the preset luminance value.
[0121] The method provided by the embodiments of the present application is described below with the compensation module continuing the interaction in S703 when it is determined that the luminance value A is greater than the preset luminance value as an example.
[0122] S703, the compensation module reads the gray scale value B from the storage unit B.
[0123] In the embodiments of the present application, the storage unit B is provided in the memory of the electronic device, and the gray scale value B is pre-stored in the storage unit B. The gray scale value B is the gray scale value of the preset background image 1 in the electronic device.
[0124] In this embodiment, after reading the gray scale value B, the compensation module can determine whether the gray scale value B is greater than a preset gray scale value.
[0125] As an implementation manner, the compensation module determines that the gray scale value B is greater than the preset gray scale value. In this implementation manner, the compensation module A can continue the interaction in S704.
[0126] S704, the compensation module reads the gray scale value 1 from the storage unit C.
[0127] In the embodiments of the present application, the storage unit C is provided in the memory of the electronic device. The gray scale value 1 is pre-stored in the storage unit C. The gray scale value 1 is the preset gray scale value of the fingerprint light spot.
[0128] In other embodiments of the present application, the gray scale value 1 can also be referred to as a second gray scale value.
[0129] In the embodiments of the present application, the fingerprint light spot can be generated by mixing first monochromatic light (such as red light), second monochromatic light (such as green light), and third monochromatic light (such as blue light) of three colors. The gray scale value 1 of the fingerprint light spot can include the gray scale values of the three colors of monochromatic light.
[0130] In combination with the description in the foregoing Figure 6 The storage unit C includes a subunit 1, a subunit 2, and a subunit 3. The first value corresponding to the preset gray scale value of the red light is pre-stored in the subunit 1. The second value corresponding to the preset gray scale value of the green light is pre-stored in the subunit 2. The third value corresponding to the preset gray scale value of the blue light is pre-stored in the subunit 3. In this embodiment, the gray scale value 1 includes the first value, the second value, and the third value. The compensation module reads the gray scale value 1 from the storage unit C, which includes 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.
[0131] For example, after obtaining the gray scale value 1, the compensation module can compensate the gray scale value 1 to obtain a gray scale value 2. The gray scale value 2 is greater than the gray scale value 1. The gray scale value 2 includes a fourth value, a fifth value, and a sixth value. The fourth value is the sum of the first value and a compensation value 1, the fifth value is the sum of the second value and the compensation value 1, and the sixth value is the sum of the third value and the compensation value 1.
[0132] In this example, after obtaining the gray scale value 2, the compensation module can continue the interaction in S705.
[0133] In some other embodiments of the present application, the gray scale value 2 can also be referred to as a first gray scale value. The compensation value 1 can also be referred to as a first compensation value.
[0134] S705, the compensation module stores the gray scale value 2 in the storage unit C.
[0135] For example, the compensation module stores the gray scale value 2 in the storage unit C, which includes 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 from the storage unit C when using the gray scale value 2.
[0136] It should be noted that when the electronic device stores the gray scale value 2 in the storage unit C, it can overwrite the value stored in the storage unit C the last time. So that the electronic device can obtain the current gray scale value 2 of the fingerprint light spot in the subsequent operation.
[0137] For example, the compensation module performs S704, at this time, the value stored in the sub-unit 1 in the storage unit C is the first value, the value stored in the sub-unit 2 is the second value, and the value stored in the sub-unit 3 is the third value. Then, the compensation module performs S705. After the compensation module performs S705, the value stored in the sub-unit 1 in the storage unit C is the fourth value, the value stored in the sub-unit 2 is the fifth value, and the value stored in the sub-unit 3 is the sixth value.
[0138] In an embodiment of the present application, the electronic device also needs to perform the interaction in S706 before displaying the fingerprint light spot.
[0139] S706, the compensation module sends an indication 1 to the DDIC.
[0140] For example, the indication 1 is used to instruct the electronic device to display the fingerprint light spot. In this example, the compensation module can send the indication 1 to the DDIC after performing S705.
[0141] S707, the DDIC obtains the gray scale value 2 from the storage unit C.
[0142] In an embodiment of the present application, the DDIC can obtain the gray scale value 2 from the storage unit C when receiving the indication 1 in S706. So that the brightness of the fingerprint light spot can be configured according to the gray scale value 2 when displaying the fingerprint light spot later.
[0143] As a specific example, the DDIC can obtain the fourth value from the sub-unit 1, the fifth value from the sub-unit 2, and the sixth value from the sub-unit 3 in the storage unit C when receiving the indication 1.
[0144] In this way, the DDIC can subsequently configure the brightness of the fingerprint light spot according to the fourth value, the fifth value, and the sixth value, and control the display screen to display the fingerprint light spot.
[0145] For example, after the electronic device completes the processing of S707, the electronic device can display an interface 101 as shown in FIG. 10A in the display screen. Figure 1 As shown in FIG. 10A, the interface 101 displays a fingerprint light spot. The gray scale value of the fingerprint light spot is the gray scale value 2. That is, in the interface 101, the electronic device displays the fingerprint light spot according to the compensated gray scale value 2. Thus, the brightness of the fingerprint light spot is brighter, and thus when unlocking the electronic device based on light sensing, the recognition of the user's fingerprint by the fingerprint sensor is more convenient, and the unlocking rate of unlocking the electronic device by the fingerprint password is improved.
[0146] It should be noted that, as shown in FIG. 10A, Figure 7In the description of the foregoing embodiment, 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 gray scale value of the fingerprint light spot in the case where the brightness value A is greater than the preset brightness. In another embodiment of the present application, the electronic device can first obtain the preset gray scale value (such as the gray scale value B) of the fingerprint light spot, and then obtain the brightness value A of the current screen in the case where the gray scale value B is greater than the preset gray scale value.
[0147] For example, the electronic device can read the gray scale value B from the storage unit B by the module A when receiving the operation 1, and then obtain the gray scale value of the background image 1. In the case where the gray scale value B is greater than the preset gray scale value, the brightness value A is read from the storage unit A by the compensation module, and then the brightness value of the current screen is obtained. In the case where the brightness value A is greater than the preset brightness, the electronic device can continue the interaction between the modules in S704 to S707.
[0148] In order to more clearly describe the technical solutions provided by the embodiments of the present application, the following will continue to describe the brightness adjustment method provided by the embodiments of the present application in combination with the interaction flow diagram between the modules provided by the embodiments of the present application. Figure 7 In order to more clearly describe the technical solutions provided by the embodiments of the present application, the following will continue to describe the brightness adjustment method provided by the embodiments of the present application in combination with the interaction flow diagram between the modules provided by the embodiments of the present application.
[0149] As shown in FIG. 7, the scheme can include: Figure 8
[0150] S801, the module A reads the brightness value A from the storage unit A.
[0151] In the embodiments of the present application, the specific implementation of S801 can refer to the description in S701.
[0152] For example, the storage unit A has pre-stored the brightness value A, which is the brightness of the current screen. The electronic device can read the brightness value A from the storage unit A by the module A when detecting the operation 1 for indicating turning on the screen. The operation 1 can include any one of lifting operation, clicking the screen, and pressing the power key.
[0153] S802, the module A sends the brightness value A to the compensation module.
[0154] For example, the module A can send the brightness value A to the compensation module after obtaining the brightness value A by the operation of S801. So that the compensation module continues to perform subsequent processing according to the brightness value A.
[0155] S803, the compensation module judges whether the brightness value A is greater than the preset brightness value after receiving the brightness value A.
[0156] In some embodiments of the present application, the compensation module can judge whether the brightness value A is greater than the preset brightness value after obtaining the brightness value A.
[0157] For example, the preset luminance value is 3515. The compensation module, after obtaining the luminance value A, can determine whether the luminance value A is greater than 3515.
[0158] As an implementation manner, the compensation module determines that the luminance value A is greater than the preset luminance value. In this implementation manner, the compensation module can continue the processing in S804.
[0159] S804, the compensation module reads the gray scale value B from the storage unit B.
[0160] In the embodiments of the present application, the gray scale value B is pre-stored in the storage unit B. The gray scale value B corresponds to the gray scale value of the background image 1. In this embodiment, the compensation module, after determining that the luminance value A is greater than the preset luminance value, can read the gray scale value B from the storage unit B. So that the compensation module continues to execute subsequent processing according to the gray scale value B.
[0161] S805, the compensation module determines whether the gray scale value B is greater than a preset gray scale value.
[0162] In some embodiments of the present application, the compensation module, after obtaining the gray scale value B, can determine whether the gray scale value B is greater than the preset gray scale value.
[0163] For example, the preset gray scale value is 200. The compensation module, after obtaining the gray scale value B, can determine whether the gray scale value B is greater than the 200th.
[0164] As an implementation manner, the compensation module determines that the gray scale value B is greater than the preset gray scale value. In this implementation manner, the compensation module can continue the processing in S806.
[0165] S806, the compensation module reads the gray scale value 1 from the storage unit C.
[0166] In the embodiments of the present application, the specific implementation manner of S806 can refer to the description in S704.
[0167] For example, the storage unit C is configured with a subunit 1, a subunit 2 and a subunit 3. Among them, the first value corresponding to the preset gray scale value of red light is pre-stored in the subunit 1. The second value corresponding to the preset gray scale value of green light is pre-stored in the subunit 2. The third value corresponding to the preset gray scale value of blue light is pre-stored in the subunit 3.
[0168] In this example, the gray scale value 1 is the preset gray scale value of the fingerprint light spot, and the gray scale value 1 includes the first value, the second value and the third value. The compensation module reads the gray scale value 1 from the storage unit C includes 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 gray scale value 2 according to the gray scale value 1.
[0170] For example, after obtaining the gray scale value 1, the compensation module can determine the gray scale value 2 according to the gray scale value 1. The gray scale value 2 is greater than the gray scale value 1.
[0171] For 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 and the compensation value 1, the fifth value is the sum of the second value and the compensation value 1, and the sixth value is the sum of the third value and the compensation value 1. The gray scale 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 gray scale value 2 in the storage unit C.
[0173] In an embodiment of the present application, the specific implementation of S808 can refer to the description in S705, which will not be repeated here.
[0174] In this embodiment, after the electronic device completes the processing in S808, it can continue the processing in S809.
[0175] S809, the compensation module sends an indication 1 to the DDIC.
[0176] For example, after storing the compensated gray scale value 2 in the storage unit C, the compensation module can send the indication 1 to the DDIC. The indication 1 is used to indicate the display of the fingerprint light spot.
[0177] In this example, after receiving the indication 1, the DDIC can continue the processing in S810.
[0178] S810, the DDIC reads the gray scale value 2 from the storage unit C.
[0179] In an embodiment of the present application, the specific implementation of S809 can refer to the description in S706.
[0180] For example, after receiving the indication 1, the DDIC can obtain the fourth value from the subunit 1 in the storage unit C, obtain the fifth value from the subunit 2, and obtain the sixth value from the subunit 3. In order to facilitate the subsequent use of the fourth value, the fifth value, and the sixth value by the DDIC.
[0181] S811, the DDIC controls the display screen to display the fingerprint light spot according to the gray scale value 2.
[0182] For example, after obtaining the gray scale value 2, the DDIC can control the display screen to display the fingerprint light spot according to the gray scale value 2.
[0183] For example, the DDIC can control the display screen to display the fingerprint light spot in the interface 101 according to the gray scale value 2. Specifically, the DDIC can configure the brightness of the fingerprint light spot according to the fourth value, the fifth value and the sixth value, and control the display screen to display the fingerprint light spot in the interface 101.
[0184] In combination with the foregoing description in 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 light spot is brighter, and thus when unlocking the electronic device based on light sensing, the identification of the user's fingerprint by the fingerprint sensor is more convenient, and the unlocking rate of the electronic device by the fingerprint password is improved.
[0185] It should be noted that in the description of the above Figure 8 , it is described by taking an example that the electronic device first performs the processes in S801 to S803, and then performs the processes in S804 to S805 when the brightness value A is greater than the preset brightness value. In another embodiment of the present application, the electronic device can first perform the processes in S804 to S805, and then perform the processes in S801 to S803 when the gray scale value B is greater than the preset gray scale value. In this embodiment, when the brightness value A is greater than the preset brightness value, the electronic device can continue to perform the processes in S806 to S811.
[0186] The above mainly introduces the scheme provided by the embodiments of the present application from the perspective of various functional modules. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed in the present text, the present application can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical scheme. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0187] The above integrated modules can be realized in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical functional division. There can be another division manner when actually implemented.
[0188] An exemplary Figure 9 An exemplary composition diagram of an electronic device 900 is shown. As Figure 9As shown, the electronic device 900 can include a processor 901, a memory 902 and a display screen 903. The memory 902 is configured to store computer-executable instructions, and the display screen 903 is configured to perform corresponding display. For example, in some embodiments, when the processor 901 executes the instructions stored in the memory 902, the electronic device 900 can be caused to perform the method shown in any of the above embodiments.
[0189] It should be noted that all related content of each step involved in the above method embodiments can be cited to the function description of the corresponding function module, which will not be repeated here.
[0190] Figure 10 A constituent schematic diagram of a chip system 1000 is shown. The chip system 1000 can include a processor 1001 and a communication interface 1002, configured to support the related device to implement the functions involved in the above embodiments. In a possible design, the chip system further includes a memory, configured to save necessary program instructions and data of the electronic device. The chip system can be composed of a chip, or can include a chip and other discrete devices. It should be noted that in some implementations of the present application, the communication interface 1002 can also be referred to as an interface circuit.
[0191] It should be noted that all related content of each step involved in the above method embodiments can be cited to the function description of the corresponding function module, which 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 by software, the computer program instructions 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 flow or function described in the embodiments of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or include one or more data storage devices such as servers, data centers, etc. that can be integrated with the medium. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0193] Although the present application is described in conjunction with specific features and embodiments thereof, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art in light of the foregoing description. Accordingly, it is intended to embrace all alternatives, modifications and variations that fall within the scope of the present application. Obviously, various modifications and changes are possible in the present application without departing from the scope and spirit of the application. Accordingly, it is intended to embrace all such modifications and changes that fall within the scope of the appended claims and their equivalents.
Claims
1. A luminance adjustment method characterized by comprising: The method is applied to an electronic device configured 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, obtaining a first brightness value, the first brightness value being a brightness value of the display screen; when it is determined that the first brightness value is greater than a first preset brightness value, obtaining a third gray scale value; the third gray scale value is a gray scale value of a first background image; the first background image is used to be displayed in a first interface; when it is determined that the third gray scale value is greater than a first preset gray scale value, obtaining a second gray scale value; the second gray scale value is a preset gray scale value of a fingerprint light spot; after determining the first gray scale value according to the second gray scale value, displaying the first interface; the first interface comprises the fingerprint light spot; the gray scale value of the fingerprint light spot is the first gray scale value; the first gray scale value is greater than the second gray scale value.
2. The method of claim 1, wherein, The second gray scale value comprises a first value, a second value and a third value; the first value is a preset gray scale value of a first monochromatic light, the second value is a preset gray scale value of a second monochromatic light, and the third value is a preset gray scale value of a third monochromatic light; The method further comprises: determining a fourth value according to the first value; the fourth value is the sum of the first value and a first compensation value; determining a fifth value according to the second value; the fifth value is the sum of the second value and the first compensation value; determining 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 gray scale value comprises the fourth value, the fifth value and the sixth value.
3. The method of claim 2, wherein, The electronic device is configured with a first storage unit; the first storage unit comprises a first subunit, a second subunit and a third subunit; the electronic device pre-stores the second gray scale value, which comprises that 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 method further comprises: obtaining the first value from the first subunit; obtaining the second value from the second subunit; obtaining the third value from the third subunit.
4. The method of claim 3, wherein, After determining the first gray scale value according to the second gray scale value, the method further comprises: storing the first gray scale value in the first storage unit; The method further comprises: storing the fourth value in the first subunit; storing the fifth value in the second subunit; storing the sixth value in the third subunit.
5. The method of claim 4, wherein, After storing the first gray scale value in the first storage unit, the method further comprises: sending a first instruction; the first instruction is used to instruct the electronic device to display the fingerprint light spot; after receiving the first instruction, obtaining the fourth value from the first subunit, obtaining the fifth value from the second subunit, and obtaining the sixth value from the third subunit.
6. The method according to any one of claims 1-5, 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 gray scale value; The first brightness value includes: The first brightness value is obtained from the second storage unit; The third gray scale value includes: The third gray scale value is obtained from the third storage unit.
7. An electronic device, comprising: The electronic device includes a memory, a display screen and one or more processors; the memory, the display screen and the processor are coupled; Wherein, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions, makes the electronic device execute the method as claimed in any one of claims 1-6.
8. A chip system, characterized by The chip system includes a processor and a communication interface; the processor is used to call and run the computer program stored in the storage medium from the storage medium, executes the method as claimed in any one of claims 1-6.
9. A computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are executed by the processor to implement the steps of the method as claimed in any one of claims 1-6.
10. A computer program product comprising computer instructions, characterized in that, The computer instructions are executed by the processor to implement the steps of the method as claimed in any one of claims 1-6.
11. A computer system comprising a memory, a processor, and a computer program stored on the memory, wherein, The processor executes the computer program to implement the steps of the method as claimed in any one of claims 1-6.
Citation Information
Patent Citations
Method and device for adjusting fingerprint brightness, display panel, processing equipment and terminal
CN114783009A
Under-screen fingerprint pattern brightness determination method and device, electronic equipment and medium
CN116665253A