Abstract:
The present disclosure discloses a method and device for calculating a line distance. The method includes: obtaining an original image and performing grayscale processing to generate a grayscale image; generating a radical image and a tangential image according to the grayscale image; performing filtering on the grayscale image according to the tangential image to generate a smoothened image and converting the smoothened image into a binary image; dividing the binary image into blocks and determining a radical direction of a center point of each block according to the radical image; traversing pixels in the radical direction of the center point of each block to calculate a number of times pixel values of two adjacent pixels within the each block change between a first pixel value and a second pixel value, and to calculate a coordinate and sub-pixel value of a boundary point corresponding to a changing-point; and generating the line distance according to the number of times of the change, and the coordinate and the sub-pixel value of the boundary point corresponding to the changing-point. The method seeks the boundary point of the fingerprint ridge lines and the fingerprint valley lines and calculates the line distance according to the coordinates and the sub-pixel value of the boundary point, improving accuracy, strengthening the ability to resist noise.
Abstract:
The present disclosure discloses method for calculating an area of a fingerprint overlapping region, including: collecting a to-be-matched fingerprint to obtain a to-be-matched fingerprint image; searching multiple pairs of matching characteristic points between the to-be-matched fingerprint image and a preset template fingerprint image; obtaining an image offset of the to-be-matched fingerprint image according to the multiple pairs of matching characteristic points; based on the image offset, adjusting a position of the to-be-matched fingerprint image to obtain an overlapping region between the to-be-matched fingerprint image and the preset template fingerprint image; and calculating a total number of image pixels within the overlapping region, and calculating an area of the overlapping region based on the total number of image pixels within the overlapping region. In the above calculation method, by dividing the overlapping region into individual image pixels and calculating the number of image pixels in the overlapping region to calculate the area of the overlapping region, it is possible to calculate the area of the overlapping region of any shape, and the calculated area is accurate at the pixel level. Thus, the calculated area may be more accurate, facilitating subsequent calculation, making fingerprint matching more accurate, and improving the user experience. The present disclosure also discloses an electronic device.
Abstract:
The present disclosure provides a method and an apparatus for adjusting an excitation voltage of a fingerprint detection chip and a fingerprint detection chip. The method for adjusting an excitation voltage of a fingerprint detection chip includes: S1, transmitting an excitation signal to the metal ring by the signal transmitting unit, so as to detect a capacitance value of a coupling capacitance formed between the plurality of detection units in the second detection area and the metal ring; or enabling the metal ring grounded, and applying an excitation signal to the plurality of detection units in the second detection area by the signal transmitting unit, so as to detect a capacitance value of a coupling capacitance formed between the plurality of detection units in the second detection area and the metal ring; and S2, adjusting an excitation voltage of the first detection area according to the capacitance value of the coupling capacitance formed between the plurality of detection units in the second detection area and the metal ring.
Abstract:
The present disclosure provides a fingerprint detection circuit and method. The circuit includes a fingerprint collecting module and a processing module. The fingerprint collecting module includes a plurality of collecting units, and each collecting unit has a regulation voltage and is configured to output a first voltage or a second voltage according to a capacitance value of one of ridge capacitors, a capacitance value of one of ridge capacitors and the regulation voltage. The processing module is configured to amplify the first and second voltages by a predetermined factor, to calculate a difference between the amplified first and second voltages, and to determine whether the difference is greater than or equal to the predetermined threshold. If no, the processing module adjusts at least one parameter, and configures the fingerprint detection circuit using at least one adjusted parameter.
Abstract:
A method for cancelling background noise of an audio device comprises determining characteristic values of an audio signal to construct a characteristic signal reflecting a change trend of the audio signal, multiplying the determined characteristic signal with the audio signal to construct a multiplication signal, and amplifying the multiplication signal.