CN107392154B - Finger prints processing method, apparatus and terminal device - Google Patents

Finger prints processing method, apparatus and terminal device Download PDF

Info

Publication number
CN107392154B
CN107392154B CN201710610578.2A CN201710610578A CN107392154B CN 107392154 B CN107392154 B CN 107392154B CN 201710610578 A CN201710610578 A CN 201710610578A CN 107392154 B CN107392154 B CN 107392154B
Authority
CN
China
Prior art keywords
template
fingerprint
finger print
current finger
print template
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.)
Active
Application number
CN201710610578.2A
Other languages
Chinese (zh)
Other versions
CN107392154A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710610578.2A priority Critical patent/CN107392154B/en
Publication of CN107392154A publication Critical patent/CN107392154A/en
Application granted granted Critical
Publication of CN107392154B publication Critical patent/CN107392154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Abstract

The present invention is suitable for field of information security technology, provides finger prints processing method, apparatus and terminal device, comprising: obtains the first fingerprint, the current finger print template for the first fingerprint deposit memory that will acquire;The current finger print template is stored in file system, system fingerprint template is obtained, and back up the system fingerprint template, obtains the first backup fingerprint template;Detect whether to receive designated order, the designated order includes: unlock instruction after booting, fingerprint typing instruction;After receiving designated order, whether detection current finger print template is abnormal, and the current finger print template is the system fingerprint template being stored in memory from the file system;In current finger print template exception, the first backup fingerprint template is stored in memory from the file system, and replace the current finger print template.The number that user re-types fingerprint can be effectively reduced by the above method.

Description

Finger prints processing method, apparatus and terminal device
Technical field
The invention belongs to field of information security technology more particularly to finger prints processing method, apparatus and terminal devices.
Background technique
Currently, terminal device is usually combined with the fingerprint of user, so as to quickly and safely realize corresponding function Can, for example, it is assumed that the fingerprint of user is combined with unlocking function, then can be fast implemented by the fingerprint of user to the terminal The unlock of equipment;Assuming that the fingerprint of user is combined with payment function, then can be fast implemented accordingly by the fingerprint of user Payment function.
Before the fingerprint using user, need in the fingerprint typing terminal device by corresponding user.Existing fingerprint In input method, after obtaining fingerprint, which is stored in fingerprint template, in this way, can judge input according to the fingerprint template The fingerprint matching whether fingerprint stores with the fingerprint template determines that the corresponding user of fingerprint of input is legal use if matching Family.But in this method, once fingerprint template is abnormal, then fingerprint matching function will can not achieve, and then cause and fingerprint phase The function of pass can not achieve.
Therefore, it is desirable to provide the new method of one kind is to solve the above technical problems.
Summary of the invention
In view of this, the embodiment of the invention provides finger prints processing method, apparatus and terminal device, to solve the prior art Once fingerprint template is abnormal in, will lead to the problem of function relevant to fingerprint can not achieve.
The first aspect of the embodiment of the present invention provides a kind of finger prints processing method, comprising:
The first fingerprint is obtained, the current finger print template for the first fingerprint deposit memory that will acquire;
The current finger print template is stored in file system, obtains system fingerprint template, and back up the system fingerprint Template obtains the first backup fingerprint template;
Detect whether to receive designated order, the designated order includes: that unlock instruction after booting, fingerprint typing refer to It enables;
After receiving designated order, whether detection current finger print template is abnormal, and the current finger print template is from described File system is stored in the system fingerprint template in memory;
In current finger print template exception, the first backup fingerprint template is stored in memory from the file system, And replace the current finger print template.
The second aspect of the embodiment of the present invention provides a kind of finger prints processing device, comprising:
First fingerprint acquiring unit, for obtaining the first fingerprint, the current finger print for the first fingerprint deposit memory that will acquire Template;
First backup fingerprint template generation unit, for being by current finger print template deposit file system System fingerprint template, and the system fingerprint template is backed up, obtain the first backup fingerprint template;
Designated order detection unit, for detecting whether receiving designated order, the designated order includes: after being switched on Unlock instruction, fingerprint typing instruction;
First current finger print template abnormal deciding means, for detecting current finger print template after receiving designated order Whether abnormal, the current finger print template is the system fingerprint template being stored in memory from the file system;
First current finger print template replacement unit is used in current finger print template exception, by the first backup fingerprint Template is stored in memory from the file system, and replaces the current finger print template.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program It realizes such as the step of any one of finger prints processing method the method.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, realizes as described in finger prints processing any one of method when the computer program is executed by processor The step of method.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
Since after receiving designated order, whether detection current finger print template is abnormal, if abnormal, the first backup is referred to Line template is extracted in memory from file system, and replaces abnormal current finger print template, and the first backup fingerprint template is deposited The information of storage be be abnormal before the storage of current finger print template information be it is identical, therefore, first can be backed up by this Fingerprint template realizes subsequent fingerprint matching, to avoid just user being needed to re-type when current finger print template is abnormal Fingerprint reduces user's operation, improves user experience.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow chart for finger prints processing method that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram for mobile terminal that the embodiment of the present invention one provides;
Fig. 3 is a kind of structural schematic diagram of finger prints processing device provided by Embodiment 2 of the present invention;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention three provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
Fig. 1 shows the flow chart that the present invention first implements a kind of finger prints processing method of offer, it is noted that this " the first fingerprint " in embodiment, " the first backup fingerprint template ", " the second fingerprint ", " in " the second backup fingerprint template " One ", " second " is only used for distinguishing different fingerprints, backup fingerprint template there is no physical meaning.Details are as follows:
Step S11 obtains the first fingerprint, the current finger print template for the first fingerprint deposit memory that will acquire.
Specifically, when user is after terminal device issues fingerprint typing instruction, user presses the specific bit of the terminal device It sets, at this point, the terminal device will acquire the first fingerprint, specially obtains the corresponding image information of the first fingerprint, then will acquire Image information deposit memory current finger print template.
Specifically, when terminal device is mobile terminal, the schematic diagram of the mobile terminal is somebody's turn to do as shown in Fig. 2, in Fig. 2 Mobile terminal includes memory 201, processor 202, input equipment 203, output equipment 204, bus 205.
The current finger print template is stored in file system by step S12, obtains system fingerprint template, and described in backup System fingerprint template obtains the first backup fingerprint template.
Since the memory of terminal device cannot save corresponding information for a long time, first is stored in current finger print template After fingerprint success, which is stored in the file system of the terminal device, so as to save the current finger for a long time Line template, in order to distinguish, the current finger print template for being stored in file system is named as system fingerprint template.Back up the system fingerprint mould Plate obtains the first backup fingerprint template, i.e., in file system, there are system fingerprint template and the first backup fingerprint template, this The content of two fingerprint templates storage is identical.
Optionally, after the step S12, comprising:
A1, the second fingerprint is obtained, the second fingerprint that will acquire is stored in the current template.Specifically, if terminal device one Secondary property can the multiple fingerprints of typing, then after the first fingerprint of typing, continue obtain the second fingerprint, and by second fingerprint be stored in memory In current template, i.e., after the first fingerprint of typing and the second fingerprint, current template stores the first fingerprint and the second fingerprint two A fingerprint, certainly, if the fingerprint number of terminal device typing is greater than 2, the fingerprint number of current template storage is also greater than 2. It should be pointed out that the first fingerprint and the second fingerprint here can correspond to identical user, different users can also be corresponded to, For example, it is assumed that the corresponding user of the first fingerprint is user A, then the corresponding user of the second fingerprint can be user A, or use Family B.
A2, it is the second backup fingerprint template by the current finger print template backup and is stored in the file system.
A3, the current finger print template is stored in the file system, and replaces original system fingerprint template.Specifically , if obtaining the second fingerprint again, first will after terminal device has stored the current finger print template comprising fingerprint on ground Current finger print template backup is the second backup fingerprint template and is stored in file system, then current finger print template is stored in file system System realizes the standby of current finger print template in such manner, it is possible to which the second backup fingerprint template is stored in file system with most fast speed Part.
A4, the replaced system fingerprint template of backup, obtain the first new backup fingerprint template, to replace original first Backup template.Specifically, it will rename that (system refers to for system fingerprint template after current finger print template is stored in file system The fingerprint number of line template storage is identical as the fingerprint number that current finger print template is stored in), to replace original system fingerprint mould Plate.
If being pointed out that after obtaining the second fingerprint, terminal device can also continue to obtain third fingerprint, the 4th finger The fingerprint of the predetermined numbers such as line ..., then its specific implementation procedure is similar with A1~A4's, and difference is third fingerprint, the The fingerprints such as four fingerprint ... replace the second fingerprint, and details are not described herein again.
Optionally, due to calling the speed of current finger print template to be faster than from file system call current finger print template from memory Speed, therefore, after step s 12, comprising:
By in the system fingerprint template deposit memory of the file system, current finger print template is obtained.Due to inside Middle deposit current finger print template is deposited, then can directly extract the finger of the current fingerprint template and acquisition when subsequent match from memory Line matching, to improve matching speed.It should be pointed out that not deleting the current finger print mould in memory after matching terminates Plate still retains the current fingerprint template.
Step S13, detects whether to receive designated order, and the designated order includes: unlock instruction after booting, fingerprint Typing instruction.
Due to being turned back in terminal device and unlocking process needs to import information into memory again and (such as leads current template Enter memory), alternatively, in the unexpected power down of process or more preparative layers encapsulation chip (also referred to as MCP memory) that save fingerprint template (Multi-Chip-Package, MCP) all may cause fingerprint template extremely and be damaged, therefore, in order to find in advance The subsequent fingerprint matching function of whether being able to use terminal device of user, then can detect whether to receive designated order in advance.
Step S14, after receiving designated order, whether detection current finger print template is abnormal, the current finger print template To be stored in the system fingerprint template in memory from the file system.
After detecting any one instruction in designated order, whether detection current finger print template is abnormal, to realize different Normal detection in advance, and then improve the efficiency solved the problems, such as.
Optionally, the step S14 includes:
B1, after receiving designated order, detection current finger print template whether deleted, alternatively, detection current finger print mould Whether the designated character of plate is lost.
B2, it is deleted in current finger print template, alternatively, when the designated character of current finger print template is lost, described in judgement There is exception in current finger print template, otherwise, it is determined that there is no abnormal for the current finger print template.
In above-mentioned B1 and B2, detects in memory whether there are still current finger print templates, (such as deleted), then sentenced if it does not exist Settled preceding fingerprint template exists abnormal;Alternatively, the beginning field and/or trailer field due to current finger print template include designated word Symbol, therefore, can by detect the current fingerprint template beginning field and/or trailer field designated character whether lose or It is no to be destroyed, if so, it is abnormal to determine that current finger print template exists.
Step S15 deposits the first backup fingerprint template in current finger print template exception from the file system Enter memory, and replaces the current finger print template.
In the step, if it is determined that the current finger print template in memory has exception out, then first is extracted from file system Backup fingerprint template, and the first backup fingerprint template of extraction is replaced into the current finger print template in memory.Certainly, if file system System also has current finger print template, then equally will currently refer in the information alternate file system of the first backup fingerprint template storage The information of line template storage.
Optionally, after the step S15, comprising:
C1, judge whether the current finger print template is abnormal.
C2, in current finger print template exception, by the second backup fingerprint template from the file system deposit in It deposits, and replaces the current finger print template.
In above-mentioned C1 and C2, judge whether current finger print template (i.e. the first backup fingerprint template) is abnormal, if still abnormal, The second backup fingerprint template then is extracted into memory from file system, and replaces the current finger print template in memory.Due to first Therefore abnormal probability very little all occur in backup fingerprint template and the second backup fingerprint template can be avoided by the above method Once current finger print damaged template results in the non-serviceable problem of function relevant to fingerprint in terminal device, also, passes through The above method, even if load current finger print template failure when booting, can also be backed up by the first backup fingerprint template and second Fingerprint template realizes the automatic recovery of current finger print template, reduces the probability that user needs typing fingerprint again.
Optionally, after step C2, further includes:
Judge whether the current finger print template is abnormal, if abnormal, the fingerprint for prompting user's typing new.Specifically, may be used By pop-up prompting frame prompt, alternatively, passing through voice prompting.
In first embodiment of the invention, the first fingerprint is obtained, the current finger print mould for the first fingerprint deposit memory that will acquire The current finger print template is stored in file system, obtains system fingerprint template, and back up the system fingerprint template by plate, The first backup fingerprint template is obtained, detects whether to receive designated order, the designated order includes: that the unlock after booting refers to It enables, fingerprint typing instruction, after receiving designated order, whether detection current finger print template is abnormal, the current finger print template To be stored in the system fingerprint template in memory from the file system, in current finger print template exception, by described first Backup fingerprint template is stored in memory from the file system, and replaces the current finger print template.Due to receive it is specified After instruction, whether detection current finger print template abnormal, if abnormal, the first backup fingerprint template is extracted from file system in In depositing, and replace abnormal current finger print template, and the first backup fingerprint template storage information be be abnormal before The information of current finger print template storage be it is identical, therefore, the subsequent fingerprint of the first backup fingerprint template realization can be passed through Match, to avoid just user being needed to re-type fingerprint when current finger print template is abnormal, reduce user's operation, improves User experience.
Embodiment two:
Corresponding with a kind of finger prints processing method of embodiment one, Fig. 3 shows one kind of second embodiment of the invention offer The structure chart of finger prints processing device, the finger prints processing device can be applied in terminal device, for ease of description, illustrate only with The relevant part of the embodiment of the present invention:
The finger prints processing device includes: the first fingerprint acquiring unit 31, the first backup fingerprint template generation unit 32, specifies Instruction detection unit 33, the first current finger print template abnormal deciding means 34, the first current finger print template replacement unit 35.Its In:
First fingerprint acquiring unit 31, for obtaining the first fingerprint, the current finger for the first fingerprint deposit memory that will acquire Line template.
The first fingerprint is obtained, the corresponding image information of the first fingerprint is specially obtained, then the image information that will acquire is deposited Enter the current finger print template of memory.
First backup fingerprint template generation unit 32 is obtained for the current finger print template to be stored in file system System fingerprint template, and the system fingerprint template is backed up, obtain the first backup fingerprint template.
Optionally, the finger prints processing device includes:
Second fingerprint acquiring unit, for obtaining the second fingerprint, the second fingerprint that will acquire is stored in the current template.? After the first fingerprint of typing and the second fingerprint, current template stores two fingerprints of the first fingerprint and the second fingerprint, certainly, if typing Fingerprint number be greater than 2, then the current template storage fingerprint number also greater than 2.It should be pointed out that the first fingerprint here Identical user can be corresponded to the second fingerprint, different users can also be corresponded to.
Second backup fingerprint template generation unit, for being the second backup fingerprint template by the current finger print template backup And it is stored in the file system.
System fingerprint template replacement unit for the current finger print template to be stored in the file system, and is replaced Original system fingerprint template.
It is standby to obtain new first for backing up replaced system fingerprint template for first backup fingerprint template replacement unit Part fingerprint template, to replace original first backup template.
If being pointed out that after obtaining the second fingerprint, it is pre- to also continue acquisition third fingerprint, the 4th fingerprint ... etc. If the fingerprint of number, specific implementation procedure is similar with A1~A4's, and difference is third fingerprint, the 4th fingerprint ... etc. Fingerprint replaces the second fingerprint, i.e., the described finger prints processing device is in addition to the second fingerprint acquiring unit, the second backup fingerprint template Except generation unit, system fingerprint template replacement unit, the first backup fingerprint template replacement unit, further includes: third fingerprint obtains Unit, the 4th fingerprint acquiring unit ... are taken, details are not described herein again.
Optionally, due to calling the speed of current finger print template to be faster than from file system call current finger print template from memory Speed, therefore, the finger prints processing device further include:
The current finger print template of memory re-generates unit, for the system fingerprint template of the file system to be stored in In memory, current finger print template is obtained.It should be pointed out that not deleting the current finger print mould in memory after matching terminates Plate still retains the current fingerprint template.
Designated order detection unit 33, for detecting whether receive designated order, after the designated order includes: booting Unlock instruction, fingerprint typing instruction.
First current finger print template abnormal deciding means 34, for detecting current finger print mould after receiving designated order Whether plate is abnormal, and the current finger print template is the system fingerprint template being stored in memory from the file system.
The first current finger print template abnormal deciding means 34 includes:
The information detecting module of current finger print template, for after receiving designated order, detection current finger print template is It is no to be deleted, alternatively, whether the designated character of detection current finger print template is lost.
Whether abnormal determination module, for being deleted in current finger print template, alternatively, in the designated word of current finger print template When symbol is lost, it is abnormal to determine that the current finger print template exists, otherwise, it is determined that there is no abnormal for the current finger print template.
Specifically, detect in memory whether there are still current finger print templates, (such as deleted) if it does not exist, then determine current Fingerprint template exists abnormal;Alternatively, the beginning field and/or trailer field due to current finger print template include designated character, because This, can by detect the current fingerprint template beginning field and/or trailer field designated character whether lose or whether by It destroys, if so, it is abnormal to determine that current finger print template exists.
First current finger print template replacement unit 35, in current finger print template exception, first backup to be referred to Line template is stored in memory from the file system, and replaces the current finger print template.
Optionally, the finger prints processing device includes:
Second current finger print template abnormal deciding means, for judging whether the current finger print template is abnormal.
Second current finger print template replacement unit is used in current finger print template exception, by the second backup fingerprint Template is stored in memory from the file system, and replaces the current finger print template.
Optionally, the finger prints processing device includes:
New fingerprint typing prompt unit, for judging whether the current finger print template is abnormal, if abnormal, prompts user The new fingerprint of typing.It specifically, can be by pop-up prompting frame prompt, alternatively, passing through voice prompting.
In second embodiment of the invention, since after receiving designated order, whether detection current finger print template is abnormal, if It is abnormal, then the first backup fingerprint template is extracted in memory from file system, and replace abnormal current finger print template, and be somebody's turn to do First backup fingerprint template storage information be be abnormal before current finger print template storage information be it is identical, because This, can realize subsequent fingerprint matching by the first backup fingerprint template, to be avoided being abnormal in current finger print template When just user is needed to re-type fingerprint, reduce user's operation, improve user experience.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Embodiment three:
Fig. 4 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 4, the terminal of the embodiment is set Standby 4 include: processor 40, memory 41 and are stored in the meter that can be run in the memory 41 and on the processor 40 Calculation machine program 42.The processor 40 is realized when executing the computer program 42 in above-mentioned each finger prints processing embodiment of the method The step of, such as step S11 to S15 shown in FIG. 1.Alternatively, realization when the processor 40 executes the computer program 42 The function of each module/unit in above-mentioned each Installation practice, such as the function of module 31 to 35 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided It is cut into the first fingerprint acquiring unit, the first backup fingerprint template generation unit, designated order detection unit, the first current finger print mould Plate abnormal deciding means, the first current finger print template replacement unit, each unit concrete function are as follows:
First fingerprint acquiring unit, for obtaining the first fingerprint, the current finger print for the first fingerprint deposit memory that will acquire Template;
First backup fingerprint template generation unit, for being by current finger print template deposit file system System fingerprint template, and the system fingerprint template is backed up, obtain the first backup fingerprint template;
Designated order detection unit, for detecting whether receiving designated order, the designated order includes: after being switched on Unlock instruction, fingerprint typing instruction;
First current finger print template abnormal deciding means, for detecting current finger print template after receiving designated order Whether abnormal, the current finger print template is the system fingerprint template being stored in memory from the file system;
First current finger print template replacement unit is used in current finger print template exception, by the first backup fingerprint Template is stored in memory from the file system, and replaces the current finger print template.
The terminal device 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4 It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4 Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the terminal device Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of finger prints processing method characterized by comprising
The first fingerprint is obtained, the current finger print template of the image information deposit memory for the first fingerprint that will acquire;
The current finger print template is stored in file system, obtains system fingerprint template, and back up the system fingerprint template, Obtain the first backup fingerprint template;
Detect whether to receive designated order, the designated order includes: unlock instruction after booting, fingerprint typing instruction;
After receiving designated order, whether detection current finger print template is abnormal, and the current finger print template is from the file System is stored in the system fingerprint template in memory;
In current finger print template exception, the first backup fingerprint template is stored in memory from the file system, and replace Change the current finger print template.
2. finger prints processing method as described in claim 1, which is characterized in that it is described obtain the first backup fingerprint template after, Include:
The second fingerprint is obtained, the second fingerprint that will acquire is stored in the current finger print template;
It is the second backup fingerprint template by the current finger print template backup and is stored in the file system;
The current finger print template is stored in the file system, and replaces original system fingerprint template;
Replaced system fingerprint template is backed up, the first new backup fingerprint template is obtained, to replace original first backup mould Plate.
3. finger prints processing method as claimed in claim 2, which is characterized in that it is described by the first backup fingerprint template from Memory is stored in the file system, and after replacing the current finger print template, comprising:
Judge whether the current finger print template is abnormal;
In current finger print template exception, the second backup fingerprint template is stored in memory from the file system, and replace Change the current finger print template.
4. finger prints processing method as described in any one of claims 1 to 3, which is characterized in that described to receive designated order Afterwards, whether detection current finger print template is abnormal, comprising:
After receiving designated order, whether detection current finger print template is deleted, alternatively, detection current finger print template is specified Whether character is lost;
It is deleted in current finger print template, alternatively, determining the current finger print when the designated character of current finger print template is lost There is exception in template, otherwise, it is determined that there is no abnormal for the current finger print template.
5. a kind of finger prints processing device characterized by comprising
First fingerprint acquiring unit, for obtaining the first fingerprint, the image information deposit memory for the first fingerprint that will acquire is worked as Preceding fingerprint template;
First backup fingerprint template generation unit, for the current finger print template to be stored in file system, the system of obtaining refers to Line template, and the system fingerprint template is backed up, obtain the first backup fingerprint template;
Designated order detection unit, for detecting whether receiving designated order, the designated order includes: the unlock after booting Instruction, fingerprint typing instruction;
First current finger print template abnormal deciding means, for after receiving designated order, whether detection current finger print template Abnormal, the current finger print template is the system fingerprint template being stored in memory from the file system;
First current finger print template replacement unit is used in current finger print template exception, by the first backup fingerprint template It is stored in memory from the file system, and replaces the current finger print template.
6. finger prints processing device as claimed in claim 5, which is characterized in that the finger prints processing device includes:
Second fingerprint acquiring unit, for obtaining the second fingerprint, the second fingerprint that will acquire is stored in the current finger print template;
Second backup fingerprint template generation unit, for being the second backup fingerprint template by the current finger print template backup and depositing Enter the file system;
System fingerprint template replacement unit for the current finger print template to be stored in the file system, and is replaced original System fingerprint template;
First backup fingerprint template replacement unit obtains the first new backup and refers to for backing up replaced system fingerprint template Line template, to replace original first backup template.
7. finger prints processing device as claimed in claim 6, which is characterized in that the finger prints processing device includes:
Second current finger print template abnormal deciding means, for judging whether the current finger print template is abnormal;
Second current finger print template replacement unit is used in current finger print template exception, by the second backup fingerprint template It is stored in memory from the file system, and replaces the current finger print template.
8. such as the described in any item finger prints processing devices of claim 5 to 7, which is characterized in that the first current finger print template Abnormal deciding means includes:
The information detecting module of current finger print template, for after receiving designated order, detection current finger print template whether by It deletes, alternatively, whether the designated character of detection current finger print template is lost;
Whether abnormal determination module, for being deleted in current finger print template, alternatively, the designated character in current finger print template is lost When mistake, it is abnormal to determine that the current finger print template exists, otherwise, it is determined that there is no abnormal for the current finger print template.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as Claims 1-4 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as Claims 1-4 of realization the method.
CN201710610578.2A 2017-07-25 2017-07-25 Finger prints processing method, apparatus and terminal device Active CN107392154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710610578.2A CN107392154B (en) 2017-07-25 2017-07-25 Finger prints processing method, apparatus and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710610578.2A CN107392154B (en) 2017-07-25 2017-07-25 Finger prints processing method, apparatus and terminal device

Publications (2)

Publication Number Publication Date
CN107392154A CN107392154A (en) 2017-11-24
CN107392154B true CN107392154B (en) 2019-01-15

Family

ID=60337532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710610578.2A Active CN107392154B (en) 2017-07-25 2017-07-25 Finger prints processing method, apparatus and terminal device

Country Status (1)

Country Link
CN (1) CN107392154B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231691A (en) * 2007-12-24 2008-07-30 浙江金指码科技有限公司 Learning type intellectual fingerprint identification comparison method adjusted based on fingerprint data quantity
CN103345616A (en) * 2013-06-19 2013-10-09 武汉世纪金桥安全技术有限公司 Fingerprint storage comparison system based on behavioral analysis
CN104463141A (en) * 2014-12-24 2015-03-25 北京大唐智能卡技术有限公司 Fingerprint template input method and device based on intelligent card
CN105335731A (en) * 2015-11-13 2016-02-17 广东欧珀移动通信有限公司 Fingerprint identification method and device as well as terminal equipment
CN105469033A (en) * 2015-11-13 2016-04-06 广东欧珀移动通信有限公司 Fingerprint identification method, fingerprint identification device and terminal equipment
CN106372609A (en) * 2016-09-05 2017-02-01 广东欧珀移动通信有限公司 Fingerprint template update method, fingerprint template update device and terminal equipment
CN106650706A (en) * 2017-01-16 2017-05-10 珠海格力电器股份有限公司 Fingerprint collecting method and device, as well as mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231691A (en) * 2007-12-24 2008-07-30 浙江金指码科技有限公司 Learning type intellectual fingerprint identification comparison method adjusted based on fingerprint data quantity
CN103345616A (en) * 2013-06-19 2013-10-09 武汉世纪金桥安全技术有限公司 Fingerprint storage comparison system based on behavioral analysis
CN104463141A (en) * 2014-12-24 2015-03-25 北京大唐智能卡技术有限公司 Fingerprint template input method and device based on intelligent card
CN105335731A (en) * 2015-11-13 2016-02-17 广东欧珀移动通信有限公司 Fingerprint identification method and device as well as terminal equipment
CN105469033A (en) * 2015-11-13 2016-04-06 广东欧珀移动通信有限公司 Fingerprint identification method, fingerprint identification device and terminal equipment
CN106372609A (en) * 2016-09-05 2017-02-01 广东欧珀移动通信有限公司 Fingerprint template update method, fingerprint template update device and terminal equipment
CN106650706A (en) * 2017-01-16 2017-05-10 珠海格力电器股份有限公司 Fingerprint collecting method and device, as well as mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
内存数据库在民用自动指纹识别系统中的应用;相成;《工程技术》;20111208;第106页
智能手机指纹识别系统的设计;楼京京;《信息系统工程》;20150320;第29页

Also Published As

Publication number Publication date
CN107392154A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN107220142B (en) Method and device for executing data recovery operation
CN104036177A (en) Intelligent terminal fingerprint unlocking device and method
CN110059305A (en) Method and apparatus derived from data
CN106201288A (en) Storage method, device and the mobile terminal of a kind of finger print information
CN108279947A (en) The method and device of financial self-service equipment SP installation kits adaptation
CN107404740B (en) Method for switching network, device and the terminal device of safety
CN110413569A (en) Archives of paper quality electronization archiving method, device and terminal device
CN107564204A (en) A kind of wholesale withdrawal method and atm device
CN106603762A (en) Terminal control method and the controlled terminal
CN108334346A (en) A kind of development approach and device of Service control flow
CN105844129B (en) The method and terminal of a kind of unlocked by fingerprint
CN110598996A (en) Risk processing method and device, electronic equipment and storage medium
CN107368255A (en) Unlocking method, mobile terminal and computer-readable recording medium
CN107783953A (en) Information input method and terminal device
CN107153784A (en) The unlocking method and terminal of a kind of terminal
CN108335434A (en) A kind of finance device wholesale note output abnormality eliminating method, device and finance device
CN107392154B (en) Finger prints processing method, apparatus and terminal device
CN106709392B (en) Two-dimensional code scanning method and mobile terminal
CN108363915A (en) unlocking method, mobile terminal and computer readable storage medium
CN108920704A (en) File access pattern method, file restoring device and mobile terminal
CN110019501A (en) A kind of collecting method, device and terminal device
CN107808086A (en) A kind of unlocking method of intelligent terminal, device and equipment
CN107292614A (en) Pay class application management method, device and mobile terminal
CN107272989B (en) Using starting method, apparatus and terminal device
CN107274545B (en) Money-checking control method, money-checking control device and withdrawal equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant