Exposure method, electronic device, storage medium, and program product
By performing test exposure and formal exposure at the current light spot brightness in the under-screen optical fingerprint recognition, combined with ambient light brightness adjustment, and using a line-by-line exposure method to obtain multiple image fusion, the problem of uneven image quality in the under-screen optical fingerprint recognition is solved, the recognition success rate and user experience are improved, and the screen life is extended.
Patent Information
- Application Number
- CN202210155273.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-21
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2042-02-21
AI Technical Summary
In existing technologies for under-screen optical fingerprint recognition, the fixed exposure time leads to uneven image quality, which cannot meet the recognition requirements under different ambient brightness levels. In addition, the bright spots are dazzling, affecting the user experience and shortening the screen life.
When an exposure trigger event is detected, a test exposure is performed at the current light spot brightness of the display screen. The formal exposure time is determined based on the test exposure image, and the image is processed using an image recognition algorithm to avoid light spot brightness adjustment. The light spot brightness is adjusted in combination with the ambient light brightness, and a line-by-line exposure method is used to obtain multiple image fusion, thereby improving the image recognition success rate.
It achieves adaptive adjustment of image quality under different ambient brightness, improves the success rate of image recognition, reduces the discomfort of users caused by changes in light spot brightness, extends screen life, and reduces costs.
Smart Images

Figure CN114612946B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of images, and in particular to an exposure method, electronic equipment, storage medium, and program product. Background Art
[0002] With the increasing popularity of smartphones, the use of under-screen optical fingerprint sensors is becoming increasingly common. Because under-screen optical fingerprint sensors place high demands on the quality of the captured fingerprint images, existing technologies generally require the fingerprint recognition spot to be in a high-brightness state, at which point the entire screen is also bright. This can cause the screen brightness to be glaring in darker environments, especially at the fingerprint spot, resulting in a poor user experience and significantly shortening the screen's lifespan with long-term use. Furthermore, existing technologies use a fixed exposure after adjusting the spot brightness, using a fixed exposure time for exposure processing. However, the quality of the image captured using this fixed exposure varies under different ambient brightness levels, making it difficult to meet recognition requirements at varying brightness levels. Summary of the Invention
[0003] Based on this, an exposure method, electronic equipment, storage medium and program product are proposed.
[0004] In a first aspect, an exposure method is provided for an electronic device having a display screen, the exposure method comprising: when an exposure trigger event is detected, performing test exposure according to a test exposure time at a current light spot brightness of the display screen to obtain a test exposure image; and obtaining a formal exposure time corresponding to the current light spot brightness of the display screen based on the test exposure image, so as to perform image recognition processing on the image obtained based on the formal exposure time using an image recognition algorithm.
[0005] In the above exposure method, since the brightness of the light spot has a direct impact on the quality of the exposed image, the brightness of the display screen and the brightness of the ambient light have less impact on the quality of the exposed image than the brightness of the light spot. Therefore, by performing test exposure and formal exposure at the current light spot brightness of the display screen, an image with image quality adapted to the current light spot brightness can be obtained, thereby meeting the recognition requirements under different ambient brightnesses and improving the success rate of image recognition. Moreover, when an exposure trigger event is detected, there is no need to adjust the brightness of the display area of the light spot on the display screen, that is, there is no need to adjust the brightness of the display area of the light spot to a high-brightness state. The metering exposure and formal exposure are directly performed at the current light spot brightness, which to a certain extent avoids the brightness change of the light spot and the discomfort caused to the user by the high-brightness light spot.
[0006] In some embodiments of the present invention, the display screen has a fingerprint detection area, and the fingerprint detection area is a display area of the light spot.
[0007] In the above embodiment, fingerprint detection is performed directly through the display area of the light spot, thereby improving the utilization rate of the display area of the light spot.
[0008] In some embodiments of the present invention, the exposure method further includes: acquiring the brightness of the ambient light; and obtaining the current light spot brightness according to the brightness of the ambient light.
[0009] In the above embodiment, the current brightness of the light spot can be obtained by the brightness of the ambient light, thereby achieving, to a certain extent, that the brightness of the light spot follows the brightness of the ambient light.
[0010] In some embodiments of the present invention, obtaining the current light spot brightness according to the brightness of the ambient light includes: calculating the corresponding screen calculated brightness according to the brightness of the ambient light; and obtaining the current light spot brightness according to the screen calculated brightness.
[0011] In the above embodiment, the screen brightness is first calculated by the brightness of the ambient light, and further, the current light spot brightness is obtained according to the calculated screen brightness, so that the current light spot brightness is adapted to the brightness of the ambient light to a certain extent, and the user will not feel uncomfortable even in a low-light environment.
[0012] In some embodiments of the present invention, obtaining the current light spot brightness based on the screen calculated brightness includes: directly using the screen calculated brightness as the current light spot brightness; or, when the screen calculated brightness is greater than or equal to the target brightness value, using the screen calculated brightness as the current light spot brightness; when the screen calculated brightness is less than the target brightness value, using the target brightness value as the current light spot brightness.
[0013] In the above embodiment, the brightness of the light spot directly follows the brightness of the display screen, and will not cause glare and discomfort to the user even in a low-light environment. Moreover, when the calculated brightness of the screen is less than the target brightness value, the target brightness value is used as the current light spot brightness to avoid the adverse effects of extremely dark environments on fingerprint recognition.
[0014] In some embodiments of the present invention, acquiring the brightness of the ambient light includes: obtaining the brightness of the ambient light through an ambient light sensor of the electronic device.
[0015] In the above embodiment, the ambient light sensor provided by the electronic device is directly used without adding any additional components, thus reducing the cost to a certain extent.
[0016] In some embodiments of the present invention, after obtaining the formal exposure time corresponding to the current light spot brightness of the display screen based on the test exposure image, the method further includes: exposing according to the formal exposure time to obtain a frame of formal exposure image; and performing image recognition processing on the frame of formal exposure image using an image recognition algorithm.
[0017] In the above embodiment, since a frame of formal exposure image has been obtained, the formal exposure image can be directly processed using the image recognition algorithm, which can improve the image recognition speed.
[0018] In some embodiments of the present invention, after obtaining the formal exposure time corresponding to the current light spot brightness of the display screen based on the test exposure image, the method further includes: processing according to the formal exposure time to obtain a fused image of at least two formal exposure images; and processing the fused image using an image recognition algorithm.
[0019] In the above embodiment, processing is performed according to the formal exposure time to obtain a fused image of at least two formal exposure images. Image recognition is then performed on the fused image, which can further improve the image recognition success rate because the fused image of at least two formal exposure images can improve image quality compared to a single formal exposure image.
[0020] In some embodiments of the present invention, the at least two formal exposure images include a first formal exposure image to an Nth formal exposure image, where N is an integer greater than or equal to 2; the processing according to the formal exposure time to obtain a fused image of the at least two formal exposure images includes: exposing the first row of the i-th formal exposure image, where i is greater than or equal to 1 and i is less than N; when the row interval time arrives, exposing the second row of the i-th formal exposure image; when the image interval time arrives, exposing the first row of the (i+1)th formal exposure image; the row interval time is the time interval between adjacent rows in the same exposure image when exposure is started, the image interval time is obtained by subtracting the total row interval time from the formal exposure time, and the total row interval time is the sum of all row interval times corresponding to the same exposure image.
[0021] In the above embodiment, when multiple exposure images are required, the exposure is not carried out image by image, that is, the first formal exposure image is exposed first and then the second formal exposure image is exposed. Instead, a row-by-row exposure method is selected between images, that is, the exposure of the first row of the i+1th formal exposure image is started at the same time as the exposure of the first row of the i-th formal exposure image is completed, thereby saving exposure time and realizing rapid under-screen fingerprint recognition to a certain extent.
[0022] In some embodiments of the present invention, the processing according to the formal exposure time to obtain a fused image of at least two formal exposure images further includes: after the exposure of the first row of the first formal exposure image to the Nth formal exposure image is completed, fusing the first row of the first formal exposure image to the Nth formal exposure image to obtain a fused result of the first row; and combining the fusion results of all rows of the first formal exposure image to the Nth formal exposure image to obtain a fused image of at least two formal exposure images.
[0023] In the above embodiment, after obtaining the exposure image of the row, row fusion is also implemented accordingly to improve the fusion efficiency.
[0024] In some embodiments of the present invention, obtaining the formal exposure time corresponding to the current light spot brightness of the display screen based on the test exposure image includes: calculating the brightness of the target image area in the test exposure image, where the target image area is the area focused on by the image recognition algorithm; and obtaining the formal exposure time corresponding to the current light spot brightness of the display screen based on the preset brightness and the brightness of the target image area in the test exposure image.
[0025] In the above embodiment, the formal exposure time is determined according to the brightness of the area focused on by the image processing algorithm. Compared with determining the formal exposure time according to the brightness of the entire image, this embodiment has a higher image processing success rate and processing efficiency.
[0026] In some embodiments of the present invention, obtaining the formal exposure time corresponding to the current light spot brightness of the display screen based on the preset brightness and the brightness of the target image area in the test exposure image includes: if the preset brightness is greater than the brightness of the target image area in the test exposure image, then increasing the test exposure time to obtain the formal exposure time corresponding to the current light spot brightness of the display screen.
[0027] The above embodiment realizes the determination of the formal exposure time, and enables the final determined formal exposure time to obtain an image with a brightness close to the preset brightness, thereby improving the image recognition success rate to a certain extent.
[0028] In some embodiments of the present invention, the target image area includes an image center area.
[0029] In the above embodiment, the center area of the image is determined as the target image area, which is beneficial to improving the image recognition success rate and recognition efficiency in certain application scenarios.
[0030] In some embodiments of the present invention, the test exposure time or the formal exposure time is used for exposure processing of an under-screen fingerprint module disposed below a display area of the light spot.
[0031] The above embodiment illustrates the application scenario of the exposure method: under-screen fingerprint recognition scenario.
[0032] In a second aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the exposure method described in the first aspect when executing the computer program.
[0033] In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer program instructions. When the computer program instructions are read and executed by a processor, the steps of the exposure method described in the first aspect are executed.
[0034] In a fourth aspect, a computer program product is provided, comprising computer program instructions, wherein when the computer program instructions are read and executed by a processor, the exposure method according to the first aspect is executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0036] Figure 1 Schematic diagram of the implementation process of the exposure method in the embodiment of the present application;
[0037] Figure 2 Schematic diagram of the structure of the exposure device in the embodiment of the present application;
[0038] Figure 3 This is a block diagram of the internal structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION
[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0040] In some embodiments of the present invention, an exposure method is provided. The exposure method described in these embodiments may be performed by an electronic device capable of implementing the exposure method described in these embodiments. The electronic device may include, but is not limited to, a terminal and a server, and the electronic device may have a display screen, such as a touch screen. Terminals include desktop terminals and mobile terminals. Desktop terminals include, but are not limited to, desktop computers and in-vehicle computers; mobile terminals include, but are not limited to, mobile phones, tablets, laptops, and smartwatches. Servers include high-performance computers and high-performance computer clusters.
[0041] Below, the exposure method described in the embodiment of the present invention will be better explained using the under-screen fingerprint recognition scenario as an example. It is understood that the application scenario of the exposure method described in the embodiment of the present invention is not limited to the under-screen fingerprint recognition scenario. For example, it can also be a scenario where fingerprint collection and recognition is triggered by a button. When the application scenario of the exposure method described in the embodiment of the present invention is the under-screen fingerprint recognition scenario, the electronic device is provided with an under-screen fingerprint module.
[0042] In some embodiments of the present invention, Figure 1 As shown, an exposure method is provided for an electronic device having a display screen, and the exposure method includes: steps 100 to 200.
[0043] Step 100 : When an exposure trigger event is detected, test exposure is performed according to a test exposure time at the current light spot brightness of the display screen to obtain a test exposure image.
[0044] The display screen consists of two parts. One part is the display area of the light spot, which is used to display the light spot. For example, the light spot is a fingerprint spot to instruct the user to place the finger on the fingerprint spot to collect and identify the fingerprint image. An under-screen fingerprint module is provided below the display area of the light spot. The under-screen fingerprint module can expose the fingerprint carrier above the display area of the light spot to obtain an exposure image. Therefore, it can be seen that compared with the brightness of the ambient light and the brightness of the display screen, the brightness of the light spot will have a direct impact on the quality of the exposed image; the other part is the non-light spot display area, that is, the area of the display screen that does not contain a light spot.
[0045] An exposure trigger event is an event that can trigger a test exposure. For example, the exposure trigger event is an event in which a fingerprint carrier is detected above the display area of the light spot, wherein the fingerprint carrier, for example, the user's finger, or a simulated rubber finger, is above the display area of the light spot, including being within a certain distance above the display area of the light spot but not in contact with the display area of the light spot, and also includes: pressing on the display area of the light spot.
[0046] The current light spot brightness is the brightness of the light spot at the current moment, that is, the current brightness of the display area of the light spot.
[0047] The test exposure time is a preset exposure time. The purpose of setting this exposure time is to directly test the brightness of the light spot at the current light spot brightness, so as to obtain a formal exposure time that is suitable for the light spot brightness. This will produce an image with high image quality at the current light spot brightness through the formal exposure time. For example, the test exposure time is set to a shorter time of 5ms.
[0048] The test exposure image is an image obtained after exposure according to the test exposure time.
[0049] Step 200 , obtaining a formal exposure time corresponding to the current light spot brightness of the display screen according to the test exposure image, and performing image recognition processing on the image obtained based on the formal exposure time using an image recognition algorithm.
[0050] The image recognition algorithm is a pre-set algorithm for image recognition. The image obtained based on the official exposure time can be either an exposure image or a fused image. Since the test exposure image is obtained through test exposure at the current light spot brightness of the display screen, the official exposure time appropriate for the current light spot brightness of the display screen can be obtained based on the test exposure image.
[0051] In the above exposure method, since the brightness of the light spot has a direct impact on the quality of the exposed image, the brightness of the display screen and the brightness of the ambient light have less impact on the quality of the exposed image than the brightness of the light spot. Therefore, by performing test exposure and formal exposure at the current light spot brightness of the display screen, an image with image quality adapted to the current light spot brightness can be obtained, thereby meeting the recognition requirements under different ambient brightnesses and improving the success rate of image recognition. Moreover, when an exposure trigger event is detected, there is no need to adjust the brightness of the display area of the light spot on the display screen, that is, there is no need to adjust the brightness of the display area of the light spot to a high-brightness state. The metering exposure and formal exposure are directly performed at the current light spot brightness, which to a certain extent avoids the brightness change of the light spot and the discomfort caused to the user by the high-brightness light spot.
[0052] In some embodiments of the present invention, the display screen has a fingerprint detection area, and the fingerprint detection area is a display area of the light spot.
[0053] Among them, the fingerprint detection area is the area in the display screen used for fingerprint detection. The fingerprint detection area is set to the display area of the light spot. Therefore, the display area of the light spot can also realize fingerprint detection at the same time, thereby improving the utilization rate of the display area of the light spot. Alternatively, the display area of the light spot can also be slightly larger than the fingerprint detection area.
[0054] In the above embodiment, fingerprint detection is performed directly through the display area of the light spot, thereby improving the utilization rate of the display area of the light spot.
[0055] In some embodiments of the present invention, the exposure method further includes:
[0056] Get the brightness of the ambient light;
[0057] The current light spot brightness is obtained according to the brightness of the ambient light.
[0058] The current light spot brightness is obtained according to the brightness of the ambient light. To a certain extent, the current light spot brightness can be adjusted following the brightness of the ambient light. In this way, the current light spot brightness is adapted to the brightness of the ambient light. If the brightness of the ambient light changes, the current light spot brightness will also change. For example, if the brightness of the ambient light becomes darker, the current light spot brightness will also become darker.
[0059] In the above embodiment, the current brightness of the light spot can be obtained by the brightness of the ambient light, thereby achieving, to a certain extent, that the brightness of the light spot follows the brightness of the ambient light.
[0060] In some embodiments of the present invention, obtaining the current light spot brightness according to the brightness of the ambient light includes:
[0061] Calculating the corresponding screen brightness according to the brightness of the ambient light;
[0062] The current light spot brightness is obtained according to the screen calculation brightness.
[0063] Because the screen's calculated brightness is based on the ambient light's brightness, it can, to a certain extent, adjust to the ambient light's brightness. Changes in ambient light brightness will also cause changes in the screen's calculated brightness. For example, if the ambient light's brightness decreases, the screen's calculated brightness will also decrease. The screen's calculated brightness is simply a brightness value calculated based on the ambient light's brightness. In under-screen fingerprint unlocking scenarios, the screen is typically black or dimmed before unlocking. After calculating the calculated brightness, the screen isn't adjusted to that value. The real purpose of calculating the calculated brightness is to obtain the current spot brightness, allowing it to change with the ambient light's brightness.
[0064] In one example, the current light spot brightness is slightly higher than the screen calculated brightness. In another example, when the screen calculated brightness is greater than or equal to the specified brightness, the current light spot brightness is equal to the screen calculated brightness, and when the screen calculated brightness is less than the specified brightness, the current light spot brightness is slightly higher than the screen calculated brightness.
[0065] The brightness of the light spot follows the brightness of the ambient light. If the ambient light is dim, the brightness of the light spot is also dim. Conversely, if the ambient light is bright, the brightness of the light spot is also brighter. Thus, the brightness of the light spot can be well adapted to the ambient light. Furthermore, when the ambient light brightness is low, the current light spot brightness is also low. The exposure method can calculate a relatively long official exposure time, so that even with low light spot brightness, a high-quality fingerprint image can be obtained. Conversely, when the ambient light brightness is high, the current light spot brightness is also high. In this case, a high-quality fingerprint image can be obtained with a relatively short official exposure time. Therefore, based on the fact that the current light spot brightness follows the ambient light brightness in real time, the test exposure can accurately measure the impact of the ambient light brightness and the brightness of the display area of the light spot on the image quality, and obtain the official exposure time that is adapted to the environment and the light spot. Then, processing according to the official exposure time can obtain a high-quality fingerprint image that is not affected by the brightness of the ambient light or the brightness of the display area of the light spot, thereby improving the success rate of under-screen fingerprint recognition. In the under-screen fingerprint unlocking scenario, when the brightness of the light spot is adjusted according to the brightness of the ambient light, the brightness of the non-light spot display area can be low. For example, the brightness is 0, at this time, the display screen appears black. For another example, the brightness is a value greater than 0 but very small, at this time, the display screen appears dark.
[0066] In the above embodiment, the screen brightness is first calculated by the brightness of the ambient light, and further, the current light spot brightness is obtained according to the calculated screen brightness, so that the current light spot brightness is adapted to the brightness of the ambient light to a certain extent, and the user will not feel uncomfortable even in a low-light environment.
[0067] In some embodiments of the present invention, obtaining the current spot brightness according to the screen brightness calculation includes:
[0068] The calculated screen brightness is directly used as the current spot brightness; or,
[0069] When the calculated screen brightness is greater than or equal to the target brightness value, the calculated screen brightness is used as the current light spot brightness; when the calculated screen brightness is less than the target brightness value, the target brightness value is used as the current light spot brightness.
[0070] For example, if the calculated brightness of the screen is L, then the current spot brightness is also L.
[0071] The target brightness value is a pre-set brightness value. Display screens of different models and specifications have minimum brightness requirements for the light spot when completing the fingerprint recognition action. That is, in order to complete the fingerprint recognition action, display screens of different models and specifications need the light spot to have a minimum brightness. If the brightness of the light spot is less than the minimum brightness, there is a high probability that the fingerprint recognition action cannot be completed. Therefore, the target brightness value is set to ensure that the brightness of the light spot is always greater than or equal to the target brightness value under any ambient light brightness. Specifically, when the calculated brightness of the screen is greater than or equal to the target brightness value, the calculated brightness of the screen is used as the current light spot brightness so that the brightness of the light spot follows the brightness of the display screen. Furthermore, when the calculated brightness of the screen is less than the target brightness value, the brightness of the display screen is very low. Therefore, the target brightness value is used as the current light spot brightness to ensure that the fingerprint recognition action can be completed.
[0072] In the above embodiment, the brightness of the light spot directly follows the brightness of the display screen, and will not cause glare and discomfort to the user even in a low-light environment. Moreover, when the calculated brightness of the screen is less than the target brightness value, the target brightness value is used as the current light spot brightness to avoid the adverse effects of extremely dark environments on fingerprint recognition.
[0073] In some embodiments of the present invention, obtaining the brightness of the ambient light includes:
[0074] The brightness of the ambient light is obtained through the ambient light sensor of the electronic device.
[0075] An ambient light sensor is provided in the electronic device, wherein the ambient light sensor is mainly composed of a photosensitive element, which senses the surrounding light conditions through the photosensitive element to obtain the brightness of the ambient light.
[0076] In the above embodiment, the ambient light sensor provided by the electronic device is directly used without adding any additional components, thus reducing the cost to a certain extent.
[0077] In some embodiments of the present invention, after step 200, the method further includes:
[0078] Expose according to the formal exposure time to obtain a frame of formal exposure image;
[0079] An image recognition algorithm is used to perform image recognition processing on the one frame of formal exposure image.
[0080] For example, the application scenario is an under-screen fingerprint unlocking scenario, so the officially exposed image is a fingerprint image, the image recognition algorithm is a fingerprint recognition algorithm, the image recognition processing is a fingerprint recognition processing, and the fingerprint recognition algorithm is used to perform fingerprint recognition processing on the fingerprint image to obtain a fingerprint recognition result, where the fingerprint recognition result can be a successful recognition or a failed recognition. If the recognition is successful, the electronic device lock is unlocked.
[0081] In the above embodiment, since a frame of formal exposure image has been obtained, the formal exposure image can be directly processed using the image recognition algorithm, which can improve the image recognition speed.
[0082] In some embodiments of the present invention, after step 200, the method further includes:
[0083] Processing is performed according to the formal exposure time to obtain a fused image of at least two formal exposure images;
[0084] The fused image is processed using an image recognition algorithm.
[0085] For example, the application scenario is an under-screen fingerprint unlocking scenario, so the formal exposure image is a fingerprint image, and the image recognition algorithm is a fingerprint recognition algorithm. First, exposure processing is performed according to the formal exposure time to obtain at least two formal exposure images. At this time, the formal exposure image is a fingerprint image. Then, the at least two formal exposure images are fused to obtain a fused image of the at least two formal exposure images. Finally, the fingerprint recognition algorithm is used to perform fingerprint recognition processing on the fused image.
[0086] In the above embodiment, processing is performed according to the formal exposure time to obtain a fused image of at least two formal exposure images. Image recognition is then performed on the fused image, which can further improve the image recognition success rate because the fused image of at least two formal exposure images can improve image quality compared to a single formal exposure image.
[0087] In some embodiments of the present invention, the at least two formal exposure images include a first formal exposure image to an Nth formal exposure image, where N is an integer greater than or equal to 2; and the processing according to the formal exposure time to obtain a fused image of the at least two formal exposure images includes: steps 1 to 3.
[0088] Step 1: Expose the first row of the i-th formal exposure image, where i is greater than or equal to 1 and less than N.
[0089] The process from starting exposure to obtaining the exposed image is achieved pixel by pixel, that is, from starting exposure to obtaining the exposed image, only one pixel is exposed at a time. When all pixels are exposed, the exposed image can be obtained. For example, pixel by pixel exposure is performed row by row starting from the upper left corner of the image to the right.
[0090] Expose the first row of the i-th formal exposure image: expose the first row of the i-th formal exposure image pixel by pixel from left to right. For example, if i=1, expose the first row of the first formal exposure image pixel by pixel from left to right to obtain an exposure image of the pixels in the first row of the first formal exposure image.
[0091] Step 2: When the line interval time arrives, the second line of the i-th formal exposure image is exposed.
[0092] The row interval is the time interval between adjacent rows in the same exposure image when the exposure is started. For example, if the row interval is 49.4 us, if the start exposure time of the first row of the first formal exposure image is T1, then the start exposure time of the second row of the first formal exposure image is T1 + 49.4 us, that is, the exposure of the pixels in the second row of the first formal exposure image starts at T1 + 49.4 us.
[0093] The row interval time can be determined based on the hardware design of the sensor chip in the under-screen fingerprint module. For example, when the sensor chip is designed in hardware, the power-on time interval of pixels in adjacent rows is at least 49.4us, that is, the power-on time interval of pixels in adjacent rows cannot be shorter than 49.4us. If it is shorter than 49.4us, the sensor chip will not be able to meet this requirement. Therefore, in actual application, the row interval time can be designed to be greater than or equal to 49.4us. If the row interval time is 49.4us, it can be ensured that each row is powered on in time and row acquisition is started in time during the process of obtaining the exposure image, thereby reserving more exposure time for each row of pixels.
[0094] Step 3: When the image interval time arrives, the first row of the (i+1)th formal exposure image is exposed; the image interval time is obtained by subtracting the total row interval time from the formal exposure time, and the total row interval time is the sum of all row interval times corresponding to the same exposure image.
[0095] For example, the formal exposure time is 18.3ms, the row interval time is 49.4us, and there are 169 rows in total. Therefore, the total row interval time is 168×49.4=8.3ms. Subtract 8.3ms from 18.3ms to get the image interval time of 10ms. If the start exposure time of the first row of the first formal exposure image is T1, then the start exposure time of the first row of the second formal exposure image is T1+10ms.
[0096] For better explanation, take N=3, the line interval time is 49.4us, and the formal exposure time is 18.3ms as an example. First, the exposure process of the first line of the first formal exposure image starts at T1, then the exposure process of the second line of the first formal exposure image starts at T1+49.4us, and the exposure process of the third line of the first formal exposure image starts at T1+2×49.4us. At T1+10ms, the exposure of the first line of the first formal exposure image ends, and the exposure process of the first line of the second formal exposure image starts at T1+10ms+49.4us, and the exposure process of the third line of the second formal exposure image starts at T1+10ms+2×49.4us. At T1+10ms+10ms, the exposure of the first line of the second formal exposure image ends, and the exposure process of the first line of the third formal exposure image starts at T1+10ms+10ms. The exposure process of the second row of the third formal exposure image starts at T1+10ms+10ms+49.4us, the exposure process of the third row of the third formal exposure image starts at T1+10ms+10ms+2×49.4us, the exposure process of the 169th row of the first formal exposure image starts at T1+8.3ms, the exposure process of the 169th row of the second formal exposure image starts at T1+10ms+8.3ms, the exposure process of the 169th row of the third formal exposure image starts at T1+10ms+10ms+8.3ms, the exposure process of the first formal exposure image ends at T1+10ms+8.3ms+10ms, the exposure of the second formal exposure image ends at T1+10ms+10ms+8.3ms+10ms, and the exposure of the third formal exposure image ends at T1+10ms+10ms+8.3ms+10ms.
[0097] Through steps 1 to 3, exposure images of all rows from the first formal exposure image to the Nth formal exposure image can be obtained.
[0098] In the above embodiment, when multiple exposure images are required, the exposure is not carried out image by image, that is, the first formal exposure image is exposed first and then the second formal exposure image is exposed. Instead, a row-by-row exposure method is selected between images, that is, the exposure of the first row of the i+1th formal exposure image is started at the same time as the exposure of the first row of the i-th formal exposure image is completed, thereby saving exposure time and realizing rapid under-screen fingerprint recognition to a certain extent.
[0099] In some embodiments of the present invention, the processing according to the formal exposure time to obtain a fused image of at least two formal exposure images further includes: after the exposure of the first row of the first formal exposure image to the Nth formal exposure image is completed, fusing the first row of the first formal exposure image to the Nth formal exposure image to obtain a fused result of the first row; and combining the fusion results of all rows of the first formal exposure image to the Nth formal exposure image to obtain a fused image of at least two formal exposure images.
[0100] Taking N = 2 as an example, row fusion is illustrated. For example, weights w1 and w2 are preset. After the first row of the first and second formally exposed images is exposed, for pixel 1 and pixel 2 at the same coordinate position in the first and second formally exposed images, assuming that the image channel is single-channel, the pixel value of pixel 1 is S1, and the pixel value of pixel 2 is S2. Therefore, the fusion result of pixel 1 and pixel 2 is: S1×w1+S2×w2 (if the image channel is three-channel, the fusion result of each channel can be calculated separately). According to the above method, all corresponding pixels in the first and second formally exposed images are processed to obtain the fusion result of the first row.
[0101] After obtaining the fusion result of the first row, the fusion result of the first row is input into the processing sub-module in the control module for image recognition processing. After the fusion results of all rows are input into the processing sub-module, the processing sub-module combines the fusion results of all rows to obtain a fusion image of at least two formal exposure images, thereby realizing the fusion processing of at least two formal exposure images.
[0102] In the above embodiment, after obtaining the exposure image of the row, row fusion is also implemented accordingly to improve the fusion efficiency.
[0103] In some embodiments of the present invention, after processing the fused image using an image recognition algorithm, the method further includes:
[0104] If the image recognition algorithm fails to process the fused image, re-exposure is performed to obtain a fused image of M exposed images, and image recognition processing is performed on the fused image of M exposed images using the image recognition algorithm, where M is an integer greater than or equal to the at least two images.
[0105] For example, if the number of at least two images is r, then M is greater than or equal to r. If the fused image processing fails, in order to complete the under-screen fingerprint recognition processing as much as possible and improve the user experience, it is necessary to re-expose the M exposed images to obtain a fused image, and then successfully process the fused image using these M exposed images.
[0106] In one example, the number of re-exposed images remains unchanged, and successful image processing is ensured by increasing the exposure time, specifically including: M is an integer equal to the at least two images; if the image recognition algorithm fails to process the fused image, re-exposing to obtain a fused image of the M exposed images includes: if the image recognition algorithm fails to process the fused image, increasing the formal exposure time to obtain a target exposure time; performing exposure processing according to the target exposure time to obtain a fused image of the M exposed images.
[0107] For example, if the number of at least two images is r, then M is equal to r, the formal exposure time is t, and the target exposure time is t1, then t1 is greater than t.
[0108] Since the image recognition algorithm fails to process the fused image, it is possible that the formal exposure time is still not long enough, resulting in the brightness of the target image area in the formal exposure image still not reaching the preset brightness. Therefore, the formal exposure time is increased to obtain the target exposure time, and then exposure processing is performed according to the target exposure time to obtain a fused image of M exposure images. Among them, the method of performing exposure processing according to the target exposure time to obtain a fused image of M exposure images can be referred to the above embodiment and will not be described in detail here.
[0109] In another example, the exposure time of the re-exposure remains unchanged, and the image processing success is ensured by fusing more exposure images, specifically including: M is an integer greater than the at least two images; if the image recognition algorithm fails to process the fused image, re-exposure is performed to obtain a fused image of the M exposure images, including: if the image recognition algorithm fails to process the fused image, a fused image of the M exposure images is obtained according to the formal exposure time.
[0110] For example, if the number of at least two images is r, then M equals r. Since the image recognition algorithm failed to process the fused image, to further improve image quality, the number of exposure images can be increased to obtain a fused image with more exposure images. The method for obtaining a fused image from M exposure images according to the official exposure time can be found in the above embodiment and will not be described in detail here.
[0111] In the above embodiment, if the fused image processing fails, re-exposure is performed to obtain a fused image of the M exposed images, so that recognition can be successful through the fused image of the M exposed images, thereby improving user experience.
[0112] In some embodiments of the present invention, step 200 includes step 201 and step 202 .
[0113] Step 201 : Calculate the brightness of a target image area in a test exposure image, where the target image area is the area focused on by the image recognition algorithm.
[0114] The target image area is the area that the image recognition algorithm focuses on. The image quality of the target image area largely determines whether the image recognition algorithm can successfully recognize the image. That is, if the image quality of the target area is low, it is believed that the image recognition will most likely fail. If the image quality of the target area is high, it is believed that the image recognition will most likely succeed. The image quality of the target image area can be determined by the brightness of the target image area. For example, when the image is single-channel, the pixel values of each pixel in the target image area are first summed to obtain the pixel sum, and then the pixel sum is divided by the total number of pixels contained in the target image area to obtain the brightness of the target image area. When the image is multi-channel, the image can also be first converted to a grayscale image and then processed in the same way as the single-channel image.
[0115] Step 202 : obtaining a formal exposure time corresponding to the current light spot brightness of the display screen according to the preset brightness and the brightness of the target image area in the test exposure image.
[0116] The preset brightness is a pre-set brightness. When the brightness of the target image area in the test exposure image is close to the preset brightness, it is considered that the image quality of the test exposure image is good, and it is considered that the test exposure time can be well adapted to the brightness of the light spot. Therefore, it is necessary to compare the preset brightness with the brightness of the target image area in the test exposure image to determine whether the test exposure time can be well adapted to the brightness of the light spot, and thus obtain the formal exposure time based on the comparison result. For example, when the brightness of the target image area in the test exposure image is equal to the preset brightness, it is considered that there is no need to adjust the exposure time, and the test exposure time is directly used as the formal exposure time.
[0117] The preset brightness setting, for a single-channel image, can be set close to the maximum pixel value, for example, set it to 80% of the maximum pixel value.
[0118] In the above embodiment, the formal exposure time is determined according to the brightness of the area focused on by the image processing algorithm. Compared with determining the formal exposure time according to the brightness of the entire image, this embodiment has a higher image processing success rate and processing efficiency.
[0119] In some embodiments of the present invention, step 202 includes: if the preset brightness is greater than the brightness of the target image area in the test exposure image, increasing the test exposure time to obtain a formal exposure time corresponding to the current light spot brightness of the display screen.
[0120] If the preset brightness is greater than the brightness of the target image area in the test exposure image, this indicates that the exposure time of the target image area is not long enough, resulting in a relatively low brightness of the target image area in the test exposure image. Therefore, the test exposure time is increased to obtain a relatively higher brightness image through a longer exposure time. For example, the preset brightness is divided by the brightness of the target image area in the test exposure image to obtain the brightness ratio; the brightness ratio is multiplied by the test exposure time to obtain the official exposure time corresponding to the current spot brightness of the display screen.
[0121] In a further example, if the preset brightness is less than the brightness of the target image area in the test exposure image, the test exposure time is used as the official exposure time corresponding to the current light spot brightness of the display screen.
[0122] The preset brightness is lower than the brightness of the target image area in the test exposure image, indicating that the exposure time of the target image area is relatively long and the brightness of the target image area in the test exposure image is relatively high, and image processing can be performed to a certain extent.
[0123] In another further example, if the preset brightness is lower than the brightness of the target image area in the test exposure image, the test exposure time is reduced to obtain a formal exposure time corresponding to the current light spot brightness of the display screen.
[0124] The preset brightness is lower than the brightness of the target image area in the test exposure image, indicating that the exposure time of the target image area is relatively long, resulting in a relatively high brightness of the target image area in the test exposure image, or even overexposure. Therefore, the test exposure time is reduced to obtain a relatively lower brightness image through a shorter exposure time.
[0125] The test exposure time can also be adjusted by a step-by-step adjustment method. For example, the preset difference k1, difference k2, difference k3 and time differences H and M, where 0 <k1<k2,M> 0, if the difference between the preset brightness and the brightness of the target image area in the test exposure image is greater than 0, and is less than or equal to k1, then the test exposure time is increased by M to obtain the official exposure time. If the difference between the preset brightness and the brightness of the target image area in the test exposure image is greater than k1, and is less than or equal to k2, then the test exposure time is increased by 2M to obtain the official exposure time. If the difference between the preset brightness and the brightness of the target image area in the test exposure image is greater than k2, and is less than or equal to k3, then the test exposure time is increased by 3M to obtain the official exposure time. If the difference between the preset brightness and the brightness of the target image area in the test exposure image is greater than k3, then the test exposure time is increased by 4M to obtain the official exposure time. If the preset If the difference between the brightness and the brightness of the target image area in the test exposure image is greater than or equal to -k1 and is less than 0, then the test exposure time is subtracted by M to obtain the formal exposure time. If the difference between the preset brightness and the brightness of the target image area in the test exposure image is greater than or equal to -k2 and is less than -k1, then the test exposure time is subtracted by 2M to obtain the formal exposure time. If the difference between the preset brightness and the brightness of the target image area in the test exposure image is greater than or equal to -k3 and is less than -k2, then the test exposure time is subtracted by 3M to obtain the formal exposure time. If the difference between the preset brightness and the brightness of the target image area in the test exposure image is less than -k3, then the test exposure time is subtracted by 4M to obtain the formal exposure time.
[0126] The above embodiment realizes the determination of the formal exposure time, and enables the final determined formal exposure time to obtain an image with a brightness close to the preset brightness, thereby improving the image recognition success rate to a certain extent.
[0127] In some embodiments of the present invention, the target image area includes an image center area.
[0128] In some application scenarios, for example, in the application scenario of under-screen fingerprint recognition, the brightness of the center of the fingerprint image is higher than the brightness of the edge of the fingerprint image, and the brightness of the center of the fingerprint image gradually transitions to the brightness of the edge of the fingerprint image. The brightness of the center of the fingerprint image greatly affects the success rate of the image recognition algorithm. If the brightness of the center of the fingerprint image is low, then the overall brightness of the fingerprint image will not be high. Correspondingly, the overall image quality of the fingerprint image will also be relatively low, which will largely lead to image recognition failure. Therefore, determining the center area of the fingerprint image as the target image area is conducive to improving the image recognition success rate in the application scenario of under-screen fingerprint recognition. In addition, there is no need to judge the overall brightness of the fingerprint image, which can also improve processing efficiency.
[0129] In the above embodiment, the center area of the image is determined as the target image area, which is beneficial to improving the image recognition success rate and recognition efficiency in certain application scenarios.
[0130] In some embodiments of the present invention, the test exposure time is shorter than a production line calibration time, and the production line calibration time is an exposure time calculated during production line calibration.
[0131] The production line calibration time refers to the exposure time obtained by the electronic device manufacturer before the electronic device leaves the factory. For example, if the electronic device is a mobile phone, a simulated rubber finger is covered on the display area of the light spot on the mobile phone screen, and then the exposure processing is performed through the under-screen fingerprint module in the mobile phone to find an exposure time that can obtain higher image quality, and this exposure time is used as the production line calibration time. Since the production line calibration time is obtained during the production line calibration, under normal ambient light conditions, an exposure image with good image quality can usually be obtained through the production line calibration time. The test exposure time is shorter than the production line calibration time. For example, the test exposure time is set to 60% of the production line calibration time to achieve short test exposure.
[0132] In the above embodiment, the test exposure time is set to be shorter than the production line calibration time, so that the formal exposure time can be quickly determined through short-time exposure, which to a certain extent realizes rapid under-screen fingerprint recognition.
[0133] In some embodiments of the present invention, the test exposure time or the formal exposure time is used for exposure processing of an under-screen fingerprint module disposed below a display area of the light spot.
[0134] The under-screen fingerprint module is set below the display area of the light spot, for example, directly below. When an exposure trigger event is detected, the under-screen fingerprint module performs test exposure according to the test exposure time at the current light spot brightness of the display screen to obtain a test exposure image. Furthermore, the under-screen fingerprint module obtains the official exposure time corresponding to the current light spot brightness of the display screen based on the test exposure image, and then the under-screen fingerprint module performs exposure processing according to the official exposure time.
[0135] The above embodiment illustrates the application scenario of the exposure method: under-screen fingerprint recognition scenario.
[0136] In some embodiments of the present invention, Figure 2As shown, an exposure device 200 is provided for an electronic device with a display screen. The exposure device 200 includes: a metering unit 210, which is used to perform test exposure according to a test exposure time at the current light spot brightness of the display screen when an exposure trigger event is detected, to obtain a test exposure image; and a formal unit 220, which is used to obtain a formal exposure time corresponding to the current light spot brightness of the display screen based on the test exposure image, so as to use an image recognition algorithm to perform image recognition processing on the image obtained based on the formal exposure time.
[0137] In some embodiments of the present invention, the display screen has a fingerprint detection area, and the fingerprint detection area is a display area of the light spot.
[0138] In some embodiments of the present invention, the exposure device 200 further includes: a light spot brightness unit, configured to: obtain the brightness of the ambient light; and obtain the current light spot brightness according to the brightness of the ambient light.
[0139] In some embodiments of the present invention, the light spot brightness unit is specifically configured to: calculate the corresponding screen calculated brightness according to the brightness of the ambient light; and obtain the current light spot brightness according to the screen calculated brightness.
[0140] In some embodiments of the present invention, the light spot brightness unit is specifically used to: directly use the screen calculated brightness as the current light spot brightness; or, when the screen calculated brightness is greater than or equal to the target brightness value, use the screen calculated brightness as the current light spot brightness; when the screen calculated brightness is less than the target brightness value, use the target brightness value as the current light spot brightness.
[0141] In some embodiments of the present invention, the light spot brightness unit is specifically configured to obtain the brightness of ambient light through an ambient light sensor of the electronic device.
[0142] In some embodiments of the present invention, the exposure device 200 further includes: a direct recognition processing unit, configured to: perform exposure according to a formal exposure time to obtain a frame of formal exposure image; and perform image recognition processing on the frame of formal exposure image using an image recognition algorithm.
[0143] In some embodiments of the present invention, the exposure device 200 further includes: a fusion processing unit, configured to: perform processing according to the formal exposure time to obtain a fused image of at least two formal exposure images; and process the fused image using an image recognition algorithm.
[0144] In some embodiments of the present invention, the at least two formal exposure images include the first formal exposure image to the Nth formal exposure image, where N is an integer greater than or equal to 2; the fusion processing unit is specifically used to: perform exposure processing on the first row of the i-th formal exposure image, i is greater than or equal to 1, and i is less than N; when the row interval time arrives, perform exposure processing on the second row of the i-th formal exposure image; when the image interval time arrives, perform exposure processing on the first row of the (i+1)th formal exposure image; the row interval time is the time interval between adjacent rows in the same exposure image when starting exposure, the image interval time is obtained by subtracting the total row interval time from the formal exposure time, and the total row interval time is the sum of all row interval times corresponding to the same exposure image.
[0145] In some embodiments of the present invention, the fusion processing unit is specifically used to: after the exposure of the first row of the first formal exposure image to the Nth formal exposure image is completed, fuse the first row of the first formal exposure image to the Nth formal exposure image to obtain a fusion result of the first row; combine the fusion results of all rows in the first formal exposure image to the Nth formal exposure image to obtain a fused image of at least two formal exposure images.
[0146] In some embodiments of the present invention, the formal unit 220 is specifically used to: calculate the brightness of the target image area in the test exposure image, where the target image area is the area of interest of the image recognition algorithm; and obtain the formal exposure time corresponding to the current light spot brightness of the display screen based on the preset brightness and the brightness of the target image area in the test exposure image.
[0147] In some embodiments of the present invention, the formal unit 220 is specifically used to: if the preset brightness is greater than the brightness of the target image area in the test exposure image, increase the test exposure time to obtain a formal exposure time corresponding to the current light spot brightness of the display screen.
[0148] In some embodiments of the present invention, the target image area includes an image center area.
[0149] In some embodiments of the present invention, the test exposure time or the formal exposure time is used for exposure processing of an under-screen fingerprint module disposed below a display area of the light spot.
[0150] In some embodiments of the present invention, Figure 3As shown, an electronic device is provided, which may specifically be a terminal or a server. The electronic device includes a display screen. When it is an under-screen fingerprint recognition scenario, the electronic device may further include an under-screen fingerprint module. The electronic device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the electronic device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement an exposure method. The non-volatile memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM) or an external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM). The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform the exposure method. It will be understood by those skilled in the art that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0151] The exposure method provided in this application can be implemented in the form of a computer program. The computer program can be used in Figure 3 The electronic device shown in FIG. 2 is operated on the electronic device. The memory of the electronic device can store various program templates constituting the exposure device 200. For example, the light metering unit 210 and the formal unit 220.
[0152] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0153] When an exposure trigger event is detected, a test exposure is performed according to the test exposure time at the current light spot brightness of the display screen to obtain a test exposure image;
[0154] According to the test exposure image, a formal exposure time corresponding to the current light spot brightness of the display screen is obtained, so that an image recognition algorithm is used to perform image recognition processing on the image obtained based on the formal exposure time.
[0155] In some embodiments of the present invention, a computer-readable storage medium is provided, storing a computer program, which, when executed by a processor, causes the processor to perform the following steps:
[0156] When an exposure trigger event is detected, a test exposure is performed according to the test exposure time at the current light spot brightness of the display screen to obtain a test exposure image;
[0157] According to the test exposure image, a formal exposure time corresponding to the current light spot brightness of the display screen is obtained, so that an image recognition algorithm is used to perform image recognition processing on the image obtained based on the formal exposure time.
[0158] In some embodiments of the present invention, a computer program product is provided, including computer program instructions, which, when read and executed by a processor, execute an exposure method. For example, when an exposure trigger event is detected, test exposure is performed according to a test exposure time at the current light spot brightness of the display screen to obtain a test exposure image; based on the test exposure image, a formal exposure time corresponding to the current light spot brightness of the display screen is obtained, so that image recognition processing is performed on the image obtained based on the formal exposure time using an image recognition algorithm.
[0159] It should be noted that the above-mentioned exposure method, exposure device, computer program product, electronic device and computer-readable storage medium belong to a general inventive concept, and the contents in the embodiments of the exposure method, exposure device, computer program product, electronic device and computer-readable storage medium are applicable to each other.
[0160] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0161] In addition, the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0162] Furthermore, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0163] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any actual relationship or order between these entities or operations.
[0164] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, various modifications and variations of the present application are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. An exposure method, characterized in that: For an electronic device having a display screen, the exposure method includes: When an exposure trigger event is detected, a test exposure is performed according to the test exposure time at the current light spot brightness of the display screen to obtain a test exposure image; According to the test exposure image, a formal exposure time corresponding to the current light spot brightness of the display screen is obtained, so as to perform image recognition processing on the image obtained based on the formal exposure time using an image recognition algorithm; After obtaining the formal exposure time corresponding to the current light spot brightness of the display screen according to the test exposure image, the method further includes: Expose according to the formal exposure time to obtain a fused image of at least two formal exposure images; Processing the fused image using an image recognition algorithm; The step of exposing according to the formal exposure time to obtain a fused image of at least two formal exposure images includes: The exposure of the first line of the (i+1)th main exposure image is started at the same time as the exposure of the first line of the i-th main exposure image is completed.
2. The exposure method according to claim 1, wherein The display screen has a fingerprint detection area, and the fingerprint detection area is the display area of the light spot.
3. The exposure method according to claim 1 or 2, wherein: Also includes: Get the brightness of the ambient light; The current light spot brightness is obtained according to the brightness of the ambient light.
4. The exposure method according to claim 3, wherein: The obtaining of the current light spot brightness according to the brightness of the ambient light includes: Calculating the corresponding screen brightness according to the brightness of the ambient light; The current light spot brightness is obtained according to the screen calculation brightness.
5. The exposure method according to claim 4, wherein: The obtaining of the current spot brightness according to the screen brightness calculation includes: The calculated screen brightness is directly used as the current spot brightness; or, When the calculated screen brightness is greater than or equal to the target brightness value, the calculated screen brightness is used as the current light spot brightness; when the calculated screen brightness is less than the target brightness value, the target brightness value is used as the current light spot brightness.
6. The exposure method according to claim 3, wherein: The obtaining of the brightness of the ambient light includes: The brightness of the ambient light is obtained through the ambient light sensor of the electronic device.
7. The exposure method according to claim 1 or 2, further comprising: after obtaining the formal exposure time corresponding to the current light spot brightness of the display screen based on the test exposure image; Expose according to the formal exposure time to obtain a frame of formal exposure image; An image recognition algorithm is used to perform image recognition processing on the one frame of formal exposure image.
8. The exposure method according to claim 1, wherein The at least two formal exposure images include a first formal exposure image to an Nth formal exposure image, where N is an integer greater than or equal to 2; The processing according to the formal exposure time to obtain a fused image of at least two formal exposure images includes: Performing exposure processing on the first row of the i-th formal exposure image, where i is greater than or equal to 1 and i is less than N; When the line interval time arrives, the second line of the i-th formal exposure image is exposed; When the image interval time arrives, the first row of the (i+1)th formal exposure image is exposed; the row interval time is the time interval between adjacent rows in the same exposure image when the exposure is started, and the image interval time is obtained by subtracting the total row interval time from the formal exposure time, and the total row interval time is the sum of all row interval times corresponding to the same exposure image.
9. The exposure method according to claim 8, wherein: The processing according to the formal exposure time to obtain a fused image of at least two formal exposure images further includes: After the first row of the first formal exposure image to the Nth formal exposure image is exposed, the first row of the first formal exposure image to the Nth formal exposure image is fused to obtain a fusion result of the first row; The fusion results of all rows in the first formal exposure image to the Nth formal exposure image are combined to obtain a fused image of at least two formal exposure images.
10. The exposure method according to claim 1 or 2, wherein: The step of obtaining the formal exposure time corresponding to the current light spot brightness of the display screen according to the test exposure image includes: Calculating the brightness of a target image area in the test exposure image, where the target image area is the area of interest for the image recognition algorithm; According to the preset brightness and the brightness of the target image area in the test exposure image, the formal exposure time corresponding to the current light spot brightness of the display screen is obtained.
11. The exposure method according to claim 10, wherein: The step of obtaining a formal exposure time corresponding to the current light spot brightness of the display screen according to the preset brightness and the brightness of the target image area in the test exposure image includes: If the preset brightness is greater than the brightness of the target image area in the test exposure image, the test exposure time is increased to obtain a formal exposure time corresponding to the current light spot brightness of the display screen.
12. The exposure method according to claim 10, wherein: The target image area includes the image center area.
13. The exposure method according to claim 1 or 2, wherein: The test exposure time or the formal exposure time is used for exposure processing of the under-screen fingerprint module arranged below the display area of the light spot.
14. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the exposure method according to any one of claims 1 to 13 are implemented when the processor executes the computer program.
15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, the steps of the exposure method according to any one of claims 1 to 13 are executed.
16. A computer program product, characterized in that The invention comprises computer program instructions, which, when read and executed by a processor, execute the exposure method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Exposure control method and device and electronic equipment
CN111757015A
Fingerprint acquisition method and device, storage medium and electronic equipment
CN111783747A