CN107808092A - A kind of unlocking method and mobile terminal - Google Patents
A kind of unlocking method and mobile terminal Download PDFInfo
- Publication number
 - CN107808092A CN107808092A CN201711045882.3A CN201711045882A CN107808092A CN 107808092 A CN107808092 A CN 107808092A CN 201711045882 A CN201711045882 A CN 201711045882A CN 107808092 A CN107808092 A CN 107808092A
 - Authority
 - CN
 - China
 - Prior art keywords
 - mobile terminal
 - encoding
 - graphs
 - image
 - graphic code
 - 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.)
 - Granted
 
Links
Classifications
- 
        
- G—PHYSICS
 - G06—COMPUTING OR CALCULATING; COUNTING
 - G06F—ELECTRIC DIGITAL DATA PROCESSING
 - G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
 - G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
 - G06F21/31—User authentication
 - G06F21/36—User authentication by graphic or iconic representation
 
 - 
        
- H—ELECTRICITY
 - H04—ELECTRIC COMMUNICATION TECHNIQUE
 - H04M—TELEPHONIC COMMUNICATION
 - H04M1/00—Substation equipment, e.g. for use by subscribers
 - H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
 - H04M1/724—User interfaces specially adapted for cordless or mobile telephones
 - H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
 - H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
 - H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
 
 - 
        
- H—ELECTRICITY
 - H04—ELECTRIC COMMUNICATION TECHNIQUE
 - H04M—TELEPHONIC COMMUNICATION
 - H04M1/00—Substation equipment, e.g. for use by subscribers
 - H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
 - H04M1/724—User interfaces specially adapted for cordless or mobile telephones
 - H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
 
 
Landscapes
- Engineering & Computer Science (AREA)
 - Theoretical Computer Science (AREA)
 - Computer Security & Cryptography (AREA)
 - Signal Processing (AREA)
 - Computer Networks & Wireless Communication (AREA)
 - Human Computer Interaction (AREA)
 - Physics & Mathematics (AREA)
 - General Physics & Mathematics (AREA)
 - General Engineering & Computer Science (AREA)
 - Software Systems (AREA)
 - Computer Hardware Design (AREA)
 - Multimedia (AREA)
 - Business, Economics & Management (AREA)
 - General Business, Economics & Management (AREA)
 - Telephone Function (AREA)
 - Mobile Radio Communication Systems (AREA)
 
Abstract
本发明提供一种解锁方法和移动终端,该方法包括:若所述移动终端为锁屏状态,则采集目标信息,并将所述目标信息转换成图形编码;将所述图形编码与预存图形编码匹配;若所述图形编码与所述预存图形编码的匹配成功,则解锁。本发明实施例能够使移动终端通过采集目标信息,并根据目标信息转换成的图形编码与预存图形编码匹配成功,进而完成解锁。通过上述解锁步骤提供了一种图形编码解锁的方式,从而丰富了移动终端的解锁方式。
The present invention provides an unlocking method and a mobile terminal. The method includes: if the mobile terminal is in a locked screen state, collecting target information and converting the target information into graphic codes; combining the graphic codes with the pre-stored graphic codes Matching; if the graphic code is successfully matched with the pre-stored graphic code, it will be unlocked. The embodiments of the present invention enable the mobile terminal to acquire target information, and successfully match the graphic code converted from the target information with the pre-stored graphic code, thereby completing unlocking. Through the above unlocking steps, a pattern coding unlocking method is provided, thereby enriching the unlocking methods of the mobile terminal.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种解锁方法和移动终端。The present invention relates to the field of communication technology, in particular to an unlocking method and a mobile terminal.
背景技术Background technique
随着移动终端的迅速发展,移动终端已经成为人们生活中必不可少的一种工具,并且为用户生活的各个方面带来了极大的便捷。同时,移动终端特在人们的生活中占据了越来越重要的地位,由此引发的隐私问题也越来越得到人们的重视。为了保护人们的隐私,移动终端上都设置了锁定功能。在现有技术中,一般是通过指纹或者密码来进行解锁。可见,当前移动终端的解锁方式较为单一。With the rapid development of mobile terminals, mobile terminals have become an indispensable tool in people's lives, and have brought great convenience to all aspects of users' lives. At the same time, mobile terminals are becoming more and more important in people's lives, and the privacy issues caused by them are getting more and more attention. In order to protect people's privacy, locking functions are all set on mobile terminals. In the prior art, unlocking is generally performed through a fingerprint or a password. It can be seen that the current unlocking method of the mobile terminal is relatively single.
发明内容Contents of the invention
本发明实施例提供一种解锁方法和移动终端,以解决移动终端的解锁方式较为单一的问题。Embodiments of the present invention provide an unlocking method and a mobile terminal to solve the problem that the unlocking method of the mobile terminal is relatively single.
为了解决上述技术问题,本发明是这样实现的:一种解锁方法,应用于移动终端,包括:In order to solve the above technical problems, the present invention is implemented as follows: an unlocking method applied to a mobile terminal, comprising:
若所述移动终端为锁屏状态,则采集目标信息,并将所述目标信息转换成图形编码;If the mobile terminal is in a locked screen state, collecting target information, and converting the target information into graphic codes;
将所述图形编码与预存图形编码匹配;matching the graphic code with the pre-stored graphic code;
若所述图形编码与所述预存图形编码的匹配成功,则解锁。If the matching of the graphic code and the pre-stored graphic code is successful, then unlocking.
第一方面,本发明实施例提供了一种解锁方法,应用于移动终端,包括:In the first aspect, an embodiment of the present invention provides an unlocking method applied to a mobile terminal, including:
若所述移动终端为锁屏状态,则采集目标信息,并将所述目标信息转换成图形编码;If the mobile terminal is in a locked screen state, collecting target information, and converting the target information into graphic codes;
将所述图形编码与预存图形编码匹配;matching the graphic code with the pre-stored graphic code;
若所述图形编码与所述预存图形编码的匹配成功,则解锁。If the matching of the graphic code and the pre-stored graphic code is successful, then unlocking.
第二方面,本发明实施例还提供一种移动终端,包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, including:
转换模块,用于若所述移动终端为锁屏状态,则采集目标信息,并将所述目标信息转换成图形编码;A conversion module, configured to collect target information if the mobile terminal is in a locked screen state, and convert the target information into graphic codes;
匹配模块,用于将所述图形编码与预存图形编码匹配;A matching module, configured to match the graphic code with the pre-stored graphic code;
解锁模块,用于若所述图形编码与所述预存图形编码的匹配成功,则解锁。An unlocking module, configured to unlock if the pattern code matches the pre-stored pattern code successfully.
第三方面,本发明实施例还提供一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述解锁方法中的步骤。In the third aspect, the embodiment of the present invention also provides a mobile terminal, including: a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the computer program When implementing the steps in the unlocking method above.
在本发明实施例中,通过提供一种解锁方法,包括:若移动终端为锁屏状态,则采集目标信息,并将目标信息转换成图形编码;将图形编码与预存图形编码匹配;若图形编码与预存图形编码的匹配成功,则解锁。能够使移动终端通过采集目标信息,并根据目标信息转换成的图形编码与预存图形编码匹配成功,进而完成解锁。通过上述解锁步骤提供了一种图形编码解锁的方式,从而丰富了移动终端的解锁方式。In an embodiment of the present invention, an unlocking method is provided, including: if the mobile terminal is in a locked screen state, collecting target information and converting the target information into graphic codes; matching the graphic codes with pre-stored graphic codes; If the match with the pre-stored graphic code is successful, it will be unlocked. The mobile terminal can collect target information, and successfully match the pre-stored graphic code with the graphic code converted from the target information, so as to complete unlocking. Through the above unlocking steps, a pattern coding unlocking method is provided, thereby enriching the unlocking methods of the mobile terminal.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明实施例提供的一种解锁方法的流程图;FIG. 1 is a flowchart of an unlocking method provided by an embodiment of the present invention;
图2是本发明实施例提供的另一种解锁方法的流程图;Fig. 2 is a flowchart of another unlocking method provided by an embodiment of the present invention;
图3是本发明实施例提供的一种移动终端的结构图;FIG. 3 is a structural diagram of a mobile terminal provided by an embodiment of the present invention;
图4是本发明实施例提供的另一种移动终端的结构图;FIG. 4 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;
图5是本发明实施例提供的另一种移动终端的结构图;FIG. 5 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;
图6是本发明实施例提供的另一种移动终端的结构图;FIG. 6 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;
图7是本发明实施例提供的另一种移动终端的结构图。Fig. 7 is a structural diagram of another mobile terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参见图1,图1是本发明实施例提供的一种解锁方法的流程图,如图1所示,包括以下步骤:Referring to Figure 1, Figure 1 is a flowchart of an unlocking method provided by an embodiment of the present invention, as shown in Figure 1, including the following steps:
步骤101、若所述移动终端为锁屏状态,则采集目标信息,并将所述目标信息转换成图形编码。Step 101. If the mobile terminal is in a locked screen state, collect target information, and convert the target information into graphic codes.
其中,图形编码可以是二维码,当然,本发明实施例中,图形编码也可以是三维码,或者四维码等。Wherein, the graphic code may be a two-dimensional code, and of course, in the embodiment of the present invention, the graphic code may also be a three-dimensional code or a four-dimensional code.
其中,移动终端为锁屏状态时,用户可以触控移动终端锁屏界面的快捷键。例如:可以在移动终端的锁屏界面上设置一个图形编码解锁的快捷键,用户触控上述快捷键之后,移动终端可以显示图形编码解锁的界面,当显示上述界面时,移动终端可以采集目标信息,可选的,目标信息可以包括图像、音频、视频和文字中的至少一项,当然,目标信息还可以包括其他可以转化成图形编码的信息。移动终端将采集到的目标信息转换成图形编码。其中,上述图像可以通过摄像头进行采集,而上述音频可以麦克风进行采集,而上述视频可以通过摄像头和麦克风进行采集,而上述文字可以是接收用户在上述界面中输入的文字。当采集到上述目标信息后,上述图像或文字可以直接转化成图形编码。而上述视频或上述音频可以通过BASE64编码方式编码为字符串数据,然后再将上述字符串数据转化成图形编码,其中,BASE64编码方式为一种基于64个可打印字符来表示二进制数据的方法,可用于在超文本传输协议(HyperText Transfer Protocol,HTTP)环境下传递较长的标识信息。当然,上述音频也可以先转化为文字,再将该文字转化为图形编码;上述视频可以先转化为动态图片,再将该动态图片转化为动态图形编码。Wherein, when the mobile terminal is in a lock screen state, the user may touch a shortcut key on the lock screen interface of the mobile terminal. For example: a shortcut key for graphic code unlocking can be set on the lock screen interface of the mobile terminal. After the user touches the above shortcut key, the mobile terminal can display the interface for graphic code unlocking. When the above interface is displayed, the mobile terminal can collect target information Optionally, the target information may include at least one of image, audio, video, and text, and of course, the target information may also include other information that can be converted into graphic codes. The mobile terminal converts the collected target information into graphic codes. Wherein, the above-mentioned image can be collected by a camera, the above-mentioned audio can be collected by a microphone, and the above-mentioned video can be collected by a camera and a microphone, and the above-mentioned text can be text input by a user in the above-mentioned interface. After the above-mentioned target information is collected, the above-mentioned image or text can be directly converted into a graphic code. The above-mentioned video or audio can be encoded into string data by BASE64 encoding, and then the above-mentioned string data can be converted into graphic encoding, wherein, BASE64 encoding is a method of representing binary data based on 64 printable characters, It can be used to transmit longer identification information in a hypertext transfer protocol (HyperText Transfer Protocol, HTTP) environment. Of course, the above-mentioned audio can also be converted into text first, and then the text is converted into a graphic code; the above-mentioned video can be converted into a dynamic picture first, and then the dynamic picture is converted into a dynamic graphic code.
步骤102、将所述图形编码与预存图形编码匹配。Step 102. Match the graphic code with the pre-stored graphic code.
其中,预存图形编码存储在移动终端内,例如:预存图形编码可以存储在移动终端的相册内,当然,在用户想要更换预存图形编码的时候,用户可以在相册内直接对预存图形编码进行删除。Wherein, the pre-stored graphic code is stored in the mobile terminal, for example: the pre-stored graphic code can be stored in the photo album of the mobile terminal, of course, when the user wants to replace the pre-stored graphic code, the user can directly delete the pre-stored graphic code in the photo album .
其中,预存图形编码的得到过程与步骤101中图形编码的过程一样。在此不再赘述。Wherein, the process of obtaining the pre-stored graphic code is the same as the process of the graphic code in step 101 . I won't repeat them here.
需要说明的是,由于步骤102将上述图形编码与预存图形编码匹配,避免了拍摄图像与预存图像的时候外界的光线亮度不一样,从而导致拍摄得到的图像与预存图像的亮度或者色彩存在差异,从而导致图像与预存图像匹配的成功率较低,使用上不便利;并且还能避免将两幅图像进行匹配,由于需要将两幅图像上的每一点或者每一个角落的信息都需要匹配,导致匹配时间较长。当然,如果目标信息包括音频或者视频,则音频或者视频同样会受到外界条件(如外界杂音)的影响。综上所述,使用图形编码与预存图形编码匹配的方式受外界条件(如光线强度)影响小,从而导致其信息的稳定性好,使用方便,并且匹配的信息少,从而导致匹配速度更快。另一方面,可以避免移动终端中预存的秘钥被其他用户发现,如果转化为图形编码,则使其他用户无法通过肉眼直接得知预存图形编码内部的信息,提高了移动终端的安全性。It should be noted that since step 102 matches the above-mentioned graphic code with the pre-stored graphic code, it is avoided that the brightness of the external light is not the same when the captured image is different from the pre-stored image, resulting in differences in brightness or color between the captured image and the pre-stored image. As a result, the success rate of matching the image with the pre-stored image is low, and it is inconvenient to use; and it can also avoid matching the two images, because it is necessary to match the information of every point or every corner of the two images, resulting in The matching time is longer. Of course, if the target information includes audio or video, the audio or video will also be affected by external conditions (such as external noise). To sum up, the way of using graphic codes to match pre-stored graphic codes is less affected by external conditions (such as light intensity), which leads to good stability of information, easy use, and less matching information, resulting in faster matching speed . On the other hand, it can prevent the secret key pre-stored in the mobile terminal from being discovered by other users. If it is converted into a graphic code, other users cannot directly know the information inside the pre-stored graphic code by naked eyes, which improves the security of the mobile terminal.
步骤103、若所述图形编码与所述预存图形编码的匹配成功,则解锁。Step 103, unlock if the pattern code matches the pre-stored pattern code successfully.
其中,图形编码与预存图形编码的匹配度达到95%,即可判定图形编码与预存图形编码的匹配成功。当然,判定图形编码与预存图形编码的匹配成功的匹配度的具体数值可以根据用户的需要来进行设定。Wherein, if the matching degree of the graphic code and the pre-stored graphic code reaches 95%, it can be determined that the graphic code and the pre-stored graphic code are successfully matched. Certainly, the specific numerical value of the matching degree for judging the successful matching between the graphic code and the pre-stored graphic code can be set according to the needs of the user.
其中,判定图形编码与预存图形编码的匹配成功的匹配度的具体数值可以是移动终端默认的,也可以根据用户的需要来进行修改。Wherein, the specific numerical value of the matching degree for judging the successful matching between the graphic code and the pre-stored graphic code may be the default value of the mobile terminal, or may be modified according to the needs of the user.
其中,若图形编码与预存图形编码匹配失败,则移动终端可以选择继续依次执行步骤101、102和103,即用以排除因为一些偶然因素导致的匹配失败。需要说明的是,循环执行步骤101、102和103可以在循环2次或者3次之后停止。另外,若图形编码与预存图形编码匹配失败,还可以直接在移动终端上显示匹配失败的提示信息。Wherein, if the pattern code fails to match the pre-stored pattern code, the mobile terminal may choose to continue to perform steps 101, 102 and 103 in sequence, ie to rule out the matching failure caused by some accidental factors. It should be noted that the cyclic execution of steps 101, 102 and 103 may stop after 2 or 3 cycles. In addition, if the pattern code fails to match with the pre-stored pattern code, a prompt message of the match failure can also be directly displayed on the mobile terminal.
其中,上述步骤具体执行可以如下所示:若移动终端为锁屏状态,则采集用户随身携带的门禁卡的图像,并将上述门禁卡的图像转换成门禁卡图像相关联的图形编码,将上述图形编码与之前预存的图形编码匹配,若两者的匹配度达到95%,即匹配成功,就完成移动终端的解锁。Wherein, the specific execution of the above steps can be as follows: if the mobile terminal is in the lock screen state, then collect the image of the access control card carried by the user, and convert the image of the above access control card into the graphic code associated with the access control card image, and convert the above The graphic code is matched with the previously stored graphic code, and if the matching degree of the two reaches 95%, that is, the matching is successful, and the unlocking of the mobile terminal is completed.
其中,上述移动终端可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(Personal Digital Assistant,PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等等。Wherein, the above-mentioned mobile terminal can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (Personal Digital Assistant, PDA), a mobile Internet device (Mobile Internet Device, MID) or a wearable Wearable Device and so on.
本发明实施例中,通过以下步骤:若移动终端为锁屏状态,则采集目标信息,并将目标信息转换成图形编码;将图形编码与预存图形编码匹配;若图形编码与预存图形编码的匹配成功,则解锁。能够使移动终端通过采集目标信息,并根据目标信息转换成的图形编码与预存图形编码匹配成功,进而完成解锁。通过上述解锁步骤可以丰富移动终端的解锁方式。In the embodiment of the present invention, the following steps are adopted: if the mobile terminal is in the lock screen state, then collect target information, and convert the target information into a graphic code; match the graphic code with the pre-stored graphic code; if the graphic code matches the pre-stored graphic code If successful, it is unlocked. The mobile terminal can collect target information, and successfully match the pre-stored graphic code with the graphic code converted from the target information, so as to complete unlocking. Through the above unlocking steps, the unlocking methods of the mobile terminal can be enriched.
参见图2,图2是本发明实施例提供的一种解锁方法的流程图。本实施例与上个实施例的主要区别在于图形编码与预存图形编码匹配失败时,移动终端会在锁屏界面显示解锁提示消息,上述解锁提示信息包括预存图像的关键信息。如图2所示,包括以下步骤:Referring to Fig. 2, Fig. 2 is a flowchart of an unlocking method provided by an embodiment of the present invention. The main difference between this embodiment and the previous embodiment is that when the graphic code fails to match the pre-stored graphic code, the mobile terminal will display an unlocking prompt message on the lock screen interface, and the unlocking prompt message includes key information of the pre-stored image. As shown in Figure 2, it includes the following steps:
步骤201、若所述移动终端为锁屏状态,则采集目标信息,并将所述目标信息转换成图形编码。Step 201. If the mobile terminal is in a locked screen state, collect target information, and convert the target information into graphic codes.
其中,移动终端为锁屏状态时,用户可以触控移动终端锁屏界面的快捷键。例如:可以在移动终端的锁屏界面上设置一个图形编码解锁的快捷键,用户触控上述快捷键之后,移动终端可以显示图形编码解锁的界面,在这个界面上,移动终端可以采集目标信息,可选的,目标信息可以包括图像、音频、视频和文字中的至少一项,当然,目标信息还可以包括其他可以转化成图形编码的信息。移动终端将采集到的目标信息转换成图形编码。Wherein, when the mobile terminal is in a lock screen state, the user may touch a shortcut key on the lock screen interface of the mobile terminal. For example: a shortcut key for graphic code unlocking can be set on the lock screen interface of the mobile terminal. After the user touches the above shortcut key, the mobile terminal can display the interface of graphic code unlocking. On this interface, the mobile terminal can collect target information, Optionally, the target information may include at least one of image, audio, video and text, and of course, the target information may also include other information that can be converted into graphic codes. The mobile terminal converts the collected target information into graphic codes.
可选的,所述目标信息包括图像,步骤201包括:Optionally, the target information includes an image, and step 201 includes:
通过所述摄像头采集至少一张图像,将所述至少一张图像转换成图形编码。At least one image is collected by the camera, and the at least one image is converted into a graphic code.
其中,通过摄像头采集至少一张图像。当摄像头采集到一张图像时,直接将上述图像转换成图形编码。将图像转换成图形编码的过程可以在摄像头完成采集图像后,自动进行;当然,也可以在摄像头完成采集图像后,显示是否需要转换成图形编码的选项,用户根据需求来进行选择。当摄像头采集到两张图像或者多于两张图像,可以将两张图像或者多于两张图像拼接成一张图像,再将拼接成的图像转换为图形编码。Wherein, at least one image is collected through a camera. When the camera captures an image, it directly converts the above image into a graphic code. The process of converting an image into a graphic code can be performed automatically after the camera finishes capturing the image; of course, after the camera finishes capturing the image, the option of whether to convert into a graphic code can be displayed, and the user can choose according to the requirement. When the camera captures two images or more than two images, the two images or more than two images can be spliced into one image, and then the spliced image can be converted into a graphic code.
其中,移动终端通过摄像头采集的至少一张图像,和根据上述至少一张图像转换成的图形编码,均可以存储在移动终端内。Wherein, the at least one image collected by the mobile terminal through the camera, and the graphic code converted according to the at least one image can be stored in the mobile terminal.
本发明实施例中,通过摄像头采集至少一张图像,并将至少一张图像转换成图形编码,使得获得图形编码的过程更加简洁,操作上更加简单,并且通过图像转换成图形编码,使得图形编码的信息更加完整。In the embodiment of the present invention, at least one image is collected by the camera, and at least one image is converted into a graphic code, so that the process of obtaining the graphic code is simpler and easier to operate, and the image is converted into a graphic code, so that the graphic code information is more complete.
可选的,通过所述摄像头采集至少一张图像,将所述至少一张图像转换成图形编码,包括:Optionally, at least one image is collected by the camera, and the at least one image is converted into a graphic code, including:
通过所述摄像头采集至少两张图像;collecting at least two images through the camera;
接收用户输入的拼接指令,根据所述拼接指令对所述至少两张图像进行拼接,得到目标图像;receiving a splicing instruction input by a user, and splicing the at least two images according to the splicing instruction to obtain a target image;
将所述目标图像转换成图形编码。Convert the target image into graphics code.
其中,当移动终端通过摄像头采集到至少两张图像,需要将至少两张图像拼接成一张图像,再将拼接成的图像转换成图形编码。Wherein, when the mobile terminal collects at least two images through the camera, at least two images need to be spliced into one image, and then the spliced image is converted into a graphic code.
其中,将至少两张图像拼接成一张图像的过程可以如下:摄像头采集到至少两张图像,然后用户根据需求从中选择图像,例如:可以从上述至少两张图像中选择1号图像和2号图像,然后选择拼接模板,将1号图像和2号图像拼接成一张图像。拼接完成的图像中,除包含有1号图像和2号图像的图像特征外,还可以包含有拼接模板的一些图像特征,如一个卡通图案或者一段文字。需要说明的是,1号图像和2号图像选择顺序不一样,会导致1号图像和2号图像在拼接完成的图像中的位置不一样,进而导致转换成的图形编码的信息也会不一样。故而,存在可能选择的两张图像是一样的,但是由于选择顺序不一样,导致转换成的图形编码不一样,最后一种图形编码是可以与预存图形编码匹配成功的,而另一张图形编码匹配失败的情况。需要说明的是,选择的图像的数量越多,转换成的图形编码的类型也就越多。Wherein, the process of splicing at least two images into one image can be as follows: the camera captures at least two images, and then the user selects images from them according to requirements, for example: image No. 1 and image No. 2 can be selected from the above at least two images , and then select a stitching template to stitch image No. 1 and image No. 2 into one image. In addition to the image features of the No. 1 image and the No. 2 image, the stitched image may also include some image features of the stitching template, such as a cartoon pattern or a piece of text. It should be noted that the selection order of image No. 1 and image No. 2 is not the same, which will lead to different positions of image No. 1 and image No. 2 in the spliced image, which will lead to different information of the converted graphic code. . Therefore, it is possible that the two selected images are the same, but the converted image codes are different due to the different selection order. The last image code can be successfully matched with the pre-stored image code, while the other image code Cases where the match fails. It should be noted that, the more images are selected, the more types of graphics codes are converted.
本发明实施例中,通过摄像头采集至少两张图像,并根据至少两张图像拼接成一张目标图像,再根据目标图像转换成图形编码,最后将上述图形编码与预存图形编码匹配。由于选择的图像的顺序不一样,图形编码也会不一样,被其他用户测试出图形编码的难度也就越大,从而导致移动终端的保密性越好。In the embodiment of the present invention, at least two images are collected by the camera, a target image is spliced according to the at least two images, and then converted into a graphic code according to the target image, and finally the above graphic code is matched with the pre-stored graphic code. Since the order of the selected images is different, the graphic encoding will also be different, and it will be more difficult for other users to test the graphic encoding, resulting in better confidentiality of the mobile terminal.
步骤202、将所述图形编码与预存图形编码匹配。Step 202. Match the graphic code with the pre-stored graphic code.
其中,预存图形编码存储在移动终端内,例如:预存图形编码可以存储在移动终端的相册内,当然,在用户想要更换预存图形编码的时候,用户可以在相册内直接对预存图形编码进行删除。Wherein, the pre-stored graphic code is stored in the mobile terminal, for example: the pre-stored graphic code can be stored in the photo album of the mobile terminal, of course, when the user wants to replace the pre-stored graphic code, the user can directly delete the pre-stored graphic code in the photo album .
其中,预存图形编码的得到过程与步骤101中图形编码的过程一样。在此不再赘述。Wherein, the process of obtaining the pre-stored graphic code is the same as the process of the graphic code in step 101 . I won't repeat them here.
步骤203、若所述图形编码与所述预存图形编码的匹配成功,则解锁。Step 203, unlock if the pattern code matches the pre-stored pattern code successfully.
其中,图形编码与预存图形编码的匹配度达到95%,即可判定图形编码与预存图形编码的匹配成功。当然,判定图形编码与预存图形编码的匹配成功的匹配度的具体数值可以根据用户的需要来进行设定。Wherein, if the matching degree of the graphic code and the pre-stored graphic code reaches 95%, it can be determined that the graphic code and the pre-stored graphic code are successfully matched. Certainly, the specific numerical value of the matching degree for judging the successful matching between the graphic code and the pre-stored graphic code can be set according to the needs of the user.
其中,判定图形编码与预存图形编码的匹配成功的匹配度的具体数值可以是移动终端默认的,也可以根据用户的需要来进行修改。Wherein, the specific numerical value of the matching degree for judging the successful matching between the graphic code and the pre-stored graphic code may be the default value of the mobile terminal, or may be modified according to the needs of the user.
可选的,步骤203包括:Optionally, step 203 includes:
若所述图形编码与所述预存图形编码的匹配成功,则采集所述移动终端的位置信息;If the graphic code matches the pre-stored graphic code successfully, then collect the location information of the mobile terminal;
判断所述位置信息表示的地理位置是否为所述移动终端预先记录的常驻地理位置;judging whether the geographic location indicated by the location information is the pre-recorded resident geographic location of the mobile terminal;
若所述地理位置为所述移动终端预先记录的常驻地理位置,则解锁。If the geographic location is the pre-recorded resident geographic location of the mobile terminal, unlock it.
其中,移动终端预先记录的常驻地理位置可以包括用户的常住地址、户口所在地、工作地址和经常光顾的地理位置中的至少一种。上述地理位置可以是用户预先设置的,也可以是移动终端自动捕捉并记录的。Wherein, the resident geographic location pre-recorded by the mobile terminal may include at least one of the user's resident address, household registration location, work address, and frequently visited geographic location. The aforementioned geographic location may be preset by the user, or may be automatically captured and recorded by the mobile terminal.
其中,上述场景可以是在移动终端丢失,预存图形编码的信息也被别人得知的情况下,防止移动终端被别的用户使用。Wherein, the above scenario may be to prevent the mobile terminal from being used by other users when the mobile terminal is lost and the information of the pre-stored graphic code is known to others.
本发明实施例中,移动终端在图形编码与预存图形编码匹配成功后,采集移动终端的位置信息,并判断上述位置信息表示的地理位置是否为预先记录的常驻地理位置,若判断是,则解锁。通过上述步骤,避免了移动终端被别的用户在不是常驻地理位置使用的情况的发生。进一步的提高了移动终端的保密性和使用安全性。In the embodiment of the present invention, after the graphic code is successfully matched with the pre-stored graphic code, the mobile terminal collects the location information of the mobile terminal, and judges whether the geographic location indicated by the above location information is a pre-recorded resident geographic location. If it is judged to be, then unlock. Through the above steps, it is avoided that the mobile terminal is used by other users in non-resident geographic locations. The confidentiality and use security of the mobile terminal are further improved.
步骤204、若所述图形编码与预存图形编码匹配失败,则查找所述移动终端存储的与所述预存图形编码关联的预存图像。Step 204: If the graphic code fails to match the pre-stored graphic code, search for a pre-stored image stored in the mobile terminal and associated with the pre-stored graphic code.
其中,图形编码与预存图形编码匹配失败,可以是图形编码与预存图形编码的匹配度未达到95%。还可以是用户忘记与预存图形编码关联的预存图像的具体内容,导致采集的图像与预存图像的内容不一致,从而导致图形编码与预存图形编码不能匹配成功。Wherein, the matching between the graphic code and the pre-stored graphic code fails, which may be that the matching degree between the graphic code and the pre-stored graphic code does not reach 95%. It may also be that the user forgets the specific content of the pre-stored image associated with the pre-stored graphic code, resulting in inconsistency between the captured image and the pre-stored image content, resulting in a failure to successfully match the graphic code and the pre-stored graphic code.
其中,与预存图形编码关联的预存图像,移动终端既存储了根据预存图像转化成的预存图形编码,也存储了预存图形编码。当图形编码与预存图形编码匹配失败的时候,移动终端查找到上述预存图像。Wherein, for the pre-stored image associated with the pre-stored graphic code, the mobile terminal not only stores the pre-stored graphic code converted according to the pre-stored image, but also stores the pre-stored graphic code. When the graphic code fails to match the pre-stored graphic code, the mobile terminal finds the above-mentioned pre-stored image.
步骤205、识别所述预存图像的关键信息,并在锁屏界面显示包含所述关键信息的解锁提示消息。Step 205, identifying the key information of the pre-stored image, and displaying an unlock prompt message containing the key information on the lock screen interface.
其中,预存图像的关键信息,可以是银行卡的表面图像、门禁卡的表面图像或者借书证的表面图像等等。Among them, the key information of the pre-stored image may be the surface image of the bank card, the surface image of the access control card or the surface image of the library card, and the like.
需要说明的是,步骤204和步骤205是可选的,例如:匹配失败还可以继续执行步骤201。It should be noted that step 204 and step 205 are optional, for example, if the matching fails, step 201 can still be executed.
本发明实施例中,通过上述步骤,不仅使移动终端通过采集目标信息,并根据目标信息转换成的图形编码与预存图形编码匹配成功,能够完成解锁,还能在匹配失败时,在移动终端上显示解锁提示消息,从而使用户在忘记预存图像的内容时,通过显示包括关键信息的解锁提示消息,进而提醒用户想起预存图像的内容的作用。In the embodiment of the present invention, through the above steps, not only the mobile terminal collects the target information, but also successfully matches the pre-stored graphic code with the graphic code converted from the target information, and can complete the unlocking. Displaying an unlocking prompt message, so that when the user forgets the content of the pre-stored image, by displaying the unlocking prompt message including key information, the user is reminded of the function of the content of the pre-stored image.
参见图3,图3是本发明实施例提供的移动终端的结构图,能实现上述实施例中一种解锁方法中的细节,并达到相同的效果。如图3所示,移动终端300包括:Referring to FIG. 3 , FIG. 3 is a structural diagram of a mobile terminal provided by an embodiment of the present invention, which can implement the details of an unlocking method in the above embodiment and achieve the same effect. As shown in Figure 3, the mobile terminal 300 includes:
转换模块301,用于若所述移动终端为锁屏状态,则采集目标信息,并将所述目标信息转换成图形编码;A conversion module 301, configured to collect target information if the mobile terminal is in a locked screen state, and convert the target information into graphic codes;
匹配模块302,用于将所述图形编码与预存图形编码匹配;A matching module 302, configured to match the graphic code with the pre-stored graphic code;
解锁模块303,用于若所述图形编码与所述预存图形编码的匹配成功,则解锁。An unlocking module 303, configured to unlock if the pattern code matches the pre-stored pattern code successfully.
可选的,所述目标信息包括如下至少一项:图像、音频、视频和文字。Optionally, the target information includes at least one of the following: image, audio, video and text.
可选的,所述目标信息包括图像,所述转换模块301用于通过所述摄像头采集至少一张图像,将所述至少一张图像转换成图形编码。Optionally, the target information includes an image, and the conversion module 301 is configured to collect at least one image through the camera, and convert the at least one image into a graphic code.
可选的,参见图4,所述转换模块301包括:Optionally, referring to FIG. 4, the conversion module 301 includes:
第一采集子模块3011,用于通过所述摄像头采集至少两张图像;The first collection sub-module 3011 is used to collect at least two images through the camera;
拼接子模块3012,用于接收用户输入的拼接指令,根据所述拼接指令对所述至少两张图像进行拼接,得到目标图像;The splicing sub-module 3012 is configured to receive a splicing instruction input by the user, and splice the at least two images according to the splicing instruction to obtain a target image;
转换子模块3013,用于将所述目标图像转换成图形编码。The conversion sub-module 3013 is used to convert the target image into graphic code.
可选的,参见图5,所述移动终端300还包括:Optionally, referring to FIG. 5, the mobile terminal 300 further includes:
查找模块304,用于若所述图形编码与预存图形编码匹配失败,则查找所述移动终端存储的与所述预存图形编码关联的预存图像;A search module 304, configured to search for a pre-stored image associated with the pre-stored graphic code stored in the mobile terminal if the graphic code fails to match the pre-stored graphic code;
显示模块305,用于识别所述预存图像的关键信息,并在锁屏界面显示包含所述关键信息的解锁提示消息。The display module 305 is configured to identify the key information of the pre-stored image, and display an unlock prompt message containing the key information on the lock screen interface.
可选的,参见图6,所述解锁模块303,包括:Optionally, referring to FIG. 6, the unlocking module 303 includes:
第二采集子模块3031,用于若所述图形编码与所述预存图形编码的匹配成功,则采集所述移动终端的位置信息;The second collection sub-module 3031 is configured to collect the location information of the mobile terminal if the pattern code matches the pre-stored pattern code successfully;
判断子模块3032,用于判断所述位置信息表示的地理位置是否为所述移动终端预先记录的常驻地理位置;A judging submodule 3032, configured to judge whether the geographic location represented by the location information is the pre-recorded resident geographic location of the mobile terminal;
解锁子模块3033,用于若所述地理位置为所述移动终端预先记录的常驻地理位置,则解锁。The unlocking submodule 3033 is configured to unlock if the geographic location is the pre-recorded resident geographic location of the mobile terminal.
本发明实施例提供的移动终端300能够实现图1至图2的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。本发明实施例提供的移动终端可以通过采集信息转换成的图形编码与预存图形编码匹配成功,则解锁,提供了一种图形编码解锁的方式,从而丰富了移动终端的解锁方式。The mobile terminal 300 provided by the embodiment of the present invention can implement various processes implemented by the mobile terminal in the method embodiments shown in FIG. 1 to FIG. 2 , and details are not repeated here to avoid repetition. The mobile terminal provided by the embodiment of the present invention can be unlocked if the graphic code converted from the collected information matches the pre-stored graphic code successfully, and a mode of unlocking the graphic code is provided, thereby enriching the unlocking modes of the mobile terminal.
图7为实现本发明各个实施例的一种移动终端的硬件结构示意图。Fig. 7 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
该移动终端700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、处理器710、以及电源711等部件。本领域技术人员可以理解,图7中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 700 includes but not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and Power supply 711 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 7 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.
处理器710,用于:Processor 710, for:
若所述移动终端为锁屏状态,则采集目标信息,并将所述目标信息转换成图形编码。If the mobile terminal is in a locked screen state, collect target information, and convert the target information into graphic codes.
将所述图形编码与预存图形编码匹配。Match the graphic code with the pre-stored graphic code.
若所述图形编码与所述预存图形编码的匹配成功,则解锁。If the matching of the graphic code and the pre-stored graphic code is successful, then unlocking.
可选的,所述目标信息包括如下至少一项:Optionally, the target information includes at least one of the following:
图像、音频、视频和文字。images, audio, video and text.
可选的,所述目标信息包括图像,所述处理器710执行所述采集目标信息,并将所述目标信息转换成图形编码,包括:Optionally, the target information includes an image, and the processor 710 executes the collecting target information, and converts the target information into a graphic code, including:
通过所述摄像头采集至少一张图像,将所述至少一张图像转换成图形编码。At least one image is collected by the camera, and the at least one image is converted into a graphic code.
可选的,所述处理器710执行所述通过所述摄像头采集至少一张图像,将所述至少一张图像转换成图形编码,包括:Optionally, the processor 710 performing the collecting at least one image through the camera, and converting the at least one image into a graphic code includes:
通过所述摄像头采集至少两张图像。At least two images are collected by the camera.
接收用户输入的拼接指令,根据所述拼接指令对所述至少两张图像进行拼接,得到目标图像。A splicing instruction input by a user is received, and the at least two images are spliced according to the splicing instruction to obtain a target image.
将所述目标图像转换成图形编码。Convert the target image into graphics code.
可选的,所述处理器710还用于:若所述图形编码与预存图形编码匹配失败,则查找所述移动终端存储的与所述预存图形编码关联的预存图像;Optionally, the processor 710 is further configured to: if the graphic code fails to match the pre-stored graphic code, search for a pre-stored image stored in the mobile terminal and associated with the pre-stored graphic code;
识别所述预存图像的关键信息,并在锁屏界面显示包含所述关键信息的解锁提示消息。Identifying the key information of the pre-stored image, and displaying an unlock prompt message containing the key information on the lock screen interface.
可选的,所述处理器710执行的所述若所述图形编码与所述预存图形编码的匹配成功,则解锁,包括:Optionally, the unlocking performed by the processor 710 if the pattern code matches the pre-stored pattern code successfully includes:
若所述图形编码与所述预存图形编码的匹配成功,则采集所述移动终端的位置信息。If the graphic code is successfully matched with the pre-stored graphic code, the location information of the mobile terminal is collected.
判断所述位置信息表示的地理位置是否为所述移动终端预先记录的常驻地理位置。Judging whether the geographic location represented by the location information is the pre-recorded resident geographic location of the mobile terminal.
若所述地理位置为所述移动终端预先记录的常驻地理位置,则解锁。If the geographic location is the pre-recorded resident geographic location of the mobile terminal, unlock it.
本发明实施例提供的移动终端能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。本发明实施例提供的移动终端可以通过采集信息转换成的图形编码与预存图形编码匹配成功,则解锁,提供了一种图形编码解锁的方式,从而丰富了移动终端的解锁方式。The mobile terminal provided by the embodiment of the present invention can implement the various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here. The mobile terminal provided by the embodiment of the present invention can be unlocked if the graphic code converted from the collected information matches the pre-stored graphic code successfully, and a mode of unlocking the graphic code is provided, thereby enriching the unlocking modes of the mobile terminal.
应理解的是,本发明实施例中,射频单元701可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器710处理;另外,将上行的数据发送给基站。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元701还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 can be used to receive and send signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 710; in addition, the Uplink data is sent to the base station. Generally, the radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块702为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 702, such as helping users send and receive emails, browse web pages, and access streaming media.
音频输出单元703可以将射频单元701或网络模块702接收的或者在存储器709中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元703还可以提供与移动终端700执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元703包括扬声器、蜂鸣器以及受话器等。The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 can also provide audio output related to a specific function performed by the mobile terminal 700 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
输入单元704用于接收音频或视频信号。输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元706上。经图形处理器7041处理后的图像帧可以存储在存储器709(或其它存储介质)中或者经由射频单元701或网络模块702进行发送。麦克风7042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元701发送到移动通信基站的格式输出。The input unit 704 is used to receive audio or video signals. The input unit 704 may include a graphics processing unit (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 706 . The image frames processed by the graphics processor 7041 may be stored in the memory 709 (or other storage media) or sent via the radio frequency unit 701 or the network module 702 . The microphone 7042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 701 for output in the case of a phone call mode.
移动终端700还包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板7061的亮度,接近传感器可在移动终端700移动到耳边时,关闭显示面板7061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器705还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 7061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 705 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元706用于显示由用户输入的信息或提供给用户的信息。显示单元706可包括显示面板7061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板7061。The display unit 706 is used to display information input by the user or information provided to the user. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元707可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板7071上或在触控面板7071附近的操作)。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器710,接收处理器710发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板7071。除了触控面板7071,用户输入单元707还可以包括其他输入设备7072。具体地,其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 707 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072 . The touch panel 7071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 7071 or near the touch panel 7071). operate). The touch panel 7071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 710, receive the command sent by the processor 710 and execute it. In addition, the touch panel 7071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 7071 , the user input unit 707 may also include other input devices 7072 . Specifically, other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板7071可覆盖在显示面板7061上,当触控面板7071检测到在其上或附近的触摸操作后,传送给处理器710以确定触摸事件的类型,随后处理器710根据触摸事件的类型在显示面板7061上提供相应的视觉输出。虽然在图7中,触控面板7071与显示面板7061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板7071与显示面板7061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 7071 can be covered on the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it will be sent to the processor 710 to determine the type of the touch event. The type of event provides a corresponding visual output on the display panel 7061. Although in FIG. 7, the touch panel 7071 and the display panel 7061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元708为外部装置与移动终端700连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元708可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端700内的一个或多个元件或者可以用于在移动终端700和外部装置之间传输数据。The interface unit 708 is an interface for connecting an external device to the mobile terminal 700 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 708 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器709可用于存储软件程序以及各种数据。存储器709可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 709 can be used to store software programs as well as various data. The memory 709 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 709 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器710是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器709内的软件程序和/或模块,以及调用存储在存储器709内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器710可包括一个或多个处理单元;优选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The processor 710 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 709, and calling data stored in the memory 709 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710 .
移动终端700还可以包括给各个部件供电的电源711(比如电池),优选的,电源711可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 700 can also include a power supply 711 (such as a battery) for supplying power to various components. Preferably, the power supply 711 can be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,移动终端700包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 700 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种移动终端,包括处理器710,存储器709,存储在存储器709上并可在所述处理器710上运行的计算机程序,该计算机程序被处理器710执行时实现上述一种解锁方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 710, a memory 709, a computer program stored in the memory 709 and operable on the processor 710, when the computer program is executed by the processor 710 Each process of the above-mentioned embodiment of an unlocking method can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述一种解锁方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned unlocking method embodiment is realized, and the same Technical effects, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.
Claims (13)
-  A kind of 1. unlocking method, applied to mobile terminal, it is characterised in that including:If the mobile terminal is screen lock state, target information is gathered, and the target information is converted into encoding of graphs;The encoding of graphs is matched with the encoding of graphs that prestores;If the encoding of graphs is with the encoding of graphs that prestores, the match is successful, unlocks.
 -  2. the method as described in claim 1, the target information includes at least one of following:Image, audio, video and word.
 -  3. method as claimed in claim 2, the mobile terminal includes camera, it is characterised in that the target information bag Image, the collection target information are included, and the target information is converted into encoding of graphs, including:An at least image is gathered by the camera, an at least image is converted into encoding of graphs.
 -  4. method as claimed in claim 3, it is characterised in that it is described that an at least image is gathered by the camera, will An at least image is converted into encoding of graphs, including:At least two images are gathered by the camera;The splicing instruction of user's input is received, at least two images are spliced according to the splicing instruction, obtain mesh Logo image;The target image is converted into encoding of graphs.
 -  5. the method as described in claim 1, it is characterised in that it is described by the encoding of graphs with prestoring what encoding of graphs matched After step, methods described also includes:It is searching the mobile terminal storage with the figure that prestores if the encoding of graphs and prestoring that it fails to match for encoding of graphs The pre-stored image of shape coding association;The key message of the pre-stored image is identified, and shows that the unblock prompting comprising the key message disappears in locking screen interface Breath.
 -  6. the method as any one of claim 1 to 5, it is characterised in that if the encoding of graphs with it is described pre- Depositing encoding of graphs, the match is successful, then unlocks, including:If the encoding of graphs is with the encoding of graphs that prestores, the match is successful, gathers the positional information of the mobile terminal;Judge whether the geographical position that the positional information represents is the pre-recorded resident geographical position of the mobile terminal;If the geographical position is the pre-recorded resident geographical position of the mobile terminal, unlock.
 -  A kind of 7. mobile terminal, it is characterised in that including:Modular converter, if being screen lock state for the mobile terminal, target information is gathered, and the target information is changed Into encoding of graphs;Matching module, for the encoding of graphs to be matched with the encoding of graphs that prestores;Unlocked state, if the match is successful with the encoding of graphs that prestores for the encoding of graphs, unlock.
 -  8. mobile terminal as claimed in claim 7, it is characterised in that the target information includes at least one of following:Image, audio, video and word.
 -  9. mobile terminal as claimed in claim 8, the mobile terminal includes camera, it is characterised in that the target letter Breath includes image, and the modular converter is used to gather an at least image by the camera, an at least image by described in It is converted into encoding of graphs.
 -  10. mobile terminal as claimed in claim 9, it is characterised in that the modular converter includes:First collection submodule, for gathering at least two images by the camera;Splice submodule, for receiving the splicing instruction of user's input, according to the splicing instruction at least two images Spliced, obtain target image;Transform subblock, for the target image to be converted into encoding of graphs.
 -  11. mobile terminal as claimed in claim 7, it is characterised in that the mobile terminal also includes:Searching modul, if for the encoding of graphs and prestoring that it fails to match for encoding of graphs, search the mobile terminal storage The pre-stored image associated with the encoding of graphs that prestores;Display module, for identifying the key message of the pre-stored image, and shown in locking screen interface and include the key message Unblock prompting message.
 -  12. the mobile terminal as any one of claim 7 to 11, it is characterised in that the unlocked state, including:Second collection submodule, if the match is successful with the encoding of graphs that prestores for the encoding of graphs, described in collection The positional information of mobile terminal;Judging submodule, for judging whether the geographical position that the positional information represents is that the mobile terminal is pre-recorded Resident geographical position;Submodule is unlocked, if being the pre-recorded resident geographical position of the mobile terminal for the geographical position, is unlocked.
 -  A kind of 13. mobile terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be in institute The computer program run on processor is stated, is realized described in the computing device during computer program as in claim 1 to 6 The step in a kind of unlocking method described in any one.
 
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN201711045882.3A CN107808092B (en) | 2017-10-31 | 2017-10-31 | A kind of unlocking method and mobile terminal | 
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN201711045882.3A CN107808092B (en) | 2017-10-31 | 2017-10-31 | A kind of unlocking method and mobile terminal | 
Publications (2)
| Publication Number | Publication Date | 
|---|---|
| CN107808092A true CN107808092A (en) | 2018-03-16 | 
| CN107808092B CN107808092B (en) | 2019-12-03 | 
Family
ID=61591044
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date | 
|---|---|---|---|
| CN201711045882.3A Active CN107808092B (en) | 2017-10-31 | 2017-10-31 | A kind of unlocking method and mobile terminal | 
Country Status (1)
| Country | Link | 
|---|---|
| CN (1) | CN107808092B (en) | 
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN108460270A (en) * | 2018-03-25 | 2018-08-28 | 东莞市华睿电子科技有限公司 | A kind of client login control method based on mobile device | 
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN105608359A (en) * | 2015-10-30 | 2016-05-25 | 东莞酷派软件技术有限公司 | Unlock verification method, unlock verification device, and terminal | 
| CN105631302A (en) * | 2015-12-25 | 2016-06-01 | 苏州佳世达电通有限公司 | State control method and device of mobile equipment | 
| CN105898002A (en) * | 2016-06-21 | 2016-08-24 | 北京奇虎科技有限公司 | Application unlocking method and apparatus for mobile terminal and mobile terminal | 
| CN106127477A (en) * | 2016-08-19 | 2016-11-16 | 深圳市前海领创智能科技有限公司 | A kind of novel iris intelligence mobile phone with payment function | 
| CN106156587A (en) * | 2016-06-30 | 2016-11-23 | 广东小天才科技有限公司 | Automatic unlocking method of mobile terminal and mobile terminal | 
| CN106330464A (en) * | 2016-10-26 | 2017-01-11 | 上海众人网络安全技术有限公司 | An identity authentication method, device and system | 
| CN107194231A (en) * | 2017-06-27 | 2017-09-22 | 上海与德科技有限公司 | Unlocking method, device and mobile terminal based on iris | 
- 
        2017
        
