[go: up one dir, main page]

CN107800968B - A shooting method and mobile terminal - Google Patents

A shooting method and mobile terminal Download PDF

Info

Publication number
CN107800968B
CN107800968B CN201711078387.2A CN201711078387A CN107800968B CN 107800968 B CN107800968 B CN 107800968B CN 201711078387 A CN201711078387 A CN 201711078387A CN 107800968 B CN107800968 B CN 107800968B
Authority
CN
China
Prior art keywords
camera
photographed
position coordinates
mobile terminal
behavior
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.)
Active
Application number
CN201711078387.2A
Other languages
Chinese (zh)
Other versions
CN107800968A (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 CN201711078387.2A priority Critical patent/CN107800968B/en
Publication of CN107800968A publication Critical patent/CN107800968A/en
Application granted granted Critical
Publication of CN107800968B publication Critical patent/CN107800968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)

Abstract

The present invention provides a kind of image pickup method and mobile terminal, this method comprises: whether the motor behavior for detecting the camera with respect to object to be shot meets preset condition in the moving process of camera;If the motor behavior meets preset condition, start the camera, the object to be shot is shot.In this way, whether the motor behavior by detection camera with respect to object to be shot meets preset condition, to start camera, and shooting of the completion to object to be shot, relative to needing user to remove manually opened camera, and complete to shoot, it can simplify shooting process, solve the problems, such as that there are cumbersome in existing shooting process.

Description

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

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种拍摄方法及移动终端。The invention relates to the field of communication technologies, in particular to a photographing method and a mobile terminal.

背景技术Background technique

随着移动终端技术的不断发展,越来越多的用户习惯使用移动终端进行图像拍摄。在使用移动终端进行图像拍摄的过程中,首先需要用户启动相机应用程序,进入拍摄预览界面,然后还需要用户选择前置或者后置摄像头,并进行对焦操作,最后按下拍摄按键完成照片的拍摄,整个拍摄过程操作繁琐。With the continuous development of mobile terminal technologies, more and more users are accustomed to using mobile terminals for image capture. In the process of using a mobile terminal to capture images, the user first needs to start the camera application to enter the shooting preview interface, then the user needs to select the front or rear camera, and perform a focusing operation, and finally press the shooting button to complete the photo shooting , the whole shooting process is cumbersome to operate.

可见,现有的拍摄过程存在操作繁琐的问题。It can be seen that there is a problem of cumbersome operation in the existing shooting process.

发明内容Contents of the invention

本发明实施例提供一种拍摄方法及移动终端,以解决现有的拍摄过程存在操作繁琐的问题。Embodiments of the present invention provide a shooting method and a mobile terminal to solve the problem of cumbersome operations in the existing shooting process.

为解决上述技术问题,本发明是这样实现的:一种拍摄方法,应用于包括摄像头的移动终端,包括:在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄。In order to solve the above technical problems, the present invention is implemented as follows: a shooting method applied to a mobile terminal including a camera, including: during the movement of the camera, detecting whether the motion behavior of the camera relative to the object to be photographed satisfies a preset conditions; if the motion behavior satisfies a preset condition, the camera is started to shoot the object to be photographed.

第一方面,本发明实施例提供了一种拍摄方法,应用于包括摄像头的移动终端,包括:In the first aspect, an embodiment of the present invention provides a shooting method, which is applied to a mobile terminal including a camera, including:

在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;During the movement of the camera, detecting whether the movement behavior of the camera relative to the object to be photographed meets a preset condition;

若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄。If the movement behavior satisfies the preset condition, the camera is started to shoot the object to be photographed.

第二方面,本发明实施例还提供一种移动终端,包括摄像头,所述移动终端还包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, including a camera, and the mobile terminal further includes:

第一检测模块,用于在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;The first detection module is used to detect whether the movement behavior of the camera relative to the object to be photographed meets a preset condition during the movement of the camera;

拍摄模块,用于若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄。The photographing module is configured to start the camera to photograph the object to be photographed if the motion behavior satisfies a preset condition.

第三方面,本发明实施例还提供一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述拍摄方法的步骤。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 realizing the steps of the above shooting method.

在本发明实施例中,在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄。这样,通过检测摄像头相对待拍摄物体的运动行为是否满足预设条件,来启动摄像头,并完成对待拍摄物体的拍摄,相对于需要用户去手动开启相机,并完成拍摄,可以简化拍摄流程,解决现有拍摄过程中存在操作繁琐的问题。In the embodiment of the present invention, during the movement of the camera, it is detected whether the movement behavior of the camera relative to the object to be photographed meets the preset condition; if the movement behavior meets the preset condition, the camera is started, and the The subject to be photographed is photographed. In this way, by detecting whether the movement behavior of the camera relative to the object to be photographed satisfies the preset conditions, the camera is started and the photographing of the subject to be photographed is completed. Compared with the need for the user to manually turn on the camera and complete the photographing, the photographing process can be simplified and solve the problem. There is a problem of cumbersome operation during the shooting process.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本发明一实施例提供的拍摄方法的流程图;FIG. 1 is a flowchart of a shooting method provided by an embodiment of the present invention;

图2是本发明另一实施例提供的拍摄方法的流程图;Fig. 2 is a flowchart of a shooting method provided by another embodiment of the present invention;

图3是本发明一实施例提供的移动终端的结构图之一;FIG. 3 is one of the structural diagrams of a mobile terminal provided by an embodiment of the present invention;

图4是本发明一实施例提供的移动终端中第一检测模块的结构图;Fig. 4 is a structural diagram of a first detection module in a mobile terminal provided by an embodiment of the present invention;

图5是本发明一实施例提供的移动终端中第一确定子模块的结构图;Fig. 5 is a structural diagram of a first determining submodule in a mobile terminal provided by an embodiment of the present invention;

图6是本发明一实施例提供的移动终端中拍摄模块的结构图;Fig. 6 is a structural diagram of a photographing module in a mobile terminal provided by an embodiment of the present invention;

图7是本发明一实施例提供的移动终端的结构图之二;FIG. 7 is the second structural diagram of a mobile terminal provided by an embodiment of the present invention;

