Fingerprint acquisition area calibration method and device, electronic equipment and medium

The method automates fingerprint collection area calibration by aligning it with recognition areas using reference images and sensor-coordinated adjustments, addressing low efficiency and labor-intensive manual calibration issues, thereby enhancing recognition accuracy and user experience.

CN119169671APending Publication Date: 2024-12-20HEFEI VISIONOX TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411200815.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

Current fingerprint recognition technologies face low calibration efficiency and labor-intensive manual calibration processes for aligning the fingerprint collection and recognition areas, particularly in under-screen fingerprint sensors, which affect recognition accuracy and user experience.

Method used

A method and device for automatically calibrating the fingerprint collection area by displaying a reference image, obtaining its coordinates, and aligning it with the fingerprint recognition area using sensor-coordinated adjustments to minimize offset, utilizing algorithms to identify circular patterns and centers for precise alignment.

Benefits of technology

Enhances calibration efficiency by automating the alignment process, reducing time and effort, and improving fingerprint recognition accuracy and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119169671A_ABST
    Figure CN119169671A_ABST
Patent Text Reader

Abstract

The invention discloses a fingerprint acquisition area calibration method and device, electronic equipment and a medium, and the method comprises the steps: controlling a display screen to display a reference image in a fingerprint acquisition area, and obtaining the coordinates of the reference image in the fingerprint acquisition area; a fingerprint sensor below the display screen is controlled to collect a reference image in the fingerprint identification area, and coordinates of the reference image in the fingerprint identification area are obtained; according to the coordinate of the reference image in the fingerprint identification area and the coordinate of the reference image in the fingerprint acquisition area, obtaining the offset of the fingerprint acquisition area and the fingerprint identification area; and calibrating the position of the fingerprint acquisition area according to the offset of the fingerprint acquisition area and the fingerprint identification area, so that the positions of the fingerprint acquisition area and the fingerprint identification area are the same. The calibration method provided by the invention can replace a manual calibration mode to correct the offset of the fingerprint acquisition area relative to the fingerprint identification area, time and labor are saved, and the calibration efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of fingerprint recognition technology, and in particular to a fingerprint acquisition area calibration method, device, electronic equipment and medium. Background Art

[0002] Fingerprint recognition technology verifies identity through fingerprint comparison and is the most widely used biometric recognition technology today. In order to better improve security, fingerprint recognition is increasingly being used in terminal devices such as mobile phones. Currently, the fingerprint collection area and fingerprint recognition area are calibrated mainly through manual calibration, which takes a long time, is time-consuming and labor-intensive, has low calibration efficiency, and is not conducive to production. Summary of the invention

[0003] The present application discloses a fingerprint collection area calibration method, device, electronic device and medium to solve the problem of low calibration efficiency between the fingerprint collection area and the fingerprint recognition area in the related art.

[0004] In a first aspect, the present application discloses a method for calibrating a fingerprint collection area, the calibration method comprising: controlling a display screen to display a reference image in the fingerprint collection area, and obtaining the coordinates of the reference image in the fingerprint collection area; the fingerprint collection area is an area on the display screen used to indicate that a user inputs a fingerprint; controlling a fingerprint sensor below the display screen to collect a reference image in a fingerprint recognition area, and obtaining the coordinates of the reference image in the fingerprint recognition area; the fingerprint recognition area is an area on the display screen where the fingerprint sensor recognizes fingerprints; obtaining an offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area; calibrating the position of the fingerprint collection area according to the offset between the fingerprint collection area and the fingerprint recognition area so that the positions of the fingerprint collection area and the fingerprint recognition area are the same.

[0005] In some exemplary embodiments, obtaining the offset between the fingerprint collection area and the fingerprint recognition area based on the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area includes: obtaining the offset between the fingerprint collection area and the fingerprint recognition area based on the coordinates of the center position of the reference image in the fingerprint recognition area and the coordinates of the center position of the reference image in the fingerprint collection area.

[0006] In some exemplary embodiments, the center of the reference image has a circular pattern, the radius length of the circular pattern is equal to the length of multiple pixels of the reference image, and the center position of the reference image is the center of the circular pattern. Then, according to the coordinates of the center position of the reference image in the fingerprint recognition area and the coordinates of the center position of the reference image in the fingerprint collection area, obtaining the offset between the fingerprint collection area and the fingerprint recognition area includes: identifying the circular pattern of the reference image collected by the fingerprint sensor, and obtaining the coordinates of the center of the circular pattern, which are the coordinates of the center of the circle in the fingerprint recognition area; obtaining the offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the center of the circle in the fingerprint recognition area and the coordinates of the center of the circle in the fingerprint collection area.

