技术领域technical field
本发明实施例涉及通讯技术领域,尤其涉及一种控制自拍模式开启的方法及装置。Embodiments of the present invention relate to the field of communication technologies, and in particular, to a method and device for controlling the activation of a Selfie mode.
背景技术Background technique
随着各种智能终端的普及以及智能终端中拍照美颜的功能越来越完善,自拍成为一种经常被用户使用的功能。相关技术中,实现自拍的方法为:用户使用前置摄像头对准用户面部;当用户确定要拍照时,点击智能终端触摸屏中的拍照按钮,完成一次拍照。With the popularity of various smart terminals and the function of taking pictures and beautifying the skin in the smart terminals is becoming more and more perfect, Selfie has become a function that is often used by users. In related technologies, the method for realizing self-portrait is as follows: the user uses the front camera to aim at the user's face; when the user determines to take a photo, clicks the photo button on the touch screen of the smart terminal to complete a photo.
但是在用户进行自拍前,需要先开启智能终端中的自拍模式。现有技术中,一般智能终端开启自拍模式至少要经过唤醒、解锁、找到相机应用程序、进入相机界面以及选取前置摄像头等一系列的步骤,导致了开启自拍模式步骤繁琐,操作不便,用户体验效果不佳。However, before the user takes a selfie, the selfie mode in the smart terminal needs to be turned on first. In the prior art, a general smart terminal needs at least a series of steps to activate the selfie mode, such as waking up, unlocking, finding the camera application, entering the camera interface, and selecting the front camera. not effectively.
发明内容Contents of the invention
有鉴于此,本发明实施例提供一种控制自拍模式开启的方法及装置,能够快速开启自拍模式,解决开启自拍模式步骤繁琐,操作不便,用户体验效果不佳的问题。In view of this, the embodiments of the present invention provide a method and device for controlling the activation of the self-timer mode, which can quickly activate the Selfie mode, and solve the problems of cumbersome steps, inconvenient operation, and poor user experience.
第一方面,本发明实施例提供了一种控制智能终端上自拍模式开启的方法,包括:In the first aspect, the embodiment of the present invention provides a method for controlling the Selfie mode on the smart terminal, including:
实时利用智能终端上的加速度传感器获取所述智能终端的运动状态参数;Using the acceleration sensor on the smart terminal to obtain the motion state parameters of the smart terminal in real time;
对所述运动状态参数进行解析,基于解析结果进行自拍手势识别;Analyzing the motion state parameters, and performing selfie gesture recognition based on the analysis results;
如果识别出自拍手势,则调用所述智能终端上的前置摄像头捕捉图像;If a selfie gesture is recognized, the front camera on the smart terminal is called to capture an image;
检测所述图像是否包含人脸特征,基于检测结果确定是否开启所述智能终端上的自拍模式。Detecting whether the image contains facial features, and determining whether to enable the selfie mode on the smart terminal based on the detection result.
第二方面,本发明实施例还提供了一种控制智能终端上自拍模式开启的装置,包括:In the second aspect, the embodiment of the present invention also provides a device for controlling the start of the Selfie mode on the smart terminal, including:
运动状态参数获取单元,用于实时获取根据智能终端上的加速度传感器记录的数据得到的所述智能终端的运动状态参数;A motion state parameter acquisition unit, configured to obtain in real time the motion state parameters of the smart terminal obtained from data recorded by the acceleration sensor on the smart terminal;
自拍手势识别单元,用于对所述运动状态参数进行解析,基于解析结果进行自拍手势识别;A selfie gesture recognition unit, configured to analyze the motion state parameters, and perform selfie gesture recognition based on the analysis result;
前置摄像头调用单元,用于如果识别出自拍手势,则调用所述智能终端上的前置摄像头捕捉图像;The front camera calling unit is used to call the front camera on the smart terminal to capture an image if the selfie gesture is recognized;
自拍模式确定单元,用于检测所述图像是否包含人脸特征,基于检测结果确定是否开启所述智能终端上的自拍模式。A Selfie mode determining unit, configured to detect whether the image contains facial features, and determine whether to enable the Selfie mode on the smart terminal based on the detection result.
本发明实施例提供的一种控制智能终端上自拍模式开启的方法及装置,通过加速度传感器获取智能终端的运动状态参数,对运动状态进行参数解析,基于解析结果进行自拍手势识别,如果识别出自拍手势,调用前置摄像头捕捉图像,检测图像中是否包含有人脸的特征,确定是否开启自拍模式,能够使智能终端快速进入自拍模式,解决开启自拍模式步骤繁琐,操作不便,用户体验效果不佳的问题。The embodiment of the present invention provides a method and device for controlling the opening of the Selfie mode on a smart terminal. The acceleration sensor is used to obtain the motion state parameters of the smart terminal, the parameter analysis is performed on the motion state, and the Selfie gesture is recognized based on the analysis result. If the Selfie is recognized Gestures, call the front camera to capture images, detect whether the images contain human face features, determine whether to enable the Selfie mode, and enable the smart terminal to quickly enter the Selfie mode, solving the problems of cumbersome steps, inconvenient operation, and poor user experience question.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1为本实施例一提供的一种控制智能终端上自拍模式开启的方法流程图;FIG. 1 is a flow chart of a method for controlling the Selfie mode on a smart terminal provided in Embodiment 1;
图2是本实施例二提供的一种控制智能终端上自拍模式开启的方法流程图;FIG. 2 is a flow chart of a method for controlling the Selfie mode on a smart terminal provided in Embodiment 2;
图3是本实施例三提供的一种控制智能终端上自拍模式开启的方法流程图Fig. 3 is a flow chart of a method for controlling the Selfie mode on the smart terminal provided by the third embodiment
图4是本实施例四提供的一种控制智能终端上自拍模式开启的方法流程图;FIG. 4 is a flow chart of a method for controlling the Selfie mode on a smart terminal provided in Embodiment 4;
图5是本实施例五提供的一种控制智能终端上自拍模式开启装置的结构框图。FIG. 5 is a structural block diagram of an apparatus for controlling Selfie mode activation on a smart terminal provided in Embodiment 5. FIG.
具体实施方式detailed description
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.
实施例一Embodiment one
图1为本实施例一提供的一种控制智能终端上自拍模式开启的方法流程图;该方法可以由控制智能终端上自拍模式开启的装置来执行,其中所述装置可由软件和/或硬件的方式来实现,该装置设于智能终端内部,如图1所示,所述方法,包括:Figure 1 is a flow chart of a method for controlling the Selfie mode on the smart terminal provided in the first embodiment; the method can be performed by a device for controlling the Selfie mode on the smart terminal, wherein the device can be implemented by software and/or hardware way, the device is located inside the smart terminal, as shown in Figure 1, the method, including:
步骤101:实时利用智能终端上的加速度传感器获取所述智能终端的运动状态参数。Step 101: Use the acceleration sensor on the smart terminal to obtain the motion state parameters of the smart terminal in real time.
所述的智能终端为手机、平板电脑等电子设备;所述加速度传感器能够检测智能终端在三个轴坐标上的加速度,根据加速度计算出智能终端的速度及智能终端与水平面的夹角等参数。The smart terminal is an electronic device such as a mobile phone or a tablet computer; the acceleration sensor can detect the acceleration of the smart terminal on three axis coordinates, and calculate parameters such as the speed of the smart terminal and the angle between the smart terminal and the horizontal plane according to the acceleration.
步骤102:对所述运动状态参数进行解析,基于解析结果进行自拍手势识别。Step 102: Analyzing the motion state parameters, and performing selfie gesture recognition based on the analysis results.
在本实施例中,对运动状态参数进行解析,能够得出如下结果:智能终端是否处于运动或静止状态,智能终端在运动状态时的速度以及与水平面的夹角变化,智能终端处于静止状态时与水平面的夹角等。根据获取的解析结果,来识别自拍手势。例如,在静止状态下,如果智能终端与水平的夹角正好符合预设的自拍手势的夹角条件,则智能终端正处于自拍手势状态下,能够识别出自拍手势,如果夹角不符合自拍手势的夹角条件,则不能识别出自拍手势。In this embodiment, the motion state parameters are analyzed, and the following results can be obtained: whether the smart terminal is in motion or in a static state, the speed of the intelligent terminal in the motion state and the angle change with the horizontal plane, when the intelligent terminal is in a static state angle with the horizontal plane, etc. The selfie gesture is recognized according to the acquired analysis result. For example, in a static state, if the angle between the smart terminal and the horizontal just meets the preset angle condition of the selfie gesture, the smart terminal is in the state of the selfie gesture and can recognize the selfie gesture. If the angle does not meet the selfie gesture If the included angle condition is different, the selfie gesture cannot be recognized.
步骤103:如果识别出自拍手势,调用所述智能终端上的前置摄像头捕捉图像。Step 103: If the selfie gesture is recognized, call the front camera on the smart terminal to capture an image.
在本实施例中,如果识别出自拍手势,调用所述智能终端上的前置摄像头捕捉图像,否则返回步骤101。In this embodiment, if the selfie gesture is recognized, the front camera on the smart terminal is called to capture an image; otherwise, return to step 101 .
步骤104:检测所述图像是否包含人脸特征,基于检测结果确定是否开启所述智能终端上的自拍模式。Step 104: Detect whether the image contains facial features, and determine whether to enable the selfie mode on the smart terminal based on the detection result.
在本实施例中,如果识别出自拍手势,则调用智能终端上的前置摄像头捕捉图像,并对图像进行检测,如果图像中包含人脸特征,开启智能终端上的自拍模式,否则返回步骤101。举例说明,如果捕捉的图像中为人的面部的图像,其中包含了人脸特征,则开启智能终端上的自拍模式;如果捕捉的图像为人的衣服、头发等图像或者外界的房屋、道路等图像,其中不包含人脸的特征,则不能开启智能终端上的自拍模式,返回步骤101。In this embodiment, if the selfie gesture is recognized, the front camera on the smart terminal is called to capture an image, and the image is detected. If the image contains facial features, the selfie mode on the smart terminal is turned on, otherwise, return to step 101 . For example, if the captured image is an image of a person's face, which contains facial features, then turn on the Selfie mode on the smart terminal; if the captured image is a person's clothes, hair, etc. If the features of the face are not included, the Selfie mode on the smart terminal cannot be turned on, and step 101 is returned.
本发明实施例一提供的一种控制智能终端上自拍模式开启的方法,通过加速度传感器获取智能终端的运动状态参数,能够对运动状态进行参数解析,基于解析结果进行自拍手势识别,如果识别出自拍手势,调用前置摄像头捕捉图像,检测图像中是否包含有人脸的特征,确定是否开启自拍模式,能够使智能终端快速进入自拍模式,解决开启自拍模式步骤繁琐,操作不便,用户体验效果不佳的问题。Embodiment 1 of the present invention provides a method for controlling the activation of the Selfie mode on a smart terminal. The motion state parameters of the smart terminal are obtained through an acceleration sensor, and the parameters of the motion state can be analyzed, and the Selfie gesture is recognized based on the analysis result. If the Selfie is recognized Gestures, call the front camera to capture images, detect whether the images contain human face features, determine whether to enable the Selfie mode, and enable the smart terminal to quickly enter the Selfie mode, solving the problems of cumbersome steps, inconvenient operation, and poor user experience question.
实施例二Embodiment two
图2为本实施例二提供的一种控制智能终端上自拍模式开启的方法流程图;本实施例在上述实施例的基础上,增加了检测所述智能终端是否处于待机状态或者主界面显示状态的步骤,相应的,如图2所示,所述方法包括:Fig. 2 is a flow chart of a method for controlling the Selfie mode on the smart terminal provided by the second embodiment; on the basis of the above embodiment, this embodiment adds the detection of whether the smart terminal is in the standby state or the main interface display state The steps, correspondingly, as shown in Figure 2, the method includes:
步骤201:检测所述智能终端是否处于待机状态或者主界面显示状态。Step 201: Detect whether the smart terminal is in a standby state or a main interface display state.
在本实施例中,检测所述智能终端是否处于待机状态或者主界面显示状态,如果是,则执行实时获取所述智能终端的运动状态参数的操作;否则,不能获取智能终端的运动状态参数,导致不能开启智能终端的自拍模式,例如,当智能终端处于阅读电子书、页面浏览或听音乐等状态时(没有处于待机状态或主界面显示状态),不能获取智能终端的运动状态参数,导致不能开启智能终端的自拍模式。In this embodiment, it is detected whether the smart terminal is in the standby state or the main interface display state, and if so, the operation of obtaining the motion state parameters of the smart terminal in real time is performed; otherwise, the motion state parameters of the smart terminal cannot be obtained, As a result, the Selfie mode of the smart terminal cannot be turned on. For example, when the smart terminal is in the state of reading e-books, browsing pages or listening to music (not in the standby state or the main interface display state), the motion state parameters of the smart terminal cannot be obtained, resulting in the inability to Turn on the selfie mode of the smart terminal.
步骤202:实时利用智能终端上的加速度传感器获取所述智能终端的运动状态参数。Step 202: Using the acceleration sensor on the smart terminal to obtain the motion state parameters of the smart terminal in real time.
步骤203:对所述运动状态参数进行解析,基于解析结果进行自拍手势识别。Step 203: Analyzing the motion state parameters, and performing selfie gesture recognition based on the analysis results.
步骤204:如果识别出自拍手势,调用所述智能终端上的前置摄像头捕捉图像。Step 204: If the selfie gesture is recognized, call the front camera on the smart terminal to capture an image.
步骤205:检测所述图像是否包含人脸特征,基于检测结果确定是否开启所述智能终端上的自拍模式。Step 205: Detect whether the image contains facial features, and determine whether to enable the selfie mode on the smart terminal based on the detection result.
在本实施例中,如果智能终端没有处于待机状态或者主界面显示状态,不管智能终端自拍手势是否符合条件,也不能开启智能终端的自拍模式。In this embodiment, if the smart terminal is not in the standby state or the main interface display state, no matter whether the selfie gesture of the smart terminal meets the conditions, the selfie mode of the smart terminal cannot be turned on.
本实施例二提供了一种控制智能终端上自拍模式开启的方法,在实施例一的基础上,增加了检测所述智能终端是否处于待机状态或者主界面显示状态的步骤,能够使智能终端快速进入自拍模式,解决开启自拍模式步骤繁琐,操作不便,用户体验效果不佳的问题。Embodiment 2 of this embodiment provides a method for controlling the Selfie mode on the smart terminal. On the basis of Embodiment 1, a step of detecting whether the smart terminal is in the standby state or the main interface display state is added, so that the smart terminal can quickly Enter the selfie mode to solve the problems of cumbersome steps, inconvenient operation, and poor user experience.
实施例三Embodiment three
图3是本实施例三提供的一种控制智能终端上自拍模式开启的方法流程图;该方法在上述实施例的基础上进行了优化,在本实施例中,对实施例一中的步骤102或实施例二中的步骤203,进行了进一步的优化,相应的,如图3所示,所述方法包括:Fig. 3 is a flow chart of a method for controlling the opening of the Selfie mode on the smart terminal provided by the third embodiment; the method is optimized on the basis of the above-mentioned embodiment, in this embodiment, step 102 Or step 203 in the second embodiment is further optimized. Correspondingly, as shown in FIG. 3, the method includes:
步骤301:检测所述智能终端是否处于待机状态或者主界面显示状态。Step 301: Detect whether the smart terminal is in a standby state or a main interface display state.
步骤302:实时利用智能终端上的加速度传感器获取所述智能终端的运动状态参数。Step 302: Using the acceleration sensor on the smart terminal to obtain the motion state parameters of the smart terminal in real time.
其中,所述运动状态参数包括所述智能终端的速度和所述智能终端与水平面的夹角,加速度传感器能够感测出的智能终端的加速度,计算出智能终端的速度,智能终端与水平面的夹角。Wherein, the motion state parameters include the speed of the smart terminal and the angle between the smart terminal and the horizontal plane, the acceleration sensor can sense the acceleration of the smart terminal, calculate the speed of the smart terminal, and the angle between the smart terminal and the horizontal plane. horn.
步骤303:实时提取得到的运动状态参数中的速度,基于所述速度对所述智能终端进行状态识别,其中所述状态包括静止状态和运动状态。Step 303: Extracting the speed in the motion state parameters obtained in real time, and performing state identification on the smart terminal based on the speed, wherein the state includes a static state and a motion state.
在本实施例中,根据智能终端中的速度,能够对智能终端的进行状态识别。例如,当智能终端的速度为0时,智能终端处于静止状态,否则处于运动状态。In this embodiment, according to the speed in the smart terminal, the status of the smart terminal can be identified. For example, when the speed of the smart terminal is 0, the smart terminal is in a static state, otherwise it is in a moving state.
步骤304:在识别出所述智能终端由运动状态变化为静止状态时,提取当前时刻得到的运动状态参数中的夹角,并确定所提取的夹角是否位于预设的阈值范围内。Step 304: When it is recognized that the smart terminal changes from a motion state to a static state, extract an included angle in the motion state parameters obtained at the current moment, and determine whether the extracted included angle is within a preset threshold range.
步骤305:根据确定结果,判断是否识别出自拍手势。Step 305: According to the determination result, determine whether the selfie gesture is recognized.
在本实施例中,优选的智能终端与水平面的夹角预设的阈值范围为(45,90]。当识别出所述智能终端由运动状态变化为静止状态时,提取当前时刻(静止状态)运动状态参数中的夹角(智能终端与水平面),确定所提取的夹角是否位于预设的阈值范围,如果在预设的范围,能够识别出自拍手势,否则,不能识别出自拍手势,返回步骤302。举例说明,如果智能终端由人的胸前运动到正对人的面部静止时或者由其他位置运动到正对人的面部静止时,能够获取当前时刻智能终端(显示屏面)与水平面的夹角,当前时刻所述夹角为90度,位于预设的阈值范围内,能够识别出自拍手势。In this embodiment, the preset threshold range of the angle between the preferred intelligent terminal and the horizontal plane is (45,90]. When it is recognized that the intelligent terminal changes from a motion state to a static state, extract the current moment (stationary state) The included angle (smart terminal and horizontal plane) in the motion state parameters determines whether the extracted included angle is within the preset threshold range. If it is within the preset range, the selfie gesture can be recognized, otherwise, the selfie gesture cannot be recognized, and return Step 302. For example, if the smart terminal moves from the front of the person's chest to when the face facing the person is still or when it moves from other positions to when the face facing the person is still, the current moment of the smart terminal (display screen) and the horizontal plane can be obtained. The included angle is 90 degrees at the current moment, which is within the preset threshold range, and the selfie gesture can be recognized.
又如,当智能终端的中心与人的面部的中心处于同等的高度时,当前时刻智能终端与水平面的夹角为0,旋转智能终端,使智能终端(显示屏面)正对人的面部时,智能终端静止,当前时刻所述夹角为90度,位于预设的阈值范围内,能够识别出自拍手势;如果智能终端静止时,与水平面的夹角没有在预设的阈值范围内,不能够识别出自拍手势,返回步骤302。For another example, when the center of the smart terminal is at the same height as the center of the person's face, and the angle between the smart terminal and the horizontal plane is 0 at the current moment, when the smart terminal is rotated so that the smart terminal (display screen) is facing the person's face , the smart terminal is still, the angle at the current moment is 90 degrees, which is within the preset threshold range, and the Selfie gesture can be recognized; if the smart terminal is still, the angle with the horizontal plane is not within the preset threshold range, no If the selfie gesture can be recognized, return to step 302 .
步骤306:如果识别出自拍手势,调用所述智能终端上的前置摄像头捕捉图像。Step 306: If the selfie gesture is recognized, call the front camera on the smart terminal to capture an image.
步骤307:检测所述图像是否包含人脸特征,基于检测结果确定是否开启所述智能终端上的自拍模式。Step 307: Detect whether the image contains facial features, and determine whether to enable the selfie mode on the smart terminal based on the detection result.
本实施例三提供了一种控制智能终端上自拍模式开启的方法,本实施例在上述实施例的基础上进行了优化,通过识别到智能终端由运动状态变化为静止状态时,提取的静止状态的运动参数中的夹角,识别自拍手势,最终实现开启智能终端上的自拍模式,能够使智能终端快速进入自拍模式,解决开启自拍模式步骤繁琐,操作不便,用户体验效果不佳的问题。The third embodiment provides a method for controlling the start of the Selfie mode on the smart terminal. This embodiment is optimized on the basis of the above-mentioned embodiments. By recognizing that the smart terminal changes from a moving state to a static state, the extracted static state The included angle in the motion parameters can identify the Selfie gesture, and finally realize the Selfie mode on the smart terminal, which can quickly enter the Selfie mode on the smart terminal, and solve the problems of cumbersome steps, inconvenient operation, and poor user experience.
实施例四Embodiment four
图4是本实施例四提供的一种控制智能终端上自拍模式开启的方法流程图;本实施例四是实施例三的另外一种实施方式,如图4所示,所述方法包括:Fig. 4 is a flow chart of a method for controlling the Selfie mode on a smart terminal provided in Embodiment 4; Embodiment 4 is another implementation of Embodiment 3, as shown in Fig. 4 , the method includes:
步骤401:检测所述智能终端是否处于待机状态或者主界面显示状态。Step 401: Detect whether the smart terminal is in a standby state or a main interface display state.
步骤402:实时利用智能终端上的加速度传感器获取所述智能终端的运动状态参数。Step 402: Using the acceleration sensor on the smart terminal to obtain the motion state parameters of the smart terminal in real time.
步骤403:实时提取得到的运动状态参数中的速度,基于所述速度对所述智能终端进行状态识别,其中所述状态包括静止状态和运动状态。Step 403: Extracting the speed in the motion state parameters obtained in real time, and performing state identification on the smart terminal based on the speed, wherein the state includes a static state and a motion state.
步骤404:在识别出所述智能终端由运动状态变化为静止状态时,提取当前时刻得到的运动状态参数中的夹角,并确定所提取的夹角是否位于预设的阈值范围内。Step 404: When it is recognized that the smart terminal changes from a motion state to a static state, extract an included angle in the motion state parameters obtained at the current moment, and determine whether the extracted included angle is within a preset threshold range.
步骤405:提取所述智能终端处于所述运动状态时得到的多个运动状态参数中的速度和/或夹角。Step 405: Extract the speed and/or included angle among the multiple motion state parameters obtained when the smart terminal is in the motion state.
具体的,多个运动状态参数中的速度和/或夹角为:智能终端在运动过程中,提取的不同时刻的智能终端的速度和/或夹角。Specifically, the speed and/or included angle in the multiple motion state parameters are: the speed and/or included angle of the smart terminal extracted at different moments during the motion of the smart terminal.
步骤406:根据提取的速度和/或夹角,进行手势运动检测;Step 406: Perform gesture motion detection according to the extracted speed and/or angle;
在本实施例中,提取所述智能终端处于所述运动状态时得到的多个运动状态参数中的速度和/或夹角,根据提取的速度和/或夹角,进行手势运动检测;举例说明,智能终端处于运动状态时,在T1时刻,智能终端的速度为V1,夹角为a1;在T2时刻,智能终端的速度为V2,夹角为a2;在不同的T1和T2时刻,根据智能终端的速度V1和V2,或者夹角a1和a2,或者速度V1、V2和夹角a1、a2,能够判断智能终端是否符合预设的手势运动的条件。In this embodiment, the speed and/or included angle among the multiple motion state parameters obtained when the smart terminal is in the motion state is extracted, and gesture motion detection is performed according to the extracted speed and/or angle; , when the smart terminal is in motion, at time T1, the speed of the smart terminal is V1, and the angle is a1; at time T2, the speed of the smart terminal is V2, and the angle is a2; at different times T1 and T2, according to the The speeds V1 and V2 of the terminal, or the included angles a1 and a2, or the speeds V1, V2 and the included angles a1, a2 can determine whether the smart terminal meets the preset gesture movement conditions.
步骤407:根据确定结果以及手势运动检测结果,判断是否识别出自拍手势。Step 407: According to the determination result and the gesture motion detection result, determine whether the selfie gesture is recognized.
在本实施例中,检测所提取到的各个夹角是否满足如下规律:随着时间逐渐增大,将该检测结果作为手势运动检测结果;判断是否识别出自拍手势,具备两个条件:第一、根据智能终端由运动状态变化为静止状态时,提取的当前时刻的夹角是否位于预设的范围。第二,智能终端处于运动状态时,得到的手势运动检测结果。In this embodiment, it is detected whether the extracted angles meet the following rules: as time gradually increases, the detection result is used as the gesture motion detection result; to determine whether the selfie gesture is recognized, two conditions are met: the first . According to whether the extracted angle at the current moment is within a preset range when the smart terminal changes from a motion state to a static state. Second, when the smart terminal is in a motion state, the motion detection result of the gesture is obtained.
举例说明,当智能终端由人的胸前运动到正对人的面部静止时,提取当前时刻,智能终端与水平面的夹角为90度,位于预设的夹角范围内;并且提取智能终端处于所述运动状态时(在运动过程中)得到的多个运动状态参数中的夹角,如果夹角随着时间的增大而增大,则符合手势运动的条件,则能够识别出自拍手势,否则,不能识别出自拍手势,返回步骤402。For example, when the smart terminal moves from the front of the person's chest to the person's face at rest, extract the current moment, the angle between the smart terminal and the horizontal plane is 90 degrees, which is within the preset angle range; and extract the position of the smart terminal at If the included angle among the plurality of motion state parameters obtained during the motion state (during motion) increases with time, it meets the condition of the gesture motion, and the selfie gesture can be recognized, Otherwise, the selfie gesture cannot be recognized, and the process returns to step 402 .
在上述实施例的基础上,智能终端在处于运动状态时,如果得到的多个运动状态参数中的速度随着时间的变化满足预设的规律,或者速度和夹角随着时间的变化同时满足预设的规律,则将其作为手势运动结果;例如,预设的速度和夹角的规律为:随着时间的增大,速度逐渐减少,夹角不断增大,如果检测到的多个运动状态参数中的速度和夹角满足上述规律,则将检测结果作为手势运动结果。On the basis of the above-mentioned embodiments, when the smart terminal is in a motion state, if the speed in the obtained multiple motion state parameters changes with time to meet the preset law, or the speed and angle change with time simultaneously satisfy the If there is a preset law, it will be used as the result of the gesture movement; for example, the preset law of speed and angle is: as time increases, the speed gradually decreases, and the angle continues to increase. If multiple motions are detected If the speed and included angle in the state parameters meet the above rules, the detection result will be regarded as the result of the gesture movement.
步骤408:如果识别出自拍手势,调用所述智能终端上的前置摄像头捕捉图像。Step 408: If the selfie gesture is recognized, call the front camera on the smart terminal to capture an image.
步骤409:检测所述图像是否包含人脸特征,基于检测结果确定是否开启所述智能终端上的自拍模式。Step 409: Detect whether the image contains facial features, and determine whether to enable the selfie mode on the smart terminal based on the detection result.
本实施例四提供了一种控制智能终端上自拍模式开启的方法,本实施例是实施例三的另外一种实施方式,通过在识别出所述智能终端由运动状态变化为静止状态时,提取的静止状态的运动参数中的夹角以及检测到的手势运动,识别自拍手势,最终实现开启智能终端上的自拍模式,能够使智能终端快速进入自拍模式,解决开启自拍模式步骤繁琐,操作不便,用户体验效果不佳的问题。This embodiment four provides a method for controlling the Selfie mode on the smart terminal. This embodiment is another implementation of the third embodiment. The included angle in the motion parameters in the static state and the detected gesture movement, recognize the selfie gesture, and finally realize the selfie mode on the smart terminal, which can quickly enter the selfie mode on the smart terminal, and solve the cumbersome steps and inconvenient operation of turning on the selfie mode. Problems with poor user experience.
实施例五Embodiment five
图5是本实施例五提供的一种控制智能终端上自拍模式开启装置的结构框图,该装置设于智能终端中,应用本发明中上述实施例的方法进行控制自拍模式的开启,如图5所示,所述装置500包括:Fig. 5 is a structural block diagram of a device for controlling Selfie mode activation on a smart terminal provided in Embodiment 5. The device is set in a smart terminal, and the method of the above-mentioned embodiment of the present invention is used to control the Selfie mode, as shown in Fig. 5 As shown, the device 500 includes:
运动状态参数获取单元501,用于实时利用智能终端上的加速度传感器获取所述智能终端的运动状态参数;The motion state parameter acquisition unit 501 is used to obtain the motion state parameters of the smart terminal by using the acceleration sensor on the smart terminal in real time;
自拍手势识别单元502,用于对所述运动状态参数进行解析,基于解析结果进行自拍手势识别;A selfie gesture recognition unit 502, configured to analyze the motion state parameters, and perform selfie gesture recognition based on the analysis result;
前置摄像头调用单元503,用于如果识别出自拍手势,则调用所述智能终端上的前置摄像头捕捉图像;The front camera calling unit 503 is used to call the front camera on the smart terminal to capture an image if the selfie gesture is recognized;
自拍模式确定单元504,用于检测所述图像是否包含人脸特征,基于检测结果确定是否开启所述智能终端上的自拍模式。A Selfie mode determination unit 504 is configured to detect whether the image contains human face features, and determine whether to enable the Selfie mode on the smart terminal based on the detection result.
本发明实施例提供了一种控制智能终端上自拍模式开启装置,通过加速度传感器获取智能终端的运动状态参数,对运动状态进行参数解析,基于解析结果进行自拍手势识别,如果识别出自拍手势,调用前置摄像头捕捉图像,检测图像中是否包含有人脸的特征,确定是否开启自拍模式,能够使智能终端快速进入自拍模式,解决开启自拍模式步骤繁琐,操作不便,用户体验效果不佳的问题。The embodiment of the present invention provides a device for controlling the Selfie mode on the smart terminal, which obtains the motion state parameters of the smart terminal through the acceleration sensor, analyzes the parameters of the motion state, and performs Selfie gesture recognition based on the analysis result. If the Selfie gesture is recognized, call The front camera captures an image, detects whether the image contains human face features, and determines whether to enable the selfie mode, which enables the smart terminal to quickly enter the selfie mode, solving the problems of cumbersome steps, inconvenient operation, and poor user experience.
在上述实施例的基础上,增加了更多的结构单元,并对上述实施例进行了优化,如图5所示,所述装置500还包括:On the basis of the above embodiments, more structural units are added, and the above embodiments are optimized, as shown in Figure 5, the device 500 also includes:
状态检测单元505,用于在所述运动状态参数获取单元501实时获取所述智能终端的运动状态参数之前,检测所述智能终端是否处于待机状态或者主界面显示状态;A state detection unit 505, configured to detect whether the smart terminal is in a standby state or a main interface display state before the motion state parameter acquisition unit 501 acquires the motion state parameters of the smart terminal in real time;
如果是,则控制所述运动状态参数获取单元501实时获取所述智能终端的运动状态参数的操作。If so, control the exercise state parameter acquisition unit 501 to acquire the exercise state parameters of the smart terminal in real time.
其中,所述运动状态参数包括速度和所述智能终端与水平面的夹角;Wherein, the motion state parameters include speed and the angle between the smart terminal and the horizontal plane;
所述自拍手势识别单元502,包括:The selfie gesture recognition unit 502 includes:
状态识别子单元506,用于实时提取得到的运动状态参数中的速度,基于所述加速度对所述智能终端进行状态识别,其中所述状态包括静止状态和运动状态;The state identification subunit 506 is used to extract the speed in the obtained motion state parameters in real time, and perform state identification on the smart terminal based on the acceleration, wherein the state includes a static state and a motion state;
夹角确定子单元507,用于在所述状态识别子单元506识别出所述智能终端由运动状态变化为静止状态时,提取当前时刻得到的运动状态参数中的夹角,并确定所提取的夹角是否位于预设的阈值范围内;The included angle determination subunit 507 is used to extract the included angle in the motion state parameters obtained at the current moment when the state identification subunit 506 recognizes that the smart terminal changes from a motion state to a static state, and determine the extracted angle. Whether the included angle is within the preset threshold range;
自拍手势判断子单元508,用于根据所述夹角确定子单元507得到的确定结果,判断是否识别出自拍手势。The selfie gesture determination subunit 508 is configured to determine whether the selfie gesture is recognized according to the determination result obtained by the included angle determination subunit 507 .
所述自拍手势识别单元502,还包括:The selfie gesture recognition unit 502 also includes:
手势运动检测子单元509,用于在所述智能终端由运动状态变化为静止状态时,提取所述智能终端处于所述运动状态时得到的多个运动状态参数中的速度和/或夹角;The gesture motion detection subunit 509 is configured to extract the speed and/or included angle among the multiple motion state parameters obtained when the smart terminal is in the motion state when the smart terminal changes from a motion state to a static state;
根据提取的速度和/或夹角,进行手势运动检测;Perform gesture motion detection based on the extracted speed and/or angle;
其中,手势运动检测子单元509具体用于检测所提取到的各个夹角是否满足如下规律:随着时间逐渐增大,将该检测结果作为手势运动检测结果。Wherein, the gesture motion detection subunit 509 is specifically configured to detect whether each extracted included angle satisfies the following rule: increase gradually with time, and use the detection result as the gesture motion detection result.
所述自拍手势判断子单元508,具体用于根据所述夹角确定子单元507得到的确定结果以及手势运动检测子单元509得到的手势运动检测结果,判断是否识别出自拍手势。The selfie gesture determination subunit 508 is specifically configured to determine whether the selfie gesture is recognized according to the determination result obtained by the included angle determination subunit 507 and the gesture motion detection result obtained by the gesture motion detection subunit 509 .
本发明实施例提供了一种控制智能终端上自拍模式开启装置,能够根据智能终端由运动状态变化为静止状态时,提取的当前时刻的夹角,或者夹角和手势运动检测结果,进行自拍手势识别,最终实现开启智能终端的自拍模式,能够使智能终端快速进入自拍模式,解决开启自拍模式步骤繁琐,操作不便,用户体验效果不佳的问题。The embodiment of the present invention provides a device for controlling Selfie mode activation on a smart terminal, which can perform a selfie gesture according to the angle at the current moment extracted when the smart terminal changes from a motion state to a static state, or the angle and gesture motion detection results Identify, and finally realize the Selfie mode of the smart terminal, which can enable the smart terminal to quickly enter the Selfie mode, and solve the problems of cumbersome steps, inconvenient operation, and poor user experience.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510288511.2ACN104935812B (en) | 2015-05-29 | 2015-05-29 | A kind of method and device for controlling self-timer mode to open |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510288511.2ACN104935812B (en) | 2015-05-29 | 2015-05-29 | A kind of method and device for controlling self-timer mode to open |
| Publication Number | Publication Date |
|---|---|
| CN104935812A CN104935812A (en) | 2015-09-23 |
| CN104935812Btrue CN104935812B (en) | 2017-11-03 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510288511.2AExpired - Fee RelatedCN104935812B (en) | 2015-05-29 | 2015-05-29 | A kind of method and device for controlling self-timer mode to open |
| Country | Link |
|---|---|
| CN (1) | CN104935812B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105549960B (en)* | 2015-12-04 | 2018-12-25 | 小米科技有限责任公司 | Control the method and device of camera |
| CN105657250B (en)* | 2015-12-24 | 2018-01-19 | 广东欧珀移动通信有限公司 | Photographing control method and device, display control method and device and photographing system |
| CN105704390B (en)* | 2016-04-20 | 2019-04-16 | Oppo广东移动通信有限公司 | Beautifying photographing method and device and mobile terminal |
| CN105827981A (en)* | 2016-05-09 | 2016-08-03 | 努比亚技术有限公司 | Mobile terminal photographing method and device |
| CN106131433A (en)* | 2016-08-16 | 2016-11-16 | 广东小天才科技有限公司 | Self-photographing method and device |
| WO2019028359A1 (en)* | 2017-08-04 | 2019-02-07 | SMPL Inc. | System and method for sensor-driven automatic device interaction |
| CN107613214B (en)* | 2017-10-25 | 2020-09-11 | 广东工业大学 | Camera interface entering method, device and system |
| CN107729857B (en)* | 2017-10-26 | 2021-05-28 | Oppo广东移动通信有限公司 | Face recognition method, device, storage medium and electronic device |
| CN108566456A (en)* | 2018-03-28 | 2018-09-21 | 努比亚技术有限公司 | Image pickup method, mobile terminal and computer readable storage medium |
| CN109348020B (en)* | 2018-11-30 | 2021-01-26 | 维沃移动通信(杭州)有限公司 | Photographing method and mobile terminal |
| CN115334237B (en)* | 2022-07-26 | 2024-01-23 | 广州紫为云科技有限公司 | Portrait focusing method, device and medium based on USB camera |
| CN115334241B (en)* | 2022-08-15 | 2023-04-25 | 珠海视熙科技有限公司 | Focusing control method, device, storage medium and image pickup apparatus |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102111490A (en)* | 2009-12-23 | 2011-06-29 | 索尼爱立信移动通讯有限公司 | Method and device for automatically unlocking mobile terminal keyboard |
| CN102158643A (en)* | 2010-12-17 | 2011-08-17 | 上海合合信息科技发展有限公司 | Method and system for automatically starting and stopping camera unit |
| CN102783136A (en)* | 2010-03-03 | 2012-11-14 | 伊斯曼柯达公司 | Imaging device for capturing self-portrait images |
| CN103037103A (en)* | 2012-12-21 | 2013-04-10 | 广东欧珀移动通信有限公司 | Method of starting camera by mobile device |
| CN103269415A (en)* | 2013-04-16 | 2013-08-28 | 广东欧珀移动通信有限公司 | Automatic photographing method for face recognition and mobile terminal |
| CN103477297A (en)* | 2011-03-16 | 2013-12-25 | 索尼移动通信公司 | System and method for providing direct access to an application when unlocking a consumer electronic device |
| CN104115485A (en)* | 2013-02-13 | 2014-10-22 | 华为技术有限公司 | Mobile electronic device with display state control |
| CN104144252A (en)* | 2013-11-28 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Voice communication method and mobile terminal |
| CN104539838A (en)* | 2014-12-02 | 2015-04-22 | 厦门美图移动科技有限公司 | Method and device for rapidly opening mobile phone camera for performing video recording |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20140001957A (en)* | 2010-11-20 | 2014-01-07 | 뉘앙스 커뮤니케이션즈, 인코포레이티드 | Systems and methods for using entered text to access and process contextual information |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102111490A (en)* | 2009-12-23 | 2011-06-29 | 索尼爱立信移动通讯有限公司 | Method and device for automatically unlocking mobile terminal keyboard |
| CN102783136A (en)* | 2010-03-03 | 2012-11-14 | 伊斯曼柯达公司 | Imaging device for capturing self-portrait images |
| CN102158643A (en)* | 2010-12-17 | 2011-08-17 | 上海合合信息科技发展有限公司 | Method and system for automatically starting and stopping camera unit |
| CN103477297A (en)* | 2011-03-16 | 2013-12-25 | 索尼移动通信公司 | System and method for providing direct access to an application when unlocking a consumer electronic device |
| CN103037103A (en)* | 2012-12-21 | 2013-04-10 | 广东欧珀移动通信有限公司 | Method of starting camera by mobile device |
| CN104115485A (en)* | 2013-02-13 | 2014-10-22 | 华为技术有限公司 | Mobile electronic device with display state control |
| CN103269415A (en)* | 2013-04-16 | 2013-08-28 | 广东欧珀移动通信有限公司 | Automatic photographing method for face recognition and mobile terminal |
| CN104144252A (en)* | 2013-11-28 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Voice communication method and mobile terminal |
| CN104539838A (en)* | 2014-12-02 | 2015-04-22 | 厦门美图移动科技有限公司 | Method and device for rapidly opening mobile phone camera for performing video recording |
| Publication number | Publication date |
|---|---|
| CN104935812A (en) | 2015-09-23 |
| Publication | Publication Date | Title |
|---|---|---|
| CN104935812B (en) | A kind of method and device for controlling self-timer mode to open | |
| CN107493495B (en) | Interactive position determining method, system, storage medium and intelligent terminal | |
| US8768006B2 (en) | Hand gesture recognition | |
| CN103237172B (en) | A kind of time-lapse shooting method and device | |
| CN105915782A (en) | Picture obtaining method based on face identification, and mobile terminal | |
| WO2019024717A1 (en) | Anti-counterfeiting processing method and related product | |
| CN105068646B (en) | The control method and system of terminal | |
| CN109951636A (en) | Photographing processing method and device, mobile terminal and storage medium | |
| CN103294198B (en) | A kind of man-machine interaction method and system based on mobile terminal | |
| CN105528078B (en) | The method and device of controlling electronic devices | |
| CN107483834A (en) | Image processing method, continuous shooting method and device, and related media products | |
| CN105138956B (en) | Method for detecting human face and device | |
| CN107368810A (en) | Method for detecting human face and device | |
| CN107463903B (en) | Face key point positioning method and device | |
| CN108197585A (en) | Recognition algorithms and device | |
| WO2016197389A1 (en) | Method and device for detecting living object, and mobile terminal | |
| WO2017005020A1 (en) | Mobile terminal, and method therefor for realizing automatic answering | |
| CN110275658A (en) | Display control method, display control device, mobile terminal and storage medium | |
| WO2017219450A1 (en) | Information processing method and device, and mobile terminal | |
| CN106469308A (en) | Efficient question searching method and device | |
| CN106778574A (en) | Detection method and device for face image | |
| CN109947243B (en) | Intelligent electronic equipment gesture capturing and recognizing technology based on touch hand detection | |
| CN106060383B (en) | An image acquisition method and system | |
| CN106095876A (en) | Image processing method and device | |
| CN106022272B (en) | A method and device for judging frontal face images |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder | Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| CP01 | Change in the name or title of a patent holder | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20171103 | |
| CF01 | Termination of patent right due to non-payment of annual fee |