System, method and device for determining fingerprint unlocking time and storage medium

Through a system that combines image acquisition and feedback devices, the initial and completed image frames in the video stream of the terminal fingerprint unlock test are identified, which solves the problems of low efficiency and poor accuracy of fingerprint unlock tests in the existing technology, and achieves more efficient and accurate Obtain test results.

CN118734278APending Publication Date: 2024-10-01BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310316575.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the output efficiency of fingerprint unlocking test results is low and the accuracy is poor. Errors are prone to occur when manually screening video records, which affects the accuracy of the final test results.

Method used

Using an image acquisition device and a feedback device combined with a processing device, the video stream of the terminal's fingerprint unlocking test is obtained, the brightness change of the feedback device is used to identify the startup state of the unlocking test, and the fingerprint unlocking time is determined by combining the initial and completed image frames in the video stream.

Benefits of technology

It improves the efficiency and accuracy of obtaining fingerprint unlocking test results, reduces manual errors, and ensures the accuracy of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734278A_ABST
    Figure CN118734278A_ABST
Patent Text Reader

Abstract

The invention relates to a system, method and device for determining fingerprint unlocking time and a storage medium. The system for determining the fingerprint unlocking time comprises an image acquisition device, an image feedback device and a processing device. The image acquisition device is used for acquiring a target video stream; the feedback device is used for feeding back the starting state of the fingerprint unlocking test; the processing device is used for acquiring a target image set. According to the method and the device, the corresponding image frame started by the fingerprint unlocking test can be determined, and the fingerprint unlocking test result is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of automated detection technology, and in particular to a system, method, device and storage medium for determining fingerprint unlocking time. Background Art

[0002] With the development of terminal technology, fingerprint unlocking technology is being used more and more widely. Therefore, it is increasingly important to test fingerprint unlocking before the terminal leaves the factory.

[0003] In the related art, the fingerprint unlocking test usually needs to collect the following key information, including: the time information of unlocking start, the time information of fingerprint module start, and the time information of terminal screen lighting. To obtain the above information, a high-frame camera is usually used for video recording, and then the image frames containing key information are manually screened.

[0004] On the one hand, this manual screening method has low efficiency in outputting test results. On the other hand, the screening personnel can only speculate the moment of unlocking and starting through a series of image frames of fingers touching the screen in the video recording, combined with conventional technical experience. The moment information obtained in this way is prone to errors, affecting the accuracy of the final test results. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the present disclosure provides a system, method, device and storage medium for determining fingerprint unlocking time.

[0006] According to a first aspect of an embodiment of the present disclosure, there is provided a system for determining fingerprint unlocking time, comprising: an image acquisition device, a feedback device, and a processing device;

[0007] The image acquisition device is used to obtain a target video stream, which includes: image information corresponding to the fingerprint unlocking test performed by the terminal and image information corresponding to the feedback device;

[0008] The feedback device is used to feedback the startup state of the terminal for the fingerprint unlocking test, and the feedback device is provided with a brightness generation module. In response to the terminal starting the fingerprint unlocking test, the brightness generation module changes from a first brightness state to a second brightness state;

[0009] The processing device is used to obtain the target video stream from the image acquisition device;

[0010] The target video stream includes: an initial image frame and a completed image frame, wherein the initial image frame is an image frame corresponding to the brightness generation module changing from a first brightness state to a second brightness state, and the completed image frame is an image frame corresponding to the screen display area of ​​the terminal changing from an off state to a lit state;

[0011] The processing device determines a terminal fingerprint unlocking time based on the initial image frame and the completed image frame.

[0012] According to a second aspect of an embodiment of the present disclosure, a method for determining fingerprint unlocking time is provided, which is applied to the system for determining fingerprint unlocking time in the first aspect, including:

[0013] Obtain a target video stream, the target video stream being obtained by a preset image acquisition device, the target video stream comprising: image information corresponding to the fingerprint unlocking test performed by the terminal and image information corresponding to the feedback device;

[0014] Determine an initial image frame in the target video stream, and determine a completed image frame in the target video stream, wherein the completed image frame is an image frame corresponding to a change in a screen display area of ​​the terminal from an off state to a lit state;

[0015] Based on the initial image frame and the completed image frame, a fingerprint unlocking time of the terminal is determined.

[0016] In one implementation, before determining the initial image frame, the method further includes:

[0017] Based on the target video stream, a first area and a second area are obtained, wherein the first area is an area corresponding to the feedback device in any image frame of the target video stream, and the second area is an area corresponding to the screen display area of ​​the terminal in any image frame of the target video stream.

[0018] In yet another implementation, determining the initial image frame includes:

[0019] Acquire a first brightness value of any image frame, where the first brightness value is a brightness value corresponding to the first area in the any image frame;

[0020] Acquire a first brightness value set, the first brightness value set comprising: the first brightness values ​​respectively corresponding to m subsequent frame images that are sequentially adjacent to the current frame image, where m is an integer greater than or equal to 1;

[0021] A weighted average calculation is performed on the first brightness value corresponding to the current image frame and the first brightness value set to obtain a first calculation result. If the first calculation result is greater than a first preset threshold, the current image frame is determined to be the initial image frame.

[0022] In yet another implementation manner, the determining of the completed image frame includes:

[0023] Obtaining an image parameter value corresponding to the second area, wherein the image parameter is used to indicate the end state of the fingerprint unlocking test performed by the terminal.

[0024] If the image parameter value is greater than a second preset threshold, it is determined that the image frame corresponding to the image parameter is a completed image frame.

[0025] In yet another implementation, before obtaining the first brightness value, the method further includes:

[0026] Acquire any one of the images and a first image, where the first image is a frame image before a current frame image of any one of the images in the target video stream;

[0027] Performing differential calculation on the grayscale values ​​corresponding to the first area in the first image and the first area in any one of the images, respectively, to obtain a first brightness value change, and determining;

[0028] The first brightness value change is greater than a preset first change threshold.

[0029] According to a third aspect of an embodiment of the present disclosure, a device for determining fingerprint unlocking time is provided, which is applied to the method for determining fingerprint unlocking time in the second aspect, and the device includes:

[0030] An acquisition unit is used to acquire a target video stream, wherein the target video stream is obtained by a preset image acquisition device, and the target video stream includes: image information corresponding to the fingerprint unlocking test performed by the terminal and image information corresponding to the feedback device;

[0031] a processing unit, configured to determine an initial image frame in the target video stream and a completed image frame in the video stream, wherein the initial image frame is an image frame corresponding to the change of the feedback device from a first brightness state to a second brightness state, and the completed image frame is an image frame corresponding to the change of the screen display area of ​​the terminal from an off state to a lit state;

[0032] Used to determine the fingerprint unlocking time of the terminal based on the initial image frame and the completed image frame.

[0033] In one implementation, before the processing unit is used to determine the initial image frame, it further includes:

[0034] Based on the target video stream, a first area and a second area are obtained, wherein the first area is an area corresponding to the feedback device in any image frame of the target video stream, and the second area is an area corresponding to the screen display area of ​​the terminal in any image frame of the target video stream.

[0035] In yet another embodiment, the processing unit is used to determine the initial image frame, including:

[0036] Acquire a first brightness value of any image frame, where the first brightness value is a brightness value corresponding to the first area in the any image frame;

[0037] Acquire a first brightness value set, the first brightness value set comprising: the first brightness values ​​respectively corresponding to m subsequent frame images that are sequentially adjacent to the current frame image, where m is an integer greater than or equal to 1;

[0038] A weighted average calculation is performed on the first brightness value corresponding to the current image frame and the first brightness value set to obtain a first calculation result. If the first calculation result is greater than a first preset threshold, the current image frame is determined to be the initial image frame.