[0007] In some exemplary embodiments, identifying the circular pattern of the reference image captured by the fingerprint sensor and obtaining the coordinates of the center of the circular pattern includes: identifying the edge of the circular pattern of the reference image captured by the fingerprint sensor and obtaining the coordinates of the edge of the circular pattern; and obtaining the coordinates of the center of the circular pattern based on the coordinates of the edge of the circular pattern.

[0008] In some exemplary embodiments, the identifying the circular pattern of the reference image collected by the fingerprint sensor and obtaining the coordinates of the center of the circular pattern includes: inputting the reference image collected by the fingerprint sensor into a preset algorithm model; obtaining the coordinates of the center of the circular pattern output by the algorithm model; the algorithm model is used to identify the circular pattern of the reference image collected by the fingerprint sensor and obtain the coordinates of the center of the circular pattern.

[0009] In some exemplary embodiments, it also includes: acquiring multiple reference images with circular patterns collected by the fingerprint sensor, and using the multiple reference images with circular patterns as training atlases and test atlases respectively; training the algorithm model using the training atlases, and testing the algorithm model using the test atlases to obtain the preset algorithm model.

[0010] In some exemplary embodiments, after calibrating the position of the fingerprint collection area, the method further includes: obtaining the offset between the fingerprint collection area and the fingerprint recognition area again; if the offset between the fingerprint collection area and the fingerprint recognition area is within a preset range, storing the position of the fingerprint collection area on the display screen; if the offset between the fingerprint collection area and the fingerprint recognition area is not within the preset range, calibrating the position of the fingerprint collection area again.

[0011] In a second aspect, the present application discloses a fingerprint collection area calibration device, comprising: a display control module, used to control the display screen to display a reference image in the fingerprint collection area, and obtain the coordinates of the reference image in the fingerprint collection area; the fingerprint collection area is an area on the display screen used to indicate that the user inputs a fingerprint; an acquisition control module, used to control the fingerprint sensor below the display screen to acquire the reference image in the fingerprint recognition area, and obtain the coordinates of the reference image in the fingerprint recognition area; the fingerprint recognition area is an area on the display screen where the fingerprint sensor recognizes the fingerprint; a processing module, used to obtain the offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area; a calibration module, used to calibrate the position of the fingerprint collection area according to the offset between the fingerprint collection area and the fingerprint recognition area, so that the positions of the fingerprint collection area and the fingerprint recognition area are the same.

[0012] In a third aspect, the present application discloses an electronic device, comprising a display screen, a fingerprint sensor arranged below the display screen, and a calibration device connected to the display screen and the fingerprint sensor, the calibration device comprising a memory and a processor; the memory is used to store instructions; the processor is used to execute the fingerprint collection area calibration method as described in any of the above items according to the instructions stored in the memory.

[0013] In a fourth aspect, the present application discloses a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the fingerprint collection area calibration method as described in any one of the above items is implemented.

[0014] In the fingerprint collection area calibration method, device, electronic device and medium provided in the embodiments of the present application, when calibrating the fingerprint collection area, the display screen can be controlled to display a reference image in the fingerprint collection area, and the coordinates of the reference image in the fingerprint collection area can be obtained, the fingerprint sensor under the display screen can be controlled to collect the reference image in the fingerprint recognition area, and the coordinates of the reference image in the fingerprint recognition area can be obtained, and the offset between the fingerprint collection area and the pattern recognition area can be obtained according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area, and the position of the fingerprint collection area can be calibrated according to the offset between the fingerprint collection area and the pattern recognition area, so that the positions of the fingerprint collection area and the pattern recognition area are the same. The calibration method of the present application can replace the manual calibration method to correct the offset of the fingerprint collection area relative to the fingerprint recognition area, saving time and effort and improving the calibration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.

[0016] Figure 1 This is a flow chart of a fingerprint collection area calibration method disclosed in an embodiment of the present application.

[0017] Figure 2 A schematic diagram of the positional relationship between a fingerprint recognition area and a fingerprint collection area disclosed in an embodiment of the present application.

[0018] Figure 3 This is a schematic diagram of the positional relationship between another fingerprint recognition area and a fingerprint collection area disclosed in an embodiment of the present application.

[0019] Figure 4 This is a flow chart of another fingerprint collection area calibration method disclosed in an embodiment of the present application.

[0020] Figure 5 This is a schematic diagram of the positional relationship between another fingerprint recognition area and a fingerprint collection area disclosed in an embodiment of the present application.

[0021] Figure 6 This is a flow chart of another fingerprint collection area calibration method disclosed in an embodiment of the present application.

[0022] Figure 7 This is a flow chart of another fingerprint collection area calibration method disclosed in an embodiment of the present application.

[0023] Figure 8 A schematic diagram of the structure of a fingerprint collection area calibration device disclosed in an embodiment of the present application.

[0024] Fig. 9 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] With the development of display technology, the under-screen optical fingerprint solution has emerged. The optical fingerprint sensor is placed on the back or below the display area of ​​the display screen, so that the optical fingerprint sensor does not need to occupy the display area, which helps to increase the screen-to-body ratio. Among them, the light with fingerprint information can penetrate the display screen to reach the surface of the optical fingerprint sensor for imaging, and then combined with the software algorithm, the fingerprint recognition function can be realized.

[0027] At present, when the under-screen fingerprint sensor collects fingerprints, the accuracy of the collection area indicated by the fingerprint collection area determines the recognition efficiency of the under-screen fingerprint sensor and the user experience of inputting fingerprints. At present, after the under-screen fingerprint sensor is installed or repaired, it is mainly calibrated manually by manually modifying the coordinates to move the fingerprint collection area on the display screen to align with the area recognized by the fingerprint sensor, that is, the fingerprint recognition area. In addition, when the user repairs the mobile phone or replaces the fingerprint, if the fingerprint collection area and the fingerprint recognition area are offset, professionals are required to re-align them, which is time-consuming and labor-intensive, and the calibration efficiency is low.

[0028] Based on this, the present application discloses a fingerprint collection area calibration solution, which uses a computer device to calibrate the fingerprint collection area and the fingerprint recognition area to improve the calibration efficiency.

[0029] As an optional implementation of the content disclosed in this application, the embodiment of this application discloses a method for calibrating a fingerprint collection area, such as Figure 1 As shown, Figure 1 This is a flow chart of a fingerprint collection area calibration method disclosed in an embodiment of the present application, the calibration method comprising:

[0030] Step S110: Control the display screen to display a reference image in a fingerprint collection area, and obtain the coordinates of the reference image in the fingerprint collection area, where the fingerprint collection area is an area on the display screen for indicating that a user inputs a fingerprint;

[0031] Step S120: controlling the fingerprint sensor under the display screen to collect a reference image in a fingerprint recognition area, and obtaining the coordinates of the reference image in the fingerprint recognition area, where the fingerprint recognition area is an area on the display screen where the fingerprint sensor recognizes the fingerprint;

[0032] Step S130: obtaining the offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area;

[0033] Step S140: Calibrate the position of the fingerprint collection area according to the offset between the fingerprint collection area and the pattern recognition area, so that the positions of the fingerprint collection area and the pattern recognition area are the same.

[0034] The under-screen fingerprint sensor in the electronic device is located under the display screen. The fingerprint sensor will have an area on the display screen that can recognize fingerprints, such as Figure 2 The position indicated by the solid line frame shown in the figure is the fingerprint recognition area. Usually, mobile phones and other terminals with fingerprint recognition function will display an area on the display screen for instructing users to input fingerprints on the display screen, such as Figure 2As shown, the dotted box may represent the location of the pressing area provided for the user to input a fingerprint, and the location of the dotted box may be the fingerprint collection area.

[0035] The shapes of the fingerprint recognition area and the fingerprint collection area can be set according to actual conditions. For example, in this embodiment, the fingerprint recognition area and the fingerprint collection area are both square areas. However, the present invention is not limited to this. In other embodiments, the fingerprint recognition area and the fingerprint collection area can also be circular areas.

[0036] After installing the fingerprint sensor under the screen, if the fingerprint collection area and the fingerprint recognition area are offset, the subsequent user's fingerprint will not be recorded normally. Therefore, the fingerprint collection area and the fingerprint recognition area need to be calibrated to align the fingerprint recognition area with the fingerprint collection area. Based on this, the present application provides a method for automatically calibrating the fingerprint collection area and the fingerprint recognition area to correct the offset of the fingerprint collection area relative to the fingerprint recognition area instead of manual calibration, saving time and effort and improving calibration efficiency.

