CN105809049B - The method, device and mobile terminal of encryption and decryption - Google Patents

The method, device and mobile terminal of encryption and decryption Download PDF

Info

Publication number
CN105809049B
CN105809049B CN201410853748.6A CN201410853748A CN105809049B CN 105809049 B CN105809049 B CN 105809049B CN 201410853748 A CN201410853748 A CN 201410853748A CN 105809049 B CN105809049 B CN 105809049B
Authority
CN
China
Prior art keywords
information
characteristic
point
location information
photo
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410853748.6A
Other languages
Chinese (zh)
Other versions
CN105809049A (en
Inventor
姜伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201410853748.6A priority Critical patent/CN105809049B/en
Priority to PCT/CN2015/076495 priority patent/WO2016107010A1/en
Publication of CN105809049A publication Critical patent/CN105809049A/en
Application granted granted Critical
Publication of CN105809049B publication Critical patent/CN105809049B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules

Abstract

The invention discloses a kind of methods of encryption, and multiple photos of same reference object are obtained by the camera on mobile terminal;The same characteristic features point being chosen on each photo of the multiple photo, and obtain first location information and characteristic information of the same characteristic features point on each photo;Based on the first location information of the same characteristic features point on each photo, the second location information in space of the same characteristic features point is obtained;It is encrypted according to the characteristic information of same characteristic features point and the second location information obtained.The invention also discloses a kind of method of decryption, the device of encryption, decryption device and mobile terminal, encryption or decryption to mobile terminal are realized so as to make the user of mobile terminal directly pass through the scenery numerical information that two or more cameras obtain, to experience the new ability of more interesting mobile terminal, the advantage for further opening two or more cameras of mobile terminal, improves the experience of user.

Description

The method, device and mobile terminal of encryption and decryption
Technical field
The present invention relates to mobile terminal camera application field more particularly to a kind of method of encryption, the method for decryption, add The device and mobile terminal of close device, decryption.
Background technique
The dual camera the relevant technologies of the bionics of simulation as to(for) people's eyes, a plane are studied extensively. And dual camera positioning, the popular of dual camera ranging are widely popularized, it will cause this technology rapid in the people A large amount of practical application example is developed, to quickly propel the intelligent evolution of correlation function.
The application of existing dual camera on mobile terminals, due to only resting on camera shooting of taking pictures at present, 3D takes pictures camera shooting And improve take pictures precision research on, for dual camera positioning development and utilization it is also seldom, in user in use, at present also It can only be obtained from coplanar Dual-camera handset and higher take pictures quality and 3D takes pictures camera shooting, the intuitive more matchmakers of 3D Body experience, the functionality advantage of dual camera need further to develop.
Summary of the invention
The embodiment of the present invention provide it is a kind of encryption, decryption method, encryption, decryption device and mobile terminal, mainly Purpose is to solve how using the function of the dual camera of mobile terminal to realize that the technology of encryption and decryption of mobile terminal is asked Topic.
To achieve the above object, the method for a kind of encryption provided in an embodiment of the present invention, which comprises
Multiple photos of same reference object are obtained by the camera on mobile terminal;
The same characteristic features point being chosen on each photo of the multiple photo, and the same characteristic features point is obtained in each photograph The first location information and characteristic information of on piece;
Based on the first location information of the same characteristic features point on each photo, obtain the same characteristic features point in sky Between in second location information;
It is encrypted according to the characteristic information of same characteristic features point and the second location information obtained.
Preferably, the same characteristic features point being chosen on each photo of the multiple photo, and obtain described identical First location information and characteristic information of the characteristic point on each photo include:
Obtain at least two same characteristic features points on each photo of the multiple photo;
And obtain the first location information and characteristic information of at least two same characteristic features points on each photo.
Preferably, the first location information based on the same characteristic features point on each photo obtains described identical The second location information in space of characteristic point includes:
According to same characteristic features described in the first location information, the focus information of the camera and positional information calculation The second location information in space of point;
Wherein, the second location information includes at least space length and/or Space Angle between at least two characteristic points Degree.
Preferably, described according to the first location information, the focus information of the camera and positional information calculation The second location information in space of the same characteristic features point, comprising:
Foundation is X using the direction of photographic plane and Y-direction, other direction is the X-Y-Z 3-D walls and floors of Z-direction;
According to the original of X-coordinate value of each characteristic point on the multiple photo, Y-coordinate value and similar triangles Reason calculates the Z coordinate value of each characteristic point, obtains the coordinate value of the X-Y-Z three-dimensional coordinate of each characteristic point;
It is calculated between at least two characteristic points according to the coordinate value of the X-Y-Z three-dimensional coordinate of each characteristic point Space length and/or space angle.
To achieve the above object, the method for a kind of decryption provided in an embodiment of the present invention, which comprises
Based on pre-stored encryption information, by the camera on mobile terminal capture on reference object with encryption information In the matched characteristic point of characteristic information;
Obtain the third place information of the characteristic point in space;
When the second location information stored in the third place information and encryption information for determining the characteristic point matches, into Row decryption.
Preferably, after the third place information of the acquisition characteristic point in space, further includes:
The difference of the second location information stored in the third place information and encryption information for determining the characteristic point is super Pre-set range is crossed, then returns to execution based on pre-stored encryption information, is captured by the camera on mobile terminal On reference object with the matched characteristic point of characteristic information in encryption information.
To achieve the above object, the embodiment of the present invention provides a kind of device of encryption, and the device of the encryption includes:
First acquisition unit, for obtaining multiple photos of same reference object by the camera on mobile terminal;
Second acquisition unit, the same characteristic features point for being chosen on each photo of the multiple photo, and obtain institute State the first location information and characteristic information on each photo of same characteristic features point;
Third acquiring unit obtains institute for the first location information based on the same characteristic features point on each photo State the second location information in space of same characteristic features point;
Encryption unit, for according to the characteristic information of same characteristic features point and the second location information obtained into Row encryption.
Preferably, the second acquisition unit, is used for:
Obtain at least two same characteristic features points on each photo of the multiple photo;
And obtain the first location information and characteristic information of at least two same characteristic features points on each photo.
Preferably, the third acquiring unit further include:
Computing unit, for according to the focus information of the first location information, the pre-stored camera and The positional information calculation second location information of the camera;
Wherein, the second location information includes at least space length and/or Space Angle between at least two characteristic points Degree.
To achieve the above object, the embodiment of the present invention provides a kind of device of decryption, and described device includes:
Capture unit captures shooting pair by the camera on mobile terminal for being based on pre-stored encryption information As the upper matched characteristic point of characteristic information with encryption information;
Acquiring unit, for obtaining the third place information of the characteristic point in space;
Decryption unit, the second position for being stored in the third place information and encryption information for determining the characteristic point When information matches, it is decrypted.
Preferably, described device further include:
Return unit, the second position for being stored in the third place information and encryption information for determining the characteristic point The difference of information is more than pre-set range, then returns to execution based on pre-stored encryption information, by mobile terminal Camera capture reference object on the matched characteristic point of characteristic information in encryption information.
To achieve the above object, the embodiment of the present invention provides a kind of mobile terminal, including camera and processor, described to take the photograph As head is used to obtain multiple photos of same reference object;The processor is used to obtain each photo in the multiple photo On same characteristic features point, and obtain the first location information and characteristic information on each photo of the same characteristic features point;It is based on The first location information of same characteristic features point on each photo obtains the second in space of the same characteristic features point Confidence breath;It is encrypted according to the characteristic information of same characteristic features point and the second location information obtained.
To achieve the above object, the embodiment of the present invention provides a kind of mobile terminal, including camera and processor, based on pre- The encryption information first stored, the camera are used to capture on reference object and the matched feature of characteristic information in encryption information Point;The processor is for obtaining the third place information of the characteristic point in space;In the third for determining the characteristic point When the second location information stored in location information and encryption information matches, it is decrypted.
The embodiment of the present invention obtains multiple photos of same reference object by the camera on mobile terminal;It is chosen at institute The same characteristic features point on each photo of multiple photos is stated, and obtains first position letter of the same characteristic features point on each photo Breath and characteristic information;Based on the first location information of the same characteristic features point on each photo, the same characteristic features point is obtained Second location information in space;According to the characteristic information of same characteristic features point and the second confidence obtained Breath is encrypted, so as to make the user of mobile terminal directly pass through the scenery numerical information that two or more cameras obtain Realize the encryption or decryption to mobile terminal, it is further open mobile whole to experience the new ability of more interesting mobile terminal The advantage of two or more cameras at end, improves the experience of user.
Detailed description of the invention
Fig. 1 is the flow diagram for the embodiment of the method that the present invention encrypts;
Fig. 2 is a kind of method schematic diagram of the second information for calculating characteristic point provided by the invention;
Fig. 3 is the flow diagram for the embodiment of the method that the present invention decrypts;
Fig. 4 is the functional block diagram for the Installation practice that the present invention encrypts;
Fig. 5 is the functional block diagram for the Installation practice that the present invention decrypts;
Fig. 6 is the functional block diagram of mobile terminal first embodiment of the present invention;
Fig. 7 is the functional block diagram of mobile terminal second embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of method of encryption.
Referring to Fig.1, Fig. 1 is the flow diagram for the embodiment of the method that the present invention encrypts.
In the first embodiment, the method for the encryption includes:
Step 101, multiple photos of same reference object are obtained by the camera on mobile terminal;
Above-mentioned multiple cameras can be two or more, be further illustrated for two below.
Specifically, needing to support two cameras on hardware on mobile terminals, and it is stored with the two cameras The information of detailed focal range and relative position T.
When user is by mobile phone menu, when function is arranged into encryption, mobile phone starts above-mentioned two camera, and crawl is current Scenery captured by mobile phone shows current real-time photography head information on mobile phone.
Step 102, the same characteristic features point being chosen on each photo of the multiple photo, and obtain the same characteristic features First location information and characteristic information of the point on each photo;
Preferably, the same characteristic features point being chosen on each photo of the multiple photo, and obtain described identical First location information and characteristic information of the characteristic point on each photo include:
Obtain at least two same characteristic features points on each photo of the multiple photo;
And obtain the first location information and characteristic information of at least two same characteristic features points on each photo.
Specifically, user selects characteristic point on the touchscreen, select to carry out for 3 characteristic points A, B, C with user below It is described in detail.The first information includes at least location information etc. of each characteristic point on different pictures.
For example, position coordinates of the A on the picture one captured by camera one are (A1, A2, A3);
Position coordinates of the A on the picture two captured by camera two are (A1 ', A2 ', A3 ');
Position coordinates of the B on the picture one captured by camera one are (B1, B2, B3);
Position coordinates of the B on the picture two captured by camera two are (B1 ', B2 ', B3 ');
Position coordinates of the C on the picture one captured by camera one are (C1, C2, C3);
Position coordinates of the C on the picture two captured by camera two are (C1 ', C2 ', C3 ').
Meanwhile the photographic intelligence and pre-stored photographic intelligence also according to multiple photos of the same scenery and The first information corresponding relationship of one characteristic point pushes characteristic point to user;
Preferably, the photographic intelligence and pre-stored photographic intelligence of multiple photos according to the same scenery With the first information corresponding relationship of fisrt feature point, characteristic point is pushed to user, comprising:
If the photographic intelligence is one and the large area color lump color in large area color lump and large area color lump Different points then pushes the different point of the color to user, and/or;
If the photographic intelligence is large area color lump, one of the color lump boundary in the large area color lump is pushed to user A endpoint, and/or;
If the photographic intelligence is the plane with special marking, the central point of the label is pushed to user, and/ Or;
If the photographic intelligence is the crosspoint of two lines section and the two lines section, the intersection is pushed to user Point, and/or;
If the photographic intelligence is small-sized color lump, the central point of the small-sized color lump is pushed to user.
Specifically, therefore when user's selected characteristic point on the screen.To the characteristic point that user recommends, preferential use has Some points of following feature:
An obvious stain on the point of other independent colors in large area color lump, such as white handkerchief;
One endpoint on color lump boundary, such as a Blue Squares, the corresponding lower extreme point of right edge or upper extreme point.
The central point of special marking in one plane, such as the center of certain mobile phone label, calculating when, take this label Central point.
The crosspoint of two lines section, such as two books stack the crosspoint on the boundary to be formed.
The central point of small-sized color lump, such as the central point of computer monitor power supply indicator.
Step 103, the first location information based on the same characteristic features point on each photo, obtains the same characteristic features The second location information in space of point;
Meanwhile the first location information is sent to user;
If receiving the information of the confirmation first location information of user's triggering, according to the first location information, The focus information of pre-stored the multiple camera and the positional information calculation second confidence of the multiple camera Breath.
Specifically, the characteristic point position that user interface is selected according to user, specifies the specific location of specific features point Information simultaneously issues user, it is desirable that user confirms.
After user confirms characteristic point, camera acquires the first information of current signature point and the parameter of camera itself Information, the parameter information include the focus information of the multiple camera and the location information of the multiple camera, are incited somebody to action The first information and parameter information are sent to " central processing unit ".
Preferably, the first location information based on the same characteristic features point on each photo obtains described identical The second location information in space of characteristic point includes:
According to same characteristic features described in the first location information, the focus information of the camera and positional information calculation The second location information in space of point;
Wherein, the second location information includes at least space length and/or Space Angle between at least two characteristic points Degree.
Preferably, described according to the first location information, the focus information of the camera and positional information calculation The second location information in space of the same characteristic features point, comprising:
Foundation is X using the direction of photographic plane and Y-direction, other direction is the X-Y-Z 3-D walls and floors of Z-direction;
According to the original of X-coordinate value of each characteristic point on the multiple photo, Y-coordinate value and similar triangles Reason calculates the Z coordinate value of each characteristic point, obtains the coordinate value of the X-Y-Z three-dimensional coordinate of each characteristic point;
It is calculated between at least two characteristic points according to the coordinate value of the X-Y-Z three-dimensional coordinate of each characteristic point Space length and/or space angle.
Specifically, the first information that the central processing unit of mobile phone is passed over by camera and pre-stored The location information of the focus information of the multiple camera and the multiple camera calculates the opposite position of tri- points of A, B, C It sets, records the distance between AB, AC, while recording the angle information of ∠ BAC.Dual camera ranging is exactly to utilize two The parallax of each independent imaging between the relative distance and characteristic point of camera and the focus information at that time of camera come Determine the relative position relative to two cameras of characteristic point in space.
With reference to Fig. 2, Fig. 2 is a kind of method schematic diagram of the second information for calculating characteristic point provided by the invention.
As two cameras of the following figure are in same level.It takes pictures simultaneously to scenery P.
Obtained on two photos of shooting and, this two o'clock has a plane coordinates relative to optical center, and photo is flat The direction in face is respectively the direction X-Y, and the direction of camera focal length is Z-direction, if Fig. 2 utilizes similar triangle theory, passes through two The relative position of a camera on mobile terminals, it is known that and the relative position of two o'clock, f are the focal length of camera.The vector of sum Direction with and completely it is corresponding.To sum up information can be easy to calculate position of the P point relative to two cameras.
Step 104, added according to the characteristic information of same characteristic features point and the second location information obtained It is close.
Specifically, the central processing unit of mobile phone is by the first information of the characteristic point of acquisition, AB, the distance between AC, ∠ Space length and/or space angle between three characteristic points such as angle of BAC are stored in mobile terminal.
After user completes to encrypt, mobile phone has been locked, it is desirable to use mobile phone, mobile phone will pop up decryption interface, that is, take the photograph The scene information come as head transmitting.User's operation mobile phone is directed at the scene information that the camera transmitting comes.
Since decryption interface pop-up, central processing unit has just read out the of characteristic point from " storage processing unit " is interior Second information such as one information and the angle of information AB, the distance between AC, ∠ BAC of each characteristic point relative position, centre Unit is managed from the information that camera collects, goes to search characteristic point.
After success achieves 3 characteristic points on a frame image, start to calculate the relative position information between characteristic point, Then be compared with the characteristic point position information obtained when existing encryption, if matching error within ± 5%, determine With success.
There are some numerical value that can change, 2 cameras can change as 3 cameras, 3 characteristic points, can change and be 2 or 4 features above points, are also possible to Eigenvector.
The embodiment of the present invention is by obtaining multiple photos of same reference object by the camera on mobile terminal;It chooses Same characteristic features point on each photo of the multiple photo, and obtain first of the same characteristic features point on each photo Confidence breath and characteristic information;Based on the first location information of the same characteristic features point on each photo, the identical spy is obtained Levy the second location information in space of point;According to the characteristic information of same characteristic features point and the second obtained Confidence breath is encrypted, so as to make the user of mobile terminal directly pass through the scenery numerical value that two or more cameras obtain Encryption or decryption of the information realization to mobile terminal, it is further open to move to experience the new ability of more interesting mobile terminal The advantage of two or more cameras of dynamic terminal, improves the experience of user.
The present invention provides a kind of method of decryption.
Referring to Fig. 3, Fig. 3 is the flow diagram for the embodiment of the method that the present invention decrypts.
In the first embodiment, the method for the decryption includes:
Step 301, be based on pre-stored encryption information, by camera on mobile terminal capture on reference object with The matched characteristic point of characteristic information in encryption information;
Specifically, having locked mobile phone after user completes to encrypt, it is desirable to mobile phone is used, mobile phone will pop up decryption interface, It is exactly the scene information that camera transmitting comes.User's operation mobile phone is directed at the scene information that the camera transmitting comes.
Since decryption interface pop-up, central processing unit has just read out the letter of characteristic point out of " storage processing unit " Space between each characteristic points such as the angle of information AB, the distance between AC, ∠ BAC of breath and each characteristic point relative position Distance, space angle, central processing unit go to search characteristic point from the information that camera collects.
Step 302, the third place information of the characteristic point in space is obtained;
Specifically, starting to calculate the opposite position between characteristic point after success achieves 3 characteristic points on a frame image Confidence breath.
Step 303, the second location information stored in the third place information and encryption information for determining the characteristic point When matching, it is decrypted.
Specifically, being compared with the characteristic point position information obtained when existing encryption, if matching error is ± 5% Within, determine successful match.Mobile phone successful decryption, user can enter other menus of mobile phone and use mobile phone application.Wherein, here The difference of the second information of characteristic point be not limited to ± 5% in pre-set range.
Preferably, after the third place information of the acquisition characteristic point in space, further includes:
The difference of the second location information stored in the third place information and encryption information for determining the characteristic point is super Pre-set range is crossed, then returns to execution based on pre-stored encryption information, is captured by the camera on mobile terminal On reference object with the matched characteristic point of characteristic information in encryption information.
The embodiment of the present invention is by obtaining multiple photos of same reference object by the camera on mobile terminal;It chooses Same characteristic features point on each photo of the multiple photo, and obtain first of the same characteristic features point on each photo Confidence breath and characteristic information;Based on the first location information of the same characteristic features point on each photo, the identical spy is obtained Levy the second location information in space of point;According to the characteristic information of same characteristic features point and the second obtained Confidence breath is encrypted, so as to make the user of mobile terminal directly pass through the scenery numerical value that two or more cameras obtain Encryption or decryption of the information realization to mobile terminal, it is further open to move to experience the new ability of more interesting mobile terminal The advantage of two or more cameras of dynamic terminal, improves the experience of user.
The present invention provides a kind of device of encryption.
Referring to Fig. 4, Fig. 4 is the functional block diagram for the Installation practice that the present invention encrypts.
In the first embodiment, the device of the encryption includes:
First acquisition unit 401, for obtaining multiple photos of same reference object by the camera on mobile terminal;
Above-mentioned multiple cameras can be two or more, be further illustrated for two below.
Specifically, needing to support two cameras on hardware on mobile terminals, and it is stored with the two cameras The information of detailed focal range and relative position T.
When user is by mobile phone menu, when function is arranged into encryption, mobile phone starts above-mentioned two camera, and crawl is current Scenery captured by mobile phone shows current real-time photography head information on mobile phone.
Second acquisition unit 402, the same characteristic features point for being chosen on each photo of the multiple photo, and obtain The first location information and characteristic information on each photo of the same characteristic features point;
Preferably, the second acquisition unit 402, is used for:
Obtain at least two same characteristic features points on each photo of the multiple photo;
And obtain the first location information and characteristic information of at least two same characteristic features points on each photo.
Specifically, user selects characteristic point on the touchscreen, select to carry out for 3 characteristic points A, B, C with user below It is described in detail.The first information includes at least location information etc. of each characteristic point on different pictures.
For example, position coordinates of the A on the picture one captured by camera one are (A1, A2, A3);
Position coordinates of the A on the picture two captured by camera two are (A1 ', A2 ', A3 ');
Position coordinates of the B on the picture one captured by camera one are (B1, B2, B3);
Position coordinates of the B on the picture two captured by camera two are (B1 ', B2 ', B3 ');
Position coordinates of the C on the picture one captured by camera one are (C1, C2, C3);
Position coordinates of the C on the picture two captured by camera two are (C1 ', C2 ', C3 ').
Meanwhile the photographic intelligence and pre-stored photographic intelligence also according to multiple photos of the same scenery and The first information corresponding relationship of one characteristic point pushes characteristic point to user;
Preferably, the photographic intelligence and pre-stored photographic intelligence of multiple photos according to the same scenery With the first information corresponding relationship of fisrt feature point, characteristic point is pushed to user, comprising:
If the photographic intelligence is one and the large area color lump color in large area color lump and large area color lump Different points then pushes the different point of the color to user, and/or;
If the photographic intelligence is large area color lump, one of the color lump boundary in the large area color lump is pushed to user A endpoint, and/or;
If the photographic intelligence is the plane with special marking, the central point of the label is pushed to user, and/ Or;
If the photographic intelligence is the crosspoint of two lines section and the two lines section, the intersection is pushed to user Point, and/or;
If the photographic intelligence is small-sized color lump, the central point of the small-sized color lump is pushed to user.
Specifically, therefore when user's selected characteristic point on the screen.To the characteristic point that user recommends, preferential use has Some points of following feature:
An obvious stain on the point of other independent colors in large area color lump, such as white handkerchief;
One endpoint on color lump boundary, such as a Blue Squares, the corresponding lower extreme point of right edge or upper extreme point.
The central point of special marking in one plane, such as the center of certain mobile phone label, calculating when, take this label Central point.
The crosspoint of two lines section, such as two books stack the crosspoint on the boundary to be formed.
The central point of small-sized color lump, such as the central point of computer monitor power supply indicator.
Third acquiring unit 403 is obtained for the first location information based on the same characteristic features point on each photo The second location information in space of the same characteristic features point;
Specifically, the characteristic point position that user interface is selected according to user, specifies the specific location of specific features point Information simultaneously issues user, it is desirable that user confirms.
After user confirms characteristic point, camera acquires the first information of current signature point and the parameter of camera itself Information, the parameter information include the focus information of the multiple camera and the location information of the multiple camera, are incited somebody to action The first information and parameter information are sent to " central processing unit ".
Preferably, the third acquiring unit 403 further include:
Computing unit, for according to the focus information of the first location information, the pre-stored camera and The positional information calculation second location information of the camera;
Wherein, the second location information includes at least space length and/or Space Angle between at least two characteristic points Degree.
Preferably, described according to the first location information, the focus information of the camera and positional information calculation The second location information in space of the same characteristic features point, comprising:
Foundation is X using the direction of photographic plane and Y-direction, other direction is the X-Y-Z 3-D walls and floors of Z-direction;
According to the original of X-coordinate value of each characteristic point on the multiple photo, Y-coordinate value and similar triangles Reason calculates the Z coordinate value of each characteristic point, obtains the coordinate value of the X-Y-Z three-dimensional coordinate of each characteristic point;
It is calculated between at least two characteristic points according to the coordinate value of the X-Y-Z three-dimensional coordinate of each characteristic point Space length and/or space angle.
Specifically, the first information that the central processing unit of mobile phone is passed over by camera and pre-stored The location information of the focus information of the multiple camera and the multiple camera calculates the opposite position of tri- points of A, B, C It sets, records the distance between AB, AC, while recording the angle information of ∠ BAC.Dual camera ranging is exactly to utilize two The parallax of each independent imaging between the relative distance and characteristic point of camera and the focus information at that time of camera come Determine the relative position relative to two cameras of characteristic point in space.
With reference to Fig. 2, Fig. 2 is a kind of method schematic diagram of the second information for calculating characteristic point provided by the invention.
As two cameras of the following figure are in same level.It takes pictures simultaneously to scenery P.
Obtained on two photos of shooting and, this two o'clock has a plane coordinates relative to optical center, and photo is flat The direction in face is respectively the direction X-Y, and the direction of camera focal length is Z-direction, if Fig. 2 utilizes similar triangle theory, passes through two The relative position of a camera on mobile terminals, it is known that and the relative position of two o'clock, f are the focal length of camera.The vector of sum Direction with and completely it is corresponding.To sum up information can be easy to calculate position of the P point relative to two cameras.
Encryption unit 404, for according to the characteristic information of same characteristic features point and the second location information of acquisition It is encrypted.
Specifically, the central processing unit of mobile phone is by the first information of the characteristic point of acquisition, AB, the distance between AC, ∠ Space length and/or space angle between three characteristic points such as angle of BAC are stored in mobile terminal.
After user completes to encrypt, mobile phone has been locked, it is desirable to use mobile phone, mobile phone will pop up decryption interface, that is, take the photograph The scene information come as head transmitting.User's operation mobile phone is directed at the scene information that the camera transmitting comes.
Since decryption interface pop-up, central processing unit has just read out the of characteristic point from " storage processing unit " is interior Second information such as one information and the angle of information AB, the distance between AC, ∠ BAC of each characteristic point relative position, centre Unit is managed from the information that camera collects, goes to search characteristic point.
After success achieves 3 characteristic points on a frame image, start to calculate the relative position information between characteristic point, Then be compared with the characteristic point position information obtained when existing encryption, if matching error within ± 5%, determine With success.
There are some numerical value that can change, 2 cameras can change as 3 cameras, 3 characteristic points, can change and be 2 or 4 features above points, are also possible to Eigenvector.
The embodiment of the present invention is by obtaining multiple photos of same reference object by the camera on mobile terminal;It chooses Same characteristic features point on each photo of the multiple photo, and obtain first of the same characteristic features point on each photo Confidence breath and characteristic information;Based on the first location information of the same characteristic features point on each photo, the identical spy is obtained Levy the second location information in space of point;According to the characteristic information of same characteristic features point and the second obtained Confidence breath is encrypted, so as to make the user of mobile terminal directly pass through the scenery numerical value that two or more cameras obtain Encryption or decryption of the information realization to mobile terminal, it is further open to move to experience the new ability of more interesting mobile terminal The advantage of two or more cameras of dynamic terminal, improves the experience of user.
The present invention provides a kind of device of decryption.
Referring to Fig. 5, Fig. 5 is the functional block diagram for the Installation practice that the present invention decrypts.
In the first embodiment, the device of the decryption includes:
Capture unit 501 captures shooting by the camera on mobile terminal for being based on pre-stored encryption information On object with the matched characteristic point of characteristic information in encryption information;
Specifically, having locked mobile phone after user completes to encrypt, it is desirable to mobile phone is used, mobile phone will pop up decryption interface, It is exactly the scene information that camera transmitting comes.User's operation mobile phone is directed at the scene information that the camera transmitting comes.
Since decryption interface pop-up, central processing unit has just read out the letter of characteristic point out of " storage processing unit " Space between each characteristic points such as the angle of information AB, the distance between AC, ∠ BAC of breath and each characteristic point relative position Distance, space angle, central processing unit go to search characteristic point from the information that camera collects.
Specifically, after 10s clock, exiting search if can not succeed finds 3 characteristic points on the same image, prompt to use Family, " not finding decryption target ", decryption failure.
If having found the point much with storage Feature Points Matching, it can not determine which is the characteristic point for needing to lock, 10s When clock still can not confirm later, search is exited, prompts user, " not finding decryption target ", decryption failure.
Acquiring unit 502, for obtaining the third place information of the characteristic point in space;
Specifically, starting to calculate the opposite position between characteristic point after success achieves 3 characteristic points on a frame image Confidence breath.
Decryption unit 503, second for being stored in the third place information and encryption information for determining the characteristic point When location information matches, it is decrypted.
Specifically, being compared with the characteristic point position information obtained when existing encryption, if matching error is ± 5% Within, determine successful match.Mobile phone successful decryption, user can enter other menus of mobile phone and use mobile phone application.Wherein, here The difference of the second information of characteristic point be not limited to ± 5% in pre-set range.
Preferably, described device further include:
Return unit, the second position for being stored in the third place information and encryption information for determining the characteristic point The difference of information is more than pre-set range, then returns to execution based on pre-stored encryption information, by mobile terminal Camera capture reference object on the matched characteristic point of characteristic information in encryption information.
It is larger other than ± 5% with the characteristic value gap of storage by calculating if being successfully found 3 characteristic points, just again It is primary to attempt search positioning.
Specifically, continuing to attempt if still gap is larger, judge to return to whether search is more than pre-set time Number, if so, prompting user " not finding decryption target ", decryption failure until 10s clock time-out.
In the prior art, current key gate inhibition, fingerprint recognition gate inhibition are different, and decryption is time-consuming more, very difficult.
It is further described for applying dual camera encrypting and decrypting in camera access control system below.
Encrypting stage:
1, access control system utilizes the dual camera of itself, opens the password setting stage;
2, user takes out a disk chess, puts what a chess game 1;
3, user determines chessboard corner location in operation interface, determines feature chess piece, can be all chesses in picture Son, in this case, software can show all chess pieces automatically, confirm for user;
4, dual camera acquires data, is calculated by center processor, the position relative to chessboard of feature chess piece.At center Device is managed to arrive the calculated information storage of this picture in " storage processing unit ";
5, user after making certain displacement, forms some or certain several chess pieces in current chess game new Chess game 2;
6, user determines feature chess piece in new picture in user interface;
7, dual camera acquires data, is calculated by center processor, the position relative to chessboard of second of feature chess piece. The calculated information of this picture is also stored into " storage processing unit " by center processor;
8, encryption information is so far formd;
Decryption phase:
9, the decrypting process of user's active opening gate;
10, user gets out the chessboard, and shows preset chess game 1;
11, camera continues to monitor and broadcasts data to central processing unit, once discovery chess game matching, that is, issue prompt, Prompt user's chess game 1 has passed through verification;
12, user moves chess piece on chessboard, shows chess game 2;
13, camera continues for monitoring and broadcasting data to central processing unit, once discovery chess game 2 matches, that is, decrypts Success.
The embodiment of the present invention is by obtaining multiple photos of same reference object by the camera on mobile terminal;It chooses Same characteristic features point on each photo of the multiple photo, and obtain first of the same characteristic features point on each photo Confidence breath and characteristic information;Based on the first location information of the same characteristic features point on each photo, the identical spy is obtained Levy the second location information in space of point;According to the characteristic information of same characteristic features point and the second obtained Confidence breath is encrypted, so as to make the user of mobile terminal directly pass through the scenery numerical value that two or more cameras obtain Encryption or decryption of the information realization to mobile terminal, it is further open to move to experience the new ability of more interesting mobile terminal The advantage of two or more cameras of dynamic terminal, improves the experience of user.
The present invention provides a kind of mobile terminal.
It is the functional block diagram of mobile terminal first embodiment of the present invention referring to Fig. 6, Fig. 6.
The mobile terminal includes camera 601 and processor 602, and the camera is for obtaining same reference object Multiple photos;The processor is used to obtain the same characteristic features point on each photo of the multiple photo, and described in acquisition The first location information and characteristic information on each photo of same characteristic features point;Institute based on the same characteristic features point on each photo First location information is stated, the second location information in space of the same characteristic features point is obtained;According to the institute of same characteristic features point The second location information stating characteristic information and obtaining is encrypted.
It is the functional block diagram of mobile terminal second embodiment of the present invention referring to Fig. 7, Fig. 7.
The mobile terminal includes camera 701 and processor 702, is based on pre-stored encryption information, the camera shooting Head is used to capture on reference object and the matched characteristic point of characteristic information in encryption information;The processor is described for obtaining The third place information of characteristic point in space;It is stored in the third place information and encryption information for determining the characteristic point When second location information matches, it is decrypted.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, the program can be stored in a computer readable storage medium, The program when being executed, includes the following steps:
Multiple photos of same reference object are obtained by the camera on mobile terminal;
The same characteristic features point being chosen on each photo of the multiple photo, and the same characteristic features point is obtained in each photograph The first location information and characteristic information of on piece;
Based on the first location information of the same characteristic features point on each photo, obtain the same characteristic features point in sky Between in second location information;
It is encrypted according to the characteristic information of same characteristic features point and the second location information obtained, it is described Storage medium, such as: ROM/RAM, magnetic disk, CD.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, the program can be stored in a computer readable storage medium, The program when being executed, includes the following steps:
Based on pre-stored encryption information, by the camera on mobile terminal capture on reference object with encryption information In the matched characteristic point of characteristic information;
Obtain the third place information of the characteristic point in space;
When the second location information stored in the third place information and encryption information for determining the characteristic point matches, into Row decryption, the storage medium, such as: ROM/RAM, magnetic disk, CD.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (13)

1. a kind of method of encryption, which is characterized in that the described method includes:
Multiple photos of same reference object are obtained by the camera on mobile terminal;
The same characteristic features point being chosen on each photo of the multiple photo, and the same characteristic features point is obtained on each photo First location information and characteristic information;
Based on the first location information of the same characteristic features point on each photo, the same characteristic features point is obtained in space Second location information;
It is encrypted according to the characteristic information of same characteristic features point and the second location information obtained;
Wherein, the second location information includes at least the space length and/or space angle between at least two characteristic points.
2. the method according to claim 1, wherein described be chosen on each photo of the multiple photo Same characteristic features point, and obtain first location information and characteristic information of the same characteristic features point on each photo and include:
Obtain at least two same characteristic features points on each photo of the multiple photo;
And obtain the first location information and characteristic information of at least two same characteristic features points on each photo.
3. according to the method described in claim 2, it is characterized in that, described in the same characteristic features point based on each photo First location information, the second location information in space for obtaining the same characteristic features point include:
According to same characteristic features point described in the first location information, the focus information of the camera and positional information calculation Second location information in space.
4. according to the method described in claim 3, it is characterized in that, described according to the first location information, the camera Focus information and positional information calculation described in same characteristic features point second location information in space, comprising:
Foundation is X using the direction of photographic plane and Y-direction, other direction is the X-Y-Z 3-D walls and floors of Z-direction;
According to the principle of X-coordinate value of each characteristic point on the multiple photo, Y-coordinate value and similar triangles, meter The Z coordinate value for calculating each characteristic point obtains the coordinate value of the X-Y-Z three-dimensional coordinate of each characteristic point;
The sky between at least two characteristic points is calculated according to the coordinate value of the X-Y-Z three-dimensional coordinate of each characteristic point Between distance and/or space angle.
5. a kind of method of decryption, which is characterized in that the described method includes:
Based on pre-stored encryption information, captured on reference object and in encryption information by the camera on mobile terminal The matched characteristic point of characteristic information;
Obtain the third place information of the characteristic point in space;
When the second location information stored in the third place information and encryption information for determining the characteristic point matches, solved It is close;
Wherein, the third place information and the second location information are the opposite position on a frame image between same characteristic features point Confidence breath.
6. according to the method described in claim 5, it is characterized in that, described obtain the third position of the characteristic point in space After confidence breath, further includes:
The difference of the second location information stored in the third place information and encryption information for determining the characteristic point is more than pre- The range being first arranged then returns to execution based on pre-stored encryption information, captures shooting by the camera on mobile terminal On object with the matched characteristic point of characteristic information in encryption information.
7. a kind of device of encryption, which is characterized in that the device of the encryption includes:
First acquisition unit, for obtaining multiple photos of same reference object by the camera on mobile terminal;
Second acquisition unit, the same characteristic features point for being chosen on each photo of the multiple photo, and obtain the phase With the first location information and characteristic information on each photo of characteristic point;
Third acquiring unit obtains the phase for the first location information based on the same characteristic features point on each photo With the second location information in space of characteristic point;
Encryption unit, for being added according to the characteristic information of same characteristic features point and the second location information of acquisition It is close;
Wherein, the second location information includes at least the space length and/or space angle between at least two characteristic points.
8. the device of encryption according to claim 7, which is characterized in that the second acquisition unit is used for:
Obtain at least two same characteristic features points on each photo of the multiple photo;
And obtain the first location information and characteristic information of at least two same characteristic features points on each photo.
9. the device of encryption according to claim 8, which is characterized in that the third acquiring unit further include:
Computing unit, for according to the focus information of the first location information, the pre-stored camera and described The positional information calculation second location information of camera.
10. a kind of device of decryption, which is characterized in that described device includes:
Capture unit is captured on reference object for being based on pre-stored encryption information by the camera on mobile terminal With the matched characteristic point of characteristic information in encryption information;
Acquiring unit, for obtaining the third place information of the characteristic point in space;
Decryption unit, the second location information for being stored in the third place information and encryption information for determining the characteristic point When matching, it is decrypted;
Wherein, the third place information and the second location information are the opposite position on a frame image between same characteristic features point Confidence breath.
11. device according to claim 10, which is characterized in that described device further include:
Return unit, the second location information for being stored in the third place information and encryption information for determining the characteristic point Difference be more than pre-set range, then return to execution based on pre-stored encryption information, pass through taking the photograph on mobile terminal As head capture reference object on the matched characteristic point of characteristic information in encryption information.
12. a kind of mobile terminal, which is characterized in that including camera and processor, the camera is for obtaining same shooting Multiple photos of object;The processor is obtained for obtaining the same characteristic features point on each photo of the multiple photo Take the first location information and characteristic information on each photo of the same characteristic features point;Based on the same characteristic features on each photo The first location information of point, obtains the second location information in space of the same characteristic features point;According to same characteristic features The characteristic information of point and the second location information obtained are encrypted;
Wherein, the second location information includes at least the space length and/or space angle between at least two characteristic points.
13. a kind of mobile terminal, which is characterized in that including camera and processor, it is based on pre-stored encryption information, it is described Camera is used to capture on reference object and the matched characteristic point of characteristic information in encryption information;The processor is for obtaining The third place information of the characteristic point in space;It is deposited in the third place information and encryption information for determining the characteristic point When the second location information matching of storage, it is decrypted;
Wherein, the third place information and the second location information are the opposite position on a frame image between same characteristic features point Confidence breath.
CN201410853748.6A 2014-12-30 2014-12-30 The method, device and mobile terminal of encryption and decryption Expired - Fee Related CN105809049B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410853748.6A CN105809049B (en) 2014-12-30 2014-12-30 The method, device and mobile terminal of encryption and decryption
PCT/CN2015/076495 WO2016107010A1 (en) 2014-12-30 2015-04-13 Encryption/decryption method and apparatus, mobile terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410853748.6A CN105809049B (en) 2014-12-30 2014-12-30 The method, device and mobile terminal of encryption and decryption

Publications (2)

Publication Number Publication Date
CN105809049A CN105809049A (en) 2016-07-27
CN105809049B true CN105809049B (en) 2019-11-05

Family

ID=56284067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410853748.6A Expired - Fee Related CN105809049B (en) 2014-12-30 2014-12-30 The method, device and mobile terminal of encryption and decryption

Country Status (2)

Country Link
CN (1) CN105809049B (en)
WO (1) WO2016107010A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1703440A2 (en) * 2005-03-15 2006-09-20 Omron Corporation Face authentication apparatus, contrl method and program, electronic device having the same, and program recording medium
CN101154264A (en) * 2006-09-27 2008-04-02 中国科学院自动化研究所 Large field-depth iris image capturing system and method based on multiple cameras with fixed focus
CN101379528A (en) * 2006-03-01 2009-03-04 日本电气株式会社 Face authentication device, face authentication method, and program
CN102062596A (en) * 2010-11-12 2011-05-18 中兴通讯股份有限公司 Method and device for measuring distance by utilizing double cameras
JP2011243080A (en) * 2010-05-20 2011-12-01 Nec Engineering Ltd User authentication system
JP2012008802A (en) * 2010-06-24 2012-01-12 Toshiba Corp Monitoring system and person specification method
CN103019561A (en) * 2012-11-28 2013-04-03 广东欧珀移动通信有限公司 Unlocking method and device based on double cameras
US9697415B2 (en) * 2013-04-26 2017-07-04 Fujitsu Limited Recording medium, image processing method, and information terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200910138A (en) * 2007-08-24 2009-03-01 Inventec Corp Data management method and data management system using the same
CN103269481A (en) * 2013-05-13 2013-08-28 广东欧珀移动通信有限公司 Method and system for encrypting and protecting procedure or file of portable electronic equipment
CN103324879B (en) * 2013-07-05 2016-08-10 公安部第三研究所 Mobile device is based on recognition of face and the authentication system of smart card and method
CN104091158B (en) * 2014-07-10 2018-07-06 上海方付通商务服务有限公司 A kind of Verification System of attack protection palmprint authentication method and its application

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1703440A2 (en) * 2005-03-15 2006-09-20 Omron Corporation Face authentication apparatus, contrl method and program, electronic device having the same, and program recording medium
CN101379528A (en) * 2006-03-01 2009-03-04 日本电气株式会社 Face authentication device, face authentication method, and program
CN101154264A (en) * 2006-09-27 2008-04-02 中国科学院自动化研究所 Large field-depth iris image capturing system and method based on multiple cameras with fixed focus
JP2011243080A (en) * 2010-05-20 2011-12-01 Nec Engineering Ltd User authentication system
JP2012008802A (en) * 2010-06-24 2012-01-12 Toshiba Corp Monitoring system and person specification method
CN102062596A (en) * 2010-11-12 2011-05-18 中兴通讯股份有限公司 Method and device for measuring distance by utilizing double cameras
CN103019561A (en) * 2012-11-28 2013-04-03 广东欧珀移动通信有限公司 Unlocking method and device based on double cameras
US9697415B2 (en) * 2013-04-26 2017-07-04 Fujitsu Limited Recording medium, image processing method, and information terminal

Also Published As

Publication number Publication date
WO2016107010A1 (en) 2016-07-07
CN105809049A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
RU2715797C1 (en) Method and apparatus for synthesis of virtual reality objects
CN104243818B (en) Image processing method, device and equipment
CN104243819B (en) Photo acquisition methods and device
US9584735B2 (en) Front and back facing cameras
CN105247859B (en) The active stereo of one or more satellite equipments images
US11517099B2 (en) Method for processing images, electronic device, and storage medium
CN107343081A (en) Mobile terminal and its control method
CN105550637B (en) Profile independent positioning method and device
CN105338238B (en) A kind of photographic method and electronic equipment
CN110087123A (en) Video file production method, device, equipment and readable storage medium storing program for executing
CN109446981A (en) A kind of face's In vivo detection, identity identifying method and device
CN111726536A (en) Video generation method and device, storage medium and computer equipment
CN106507178B (en) Video broadcasting method and device
WO2019237745A1 (en) Facial image processing method and apparatus, electronic device and computer readable storage medium
CN104484858B (en) Character image processing method and processing device
CN105049727B (en) The method, apparatus and system of panoramic picture shooting
CN105631804B (en) Image processing method and device
CN109672830A (en) Image processing method, device, electronic equipment and storage medium
CN109726614A (en) 3D stereoscopic imaging method and device, readable storage medium storing program for executing, electronic equipment
US20150138309A1 (en) Photographing device and stitching method of captured image
CN106572295A (en) Image processing method and device
KR20220033402A (en) Photography method, photography apparatus, electronic device, and storage medium
CN106060383B (en) A kind of method and system that image obtains
CN105100622B (en) Zoom implementation method and device, electronic equipment
US20160344946A1 (en) Screen System

Legal Events

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

Granted publication date: 20191105

Termination date: 20201230

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