[0039] In yet another embodiment, the processing unit is used to determine the completed image frame, including:

[0040] Obtaining an image parameter value corresponding to the second area, wherein the image parameter is used to indicate the end state of the fingerprint unlocking test performed by the terminal.

[0041] If the image parameter value is greater than a second preset threshold, it is determined that the image frame corresponding to the image parameter is a completed image frame.

[0042] In yet another embodiment, before the processing unit obtains the first brightness value, the method further includes:

[0043] Acquire any one of the images and a first image, where the first image is a frame image before a current frame image of any one of the images in the target video stream;

[0044] Performing differential calculation on the grayscale values ​​corresponding to the first area in the first image and the first area in any one of the images, respectively, to obtain a first brightness value change, and determining;

[0045] The first brightness value change is greater than a preset first change threshold.

[0046] According to a fourth aspect of an embodiment of the present disclosure, there is provided a device for determining fingerprint unlocking time, including: a processor;

[0047] a memory for storing processor executable instructions;

[0048] The processor is configured to: execute the method for determining fingerprint unlocking time as described in any one of the second aspects.

[0049] According to a fifth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of a device, the device is enabled to execute the method for determining fingerprint unlocking time described in the second aspect or any one of the embodiments of the second aspect.

[0050] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: for an external feedback device of a terminal performing a fingerprint unlocking test, the corresponding image frame for starting the fingerprint unlocking test is determined based on the brightness change of the feedback device. Compared with related technologies, the time point corresponding to the start of the fingerprint unlocking test is obtained more accurately, thereby making the overall result more accurate.

[0051] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0053] Figure 1 The figure is a schematic diagram of a fingerprint unlocking test scenario in a related technology according to an exemplary embodiment.

[0054] Figure 2a The invention is a block diagram of a system for determining fingerprint unlocking time according to an exemplary embodiment.

[0055] Figure 2b The figure is a schematic diagram of a system application scenario for determining fingerprint unlocking time according to an exemplary embodiment.

[0056] Figure 3 The present invention is a flowchart of a method for determining fingerprint unlocking time according to an exemplary embodiment.

[0057] Figure 4 The invention is a block diagram showing a device for determining fingerprint unlocking time according to an exemplary embodiment.

[0058] Figure 5 is a block diagram of a device for determining fingerprint unlocking time according to an exemplary embodiment DETAILED DESCRIPTION

[0059] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0060] The system for determining fingerprint unlocking time provided by the embodiment of the present disclosure is applicable to fingerprint unlocking test scenarios before a terminal leaves the factory. With the development of terminal technology, fingerprint unlocking technology is increasingly widely used. Therefore, before a terminal leaves the factory, fingerprint unlocking testing is becoming increasingly important.

[0061] In the related art, the fingerprint unlocking test usually needs to collect the following key information, including: the time information of unlocking start, the time information of fingerprint module start, and the time information of terminal screen lighting. To obtain the above information, image acquisition equipment, such as high-frame cameras, are usually used to record the video, and then the image frames containing the key information are manually screened, and then the corresponding fingerprint unlocking test results are obtained according to the screened time information.

[0062] It is understandable that if Figure 1 As shown, Figure 1 FIG. 1 is a schematic diagram of a fingerprint unlocking scenario in a related technology according to an exemplary embodiment. Figure 1 In the figure, terminal 101 represents a terminal for performing a fingerprint unlocking test; the display area 103 of the terminal 101 mainly includes two areas, a fingerprint unlocking area 104, and other areas 102 in the display screen except the fingerprint unlocking area. Figure 1 The image acquisition device 100 for acquiring the video stream of the fingerprint unlocking test process is also included. It is understandable that the shooting field of view 105 of the image in the video stream should include the unlocking finger and the terminal 101. The video stream content acquired by the image acquisition device 100 needs to include at least: the process from the unlocking finger successfully contacting the unlocking module to the display desktop of the terminal 101 lighting up.

[0063] Regarding the unlocking start time, it can be understood that it is the start time of the fingerprint unlocking test, which means that the unlocking finger of the unlocking person successfully contacts the fingerprint unlocking module of the terminal, that is, Figure 1 The unlocking finger successfully contacts the fingerprint unlocking area 104 to form a circuit conduction moment; the fingerprint module startup moment refers to the fingerprint verification work after the fingerprint unlocking module of the terminal is started. In the actual test scenario, you can see that the indicator light at the corresponding position of the fingerprint module lights up, that is, Figure 1 The moment when the fingerprint-shaped indicator light pre-set at the fingerprint unlocking area 104 or the light spot in the fingerprint unlocking area 104 is lit up; the moment when the terminal screen is lit up refers to the moment when the terminal screen displays the corresponding display screen after the fingerprint module verifies the fingerprint, that is, Figure 1 In the embodiment, other areas 102 of the display screen except the fingerprint unlocking area light up.

[0064] This manual screening method, on the one hand, uses manual screening of the video stream of the fingerprint unlocking test, which has low efficiency in outputting the test results; on the other hand, the screening personnel can only use a series of image frames of the finger touching the screen in the video record, combined with conventional technical experience to infer the moment when the unlocking is started. The moment information obtained in this way is prone to errors, affecting the accuracy of the final test results. Furthermore, although it is possible to use a high-frame camera with multiple angles to specifically obtain information at different moments and obtain multiple video streams of the fingerprint unlocking test of the same terminal, when the final result is solved, it is necessary to integrate and align the multiple video streams, and it is easy to produce frame errors when aligning the video, thus affecting the accuracy of the final test results.

[0065] In view of this, an embodiment of the present disclosure provides a system for determining the fingerprint unlocking time. In this system, a feedback device is connected to the terminal, and the start state of the fingerprint unlocking test is identified based on the signal fed back by the feedback device. Actions that are not conducive to observation are expressed by light signals that are more conducive to observation. Then, the corresponding processing device is combined to identify specific frames of the video stream, and the unlocking start time information can be efficiently and accurately obtained in a unique video stream, thereby improving the efficiency and accuracy of obtaining the terminal fingerprint unlocking test results.

[0066] Figure 2a is a block diagram of a system for determining fingerprint unlocking time according to an exemplary embodiment. Figure 2a As shown, in the system for determining fingerprint unlocking time, the following devices are included: an image acquisition device 201, a feedback device 202, and a processing device 203;

[0067] The image acquisition device 201 is used to obtain a target video stream, which includes: image information corresponding to the fingerprint unlocking test performed by the terminal and image information corresponding to the feedback device;

[0068] In the embodiments of the present disclosure, Figure 2b As shown, Figure 2b It is a schematic diagram of a system application scenario for determining fingerprint unlocking time according to an exemplary embodiment, wherein the image acquisition device 210 includes: a high-frame camera or other device capable of acquiring fingerprint unlocking test images. The target video stream is a video of the terminal 211 performing an unlocking test captured by the image acquisition device 210. It can be understood that the image acquisition of the feedback device 217 is also included in the shooting field of view 215 of the image acquisition device 210. Therefore, in addition to the video stream of the terminal 211 performing the fingerprint unlocking test, the target video stream also includes the video stream of the feedback device 217.

[0069] The feedback device 217 is used to feedback the startup state of the fingerprint unlocking test of the terminal 211. The feedback device 217 is provided with a brightness generation module 216. In response to the terminal starting the fingerprint unlocking test, the brightness generation module 216 changes from a first brightness state to a second brightness state;

