CN106254682A - A kind of photographic method and mobile terminal - Google Patents
A kind of photographic method and mobile terminal Download PDFInfo
- Publication number
- CN106254682A CN106254682A CN201610842558.3A CN201610842558A CN106254682A CN 106254682 A CN106254682 A CN 106254682A CN 201610842558 A CN201610842558 A CN 201610842558A CN 106254682 A CN106254682 A CN 106254682A
- Authority
- CN
- China
- Prior art keywords
- camera
- focus
- scene
- photographed
- information
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/57—Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Studio Devices (AREA)
Abstract
本发明公开了一种拍照方法,应用于具有第一摄像头和第二摄像头的移动终端,该方法包括:检测待拍摄场景的环境亮度值是否处于预设亮度范围内;若检测到环境亮度值处于预设亮度范围内,则控制第一摄像头对待拍摄场景进行对焦处理,并将得到的对焦信息发送至第二摄像头;控制第二摄像头根据该对焦信息进行对焦;在第二摄像头对焦完成后,控制第二摄像头采集待拍摄场景的第一图像信息;其中,第一摄像头的感光敏感度高于第二摄像头的感光敏感度。本发明在特定亮度条件下,启动感光敏感度高的第一摄像头进行对焦,并将对焦参数发送至第二摄像头,以使第二摄像头根据该对焦参数进行对焦并采集图像,解决了因环境亮度低不能拍摄清晰影像的问题。
The invention discloses a photographing method, which is applied to a mobile terminal with a first camera and a second camera. The method includes: detecting whether the ambient brightness value of the scene to be photographed is within a preset brightness range; within the preset brightness range, control the first camera to focus on the scene to be shot, and send the obtained focus information to the second camera; control the second camera to focus according to the focus information; after the second camera focuses, control The second camera collects the first image information of the scene to be photographed; wherein, the photosensitivity of the first camera is higher than that of the second camera. Under the condition of specific brightness, the present invention starts the first camera with high photosensitivity to focus, and sends the focus parameters to the second camera, so that the second camera can focus and collect images according to the focus parameters, which solves the problems caused by environmental brightness. The problem of not being able to take clear images at low.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种拍照方法及移动终端。The invention relates to the field of communication technologies, in particular to a photographing method and a mobile terminal.
背景技术Background technique
随着通信技术的发展,移动终端具备有越来越多的娱乐功能,其中,拍照功能作为娱乐功能的核心之一,成为用户考量移动终端的一个重要方面。当前主流的手机摄像头,基本上都配置有自动对焦(AF,Auto focus)镜头,在周边环境亮度充足的情况下,能够快速并准确地进行对焦。但是在周边环境亮度较差的情况下,存在对焦慢、对焦不准的问题,导致拍照时间长、拍照效果差的问题。With the development of communication technology, mobile terminals have more and more entertainment functions, among which, the camera function, as one of the core entertainment functions, has become an important aspect for users to consider mobile terminals. The current mainstream mobile phone cameras are basically equipped with auto focus (AF, Auto focus) lenses, which can quickly and accurately focus when the surrounding environment is sufficiently bright. However, in the case of poor brightness in the surrounding environment, there are problems of slow focus and inaccurate focus, resulting in long photo taking time and poor photo effects.
发明内容Contents of the invention
本发明实施例提供了一种拍照方法及移动终端,以解决现有技术中在亮度较差的情况下拍照慢且对焦效果差的问题。Embodiments of the present invention provide a photographing method and a mobile terminal to solve the problems in the prior art that photographing is slow and the focusing effect is poor under conditions of poor brightness.
第一方面,本发明实施例提供了一种拍照方法,应用于具有第一摄像头和第二摄像头的移动终端,该方法包括:In a first aspect, an embodiment of the present invention provides a method for taking pictures, which is applied to a mobile terminal having a first camera and a second camera, and the method includes:
检测待拍摄场景的环境亮度值是否处于预设亮度范围内;Detecting whether the ambient brightness value of the scene to be shot is within a preset brightness range;
若检测到环境亮度值处于预设亮度范围内,则控制第一摄像头对该拍摄场景进行对焦处理,并将得到的对焦信息发送至第二摄像头;If it is detected that the ambient brightness value is within the preset brightness range, the first camera is controlled to focus on the shooting scene, and the obtained focus information is sent to the second camera;
控制第二摄像头根据该对焦信息进行对焦;Control the second camera to focus according to the focus information;
在第二摄像头对焦完成后,控制第二摄像头采集待拍摄场景的第一图像信息;After the focus of the second camera is completed, control the second camera to collect the first image information of the scene to be photographed;
其中,第一摄像头的感光敏感度高于第二摄像头的感光敏感度。Wherein, the photosensitivity of the first camera is higher than that of the second camera.
第二方面,本发明实施例还提供了一种移动终端,包括第一摄像头和第二摄像头;其中,该移动终端还包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, including a first camera and a second camera; wherein, the mobile terminal further includes:
检测模块,用于检测待拍摄场景的环境亮度值是否处于预设亮度范围内;A detection module, configured to detect whether the ambient brightness value of the scene to be photographed is within a preset brightness range;
处理模块,用于在检测模块检测到环境亮度值处于预设范围内时,则控制第一摄像头对拍摄场景进行对焦处理,并将得到对焦信息发送至第二摄像头;A processing module, configured to control the first camera to perform focus processing on the shooting scene when the detection module detects that the ambient brightness value is within a preset range, and send the obtained focus information to the second camera;
第一对焦模块,用于控制第二摄像头根据处理模块得到的对焦信息进行对焦;The first focusing module is configured to control the second camera to focus according to the focusing information obtained by the processing module;
第一拍摄模块,用于在对焦模块对焦完成后,控制第二摄像头采集待拍摄场景的第一图像信息;The first shooting module is used to control the second camera to collect the first image information of the scene to be shot after the focusing module has finished focusing;
其中,第一摄像头的感光敏感度高于第二摄像头的感光敏感度。Wherein, the photosensitivity of the first camera is higher than that of the second camera.
这样,本发明实施例中,在特定亮度条件下,移动终端控制启动感光敏感度高的第一摄像头进行对焦,并进一步将对焦参数发送至第二摄像头,以使第二摄像头根据该对焦参数进行快速对焦并采集图像,由于第一摄像头的感光敏感度高于第二摄像头,因此第一摄像头能够更快速准确地进行对焦并得到对焦参数,第二摄像头采用第一摄像头的对焦参数进行对焦和拍摄,可在亮度条件较差的环境中,输出对焦效果好、画质清晰的图像。In this way, in the embodiment of the present invention, under a specific brightness condition, the mobile terminal controls to start the first camera with high photosensitivity to focus, and further sends the focus parameters to the second camera, so that the second camera can perform focusing according to the focus parameters. Quickly focus and capture images, because the first camera has a higher photosensitive sensitivity than the second camera, so the first camera can focus more quickly and accurately and obtain the focus parameters, and the second camera uses the focus parameters of the first camera to focus and shoot , in an environment with poor brightness conditions, it can output images with good focus and clear image quality.
附图说明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 according to these drawings without paying creative labor.
图1表示本发明的拍照方法的第一实施例的流程图;Fig. 1 represents the flowchart of the first embodiment of the photographing method of the present invention;
图2表示本发明的拍照方法的第二实施例的流程图;Fig. 2 represents the flowchart of the second embodiment of the photographing method of the present invention;
图3表示本发明的移动终端的结构示意图之一;FIG. 3 shows one of the structural schematic diagrams of the mobile terminal of the present invention;
图4表示本发明的移动终端的结构示意图之二;Fig. 4 shows the second structural diagram of the mobile terminal of the present invention;
图5表示本发明移动终端的第五实施例的框图;Fig. 5 represents the block diagram of the fifth embodiment of the mobile terminal of the present invention;
图6表示本发明移动终端的第六实施例的框图。Fig. 6 shows a block diagram of a sixth embodiment of the mobile terminal 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 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.
第一实施例first embodiment
如图1所示,本发明的实施例提供了一种拍照方法,应用于一移动终端,该移动终端包括感光敏感度不同的第一摄像头和第二摄像头。该拍照方法具体包括:As shown in FIG. 1 , an embodiment of the present invention provides a method for taking pictures, which is applied to a mobile terminal, and the mobile terminal includes a first camera and a second camera with different photosensitivity. The photographing method specifically includes:
步骤101:检测待拍摄场景的环境亮度值是否处于预设亮度范围内。Step 101: Detect whether the ambient brightness value of the scene to be photographed is within a preset brightness range.
其中,这里所说的环境亮度的预设亮度范围指的是采用传统对焦模式对焦的对焦时间长且成功率较低,但对焦成功后可以成像的环境光亮度范围。具体地,预设亮度范围指的是较暗环境内的光亮值范围(如1Lux至50Lux),当环境亮度值处于该预设亮度范围内时,说明当前所处的场景为比较暗的环境,如夜晚或者比较暗的室内。Wherein, the preset brightness range of ambient brightness mentioned here refers to the range of ambient light brightness that can be imaged after the traditional focusing mode takes a long time to focus and has a low success rate. Specifically, the preset brightness range refers to the range of light values in a dark environment (such as 1Lux to 50Lux). When the ambient brightness value is within the preset brightness range, it means that the current scene is a relatively dark environment. such as at night or in a dark room.
步骤102:若检测到环境亮度值处于预设亮度范围内,则控制第一摄像头对待拍摄场景进行对焦处理,并将得到的对焦信息发送至第二摄像头。Step 102: If it is detected that the ambient brightness value is within the preset brightness range, control the first camera to focus on the scene to be shot, and send the obtained focus information to the second camera.
其中,第一摄像头的感光敏感度高于第二摄像头的感光敏感度,第二摄像头为一般摄像头,这样第一摄像头可比第二摄像头更快完成对焦。例如,第一摄像头为感光敏感度较高的黑白摄像头,第二摄像头为彩色摄像头。当检测到当前环境亮度值落在预设亮度范围内时,同时启动第一摄像头和第二摄像头,并控制第一摄像头对待拍摄场景进行对焦处理,得到一对焦信息,并将该对焦信息发送至第二摄像头。Wherein, the photosensitive sensitivity of the first camera is higher than that of the second camera, and the second camera is a general camera, so that the first camera can finish focusing faster than the second camera. For example, the first camera is a black and white camera with high photosensitivity, and the second camera is a color camera. When it is detected that the current ambient brightness value falls within the preset brightness range, start the first camera and the second camera at the same time, and control the first camera to focus on the scene to be shot, obtain a focus information, and send the focus information to Second camera.
步骤103:控制第二摄像头根据该对焦信息进行对焦。Step 103: Control the second camera to focus according to the focus information.
其中,对焦信息包括对焦点位置、对焦距离、对焦范围等对焦参数。移动终端控制第一摄像头进行对焦后,将对焦信息发送至第二摄像头,并进一步控制第二摄像头根据该对焦信息对待拍摄场景进行对焦。Wherein, the focus information includes focus parameters such as a focus point position, a focus distance, and a focus range. After controlling the first camera to focus, the mobile terminal sends focus information to the second camera, and further controls the second camera to focus on the scene to be shot according to the focus information.
步骤104:在第二摄像头对焦完成后,控制第二摄像头采集待拍摄场景的第一图像信息。Step 104: After the second camera is focused, control the second camera to collect the first image information of the scene to be photographed.
其中,第一摄像头为黑白摄像头,虽然可实现快速对焦,但拍摄处的图像为黑白,画面效果较差,为了满足用户的视觉需求,在亮度条件允许的情况下优先采用第二摄像头进行拍摄,以得到彩色图像。即通过利用第一摄像头快速对焦,将第一摄像头完成对焦后生成的对焦信息发送至第二摄像头,以控制第二摄像头根据第一摄像头的对焦信息进行快速对焦,并在对焦完成后采集待拍摄场景的第一图像信息。Among them, the first camera is a black-and-white camera. Although it can achieve fast focusing, the image at the shooting location is black and white, and the picture effect is poor. In order to meet the visual needs of users, the second camera is used for shooting when the brightness conditions permit. to get a color image. That is, by using the first camera to quickly focus, the focus information generated after the first camera completes the focus is sent to the second camera, so as to control the second camera to perform fast focus according to the focus information of the first camera, and after the focus is completed, collect the images to be shot. The first image information of the scene.
这样,在亮度条件较暗的夜晚或室内的拍摄场景下,启动感光敏感度高的第一摄像头进行对焦,并进一步将对焦参数发送至第二摄像头,以使第二摄像头根据该对焦参数进行快速对焦并采集图像,以输出画质清晰的图像,解决了现有技术中在环境亮度低的情况下不能快速对焦和拍摄效果差的问题。In this way, in dark nights or in indoor shooting scenes, the first camera with high photosensitivity is activated to focus, and the focus parameters are further sent to the second camera, so that the second camera can perform a fast detection based on the focus parameters. Focusing and collecting images to output images with clear image quality solves the problems of inability to focus quickly and poor shooting effects in the prior art when the ambient brightness is low.
第二实施例second embodiment
以上第一实施例对本发明的拍照方法进行了简单介绍,下面本实施例将结合附图和具体应用场景对其进行进一步地说明。The above first embodiment briefly introduces the photographing method of the present invention, and the following embodiment will further describe it in conjunction with the accompanying drawings and specific application scenarios.
本发明的拍照方法应用于一移动终端,该移动终端包括感光敏感度不同的第一摄像头和第二摄像头。具体地,第一摄像头为感光敏感度较高的黑白摄像头,第二摄像头为传统的彩色摄像头;其中,彩色摄像头的感光光线强度在50Lux(勒克斯),而黑白摄像头在0.005Lux的低光照条件中也能捕捉高分辨率的图像信息。其中,如图2所示,该拍照方法包括以下步骤:The photographing method of the present invention is applied to a mobile terminal, and the mobile terminal includes a first camera and a second camera with different photosensitivity. Specifically, the first camera is a black-and-white camera with high photosensitivity, and the second camera is a traditional color camera; wherein, the light intensity of the color camera is 50Lux (lux), while the black-and-white camera is under low-light conditions of 0.005Lux High-resolution image information can also be captured. Wherein, as shown in Figure 2, the photographing method includes the following steps:
步骤201:通过光感传感器实时采集待拍摄场景的环境信息。Step 201: Collect the environmental information of the scene to be photographed in real time through the light sensor.
环境光感传感器可以感知周围环境的光线情况。The ambient light sensor can sense the light conditions of the surrounding environment.
步骤202:对环境亮度信息进行计算,得到待拍摄场景的环境亮度值。Step 202: Calculate the ambient brightness information to obtain the ambient brightness value of the scene to be photographed.
进一步根据自动曝光算法(AE)算法,对当前采集到的环境亮度信息进行调节和处理,以计算得到当前待拍摄场景的环境亮度值。Further, according to the automatic exposure algorithm (AE) algorithm, the currently collected ambient brightness information is adjusted and processed to calculate the ambient brightness value of the current scene to be photographed.
步骤203:检测待拍摄场景当前的环境亮度值是否处于预设亮度范围内。Step 203: Detect whether the current ambient brightness value of the scene to be photographed is within a preset brightness range.
其中,这里所说的环境亮度的预设亮度范围指的是采用传统对焦模式对焦的对焦时间长且成功率低,但对焦成功后可以成像的环境光亮度范围。优选地,可将该预设范围的最小值设定为1Lux,该预设范围的最大值设定为50Lux,也就是说,当环境亮度值低于1Lux时,彩色摄像头不能感光,对焦困难且难以成像;当环境亮度值高于50Lux时,彩色摄像头可快速对焦并成像;而当环境亮度值处于1Lux至50Lux之间时,彩色摄像头还能感光,但对焦困难,但对焦成功后能够成像。具体地,环境亮度值属于该预设亮度范围内的场景为比较暗的环境,如夜晚或者比较暗的室内。Wherein, the preset brightness range of the ambient brightness mentioned here refers to the ambient brightness range that can be imaged after the traditional focusing mode takes a long time to focus and has a low success rate. Preferably, the minimum value of the preset range can be set to 1Lux, and the maximum value of the preset range can be set to 50Lux, that is to say, when the ambient brightness value is lower than 1Lux, the color camera cannot be sensitive to light, and it is difficult to focus and Difficult to image; when the ambient brightness value is higher than 50Lux, the color camera can quickly focus and image; when the ambient brightness value is between 1Lux and 50Lux, the color camera can still be sensitive to light, but it is difficult to focus, but it can image after successful focusing. Specifically, the scene whose ambient brightness value falls within the preset brightness range is a relatively dark environment, such as night or a relatively dark room.
步骤204:若检测到环境亮度值处于预设亮度范围内,控制第一摄像头对待拍摄场景进行对焦处理,并将得到的对焦信息发送至第二摄像头。Step 204: If it is detected that the ambient brightness value is within the preset brightness range, control the first camera to focus on the scene to be shot, and send the obtained focus information to the second camera.
其中,控制第一摄像头对待拍摄场景进行对焦处理的步骤包括:获取第一摄像头采集到的待拍摄场景的待对焦图像;计算待对焦图像中黑白边缘的反差值;当反差值达到最高峰值时,将最高峰值对应的第一摄像头的对焦马达步数和位置信息确定为第一摄像头的对焦信息。Wherein, the step of controlling the first camera to focus on the scene to be shot includes: acquiring the image to be focused on the scene to be shot collected by the first camera; calculating the contrast value of black and white edges in the image to be focused; when the contrast value reaches the highest peak value, The step number and position information of the focus motor of the first camera corresponding to the highest peak value are determined as the focus information of the first camera.
其中,第一摄像头为黑白摄像头,第二摄像头为彩色摄像头。由于第一摄像头感光能力很强,能够采集到黑白的、清晰的待对焦图像,所以可以快速寻找黑白边缘(即待对焦图像中的黑白交界处),根据自动对焦算法(AF算法)计算出黑白反差对比最高的峰值定义为最清晰点,并记录下此时的第一摄像头的对焦马达步数及位置信息。其中,值得指出的是,根据摄像头的对焦马达步数和位置信息可计算得到摄像头的对焦点位置、对焦距离、对焦范围等对焦参数。进一步,因为第二摄像头的马达与第一摄像头的马达相同,因此第二摄像头可以读取第一摄像头记录下来的AF信息。Wherein, the first camera is a black and white camera, and the second camera is a color camera. Because the first camera has a strong photosensitive ability and can collect black and white, clear images to be focused, it can quickly find the black and white edges (that is, the junction of black and white in the image to be focused), and calculate the black and white according to the automatic focus algorithm (AF algorithm). The peak with the highest contrast is defined as the sharpest point, and the step number and position information of the focus motor of the first camera at this time are recorded. Among them, it is worth pointing out that the focus parameters such as the focus point position, focus distance and focus range of the camera can be calculated according to the number of steps and position information of the focus motor of the camera. Further, because the motor of the second camera is the same as that of the first camera, the second camera can read the AF information recorded by the first camera.
步骤205:控制第二摄像头根据该对焦信息进行对焦。Step 205: Control the second camera to focus according to the focus information.
步骤206:在第二摄像头对焦完成后,控制第二摄像头采集待拍摄场景的第一图像信息。Step 206: After the second camera is focused, control the second camera to collect the first image information of the scene to be photographed.
其中,第一摄像头的感光敏感度高于第二摄像头的感光敏感度。对焦信息包括对焦点位置、对焦距离、对焦范围等对焦参数。Wherein, the photosensitivity of the first camera is higher than that of the second camera. The focusing information includes focusing parameters such as focusing point position, focusing distance, and focusing range.
步骤207:若检测到环境亮度值超过预设亮度范围的最大值,控制第二摄像头对待拍摄场景进行对焦。Step 207: If it is detected that the ambient brightness value exceeds the maximum value of the preset brightness range, control the second camera to focus on the scene to be shot.
当检测到环境亮度值超过预设亮度范围的最大值时,说明当前的拍摄环境的光亮强度较高,感光性一般的第二摄像头能够快速进行对焦。When it is detected that the ambient brightness value exceeds the maximum value of the preset brightness range, it indicates that the current shooting environment has a high light intensity, and the second camera with general photosensitivity can quickly focus.
步骤208:在第二摄像头对焦完成后,控制第二摄像头采集待拍摄场景的第二图像信息。Step 208: After the second camera is focused, control the second camera to collect the second image information of the scene to be photographed.
第二摄像头能够在对焦完成后采集到清晰的彩色的待拍摄场景的第二图像信息。其中,第二摄像头可通过相位对焦方式或连续对焦方式进行对焦。The second camera can collect clear and colored second image information of the scene to be photographed after the focusing is completed. Wherein, the second camera can focus through a phase focusing method or a continuous focusing method.
步骤209:若检测到环境亮度值低于预设亮度范围的最小值,则控制第一摄像头对待拍摄场景进行对焦。Step 209: If it is detected that the ambient brightness value is lower than the minimum value of the preset brightness range, control the first camera to focus on the scene to be shot.
当检测到环境亮度值低于预设亮度范围的最小值时,说明在当前的拍摄环境下,第二摄像头完全不能感光,不能对焦和成像。但感光性较好的第一摄像头还能够感光进行对焦。When it is detected that the ambient brightness value is lower than the minimum value of the preset brightness range, it means that in the current shooting environment, the second camera cannot sense light at all, and cannot focus and image. However, the first camera with better photosensitivity can also focus on photosensitivity.
步骤210:在第一摄像头对焦完成后,控制第一摄像头采集待拍摄场景的第三图像信息。Step 210: After the first camera is focused, control the first camera to collect third image information of the scene to be photographed.
第一摄像头能够感光进行对焦,并能够在对焦完成后采集到黑白的待拍摄场景的第三图像信息。The first camera can sense light to focus, and can collect black and white third image information of the scene to be shot after the focus is completed.
综上,本发明实施例的拍照方法,在光线强度较好的拍摄环境下直接启动第二摄像头进行对焦和拍摄,以得到清晰度高的彩色图像信息;在光线强度较差的拍摄环境下,启动感光敏感度较高的第一摄像头进行对焦,并启动能够拍摄彩色图像的第二摄像头进行拍摄,以得到较高清晰度的彩色图像信息;在光线强度很差的拍摄环境下,启动感光敏感度较高的第一摄像头进行对焦和拍摄,以得到清晰度满足需求的黑白图像信息;以解决现有技术中在环境亮度低的情况下不能快速对焦和拍摄效果差的问题。To sum up, in the photographing method of the embodiment of the present invention, the second camera is directly started to focus and shoot in a shooting environment with good light intensity, so as to obtain high-definition color image information; in a shooting environment with poor light intensity, Start the first camera with high photosensitive sensitivity to focus, and start the second camera capable of taking color images to shoot, so as to obtain higher-definition color image information; in the shooting environment with poor light intensity, start the photosensitive The high-resolution first camera is used to focus and shoot to obtain black-and-white image information with a resolution that meets the requirements; to solve the problems of inability to focus quickly and poor shooting effects in the prior art when the ambient brightness is low.
第三实施例third embodiment
以上第一实施例和第二实施例分别详细介绍了不同场景下的图像处理方法,下面将结合图3和图4对与其对应的移动终端做进一步介绍。The above-mentioned first embodiment and second embodiment respectively introduce the image processing methods in different scenarios in detail, and the corresponding mobile terminal will be further introduced below with reference to FIG. 3 and FIG. 4 .
本实施例提供了一种移动终端,包括感光敏感度不同的第一摄像头和第二摄像头,能实现第一实施例和第二实施例中检测待拍摄场景的环境亮度值是否处于预设亮度范围内;若检测到环境亮度值处于预设亮度范围内,则控制第一摄像头对待拍摄场景进行对焦处理,并将得到的对焦信息发送至第二摄像头;其中,第一摄像头的感光敏感度高于第二摄像头的感光敏感度;控制第二摄像头根据该对焦信息进行对焦,在第二摄像头对焦完成后,控制第二摄像头采集待拍摄场景的第一图像信息方法的细节,并达到相同的技术效果。其中,该移动终端还包括:This embodiment provides a mobile terminal, including a first camera and a second camera with different photosensitive sensitivities, capable of detecting whether the ambient brightness value of the scene to be photographed is within the preset brightness range in the first embodiment and the second embodiment If it is detected that the ambient brightness value is within the preset brightness range, the first camera is controlled to focus on the scene to be shot, and the obtained focus information is sent to the second camera; wherein, the photosensitivity of the first camera is higher than The photosensitivity of the second camera; control the second camera to focus according to the focus information, and control the second camera to collect the details of the first image information method of the scene to be shot after the second camera is focused, and achieve the same technical effect . Among them, the mobile terminal also includes:
检测模块310,用于检测待拍摄场景的环境亮度值是否处于预设亮度范围内;其中,这里所说的环境亮度的预设亮度范围指的是采用传统对焦模式对焦的对焦时间长且成功率较低,但对焦成功后可以成像的环境光亮度范围。具体地,环境亮度值属于该预设范围内的场景为比较暗的环境,如夜晚或者比较暗的室内。The detection module 310 is used to detect whether the ambient brightness value of the scene to be photographed is within the preset brightness range; wherein, the preset brightness range of the ambient brightness mentioned here refers to the long focusing time and the success rate of focusing in the traditional focusing mode. Low, but the ambient light brightness range that can be imaged after successful focusing. Specifically, the scene whose ambient brightness value falls within the preset range is a relatively dark environment, such as night or a relatively dark room.
处理模块320,用于在检测模块检测到环境亮度值处于预设亮度范围内时,控制第一摄像头对待拍摄场景进行对焦,并将得到的对焦信息发送至第二摄像头。The processing module 320 is configured to control the first camera to focus on the scene to be shot when the detection module detects that the ambient brightness value is within a preset brightness range, and send the obtained focusing information to the second camera.
第一对焦模块330,用于控制第二摄像头根据上述处理模块得到的对焦信息进行对焦。The first focusing module 330 is configured to control the second camera to focus according to the focusing information obtained by the above processing module.
其中,对焦信息包括对焦点位置、对焦距离、对焦范围等对焦参数。Wherein, the focus information includes focus parameters such as a focus point position, a focus distance, and a focus range.
第一拍摄模块340,用于在第一对焦模块对焦完成后,控制第二摄像头采集待拍摄场景的第一图像信息。其中,第一摄像头的感光敏感度高于第二摄像头的感光敏感度。The first photographing module 340 is configured to control the second camera to collect the first image information of the scene to be photographed after the first focusing module focuses. Wherein, the photosensitivity of the first camera is higher than that of the second camera.
这样,在亮度条件较暗的夜晚或室内的拍摄场景下,启动感光敏感度高的第一摄像头进行对焦,并进一步将对焦参数发送至第二摄像头,以使第二摄像头根据该对焦参数进行快速对焦并采集图像,以输出画质清晰的图像,解决了现有技术中在环境亮度低的情况下不能快速对焦和拍摄效果差的问题。In this way, in dark nights or in indoor shooting scenes, the first camera with high photosensitivity is activated to focus, and the focus parameters are further sent to the second camera, so that the second camera can perform a fast detection based on the focus parameters. Focusing and collecting images to output images with clear image quality solves the problems of inability to focus quickly and poor shooting effects in the prior art when the ambient brightness is low.
其中该移动终端还包括:Wherein the mobile terminal also includes:
获取模块300,用于通过光感传感器实时采集待拍摄场景的环境亮度信息;The acquisition module 300 is used to collect the ambient brightness information of the scene to be photographed in real time through the light sensor;
计算模块301,用于对环境亮度信息进行计算,得到待拍摄场景的环境亮度值。The calculation module 301 is configured to calculate the ambient brightness information to obtain the ambient brightness value of the scene to be photographed.
其中,该移动终端还包括:Among them, the mobile terminal also includes:
第二对焦模块350,用于当检测到环境亮度值超过预设亮度范围的最大值时,控制第二摄像头对待拍摄场景进行对焦。The second focusing module 350 is configured to control the second camera to focus on the scene to be shot when it is detected that the ambient brightness value exceeds the maximum value of the preset brightness range.
第二拍摄模块360,用于在第二对焦模块对焦完成后,控制第二摄像头采集待拍摄场景的第二图像信息。The second photographing module 360 is configured to control the second camera to collect the second image information of the scene to be photographed after the second focusing module focuses.
其中,该移动终端还包括:Among them, the mobile terminal also includes:
第三对焦模块370,用于当检测到环境亮度值低于预设亮度范围的最小值时,控制第一摄像头对待拍摄场景进行对焦。The third focusing module 370 is configured to control the first camera to focus on the scene to be shot when it is detected that the ambient brightness value is lower than the minimum value of the preset brightness range.
第三拍摄模块380,用于在第三对焦模块对焦完成后,控制第一摄像头采集待拍摄场景的第三图像信息。The third photographing module 380 is configured to control the first camera to collect third image information of the scene to be photographed after the third focusing module finishes focusing.
其中,处理模块320包括:Wherein, the processing module 320 includes:
获取单元321,用于获取第一摄像头采集到的待拍摄场景的待对焦图像;An acquisition unit 321, configured to acquire the image to be focused of the scene to be photographed collected by the first camera;
计算单元322,用于计算待对焦图像中黑白边缘的反差值;A calculation unit 322, configured to calculate the contrast value of black and white edges in the image to be focused;
处理单元323,用于当反差值达到最高峰值时,将所述最高峰值对应的第一摄像头的对焦马达步数和位置信息确定为第一摄像头的对焦信息。The processing unit 323 is configured to determine, when the contrast value reaches the highest peak value, the step number and position information of the focus motor of the first camera corresponding to the highest peak value as the focus information of the first camera.
其中,第一摄像头为黑白摄像头,第二摄像头为彩色摄像头。Wherein, the first camera is a black and white camera, and the second camera is a color camera.
值得指出的是,本发明实施例的移动终端是与上述拍照方法对应的移动终端,上述方法的实施方式和实现的技术效果均适用于该移动终端的实施例中。其中,该移动终端在特定亮度条件下,启动感光敏感度高的第一摄像头进行对焦,并进一步将对焦参数发送至第二摄像头,以使第二摄像头根据该对焦参数进行快速对焦并采集图像,以输出画质清晰的图像,解决了现有技术中在环境亮度低的情况下不能快速对焦和拍摄效果差的问题。It is worth pointing out that the mobile terminal in the embodiment of the present invention is a mobile terminal corresponding to the above-mentioned photographing method, and the implementation manner and achieved technical effects of the above-mentioned method are applicable to the embodiment of the mobile terminal. Wherein, the mobile terminal starts the first camera with high photosensitivity to focus under certain brightness conditions, and further sends the focus parameters to the second camera, so that the second camera can quickly focus and collect images according to the focus parameters, By outputting images with clear image quality, the problems of inability to focus quickly and poor shooting effects in the prior art under the condition of low ambient brightness are solved.
第四实施例Fourth embodiment
图5是本发明另一个实施例的移动终端500的框图,如图5所示的移动终端包括:至少一个处理器501、存储器502、拍照组件503、用户接口504和传感器组件505。其中,拍照组件503包括感光敏感度不同的第一摄像头和第二摄像头。传感器组件505包括用于采集环境光亮的光感传感器。移动终端500中的各个组件通过总线系统506耦合在一起。可理解,总线系统506用于实现这些组件之间的连接通信。总线系统506除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统506。FIG. 5 is a block diagram of a mobile terminal 500 according to another embodiment of the present invention. The mobile terminal shown in FIG. Wherein, the photographing component 503 includes a first camera and a second camera with different photosensitivity. The sensor component 505 includes a light sensor for collecting ambient light. Various components in the mobile terminal 500 are coupled together through the bus system 506 . It can be understood that the bus system 506 is used to realize connection and communication among these components. In addition to the data bus, the bus system 506 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 506 in FIG. 5 .
其中,用户接口504可以包括显示器或者点击设备(例如触感板或者触摸屏等。Wherein, the user interface 504 may include a display or a pointing device (such as a touch panel or a touch screen, etc.).
可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data RateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRambus RAM, DRRAM). Memory 502 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some implementations, the memory 502 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022 .
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。Among them, the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 5022 .
在本发明的实施例中,通过调用存储器502存储的程序或指令,具体地,可以是应用程序5022中存储的程序或指令。其中,处理器501用于检测待拍摄场景的环境亮度值是否处于预设亮度范围内;若检测到环境亮度值处于预设亮度范围内,则控制第一摄像头对待拍摄场景进行对焦处理,并将得到的对焦信息发送至第二摄像头;其中,第一摄像头的感光敏感度高于第二摄像头的感光敏感度;控制第二摄像头根据该对焦信息进行对焦,在第二摄像头对焦完成后,控制第二摄像头采集待拍摄场景的第一图像信息。In the embodiment of the present invention, the programs or instructions stored in the memory 502, specifically, the programs or instructions stored in the application program 5022 may be called. Wherein, the processor 501 is used to detect whether the ambient brightness value of the scene to be photographed is within a preset brightness range; The obtained focusing information is sent to the second camera; wherein, the photosensitivity sensitivity of the first camera is higher than that of the second camera; the second camera is controlled to focus according to the focusing information, and after the second camera is focused, control the second camera to focus The second camera collects the first image information of the scene to be photographed.
上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 501 or instructions in the form of software. The aforementioned processor 501 may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the above method in combination with its hardware.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.
对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
具体地,处理器501还用于:通过光感传感器实时采集待拍摄场景的环境亮度信息,对该环境亮度信息进行计算,得到待拍摄场景的环境亮度值。Specifically, the processor 501 is further configured to: collect the ambient brightness information of the scene to be photographed in real time through the light sensor, and calculate the ambient brightness information to obtain the ambient brightness value of the scene to be photographed.
具体地,处理器501还用于:当检测到环境亮度值超过预设范围的最大值时,控制第二摄像头对待拍摄场景进行对焦;在第二摄像头对焦完成后,控制第二摄像头采集待拍摄场景的第二图像信息。Specifically, the processor 501 is also used to: when it is detected that the ambient brightness value exceeds the maximum value of the preset range, control the second camera to focus on the scene to be shot; The second image information of the scene.
具体地,处理器501还用于:当检测到环境亮度值低于预设范围的最小值时,控制第一摄像头对待拍摄场景进行对焦;在第一摄像头对焦完成后,控制第一摄像头采集待拍摄场景的第三图像信息。Specifically, the processor 501 is also configured to: when it is detected that the ambient brightness value is lower than the minimum value of the preset range, control the first camera to focus on the scene to be shot; The third image information of the shooting scene.
具体地,处理器501还用于:获取所述第一摄像头采集到的待拍摄场景的待对焦图像;计算待对焦图像中黑白边缘的反差值;当反差值达到最高峰值时,将最高峰值对应的第一摄像头的对焦马达步数和位置信息确定为第一摄像头的对焦信息。Specifically, the processor 501 is further configured to: acquire the to-be-focused image of the scene to be shot collected by the first camera; calculate the contrast value of black and white edges in the to-be-focused image; when the contrast value reaches the highest peak value, correspond the highest peak value to The focus motor steps and position information of the first camera are determined as the focus information of the first camera.
本发明实施例的移动终端500,在特定亮度条件下,启动感光敏感度高的第一摄像头进行对焦,并进一步将对焦参数发送至第二摄像头,以使第二摄像头根据该对焦参数进行快速对焦并采集图像,以输出画质清晰的图像,解决了现有技术中在环境亮度低的情况下不能快速对焦和拍摄效果差的问题。The mobile terminal 500 of the embodiment of the present invention starts the first camera with high photosensitivity to focus under certain brightness conditions, and further sends the focus parameters to the second camera, so that the second camera can quickly focus according to the focus parameters And collect images to output images with clear quality, which solves the problems of inability to focus quickly and poor shooting effects in the prior art when the ambient brightness is low.
第五实施例fifth embodiment
图6是本发明另一个实施例的移动终端的结构示意图。具体地,图6中的移动终端600可以是手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。Fig. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 600 in FIG. 6 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.
图6中的移动终端600包括电源610、存储器620、输入单元630、显示单元640、拍照组件650、处理器660、WIFI(Wireless Fidelity)模块670、音频电路680、RF电路690和传感器组件700,其中,拍照组件650包括感光敏感度不同的第一摄像头和第二摄像头,具体地,第一摄像头为黑白摄像头,第二摄像头为彩色摄像头。传感器组件700包括用于采集环境光亮的光感传感器。Mobile terminal 600 among Fig. 6 comprises power supply 610, memory 620, input unit 630, display unit 640, camera assembly 650, processor 660, WIFI (Wireless Fidelity) module 670, audio circuit 680, RF circuit 690 and sensor assembly 700, Wherein, the photographing component 650 includes a first camera and a second camera with different photosensitivity, specifically, the first camera is a black and white camera, and the second camera is a color camera. The sensor assembly 700 includes a light sensor for collecting ambient light.
其中,输入单元630可用于接收用户输入的信息,以及产生与移动终端600的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。Wherein, the input unit 630 can be used for receiving information input by a user, and generating signal input related to user setting and function control of the mobile terminal 600 . Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631 . The touch panel 631, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 631 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 631 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 to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave.
其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。Wherein, the display unit 640 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal. The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).
应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。It should be noted that the touch panel 631 can cover the display panel 641 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 660 to determine the type of the touch event, and then the processor 660 provides corresponding visual output on the touch display screen according to the type of the touch event. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.
其中处理器660是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器660可包括一个或多个处理单元。Wherein the processor 660 is the control center of the mobile terminal, utilizes various interfaces and lines to connect the various parts of the whole mobile phone, by running or executing the software programs and/or modules stored in the first memory 621, and calling the software programs and/or modules stored in the second memory The data in 622 executes various functions of the mobile terminal and processes data, so as to monitor the mobile terminal as a whole. Optionally, the processor 660 may include one or more processing units.
在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/给第二存储器622内的数据,检测待拍摄场景的环境亮度值是否处于预设亮度范围内;若检测到环境亮度值处于预设亮度范围内,则控制第一摄像头对待拍摄场景进行对焦处理,并将得到的对焦信息发送至第二摄像头;其中,第一摄像头的感光敏感度高于第二摄像头的感光敏感度;控制第二摄像头根据该对焦信息进行对焦;在第二摄像头对焦完成后,控制第二摄像头采集待拍摄场景的第一图像信息。In the embodiment of the present invention, by calling the software programs and/or modules stored in the first memory 621 and/or data in the second memory 622, it is detected whether the ambient brightness value of the scene to be photographed is within a preset brightness range; If it is detected that the ambient brightness value is within the preset brightness range, the first camera is controlled to focus on the scene to be shot, and the obtained focusing information is sent to the second camera; wherein, the photosensitivity of the first camera is higher than that of the second camera. The photosensitivity of the camera; controlling the second camera to focus according to the focusing information; after the second camera is focused, controlling the second camera to collect the first image information of the scene to be photographed.
具体地,处理器660还用于:通过光感传感器实时采集待拍摄场景的环境亮度信息,对环境亮度信息进行计算,得到待拍摄场景的环境亮度值。Specifically, the processor 660 is further configured to: collect the ambient brightness information of the scene to be photographed in real time through the light sensor, and calculate the ambient brightness information to obtain the ambient brightness value of the scene to be photographed.
具体地,处理器660还用于:当检测到环境亮度值超过预设范围的最大值时,控制第二摄像头对待拍摄场景进行对焦,在第二摄像头对焦完成后,控制第二摄像头采集待拍摄场景的第二图像信息。Specifically, the processor 660 is also used to control the second camera to focus on the scene to be shot when it is detected that the ambient brightness value exceeds the maximum value of the preset range, and control the second camera to capture the scene to be shot after the second camera is focused. The second image information of the scene.
具体地,处理器660还用于:当检测到环境亮度值低于预设范围的最小值时,控制第一摄像头对待拍摄场景进行对焦,在第一摄像头对焦完成后,控制第一摄像头采集待拍摄场景的第三图像信息。Specifically, the processor 660 is also used to: when it is detected that the ambient brightness value is lower than the minimum value of the preset range, control the first camera to focus on the scene to be shot, and after the first camera focuses, control the first camera to acquire The third image information of the shooting scene.
具体地,处理器660还用于:获取第一摄像头采集到的待拍摄场景的待对焦图像,计算待对焦图像中黑白边缘的反差值;当反差值达到最高峰值时,将最高峰值对应的第一摄像头的对焦马达步数和位置信息确定为第一摄像头的对焦信息。Specifically, the processor 660 is also configured to: acquire the image to be focused on the scene to be shot captured by the first camera, and calculate the contrast value of black and white edges in the image to be focused; The step number and position information of the focus motor of a camera are determined as the focus information of the first camera.
本发明实施例的移动终端600,在特定亮度条件下,启动感光敏感度高的第一摄像头进行对焦,并进一步将对焦参数发送至第二摄像头,以使第二摄像头根据该对焦参数进行快速对焦并采集图像,以输出画质清晰的图像,解决了现有技术中在环境亮度低的情况下不能快速对焦和拍摄效果差的问题。The mobile terminal 600 of the embodiment of the present invention starts the first camera with high photosensitivity to focus under certain brightness conditions, and further sends the focus parameters to the second camera, so that the second camera can quickly focus according to the focus parameters And collect images to output images with clear quality, which solves the problems of inability to focus quickly and poor shooting effects in the prior art when the ambient brightness is low.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。What has been described above is a preferred embodiment of the present invention. It should be pointed out that for those skilled in the art, some improvements and modifications can also be made without departing from the principles described in the present invention. within the scope of protection of the invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610842558.3A CN106254682B (en) | 2016-09-22 | 2016-09-22 | A kind of photographing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610842558.3A CN106254682B (en) | 2016-09-22 | 2016-09-22 | A kind of photographing method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106254682A true CN106254682A (en) | 2016-12-21 |
CN106254682B CN106254682B (en) | 2019-07-26 |
Family
ID=57599119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610842558.3A Active CN106254682B (en) | 2016-09-22 | 2016-09-22 | A kind of photographing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106254682B (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107018326A (en) * | 2017-03-31 | 2017-08-04 | 努比亚技术有限公司 | A kind of image pickup method and device |
CN107026979A (en) * | 2017-04-19 | 2017-08-08 | 宇龙计算机通信科技(深圳)有限公司 | Double-camera photographing method and device |
CN107124547A (en) * | 2017-04-19 | 2017-09-01 | 宇龙计算机通信科技(深圳)有限公司 | Double-camera photographing method and device |
CN107124535A (en) * | 2017-04-19 | 2017-09-01 | 宇龙计算机通信科技(深圳)有限公司 | Double-camera photographing method and device |
CN107147848A (en) * | 2017-05-23 | 2017-09-08 | 杭州度康科技有限公司 | Atomatic focusing method and the Real Time Video Acquisition System using this method |
CN107395990A (en) * | 2017-08-31 | 2017-11-24 | 珠海市魅族科技有限公司 | Phase focusing method and device, terminal, computer installation and readable storage medium storing program for executing |
CN107465881A (en) * | 2017-09-30 | 2017-12-12 | 努比亚技术有限公司 | A kind of dual camera focusing method, mobile terminal and computer-readable recording medium |
CN108322651A (en) * | 2018-02-11 | 2018-07-24 | 广东欧珀移动通信有限公司 | Photographing method and device, electronic equipment and computer readable storage medium |
EP3493519A1 (en) * | 2017-11-30 | 2019-06-05 | Guangdong Oppo Mobile Telecommunications Corp., Ltd | Method and device for dual-camera-based imaging and storage medium |
CN109862271A (en) * | 2019-02-27 | 2019-06-07 | 上海创功通讯技术有限公司 | Phase difference focusing method, electronic equipment and computer storage medium |
CN110462617A (en) * | 2017-03-24 | 2019-11-15 | 三星电子株式会社 | For authenticating the electronic device and method of biological data by multiple cameras |
CN110677581A (en) * | 2019-09-24 | 2020-01-10 | 捷开通讯(深圳)有限公司 | Lens switching method and device, storage medium and electronic equipment |
CN112672069A (en) * | 2020-12-24 | 2021-04-16 | 维沃移动通信有限公司 | Exposure method and apparatus |
CN113079310A (en) * | 2020-01-03 | 2021-07-06 | 北京小米移动软件有限公司 | Automatic focusing method, automatic focusing device, electronic equipment and computer readable storage medium |
CN113177426A (en) * | 2021-05-20 | 2021-07-27 | 浙江大华技术股份有限公司 | Two-dimensional code detection method and device |
CN113962869A (en) * | 2020-07-20 | 2022-01-21 | Tcl科技集团股份有限公司 | Moire pattern removing method, device and equipment |
CN114979458A (en) * | 2021-02-26 | 2022-08-30 | 华为技术有限公司 | Image shooting method and electronic equipment |
CN115802153A (en) * | 2021-09-09 | 2023-03-14 | 哲库科技(上海)有限公司 | Image capturing method, device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090322899A1 (en) * | 2004-07-21 | 2009-12-31 | Canon Kabushiki Kaisha | Fail safe image processing apparatus |
CN105245775A (en) * | 2015-09-25 | 2016-01-13 | 小米科技有限责任公司 | Method and device for camera imaging, and mobile terminal |
CN105827970A (en) * | 2016-03-31 | 2016-08-03 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
CN105847693A (en) * | 2016-04-27 | 2016-08-10 | 乐视控股(北京)有限公司 | Shooting method and system based on two-camera focusing |
CN105959574A (en) * | 2016-06-30 | 2016-09-21 | 维沃移动通信有限公司 | Photographing method and mobile terminal |
-
2016
- 2016-09-22 CN CN201610842558.3A patent/CN106254682B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090322899A1 (en) * | 2004-07-21 | 2009-12-31 | Canon Kabushiki Kaisha | Fail safe image processing apparatus |
CN105245775A (en) * | 2015-09-25 | 2016-01-13 | 小米科技有限责任公司 | Method and device for camera imaging, and mobile terminal |
CN105827970A (en) * | 2016-03-31 | 2016-08-03 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
CN105847693A (en) * | 2016-04-27 | 2016-08-10 | 乐视控股(北京)有限公司 | Shooting method and system based on two-camera focusing |
CN105959574A (en) * | 2016-06-30 | 2016-09-21 | 维沃移动通信有限公司 | Photographing method and mobile terminal |
Cited By (30)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110462617A (en) * | 2017-03-24 | 2019-11-15 | 三星电子株式会社 | For authenticating the electronic device and method of biological data by multiple cameras |
CN110462617B (en) * | 2017-03-24 | 2024-01-12 | 三星电子株式会社 | Electronic device and method for authenticating biometric data with multiple cameras |
CN107018326A (en) * | 2017-03-31 | 2017-08-04 | 努比亚技术有限公司 | A kind of image pickup method and device |
CN107018326B (en) * | 2017-03-31 | 2020-10-16 | 努比亚技术有限公司 | Shooting method and device |
CN107026979A (en) * | 2017-04-19 | 2017-08-08 | 宇龙计算机通信科技(深圳)有限公司 | Double-camera photographing method and device |
CN107124547A (en) * | 2017-04-19 | 2017-09-01 | 宇龙计算机通信科技(深圳)有限公司 | Double-camera photographing method and device |
CN107124535A (en) * | 2017-04-19 | 2017-09-01 | 宇龙计算机通信科技(深圳)有限公司 | Double-camera photographing method and device |
CN107124535B (en) * | 2017-04-19 | 2020-11-10 | 宇龙计算机通信科技(深圳)有限公司 | Double-camera shooting method and device |
CN107124547B (en) * | 2017-04-19 | 2020-10-16 | 宇龙计算机通信科技(深圳)有限公司 | Double-camera shooting method and device |
CN107147848B (en) * | 2017-05-23 | 2023-08-25 | 杭州度康科技有限公司 | Automatic focusing method and real-time video acquisition system adopting same |
CN107147848A (en) * | 2017-05-23 | 2017-09-08 | 杭州度康科技有限公司 | Atomatic focusing method and the Real Time Video Acquisition System using this method |
CN107395990A (en) * | 2017-08-31 | 2017-11-24 | 珠海市魅族科技有限公司 | Phase focusing method and device, terminal, computer installation and readable storage medium storing program for executing |
CN107465881A (en) * | 2017-09-30 | 2017-12-12 | 努比亚技术有限公司 | A kind of dual camera focusing method, mobile terminal and computer-readable recording medium |
CN107465881B (en) * | 2017-09-30 | 2020-06-26 | 努比亚技术有限公司 | Dual-camera focusing method, mobile terminal and computer readable storage medium |
EP3493519A1 (en) * | 2017-11-30 | 2019-06-05 | Guangdong Oppo Mobile Telecommunications Corp., Ltd | Method and device for dual-camera-based imaging and storage medium |
US10616459B2 (en) | 2017-11-30 | 2020-04-07 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method and device for dual-camera-based imaging and storage medium |
CN108322651B (en) * | 2018-02-11 | 2020-07-31 | Oppo广东移动通信有限公司 | Photographing method and device, electronic equipment and computer readable storage medium |
CN108322651A (en) * | 2018-02-11 | 2018-07-24 | 广东欧珀移动通信有限公司 | Photographing method and device, electronic equipment and computer readable storage medium |
CN109862271A (en) * | 2019-02-27 | 2019-06-07 | 上海创功通讯技术有限公司 | Phase difference focusing method, electronic equipment and computer storage medium |
CN110677581A (en) * | 2019-09-24 | 2020-01-10 | 捷开通讯(深圳)有限公司 | Lens switching method and device, storage medium and electronic equipment |
CN113079310A (en) * | 2020-01-03 | 2021-07-06 | 北京小米移动软件有限公司 | Automatic focusing method, automatic focusing device, electronic equipment and computer readable storage medium |
CN113079310B (en) * | 2020-01-03 | 2022-11-04 | 北京小米移动软件有限公司 | Automatic focusing method, automatic focusing device, electronic equipment and computer readable storage medium |
CN113962869A (en) * | 2020-07-20 | 2022-01-21 | Tcl科技集团股份有限公司 | Moire pattern removing method, device and equipment |
CN112672069A (en) * | 2020-12-24 | 2021-04-16 | 维沃移动通信有限公司 | Exposure method and apparatus |
CN114979458B (en) * | 2021-02-26 | 2023-08-22 | 华为技术有限公司 | Image shooting method and electronic equipment |
CN114979458A (en) * | 2021-02-26 | 2022-08-30 | 华为技术有限公司 | Image shooting method and electronic equipment |
CN113177426A (en) * | 2021-05-20 | 2021-07-27 | 浙江大华技术股份有限公司 | Two-dimensional code detection method and device |
WO2023036313A1 (en) * | 2021-09-09 | 2023-03-16 | 哲库科技(上海)有限公司 | Image photographing method and apparatus, and computer device and storage medium |
CN115802153A (en) * | 2021-09-09 | 2023-03-14 | 哲库科技(上海)有限公司 | Image capturing method, device, computer equipment and storage medium |
CN115802153B (en) * | 2021-09-09 | 2024-07-26 | 哲库科技(上海)有限公司 | Image shooting method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106254682B (en) | 2019-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106254682B (en) | A kind of photographing method and mobile terminal | |
CN106331510A (en) | A backlight photographing method and mobile terminal | |
CN105898143A (en) | Moving object snapshotting method and mobile terminal | |
WO2019001152A1 (en) | Photographing method and mobile terminal | |
CN107395998A (en) | A kind of image capturing method and mobile terminal | |
CN106937055A (en) | A kind of image processing method and mobile terminal | |
CN106060406A (en) | Photographing method and mobile terminal | |
CN105847674A (en) | Preview image processing method based on mobile terminal, and mobile terminal therein | |
CN106713780A (en) | Control method for flash lamp and mobile terminal | |
CN106060419A (en) | Photographing method and mobile terminal | |
CN107395976A (en) | A kind of acquisition parameters method to set up and mobile terminal | |
CN106454086B (en) | Image processing method and mobile terminal | |
CN106357961A (en) | Photographing method and mobile terminal | |
JP5956836B2 (en) | Imaging apparatus, display control method, and program | |
KR20110006243A (en) | Manual focusing method and device in portable terminal | |
CN106506958B (en) | Method for shooting by adopting mobile terminal and mobile terminal | |
CN106412443A (en) | Shooting method and mobile terminal | |
CN106331484A (en) | A focusing method and mobile terminal | |
CN106095280A (en) | A kind of photographic method and mobile terminal | |
CN107346332A (en) | A kind of image processing method and mobile terminal | |
CN106791809B (en) | A kind of light measuring method and mobile terminal | |
CN105824558B (en) | One kind is taken pictures brightness adjusting method and mobile terminal | |
CN106993139A (en) | A kind of image pickup method and mobile terminal | |
CN106060408A (en) | Photographing method and mobile terminal | |
CN106488140A (en) | A kind of method to set up of camera acquisition parameters and mobile terminal |
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 |