CN105022576B - Unlocking screen method and apparatus - Google Patents
Unlocking screen method and apparatus Download PDFInfo
- Publication number
- CN105022576B CN105022576B CN201410174103.XA CN201410174103A CN105022576B CN 105022576 B CN105022576 B CN 105022576B CN 201410174103 A CN201410174103 A CN 201410174103A CN 105022576 B CN105022576 B CN 105022576B
- Authority
- CN
- China
- Prior art keywords
- pixel
- eigenmatrix
- matrix
- screen
- graphic feature
- 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
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of unlocking screen method and apparatus, are related to touch screen field.Wherein, unlocking screen method includes:The first figure that acquisition user draws in touch screen;The first the reflection of graphics that user is drawn in touch screen is tablet pattern eigenmatrix;The tablet pattern eigenmatrix and preset unlock graphic feature matrix are subjected to Similarity measures;Processing is unlocked screen according to Similarity measures result.Through the above scheme, user can be mapped as graphic feature matrix in the arbitrary graphic that touch screen is drawn, by comparing the similitude of two graphic feature matrixes, it can realize that unlocking screen is handled, the pattern of letter, number or arbitrary shape can serve as the unlocking pattern, the unlocking pattern type is more abundant, it is not easy to it is cracked, good confidentiality.
Description
Technical field
The present invention relates to touch screen field, more particularly to a kind of unlocking screen method and apparatus.
Background technology
The unlocking manner of smart mobile phone screen is broadly divided into three classes at present:
One, for example, Android system, the figure progress unlocking screen that user is combined into using 9 points fixed on screen;
Two, such as apple system, user inputs preset number combination using numeric keypad and carries out unlocking screen;
Three, by third party software, user can use certain key combinations to carry out unlocking screen.
More than unlocking screen method has the following problems:
On the one hand, the unlocking pattern type is limited, is easily cracked.For example, for Android system, the unlocking pattern only may be used
Be 9 points may be combined into come figure;For apple system and third party software, number combination and key combination
Type is also all limited.
In another aspect, user is needed to input the unlocking pattern in designated position, otherwise None- identified, lacks flexibility.For example,
For Android system, it is only capable of inputting the unlocking pattern in the position of 9 points;For apple system and third party software,
It is only capable of inputting number combination or key combination in keyboard position.
Invention content
A technical problem to be solved of the embodiment of the present invention is:The unlocking pattern type is limited, and what is be easily cracked asks
Topic.
Another technical problem to be solved of the embodiment of the present invention is:The input position of the unlocking pattern is limited, and lacks spirit
The problem of active.
One side according to embodiments of the present invention proposes a kind of unlocking screen method, including:User is acquired in touch screen
The first figure drawn;The first the reflection of graphics that user is drawn in touch screen is tablet pattern eigenmatrix;By tablet pattern
Eigenmatrix carries out Similarity measures with preset unlock graphic feature matrix;Screen is solved according to Similarity measures result
Lock processing.
In one embodiment of unlocking screen method, further include:The second graph that acquisition user draws in touch screen;It will
User is mapped as unlock graphic feature matrix in the second graph that touch screen is drawn.
In one embodiment of unlocking screen method, tablet pattern eigenmatrix is corresponding with unlock graphic feature matrix
The mapping method of eigenmatrix includes:The figure that user is drawn in touch screen pixel and intercepts by filling in the blanks and obtains a width
Square-shaped image;Square-shaped image is subjected to piecemeal, and the matrix that image block is mapped to default ranks obtains eigenmatrix.
In one embodiment of unlocking screen method, user is passed through into the pixel that fills in the blanks in the figure that touch screen is drawn
And interception obtains a width square-shaped image and includes:The filling graph blank pixel that user is drawn in touch screen;From top to bottom by
Figure after row scanning filling acquires first non-blank-white pixel and the last one non-blank-white pixel respectively as pixel
C and pixel A;The figure after filling is scanned by column from left to right, acquires first non-blank-white pixel and the last one non-empty
White pixel point is respectively as pixel D and pixel B;Calculate horizontal pixel interval and the pixel of pixel A and pixel C
The vertical pixel separation of point B and pixel D, and comparison level pixel separation and the size of vertical pixel separation determine maximum pixel
Interval;The length of side is divided between maximum pixel, to calculate the pixel at maximum pixel interval as boundary point, by the figure after filling
It intercepts as square-shaped image.
In one embodiment of unlocking screen method, square-shaped image is subjected to piecemeal, and image block is mapped to pre-
Include if the matrix of ranks obtains eigenmatrix:Square-shaped image is divided into n × n image block of decile, is judged one by one every
It whether there is non-empty white pixel, the image block there will be non-empty white pixel and the image there is no non-empty white pixel in a image block
Block is respectively labeled as different value in eigenmatrix, wherein, n represents the line number and columns of eigenmatrix.
In one embodiment of unlocking screen method, by tablet pattern eigenmatrix and preset unlock graphic feature square
Battle array carries out Similarity measures and includes:Calculate the sum of ranks unlock graphic feature rank of matrix of tablet pattern eigenmatrix;If input
Graphic feature rank of matrix is equal with unlock graphic feature rank of matrix, then tablet pattern eigenmatrix and unlock graphic feature square
Battle array is similar matrix;If the sum of ranks unlock graphic feature rank of matrix of tablet pattern eigenmatrix is unequal, tablet pattern
Eigenmatrix and unlock graphic feature matrix are not similar matrixes.
In one embodiment of unlocking screen method, processing packet is unlocked to screen according to Similarity measures result
It includes:If tablet pattern eigenmatrix and unlock graphic feature matrix are similar matrix, screen is unlocked;If input figure
Shape eigenmatrix and unlock graphic feature matrix are not similar matrixes, keep screen locking.
In one embodiment of unlocking screen method, the first figure and second graph can be letter, number or arbitrary
The pattern of shape.
Another aspect according to embodiments of the present invention proposes a kind of screen unlocking device, including:Map unit is used for
The first figure that acquisition user draws in touch screen;The first the reflection of graphics that user is drawn in touch screen is tablet pattern feature
Matrix;Unlocking screen unit, by tablet pattern eigenmatrix and preset unlock graphic feature matrix to be carried out based on similitude
It calculates;Processing is unlocked screen according to Similarity measures result.
In one embodiment of screen unlocking device, map unit is additionally operable to acquisition user draws in touch screen the
Two figures;User is mapped as unlock graphic feature matrix in the second graph that touch screen is drawn.
In one embodiment of screen unlocking device, map unit includes:Pattern process module exists for acquiring user
The figure that touch screen is drawn, the figure that user is drawn in touch screen pixel and intercept that obtain a width square by filling in the blanks
Image;Matrix disposal module, the square-shaped image for pattern process module to be handled carry out piecemeal, and image block is reflected
The matrix for being incident upon default ranks obtains eigenmatrix;Wherein, eigenmatrix includes tablet pattern eigenmatrix and unlock figure is special
Levy matrix.
In one embodiment of screen unlocking device, pattern process module is specifically used for:Acquisition user paints in touch screen
The figure of system, the filling graph blank pixel that user is drawn in touch screen;Figure after progressive scan filling from top to bottom, is adopted
Collect first non-blank-white pixel and the last one non-blank-white pixel respectively as pixel C and pixel A;From left to right by
Figure after column scan filling acquires first non-blank-white pixel and the last one non-blank-white pixel respectively as pixel
D and pixel B;Calculate the horizontal pixel interval of pixel A and pixel C and the vertical pixel of pixel B and pixel D
Interval, and comparison level pixel separation and the size of vertical pixel separation determine maximum pixel interval;It is divided between maximum pixel
Using the pixel for calculating maximum pixel interval as boundary point, the figure after filling is intercepted as square-shaped image for the length of side.
In one embodiment of screen unlocking device, matrix disposal module, specifically for including:Square-shaped image is drawn
It is divided into n × n image block of decile, judges that there will be non-blank-white pictures with the presence or absence of non-empty white pixel in each image block one by one
The image block of element and there is no the image blocks of non-empty white pixel that different value is respectively labeled as in eigenmatrix, wherein, n represents special
Levy the line number and columns of matrix.
In one embodiment of screen unlocking device, unlocking screen unit is specifically used in Similarity measures:It calculates
The sum of ranks unlock graphic feature rank of matrix of tablet pattern eigenmatrix;If the sum of ranks unlock figure of tablet pattern eigenmatrix
The order of eigenmatrix is equal, then tablet pattern eigenmatrix and unlock graphic feature matrix are similar matrix;If tablet pattern
The sum of ranks unlock graphic feature rank of matrix of eigenmatrix is unequal, then tablet pattern eigenmatrix and unlock graphic feature matrix
It is not similar matrix.
In one embodiment of screen unlocking device, unlocking screen unit is specifically used for when being unlocked processing:Such as
Fruit tablet pattern eigenmatrix and unlock graphic feature matrix are similar matrix, and screen is unlocked;If tablet pattern is special
It is not similar matrix to levy matrix and unlock graphic feature matrix, keeps screen locking.
In one embodiment of screen unlocking device, the first figure and second graph can be letter, number or arbitrary
The pattern of shape.
The embodiment of the present invention at least has the advantages that:
On the one hand, user can be mapped as graphic feature matrix in the arbitrary graphic that touch screen is drawn, by comparing two
The similitude of a graphic feature matrix, it is possible to realize that unlocking screen is handled, therefore, the pattern of letter, number or arbitrary shape
The unlocking pattern is can serve as, the unlocking pattern type is more abundant, it is not easy to it is cracked, good confidentiality.
Another aspect, the figure that user is drawn in touch screen pixel and intercept by filling in the blanks and obtain width pros
Then square-shaped image is carried out piecemeal, and image block is mapped to a certain matrix and obtains eigenmatrix by shape image so that user
The figure similar to preset figure forms is drawn in any one position of screen, unlock can be realized, unlock is more flexible.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its
Advantage will become apparent.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other attached drawings according to these attached drawings.
Fig. 1 is the flow diagram of unlocking screen method one embodiment of the present invention.
Fig. 2 is the flow diagram of unlocking screen method further embodiment of the present invention.
Fig. 3 is that user of the present invention draws the schematic diagram of a triangle in the screen upper right corner.
Fig. 4 be the present invention by figure shown in Fig. 3 interception be square-shaped image schematic diagram.
Fig. 5 is the schematic diagram for 4 × 4 image blocks that square-shaped image shown in Fig. 4 is divided into decile by the present invention.
Fig. 6 is the schematic diagram of the corresponding eigenmatrixes of Fig. 5 of the present invention.
Fig. 7 is user of the present invention in one approximate circle schematic diagram of screen drawing.
Fig. 8 is the schematic diagram of the corresponding eigenmatrix of figure shown in Fig. 7 of the present invention.
Fig. 9 is schematic diagram of the user of the present invention in the triangle of screen drawing another kind shape.
Figure 10 is the schematic diagram of the corresponding eigenmatrix of figure shown in Fig. 9 of the present invention.
Figure 11 is the structure diagram of screen unlocking device one embodiment of the present invention.
Figure 12 is the structure diagram of screen unlocking device further embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Below
Description only actually at least one exemplary embodiment is illustrative, is never used as to the present invention and its application or makes
Any restrictions.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Lower all other embodiments obtained, shall fall within the protection scope of the present invention.
Unless specifically stated otherwise, the component and positioned opposite, the digital table of step otherwise illustrated in these embodiments
It is not limited the scope of the invention up to formula and numerical value.
Simultaneously, it should be appreciated that for ease of description, the size of the various pieces shown in attached drawing is not according to reality
Proportionate relationship draw.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as authorizing part of specification.
In shown here and discussion all examples, any occurrence should be construed as merely illustrative, without
It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need to that it is further discussed.
Fig. 1 is the flow diagram of unlocking screen method one embodiment of the present invention.As shown in Figure 1, the screen of the present embodiment
Curtain unlocking method includes the following steps:
Step S101, the first figure that acquisition user draws in touch screen;
Step S102, the first the reflection of graphics that user is drawn in touch screen are tablet pattern eigenmatrix;
Tablet pattern eigenmatrix and preset unlock graphic feature matrix are carried out Similarity measures by step S103;
Step S104 is unlocked screen processing according to Similarity measures result.
Above-described embodiment, user can be mapped as graphic feature matrix in the arbitrary graphic that touch screen is drawn, pass through ratio
Compared with the similitude of two graphic feature matrixes, it is possible to realize that unlocking screen is handled, it is therefore, alphabetical, digital or arbitrary shape
Pattern (such as irregular figure or meaningless figure) can serve as the unlocking pattern, and the unlocking pattern type is more abundant, does not allow
Easily it is cracked, good confidentiality.Also, user only need to draw with the approximate figure of preset figure, do not need to be tight
Lattice are identical, more hommization.
In one embodiment of unlocking screen method, unlock graphic feature matrix may be used and tablet pattern feature square
Battle array similar approach obtains, that is, the second graph that acquisition user draws in touch screen, the second graph that user is drawn in touch screen
It is mapped as unlock graphic feature matrix.
It should be noted that first, second is only used for distinguishing different objects in the present invention, it is not used to represent big
The meanings such as small, sequential.
During unlocking screen, user's whether defined unlock graphic feature matrix can be first detected;If
Definition unlock graphic feature matrix, then can carry out similarity relatively and be unlocked;If it is special not define unlock figure
Levy matrix, then need first to define unlock graphic feature matrix, then carry out again similarity relatively and be unlocked.Referring specifically to
The flow diagram of unlocking screen method further embodiment shown in Fig. 2.
Step S201, whether detection user is defined to unlock graphic feature matrix;If do not defined, step is performed
S202 if defined, performs step S203;
User is mapped as unlock graphic feature matrix by step S202 in the second graph that touch screen is drawn;
Step S203, the first the reflection of graphics that user is drawn in touch screen are tablet pattern eigenmatrix;
Tablet pattern eigenmatrix and preset unlock graphic feature matrix are carried out Similarity measures by step S204;
Step S205 is unlocked screen processing according to Similarity measures result.
In one embodiment of unlocking screen method, tablet pattern eigenmatrix is corresponding with unlock graphic feature matrix
Eigenmatrix may be used following mapping method and obtain:The figure that user is drawn in touch screen pixel and is cut by filling in the blanks
It obtains to a width square-shaped image;Square-shaped image is subjected to piecemeal, and the matrix that image block is mapped to default ranks obtains
Eigenmatrix.It is by taking the mapping of tablet pattern eigenmatrix as an example, user is empty by filling in the first figure that touch screen is drawn
White pixel and intercept obtain a width square-shaped image;Square-shaped image is subjected to piecemeal, and image block is mapped to default ranks
Matrix obtain tablet pattern eigenmatrix.For unlocking the mapping of graphic feature matrix, user is drawn in touch screen
Second graph by fill in the blanks pixel and intercept obtain a width square-shaped image;Square-shaped image is subjected to piecemeal, and will figure
As the matrix that block maps to default ranks obtains unlock graphic feature matrix.
The mapping method of features described above matrix so that user draws and preset figure forms phase in any one position of screen
As figure can be realized unlock, unlock is more flexible.
It should be noted that the generation method of features described above matrix is only a kind of illustrative generation method, this field skill
Art personnel can also use the corresponding eigenmatrix of other methods generation figure.For example, use a sufficiently large square window
Body traverses entire screen, will square forms at this time when image input by user is met the requirements in this square forms
In image carry out piecemeal, and by image block map to default ranks matrix obtain unlock graphic feature matrix.
In one embodiment of unlocking screen method, user is passed through into the pixel that fills in the blanks in the figure that touch screen is drawn
And interception obtains a width square-shaped image and specifically includes:The filling graph blank pixel that user is drawn in touch screen;From up to
Figure after lower progressive scan filling, acquires first non-blank-white pixel and the last one non-blank-white pixel respectively as picture
Vegetarian refreshments C and pixel A;Scan by column from left to right filling after figure, acquire first non-blank-white pixel and the last one
Non-blank-white pixel is respectively as pixel D and pixel B;Calculate pixel A and pixel C horizontal pixel interval and
The vertical pixel separation of pixel B and pixel D, and comparison level pixel separation and the size of vertical pixel separation determine maximum
Pixel separation;The length of side is divided between maximum pixel, to calculate the pixel at maximum pixel interval as boundary point, after filling
Figure interception is square-shaped image.
In one embodiment of unlocking screen method, square-shaped image is subjected to piecemeal, and image block is mapped to pre-
It is specifically included if the matrix of ranks obtains eigenmatrix:Square-shaped image is divided into n × n image block of decile, is sentenced one by one
Break in each image block with the presence or absence of non-empty white pixel, there will be non-empty white pixel image block and there is no non-empty white pixels
Image block is respectively labeled as different value in eigenmatrix, for example, there will be non-empty white pixel image block in eigenmatrix
Labeled as 1, there will be no the image block (that is, image block of full blank pixel) of non-empty white pixel, label is in eigenmatrix,
Wherein, n represents the line number and columns of eigenmatrix.
In embodiments of the present invention, eigenmatrix n × n, wherein, n is natural number and >=2.For example, 4 × 4 feature square
Battle array, 9 × 9 eigenmatrix etc., will not enumerate here.In general, the value of n is bigger, is just less susceptible to crack, confidentiality
Also it is better.As needed, the eigenmatrix of corresponding ranks can be chosen.
In order to make the solution of the present invention clearer, a mapping is set forth below and obtains the application example of eigenmatrix.
User draws the image of an arbitrary shape in screen any position first, for example, user paints in the screen upper right corner
A triangle (as shown in Figure 3) is made, fill in the blanks pixel, then progressively scans from top to bottom, acquires first non-blank-white picture
Vegetarian refreshments (pixel C) and the last one non-blank-white pixel (pixel A), scan by column from left to right, acquire first non-empty
White pixel point (pixel D) and the last one non-blank-white pixel (pixel B) calculate the horizontal picture of pixel A and pixel C
Element interval and the vertical pixel separation of pixel B and pixel D, and comparison level pixel separation and vertical pixel separation
Size, the vertical pixel separation for determining pixel B and pixel D is maximum pixel interval, and the length of side is divided between maximum pixel, with
The pixel for calculating maximum pixel interval is boundary point, is square-shaped image (as shown in Figure 4) by the figure interception after filling,
Square-shaped image is divided into 4 × 4 image blocks (as shown in Figure 5) of decile, judges to whether there is in each image block one by one
Non-empty white pixel, there are the image block of non-empty white pixel, to be marked in eigenmatrix be that there is no the image blocks of non-empty white pixel
Label is that the eigenmatrix then finally obtained is as shown in Figure 6 in eigenmatrix.Tablet pattern eigenmatrix and unlock figure
This method may be used to obtain in shape eigenmatrix.
In another example user is in screen drawing one approximate circle (as shown in Figure 7), the corresponding eigenmatrix of the figure such as figure
Shown in 8.
In another example triangle (as shown in Figure 9) of the user in screen drawing another kind shape, the corresponding feature square of the figure
Battle array is as shown in Figure 10.
In one embodiment of unlocking screen method, in step 103 or step 204 " by tablet pattern eigenmatrix with
Preset unlock graphic feature matrix carries out Similarity measures " it specifically includes:Calculate the sum of ranks unlock of tablet pattern eigenmatrix
Graphic feature rank of matrix;If the sum of ranks unlock graphic feature rank of matrix of tablet pattern eigenmatrix is equal, figure is inputted
Shape eigenmatrix and unlock graphic feature matrix are similar matrix;If the sum of ranks unlock graphic feature of tablet pattern eigenmatrix
Rank of matrix is unequal, then tablet pattern eigenmatrix and unlock graphic feature matrix are not similar matrixes.
Above-mentioned Similarity measures are simple, easy to implement, and similarity determination is efficient.In addition to this it is possible to it adopts
It is similar to determine to the scheme for unlocking each element in graphic feature matrix that tablet pattern eigenmatrix is compared with for example one by one
Property, when each element in two eigenmatrixes is identical, then judge that two eigenmatrixes are similar.
In one embodiment of unlocking screen method, " according to Similarity measures result pair in step 104 or step 205
Screen is unlocked processing " it specifically includes:If tablet pattern eigenmatrix and unlock graphic feature matrix are similar matrix, right
Screen is unlocked;If tablet pattern eigenmatrix and unlock graphic feature matrix are not similar matrixes, screen locking is kept.
Figure 11 is the structure diagram of screen unlocking device one embodiment of the present invention.As shown in figure 11, the present embodiment
Screen unlocking device 1100 includes:
Map unit 1101, for acquiring the first figure that user draws in touch screen;User is drawn in touch screen
First the reflection of graphics is tablet pattern eigenmatrix;
Unlocking screen unit 1102, for tablet pattern eigenmatrix and preset unlock graphic feature matrix to be carried out phase
It is calculated like property, processing is unlocked screen according to Similarity measures result.
Wherein, interface 1 is created between map unit 1101 and screen, map unit 1101 acquires user by interface 1 and exists
The figure that touch screen is drawn;Interface 3 is created between map unit 1101 and unlocking screen unit 1102, map unit 1101 passes through
Eigenmatrix (tablet pattern eigenmatrix and subsequent unlock graphic feature matrix) is sent to unlocking screen unit by interface 3
1102;Interface 4 is created between unlocking screen unit 1102 and screen, unlocking screen unit 1102 is by interface 4 by unlocking screen
Signal is sent to screen.
In one embodiment of screen unlocking device, map unit 1101 is additionally operable to acquisition user and is drawn in touch screen
Second graph, by user the second graph that touch screen is drawn be mapped as unlock graphic feature matrix.
In one embodiment of screen unlocking device, as shown in figure 12, map unit 1101 includes:Pattern process module
1201, for acquiring the figure that user draws in touch screen, user is passed through into the pixel that fills in the blanks in the figure that touch screen is drawn
And it intercepts and obtains a width square-shaped image;Matrix disposal module 1202, for the processing of pattern process module 1201 to be obtained just
Rectangular image carries out piecemeal, and the matrix that image block is mapped to default ranks obtains eigenmatrix;Wherein, eigenmatrix includes
Tablet pattern eigenmatrix and unlock graphic feature matrix.
Wherein, the interface based on Figure 11 settings, creates between pattern process module 1201 and matrix disposal module 1202
Square-shaped image is sent to matrix disposal module 1202 by interface 2, pattern process module 1201 by interface 2.
In one embodiment of screen unlocking device, pattern process module 1201 is specifically used for:Acquisition user is touching
Shield the figure drawn, the filling graph blank pixel that user is drawn in touch screen;Figure after progressive scan filling from top to bottom
Shape acquires first non-blank-white pixel and the last one non-blank-white pixel respectively as pixel C and pixel A;From a left side
Scan by column the figure after filling to the right side, acquire first non-blank-white pixel and the last one non-blank-white pixel respectively as
Pixel D and pixel B;Calculate the horizontal pixel interval of pixel A and pixel C and hanging down for pixel B and pixel D
Straight pixel separation, and comparison level pixel separation and the size of vertical pixel separation determine maximum pixel interval;With maximum pixel
Between be divided into the length of side, be square figure by the figure interception after filling to calculate the pixel at maximum pixel interval as boundary point
Picture.
In one embodiment of screen unlocking device, matrix disposal module 1202, specifically for including:Square is schemed
N × n the image block as being divided into decile judges that there will be non-emptys with the presence or absence of non-empty white pixel in each image block one by one
The image block of white pixel and image block there is no non-empty white pixel are respectively labeled as different value in eigenmatrix, wherein, n tables
Show the line number and columns of eigenmatrix.
In one embodiment of screen unlocking device, unlocking screen unit 1102 is specifically used in Similarity measures:
Calculate the sum of ranks unlock graphic feature rank of matrix of tablet pattern eigenmatrix;If the sum of ranks unlock of tablet pattern eigenmatrix
Graphic feature rank of matrix is equal, then tablet pattern eigenmatrix and unlock graphic feature matrix are similar matrix;If input
Graphic feature rank of matrix and unlock graphic feature rank of matrix are unequal, then tablet pattern eigenmatrix and unlock graphic feature
Matrix is not similar matrix.
In one embodiment of screen unlocking device, unlocking screen unit 1102 is specific to use when being unlocked processing
In:If tablet pattern eigenmatrix and unlock graphic feature matrix are similar matrix, screen is unlocked;If input figure
Shape eigenmatrix and unlock graphic feature matrix are not similar matrixes, keep screen locking.
In one embodiment, user can be letter, number in the first figure and second graph of screen drawing or appoint
The pattern for shape of anticipating.
Above-mentioned screen unlocking device has the following effects that:
On the one hand, user can be mapped as graphic feature matrix in the arbitrary graphic that touch screen is drawn, by comparing two
The similitude of a graphic feature matrix, it is possible to realize that unlocking screen is handled, therefore, the pattern of letter, number or arbitrary shape
The unlocking pattern is can serve as, the unlocking pattern type is more abundant, it is not easy to it is cracked, good confidentiality.
Another aspect, the figure that user is drawn in touch screen pixel and intercept by filling in the blanks and obtain width pros
Then square-shaped image is carried out piecemeal, and image block is mapped to a certain matrix and obtains eigenmatrix by shape image so that user
The figure similar to preset figure forms is drawn in any one position of screen, unlock can be realized, unlock is more flexible.
The unlocking screen technology of the present invention can be applied to mobile terminal, for example, smart mobile phone, tablet computer, notebook
Computer etc..
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment
It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (16)
1. a kind of unlocking screen method, including:
The first figure that acquisition user draws in touch screen;
The first the reflection of graphics that user is drawn in touch screen is tablet pattern eigenmatrix, the divided each figure of the first figure
As block is mapped as an element of tablet pattern eigenmatrix;
The tablet pattern eigenmatrix and preset unlock graphic feature matrix are subjected to Similarity measures;
Processing is unlocked screen according to Similarity measures result.
2. it according to the method described in claim 1, it is characterized in that, further includes:
The second graph that acquisition user draws in touch screen;
User is mapped as unlock graphic feature matrix, the divided each figure of second graph in the second graph that touch screen is drawn
As block is mapped as an element of unlock graphic feature matrix.
3. method according to claim 1 or 2, which is characterized in that the tablet pattern eigenmatrix and the unlock figure
The mapping method of the corresponding eigenmatrix of shape eigenmatrix includes:
The figure that user is drawn in touch screen pixel and intercepts by filling in the blanks and obtains a width square-shaped image;
Square-shaped image is subjected to piecemeal, and the matrix that image block is mapped to default ranks obtains eigenmatrix.
4. according to the method described in claim 3, it is characterized in that, described pass through filling by user in the figure that touch screen is drawn
Blank pixel simultaneously intercepts and obtains a width square-shaped image and include:
The filling graph blank pixel that user is drawn in touch screen;
Figure after progressive scan filling from top to bottom, acquires first non-blank-white pixel and the last one non-blank-white pixel
Respectively as pixel C and pixel A;
The figure after filling is scanned by column from left to right, acquires first non-blank-white pixel and the last one non-blank-white pixel
Respectively as pixel D and pixel B;
The horizontal pixel interval of pixel A and pixel C and the vertical pixel separation of pixel B and pixel D are calculated, and
Comparison level pixel separation and the size of vertical pixel separation determine maximum pixel interval;
The length of side is divided between maximum pixel, to calculate the pixel at maximum pixel interval as boundary point, by the figure after filling
It intercepts as square-shaped image.
5. according to the method described in claim 3, it is characterized in that, described carry out piecemeal by square-shaped image, and by image block
The matrix for mapping to default ranks obtains eigenmatrix and includes:
Square-shaped image is divided into n × n image block of decile, judges to whether there is non-blank-white picture in each image block one by one
Element, the image block there will be non-empty white pixel and the image block there is no non-empty white pixel are respectively labeled as not in eigenmatrix
With value, wherein, n represents the line number and columns of eigenmatrix.
It is 6. according to the method described in claim 1, it is characterized in that, described by the tablet pattern eigenmatrix and preset solution
Lock graphic feature matrix carries out Similarity measures and includes:
Calculate unlock graphic feature rank of matrix described in the sum of ranks of the tablet pattern eigenmatrix;If the tablet pattern is special
It levies rank of matrix and the unlock graphic feature rank of matrix is equal, then the tablet pattern eigenmatrix and the unlock figure
Eigenmatrix is similar matrix;If graphic feature rank of matrix not phase is unlocked described in the sum of ranks of the tablet pattern eigenmatrix
Deng, then the tablet pattern eigenmatrix and it is described unlock graphic feature matrix be not similar matrix.
7. according to the method described in claim 1, it is characterized in that, described be unlocked screen according to Similarity measures result
Processing includes:
If the tablet pattern eigenmatrix and the unlock graphic feature matrix are similar matrix, screen is unlocked;
If the tablet pattern eigenmatrix and the unlock graphic feature matrix are not similar matrixes, screen locking is kept.
8. according to the method described in claim 2, it is characterized in that, first figure and the second graph are letter, number
The pattern of word or arbitrary shape.
9. a kind of screen unlocking device, including:
Map unit, for acquiring the first figure that user draws in touch screen;The first figure that user is drawn in touch screen
Tablet pattern eigenmatrix is mapped as, the divided each image block of the first figure is mapped as one of tablet pattern eigenmatrix
Element;
Unlocking screen unit, for the tablet pattern eigenmatrix and preset unlock graphic feature matrix to be carried out similitude
It calculates;Processing is unlocked screen according to Similarity measures result.
10. device according to claim 9, which is characterized in that
The map unit is additionally operable to the second graph that acquisition user draws in touch screen;That user is drawn in touch screen
Two the reflection of graphics are unlock graphic feature matrix, and the divided each image block of second graph is mapped as unlock graphic feature matrix
An element.
11. device according to claim 9 or 10, which is characterized in that the map unit includes:
For acquiring the figure that user draws in touch screen, user is passed through in the figure that touch screen is drawn for pattern process module
The pixel that fills in the blanks and intercept obtain a width square-shaped image;
Matrix disposal module, the square-shaped image for pattern process module to be handled carry out piecemeal, and image block is reflected
The matrix for being incident upon default ranks obtains eigenmatrix;
Wherein, eigenmatrix includes tablet pattern eigenmatrix and unlock graphic feature matrix.
12. according to the devices described in claim 11, which is characterized in that the pattern process module is specifically used for:
The figure that acquisition user draws in touch screen, the filling graph blank pixel that user is drawn in touch screen;
Figure after progressive scan filling from top to bottom, acquires first non-blank-white pixel and the last one non-blank-white pixel
Respectively as pixel C and pixel A;
The figure after filling is scanned by column from left to right, acquires first non-blank-white pixel and the last one non-blank-white pixel
Respectively as pixel D and pixel B;
The horizontal pixel interval of pixel A and pixel C and the vertical pixel separation of pixel B and pixel D are calculated, and
Comparison level pixel separation and the size of vertical pixel separation determine maximum pixel interval;
The length of side is divided between maximum pixel, to calculate the pixel at maximum pixel interval as boundary point, by the figure after filling
It intercepts as square-shaped image.
13. according to the devices described in claim 11, which is characterized in that the matrix disposal module, specifically for including:
Square-shaped image is divided into n × n image block of decile, judges to whether there is non-blank-white picture in each image block one by one
Element, the image block there will be non-empty white pixel and the image block there is no non-empty white pixel are respectively labeled as not in eigenmatrix
With value, wherein, n represents the line number and columns of eigenmatrix.
14. device according to claim 9, which is characterized in that the unlocking screen unit is in Similarity measures, specifically
For:
Calculate unlock graphic feature rank of matrix described in the sum of ranks of the tablet pattern eigenmatrix;If the tablet pattern is special
It levies rank of matrix and the unlock graphic feature rank of matrix is equal, then the tablet pattern eigenmatrix and the unlock figure
Eigenmatrix is similar matrix;If graphic feature rank of matrix not phase is unlocked described in the sum of ranks of the tablet pattern eigenmatrix
Deng, then the tablet pattern eigenmatrix and it is described unlock graphic feature matrix be not similar matrix.
15. device according to claim 9, which is characterized in that the unlocking screen unit is when being unlocked processing, tool
Body is used for:
If the tablet pattern eigenmatrix and the unlock graphic feature matrix are similar matrix, screen is unlocked;
If the tablet pattern eigenmatrix and the unlock graphic feature matrix are not similar matrixes, screen locking is kept.
16. device according to claim 10, which is characterized in that first figure and the second graph be letter,
The pattern of number or arbitrary shape.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410174103.XA CN105022576B (en) | 2014-04-28 | 2014-04-28 | Unlocking screen method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410174103.XA CN105022576B (en) | 2014-04-28 | 2014-04-28 | Unlocking screen method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105022576A CN105022576A (en) | 2015-11-04 |
CN105022576B true CN105022576B (en) | 2018-07-06 |
Family
ID=54412574
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410174103.XA Active CN105022576B (en) | 2014-04-28 | 2014-04-28 | Unlocking screen method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105022576B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674299A (en) * | 2009-10-16 | 2010-03-17 | 西安电子科技大学 | Method for generating key based on amalgamation of multiple features in encryption area |
CN102402365A (en) * | 2010-09-09 | 2012-04-04 | 中兴通讯股份有限公司 | Unlocking method and device for portal equipment |
CN102508614A (en) * | 2011-11-21 | 2012-06-20 | 中兴通讯股份有限公司 | Screen unlocking method and device |
CN103092481A (en) * | 2013-01-17 | 2013-05-08 | 广东欧珀移动通信有限公司 | Method and device for intelligent terminal dynamic gesture unlocking |
-
2014
- 2014-04-28 CN CN201410174103.XA patent/CN105022576B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674299A (en) * | 2009-10-16 | 2010-03-17 | 西安电子科技大学 | Method for generating key based on amalgamation of multiple features in encryption area |
CN102402365A (en) * | 2010-09-09 | 2012-04-04 | 中兴通讯股份有限公司 | Unlocking method and device for portal equipment |
CN102508614A (en) * | 2011-11-21 | 2012-06-20 | 中兴通讯股份有限公司 | Screen unlocking method and device |
CN103092481A (en) * | 2013-01-17 | 2013-05-08 | 广东欧珀移动通信有限公司 | Method and device for intelligent terminal dynamic gesture unlocking |
Non-Patent Citations (1)
Title |
---|
基于心电信号动态时间序列分析的身份信息识别;李薇等;《科研信息化技术与应用》;20140331(第3期);第19-29页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105022576A (en) | 2015-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9959016B2 (en) | Method and digital device for access control with fingerprint authentication | |
KR101357260B1 (en) | Apparatus and Method for Providing Augmented Reality User Interface | |
CN102968602B (en) | A kind of method to set up of keyboard and device | |
CN107589963B (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
US9342678B2 (en) | Method for controlling content and digital device using the same | |
US8813251B2 (en) | Method for controlling content and digital device using the same | |
WO2016197469A1 (en) | Method and apparatus for generating unlocking interface, and electronic device | |
CN102982272B (en) | keyboard layout method and device | |
CN104679416A (en) | Mobile terminal and screen control method thereof | |
WO2019128495A1 (en) | Method and apparatus for detecting image resolution, storage medium, and electronic device | |
CN106503620A (en) | Numerical ciphers input method and its system based on gesture | |
CN104766354B (en) | The method and mobile terminal that a kind of augmented reality is drawn | |
WO2015120795A1 (en) | Touchscreen-based device pairing method and apparatus, and storage medium | |
CN107102805A (en) | A kind of display methods and display device | |
US10585573B2 (en) | Method and system for zooming-in picture on mobile terminal | |
Ritter et al. | Miba: Multitouch image-based authentication on smartphones | |
CN108111747A (en) | A kind of image processing method, terminal device and computer-readable medium | |
CN105654531A (en) | Method and device for drawing image contour | |
CN105022576B (en) | Unlocking screen method and apparatus | |
CN109815954A (en) | Correction for direction method, apparatus, equipment and the storage medium of VAT invoice image | |
CN109376618A (en) | Image processing method, device and electronic equipment | |
CN109766530B (en) | Method and device for generating chart frame, storage medium and electronic equipment | |
CN104765564B (en) | A kind of screenshot method and device | |
CN103870103B (en) | Method for information processing and electronic device | |
CN104918073A (en) | Image display method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |