[go: up one dir, main page]

CN109005355A - A kind of image pickup method and mobile terminal - Google Patents

A kind of image pickup method and mobile terminal Download PDF

Info

Publication number
CN109005355A
CN109005355A CN201811143307.1A CN201811143307A CN109005355A CN 109005355 A CN109005355 A CN 109005355A CN 201811143307 A CN201811143307 A CN 201811143307A CN 109005355 A CN109005355 A CN 109005355A
Authority
CN
China
Prior art keywords
image
information
mobile terminal
preview
preview image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811143307.1A
Other languages
Chinese (zh)
Other versions
CN109005355B (en
Inventor
徐启航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811143307.1A priority Critical patent/CN109005355B/en
Publication of CN109005355A publication Critical patent/CN109005355A/en
Application granted granted Critical
Publication of CN109005355B publication Critical patent/CN109005355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6811Motion detection based on the image signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The present invention provides a kind of image pickup method and mobile terminal, method includes: to call the preview image frame of 3D camera acquisition preset quantity before carrying out image taking;It calls 3D camera to shoot the first image according to shooting instruction, and determines the wobble information of the image information and mobile terminal in the first image shoot process;When the wobble information of image information and/or mobile terminal meets preset condition, target image is generated according to each preview image frame.It can be realized when the image information in the wobble information or shooting process that generation emergency situations make mobile terminal has greatly changed, image can still shoot success, and be able to ascend image quality, promote the usage experience of user.

Description

一种拍摄方法及移动终端A shooting method and mobile terminal

技术领域technical field

本发明涉及移动终端技术领域,特别是涉及一种拍摄方法及移动终端。The present invention relates to the technical field of mobile terminals, in particular to a photographing method and a mobile terminal.

背景技术Background technique

目前随着移动终端的发展,设备的拍摄水平日益提高,由于移动终端的便携性和拍摄场所的随机性,拍摄时不可避免的会受到各种各样因素的影响,其中抖动对于成像质量存在很大的影响。目前移动终端防抖一般采用光轴校正、加速传感器校正以及地磁传感器校正等。At present, with the development of mobile terminals, the shooting level of equipment is increasing day by day. Due to the portability of mobile terminals and the randomness of shooting locations, shooting will inevitably be affected by various factors, among which jitter has a great impact on image quality. big impact. At present, mobile terminal anti-shake generally adopts optical axis correction, acceleration sensor correction and geomagnetic sensor correction.

然而,目前的防抖校正方法依然不太理想,且当抖动幅度较大时,依然影响成像的效果,影响用户的使用体验。However, the current anti-shake correction method is still not ideal, and when the shake amplitude is large, it still affects the imaging effect and affects the user experience.

发明内容Contents of the invention

本发明实施例提供一种拍摄方法及移动终端,以解决现有技术中防抖效果不佳的问题。Embodiments of the present invention provide a photographing method and a mobile terminal to solve the problem of poor anti-shake effect in the prior art.

为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:

第一方面,本发明实施例提供了一种拍摄方法,所述方法包括:在进行图像拍摄前,调用所述3D摄像头采集预设数量的预览图像帧;依据拍摄指令调用所述3D摄像头拍摄第一图像,并确定所述第一图像拍摄过程中的图像信息和所述移动终端的抖动信息;当所述图像信息和/或所述移动终端的抖动信息满足预设条件时,依据各所述预览图像帧生成目标图像。In the first aspect, an embodiment of the present invention provides a shooting method, the method comprising: before taking image shooting, calling the 3D camera to capture a preset number of preview image frames; an image, and determine the image information during the shooting process of the first image and the shaking information of the mobile terminal; when the image information and/or the shaking information of the mobile terminal meet preset conditions, according to each of the Preview the image frame to generate the target image.

第二方面,本发明实施例还提供了一种移动终端,所述移动终端包括:采集模块,用于在进行图像拍摄前,调用所述3D摄像头采集预设数量的预览图像帧;确定模块,用于依据拍摄指令调用所述3D摄像头拍摄第一图像,并确定所述第一图像拍摄过程中的图像信息和所述移动终端的抖动信息;生成模块,用于当所述图像信息和/或所述移动终端的抖动信息满足预设条件时,依据各所述预览图像帧生成目标图像。In the second aspect, the embodiment of the present invention also provides a mobile terminal, the mobile terminal includes: a collection module, used to call the 3D camera to collect a preset number of preview image frames before image shooting; a determination module, It is used to call the 3D camera to take the first image according to the shooting instruction, and determine the image information during the shooting process of the first image and the shaking information of the mobile terminal; the generating module is used to when the image information and/or When the shaking information of the mobile terminal satisfies a preset condition, a target image is generated according to each preview image frame.

第三方面,本发明实施例还提供了一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现所述的拍摄方法的步骤。In the third aspect, the embodiment of the present invention also provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and operable on the processor, and the computer program is executed by the processor When executed, the steps of the photographing method are realized.

第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现所述的拍摄方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the photographing method are implemented.

在本发明实施例中,通过在进行图像拍摄前,调用3D摄像头采集预设数量的预览图像帧;依据拍摄指令调用3D摄像头拍摄第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息;当图像信息和/或移动终端的抖动信息满足预设条件时,依据各预览图像帧生成目标图像,能够实现当发生突发状况使得移动终端的抖动信息或者拍摄过程中的图像信息发生较大的变化时,图像依然可以拍摄成功,并能够提升成像质量,提升用户的使用体验。In the embodiment of the present invention, before the image is captured, the 3D camera is called to capture a preset number of preview image frames; the 3D camera is called to capture the first image according to the shooting instruction, and the image information and movement during the first image capture are determined. Jitter information of the terminal; when the image information and/or the jitter information of the mobile terminal meet the preset conditions, the target image is generated according to each preview image frame, which can realize that when an emergency occurs, the jitter information of the mobile terminal or the image in the shooting process When the information changes greatly, the image can still be captured successfully, and the imaging quality can be improved, and the user experience can be improved.

附图说明Description of drawings

图1是本发明实施例一的一种拍摄方法的步骤流程图;Fig. 1 is a flow chart of steps of a photographing method in Embodiment 1 of the present invention;

图2是本发明实施例二的一种拍摄方法的步骤流程图;Fig. 2 is a flow chart of the steps of a photographing method in Embodiment 2 of the present invention;

图3是本发明实施例三的一种拍摄方法的步骤流程图;Fig. 3 is a flow chart of steps of a photographing method according to Embodiment 3 of the present invention;

图4是本发明实施例四的一种移动终端的结构框图;FIG. 4 is a structural block diagram of a mobile terminal according to Embodiment 4 of the present invention;

图5是本发明实施例五的一种移动终端的结构框图;FIG. 5 is a structural block diagram of a mobile terminal according to Embodiment 5 of the present invention;

图6是本发明实施例六的一种移动终端的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of a mobile terminal according to Embodiment 6 of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

实施例一Embodiment one

参照图1,示出了本发明实施例一的一种拍摄方法的步骤流程图。Referring to FIG. 1 , it shows a flow chart of steps of a photographing method according to Embodiment 1 of the present invention.

本发明实施例提供的拍摄方法包括以下步骤:The shooting method provided by the embodiment of the present invention includes the following steps:

本发明实施例采用具有3D摄像头的移动终端进行图像拍摄。In the embodiment of the present invention, a mobile terminal with a 3D camera is used to capture images.

步骤101:在进行图像拍摄前,调用3D摄像头采集预设数量的预览图像帧。Step 101: Call the 3D camera to capture a preset number of preview image frames before image capture.

在拍摄界面中获取当预览图像,在进行图像拍摄之前,调用3D摄像头对预览图像进行采集,需要说明的是。本领域技术人员可以根据实际情况对预设数量进行设置,其中,预设数量可以为3张、5张、7张等,本发明实施例对此不作具体限制。To obtain a preview image in the shooting interface, call the 3D camera to collect the preview image before shooting the image. It should be noted that. Those skilled in the art can set the preset number according to the actual situation, wherein the preset number can be 3, 5, 7, etc., which is not specifically limited in the embodiment of the present invention.

步骤102:依据拍摄指令调用3D摄像头拍摄第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息。Step 102: Call the 3D camera to capture the first image according to the shooting instruction, and determine the image information and the shaking information of the mobile terminal during the shooting of the first image.

当用户对图像进行拍摄时,拍摄得到第一图像,且在拍摄第一图像的过程中,由于突发状况,第一图像拍摄过程中的图像信息会发生变化且移动终端的抖动信息。When the user shoots the image, the first image is obtained by shooting, and during the shooting of the first image, due to an unexpected situation, the image information during the shooting of the first image will change and the shaking information of the mobile terminal will occur.

步骤103:当图像信息和/或移动终端的抖动信息满足预设条件时,依据各预览图像帧生成目标图像。Step 103: When the image information and/or the shake information of the mobile terminal meet the preset condition, generate a target image according to each preview image frame.

图像信息包括RGB图像信息和景深信息,抖动信息包括移动终端的移动位移和角度变化值,当RGB图像信息和景深信息相较于前一图像帧发生变变化时,或者当移动终端的位移和角度变化值变化较大时,则表明拍摄过程中出现突发情况,依据各预览图象帧生成目标图像。Image information includes RGB image information and depth of field information, and jitter information includes mobile displacement and angle change values of the mobile terminal. When the RGB image information and depth of field information change compared with the previous image frame, or when the displacement and angle of the mobile terminal When the change value changes greatly, it indicates that an unexpected situation occurs during the shooting process, and the target image is generated according to each preview image frame.

在本发明实施例中,通过在进行图像拍摄前,调用3D摄像头采集预设数量的预览图像帧;依据拍摄指令调用3D摄像头拍摄第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息;当图像信息和/或移动终端的抖动信息满足预设条件时,依据各预览图像帧生成目标图像,能够实现当发生突发状况使得移动终端的抖动信息或者拍摄过程中的图像信息发生较大的变化时,图像依然可以拍摄成功,并能够提升成像质量,提升用户的使用体验。In the embodiment of the present invention, before the image is captured, the 3D camera is called to capture a preset number of preview image frames; the 3D camera is called to capture the first image according to the shooting instruction, and the image information and movement during the first image capture are determined. Jitter information of the terminal; when the image information and/or the jitter information of the mobile terminal meet the preset conditions, the target image is generated according to each preview image frame, which can realize that when an emergency occurs, the jitter information of the mobile terminal or the image in the shooting process When the information changes greatly, the image can still be captured successfully, and the imaging quality can be improved, and the user experience can be improved.

实施例二Embodiment two

参照图2,示出了本发明实施例二的一种拍摄方法的步骤流程图。Referring to FIG. 2 , it shows a flow chart of steps of a photographing method according to Embodiment 2 of the present invention.

本发明实施例提供的拍摄方法包括以下步骤:The shooting method provided by the embodiment of the present invention includes the following steps:

步骤201:在进行图像拍摄前,调用3D摄像头采集预设数量的预览图像帧。Step 201: Call the 3D camera to capture a preset number of preview image frames before image capture.

在拍摄界面中获取当预览图像,在进行图像拍摄之前,调用3D摄像头对预览图像进行采集,需要说明的是。本领域技术人员可以根据实际情况对预设数量进行设置,其中,预设数量可以为3张、5张、7张等,本发明实施例对此不作具体限制。To obtain a preview image in the shooting interface, call the 3D camera to collect the preview image before shooting the image. It should be noted that. Those skilled in the art can set the preset number according to the actual situation, wherein the preset number can be 3, 5, 7, etc., which is not specifically limited in the embodiment of the present invention.

步骤202:依据拍摄指令调用3D摄像头拍摄第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息。Step 202: Call the 3D camera to capture the first image according to the shooting instruction, and determine the image information and the shaking information of the mobile terminal during the shooting of the first image.

当用户对图像进行拍摄时,拍摄得到第一图像,且在拍摄第一图像的过程中,由于突发状况,会发生移动终端的位移、移动终端的角度变化,即移动终端的抖动信息,同时第一图像会生成图像信息。When the user shoots the image, the first image is obtained by shooting, and in the process of shooting the first image, due to unexpected situations, the displacement of the mobile terminal and the angle change of the mobile terminal may occur, that is, the shaking information of the mobile terminal, and at the same time The first image generates image information.

步骤203:当移动终端的位移大于预设位移且角度变化值大于预设角度值时,依据各预览图像帧生成目标图像。Step 203: When the displacement of the mobile terminal is greater than the preset displacement and the angle change value is greater than the preset angle value, generate a target image according to each preview image frame.

移动终端的抖动信息包括移动终端的位移和角度变化值,当位移大于预设位移且角度变化值大于预设角度值时,则表明拍摄的第一图像发生剧烈抖动,拍摄第一图像模糊不清或者未拍摄到待拍摄的图像,则依据各预览图像生成第一目标图像。The shaking information of the mobile terminal includes the displacement and angle change value of the mobile terminal. When the displacement is greater than the preset displacement and the angle change value is greater than the preset angle value, it indicates that the first captured image shakes violently, and the captured first image is blurred Or if the image to be captured is not captured, the first target image is generated according to each preview image.

需要说明的是,预设位移可以设置为5-10mm,预设角度变化值可以设置为10-15度,本发明实施例对此不作具体限制。It should be noted that the preset displacement can be set to 5-10 mm, and the preset angle change value can be set to 10-15 degrees, which is not specifically limited in this embodiment of the present invention.

步骤204:当位移小于或等于预设位移,且角度变化值小于或等于预设角度时,确定各预览图像帧的第一权重值和第一图像的第二权重值。Step 204: When the displacement is less than or equal to the preset displacement and the angle change value is less than or equal to the preset angle, determine the first weight value of each preview image frame and the second weight value of the first image.

当位移小于或者等于预设位移,且角度变化值小于或者等于预设角度是,则表明第一图像发生的抖动情况属于正常范围内,且第一图像存在一些模糊不清,则为了提高成像的质量,确定各预览图像的第一权重值和第一图像的第二权重值。When the displacement is less than or equal to the preset displacement, and the angle change value is less than or equal to the preset angle, it indicates that the shaking of the first image is within the normal range, and there is some blur in the first image, in order to improve the imaging Quality, determining the first weight value of each preview image and the second weight value of the first image.

需要说明的是,第一权重值和第二权重值的和为1,当第一图像存在模糊时,即位移小于或者等于预设位移且角度变化值小于或者等于预设角度值时,则降低第一图像的权重值。It should be noted that the sum of the first weight value and the second weight value is 1, and when the first image is blurred, that is, when the displacement is less than or equal to the preset displacement and the angle change value is less than or equal to the preset angle value, then decrease The weight value of the first image.

步骤205:依据第一权重值和第二权重值,将各预览图像帧和第一图像融合,生成目标图像。Step 205: According to the first weight value and the second weight value, each preview image frame is fused with the first image to generate a target image.

为了避免成效效果不佳,则将第一图像和各预览图像按照权重值进行融合,提升第二目标图像的成像效果。In order to avoid poor results, the first image and each preview image are fused according to the weight value to improve the imaging effect of the second target image.

在本发明实施例中,通过在进行图像拍摄前,调用3D摄像头采集预设数量的预览图像帧;依据拍摄指令调用3D摄像头拍摄第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息;当图像信息和/或移动终端的抖动信息满足预设条件时,依据各预览图像帧生成目标图像,能够实现当发生突发状况使得移动终端的抖动信息或者拍摄过程中的图像信息发生较大的变化时,图像依然可以拍摄成功,并能够提升成像质量,提升用户的使用体验。此外,当位移小于或者等于预设位移且角度变化值小于或者等于预设角度值时,则按照各预览图像的权重值和第一图像的权重值,生成第二目标图像,使得图像尽量还原为抖动前的图像,提升用户的使用体验。In the embodiment of the present invention, before the image is captured, the 3D camera is called to capture a preset number of preview image frames; the 3D camera is called to capture the first image according to the shooting instruction, and the image information and movement during the first image capture are determined. Jitter information of the terminal; when the image information and/or the jitter information of the mobile terminal meet the preset conditions, the target image is generated according to each preview image frame, which can realize that when an emergency occurs, the jitter information of the mobile terminal or the image in the shooting process When the information changes greatly, the image can still be captured successfully, and the imaging quality can be improved, and the user experience can be improved. In addition, when the displacement is less than or equal to the preset displacement and the angle change value is less than or equal to the preset angle value, the second target image is generated according to the weight value of each preview image and the weight value of the first image, so that the image can be restored to The image before dithering improves the user experience.

实施例三Embodiment three

参照图3,示出了本发明实施例三的一种拍摄方法的步骤流程图。Referring to FIG. 3 , it shows a flow chart of steps of a photographing method according to Embodiment 3 of the present invention.

本发明实施例提供的拍摄方法包括以下步骤:The shooting method provided by the embodiment of the present invention includes the following steps:

步骤301:在进行图像拍摄前,调用3D摄像头采集预设数量的预览图像帧。Step 301: Call the 3D camera to capture a preset number of preview image frames before image capture.

在拍摄界面中获取当预览图像,在进行图像拍摄之前,调用3D摄像头对预览图像进行采集,需要说明的是。本领域技术人员可以根据实际情况对预设数量进行设置,其中,预设数量可以为3张、5张、7张等,本发明实施例对此不作具体限制。To obtain a preview image in the shooting interface, call the 3D camera to collect the preview image before shooting the image. It should be noted that. Those skilled in the art can set the preset number according to the actual situation, wherein the preset number can be 3, 5, 7, etc., which is not specifically limited in the embodiment of the present invention.

步骤302:依据拍摄指令调用3D摄像头拍摄第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息。Step 302: Call the 3D camera to capture the first image according to the shooting instruction, and determine the image information and the shaking information of the mobile terminal during the shooting of the first image.

当用户对图像进行拍摄时,调用3D摄像头拍摄得到第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息。第一图像拍摄过程的图像信息可以包括RGB图像信息和景深信息,移动终端的抖动信息包括移动终端的位移和角度变化值。When the user captures an image, the 3D camera is called to capture the first image, and the image information and the shake information of the mobile terminal during the first image capture are determined. The image information in the first image capturing process may include RGB image information and depth of field information, and the shaking information of the mobile terminal includes displacement and angle change values of the mobile terminal.

步骤303:当第一图像的RGB图像信息相较于任意一预览图像帧的RGB图像信息发生变化时,则依据各预览图像帧生成目标图像。Step 303: When the RGB image information of the first image changes compared with the RGB image information of any preview image frame, generate a target image according to each preview image frame.

由于在拍摄过程中,那以避免其他人入境,造成对拍摄主体的遮挡,因此当位移和角度变化值均为零时,表明拍摄过程中未发生抖动,确定第一图像的RGB图像信息,依据第一图像的RGB图像信息第一图像的主体是否被遮挡,通过判断第一图像的RGB图像信息相较于任意一预览图像帧的平面信息是否发生变化,从而判断第一图像的主体是否被遮挡,当第一图像发生遮挡时,则依据各预览图像帧生成目标图像。Because during the shooting process, it is necessary to prevent other people from entering the country and causing the occlusion of the shooting subject. Therefore, when the displacement and angle change values are both zero, it indicates that there is no shaking during the shooting process. The RGB image information of the first image is determined according to RGB image information of the first image Whether the main body of the first image is occluded, by judging whether the RGB image information of the first image changes compared with the plane information of any preview image frame, so as to determine whether the main body of the first image is occluded , when the first image is occluded, the target image is generated according to each preview image frame.

步骤304:当第一图像的景深信息相较于任意一预览图像帧的景深信息发生变化时,则依据各预览图像帧生成目标图像。Step 304: When the depth information of the first image changes compared with the depth information of any preview image frame, generate a target image according to each preview image frame.

确定第一图像的景深信息相较于任意一预览图像帧的景深信息是否发生变化;若是,则确定第一图像被遮挡,当第一图像发生遮挡时,则依据各预览图象帧生成目标图像,使得生成的图像不存在遮挡。Determine whether the depth of field information of the first image changes compared with the depth of field information of any preview image frame; if so, determine that the first image is blocked, and when the first image is blocked, generate a target image based on each preview image frame , so that there is no occlusion in the generated image.

在本发明实施例中,通过在进行图像拍摄前,调用3D摄像头采集预设数量的预览图像帧;依据拍摄指令调用3D摄像头拍摄第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息;当图像信息和/或移动终端的抖动信息满足预设条件时,依据各预览图像帧生成目标图像,能够实现当发生突发状况使得移动终端的抖动信息或者拍摄过程中的图像信息发生较大的变化时,图像依然可以拍摄成功,并能够提升成像质量,提升用户的使用体验。此外,当第一图像的RGB图像信息和景深信息判断是否发生意外情况,当发生意外情况,则第一图像发生遮挡,依据各预览图像生成目标图像,实现抗遮挡的作用。In the embodiment of the present invention, before the image is captured, the 3D camera is called to capture a preset number of preview image frames; the 3D camera is called to capture the first image according to the shooting instruction, and the image information and movement during the first image capture are determined. Jitter information of the terminal; when the image information and/or the jitter information of the mobile terminal meet the preset conditions, the target image is generated according to each preview image frame, which can realize that when an emergency occurs, the jitter information of the mobile terminal or the image in the shooting process When the information changes greatly, the image can still be captured successfully, and the imaging quality can be improved, and the user experience can be improved. In addition, when the RGB image information and the depth information of the first image determine whether an accident occurs, when an accident occurs, the first image is occluded, and the target image is generated according to each preview image to realize the anti-occlusion function.

实施例四Embodiment Four

参照图4,示出了本发明实施例四的一种移动终端的结构框图。Referring to FIG. 4 , it shows a structural block diagram of a mobile terminal according to Embodiment 4 of the present invention.

本发明实施例提供的移动终端包括:采集模块401,用于在进行图像拍摄前,调用所述3D摄像头采集预设数量的预览图像帧;确定模块402,用于依据拍摄指令调用所述3D摄像头拍摄第一图像,并确定所述第一图像拍摄过程中的图像信息和所述移动终端的抖动信息;生成模块403,用于当所述图像信息和/或所述移动终端的抖动信息满足预设条件时,依据各所述预览图像帧生成目标图像。The mobile terminal provided by the embodiment of the present invention includes: a collection module 401, used to call the 3D camera to collect a preset number of preview image frames before image shooting; a determination module 402, used to call the 3D camera according to a shooting instruction Taking a first image, and determining the image information during the shooting of the first image and the shaking information of the mobile terminal; the generation module 403 is configured to meet the predetermined requirements when the image information and/or the shaking information of the mobile terminal When the condition is set, the target image is generated according to each preview image frame.

在本发明实施例中,通过在进行图像拍摄前,调用3D摄像头采集预设数量的预览图像帧;依据拍摄指令调用3D摄像头拍摄第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息;当图像信息和/或移动终端的抖动信息满足预设条件时,依据各预览图像帧生成目标图像,能够实现当发生突发状况使得移动终端的抖动信息或者拍摄过程中的图像信息发生较大的变化时,图像依然可以拍摄成功,并能够提升成像质量,提升用户的使用体验。In the embodiment of the present invention, before the image is captured, the 3D camera is called to capture a preset number of preview image frames; the 3D camera is called to capture the first image according to the shooting instruction, and the image information and movement during the first image capture are determined. Jitter information of the terminal; when the image information and/or the jitter information of the mobile terminal meet the preset conditions, the target image is generated according to each preview image frame, which can realize that when an emergency occurs, the jitter information of the mobile terminal or the image in the shooting process When the information changes greatly, the image can still be captured successfully, and the imaging quality can be improved, and the user experience can be improved.

实施例五Embodiment five

参照图5,示出了本发明实施例五的一种移动终端的结构框图。Referring to FIG. 5 , it shows a structural block diagram of a mobile terminal according to Embodiment 5 of the present invention.

本发明实施例提供的移动终端包括:采集模块501,用于在进行图像拍摄前,调用所述3D摄像头采集预设数量的预览图像帧;确定模块502,用于依据拍摄指令调用所述3D摄像头拍摄第一图像,并确定所述第一图像拍摄过程中的图像信息和所述移动终端的抖动信息;生成模块503,用于当所述图像信息和/或所述移动终端的抖动信息满足预设条件时,依据各所述预览图像帧生成目标图像。The mobile terminal provided by the embodiment of the present invention includes: a collection module 501, used to call the 3D camera to collect a preset number of preview image frames before image shooting; a determination module 502, used to call the 3D camera according to a shooting instruction Taking a first image, and determining the image information during the shooting of the first image and the shaking information of the mobile terminal; the generation module 503 is configured to meet the preset requirements when the image information and/or the shaking information of the mobile terminal When the condition is set, the target image is generated according to each preview image frame.

优选地,所述移动终端的抖动信息包括所述移动终端的位移和角度变化值,所述生成模块503包括:第一生成子模块5031,用于当所述移动终端的位移大于预设位移且所述角度变化值大于预设角度值时,依据各所述预览图像帧生成目标图像。优选地,,所述生成模块503包括:确定子模块5032,用于当所述位移小于或等于所述预设位移,且所述角度变化值小于或等于所述预设角度时,确定各所述预览图像帧的第一权重值和所述第一图像的第二权重值;第二生成子模块5033,用于依据所述第一权重值和所述第二权重值,将各所述预览图像帧和所述第一图像融合,生成目标图像。Preferably, the jitter information of the mobile terminal includes the displacement and angle change value of the mobile terminal, and the generation module 503 includes: a first generation submodule 5031, configured to be used when the displacement of the mobile terminal is greater than a preset displacement and When the angle change value is greater than a preset angle value, a target image is generated according to each preview image frame. Preferably, the generating module 503 includes: a determining submodule 5032, configured to determine each The first weight value of the preview image frame and the second weight value of the first image; the second generating submodule 5033 is configured to, according to the first weight value and the second weight value, each of the preview The image frame is fused with the first image to generate a target image.

优选地,所述生成模块503包括:第三生成子模块5034,用于当所述第一图像的RGB图像信息相较于任意一所述预览图像帧的RGB图像信息发生变化时,则依据各所述预览图像帧生成目标图像。Preferably, the generating module 503 includes: a third generating sub-module 5034, configured to: when the RGB image information of the first image changes compared with the RGB image information of any one of the preview image frames, according to each The preview image frame generates a target image.

优选地,所述生成模块503包括:第四生成子模块5035,用于当所述第一图像的景深信息相较于任意一所述预览图像帧的景深信息发生变化时,则依据各所述预览图像帧生成目标图像。Preferably, the generation module 503 includes: a fourth generation submodule 5035, configured to: when the depth information of the first image changes compared with the depth information of any one of the preview image frames, according to each of the Preview the image frame to generate the target image.

本发明实施例提供的移动终端能够实现图1至图3的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal provided by the embodiment of the present invention can implement various processes implemented by the mobile terminal in the method embodiments in FIG. 1 to FIG. 3 , and details are not repeated here to avoid repetition.

在本发明实施例中,通过在进行图像拍摄前,调用3D摄像头采集预设数量的预览图像帧;依据拍摄指令调用3D摄像头拍摄第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息;当图像信息和/或移动终端的抖动信息满足预设条件时,依据各预览图像帧生成目标图像,能够实现当发生突发状况使得移动终端的抖动信息或者拍摄过程中的图像信息发生较大的变化时,图像依然可以拍摄成功,并能够提升成像质量,提升用户的使用体验。In the embodiment of the present invention, before the image is captured, the 3D camera is called to capture a preset number of preview image frames; the 3D camera is called to capture the first image according to the shooting instruction, and the image information and movement during the first image capture are determined. Jitter information of the terminal; when the image information and/or the jitter information of the mobile terminal meet the preset conditions, the target image is generated according to each preview image frame, which can realize that when an emergency occurs, the jitter information of the mobile terminal or the image in the shooting process When the information changes greatly, the image can still be captured successfully, and the imaging quality can be improved, and the user experience can be improved.

实施例六Embodiment six

参照图6,为实现本发明各个实施例的一种移动终端的硬件结构示意图。Referring to FIG. 6 , it is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.

该移动终端600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、处理器610、以及电源611等部件。本领域技术人员可以理解,图6中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and Power supply 611 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 6 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine certain components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.

处理器610,用于在进行图像拍摄前,调用所述3D摄像头采集预设数量的预览图像帧;依据拍摄指令调用所述3D摄像头拍摄第一图像,并确定所述第一图像拍摄过程中的图像信息和所述移动终端的抖动信息;当所述图像信息和/或所述移动终端的抖动信息满足预设条件时,依据各所述预览图像帧生成目标图像。The processor 610 is configured to call the 3D camera to capture a preset number of preview image frames before image shooting; call the 3D camera to take a first image according to the shooting instruction, and determine the The image information and the shaking information of the mobile terminal; when the image information and/or the shaking information of the mobile terminal meet a preset condition, generating a target image according to each of the preview image frames.

在本发明实施例中,通过在进行图像拍摄前,调用3D摄像头采集预设数量的预览图像帧;依据拍摄指令调用3D摄像头拍摄第一图像,并确定第一图像拍摄过程中的图像信息和移动终端的抖动信息;当图像信息和/或移动终端的抖动信息满足预设条件时,依据各预览图像帧生成目标图像,能够实现当发生突发状况使得移动终端的抖动信息或者拍摄过程中的图像信息发生较大的变化时,图像依然可以拍摄成功,并能够提升成像质量,提升用户的使用体验。In the embodiment of the present invention, before the image is captured, the 3D camera is called to capture a preset number of preview image frames; the 3D camera is called to capture the first image according to the shooting instruction, and the image information and movement during the first image capture are determined. Jitter information of the terminal; when the image information and/or the jitter information of the mobile terminal meet the preset conditions, the target image is generated according to each preview image frame, which can realize that when an emergency occurs, the jitter information of the mobile terminal or the image in the shooting process When the information changes greatly, the image can still be captured successfully, and the imaging quality can be improved, and the user experience can be improved.

应理解的是,本发明实施例中,射频单元601可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器610处理;另外,将上行的数据发送给基站。通常,射频单元601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元601还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 610; in addition, the Uplink data is sent to the base station. Generally, the radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 601 can also communicate with the network and other devices through a wireless communication system.

移动终端通过网络模块602为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 602, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元603可以将射频单元601或网络模块602接收的或者在存储器609中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元603还可以提供与移动终端600执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元603包括扬声器、蜂鸣器以及受话器等。The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 can also provide audio output related to a specific function performed by the mobile terminal 600 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.

输入单元604用于接收音频或视频信号。输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元606上。经图形处理器6041处理后的图像帧可以存储在存储器609(或其它存储介质)中或者经由射频单元601或网络模块602进行发送。麦克风6042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元601发送到移动通信基站的格式输出。The input unit 604 is used for receiving audio or video signals. The input unit 604 may include a graphics processing unit (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processing unit 6041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 606 . The image frames processed by the graphics processor 6041 may be stored in the memory 609 (or other storage media) or sent via the radio frequency unit 601 or the network module 602 . The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 601 for output in the case of a phone call mode.

移动终端600还包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6061的亮度,接近传感器可在移动终端600移动到耳边时,关闭显示面板6061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器605还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 6061 and the display panel 6061 when the mobile terminal 600 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 605 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.

显示单元606用于显示由用户输入的信息或提供给用户的信息。显示单元606可包括显示面板6061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6061。The display unit 606 is used to display information input by the user or information provided to the user. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元607可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6071上或在触控面板6071附近的操作)。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器610,接收处理器610发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6071。除了触控面板6071,用户输入单元607还可以包括其他输入设备6072。具体地,其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 607 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072 . The touch panel 6071, also referred to as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 6071 or near the touch panel 6071). operate). The touch panel 6071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 610, receive the command sent by the processor 610 and execute it. In addition, the touch panel 6071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 6071 , the user input unit 607 may also include other input devices 6072 . Specifically, other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板6071可覆盖在显示面板6061上,当触控面板6071检测到在其上或附近的触摸操作后,传送给处理器610以确定触摸事件的类型,随后处理器610根据触摸事件的类型在显示面板6061上提供相应的视觉输出。虽然在图6中,触控面板6071与显示面板6061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板6071与显示面板6061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 6071 can be covered on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near it, it will be sent to the processor 610 to determine the type of the touch event, and then the processor 610 can The type of event provides a corresponding visual output on the display panel 6061. Although in FIG. 6, the touch panel 6071 and the display panel 6061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.