- 2017-10-31 CN CN201711045882.3A patent/CN107808092B/en active Active
 
 
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN105608359A (en) * | 2015-10-30 | 2016-05-25 | 东莞酷派软件技术有限公司 | Unlock verification method, unlock verification device, and terminal | 
| CN105631302A (en) * | 2015-12-25 | 2016-06-01 | 苏州佳世达电通有限公司 | State control method and device of mobile equipment | 
| CN105898002A (en) * | 2016-06-21 | 2016-08-24 | 北京奇虎科技有限公司 | Application unlocking method and apparatus for mobile terminal and mobile terminal | 
| CN106156587A (en) * | 2016-06-30 | 2016-11-23 | 广东小天才科技有限公司 | Automatic unlocking method of mobile terminal and mobile terminal | 
| CN106127477A (en) * | 2016-08-19 | 2016-11-16 | 深圳市前海领创智能科技有限公司 | A kind of novel iris intelligence mobile phone with payment function | 
| CN106330464A (en) * | 2016-10-26 | 2017-01-11 | 上海众人网络安全技术有限公司 | An identity authentication method, device and system | 
| CN107194231A (en) * | 2017-06-27 | 2017-09-22 | 上海与德科技有限公司 | Unlocking method, device and mobile terminal based on iris | 
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN108460270A (en) * | 2018-03-25 | 2018-08-28 | 东莞市华睿电子科技有限公司 | A kind of client login control method based on mobile device | 
| CN108460270B (en) * | 2018-03-25 | 2022-05-10 | 北京灵动新程信息科技有限公司 | A mobile device-based client login control method | 
Also Published As
| Publication number | Publication date | 
|---|---|
| CN107808092B (en) | 2019-12-03 | 
Similar Documents
| Publication | Publication Date | Title | 
|---|---|---|
| CN107784089B (en) | Multimedia data storage method, processing method and mobile terminal | |
| CN109241775B (en) | Privacy protection method and terminal | |
| CN108551521B (en) | A kind of login information prompting method and mobile terminal | |
| CN107832110A (en) | A kind of information processing method and mobile terminal | |
| CN107742072A (en) | Face recognition method and mobile terminal | |
| CN107704168A (en) | A kind of application program launching method and mobile terminal | |
| CN108256308A (en) | A kind of recognition of face solution lock control method and mobile terminal | |
| CN110149628B (en) | An information processing method and terminal device | |
| WO2020199987A1 (en) | Message display method and mobile terminal | |
| CN108171034A (en) | A kind of method and terminal for protecting privacy | |
| CN108108111A (en) | A kind of inspection method, device and the mobile terminal of screen locking pictorial information | |
| CN107786739B (en) | A kind of information acquisition method and mobile terminal | |
| CN107809515A (en) | A kind of display control method and mobile terminal | |
| CN108109188A (en) | A kind of image processing method and mobile terminal | |
| CN108363914A (en) | Fingerprint unlocking control method and device | |
| CN107707554A (en) | A kind of login method and mobile terminal of application program account | |
| CN107797728A (en) | The method and mobile terminal of a kind of access application | |
| CN110213438A (en) | A kind of processing method and terminal device of application program | |
| CN109460649A (en) | A kind of document handling method and terminal device | |
| CN110826044B (en) | Unlocking method and electronic equipment | |
| CN108600492A (en) | A kind of unlocking screen method and terminal | |
| CN107808092B (en) | A kind of unlocking method and mobile terminal | |
| CN108848270B (en) | Screenshot image processing method and mobile terminal | |
| CN110096893A (en) | A kind of object method for limiting and terminal device | |
| CN108959963A (en) | Application program management method and terminal device | 
Legal Events
| Date | Code | Title | Description | 
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |