CN106951750A - Method for switching modes of mobile terminal and mobile terminal - Google Patents
Method for switching modes of mobile terminal and mobile terminal Download PDFInfo
- Publication number
- CN106951750A CN106951750A CN201710168779.1A CN201710168779A CN106951750A CN 106951750 A CN106951750 A CN 106951750A CN 201710168779 A CN201710168779 A CN 201710168779A CN 106951750 A CN106951750 A CN 106951750A
- Authority
- CN
- China
- Prior art keywords
- gesture
- recognized
- camera
- images
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000009977 dual effect Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 6
- 238000012790 confirmation Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 241000238631 Hexapoda Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000877 morphologic effect Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/71—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
- G06F21/74—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information operating in dual or compartmented mode, i.e. at least one secure mode
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明属于移动终端技术领域,尤其涉及一种移动终端切换模式的方法及移动终端。The invention belongs to the technical field of mobile terminals, and in particular relates to a method for switching modes of a mobile terminal and the mobile terminal.
背景技术Background technique
现有的移动终端用户为了不同的需要(保护个人隐私、不同场合开启不同模式),通常会将移动终端设定多个模式,在由一个模式进入另一个模式时进入模式切换界面进行切换。尤其是当其他人借用手机时,为了保护自己的隐私,通常先解锁进入常规模式,然后进入模式切换界面切换至其它模式,一方面有可能引起对方的尴尬,另一方面切换模式的操作比较繁琐,操作效率低。Existing mobile terminal users usually set multiple modes on the mobile terminal for different needs (protecting personal privacy, opening different modes on different occasions), and enter the mode switching interface to switch when entering another mode from one mode. Especially when other people borrow the mobile phone, in order to protect their privacy, they usually unlock it first to enter the regular mode, and then enter the mode switching interface to switch to other modes. , low operating efficiency.
发明内容Contents of the invention
鉴于此,本发明提供一种移动终端切换模式的方法及移动终端,用以简化用户切换移动终端不同模式的操作,提高操作效率。In view of this, the present invention provides a method for switching modes of a mobile terminal and the mobile terminal, so as to simplify the user's operation of switching between different modes of the mobile terminal and improve the operation efficiency.
本发明的第一方面,提供一种移动终端切换模式的方法,所述方法包括:A first aspect of the present invention provides a method for switching modes of a mobile terminal, the method comprising:
在预定状态下,接收到切换模式的指令后,开启摄像头以采集图像;In the predetermined state, after receiving the command to switch modes, turn on the camera to collect images;
识别所述摄像头采集的图像中的手势,并将识别出的手势与预先存储的多个手势密码进行比对识别;Recognizing gestures in the images collected by the camera, and comparing and identifying the recognized gestures with a plurality of pre-stored gesture passwords;
若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则进入与识别出的手势匹配的手势密码对应的终端模式。If the recognized gesture matches any one of the gesture passwords stored in advance, enter the terminal mode corresponding to the gesture password matching the recognized gesture.
本发明的第二方面,提供一种移动终端,所述移动终端包括:According to a second aspect of the present invention, a mobile terminal is provided, and the mobile terminal includes:
指令接收模块,用于在预定状态下,接收到切换模式的指令后,开启摄像头以采集图像;The instruction receiving module is used to turn on the camera to collect images after receiving an instruction to switch modes in a predetermined state;
识别模块,用于识别所述摄像头采集的图像中的手势,并将识别出的手势与预先存储的多个手势密码进行比对识别;An identification module, configured to identify gestures in the images collected by the camera, and compare and identify the identified gestures with a plurality of pre-stored gesture passwords;
模式切换模块,用于若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则进入与识别出的手势匹配的手势密码对应的终端模式。The mode switching module is configured to enter a terminal mode corresponding to the gesture password matching the recognized gesture if the recognized gesture matches any one of the gesture passwords stored in advance.
本发明的第三方面,提供一种移动终端,所述移动终端包括:According to a third aspect of the present invention, a mobile terminal is provided, and the mobile terminal includes:
存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤:A memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implements the following steps when executing the program:
在预定状态下,接收到切换模式的指令后,开启摄像头以采集图像;In the predetermined state, after receiving the command to switch modes, turn on the camera to collect images;
识别所述摄像头采集的图像中的手势,并将识别出的手势与预先存储的多个手势密码进行比对识别;Recognizing gestures in the images collected by the camera, and comparing and identifying the recognized gestures with a plurality of pre-stored gesture passwords;
若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则进入与识别出的手势匹配的手势密码对应的终端模式。If the recognized gesture matches any one of the gesture passwords stored in advance, enter the terminal mode corresponding to the gesture password matching the recognized gesture.
本发明的第四方面,提供一种计算机存储介质,所述计算机存储介质可以是非易失性的,所述计算机存储介质上存储有计算机程序,所述计算机程序在被一个或多个处理器读取并执行时可实现上述第一方面提供的所述方法。According to a fourth aspect of the present invention, a computer storage medium is provided, the computer storage medium may be non-volatile, and a computer program is stored on the computer storage medium, and the computer program is read by one or more processors The method provided by the above-mentioned first aspect can be realized when taken and executed.
本发明与现有技术相比存在的有益效果是:本发明在预定状态下,接收到切换模式的指令后,开启摄像头以采集图像;识别所述摄像头采集的图像中的手势,并将识别出的手势与预先存储的多个手势密码进行比对识别;若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则进入与识别出的手势匹配的手势密码对应的终端模式。由于本发明无需进入模式切换界面即可完成终端不同模式的切换,可以简化用户切换终端不同模式的操作,提高操作效率。而且,本发明操作方便、实现简单,适应面广,具有较强的易用性和实用性。Compared with the prior art, the present invention has the beneficial effects that: in a predetermined state, the present invention turns on the camera to collect images after receiving an instruction to switch modes; recognizes gestures in the images collected by the camera, and recognizes The gesture is compared and recognized with the multiple gesture passwords stored in advance; if the recognized gesture matches any one of the multiple gesture passwords stored in advance, enter the terminal corresponding to the gesture password that matches the recognized gesture model. Since the present invention can complete the switching of different modes of the terminal without entering into the mode switching interface, the user's operation of switching between different modes of the terminal can be simplified and the operation efficiency can be improved. Moreover, the invention has the advantages of convenient operation, simple realization, wide adaptability, and strong usability and practicability.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present invention. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是本发明第一实施例提供的移动终端切换模式的方法的示意流程图;FIG. 1 is a schematic flowchart of a method for switching modes of a mobile terminal provided in a first embodiment of the present invention;
图2是本发明第二实施例提供的移动终端切换模式的方法的示意流程图;FIG. 2 is a schematic flowchart of a method for switching modes of a mobile terminal provided by a second embodiment of the present invention;
图3是本发明第三实施例提供的移动终端的示意框图;Fig. 3 is a schematic block diagram of a mobile terminal provided by a third embodiment of the present invention;
图4是本发明第四实施例提供的移动终端的示意框图。Fig. 4 is a schematic block diagram of a mobile terminal provided by a fourth embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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 making creative efforts belong to the protection scope of the present invention.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other features. , whole, step, operation, element, component and/or the presence or addition of a collection thereof.
还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of the present invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the present invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.
还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.
实施例一:Embodiment one:
参见图1,图1是本发明实施例一提供的移动终端切换模式方法的示意流程图,如图所示该方法可以包括以下步骤:Referring to FIG. 1, FIG. 1 is a schematic flowchart of a method for switching modes of a mobile terminal provided in Embodiment 1 of the present invention. As shown in the figure, the method may include the following steps:
步骤S101,在预定状态下,接收到切换模式的指令后,开启摄像头以采集图像。Step S101 , in a predetermined state, after receiving an instruction to switch modes, turn on the camera to collect images.
在本发明实施例中,所述预定状态是预先设定的终端所在的一种状态,可以是终端的锁屏状态、主界面状态等。所述切换模式的指令是预先设置的由终端用户输入的指令,可以是用户通过触控屏输入的指令,也可以是用户通过终端上设置的按键或者按键的组合输入的指令。作为一个优选的实施例,所述预定状态为锁屏状态,所述切换模式的指令为用户手指在触控屏从左滑到右的指令,即锁屏模式下,终端接收到用户手指通过触控屏输出的从左滑动到右的指令后,会开启终端自带的摄像头,所述摄像头用来采集图像。In the embodiment of the present invention, the predetermined state is a preset state of the terminal, which may be a lock screen state, a main interface state, etc. of the terminal. The instruction to switch modes is a preset instruction input by the terminal user, which may be an instruction input by the user through the touch screen, or an instruction input by the user through a button or a combination of buttons set on the terminal. As a preferred embodiment, the predetermined state is the lock screen state, and the instruction to switch modes is an instruction to slide the user's finger from left to right on the touch screen, that is, in the lock screen mode, the terminal receives the After the instruction of sliding from left to right is output by the control screen, the built-in camera of the terminal will be turned on, and the camera is used to collect images.
步骤S102,识别所述摄像头采集的图像中的手势,并将识别出的手势与预先存储的多个手势密码进行比对识别。Step S102, identifying gestures in the images captured by the camera, and comparing and identifying the identified gestures with a plurality of gesture passwords stored in advance.
在本发明实施例中,所述摄像头采集用户在终端摄像头的前方作出的各种手势,为了使所述摄像头能够拍摄到清晰完整的手势图像,可以设置开启摄像头后在终端屏幕实时显示所述摄像头采集到的图像,用户可以根据终端屏幕中实时显示的手势图像调整手势的位置以便于所述摄像头采集到清晰完整的手势图像。所述手势可以是二维静态手势,还可以是二维动态手势。采集到图像后,会对图像提取肤色区域和设定阈值将图像二值化,通过形态学的处理消除噪声干扰,最后进行连通域查找获得识别到的手势图像,然后将识别到的手势图像与预先存储的多个手势密码进行比对识别,若是二维动态手势,可以将连续采集的多张包含手势的图像进行识别,最终得到二维动态手势。In the embodiment of the present invention, the camera collects various gestures made by the user in front of the terminal camera. In order to enable the camera to capture clear and complete gesture images, it can be set to display the camera in real time on the terminal screen after the camera is turned on. For the captured image, the user can adjust the position of the gesture according to the gesture image displayed in real time on the terminal screen so that the camera can capture a clear and complete gesture image. The gesture may be a two-dimensional static gesture, or a two-dimensional dynamic gesture. After the image is collected, the skin color area will be extracted from the image and the threshold will be set to binarize the image. Noise interference will be eliminated through morphological processing. Finally, the connected domain search will be performed to obtain the recognized gesture image, and then the recognized gesture image will be combined with Multiple pre-stored gesture passwords are compared and recognized. If it is a two-dimensional dynamic gesture, multiple images containing gestures collected continuously can be recognized, and finally a two-dimensional dynamic gesture can be obtained.
作为一个优选的实施例,所述识别所述摄像头采集的图像中的手势后,所述方法还包括:As a preferred embodiment, after recognizing the gesture in the image collected by the camera, the method further includes:
根据识别的手势生成手势信息供用户确认;Generate gesture information for user confirmation according to the recognized gesture;
若接收到用户确认通过的信息后,将识别的手势与预先存储的多个手势密码进行比对识别。After receiving the confirmation information from the user, compare and identify the recognized gesture with multiple gesture passwords stored in advance.
在本发明实施例中,由于用户在终端摄像头前通过做出某个手势与预先存储的多个手势密码进行比对识别,由于姿势、角度或者光线等影响,摄像头采集并且经过识别后的手势可能与用户想要做出的手势存在不一致的问题,所以在识别所述摄像头采集的图像中的手势后,会根据识别的手势生成一个虚拟的手势信息,所述手势信息以图像的形式通过终端屏幕显示。例如,当用户通过手势做出一个“OK”的动作后,由于用户的角度、姿势、光线等影响,摄像头采集的图像经过识别后可能出现“OK”的手势形状,也可能出现的只是三个手指的形状,当预先存储的密码是“OK”的手势形状时,就会出现即使用户做出的手势是“OK”的手势形状,但是由于角度姿势的原因,会识别为三个手指的形状,会将识别出的三个手指的形状与预先存储的手势密码进行比对识别,导致比对识别结果出现错误,所以在识别出手势后,根据识别出的手势生成图像形式的手势信息供用户确认以便于用户可以通过手势信息调整做出的手势动作的角度。In the embodiment of the present invention, since the user compares and recognizes a certain gesture with multiple gesture passwords stored in advance in front of the terminal camera, due to the influence of posture, angle or light, the gesture collected by the camera and recognized may be There is a problem of inconsistency with the gestures that the user wants to make, so after recognizing the gestures in the images collected by the camera, a virtual gesture information will be generated according to the recognized gestures, and the gesture information will pass through the terminal screen in the form of images show. For example, when the user makes an "OK" gesture through a gesture, due to the influence of the user's angle, posture, light, etc., the image collected by the camera may appear in the gesture shape of "OK" after recognition, or there may be only three The shape of the fingers, when the pre-stored password is the gesture shape of "OK", it will appear even if the gesture made by the user is the gesture shape of "OK", but due to the angle posture, it will be recognized as the shape of three fingers , the recognized shape of the three fingers will be compared and recognized with the pre-stored gesture password, resulting in an error in the comparison and recognition result. Therefore, after the gesture is recognized, gesture information in the form of an image is generated for the user based on the recognized gesture. Confirm so that the user can adjust the angle of the gesture action made by the gesture information.
需要说明的是,在将识别出的手势与预先存储的多个手势密码进行比对识别之前,会为每个终端模式对应设置一个手势作为进入该终端模式的手势密码。It should be noted that, before the recognized gesture is compared and recognized with multiple gesture passwords stored in advance, a gesture is correspondingly set for each terminal mode as a gesture password for entering the terminal mode.
步骤S103,若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则进入与识别出的手势匹配的手势密码对应的终端模式。Step S103, if the recognized gesture matches any one of the gesture passwords stored in advance, enter the terminal mode corresponding to the gesture password matching the recognized gesture.
在本发明实施例中,通常用户会在终端设置多个终端模式,同时为每个终端模式设置一个手势密码,当识别出的手势与预先存储的多个手势密码中的任一个匹配时,进入与识别出的手势匹配的手势对应的终端模式,由于需要对摄像头拍摄的图像进行识别,而识别结果可能会受到环境光线强度、用户姿势等的影响,所以即使用户做出同一个手势,可能识别的结果也会存在差异,这时,就需要设置一个匹配阈值,若识别出的手势与预先存储的多个手势密码中的任一个手势密码的匹配度大于匹配阈值,则进入与识别出的手势匹配的手势密码对应的终端模式,若识别出的手势与预先存储的多个手势密码中的任一个手势密码的匹配度小于或者等于匹配阈值,则无响应或者发出提醒密码错误的信息。In the embodiment of the present invention, usually the user will set multiple terminal modes on the terminal, and set a gesture password for each terminal mode at the same time. When the recognized gesture matches any of the multiple gesture passwords stored in advance, enter The terminal mode corresponding to the gesture that matches the recognized gesture needs to recognize the image captured by the camera, and the recognition result may be affected by the ambient light intensity, user posture, etc., so even if the user makes the same gesture, it may be recognized There will also be differences in the results. At this time, it is necessary to set a matching threshold. If the matching degree between the recognized gesture and any one of the multiple gesture passwords stored in advance is greater than the matching threshold, enter the For the terminal mode corresponding to the matched gesture password, if the matching degree between the recognized gesture and any one of the multiple gesture passwords stored in advance is less than or equal to the matching threshold, there will be no response or a message reminding that the password is wrong.
本发明在预定状态下,接收到切换模式的指令后,开启摄像头以采集图像;识别所述摄像头采集的图像中的手势,并将识别出的手势与预先存储的多个手势密码进行比对识别;若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则进入与识别出的手势匹配的手势密码对应的终端模式。由于本发明无需进入模式切换界面即可完成终端不同模式的切换,可以简化用户切换终端不同模式的操作,提高操作效率。而且,本发明操作方便、实现简单,适应面广,具有较强的易用性和实用性。In the predetermined state, after receiving an instruction to switch modes, the present invention turns on the camera to collect images; recognizes gestures in the images collected by the camera, and compares and recognizes the recognized gestures with multiple gesture passwords stored in advance ; If the recognized gesture matches any one of the gesture passwords stored in advance, enter the terminal mode corresponding to the gesture password matching the recognized gesture. Since the present invention can complete the switching of different modes of the terminal without entering into the mode switching interface, the user's operation of switching between different modes of the terminal can be simplified and the operation efficiency can be improved. Moreover, the invention has the advantages of convenient operation, simple realization, wide adaptability, and strong usability and practicability.
实施例二:Embodiment two:
参见图2,图2是本发明实施例二提供的移动终端切换模式的方法的示意流程图,如图所示该方法可以包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a method for switching modes of a mobile terminal provided in Embodiment 2 of the present invention. As shown in the figure, the method may include the following steps:
步骤S201,接收到手势密码设置指令后,开启摄像头以采集图像。Step S201, after receiving the gesture password setting instruction, turn on the camera to collect images.
在本发明实施例中,可将二维手势作为手势密码,用户只需做出一个预先设定的动作即可实现终端不同模式的切换,但是由于二维手势密码识别的手势只能停留在二维平面上,并不能完全识别出用户做出的手势,因此还可以将三维手势作为手势密码,三维手势识别可以识别各种手型、手势、动作。由于识别的手势需要与预先存储的多个手势密码进行比对识别,所以需要用户预先设置多个终端模式对应的手势密码,所述手势密码设置指令可以是用户通过触控屏发出的,还可以是用户通过终端上的按键或者按键的组合发出的,当接收到用户发出的手势密码设置指令后,开启摄像头以采集图像。In the embodiment of the present invention, the two-dimensional gesture can be used as the gesture password, and the user only needs to make a preset action to switch between different modes of the terminal. However, the gesture recognized by the two-dimensional gesture password can only stay in the On the three-dimensional plane, the gestures made by the user cannot be fully recognized. Therefore, three-dimensional gestures can also be used as gesture passwords. Three-dimensional gesture recognition can recognize various hand shapes, gestures, and actions. Since the recognized gesture needs to be compared and recognized with multiple gesture passwords stored in advance, the user needs to preset gesture passwords corresponding to multiple terminal modes. The gesture password setting instruction can be sent by the user through the touch screen, or can be It is issued by the user through the button or combination of buttons on the terminal. After receiving the gesture password setting instruction from the user, the camera is turned on to collect images.
步骤S202,选择相应的终端模式。Step S202, selecting a corresponding terminal mode.
步骤S203,识别所述摄像头采集的图像中的手势,并将识别的所述手势作为进入所选择的终端模式的手势密码。Step S203, identifying gestures in the images captured by the camera, and using the identified gestures as gesture passwords for entering the selected terminal mode.
在本发明实施例中,由于手势密码可以是三维手势密码,在对三维手势进行识别通常需要包含深度信息,所述深度信息是指手势中不同点距离摄像头的距离。相对于二维手势识别技术,三维手势识别不能只用单个普通摄像头,目前可以在终端加载激光投射器,在激光投射器外面放一个可有特定图样的光栅,激光通过光栅进行投射成像时会发生折射,从而使得激光最终在物体表面上的落点产生位移,但是由于距离太近时,折射导致的位移尚不明显,使得该技术就不能太精确的计算深度信息,所以1米到4米是最佳距离。但是将手势识别技术用于终端切换模式时,显然这个距离是不合适的,因此该方法具有局限性。优选的,还可以采用在终端加载发光元件,发光元件发出的光子在碰到物体表面后会反射回来,使得一个CMOS传感器来捕捉这些由发光元件发出、又从物体表面发射回来的光子,就能得到光子的飞行时间。根据光子飞行时间进而可以推算出光子飞行的距离,也就得到物体的深度信息。In the embodiment of the present invention, since the gesture password may be a three-dimensional gesture password, depth information usually needs to be included in the recognition of the three-dimensional gesture, and the depth information refers to the distance between different points in the gesture and the camera. Compared with two-dimensional gesture recognition technology, three-dimensional gesture recognition cannot only use a single ordinary camera. Currently, a laser projector can be loaded on the terminal, and a grating with a specific pattern can be placed outside the laser projector. Refraction, so that the final landing point of the laser on the surface of the object is displaced, but because the distance is too short, the displacement caused by refraction is not obvious, so that the technology cannot calculate the depth information too accurately, so 1 meter to 4 meters is optimal distance. However, when the gesture recognition technology is used for switching modes of the terminal, obviously this distance is inappropriate, so this method has limitations. Preferably, a light-emitting element can also be loaded on the terminal, and the photons emitted by the light-emitting element will reflect back after hitting the surface of the object, so that a CMOS sensor can capture these photons emitted by the light-emitting element and emitted back from the surface of the object. Get the time-of-flight of the photon. According to the photon flight time, the distance of the photon flight can be calculated, and the depth information of the object can be obtained.
作为一个优选的实施例,还可以利用两个或者两个以上的摄像头同时摄取图像,就好像是人类用双目、昆虫用多目复眼来观察世界,通过比对这些不同摄像头在同一时刻获得的图像的差别,来计算深度信息,从而多角三维成像。即所述摄像头为双摄像头,采用双摄像头识别三维手势具体为:As a preferred embodiment, two or more cameras can also be used to capture images at the same time, just like humans observe the world with binoculars and insects with multi-eye compound eyes, by comparing the images obtained by these different cameras at the same time The difference between the images is used to calculate the depth information, so as to form multi-angle three-dimensional imaging. That is, the cameras are dual cameras, and the three-dimensional gesture recognition using the dual cameras is specifically:
从设置在不同位置的两个摄像头采集的图像中识别出手势图像,并从识别出的所述手势图像中提取同一手势不同视角的图像;Recognizing gesture images from images collected by two cameras arranged at different positions, and extracting images of different angles of view of the same gesture from the recognized gesture images;
根据提取的所述同一手势不同视角的图像获得所述手势关键点的深度信息;Obtaining the depth information of key points of the gesture according to the extracted images of different viewing angles of the same gesture;
根据所述手势关键点的深度信息构建三维手势信息。Three-dimensional gesture information is constructed according to the depth information of the gesture key points.
在本发明实施例中,两个摄像头平行安装,并且两个摄像头的光轴平行。两个摄像头需要同时采集图像来保证两个摄像头成像的一致性,从两个摄像头采集的图像中识别手势图像,会得到同一个手势不同视角的图像,可以选取手势图像中的关键点,计算关键点在两个不同视角图像中的对应的像素点的视差,并根据两个摄像头之间的距离、摄像头的焦距和所述视差得到关键点的深度信息,所述视差可以采用Census算法来确定,深度信息指的手势中的关键点到镜头的距离,先通过Census算法计算关键点在另一个摄像头拍摄的图像中的对应位置周边最匹配的关键点的位置,然后通过两个摄像头之间的距离和摄像头的焦距和视差等信息算出手势中关键点距离摄像头的距离,即深度信息。可以选择摄像头识别的手势中的多个关键点,并分别计算多个关键点的深度信息,通过多个关键点的深度信息就可以构建三维手势信息。In the embodiment of the present invention, the two cameras are installed in parallel, and the optical axes of the two cameras are parallel. The two cameras need to collect images at the same time to ensure the consistency of the images of the two cameras. The gesture image is recognized from the images collected by the two cameras, and the image of the same gesture with different perspectives can be obtained. The key points in the gesture image can be selected and the key points can be calculated. The parallax of the corresponding pixel points in two different viewing angle images, and the depth information of the key point is obtained according to the distance between the two cameras, the focal length of the camera and the parallax, and the parallax can be determined using the Census algorithm, Depth information refers to the distance from the key point in the gesture to the lens. First, the Census algorithm is used to calculate the position of the most matching key point around the corresponding position of the key point in the image captured by another camera, and then the distance between the two cameras The distance between the key point in the gesture and the camera is calculated based on information such as the focal length and parallax of the camera, that is, the depth information. Multiple key points in the gesture recognized by the camera can be selected, and the depth information of multiple key points can be calculated separately, and the three-dimensional gesture information can be constructed through the depth information of multiple key points.
需要说明的是,具有双摄像头的终端,并不限制于只能设置三维手势密码,可以由用户选择设置二维手势密码还是三维手势密码,当具有双摄像头的终端选择设置二维手势密码时,可以通过其中一个摄像头采集手势图像并识别。It should be noted that a terminal with dual cameras is not limited to only setting a 3D gesture password, and the user can choose to set a 2D gesture password or a 3D gesture password. When a terminal with dual cameras chooses to set a 2D gesture password, Gesture images can be collected and recognized through one of the cameras.
步骤S204,在预定状态下,接收到切换模式的指令后,开启摄像头以采集图像。Step S204, in a predetermined state, after receiving an instruction to switch modes, turn on the camera to collect images.
该步骤与步骤S101相同,具体可参见步骤S101的相关描述,在此不再赘述。This step is the same as step S101, for details, please refer to the relevant description of step S101, which will not be repeated here.
步骤S205,识别所述摄像头采集的图像中的手势,并将识别出的手势与预先存储的多个手势密码进行比对识别。Step S205, identifying gestures in the images captured by the camera, and comparing and identifying the identified gestures with a plurality of gesture passwords stored in advance.
作为一个优选的实施例,所述识别所述摄像头采集的图像中的手势,并将识别出的所述手势与预先存储的多个手势密码进行比对识别包括:As a preferred embodiment, the identifying the gesture in the image collected by the camera, and comparing and identifying the identified gesture with a plurality of pre-stored gesture passwords includes:
从设置在不同位置的两个摄像头采集的图像中识别出手势图像,并从识别出的所述手势图像中提取同一手势不同视角的图像;Recognizing gesture images from images collected by two cameras arranged at different positions, and extracting images of different angles of view of the same gesture from the recognized gesture images;
根据提取的所述同一手势不同视角的图像获得所述手势关键点的深度信息;Obtaining the depth information of key points of the gesture according to the extracted images of different viewing angles of the same gesture;
根据所述手势关键点的深度信息构建三维手势信息,并将构建的所述三维手势信息与预先存储的多个手势密码进行比对识别。The three-dimensional gesture information is constructed according to the depth information of the gesture key points, and the constructed three-dimensional gesture information is compared with a plurality of gesture codes stored in advance for identification.
在本发明实施例中,通过两个摄像头识别用户的手势的方法与步骤S203中记载的一样。需要说明的是,若在设置终端模式密码时,选择的是二维手势,在进行切换模式的识别时会自动识别为二维手势,将识别出的二维手势与预先存储的手势密码进行比对识别;若在设置终端模式密码时选择的是三维手势,则在切换模式时会自动识别为三维手势,将识别的三维手势与预先存储的手势密码进行比对识别;若在设置终端模式密码时,有的终端模式为二维手势密码,有的终端模式为三维手势密码,则在切换模式时识别二维手势和三维手势,并将识别的二维手势与三维手势密码与预先存储的手势密码进行比对识别。In the embodiment of the present invention, the method for recognizing the user's gesture through two cameras is the same as that described in step S203. It should be noted that if you select a two-dimensional gesture when setting the terminal mode password, it will be automatically recognized as a two-dimensional gesture when the recognition of the switching mode is performed, and the recognized two-dimensional gesture is compared with the pre-stored gesture password Pair recognition; if you select a three-dimensional gesture when setting the terminal mode password, it will be automatically recognized as a three-dimensional gesture when switching modes, and the recognized three-dimensional gesture will be compared with the gesture password stored in advance; if you set the terminal mode password At this time, some terminal modes are two-dimensional gesture passwords, and some terminal modes are three-dimensional gesture passwords. When switching modes, two-dimensional gestures and three-dimensional gestures are recognized, and the recognized two-dimensional gestures and three-dimensional gesture passwords are combined with the pre-stored gestures. The password is compared and identified.
步骤S206,若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则进入与识别出的手势匹配的手势密码对应的终端模式。Step S206, if the recognized gesture matches any one of the gesture passwords stored in advance, enter the terminal mode corresponding to the gesture password matching the recognized gesture.
该步骤与步骤S103相同,具体可参见步骤S103的相关描述,在此不再赘述。This step is the same as step S103, for details, please refer to the related description of step S103, which will not be repeated here.
应理解,在上述实施例一和二中,各步骤的序号的大小并不意味着执行顺序的先后,各步骤的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in the first and second embodiments above, the size of the sequence numbers of the steps does not mean the order of execution, and the execution order of the steps should be determined by their functions and internal logic, rather than by the implementation of the embodiments of the present invention. process constitutes any qualification.
实施例三:Embodiment three:
参见图3,图3是本发明实施例三提供的移动终端的示意框图,为了便于说明,仅示出与本发明实施例相关的部分。Referring to FIG. 3 , FIG. 3 is a schematic block diagram of a mobile terminal provided by Embodiment 3 of the present invention. For ease of description, only parts related to the embodiment of the present invention are shown.
该移动终端可以是内置于终端设备(例如手机、平板电脑、笔记本、计算机、穿戴设备等)内的软件单元、硬件单元或者软硬结合的单元,也可以作为独立的挂件集成到所述终端设备中。The mobile terminal can be a software unit, a hardware unit, or a combination of software and hardware built into a terminal device (such as a mobile phone, a tablet computer, a notebook, a computer, a wearable device, etc.), or it can be integrated into the terminal device as an independent pendant middle.
所述移动终端包括:The mobile terminal includes:
指令接收模块31,用于在预定状态下,接收到切换模式的指令后,开启摄像头以采集图像;The instruction receiving module 31 is used to turn on the camera to collect images after receiving an instruction to switch modes in a predetermined state;
识别模块32,用于识别所述摄像头采集的图像中的手势,并将识别出的手势与预先存储的多个手势密码进行比对识别;The identification module 32 is used to identify gestures in the images collected by the camera, and compare and identify the identified gestures with a plurality of pre-stored gesture passwords;
模式切换模块33,用于若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则进入与识别出的手势匹配的手势密码对应的终端模式。The mode switching module 33 is configured to enter a terminal mode corresponding to the gesture password matching the recognized gesture if the recognized gesture matches any one of the gesture passwords stored in advance.
可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:
摄像头启动模块34,用于在将识别出的手势与预先存储的多个手势密码进行比对识别之前,接收到手势密码设置指令后,开启摄像头以采集图像;The camera starting module 34 is used to turn on the camera to collect images after receiving the gesture password setting instruction before comparing and identifying the identified gesture with a plurality of gesture passwords stored in advance;
终端模式选择模块35,用于选择相应的终端模式;A terminal mode selection module 35, configured to select a corresponding terminal mode;
手势密码设置模块36,用于识别所述摄像头采集的图像中的手势,并将识别的所述手势作为进入所选择的终端模式的手势密码。The gesture password setting module 36 is configured to identify gestures in the images captured by the camera, and use the identified gestures as gesture passwords for entering the selected terminal mode.
可选的,所述预定状态为锁屏状态;所述模式切换模块33还用于:Optionally, the predetermined state is a lock screen state; the mode switching module 33 is also used for:
若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则解锁屏幕并进入与识别出的手势匹配的手势密码对应的终端模式。If the recognized gesture matches any one of the gesture passwords stored in advance, the screen is unlocked and the terminal mode corresponding to the gesture password matching the recognized gesture is entered.
可选的,所述识别模块包括:Optionally, the identification module includes:
手势信息确认单元,用于根据识别的手势生成手势信息供用户确认;A gesture information confirming unit, configured to generate gesture information for user confirmation according to the recognized gesture;
识别单元,用于若接收到用户确认通过的信息后,将识别的手势与预先存储的多个手势密码进行比对识别;The recognition unit is used to compare and recognize the recognized gesture with a plurality of pre-stored gesture passwords after receiving the information that the user confirms the pass;
所述手势密码设置模块包括:The gesture password setting module includes:
手势信息确认单元,用于根据识别的手势生成手势信息供用户确认;A gesture information confirming unit, configured to generate gesture information for user confirmation according to the recognized gesture;
手势密码设置单元,用于将识别的手势对应存储设置为不同模式的手势密码。The gesture password setting unit is used to store the recognized gestures as gesture passwords in different modes.
可选的,所述摄像头为双摄像头,所述手势为二维手势或者三维手势。Optionally, the camera is a dual camera, and the gesture is a two-dimensional gesture or a three-dimensional gesture.
可选的,所述识别模块32还包括:Optionally, the identification module 32 also includes:
手势图像采集单元321,用于从设置在不同位置的两个摄像头采集的图像中识别出手势图像,并从识别出的所述手势图像中提取同一手势不同视角的图像;The gesture image acquisition unit 321 is configured to identify gesture images from images collected by two cameras arranged at different positions, and extract images of the same gesture with different perspectives from the identified gesture images;
深度信息计算单元322,用于根据提取的所述同一手势不同视角的图像获得所述手势关键点的深度信息;A depth information calculation unit 322, configured to obtain the depth information of key points of the gesture according to the extracted images of different viewing angles of the same gesture;
三维手势识别单元323,用于根据所述手势关键点的深度信息构建三维手势信息,并将构建的所述三维手势信息与预先存储的多个手势密码进行比对识别。The 3D gesture recognition unit 323 is configured to construct 3D gesture information according to the depth information of key points of the gesture, and compare and recognize the constructed 3D gesture information with multiple gesture passwords stored in advance.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即所述移动终端的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元或模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元或模块既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述移动终端中单元、模块的具体工作过程,可以参考前述方法实施例的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Module completion means that the internal structure of the mobile terminal is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit or module in the embodiment can be integrated in one processing unit, or each unit can exist separately physically, or two or more units can be integrated in one unit, and the above-mentioned integrated unit or module can be adopted It may be implemented in the form of hardware, or may be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the above-mentioned units and modules in the mobile terminal, reference may be made to the corresponding process in the foregoing method embodiment, and details are not repeated here.
实施例四:Embodiment four:
参见图4,图4是本发明实施例四提供的移动终端的示意框图。如图所示的该移动终端可以包括:一个或多个处理器401(图4中仅示出一个);一个或多个输入设备402(图4中仅示出一个),一个或多个输出设备403(图4中仅示出一个)和存储器404。上述处理器401、输入设备402、输出设备403和存储器404通过总线405连接。存储器404用于存储指令,处理器401用于执行存储器404存储的指令。其中:Referring to FIG. 4 , FIG. 4 is a schematic block diagram of a mobile terminal provided by Embodiment 4 of the present invention. The mobile terminal as shown in the figure may include: one or more processors 401 (only one is shown in FIG. 4 ); one or more input devices 402 (only one is shown in FIG. 4 ), one or more output Devices 403 (only one shown in FIG. 4 ) and memory 404 . The aforementioned processor 401 , input device 402 , output device 403 and memory 404 are connected through a bus 405 . The memory 404 is used to store instructions, and the processor 401 is used to execute the instructions stored in the memory 404 . in:
所述处理器401,用于在预定状态下,通过输入设备402接收到切换模式的指令后,开启摄像头以采集图像;所述处理器401还用于识别所述摄像头采集的图像中的手势,并将识别出的手势与预先存储的多个手势密码进行比对识别;所述处理器401还用于若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则进入与识别出的手势匹配的手势密码对应的终端模式。The processor 401 is configured to turn on the camera to collect images after receiving an instruction to switch modes through the input device 402 in a predetermined state; the processor 401 is also used to recognize gestures in the images collected by the camera, and compare and identify the recognized gesture with a plurality of pre-stored gesture passwords; the processor 401 is also configured to enter the The terminal mode corresponding to the gesture password that matches the recognized gesture.
可选的,所述处理器401还用于在将识别出的手势与预先存储的多个手势密码进行比对识别之前,通过输入设备402接收到手势密码设置指令后,开启摄像头以采集图像;所述处理器401还用于选择相应的终端模式;所述处理器401还用于识别所述摄像头采集的图像中的手势,并将识别的所述手势作为进入所选择的终端模式的手势密码。Optionally, the processor 401 is further configured to turn on the camera to collect images after receiving a gesture password setting instruction through the input device 402 before comparing and recognizing the recognized gesture with multiple gesture passwords stored in advance; The processor 401 is also used to select a corresponding terminal mode; the processor 401 is also used to identify gestures in the images captured by the camera, and use the identified gestures as gesture passwords for entering the selected terminal mode .
可选的,所述预定状态为锁屏状态;所述处理器401还用于若识别出的手势与预先存储的多个手势密码中的任一个手势密码匹配,则解锁屏幕并进入与识别出的手势匹配的手势密码对应的终端模式。Optionally, the predetermined state is the lock screen state; the processor 401 is further configured to unlock the screen and enter the recognized gesture code if the recognized gesture matches any one of the gesture codes stored in advance The gesture password corresponding to the gesture matches the terminal mode.
可选的,所述摄像头为双摄像头,所述手势为二维手势或者三维手势。Optionally, the camera is a dual camera, and the gesture is a two-dimensional gesture or a three-dimensional gesture.
可选的,所述处理器401还用于从设置在不同位置的两个摄像头采集的图像中识别出手势图像,并从识别出的所述手势图像中提取同一手势不同视角的图像;所述处理器401还用于根据提取的所述同一手势不同视角的图像获得所述手势关键点的深度信息;所述处理器401还用于根据所述手势关键点的深度信息构建三维手势信息,并将构建的所述三维手势信息与预先存储的多个手势密码进行比对识别。Optionally, the processor 401 is further configured to recognize gesture images from images collected by two cameras arranged at different positions, and extract images of the same gesture from different angles of view from the recognized gesture images; The processor 401 is further configured to obtain the depth information of key points of the gesture according to the extracted images of different viewing angles of the same gesture; the processor 401 is further configured to construct three-dimensional gesture information according to the depth information of the key points of the gesture, and The constructed three-dimensional gesture information is compared with a plurality of pre-stored gesture passwords for identification.
可选的,所述处理器401还用于根据识别的手势生成手势信息通过输出设备403供用户确认;所述处理器401还用于若通过输入设备402接收到用户确认通过的信息后,将识别的手势与预先存储的多个手势密码进行比对识别。Optionally, the processor 401 is further configured to generate gesture information according to the recognized gesture for user confirmation through the output device 403; The recognized gesture is compared and recognized with multiple gesture passwords stored in advance.
所述存储器404,用于存储软件程序、模块、单元以及移动终端中需要的数据信息,所述处理器401通过运行存储在所述存储器404的软件程序、模块以及单元,从而执行各种功能应用以及数据处理,简化用户切换移动终端不同模式的操作,提高操作效率。The memory 404 is used to store software programs, modules, units, and data information required in the mobile terminal. The processor 401 executes various functional applications by running the software programs, modules, and units stored in the memory 404 As well as data processing, it simplifies the user's operation of switching between different modes of the mobile terminal and improves the operation efficiency.
应当理解,在本发明实施例中,所称处理器401可以是中央处理单元(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present invention, the so-called processor 401 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
输入设备402可以包括触控板、指纹采集传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风、摄像头、数据采集装置、数据接收装置等,输出设备403可以包括显示器(LCD等)、扬声器、数据发送装置等。The input device 402 may include a touch panel, a fingerprint collection sensor (for collecting the user's fingerprint information and the direction information of the fingerprint), a microphone, a camera, a data collection device, a data receiving device, etc., and the output device 403 may include a display (LCD, etc.) , loudspeaker, data transmission device, etc.
该存储器404可以包括只读存储器和随机存取存储器,并向处理器401提供指令和数据。存储器404的一部分还可以包括非易失性随机存取存储器。例如,存储器404还可以存储设备类型的信息。The memory 404 may include read-only memory and random-access memory, and provides instructions and data to the processor 401 . A portion of memory 404 may also include non-volatile random access memory. For example, memory 404 may also store device type information.
具体实现中,本发明实施例中所描述的处理器401、输入设备402、输出设备403和存储器404可执行本发明实施例提供的移动终端切换模式的方法的实施例中所描述的实现方式,也可执行移动终端实施例三中所描述的实现方式,在此不再赘述。In a specific implementation, the processor 401, the input device 402, the output device 403, and the memory 404 described in the embodiment of the present invention can execute the implementation described in the embodiment of the method for switching modes of the mobile terminal provided in the embodiment of the present invention, The implementation manner described in the third embodiment of the mobile terminal may also be executed, which will not be repeated here.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the modules and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的移动终端和方法,可以通过其它的方式实现。例如,以上所描述的实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present invention, it should be understood that the disclosed mobile terminal and method can be implemented in other ways. For example, the above-described embodiments are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined Or it can be integrated into another system, or some features can be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may physically exist separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明实施例各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage In the medium, several instructions are included to make a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例各实施例技术方案的精神和范围。The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still carry out the foregoing embodiments The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710168779.1A CN106951750A (en) | 2017-03-21 | 2017-03-21 | Method for switching modes of mobile terminal and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710168779.1A CN106951750A (en) | 2017-03-21 | 2017-03-21 | Method for switching modes of mobile terminal and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106951750A true CN106951750A (en) | 2017-07-14 |
Family
ID=59472571
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710168779.1A Pending CN106951750A (en) | 2017-03-21 | 2017-03-21 | Method for switching modes of mobile terminal and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106951750A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107517349A (en) * | 2017-09-07 | 2017-12-26 | 深圳支点电子智能科技有限公司 | Mobile terminal and Related product with camera function |
CN107613197A (en) * | 2017-09-07 | 2018-01-19 | 深圳支点电子智能科技有限公司 | One kind control camera photographic method and mobile terminal |
CN108737720A (en) * | 2018-04-11 | 2018-11-02 | 努比亚技术有限公司 | Wearable device image pickup method, wearable device and computer readable storage medium |
CN108768428A (en) * | 2018-05-17 | 2018-11-06 | 西安易朴通讯技术有限公司 | A kind of method and device of switch card slot status |
CN110555391A (en) * | 2019-08-09 | 2019-12-10 | 上海交通大学 | Intelligent wireless operating system and method based on grating diffraction and gesture recognition |
CN111045509A (en) * | 2018-10-12 | 2020-04-21 | 上海博泰悦臻电子设备制造有限公司 | Terminal mode switching method, terminal and vehicle |
CN111428222A (en) * | 2020-03-19 | 2020-07-17 | 闻泰通讯股份有限公司 | Gesture control method and device of mobile terminal, mobile terminal and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927016A (en) * | 2014-04-24 | 2014-07-16 | 西北工业大学 | Real-time three-dimensional double-hand gesture recognition method and system based on binocular vision |
CN105847557A (en) * | 2016-03-28 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and device of switching situation modes |
-
2017
- 2017-03-21 CN CN201710168779.1A patent/CN106951750A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927016A (en) * | 2014-04-24 | 2014-07-16 | 西北工业大学 | Real-time three-dimensional double-hand gesture recognition method and system based on binocular vision |
CN105847557A (en) * | 2016-03-28 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and device of switching situation modes |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107517349A (en) * | 2017-09-07 | 2017-12-26 | 深圳支点电子智能科技有限公司 | Mobile terminal and Related product with camera function |
CN107613197A (en) * | 2017-09-07 | 2018-01-19 | 深圳支点电子智能科技有限公司 | One kind control camera photographic method and mobile terminal |
CN108737720A (en) * | 2018-04-11 | 2018-11-02 | 努比亚技术有限公司 | Wearable device image pickup method, wearable device and computer readable storage medium |
CN108737720B (en) * | 2018-04-11 | 2020-12-04 | 努比亚技术有限公司 | Wearable device shooting method, wearable device and computer-readable storage medium |
CN108768428A (en) * | 2018-05-17 | 2018-11-06 | 西安易朴通讯技术有限公司 | A kind of method and device of switch card slot status |
CN111045509A (en) * | 2018-10-12 | 2020-04-21 | 上海博泰悦臻电子设备制造有限公司 | Terminal mode switching method, terminal and vehicle |
CN110555391A (en) * | 2019-08-09 | 2019-12-10 | 上海交通大学 | Intelligent wireless operating system and method based on grating diffraction and gesture recognition |
CN110555391B (en) * | 2019-08-09 | 2022-04-05 | 上海交通大学 | Intelligent wireless operating system and method based on grating diffraction and gesture recognition |
CN111428222A (en) * | 2020-03-19 | 2020-07-17 | 闻泰通讯股份有限公司 | Gesture control method and device of mobile terminal, mobile terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106951750A (en) | Method for switching modes of mobile terminal and mobile terminal | |
CN109461003B (en) | Multi-view-angle-based multi-face scene face brushing payment risk prevention and control method and device | |
CN110069970B (en) | Activity test methods and equipment | |
CN106991377B (en) | Face recognition method, face recognition device and electronic device combined with depth information | |
EP3113114B1 (en) | Image processing method and device | |
KR102391792B1 (en) | Biometric detection methods, devices and systems, electronic devices and storage media | |
CN108563936B (en) | Task execution method, terminal device and computer-readable storage medium | |
US9898090B2 (en) | Apparatus, method and recording medium for controlling user interface using input image | |
WO2017181769A1 (en) | Facial recognition method, apparatus and system, device, and storage medium | |
CN105474222B (en) | The device and method that various modes image for iris imaging obtains | |
CN106326867A (en) | Face recognition method and mobile terminal | |
KR20190129826A (en) | Biometrics methods and apparatus, systems, electronic devices, storage media | |
WO2013180151A1 (en) | Position-of-interest detection device, position-of-interest detection method, and position-of-interest detection program | |
US12333857B2 (en) | Electronic device capable of identifying ineligible object | |
JP7582393B2 (en) | Distributed processing system, communication system, image acquisition terminal, and distributed processing method | |
CN104246793A (en) | Three-dimensional face recognition for mobile devices | |
CN106709404A (en) | Image processing device and image processing method | |
CN111476894A (en) | Three-dimensional semantic map construction method and device, storage medium and electronic equipment | |
CN108594995A (en) | Electronic equipment operation method based on gesture recognition and electronic equipment | |
CN112084882A (en) | Behavior detection method and device and computer readable storage medium | |
US9965612B2 (en) | Method and system for visual authentication | |
CN106991376B (en) | Depth information-combined side face verification method and device and electronic device | |
CN106909219B (en) | Interaction control method and device based on three-dimensional space and intelligent terminal | |
WO2019218878A1 (en) | Photography restoration method and apparatus, storage medium and terminal device | |
CN112347870B (en) | Image processing method, device and equipment of head-mounted equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170714 |