接口单元608为外部装置与移动终端600连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元608可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端600内的一个或多个元件或者可以用于在移动终端600和外部装置之间传输数据。The interface unit 608 is an interface for connecting an external device to the mobile terminal 600 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 608 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器609可用于存储软件程序以及各种数据。存储器609可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器609可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 609 can be used to store software programs as well as various data. The memory 609 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 609 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器610是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器609内的软件程序和/或模块,以及调用存储在存储器609内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器610可包括一个或多个处理单元;优选的,处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。The processor 610 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 610 .

移动终端600还可以包括给各个部件供电的电源611(比如电池),优选的,电源611可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 600 can also include a power supply 611 (such as a battery) for supplying power to various components. Preferably, the power supply 611 can be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.

另外,移动终端600包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 600 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种移动终端,包括处理器610,存储器609,存储在存储器609上并可在所述处理器610上运行的计算机程序,该计算机程序被处理器610执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 610, a memory 609, a computer program stored in the memory 609 and operable on the processor 610, when the computer program is executed by the processor 610 Each process of the above embodiment of the photographing method can be realized and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned shooting method embodiment is realized, and the same technical effect can be achieved. , to avoid repetition, it will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.

Claims (11)

1. a kind of image pickup method, applied to the mobile terminal with 3D camera, which is characterized in that the described method includes:
Before carrying out image taking, the preview image frame of the 3D camera acquisition preset quantity is called;
It calls the 3D camera to shoot the first image according to shooting instruction, and determines the figure in the first image shooting process As the wobble information of information and the mobile terminal;
When the wobble information of described image information and/or the mobile terminal meets preset condition, according to each preview graph As frame generates target image.
2. the method according to claim 1, wherein the wobble information of the mobile terminal includes described mobile whole The displacement and angle change value at end, it is described when the wobble information of the mobile terminal meets preset condition, according to each described pre- Picture frame of looking at generates the step of target image, comprising:
When the displacement of the mobile terminal is greater than preset displacement and the angle change value is greater than preset angle angle value, according to each institute It states preview image frame and generates target image.
3. according to the method described in claim 2, it is characterized in that, described preset when the wobble information of the mobile terminal meets When condition, the step of generating target image according to each preview image frame, further includes:
It is displaced when described less than or equal to the preset displacement, and the angle change value is less than or equal to the predetermined angle When, determine the first weighted value of each preview image frame and the second weighted value of the first image;
According to first weighted value and second weighted value, each preview image frame and the first image are merged, Generate target image.
4. described to work as institute the method according to claim 1, wherein described image information includes RGB image information When stating image information and meeting preset condition, the step of generating target image according to each preview image frame, comprising:
When the RGB image information of the first image becomes compared to the RGB image information of any one preview image frame When change, then target image is generated according to each preview image frame.
5. described when described the method according to claim 1, wherein described image information includes depth of view information When image information meets preset condition, the step of generating target image according to each preview image frame, comprising:
When the depth of view information of the first image changes compared to the depth of view information of any one preview image frame, then Target image is generated according to each preview image frame.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Acquisition module, for before carrying out image taking, calling the preview image frame of the 3D camera acquisition preset quantity;
Determining module for calling the 3D camera to shoot the first image according to shooting instruction, and determines the first image The wobble information of image information and the mobile terminal in shooting process;
Generation module, for when the wobble information of described image information and/or the mobile terminal meets preset condition, foundation Each preview image frame generates target image.
7. mobile terminal according to claim 1, which is characterized in that the wobble information of the mobile terminal includes the shifting The displacement and angle change value of dynamic terminal, the generation module include:
First generates submodule, is greater than preset displacement for the displacement when the mobile terminal and the angle change value is greater than in advance If when angle value, generating target image according to each preview image frame.
8. mobile terminal according to claim 6, which is characterized in that the generation module includes:
Determine submodule, for being less than or equal to the preset displacement when the displacement, and the angle change value is less than or waits When the predetermined angle, the first weighted value of each preview image frame and the second weighted value of the first image are determined;
Second generates submodule, is used for according to first weighted value and second weighted value, by each preview image frame It is merged with the first image, generates target image.
9. mobile terminal according to claim 8, which is characterized in that the generation module includes:
Third generates submodule, for the RGB image information when the first image compared to any one preview image frame RGB image information when changing, then generate target image according to each preview image frame.
10. according to the method described in claim 8, it is characterized in that, the generation module includes:
4th generates submodule, the scape for the depth of view information when the first image compared to any one preview image frame When deeply convinceing that breath changes, then target image is generated according to each preview image frame.
11. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in image pickup method the step of.
CN201811143307.1A 2018-09-28 2018-09-28 Shooting method and mobile terminal Active CN109005355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811143307.1A CN109005355B (en) 2018-09-28 2018-09-28 Shooting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811143307.1A CN109005355B (en) 2018-09-28 2018-09-28 Shooting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109005355A true CN109005355A (en) 2018-12-14
CN109005355B CN109005355B (en) 2020-10-09

Family

ID=64589763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811143307.1A Active CN109005355B (en) 2018-09-28 2018-09-28 Shooting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109005355B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688293A (en) * 2019-01-28 2019-04-26 努比亚技术有限公司 A kind of image pickup method, terminal and computer readable storage medium
WO2021035525A1 (en) * 2019-08-27 2021-03-04 Oppo广东移动通信有限公司 Image processing method and apparatus, and electronic device and computer-readable storage medium
WO2021035524A1 (en) * 2019-08-27 2021-03-04 Oppo广东移动通信有限公司 Image processing method and apparatus, electronic device, and computer-readable storage medium
WO2022141445A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Image processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006197098A (en) * 2005-01-12 2006-07-27 Canon Inc Image transmission system of network camera
CN103416064A (en) * 2011-03-18 2013-11-27 索尼公司 Image-processing device, image-processing method, and program
CN104601897A (en) * 2015-02-13 2015-05-06 浙江宇视科技有限公司 Anti-shake device and method of video camera
CN104811601A (en) * 2014-01-24 2015-07-29 青岛海信移动通信技术股份有限公司 Method and device for displaying preview image
CN106254772A (en) * 2016-07-29 2016-12-21 广东欧珀移动通信有限公司 Multiple image synthetic method and device
CN107018327A (en) * 2017-03-31 2017-08-04 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN107509034A (en) * 2017-09-22 2017-12-22 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN107770451A (en) * 2017-11-13 2018-03-06 广东欧珀移动通信有限公司 Method, device, terminal and storage medium for photographing and processing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006197098A (en) * 2005-01-12 2006-07-27 Canon Inc Image transmission system of network camera
CN103416064A (en) * 2011-03-18 2013-11-27 索尼公司 Image-processing device, image-processing method, and program
CN104811601A (en) * 2014-01-24 2015-07-29 青岛海信移动通信技术股份有限公司 Method and device for displaying preview image
CN104601897A (en) * 2015-02-13 2015-05-06 浙江宇视科技有限公司 Anti-shake device and method of video camera
CN106254772A (en) * 2016-07-29 2016-12-21 广东欧珀移动通信有限公司 Multiple image synthetic method and device
CN107018327A (en) * 2017-03-31 2017-08-04 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN107509034A (en) * 2017-09-22 2017-12-22 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN107770451A (en) * 2017-11-13 2018-03-06 广东欧珀移动通信有限公司 Method, device, terminal and storage medium for photographing and processing

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688293A (en) * 2019-01-28 2019-04-26 努比亚技术有限公司 A kind of image pickup method, terminal and computer readable storage medium
WO2021035525A1 (en) * 2019-08-27 2021-03-04 Oppo广东移动通信有限公司 Image processing method and apparatus, and electronic device and computer-readable storage medium
WO2021035524A1 (en) * 2019-08-27 2021-03-04 Oppo广东移动通信有限公司 Image processing method and apparatus, electronic device, and computer-readable storage medium
US12141947B2 (en) 2019-08-27 2024-11-12 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Image processing method, electronic device, and computer-readable storage medium
US12149826B2 (en) 2019-08-27 2024-11-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Image processing method and device, electronic device, and computer-readable storage medium
WO2022141445A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Image processing method and device

Also Published As

Publication number Publication date
CN109005355B (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN107770438B (en) A kind of photographic method and mobile terminal
CN108446085A (en) A kind of throwing screen display methods and mobile terminal
CN107566730B (en) A panoramic image shooting method and mobile terminal
CN108513070A (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN108989672B (en) Shooting method and mobile terminal
CN108492246B (en) Image processing method and device and mobile terminal
CN108924414B (en) A shooting method and terminal equipment
CN107566748A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN110213485B (en) Image processing method and terminal
CN107610075A (en) Image combining method and mobile terminal
CN108012084A (en) A kind of image generating method, application processor AP and third party's picture processing chip
CN109005355A (en) A kind of image pickup method and mobile terminal
CN108763998A (en) Barcode recognition method and terminal equipment
CN108449541A (en) A panoramic image shooting method and mobile terminal
CN107682639A (en) Image processing method, device and mobile terminal
WO2021147911A1 (en) Mobile terminal, method for detecting image capturing mode, and storage medium
CN107682637A (en) A shooting method, mobile terminal and computer-readable storage medium
CN108881721B (en) Display method and terminal
CN108833796A (en) An image capturing method and terminal
CN109033913A (en) A kind of recognition methods of identification code and mobile terminal
CN108317992A (en) A kind of object distance measurement method and terminal device
CN108076294A (en) A kind of image pickup method and mobile terminal
CN108307123A (en) Exposure adjustment method and mobile terminal
CN108600517A (en) A kind of method and terminal of switching screen state
CN108536513B (en) Picture display direction adjusting method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant