[go: up one dir, main page]

CN105141832A - Focusing abnormity processing method and mobile terminal - Google Patents

Focusing abnormity processing method and mobile terminal Download PDF

Info

Publication number
CN105141832A
CN105141832A CN201510411746.6A CN201510411746A CN105141832A CN 105141832 A CN105141832 A CN 105141832A CN 201510411746 A CN201510411746 A CN 201510411746A CN 105141832 A CN105141832 A CN 105141832A
Authority
CN
China
Prior art keywords
focus
distance
mobile terminal
focusing
target
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
CN201510411746.6A
Other languages
Chinese (zh)
Other versions
CN105141832B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510411746.6A priority Critical patent/CN105141832B/en
Priority to CN201810150664.4A priority patent/CN108391051B/en
Publication of CN105141832A publication Critical patent/CN105141832A/en
Application granted granted Critical
Publication of CN105141832B publication Critical patent/CN105141832B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)
  • Focusing (AREA)

Abstract

本发明实施例涉及电子技术领域,公开了一种对焦异常处理方法及移动终端。其中,该方法包括:移动终端在判断出未获取到有效对焦距离时,会将预设有效对焦距离确定为有效对焦距离,然后再获取目标拍摄物与移动终端摄像头之间的目标距离,当判断出该目标距离小于等于该预设有效对焦距离时,对该目标拍摄物进行对焦。通过本发明实施例,可以解决移动终端在未获取到有效对焦距离之后无法进行对焦的问题,提高移动终端的对焦效率,从而能够较快的获取清晰的图片,提升用户体验。

The embodiment of the present invention relates to the field of electronic technology, and discloses a focusing abnormal processing method and a mobile terminal. Wherein, the method includes: when the mobile terminal determines that the effective focus distance has not been obtained, it will determine the preset effective focus distance as the effective focus distance, and then obtain the target distance between the target object and the camera of the mobile terminal. When the target distance is less than or equal to the preset effective focus distance, focus on the target object. Through the embodiments of the present invention, the problem that the mobile terminal cannot focus after the effective focusing distance is not obtained can be solved, and the focusing efficiency of the mobile terminal can be improved, so that clear pictures can be acquired quickly, and user experience can be improved.

Description

一种对焦异常处理方法及移动终端A focus exception processing method and mobile terminal

技术领域technical field

本发明涉及电子技术领域,具体涉及一种对焦异常处理方法及移动终端。The invention relates to the field of electronic technology, in particular to a method for processing abnormal focus and a mobile terminal.

背景技术Background technique

现在的移动终端如智能手机、平板电脑、笔记本电脑等在使用摄像头进行拍照之前,会进行对焦。现有技术中的对焦方式有相位对焦、反差式对焦以及激光对焦等。通常情况下,为了能够较快的抓取更为清晰的图片,优先采用激光对焦。但是在采用激光对焦之前,移动终端需要先获取其有效对焦距离,然后获取与拍摄物之间的距离,拍摄物只有在有效对焦距离范围内才能进行激光对焦。Current mobile terminals such as smartphones, tablet computers, notebook computers, etc. will focus before using the camera to take pictures. Focusing methods in the prior art include phase focusing, contrast focusing, and laser focusing. Usually, in order to capture clearer pictures faster, laser focus is preferred. However, before adopting laser focusing, the mobile terminal needs to obtain its effective focusing distance first, and then obtain the distance to the subject, and laser focusing can only be performed on the subject within the effective focusing distance range.

在实践中发现,在激光对焦之前,有时候会出现获取不到有效对焦距离的情况,从而出现对焦异常,如无法进行对焦等情况,进而导致移动终端获取的图片不够清晰。可见,在激光对焦过程中出现对焦异常时如何进行处理已成为亟待解决的问题。In practice, it is found that before laser focusing, sometimes the effective focusing distance cannot be obtained, resulting in abnormal focusing, such as failure to focus, etc., resulting in unclear pictures obtained by the mobile terminal. It can be seen that how to deal with abnormal focus during the laser focusing process has become an urgent problem to be solved.

发明内容Contents of the invention

本发明实施例公开了一种对焦异常处理方法及移动终端,能够解决在激光对焦过程中出现对焦异常的技术问题,提高移动终端的对焦效率。The embodiment of the invention discloses a focusing abnormality processing method and a mobile terminal, which can solve the technical problem of focusing abnormality during the laser focusing process and improve the focusing efficiency of the mobile terminal.

本发明实施例第一方面公开了一种对焦异常处理方法,应用于移动终端,所述移动终端包括摄像头,所述摄像头包括激光对焦模组,包括:The first aspect of the embodiment of the present invention discloses a focusing abnormality processing method, which is applied to a mobile terminal. The mobile terminal includes a camera, and the camera includes a laser focusing module, including:

判断是否获取到激光对焦模组的有效对焦距离;Determine whether the effective focus distance of the laser focus module is obtained;

若未获取到,则将预设有效对焦距离确定为所述激光对焦模组的有效对焦距离;If not obtained, then determine the preset effective focus distance as the effective focus distance of the laser focus module;

获取目标拍摄物与所述摄像头之间的目标距离;Obtain the target distance between the target subject and the camera;

判断所述目标距离是否小于等于所述预设有效对焦距离;judging whether the target distance is less than or equal to the preset effective focus distance;

若所述目标距离小于等于所述预设有效对焦距离,则对所述目标拍摄物进行对焦。If the target distance is less than or equal to the preset effective focus distance, focus on the target object.

可选的,所述将预设有效对焦距离确定为所述激光对焦模组的有效对焦距离之后,所述方法还包括:Optionally, after the preset effective focus distance is determined as the effective focus distance of the laser focus module, the method further includes:

获取所述移动终端所处环境的光强度值;Acquiring the light intensity value of the environment where the mobile terminal is located;

判断所述光强度值是否超过预设光强度阈值,若否,则执行所述获取目标拍摄物与所述摄像头之间的目标距离的步骤。Judging whether the light intensity value exceeds a preset light intensity threshold, if not, performing the step of acquiring the target distance between the target subject and the camera.

可选的,所述方法还包括:Optionally, the method also includes:

若所述目标距离大于所述预设有效对焦距离,则启动反差式对焦模式对所述目标拍摄物进行对焦。If the target distance is greater than the preset effective focus distance, a contrast focus mode is activated to focus on the target object.

可选的,所述方法还包括:Optionally, the method also includes:

若所述光强度值超过所述预设光强度阈值,则启动反差式对焦模式对所述目标拍摄物进行对焦。If the light intensity value exceeds the preset light intensity threshold, a contrast focus mode is activated to focus on the target object.

可选的,所述对所述目标拍摄物进行对焦,包括:Optionally, the focusing on the target object includes:

根据所述目标距离以及预设对焦算法,确定将所述摄像头移动至对焦位置的对焦数据;Determine the focus data for moving the camera to a focus position according to the target distance and a preset focus algorithm;

根据所述对焦数据将所述摄像头的镜头移动至所述对焦位置。and moving the lens of the camera to the focus position according to the focus data.

相应的,本发明实施例第二方面公开了一种移动终端,所述移动终端包括摄像头,所述摄像头包括激光对焦模组,所述移动终端还包括:Correspondingly, the second aspect of the embodiment of the present invention discloses a mobile terminal, the mobile terminal includes a camera, the camera includes a laser focusing module, and the mobile terminal further includes:

第一判断单元,用于判断是否获取到激光对焦模组的有效对焦距离;The first judging unit is used to judge whether the effective focusing distance of the laser focusing module is obtained;

确定单元,用于在所述第一判断单元判断出未获取到激光对焦模组的有效对焦距离时,将预设有效对焦距离确定为所述激光对焦模组的有效对焦距离;A determination unit, configured to determine the preset effective focus distance as the effective focus distance of the laser focus module when the first judgment unit determines that the effective focus distance of the laser focus module has not been obtained;

获取单元,用于获取目标拍摄物与所述摄像头之间的目标距离;an acquisition unit, configured to acquire the target distance between the target subject and the camera;

第二判断单元,用于判断所述目标距离是否小于等于所述预设有效对焦距离;A second judging unit, configured to judge whether the target distance is less than or equal to the preset effective focus distance;

对焦单元,用于在所述第二判断单元判断出所述目标距离小于等于所述预设有效对焦距离时,对所述目标拍摄物进行对焦。A focus unit, configured to focus on the target subject when the second determination unit determines that the target distance is less than or equal to the preset effective focus distance.

可选的,所述获取单元,还用于获取所述移动终端所处环境的光强度值;Optionally, the acquiring unit is further configured to acquire the light intensity value of the environment where the mobile terminal is located;

所述第一判断单元,还用于判断所述光强度值是否超过预设光强度阈值,若否,则触发所述获取单元执行所述获取目标拍摄物与所述摄像头之间的目标距离的操作。The first judging unit is further configured to judge whether the light intensity value exceeds a preset light intensity threshold, and if not, trigger the acquisition unit to perform the acquisition of the target distance between the target subject and the camera. operate.

可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:

第一启动单元,用于在所述第二判断单元判断出所述目标距离大于所述预设有效对焦距离时,启动反差式对焦模式对所述目标拍摄物进行对焦。The first starting unit is configured to start a contrast focusing mode to focus on the target object when the second judging unit judges that the target distance is greater than the preset effective focus distance.

可选的,所述移动终端还包括:Optionally, the mobile terminal also includes:

第二启动单元,用于在所述第一判断单元判断出所述光强度值超过所述预设光强度阈值时,启动反差式对焦模式对所述目标拍摄物进行对焦。The second starting unit is configured to start a contrast focusing mode to focus on the target object when the first judging unit judges that the light intensity value exceeds the preset light intensity threshold.

可选的,所述对焦单元包括确定子单元以及移动子单元,其中:Optionally, the focusing unit includes a determining subunit and a moving subunit, wherein:

所述确定子单元,用于根据所述目标距离以及预设对焦算法,确定将所述摄像头移动至对焦位置的对焦数据;The determining subunit is configured to determine focus data for moving the camera to a focus position according to the target distance and a preset focus algorithm;

所述移动子单元,用于根据所述对焦数据将所述摄像头的镜头移动至所述对焦位置。The moving subunit is configured to move the lens of the camera to the focus position according to the focus data.

实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:

本发明实施例中,移动终端在判断出未获取到有效对焦距离时,会将预设有效对焦距离确定为有效对焦距离,然后再获取目标拍摄物与移动终端摄像头之间的目标距离,当判断出该目标距离小于等于该预设有效对焦距离时,对该目标拍摄物进行对焦。通过本发明实施例,可以解决移动终端在未获取到有效对焦距离之后无法进行对焦的问题,提高移动终端的对焦效率,从而能够较快的获取清晰的图片,提升用户体验。In the embodiment of the present invention, when the mobile terminal determines that the effective focus distance has not been obtained, it will determine the preset effective focus distance as the effective focus distance, and then obtain the target distance between the target subject and the camera of the mobile terminal. When the target distance is less than or equal to the preset effective focus distance, focus on the target object. Through the embodiments of the present invention, the problem that the mobile terminal cannot focus after the effective focusing distance is not acquired can be solved, and the focusing efficiency of the mobile terminal can be improved, so that clear pictures can be acquired quickly, and user experience can be improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the 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 creative effort.

图1是本发明实施例公开的一种对焦异常处理方法的流程示意图;FIG. 1 is a schematic flowchart of a focusing abnormality processing method disclosed in an embodiment of the present invention;

图2是本发明实施例公开的另一种对焦异常处理方法的流程示意图;Fig. 2 is a schematic flowchart of another focusing abnormality processing method disclosed in an embodiment of the present invention;

图3是本发明实施例公开的一种移动终端的结构示意图;FIG. 3 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present invention;

图4是本发明实施例公开的另一种移动终端的结构示意图。Fig. 4 is a schematic structural diagram of another mobile terminal disclosed by an embodiment of the present invention.

具体实施方式detailed description

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

本发明实施例公开了一种对焦异常处理方法及移动终端,能够解决在激光对焦过程中出现对焦异常的技术问题,提高移动终端的对焦效率。以下分别进行详细说明。The embodiment of the invention discloses a focusing abnormality processing method and a mobile terminal, which can solve the technical problem of focusing abnormality during the laser focusing process and improve the focusing efficiency of the mobile terminal. Each will be described in detail below.

请参阅图1,图1是本发明实施例公开的一种对焦异常处理方法的流程示意图。其中,图1所示的方法可以应用于智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(MobileInternetDevices,MID)、个人数字助理(PersonalDigitalAssistant,PDA)、媒体播放器、智能电视、智能手表、智能眼镜、智能手环等移动终端,该移动终端包括有摄像头,且该摄像头包括有激光对焦模组。如图1所示,该对焦异常处理方法可以包括以下步骤:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a method for processing an abnormal focus disclosed by an embodiment of the present invention. Wherein, the method shown in Figure 1 can be applied to smart phones (such as Android phones, iOS phones, etc.), tablet computers, handheld computers, and mobile Internet devices (MobileInternetDevices, MID), personal digital assistants (PersonalDigitalAssistant, PDA), media players , smart TV, smart watch, smart glasses, smart bracelet and other mobile terminals, the mobile terminal includes a camera, and the camera includes a laser focusing module. As shown in FIG. 1, the method for handling an abnormal focus may include the following steps:

S101、移动终端判断是否获取到激光对焦模组的有效对焦距离,若是,结束本流程;若否,执行步骤S102。S101. The mobile terminal judges whether the effective focusing distance of the laser focusing module has been obtained. If yes, end the process; if not, execute step S102.

本发明实施例中,有效对焦距离即为激光对焦模组能够实现快速对焦,且对焦清晰度较高的最大距离。也就是说,在有效对焦距离范围内,该激光对焦模组能够准确且快速的对焦。In the embodiment of the present invention, the effective focusing distance is the maximum distance at which the laser focusing module can achieve fast focusing and high focus definition. That is to say, within the effective focusing distance range, the laser focusing module can focus accurately and quickly.

本发明实施例中,激光对焦由于受到光谱的影响,目前激光只能在40cm左右内的距离实现快速准确的对焦。但是不同厂家在对生产的激光对焦模组进行写入有效对焦距离的数据时,可能会存在细微的偏差,因此,移动终端在进行对焦之前,都会先获取激光对焦模组的有效对焦距离。In the embodiment of the present invention, because the laser focusing is affected by the spectrum, the current laser can only achieve fast and accurate focusing within a distance of about 40 cm. However, there may be slight deviations when different manufacturers write the data of the effective focus distance to the laser focus module produced. Therefore, the mobile terminal will first obtain the effective focus distance of the laser focus module before focusing.

本发明实施例中,当启动相机应用之后,该移动终端首先会获取其摄像头中的激光对焦模组中的对焦数据(即有效对焦距离)。所以该移动终端会判断是否获取到激光对焦模组的有效对焦距离。In the embodiment of the present invention, after starting the camera application, the mobile terminal first obtains the focus data (ie, the effective focus distance) in the laser focus module of the camera. Therefore, the mobile terminal will judge whether to obtain the effective focusing distance of the laser focusing module.

进一步的,如果该移动终端获取到该激光对焦模组的有效对焦距离,就可以触发激光对焦模组对拍摄物进行激光对焦,从而可以拍摄出较为清晰的图片;而如果该移动终端未获取到该激光对焦模组的有效对焦距离,就不能触发激光对焦模组对焦,即表明采用激光对焦模组不能完成对焦,从而使得该移动终端无法进行对焦。因此,该移动终端就会将预设有效对焦距离确定为该激光对焦模组的有效对焦距离。Further, if the mobile terminal obtains the effective focus distance of the laser focus module, it can trigger the laser focus module to perform laser focus on the subject, so that a clearer picture can be taken; and if the mobile terminal does not obtain the The effective focusing distance of the laser focusing module cannot trigger the focusing of the laser focusing module, which means that the laser focusing module cannot be used to complete the focusing, thus making the mobile terminal unable to focus. Therefore, the mobile terminal determines the preset effective focusing distance as the effective focusing distance of the laser focusing module.

S102、该移动终端将预设有效对焦距离确定为该激光对焦模组的有效对焦距离。S102. The mobile terminal determines the preset effective focus distance as the effective focus distance of the laser focus module.

本发明实施例中,当移动终端判断出其未获取到激光对焦模组的有效对焦距离时,就表明该移动终端当前不能触发激光对焦,即出现对焦异常,因此,该移动终端就会强制剔除该激光对焦模组中的对焦数据(即有效对焦距离),并强制将预设有效对焦距离添加至该激光对焦模组,以作为该激光对焦模组新的有效对焦距离。In the embodiment of the present invention, when the mobile terminal judges that it has not obtained the effective focusing distance of the laser focusing module, it indicates that the mobile terminal cannot trigger the laser focusing at present, that is, abnormal focusing occurs. Therefore, the mobile terminal will forcibly reject the Focusing data in the laser focus module (that is, the effective focus distance), and forcefully add the preset effective focus distance to the laser focus module as the new effective focus distance of the laser focus module.

其中,该预设有效对焦距离是移动终端根据经验值计算出的一个对焦距离,通常情况下,该预设有效对焦距离比激光模组的有效对焦距离要小,以保证写入的预设有效对焦距离数值能够满足激光对焦模组正常对焦的条件。但该预设有效对焦距离也能是大多激光对焦模组的平均有效对焦距离。具体的,本发明实施例不做限定。Wherein, the preset effective focus distance is a focus distance calculated by the mobile terminal based on empirical values. Usually, the preset effective focus distance is smaller than the effective focus distance of the laser module to ensure that the written preset is valid. The value of the focus distance can meet the normal focus conditions of the laser focus module. However, the preset effective focus distance can also be the average effective focus distance of most laser focus modules. Specifically, this embodiment of the present invention does not make a limitation.

进一步的,当移动终端将预设有效对焦距离确定为该激光对焦模组的有效对焦距离之后,该移动终端就可以将该预设有效对焦距离发送给对焦模块,以触发对焦模块进行对焦。Further, after the mobile terminal determines the preset effective focus distance as the effective focus distance of the laser focus module, the mobile terminal can send the preset effective focus distance to the focus module to trigger the focus module to focus.

具体的,通过强制剔除原有的有效对焦距离的对焦数据,将预设有效对焦距离的对焦数据添加至激光对焦模组中,这样可以防止移动终端在读取有效对焦距离时出现读取失败的情况,进而可以保证激光对焦正常。Specifically, by forcibly removing the focus data of the original effective focus distance, the focus data of the preset effective focus distance is added to the laser focus module, which can prevent the mobile terminal from failing to read when reading the effective focus distance. In this way, the laser focus can be guaranteed to be normal.

S103、该移动终端获取目标拍摄物与摄像头之间的目标距离。S103. The mobile terminal acquires a target distance between the target subject and the camera.

本发明实施例中,当移动终端将预设有效对焦距离确定为该激光对焦模组的有效对焦距离之后,该移动终端就可以获取到该激光对焦模组的有效对焦距离(即预设有效对焦距离),因此,就会通过激光来计算出该移动终端(具体为移动终端的摄像头)与目标拍摄物之间的目标距离。In the embodiment of the present invention, after the mobile terminal determines the preset effective focus distance as the effective focus distance of the laser focus module, the mobile terminal can obtain the effective focus distance of the laser focus module (that is, the preset effective focus distance distance), therefore, the laser will be used to calculate the target distance between the mobile terminal (specifically, the camera of the mobile terminal) and the target object.

具体的,当用户在移动终端的预览画面中点击目标拍摄物的预览画面时,该移动终端就会生成针对该目标拍摄物的对焦指令,然后就会响应该对焦指令,根据该目标拍摄物在预览画面中的位置确定该目标拍摄物的方向,然后通过发射激光,以及接收反射回来的激光来确定移动终端的摄像头与目标拍摄物之间的目标距离。具体可以为:获取移动终端从发射激光至接收到反射回来的激光所需要的时间,然后根据获取的时间来计算摄像头与目标拍摄物之间的目标距离。Specifically, when the user clicks on the preview screen of the target object in the preview screen of the mobile terminal, the mobile terminal will generate a focus instruction for the target object, and then respond to the focus instruction, according to the target object in the The position in the preview image determines the direction of the target object, and then the target distance between the camera of the mobile terminal and the target object is determined by emitting laser light and receiving the reflected laser light. Specifically, it may be: acquire the time required by the mobile terminal from emitting the laser to receiving the reflected laser, and then calculate the target distance between the camera and the target object according to the acquired time.

S104、该移动终端判断该目标距离是否小于等于该预设有效对焦距离,若是,执行步骤S105;若否,结束本流程。S104, the mobile terminal judges whether the target distance is less than or equal to the preset effective focus distance, if yes, execute step S105; if not, end this process.

本发明实施例中,当获取到目标拍摄物与摄像头之间的目标距离之后,该移动终端会进一步判断该目标距离是否在该预设有效对焦距离范围内(也就是判断该目标距离是否小于等于该预设有效对焦距离),如果在该预设有效对焦距离范围内,就能确定移动终端可以对该目标拍摄物进行准确的激光对焦;而如果该目标距离不在该预设有效对焦距离范围内,就表明即使采用激光对焦,也不能使目标拍摄物清晰可见,因此,该移动终端会结束本流程。In the embodiment of the present invention, after acquiring the target distance between the target subject and the camera, the mobile terminal will further determine whether the target distance is within the preset effective focus distance range (that is, determine whether the target distance is less than or equal to The preset effective focus distance), if it is within the preset effective focus distance range, it can be determined that the mobile terminal can accurately focus on the target object; and if the target distance is not within the preset effective focus distance range , it indicates that even if laser focusing is adopted, the target subject cannot be clearly seen, and therefore, the mobile terminal will end this process.

S105、该移动终端对该目标拍摄物进行对焦,并结束本流程。S105. The mobile terminal focuses on the target object, and ends this process.

本发明实施例中,当移动终端判断出目标拍摄物与摄像头之间的目标距离小于等于预设有效对焦距离时,该移动终端就可以对该目标拍摄物进行激光对焦。也就是说,该移动终端就会触发摄像头中的马达工作,以调节摄像头的镜头的方向以及移动的位置。In the embodiment of the present invention, when the mobile terminal determines that the target distance between the target object and the camera is less than or equal to the preset effective focus distance, the mobile terminal can perform laser focusing on the target object. That is to say, the mobile terminal will trigger the motor in the camera to work to adjust the direction and moving position of the lens of the camera.

进一步的,当完成对目标拍摄物的激光对焦之后,该移动终端就可以快速的对该目标拍摄物进行拍摄,而得到的拍摄图片也会比较清晰。Further, after the laser focusing on the target object is completed, the mobile terminal can quickly take pictures of the target object, and the obtained pictures will be relatively clear.

作为一种可行的实施方式,该移动终端对所述目标拍摄物进行对焦的具体方式可以包括以下步骤:As a feasible implementation manner, the specific manner in which the mobile terminal focuses on the target object may include the following steps:

步骤11)根据该目标距离以及预设对焦算法,确定将该摄像头移动至对焦位置的对焦数据。Step 11) Determine the focus data for moving the camera to the focus position according to the target distance and the preset focus algorithm.

具体实现中,自动对焦(AutoFocus,AF)是数字成像系统的核心问题之一,通过利用摄像头获取到的图像作为信息源,对这些信息进行分析处理,从而实现自动对焦。目前,常见的自动对焦算法主要有对焦深度法(DepthfromFocusing,DFF)、离焦深度法(DepthFromDefocus,DFD)、基于DSP(DigitalSignalProcess,数字信号处理)的自动对焦算法、基于ISP(ImageSignalProcessor,图像信号处理器)的自动对焦算法等等。DFF是一种建立在搜索算法上的自动对焦方法,通过一个评价函数对不同位置处的图像的清晰度进行评价,利用正确对焦位置最清晰这个特征找到正确的对焦位置。通常,该方法需要10幅~12幅的图像才能够精确的找到对焦位置。DFD是一种从离焦图像中取得深度信息从而完成自动对焦的方法,该方法只需要获得2幅~3幅不同成像硬件规格下的图像,就可以完成自动对焦过程。可知,现有的自动对焦算法中,根据两幅不同离焦位置处的图像,就可推导出针对目标区域进行拍摄时的对焦位置,从而控制镜头完成自动对焦。需要说明的是,本发明实施例对具体的对焦算法不做限定,具体实现中可根据实际需要进行设定。In a specific implementation, autofocus (AutoFocus, AF) is one of the core issues of a digital imaging system. By using images acquired by a camera as an information source, the information is analyzed and processed, thereby realizing autofocus. At present, the common autofocus algorithms mainly include Depth from Focusing (DFF), Depth From Defocus (DFD), auto focus algorithm based on DSP (Digital Signal Process, digital signal processing), based on ISP (Image Signal Processor, image signal processing device) autofocus algorithm and so on. DFF is an autofocus method based on a search algorithm. It evaluates the sharpness of images at different positions through an evaluation function, and uses the feature that the correct focus position is the clearest to find the correct focus position. Usually, this method requires 10 to 12 images to accurately find the focus position. DFD is a method of obtaining depth information from defocused images to complete autofocus. This method only needs to obtain 2 to 3 images under different imaging hardware specifications to complete the autofocus process. It can be seen that in the existing auto-focus algorithm, according to two images at different defocus positions, the focus position when shooting the target area can be deduced, so as to control the lens to complete auto-focus. It should be noted that the embodiment of the present invention does not limit the specific focusing algorithm, which can be set according to actual needs in specific implementation.

因此,移动终端根据目标拍摄物与摄像头之间的目标距离,来确定拍摄图像,然后再分析该拍摄图像的清晰度,从而可以根据该清晰度以及预设对焦算法确定出拍摄图像最清晰时的正确对焦位置所对应的对焦数据。也就是说,移动终端可以根据该目标距离以及预设对焦算法,确定将该摄像头的镜头移动至该摄像头的对焦位置时需要的对焦数据。其中,该对焦数据可以是该摄像头的镜头需要移动的步长和移动方向,也可以是对焦位置,还可以是该摄像头的马达需要的输入电压或输入电流,该电压或电流用于驱动镜头往指定的移动方向移动指定的步长。具体的,本发明实施例不做限定。Therefore, the mobile terminal determines the captured image according to the target distance between the target subject and the camera, and then analyzes the sharpness of the captured image, so that it can determine the clearest time of the captured image according to the sharpness and the preset focus algorithm. The focus data corresponding to the correct focus position. That is to say, the mobile terminal can determine the focus data required when moving the lens of the camera to the focus position of the camera according to the target distance and the preset focus algorithm. Wherein, the focusing data may be the step size and moving direction that the lens of the camera needs to move, it may also be the focus position, and it may also be the input voltage or current required by the motor of the camera, and the voltage or current is used to drive the lens to Move the specified step in the specified direction of movement. Specifically, this embodiment of the present invention does not make a limitation.

步骤12)根据该对焦数据将该摄像头的镜头移动至该对焦位置。Step 12) Move the lens of the camera to the focus position according to the focus data.

具体实现中,当移动终端确定出将该摄像头移动至正确对焦位置的对焦数据之后,就可以根据该对焦数据移动该摄像头的镜头以达到最佳对焦位置。In a specific implementation, after the mobile terminal determines the focus data for moving the camera to the correct focus position, it can move the lens of the camera according to the focus data to achieve the best focus position.

其中,该移动终端根据确定出的镜头移动方向、步长,或者马达的输入电流或输入电压来控制该摄像头的镜头移动至正确的对焦位置,使得获取的目标拍摄物更加清晰。Wherein, the mobile terminal controls the lens of the camera to move to the correct focusing position according to the determined lens moving direction and step size, or the input current or input voltage of the motor, so that the acquired target object is clearer.

可见,在图1所描述的方法中,移动终端在判断出未获取到有效对焦距离时,会将预设有效对焦距离确定为有效对焦距离,然后再获取目标拍摄物与移动终端摄像头之间的目标距离,当判断出该目标距离小于等于该预设有效对焦距离时,对该目标拍摄物进行对焦。通过本发明实施例,可以解决移动终端在未获取到有效对焦距离之后无法进行对焦的问题,提高移动终端的对焦效率,从而能够较快的获取清晰的图片,提升用户体验。It can be seen that in the method described in FIG. 1 , when the mobile terminal determines that the effective focus distance has not been obtained, it will determine the preset effective focus distance as the effective focus distance, and then obtain the distance between the target subject and the camera of the mobile terminal. Target distance, when it is judged that the target distance is less than or equal to the preset effective focus distance, focus on the target object. Through the embodiments of the present invention, the problem that the mobile terminal cannot focus after the effective focusing distance is not acquired can be solved, and the focusing efficiency of the mobile terminal can be improved, so that clear pictures can be acquired quickly, and user experience can be improved.

请参阅图2,图2是本发明实施例公开的另一种对焦异常处理方法的流程示意图。其中,图2所示的方法可以应用于智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备、个人数字助理、媒体播放器、智能电视、智能手表、智能眼镜、智能手环等移动终端,该移动终端包括有摄像头,且该摄像头包括有激光对焦模组。如图2所示,该对焦异常处理方法可以包括以下步骤:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another focusing abnormality handling method disclosed in an embodiment of the present invention. Wherein, the method shown in Figure 2 can be applied to smart phones (such as Android phones, iOS phones, etc.), tablet computers, handheld computers and mobile Internet devices, personal digital assistants, media players, smart TVs, smart watches, smart glasses, A mobile terminal such as a smart bracelet, the mobile terminal includes a camera, and the camera includes a laser focusing module. As shown in FIG. 2, the method for handling abnormal focus may include the following steps:

S201、移动终端判断是否获取到激光对焦模组的有效对焦距离,若是,结束本流程;若否,执行步骤S202。S201. The mobile terminal judges whether the effective focusing distance of the laser focusing module is acquired, and if yes, ends the process; if not, executes step S202.

S202、该移动终端将预设有效对焦距离确定为该激光对焦模组的有效对焦距离。S202. The mobile terminal determines the preset effective focus distance as the effective focus distance of the laser focus module.

S203、该移动终端获取所处环境的光强度值。S203. The mobile terminal acquires the light intensity value of the environment where it is located.

本发明实施例中,当移动终端将预设有效对焦距离添加至该激光对焦模组,以作为该激光对焦模组的有效对焦距离时,就会进一步获取该移动终端所处环境的光强度值。具体的,可以是通过移动终端的光感应模块等采集周围环境的光强度值。由于激光对焦在较暗的环境下能够较快较准的对焦,相对于其他对焦方式,其对焦优势会更加明显。因此,该移动终端获取其所处环境的光强度值主要是为了能够保证激光对焦的对焦效率以及对焦可靠性。In the embodiment of the present invention, when the mobile terminal adds the preset effective focus distance to the laser focus module as the effective focus distance of the laser focus module, it will further obtain the light intensity value of the environment where the mobile terminal is located . Specifically, the light intensity value of the surrounding environment may be collected through a light sensing module of the mobile terminal or the like. Since laser focusing can focus faster and more accurately in a darker environment, its focusing advantage will be more obvious than other focusing methods. Therefore, the mobile terminal obtains the light intensity value of its environment mainly to ensure the focusing efficiency and reliability of laser focusing.

S204、该移动终端判断该光强度值是否超过预设光强度阈值,若否,执行步骤S205;若是,执行步骤S208。S204, the mobile terminal judges whether the light intensity value exceeds a preset light intensity threshold, if not, execute step S205; if yes, execute step S208.

本发明实施例中,当获取到该移动终端所处环境的光强度值时,该移动终端就会判断该光强度值是否超过预设光强度阈值。其中,预设光强度阈值即为激光对焦模组能够快速、可靠、准确的进行对焦的光强度临界值。In the embodiment of the present invention, when the light intensity value of the environment where the mobile terminal is located is acquired, the mobile terminal will judge whether the light intensity value exceeds a preset light intensity threshold. Wherein, the preset light intensity threshold is the light intensity critical value at which the laser focusing module can focus quickly, reliably and accurately.

进一步的,当判断出该光强度值超过预设光强度阈值时,就表明在该环境下使用激光对焦不能达到很好的对焦效果,因此,该移动终端就会启动反差式对焦模式对该目标拍摄物进行对焦;而当判断出该光强度值未超过该预设光强度阈值时,就表明在该环境下能够很好的发挥激光对焦的优势,因此,该移动终端就会进一步获取摄像头与目标拍摄物之间的目标距离,以便后续对该目标拍摄物进行对焦。Further, when it is judged that the light intensity value exceeds the preset light intensity threshold value, it indicates that the use of laser focusing in this environment cannot achieve a good focusing effect, so the mobile terminal will start the contrast focus mode to focus on the target. and when it is judged that the light intensity value does not exceed the preset light intensity threshold, it indicates that the advantages of laser focusing can be well utilized in this environment, so the mobile terminal will further obtain the camera and The target distance between the target shooting objects, so that the target shooting objects can be focused on later.

S205、该移动终端获取目标拍摄物与摄像头之间的目标距离。S205. The mobile terminal acquires a target distance between the target subject and the camera.

S206、该移动终端判断该目标距离是否小于等于该预设有效对焦距离,若是,执行步骤S207;若否,执行步骤S208。S206. The mobile terminal judges whether the target distance is less than or equal to the preset effective focus distance. If yes, execute step S207; if not, execute step S208.

S207、该移动终端对该目标拍摄物进行对焦,并结束本流程。S207. The mobile terminal focuses on the target object, and ends this process.

S208、该移动终端启动反差式对焦模式对该目标拍摄物进行对焦,并结束本流程。S208. The mobile terminal starts the contrast focus mode to focus on the target subject, and ends the process.

本发明实施例中,当移动终端判断出其所处环境的光强度值超过预设光强度阈值,或判断出该目标拍摄物与该移动终端的摄像头之间的目标距离大于预设有效对焦距离时,该移动终端就可以启动反差式对焦模式对该目标拍摄物进行对焦。In the embodiment of the present invention, when the mobile terminal determines that the light intensity value of its environment exceeds the preset light intensity threshold, or determines that the target distance between the target subject and the camera of the mobile terminal is greater than the preset effective focus distance , the mobile terminal can start the contrast focus mode to focus on the target object.

其中,由于相位对焦模式与激光对焦模式不具有兼容性,因此,在移动终端的激光对焦不能使用时,启动反差式对焦模式能较快的对该目标拍摄物进行对焦。其中,该移动终端在启动反差式对焦模式时,为了减少系统资源消耗,可以强制关闭激光对焦模式。Wherein, since the phase focus mode is not compatible with the laser focus mode, when the laser focus of the mobile terminal cannot be used, starting the contrast focus mode can quickly focus on the target object. Wherein, when the mobile terminal starts the contrast focus mode, in order to reduce system resource consumption, the laser focus mode can be forcibly turned off.

进一步的,该移动终端在启动反差式对焦模式进行对焦时,可以关闭激光对焦模式,以减少系统耗电,提高移动终端的运行效率。Further, when the mobile terminal activates the contrast focus mode for focusing, the laser focus mode can be turned off, so as to reduce system power consumption and improve the operating efficiency of the mobile terminal.

可见,在图2所描述的方法中,该移动终端在启动激光对焦无法正常使用(即目标拍摄物与摄像头之间的距离大于有效对焦距离,或者移动终端所处环境的光线强度太强导致激光对焦无法正常使用)时,可以启动反差式对焦模式对该目标拍摄物进行对焦,从而能够避免用户重新启动摄像头,保证移动终端进行正常对焦,提高对焦效率,从而提升用户体验。It can be seen that in the method described in FIG. 2, the mobile terminal cannot be used normally when the laser focusing is started (that is, the distance between the target subject and the camera is greater than the effective focusing distance, or the light intensity of the environment where the mobile terminal is located is too strong to cause the laser When the focus cannot be used normally), the contrast focus mode can be activated to focus on the target object, thereby preventing the user from restarting the camera, ensuring normal focus of the mobile terminal, improving focus efficiency, and improving user experience.

请参阅图3,图3是本发明实施例公开的一种移动终端的结构示意图。其中,图3所示的移动终端300可以包括但不限于智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备、个人数字助理、媒体播放器、智能电视、智能手表、智能眼镜、智能手环等,且该移动终端包括有摄像头,该摄像头配置有激光对焦模组。如图3所示,该移动终端300可以包括以下单元:Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present invention. Wherein, the mobile terminal 300 shown in Figure 3 may include but not limited to smart phones (such as Android phones, iOS phones, etc.), tablet computers, palmtop computers and mobile Internet devices, personal digital assistants, media players, smart TVs, smart watches , smart glasses, smart bracelet, etc., and the mobile terminal includes a camera, and the camera is equipped with a laser focusing module. As shown in Figure 3, the mobile terminal 300 may include the following units:

第一判断单元301,用于判断是否获取到激光对焦模组的有效对焦距离。The first judging unit 301 is configured to judge whether the effective focusing distance of the laser focusing module is obtained.

本发明实施例中,有效对焦距离即为激光对焦模组能够实现快速对焦,且对焦清晰度较高的最大距离。也就是说,在有效对焦距离范围内,该激光对焦模组能够准确且快速的对焦。In the embodiment of the present invention, the effective focusing distance is the maximum distance at which the laser focusing module can achieve fast focusing and high focus definition. That is to say, within the effective focusing distance range, the laser focusing module can focus accurately and quickly.

本发明实施例中,激光对焦由于受到光谱的影响,目前激光只能在40cm左右内的距离实现快速准确的对焦。但是不同厂家在对生产的激光对焦模组进行写入有效对焦距离的数据时,可能会存在细微的偏差,因此,移动终端300在进行对焦之前,都会先获取激光对焦模组的有效对焦距离。In the embodiment of the present invention, because the laser focusing is affected by the spectrum, the current laser can only achieve fast and accurate focusing within a distance of about 40 cm. However, there may be slight deviations when different manufacturers write the data of the effective focus distance to the laser focus modules produced. Therefore, the mobile terminal 300 will obtain the effective focus distance of the laser focus module before focusing.

本发明实施例中,当启动相机应用之后,该移动终端300首先会获取其摄像头中的激光对焦模组中的对焦数据(即有效对焦距离)。所以第一判断单元301会判断是否获取到激光对焦模组的有效对焦距离。In the embodiment of the present invention, after starting the camera application, the mobile terminal 300 first obtains the focus data (ie, the effective focus distance) in the laser focus module of the camera. Therefore, the first judging unit 301 judges whether the effective focusing distance of the laser focusing module is obtained.

进一步的,如果第一判断单元301判断出该移动终端300获取到该激光对焦模组的有效对焦距离,就可以触发激光对焦模组对拍摄物进行激光对焦,从而可以拍摄出较为清晰的图片;而如果第一判断单元301判断出该移动终端300未获取到该激光对焦模组的有效对焦距离,就不能触发激光对焦模组对焦,即表明采用激光对焦模组不能完成对焦,从而使得该移动终端无法进行对焦。因此,确定单元302就会将预设有效对焦距离确定为该激光对焦模组的有效对焦距离。Further, if the first judging unit 301 judges that the mobile terminal 300 has acquired the effective focusing distance of the laser focusing module, it can trigger the laser focusing module to perform laser focusing on the subject, so that a clearer picture can be taken; And if the first judging unit 301 judges that the mobile terminal 300 has not acquired the effective focusing distance of the laser focusing module, it cannot trigger the laser focusing module to focus, which means that the laser focusing module cannot be used to complete the focusing, so that the mobile The terminal cannot focus. Therefore, the determination unit 302 determines the preset effective focus distance as the effective focus distance of the laser focus module.

确定单元302,用于在上述第一判断单元301判断出未获取到该激光对焦模组的有效对焦距离时,将预设有效对焦距离确定为该激光对焦模组的有效对焦距离。The determination unit 302 is configured to determine the preset effective focus distance as the effective focus distance of the laser focus module when the first determination unit 301 determines that the effective focus distance of the laser focus module has not been acquired.

本发明实施例中,当第一判断单元301判断出其未获取到激光对焦模组的有效对焦距离时,就表明该移动终端300当前不能触发激光对焦,即出现对焦异常,因此,确定单元302就会强制剔除该激光对焦模组中的对焦数据(即有效对焦距离),并强制将预设有效对焦距离添加至该激光对焦模组,以作为该激光对焦模组新的有效对焦距离。In the embodiment of the present invention, when the first judging unit 301 judges that it has not acquired the effective focusing distance of the laser focusing module, it indicates that the mobile terminal 300 cannot trigger laser focusing at present, that is, abnormal focusing occurs. Therefore, the determining unit 302 The focusing data (that is, the effective focusing distance) in the laser focusing module will be forcibly deleted, and the preset effective focusing distance will be added to the laser focusing module as the new effective focusing distance of the laser focusing module.

其中,该预设有效对焦距离是移动终端根据经验值计算出的一个对焦距离,通常情况下,该预设有效对焦距离比激光模组的有效对焦距离要小,以保证写入的预设有效对焦距离数值能够满足激光对焦模组正常对焦的条件。但该预设有效对焦距离也能是大多激光对焦模组的平均有效对焦距离。具体的,本发明实施例不做限定。Wherein, the preset effective focus distance is a focus distance calculated by the mobile terminal based on empirical values. Usually, the preset effective focus distance is smaller than the effective focus distance of the laser module to ensure that the written preset is valid. The value of the focus distance can meet the normal focus conditions of the laser focus module. However, the preset effective focus distance can also be the average effective focus distance of most laser focus modules. Specifically, this embodiment of the present invention does not make a limitation.

进一步的,当确定单元302移动终端将预设有效对焦距离确定为该激光对焦模组的有效对焦距离之后,该移动终端300就可以将该预设有效对焦距离发送给对焦模块,以触发对焦模块进行对焦。Further, after the determination unit 302 mobile terminal determines the preset effective focus distance as the effective focus distance of the laser focus module, the mobile terminal 300 can send the preset effective focus distance to the focus module to trigger the focus module to focus.

具体的,通过强制剔除原有的有效对焦距离的对焦数据,将预设有效对焦距离的对焦数据添加至激光对焦模组中,这样可以防止移动终端300在读取有效对焦距离时出现读取失败的情况,进而可以保证激光对焦正常。Specifically, by forcibly removing the focus data of the original effective focus distance, the focus data of the preset effective focus distance is added to the laser focus module, which can prevent the mobile terminal 300 from failing to read the effective focus distance In this case, it can ensure that the laser focus is normal.

获取单元303,用于获取目标拍摄物与摄像头之间的目标距离。The acquiring unit 303 is configured to acquire the target distance between the target subject and the camera.

本发明实施例中,当上述确定单元302将预设有效对焦距离确定为该激光对焦模组的有效对焦距离之后,获取单元303就可以获取到该激光对焦模组的有效对焦距离(即预设有效对焦距离),因此,就会通过激光来计算出该移动终端300(具体为移动终端的摄像头)与目标拍摄物之间的目标距离。In the embodiment of the present invention, after the determination unit 302 determines the preset effective focus distance as the effective focus distance of the laser focus module, the acquisition unit 303 can acquire the effective focus distance of the laser focus module (that is, the preset Effective focusing distance), therefore, the target distance between the mobile terminal 300 (specifically, the camera of the mobile terminal) and the target object will be calculated by using laser light.

具体的,当用户在移动终端300的预览画面中点击目标拍摄物的预览画面时,该移动终端300就会生成针对该目标拍摄物的对焦指令,然后就会响应该对焦指令,根据该目标拍摄物在预览画面中的位置确定该目标拍摄物的方向,然后通过发射激光,以及接收反射回来的激光来确定移动终端的摄像头与目标拍摄物之间的目标距离。具体可以为:获取单元303获取移动终端从发射激光至接收到反射回来的激光所需要的时间,然后根据获取的时间来计算摄像头与目标拍摄物之间的目标距离。Specifically, when the user clicks on the preview screen of the target object in the preview screen of the mobile terminal 300, the mobile terminal 300 will generate a focus instruction for the target object, and then respond to the focus instruction to shoot according to the target. The position of the object in the preview screen determines the direction of the target object, and then the target distance between the camera of the mobile terminal and the target object is determined by emitting laser light and receiving the reflected laser light. Specifically, the obtaining unit 303 obtains the time required by the mobile terminal from emitting the laser light to receiving the reflected laser light, and then calculates the target distance between the camera and the target object according to the obtained time.

第二判断单元304,用于判断上述获取单元303获取到的该目标距离是否小于等于该预设有效对焦距离。The second judging unit 304 is configured to judge whether the target distance acquired by the acquiring unit 303 is less than or equal to the preset effective focus distance.

本发明实施例中,当获取单元303获取到目标拍摄物与摄像头之间的目标距离之后,第二判断单元304会进一步判断该目标距离是否在该预设有效对焦距离范围内(也就是判断该目标距离是否小于等于该预设有效对焦距离),如果在该预设有效对焦距离范围内,就能确定移动终端300可以对该目标拍摄物进行准确的激光对焦;而如果该目标距离不在该预设有效对焦距离范围内,就表明即使采用激光对焦,也不能使目标拍摄物清晰可见,因此,该移动终端300不做任何操作。In the embodiment of the present invention, after the acquiring unit 303 acquires the target distance between the target subject and the camera, the second judging unit 304 will further judge whether the target distance is within the preset effective focus distance range (that is, judge the Whether the target distance is less than or equal to the preset effective focus distance), if it is within the preset effective focus distance range, it can be determined that the mobile terminal 300 can perform accurate laser focusing on the target object; and if the target distance is not within the preset effective focus distance If it is set within the effective focus distance range, it means that even if the laser focus is used, the target object cannot be clearly seen. Therefore, the mobile terminal 300 does not perform any operation.

对焦单元305,用于在上述第二判断单元304判断出该目标距离小于等于该预设有效对焦距离时,对该目标拍摄物进行对焦。The focus unit 305 is configured to focus on the target subject when the second determination unit 304 determines that the target distance is less than or equal to the preset effective focus distance.

本发明实施例中,当第二判断单元304判断出目标拍摄物与摄像头之间的目标距离小于等于预设有效对焦距离时,对焦单元305就可以对该目标拍摄物进行激光对焦。也就是说,对焦单元305就会触发摄像头中的马达工作,以调节摄像头的镜头的方向以及移动的位置。In the embodiment of the present invention, when the second judging unit 304 judges that the target distance between the target object and the camera is less than or equal to the preset effective focus distance, the focusing unit 305 can perform laser focusing on the target object. That is to say, the focusing unit 305 will trigger the motor in the camera to adjust the direction and moving position of the lens of the camera.

进一步的,当完成对目标拍摄物的激光对焦之后,该移动终端300就可以快速的对该目标拍摄物进行拍摄,而得到的拍摄图片也会比较清晰。Furthermore, after the laser focusing on the target object is completed, the mobile terminal 300 can quickly take pictures of the target object, and the obtained pictures will be relatively clear.

可见,在图3所描述的移动终端中,该移动终端在判断出未获取到有效对焦距离时,会将预设有效对焦距离确定为有效对焦距离,然后再获取目标拍摄物与移动终端摄像头之间的目标距离,当判断出该目标距离小于等于该预设有效对焦距离时,对该目标拍摄物进行对焦。通过本发明实施例,可以解决移动终端在未获取到有效对焦距离之后无法进行对焦的问题,提高移动终端的对焦效率,从而能够较快的获取清晰的图片,提升用户体验。It can be seen that in the mobile terminal described in FIG. 3 , when the mobile terminal determines that no effective focus distance has been obtained, it will determine the preset effective focus distance as the effective focus distance, and then obtain the distance between the target object and the camera of the mobile terminal. When it is judged that the target distance is less than or equal to the preset effective focus distance, the target object is focused. Through the embodiments of the present invention, the problem that the mobile terminal cannot focus after the effective focusing distance is not acquired can be solved, and the focusing efficiency of the mobile terminal can be improved, so that clear pictures can be acquired quickly, and user experience can be improved.

请参阅图4,图4是本发明实施例公开的另一种移动终端的结构示意图。其中,图4所示的移动终端300是在图3所示的移动终端300的基础上进行优化得到的。如图4所示,该移动终端300还可以包括:Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention. Wherein, the mobile terminal 300 shown in FIG. 4 is obtained by optimizing the mobile terminal 300 shown in FIG. 3 . As shown in Figure 4, the mobile terminal 300 may also include:

本发明实施例中,上述获取单元303,还用于获取该移动终端300所处环境的光强度值。In the embodiment of the present invention, the acquisition unit 303 is further configured to acquire the light intensity value of the environment where the mobile terminal 300 is located.

具体实现中,当上述确定单元302将预设有效对焦距离添加至该激光对焦模组,以作为该激光对焦模组的有效对焦距离时,获取单元303就会进一步获取该移动终端300所处环境的光强度值。具体的,可以是通过移动终端300的光感应模块等采集周围环境的光强度值。由于激光对焦在较暗的环境下能够较快较准的对焦,相对于其他对焦方式,其对焦优势会更加明显。因此,获取单元303获取其所处环境的光强度值主要是为了能够保证激光对焦的对焦效率以及对焦可靠性。In specific implementation, when the determination unit 302 adds the preset effective focus distance to the laser focus module as the effective focus distance of the laser focus module, the acquisition unit 303 will further acquire the environment where the mobile terminal 300 is located. light intensity value. Specifically, the light intensity value of the surrounding environment may be collected through the light sensing module of the mobile terminal 300 or the like. Since laser focusing can focus faster and more accurately in a darker environment, its focusing advantage will be more obvious than other focusing methods. Therefore, the acquisition unit 303 acquires the light intensity value of its environment mainly to ensure the focusing efficiency and reliability of laser focusing.

本发明实施例中,上述第一判断单元301,还用于判断上述获取单元303获取到的该光强度值是否超过预设光强度阈值。In the embodiment of the present invention, the first judging unit 301 is further configured to judge whether the light intensity value acquired by the acquiring unit 303 exceeds a preset light intensity threshold.

具体实现中,当获取单元303获取到该移动终端300所处环境的光强度值时,第一判断单元301就会判断该光强度值是否超过预设光强度阈值。其中,预设光强度阈值即为激光对焦模组能够快速、可靠、准确的进行对焦的光强度临界值。In a specific implementation, when the acquiring unit 303 acquires the light intensity value of the environment where the mobile terminal 300 is located, the first judging unit 301 will judge whether the light intensity value exceeds a preset light intensity threshold. Wherein, the preset light intensity threshold is the light intensity critical value at which the laser focusing module can focus quickly, reliably and accurately.

进一步的,当第一判断单元301判断出该光强度值超过预设光强度阈值时,就表明在该环境下使用激光对焦不能达到很好的对焦效果,因此,启动单元306就会启动反差式对焦模式对该目标拍摄物进行对焦;而当第一判断单元301判断出该光强度值未超过该预设光强度阈值时,就表明在该环境下能够很好的发挥激光对焦的优势,因此,获取单元303就会进一步获取摄像头与目标拍摄物之间的目标距离,以便后续对该目标拍摄物进行对焦。Further, when the first judging unit 301 judges that the light intensity value exceeds the preset light intensity threshold value, it indicates that the use of laser focusing in this environment cannot achieve a good focusing effect, so the starting unit 306 will start the contrast mode focus mode to focus on the target object; and when the first judging unit 301 judges that the light intensity value does not exceed the preset light intensity threshold, it indicates that the advantages of laser focusing can be well utilized in this environment, so , the acquiring unit 303 will further acquire the target distance between the camera and the target object, so as to focus on the target object subsequently.

本发明实施例中,该移动终端还包括:In the embodiment of the present invention, the mobile terminal also includes:

启动单元306,用于启动反差式对焦模式对该目标拍摄物进行对焦。The starting unit 306 is configured to start the contrast focusing mode to focus on the target object.

本发明实施例中,当第一判断单元301判断出该移动终端300所处环境的光强度值超过预设光强度阈值,或第二判断单元304判断出该目标拍摄物与该移动终端300的摄像头之间的目标距离大于预设有效对焦距离时,启动单元306就可以启动反差式对焦模式对该目标拍摄物进行对焦。In the embodiment of the present invention, when the first judging unit 301 judges that the light intensity value of the environment where the mobile terminal 300 is located exceeds the preset light intensity threshold, or the second judging unit 304 judges that the target subject and the mobile terminal 300 When the target distance between the cameras is greater than the preset effective focus distance, the activation unit 306 can activate the contrast focus mode to focus on the target object.

其中,由于相位对焦模式与激光对焦模式不具有兼容性,因此,在移动终端300的激光对焦不能使用时,启动单元306启动反差式对焦模式能较快的对该目标拍摄物进行对焦。其中,启动单元306在启动反差式对焦模式时,为了减少系统资源消耗,可以强制关闭激光对焦模式。Wherein, since the phase focus mode is not compatible with the laser focus mode, when the laser focus of the mobile terminal 300 cannot be used, the activation unit 306 activates the contrast focus mode to quickly focus on the target object. Wherein, when the starting unit 306 starts the contrast focusing mode, in order to reduce system resource consumption, the laser focusing mode may be forcibly turned off.

进一步的,启动单元306在启动反差式对焦模式进行对焦时,可以关闭激光对焦模式,以减少系统耗电,提高移动终端的运行效率。Further, when starting the contrast focusing mode for focusing, the starting unit 306 can turn off the laser focusing mode, so as to reduce the power consumption of the system and improve the operating efficiency of the mobile terminal.

需要说明的是,本发明实施例中的启动个单元306所执行的操作即为权利要求书中出现的第一启动单元以及第二启动单元所执行的操作。It should be noted that the operations performed by the activation unit 306 in the embodiment of the present invention are the operations performed by the first activation unit and the second activation unit appearing in the claims.

本发明实施例中,上述对焦单元305可以包括确定子单元3051以及移动子单元3052,其中:In the embodiment of the present invention, the focusing unit 305 may include a determining subunit 3051 and a moving subunit 3052, wherein:

确定子单元3051,用于根据该目标距离以及预设对焦算法,确定将该摄像头移动至对焦位置的对焦数据。The determining subunit 3051 is configured to determine focus data for moving the camera to a focus position according to the target distance and a preset focus algorithm.

具体实现中,自动对焦(AutoFocus,AF)是数字成像系统的核心问题之一,通过利用摄像头获取到的图像作为信息源,对这些信息进行分析处理,从而实现自动对焦。目前,常见的自动对焦算法主要有对焦深度法(DepthfromFocusing,DFF)、离焦深度法(DepthFromDefocus,DFD)、基于DSP(DigitalSignalProcess,数字信号处理)的自动对焦算法、基于ISP(ImageSignalProcessor,图像信号处理器)的自动对焦算法等等。DFF是一种建立在搜索算法上的自动对焦方法,通过一个评价函数对不同位置处的图像的清晰度进行评价,利用正确对焦位置最清晰这个特征找到正确的对焦位置。通常,该方法需要10幅~12幅的图像才能够精确的找到对焦位置。DFD是一种从离焦图像中取得深度信息从而完成自动对焦的方法,该方法只需要获得2幅~3幅不同成像硬件规格下的图像,就可以完成自动对焦过程。可知,现有的自动对焦算法中,根据两幅不同离焦位置处的图像,就可推导出针对目标区域进行拍摄时的对焦位置,从而控制镜头完成自动对焦。需要说明的是,本发明实施例对具体的对焦算法不做限定,具体实现中可根据实际需要进行设定。In a specific implementation, autofocus (AutoFocus, AF) is one of the core issues of a digital imaging system. By using images acquired by a camera as an information source, the information is analyzed and processed, thereby realizing autofocus. At present, the common autofocus algorithms mainly include Depth from Focusing (DFF), Depth From Defocus (DFD), auto focus algorithm based on DSP (Digital Signal Process, digital signal processing), and auto focus algorithm based on ISP (Image Signal Processor, image signal processing). device) autofocus algorithm and so on. DFF is an autofocus method based on a search algorithm. It evaluates the sharpness of images at different positions through an evaluation function, and uses the feature that the correct focus position is the clearest to find the correct focus position. Usually, this method requires 10 to 12 images to accurately find the focus position. DFD is a method of obtaining depth information from defocused images to complete autofocus. This method only needs to obtain 2 to 3 images under different imaging hardware specifications to complete the autofocus process. It can be seen that in the existing auto-focus algorithm, according to two images at different defocus positions, the focus position when shooting the target area can be deduced, so as to control the lens to complete auto-focus. It should be noted that the embodiment of the present invention does not limit the specific focusing algorithm, which can be set according to actual needs in specific implementation.

因此,确定子单元3051根据目标拍摄物与摄像头之间的目标距离,来确定拍摄图像,然后再分析该拍摄图像的清晰度,从而可以根据该清晰度以及预设对焦算法确定出拍摄图像最清晰时的正确对焦位置所对应的对焦数据。也就是说,确定子单元3051可以根据该目标距离以及预设对焦算法,确定将该摄像头的镜头移动至该摄像头的对焦位置时需要的对焦数据。其中,该对焦数据可以是该摄像头的镜头需要移动的步长和移动方向,也可以是对焦位置,还可以是该摄像头的马达需要的输入电压或输入电流,该电压或电流用于驱动镜头往指定的移动方向移动指定的步长。具体的,本发明实施例不做限定。Therefore, the determining subunit 3051 determines the captured image according to the target distance between the target subject and the camera, and then analyzes the clarity of the captured image, so that the captured image can be determined to be the clearest according to the clarity and the preset focus algorithm The focus data corresponding to the correct focus position at that time. That is to say, the determination subunit 3051 can determine the focus data required when moving the lens of the camera to the focus position of the camera according to the target distance and the preset focus algorithm. Wherein, the focusing data may be the step size and moving direction that the lens of the camera needs to move, it may also be the focus position, and it may also be the input voltage or current required by the motor of the camera, and the voltage or current is used to drive the lens toward Move the specified step in the specified direction of movement. Specifically, this embodiment of the present invention does not make a limitation.

移动子单元3052,用于根据上述确定子单元3061确定出的对焦数据将该摄像头的镜头移动至该对焦位置。The moving subunit 3052 is configured to move the lens of the camera to the focus position according to the focus data determined by the determination subunit 3061 .

具体实现中,当确定子单元3061确定出将该摄像头移动至正确对焦位置的对焦数据之后,移动子单元3052就可以根据该对焦数据移动该摄像头的镜头以达到最佳对焦位置。In a specific implementation, after the determination subunit 3061 determines the focus data for moving the camera to the correct focus position, the movement subunit 3052 can move the lens of the camera according to the focus data to achieve the best focus position.

其中,移动子单元3052根据确定出的镜头移动方向、步长,或者马达的输入电流或输入电压来控制该摄像头的镜头移动至正确的对焦位置,使得获取的目标拍摄物更加清晰。Wherein, the moving subunit 3052 controls the lens of the camera to move to the correct focus position according to the determined lens moving direction and step size, or the input current or input voltage of the motor, so that the acquired target object is clearer.

可见,在图4所描述的移动终端中,该移动终端在启动激光对焦无法正常使用(即目标拍摄物与摄像头之间的距离大于有效对焦距离,或者移动终端所处环境的光线强度太强导致激光对焦无法正常使用)时,可以启动反差式对焦模式对该目标拍摄物进行对焦,从而能够避免用户重新启动摄像头,保证移动终端进行正常对焦,提高对焦效率,从而提升用户体验。It can be seen that in the mobile terminal described in Figure 4, the mobile terminal cannot be used normally when the laser focus is started (that is, the distance between the target object and the camera is greater than the effective focusing distance, or the light intensity of the environment where the mobile terminal is located is too strong to cause When the laser focus cannot be used normally), the contrast focus mode can be activated to focus on the target object, thereby preventing the user from restarting the camera, ensuring the normal focus of the mobile terminal, improving focus efficiency, and improving user experience.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-OnlyMemory,ROM)或随机存储记忆体(RandomAccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (10)

1.一种对焦异常处理方法,应用于移动终端,所述移动终端包括摄像头,所述摄像头包括激光对焦模组,其特征在于,所述方法包括:1. A focus abnormal processing method applied to a mobile terminal, the mobile terminal comprising a camera, the camera comprising a laser focusing module, characterized in that the method comprises: 判断是否获取到激光对焦模组的有效对焦距离;Determine whether the effective focus distance of the laser focus module is obtained; 若未获取到,则将预设有效对焦距离确定为所述激光对焦模组的有效对焦距离;If not obtained, then determine the preset effective focus distance as the effective focus distance of the laser focus module; 获取目标拍摄物与所述摄像头之间的目标距离;Obtain the target distance between the target subject and the camera; 判断所述目标距离是否小于等于所述预设有效对焦距离;judging whether the target distance is less than or equal to the preset effective focus distance; 若所述目标距离小于等于所述预设有效对焦距离,则对所述目标拍摄物进行对焦。If the target distance is less than or equal to the preset effective focus distance, focus on the target object. 2.根据权利要求1所述的方法,其特征在于,所述将预设有效对焦距离确定为所述激光对焦模组的有效对焦距离之后,所述方法还包括:2. The method according to claim 1, wherein after the preset effective focus distance is determined as the effective focus distance of the laser focus module, the method further comprises: 获取所述移动终端所处环境的光强度值;Acquiring the light intensity value of the environment where the mobile terminal is located; 判断所述光强度值是否超过预设光强度阈值,若否,则执行所述获取目标拍摄物与所述摄像头之间的目标距离的步骤。Judging whether the light intensity value exceeds a preset light intensity threshold, if not, performing the step of acquiring the target distance between the target subject and the camera. 3.根据权利要求1或2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1 or 2, characterized in that the method further comprises: 若所述目标距离大于所述预设有效对焦距离,则启动反差式对焦模式对所述目标拍摄物进行对焦。If the target distance is greater than the preset effective focus distance, a contrast focus mode is activated to focus on the target object. 4.根据权利要求2所述的方法,其特征在于,所述方法还包括:4. The method according to claim 2, characterized in that the method further comprises: 若所述光强度值超过所述预设光强度阈值,则启动反差式对焦模式对所述目标拍摄物进行对焦。If the light intensity value exceeds the preset light intensity threshold, a contrast focus mode is activated to focus on the target object. 5.根据权利要求1所述的方法,其特征在于,所述对所述目标拍摄物进行对焦,包括:5. The method according to claim 1, wherein the focusing on the target object comprises: 根据所述目标距离以及预设对焦算法,确定将所述摄像头移动至对焦位置的对焦数据;Determine the focus data for moving the camera to a focus position according to the target distance and a preset focus algorithm; 根据所述对焦数据将所述摄像头的镜头移动至所述对焦位置。and moving the lens of the camera to the focus position according to the focus data. 6.一种移动终端,所述移动终端包括摄像头,所述摄像头包括激光对焦模组,其特征在于,所述移动终端还包括:6. A mobile terminal, the mobile terminal comprising a camera, the camera comprising a laser focusing module, characterized in that the mobile terminal also comprises: 第一判断单元,用于判断是否获取到激光对焦模组的有效对焦距离;The first judging unit is used to judge whether the effective focusing distance of the laser focusing module is obtained; 确定单元,用于在所述第一判断单元判断出未获取到激光对焦模组的有效对焦距离时,将预设有效对焦距离确定为所述激光对焦模组的有效对焦距离;A determination unit, configured to determine the preset effective focus distance as the effective focus distance of the laser focus module when the first judgment unit determines that the effective focus distance of the laser focus module has not been obtained; 获取单元,用于获取目标拍摄物与所述摄像头之间的目标距离;an acquisition unit, configured to acquire the target distance between the target subject and the camera; 第二判断单元,用于判断所述目标距离是否小于等于所述预设有效对焦距离;A second judging unit, configured to judge whether the target distance is less than or equal to the preset effective focus distance; 对焦单元,用于在所述第二判断单元判断出所述目标距离小于等于所述预设有效对焦距离时,对所述目标拍摄物进行对焦。A focus unit, configured to focus on the target subject when the second determination unit determines that the target distance is less than or equal to the preset effective focus distance. 7.根据权利要求6所述的移动终端,其特征在于,7. The mobile terminal according to claim 6, characterized in that, 所述获取单元,还用于获取所述移动终端所处环境的光强度值;The acquiring unit is further configured to acquire the light intensity value of the environment where the mobile terminal is located; 所述第一判断单元,还用于判断所述光强度值是否超过预设光强度阈值,若否,则触发所述获取单元执行所述获取目标拍摄物与所述摄像头之间的目标距离的操作。The first judging unit is further configured to judge whether the light intensity value exceeds a preset light intensity threshold, and if not, trigger the acquisition unit to perform the acquisition of the target distance between the target subject and the camera. operate. 8.根据权利要求6或7所述的移动终端,其特征在于,所述移动终端还包括:8. The mobile terminal according to claim 6 or 7, wherein the mobile terminal further comprises: 第一启动单元,用于在所述第二判断单元判断出所述目标距离大于所述预设有效对焦距离时,启动反差式对焦模式对所述目标拍摄物进行对焦。The first starting unit is configured to start a contrast focusing mode to focus on the target object when the second judging unit judges that the target distance is greater than the preset effective focus distance. 9.根据权利要求7所述的移动终端,其特征在于,所述移动终端还包括:9. The mobile terminal according to claim 7, wherein the mobile terminal further comprises: 第二启动单元,用于在所述第一判断单元判断出所述光强度值超过所述预设光强度阈值时,启动反差式对焦模式对所述目标拍摄物进行对焦。The second starting unit is configured to start a contrast focusing mode to focus on the target object when the first judging unit judges that the light intensity value exceeds the preset light intensity threshold. 10.根据权利要求6所述的移动终端,其特征在于,所述对焦单元包括确定子单元以及移动子单元,其中:10. The mobile terminal according to claim 6, wherein the focusing unit comprises a determining subunit and a moving subunit, wherein: 所述确定子单元,用于根据所述目标距离以及预设对焦算法,确定将所述摄像头移动至对焦位置的对焦数据;The determining subunit is configured to determine focus data for moving the camera to a focus position according to the target distance and a preset focus algorithm; 所述移动子单元,用于根据所述对焦数据将所述摄像头的镜头移动至所述对焦位置。The moving subunit is configured to move the lens of the camera to the focus position according to the focus data.
CN201510411746.6A 2015-07-14 2015-07-14 One kind focusing abnormality eliminating method and mobile terminal Expired - Fee Related CN105141832B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510411746.6A CN105141832B (en) 2015-07-14 2015-07-14 One kind focusing abnormality eliminating method and mobile terminal
CN201810150664.4A CN108391051B (en) 2015-07-14 2015-07-14 A focus exception processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510411746.6A CN105141832B (en) 2015-07-14 2015-07-14 One kind focusing abnormality eliminating method and mobile terminal

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201810150664.4A Division CN108391051B (en) 2015-07-14 2015-07-14 A focus exception processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105141832A true CN105141832A (en) 2015-12-09
CN105141832B CN105141832B (en) 2018-03-02

Family

ID=54727030

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510411746.6A Expired - Fee Related CN105141832B (en) 2015-07-14 2015-07-14 One kind focusing abnormality eliminating method and mobile terminal
CN201810150664.4A Active CN108391051B (en) 2015-07-14 2015-07-14 A focus exception processing method and mobile terminal

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201810150664.4A Active CN108391051B (en) 2015-07-14 2015-07-14 A focus exception processing method and mobile terminal

Country Status (1)

Country Link
CN (2) CN105141832B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516599A (en) * 2015-12-31 2016-04-20 华勤通讯技术有限公司 Automatic photographing method, device and mobile terminal
CN105611151A (en) * 2015-12-17 2016-05-25 深圳市金立通信设备有限公司 Terminal control method and terminal
CN105657279A (en) * 2016-02-29 2016-06-08 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN105704378A (en) * 2016-02-29 2016-06-22 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN106101546A (en) * 2016-06-30 2016-11-09 广东欧珀移动通信有限公司 A kind of laser focusing sensor control method and mobile terminal
CN106454078A (en) * 2016-09-26 2017-02-22 广东欧珀移动通信有限公司 A focus mode control method and terminal device
CN106875348A (en) * 2016-12-30 2017-06-20 成都西纬科技有限公司 A kind of heavy focus image processing method
CN109151307A (en) * 2018-08-27 2019-01-04 惠州Tcl移动通信有限公司 It is a kind of for solve to take pictures interface fuzzy method, storage medium and mobile terminal
CN110225240A (en) * 2019-04-28 2019-09-10 努比亚技术有限公司 A kind of filming control method, terminal and computer readable storage medium
CN114125268A (en) * 2021-10-28 2022-03-01 维沃移动通信有限公司 Focusing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007304124A (en) * 2006-05-08 2007-11-22 Nikon Corp Camera and index
CN102629979A (en) * 2012-03-30 2012-08-08 华为终端有限公司 Shooting mode starting method and photographic device
CN103702029A (en) * 2013-12-20 2014-04-02 百度在线网络技术(北京)有限公司 Method and device for prompting focusing during shooting
US20140146220A1 (en) * 2012-11-26 2014-05-29 Canon Kabushiki Kaisha Focus detection apparatus, image pickup apparatus, and focus detection method
CN104360456A (en) * 2014-11-14 2015-02-18 广东欧珀移动通信有限公司 Lens focusing control method and device
CN104469168A (en) * 2014-12-29 2015-03-25 信利光电股份有限公司 Shooting module and automatic focusing method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN85201230U (en) * 1985-04-01 1986-01-08 四川大学 Auto-optical focusing instrument
JP2009239460A (en) * 2008-03-26 2009-10-15 Sony Corp Focus control method, distance measuring equipment, imaging device
CN102175613B (en) * 2011-01-26 2012-11-14 南京大学 Image-brightness-characteristic-based pan/tilt/zoom (PTZ) video visibility detection method
CN103411553B (en) * 2013-08-13 2016-03-02 天津大学 The quick calibrating method of multi-linear structured light vision sensors

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007304124A (en) * 2006-05-08 2007-11-22 Nikon Corp Camera and index
CN102629979A (en) * 2012-03-30 2012-08-08 华为终端有限公司 Shooting mode starting method and photographic device
US20140146220A1 (en) * 2012-11-26 2014-05-29 Canon Kabushiki Kaisha Focus detection apparatus, image pickup apparatus, and focus detection method
CN103702029A (en) * 2013-12-20 2014-04-02 百度在线网络技术(北京)有限公司 Method and device for prompting focusing during shooting
CN104360456A (en) * 2014-11-14 2015-02-18 广东欧珀移动通信有限公司 Lens focusing control method and device
CN104469168A (en) * 2014-12-29 2015-03-25 信利光电股份有限公司 Shooting module and automatic focusing method thereof

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611151A (en) * 2015-12-17 2016-05-25 深圳市金立通信设备有限公司 Terminal control method and terminal
CN105516599A (en) * 2015-12-31 2016-04-20 华勤通讯技术有限公司 Automatic photographing method, device and mobile terminal
CN105657279A (en) * 2016-02-29 2016-06-08 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN105704378A (en) * 2016-02-29 2016-06-22 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN106101546A (en) * 2016-06-30 2016-11-09 广东欧珀移动通信有限公司 A kind of laser focusing sensor control method and mobile terminal
CN106454078A (en) * 2016-09-26 2017-02-22 广东欧珀移动通信有限公司 A focus mode control method and terminal device
CN106454078B (en) * 2016-09-26 2019-07-19 Oppo广东移动通信有限公司 Focusing mode control method and terminal equipment
CN106875348A (en) * 2016-12-30 2017-06-20 成都西纬科技有限公司 A kind of heavy focus image processing method
CN106875348B (en) * 2016-12-30 2019-10-18 成都西纬科技有限公司 A kind of heavy focus image processing method
CN109151307A (en) * 2018-08-27 2019-01-04 惠州Tcl移动通信有限公司 It is a kind of for solve to take pictures interface fuzzy method, storage medium and mobile terminal
CN110225240A (en) * 2019-04-28 2019-09-10 努比亚技术有限公司 A kind of filming control method, terminal and computer readable storage medium
CN114125268A (en) * 2021-10-28 2022-03-01 维沃移动通信有限公司 Focusing method and device

Also Published As

Publication number Publication date
CN108391051A (en) 2018-08-10
CN105141832B (en) 2018-03-02
CN108391051B (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN105141832B (en) One kind focusing abnormality eliminating method and mobile terminal
JP5775679B2 (en) Digital camera
CN105007425B (en) Contrast type focusing method and mobile terminal
WO2017008353A1 (en) Capturing method and user terminal
CN103217854B (en) Camera system and autofocus method
US9973687B2 (en) Capturing apparatus and method for capturing images without moire pattern
CN104754215B (en) A kind of image pickup method and terminal
JP2008288911A (en) Imaging device, face area detection program, and face area detection method
US20150195482A1 (en) Method, system and smartphone that chooses optimal image to reduce shutter shake
JP2010141728A (en) Imaging apparatus
CN106713750A (en) Focus control method, device, electronic device and terminal equipment
WO2013001940A1 (en) Tracking device, and tracking method
US20110211038A1 (en) Image composing apparatus
US9489721B2 (en) Image processing apparatus, image processing method, and storage medium
CN115914817A (en) An image capturing method, terminal and storage medium
US9641739B2 (en) Imaging apparatus and imaging method with improved focus adjustment
CN107465880A (en) focusing method, device, terminal and computer readable storage medium
CN104601883B (en) A kind of method and device of image taking
US9264603B2 (en) Imaging apparatus and imaging method
CN105872378A (en) Control method, control device and electronic device
CN110830726B (en) Automatic focusing method, device, equipment and storage medium
US20160373648A1 (en) Methods and systems for capturing frames based on device information
CN105657276A (en) Control method, control device and electronic device
US9581882B2 (en) Image capturing device and auto-focus method thereof
US20130083963A1 (en) Electronic camera

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180302