CN106814941A - Instruction generation method and device - Google Patents
Instruction generation method and device Download PDFInfo
- Publication number
- CN106814941A CN106814941A CN201510860559.6A CN201510860559A CN106814941A CN 106814941 A CN106814941 A CN 106814941A CN 201510860559 A CN201510860559 A CN 201510860559A CN 106814941 A CN106814941 A CN 106814941A
- Authority
- CN
- China
- Prior art keywords
- rotation
- fingerprint
- instruction
- motion vector
- characteristic area
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/12—Fingerprints or palmprints
- G06V40/13—Sensors therefor
- G06V40/1306—Sensors therefor non-optical, e.g. ultrasonic or capacitive sensing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Collating Specific Patterns (AREA)
Abstract
The disclosure is directed to one kind instruction generation method and device.Methods described includes:Obtain at least two frame fingerprint images of same fingerprint;The change in location information of the fingerprint is calculated according at least two frame fingerprint images;Operational order is generated according to the change in location information, the operational order includes:Translation instruction, and/or, rotation instruction.The disclosure obtains corresponding change in location information by being subject to analysis in the diverse location information of fingerprint image to same fingerprint, forms corresponding operational order;Solve the problems, such as that fingerprint recognition module is simply possible to use in fingerprint recognition scene;Reach by the use of fingerprint recognition module as man-machine interaction component, using the translation or rotation process of fingerprint recognition module identifying user, and then to effect that the operation object in electronic equipment is controlled.
Description
Technical field
This disclosure relates to field of mobile terminals, more particularly to a kind of instruction generation method and device.
Background technology
Fingerprint recognition module be it is a kind of recognize fingerprint to be measured whether be target fingerprint sensor cluster.Fingerprint
Identification module is widely used by the mobile terminal of such as smart mobile phone, panel computer etc.Fingerprint
Recognize module operation principle be:The fingerprint characteristic of target fingerprint is prestored, when fingerprint to be measured is recognized,
Detect whether the fingerprint characteristic of fingerprint to be measured meets the fingerprint characteristic of target fingerprint;If meeting, it is determined that treat
Survey fingerprint is target fingerprint.But, current fingerprint recognition module is simply possible to use in fingerprint recognition, and this is single
Function.
The content of the invention
To overcome problem present in correlation technique, the embodiment of the present disclosure provide a kind of instruction generation method and
Device, is used to solve the problems, such as that fingerprint recognition module application scenarios are single.
Single in order to solve the problems, such as fingerprint recognition module application scenarios, the disclosure provides a kind of instruction generation
Method and device.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided one kind instruction generation method, the method includes:
Obtain at least two frame fingerprint images of same fingerprint;
The change in location information of the fingerprint is calculated according at least two frame fingerprint images;
Operational order is generated according to change in location information, the operational order includes:Translation instruction, and/or,
Rotation instruction.
In one embodiment, the change in location information of the fingerprint is calculated according at least two frame fingerprint images, can
Including:
N characteristic area in the i-th frame fingerprint image is obtained, i is integer, and n is positive integer;
The matching area that lookup is matched respectively with the n characteristic area in i+1 frame fingerprint image;
For each characteristic area, this feature region is calculated according to characteristic area and corresponding matching area
Motion vector;
The n respective motion vector of characteristic area is defined as the change in location information of the fingerprint.
In one embodiment, n characteristic area in the i-th frame fingerprint image is obtained, it may include:
N characteristic area in i-th frame fingerprint image is obtained according to default n regional location;
Or,
N characteristic area is obtained from the i-th frame fingerprint image according to predetermined condition, predetermined condition includes:
Definition meets predetermined characteristic, current more than first threshold, contrast more than Second Threshold, local feature
Region is relative at least one in the matching area of reference zone in former frame fingerprint image.
In one embodiment, operational order is generated according to change in location information, it may include:
In the direction of motion all same of n motion vector, according to n motion vector generation translation instruction.
In one embodiment, operational order is generated according to change in location information, it may include:
When the direction of motion in n >=2 and n motion vector has different, determined according to n motion vector
Direction of rotation and the anglec of rotation;
According to direction of rotation and anglec of rotation generation rotation instruction.
In one embodiment, the direction of motion according to n motion vector determines direction of rotation and the anglec of rotation,
May include:
Rotary middle point is determined according to n each self-corresponding perpendicular bisector of motion vector;
Direction and rotary middle point according to n motion vector determine direction of rotation and the anglec of rotation.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of command generating device, the device includes:
Acquisition module, is configured as obtaining at least two frame fingerprint images of same fingerprint;
Computing module, is configured as being calculated according at least two frame fingerprint images the change in location information of fingerprint;
Directive generation module, is configured as generating operational order, operational order bag according to change in location information
Include:Translation instruction, and/or, rotation instruction.
In one embodiment, computing module, it may include:
Feature acquisition submodule, is configured as obtaining n characteristic area in the i-th frame fingerprint image, i
It is integer, n is positive integer;
Submodule is searched, is configured as being searched in i+1 frame fingerprint image and n characteristic area difference
The matching area of matching;
Vector operation submodule, is configured as each characteristic area, according to characteristic area and corresponding
Matching area calculates the motion vector of characteristic area;
Change in location submodule, is configured as the n respective motion vector of characteristic area being defined as fingerprint
Change in location information.
In one embodiment, feature acquisition submodule, can be configured as according to default n regional location
Obtain n characteristic area in the i-th frame fingerprint image;
Or,
Feature acquisition submodule, is configured as obtaining n from the i-th frame fingerprint image according to predetermined condition
Characteristic area, predetermined condition includes:Definition is more than Second Threshold, office more than first threshold, contrast
It is relative to the matching of reference zone in former frame fingerprint image that portion's feature meets predetermined characteristic, current region
At least one in region.
In one embodiment, directive generation module, it may include:
First instruction submodule, is configured as in the direction of motion all same of n motion vector, according to
N motion vector generation translation instruction.
In one embodiment, directive generation module, it may include:
Second instruction submodule, is configured as in n >=2 and the n direction of motion of motion vector has difference
When, direction of rotation and the anglec of rotation are determined according to n motion vector;
3rd instruction submodule, is configured as according to direction of rotation and anglec of rotation generation rotation instruction.
In one embodiment, the second instruction submodule, may also include:
Center determination sub-module, is configured as determining rotation according to n each self-corresponding perpendicular bisector of motion vector
Turn central point;
Rotation determination sub-module, is configured as according to the direction of n motion vector and rotary middle point determination
Direction of rotation and the anglec of rotation.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of command generating device, device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, processor is configured as:
Obtain at least two frame fingerprint images of same fingerprint;
The change in location information of fingerprint is calculated according at least two frame fingerprint images;
Operational order is generated according to change in location information, operational order includes:Translation instruction, and/or, rotation
Turn instruction.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Corresponding position change is obtained by being subject to analysis in the diverse location information of fingerprint image to same fingerprint
Change information, forms corresponding operational order, and the operational order can be used for realizing the translation to operation object
Control or rotation control;Solve the problems, such as that fingerprint recognition module is simply possible to use in fingerprint recognition scene;Reach
By the use of fingerprint recognition module as man-machine interaction component, the translation of fingerprint recognition module identifying user is used
Operation or rotation process, and then to effect that the operation object in electronic equipment is controlled.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory
, the disclosure can not be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets this hair
Bright embodiment, and be used to explain principle of the invention together with specification.
Fig. 1 is the hardware structure diagram of the electronic equipment according to one exemplary embodiment of the disclosure.
Fig. 2 is a kind of flow chart of the instruction generation method according to the exemplary embodiment of the disclosure one.
Fig. 3 A are a kind of flow charts of the instruction generation method according to another exemplary embodiment.
Fig. 3 B are the schematic diagrames of the default n characteristic area that Fig. 3 A illustrated embodiments are provided.
Fig. 3 C are a kind of implementation schematic diagrames of instruction generation method that Fig. 3 A illustrated embodiments are provided.
Fig. 3 D are a kind of implementation schematic diagrames of instruction generation method that Fig. 3 A illustrated embodiments are provided.
Fig. 3 E are a kind of implementation schematic diagrames of instruction generation method that Fig. 3 A illustrated embodiments are provided.
Fig. 3 F are a kind of implementation schematic diagrames of instruction generation method that Fig. 3 A illustrated embodiments are provided.
Fig. 3 G are a kind of implementation schematic diagrames of instruction generation method that Fig. 3 A illustrated embodiments are provided.
Fig. 3 H are a kind of flow charts of instruction generation method that Fig. 3 A illustrated embodiments are provided.
Fig. 3 I are a kind of implementation schematic diagrames of instruction generation method that Fig. 3 A illustrated embodiments are provided.
Fig. 3 J are a kind of implementation schematic diagrames of instruction generation method that Fig. 3 A illustrated embodiments are provided.
Fig. 4 is a kind of block diagram of the command generating device according to an exemplary embodiment.
Fig. 5 is the block diagram of another command generating device according to an exemplary embodiment.
Fig. 6 is a kind of block diagram suitable for command generating device according to an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following
When description is related to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous
Key element.Implementation method described in following exemplary embodiment does not represent the institute consistent with the present invention
There is implementation method.Conversely, they be only with it is being described in detail in such as appended claims, of the invention one
The example of the consistent apparatus and method of a little aspects.
Fig. 1 is the hardware structure diagram of the electronic equipment according to one exemplary embodiment of the disclosure;Should
Electronic equipment can be the mobile terminal of such as smart mobile phone, panel computer, E-book reader etc.
As shown in figure 1, the memory 14 that the mobile terminal includes processor 12, is connected with processor 12 respectively
With fingerprint recognition module 16.Wherein:
Be stored with the executable instruction of processor 12 in memory 14.
Fingerprint recognition module 16 has fingerprint collecting also known as fingerprint Identification sensor, fingerprint recognition module 16
With the ability of fingerprint recognition.
Fig. 2 is a kind of flow chart of the instruction generation method according to the exemplary embodiment of the disclosure one;
The instruction generation method can be as shown in Figure 1 fingerprint recognition module or computing device.As shown in Fig. 2
The instruction generation method may comprise steps of.
Step 201, obtains at least two frame fingerprint images of same fingerprint.
Fingerprint recognition module has fingerprint image acquisition ability.In one embodiment, when finger is placed on finger
When line recognizes the identification region of module, fingerprint recognition module can at predetermined time intervals be spaced one frame fingerprint of collection
Image.
Step 202, the change in location information of fingerprint is calculated according at least two frame fingerprint images.
If there is translation in the identification region of fingerprint recognition module or rotate, the finger of the finger in finger
Print image can also change.By at least two frame fingerprint images for sequentially getting, finger can be calculated
The change in location information of line.
Step 203, operational order is generated according to change in location information, and operational order includes:Translation instruction,
And/or, rotation instruction.
In one embodiment, the operational order is used for by the operation object in processor control electronics.
The operation object is shown in the user interface element on display screen or the hardware in electronic equipment.This public affairs
Embodiment is opened not to be defined the type of operation object.
To sum up, the instruction generation method that the present embodiment is provided, by same fingerprint in fingerprint image
Diverse location information is subject to analysis and obtains corresponding change in location information, forms corresponding operational order, should
Operational order can be used for realizing the translation control or rotation control to operation object;Solve fingerprint recognition
Module is simply possible to use in the problem of fingerprint recognition scene;Reach by the use of fingerprint recognition module as man-machine interaction
Component, using the translation or rotation process of fingerprint recognition module identifying user, and then to electronic equipment
In the effect that is controlled of operation object.
Fig. 3 A are a kind of flow charts of the instruction generation method according to another exemplary embodiment, figure
3B is the schematic diagram of the default n characteristic area that Fig. 3 A illustrated embodiments are provided, and Fig. 3 C are Fig. 3 A
A kind of implementation schematic diagram of instruction generation method that illustrated embodiment is provided, Fig. 3 D are implemented shown in Fig. 3 A
A kind of implementation schematic diagram of instruction generation method that example is provided, Fig. 3 E are that Fig. 3 A illustrated embodiments are provided
A kind of implementation schematic diagram of instruction generation method, Fig. 3 F are a kind of instructions that Fig. 3 A illustrated embodiments are provided
The implementation schematic diagram of generation method, Fig. 3 G are a kind of instruction generation methods that Fig. 3 A illustrated embodiments are provided
Implementation schematic diagram, Fig. 3 H be Fig. 3 A illustrated embodiments provide a kind of instruction generation method flow chart,
Fig. 3 I are a kind of implementation schematic diagrames of instruction generation method that Fig. 3 A illustrated embodiments are provided, and Fig. 3 J are figures
A kind of implementation schematic diagram of instruction generation method that 3A illustrated embodiments are provided;The present embodiment is given birth to the instruction
Can be performed by fingerprint recognition module into method.As shown in Figure 3A, the instruction generation method can include with
Lower step:
Step 301, obtains at least two frame fingerprint images of same fingerprint.
In one embodiment, fingerprint recognition component is spaced one frame fingerprint image of collection at predetermined time intervals.
In one embodiment, fingerprint recognition component also has contact induction device, the contact induction device energy
Enough detect whether user's finger is touched on fingerprint recognition component.When user's finger contacts to fingerprint recognition
When on component, fingerprint recognition component is spaced one frame fingerprint image of collection at predetermined time intervals;Work as user's finger
During not in contact with fingerprint recognition component, fingerprint recognition component stops collection fingerprint image.
For same fingerprint, fingerprint recognition component can collect a fingerprint image sequence, the fingerprint image
The fingerprint image of multiframe arranged in sequence is included in sequence.If user's finger is carried out on fingerprint recognition component
Translation rotates, then the fingerprint image in the fingerprint image sequence can embody the translation motion or rotation
Process.
Step 302, obtains n characteristic area in the i-th frame fingerprint image, and i is integer, and n is just whole
Number.
Fingerprint image sequence includes the multiframe fingerprint image of arranged in sequence.In one embodiment, fingerprint is known
Other component carries out change in location analysis by two adjacent frame fingerprint images.First, fingerprint recognition component
Obtain n characteristic area in the i-th frame fingerprint image.Each characteristic area can be the area of x*y pixels
The value of block, x and y is depending on the computing capability and accuracy of identification demand of fingerprint recognition component.Generally,
The size of each characteristic area is identical but it is also possible to be different.
It is set in advance, or choice of dynamical according to characteristic area, this step can use following two
Any one in kind of implementation:
1) n characteristic area in the i-th frame fingerprint image is obtained according to default n regional location.
Under this implementation, n regional location is set in advance, when user's finger is placed on fingerprint
When in identification region, topography of the fingerprint image decline in n region is obtained as n characteristic area
Domain.
As shown in Figure 3 B, in fingerprint recognition region 30, border circular areas 31-34 are default 4
Characteristic area, 4 characteristic areas.As shown in Figure 3 C, when user's finger is placed on fingerprint identification area
During domain, 4 characteristic areas positioned at border circular areas 31-34, fingerprint are obtained from the 1st frame fingerprint image
4 characteristic areas that identification module will be obtained are stored in the memory in fingerprint recognition module.
2) n characteristic area is obtained from the i-th frame fingerprint image according to predetermined condition, predetermined condition includes:
Definition meets predetermined characteristic, current more than first threshold, contrast more than Second Threshold, local feature
Region is relative at least one in the matching area of reference zone in former frame fingerprint image.
Under this implementation, n regional location is not set in advance, fingerprint is placed on according to user's finger
The the i-th frame fingerprint image obtained in identification region, dynamic select goes out n characteristic area.
As shown in Figure 3 D, fingerprint recognition module has obtained the first frame fingerprint image.First frame is referred to
The definition of print image compares with the first threshold values, and selection definition is more than Top4 block of first threshold,
4 characteristic areas are obtained, the first threshold values here can be according to identification demand setting.As shown in FIGURE 3 E,
Border circular areas 35-38 is 4 characteristic areas for obtaining, and 4 characteristic areas that will be obtained are stored in fingerprint
In identification module.
Similarly, fingerprint recognition module can also meet according to contrast more than Second Threshold, local feature
Predetermined characteristic, current region are relative to the matching area of reference zone in former frame fingerprint image, three
In at least one selection characteristic area.
Step 303, the matching that lookup is matched respectively with n characteristic area in i+1 frame fingerprint image
Region.
For a characteristic area, if this feature region there occurs displacement in i+1 frame fingerprint image
Or rotation, then can be found and the spy in i+1 frame fingerprint image by Detection for Moving Target
Levy the matching area in region.
Similarity degree between characteristic area and matching area, can using Hadamard transform difference and
(Hadamard absolute difference, referred to as HAD), absolute error and (Sum of Absolute
Difference, referred to as SAD), by the absolute value error for converting and (Sum of Absolute
Transformed Difference, referred to as SATD) etc. parameter characterize, the present embodiment does not do to this
Limit.That is, for each characteristic area, under normal circumstances can be in i+1 frame fingerprint image
Search a matching area.
By taking Fig. 3 F as an example, after user's finger is moved in fingerprint recognition region, by the 2nd frame in Fig. 3 F
Fingerprint image is recorded in the memory of fingerprint recognition module, is searched and Fig. 3 C in the 2nd frame fingerprint image
In 4 characteristic areas of Character Area Matching selecting in the first frame fingerprint image, as illustrated in Figure 3 F, 4
Individual border circular areas are the matching area with Character Area Matching in the 2nd frame fingerprint image, then by find
Information Store with region is in the memory of fingerprint recognition module.
Step 304, for each characteristic area, calculates according to characteristic area and corresponding matching area
The motion vector of characteristic area.
Fingerprint recognition component is calculated according to the positional information of both characteristic area and corresponding matching area
Motion vector of the characteristic area between two field pictures, the motion vector contains the mobile side of characteristic area
To and displacement.
As shown in Figure 3 G, the 1st frame fingerprint image in figure in the representative graph 3C of dashed circle region 31 '
The position of middle characteristic area, solid line border circular areas 32 ' in the 2nd frame fingerprint image in Fig. 3 F with feature
The position of the matching area of Region Matching, fingerprint recognition module is according to characteristic area and corresponding matching area
Calculate the motion vector in this feature region 31.Schematically, two center of circle conducts of border circular areas are chosen
First and last point, vector 31a is characterized the motion vector in region 31, and vector 32b is characterized the fortune in region 32
Dynamic vector, vector 33c is characterized the motion vector in region 33, and vector 34d is characterized the fortune in region 34
Dynamic vector.
Step 305, the n respective motion vector of characteristic area is defined as the change in location information of fingerprint.
As shown in Figure 3 G, fingerprint recognition module has calculated the respective fortune of characteristic area 31-34 in Fig. 3 C
Dynamic vector, then using this four motion vectors as the fingerprint change in location information.
Wherein, motion vector 31a representative features region 31 is to 2 units of left, motion vector 32b
Put down to the left to 2 units of left, motion vector 33c representative features region 33 in representative feature region 32
2 units are moved, motion vector 34d character pairs region 34 is to 2 units of left.
Step 306, in the direction of motion all same of n motion vector, according to n motion vector life
Instructed into translation.
As shown in Figure 3 G, the direction of 4 motion vectors is identical in figure, is to the left, and displacement
2 units are, then fingerprint recognition component generation translation instruction.Translation instruction carries translation direction
And translation distance, namely:To the left, displacement is 2 information of unit to moving direction.
In one embodiment, the CPU that the translation instruction transmission that fingerprint recognition module will be generated is connected, by
CPU instructs control operation object to 2 units of left according to the translation.
Step 307, when the direction of motion in n >=2 and n motion vector has different, according to n fortune
Dynamic vector determines direction of rotation and the anglec of rotation.
In one embodiment, when the direction of n motion vector is inconsistent, it is necessary to true according to motion vector
Direction of rotation and the anglec of rotation is made to generate operational order.
In one embodiment, this step includes following sub-step, as shown in figure 3h:
Step 307a, rotary middle point is determined according to n each self-corresponding perpendicular bisector of motion vector.
Fingerprint recognition component determines rotation according to each self-corresponding perpendicular bisector of each motion vector being calculated
Central point.
By taking Fig. 3 I as an example, dashed circle region 41 represents 4 characteristic areas in the i-th frame fingerprint image
Position, the matching area in the expression i+1 frame fingerprint image of solid line border circular areas 42 with Character Area Matching
Position, dotted line 43-46 is 4 perpendicular bisectors of motion vector, point 50 be 4 motion vectors in hang down
The intersection point of line is rotary middle point.
Step 307b, direction and rotary middle point according to n motion vector determine direction of rotation and rotation
Angle.
Direction of the fingerprint recognition module according to any motion vector relative to rotary middle point 50, determines rotation
Turn direction.Fingerprint recognition module according to the beginning and end of any motion vector respectively with rotary middle point 50
The angle determined of line, determine the anglec of rotation.
As shown in figure 3j, fingerprint recognition module determines that direction of rotation is clockwise, rotation by motion vector
Angle ф is 90 degree.
Step 308, according to direction of rotation and anglec of rotation generation rotation instruction.
Fingerprint recognition module is according to the direction of rotation for calculating and anglec of rotation generation rotation instruction, the rotation
Instruction includes direction of rotation and the anglec of rotation.
In one embodiment, the CPU that the rotation instruction transmission that fingerprint recognition module will be generated is connected, by
CPU instructs control operation object dextrorotation to turn 90 degrees according to the rotation.
To sum up, the instruction generation method that the present embodiment is provided, by same fingerprint in fingerprint image
Diverse location information is subject to analysis and obtains corresponding change in location information, forms corresponding operational order, should
Operational order can be used for realizing the translation control or rotation control to operation object;Solve fingerprint recognition
Module is simply possible to use in the problem of fingerprint recognition scene;Reach by the use of fingerprint recognition module as man-machine interaction
Component, using the translation or rotation process of fingerprint recognition module identifying user, and then to electronic equipment
In the effect that is controlled of operation object.
The instruction generation method that the present embodiment is provided, is phase also by the direction of motion of multiple motion vectors
Same or different translations or rotation process to distinguish user, and utilize n characteristic area
The motion vector that domain is formed with matching area is instructed to be calculated translation instruction or rotate, and is realized
Fingerprint recognition component can recognize that the action type of user, and then generate the effect of corresponding operational order.
It should be added that, because the computing capability of fingerprint recognition component may be limited, so in base
In the alternative embodiment of above method embodiment, fingerprint recognition component only gathers fingerprint image, and will refer to
Print image is sent to CPU, and above-mentioned steps 302 to 308 are performed by CPU.
Fig. 4 is a kind of block diagram of the command generating device according to an exemplary embodiment, such as Fig. 4 institutes
Show, the command generating device being implemented in combination with turning into and above-mentioned carry by software, hardware or both
For all or part of the electronic equipment of instruction generation.The device includes:
Acquisition module 41, is configured as obtaining at least two frame fingerprint images of same fingerprint.
Computing module 42, is configured as being calculated according at least two frame fingerprint images the change in location letter of fingerprint
Breath.
Directive generation module 43, is configured as generating operational order, operational order according to change in location information
Including:Translation instruction, and/or, rotation instruction.
To sum up, the command generating device that the present embodiment is provided, by the fingerprint image to same fingerprint
Diverse location information is subject to analysis and obtains corresponding change in location information, forms corresponding operational order, solution
Fingerprint recognition of having determined module is simply possible to use in the problem of fingerprint recognition scene;Reach using fingerprint recognition module
As man-machine interaction component, using the translation or rotation process of fingerprint recognition module identifying user, enter
And to effect that the operation object in electronic equipment is controlled.
Fig. 5 is the block diagram of another command generating device according to an exemplary embodiment;Such as Fig. 5
It is shown, the command generating device can by software, hardware or both be implemented in combination with turn into it is above-mentioned can
The all or part of the electronic equipment of instruction generation is provided.The device includes:
Acquisition module 51, is configured as obtaining at least two frame fingerprint images of same fingerprint.
Computing module 52, is configured as being calculated according at least two frame fingerprint images the change in location letter of fingerprint
Breath.
Directive generation module 53, is configured as generating operational order, operational order according to change in location information
Including:Translation instruction, and/or, rotation instruction.
Above-mentioned computing module 52 includes following submodule:
Feature acquisition submodule 521, is configured as obtaining n characteristic area in the i-th frame fingerprint image,
I is integer, and n is positive integer.
Submodule 522 is searched, is configured as being searched and n characteristic area in i+1 frame fingerprint image
The matching area for matching respectively.
Vector operation submodule 523, is configured as each characteristic area, according to characteristic area and right
The matching area answered calculates the motion vector of characteristic area.
Change in location submodule 524, is configured as being defined as the n respective motion vector of characteristic area
The change in location information of fingerprint.
Features described above acquisition submodule 521 is configured as obtaining the i-th frame according to default n regional location
N characteristic area in fingerprint image;
Or,
Features described above acquisition submodule 521 is configured as being obtained from the i-th frame fingerprint image according to predetermined condition
N characteristic area is taken, predetermined condition includes:Definition is more than the second threshold more than first threshold, contrast
Value and local character symbol close at least one in predetermined characteristic.
Above-mentioned directive generation module 53 includes following submodule:
First instruction submodule 531, is configured as in the direction of motion all same of n motion vector,
According to n motion vector generation translation instruction.
Second instruction submodule 532, is configured as the direction of motion presence in n >=2 and n motion vector
When different, direction of rotation and the anglec of rotation are determined according to n motion vector.
3rd instruction submodule 533, is configured as according to direction of rotation and anglec of rotation generation rotation instruction.
Above-mentioned second instruction submodule 532 includes following submodule:
Center determination sub-module 5321, is configured as being determined according to n each self-corresponding vertical line of motion vector
Rotary middle point, vertical line is vertical with the direction of motion of motion vector by the starting point and vertical line of motion vector;
Rotation determination sub-module 5322, is configured as according in the n move distance of motion vector and rotation
Heart point determines direction of rotation and the anglec of rotation.
To sum up, the command generating device that the present embodiment is provided, by same fingerprint in fingerprint image
Diverse location information is subject to analysis and obtains corresponding change in location information, forms corresponding operational order, should
Operational order can be used for realizing the translation control or rotation control to operation object;Solve fingerprint recognition
Module is simply possible to use in the problem of fingerprint recognition scene;Reach by the use of fingerprint recognition module as man-machine interaction
Component, using the translation or rotation process of fingerprint recognition module identifying user, and then to electronic equipment
In the effect that is controlled of operation object.
The command generating device that the present embodiment is provided, is phase also by the direction of motion of multiple motion vectors
Same or different translations or rotation process to distinguish user, and utilize n characteristic area
The motion vector that domain is formed with matching area is instructed to be calculated translation instruction or rotate, and is realized
Fingerprint recognition component can recognize that the action type of user, and then generate the effect of corresponding operational order.
The disclosure also provides a kind of command generating device, and device includes:Processor;
Memory for storing processor-executable instruction;
Wherein, processor is configured as:
Obtain at least two frame fingerprint images of same fingerprint;
The change in location information of fingerprint is calculated according at least two frame fingerprint images;
Operational order is generated according to change in location information, operational order includes:Translation instruction, and/or, rotation
Turn instruction.
In one embodiment, the change in location information of fingerprint is calculated according at least two frame fingerprint images, including:
N characteristic area in the i-th frame fingerprint image is obtained, i is integer, and n is positive integer;
The matching area that lookup is matched respectively with n characteristic area in i+1 frame fingerprint image;
For each characteristic area, characteristic area is calculated according to characteristic area and corresponding matching area
Motion vector;
The n respective motion vector of characteristic area is defined as the change in location information of fingerprint.
In one embodiment, n characteristic area in the i-th frame fingerprint image is obtained, including:
N characteristic area in i-th frame fingerprint image is obtained according to default n regional location;
Or,
N characteristic area is obtained from the i-th frame fingerprint image according to predetermined condition, predetermined condition includes:
Definition is closed in predetermined characteristic extremely more than first threshold, contrast more than Second Threshold and local character symbol
Few one kind.
In one embodiment, operational order is generated according to change in location information, including:
In the direction of motion all same of n motion vector, according to n motion vector generation translation instruction.
In one embodiment, operational order is generated according to change in location information, including:
When the direction of motion in n >=2 and n motion vector has different, determined according to n motion vector
Direction of rotation and the anglec of rotation;
According to direction of rotation and anglec of rotation generation rotation instruction.
In one embodiment, the direction of motion according to n motion vector determines direction of rotation and the anglec of rotation,
Including:
Rotary middle point is determined according to n each self-corresponding perpendicular bisector of motion vector;
Move distance and rotary middle point according to n motion vector determine direction of rotation and the anglec of rotation.
To sum up, the command generating device that the present embodiment is provided, by same fingerprint in fingerprint image
Diverse location information is subject to analysis and obtains corresponding change in location information, forms corresponding operational order, should
Operational order can be used for realizing the translation control or rotation control to operation object;Solve fingerprint recognition
Module is simply possible to use in the problem of fingerprint recognition scene;Reach by the use of fingerprint recognition module as man-machine interaction
Component, using the translation or rotation process of fingerprint recognition module identifying user, and then to electronic equipment
In the effect that is controlled of operation object.
The command generating device that the present embodiment is provided, is phase also by the direction of motion of multiple motion vectors
Same or different translations or rotation process to distinguish user, and utilize n characteristic area
The motion vector that domain is formed with matching area is instructed to be calculated translation instruction or rotate, and is realized
Fingerprint recognition component can recognize that the action type of user, and then generate the effect of corresponding operational order.
Fig. 6 is a kind of device that can be used for execute instruction generation method according to an exemplary embodiment
Block diagram.For example, device 600 can be mobile phone, computer, digital broadcast terminal, message is received
Hair equipment, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 6, device 600 can include following one or more assemblies:Processing assembly 602, storage
Device 604, power supply module 606, multimedia groupware 608, audio-frequency assembly 610, input/output (I/O)
Interface 612, sensor cluster 614, and communication component 616.
The integrated operation of the usual control device 600 of processing assembly 602, such as with display, call,
Data communication, camera operation and the associated operation of record operation.Processing assembly 602 can include one
Or multiple processors 618 carry out execute instruction, to complete all or part of step of above-mentioned method.Additionally,
Processing assembly 602 can include one or more modules, be easy between processing assembly 602 and other assemblies
Interaction.For example, processing assembly 602 can include multi-media module, to facilitate multimedia groupware 608
And the interaction between processing assembly 602.
Memory 604 is configured as storing various types of data supporting the operation in device 600.This
The example of a little data includes the instruction for any application program or method operated on device 600, connection
It is personal data, telephone book data, message, picture, video etc..Memory 604 can be by any types
Volatibility or non-volatile memory device or combinations thereof realize, such as static RAM
(SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable is read-only
Memory (EPROM), programmable read only memory (PROM), read-only storage (ROM),
Magnetic memory, flash memory, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 can include
Power-supply management system, one or more power supplys, and other with generate, manage and distribute electricity for device 600
The associated component of power.
Multimedia groupware 608 is included in one screen of output interface of offer between device 600 and user.
In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).Such as
Fruit screen includes touch panel, and screen may be implemented as touch-screen, is believed with receiving the input from user
Number.Touch panel includes one or more touch sensors with sensing touch, slip and touch panel
Gesture.Touch sensor can not only sensing touch or sliding action border, but also detection with touch
Or slide related duration and pressure.In certain embodiments, multimedia groupware 608 includes
One front camera and/or rear camera.When device 600 be in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive outside multi-medium data.Each
Front camera and rear camera can be a fixed optical lens systems or with focal length and optics
Zoom capabilities.
Audio-frequency assembly 610 is configured as output and/or input audio signal.For example, audio-frequency assembly 610 is wrapped
A microphone (MIC) is included, when device 600 is in operator scheme, such as call model, logging mode
During with speech recognition mode, microphone is configured as receiving external audio signal.The audio signal for being received
Can be further stored in memory 604 or be sent via communication component 616.In certain embodiments,
Audio-frequency assembly 610 also includes a loudspeaker, for exports audio signal.
I/O interfaces 612 are that interface, above-mentioned periphery are provided between processing assembly 602 and peripheral interface module
Interface module can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Homepage is pressed
Button, volume button, start button and locking press button.
Sensor cluster 614 includes one or more sensors, for providing various aspects for device 600
State estimation.For example, sensor cluster 614 can detect the opening/closed mode of device 600,
The relative positioning of component, such as component are the display and keypad of device 600, sensor cluster 614
Can be changed with the position of 600 1 components of detection means 600 or device, user contacts with device 600
Presence or absence of, the temperature change of the orientation of device 600 or acceleration/deceleration and device 600.Sensor
Component 614 can include proximity transducer, be configured to detect attached when without any physical contact
The presence of nearly object.Sensor cluster 614 can also include optical sensor, and such as CMOS or CCD schemes
As sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 614 is gone back
Acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or TEMP can be included
Device and fingerprint Identification sensor.
Communication component 616 is configured to facilitate wired or wireless way between device 600 and other equipment
Communication.Device 600 can access the wireless network based on communication standard, such as Wi-Fi, 2G or 3G,
Or combinations thereof.In one exemplary embodiment, communication component 616 comes via broadcast channel reception
From the broadcast singal or broadcast related information of external broadcasting management system.In one exemplary embodiment,
Communication component 616 also includes near-field communication (NFC) module, to promote junction service.For example, in NFC
Module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB)
Technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be by one or more application specific integrated circuits
(ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), can compile
It is journey logical device (PLD), field programmable gate array (FPGA), controller, microcontroller, micro-
Processor or other electronic components are realized, for performing above-mentioned instruction generation method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage including instructing is additionally provided
Medium, such as, including the memory 604 for instructing, above-mentioned instruction can be held by the processor 618 of device 600
Go to complete above-mentioned instruction generation method.For example, non-transitorycomputer readable storage medium can be
ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices
Deng.
Those skilled in the art will readily occur to this after considering specification and putting into practice disclosure disclosed herein
Disclosed other embodiments.The application is intended to any modification, purposes or the adaptability of the disclosure
Change, these modifications, purposes or adaptations follow the general principle of the disclosure and including this public affairs
Open undocumented common knowledge or conventional techniques in the art.Description and embodiments only by
It is considered as exemplary, the true scope of the disclosure and spirit are pointed out by following claim.
It should be appreciated that the disclosure be not limited to be described above and be shown in the drawings it is accurate
Structure, and can without departing from the scope carry out various modifications and changes.The scope of the present disclosure is only by institute
Attached claim is limited.
Claims (13)
1. it is a kind of to instruct generation method, it is characterised in that methods described includes:
Obtain at least two frame fingerprint images of same fingerprint;
The change in location information of the fingerprint is calculated according at least two frame fingerprint images;
Operational order is generated according to the change in location information, the operational order includes:Translation instruction,
And/or, rotation instruction.
2. method according to claim 1, it is characterised in that at least two frames refer to described in the basis
Print image calculates the change in location information of the fingerprint, including:
N characteristic area in the i-th frame fingerprint image is obtained, i is integer, and n is positive integer;
The matching area matched respectively with the n characteristic area is searched in i+1 frame fingerprint image;
For characteristic area each described, calculated according to the characteristic area and the corresponding matching area
Go out the motion vector of the characteristic area;
The respective motion vector of n characteristic area is defined as the change in location information of the fingerprint.
3. method according to claim 2, it is characterised in that the acquisition the i-th frame fingerprint image
In n characteristic area, including:
N characteristic area in the i-th frame fingerprint image is obtained according to default n regional location;
Or,
The n characteristic area is obtained from the i-th frame fingerprint image according to predetermined condition, it is described pre-
Fixed condition includes:Definition meets pre- more than first threshold, contrast more than Second Threshold, local feature
It is relative to the matching area of reference zone described in former frame fingerprint image to determine feature, current region
In at least one.
4. method according to claim 2, it is characterised in that described to be believed according to the change in location
Breath generation operational order, including:
In the direction of motion all same of the n motion vector, generated according to the n motion vector
The translation instruction.
5. method according to claim 2, it is characterised in that described to be believed according to the change in location
Breath generation operational order, including:
When the direction of motion in n >=2 and the n motion vector has different, according to the n
Motion vector determines direction of rotation and the anglec of rotation;
According to the direction of rotation and the anglec of rotation generation rotation instruction.
6. method according to claim 5, it is characterised in that described according to described n motion arrow
The direction of motion of amount determines direction of rotation and the anglec of rotation, including:
Rotary middle point is determined according to each self-corresponding perpendicular bisector of the n motion vector;
Direction and the rotary middle point according to the n motion vector determine the direction of rotation and institute
State the anglec of rotation.
7. a kind of command generating device, it is characterised in that described device includes:
Acquisition module, is configured as obtaining at least two frame fingerprint images of same fingerprint;
Computing module, is configured as the position change that at least two frame fingerprint images according to calculate the fingerprint
Change information;
Directive generation module, is configured as generating operational order, the behaviour according to the change in location information
Include as instruction:Translation instruction, and/or, rotation instruction.
8. device according to claim 7, it is characterised in that the computing module, including:
Feature acquisition submodule, is configured as obtaining n characteristic area in the i-th frame fingerprint image, i
It is integer, n is positive integer;
Submodule is searched, is configured as being searched in i+1 frame fingerprint image and the n characteristic area
The matching area for matching respectively;
Vector operation submodule, is configured as characteristic area each described, according to the characteristic area
With the motion vector that the corresponding matching area calculates the characteristic area;
Change in location submodule, is configured as being defined as the respective motion vector of n characteristic area
The change in location information of the fingerprint.
9. device according to claim 8, it is characterised in that
The feature acquisition submodule, is configured as obtaining described i-th according to default n regional location
N characteristic area in frame fingerprint image;
Or,
The feature acquisition submodule, is configured as according to predetermined condition from the i-th frame fingerprint image
The n characteristic area is obtained, the predetermined condition includes:Definition is more than first threshold, contrast
It is relative to former frame fingerprint image to meet predetermined characteristic, current region more than Second Threshold, local feature
Described in reference zone the matching area at least one.
10. device according to claim 7, it is characterised in that the directive generation module, bag
Include:
First instruction submodule, is configured as in the direction of motion all same of the n motion vector,
According to the n motion vector generation translation instruction.
11. devices according to claim 7, it is characterised in that the directive generation module, bag
Include:
Second instruction submodule, is configured as the direction of motion in n >=2 and the n motion vector
When having different, direction of rotation and the anglec of rotation are determined according to the n motion vector;
3rd instruction submodule, is configured as according to the direction of rotation and anglec of rotation generation
Rotation instruction.
12. devices according to claim 11, it is characterised in that the second instruction submodule,
Also include:
Center determination sub-module, is configured as true according to each self-corresponding perpendicular bisector of the n motion vector
Determine rotary middle point;
Rotation determination sub-module, is configured as in the direction and the rotation according to the n motion vector
Heart point determines the direction of rotation and the anglec of rotation.
13. a kind of command generating devices, it is characterised in that described device includes:
Processor;
Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
Obtain at least two frame fingerprint images of same fingerprint;
The change in location information of the fingerprint is calculated according at least two frame fingerprint images;
Operational order is generated according to the change in location information, the operational order includes:Translation instruction,
And/or, rotation instruction.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510860559.6A CN106814941A (en) | 2015-11-30 | 2015-11-30 | Instruction generation method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510860559.6A CN106814941A (en) | 2015-11-30 | 2015-11-30 | Instruction generation method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106814941A true CN106814941A (en) | 2017-06-09 |
Family
ID=59155987
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510860559.6A Pending CN106814941A (en) | 2015-11-30 | 2015-11-30 | Instruction generation method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106814941A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110456963A (en) * | 2019-07-17 | 2019-11-15 | 深圳传音控股股份有限公司 | A display area adjustment method, terminal and computer storage medium |
| CN117275047A (en) * | 2023-09-19 | 2023-12-22 | 中国银行股份有限公司 | A fingerprint identification method, device, electronic equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1673946A (en) * | 2004-03-22 | 2005-09-28 | Lg电子有限公司 | Mobile terminal and operating method therefor |
| CN1755602A (en) * | 2004-09-28 | 2006-04-05 | 夏普株式会社 | A point and click device that offers good operability at a low cost |
| CN101510118A (en) * | 2008-02-14 | 2009-08-19 | 原相科技股份有限公司 | Instruction inputting method and device |
| CN104915063A (en) * | 2015-06-29 | 2015-09-16 | 努比亚技术有限公司 | Method and device for controlling intelligent terminal |
| CN106547338A (en) * | 2015-09-22 | 2017-03-29 | 小米科技有限责任公司 | Instruction generation method and device |
-
2015
- 2015-11-30 CN CN201510860559.6A patent/CN106814941A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1673946A (en) * | 2004-03-22 | 2005-09-28 | Lg电子有限公司 | Mobile terminal and operating method therefor |
| CN1755602A (en) * | 2004-09-28 | 2006-04-05 | 夏普株式会社 | A point and click device that offers good operability at a low cost |
| CN101510118A (en) * | 2008-02-14 | 2009-08-19 | 原相科技股份有限公司 | Instruction inputting method and device |
| CN104915063A (en) * | 2015-06-29 | 2015-09-16 | 努比亚技术有限公司 | Method and device for controlling intelligent terminal |
| CN106547338A (en) * | 2015-09-22 | 2017-03-29 | 小米科技有限责任公司 | Instruction generation method and device |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110456963A (en) * | 2019-07-17 | 2019-11-15 | 深圳传音控股股份有限公司 | A display area adjustment method, terminal and computer storage medium |
| CN110456963B (en) * | 2019-07-17 | 2025-01-21 | 深圳传音控股股份有限公司 | A display area adjustment method, terminal and computer storage medium |
| CN117275047A (en) * | 2023-09-19 | 2023-12-22 | 中国银行股份有限公司 | A fingerprint identification method, device, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106547338A (en) | Instruction generation method and device | |
| EP3901824B1 (en) | Method and device for realizing touch button and fingerprint identification, and terminal device | |
| CN104700353B (en) | Image filters generation method and device | |
| CN105631403A (en) | Method and device for human face recognition | |
| CN104036240B (en) | The localization method and device of human face characteristic point | |
| CN105550637A (en) | Contour point positioning method and contour point positioning device | |
| CN104461014A (en) | Screen unlocking method and device | |
| CN105469056A (en) | Face image processing method and device | |
| CN105512605A (en) | Face image processing method and device | |
| KR20160001263A (en) | Mobile terminal and controlling metheod thereof | |
| CN105608425A (en) | Method and device for sorted storage of pictures | |
| CN105354560A (en) | Fingerprint identification method and device | |
| CN112115894A (en) | Training method and device for hand key point detection model and electronic equipment | |
| EP3208742A1 (en) | Method and apparatus for detecting pressure | |
| CN103995666A (en) | Method and device for setting work mode | |
| CN106201126A (en) | Touch screen and fingerprint recognition realize device and terminal unit | |
| CN104933419A (en) | Method and device for obtaining iris images and iris identification equipment | |
| CN104156993A (en) | Method and device for switching face image in picture | |
| CN106919629A (en) | The method and device of information sifting is realized in group chat | |
| CN105139378A (en) | Card boundary detection method and apparatus | |
| CN105159496A (en) | Touch event response method and mobile terminal | |
| CN103886284A (en) | Character attribute information identification method and device and electronic device | |
| CN105843503B (en) | Application opening method, device and terminal device | |
| CN104573642A (en) | Face recognition method and device | |
| CN104899588A (en) | Method and device for recognizing characters in image |
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 | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170609 |
|
| WD01 | Invention patent application deemed withdrawn after publication |