技术领域technical field
本发明涉及移动通信领域,尤其涉及一种拍照的同步美化方法及其拍照装置、移动终端。The invention relates to the field of mobile communications, in particular to a method for synchronously beautifying photographs, a photographing device, and a mobile terminal.
背景技术Background technique
随着科技的发展,智能移动终端设备已经成为居家旅行必备之物,拍照次数也越来越频繁,越来越随意,人们对照片的要求也随之提高,在拍出原始照片后,经常还要使用各类修图软件加以美化或修饰,才能得到自己满意的照片。With the development of science and technology, smart mobile terminal equipment has become a must-have for home and travel, and the number of photos taken is becoming more and more frequent and casual. People's requirements for photos are also increasing. You also need to use various retouching software to beautify or modify the photos in order to get the photos you are satisfied with.
目前各厂家都在努力使拍照的方式更加便捷,目前的语音拍照等拍照方式,虽然改变了传统的手持拍照方式,但拍完之后还是需要使用修图软件来完成美化工作,无法一步完成拍照和修图美化这两个步骤,给用户带来操作上的不便。At present, various manufacturers are trying to make the way of taking pictures more convenient. Although the current way of taking pictures with voice has changed the traditional hand-held way of taking pictures, it still needs to use picture editing software to complete the beautification work after taking pictures, which cannot be completed in one step. The two steps of image editing and beautification bring inconvenience to users.
发明内容Contents of the invention
为解决现有技术中存在的上述问题,本发明实施例一方面提供了一种拍照的同步美化方法,包括:In order to solve the above-mentioned problems existing in the prior art, an embodiment of the present invention provides a synchronous beautification method for photographing on the one hand, including:
通过摄像头获取用户的手势信息;Get the user's gesture information through the camera;
根据手势信息,以及预存的手势信息与美化指令的映射关系,确定美化指令;Determine the beautification instruction according to the gesture information and the mapping relationship between the pre-stored gesture information and the beautification instruction;
执行拍照操作,并根据美化指令生成经美化处理后的拍照图像。Executing a photographing operation, and generating a beautified photographed image according to the beautification instruction.
另一方面,本发明实施例还提供了一种拍照装置,包括:On the other hand, an embodiment of the present invention also provides a photographing device, including:
获取模块,用于通过摄像头获取用户的手势信息;The acquisition module is used to acquire the user's gesture information through the camera;
确定模块,用于根据手势信息,以及预存的手势信息与美化指令的映射关系,确定美化指令;A determining module, configured to determine the beautification instruction according to the gesture information and the mapping relationship between the pre-stored gesture information and the beautification instruction;
执行模块,用于执行拍照操作,并根据美化指令生成经美化处理后的拍照图像。The execution module is used to perform a photographing operation, and generate a beautified photographed image according to the beautification instruction.
本发明实施例,可解决现有的拍照后期美化处理的繁琐,通过识别用户手势使得拍照和美化处理同步完成,识别错误概率较低,省时省力,有效提升了用户体验。The embodiments of the present invention can solve the cumbersome beautification process in the post-photographing process. By recognizing user gestures, the photographing and beautification processes are completed synchronously, with a low probability of recognition errors, saving time and effort, and effectively improving user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明的拍照的同步美化方法的第一实施例的流程示意图;Fig. 1 is a schematic flow chart of the first embodiment of the synchronous beautification method for photographing in the present invention;
图2为本发明的拍照的同步美化方法的第二实施例的流程示意图;FIG. 2 is a schematic flow diagram of a second embodiment of the synchronous beautification method for photographing in the present invention;
图3为本发明的拍照的同步美化方法的第三实施例的流程示意图;FIG. 3 is a schematic flowchart of a third embodiment of the synchronous beautification method for photographing in the present invention;
图4为本发明的拍照的同步美化方法的第四实施例的流程示意图;FIG. 4 is a schematic flowchart of a fourth embodiment of the synchronous beautification method for photographing in the present invention;
图5为本发明的拍照装置的第一实施例的结构示意图;5 is a schematic structural view of the first embodiment of the camera device of the present invention;
图6为本发明的拍照装置的第二实施例的结构示意图;6 is a schematic structural diagram of a second embodiment of the camera device of the present invention;
图7为本发明的拍照装置的第三实施例的结构示意图;7 is a schematic structural view of a third embodiment of the camera device of the present invention;
图8为本发明的拍照装置的第四实施例的结构示意图。FIG. 8 is a schematic structural diagram of a fourth embodiment of the photographing device 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 only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
请参照图1,是本发明的拍照的同步美化方法的第一实施例的流程示意图,该方法包括:Please refer to FIG. 1 , which is a schematic flow chart of the first embodiment of the synchronous beautification method for taking photos according to the present invention. The method includes:
步骤S101:通过摄像头获取用户的手势信息。Step S101: Obtain gesture information of a user through a camera.
本步骤中,手势信息可由系统设置或用户自定义,可包括用户作出的任何手势动作,比如竖大拇指、双手十指交叉、握拳、单手V字手势等。In this step, the gesture information can be set by the system or customized by the user, and can include any gesture action made by the user, such as thumbs up, fingers crossed with both hands, fist, V-sign gesture with one hand, and the like.
步骤S102:根据手势信息,以及预存的手势信息与美化指令的映射关系,确定美化指令。Step S102: Determine the beautification instruction according to the gesture information and the pre-stored mapping relationship between the gesture information and the beautification instruction.
本步骤中,手势信息与美化指令的映射关系可由系统提供默认设置,并向用户提供修改接口,以便根据用户的使用习惯进行修改。该映射关系可为一对一、多对一或多对多的关系。示例性的,可将上述竖大拇指、双手十指交叉、握拳、单手V字手势均映射为瘦脸指令,此为多对一的映射关系。可将手指在空中划闭合圆形这一手势映射为增加项链指令,此为一对一的映射关系。In this step, the system may provide a default setting for the mapping relationship between gesture information and beautification instructions, and provide a modification interface to the user so as to modify according to the user's usage habits. The mapping relationship can be a one-to-one, many-to-one or many-to-many relationship. Exemplarily, the gestures of thumbs up, fingers crossed with both hands, clenching a fist, and V with one hand can be mapped to face thinning commands, which is a many-to-one mapping relationship. The gesture of drawing a closed circle with a finger in the air can be mapped to an instruction to add a necklace, which is a one-to-one mapping relationship.
步骤S103:执行拍照操作,并根据美化指令生成经美化处理后的拍照图像。Step S103: Execute a photographing operation, and generate a beautified photographed image according to the beautification instruction.
本步骤中,该美化处理可为对人体的任何部位进行变形,如脸型(隆高鼻子、美化下巴、美化嘴型、美化额头等)、发型(刘海变长、给发型换个颜色、去掉头发等)、皮肤(肤色加深、肤色变浅等)。该美化处理还可为对人物增加趣味配饰,如增加眼镜、胡须等。In this step, the beautification process can be to deform any part of the human body, such as face shape (raise the nose, beautify the chin, beautify the mouth shape, beautify the forehead, etc.), hairstyle (elongate the bangs, change the color of the hairstyle, remove the hair, etc.) ), skin (darken skin, lighten skin, etc.). This beautification process can also add interesting accessories to the character, such as adding glasses, beards, and the like.
本步骤中,该美化处理也可不针对人体的特定部位,而是针对整个照片进行的,如调整照片整体的饱和度、拍摄黑白照片、素描照片等。In this step, the beautification process may not be performed on specific parts of the human body, but on the entire photo, such as adjusting the overall saturation of the photo, taking black and white photos, sketch photos, and the like.
本步骤中,生成拍照图像和对图像进行美化时同步进行的,拍照图像在呈现给用户时,就是已经按照美化指令完成了美化处理的图像。In this step, the generation of the photographed image and the beautification of the image are performed simultaneously. When the photographed image is presented to the user, it is an image that has been beautified according to the beautification instruction.
本发明实施例,可解决现有的拍照后期美化处理的繁琐,通过识别用户手势使得拍照和美化处理同步完成,识别错误概率较低,省时省力,有效提升了用户体验。The embodiments of the present invention can solve the cumbersome beautification process in the post-photographing process. By recognizing user gestures, the photographing and beautification processes are completed synchronously, with a low probability of recognition errors, saving time and effort, and effectively improving user experience.
请参照图2,是本发明的拍照的同步美化方法的第二实施例的流程示意图,该方法包括:Please refer to FIG. 2 , which is a schematic flow chart of the second embodiment of the synchronous beautification method for taking pictures of the present invention. The method includes:
步骤S201:通过摄像头获取用户的多级手势信息。Step S201: Obtain multi-level gesture information of the user through a camera.
本步骤中,当识别出当前手势之后,用户可进一步通过二级手势来执行进一步美化。如,当食指指向眉毛的时候,识别出是要对眉毛进行美化,此时用户可通过二级手势来告知美化的方向。如食指做弯曲动作,即代表对眉毛的线形进行调整;若是食指做旋转动作,即代表对眉毛的粗细进行调整;若是食指做左右晃动动作,即代表是要调整色彩。如调整完弯曲度之后可接着进行三级手势操作再调整粗细,以此类推可进行更多级调整。In this step, after the current gesture is recognized, the user can perform further beautification through secondary gestures. For example, when the index finger points to the eyebrows, it is recognized that the eyebrows are to be beautified. At this time, the user can use a secondary gesture to inform the direction of beautification. For example, if the index finger bends, it means adjusting the line shape of the eyebrows; if the index finger rotates, it means adjusting the thickness of the eyebrows; if the index finger shakes left and right, it means adjusting the color. For example, after adjusting the curvature, you can then perform three-level gesture operations and then adjust the thickness, and so on for more adjustments.
步骤S202:根据多级手势信息,确定其中每一级手势信息所对应的美化指令,美化指令包括美化范围指令或美化操作指令。Step S202: According to the multi-level gesture information, determine a beautification command corresponding to each level of gesture information, the beautification command includes a beautification range command or a beautification operation command.
本步骤中,该美化范围指令用于指示下一级美化所限定的范围。例如,若当前的手势是食指指向眉毛,则其对应的美化指令为将下一级的美化操作限制在眉毛范围内。In this step, the beautification scope instruction is used to indicate the scope limited by the next level of beautification. For example, if the current gesture is that the index finger points to the eyebrows, the corresponding beautification instruction is to limit the beautification operation of the next level to the range of the eyebrows.
本步骤中,该美化操作指令用于指示具体的美化处理操作。例如,若当前的手势是食指做弯曲动作,则其对应的美化指令为对眉毛的线性进行调整。In this step, the beautification operation instruction is used to indicate a specific beautification processing operation. For example, if the current gesture is to bend the index finger, the corresponding beautification instruction is to adjust the line of the eyebrows.
步骤S203:执行拍照操作。Step S203: Execute a photographing operation.
步骤S204:当美化指令为美化范围指令时,生成拍照图像,放大所述美化范围指令所指示的区域。Step S204: When the beautification command is a beautification range command, generate a photographed image, and enlarge the area indicated by the beautification range command.
本步骤中,当美化指令为美化范围指令时,可将美化范围所对应区域展示给用户,以便用户对该区域作进一步美化。In this step, when the beautification command is a beautification range command, the area corresponding to the beautification range may be displayed to the user, so that the user can further beautify the area.
步骤S205:当美化指令为美化操作指令时,生成经美化操作后的拍照图像。Step S205: When the beautification instruction is a beautification operation instruction, generate a photographed image after the beautification operation.
本步骤中,当美化指令为美化操作指令时,则将执行过该美化操作处理后的图像呈现给用户。In this step, when the beautification instruction is a beautification operation instruction, the image processed by the beautification operation is presented to the user.
本发明实施例,通过多级手势,可使得美化操作做到非常细节的地方,达到精致的美化效果,而不是简单粗糙的美化方式,从而满足用户对美化处理的更高需求。In the embodiment of the present invention, through multi-level gestures, the beautification operation can be performed in very detailed places to achieve a delicate beautification effect instead of a simple and rough beautification method, so as to meet the user's higher demand for beautification processing.
请参照图3,是本发明的拍照的同步美化方法的第三实施例的流程示意图,该方法包括:Please refer to FIG. 3 , which is a schematic flow chart of the third embodiment of the synchronous beautification method for taking photos according to the present invention. The method includes:
步骤S301:通过摄像头获取用户的组合手势信息。Step S301: Obtain the combined gesture information of the user through the camera.
本步骤中,该组合手势可以是单个手势或多个手势的组合。如用户可定义某组合手势包含两个手势,手势A为伸出五根手指,手势B为握拳。当用户一只手伸出五根手指,另一只手握拳时,就被识别为组合手势。In this step, the combined gesture may be a single gesture or a combination of multiple gestures. For example, the user can define a combined gesture to include two gestures, gesture A is to stretch out five fingers, and gesture B is to make a fist. When the user stretches out five fingers on one hand and makes a fist on the other hand, it is recognized as a combined gesture.
步骤S302:根据组合手势信息,以及预存的手势信息与美化指令的映射关系,确定组合后的美化指令。Step S302: Determine the combined beautification instruction according to the combined gesture information and the pre-stored mapping relationship between the gesture information and the beautification instruction.
本步骤中,示例性的,若上述手势A对应的美化指令为将发型改变为长发,手势B对应的美化指令为将脸型改变为圆脸,则组合后的美化指令为同时将发型改变为长发,并将脸型改变为圆脸。In this step, for example, if the beautification command corresponding to the above gesture A is to change the hairstyle to long hair, and the beautification command corresponding to gesture B is to change the face shape to a round face, then the combined beautification command is to change the hairstyle to Long hair and change the face shape to a round face.
步骤S303:执行拍照操作,并根据美化指令生成经美化处理后的拍照图像。Step S303: Execute a photographing operation, and generate a beautified photographed image according to the beautification instruction.
本步骤与拍照的同步美化方法的第一实施例中的对应步骤相同,这里不再赘述。This step is the same as the corresponding step in the first embodiment of the synchronous beautification method for taking pictures, and will not be repeated here.
本发明实施例,通过组合手势,可实现多个美化指令的一次性处理,提高美化的效率,节省拍照的时间。In the embodiment of the present invention, by combining gestures, one-time processing of multiple beautification instructions can be realized, the efficiency of beautification can be improved, and the time for taking pictures can be saved.
请参照图4,是本发明的拍照的同步美化方法的第四实施例的流程示意图,该方法包括:Please refer to FIG. 4 , which is a schematic flow chart of the fourth embodiment of the synchronous beautification method for taking photos according to the present invention. The method includes:
步骤S401:通过摄像头获取用户的手势信息。Step S401: Obtain gesture information of a user through a camera.
本步骤与拍照的同步美化方法的第一实施例中的对应步骤相同,这里不再赘述。This step is the same as the corresponding step in the first embodiment of the synchronous beautification method for taking pictures, and will not be repeated here.
步骤S402:判断手势信息是否有效。Step S402: Determine whether the gesture information is valid.
本步骤中,当用户做出的手势不规范,或不在手势信息与美化指令的映射表中时,则认定为手势信息无效。In this step, when the gesture made by the user is not standardized, or is not included in the mapping table between gesture information and beautification instructions, it is determined that the gesture information is invalid.
步骤S403:若手势信息有效,则根据预存的手势信息与美化指令的映射关系,确定手势信息所对应的一个或多个美化指令,并提供给用户进行选择,最终确定出待执行的美化指令。Step S403: If the gesture information is valid, determine one or more beautification instructions corresponding to the gesture information according to the pre-stored mapping relationship between the gesture information and the beautification instructions, and provide them to the user for selection, and finally determine the beautification instructions to be executed.
本步骤中,由于手势信息与美化指令的映射关系中,可能存在一对多的映射关系,即用户的一种手势对应了多种可能的美化指令,此时,可将这几种美化指令都反馈给用户,供用户选择出所需的美化指令。In this step, since there may be a one-to-many mapping relationship between gesture information and beautification instructions, that is, one gesture of the user corresponds to multiple possible beautification instructions. Feedback to the user for the user to select the desired beautification instruction.
步骤S404:若手势信息无效,则向用户发送重新获取手势信息的请求。Step S404: If the gesture information is invalid, send a request to the user to acquire the gesture information again.
本步骤中,当向用户发送重新获取手势信息的请求后,可重新获取用户的手势信息,并重新进行判断。In this step, after sending a request to re-acquire the gesture information to the user, the user's gesture information may be re-acquired, and a new judgment may be made.
步骤S405:执行拍照操作,并根据美化指令生成经美化处理后的拍照图像。Step S405: Execute a photographing operation, and generate a beautified photographed image according to the beautification instruction.
本步骤与拍照的同步美化方法的第一实施例中的对应步骤相同,这里不再赘述。This step is the same as the corresponding step in the first embodiment of the synchronous beautification method for taking pictures, and will not be repeated here.
本发明实施例,通过与用户的互动,可获取准确的手势信息,并提供丰富的美化指令供用户选择,从而呈现出丰富多彩的美化效果。In the embodiment of the present invention, accurate gesture information can be obtained through interaction with the user, and a wealth of beautification instructions can be provided for the user to choose, thereby presenting a variety of beautification effects.
上文对本发明中拍照的同步美化方法的实施例作了详细介绍。下面将相应于上述方法的拍照装置作进一步阐述。The embodiments of the synchronous beautification method for photographing in the present invention have been introduced in detail above. The photographing device corresponding to the above method will be further elaborated below.
请参照图5,是本发明的拍照装置的第一实施例的结构示意图,该拍照装置100包括:Please refer to FIG. 5 , which is a schematic structural diagram of the first embodiment of the photographing device of the present invention. The photographing device 100 includes:
获取模块110,用于通过摄像头获取用户的手势信息;确定模块120,与获取模块110相连,用于根据手势信息,以及预存的手势信息与美化指令的映射关系,确定美化指令;执行模块130,与确定模块120相连,用于执行拍照操作,并根据美化指令生成经美化处理后的拍照图像。The obtaining module 110 is used to obtain the user's gesture information through the camera; the determining module 120 is connected to the obtaining module 110 and is used to determine the beautification instruction according to the gesture information and the mapping relationship between the pre-stored gesture information and the beautification instruction; the execution module 130, It is connected with the determining module 120, and is used for performing a photographing operation, and generating a beautified photographed image according to the beautification instruction.
其中,手势信息可由系统设置或用户自定义,可包括用户作出的任何手势动作,比如竖大拇指、双手十指交叉、握拳、单手V字手势等。手势信息与美化指令的映射关系可由系统提供默认设置,并向用户提供修改接口,以便根据用户的使用习惯进行修改。该映射关系可为一对一、多对一或多对多的关系。示例性的,可将上述竖大拇指、双手十指交叉、握拳、单手V字手势均映射为瘦脸指令,此为多对一的映射关系。可将手指在空中划闭合圆形这一手势映射为增加项链指令,此为一对一的映射关系。Among them, the gesture information can be set by the system or customized by the user, and can include any gesture action made by the user, such as thumbs up, fingers crossed with both hands, fist, V-sign gesture with one hand, and the like. The mapping relationship between gesture information and beautification instructions can be provided by the system as a default setting, and a modification interface can be provided to the user so as to modify according to the user's usage habits. The mapping relationship can be a one-to-one, many-to-one or many-to-many relationship. Exemplarily, the gestures of thumbs up, fingers crossed with both hands, clenching a fist, and V with one hand can be mapped to face thinning commands, which is a many-to-one mapping relationship. The gesture of drawing a closed circle with a finger in the air can be mapped to an instruction to add a necklace, which is a one-to-one mapping relationship.
美化处理可为对人体的任何部位进行变形,如脸型(隆高鼻子、美化下巴、美化嘴型、美化额头等)、发型(刘海变长、给发型换个颜色、去掉头发等)、皮肤(肤色加深、肤色变浅等)。该美化处理还可为对人物增加趣味配饰,如增加眼镜、胡须等。美化处理也可不针对人体的特定部位,而是针对整个照片进行的,如调整照片整体的饱和度、拍摄黑白照片、素描照片等。生成拍照图像和对图像进行美化时是同步进行的,拍照图像在呈现给用户时,就是已经按照美化指令完成了美化处理的图像。Beautification treatment can deform any part of the human body, such as face shape (raise nose, beautify chin, beautify mouth shape, beautify forehead, etc.), hairstyle (elongate bangs, change hair color, remove hair, etc.), skin (skin color darken, lighten, etc.). This beautification process can also add interesting accessories to the character, such as adding glasses, beards, and the like. The beautification process can also be performed not on specific parts of the human body, but on the entire photo, such as adjusting the overall saturation of the photo, taking black and white photos, sketch photos, etc. The generation of the photographed image and the beautification of the image are performed simultaneously. When the photographed image is presented to the user, it is an image that has been beautified according to the beautification instruction.
本发明实施例,可解决现有的拍照后期美化处理的繁琐,通过识别用户手势使得拍照和美化处理同步完成,识别错误概率较低,省时省力,有效提升了用户体验。The embodiments of the present invention can solve the cumbersome beautification process in the post-photographing process. By recognizing user gestures, the photographing and beautification processes are completed synchronously, with a low probability of recognition errors, saving time and effort, and effectively improving user experience.
请参照图6,是本发明的拍照装置的第二实施例的结构示意图,该拍照装置200包括:Please refer to FIG. 6 , which is a schematic structural diagram of a second embodiment of the photographing device of the present invention. The photographing device 200 includes:
获取模块210,用于通过摄像头获取用户的手势信息;确定模块220,与获取模块210相连,用于根据手势信息,以及预存的手势信息与美化指令的映射关系,确定美化指令;执行模块230,与确定模块220相连,用于执行拍照操作,并根据美化指令生成经美化处理后的拍照图像。The obtaining module 210 is used to obtain the user's gesture information through the camera; the determining module 220 is connected to the obtaining module 210 and is used to determine the beautification instruction according to the gesture information and the mapping relationship between the pre-stored gesture information and the beautification instruction; the execution module 230, It is connected with the determining module 220, and is used for performing a photographing operation, and generating a beautified photographed image according to the beautification instruction.
获取模块210包括第一获取单元211,用于通过摄像头获取用户的多级手势信息;The acquisition module 210 includes a first acquisition unit 211, configured to acquire the user's multi-level gesture information through the camera;
确定模块220包括第一确定单元221,用于根据多级手势信息,确定其中每一级手势信息所对应的美化指令,美化指令包括美化范围指令或美化操作指令。The determining module 220 includes a first determining unit 221 configured to determine a beautification instruction corresponding to each level of gesture information according to the multi-level gesture information, and the beautification instruction includes a beautification range instruction or a beautification operation instruction.
执行模块230包括:拍照单元231,用于执行拍照操作;第一图像生成单元232,与拍照单元231相连,用于当美化指令为美化范围指令时,生成拍照图像,放大所述美化范围指令所指示的区域。第二图像生成单元233,与拍照单元231相连,用于当美化指令为美化操作指令时,生成经美化操作后的拍照图像。The execution module 230 includes: a photographing unit 231, configured to perform a photographing operation; a first image generation unit 232, connected to the photographing unit 231, configured to generate a photographed image when the beautification command is a beautification range command, and enlarge the beautification range command. indicated area. The second image generating unit 233 is connected to the photographing unit 231 and is configured to generate a photographed image after the beautification operation when the beautification instruction is a beautification operation instruction.
当识别出当前手势之后,用户可进一步通过二级手势来执行进一步美化。如,当食指指向眉毛的时候,识别出是要对眉毛进行美化,此时用户可通过二级手势来告知美化的方向。如食指做弯曲动作,即代表对眉毛的线形进行调整;若是食指做旋转动作,即代表对眉毛的粗细进行调整;若是食指做左右晃动动作,即代表是要调整色彩。如调整完弯曲度之后可接着进行三级手势操作再调整粗细,以此类推可进行更多级调整。After the current gesture is recognized, the user can perform further beautification through secondary gestures. For example, when the index finger points to the eyebrows, it is recognized that the eyebrows are to be beautified. At this time, the user can use a secondary gesture to inform the direction of beautification. For example, if the index finger bends, it means adjusting the line shape of the eyebrows; if the index finger rotates, it means adjusting the thickness of the eyebrows; if the index finger shakes left and right, it means adjusting the color. For example, after adjusting the curvature, you can then perform three-level gesture operations and then adjust the thickness, and so on for more adjustments.
美化范围指令用于指示下一级美化所限定的范围。例如,若当前的手势是食指指向眉毛,则其对应的美化指令为将下一级的美化操作限制在眉毛范围内。美化操作指令用于指示具体的美化处理操作。例如,若当前的手势是食指做弯曲动作,则其对应的美化指令为对眉毛的线性进行调整。The beautification scope directive is used to indicate the scope limited by the next level of beautification. For example, if the current gesture is that the index finger points to the eyebrows, the corresponding beautification instruction is to limit the beautification operation of the next level to the range of the eyebrows. The beautification operation instruction is used to indicate a specific beautification processing operation. For example, if the current gesture is to bend the index finger, the corresponding beautification instruction is to adjust the line of the eyebrows.
当美化指令为美化范围指令时,可将美化范围所对应区域展示给用户,以便用户对该区域作进一步美化。当美化指令为美化操作指令时,则将执行过该美化操作处理后的图像呈现给用户。When the beautification command is a beautification range command, the area corresponding to the beautification range may be displayed to the user, so that the user can further beautify the area. When the beautification instruction is a beautification operation instruction, the image processed by the beautification operation is presented to the user.
本发明实施例,通过多级手势,可使得美化操作做到非常细节的地方,达到精致的美化效果,而不是简单粗糙的美化方式,从而满足用户对美化处理的更高需求。In the embodiment of the present invention, through multi-level gestures, the beautification operation can be performed in very detailed places to achieve a delicate beautification effect instead of a simple and rough beautification method, so as to meet the user's higher demand for beautification processing.
请参照图7,是本发明的拍照装置的第三实施例的结构示意图,该拍照装置300包括:Please refer to FIG. 7 , which is a schematic structural diagram of a third embodiment of the photographing device of the present invention. The photographing device 300 includes:
获取模块310,用于通过摄像头获取用户的手势信息;确定模块320,与获取模块310相连,用于根据手势信息,以及预存的手势信息与美化指令的映射关系,确定美化指令;执行模块330,与确定模块320相连,用于执行拍照操作,并根据美化指令生成经美化处理后的拍照图像。The obtaining module 310 is used to obtain the user's gesture information through the camera; the determining module 320 is connected to the obtaining module 310 and is used to determine the beautification instruction according to the gesture information and the mapping relationship between the pre-stored gesture information and the beautification instruction; the execution module 330, It is connected with the determination module 320, and is used for performing a photographing operation, and generating a beautified photographed image according to the beautification instruction.
获取模块310包括:第二获取单元311,用于通过摄像头获取用户的组合手势信息。The acquiring module 310 includes: a second acquiring unit 311, configured to acquire combined gesture information of the user through a camera.
确定模块320包括:第二确定单元321,用于根据组合手势信息,以及预存的手势信息与美化指令的映射关系,确定组合后的美化指令。The determining module 320 includes: a second determining unit 321 configured to determine a combined beautification instruction according to the combined gesture information and the pre-stored mapping relationship between the gesture information and the beautification instruction.
其中,组合手势可以是单个手势或多个手势的组合。如用户可定义某组合手势包含两个手势,手势A为伸出五根手指,手势B为握拳。当用户一只手伸出五根手指,另一只手握拳时,就被识别为组合手势。若上述手势A对应的美化指令为将发型改变为长发,手势B对应的美化指令为将脸型改变为圆脸,则组合后的美化指令为同时将发型改变为长发,并将脸型改变为圆脸。Wherein, the combined gesture may be a single gesture or a combination of multiple gestures. For example, the user can define a combined gesture to include two gestures, gesture A is to stretch out five fingers, and gesture B is to make a fist. When the user stretches out five fingers on one hand and makes a fist on the other hand, it is recognized as a combined gesture. If the beautification command corresponding to the above gesture A is to change the hairstyle to long hair, and the beautification command corresponding to gesture B is to change the face shape to a round face, then the combined beautification command is to simultaneously change the hairstyle to long hair and change the face shape to round face.
本发明实施例,通过组合手势,可实现多个美化指令的一次性处理,提高美化的效率,节省拍照的时间。In the embodiment of the present invention, by combining gestures, one-time processing of multiple beautification instructions can be realized, the efficiency of beautification can be improved, and the time for taking pictures can be saved.
请参照图8,是本发明的拍照装置的第四实施例的结构示意图,该拍照装置400包括:Please refer to FIG. 8 , which is a schematic structural diagram of a fourth embodiment of the photographing device of the present invention. The photographing device 400 includes:
获取模块410,用于通过摄像头获取用户的手势信息;确定模块420,与获取模块410相连,用于根据手势信息,以及预存的手势信息与美化指令的映射关系,确定美化指令;执行模块430,与确定模块420相连,用于执行拍照操作,并根据美化指令生成经美化处理后的拍照图像。The obtaining module 410 is used to obtain the user's gesture information through the camera; the determining module 420 is connected to the obtaining module 410 and is used to determine the beautification instruction according to the gesture information and the mapping relationship between the pre-stored gesture information and the beautification instruction; the execution module 430, It is connected with the determining module 420, and is used for performing a photographing operation, and generating a beautified photographed image according to the beautification instruction.
确定模块420包括:判断单元421,用于判断手势信息是否有效;选择单元422,与判断单元421相连,用于当手势信息有效时,根据预存的手势信息与美化指令的映射关系,确定手势信息所对应的一个或多个美化指令,并提供给用户进行选择,最终确定出待执行的美化指令;无效单元423,与判断单元421相连,当手势信息无效时,向用户发送重新获取手势信息的请求。The determining module 420 includes: a judging unit 421 for judging whether the gesture information is valid; a selection unit 422 connected to the judging unit 421 for determining the gesture information according to the mapping relationship between the pre-stored gesture information and the beautification instruction when the gesture information is valid The corresponding one or more beautification instructions are provided to the user for selection, and the beautification instructions to be executed are finally determined; the invalidation unit 423 is connected to the judgment unit 421, and when the gesture information is invalid, sends the user an instruction to reacquire the gesture information ask.
当用户做出的手势不规范,或不在手势信息与美化指令的映射表中时,则认定为手势信息无效。由于手势信息与美化指令的映射关系中,可能存在一对多的映射关系,即用户的一种手势对应了多种可能的美化指令,此时,可将这几种美化指令都反馈给用户,供用户选择出所需的美化指令。当向用户发送重新获取手势信息的请求后,可重新获取用户的手势信息,并重新进行判断。When the gesture made by the user is not standardized, or is not included in the mapping table between gesture information and beautification instructions, it is determined that the gesture information is invalid. Since there may be a one-to-many mapping relationship between gesture information and beautification instructions, that is, one gesture of the user corresponds to multiple possible beautification instructions. At this time, all these beautification instructions can be fed back to the user. For the user to select the desired beautification instructions. After the request for reacquiring gesture information is sent to the user, the user's gesture information may be reacquired, and a new judgment is made.
本发明实施例,通过与用户的互动,可获取准确的手势信息,并提供丰富的美化指令供用户选择,从而呈现出丰富多彩的美化效果。In the embodiment of the present invention, accurate gesture information can be obtained through interaction with the user, and a wealth of beautification instructions can be provided for the user to choose, thereby presenting a variety of beautification effects.
上文对本发明中拍照的同步美化方法和拍照装置的实施例作了详细介绍。下面将相应于上述方法的移动终端作进一步阐述。The embodiments of the synchronous beautification method for photographing and the photographing device in the present invention have been introduced in detail above. The mobile terminal corresponding to the above method will be further elaborated below.
本领域普通技术人员可以理解上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件完成,所述的程序可以存储于一计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-OnlyMemory,ROM)或随机存储记忆体(RandomAccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above-mentioned embodiments can be completed by computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium, and when the programs are executed , may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.
以上所述仅为本发明的较佳实施例而已,并不用于限定本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510262589.7ACN105320929A (en) | 2015-05-21 | 2015-05-21 | Synchronous beautification method for photographing and photographing apparatus thereof |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510262589.7ACN105320929A (en) | 2015-05-21 | 2015-05-21 | Synchronous beautification method for photographing and photographing apparatus thereof |
| Publication Number | Publication Date |
|---|---|
| CN105320929Atrue CN105320929A (en) | 2016-02-10 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510262589.7APendingCN105320929A (en) | 2015-05-21 | 2015-05-21 | Synchronous beautification method for photographing and photographing apparatus thereof |
| Country | Link |
|---|---|
| CN (1) | CN105320929A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105704390A (en)* | 2016-04-20 | 2016-06-22 | 广东欧珀移动通信有限公司 | A method, device and mobile terminal for beautifying and taking photos |
| CN106780359A (en)* | 2016-11-14 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of data editing method, device and mobile terminal |
| CN106951090A (en)* | 2017-03-29 | 2017-07-14 | 北京小米移动软件有限公司 | Image processing method and device |
| CN107015648A (en)* | 2017-03-28 | 2017-08-04 | 北京小米移动软件有限公司 | Image processing method and device |
| CN107333057A (en)* | 2017-06-16 | 2017-11-07 | 光锐恒宇(北京)科技有限公司 | Interaction implementation method and device in a kind of application |
| CN107493428A (en)* | 2017-08-09 | 2017-12-19 | 广东欧珀移动通信有限公司 | Shooting control method and device |
| CN107547797A (en)* | 2017-07-27 | 2018-01-05 | 努比亚技术有限公司 | A kind of image pickup method, terminal and computer-readable recording medium |
| CN108784175A (en)* | 2017-04-27 | 2018-11-13 | 芜湖美的厨卫电器制造有限公司 | Bathroom mirror and its gesture control device, method |
| CN109144369A (en)* | 2018-09-21 | 2019-01-04 | 维沃移动通信有限公司 | A kind of image processing method and terminal device |
| CN109461124A (en)* | 2018-09-21 | 2019-03-12 | 维沃移动通信(杭州)有限公司 | A kind of image processing method and terminal device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130050458A1 (en)* | 2009-11-11 | 2013-02-28 | Sungun Kim | Display device and method of controlling the same |
| CN104050692A (en)* | 2013-03-12 | 2014-09-17 | 腾讯科技(深圳)有限公司 | Frame display method and frame display device in photograph beautifying process |
| WO2014161189A1 (en)* | 2013-04-03 | 2014-10-09 | Nokia Corporation | An apparatus and associated methods |
| CN104159032A (en)* | 2014-08-20 | 2014-11-19 | 广东欧珀移动通信有限公司 | Method and device of adjusting facial beautification effect in camera photographing in real time |
| CN104159037A (en)* | 2014-08-26 | 2014-11-19 | 厦门美图之家科技有限公司 | Self-timer method for automatically photographing |
| CN104423853A (en)* | 2013-08-22 | 2015-03-18 | 中兴通讯股份有限公司 | Object switching method and device and touch screen terminal |
| CN104573721A (en)* | 2014-12-31 | 2015-04-29 | 深圳市金立通信设备有限公司 | Image processing method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130050458A1 (en)* | 2009-11-11 | 2013-02-28 | Sungun Kim | Display device and method of controlling the same |
| CN104050692A (en)* | 2013-03-12 | 2014-09-17 | 腾讯科技(深圳)有限公司 | Frame display method and frame display device in photograph beautifying process |
| WO2014161189A1 (en)* | 2013-04-03 | 2014-10-09 | Nokia Corporation | An apparatus and associated methods |
| CN104423853A (en)* | 2013-08-22 | 2015-03-18 | 中兴通讯股份有限公司 | Object switching method and device and touch screen terminal |
| CN104159032A (en)* | 2014-08-20 | 2014-11-19 | 广东欧珀移动通信有限公司 | Method and device of adjusting facial beautification effect in camera photographing in real time |
| CN104159037A (en)* | 2014-08-26 | 2014-11-19 | 厦门美图之家科技有限公司 | Self-timer method for automatically photographing |
| CN104573721A (en)* | 2014-12-31 | 2015-04-29 | 深圳市金立通信设备有限公司 | Image processing method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105704390A (en)* | 2016-04-20 | 2016-06-22 | 广东欧珀移动通信有限公司 | A method, device and mobile terminal for beautifying and taking photos |
| CN105704390B (en)* | 2016-04-20 | 2019-04-16 | Oppo广东移动通信有限公司 | Beautifying photographing method and device and mobile terminal |
| CN106780359A (en)* | 2016-11-14 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of data editing method, device and mobile terminal |
| CN107015648A (en)* | 2017-03-28 | 2017-08-04 | 北京小米移动软件有限公司 | Image processing method and device |
| CN107015648B (en)* | 2017-03-28 | 2020-12-18 | 北京小米移动软件有限公司 | Image processing method and device |
| CN106951090A (en)* | 2017-03-29 | 2017-07-14 | 北京小米移动软件有限公司 | Image processing method and device |
| CN108784175A (en)* | 2017-04-27 | 2018-11-13 | 芜湖美的厨卫电器制造有限公司 | Bathroom mirror and its gesture control device, method |
| CN107333057A (en)* | 2017-06-16 | 2017-11-07 | 光锐恒宇(北京)科技有限公司 | Interaction implementation method and device in a kind of application |
| CN107547797A (en)* | 2017-07-27 | 2018-01-05 | 努比亚技术有限公司 | A kind of image pickup method, terminal and computer-readable recording medium |
| CN107493428A (en)* | 2017-08-09 | 2017-12-19 | 广东欧珀移动通信有限公司 | Shooting control method and device |
| CN109144369A (en)* | 2018-09-21 | 2019-01-04 | 维沃移动通信有限公司 | A kind of image processing method and terminal device |
| CN109461124A (en)* | 2018-09-21 | 2019-03-12 | 维沃移动通信(杭州)有限公司 | A kind of image processing method and terminal device |
| Publication | Publication Date | Title |
|---|---|---|
| CN105320929A (en) | Synchronous beautification method for photographing and photographing apparatus thereof | |
| US10977873B2 (en) | Electronic device for generating image including 3D avatar reflecting face motion through 3D avatar corresponding to face and method of operating same | |
| CN105956523B (en) | Method and device for correcting pen holding posture | |
| CN104159032B (en) | A kind of real-time adjustment camera is taken pictures the method and device of U.S. face effect | |
| CN109003224B (en) | Face-based deformation image generation method and device | |
| WO2019223421A1 (en) | Method and device for generating cartoon face image, and computer storage medium | |
| US10552593B2 (en) | Face verification method and electronic device | |
| WO2016145830A1 (en) | Image processing method, terminal and computer storage medium | |
| CN105657249A (en) | Image processing method and user terminal | |
| US20160042224A1 (en) | An Apparatus and Associated Methods | |
| CN104503749A (en) | Photo processing method and electronic equipment | |
| CN110110118A (en) | Dressing recommended method, device, storage medium and mobile terminal | |
| WO2015158082A1 (en) | Lip-reading based terminal operation method and device | |
| CN109903375B (en) | Model generation method, device, storage medium and electronic equipment | |
| CN106992004B (en) | Method and terminal for adjusting video | |
| CN108304708A (en) | Mobile terminal, face unlocking method and related product | |
| WO2021169736A1 (en) | Beauty treatment method and device | |
| WO2021244172A1 (en) | Image processing method and image synthesis method, image processing apparatus and image synthesis apparatus, and storage medium | |
| WO2020224136A1 (en) | Interface interaction method and device | |
| WO2022100680A1 (en) | Mixed-race face image generation method, mixed-race face image generation model training method and apparatus, and device | |
| KR20140010525A (en) | Emoticon service system and emoticon service providing method thereof | |
| CN107948399A (en) | Eye protection method and device for mobile terminal, mobile terminal and storage medium | |
| WO2020119665A1 (en) | Facial muscle training method and apparatus, and electronic device | |
| CN111654624A (en) | Shooting prompting method, device and electronic device | |
| CN109146770B (en) | A method, device, electronic device and computer-readable storage medium for generating a deformable image |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20160210 | |
| RJ01 | Rejection of invention patent application after publication |