[0070] In the embodiment of the present disclosure, the feedback device 217 is expressed in the form of: an external circuit with a light emitting diode (LED) or other device that can feedback the terminal 211 on the start-up state of the fingerprint unlocking test. The feedback device 217 includes: a brightness generating module 216 and a corresponding external circuit 218. Among them, the brightness generating module 216 is expressed in the form of an LED, or other device that can release a light signal with a brightness that meets the preset requirements. The corresponding external circuit 218 includes a wired transmission circuit or other wireless sensing circuit that can realize signal transmission.

[0071] The first brightness state may be in the form of low brightness or a state where the brightness generating module 216 does not release brightness. It is understood that the low brightness means that the brightness released by the brightness generating module 216 is lower than a preset threshold value, and the setting of this threshold value can be actually adjusted according to the implementation effect of the solution.

[0072] The second brightness state may be in the form of high brightness or the state where the brightness generating module 216 releases brightness. It is understood that the high brightness means that the brightness released by the brightness generating module 216 is higher than another preset threshold value, and the setting of this threshold value can be actually adjusted according to the implementation effect of the solution.

[0073] Exemplarily, if the first brightness state is defined as a low brightness state, the corresponding second brightness state is a high brightness state; if the first brightness state is defined as a state of not releasing brightness, the corresponding second brightness state is a state of releasing brightness.

[0074] The processing device 219 is used to obtain the target video stream from the image acquisition device 210, and obtain a target image set based on the target video stream.

[0075] The target video stream includes: an initial image frame and a completed image frame, wherein the initial image frame is an image frame corresponding to the brightness generation module 216 changing from a first brightness state to a second brightness state, and the completed image frame is an image frame corresponding to the screen display area of ​​the terminal changing from an off state to a lit state.

[0076] The processing device 219 determines the terminal fingerprint unlocking time based on the initial image frame and the completion image frame.

[0077] In the embodiment of the present disclosure, the processing device 219 includes a computer device capable of performing image processing and image feature recognition. Figure 2b As shown, it is used to receive the video stream 220, namely the target video stream, acquired by the image acquisition device 210. It can be understood that, for the target video stream, based on the set image recognition algorithm, it is possible to acquire a specific image frame.

[0078] For example, if the image recognition algorithm is set based on the frame difference brightness value in the video stream, then the image frame corresponding to the state where the brightness generation module 216 changes from low brightness to high brightness or from a non-released brightness state to a released brightness state can be obtained in the target video stream. Since the brightness state change of the brightness generation module 216 represents the start of the fingerprint unlocking test, the image frame where the brightness state of the brightness generation module 216 changes is determined to be the initial image frame.

[0079] It can be understood that the screen display area 213 of the terminal 211 mainly includes two areas, the fingerprint unlocking area 214, and the other areas 212 of the display screen except the fingerprint unlocking area. During the fingerprint unlocking test, the other areas 212 except the fingerprint unlocking area light up (that is, the display screen desktop of the terminal lights up), which can represent the end of the fingerprint unlocking test. That is, when the area 212 lights up, the screen display area 213 of the terminal 211 changes from an off state to a lit state, indicating that the fingerprint unlocking test is over.

[0080] It is understandable that the off state can also be replaced by a state in which the screen display area 213 is in low brightness. The low brightness means that the brightness of the screen display area 213 is lower than a preset threshold (for example, the terminal is in power saving mode, etc.). The setting of this part of the threshold can be actually adjusted according to the implementation effect of the scheme. It should be noted that the preset threshold described here is set for the brightness judgment of the screen display area 213, and is independent of the preset threshold set for the brightness judgment of the brightness generating module 216 mentioned above. The off state is a state in which no pixels in the screen display area 213 are lit.

[0081] It is understandable that the lighting state includes that the screen display area 213 is in the screen lighting state. The screen lighting state refers to the screen display area 213, the number of pixels that are lit is greater than a preset threshold, and the screen display area 213 is determined to be lit. It is understandable that the screen display area 213 is composed of a pixel array, and the process of lighting up the screen display area is essentially the process of lighting up the pixels. In the actual lighting scene, the pixel lighting process is sequential, that is, in the pixel array, in response to the screen lighting instruction, the pixels can be lit up row by row from bottom to top or according to other lighting logics. Therefore, when the number of lit pixels or the proportion of the number exceeds a preset threshold, it can be determined that the screen display area 213 has reached the screen lighting state.

[0082] It is understandable that the preset threshold described here is a preset threshold, and the setting of this part of the threshold can be actually adjusted according to the implementation effect of the scheme. It should be noted that the preset threshold described here is set for determining whether the screen of the screen display area 213 is lit, and is independent of the preset threshold set for the brightness judgment of the brightness generating module 216 and the preset threshold set for the brightness judgment of the screen display area 213.

[0083] Based on the same reasons as above, the image frame corresponding to the screen display area 213 of the terminal 211 changing from an off state or a low brightness state to a lit state is obtained, that is, the image frame representing the end of the fingerprint unlocking test, that is, the completion image frame, is obtained.

[0084] It can be understood that since the initial image frame representing the start of the fingerprint unlocking test and the completed image frame representing the end of the fingerprint unlocking test have been obtained, and the frame rate of the image acquisition device 210 is known, the fingerprint unlocking time can be solved according to the above content with the help of a timing device, specifically including:

[0085] Respectively obtain the frame number a of the initial image frame and the frame number b of the completed image frame, where a and b are integers greater than or equal to 1, and b is greater than a;

[0086] Obtaining a frame rate F of the image acquisition device 210, where F is greater than 0;

[0087] The fingerprint unlocking time t=(ba) / F. The above embodiments of the present disclosure involve a system for determining the fingerprint unlocking time, which connects a feedback device to the terminal and identifies the start state of the fingerprint unlocking test based on the signal fed back by the feedback device, and displays the action that is not conducive to observation through a light signal that is more conducive to observation, and then combines with the corresponding processing device to identify specific frames of the video stream, so as to efficiently and accurately obtain the unlocking start time information in the unique video stream, thereby improving the efficiency and accuracy of obtaining the terminal fingerprint unlocking test results.

[0088] Based on the same concept, the embodiment of the present disclosure also provides a method for determining fingerprint unlocking time.

[0089] Figure 3 A flowchart of a method for determining fingerprint unlocking time according to an exemplary embodiment is shown. Figure 3 As shown, the method for determining the fingerprint unlocking time includes:

[0090] In step S301, a target video stream is obtained, where the target video stream is obtained by a preset image acquisition device, and the target video stream includes: image information corresponding to the fingerprint unlocking test performed by the terminal and image information corresponding to the feedback device.

[0091] In the embodiments of the present disclosure, the acquisition of the target video stream can be obtained by shooting with a pre-set high-frame camera. The video stream shot by the high-frame camera needs to include the entire process of the terminal performing the fingerprint unlocking test, as well as the image information of the preset feedback device in the video stream during the test. In this way, by observing the image information of the preset feedback device in the target video stream, the state of the feedback device corresponding to each image frame in the target image stream can be determined, so as to facilitate the acquisition of the image frame corresponding to the characteristic change of the feedback device.

[0092] It is understandable that the terminal includes mobile phones, tablet computers and other terminal products with fingerprint unlocking capabilities and fingerprint unlocking testing requirements.

[0093] In step S302, an initial image frame is determined in the target image stream, and a completed image frame is determined based on the video stream, wherein the initial image frame is an image frame corresponding to the feedback device changing from a first brightness state to a second brightness state, and the completed image frame is an image frame corresponding to the screen display area of ​​the terminal changing from an off state to a lit state.

[0094] In an embodiment of the present disclosure, the determination of the initial image frame can be determined based on the release state of the start signal of the feedback device. For example, taking the release of the light signal by the feedback device as an example, when the feedback device releases the light signal during the test, the brightness of the corresponding image frame in the target video stream will change compared with the previous frame of the image, that is, it will become brighter relative to the previous frame of the image, or only the brightness change will occur at the position of the feedback device in the image, that is, the position of the feedback device in the image will become brighter relative to the previous frame of the image. Since the issuance of the start signal represents the start of the fingerprint unlocking test, the image frame in which the feedback device releases the light signal corresponds to the start time of the terminal for the fingerprint unlocking test. In this way, based on the influence of the feedback device releasing the light signal on the image brightness, the image frame corresponding to the start of the fingerprint unlocking test can be accurately obtained, and then the start time information of the fingerprint unlocking test can be obtained, thereby improving the accuracy of the test results.

[0095] In an embodiment of the present disclosure, the determination of the completed image frame can be determined based on the display state of the screen display area of ​​the terminal. For example, the display state corresponding to the screen display area before the terminal completes fingerprint unlocking includes: a low-brightness lock screen display state or a no-brightness lock screen display state (i.e., the screen is off), and the display state corresponding to the screen display area after the terminal completes fingerprint unlocking includes: a screen-lit display state. The screen display area of ​​the terminal changes from a low-brightness lock screen display state or a no-brightness lock screen display state to a screen-lit state. It can be understood that when the screen lights up, it means that the fingerprint unlocking process is over. Therefore, the image frame corresponding to the lighting of the terminal display screen, that is, the screen lighting moment of the terminal, also corresponds to the end moment of the terminal for the fingerprint unlocking test. In this way, based on the influence of the image brightness when the terminal display screen lights up, the image frame corresponding to the lighting of the terminal display screen can be accurately obtained, and then the end moment information of the fingerprint unlocking test can be obtained, thereby improving the accuracy of the test results.

[0096] It is understandable that even if the unlocking fails due to other reasons such as mismatch of the unlocking fingerprint, the terminal display screen will light up and display the corresponding unlocking failure image, and the display of the corresponding unlocking failure image is also one of the manifestations of the lighting state of the terminal screen.

[0097] In step S303, the fingerprint unlocking time of the terminal is determined based on the initial image frame and the completion image frame.

[0098] In the embodiment of the present disclosure, since the initial image frame representing the start of the fingerprint unlocking test and the completed image frame representing the end of the fingerprint unlocking test have been acquired, and the frame rate of the image acquisition device is known, the fingerprint unlocking time is solved according to the above content, specifically including:

[0099] Respectively obtain the frame number a of the initial image frame and the frame number b of the completed image frame, where a and b are integers greater than or equal to 1, and b is greater than a;

[0100] Obtaining a frame rate F of the image acquisition device 210, where F is greater than 0;

[0101] The fingerprint unlocking time t=(ba) / F.

[0102] In this way, the overall fingerprint unlocking time can be solved based on the results of the initial image frame and the completed image frame, providing data support for the test result output and ensuring the diversity of the test result output categories.

[0103] In one example, before determining the initial image frame, the method further includes:

[0104] Based on the target video stream, a first area and a second area are obtained, wherein the first area is an area corresponding to the feedback device in any image frame of the target video stream, and the second area is an area corresponding to the screen display area of ​​the terminal in any image frame of the target video stream.

[0105] In the disclosed embodiment, for the identification of the first area and the second area, feature recognition in a visual algorithm can usually be used to capture the outer contour features of the first area and the second area respectively. For example, for the first area, usually, since the shape of the feedback device is more complicated than a conventional figure (due to the existence of an external circuit, it is usually an irregular figure that is not conducive to the capture of a visual algorithm), and in order to avoid the signal released by the feedback device being too strong, which causes the corresponding image frame to be overexposed and affects the observation of other areas, and in order to be able to identify the position information of the feedback device from the video stream, it is usually covered with an identification card for shading. The outer contour of the identification card is clearly imaged in the video stream, and can completely cover the feedback device, and can allow the start signal released by the feedback device to be identified. In this way, the corresponding position information of the first area in the image can be accurately obtained, and the observation effect of the corresponding image frame can also be guaranteed.

[0106] For the second area, since the terminal is usually a regular shape (rectangle, rounded rectangle or circle, etc., which are regular shapes that are easy to be captured by the visual algorithm), the visual algorithm is called to directly identify the outer contour features of the terminal (which may also be the outer contour features of the screen display area of ​​the terminal, etc.), and obtain the corresponding outer contour feature point coordinate set, and then calculate its relative position information in a given reference system in the corresponding image. In this way, the corresponding position information of the second area in the image can be accurately obtained.

[0107] Specifically, for the first area, the identification card can be a light-transmitting rectangular card, and the identification card covers the feedback device. In order to obtain the first area, the identification card is subjected to outer contour feature recognition, and the coordinate set of the four vertices of the outer contour of the identification card can be obtained, which is recorded as P = {(x1, y1), (x2, y2), (x3, y3), (x4, y4)}; based on the coordinate set of the four vertices of the outer contour of the identification card, its relative position information in a given reference system in the corresponding image can be calculated. Since the identification card and the feedback device coincide in physical space, the position information of the first area can be obtained.

[0108] It is understandable that the coordinate set of feature points corresponding to the outer contour of the identification card obtained by performing outer contour feature recognition on the identification card is not limited to the coordinate set of its vertices, and other point sets sufficient to characterize the outer contour feature are also acceptable.

[0109] It is understandable that the identification card may also be a two-dimensional code identification card recording corresponding test information. The corresponding test information includes: test group information, test terminal number, etc.

[0110] In another embodiment of the present disclosure, if the shape features of the feedback device can be successfully identified by the corresponding visual algorithm, and the signal released by the feedback device will not cause the corresponding image frame to be overexposed due to the excessive release of the signal, thereby affecting the observation of other areas. Then, in the process of acquiring the first area, the visual algorithm can be called to directly identify the outer contour features of the feedback area, and obtain the corresponding outer contour feature point coordinate set, and then calculate its relative position information in the given reference system in the corresponding image. In this way, the placement of the label card can be eliminated, simplifying the test process.

[0111] In one example, in step S302, determining the initial image frame includes the following steps:

[0112] In step S311, a first brightness value of any image frame is obtained, where the first brightness value is a brightness value corresponding to the first area in the any image frame.

[0113] In an embodiment of the present disclosure, according to the target video stream, a brightness value corresponding to a first region of any frame image in the video stream is obtained. Usually, a grayscale value of the first region is used as the brightness value of the first region.

[0114] In step S312, a first brightness value set is obtained, where the first brightness value set includes: the first brightness values ​​respectively corresponding to the next m frame images that are temporally adjacent to the current frame image, where m is an integer greater than or equal to 1.

[0115] In the embodiment of the present disclosure, a frame image is arbitrarily selected from the target video stream as the current image according to the requirements, and this frame image needs to include the image information of the first area. This frame image is recorded as I k Then the next m frames of image that are adjacent to the current frame of image in time sequence should be: k+1 Frame image, I k+2 Frame image, I k+3 Frame image, I k+4 Frame image, ... k+m Frame image.

[0116] It can be understood that after acquiring the subsequent m frame images that are sequentially adjacent to the current frame image, the brightness values ​​of the first regions corresponding to the subsequent m frame images that are sequentially adjacent to the current frame image are acquired respectively, i.e., the first brightness values, to obtain a set of m first brightness values, i.e., the first brightness value set.

[0117] It is understandable that, before acquiring the first image, the target video stream may be subjected to image preprocessing to obtain an image that meets subsequent processing requirements. The image preprocessing method includes: image grayscale, corrosion, expansion, etc.

[0118] In step S313, a weighted average calculation is performed on the first brightness value corresponding to the current image frame and the first brightness value set to obtain a first calculation result. If the first calculation result is greater than a first preset threshold, the current image frame is determined to be the initial image frame.

[0119] In an embodiment of the present disclosure, before performing weighted averaging calculation on the first brightness value corresponding to the current frame image and the first brightness value set, it is necessary to obtain grayscale values ​​corresponding to the current frame image and the subsequent m frame images that are temporally adjacent to the current frame image, respectively, including:

[0120] Get the number of pixels that light up in the first area of ​​the current frame image, denoted as N Ik ;

[0121] Obtain the number of pixels lit up in the first region in the next m frames of image that are sequentially adjacent to the current frame of image, and record them as NIk+1 , N Ik+2 , N Ik+3 , ... N Ik+m .

[0122] Furthermore, the first calculation result is recorded as L=W*(N Ik +N Ik+1 +N Ik+2 +N Ik+3 +……+N Ik+m ) / m; wherein W is a preset weight coefficient, which is greater than 0 and less than or equal to 1.

[0123] Further, it can be understood that, in the video stream, if the number of pixels in the first area is greater than a certain number, it can be determined that the feedback device in the first area is in a light-on state. Therefore, a first preset threshold is set to evaluate the light-on state of the feedback device in the first area. Therefore, when the first brightness value is greater than the first preset threshold, it is determined that the feedback device is lit, and the image frame corresponding to the first brightness value is determined to be the initial image frame. The setting of the first preset threshold is used to determine whether the feedback device releases the corresponding start signal.

[0124] Specifically, if the feedback device is set as an LED light, if the first brightness value is greater than the first preset threshold, the determination result is that the LED light is on. In this way, the accurate brightness value of the first area corresponding to each image frame in the target video stream can be obtained, thereby reducing the image brightness-related noise caused by the shooting environment in the target video stream.

[0125] In one example, in step S302, before obtaining the first brightness value corresponding to the first area, the following steps are also included:

[0126] In step S321: obtain any one of the images and a first image, where the first image is a previous frame image of the current frame image of any one of the images in the target video stream.

[0127] In an embodiment of the present disclosure, before determining the first brightness value corresponding to any image, any image and a previous frame image adjacent to it may also be acquired based on the target video stream.

[0128] In step S322: a differential calculation is performed on the grayscale values ​​corresponding to the first area in the first image and the first area in any one of the images to obtain a first brightness value change, and it is determined that the first brightness value change is greater than a preset first change threshold, and it is determined that the first image has a brightness change compared to the previous frame, and the first brightness value is obtained.

[0129] In an embodiment of the present disclosure, before performing differential calculation on the grayscale values ​​corresponding to the first area in the first image and the first area in any one of the images, it is necessary to obtain the grayscale values ​​corresponding to the first image and the any one of the images, respectively, including:

[0130] Get the number of corresponding lit pixels in the first area in any of the images, denoted as N Ik ;

[0131] Get the number of corresponding lit pixels in the first area of ​​the first image, denoted as N Ik-1 .

[0132] Furthermore, the first brightness value change can be recorded as ΔL, ΔL=N Ik -N Ik -1.

[0133] It can be understood that the first brightness value change ΔL is used to characterize the brightness change of the first area in the current frame image (i.e., any one of the images) compared with the previous frame image (i.e., the first image). Based on this, it is judged whether the feedback device has the possibility of releasing the corresponding signal in the current frame image.

[0134] In an embodiment of the present disclosure, a relative evaluation standard is set for the first brightness change, that is, the first change threshold is set. The first change threshold is used to evaluate the degree of influence of the first brightness change on the first image. That is, when the first brightness change is greater than the first change threshold, it can be concluded that any image has a brightness increment with a large degree of change relative to the first image, that is, any image has undergone a significant brightness change relative to the first image. In the case where any image has undergone a significant brightness change relative to the first image, that is, there is a possibility that the corresponding feedback device releases a corresponding start signal. If the feedback device is an LED lamp, there is a possibility that the LED lamp lights up. Based on this possibility, it is necessary to obtain the first brightness value corresponding to any image. In this way, by adding a pre-screening process before obtaining the first brightness value, part of the noise in the target video stream can be eliminated, the calculation amount of the first brightness value acquisition process is reduced, and the overall calculation efficiency is improved.

[0135] In one example, in step S302, determining that the image frame is completed includes the following steps:

[0136] In step S331, an image parameter value corresponding to the second area is obtained, where the image parameter is used to represent the end state of the fingerprint unlocking test performed by the terminal.

[0137] If the image parameter value is greater than a second preset threshold, it is determined that the image frame corresponding to the image parameter is a completed image frame.

[0138] In an embodiment of the present disclosure, the second area and the image parameters described in step S331 at least include the following:

[0139] The second area includes: a first unlocking area and a second unlocking area, the first unlocking area is a fingerprint module setting area of ​​the terminal, and the second unlocking area is an area in the second area except the first unlocking area.

[0140] In the embodiment of the present disclosure, the first unlocking area can be understood as follows: Figure 2b The area corresponding to the fingerprint unlocking area 214 shown in FIG. That is, the area includes a fingerprint recognition module for sensing fingerprints, and also includes a corresponding indicator light spot, such as Figure 2b The second unlocking area can be understood as follows: Figure 2b The area corresponding to the other area 212 in the display screen except the fingerprint unlocking area shown in FIG.

[0141] It is understandable that Figure 2b The terminal 211 given in the figure is a terminal with an under-screen fingerprint unlocking technology. The under-screen fingerprint unlocking technology refers to that the fingerprint unlocking module is set in the screen display area of ​​the terminal, and the user implements fingerprint unlocking in the screen display area of ​​the terminal. When the terminal does not have the under-screen fingerprint unlocking technology, that is, the fingerprint recognition module is not set in the screen display area of ​​the terminal (for example, it is set on the back cover of the terminal), then the first unlocking area at this time corresponds to an area set in the screen display area that can display the recognition status of the fingerprint recognition module, that is, Figure 2b The fingerprint-shaped indicator light spot shown in or the area where the fingerprint-shaped indicator light spot is located.

[0142] The acquiring the image parameters corresponding to the fingerprint unlocking area includes: acquiring a brightness value of the first unlocking area and acquiring a color value of the second unlocking area.

[0143] In the embodiment of the present disclosure, since it has been determined that the first unlocking area and the second unlocking area each correspond to the structure of the terminal. It can be understood that before the fingerprint unlocking module performs fingerprint unlocking, the indicator light spot is usually off or in a low-brightness state. After the fingerprint unlocking finger successfully contacts the unlocking module, the fingerprint unlocking module starts the fingerprint unlocking process, and the indicator light spot will light up or increase in brightness. Therefore, the lighting of the indicator light spot means that the fingerprint unlocking module is started. Based on this, the image frame corresponding to the lighting of the indicator light spot is obtained, that is, the moment information of the startup of the fingerprint unlocking module is obtained. In summary, if you want to obtain the moment information of the startup of the fingerprint unlocking module, you need to obtain the brightness value of the first unlocking area.

[0144] It is understandable that when the display screen of the terminal is filled with the display image after fingerprint unlocking, it means that fingerprint unlocking is completed. Therefore, obtaining the color value corresponding to the second unlocking area can determine the time information when the terminal screen is lit.

[0145] It is understandable that the color value is a parameter that can describe the color-related properties of the displayed image. The specific parameter category is determined according to the image model type of the displayed image.

[0146] Specifically, if the image is an image under the RGB model, the color value includes: R value, G value and B value; if the image is an image under the HSV (Hue, Saturation, Value) model, the color value includes: hue value (Hue, H), saturation (Saturation, S) and value (Value, V).