[0037] Exemplarily, the user can issue calibration instruction information for calibrating the fingerprint collection area by operating the terminal, the terminal receives the calibration instruction information, and in response to the calibration instruction information, the working mode of the display screen can be switched to the calibration mode to display the fingerprint collection area on the display screen, and the fingerprint collection area can be used as the area to be calibrated in this mode. Exemplarily, the fingerprint collection area can be displayed on the screen in a highlighted form. For example, the user can issue calibration instruction information for calibrating the fingerprint collection area by double-clicking the volume + key, and the terminal enters the calibration mode according to the calibration instruction information, for example, the terminal enters a black screen state and highlights the entire fingerprint collection area or displays the border of the fingerprint collection area to visually remind the user that the calibration procedure of the fingerprint collection area has been entered.

[0038] For example, the display screen may be controlled to display a reference image in the fingerprint collection area, and the coordinates of the reference image in the fingerprint collection area may be obtained. Figure 3 As shown, the reference image can be a bright frame pattern, and the frame of the bright frame pattern corresponds to the frame of the fingerprint collection area. When calibrating the fingerprint collection area, the bright frame pattern can be used to display the fingerprint collection area, and the coordinates (x1, y1) of the vertex O1 of the bright frame pattern can be used to represent the coordinates of the reference image in the fingerprint collection area. Then, the fingerprint sensor under the display screen is controlled to collect the reference image in the fingerprint recognition area, and the coordinates of the reference image in the fingerprint recognition area are obtained. For example, the coordinates (x2, y2) of the vertex O1 of the bright frame pattern in the fingerprint recognition area are obtained.

[0039] like Figure 3As shown, the reference image obtained by the fingerprint sensor for the fingerprint recognition area that it can recognize is exemplarily shown. For example, taking the area shown in the dotted box as the fingerprint collection area and the area shown in the solid box as the fingerprint recognition area as an example, the fingerprint collection area can be consistent in shape and size with the fingerprint recognition area, and the dotted box is the bright frame pattern of the fingerprint collection area. It should be noted that when the dotted box and the solid box basically overlap or the deviation between the two is within the preset range, it means that the position of the fingerprint collection area and the fingerprint recognition area is basically consistent, which means that the fingerprint recognition area can collect the complete fingerprint collection area. When the dotted box and the solid box only partially overlap, it means that there is a deviation in the position of the fingerprint collection area and the fingerprint recognition area, which means that the fingerprint recognition area cannot collect the complete fingerprint collection area, which will cause the fingerprint sensor to be unable to completely collect the complete fingerprint image in the fingerprint collection area during the subsequent terminal use.

[0040] For example, the fingerprint sensor may be controlled to collect a reference image, such as a bright frame pattern. Figure 3 As shown, the fingerprint collection area and the fingerprint recognition area are partially overlapped, and the fingerprint collection area is located in the lower right of the fingerprint recognition area and occupies only a part of the fingerprint recognition area. Therefore, only a part of the reference image is collected. According to the collected partial image, such as a part of the bright frame pattern, the coordinates of the reference image in the fingerprint recognition area, such as the coordinates (x2, y2) of the vertex O1 of the bright frame pattern in the fingerprint recognition area, can be obtained. Then, according to the coordinates of the reference image in the fingerprint recognition area, such as (x2, y2) and the coordinates of the reference image in the fingerprint collection area, such as (x1, y1), the offset between the fingerprint collection area and the pattern recognition area can be obtained. Then, according to the offset between the fingerprint collection area and the pattern recognition area, the position of the fingerprint collection area can be calibrated to make the positions of the fingerprint collection area and the pattern recognition area the same.

[0041] Assuming that the upper left corner vertex of the fingerprint collection area is the origin of its coordinate system, and the upper left corner vertex of the fingerprint recognition area is the origin of its coordinate system, then Figure 3 As shown, the coordinates of the vertex O1 of the bright frame pattern in the fingerprint collection area are (0, 0), and the coordinates of the vertex O1 of the bright frame pattern in the fingerprint recognition area are not 0, then the offset between the fingerprint collection area and the fingerprint recognition area can be calculated based on the coordinate values ​​of these two coordinates.

[0042] like Figure 3 As shown, if it is determined that the fingerprint collection area is offset to the lower right relative to the fingerprint identification area, it can be instructed to move the position of the fingerprint collection area to the upper left so that the fingerprint collection area is aligned with the fingerprint identification area.