图8是本发明另一实施例提供的移动终端的结构图。Fig. 8 is a structural diagram of a mobile terminal provided by another embodiment of the present invention.

具体实施方式Detailed ways

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

参见图1,图1是本发明一实施例提供的拍摄方法的流程图,如图1所示,包括以下步骤:Referring to Fig. 1, Fig. 1 is a flow chart of a photographing method provided by an embodiment of the present invention, as shown in Fig. 1, comprising the following steps:

步骤101、在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件。Step 101 , during the movement of the camera, detect whether the movement behavior of the camera relative to the object to be photographed satisfies a preset condition.

该步骤中,摄像头可以固定设于移动终端上,在移动终端进行移动时,摄像头也可以跟随移动终端一齐移动;且由于摄像头是固定设于移动终端上,则摄像头与移动终端的移动始终是同步的。In this step, the camera can be fixed on the mobile terminal, and when the mobile terminal moves, the camera can also move along with the mobile terminal; and since the camera is fixed on the mobile terminal, the movement of the camera and the mobile terminal is always synchronized of.

这样,在摄像头的移动过程中,即在安装有该摄像头的移动终端的移动过程中,可以通过检测该摄像头相对于用户想要拍摄的物体的运动行为是否满足预设条件,来确定是否需要开启摄像头,并完成对用户想要拍摄的物体进行拍摄。In this way, during the movement of the camera, that is, during the movement of the mobile terminal on which the camera is installed, it can be determined whether it needs to be turned on by detecting whether the movement behavior of the camera relative to the object the user wants to shoot meets the preset conditions. Camera, and complete the shooting of the object that the user wants to shoot.

其中,满足预设条件的运动行为可以直线运动、曲线运动、折线运动等,用户可以根据具体场景设定满足预设条件的运动行为。Among them, the motion behavior that meets the preset conditions can be linear motion, curved motion, broken line motion, etc., and the user can set the motion behavior that meets the preset conditions according to the specific scene.

需要说明的是,本发明实施方式中,可以通过设于移动终端上的运动传感器检测摄像头的运动行为。It should be noted that, in the implementation manner of the present invention, the motion behavior of the camera can be detected by the motion sensor provided on the mobile terminal.

步骤102、若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄。Step 102, if the motion behavior satisfies a preset condition, start the camera to shoot the object to be photographed.

该步骤中,若检测到所述摄像头相对待拍摄物体的运动行为满足预设条件,则开启摄像头,并对待拍摄物体进行拍摄。In this step, if it is detected that the motion behavior of the camera relative to the object to be photographed satisfies a preset condition, the camera is turned on, and the object to be photographed is photographed.

比如,满足预设条件的运动行为为折线运动,而检测到所述摄像头相对待拍摄物体的运动行为为折线运动,则确定所述运动行为满足预设条件;并开启摄像头,对所述待拍摄物体进行拍摄。For example, if the motion behavior satisfying the preset condition is a zigzag motion, and it is detected that the motion behavior of the camera relative to the object to be photographed is a zigzag motion, then it is determined that the motion behavior satisfies the preset condition; object to be photographed.

这样,通过检测摄像头相对待拍摄物体的运动行为是否满足预设条件,来启动摄像头,并完成对待拍摄物体的拍摄,相对于需要用户去手动开启相机,并完成拍摄,可以简化拍摄流程,解决现有拍摄过程中存在操作繁琐的问题,还可以快速完成对待拍摄物体的拍摄或者图像采集。In this way, by detecting whether the movement behavior of the camera relative to the object to be photographed satisfies the preset conditions, the camera is started and the photographing of the subject to be photographed is completed. Compared with the need for the user to manually turn on the camera and complete the photographing, the photographing process can be simplified and solve the problem. There is a problem of cumbersome operation during the shooting process, and it can also quickly complete the shooting or image acquisition of the object to be shot.

本发明实施例中,上述移动终端可以任何包括摄像头的移动终端,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In the embodiment of the present invention, the above-mentioned mobile terminal can be any mobile terminal including a camera, for example: a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), Mobile internet device (Mobile Internet Device, MID) or wearable device (Wearable Device), etc.

本发明实施例的拍摄方法,在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄。这样,通过检测摄像头相对待拍摄物体的运动行为是否满足预设条件,来启动摄像头,并完成对待拍摄物体的拍摄,相对于需要用户去手动开启相机,并完成拍摄,可以简化拍摄流程,解决现有拍摄过程中存在操作繁琐的问题。In the shooting method of the embodiment of the present invention, during the movement of the camera, it is detected whether the movement behavior of the camera relative to the object to be photographed meets the preset condition; if the movement behavior meets the preset condition, the camera is started, and the Shoot the subject to be photographed. In this way, by detecting whether the movement behavior of the camera relative to the object to be photographed satisfies the preset conditions, the camera is started and the photographing of the subject to be photographed is completed. Compared with the need for the user to manually turn on the camera and complete the photographing, the photographing process can be simplified and solve the problem. There is a problem of cumbersome operation during the shooting process.

参见图2,图2是本发明另一实施例提供的拍摄方法的流程图,如图2所示,包括以下步骤:Referring to FIG. 2, FIG. 2 is a flowchart of a shooting method provided by another embodiment of the present invention, as shown in FIG. 2, including the following steps:

步骤201、在摄像头的移动过程中,检测所述摄像头与所述待拍摄物体的相对距离。Step 201. During the movement of the camera, detect the relative distance between the camera and the object to be photographed.

该步骤中,在摄像头的移动过程中,可以通过设于移动终端上的测距传感器检测摄像头与待拍摄物体之间的相对距离。In this step, during the movement of the camera, the relative distance between the camera and the object to be photographed can be detected by the distance measuring sensor provided on the mobile terminal.

需要说明的是,针对包括前置摄像头和后置摄像头的移动终端,移动终端可以设置用于检测前置摄像头与待拍摄物体之间距离的前置测距传感器,以及用于检测后置摄像头与待拍摄物体之间距离的后置测距传感器。It should be noted that, for a mobile terminal including a front camera and a rear camera, the mobile terminal can be provided with a front ranging sensor for detecting the distance between the front camera and the object to be photographed, and for detecting the distance between the rear camera and the object to be photographed. Rear distance sensor for distance between objects to be recorded.

其中,本发明实施例中的测距传感器可以是红外测距传感器。Wherein, the ranging sensor in the embodiment of the present invention may be an infrared ranging sensor.

可选的,在步骤201之前,所述方法还可以包括:检测是否存在作用于指纹按键的触控操作。Optionally, before step 201, the method may further include: detecting whether there is a touch operation on the fingerprint key.

本实施方式中,可以通过检测是否有作用于指纹按键的触控操作,来触发步骤201。其中,若检测到有作用于指纹按键的触控操作,则触发步骤201;若未检测到作用于指纹按键的触控操作,则结束流程。这样,通过触摸指纹按键来触发拍摄流程,可以避免对任何满足预设条件的运动行为所对应的待拍摄物体进行拍摄,减少无关拍摄,同时还能够提升用户操作体验。In this embodiment, step 201 may be triggered by detecting whether there is a touch operation on the fingerprint key. Wherein, if a touch operation acting on the fingerprint key is detected, step 201 is triggered; if no touch operation acting on the fingerprint key is detected, the process ends. In this way, by touching the fingerprint button to trigger the shooting process, it is possible to avoid shooting the object to be shot corresponding to any motion behavior that meets the preset conditions, reduce irrelevant shooting, and improve user experience at the same time.

步骤202、根据所述相对距离的变化情况,确定所述摄像头相对所述待拍摄物体是否存在先靠近后远离的运动行为。Step 202 , according to the variation of the relative distance, determine whether there is a movement behavior of the camera approaching first and then moving away from the object to be photographed.

该步骤中,可以根据摄像头与待拍摄物体之间的相对距离的变化情况,确定摄像头相对待拍摄物体是否存在先靠近后远离的运动行为。若存在先靠近后远离的运动行为,则执行步骤203;若不存在先靠近后远离的运动行为,则结束流程。In this step, it may be determined whether there is a movement behavior of the camera approaching first and then moving away from the object to be photographed according to changes in the relative distance between the camera and the object to be photographed. If there is a movement behavior of approaching first and then moving away, step 203 is executed; if there is no movement behavior of approaching first and then moving away, the process ends.

可选的,步骤202还可以包括:若在第一时间段内检测到所述相对距离变小,并且在第二时间段内检测到所述相对距离变大,则确定所述摄像头存在所述先靠近后远离的运动行为;或者若在所述第一时间段内检测到所述相对距离小于第一预设距离,并且在所述第二时间段内检测到所述相对距离大于第二预设距离,确定所述摄像头存在所述先靠近后远离的运动行为;其中,所述第一时间段早于所述第二时间段,且所述第二预设距离大于所述第一预设距离。Optionally, step 202 may further include: if it is detected that the relative distance becomes smaller during the first time period, and the relative distance is detected as larger during the second time period, determining that the camera has the The motion behavior of approaching first and then moving away; or if it is detected that the relative distance is less than the first preset distance during the first time period, and it is detected that the relative distance is greater than the second preset distance during the second time period Setting a distance to determine that the camera has the movement behavior of approaching first and then moving away; wherein, the first time period is earlier than the second time period, and the second preset distance is greater than the first preset distance distance.

本实施方式中,可以通过在预设的时间段内,检测摄像头相对待拍摄物体的相对距离,若检测到相对距离的变化情况为先变小后变大,则可以确定摄像头存在上述先靠近后远离的运动行为;还可以通过在预设的时间段内,检测摄像头相对待拍摄物体的相对距离小于第一预设距离,并且在检测到相对距离小于第一预设距离之后的某一时段内,又检测到摄像头相对待拍摄物体的相对距离大于第二预设距离,则可以确定摄像头存在上述先靠近后远离的运动行为,其中,第二预设距离大于第一预设距离。In this embodiment, the relative distance between the camera and the object to be photographed can be detected within a preset period of time. If it is detected that the change of the relative distance first becomes smaller and then becomes larger, it can be determined that the camera has the above-mentioned first approaching and then increasing. Motion behavior away from; it can also be detected by detecting that the relative distance between the camera and the object to be photographed is less than the first preset distance within a preset time period, and within a certain period of time after detecting that the relative distance is less than the first preset distance , and it is detected that the relative distance between the camera and the object to be photographed is greater than the second preset distance, it can be determined that the camera has the above-mentioned movement behavior of approaching first and then moving away, wherein the second preset distance is greater than the first preset distance.

具体的,比如第一预设距离为5厘米,第二预览时间为8厘米,在摄像头的移动过程中,在第一时间段内检测到摄像头相对待拍摄物体的相对距离为4厘米时,则可以确定摄像头存在靠近待拍摄物体的运动行为;在第二时间段内检测到摄像头相对待拍摄物体的相对距离为9厘米,则可以确定摄像头存在远离待拍摄物体的运动行为,其中,第一时间段早于第二时间段。这样就可以确定摄像头相对待拍摄物体,存在先靠近后远离的运动行为。Specifically, for example, the first preset distance is 5 centimeters, and the second preview time is 8 centimeters. During the movement of the camera, when it is detected that the relative distance between the camera and the object to be photographed is 4 centimeters within the first time period, then It can be determined that the camera has a motion behavior close to the object to be photographed; if it is detected that the relative distance between the camera and the object to be photographed is 9 cm within the second time period, it can be determined that the camera has a motion behavior away from the object to be photographed, wherein the first time period is earlier than the second time period. In this way, it can be determined that the camera has a motion behavior of first approaching and then moving away from the object to be photographed.

需要说明的是,在本实施方式中,第一预设距离和第二预设距离,用户可以根据实际拍摄场景进行设定;第一时间段与第二时间段,用户也可以根据实际拍摄场景进行设定。It should be noted that, in this embodiment, the user can set the first preset distance and the second preset distance according to the actual shooting scene; the user can also set the first time period and the second time period according to the actual shooting scene Make settings.

步骤203、若所述摄像头相对所述待拍摄物体存在所述先靠近后远离的运动行为,则满足预设条件。Step 203 , if the camera has the motion behavior of approaching first and then moving away from the object to be photographed, the preset condition is met.

步骤204、启动所述摄像头,对所述待拍摄物体进行拍摄。Step 204, start the camera, and shoot the object to be photographed.

该步骤中,若检测到所述摄像头相对待拍摄物体的运动行为满足预设条件,则开启摄像头,并对待拍摄物体进行拍摄。In this step, if it is detected that the motion behavior of the camera relative to the object to be photographed satisfies a preset condition, the camera is turned on, and the object to be photographed is photographed.

比如,在本实施方式中,满足预设条件的运动行为为先靠近后远离的运动行为,而当检测到所述摄像头相对待拍摄物体的运动行为为上述先靠近后远离的运动行为,则确定所述运动行为满足预设条件;并开启摄像头,对所述待拍摄物体进行拍摄。For example, in this embodiment, the motion behavior that meets the preset condition is the motion behavior of approaching first and then moving away, and when it is detected that the motion behavior of the camera relative to the object to be photographed is the above-mentioned motion behavior of approaching first and then moving away, it is determined that The motion behavior satisfies a preset condition; and the camera is turned on to shoot the object to be photographed.

可选的,步骤204还可以包括:获取所述摄像头的第一位置坐标,所述第一位置坐标为所述摄像头与所述待拍摄物体的相对距离最小时所述摄像头的位置坐标;获取所述摄像头的第二位置坐标,所述第二位置坐标为所述摄像头在远离所述待拍摄物体的过程中,所述摄像头处于静止状态后,所述摄像头的位置坐标;启动摄像头,并将拍摄预览界面中与所述第一位置坐标及所述第二位置坐标关联的物体,作为拍摄焦点,并根据所述拍摄焦点对所述待拍摄物体进行拍摄。Optionally, step 204 may also include: acquiring the first position coordinates of the camera, where the first position coordinates are the position coordinates of the camera when the relative distance between the camera and the object to be photographed is the smallest; The second position coordinates of the camera, the second position coordinates are the position coordinates of the camera after the camera is in a static state while the camera is away from the object to be photographed; start the camera, and will shoot The object associated with the first position coordinates and the second position coordinates in the preview interface is used as a photographing focus, and the object to be photographed is photographed according to the photographing focus.

本实施方式中,通过获取摄像头的第一位置坐标和第二位置坐标,并将第一位置坐标与第二位置坐标连线对应在拍摄预览界面中对应的物体,作为拍摄焦点,并根据该拍摄焦点对待拍摄物体进行拍摄。In this embodiment, by acquiring the first position coordinates and the second position coordinates of the camera, and corresponding the connecting line between the first position coordinates and the second position coordinates to the corresponding object in the shooting preview interface as the shooting focus, and according to the shooting Focus on the subject to be photographed.

其中,本实施方式中,可以根据设于移动终端上的重力感应器和陀螺仪检测移动终端是否处于运动状态,当检测到移动终端静止状态时,即移动终端处于稳定状态时,则可以开始对待拍摄物体进行拍摄,避免移动中拍摄造成的画面模糊的问题。Among them, in this embodiment, it is possible to detect whether the mobile terminal is in a moving state according to the gravity sensor and gyroscope installed on the mobile terminal, and when it is detected that the mobile terminal is in a stationary state, that is, when the mobile terminal is in a stable state, it can start to treat Shooting objects to avoid the problem of blurred pictures caused by shooting in motion.

需要补充说明的是,在摄像头移动过程中,若存在与移动终端接触的物体,则将与移动终端接触的物体作为拍摄过程中拍摄焦点,提升用户拍摄体验。It should be added that, during the movement of the camera, if there is an object in contact with the mobile terminal, the object in contact with the mobile terminal will be used as the shooting focus during the shooting process, so as to improve the shooting experience of the user.

本发明实施例的拍摄方法,在摄像头的移动过程中,检测所述摄像头与所述待拍摄物体的相对距离;根据所述相对距离的变化情况,确定所述摄像头相对所述待拍摄物体是否存在先靠近后远离的运动行为;若所述摄像头相对所述待拍摄物体存在所述先靠近后远离的运动行为,则满足预设条件;启动所述摄像头,对所述待拍摄物体进行拍摄。这样,通过检测摄像头相对待拍摄物体的运动行为是否满足预设条件,来启动摄像头,并完成对待拍摄物体的拍摄,相对于需要用户去手动开启相机,并完成拍摄,可以简化拍摄流程,解决现有拍摄过程中存在操作繁琐的问题。In the shooting method of the embodiment of the present invention, during the moving process of the camera, the relative distance between the camera and the object to be photographed is detected; according to the change of the relative distance, it is determined whether the camera exists relative to the object to be photographed A movement behavior of approaching first and then moving away; if the camera has the movement behavior of approaching first and then moving away from the object to be photographed, the preset condition is satisfied; the camera is started to photograph the object to be photographed. In this way, by detecting whether the movement behavior of the camera relative to the object to be photographed satisfies the preset conditions, the camera is started and the photographing of the subject to be photographed is completed. Compared with the need for the user to manually turn on the camera and complete the photographing, the photographing process can be simplified and solve the problem. There is a problem of cumbersome operation during the shooting process.

参见图3,图3是本发明一实施例提供的移动终端的结构图,如图3所示,移动终端300包括摄像头,移动终端300还包括第一检测模块301和拍摄模块302,其中:Referring to FIG. 3, FIG. 3 is a structural diagram of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 3, the mobile terminal 300 includes a camera, and the mobile terminal 300 also includes a first detection module 301 and a camera module 302, wherein:

第一检测模块301,用于在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;The first detection module 301 is configured to detect whether the movement behavior of the camera relative to the object to be photographed meets a preset condition during the movement of the camera;

拍摄模块302,用于若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄。The photographing module 302 is configured to start the camera to photograph the object to be photographed if the motion behavior satisfies a preset condition.

可选的,如图4所示,所述第一检测模块301包括:Optionally, as shown in FIG. 4, the first detection module 301 includes:

检测子模块3011,用于检测所述摄像头与所述待拍摄物体的相对距离;A detection submodule 3011, configured to detect the relative distance between the camera and the object to be photographed;

第一确定子模块3012,用于根据所述相对距离的变化情况,确定所述摄像头相对所述待拍摄物体是否存在先靠近后远离的运动行为;The first determination sub-module 3012 is configured to determine whether the camera first approaches and then moves away from the object to be photographed according to the change of the relative distance;

第二确定子模块3013,用于若所述摄像头相对所述待拍摄物体存在所述先靠近后远离的运动行为,则满足预设条件。The second determination sub-module 3013 is configured to satisfy a preset condition if the camera has the motion behavior of first approaching and then moving away from the object to be photographed.

可选的,如图5所示,所述第一确定子模块3012包括:Optionally, as shown in FIG. 5, the first determining submodule 3012 includes:

第一确定单元30121,用于若在第一时间段内检测到所述相对距离变小,并且在第二时间段内检测到所述相对距离变大,则确定所述摄像头存在所述先靠近后远离的运动行为;The first determination unit 30121 is configured to determine that the camera has the first approach if it is detected that the relative distance becomes smaller within the first time period and the relative distance is detected as larger within the second time period movement behavior after moving away;

第二确定单元30122,用于若在所述第一时间段内检测到所述相对距离小于第一预设距离,并且在所述第二时间段内检测到所述相对距离大于第二预设距离,确定所述摄像头存在所述先靠近后远离的运动行为;The second determination unit 30122 is configured to detect that the relative distance is less than a first preset distance within the first time period, and detect that the relative distance is greater than a second preset distance during the second time period distance, to determine that the camera has the movement behavior of approaching first and then moving away;

其中,所述第一时间段早于所述第二时间段,且所述第二预设距离大于所述第一预设距离。Wherein, the first time period is earlier than the second time period, and the second preset distance is greater than the first preset distance.

可选的,如图6所示,所述拍摄模块302包括:Optionally, as shown in FIG. 6, the photographing module 302 includes:

第一获取子模块3021,用于获取所述摄像头的第一位置坐标,所述第一位置坐标为所述摄像头与所述待拍摄物体的相对距离最小时所述摄像头的位置坐标;The first acquiring submodule 3021 is configured to acquire the first position coordinates of the camera, where the first position coordinates are the position coordinates of the camera when the relative distance between the camera and the object to be photographed is the smallest;

第二获取子模块3022,用于获取所述摄像头的第二位置坐标,所述第二位置坐标为所述摄像头在远离所述待拍摄物体的过程中,所述摄像头处于静止状态后,所述摄像头的位置坐标;The second acquisition sub-module 3022 is configured to acquire the second position coordinates of the camera, where the second position coordinates are when the camera is in a static state while the camera is away from the object to be photographed, the The position coordinates of the camera;

拍摄子模块3023,用于启动摄像头,并将拍摄预览界面中与所述第一位置坐标及所述第二位置坐标关联的物体,作为拍摄焦点,并根据所述拍摄焦点对所述待拍摄物体进行拍摄。The shooting sub-module 3023 is configured to start the camera, and use the object associated with the first position coordinates and the second position coordinates in the shooting preview interface as the shooting focus, and focus on the object to be shot according to the shooting focus to shoot.

可选的,如图7所示,所述移动终端300还包括:Optionally, as shown in FIG. 7, the mobile terminal 300 further includes:

第二检测模块303,用于检测是否存在作用于指纹按键的触控操作;The second detection module 303 is used to detect whether there is a touch operation acting on the fingerprint button;

所述第一检测模块301,具体用于若存在所述触控操作,则检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件。The first detection module 301 is specifically configured to detect whether the movement behavior of the camera relative to the object to be photographed satisfies a preset condition if there is the touch operation.

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

本发明实施例的移动终端300,在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄。这样,通过检测摄像头相对待拍摄物体的运动行为是否满足预设条件,来启动摄像头,并完成对待拍摄物体的拍摄,相对于需要用户去手动开启相机,并完成拍摄,可以简化拍摄流程,解决现有拍摄过程中存在操作繁琐的问题。The mobile terminal 300 of the embodiment of the present invention detects whether the movement behavior of the camera relative to the object to be photographed meets a preset condition during the movement of the camera; if the movement behavior meets the preset condition, then starts the camera, and The object to be photographed is photographed. In this way, by detecting whether the movement behavior of the camera relative to the object to be photographed satisfies the preset conditions, the camera is started and the photographing of the subject to be photographed is completed. Compared with the need for the user to manually turn on the camera and complete the photographing, the photographing process can be simplified and solve the problem. There is a problem of cumbersome operation during the shooting process.

图8为实现本发明各个实施例的一种移动终端的硬件结构示意图,如图8所示,该移动终端800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。FIG. 8 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention. As shown in FIG. 8, the mobile terminal 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, and an input unit 804 , sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, processor 810, power supply 811 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 8 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.

其中,处理器810,用于在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄。Wherein, the processor 810 is configured to detect whether the motion behavior of the camera relative to the object to be photographed meets a preset condition during the movement of the camera; if the motion behavior satisfies the preset condition, start the camera, and Shoot the subject to be photographed.

可选的,所述处理器810还用于:检测所述摄像头与所述待拍摄物体的相对距离;根据所述相对距离的变化情况,确定所述摄像头相对所述待拍摄物体是否存在先靠近后远离的运动行为;若所述摄像头相对所述待拍摄物体存在所述先靠近后远离的运动行为,则满足预设条件。Optionally, the processor 810 is further configured to: detect the relative distance between the camera and the object to be photographed; determine whether the camera approaches the object to be photographed first according to the change of the relative distance A motion behavior of moving away and then moving away; if the camera has the motion behavior of approaching first and then moving away from the object to be photographed, the preset condition is satisfied.

可选的,所述处理器810还用于:若在第一时间段内检测到所述相对距离变小,并且在第二时间段内检测到所述相对距离变大,则确定所述摄像头存在所述先靠近后远离的运动行为;或者若在所述第一时间段内检测到所述相对距离小于第一预设距离,并且在所述第二时间段内检测到所述相对距离大于第二预设距离,确定所述摄像头存在所述先靠近后远离的运动行为;其中,所述第一时间段早于所述第二时间段,且所述第二预设距离大于所述第一预设距离。Optionally, the processor 810 is further configured to: if it is detected that the relative distance becomes smaller during the first time period, and it is detected that the relative distance becomes larger during the second time period, determine that the camera There is the movement behavior of approaching first and then moving away; or if it is detected within the first time period that the relative distance is less than the first preset distance, and it is detected within the second time period that the relative distance is greater than The second preset distance is to determine that the camera has the movement behavior of approaching first and then moving away; wherein, the first time period is earlier than the second time period, and the second preset distance is greater than the first time period a preset distance.

可选的,所述处理器810还用于:获取所述摄像头的第一位置坐标,所述第一位置坐标为所述摄像头与所述待拍摄物体的相对距离最小时所述摄像头的位置坐标;获取所述摄像头的第二位置坐标,所述第二位置坐标为所述摄像头在远离所述待拍摄物体的过程中,所述摄像头处于静止状态后,所述摄像头的位置坐标;启动摄像头,并将拍摄预览界面中与所述第一位置坐标及所述第二位置坐标关联的物体,作为拍摄焦点,并根据所述拍摄焦点对所述待拍摄物体进行拍摄。Optionally, the processor 810 is further configured to: acquire first position coordinates of the camera, where the first position coordinates are the position coordinates of the camera when the relative distance between the camera and the object to be photographed is minimum ; Obtain the second position coordinates of the camera, the second position coordinates are the position coordinates of the camera after the camera is in a static state while the camera is away from the object to be photographed; start the camera, Taking the object associated with the first position coordinates and the second position coordinates in the shooting preview interface as the shooting focus, and shooting the object to be shot according to the shooting focus.

可选的,所述处理器810还用于:检测是否存在作用于指纹按键的触控操作;若存在所述触控操作,则检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件。Optionally, the processor 810 is further configured to: detect whether there is a touch operation acting on the fingerprint button; if there is the touch operation, detect whether the motion behavior of the camera relative to the object to be photographed satisfies a preset condition .

移动终端800能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 800 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.

本发明实施例的移动终端800,在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄。这样,通过检测摄像头相对待拍摄物体的运动行为是否满足预设条件,来启动摄像头,并完成对待拍摄物体的拍摄,相对于需要用户去手动开启相机,并完成拍摄,可以简化拍摄流程,解决现有拍摄过程中存在操作繁琐的问题。The mobile terminal 800 of the embodiment of the present invention detects whether the motion behavior of the camera relative to the object to be photographed meets a preset condition during the movement of the camera; if the motion behavior satisfies the preset condition, then starts the camera, and The object to be photographed is photographed. In this way, by detecting whether the movement behavior of the camera relative to the object to be photographed satisfies the preset conditions, the camera is started and the photographing of the subject to be photographed is completed. Compared with the need for the user to manually turn on the camera and complete the photographing, the photographing process can be simplified and solve the problem. There is a problem of cumbersome operation during the shooting process.

应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 810 processes it; Uplink data is sent to the base station. Generally, the radio frequency unit 801 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 801 can also communicate with the network and other devices through a wireless communication system.

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

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

输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。The input unit 804 is used for receiving audio or video signals. The input unit 804 may include a graphics processing unit (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processing unit 8041 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 806 . The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage media) or sent via the radio frequency unit 801 or the network module 802 . The microphone 8042 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 801 for output in the case of a phone call mode.

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

显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8061。The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 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.

用户输入单元807可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 807 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 807 includes a touch panel 8071 and other input devices 8072 . The touch panel 8071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 8071 or near the touch panel 8071). operate). The touch panel 8071 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 810, receive the command sent by the processor 810 and execute it. In addition, the touch panel 8071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 8071 , the user input unit 807 may also include other input devices 8072 . Specifically, other input devices 8072 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.

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

接口单元808为外部装置与移动终端800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端800内的一个或多个元件或者可以用于在移动终端800和外部装置之间传输数据。The interface unit 808 is an interface for connecting an external device to the mobile terminal 800 . 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 808 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 809 can be used to store software programs as well as various data. The memory 809 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 809 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.

处理器810是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器810可包括一个或多个处理单元;优选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 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 809, and calling data stored in the memory 809 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 810 may include one or more processing units; preferably, the processor 810 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 810 .

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

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

优选的,本发明实施例还提供一种移动终端,包括处理器810,存储器809,存储在存储器809上并可在所述处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 810, a memory 809, and a computer program stored in the memory 809 and operable on the processor 810. When the computer program is executed by the processor 810 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 (9)

1.一种拍摄方法,应用于包括摄像头的移动终端,其特征在于,包括:1. A shooting method, applied to a mobile terminal comprising a camera, characterized in that, comprising: 在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;During the movement of the camera, detecting whether the movement behavior of the camera relative to the object to be photographed meets a preset condition; 若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄;If the motion behavior satisfies the preset condition, start the camera to shoot the object to be photographed; 其中,所述启动所述摄像头,对所述待拍摄物体进行拍摄的步骤,包括:Wherein, the step of starting the camera to photograph the object to be photographed includes: 获取所述摄像头的第一位置坐标,所述第一位置坐标为所述摄像头与所述待拍摄物体的相对距离最小时所述摄像头的位置坐标;Obtaining first position coordinates of the camera, where the first position coordinates are the position coordinates of the camera when the relative distance between the camera and the object to be photographed is the smallest; 获取所述摄像头的第二位置坐标,所述第二位置坐标为所述摄像头在远离所述待拍摄物体的过程中,所述摄像头处于静止状态后,所述摄像头的位置坐标;Obtaining second position coordinates of the camera, where the second position coordinates are the position coordinates of the camera after the camera is in a static state while the camera is moving away from the object to be photographed; 启动摄像头,并将拍摄预览界面中与所述第一位置坐标及所述第二位置坐标的连线相交的物体,作为拍摄焦点,并根据所述拍摄焦点对所述待拍摄物体进行拍摄。Start the camera, and use the object in the shooting preview interface that intersects the line connecting the first position coordinates and the second position coordinates as a shooting focus, and shoot the object to be shot according to the shooting focus. 2.根据权利要求1所述的方法,其特征在于,所述检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件的步骤,包括:2. The method according to claim 1, wherein the step of detecting whether the movement behavior of the camera relative to the object to be photographed meets a preset condition comprises: 检测所述摄像头与所述待拍摄物体的相对距离;Detecting the relative distance between the camera and the object to be photographed; 根据所述相对距离的变化情况,确定所述摄像头相对所述待拍摄物体是否存在先靠近后远离的运动行为;According to the variation of the relative distance, determine whether there is a movement behavior of the camera approaching first and then moving away from the object to be photographed; 若所述摄像头相对所述待拍摄物体存在所述先靠近后远离的运动行为,则满足预设条件。If the camera has the motion behavior of approaching first and then moving away from the object to be photographed, the preset condition is met. 3.根据权利要求2所述的方法,其特征在于,所述根据所述相对距离的变化情况,确定所述摄像头相对所述待拍摄物体是否存在先靠近后远离的运动行为的步骤,包括:3. The method according to claim 2, wherein the step of determining whether the camera has a motion behavior of approaching first and then moving away from the object to be photographed according to the change of the relative distance comprises: 若在第一时间段内检测到所述相对距离变小,并且在第二时间段内检测到所述相对距离变大,则确定所述摄像头存在所述先靠近后远离的运动行为;或者If it is detected that the relative distance becomes smaller in the first time period, and the relative distance is detected to be larger in the second time period, then it is determined that the camera has the motion behavior of first approaching and then moving away; or 若在所述第一时间段内检测到所述相对距离小于第一预设距离,并且在所述第二时间段内检测到所述相对距离大于第二预设距离,确定所述摄像头存在所述先靠近后远离的运动行为;If it is detected within the first time period that the relative distance is less than a first preset distance, and within the second time period it is detected that the relative distance is greater than a second preset distance, it is determined that the camera exists Describe the movement behavior of approaching first and then moving away; 其中,所述第一时间段早于所述第二时间段,且所述第二预设距离大于所述第一预设距离。Wherein, the first time period is earlier than the second time period, and the second preset distance is greater than the first preset distance. 4.根据权利要求1至3中任一项所述的方法,其特征在于,所述检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件的步骤之前,所述方法还包括:4. The method according to any one of claims 1 to 3, wherein before the step of detecting whether the motion behavior of the camera relative to the object to be photographed meets a preset condition, the method further comprises: 检测是否存在作用于指纹按键的触控操作;Detect whether there is a touch operation on the fingerprint button; 所述检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件的步骤,包括:The step of detecting whether the movement behavior of the camera relative to the object to be photographed meets a preset condition includes: 若存在所述触控操作,则检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件。If there is the touch operation, it is detected whether the movement behavior of the camera relative to the object to be photographed satisfies a preset condition. 5.一种移动终端,包括摄像头,其特征在于,所述移动终端还包括:5. A mobile terminal comprising a camera, characterized in that the mobile terminal also comprises: 第一检测模块,用于在摄像头的移动过程中,检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件;The first detection module is used to detect whether the movement behavior of the camera relative to the object to be photographed meets a preset condition during the movement of the camera; 拍摄模块,用于若所述运动行为满足预设条件,则启动所述摄像头,对所述待拍摄物体进行拍摄;A photographing module, configured to start the camera to photograph the object to be photographed if the motion behavior satisfies a preset condition; 其中,所述拍摄模块包括:Wherein, the photographing module includes: 第一获取子模块,用于获取所述摄像头的第一位置坐标,所述第一位置坐标为所述摄像头与所述待拍摄物体的相对距离最小时所述摄像头的位置坐标;The first acquiring submodule is configured to acquire the first position coordinates of the camera, where the first position coordinates are the position coordinates of the camera when the relative distance between the camera and the object to be photographed is the smallest; 第二获取子模块,用于获取所述摄像头的第二位置坐标,所述第二位置坐标为所述摄像头在远离所述待拍摄物体的过程中,所述摄像头处于静止状态后,所述摄像头的位置坐标;The second acquisition sub-module is used to acquire the second position coordinates of the camera, the second position coordinates are when the camera is in a static state when the camera is away from the object to be photographed, position coordinates; 拍摄子模块,用于启动摄像头,并将拍摄预览界面中与所述第一位置坐标及所述第二位置坐标的连线相交的物体,作为拍摄焦点,并根据所述拍摄焦点对所述待拍摄物体进行拍摄。The shooting sub-module is used to start the camera, and use the object in the shooting preview interface that intersects the line between the first position coordinates and the second position coordinates as the shooting focus, and according to the shooting focus Take a picture of the subject. 6.根据权利要求5所述的移动终端,其特征在于,所述第一检测模块包括:6. The mobile terminal according to claim 5, wherein the first detection module comprises: 检测子模块,用于检测所述摄像头与所述待拍摄物体的相对距离;A detection submodule, configured to detect the relative distance between the camera and the object to be photographed; 第一确定子模块,用于根据所述相对距离的变化情况,确定所述摄像头相对所述待拍摄物体是否存在先靠近后远离的运动行为;The first determination sub-module is used to determine whether the camera has a motion behavior of approaching first and then moving away from the object to be photographed according to the change of the relative distance; 第二确定子模块,用于若所述摄像头相对所述待拍摄物体存在所述先靠近后远离的运动行为,则满足预设条件。The second determination sub-module is configured to satisfy a preset condition if the camera has the motion behavior of first approaching and then moving away from the object to be photographed. 7.根据权利要求6所述的移动终端,其特征在于,所述第一确定子模块包括:7. The mobile terminal according to claim 6, wherein the first determining submodule comprises: 第一确定单元,用于若在第一时间段内检测到所述相对距离变小,并且在第二时间段内检测到所述相对距离变大,则确定所述摄像头存在所述先靠近后远离的运动行为;The first determination unit is configured to determine that if the relative distance becomes smaller within the first time period and is detected to be larger within the second time period, then it is determined that the camera has the approaching first and then Away motor behavior; 第二确定单元,用于若在所述第一时间段内检测到所述相对距离小于第一预设距离,并且在所述第二时间段内检测到所述相对距离大于第二预设距离,确定所述摄像头存在所述先靠近后远离的运动行为;A second determination unit, configured to detect that the relative distance is less than a first preset distance within the first time period, and detect that the relative distance is greater than a second preset distance within the second time period , determining that the camera has the motion behavior of approaching first and then moving away; 其中,所述第一时间段早于所述第二时间段,且所述第二预设距离大于所述第一预设距离。Wherein, the first time period is earlier than the second time period, and the second preset distance is greater than the first preset distance. 8.根据权利要求5至7中任一项所述的移动终端,其特征在于,所述移动终端还包括:8. The mobile terminal according to any one of claims 5 to 7, wherein the mobile terminal further comprises: 第二检测模块,用于检测是否存在作用于指纹按键的触控操作;The second detection module is used to detect whether there is a touch operation acting on the fingerprint button; 所述第一检测模块,具体用于若存在所述触控操作,则检测所述摄像头相对待拍摄物体的运动行为是否满足预设条件。The first detection module is specifically configured to detect whether the motion behavior of the camera relative to the object to be photographed satisfies a preset condition if there is the touch operation. 9.一种移动终端,其特征中在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至4中任一项所述的拍摄方法的步骤。9. A mobile terminal, characterized in that it includes a processor, a memory, and a computer program stored on the memory and operable on the processor, when the computer program is executed by the processor, the following steps are implemented: The step of the photographing method described in any one of claims 1 to 4.
CN201711078387.2A 2017-11-06 2017-11-06 A shooting method and mobile terminal Active CN107800968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711078387.2A CN107800968B (en) 2017-11-06 2017-11-06 A shooting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711078387.2A CN107800968B (en) 2017-11-06 2017-11-06 A shooting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107800968A CN107800968A (en) 2018-03-13
CN107800968B true CN107800968B (en) 2019-10-15

Family

ID=61549034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711078387.2A Active CN107800968B (en) 2017-11-06 2017-11-06 A shooting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107800968B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337381B (en) 2018-03-14 2019-11-19 维沃移动通信有限公司 A camera control method and mobile terminal
CN110035231B (en) * 2019-05-21 2021-01-05 北京字节跳动网络技术有限公司 Shooting method, device, equipment and medium
CN114554069A (en) * 2020-11-24 2022-05-27 深圳市万普拉斯科技有限公司 Terminal, task running method and device thereof, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104205016A (en) * 2014-02-27 2014-12-10 华为终端有限公司 Photographing method and mobile terminal
CN104541498A (en) * 2014-05-29 2015-04-22 华为技术有限公司 An image acquisition method and device
CN105138124A (en) * 2015-08-25 2015-12-09 努比亚技术有限公司 Device and method for processing information
CN105516602A (en) * 2016-01-12 2016-04-20 广东欧珀移动通信有限公司 Shooting method and device of mobile terminal
CN106713665A (en) * 2017-02-08 2017-05-24 上海与德信息技术有限公司 Method and device for quickly turning on camera
CN106851118A (en) * 2017-04-05 2017-06-13 深圳天珑无线科技有限公司 Camera control method and device
CN107277364A (en) * 2017-07-20 2017-10-20 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104205016A (en) * 2014-02-27 2014-12-10 华为终端有限公司 Photographing method and mobile terminal
CN104541498A (en) * 2014-05-29 2015-04-22 华为技术有限公司 An image acquisition method and device
CN105138124A (en) * 2015-08-25 2015-12-09 努比亚技术有限公司 Device and method for processing information
CN105516602A (en) * 2016-01-12 2016-04-20 广东欧珀移动通信有限公司 Shooting method and device of mobile terminal
CN106713665A (en) * 2017-02-08 2017-05-24 上海与德信息技术有限公司 Method and device for quickly turning on camera
CN106851118A (en) * 2017-04-05 2017-06-13 深圳天珑无线科技有限公司 Camera control method and device
CN107277364A (en) * 2017-07-20 2017-10-20 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN107800968A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN108513070B (en) Image processing method, mobile terminal and computer-readable storage medium
CN108471498B (en) Shooting preview method and terminal
CN108668083A (en) A camera method and terminal
CN110557566A (en) Video shooting method and electronic equipment
CN109005286A (en) A kind of display control method and Folding screen terminal
CN107888728A (en) A kind of mobile terminal and the image pickup method based on the mobile terminal
CN111405181B (en) Focusing method and electronic equipment
CN110213440A (en) A kind of images share method and terminal
CN110602389A (en) Display method and electronic equipment
CN107888833A (en) A kind of image capturing method and mobile terminal
CN108509141A (en) A kind of generation method and mobile terminal of control
CN108881617A (en) A display switching method and mobile terminal
CN107682637A (en) A shooting method, mobile terminal and computer-readable storage medium
CN108228902A (en) A kind of document display method and mobile terminal
CN108881721B (en) A display method and terminal
CN108279843B (en) A kind of screenshot method and mobile terminal
CN108174081B (en) A shooting method and mobile terminal
CN108076294B (en) A shooting method and mobile terminal
CN107800968B (en) A shooting method and mobile terminal
CN108833796A (en) An image capturing method and terminal
CN108282611A (en) A kind of image processing method and mobile terminal
CN109005337B (en) A kind of photographing method and terminal
CN110865752A (en) A photo viewing method and electronic device
CN108259739A (en) A kind of method, device and mobile terminal of image taking
CN108259756A (en) A kind of image capturing 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