[0147] The second preset threshold includes: a brightness preset threshold corresponding to the brightness value of the first unlocking area and a color value preset threshold corresponding to the color value of the second unlocking area.

[0148] In the embodiment of the present disclosure, it can be seen from the above content that the physical quantity representing the start-up judgment of the first unlocking area is the brightness value of the first unlocking area, and the physical quantity representing the lighting judgment of the second unlocking area is the color value of the second unlocking area. The dimensions corresponding to the two physical quantities are different, so the setting of the second preset threshold should also include the above two different dimensions, that is, the corresponding preset thresholds are set for the brightness value of the first unlocking area and the color value of the second unlocking area. That is, the brightness preset threshold corresponding to the brightness value of the first unlocking area and the color value preset threshold corresponding to the color value of the second unlocking area are obtained.

[0149] The image parameter being greater than a second preset threshold value includes: a brightness value of the first unlocking area being greater than the preset brightness threshold value and a color value of the second unlocking area being greater than the preset color threshold value.

[0150] In the embodiments of the present disclosure, it can be understood that. The result of the terminal's determination of the fingerprint unlocking test, the result of a successful fingerprint unlocking test is: the terminal screen lights up after the fingerprint unlocking module is started. The results of a failed fingerprint unlocking test include: the fingerprint module is not started, but the terminal screen lights up; and the fingerprint module is started, but the fingerprint module is started, but the terminal screen is not lit. In the fingerprint unlocking test scenario, in order to be able to obtain the moment information of the unlocking start, the moment information of the fingerprint module start, and the moment information of the terminal screen lighting up, therefore, when the moment information of the unlocking start is known (that is, the information corresponding to the initial image frame), it is necessary to combine the result of the successful fingerprint unlocking test to obtain the moment information of the fingerprint module start and the moment information of the terminal screen lighting up.

[0151] It is understandable that in order to obtain the time information when the fingerprint module is started and the time information when the terminal screen is lit, it is necessary to set a threshold for the image parameter, that is, set a second preset threshold to filter image frames that meet the requirements.

[0152] Furthermore, the image frame that meets the requirement is an image frame in which the brightness value of the first unlocking area meets the requirement and the brightness value of the second unlocking area meets the requirement.

[0153] Therefore, the image parameter being greater than the second preset threshold includes: the brightness value of the first unlocking area being greater than the preset brightness threshold and the color value of the second unlocking area being greater than the preset color threshold.

[0154] In one example, the step of obtaining the brightness value of the first unlocking area includes the following steps:

[0155] In step S341: a second image and a third image are acquired, wherein the second image is a current frame image of the first unlocking area, and the third image is a previous frame image of the fourth image in the target video stream.

[0156] In the embodiment of the present disclosure, the current frame is set to I O , then the image frame corresponding to the second image should be I O-1 .

[0157] It is understandable that, since the target video stream includes both the video stream of the terminal performing the fingerprint unlocking test and the video stream of the feedback device, any image frame in the video stream includes the first area and the second area.

[0158] S342: performing differential calculation on the grayscale values ​​corresponding to the second image and the third image respectively, to obtain a brightness value change of the first unlocking area.

[0159] In an embodiment of the present disclosure, before performing differential calculation on the grayscale values ​​corresponding to the second image and the third image, the grayscale values ​​corresponding to the second image and the third image need to be obtained respectively, including:

[0160] Obtain the number of pixels that light up corresponding to the indicator light spot in the first unlocking area in the second image, denoted as N IO ;

[0161] Obtain the number of pixels lit up corresponding to the indicator light spot in the first unlocking area in the third image, denoted as N IO-1 .

[0162] Furthermore, the change in brightness of the first unlocking area can be recorded as ΔF, ΔF=N IO -N IO-1 .

[0163] It can be understood that the brightness value change ΔF of the first unlocking area is used to represent the brightness change of the first unlocking area in the current frame image (i.e., the second image) compared with the previous frame image (i.e., the third image) in each image. Based on this, it is judged whether the indicator light spot in the first unlocking area is likely to light up in the current frame image.

[0164] S343: If the change in the brightness value of the first unlocking area is greater than a preset second change threshold, it is determined that the brightness of the second image changes compared to the previous frame, and the brightness value of the first unlocking area in the second image is determined to be the brightness value of the first unlocking area.

[0165] In an embodiment of the present disclosure, a relative evaluation standard is set for the brightness change of the first unlocking zone, that is, the second change threshold is set. The second change threshold is used to evaluate the degree of influence of the brightness change of the first unlocking zone on the fifth image. That is, when the brightness change of the first unlocking zone is greater than the second change threshold, it can be concluded that the second image has a brightness increment with a large degree of change relative to the third image, that is, the second image has undergone a significant brightness change relative to the third image. In the case where the second image has undergone a significant brightness change relative to the third image, it means that there is a possibility that the indicator light spot corresponding to the first unlocking zone is lit. In this way, by adding a pre-screening process before formally obtaining the brightness value of the first unlocking zone, part of the noise in the target video stream can be eliminated.

[0166] It can be understood that the brightness value of the first unlocking area obtained through steps S341 to S343 has not been screened by the brightness preset threshold corresponding to the brightness value of the first unlocking area, and is only the brightness value of the first unlocking area of ​​the to-be-screened nature. To determine whether the indicator light spot in the final first unlocking area is on, it is necessary to screen the brightness value of the first unlocking area of ​​the to-be-screened nature according to the corresponding brightness preset threshold, and the image frame whose brightness value of the first unlocking area is greater than the brightness preset threshold is determined to be the image frame corresponding to the light spot of the indicator light in the first unlocking area being on.

[0167] Specifically, here, the brightness value of the first unlocking area in the second image is determined by directly obtaining the number of lit pixels at the corresponding position of the first unlocking area. The number of lit pixels in the first unlocking area in the second image is recorded as N O The brightness preset threshold is defined as N min , which is the minimum number of pixels required to light up when the indicator light spot in the first unlocking area lights up. O >N min When the fourth image frame is detected, it is determined that the indicator light spot in the first unlocking area in the second image is lit. That is, the fourth image frame corresponds to the moment information of the fingerprint module being started.

[0168] In one example, the step of obtaining the color value of the second unlocking area includes the following steps:

[0169] S351: Acquire a fourth image, where the fourth image is a current image frame of the second unlocking area.

[0170] In the embodiment of the present disclosure, the current frame is recorded as I P That is, the image frame corresponding to the sixth image is I P .

[0171] It can be understood that the fourth image includes the first area and the second area.

[0172] S352: Perform feature transformation on the four images to obtain a fifth image, where the fifth image is a representation image of the fourth image in the HSV model.

[0173] In the embodiment of the present disclosure, since the fourth image is derived from the target video stream, the target video stream is usually an image acquired by the image acquisition device, that is, a high frame camera under the RGB model. In order to facilitate the recognition of the color value when the display image is filled after the display screen of the terminal is unlocked by the fingerprint, the image is usually converted into an image under the HSV model.

[0174] Specifically, performing feature transformation on the fourth image includes:

[0175] Obtaining a grayscale value corresponding to an R-type pixel, a grayscale value corresponding to a G-type pixel, and a grayscale value corresponding to a B-type pixel of each pixel point in the second unlocking area of ​​the fourth image, which are denoted as R, G, and B respectively;

[0176] Performing a first feature transformation on the grayscale value corresponding to the R pixel, the grayscale value corresponding to the G pixel, and the grayscale value corresponding to the B pixel of each pixel point, respectively, to obtain a first result set, wherein the first result set includes R', G', and B' after the first feature transformation, wherein the first feature transformation includes: R'=R / 255, G'=G / 255, and B'=B / 255;

[0177] Perform a second feature transformation on the first result set corresponding to each pixel point to obtain the feature of each pixel point under the HSV model, wherein the feature of each pixel point under the HSV model includes: the H value, S value and V value corresponding to each pixel, and the second feature transformation includes:

[0178] V = max(R', G', B')

[0179]

[0180]

[0181] S353: Based on the fifth image, obtain a color value of the second unlocking area.

[0182] In the embodiment of the present disclosure, based on the features corresponding to each pixel point in the HSV model, the color value corresponding to the second unlocking area in the HSV model can be obtained, that is, the H value, S value and V value of the second unlocking area in the HSV model.

[0183] It can be understood that the second unlocking area color value obtained through S351 to S353 has not been screened by the color preset threshold corresponding to the second unlocking area color value, and is only the second unlocking area color value of the to-be-screened nature. To determine whether the display screen in the final second unlocking area is in the screen-on state, it is necessary to screen the second unlocking area color value of the to-be-screened nature according to the corresponding color preset threshold, and the image frame whose second unlocking area color value is greater than the color preset threshold is determined to be the image frame corresponding to the screen-on state in the second unlocking area.

[0184] Specifically, the color preset threshold can be set based on the brightness value and hue value, that is, the color hue and brightness of the terminal screen display area are limited. Specifically including:

[0185] Acquire hue information corresponding to each pixel point of the second unlocking area in the fourth image;

[0186] Determine the number of pixels that satisfy Vmin<V<Vmax, denoted by N v , where Vmin and Vmax represent the set V value lower limit and V value upper limit, and V represents the hue value corresponding to each pixel;

[0187] Determine the minimum number of pixels that light up to satisfy the requirement of lighting up the display screen, denoted as Min D , if the N v Greater than the Min D , determine that the fourth image is an image frame corresponding to the lighting of the display screen.

[0188] In one example, before obtaining the color value of the second unlocking area, the following steps are also included:

[0189] S361: Acquire the fourth image and the sixth image, where the sixth image is the previous frame image of the fourth image in the target video stream.

[0190] In the embodiment of the present disclosure, when the fourth image is I P , then the sixth image can be recorded as I P-1 .

[0191] S362: performing differential calculation on the grayscale values ​​corresponding to the fourth image and the sixth image respectively, to obtain a change in the brightness value of the second unlocking area.

[0192] Obtain the number of pixels on the terminal display screen that light up in the second unlocking area in the fourth image, denoted as N IP ;

[0193] Obtain the number of pixels corresponding to the lighted-up pixels on the terminal display screen in the second unlocking area in the sixth image, recorded as N IP -1.

[0194] Furthermore, the brightness change of the second unlocking area can be recorded as ΔD, ΔD=N IP -N IP -1.

[0195] It can be understood that the brightness change ΔD of the second unlocking area is used to represent the brightness change of the second unlocking area in the current frame image (i.e., the fourth image) compared with the previous frame image (i.e., the sixth image) in each image. Based on this, it is judged whether the terminal display screen is likely to be lit in the current frame image.

[0196] S363: If the change in the brightness value of the second unlocking area is greater than a preset third change threshold, it is determined that the brightness of the fourth image changes compared to the previous frame, and the color value of the second unlocking area is obtained.

[0197] In an embodiment of the present disclosure, a relative evaluation standard is set for the change in the brightness value of the second unlocking zone, that is, the third change threshold is set. The third change threshold is used to evaluate the degree of influence of the change in the brightness value of the second unlocking zone on the sixth image. That is, when the change in the brightness value of the second unlocking zone is greater than the third change threshold, it can be concluded that the fourth image has a brightness increment with a large degree of change relative to the sixth image, that is, the fourth image has a significant brightness change relative to the sixth image. In the case where the fourth image has a significant brightness change relative to the sixth image, it corresponds to the possibility that the terminal display screen is lit. In this way, by adding a pre-screening process, part of the noise in the target video stream can be eliminated, thereby improving the overall computing efficiency.

[0198] It can be understood that, based on the above embodiment, the moment information of the unlocking start, the moment information of the fingerprint module start and the moment information of the terminal screen lighting up can be determined based on the corresponding image frames, specifically including: determining the moment information of the unlocking start based on the initial image frame, determining the moment information of the fingerprint module start based on the second image frame, and determining the moment information of the terminal screen lighting up based on the completion image frame (i.e., the fourth image frame).

[0199] Furthermore, the output test result may include one or more of the following: the inter-frame sequence number of the corresponding image frame, the actual time of the image frame and the corresponding action.

[0200] In one example, in step S363, the third change threshold may be determined based on the pixel area of ​​the second unlocking zone in the fourth image and a preset weight adjustment range.

[0201] In the embodiments of the present disclosure, the setting of the third change threshold can be set to a fixed value according to user needs. However, during the fingerprint unlocking test, there is a possibility that the second unlocking area in the target video stream is accurately obtained due to external factors. For example, in the middle of the test, the high-frame camera suddenly shakes, resulting in only 50% of the terminal's screen display area appearing in the target video stream. Based on this situation, the setting of the third change threshold is increased by an adaptive weight related to the terminal display screen area, that is, it is changed to an adaptive third change threshold to make the test result accurate.

[0202] Specific forms of adaptive threshold setting include:

[0203] Min colour =area(ColourROI)*weight;

[0204] Among them, Min colourrepresents the adaptive third change threshold, area(ColourROI) represents the number of pixels in the terminal screen display area, and weight represents the weight.

[0205] The above-mentioned embodiments of the present disclosure involve a method for determining the fingerprint unlocking time. By determining the brightness change of the feedback device in the video stream, the unlocking start time information can be efficiently and accurately obtained in a unique video stream, thereby improving the efficiency and accuracy of obtaining the terminal fingerprint unlocking test results.

[0206] Based on the same concept, an embodiment of the present disclosure provides a device for determining fingerprint unlocking time.

[0207] It is understandable that the device for determining the fingerprint unlocking time provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0208] Figure 4 is a block diagram of a device for determining fingerprint unlocking time according to an exemplary embodiment. Figure 4 The device for determining fingerprint unlocking time includes: an acquisition unit 401 and a processing unit 402.

[0209] The acquisition unit 401 is used to acquire a target video stream, which is obtained by a preset image acquisition device. The target video stream includes: image information corresponding to the fingerprint unlocking test performed by the terminal and image information corresponding to the feedback device.

[0210] The processing unit 402 is used to determine an initial image frame in the target video stream and to determine a completed image frame in the video stream, wherein the initial image frame is an image frame corresponding to the change of the feedback device from a first brightness state to a second brightness state, and the completed image frame is an image frame corresponding to the change of the screen display area of ​​the terminal from an off state to a lit state;

[0211] Used to determine the fingerprint unlocking time of the terminal based on the initial image frame and the completed image frame.

[0212] In one example, before the processing unit 402 is used to determine the initial image frame, it also includes:

[0213] Based on the target video stream, a first area and a second area are obtained, wherein the first area is an area corresponding to the feedback device in any image frame of the target video stream, and the second area is an area corresponding to the screen display area of ​​the terminal in any image frame of the target video stream.

[0214] In one example, the processing unit 402 is configured to determine an initial image frame, including:

[0215] Acquire a first brightness value of any image frame, where the first brightness value is a brightness value corresponding to the first area in the any image frame;

[0216] Acquire a first brightness value set, the first brightness value set comprising: the first brightness values ​​respectively corresponding to m subsequent frame images that are sequentially adjacent to the current frame image, where m is an integer greater than or equal to 1;

[0217] A weighted average calculation is performed on the first brightness value corresponding to the current image frame and the first brightness value set to obtain a first calculation result. If the first calculation result is greater than a first preset threshold, the current image frame is determined to be the initial image frame.

[0218] In one example, the processing unit 402 is used to determine the completion of the image frame, including:

[0219] Obtaining an image parameter value corresponding to the second area, wherein the image parameter is used to indicate the end state of the fingerprint unlocking test performed by the terminal.

[0220] If the image parameter value is greater than a second preset threshold, it is determined that the image frame corresponding to the image parameter is a completed image frame.

[0221] In one example, with respect to the processing unit 402, before obtaining the first brightness value, the method further includes:

[0222] Acquire any one of the images and a first image, where the first image is a frame image before a current frame image of any one of the images in the target video stream;

[0223] Performing differential calculation on the grayscale values ​​corresponding to the first area in the first image and the first area in any one of the images, respectively, to obtain a first brightness value change, and determining;

[0224] The first brightness value change is greater than a preset first change threshold.

[0225] Figure 55 is a block diagram of a device for determining fingerprint unlocking time according to an exemplary embodiment. For example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0226] Reference Figure 5 , the device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0227] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0228] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0229] Power component 506 provides power to various components of device 500. Power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500.

[0230] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0231] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0232] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0233] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0234] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0235] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0236] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by the processor 520 of the device 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0237] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0238] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0239] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0240] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0241] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0242] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. A system for determining fingerprint unlocking time, characterized in that: include: Image acquisition device, feedback device and processing device; The image acquisition device is used to obtain a target video stream, which includes: image information corresponding to the fingerprint unlocking test performed by the terminal and image information corresponding to the feedback device; The feedback device is used to feedback the startup state of the terminal for the fingerprint unlocking test, and the feedback device is provided with a brightness generation module. In response to the terminal starting the fingerprint unlocking test, the brightness generation module changes from a first brightness state to a second brightness state; The processing device is used to obtain the target video stream from the image acquisition device; The target video stream includes: an initial image frame and a completed image frame, wherein the initial image frame is an image frame corresponding to the brightness generation module changing from a first brightness state to a second brightness state, and the completed image frame is an image frame corresponding to the screen display area of ​​the terminal changing from an off state to a lit state; The processing device determines a terminal fingerprint unlocking time based on the initial image frame and the completed image frame.

2. A method for determining fingerprint unlocking time, characterized in that: include: Obtain a target video stream, the target video stream being obtained by a preset image acquisition device, the target video stream comprising: image information corresponding to the fingerprint unlocking test performed by the terminal and image information corresponding to the feedback device; Determine an initial image frame in the target video stream, and determine a completed image frame in the target video stream, wherein the initial image frame is an image frame corresponding to the change of the feedback device from a first brightness state to a second brightness state, and the completed image frame is an image frame corresponding to the change of the screen display area of ​​the terminal from an off state to a lit state; Based on the initial image frame and the completed image frame, a fingerprint unlocking time of the terminal is determined.

3. The method for determining fingerprint unlocking time according to claim 2, characterized in that: Before determining the initial image frame, the method further includes: Based on the target video stream, a first area and a second area are obtained, wherein the first area is an area corresponding to the feedback device in any image frame of the target video stream, and the second area is an area corresponding to the screen display area of ​​the terminal in any image frame of the target video stream.

4. The method for determining fingerprint unlocking time according to claim 3, characterized in that: The determining of the initial image frame comprises: Acquire a first brightness value of any image frame, where the first brightness value is a brightness value corresponding to the first area in the any image frame; Acquire a first brightness value set, the first brightness value set comprising: the first brightness values ​​respectively corresponding to m subsequent frame images that are sequentially adjacent to the current frame image, where m is an integer greater than or equal to 1; A weighted average calculation is performed on the first brightness value corresponding to the current image frame and the first brightness value set to obtain a first calculation result. If the first calculation result is greater than a first preset threshold, the current image frame is determined to be the initial image frame.

5. The method for determining fingerprint unlocking time according to claim 2, characterized in that: The step of determining a completed image frame comprises: Obtaining an image parameter value corresponding to the second area, wherein the image parameter is used to indicate the end state of the fingerprint unlocking test performed by the terminal. If the image parameter value is greater than a second preset threshold, it is determined that the image frame corresponding to the image parameter is a completed image frame.

6. The method for determining fingerprint unlocking time according to claim 4, characterized in that: Before obtaining the first brightness value, the method further includes: Acquire any one of the images and a first image, where the first image is a frame image before a current frame image of any one of the images in the target video stream; A difference calculation is performed on the grayscale values ​​corresponding to the first area in the first image and the first area in any one of the images to obtain a first brightness value change, and it is determined that the first brightness value change is greater than a preset first change threshold.

7. A device for determining fingerprint unlocking time, characterized in that: include: An acquisition unit is used to acquire a target video stream, wherein the target video stream is obtained by a preset image acquisition device, and the target video stream includes: image information corresponding to the fingerprint unlocking test performed by the terminal and image information corresponding to the feedback device; a processing unit, configured to determine an initial image frame in the target video stream and a completed image frame in the video stream, wherein the initial image frame is an image frame corresponding to the change of the feedback device from a first brightness state to a second brightness state, and the completed image frame is an image frame corresponding to the change of the screen display area of ​​the terminal from an off state to a lit state; Used to determine the fingerprint unlocking time of the terminal based on the initial image frame and the completed image frame.

8. The device for determining fingerprint unlocking time according to claim 7, characterized in that: Before the processing unit is used to determine the initial image frame, the processing unit further includes: Based on the target video stream, a first area and a second area are obtained, wherein the first area is an area corresponding to the feedback device in any image frame of the target video stream, and the second area is an area corresponding to the screen display area of ​​the terminal in any image frame of the target video stream.

9. The device for determining fingerprint unlocking time according to claim 8, characterized in that: The processing unit is used to determine an initial image frame, including: Acquire a first brightness value of any image frame, where the first brightness value is a brightness value corresponding to the first area in the any image frame; Acquire a first brightness value set, the first brightness value set comprising: the first brightness values ​​respectively corresponding to m subsequent frame images that are sequentially adjacent to the current frame image, where m is an integer greater than or equal to 1; A weighted average calculation is performed on the first brightness value corresponding to the current image frame and the first brightness value set to obtain a first calculation result. If the first calculation result is greater than a first preset threshold, the current image frame is determined to be the initial image frame.

10. The device for determining fingerprint unlocking time according to claim 7, characterized in that: The processing unit is used to determine the completion of the image frame, including: Obtaining an image parameter value corresponding to the second area, wherein the image parameter is used to indicate the end state of the fingerprint unlocking test performed by the terminal. If the image parameter value is greater than a second preset threshold, it is determined that the image frame corresponding to the image parameter is a completed image frame.

11. The device for determining fingerprint unlocking time according to claim 9, characterized in that: Before the processing unit is used to obtain the first brightness value, the device further includes: Acquire any one of the images and a first image, where the first image is a frame image before a current frame image of any one of the images in the target video stream; Performing differential calculation on the grayscale values ​​corresponding to the first area in the first image and the first area in any one of the images, respectively, to obtain a first brightness value change, and determining; The first brightness value change is greater than a preset first change threshold.

12. A device for determining fingerprint unlocking time, characterized in that: include: processor; a memory for storing processor executable instructions; The processor is configured to: execute the method for determining fingerprint unlocking time as described in any one of claims 2 to 6.

13. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of a device, the device is enabled to execute the method for determining fingerprint unlocking time according to any one of claims 2 to 6.