Nothing Special   »   [go: up one dir, main page]

CN108932486B - Fingerprint matching method and device and electronic device - Google Patents

Fingerprint matching method and device and electronic device Download PDF

Info

Publication number
CN108932486B
CN108932486B CN201810646580.XA CN201810646580A CN108932486B CN 108932486 B CN108932486 B CN 108932486B CN 201810646580 A CN201810646580 A CN 201810646580A CN 108932486 B CN108932486 B CN 108932486B
Authority
CN
China
Prior art keywords
data
fingerprint
image data
fingerprint image
matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201810646580.XA
Other languages
Chinese (zh)
Other versions
CN108932486A (en
Inventor
廖新风
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810646580.XA priority Critical patent/CN108932486B/en
Publication of CN108932486A publication Critical patent/CN108932486A/en
Application granted granted Critical
Publication of CN108932486B publication Critical patent/CN108932486B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/1365Matching; Classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Collating Specific Patterns (AREA)
  • Image Input (AREA)

Abstract

The embodiment of the application discloses a fingerprint matching method and device and an electronic device. The method comprises the following steps: acquiring fingerprint image data to be matched, which is acquired by a fingerprint identification module; acquiring first segment data in the fingerprint image data based on a preset splitting rule; matching the first fragment data with first reference fragment data; and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule. The method has the advantages that in the fingerprint matching process of each time, all fingerprint data do not need to be matched, the calculation resource consumed by each matching is reduced, and the consumption of electric quantity is reduced.

Description

Fingerprint matching method and device and electronic device
Technical Field
The present disclosure relates to the field of electronic devices, and more particularly, to a fingerprint matching method and apparatus, and an electronic device.
Background
With the development of biometric identification technology, more electronic devices such as mobile phones and tablet computers adopt fingerprint identification technology. Wherein, some electronic device can set up the fingerprint identification module on electronic device's surface, and usually the fingerprint identification module detects there being the object touching back, will gather the image characteristic of the part of object contact fingerprint identification module and match, and the user who so at electronic device is not under the condition of carrying out fingerprint identification, will cause electronic device's performance waste.
Disclosure of Invention
In view of the foregoing, the present application provides a fingerprint matching method, an apparatus and an electronic apparatus to achieve improvement of the foregoing problems.
In a first aspect, the present application provides a fingerprint matching method applied to an electronic device, the method including: acquiring fingerprint image data to be matched, which is acquired by a fingerprint identification module; acquiring first segment data in the fingerprint image data based on a preset splitting rule; matching the first fragment data with first reference fragment data; and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
In a second aspect, the present application provides a fingerprint matching device, operable on an electronic device, the device comprising: the fingerprint acquisition unit is used for acquiring fingerprint image data to be matched, which is acquired by the fingerprint identification module; the segment fingerprint data acquisition unit is used for acquiring first segment data in the fingerprint image data based on a preset splitting rule; a fingerprint matching unit for matching the first fragment data with first reference fragment data; and if the matching fails, the fingerprint matching unit judges that the fingerprint image data matching fails, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, the present application provides a computer-readable storage medium comprising a stored program, wherein the method described above is performed when the program is executed.
In a fifth aspect, the present application provides an electronic device, including a fingerprint acquisition module, a fingerprint processing circuit, and a fingerprint matching circuit; the fingerprint acquisition module is used for acquiring fingerprint image data; the fingerprint processing circuit is used for acquiring fingerprint image data to be matched, which is acquired by the fingerprint identification module; acquiring first segment data in the fingerprint image data based on a preset splitting rule; the fingerprint matching circuit is used for matching the first fragment data with first reference fragment data; and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
According to the fingerprint matching method, the fingerprint matching device and the electronic device, fingerprint image data to be matched, which are acquired by a fingerprint identification module, are acquired, first fragment data in the fingerprint image data are acquired based on a preset splitting rule, and the first fragment data are matched with first reference fragment data; and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule. Therefore, in the fingerprint matching process of each time, all fingerprint data does not need to be matched, the computing resource consumed by matching of each time is reduced, and the consumption of electric quantity is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 shows a flow chart of a fingerprint matching method proposed in the present application;
FIG. 2 illustrates a flow chart of another fingerprint matching method proposed by the present application;
FIG. 3 is a flow chart illustrating yet another fingerprint matching method proposed by the present application;
fig. 4 is a schematic view showing a setting position of a fingerprint recognition module and a screen of the fingerprint matching method proposed in fig. 3;
FIG. 5 is a diagram illustrating screen orientation in a fingerprint matching method proposed in the present application;
fig. 6 is a block diagram illustrating a fingerprint matching apparatus according to the present application;
fig. 7 is a block diagram showing another fingerprint matching apparatus proposed in the present application;
fig. 8 is a block diagram illustrating a structure of another fingerprint matching apparatus proposed in the present application;
fig. 9 is a schematic structural diagram of an electronic device for executing a fingerprint matching method according to an embodiment of the present application.
Fig. 10 shows a block diagram of an electronic device for executing a fingerprint matching method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the current information and technology era, biometric identification is gradually emerging to gradually replace traditional password identification. The traditional password identification technology has the defects of easy loss, theft, forgetting and the like. In addition, it is not uniquely tied to user's wagering, and once someone else obtains this information, he will have the same rights as the owner. The biological identification well makes up the defects of the traditional password identification, including the biological feature identification technologies such as human faces, irises, veins and the like, and the fingerprint identification is the most mature technology and the most wide application range.
And along with fingerprint technology's development, more electronic equipment disposes the fingerprint identification module so that realize user authentication through fingerprint identification. Wherein, there is some fingerprint identification module at present have two kinds of common modes of setting, and one kind is the setting of fingerprint identification module in the below of screen, realizes fingerprint image identification through the mode of optics. The other is to arrange the fingerprint identification module on the surface of the electronic device, for example, on the HOME key below the screen, or on the back of the electronic device.
The inventor finds that, under this kind of condition on the surface of electronic device is set up at the fingerprint identification module, as long as there is the object to contact the fingerprint identification module, the fingerprint identification module begins to gather the texture image that contacts object and fingerprint identification module contact segment promptly, regards this texture image as fingerprint image data, and then carries out fingerprint identification. The inventor finds that in many scenarios, the user does not intend to perform fingerprint recognition, which causes waste of power of the electronic device. Therefore, in order to reduce the power consumption of the electronic device, save energy, and improve user experience, the inventors propose a fingerprint matching method, a fingerprint matching device, and an electronic device in the present application.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, the present application provides a fingerprint matching method applied to an electronic device, the method including:
step S110: the fingerprint image data to be matched, which are acquired by the fingerprint identification module, are acquired.
At fingerprint identification's in-process, the fingerprint identification module can gather the texture image of partly object with fingerprint identification module contact as the fingerprint image of treating the matching, perhaps gathers the texture image of the object that corresponds the regional contact with the fingerprint identification module as the fingerprint image of treating the matching. And then, encoding the sorted fingerprint image by using a preset fingerprint encoding rule to obtain fingerprint image data in an image processing flow based on image normalization, image enhancement, image binarization and the like.
The fingerprint image data obtained by processing is a string of characters. For example, the fingerprint generated by the simhash fingerprint generation algorithm is an f-bit binary string, such as a 32-bit fingerprint, '101001111100011010100011011011'. The fingerprint image data obtained by encoding of another or some fingerprint encoding algorithms comprises a data head and a data body content part, wherein the data head comprises some descriptive information, and the data body content comprises the image encoding data of the fingerprint. It is understood that the descriptive information in the data header is still encoded based on the features in the captured fingerprint image, and can still be used as data for distinguishing fingerprint images of other users.
Step S120: and acquiring first segment data in the fingerprint image data based on a preset splitting rule.
When splitting the fingerprint image data, the splitting may be performed according to a fingerprint encoding format defined by the adopted fingerprint encoding method. For example, for the fingerprint image data generated by the simhash fingerprint generation algorithm, the fingerprint image data may be directly divided into a plurality of parts according to the number of bits of the encoded data, and with 8 encoded data bits as one part, the encoded data may be divided into "10100111", "11000110", "10100011" and "011011" with the first part as the first fragment data, that is, "11000110" as the first fragment data.
Further, the number of coded bits may be different for each slice.
By one approach, the number of data encoding bits in the acquired first piece of data may change depending on the scene in which the electronic device is currently located. For example, the security level corresponding to the current scene may be changed, wherein the higher the security level, the more data encoding bits are obtained. For example, a scene with a high security level may be allocated data of 10 data encoding bits in the first slice of data, and a scene with a second highest security level may be allocated data of 6 data encoding bits. The payment scenario may be the scenario with the highest security level, and the unlocking scenario may be the scenario with the highest security level.
Alternatively, in the case where the encoded fingerprint encoding data includes a header and a body, the header having a smaller data content may be used as the first segment data.
Step S130: matching the first fragment data with a first reference fragment data.
It will be appreciated that in order to facilitate fingerprint identification based authentication, the electronic device needs to acquire fingerprint image data for subsequent use as an identification reference prior to identification. Fingerprint image data acquired before identification for subsequent use as an identification reference is taken as historical fingerprint image data, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule. It will be appreciated that, in order to facilitate subsequent matching, the same rules apply for splitting the first reference fragment data from the historical fingerprint image data and for splitting the first fragment data from the fingerprint image data to be matched.
Step S140: and if the matching fails, judging that the fingerprint image data fails to be matched.
If the matching of the first segment data and the first reference segment data fails, the fingerprint image data to be matched is represented to be not matched with the historical fingerprint image data, and then the matching of the fingerprint image data to be matched can be judged to fail.
In some scenarios, the user may hold the electronic device at all times. For example, when the user walks, in order to use electronic device at any time, can hold electronic device in the hand, and if the user holds electronic device always, and palm or finger and electronic device's fingerprint identification module contact or place when can be by the regional of fingerprint identification module discernment, the fingerprint identification module can be continuous gather the image and discern as fingerprint image. In order to further reduce the performance waste, if it is detected that the matching between the first segment data and the first reference segment data fails for a plurality of times within a preset time period, the fingerprint identification module is controlled to stop collecting the fingerprint image data within the preset time period. If the user wants to authenticate within the set time period, other methods, such as inputting a password, can be used.
Wherein, as a mode of recovering fingerprint identification module collection fingerprint. If the electronic device detects that the matching failure of the first segment data and the first reference segment data for a plurality of times is in a shaking state, the collected fingerprint image can be recovered after the electronic device is detected to be standing for a period of time.
Step S150: and if the matching is successful, matching the fragment data except the first fragment data in the fingerprint image data to be matched with the data except the first reference fragment data in the historical fingerprint image data.
Step S160: and if the matching is successful, judging that the fingerprint image data is successfully matched.
Step S170: and if the matching fails, judging that the fingerprint image data fails to be matched.
The fingerprint matching method comprises the steps of obtaining fingerprint image data to be matched, which are collected by a fingerprint identification module, obtaining first fragment data in the fingerprint image data based on a preset splitting rule, and matching the first fragment data with first reference fragment data; and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule. Therefore, in the fingerprint matching process of each time, all fingerprint data does not need to be matched, the computing resource consumed by matching of each time is reduced, and the consumption of electric quantity is reduced.
Referring to fig. 2, the present application provides a fingerprint matching method applied to an electronic device, the method including:
step S210: acquiring fingerprint image data to be matched, which is acquired by a fingerprint identification module;
step S220: and detecting the motion parameters of the electronic device when the fingerprint identification module collects the fingerprint image data to be matched.
It should be noted that, in general, when a user performs fingerprint recognition, the electronic device is in a relatively stationary state due to the habit of holding the electronic device by the user, and fingerprint recognition is not performed when the electronic device is shaken. Then after acquiring the fingerprint image data to be matched acquired by the fingerprint identification module, the motion parameters of the electronic device can be detected firstly. The motion parameters may include acceleration values, angular velocity values, and the like.
Step S230: and judging whether the motion parameters accord with fingerprint identification conditions.
Step S240: and if the motion parameters do not accord with the fingerprint identification conditions, ending the process.
Wherein the fingerprint identification condition comprises: the acceleration of the electronic device is smaller than a preset value; or the change frequency of the acceleration of the electronic device is less than the preset frequency. It is understood that in the case where the acceleration is not less than the preset value and/or the acceleration change frequency of the electronic apparatus is not less than the preset frequency, the electronic apparatus determines that the electronic apparatus is in a motion state, and then in such a motion state, the electronic apparatus determines that the user does not perform fingerprint recognition.
As a way, when it is detected that the motion parameter does not meet the fingerprint identification condition and an action of lifting the electronic apparatus is detected, the first segment data in the fingerprint image data may be acquired based on a preset splitting rule, and then the subsequent process may be continued.
Step S250: and if the motion parameters accord with the fingerprint identification conditions, acquiring first segment data in the fingerprint image data based on a preset splitting rule.
It should be noted that, the process of acquiring the fingerprint image data by the fingerprint identification module is relatively short, and then as a mode, before detecting that the fingerprint image is collected by the fingerprint identification module, whether the motion parameter detected by the electronic device meets the fingerprint identification condition or not can be detected, and if the motion parameter meets the fingerprint identification condition, the first segment data in the fingerprint image data is acquired based on the preset splitting rule.
Step S260: matching the first fragment data with a first reference fragment data.
Step S270: and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
According to the fingerprint matching method, fingerprint image data to be matched, which are acquired by a fingerprint identification module, are acquired, under the condition that the motion parameters of an electronic device accord with fingerprint identification conditions, first fragment data in the fingerprint image data are acquired based on a preset splitting rule, and the first fragment data are matched with first reference fragment data; and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule. Therefore, in the fingerprint matching process of each time, all fingerprint data does not need to be matched, the computing resource consumed by matching of each time is reduced, and the consumption of electric quantity is reduced.
Referring to fig. 3, the present application provides a fingerprint matching method applied to an electronic device, where a screen of the electronic device and a fingerprint identification module are disposed on two opposite sides of the electronic device, and the method includes:
step S310: the fingerprint image data to be matched, which are acquired by the fingerprint identification module, are acquired.
Step S320: detect the fingerprint identification module is gathered when treating the fingerprint image data of matching, electron device sets up the orientation of the one side of screen.
In this example, as shown in fig. 4, the left side is the back side of the electronic device, the right side is the front side of the electronic device, and the fingerprint recognition module 99 and the screen 210 are respectively disposed on both sides of the electronic device. Then in one scenario, when the electronic device is placed on a table top, as shown in fig. 5, the side 321 of the electronic device setup screen 210 is facing the table top of the table 97. In the state shown in fig. 5, the user may sometimes subconsciously touch the back of the electronic device, and may touch the fingerprint recognition module 99 without unlocking the electronic device, thereby wasting the performance of the electronic device. Similarly, the one side that electron device set up the screen also can be when ground one side is being faced, and the user touches the fingerprint identification module, causes fingerprint misidentification.
Then, as one way, it can be identified whether to perform the subsequent process by detecting the orientation of the side of the electronic device on which the screen is disposed.
Step S330: and judging whether one side of the electronic device, which is provided with the screen, faces a set direction.
Step S340: and if the electronic device is arranged in the direction opposite to the set direction, ending the process.
Step S350: and if the electronic device sets the orientation setting direction of one side of the screen, acquiring first segment data in the fingerprint image data based on a preset splitting rule.
Here, it is understood that, when the user uses the electronic apparatus, the electronic apparatus is oriented toward the user side if in the holding state, and the side of the electronic apparatus on which the screen is provided is oriented in the vertically upward direction if the electronic apparatus is placed on a table like that shown in fig. 5. Then, it may be detected that the electronic apparatus is currently in a holding state, that is, in a standing state, and then it is detected whether an orientation setting direction of one side of the setting screen in the corresponding state is an orientation when the user is determined to use, and if so, the subsequent process may be continued, that is, the first segment data in the fingerprint image data is obtained based on a preset splitting rule. It can be understood that the aforementioned setting direction is a direction in which one surface of the setting screen faces the user side when the electronic device is in the resting state or the holding state.
Step S360: matching the first fragment data with a first reference fragment data.
Step S370: and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
According to the fingerprint matching method, fingerprint image data to be matched, which are acquired by a fingerprint identification module, are acquired, under the condition that the orientation of one surface of a screen of an electronic device is set to a set direction, first fragment data in the fingerprint image data are acquired based on a preset splitting rule, and the first fragment data are matched with first reference fragment data; and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule. Therefore, in the fingerprint matching process of each time, all fingerprint data does not need to be matched, the computing resource consumed by matching of each time is reduced, and the consumption of electric quantity is reduced.
Referring to fig. 6, the present application provides a fingerprint matching device 400, operating in an electronic device, where the device 400 includes:
the fingerprint acquisition unit 410 is used for acquiring fingerprint image data to be matched, which is acquired by the fingerprint identification module;
a segment fingerprint data obtaining unit 420, configured to obtain a first segment data in the fingerprint image data based on a preset splitting rule.
A fingerprint matching unit 430 for matching the first segment data with first reference segment data.
If the matching fails, the fingerprint matching unit 430 determines that the matching of the fingerprint image data fails, where the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
If the matching fails, the fingerprint matching unit 430 is further configured to, if the matching is successful, match the fragment data of the to-be-matched fingerprint image data, excluding the first fragment data, with the data of the historical fingerprint image data, excluding the first reference fragment data, if the matching is successful, determine that the fingerprint image data is successfully matched, and if the matching is failed, determine that the fingerprint image data is unsuccessfully matched.
The fingerprint obtaining unit 410 is further configured to, if it is detected that the matching between the first segment data and the first reference segment data fails for multiple times within a preset time period, control the fingerprint identification module to stop collecting fingerprint image data within the preset time period.
Referring to fig. 7, the present application provides a fingerprint matching device 500, operating in an electronic device, where the device 500 includes:
fingerprint acquisition unit 510 for acquire the fingerprint image data of treating the matching of fingerprint identification module collection.
And the motion parameter acquiring unit 520 is configured to detect a motion parameter of the electronic device when the fingerprint identification module acquires the fingerprint image data to be matched.
A motion parameter of the electronic device; if the motion parameters do not accord with the fingerprint identification conditions, ending the process; and if the motion parameters accord with the fingerprint identification conditions, executing the preset splitting rule to obtain the first segment data in the fingerprint image data.
And the segment fingerprint data acquisition unit 530 is used for acquiring first segment data in the fingerprint image data based on a preset splitting rule when the motion parameter acquisition unit 520 detects that the fingerprint identification module acquires the fingerprint image data to be matched.
A fingerprint matching unit 540, configured to match the first segment data with first reference segment data.
If the matching fails, the fingerprint matching unit 540 determines that the matching of the fingerprint image data fails, where the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
Referring to fig. 8, the present application provides a fingerprint matching device 600, operating in an electronic device, where the device 600 includes:
fingerprint acquisition unit 610 for the fingerprint image data of treating the matching of acquireing fingerprint identification module collection.
The gesture detection unit 620 is configured to detect an orientation of a side of the screen where the electronic device is disposed when the fingerprint identification module collects the fingerprint image data to be matched;
and the fragment fingerprint data acquisition unit 630 is used for detecting by the gesture detection unit 620 when the fingerprint identification module acquires the fingerprint image data to be matched, acquiring first fragment data in the fingerprint image data based on a preset splitting rule.
A fingerprint matching unit 640 for matching the first fragment data with first reference fragment data.
If the matching fails, the fingerprint matching unit 640 determines that the fingerprint image data matching fails, where the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
It should be noted that the foregoing apparatus embodiment corresponds to the foregoing method embodiment, and specific contents in the apparatus embodiment may refer to contents in the foregoing method embodiment.
In summary, the fingerprint matching method, the fingerprint matching device and the electronic device provided by the application acquire the fingerprint image data to be matched, which is acquired by the fingerprint identification module, acquire the first segment data in the fingerprint image data based on the preset splitting rule, and match the first segment data with the first reference segment data; and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule. Therefore, in the fingerprint matching process of each time, all fingerprint data does not need to be matched, the computing resource consumed by matching of each time is reduced, and the consumption of electric quantity is reduced.
An electronic device provided by the present application will be described with reference to fig. 9 and 10.
Referring to fig. 9, based on the data processing method and apparatus, the embodiment of the present application further provides a mobile terminal 100 capable of executing the data processing method. The mobile terminal 100 comprises an electronic body 10, wherein the electronic body 10 comprises a housing 12 and a screen 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the screen 120 and the second screen 121 generally include a display panel 111, and may also include a circuit or the like for responding to a pressing operation on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109.
Referring to fig. 10, based on the fingerprint matching method and apparatus, an embodiment of the present invention further provides an electronic apparatus 100 capable of performing the fingerprint matching method. The electronic device 100 includes one or more (only one shown) processors 102, a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 132. It will be understood by those skilled in the art that the present application is not limited to the structure of the electronic device 100. For example, the electronic device 100 may also include more or fewer components than shown, or have a different configuration than shown.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripheral interface 124 may be implemented based on the following criteria: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used for storing software programs and modules, such as programs and devices that can execute the fingerprint matching method provided in the present application, and the processor 102 executes various functional applications and data processing by operating the software programs and devices stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the electronic device 100 or the screen 210 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The RF module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF module 106 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE 802.10A, IEEE802.11 b, IEEE 802.2.1 g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail Access (Microwave for Wireless Communication), and any other suitable protocol for short message Communication (wimax), as well as any other suitable protocol for instant messaging, and may even include those protocols that have not yet been developed.
The camera 220 is used as an image capturing device for capturing an image, for example, capturing data to be encrypted, and transmitting the data to the process 102 for processing. Alternatively, the electronic device 100 includes a touch device, a detection circuit, and a processing circuit, which are coupled to each other, where the touch device is used for a user to perform a touch operation; the detection circuit is used for acquiring touch parameters for triggering the touch operation for encrypting the data after detecting that the data needs to be encrypted; the processing circuit is used for determining a data encryption level based on the touch parameter of the touch operation; encrypting the data based on the encryption level.
The audio circuitry 110, speaker 101, sound jack 103, microphone 105 collectively provide an audio interface between a user and the electronic device 100 or the screen 210. Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into an electrical signal, and transmits the electrical signal to the speaker 101. The speaker 101 converts an electric signal into a sound wave audible to the human ear. The audio circuitry 110 also receives electrical signals from the microphone 105, converts the electrical signals to sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be retrieved from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted through the RF module 106.
The sensor 114 is disposed within the electronic device 100 or within the screen 210, examples of the sensor 114 include, but are not limited to: light sensor 114F, motion sensor, fingerprint recognition module 114G, pressure sensor, infrared heat sensor, distance sensor, acceleration sensor, and other sensors. The acceleration sensor can be used for acquiring the motion attitude of the electronic device in real time, for example, acquiring the acceleration value and the direction of the acceleration of the electronic device in real time.
Among them, the pressure sensor may detect a pressure generated by pressing on the electronic device 100. That is, the pressure sensor detects pressure resulting from contact or depression between the user and the electronic device, such as contact or depression between the user's ear and the electronic device. Thus, the pressure sensor may be used to determine whether contact or pressure has occurred between the user and the electronic device 100, as well as the magnitude of the pressure.
Referring to fig. 10, in the embodiment shown in fig. 10, the light sensor 114F and the pressure sensor are disposed adjacent to the display panel 111. The light sensor 114F can turn off the display output when an object is near the screen 210, such as when the electronic device 100 moves to the ear.
As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), detect the magnitude and direction of gravity when the electronic device is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping) and the like for recognizing the attitude of the electronic device 100. In addition, the electronic device 100 may further be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a thermometer, which are not described herein again. Wherein the gyroscope may acquire the rotation angular velocity of the electronic device 100 in real time, so that the electronic device may determine whether the electronic device is in a falling state according to the foregoing embodiments.
In this embodiment, the input module 118 may include the touch screen 109 disposed on the screen 210, and the touch screen 109 may collect a touch operation of the user (for example, an operation of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by using resistive, capacitive, infrared, and surface acoustic wave types. In addition to the touch screen 109, in other variations, the input module 118 may include other input devices, such as keys. The keys may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of such control keys include a "back to home" key, a power on/off key, and the like.
The screen 210 is used to display information input by a user, information provided to the user, and various graphic user interfaces of the electronic device 100, which may be configured by graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen 109 may be disposed on the display panel 111 so as to be integrated with the display panel 111.
The power module 132 is used to provide power supply to the processor 102 and other components. Specifically, the power module 132 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components related to the generation, management, and distribution of power within the electronic device 100 or the screen 210.
The electronic device 100 further comprises a locator 119, the locator 119 being configured to determine an actual location of the electronic device 100. In this embodiment, the locator 119 uses a positioning service to locate the electronic device 100, and the positioning service is understood to be a technology or a service for obtaining the position information (e.g. longitude and latitude coordinates) of the electronic device 100 by a specific positioning technology and marking the position of the located object on the electronic map.
It should be understood that the electronic apparatus 100 described above is not limited to the smartphone terminal, and it should refer to a computer device that can be used in a mobile. Specifically, the electronic device 100 refers to a mobile computer device equipped with an intelligent operating system, and the electronic device 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A fingerprint matching method is applied to an electronic device, and comprises the following steps:
acquiring fingerprint image data to be matched, which is acquired by a fingerprint identification module;
acquiring first segment data in the fingerprint image data based on a preset splitting rule, if the fingerprint image data is a binary character string, dividing the binary character string into a plurality of parts according to the number of bits of coded data, wherein the first part of the binary character string which is ranked most front is used as first segment data, the number of data coding bits of the first segment data corresponds to the current scene of the electronic device, and the higher the security level of the scene is, the more the number of corresponding data coding bits is; if the fingerprint image data comprises a data head and a data text, the first segment data is the data head, and the data content of the data head is less than that of the data text;
matching the first fragment data with first reference fragment data;
and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
2. The method of claim 1, further comprising:
and if the matching is successful, matching the fragment data except the first fragment data in the fingerprint image data to be matched with the data except the first reference fragment data in the historical fingerprint image data, if the matching is successful, judging that the fingerprint image data is successfully matched, and if the matching is failed, judging that the fingerprint image data is failed to be matched.
3. The method of claim 1, further comprising:
and if the first segment data and the first reference segment data are detected to be failed to be matched for multiple times in a preset time period, controlling the fingerprint identification module to stop collecting the fingerprint image data in the preset time period.
4. The method according to claim 1, wherein the step of obtaining the first segment data in the fingerprint image data based on the preset splitting rule is preceded by the step of:
detecting the motion parameters of the electronic device when the fingerprint identification module collects the fingerprint image data to be matched;
if the motion parameters do not accord with the fingerprint identification conditions, ending the process;
and if the motion parameters accord with the fingerprint identification conditions, executing the preset splitting rule to obtain the first segment data in the fingerprint image data.
5. The method of claim 4, wherein the fingerprint recognition condition comprises:
the acceleration of the electronic device is smaller than a preset value; or
The change frequency of the acceleration of the electronic device is less than the preset frequency.
6. The method according to claim 1, wherein the screen of the electronic device and the fingerprint recognition module are disposed on two opposite sides of the electronic device, and the step of obtaining the first segment data in the fingerprint image data based on the preset splitting rule further comprises:
detecting the orientation of one side of a screen arranged by the electronic device when the fingerprint identification module collects the fingerprint image data to be matched;
and if the electronic device sets the direction of one surface of the screen, executing the acquisition of the first segment data in the fingerprint image data based on a preset splitting rule.
7. A fingerprint matching device, operable on an electronic device, the device comprising:
the fingerprint acquisition unit is used for acquiring fingerprint image data to be matched, which is acquired by the fingerprint identification module;
the fragment fingerprint data acquisition unit is used for acquiring first fragment data in the fingerprint image data based on a preset splitting rule, if the fingerprint image data is a binary character string, dividing the binary character string into a plurality of parts according to the number of bits of encoded data, wherein the first part of the binary character string which is sequenced most in front is used as the first fragment data, the number of data encoding bits of the first fragment data corresponds to the current scene of the electronic device, and the number of data encoding bits corresponding to the higher scene security level is more; if the fingerprint image data comprises a data head and a data text, the first segment data is the data head, and the data content of the data head is less than that of the data text;
a fingerprint matching unit for matching the first fragment data with first reference fragment data;
and if the matching fails, the fingerprint matching unit judges that the fingerprint image data matching fails, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
8. The apparatus according to claim 7, wherein if the matching is successful, the fingerprint matching unit is further configured to match segment data of the fingerprint image data to be matched, excluding the first segment data, with data of the historical fingerprint image data, excluding the first reference segment data, and if the matching is successful, the fingerprint matching unit determines that the fingerprint image data matching is successful, and if the matching is failed, the fingerprint matching unit determines that the fingerprint image data matching is failed.
9. An electronic device comprising one or more processors and memory;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-6.
10. A computer-readable storage medium storing program code executable by a processor, the computer-readable storage medium comprising a stored program, wherein the method of any of claims 1-6 is performed when the program is executed by the processor.
11. An electronic device is characterized by comprising a fingerprint acquisition module, a fingerprint processing circuit and a fingerprint matching circuit;
the fingerprint acquisition module is used for acquiring fingerprint image data;
the fingerprint processing circuit is used for acquiring fingerprint image data to be matched, which is acquired by the fingerprint identification module; acquiring first segment data in the fingerprint image data based on a preset splitting rule, if the fingerprint image data is a binary character string, dividing the binary character string into a plurality of parts according to the number of bits of coded data, wherein the first part of the binary character string which is ranked most front is used as first segment data, the number of data coding bits of the first segment data corresponds to the current scene of the electronic device, and the higher the security level of the scene is, the more the number of corresponding data coding bits is; if the fingerprint image data comprises a data head and a data text, the first segment data is the data head, and the data content of the data head is less than that of the data text;
the fingerprint matching circuit is used for matching the first fragment data with first reference fragment data; and if the matching fails, judging that the fingerprint image data is failed to be matched, wherein the first reference fragment data is obtained by splitting the acquired historical fingerprint image data according to the preset splitting rule.
CN201810646580.XA 2018-06-21 2018-06-21 Fingerprint matching method and device and electronic device Expired - Fee Related CN108932486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810646580.XA CN108932486B (en) 2018-06-21 2018-06-21 Fingerprint matching method and device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810646580.XA CN108932486B (en) 2018-06-21 2018-06-21 Fingerprint matching method and device and electronic device

Publications (2)

Publication Number Publication Date
CN108932486A CN108932486A (en) 2018-12-04
CN108932486B true CN108932486B (en) 2020-09-22

Family

ID=64446856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810646580.XA Expired - Fee Related CN108932486B (en) 2018-06-21 2018-06-21 Fingerprint matching method and device and electronic device

Country Status (1)

Country Link
CN (1) CN108932486B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109754242B (en) * 2019-01-11 2020-07-17 北京阿尔山区块链联盟科技有限公司 Mnemonic generating method and device and electronic equipment
CN110008675B (en) * 2019-03-28 2021-07-20 南京维沃软件技术有限公司 Fingerprint identification method and mobile terminal
CN113553995A (en) * 2019-05-29 2021-10-26 Oppo广东移动通信有限公司 Calibration method and related equipment
CN113434561A (en) * 2021-06-24 2021-09-24 北京金山云网络技术有限公司 Live broadcast data verification method and system, electronic device and storage medium

Also Published As

Publication number Publication date
CN108932486A (en) 2018-12-04

Similar Documents

Publication Publication Date Title
CN106778585B (en) A kind of face key point-tracking method and device
CN106951767B (en) Unlocking control method and related product
EP4109218B1 (en) Mobile phone comprising a touch screen with an in-display fingerprint sensor
CN106127481B (en) A kind of fingerprint method of payment and terminal
CN107194224B (en) Unlocking control method and related product
EP3396579B1 (en) Unlocking control method and mobile terminal
CN106126015B (en) A kind of application program launching control method and terminal
CN107992728B (en) Face verification method and device
CN108932486B (en) Fingerprint matching method and device and electronic device
CN108256853B (en) Payment method and mobile terminal
CN108777731B (en) Key configuration method and device, mobile terminal and storage medium
CN107622193B (en) fingerprint unlocking method and related product
CN108932102B (en) Data processing method and device and mobile terminal
CN109104521B (en) Method and device for correcting approaching state, mobile terminal and storage medium
WO2018161540A1 (en) Fingerprint registration method and related product
CN107908939B (en) Terminal alarm method and device and mobile terminal
CN108737638B (en) Application control method and device, mobile terminal and computer readable medium
CN107545163B (en) Unlocking control method and related product
CN107528970B (en) User identification method, terminal and storage medium
CN106570383A (en) Unlocking method and apparatus for mobile terminal, and mobile terminal
WO2019019837A1 (en) Biological identification method and related product
CN109101119B (en) Terminal control method and device and mobile terminal
CN107330374B (en) Fingerprint registration method and related product
CN107622235B (en) Fingerprint unlocking method and related product
CN106022059B (en) A kind of unlocked by fingerprint method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200922

CF01 Termination of patent right due to non-payment of annual fee