[0043] like Figure 4 As shown, Figure 4This is a flow chart of another fingerprint collection area calibration method disclosed in an embodiment of the present application, which mainly describes an optional way to obtain the offset between the fingerprint collection area and the fingerprint recognition area. Exemplarily, according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area, obtaining the offset between the fingerprint collection area and the fingerprint recognition area includes:

[0044] Step S132: Obtain the offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the center position of the reference image in the pattern recognition area and the coordinates of the center position of the reference image in the fingerprint collection area.

[0045] After obtaining the reference image in the fingerprint recognition area, the center position of the reference image can be determined first, and then the coordinates of the center position of the reference image in the fingerprint recognition area can be obtained, so as to obtain the offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the center position of the reference image in the fingerprint recognition area and the coordinates of the center position of the reference image in the fingerprint collection area. When the control display screen displays the reference image in the fingerprint collection area, the coordinates of the center position of the reference image in the fingerprint collection area are already known.

[0046] Generally, the deviation between the fingerprint collection area and the fingerprint recognition area is not too large, so the probability that the center position of the reference image falls within the fingerprint recognition area is relatively high. Therefore, according to the coordinates of the center position of the reference image, the probability of obtaining the offset between the fingerprint collection area and the fingerprint recognition area is relatively high. In order to more quickly and accurately identify the center position of the reference image, in some embodiments of the present invention, such as Figure 5 As shown, the center of the reference image has a circular pattern, so that the center position of the reference image can be identified by identifying the center position of the circular pattern. The radius length or diameter length of the circular pattern is equal to the length of multiple pixels, so that the circular pattern includes multiple pixels, so as to avoid the situation where the circular pattern includes only one pixel, and this one pixel is confused with a bad pixel, resulting in the center position of the reference image being unable to be identified.

[0047] Based on this, according to the coordinates of the center position of the reference image in the fingerprint recognition area and the coordinates of the center position of the reference image in the fingerprint collection area, obtaining the offset between the fingerprint collection area and the fingerprint recognition area includes: identifying the circular pattern of the reference image collected by the fingerprint sensor, and obtaining the coordinates of the center of the circular pattern, the coordinates of the center of the circle are the coordinates of the center of the circle in the fingerprint recognition area; according to the coordinates of the center of the circle in the fingerprint recognition area and the coordinates of the center of the circle in the fingerprint collection area, obtaining the offset between the fingerprint collection area and the fingerprint recognition area.

[0048] In some embodiments of the present invention, identifying a circular pattern of a reference image collected by a fingerprint sensor and obtaining the coordinates of the center of the circular pattern includes: identifying the edge of the circular pattern of the reference image collected by the fingerprint sensor and obtaining the coordinates of the edge of the circular pattern; obtaining the coordinates of the center of the circular pattern according to the coordinates of the edge of the circular pattern. Of course, the embodiments of the present invention are described by taking edge recognition as an example and are not limited thereto.

[0049] like Figure 5 As shown, after obtaining the reference image in the fingerprint recognition area, the coordinates (x4, y4) of the center of the circular pattern in the reference image in the fingerprint recognition area can be obtained, and then the offset between the fingerprint collection area and the fingerprint recognition area can be obtained according to the coordinates (x4, y4) of the center of the circular pattern in the fingerprint recognition area and the coordinates (x3, y3) of the center of the circular pattern in the fingerprint collection area. When the control display screen displays the reference image in the fingerprint collection area, the coordinates (x3, y3) of the center of the circular pattern in the fingerprint collection area can be obtained.

[0050] like Figure 6 As shown, Figure 6 This is a flow chart of another fingerprint collection area calibration method disclosed in an embodiment of the present application, the calibration method also includes:

[0051] Step S230: Control the display screen to display a reference image in a fingerprint collection area, and obtain the coordinates of the reference image in the fingerprint collection area, where the fingerprint collection area is an area on the display screen for indicating that the user inputs a fingerprint;

[0052] Step S231: controlling the fingerprint sensor below the display screen to collect a reference image within the fingerprint recognition area; Step S232: inputting the reference image collected by the fingerprint sensor into a preset algorithm model;

[0053] Step S233: obtaining the coordinates of the center of the circular pattern output by the algorithm model, where the algorithm model is used to identify the circular pattern of the reference image collected by the fingerprint sensor and obtain the coordinates of the center of the circular pattern;

