WO2016107010A1 - Encryption/decryption method and apparatus, mobile terminal and computer storage medium - Google Patents

Encryption/decryption method and apparatus, mobile terminal and computer storage medium Download PDF

Info

Publication number
WO2016107010A1
WO2016107010A1 PCT/CN2015/076495 CN2015076495W WO2016107010A1 WO 2016107010 A1 WO2016107010 A1 WO 2016107010A1 CN 2015076495 W CN2015076495 W CN 2015076495W WO 2016107010 A1 WO2016107010 A1 WO 2016107010A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
location information
feature point
feature
camera
Prior art date
Application number
PCT/CN2015/076495
Other languages
French (fr)
Chinese (zh)
Inventor
姜伟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016107010A1 publication Critical patent/WO2016107010A1/en

Links

Images

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

Definitions

  • the method further includes:
  • a third acquiring unit configured to acquire second location information in the space of the same feature point based on the first location information of the same feature point on each photo;
  • FIG. 5 is a schematic diagram of functional modules of an apparatus for decrypting according to the present invention.
  • Step 101 Acquire a plurality of photos of the same photographic subject by using a camera on the mobile terminal;
  • two cameras are required to be supported on the mobile terminal, and the detailed focal length range and the relative position T information of the two cameras are stored.
  • the user selects feature points on the touch screen.
  • the following describes the three feature points A, B, and C as examples.
  • the first information includes at least position information of each feature point on a different picture, and the like.
  • the center point of a small color block such as the center point of the computer monitor's power indicator.
  • the first location information is sent to the user.
  • the position coordinates of A on the picture one taken by the camera are (A1, A2, A3);
  • the first information transmitted by the central processing unit of the mobile phone through the camera, and the focal length information of the plurality of cameras stored in advance and the position information of the plurality of cameras are counted Calculate the relative positions of the three points A, B, and C, record the distance between AB and AC, and record the angle information of the BAC.
  • Dual camera ranging is to determine the relative position of the feature points in space relative to the two cameras by using the relative distance between the two cameras and the parallax of each independent imaging between the feature points and the focal length information of the camera.
  • the central processing unit reads the first information of the feature points from the "storage processing unit", and the information about the relative position of each feature point AB, the distance between AC, the angle of ⁇ BAC, etc. Second, the central processing unit searches for feature points from the information collected by the camera.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed is an encryption method, comprising: acquiring a plurality of pictures of the same photographed object by means of a camera on a mobile terminal; selecting an identical feature point on each picture of the plurality of pictures, and acquiring first position information and feature information about the identical feature point on each picture; based on the first position information about the identical feature point on each picture, acquiring second position information about the identical feature point in a space; and according to the feature information and the acquired second position information about the identical feature point, performing encryption. Also disclosed are a decryption method, an encryption apparatus, a decryption apparatus, a mobile terminal and a computer storage medium related to encryption and decryption.

Description

加解密的方法、装置、移动终端及计算机存储介质Method and device for encrypting and decrypting, mobile terminal and computer storage medium 技术领域Technical field
本发明涉及移动终端摄像头应用领域,尤其涉及一种加密的方法、解密的方法、加密的装置、解密的装置、移动终端、及与加解密相关的计算机存储介质。The present invention relates to the field of mobile terminal camera applications, and in particular, to an encryption method, a decryption method, an encrypted device, a decrypted device, a mobile terminal, and a computer storage medium related to encryption and decryption.
背景技术Background technique
作为仿生学(Bionics)对于人双眼的模拟,一个平面的双摄像头相关技术已经广泛被研究。而双摄像头定位、双摄像头测距的平民化广泛推广,将会导致这项技术在人民群众中迅速开发出大量的实际应用案例,从而快速推进相关功能的智能化演进。As a simulation of human eyes by Bionics, a planar dual camera related technique has been extensively studied. The widespread promotion of dual-camera positioning and dual-camera ranging will lead to the rapid development of a large number of practical applications among the people, thus rapidly advancing the intelligent evolution of related functions.
现有的双摄像头在移动终端上的应用,由于目前只停留在拍照摄像、3D拍照摄像以及提高拍照精度的研究上,针对双摄像头定位的开发利用还很少,在用户使用中,目前还只是能从同平面的双摄像头手机上获得较高的拍照质量,以及3D拍照摄像,直观的3D多媒体体验,双摄像头的功能优势还有待进一步开发。The application of the existing dual camera on the mobile terminal, due to the current research on only the camera, 3D camera and the improvement of the camera precision, the development and utilization of the dual camera positioning is still very small, in the user's use, currently only Can get higher camera quality from the same plane dual camera phone, as well as 3D camera, intuitive 3D multimedia experience, the dual camera features have yet to be further developed.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种加密、解密的方法、加密、解密的装置、移动终端以及与加解密相关的计算机存储介质,能解决如何利用移动终端的双摄像头的功能实现移动终端的加密及解密的技术问题。In view of this, the embodiment of the present invention is to provide a method for encrypting and decrypting, a device for encrypting and decrypting, a mobile terminal, and a computer storage medium related to encryption and decryption, which can solve the problem of how to implement the mobile terminal by using the function of the dual camera of the mobile terminal. Technical issues of encryption and decryption.
为实现上述目的,本发明实施例提供的一种加密的方法,所述方法包括:To achieve the above objective, an encryption method is provided by an embodiment of the present invention, where the method includes:
通过移动终端上的摄像头获取同一拍摄对象的多个照片; Acquiring multiple photos of the same subject through a camera on the mobile terminal;
选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息;Selecting the same feature points on each photo of the plurality of photos, and acquiring first location information and feature information of the same feature points on each photo;
基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;Acquiring second location information in the space of the same feature point based on the first location information of the same feature point on each photo;
根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密。Encryption is performed based on the feature information of the same feature point and the acquired second location information.
优选地,所述选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息包括:Preferably, the selecting the same feature point on each photo of the plurality of photos, and acquiring the first location information and the feature information of the same feature point on each photo comprises:
获取在所述多个照片的每一照片上的至少二个相同特征点;Obtaining at least two identical feature points on each of the plurality of photos;
并获取所述至少二个相同特征点在各照片上的第一位置信息及特征信息。And acquiring first location information and feature information of the at least two identical feature points on each photo.
优选地,所述基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息包括:Preferably, the acquiring the second location information in the space of the same feature point based on the first location information of the same feature point on each photo includes:
根据所述第一位置信息、所述摄像头的焦距信息以及位置信息计算所述相同特征点的在空间中的第二位置信息;Calculating second location information in the space of the same feature point according to the first location information, the focal length information of the camera, and the location information;
其中,所述第二位置信息至少包括至少二个特征点之间的空间距离和/或空间角度。The second location information includes at least a spatial distance and/or a spatial angle between at least two feature points.
优选地,所述根据所述第一位置信息、所述摄像头的焦距信息以及位置信息计算所述相同特征点的在空间中的第二位置信息,包括:Preferably, the calculating the second location information in the space of the same feature point according to the first location information, the focal length information of the camera, and the location information, including:
建立以照片平面的方向为X和Y方向、另一方向为Z方向的X-Y-Z三维坐标轴;Establishing an X-Y-Z three-dimensional coordinate axis in which the direction of the photo plane is the X and Y directions, and the other direction is the Z direction;
根据每一个特征点在所述多个照片上的X坐标值、Y坐标值以及相似三角形的原理,计算所述每一个特征点的Z坐标值,得到所述每一个特征点的X-Y-Z三维坐标的坐标值;Calculating a Z coordinate value of each of the feature points according to an X coordinate value, a Y coordinate value, and a similar triangle principle of each of the plurality of photos to obtain an XYZ three-dimensional coordinate of each of the feature points Coordinate value
根据所述每一个特征点的X-Y-Z三维坐标的坐标值计算所述至少二个 特征点之间的空间距离和/或空间角度。Calculating the at least two according to the coordinate values of the X-Y-Z three-dimensional coordinates of each of the feature points The spatial distance and/or spatial angle between feature points.
为实现上述目的,本发明实施例提供的一种解密的方法,所述方法包括:To achieve the above object, a method for decrypting provided by an embodiment of the present invention includes:
基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点;Capturing feature points on the photographic object that match the feature information in the encrypted information by the camera on the mobile terminal based on the pre-stored encrypted information;
获取所述特征点在空间中的第三位置信息;Obtaining third location information of the feature point in the space;
在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息匹配时,进行解密。Decryption is performed when it is determined that the third location information of the feature point matches the second location information stored in the encrypted information.
优选地,所述获取所述特征点在空间中的第三位置信息之后,还包括:Preferably, after the acquiring the third location information of the feature point in the space, the method further includes:
在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息的差值超过预先设置的范围,则返回执行基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点。After determining that the difference between the third location information of the feature point and the second location information stored in the encryption information exceeds a preset range, returning to performing execution based on the pre-stored encryption information, capturing the image by the camera on the mobile terminal A feature point that matches the feature information in the encrypted information.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的加密的方法、和/或解密的方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for performing the encryption method and/or the decryption method described above.
为实现上述目的,本发明实施例提供一种加密的装置,所述加密的装置包括:To achieve the above objective, an embodiment of the present invention provides an apparatus for encrypting, where the apparatus for encrypting includes:
第一获取单元,配置为通过移动终端上的摄像头获取同一拍摄对象的多个照片;a first acquiring unit configured to acquire a plurality of photos of the same photographic subject by using a camera on the mobile terminal;
第二获取单元,配置为选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点的在各照片上的第一位置信息及特征信息;a second acquiring unit, configured to select the same feature point on each photo of the plurality of photos, and obtain first location information and feature information of each of the same feature points on each photo;
第三获取单元,配置为基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;a third acquiring unit, configured to acquire second location information in the space of the same feature point based on the first location information of the same feature point on each photo;
加密单元,配置为根据相同特征点的所述特征信息、及获取的所述第 二位置信息进行加密。An encryption unit configured to perform the feature information according to the same feature point and the acquired The two location information is encrypted.
优选地,所述第二获取单元,配置为:Preferably, the second obtaining unit is configured to:
获取在所述多个照片的每一照片上的至少二个相同特征点;Obtaining at least two identical feature points on each of the plurality of photos;
并获取所述至少二个相同特征点在各照片上的第一位置信息及特征信息。And acquiring first location information and feature information of the at least two identical feature points on each photo.
优选地,所述第三获取单元还包括:Preferably, the third obtaining unit further includes:
计算单元,配置为根据所述第一位置信息、预先存储的所述摄像头的焦距信息以及所述摄像头的位置信息计算第二位置信息;a calculating unit, configured to calculate second location information according to the first location information, the focal length information of the camera stored in advance, and the location information of the camera;
其中,所述第二位置信息至少包括至少二个特征点之间的空间距离和/或空间角度。The second location information includes at least a spatial distance and/or a spatial angle between at least two feature points.
为实现上述目的,本发明实施例提供一种解密的装置,所述装置包括:To achieve the above objective, an embodiment of the present invention provides a device for decrypting, where the device includes:
捕捉单元,配置为基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点;a capture unit configured to capture, by the camera on the mobile terminal, a feature point on the photographic object that matches the feature information in the encrypted information, based on the pre-stored encrypted information;
获取单元,配置为获取所述特征点在空间中的第三位置信息;An acquiring unit, configured to acquire third location information of the feature point in the space;
解密单元,配置为在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息匹配时,进行解密。The decrypting unit is configured to perform decryption when determining that the third location information of the feature point matches the second location information stored in the encrypted information.
优选地,所述装置还包括:Preferably, the device further comprises:
返回单元,配置为在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息的差值超过预先设置的范围,则返回执行基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点。a returning unit configured to: after determining that the difference between the third location information of the feature point and the second location information stored in the encryption information exceeds a preset range, returning to performing execution of the pre-stored encrypted information through the mobile terminal The camera captures feature points on the subject that match the feature information in the encrypted information.
为实现上述目的,本发明实施例提供一种移动终端,包括摄像头及处理器,所述摄像头配置为获取同一拍摄对象的多个照片;所述处理器配置为获取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点的在各照片上的第一位置信息及特征信息;基于每一照片上的相同特征 点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密。To achieve the above objective, an embodiment of the present invention provides a mobile terminal, including a camera and a processor, where the camera is configured to acquire a plurality of photos of the same photographic subject; the processor is configured to acquire each of the plurality of photos The same feature points on a photo, and acquiring first position information and feature information of the same feature point on each photo; based on the same feature on each photo And acquiring the second location information in the space of the same feature point according to the first location information of the point; performing encryption according to the feature information of the same feature point and the acquired second location information.
为实现上述目的,本发明实施例提供一种移动终端,包括摄像头及处理器,所述摄像头配置为基于预先存储的加密信息,捕捉拍摄对象上与加密信息中的特征信息匹配的特征点;所述处理器配置为获取所述特征点在空间中的第三位置信息;在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息匹配时,进行解密。In order to achieve the above object, an embodiment of the present invention provides a mobile terminal, including a camera and a processor, where the camera is configured to capture feature points on a photographic object that match feature information in the encrypted information based on pre-stored encrypted information; The processor is configured to acquire third location information of the feature point in space; and perform decryption when determining that the third location information of the feature point matches the second location information stored in the encryption information.
本发明实施例通过移动终端上的摄像头获取同一拍摄对象的多个照片;选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息;基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密,从而能使移动终端的用户直接通过两个或者多个摄像头获得的景物数值信息实现对移动终端的加密或者解密,来体验更有趣的移动终端的新能力,进一步开放移动终端的两个或者多个摄像头的优势,提高用户的体验。In the embodiment of the present invention, a plurality of photos of the same photographic subject are acquired by a camera on the mobile terminal; the same feature points on each photo of the plurality of photos are selected, and the first feature points of the same feature point are acquired on each photo. Location information and feature information; acquiring, according to the first location information of the same feature point on each photo, second location information in the space of the same feature point; and the feature information according to the same feature point, and The obtained second location information is encrypted, so that the user of the mobile terminal can directly encrypt or decrypt the mobile terminal by using the scene value information obtained by two or more cameras to experience a new and more interesting capability of the mobile terminal. Further opening up the advantages of two or more cameras of the mobile terminal to enhance the user experience.
附图说明DRAWINGS
图1为本发明加密的方法实施例的流程示意图;1 is a schematic flow chart of an embodiment of a method for encrypting according to the present invention;
图2为本发明提供的一种计算特征点的第二信息的方法示意图;2 is a schematic diagram of a method for calculating second information of a feature point according to the present invention;
图3为本发明解密的方法实施例的流程示意图;3 is a schematic flowchart of an embodiment of a method for decrypting according to the present invention;
图4为本发明加密的装置实施例的功能模块示意图;4 is a schematic diagram of functional modules of an embodiment of an apparatus for encrypting according to the present invention;
图5为本发明解密的装置实施例的功能模块示意图;FIG. 5 is a schematic diagram of functional modules of an apparatus for decrypting according to the present invention; FIG.
图6为本发明移动终端第一实施例的功能模块示意图;6 is a schematic diagram of functional modules of a first embodiment of a mobile terminal according to the present invention;
图7为本发明移动终端第二实施例的功能模块示意图。 FIG. 7 is a schematic diagram of functional modules of a second embodiment of a mobile terminal according to the present invention.
具体实施方式detailed description
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅仅用以解释本发明,并不用于限定本发明。The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.
本发明提供一种加密的方法。The present invention provides a method of encryption.
参照图1,图1为本发明加密的方法实施例的流程示意图。Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of an embodiment of a method for encrypting according to the present invention.
在第一实施例中,该加密的方法包括:In the first embodiment, the method of encrypting includes:
步骤101,通过移动终端上的摄像头获取同一拍摄对象的多个照片;Step 101: Acquire a plurality of photos of the same photographic subject by using a camera on the mobile terminal;
上述多个摄像头可以为两个或者两个以上,以下以两个为例进一步说明。The plurality of cameras may be two or more, and the following two examples are further described.
具体的,在移动终端上需要硬件上支持两个摄像头,并且存储有这两个摄像头的详细焦距范围以及相对位置T的信息。Specifically, two cameras are required to be supported on the mobile terminal, and the detailed focal length range and the relative position T information of the two cameras are stored.
当用户通过手机菜单,进入加密设置功能时,手机启动上述两个摄像头,抓取当前手机所拍摄的景物,手机上显示当前的实时摄像头信息。When the user enters the encryption setting function through the mobile phone menu, the mobile phone activates the above two cameras to capture the scene captured by the current mobile phone, and displays the current real-time camera information on the mobile phone.
步骤102,选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息;Step 102: Select the same feature point on each photo of the plurality of photos, and obtain first location information and feature information of the same feature point on each photo;
优选地,所述选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息包括:Preferably, the selecting the same feature point on each photo of the plurality of photos, and acquiring the first location information and the feature information of the same feature point on each photo comprises:
获取在所述多个照片的每一照片上的至少二个相同特征点;Obtaining at least two identical feature points on each of the plurality of photos;
并获取所述至少二个相同特征点在各照片上的第一位置信息及特征信息。And acquiring first location information and feature information of the at least two identical feature points on each photo.
具体的,用户在触摸屏上选择特征点,以下以用户选择3个特征点A,B,C为例进行详细说明。第一信息至少包括每个特征点在不同图片上的位置信息等。Specifically, the user selects feature points on the touch screen. The following describes the three feature points A, B, and C as examples. The first information includes at least position information of each feature point on a different picture, and the like.
例如,A在摄像头一所拍摄的图片一上的位置坐标为(A1,A2,A3);For example, the position coordinates of A on the picture one taken by the camera are (A1, A2, A3);
A在摄像头二所拍摄的图片二上的位置坐标为(A1’,A2’,A3’); The position coordinates of A on the picture 2 taken by the camera 2 are (A1', A2', A3');
B在摄像头一所拍摄的图片一上的位置坐标为(B1,B2,B3);The position coordinates of B on the picture one taken by the camera are (B1, B2, B3);
B在摄像头二所拍摄的图片二上的位置坐标为(B1’,B2’,B3’);The position coordinates of B on the picture 2 taken by the camera 2 are (B1', B2', B3');
C在摄像头一所拍摄的图片一上的位置坐标为(C1,C2,C3);The position coordinates of C on the picture one taken by the camera are (C1, C2, C3);
C在摄像头二所拍摄的图片二上的位置坐标为(C1’,C2’,C3’)。The position coordinates of C on the picture 2 taken by the camera 2 are (C1', C2', C3').
同时,还根据所述同一个景物的多个照片的照片信息和预先存储的照片信息与第一特征点的第一信息对应关系,向用户推送特征点;At the same time, according to the photo information of the plurality of photos of the same scene and the pre-stored photo information and the first information corresponding to the first feature point, the feature points are pushed to the user;
优选地,所述根据所述同一个景物的多个照片的照片信息和预先存储的照片信息与第一特征点的第一信息对应关系,向用户推送特征点,包括:Preferably, the photo information according to the plurality of photos of the same scene and the pre-stored photo information corresponding to the first information of the first feature point, the feature points are pushed to the user, including:
若所述照片信息为大面积色块以及大面积色块中的一个与所述大面积色块颜色不同的点,则向用户推送所述颜色不同的点,和/或;If the photo information is a large-area color patch and a dot of a large-area color patch that is different in color from the large-area color patch, push the dots of different colors, and/or;
若所述照片信息为大面积色块,则向用户推送所述大面积色块中的色块边界的一个端点,和/或;If the photo information is a large area color patch, push an end point of the color block boundary in the large area color block to the user, and/or;
若所述照片信息为带有特殊标记的平面,则向用户推送所述标记的中心点,和/或;If the photo information is a plane with a special mark, push the center point of the mark to the user, and/or;
若所述照片信息为两条线段以及所述两条线段的交叉点,则向用户推送所述交叉点,和/或;If the photo information is two line segments and an intersection of the two line segments, pushing the intersection to the user, and/or;
若所述照片信息为小型色块,则向用户推送所述小型色块的中心点。If the photo information is a small color patch, the center point of the small color patch is pushed to the user.
具体的,因此当用户在屏幕上选取特征点时。给用户推荐的特征点,优先使用具有如下特征的一些点:Specifically, when the user selects a feature point on the screen. For feature points recommended to users, priority is given to points that have the following characteristics:
大面积色块中的一个独立的其他颜色的点,比如白色手绢上的一个明显黑点;A separate point of other color in a large color patch, such as a distinct black dot on a white handcuff;
色块边界的一个端点,比如一个蓝色方块,右侧边对应的下端点,或上端点。An endpoint of a color block boundary, such as a blue square, a lower end corresponding to the right side, or an upper endpoint.
一个平面上特殊标记的中心点,比如某手机标记的中心,计算的时候取这个标记的中心点。 The center point of a special mark on a plane, such as the center of a phone mark, is taken as the center point of the mark.
两条线段的交叉点,比如两本书叠放形成的边界的交叉点。The intersection of two line segments, such as the intersection of the boundaries formed by the stacking of two books.
小型色块的中心点,比如电脑显示器电源指示灯的中心点。The center point of a small color block, such as the center point of the computer monitor's power indicator.
步骤103,基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;Step 103: Acquire second location information in the space of the same feature point based on the first location information of the same feature point on each photo.
同时,向用户发送所述第一位置信息;At the same time, the first location information is sent to the user;
若接收到用户触发的确认所述第一位置信息的信息,则根据所述第一位置信息、预先存储的所述多个摄像头的焦距信息以及所述多个摄像头的位置信息计算第二位置信息。Receiving, by the user, information confirming the first location information, calculating second location information according to the first location information, the focal length information of the plurality of cameras stored in advance, and the location information of the plurality of cameras .
具体的,用户操作界面根据用户选择的特征点位置,明确具体特征点的具体位置信息并发给用户,要求用户来确认。Specifically, the user operation interface clarifies the specific location information of the specific feature point according to the location of the feature point selected by the user, and sends the specific location information to the user, and requests the user to confirm.
用户确认特征点后,摄像头采集当前特征点的第一信息,以及摄像头本身的参数信息,所述参数信息包括所述多个摄像头的焦距信息以及所述多个摄像头的位置信息,将所述第一信息以及参数信息发送给“中央处理单元”。After the user confirms the feature point, the camera collects the first information of the current feature point and the parameter information of the camera itself, the parameter information includes focal length information of the plurality of cameras and position information of the plurality of cameras, and the A message and parameter information are sent to the "Central Processing Unit".
优选地,所述基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息包括:Preferably, the acquiring the second location information in the space of the same feature point based on the first location information of the same feature point on each photo includes:
根据所述第一位置信息、所述摄像头的焦距信息以及位置信息计算所述相同特征点的在空间中的第二位置信息;Calculating second location information in the space of the same feature point according to the first location information, the focal length information of the camera, and the location information;
其中,所述第二位置信息至少包括至少二个特征点之间的空间距离和/或空间角度。The second location information includes at least a spatial distance and/or a spatial angle between at least two feature points.
优选地,所述根据所述第一位置信息、所述摄像头的焦距信息以及位置信息计算所述相同特征点的在空间中的第二位置信息,包括:Preferably, the calculating the second location information in the space of the same feature point according to the first location information, the focal length information of the camera, and the location information, including:
建立以照片平面的方向为X和Y方向、另一方向为Z方向的X-Y-Z三维坐标轴;Establishing an X-Y-Z three-dimensional coordinate axis in which the direction of the photo plane is the X and Y directions, and the other direction is the Z direction;
根据每一个特征点在所述多个照片上的X坐标值、Y坐标值以及相似 三角形的原理,计算所述每一个特征点的Z坐标值,得到所述每一个特征点的X-Y-Z三维坐标的坐标值;X coordinate values, Y coordinate values, and the like on the plurality of photos according to each feature point a principle of a triangle, calculating a Z coordinate value of each of the feature points, and obtaining coordinate values of the X-Y-Z three-dimensional coordinates of each of the feature points;
根据所述每一个特征点的X-Y-Z三维坐标的坐标值计算所述至少二个特征点之间的空间距离和/或空间角度。Calculating a spatial distance and/or a spatial angle between the at least two feature points according to coordinate values of the X-Y-Z three-dimensional coordinates of each of the feature points.
具体的,手机的中央处理单元通过摄像头传递过来的第一信息,以及预先存储的所述多个摄像头的焦距信息和所述多个摄像头的位置信息,计算出A、B、C三个点的相对位置,记录下AB,AC之间的距离,同时记录下∠BAC的角度信息。双摄像头测距,就是利用两个摄像头的相对距离与特征点之间的各独立成像的视差,以及摄像头的当时的焦距信息,来确定特征点在空间中的相对于两个摄像头的相对位置。Specifically, the central processing unit of the mobile phone calculates the first points of the A, B, and C points by using the first information transmitted by the camera and the focal length information of the plurality of cameras and the position information of the plurality of cameras stored in advance. Relative position, record the distance between AB and AC, and record the angle information of ∠BAC. Dual camera ranging is to determine the relative position of the feature points in space relative to the two cameras by using the relative distance between the two cameras and the parallax of each independent imaging between the feature points and the focal length information of the camera.
参考图2,图2为本发明提供的一种计算特征点的第二信息的方法示意图。Referring to FIG. 2, FIG. 2 is a schematic diagram of a method for calculating second information of a feature point according to the present invention.
如下图两个摄像头处于同一水平面。同时对景物P拍照。The two cameras are in the same horizontal plane as shown below. At the same time, take pictures of the scenery P.
在拍摄的两张照片上获得和,这两点相对于照片中心点有一个平面坐标,照片平面的方向分别为X-Y方向,摄像头焦距的方向为Z方向,如图2利用相似三角形原理,通过两个摄像头在移动终端上的相对位置,知道和两点的相对位置,f为摄像头的焦距。和的向量方向与和完全对应。综上信息可以很容易算出P点相对于两个摄像头的位置。The sum is obtained on the two photographs taken, and the two points have a plane coordinate with respect to the center point of the photograph, the direction of the photo plane is the XY direction, and the direction of the focal length of the camera is the Z direction, as shown in Fig. 2 by using a similar triangle principle, The relative position of the cameras on the mobile terminal, knowing the relative position of the two points, f is the focal length of the camera. The vector direction of the sum corresponds exactly to and . In summary, the position of P point relative to the two cameras can be easily calculated.
步骤104,根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密。Step 104: Perform encryption according to the feature information of the same feature point and the acquired second location information.
具体的,手机的中央处理单元将获得的特征点的第一信息,AB,AC之间的距离,∠BAC的角度等三个特征点之间的空间距离和/或空间角度存储在移动终端。Specifically, the central processing unit of the mobile phone stores the obtained spatial distance and/or spatial angle between the first information of the feature points, the distance between AB, AC, and the angle of the BAC, in the mobile terminal.
当用户完成加密后,锁定了手机,想要使用手机,手机会弹出解密界面,也就是摄像头传递来的景物信息。用户操作手机对准所述摄像头传递 来的景物信息。When the user completes the encryption, the mobile phone is locked, and if the mobile phone is used, the mobile phone will pop up a decryption interface, which is the scene information transmitted by the camera. The user operates the mobile phone to align with the camera to transmit Scenery information coming.
从解密界面弹出开始,中央处理单元就从“存储处理单元”内读取出了特征点的第一信息,以及各特征点相对位置的信息AB,AC之间的距离,∠BAC的角度等第二信息,中央处理单元从摄像头采集下来的信息中,去搜寻特征点。Starting from the decryption interface pop-up, the central processing unit reads the first information of the feature points from the "storage processing unit", and the information about the relative position of each feature point AB, the distance between AC, the angle of ∠BAC, etc. Second, the central processing unit searches for feature points from the information collected by the camera.
当成功在一帧图像上取得了3个特征点后,开始计算特征点之间的相对位置信息,然后与既有的加密时获得的特征点位置信息进行比较,如果匹配误差在±5%以内,判定匹配成功。After successfully obtaining three feature points on one frame of image, the relative position information between the feature points is calculated, and then compared with the feature point position information obtained at the time of encryption, if the matching error is within ±5% , the determination is successful.
有一些数值可以变化,2个摄像头,可以变化为3个摄像头,3个特征点,可以变化为2个或4个以上特征点,也可以是特征线段。There are some values that can be changed. Two cameras can be changed to three cameras, three feature points, which can be changed to two or more feature points, or feature line segments.
本发明实施例通过移动终端上的摄像头获取同一拍摄对象的多个照片;选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息;基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密,从而能使移动终端的用户直接通过两个或者多个摄像头获得的景物数值信息实现对移动终端的加密或者解密,来体验更有趣的移动终端的新能力,进一步开放移动终端的两个或者多个摄像头的优势,提高用户的体验。In the embodiment of the present invention, a plurality of photos of the same photographic subject are acquired by a camera on the mobile terminal; the same feature points on each photo of the plurality of photos are selected, and the first feature points of the same feature point are acquired on each photo. Location information and feature information; acquiring, according to the first location information of the same feature point on each photo, second location information in the space of the same feature point; and the feature information according to the same feature point, and The obtained second location information is encrypted, so that the user of the mobile terminal can directly encrypt or decrypt the mobile terminal by using the scene value information obtained by two or more cameras to experience a new and more interesting capability of the mobile terminal. Further opening up the advantages of two or more cameras of the mobile terminal to enhance the user experience.
本发明提供一种解密的方法。The present invention provides a method of decryption.
参照图3,图3为本发明解密的方法实施例的流程示意图。Referring to FIG. 3, FIG. 3 is a schematic flowchart diagram of an embodiment of a method for decrypting according to the present invention.
在第一实施例中,该解密的方法包括:In the first embodiment, the method of decrypting includes:
步骤301,基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点;Step 301: Capture, according to the pre-stored encryption information, a feature point on the photographic object that matches the feature information in the encrypted information by using a camera on the mobile terminal;
具体的,当用户完成加密后,锁定了手机,想要使用手机,手机会弹出解密界面,也就是摄像头传递来的景物信息。用户操作手机对准所述摄 像头传递来的景物信息。Specifically, when the user completes the encryption, the mobile phone is locked, and if the mobile phone is used, the mobile phone will pop up a decryption interface, that is, the scene information transmitted by the camera. The user operates the phone to align the photo Scenery information from the head.
从解密界面弹出开始,中央处理单元就从“存储处理单元”内读取出了特征点的信息,以及各特征点相对位置的信息AB,AC之间的距离,∠BAC的角度等各特征点之间的空间距离、空间角度,中央处理单元从摄像头采集下来的信息中,去搜寻特征点。From the start of the decryption interface pop-up, the central processing unit reads the information of the feature points from the "storage processing unit", the information of the relative position of each feature point, the distance between AC, the angle of the BAC, and other feature points. Between the spatial distance and the spatial angle, the central processing unit searches for the feature points from the information collected by the camera.
步骤302,获取所述特征点在空间中的第三位置信息;Step 302: Acquire third location information of the feature point in space.
具体的,当成功在一帧图像上取得了3个特征点后,开始计算特征点之间的相对位置信息。Specifically, when three feature points are successfully acquired on one frame of image, the relative position information between the feature points is calculated.
步骤303,在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息匹配时,进行解密。Step 303: Perform decryption when determining that the third location information of the feature point matches the second location information stored in the encryption information.
具体的,与既有的加密时获得的特征点位置信息进行比较,如果匹配误差在±5%以内,判定匹配成功。手机成功解密,用户可以进入手机其他菜单使用手机应用。其中,这里的特征点的第二信息的差值在预先设置的范围并不限定在±5%。Specifically, compared with the feature point position information obtained at the time of encryption, if the matching error is within ±5%, the matching is determined to be successful. The phone is successfully decrypted, and the user can enter the other menu of the mobile phone to use the mobile application. The difference of the second information of the feature points herein is not limited to ±5% in the preset range.
优选地,所述获取所述特征点在空间中的第三位置信息之后,还包括:Preferably, after the acquiring the third location information of the feature point in the space, the method further includes:
在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息的差值超过预先设置的范围,则返回执行基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点。After determining that the difference between the third location information of the feature point and the second location information stored in the encryption information exceeds a preset range, returning to performing execution based on the pre-stored encryption information, capturing the image by the camera on the mobile terminal A feature point that matches the feature information in the encrypted information.
本发明实施例通过移动终端上的摄像头获取同一拍摄对象的多个照片;选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息;基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密,从而能使移动终端的用户直接通过两个或者多个摄像头获得的景物数值信 息实现对移动终端的加密或者解密,来体验更有趣的移动终端的新能力,进一步开放移动终端的两个或者多个摄像头的优势,提高用户的体验。In the embodiment of the present invention, a plurality of photos of the same photographic subject are acquired by a camera on the mobile terminal; the same feature points on each photo of the plurality of photos are selected, and the first feature points of the same feature point are acquired on each photo. Location information and feature information; acquiring, according to the first location information of the same feature point on each photo, second location information in the space of the same feature point; and the feature information according to the same feature point, and The acquired second location information is encrypted, so that the user of the mobile terminal can directly obtain the scene numerical value information obtained by two or more cameras. To realize the encryption or decryption of the mobile terminal to experience the new ability of the more interesting mobile terminal, further open the advantages of two or more cameras of the mobile terminal, and improve the user experience.
本发明提供一种加密的装置。The present invention provides an apparatus for encryption.
参照图4,图4为本发明加密的装置实施例的功能模块示意图。Referring to FIG. 4, FIG. 4 is a schematic diagram of functional modules of an embodiment of an apparatus for encrypting according to the present invention.
在第一实施例中,所述加密的装置包括:In a first embodiment, the encrypted device comprises:
第一获取单元401,配置为通过移动终端上的摄像头获取同一拍摄对象的多个照片;The first obtaining unit 401 is configured to acquire a plurality of photos of the same photographic subject by using a camera on the mobile terminal;
上述多个摄像头可以为两个或者两个以上,以下以两个为例进一步说明。The plurality of cameras may be two or more, and the following two examples are further described.
具体的,在移动终端上需要硬件上支持两个摄像头,并且存储有这两个摄像头的详细焦距范围以及相对位置T的信息。Specifically, two cameras are required to be supported on the mobile terminal, and the detailed focal length range and the relative position T information of the two cameras are stored.
当用户通过手机菜单,进入加密设置功能时,手机启动上述两个摄像头,抓取当前手机所拍摄的景物,手机上显示当前的实时摄像头信息。When the user enters the encryption setting function through the mobile phone menu, the mobile phone activates the above two cameras to capture the scene captured by the current mobile phone, and displays the current real-time camera information on the mobile phone.
第二获取单元402,配置为选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点的在各照片上的第一位置信息及特征信息;The second acquiring unit 402 is configured to select the same feature point on each photo of the plurality of photos, and obtain first location information and feature information of each of the same feature points on each photo;
优选地,所述第二获取单元402,配置为:Preferably, the second obtaining unit 402 is configured to:
获取在所述多个照片的每一照片上的至少二个相同特征点;Obtaining at least two identical feature points on each of the plurality of photos;
并获取所述至少二个相同特征点在各照片上的第一位置信息及特征信息。And acquiring first location information and feature information of the at least two identical feature points on each photo.
具体的,用户在触摸屏上选择特征点,以下以用户选择3个特征点A,B,C为例进行详细说明。第一信息至少包括每个特征点在不同图片上的位置信息等。Specifically, the user selects feature points on the touch screen. The following describes the three feature points A, B, and C as examples. The first information includes at least position information of each feature point on a different picture, and the like.
例如,A在摄像头一所拍摄的图片一上的位置坐标为(A1,A2,A3);For example, the position coordinates of A on the picture one taken by the camera are (A1, A2, A3);
A在摄像头二所拍摄的图片二上的位置坐标为(A1’,A2’,A3’);The position coordinates of A on the picture 2 taken by the camera 2 are (A1', A2', A3');
B在摄像头一所拍摄的图片一上的位置坐标为(B1,B2,B3); The position coordinates of B on the picture one taken by the camera are (B1, B2, B3);
B在摄像头二所拍摄的图片二上的位置坐标为(B1’,B2’,B3’);The position coordinates of B on the picture 2 taken by the camera 2 are (B1', B2', B3');
C在摄像头一所拍摄的图片一上的位置坐标为(C1,C2,C3);The position coordinates of C on the picture one taken by the camera are (C1, C2, C3);
C在摄像头二所拍摄的图片二上的位置坐标为(C1’,C2’,C3’)。The position coordinates of C on the picture 2 taken by the camera 2 are (C1', C2', C3').
同时,还根据所述同一个景物的多个照片的照片信息和预先存储的照片信息与第一特征点的第一信息对应关系,向用户推送特征点;At the same time, according to the photo information of the plurality of photos of the same scene and the pre-stored photo information and the first information corresponding to the first feature point, the feature points are pushed to the user;
优选地,所述根据所述同一个景物的多个照片的照片信息和预先存储的照片信息与第一特征点的第一信息对应关系,向用户推送特征点,包括:Preferably, the photo information according to the plurality of photos of the same scene and the pre-stored photo information corresponding to the first information of the first feature point, the feature points are pushed to the user, including:
若所述照片信息为大面积色块以及大面积色块中的一个与所述大面积色块颜色不同的点,则向用户推送所述颜色不同的点,和/或;If the photo information is a large-area color patch and a dot of a large-area color patch that is different in color from the large-area color patch, push the dots of different colors, and/or;
若所述照片信息为大面积色块,则向用户推送所述大面积色块中的色块边界的一个端点,和/或;If the photo information is a large area color patch, push an end point of the color block boundary in the large area color block to the user, and/or;
若所述照片信息为带有特殊标记的平面,则向用户推送所述标记的中心点,和/或;If the photo information is a plane with a special mark, push the center point of the mark to the user, and/or;
若所述照片信息为两条线段以及所述两条线段的交叉点,则向用户推送所述交叉点,和/或;If the photo information is two line segments and an intersection of the two line segments, pushing the intersection to the user, and/or;
若所述照片信息为小型色块,则向用户推送所述小型色块的中心点。If the photo information is a small color patch, the center point of the small color patch is pushed to the user.
具体的,因此当用户在屏幕上选取特征点时。给用户推荐的特征点,优先使用具有如下特征的一些点:Specifically, when the user selects a feature point on the screen. For feature points recommended to users, priority is given to points that have the following characteristics:
大面积色块中的一个独立的其他颜色的点,比如白色手绢上的一个明显黑点;A separate point of other color in a large color patch, such as a distinct black dot on a white handcuff;
色块边界的一个端点,比如一个蓝色方块,右侧边对应的下端点,或上端点。An endpoint of a color block boundary, such as a blue square, a lower end corresponding to the right side, or an upper endpoint.
一个平面上特殊标记的中心点,比如某手机标记的中心,计算的时候取这个标记的中心点。The center point of a special mark on a plane, such as the center of a phone mark, is taken as the center point of the mark.
两条线段的交叉点,比如两本书叠放形成的边界的交叉点。 The intersection of two line segments, such as the intersection of the boundaries formed by the stacking of two books.
小型色块的中心点,比如电脑显示器电源指示灯的中心点。The center point of a small color block, such as the center point of the computer monitor's power indicator.
第三获取单元403,配置为基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;The third obtaining unit 403 is configured to acquire, according to the first location information of the same feature point on each photo, second location information in the space of the same feature point;
具体的,用户操作界面根据用户选择的特征点位置,明确具体特征点的具体位置信息并发给用户,要求用户来确认。Specifically, the user operation interface clarifies the specific location information of the specific feature point according to the location of the feature point selected by the user, and sends the specific location information to the user, and requests the user to confirm.
用户确认特征点后,摄像头采集当前特征点的第一信息,以及摄像头本身的参数信息,所述参数信息包括所述多个摄像头的焦距信息以及所述多个摄像头的位置信息,将所述第一信息以及参数信息发送给“中央处理单元”。After the user confirms the feature point, the camera collects the first information of the current feature point and the parameter information of the camera itself, the parameter information includes focal length information of the plurality of cameras and position information of the plurality of cameras, and the A message and parameter information are sent to the "Central Processing Unit".
优选地,所述第三获取单元403还包括:Preferably, the third obtaining unit 403 further includes:
计算单元,配置为根据所述第一位置信息、预先存储的所述摄像头的焦距信息以及所述摄像头的位置信息计算第二位置信息;a calculating unit, configured to calculate second location information according to the first location information, the focal length information of the camera stored in advance, and the location information of the camera;
其中,所述第二位置信息至少包括至少二个特征点之间的空间距离和/或空间角度。The second location information includes at least a spatial distance and/or a spatial angle between at least two feature points.
优选地,所述根据所述第一位置信息、所述摄像头的焦距信息以及位置信息计算所述相同特征点的在空间中的第二位置信息,包括:Preferably, the calculating the second location information in the space of the same feature point according to the first location information, the focal length information of the camera, and the location information, including:
建立以照片平面的方向为X和Y方向、另一方向为Z方向的X-Y-Z三维坐标轴;Establishing an X-Y-Z three-dimensional coordinate axis in which the direction of the photo plane is the X and Y directions, and the other direction is the Z direction;
根据每一个特征点在所述多个照片上的X坐标值、Y坐标值以及相似三角形的原理,计算所述每一个特征点的Z坐标值,得到所述每一个特征点的X-Y-Z三维坐标的坐标值;Calculating a Z coordinate value of each of the feature points according to an X coordinate value, a Y coordinate value, and a similar triangle principle of each of the plurality of photos to obtain an XYZ three-dimensional coordinate of each of the feature points Coordinate value
根据所述每一个特征点的X-Y-Z三维坐标的坐标值计算所述至少二个特征点之间的空间距离和/或空间角度。Calculating a spatial distance and/or a spatial angle between the at least two feature points according to coordinate values of the X-Y-Z three-dimensional coordinates of each of the feature points.
具体的,手机的中央处理单元通过摄像头传递过来的第一信息,以及预先存储的所述多个摄像头的焦距信息和所述多个摄像头的位置信息,计 算出A、B、C三个点的相对位置,记录下AB,AC之间的距离,同时记录下∠BAC的角度信息。双摄像头测距,就是利用两个摄像头的相对距离与特征点之间的各独立成像的视差,以及摄像头的当时的焦距信息,来确定特征点在空间中的相对于两个摄像头的相对位置。Specifically, the first information transmitted by the central processing unit of the mobile phone through the camera, and the focal length information of the plurality of cameras stored in advance and the position information of the plurality of cameras are counted Calculate the relative positions of the three points A, B, and C, record the distance between AB and AC, and record the angle information of the BAC. Dual camera ranging is to determine the relative position of the feature points in space relative to the two cameras by using the relative distance between the two cameras and the parallax of each independent imaging between the feature points and the focal length information of the camera.
参考图2,图2为本发明提供的一种计算特征点的第二信息的方法示意图。Referring to FIG. 2, FIG. 2 is a schematic diagram of a method for calculating second information of a feature point according to the present invention.
如下图两个摄像头处于同一水平面。同时对景物P拍照。The two cameras are in the same horizontal plane as shown below. At the same time, take pictures of the scenery P.
在拍摄的两张照片上获得和,这两点相对于照片中心点有一个平面坐标,照片平面的方向分别为X-Y方向,摄像头焦距的方向为Z方向,如图2利用相似三角形原理,通过两个摄像头在移动终端上的相对位置,知道和两点的相对位置,f为摄像头的焦距。和的向量方向与和完全对应。综上信息可以很容易算出P点相对于两个摄像头的位置。The sum is obtained on the two photographs taken, and the two points have a plane coordinate with respect to the center point of the photograph, the direction of the photo plane is the XY direction, and the direction of the focal length of the camera is the Z direction, as shown in Fig. 2 by using a similar triangle principle, The relative position of the cameras on the mobile terminal, knowing the relative position of the two points, f is the focal length of the camera. The vector direction of the sum corresponds exactly to and . In summary, the position of P point relative to the two cameras can be easily calculated.
加密单元404,配置为根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密。The encryption unit 404 is configured to perform encryption according to the feature information of the same feature point and the acquired second location information.
具体的,手机的中央处理单元将获得的特征点的第一信息,AB,AC之间的距离,∠BAC的角度等三个特征点之间的空间距离和/或空间角度存储在移动终端。Specifically, the central processing unit of the mobile phone stores the obtained spatial distance and/or spatial angle between the first information of the feature points, the distance between AB, AC, and the angle of the BAC, in the mobile terminal.
当用户完成加密后,锁定了手机,想要使用手机,手机会弹出解密界面,也就是摄像头传递来的景物信息。用户操作手机对准所述摄像头传递来的景物信息。When the user completes the encryption, the mobile phone is locked, and if the mobile phone is used, the mobile phone will pop up a decryption interface, which is the scene information transmitted by the camera. The user operates the mobile phone to align with the scene information transmitted by the camera.
从解密界面弹出开始,中央处理单元就从“存储处理单元”内读取出了特征点的第一信息,以及各特征点相对位置的信息AB,AC之间的距离,∠BAC的角度等第二信息,中央处理单元从摄像头采集下来的信息中,去搜寻特征点。Starting from the decryption interface pop-up, the central processing unit reads the first information of the feature points from the "storage processing unit", and the information about the relative position of each feature point AB, the distance between AC, the angle of ∠BAC, etc. Second, the central processing unit searches for feature points from the information collected by the camera.
当成功在一帧图像上取得了3个特征点后,开始计算特征点之间的相 对位置信息,然后与既有的加密时获得的特征点位置信息进行比较,如果匹配误差在±5%以内,判定匹配成功。When three feature points are successfully acquired on one frame of image, the phase between the feature points is calculated. The position information is then compared with the feature point position information obtained at the time of encryption, and if the matching error is within ±5%, the matching is determined to be successful.
有一些数值可以变化,2个摄像头,可以变化为3个摄像头,3个特征点,可以变化为2个或4个以上特征点,也可以是特征线段。There are some values that can be changed. Two cameras can be changed to three cameras, three feature points, which can be changed to two or more feature points, or feature line segments.
本发明实施例通过移动终端上的摄像头获取同一拍摄对象的多个照片;选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息;基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密,从而能使移动终端的用户直接通过两个或者多个摄像头获得的景物数值信息实现对移动终端的加密或者解密,来体验更有趣的移动终端的新能力,进一步开放移动终端的两个或者多个摄像头的优势,提高用户的体验。In the embodiment of the present invention, a plurality of photos of the same photographic subject are acquired by a camera on the mobile terminal; the same feature points on each photo of the plurality of photos are selected, and the first feature points of the same feature point are acquired on each photo. Location information and feature information; acquiring, according to the first location information of the same feature point on each photo, second location information in the space of the same feature point; and the feature information according to the same feature point, and The obtained second location information is encrypted, so that the user of the mobile terminal can directly encrypt or decrypt the mobile terminal by using the scene value information obtained by two or more cameras to experience a new and more interesting capability of the mobile terminal. Further opening up the advantages of two or more cameras of the mobile terminal to enhance the user experience.
实际应用中,所述第一获取单元401、第二获取单元402和第三获取单元403、加密单元404均可由加密的装置所属终端中的中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或现场可编程门阵列(FPGA,Field Programmable Gate Array)实现。In an actual application, the first obtaining unit 401, the second obtaining unit 402, the third obtaining unit 403, and the encrypting unit 404 may all be processed by a central processing unit (CPU) in a terminal to which the encrypted device belongs, and digital signal processing. (DSP, Digital Signal Processor) or Field Programmable Gate Array (FPGA) implementation.
本发明提供一种解密的装置。The present invention provides a device for decryption.
参照图5,图5为本发明解密的装置实施例的功能模块示意图。Referring to FIG. 5, FIG. 5 is a schematic diagram of functional modules of an apparatus for decrypting according to the present invention.
在第一实施例中,所述解密的装置包括:In the first embodiment, the decrypted device includes:
捕捉单元501,配置为基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点;The capturing unit 501 is configured to capture a feature point on the photographic object that matches the feature information in the encrypted information by using a camera on the mobile terminal based on the pre-stored encryption information;
具体的,当用户完成加密后,锁定了手机,想要使用手机,手机会弹出解密界面,也就是摄像头传递来的景物信息。用户操作手机对准所述摄像头传递来的景物信息。Specifically, when the user completes the encryption, the mobile phone is locked, and if the mobile phone is used, the mobile phone will pop up a decryption interface, that is, the scene information transmitted by the camera. The user operates the mobile phone to align with the scene information transmitted by the camera.
从解密界面弹出开始,中央处理单元就从“存储处理单元”内读取出 了特征点的信息,以及各特征点相对位置的信息AB,AC之间的距离,∠BAC的角度等各特征点之间的空间距离、空间角度,中央处理单元从摄像头采集下来的信息中,去搜寻特征点。Starting from the decryption interface pop-up, the central processing unit reads from the "storage processing unit" The information of the feature points, the information of the relative position of each feature point, the distance between AC, the distance between the feature points such as the angle of ∠BAC, the spatial angle, and the information collected by the central processing unit from the camera. Go to search for feature points.
具体的,若无法成功在同一个图像上找到3个特征点,10s钟后,退出搜索,提示用户,“没有找到解密目标”,解密失败。Specifically, if three feature points cannot be found successfully on the same image, after 10 seconds, the search is exited, and the user is prompted, "the decryption target is not found", and the decryption fails.
若找到了很多与存储特征点匹配的点,无法确定哪几个是需要锁定的特征点,10s钟过后仍然无法确认的时候,退出搜索,提示用户,“没有找到解密目标”,解密失败。If you find a lot of points that match the stored feature points, you can't determine which ones are the feature points that need to be locked. When you still can't confirm after 10s, you can exit the search and prompt the user, "The decryption target is not found", and the decryption fails.
获取单元502,配置为获取所述特征点在空间中的第三位置信息;The obtaining unit 502 is configured to acquire third location information of the feature point in the space;
具体的,当成功在一帧图像上取得了3个特征点后,开始计算特征点之间的相对位置信息。Specifically, when three feature points are successfully acquired on one frame of image, the relative position information between the feature points is calculated.
解密单元503,配置为在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息匹配时,进行解密。The decryption unit 503 is configured to perform decryption when it is determined that the third location information of the feature point matches the second location information stored in the encrypted information.
具体的,与既有的加密时获得的特征点位置信息进行比较,如果匹配误差在±5%以内,判定匹配成功。手机成功解密,用户可以进入手机其他菜单使用手机应用。其中,这里的特征点的第二信息的差值在预先设置的范围并不限定在±5%。Specifically, compared with the feature point position information obtained at the time of encryption, if the matching error is within ±5%, the matching is determined to be successful. The phone is successfully decrypted, and the user can enter the other menu of the mobile phone to use the mobile application. The difference of the second information of the feature points herein is not limited to ±5% in the preset range.
优选地,所述装置还包括:Preferably, the device further comprises:
返回单元,配置为在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息的差值超过预先设置的范围,则返回执行基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点。a returning unit configured to: after determining that the difference between the third location information of the feature point and the second location information stored in the encryption information exceeds a preset range, returning to performing execution of the pre-stored encrypted information through the mobile terminal The camera captures feature points on the subject that match the feature information in the encrypted information.
若成功找到了3个特征点,经过计算,与存储的特征值差距较大在±5%以外,就再尝试搜索定位一次。If three feature points are successfully found, after calculation, the difference between the stored feature values and the stored feature value is greater than ±5%, and then try to search once again.
具体的,如果仍然差距较大,就继续尝试,判断返回搜索是否超过预 先设置的次数,若是,则直到10s钟超时,提示用户“没有找到解密目标”,解密失败。Specifically, if the gap is still large, continue to try to determine whether the return search exceeds the pre- The number of times set first, if it is, until 10s clocks out, prompting the user "no decryption target found", the decryption failed.
现有技术中,目前的按键门禁、指纹识别门禁不同,解密耗时较多,难度很高。In the prior art, the current key access control and fingerprint identification access control are different, and the decryption takes more time and is difficult.
以下以将双摄像头加密解密应用在摄像头门禁系统上为例进行进一步说明。The following is an example of applying dual camera encryption and decryption to the camera access control system.
加密阶段:Encryption phase:
1、门禁系统利用自身的双摄像头,开起密码设定阶段;1. The access control system uses its own dual camera to open the password setting phase;
2、用户拿出一盘国际象棋,摆好一个棋局1;2. The user takes out a set of chess and sets up a chess game 1;
3、用户在操作界面,确定棋盘边角位置,确定特征棋子,可以是画面中的所有棋子,这样的话,软件会自动显示出所有的棋子,供用户确认;3. The user determines the position of the corner of the board in the operation interface, and determines the characteristic pieces, which can be all the pieces in the picture. In this case, the software will automatically display all the pieces for the user to confirm;
4、双摄像头采集数据,由中心处理器算出,特征棋子的相对于棋盘的位置。中心处理器将这个画面计算出的信息存储到“存储处理单元”中;4. The dual camera collects data, which is calculated by the central processor and the position of the feature piece relative to the board. The central processor stores the information calculated by this picture into the "storage processing unit";
5、用户将目前的棋局中的某一个或者某几个棋子,做出一定的移位后,形成新的棋局2;5. The user makes a certain shift after one or a few pieces of the current game, and forms a new game 2;
6、用户在用户操作界面,确定新画面中特征棋子;6. The user determines the feature pieces in the new picture in the user operation interface;
7、双摄像头采集数据,由中心处理器算出,第二次特征棋子的相对于棋盘的位置。中心处理器将这个画面计算出的信息也存储到“存储处理单元”中;7. The dual camera collects data, which is calculated by the central processor, and the position of the second characteristic piece relative to the chessboard. The central processor also stores the information calculated by this picture into the "storage processing unit";
8、至此形成了加密信息;8. At this point, encrypted information is formed;
解密阶段:Decryption phase:
9、用户主动开启门禁的解密过程;9. The user actively opens the decryption process of the access control;
10、用户拿出棋盘,摆出预设的棋局1;10, the user takes out the chessboard and puts out the preset chess game 1;
11、摄像头持续监测并传递数据给中央处理器,一旦发现棋局匹配,即发出提示,提示用户棋局1已经通过校验; 11. The camera continuously monitors and transmits data to the central processor. Once the game is found to match, a prompt is issued to prompt the user that the game 1 has passed the verification;
12、用户在棋盘上挪动棋子,摆出棋局2;12. The user moves the chess piece on the board and puts out the game 2;
13、摄像头继续持续监测并传递数据给中央处理器,一旦发现棋局2匹配,即解密成功。13. The camera continues to monitor and pass data to the central processor. Once the game 2 is found to match, the decryption is successful.
本发明实施例通过移动终端上的摄像头获取同一拍摄对象的多个照片;选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息;基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密,从而能使移动终端的用户直接通过两个或者多个摄像头获得的景物数值信息实现对移动终端的加密或者解密,来体验更有趣的移动终端的新能力,进一步开放移动终端的两个或者多个摄像头的优势,提高用户的体验。In the embodiment of the present invention, a plurality of photos of the same photographic subject are acquired by a camera on the mobile terminal; the same feature points on each photo of the plurality of photos are selected, and the first feature points of the same feature point are acquired on each photo. Location information and feature information; acquiring, according to the first location information of the same feature point on each photo, second location information in the space of the same feature point; and the feature information according to the same feature point, and The obtained second location information is encrypted, so that the user of the mobile terminal can directly encrypt or decrypt the mobile terminal by using the scene value information obtained by two or more cameras to experience a new and more interesting capability of the mobile terminal. Further opening up the advantages of two or more cameras of the mobile terminal to enhance the user experience.
实际应用中,所述捕捉单元501、获取单元502和解密单元503均可由解密的装置所属终端中的CPU、DSP或FPGA实现。In practical applications, the capturing unit 501, the obtaining unit 502, and the decrypting unit 503 can all be implemented by a CPU, DSP or FPGA in the terminal to which the decrypted device belongs.
本发明提供一种移动终端。The invention provides a mobile terminal.
参照图6,图6为本发明移动终端第一实施例的功能模块示意图。Referring to FIG. 6, FIG. 6 is a schematic diagram of functional modules of a first embodiment of a mobile terminal according to the present invention.
所述移动终端包括摄像头601及处理器602,所述摄像头配置为获取同一拍摄对象的多个照片;所述处理器配置为获取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点的在各照片上的第一位置信息及特征信息;基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密。The mobile terminal includes a camera 601 configured to acquire a plurality of photos of the same photographic subject, and a processor 602 configured to acquire the same feature points on each of the plurality of photos, and Obtaining first location information and feature information on each photo of the same feature point; acquiring second of the same feature point in space based on the first location information of the same feature point on each photo Location information; encrypting according to the feature information of the same feature point and the acquired second location information.
参照图7,图7为本发明移动终端第二实施例的功能模块示意图。Referring to FIG. 7, FIG. 7 is a schematic diagram of functional modules of a second embodiment of a mobile terminal according to the present invention.
所述移动终端包括摄像头701及处理器702,所述摄像头配置为基于预先存储的加密信息,捕捉拍摄对象上与加密信息中的特征信息匹配的特征点;所述处理器配置为获取所述特征点在空间中的第三位置信息;在确定 所述特征点的第三位置信息与加密信息中存储的第二位置信息匹配时,进行解密。The mobile terminal includes a camera 701 and a processor 702, and the camera is configured to capture feature points on the photographic object that match the feature information in the encrypted information based on the pre-stored encrypted information; the processor is configured to acquire the feature Point the third position information in space; in the determination The third location information of the feature point is decrypted when it matches the second location information stored in the encrypted information.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,包括如下步骤:One of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, and the program is executed. When it includes the following steps:
通过移动终端上的摄像头获取同一拍摄对象的多个照片;Acquiring multiple photos of the same subject through a camera on the mobile terminal;
选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息;Selecting the same feature points on each photo of the plurality of photos, and acquiring first location information and feature information of the same feature points on each photo;
基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;Acquiring second location information in the space of the same feature point based on the first location information of the same feature point on each photo;
根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密,所述的存储介质,如:ROM/RAM、磁碟、光盘等。Encryption is performed according to the feature information of the same feature point, and the acquired second location information, such as a ROM/RAM, a magnetic disk, an optical disk, or the like.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,包括如下步骤:One of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, and the program is executed. When it includes the following steps:
基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点;Capturing feature points on the photographic object that match the feature information in the encrypted information by the camera on the mobile terminal based on the pre-stored encrypted information;
获取所述特征点在空间中的第三位置信息;Obtaining third location information of the feature point in the space;
在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息匹配时,进行解密,所述的存储介质,如:ROM/RAM、磁碟、光盘等。Decryption is performed when it is determined that the third location information of the feature point matches the second location information stored in the encrypted information, such as a ROM/RAM, a magnetic disk, an optical disk, or the like.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
本发明实施例中,通过移动终端上的摄像头获取同一拍摄对象的多个照片;选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息;基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密,从而能使移动终端的用户直接通过两个或者多个摄像头获得的景物数值信息实现对移动终端的加密或者解密,来体验更有趣的移动终端的新能力,进一步开放移动终端的两个或者多个摄像头的优势,提高用户的体验。 In the embodiment of the present invention, a plurality of photos of the same photographic subject are acquired by a camera on the mobile terminal; the same feature points on each photo of the plurality of photos are selected, and the same feature points are acquired on each photo. First location information and feature information; acquiring, according to the first location information of the same feature point on each photo, second location information in the space of the same feature point; and the feature information according to the same feature point And obtaining the second location information for encryption, so that the user of the mobile terminal can directly encrypt or decrypt the mobile terminal by using the scene value information obtained by the two or more cameras to experience the more interesting mobile terminal. The new capability further expands the advantages of two or more cameras of mobile terminals to enhance the user experience.

Claims (15)

  1. 一种加密方法,所述方法包括:An encryption method, the method comprising:
    通过移动终端上的摄像头获取同一拍摄对象的多个照片;Acquiring multiple photos of the same subject through a camera on the mobile terminal;
    选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息;Selecting the same feature points on each photo of the plurality of photos, and acquiring first location information and feature information of the same feature points on each photo;
    基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;Acquiring second location information in the space of the same feature point based on the first location information of the same feature point on each photo;
    根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密。Encryption is performed based on the feature information of the same feature point and the acquired second location information.
  2. 根据权利要求1所述的方法,其中,所述选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点在各照片上的第一位置信息及特征信息包括:The method according to claim 1, wherein said selecting the same feature point on each photo of said plurality of photos, and acquiring first position information and feature information of said same feature point on each photo comprises :
    获取在所述多个照片的每一照片上的至少二个相同特征点;Obtaining at least two identical feature points on each of the plurality of photos;
    并获取所述至少二个相同特征点在各照片上的第一位置信息及特征信息。And acquiring first location information and feature information of the at least two identical feature points on each photo.
  3. 根据权利要求2所述的方法,其中,所述基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息包括:The method of claim 2, wherein the acquiring the second location information in the space of the same feature point based on the first location information of the same feature point on each photo comprises:
    根据所述第一位置信息、所述摄像头的焦距信息以及位置信息计算所述相同特征点的在空间中的第二位置信息;Calculating second location information in the space of the same feature point according to the first location information, the focal length information of the camera, and the location information;
    其中,所述第二位置信息至少包括至少二个特征点之间的空间距离和/或空间角度。The second location information includes at least a spatial distance and/or a spatial angle between at least two feature points.
  4. 根据权利要求3所述的方法,其中,所述根据所述第一位置信息、所述摄像头的焦距信息以及位置信息计算所述相同特征点的在空间中的第二位置信息,包括: The method according to claim 3, wherein the calculating the second location information in the space of the same feature point according to the first location information, the focal length information of the camera, and the location information comprises:
    建立以照片平面的方向为X和Y方向、另一方向为Z方向的X-Y-Z三维坐标轴;Establishing an X-Y-Z three-dimensional coordinate axis in which the direction of the photo plane is the X and Y directions, and the other direction is the Z direction;
    根据每一个特征点在所述多个照片上的X坐标值、Y坐标值以及相似三角形的原理,计算所述每一个特征点的Z坐标值,得到所述每一个特征点的X-Y-Z三维坐标的坐标值;Calculating a Z coordinate value of each of the feature points according to an X coordinate value, a Y coordinate value, and a similar triangle principle of each of the plurality of photos to obtain an XYZ three-dimensional coordinate of each of the feature points Coordinate value
    根据所述每一个特征点的X-Y-Z三维坐标的坐标值计算所述至少二个特征点之间的空间距离和/或空间角度。Calculating a spatial distance and/or a spatial angle between the at least two feature points according to coordinate values of the X-Y-Z three-dimensional coordinates of each of the feature points.
  5. 一种解密方法,所述方法包括:A decryption method, the method comprising:
    基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点;Capturing feature points on the photographic object that match the feature information in the encrypted information by the camera on the mobile terminal based on the pre-stored encrypted information;
    获取所述特征点在空间中的第三位置信息;Obtaining third location information of the feature point in the space;
    在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息匹配时,进行解密。Decryption is performed when it is determined that the third location information of the feature point matches the second location information stored in the encrypted information.
  6. 根据权利5所述的方法,其中,所述获取所述特征点在空间中的第三位置信息之后,还包括:The method of claim 5, wherein the obtaining the third location information of the feature point in the space further comprises:
    在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息的差值超过预先设置的范围,则返回执行基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点。After determining that the difference between the third location information of the feature point and the second location information stored in the encryption information exceeds a preset range, returning to performing execution based on the pre-stored encryption information, capturing the image by the camera on the mobile terminal A feature point that matches the feature information in the encrypted information.
  7. 一种加密装置,所述加密装置包括:An encryption device, the encryption device comprising:
    第一获取单元,配置为通过移动终端上的摄像头获取同一拍摄对象的多个照片;a first acquiring unit configured to acquire a plurality of photos of the same photographic subject by using a camera on the mobile terminal;
    第二获取单元,配置为选取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点的在各照片上的第一位置信息及特征信息;a second acquiring unit, configured to select the same feature point on each photo of the plurality of photos, and obtain first location information and feature information of each of the same feature points on each photo;
    第三获取单元,配置为基于每一照片上的相同特征点的所述第一位置 信息,获取所述相同特征点的在空间中的第二位置信息;a third obtaining unit configured to be based on the first location of the same feature point on each photo Information, acquiring second location information in the space of the same feature point;
    加密单元,配置为根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密。The encryption unit is configured to perform encryption according to the feature information of the same feature point and the acquired second location information.
  8. 根据权利要求7所述的加密装置,其中,所述第二获取单元,配置为:The encryption device according to claim 7, wherein the second obtaining unit is configured to:
    获取在所述多个照片的每一照片上的至少二个相同特征点;Obtaining at least two identical feature points on each of the plurality of photos;
    并获取所述至少二个相同特征点在各照片上的第一位置信息及特征信息。And acquiring first location information and feature information of the at least two identical feature points on each photo.
  9. 根据权利要求8所述的加密装置,其中,所述第三获取单元还包括:The encryption device of claim 8, wherein the third obtaining unit further comprises:
    计算单元,配置为根据所述第一位置信息、预先存储的所述摄像头的焦距信息以及所述摄像头的位置信息计算第二位置信息;a calculating unit, configured to calculate second location information according to the first location information, the focal length information of the camera stored in advance, and the location information of the camera;
    其中,所述第二位置信息至少包括至少二个特征点之间的空间距离和/或空间角度。The second location information includes at least a spatial distance and/or a spatial angle between at least two feature points.
  10. 一种解密装置,所述解密装置包括:A decryption device, the decryption device comprising:
    捕捉单元,配置为基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点;a capture unit configured to capture, by the camera on the mobile terminal, a feature point on the photographic object that matches the feature information in the encrypted information, based on the pre-stored encrypted information;
    获取单元,配置为获取所述特征点在空间中的第三位置信息;An acquiring unit, configured to acquire third location information of the feature point in the space;
    解密单元,配置为在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息匹配时,进行解密。The decrypting unit is configured to perform decryption when determining that the third location information of the feature point matches the second location information stored in the encrypted information.
  11. 根据权利要求10所述的解密装置,其中,所述解密装置还包括:The decrypting apparatus according to claim 10, wherein said decrypting means further comprises:
    返回单元,配置为在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息的差值超过预先设置的范围,则返回执行基于预先存储的加密信息,通过移动终端上的摄像头捕捉拍摄对象上与加密信息中的特征信息匹配的特征点。a returning unit configured to: after determining that the difference between the third location information of the feature point and the second location information stored in the encryption information exceeds a preset range, returning to performing execution of the pre-stored encrypted information through the mobile terminal The camera captures feature points on the subject that match the feature information in the encrypted information.
  12. 一种移动终端,所述移动终端包括摄像头及处理器,所述摄像头 配置为获取同一拍摄对象的多个照片;所述处理器配置为获取在所述多个照片的每一照片上的相同特征点,并获取所述相同特征点的在各照片上的第一位置信息及特征信息;基于每一照片上的相同特征点的所述第一位置信息,获取所述相同特征点的在空间中的第二位置信息;根据相同特征点的所述特征信息、及获取的所述第二位置信息进行加密。A mobile terminal includes a camera and a processor, the camera Configuring to acquire a plurality of photos of the same photographic subject; the processor configured to acquire the same feature points on each of the plurality of photos, and obtain a first location on each photo of the same feature points Information and feature information; acquiring, according to the first location information of the same feature point on each photo, second location information in the space of the same feature point; obtaining the feature information according to the same feature point, and acquiring The second location information is encrypted.
  13. 一种移动终端,所述移动终端包括摄像头及处理器,所述摄像头配置为基于预先存储的加密信息,捕捉拍摄对象上与加密信息中的特征信息匹配的特征点;所述处理器配置为获取所述特征点在空间中的第三位置信息;在确定所述特征点的第三位置信息与加密信息中存储的第二位置信息匹配时,进行解密。A mobile terminal, comprising: a camera and a processor, the camera configured to capture feature points on the photographic object that match the feature information in the encrypted information based on the pre-stored encrypted information; the processor is configured to acquire The third location information of the feature point in the space; when the third location information of the feature point is determined to match the second location information stored in the encrypted information, decryption is performed.
  14. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至4任一项所述的加密方法。A computer storage medium having stored therein computer executable instructions for performing the encryption method of any one of claims 1 to 4.
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求5、6任一项所述的解密方法。 A computer storage medium having stored therein computer executable instructions for performing the decryption method of any one of claims 5 and 6.
PCT/CN2015/076495 2014-12-30 2015-04-13 Encryption/decryption method and apparatus, mobile terminal and computer storage medium WO2016107010A1 (en)

Applications Claiming Priority (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
CN201410853748.6 2014-12-30

Publications (1)

Publication Number Publication Date
WO2016107010A1 true WO2016107010A1 (en) 2016-07-07

Family

ID=56284067

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076495 WO2016107010A1 (en) 2014-12-30 2015-04-13 Encryption/decryption method and apparatus, mobile terminal and computer storage medium

Country Status (2)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055653A1 (en) * 2007-08-24 2009-02-26 Inventec Corporation Computerized data management method and computerized 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
CN103324879A (en) * 2013-07-05 2013-09-25 公安部第三研究所 System and method for identification verification on mobile terminal and based on face recognition and intelligent card
CN104091158A (en) * 2014-07-10 2014-10-08 上海方付通商务服务有限公司 Anti-attack palm print authentication method and authentication system with anti-attack palm print authentication method applied

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4734980B2 (en) * 2005-03-15 2011-07-27 オムロン株式会社 Face authentication device and control method therefor, electronic device equipped with face authentication device, face authentication device control program, and recording medium recording the program
WO2007099834A1 (en) * 2006-03-01 2007-09-07 Nec Corporation Face authentication device, face authentication method, and program
CN101154264B (en) * 2006-09-27 2011-01-26 中国科学院自动化研究所 Large field-depth iris image capturing system and method based on multiple cameras with fixed focus
JP5547551B2 (en) * 2010-05-20 2014-07-16 Necエンジニアリング株式会社 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
EP2991027B1 (en) * 2013-04-26 2020-02-19 Fujitsu Limited Image processing program, image processing method and information terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055653A1 (en) * 2007-08-24 2009-02-26 Inventec Corporation Computerized data management method and computerized 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
CN103324879A (en) * 2013-07-05 2013-09-25 公安部第三研究所 System and method for identification verification on mobile terminal and based on face recognition and intelligent card
CN104091158A (en) * 2014-07-10 2014-10-08 上海方付通商务服务有限公司 Anti-attack palm print authentication method and authentication system with anti-attack palm print authentication method applied

Also Published As

Publication number Publication date
CN105809049B (en) 2019-11-05
CN105809049A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
WO2019205742A1 (en) Image processing method, apparatus, computer-readable storage medium, and electronic device
JP2018023158A (en) Preview image display method and device, and terminal
WO2019137006A1 (en) Virtual and real object synthesis method and apparatus
JP6436398B2 (en) Image capture method
CN111225157B (en) Focus tracking method and related equipment
WO2014071840A1 (en) Method and device for taking photo and video
WO2015131701A1 (en) Method and device for taking photograph, and computer storage medium
WO2014012488A1 (en) Method and device for implementing augmented reality
CN109934931B (en) Method and device for collecting image and establishing target object recognition model
WO2016184131A1 (en) Image photographing method and apparatus based on dual cameras and computer storage medium
JP2015115839A5 (en)
WO2014187265A1 (en) Photo-capture processing method, device and computer storage medium
JP2017525193A (en) Photography method, apparatus and terminal
WO2015117404A1 (en) Object display method for mobile terminal, and mobile terminal
WO2012019517A1 (en) Method, device and system for processing video in video communication
WO2019218943A1 (en) Front dual camera-based security verification method and electronic device
WO2020042494A1 (en) Method for screenshot of vr scene, device and storage medium
JP2017135518A5 (en)
KR20130039522A (en) Apparatus and method of creating 3 dimension panorama image
WO2014183533A1 (en) Image processing method, user terminal, and image processing terminal and system
US10291835B2 (en) Information processing apparatus, imaging apparatus, information processing method, and imaging system
WO2015192615A1 (en) Image file sharing method and apparatus, and computer storage medium
WO2018092378A1 (en) Information processing device, information processing method, and program
WO2016107010A1 (en) Encryption/decryption method and apparatus, mobile terminal and computer storage medium
CN105025203B (en) With reference to the image encipher-decipher method and its image capturing device of physiological characteristic

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15874703

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15874703

Country of ref document: EP

Kind code of ref document: A1