[0054] Step S234: obtaining the offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the circle center in the fingerprint recognition area and the coordinates of the circle center in the fingerprint collection area;

[0055] Step S235: Calibrate the position of the fingerprint collection area according to the offset between the fingerprint collection area and the pattern recognition area, so that the positions of the fingerprint collection area and the pattern recognition area are the same.

[0056] In some embodiments of the present invention, an algorithm model may be pre-established. In some embodiments, multiple reference images with circular patterns collected by a fingerprint sensor may be pre-acquired, and the multiple reference images with circular patterns may be used as a training atlas and a test atlas respectively, the algorithm model may be trained using the training atlas, and the algorithm model may be tested using the test atlas to obtain a preset algorithm model.

[0057] Exemplarily, establishing the algorithm model may include: in the process of calibrating the fingerprint collection area multiple times, collecting reference images in the fingerprint recognition area multiple times, and obtaining the coordinates of the center positions of multiple reference images, such as the center of a circular pattern at different positions in the fingerprint recognition area. Then, for each reference image, determine the offset between the center position of the fingerprint collection area and the center position of the fingerprint recognition area, and obtain multiple reference offsets accordingly; establish a one-to-one correspondence between the multiple reference images and the multiple reference offsets. Exemplarily, based on the multiple reference images and the multiple reference offsets, the multiple reference images are used as training atlases and test atlases respectively, the algorithm model is trained using the training atlases, and the algorithm model training is tested using the test atlases to obtain the desired algorithm model.

[0058] After the algorithm model is established, the reference image collected by the fingerprint sensor is input into the preset algorithm model, and the coordinates of the center of the circular pattern output by the algorithm model are obtained. According to the coordinates of the center of the circle in the fingerprint recognition area and the coordinates of the center of the circle in the fingerprint collection area, the offset between the fingerprint collection area and the fingerprint recognition area is obtained. According to the offset between the fingerprint collection area and the fingerprint recognition area, the position of the fingerprint collection area is calibrated so that the fingerprint collection area is aligned with the fingerprint recognition area, thereby achieving the purpose of rapid alignment.

[0059] like Figure 7 As shown, Figure 7 This is a flow chart of another fingerprint collection area calibration method disclosed in an embodiment of the present application, the calibration method comprising:

[0060] Step S210: Control the display screen to display a reference image in a fingerprint collection area, and obtain the coordinates of the reference image in the fingerprint collection area, where the fingerprint collection area is an area on the display screen for indicating that a user inputs a fingerprint;

[0061] Step S220: controlling the fingerprint sensor under the display screen to collect a reference image in a fingerprint recognition area, and obtaining the coordinates of the reference image in the fingerprint recognition area, where the fingerprint recognition area is an area on the display screen where the fingerprint sensor recognizes the fingerprint;

[0062] Step S230: Obtaining the offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area;

[0063] Step S240: calibrating the position of the fingerprint collection area according to the offset between the fingerprint collection area and the pattern recognition area, so that the positions of the fingerprint collection area and the pattern recognition area are the same;

[0064] Step S250: obtaining the offset between the fingerprint collection area and the fingerprint recognition area again;

[0065] Step S260: Determine whether the offset between the fingerprint collection area and the fingerprint recognition area is within a preset range. If the determination result is yes, execute step S270. If the determination result is no, return to step S210.

[0066] Step S270: storing the position of the fingerprint collection area on the display screen;

[0067] like Figure 7 As shown, after executing step S240, the calibration process of the fingerprint collection area is completed. In order to confirm whether the fingerprint collection area and the fingerprint recognition area are aligned, in this embodiment, the fingerprint sensor under the display screen can be controlled again to collect the reference image in the fingerprint recognition area, and obtain the coordinates of the reference image in the fingerprint recognition area, and obtain the offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area, so as to determine whether there is still a large offset between the calibration fingerprint collection area and the fingerprint recognition area according to the offset.

[0068] Exemplarily, a certain offset may be allowed between the fingerprint collection area and the fingerprint recognition area, and a preset range may be set for the allowed offset, for example, both the horizontal offset △x and the vertical offset △y are set with preset ranges, and the horizontal offset △x and the vertical offset △y are compared with the preset ranges. When both the horizontal offset and the vertical offset are within the preset ranges, it means that the fingerprint collection area and the fingerprint recognition area are aligned, which means that the position of the calibrated fingerprint collection area on the display screen meets the user's needs, and therefore, the position of the fingerprint collection area on the display screen may be stored. When the horizontal offset and / or the vertical offset are not within the preset range, it means that the adjusted fingerprint collection area and the fingerprint recognition area are not aligned, and there is still a large deviation between the two. Therefore, the fingerprint collection area needs to be calibrated for the second time, and steps S210 to S240 are continued until the fingerprint collection area and the fingerprint recognition area are aligned.

[0069] As an optional implementation of the content disclosed in this application, the embodiment of this application discloses a calibration device for a fingerprint collection area, such as Figure 8 As shown, Figure 8 This is a block diagram of a fingerprint collection area calibration device disclosed in an embodiment of the present application, the calibration device comprising:

[0070] The display control module 100 is used to control the display screen to display the reference image in the fingerprint collection area and obtain the coordinates of the reference image in the fingerprint collection area; the fingerprint collection area is the area on the display screen used to indicate the user to input the fingerprint;

[0071] The acquisition control module 200 is used to control the fingerprint sensor under the display screen to acquire the reference image in the fingerprint recognition area and obtain the coordinates of the reference image in the fingerprint recognition area; the fingerprint recognition area is the area on the display screen where the fingerprint sensor recognizes the fingerprint;

[0072] The processing module 300 is used to obtain the offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area;

[0073] The calibration module 400 is used to calibrate the position of the fingerprint collection area according to the offset between the fingerprint collection area and the fingerprint recognition area, so that the positions of the fingerprint collection area and the fingerprint recognition area are the same.

[0074] This embodiment provides a fingerprint collection area calibration device, which can display the fingerprint collection area on the display screen when calibrating the fingerprint collection area, control the image information of the fingerprint collection area at the fingerprint recognition area, determine the offset of the fingerprint collection area relative to the fingerprint recognition area based on the image information, and obtain calibration information for calibrating the fingerprint collection area, thereby adjusting the position of the fingerprint collection area on the display screen based on the calibration information, so that the deviation between the fingerprint collection area and the fingerprint recognition area is within a preset range. The calibration method of the present application can replace the manual calibration method to correct the offset of the fingerprint collection area relative to the fingerprint recognition area, saving time and effort and improving calibration efficiency.

[0075] As an optional implementation of the content disclosed in this application, the embodiment of this application discloses a calibration device for a fingerprint collection area, such as Fig. 9 As shown, Fig. 9 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present invention. The electronic device 700 includes a display screen, a fingerprint sensor arranged below the display screen, and a calibration device connected to the display screen and the fingerprint sensor, and the calibration device includes a processor 701, and the number of processors can be set to one or more as needed. The calibration device also includes a memory 702 for storing instructions executable by the processor 701, such as an application. The number of memories can be set to one or more as needed. The application stored therein can be one or more. The processor 701 is configured to execute instructions to execute the above-mentioned fingerprint acquisition area calibration method.

[0076] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment), or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media in which a computer-usable program code is included. Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data), including but not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer, etc. In addition, it is well known to those skilled in the art that communication media generally include computer-readable instructions, data structures, program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0077] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is provided, such as a memory 702 including instructions, and the instructions can be executed by a processor 701 of an electronic device 700 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.

[0078] As an optional implementation of the contents disclosed in the present application, an embodiment of the present application discloses a computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the above-mentioned fingerprint collection area calibration method.

[0079] The present application is described with reference to the flowcharts and / or block diagrams of the methods, apparatuses (devices) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0080] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0082] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0083] The above embodiments only express several implementation methods of this specification, and the descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this specification, which all belong to the protection scope of this specification. Therefore, the protection scope of the patent of this specification shall be based on the attached claims.

Claims

1. A method for calibrating a fingerprint collection area, characterized in that: The calibration method comprises: Controlling the display screen to display a reference image in a fingerprint collection area, and obtaining the coordinates of the reference image in the fingerprint collection area; the fingerprint collection area is an area on the display screen used to indicate that a user inputs a fingerprint; Controlling the fingerprint sensor under the display screen to collect a reference image in a fingerprint recognition area, and obtaining the coordinates of the reference image in the fingerprint recognition area; the fingerprint recognition area is the area where the fingerprint sensor recognizes the fingerprint on the display screen; Obtaining an offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area; According to the offset between the fingerprint collection area and the fingerprint identification area, the position of the fingerprint collection area is calibrated to make the positions of the fingerprint collection area and the fingerprint identification area the same.

2. The fingerprint collection area calibration method according to claim 1, characterized in that: The obtaining, according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area, of the offset between the fingerprint collection area and the fingerprint recognition area comprises: The offset between the fingerprint collection area and the fingerprint recognition area is obtained according to the coordinates of the center position of the reference image in the fingerprint recognition area and the coordinates of the center position of the reference image in the fingerprint collection area.

3. The fingerprint collection area calibration method according to claim 2, characterized in that: The center of the reference image has a circular pattern, the radius length or the diameter length of the circular pattern is equal to the length of multiple pixels, and the center position of the reference image is the center of the circular pattern. Then, according to the coordinates of the center position of the reference image in the fingerprint recognition area and the coordinates of the center position of the reference image in the fingerprint collection area, obtaining the offset between the fingerprint collection area and the fingerprint recognition area includes: Identify the circular pattern of the reference image collected by the fingerprint sensor, and obtain the coordinates of the center of the circular pattern, where the coordinates of the center of the circle are the coordinates of the center of the circle in the fingerprint recognition area; The offset between the fingerprint collection area and the fingerprint recognition area is obtained according to the coordinates of the center of the circle in the fingerprint recognition area and the coordinates of the center of the circle in the fingerprint collection area.

4. The fingerprint collection area calibration method according to claim 3, characterized in that: The identifying the circular pattern of the reference image collected by the fingerprint sensor and obtaining the coordinates of the center of the circular pattern includes: Identify the edge of the circular pattern of the reference image collected by the fingerprint sensor, and obtain the coordinates of the edge of the circular pattern; The coordinates of the center of the circular pattern are obtained according to the coordinates of the edge of the circular pattern.

5. The fingerprint collection area calibration method according to claim 3 or 4, characterized in that: The identifying the circular pattern of the reference image collected by the fingerprint sensor and obtaining the coordinates of the center of the circular pattern includes: Inputting the reference image collected by the fingerprint sensor into a preset algorithm model; The coordinates of the center of the circular pattern output by the algorithm model are obtained; the algorithm model is used to identify the circular pattern of the reference image collected by the fingerprint sensor and obtain the coordinates of the center of the circular pattern.

6. The fingerprint collection area calibration method according to claim 5, characterized in that: Also includes: Acquire a plurality of reference images with circular patterns collected by the fingerprint sensor, and use the plurality of reference images with circular patterns as a training atlas and a test atlas respectively; The algorithm model is trained using the training atlas, and the algorithm model is tested using the test atlas to obtain the preset algorithm model.

7. The fingerprint collection area calibration method according to claim 1, characterized in that: After calibrating the position of the fingerprint collection area, the method further includes: Obtaining again the offset between the fingerprint collection area and the fingerprint recognition area; If the offset between the fingerprint collection area and the fingerprint recognition area is within a preset range, storing the position of the fingerprint collection area on the display screen; If the offset between the fingerprint collection area and the fingerprint identification area is not within the preset range, the position of the fingerprint collection area is calibrated again.

8. A fingerprint collection area calibration device, characterized in that: include: A display control module, used to control the display screen to display a reference image in a fingerprint collection area, and obtain the coordinates of the reference image in the fingerprint collection area; the fingerprint collection area is an area on the display screen used to indicate that a user inputs a fingerprint; an acquisition control module, used to control the fingerprint sensor under the display screen to acquire a reference image in a fingerprint recognition area and obtain the coordinates of the reference image in the fingerprint recognition area; the fingerprint recognition area is the area where the fingerprint sensor recognizes the fingerprint on the display screen; A processing module, used for obtaining an offset between the fingerprint collection area and the fingerprint recognition area according to the coordinates of the reference image in the fingerprint recognition area and the coordinates of the reference image in the fingerprint collection area; The calibration module is used to calibrate the position of the fingerprint collection area according to the offset between the fingerprint collection area and the fingerprint identification area, so that the positions of the fingerprint collection area and the fingerprint identification area are the same.

9. An electronic device, characterized in that: It includes a display screen, a fingerprint sensor disposed under the display screen, and a calibration device connected to the display screen and the fingerprint sensor, wherein the calibration device includes a memory and a processor; The memory is used to store instructions; The processor is used to execute the fingerprint collection area calibration method according to any one of claims 1 to 7 according to the instructions stored in the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the fingerprint collection area calibration method according to any one of claims 1 to 7 is implemented.