[go: up one dir, main page]

CN107454343A - Photographic method, camera arrangement and terminal - Google Patents

Photographic method, camera arrangement and terminal Download PDF

Info

Publication number
CN107454343A
CN107454343A CN201710816220.5A CN201710816220A CN107454343A CN 107454343 A CN107454343 A CN 107454343A CN 201710816220 A CN201710816220 A CN 201710816220A CN 107454343 A CN107454343 A CN 107454343A
Authority
CN
China
Prior art keywords
camera
exposure time
area
photo
scene
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
CN201710816220.5A
Other languages
Chinese (zh)
Other versions
CN107454343B (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 CN201710816220.5A priority Critical patent/CN107454343B/en
Publication of CN107454343A publication Critical patent/CN107454343A/en
Application granted granted Critical
Publication of CN107454343B publication Critical patent/CN107454343B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

本发明适用于移动通信领域,提供了一种拍照方法、拍照装置及终端。所述方法包括:通过第一摄像头对需要拍摄的场景进行测光;根据测光结果确定最亮区域过曝的曝光时间;根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,所述第一摄像头的曝光时间不等于第二摄像头的曝光时间;根据确定的第一摄像头的曝光时间,以及确定的第二摄像头的曝光时间,通过第一摄像头和第二摄像头同时对需要拍摄的场景进行拍照;合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片。本发明实施例能够输出高动态的照片。

The invention is applicable to the field of mobile communication, and provides a photographing method, a photographing device and a terminal. The method includes: performing photometry on the scene to be photographed by the first camera; determining the exposure time of the brightest area overexposed according to the photometry result; determining the exposure time of the first camera according to the determined overexposed exposure time of the brightest area And the exposure time of the second camera, the exposure time of the first camera is not equal to the exposure time of the second camera; according to the determined exposure time of the first camera and the determined exposure time of the second camera, through the first camera and The second camera simultaneously takes photos of the scene to be photographed; and synthesizes the photo obtained by the first camera of the scene to be photographed and the photo obtained by the second camera of the scene to be photographed. The embodiment of the present invention can output high dynamic photos.

Description

拍照方法、拍照装置及终端Photographing method, photographing device and terminal

技术领域technical field

本发明属于移动通信领域,尤其涉及一种拍照方法、拍照装置及终端。The invention belongs to the field of mobile communication, and in particular relates to a photographing method, photographing device and terminal.

背景技术Background technique

目前,终端(智能手机或平板电脑)集成的功能越来越多,如除了上网功能外,通过在终端上设置摄像头还可实现拍照功能。At present, more and more functions are integrated in the terminal (smart phone or tablet computer). For example, in addition to the Internet access function, the camera function can also be realized by setting a camera on the terminal.

但通过现有的设置在终端的摄像头在拍摄明亮度差异比较大的场景时,在高亮度的区域容易过曝,在低亮度的区域容易欠曝,由于拍摄出来的照片的动态范围过小,因此导致拍摄的照片效果不好。However, when shooting scenes with large brightness differences through the existing cameras installed on the terminal, it is easy to overexpose in high-brightness areas and easy to underexpose in low-brightness areas. Because the dynamic range of the captured photos is too small, As a result, the photos taken are not good.

发明内容Contents of the invention

本发明实施例提供了一种拍照方法、拍照装置及终端,旨在解决现有方法难以获取亮度动态范围大的照片的问题。Embodiments of the present invention provide a photographing method, a photographing device, and a terminal, aiming at solving the problem that it is difficult to obtain photographs with a large dynamic range of brightness in existing methods.

一方面,提供了一种拍照方法,所述方法包括下述步骤:On the one hand, provide a kind of photographing method, described method comprises the following steps:

通过第一摄像头对需要拍摄的场景进行测光;Meter the scene to be photographed through the first camera;

根据测光结果确定最亮区域过曝的曝光时间;Determine the exposure time for the brightest area to be overexposed according to the metering result;

根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,所述第一摄像头的曝光时间不等于第二摄像头的曝光时间;Determine the exposure time of the first camera and the exposure time of the second camera according to the determined overexposed exposure time of the brightest area, and the exposure time of the first camera is not equal to the exposure time of the second camera;

根据确定的第一摄像头的曝光时间,以及确定的第二摄像头的曝光时间,通过第一摄像头和第二摄像头同时对需要拍摄的场景进行拍照;According to the determined exposure time of the first camera and the determined exposure time of the second camera, the scene to be photographed is simultaneously photographed by the first camera and the second camera;

合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片。A photo obtained by taking pictures of the scene to be photographed by the first camera and a photo obtained by taking photos of the scene to be photographed by the second camera are synthesized.

结合第一方面,在第一方面的第一种可能的实现方式中,所述通过第一摄像头对需要拍摄的场景进行测光的步骤具体包括:With reference to the first aspect, in the first possible implementation manner of the first aspect, the step of using the first camera to measure the light of the scene to be photographed specifically includes:

通过第一摄像头获取需要拍摄的场景对应的照片;Obtain the photo corresponding to the scene to be photographed through the first camera;

将获取的照片划分为N*N个区域,N为自然数;Divide the acquired photos into N*N regions, where N is a natural number;

统计划分的区域中的像素点的亮度值,以确定最高亮度值以及最高亮度值所在的区域。The luminance values of the pixels in the divided areas are counted to determine the highest luminance value and the area where the highest luminance value is located.

结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述根据测光结果确定最亮区域过曝的曝光时间的步骤具体包括:With reference to the first possible implementation of the first aspect, in the second possible implementation of the first aspect, the step of determining the overexposed exposure time of the brightest area according to the photometry result specifically includes:

获取第一摄像头的传感器的亮度等级;Obtain the brightness level of the sensor of the first camera;

根据确定的最高亮度值、得到该最高亮度值的曝光时间、以及获取的亮度等级,确定最亮区域过曝的曝光时间。According to the determined highest brightness value, the exposure time for obtaining the highest brightness value, and the acquired brightness level, the exposure time for overexposure of the brightest area is determined.

结合第一方面,或第一方面的第一种可能的实现方式,或第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间的步骤具体包括:In combination with the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, in the third possible implementation of the first aspect, the determined according to The steps of determining the exposure time of the first camera and the exposure time of the second camera specifically include:

采用最亮区域过曝的曝光时间T作为第一摄像头的曝光时间T,所述T大于0;Using the exposure time T of the brightest area overexposed as the exposure time T of the first camera, the T is greater than 0;

采用T/M作为第二摄像头的曝光时间,所述M为大于或等于2,小于或等于10的自然数。T/M is adopted as the exposure time of the second camera, and the M is a natural number greater than or equal to 2 and less than or equal to 10.

结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片的步骤具体包括:With reference to the third possible implementation of the first aspect, in the fourth possible implementation of the first aspect, the synthesis of the photos obtained by taking pictures of the scenes to be taken by the first camera and the pictures to be taken by the second camera The steps of taking pictures of the scenes to obtain the photos specifically include:

确定第一摄像头拍照得到的照片中的过曝区域;Determine the overexposure area in the photo taken by the first camera;

裁减所述确定的过曝区域;cropping said determined overexposed area;

将第二摄像头拍照得到的照片中与裁减的过曝区域对应的区域,与裁减了过曝区域的照片进行合成,得到合成后的照片。Combining the area corresponding to the trimmed over-exposure area in the photo taken by the second camera with the trimmed photo of the over-exposure area to obtain a synthesized photo.

第二方面,提供了一种拍照装置,所述装置包括:In a second aspect, a camera device is provided, the device comprising:

场景测光单元,用于通过第一摄像头对需要拍摄的场景进行测光;The scene light metering unit is used to measure the light of the scene to be photographed through the first camera;

过曝的曝光时间确定单元,用于根据测光结果确定最亮区域过曝的曝光时间;an overexposure exposure time determining unit, configured to determine the overexposure exposure time of the brightest area according to the photometry result;

摄像头的曝光时间确定单元,用于根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,所述第一摄像头的曝光时间不等于第二摄像头的曝光时间;The exposure time determining unit of the camera is used to determine the exposure time of the first camera and the exposure time of the second camera according to the determined overexposure time of the brightest area, and the exposure time of the first camera is not equal to the exposure time of the second camera time;

拍照单元,用于根据确定的第一摄像头的曝光时间,以及确定的第二摄像头的曝光时间,通过第一摄像头和第二摄像头同时对需要拍摄的场景进行拍照;The photographing unit is used to simultaneously take photographs of the scene to be photographed through the first camera and the second camera according to the determined exposure time of the first camera and the determined exposure time of the second camera;

照片合成单元,用于合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片。The photo synthesis unit is configured to synthesize the photo obtained by taking pictures of the scene to be photographed by the first camera and the photo obtained by taking photos of the scene to be photographed by the second camera.

结合第二方面,在第二方面的第一种可能的实现方式中,所述场景测光单元包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the scene light metering unit includes:

照片获取模块,用于通过第一摄像头获取需要拍摄的场景对应的照片;The photo acquisition module is used to obtain the photo corresponding to the scene to be photographed through the first camera;

照片划分模块,用于将获取的照片划分为N*N个区域,N为自然数;The photo division module is used to divide the acquired photos into N*N regions, where N is a natural number;

最高亮度值确定模块,用于统计划分的区域中的像素点的亮度值,以确定最高亮度值以及最高亮度值所在的区域。The highest luminance value determination module is configured to count the luminance values of the pixels in the divided area to determine the highest luminance value and the area where the highest luminance value is located.

结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述过曝的曝光时间确定单元包括:With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the overexposure exposure time determining unit includes:

亮度等级获取模块,用于获取第一摄像头的传感器的亮度等级;A brightness level acquisition module, configured to acquire the brightness level of the sensor of the first camera;

最亮区域过曝的曝光时间确定模块,用于根据确定的最高亮度值、得到该最高亮度值的曝光时间、以及获取的亮度等级,确定最亮区域过曝的曝光时间。The exposure time determining module for overexposure of the brightest area is configured to determine the exposure time for overexposure of the brightest area according to the determined highest brightness value, the exposure time for obtaining the highest brightness value, and the acquired brightness level.

结合第二方面,或第二方面的第一种可能的实现方式,或第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,所述摄像头的曝光时间确定单元包括:In combination with the second aspect, or the first possible implementation of the second aspect, or the second possible implementation of the second aspect, in a third possible implementation of the second aspect, the exposure of the camera The timing unit consists of:

第一摄像头的曝光时间确定模块,用于采用最亮区域过曝的曝光时间T作为第一摄像头的曝光时间T,所述T大于0;The exposure time determination module of the first camera is used to adopt the exposure time T of the brightest area overexposed as the exposure time T of the first camera, and the T is greater than 0;

第二摄像头的曝光时间确定模块,用于采用T/M作为第二摄像头的曝光时间,所述M为大于或等于2,小于或等于10的自然数。The exposure time determination module of the second camera is configured to use T/M as the exposure time of the second camera, where M is a natural number greater than or equal to 2 and less than or equal to 10.

结合第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,所述照片合成单元包括:With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the photo synthesis unit includes:

过曝区域确定模块,用于确定第一摄像头拍照得到的照片中的过曝区域;An overexposure area determination module, configured to determine the overexposure area in the photo obtained by the first camera;

过曝区域裁减模块,用于裁减所述确定的过曝区域;an over-exposure area cutting module, configured to cut the determined over-exposure area;

图像合成模块,用于将第二摄像头拍照得到的照片中与裁减的过曝区域对应的区域,与裁减了过曝区域的照片进行合成,得到合成后的照片。The image synthesis module is used to synthesize the area corresponding to the clipped over-exposure area in the photo taken by the second camera with the photo with the clipped over-exposure area to obtain the synthesized photo.

第三方面,提供了一种终端,所述终端包括上述的拍照装置。In a third aspect, a terminal is provided, and the terminal includes the above-mentioned photographing device.

结合第三方面,在第三方面的第一种可能的实现方式中,所述终端为智能手机或平板电脑。With reference to the third aspect, in a first possible implementation manner of the third aspect, the terminal is a smart phone or a tablet computer.

在本发明实施例中,通过第一摄像头对需要拍摄的场景进行测光,根据测光结果确定最亮区域过曝的曝光时间,根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,根据确定的第一摄像头的曝光时间,以及确定的第二摄像头的曝光时间,同时对需要拍摄的场景进行拍照,合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片。由于对需要拍摄的场景进行测光,因此能够确定需要拍摄的场景中最亮区域过曝的曝光时间,从而能够根据最亮区域过曝的曝光时间确定第一摄像头和第二摄像头的曝光时间,并根据确定的曝光时间同时对同一场景进行拍摄,且由于第一摄像头的曝光时间和第二摄像头的曝光时间不同,因此,将第一摄像头拍摄的照片与第二摄像头拍摄的照片进行合成后,能够得到更高动态的照片,从而能够清晰呈现明亮度差异比较大的场景。In the embodiment of the present invention, the scene to be photographed is metered by the first camera, the exposure time of the brightest area is determined according to the photometry result, and the exposure time of the first camera is determined according to the determined exposure time of the brightest area. The exposure time and the exposure time of the second camera, according to the determined exposure time of the first camera and the determined exposure time of the second camera, simultaneously take pictures of the scene to be shot, and synthesize the first camera to take pictures of the scene to be shot The obtained photo and the photo obtained by taking pictures of the scene to be photographed by the second camera. Since the scene to be shot is metered, the exposure time of the brightest area in the scene to be shot can be determined, so that the exposure time of the first camera and the second camera can be determined according to the exposure time of the brightest area. And shoot the same scene at the same time according to the determined exposure time, and because the exposure time of the first camera and the exposure time of the second camera are different, after combining the photos taken by the first camera and the photos taken by the second camera, Higher dynamic photos can be obtained, so that scenes with large brightness differences can be clearly presented.

附图说明Description of drawings

图1是本发明第一实施例提供的一种拍照方法的流程图;Fig. 1 is a flowchart of a photographing method provided by the first embodiment of the present invention;

图2是本发明第二实施例提供的一种拍照装置的结构图。Fig. 2 is a structural diagram of a photographing device provided by a second embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例中,通过第一摄像头对需要拍摄的场景进行测光,根据测光结果确定最亮区域过曝的曝光时间,根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,根据确定的第一摄像头的曝光时间,以及确定的第二摄像头的曝光时间,同时对需要拍摄的场景进行拍照,合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片。In the embodiment of the present invention, the scene to be photographed is metered by the first camera, the exposure time of the brightest area is determined according to the photometry result, and the exposure time of the first camera is determined according to the determined exposure time of the brightest area. time and the exposure time of the second camera, according to the determined exposure time of the first camera and the determined exposure time of the second camera, the scene to be shot is taken at the same time, and the scene to be shot is synthesized by the first camera to obtain The photo and the photo obtained by taking pictures of the scene to be shot by the second camera.

为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

实施例一:Embodiment one:

图1示出了本发明第一实施例提供的一种拍照方法的流程图,在本发明实施例中,终端的同一面上设置有两个摄像头:第一摄像头和第二摄像头。通过第一摄像头和第二摄像头同时拍摄同一场景,得到两张曝光程度不同的照片,再根据得到的两张曝光程度不同的两张照片合成最终的照片,详述如下:Fig. 1 shows a flow chart of a photographing method provided by the first embodiment of the present invention. In the embodiment of the present invention, two cameras are arranged on the same surface of the terminal: a first camera and a second camera. The same scene is captured by the first camera and the second camera at the same time, and two photos with different exposure levels are obtained, and then the final photo is synthesized based on the two obtained two photos with different exposure levels. The details are as follows:

步骤S11,通过第一摄像头对需要拍摄的场景进行测光。Step S11 , metering the scene to be photographed through the first camera.

在第一摄像头测光之前,可先调整第一摄像头和第二摄像头的参数,保证该第一摄像头和第二摄像头的视场角相同,以便该第一摄像头和第二摄像头能够拍摄到相同的场景,从而有利于后续的照片合成。Before the photometry of the first camera, the parameters of the first camera and the second camera can be adjusted to ensure that the field angles of the first camera and the second camera are the same, so that the first camera and the second camera can capture the same scene, which is beneficial to the subsequent photo synthesis.

其中,所述步骤S11,通过第一摄像头对需要拍摄的场景进行测光的步骤具体包括:Wherein, the step S11, the step of measuring the scene to be photographed through the first camera specifically includes:

A1、通过第一摄像头获取需要拍摄的场景对应的照片。具体地,通过第一摄像头拍摄场景,进而获取该场景对应的照片。A1. Obtain the photo corresponding to the scene to be photographed through the first camera. Specifically, a scene is photographed by the first camera, and then a photo corresponding to the scene is acquired.

A2、将获取的照片划分为N*N个区域,N为自然数。将获取的照片划分为多个区域,有利于分析该照片亮的部分和暗的部分所在的坐标。其中,N为自然数,其可以取值为4,当N=4时,将获取的照片划分为16个区域,当然,N也可以取为其他值,此处不作限定。A2. Divide the acquired photos into N*N areas, where N is a natural number. Dividing the acquired photo into multiple regions is beneficial for analyzing the coordinates of the bright and dark parts of the photo. Wherein, N is a natural number, which can take a value of 4. When N=4, the acquired photo is divided into 16 regions. Of course, N can also take other values, which are not limited here.

A3、统计划分的区域中的像素点的亮度值,以确定最高亮度值以及最高亮度值所在的区域。具体地,像素点的亮度值可直接从曝光完成的照片中读取。其中,该步骤的最高亮度值可为像素点的最高亮度值,也可以为划分的区域包含的像素点的亮度平均值的最高亮度值。当最高亮度值为像素点的最高亮度值时,可通过逐个比较像素点的亮度值确定;当最高亮度值为划分的区域包含的像素点的亮度平均值的最高亮度值时,可先确定各个区域包含的像素点的亮度值的平均值,再通过比较得到的各个区域的亮度值的平均值确定。A3. Count the luminance values of the pixels in the divided areas to determine the highest luminance value and the area where the highest luminance value is located. Specifically, the brightness value of a pixel can be directly read from the exposed photo. Wherein, the highest luminance value in this step may be the highest luminance value of a pixel, or may be the highest luminance value of average brightness values of pixels included in the divided area. When the highest brightness value is the highest brightness value of the pixel, it can be determined by comparing the brightness values of the pixels one by one; The average value of the luminance values of the pixels included in the area is determined by comparing the average values of the luminance values of each area obtained.

步骤S12,根据测光结果确定最亮区域过曝的曝光时间。Step S12, determining the exposure time for overexposure of the brightest area according to the photometry result.

该步骤的最亮区域也为需要拍摄的场景中的最亮区域。The brightest area in this step is also the brightest area in the scene to be photographed.

其中,所述步骤S12,根据测光结果确定最亮区域过曝的曝光时间的步骤具体包括:Wherein, the step S12, the step of determining the exposure time of the brightest area overexposed according to the photometry result specifically includes:

B1、获取第一摄像头的传感器的亮度等级。每个摄像头的传感器都有其对应的亮度等级,亮度等级越高,对应的最高亮度值也越大。例如,假设第一摄像头的传感器的亮度等级为10,则该第一摄像头拍摄的照片的亮度值范围为0~1024。B1. Obtain the brightness level of the sensor of the first camera. Each camera sensor has its corresponding brightness level, the higher the brightness level, the greater the corresponding maximum brightness value. For example, assuming that the brightness level of the sensor of the first camera is 10, the brightness value range of the photos taken by the first camera is 0-1024.

B2、根据确定的最高亮度值、得到该最高亮度值的曝光时间、以及获取的亮度等级,确定最亮区域过曝的曝光时间。具体地,确定的最高亮度值和得到该最高亮度值的曝光时间的比值,与,获取的亮度等级对应的最大亮度值和最亮区域过曝的曝光时间的比值,对应成比例。例如,假设第一摄像头的传感器的亮度等级为10,则在亮度等级为10时,对应的最高亮度值为1024。假设确定的最高亮度值为500(该“500”可以指代像素点的像素值,也可以指代区域的像素值的平均值),得到“500”的曝光时间为50ms,则500/50=1024X,在该“500”指代像素点的像素值时,该最高亮度值“500”所对应的像素点所在区域的过曝的曝光时间为:X=102.4ms。在该“500”指代区域的像素值的平均值时,该最高亮度值“500”所对应的区域的过曝的曝光时间为:X=102.4ms。B2. Determine the exposure time for overexposure of the brightest area according to the determined highest brightness value, the exposure time for obtaining the highest brightness value, and the acquired brightness level. Specifically, the ratio of the determined highest brightness value to the exposure time for obtaining the highest brightness value is proportional to the ratio of the maximum brightness value corresponding to the obtained brightness level to the exposure time for over-exposing the brightest area. For example, assuming that the brightness level of the sensor of the first camera is 10, when the brightness level is 10, the corresponding highest brightness value is 1024. Assuming that the determined highest brightness value is 500 (the "500" can refer to the pixel value of a pixel point, or the average value of the pixel value of an area), and the exposure time of "500" is 50ms, then 500/50= 1024X, when the "500" refers to the pixel value of the pixel point, the overexposure exposure time of the area where the pixel point corresponding to the highest brightness value "500" is: X=102.4ms. When the "500" refers to the average value of the pixel values in the area, the overexposure exposure time of the area corresponding to the highest brightness value "500" is: X=102.4ms.

步骤S13,根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,所述第一摄像头的曝光时间不等于第二摄像头的曝光时间。Step S13, determining the exposure time of the first camera and the exposure time of the second camera according to the determined exposure time of overexposure of the brightest area, the exposure time of the first camera is not equal to the exposure time of the second camera.

在该步骤中,为了获取高动态的照片,通常使第一摄像头的曝光时间和第二摄像头的曝光时间的不同。In this step, in order to obtain high-dynamic photos, the exposure time of the first camera is generally different from the exposure time of the second camera.

可选地,可使第一摄像头的曝光时间大于第二摄像头的曝光时间,这时,所述步骤S13,根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间的步骤具体包括:Optionally, the exposure time of the first camera can be made longer than the exposure time of the second camera. At this time, the step S13 determines the exposure time of the first camera and the exposure time of the second camera according to the determined overexposed exposure time of the brightest area. The steps of the exposure time specifically include:

C1、采用最亮区域过曝的曝光时间T作为第一摄像头的曝光时间T,所述T大于0。例如,假设最亮区域过曝的曝光时间为100ms,则设定第一摄像头的曝光时间也为100ms。C1. Use the exposure time T of the brightest area overexposed as the exposure time T of the first camera, where T is greater than 0. For example, assuming that the exposure time for overexposure of the brightest area is 100 ms, the exposure time of the first camera is also set to 100 ms.

C2、采用T/M作为第二摄像头的曝光时间,所述M为大于或等于2,小于或等于10的自然数。C2. Using T/M as the exposure time of the second camera, where M is a natural number greater than or equal to 2 and less than or equal to 10.

步骤S14,根据确定的第一摄像头的曝光时间,以及确定的第二摄像头的曝光时间,通过第一摄像头和第二摄像头同时对需要拍摄的场景进行拍照。In step S14, according to the determined exposure time of the first camera and the determined exposure time of the second camera, the scene to be photographed is simultaneously photographed by the first camera and the second camera.

在该步骤中,当第一摄像头的曝光时间为确定的最亮区域过曝的曝光时间时,能够将暗的区域拍出最高的亮度,但是将最亮区域拍出过曝,或者接近过曝的亮度(即拍成发白、不清晰的亮度)。当第二摄像头的曝光时间小于第一摄像头的曝光时间(成倍数下降)时,该第二摄像头可以将最亮区域拍得清晰明亮且不过曝。In this step, when the exposure time of the first camera is the determined exposure time for overexposure of the brightest area, the dark area can be photographed with the highest brightness, but the brightest area can be overexposed or close to overexposed Brightness (that is, the brightness that is whitish and unclear when photographed). When the exposure time of the second camera is shorter than the exposure time of the first camera (decreased by multiples), the second camera can capture the brightest area clearly and brightly without overexposure.

步骤S15,合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片。Step S15, synthesizing the photo obtained by taking pictures of the scene to be photographed by the first camera and the photo obtained by taking photos of the scene to be photographed by the second camera.

在该步骤中,将第一摄像头拍摄的非最亮区域与第二摄像头拍摄的最亮区域合成为一个新的照片。In this step, the non-brightest area captured by the first camera and the brightest area captured by the second camera are synthesized into a new photo.

可选地,所述步骤S15,合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片的步骤具体包括:Optionally, in the step S15, the step of synthesizing the photo obtained by taking pictures of the scene to be photographed by the first camera and the photo obtained by taking photos of the scene to be photographed by the second camera specifically includes:

D1、确定第一摄像头拍照得到的照片中的过曝区域。在像素点的亮度值大于或接近于像素点设定的最高亮度值时(如在亮度等级为10时,像素点设定的最高亮度值为1024),表明该像素点过曝。在该步骤中,首先获取拍照得到的像素点的亮度值,再将该像素点的亮度值与该像素点设定的最高亮度值比较,若两者的差值在一个阈值范围内,则判定该像素点过曝,即判定该像素点所在的区域过曝。其中,像素点所在的区域是指步骤A2划分的区域中的某一个区域。D1. Determine the overexposure area in the photo taken by the first camera. When the brightness value of a pixel is greater than or close to the maximum brightness value set for the pixel (for example, when the brightness level is 10, the maximum brightness value set for the pixel is 1024), indicating that the pixel is overexposed. In this step, first obtain the brightness value of the pixel point obtained by taking pictures, and then compare the brightness value of the pixel point with the highest brightness value set for the pixel point, if the difference between the two is within a threshold range, then determine The pixel is overexposed, that is, it is determined that the area where the pixel is located is overexposed. Wherein, the area where the pixel points are located refers to a certain area in the area divided in step A2.

D2、裁减所述确定的过曝区域。具体地,根据步骤A2划分的区域的边界裁减确定的过曝区域。D2. Clipping the determined overexposure area. Specifically, the determined overexposure area is trimmed according to the boundary of the area divided in step A2.

D3、将第二摄像头拍照得到的照片中与裁减的过曝区域对应的区域,与裁减了过曝区域的照片进行合成,得到合成后的照片。具体地,确定第二摄像头拍照得到的照片中,与第一摄像头拍照得到的照片中需要裁减的区域对应的区域,再将确定的区域与第一摄像头拍照得到的裁减了过曝区域的照片进行合成,得到最终的照片,并输出。例如,假设第一摄像头拍摄的照片划分为Y1~Y16个区域,第二摄像头拍摄的照片划分为Z1~Z16个区域,且第一摄像头拍摄的照片中的Y1、Y2两个区域为过曝区域,则将第二摄像头拍摄的照片中的Z1、Z2(分别与Y1、Y2对应)与第一摄像头拍摄的照片中的Y3~Y16进行图片合成,得到最终的照片。D3. Synthesizing the area corresponding to the clipped over-exposed area in the photo taken by the second camera with the photo with the clipped over-exposed area to obtain a composited photo. Specifically, determine the area corresponding to the area that needs to be trimmed in the photo taken by the first camera in the photo taken by the second camera, and then compare the determined area with the photo taken by the first camera and cut the overexposed area. Synthesize to get the final photo and output it. For example, suppose the photos taken by the first camera are divided into Y1~Y16 areas, the photos taken by the second camera are divided into Z1~Z16 areas, and the two areas Y1 and Y2 in the photos taken by the first camera are overexposed areas , Z1 and Z2 (corresponding to Y1 and Y2 respectively) in the photo taken by the second camera are combined with Y3-Y16 in the photo taken by the first camera to obtain the final photo.

在本发明第一实施例中,通过第一摄像头对需要拍摄的场景进行测光,根据测光结果确定最亮区域过曝的曝光时间,根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,根据确定的第一摄像头的曝光时间,以及确定的第二摄像头的曝光时间,同时对需要拍摄的场景进行拍照,合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片。由于对需要拍摄的场景进行测光,因此能够确定需要拍摄的场景中最亮区域过曝的曝光时间,从而能够根据最亮区域过曝的曝光时间确定第一摄像头和第二摄像头的曝光时间,并根据确定的曝光时间同时对同一场景进行拍摄,且由于第一摄像头的曝光时间和第二摄像头的曝光时间不同,因此,将第一摄像头拍摄的照片与第二摄像头拍摄的照片进行合成后,能够得到更高动态的照片,从而能够清晰呈现明亮度差异比较大的场景。In the first embodiment of the present invention, the scene to be photographed is metered by the first camera, and the exposure time of the brightest area overexposed is determined according to the photometry result, and the first exposure time of the brightest area is determined according to the determined exposure time of the brightest area The exposure time of the camera and the exposure time of the second camera, according to the determined exposure time of the first camera and the determined exposure time of the second camera, simultaneously take pictures of the scenes to be photographed, and synthesize the scene to be photographed by the first camera The photos obtained by taking photos and the photos obtained by taking photos of the scene to be shot by the second camera. Since the scene to be shot is metered, the exposure time of the brightest area in the scene to be shot can be determined, so that the exposure time of the first camera and the second camera can be determined according to the exposure time of the brightest area. And shoot the same scene at the same time according to the determined exposure time, and because the exposure time of the first camera and the exposure time of the second camera are different, after combining the photos taken by the first camera and the photos taken by the second camera, Higher dynamic photos can be obtained, so that scenes with large brightness differences can be clearly presented.

应理解,在本发明实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, rather than the implementation process of the embodiment of the present invention. constitute any limitation.

实施例二:Embodiment two:

图2示出了本发明第二实施例提供的一种拍照装置的结构图,该拍照装置可以应用于终端中,该终端可以包括经无线接入网RAN与一个或多个核心网进行通信的用户设备,该用户设备可以是移动电话(或称为“蜂窝”电话)、具有移动设备的计算机等,例如,用户设备还可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语音和/或数据。又例如,该终端可以包括智能手机、平板电脑、个人数字助理PDA、销售终端POS或车载电脑等。FIG. 2 shows a structural diagram of a photographing device provided by a second embodiment of the present invention. The photographing device can be applied to a terminal, and the terminal can include a radio access network (RAN) for communicating with one or more core networks. User equipment, which may be a mobile phone (or "cellular" phone), a computer with a mobile device, etc. For example, the user equipment may also be a portable, pocket, hand-held, computer-built-in, or vehicle-mounted mobile device , which exchange voice and/or data with the radio access network. For another example, the terminal may include a smart phone, a tablet computer, a personal digital assistant PDA, a sales terminal POS, or a vehicle-mounted computer.

该拍照装置包括:场景测光单元21、过曝的曝光时间确定单元22、摄像头的曝光时间确定单元23、拍照单元24、照片合成单元25。其中:The photographing device includes: a scene metering unit 21 , an overexposure exposure time determination unit 22 , a camera exposure time determination unit 23 , a photographing unit 24 , and a photo synthesis unit 25 . in:

场景测光单元21,用于通过第一摄像头对需要拍摄的场景进行测光。The scene light metering unit 21 is configured to measure the light of the scene to be photographed through the first camera.

其中,所述场景测光单元21包括:Wherein, the scene light metering unit 21 includes:

照片获取模块,用于通过第一摄像头获取需要拍摄的场景对应的照片。具体地,通过第一摄像头拍摄场景,进而获取该场景对应的照片。The photo acquisition module is configured to acquire the photo corresponding to the scene to be photographed through the first camera. Specifically, a scene is photographed by the first camera, and then a photo corresponding to the scene is acquired.

照片划分模块,用于将获取的照片划分为N*N个区域,N为自然数。其中,N为自然数,其可以取值为4,当N=4时,将获取的照片划分为16个区域,当然,N也可以取为其他值,此处不作限定。The photo division module is used to divide the obtained photos into N*N regions, where N is a natural number. Wherein, N is a natural number, which can take a value of 4. When N=4, the acquired photo is divided into 16 regions. Of course, N can also take other values, which are not limited here.

最高亮度值确定模块,用于统计划分的区域中的像素点的亮度值,以确定最高亮度值以及最高亮度值所在的区域。其中,最高亮度值可为像素点的最高亮度值,也可以为划分的区域包含的像素点的亮度平均值的最高亮度值。当最高亮度值为像素点的最高亮度值时,可通过逐个比较像素点的亮度值确定;当最高亮度值为划分的区域包含的像素点的亮度平均值的最高亮度值时,可先确定各个区域包含的像素点的亮度值的平均值,再通过比较得到的各个区域的亮度值的平均值确定。The highest luminance value determination module is configured to count the luminance values of the pixels in the divided area to determine the highest luminance value and the area where the highest luminance value is located. Wherein, the highest luminance value may be the highest luminance value of a pixel, or may be the highest luminance value of average brightness values of pixels included in the divided area. When the highest brightness value is the highest brightness value of the pixel, it can be determined by comparing the brightness values of the pixels one by one; The average value of the luminance values of the pixels included in the area is determined by comparing the average values of the luminance values of each area obtained.

过曝的曝光时间确定单元22,用于根据测光结果确定最亮区域过曝的曝光时间。The overexposure exposure time determining unit 22 is configured to determine the overexposure exposure time of the brightest area according to the photometry result.

其中,最亮区域为需要拍摄的场景中的最亮区域。Wherein, the brightest area is the brightest area in the scene to be photographed.

其中,所述过曝的曝光时间确定单元22包括:Wherein, the exposure time determining unit 22 of the overexposure includes:

亮度等级获取模块,用于获取第一摄像头的传感器的亮度等级。每个摄像头的传感器都有其对应的亮度等级,亮度等级越高,对应的最高亮度值也越大。The brightness level acquiring module is configured to acquire the brightness level of the sensor of the first camera. Each camera sensor has its corresponding brightness level, the higher the brightness level, the greater the corresponding maximum brightness value.

最亮区域过曝的曝光时间确定模块,用于根据确定的最高亮度值、得到该最高亮度值的曝光时间、以及获取的亮度等级,确定最亮区域过曝的曝光时间。具体地,确定的最高亮度值和得到该最高亮度值的曝光时间的比值,与,获取的亮度等级对应的最大亮度值和最亮区域过曝的曝光时间的比值,对应成比例。The exposure time determining module for overexposure of the brightest area is configured to determine the exposure time for overexposure of the brightest area according to the determined highest brightness value, the exposure time for obtaining the highest brightness value, and the acquired brightness level. Specifically, the ratio of the determined highest brightness value to the exposure time for obtaining the highest brightness value is proportional to the ratio of the maximum brightness value corresponding to the obtained brightness level to the exposure time for over-exposing the brightest area.

摄像头的曝光时间确定单元23,用于根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,所述第一摄像头的曝光时间不等于第二摄像头的曝光时间。The exposure time determination unit 23 of the camera is configured to determine the exposure time of the first camera and the exposure time of the second camera according to the determined overexposed exposure time of the brightest area, and the exposure time of the first camera is not equal to the exposure time of the second camera. exposure time.

其中,在第一摄像头的曝光时间大于第二摄像头的曝光时间时,所述摄像头的曝光时间确定单元23包括:Wherein, when the exposure time of the first camera is greater than the exposure time of the second camera, the exposure time determination unit 23 of the camera includes:

第一摄像头的曝光时间确定模块,用于采用最亮区域过曝的曝光时间T作为第一摄像头的曝光时间T,所述T大于0。The exposure time determining module of the first camera is configured to use the exposure time T of the brightest area overexposed as the exposure time T of the first camera, where T is greater than 0.

第二摄像头的曝光时间确定模块,用于采用T/M作为第二摄像头的曝光时间,所述M为大于或等于2,小于或等于10的自然数。The exposure time determination module of the second camera is configured to use T/M as the exposure time of the second camera, where M is a natural number greater than or equal to 2 and less than or equal to 10.

拍照单元24,用于根据确定的第一摄像头的曝光时间,以及确定的第二摄像头的曝光时间,通过第一摄像头和第二摄像头同时对需要拍摄的场景进行拍照。The photographing unit 24 is configured to simultaneously photograph the scene to be photographed through the first camera and the second camera according to the determined exposure time of the first camera and the determined exposure time of the second camera.

当第一摄像头的曝光时间为确定的最亮区域过曝的曝光时间时,能够将暗的区域拍出最高的亮度,但是将最亮区域拍出过曝,或者接近过曝的亮度(即拍成发白、不清晰的亮度)。当第二摄像头的曝光时间小于第一摄像头的曝光时间(成倍数下降)时,该第二摄像头可以将最亮区域拍得清晰明亮且不过曝。When the exposure time of the first camera is the exposure time determined to overexpose the brightest area, the highest brightness can be taken in the dark area, but the brightest area can be overexposed or close to the overexposed brightness (ie into a whitish, unclear brightness). When the exposure time of the second camera is shorter than the exposure time of the first camera (decreased by multiples), the second camera can capture the brightest area clearly and brightly without overexposure.

照片合成单元25,用于合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片。The photo synthesis unit 25 is configured to synthesize a photo obtained by taking pictures of the scene to be photographed by the first camera and a photo obtained by taking photos of the scene to be photographed by the second camera.

其中,所述照片合成单元25包括:Wherein, the photo synthesis unit 25 includes:

过曝区域确定模块,用于确定第一摄像头拍照得到的照片中的过曝区域。具体地,首先获取拍照得到的像素点的亮度值,再将该像素点的亮度值与该像素点设定的最高亮度值比较,若两者的差值在一个阈值范围内,则判定该像素点过曝,即判定该像素点所在的区域过曝。其中,像素点所在的区域是指步骤A2划分的区域中的某一个区域。The overexposure area determination module is used to determine the overexposure area in the photo taken by the first camera. Specifically, first obtain the brightness value of the pixel point obtained by taking pictures, and then compare the brightness value of the pixel point with the highest brightness value set for the pixel point, and if the difference between the two is within a threshold range, the pixel is determined to be Point overexposure means that the area where the pixel is located is determined to be overexposed. Wherein, the area where the pixel points are located refers to a certain area in the area divided in step A2.

过曝区域裁减模块,用于裁减所述确定的过曝区域。The over-exposure area cutting module is used for cutting the determined over-exposure area.

图像合成模块,用于将第二摄像头拍照得到的照片中与裁减的过曝区域对应的区域,与裁减了过曝区域的照片进行合成,得到合成后的照片。具体地,确定第二摄像头拍照得到的照片中,与第一摄像头拍照得到的照片中需要裁减的区域对应的区域,再将确定的区域与第一摄像头拍照得到的裁减了过曝区域的照片进行合成,得到最终的照片,并输出。The image synthesis module is used to synthesize the area corresponding to the clipped over-exposure area in the photo taken by the second camera with the photo with the clipped over-exposure area to obtain the synthesized photo. Specifically, determine the area corresponding to the area that needs to be trimmed in the photo taken by the first camera in the photo taken by the second camera, and then compare the determined area with the photo taken by the first camera and cut the overexposed area. Synthesize to get the final photo and output it.

在本发明第二实施例中,由于对需要拍摄的场景进行测光,因此能够确定需要拍摄的场景中最亮区域过曝的曝光时间,从而能够根据最亮区域过曝的曝光时间确定第一摄像头和第二摄像头的曝光时间,并根据确定的曝光时间同时对同一场景进行拍摄,且由于第一摄像头的曝光时间和第二摄像头的曝光时间不同,因此,将第一摄像头拍摄的照片与第二摄像头拍摄的照片进行合成后,能够得到更高动态的照片,从而能够清晰呈现明亮度差异比较大的场景。In the second embodiment of the present invention, since the scene to be photographed is metered, the exposure time of the brightest area in the scene to be photographed can be determined, so that the first exposure time can be determined according to the exposure time of the brightest area. The exposure time of the camera and the second camera, and shoot the same scene at the same time according to the determined exposure time, and because the exposure time of the first camera is different from the exposure time of the second camera, the photos taken by the first camera and the second camera After the photos taken by the two cameras are synthesized, more dynamic photos can be obtained, so that scenes with large brightness differences can be clearly presented.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。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. Skilled artisans 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 several embodiments provided in this application, it should be understood that the disclosed systems, 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,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。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: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

1.一种拍照方法,其特征在于,所述方法包括:1. A method for taking pictures, characterized in that the method comprises: 通过第一摄像头对需要拍摄的场景进行测光;Meter the scene to be photographed through the first camera; 根据测光结果确定最亮区域过曝的曝光时间;Determine the exposure time for the brightest area to be overexposed according to the metering result; 根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,所述第一摄像头的曝光时间不等于第二摄像头的曝光时间;Determine the exposure time of the first camera and the exposure time of the second camera according to the determined overexposed exposure time of the brightest area, and the exposure time of the first camera is not equal to the exposure time of the second camera; 根据确定的第一摄像头的曝光时间,以及确定的第二摄像头的曝光时间,通过第一摄像头和第二摄像头同时对需要拍摄的场景进行拍照;According to the determined exposure time of the first camera and the determined exposure time of the second camera, the scene to be photographed is simultaneously photographed by the first camera and the second camera; 合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片;Synthesizing the photo obtained by taking pictures of the scene to be shot by the first camera and the photo obtained by taking pictures of the scene to be shot by the second camera; 所述通过第一摄像头对需要拍摄的场景进行测光,具体包括:The photometry of the scene to be photographed by the first camera specifically includes: 通过第一摄像头获取需要拍摄的场景对应的照片;Obtain the photo corresponding to the scene to be photographed through the first camera; 将获取的照片划分为N*N个区域,N为自然数;Divide the acquired photos into N*N regions, where N is a natural number; 统计划分的区域中的像素点的亮度值,以确定最高亮度值以及最高亮度值所在的区域。The luminance values of the pixels in the divided areas are counted to determine the highest luminance value and the area where the highest luminance value is located. 2.根据权利要求1所述的方法,其特征在于,所述根据测光结果确定最亮区域过曝的曝光时间,具体包括:2. The method according to claim 1, wherein the determining the overexposed exposure time of the brightest area according to the photometry results specifically comprises: 获取第一摄像头的传感器的亮度等级;Obtain the brightness level of the sensor of the first camera; 根据确定的最高亮度值、得到该最高亮度值的曝光时间、以及获取的亮度等级,确定最亮区域过曝的曝光时间。According to the determined highest brightness value, the exposure time for obtaining the highest brightness value, and the acquired brightness level, the exposure time for overexposure of the brightest area is determined. 3.根据权利要求1或2所述的方法,其特征在于,所述根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,具体包括:3. The method according to claim 1 or 2, wherein the determining the exposure time of the first camera and the exposure time of the second camera according to the determined overexposed exposure time of the brightest area specifically includes: 采用最亮区域过曝的曝光时间T作为第一摄像头的曝光时间T,所述T大于0;Using the exposure time T of the brightest area overexposed as the exposure time T of the first camera, the T is greater than 0; 采用T/M作为第二摄像头的曝光时间,所述M为大于或等于2,小于或等于10的自然数。T/M is adopted as the exposure time of the second camera, and the M is a natural number greater than or equal to 2 and less than or equal to 10. 4.根据权利要求3所述的方法,其特征在于,所述合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片,具体包括:4. The method according to claim 3, wherein said synthesizing the photo obtained by taking pictures of the scene to be photographed by the first camera and the photo obtained by photographing the scene to be photographed by the second camera specifically includes: 确定第一摄像头拍照得到的照片中的过曝区域;Determine the overexposure area in the photo taken by the first camera; 裁减所述确定的过曝区域;cropping said determined overexposed area; 将第二摄像头拍照得到的照片中与裁减的过曝区域对应的区域,与裁减了过曝区域的照片进行合成,得到合成后的照片。Combining the area corresponding to the trimmed over-exposure area in the photo taken by the second camera with the trimmed photo of the over-exposure area to obtain a synthesized photo. 5.一种拍照装置,其特征在于,所述装置包括:5. A camera device, characterized in that the device comprises: 场景测光单元,用于通过第一摄像头对需要拍摄的场景进行测光;The scene light metering unit is used to measure the light of the scene to be photographed through the first camera; 过曝的曝光时间确定单元,用于根据测光结果确定最亮区域过曝的曝光时间;an overexposure exposure time determining unit, configured to determine the overexposure exposure time of the brightest area according to the photometry result; 摄像头的曝光时间确定单元,用于根据确定的最亮区域过曝的曝光时间确定第一摄像头的曝光时间以及第二摄像头的曝光时间,所述第一摄像头的曝光时间不等于第二摄像头的曝光时间;The exposure time determining unit of the camera is used to determine the exposure time of the first camera and the exposure time of the second camera according to the determined overexposure time of the brightest area, and the exposure time of the first camera is not equal to the exposure time of the second camera time; 拍照单元,用于根据确定的第一摄像头的曝光时间,以及确定的第二摄像头的曝光时间,通过第一摄像头和第二摄像头同时对需要拍摄的场景进行拍照;The photographing unit is used to simultaneously take photographs of the scene to be photographed through the first camera and the second camera according to the determined exposure time of the first camera and the determined exposure time of the second camera; 照片合成单元,用于合成第一摄像头对需要拍摄的场景进行拍照得到的照片和第二摄像头对需要拍摄的场景进行拍照得到的照片;The photo synthesis unit is used for synthesizing the photo obtained by taking pictures of the scene to be taken by the first camera and the photo obtained by taking pictures of the scene to be taken by the second camera; 所述场景测光单元包括:The scene light metering unit includes: 照片获取模块,用于通过第一摄像头获取需要拍摄的场景对应的照片;The photo acquisition module is used to obtain the photo corresponding to the scene to be photographed through the first camera; 照片划分模块,用于将获取的照片划分为N*N个区域,N为自然数;The photo division module is used to divide the obtained photos into N*N regions, where N is a natural number; 最高亮度值确定模块,用于统计划分的区域中的像素点的亮度值,以确定最高亮度值以及最高亮度值所在的区域。The highest luminance value determination module is configured to count the luminance values of the pixels in the divided area to determine the highest luminance value and the area where the highest luminance value is located. 6.根据权利要求5所述的装置,其特征在于,所述过曝的曝光时间确定单元包括:6. The device according to claim 5, wherein the overexposure exposure time determining unit comprises: 亮度等级获取模块,用于获取第一摄像头的传感器的亮度等级;A brightness level acquisition module, configured to acquire the brightness level of the sensor of the first camera; 最亮区域过曝的曝光时间确定模块,用于根据确定的最高亮度值、得到该最高亮度值的曝光时间、以及获取的亮度等级,确定最亮区域过曝的曝光时间。The exposure time determining module for overexposure of the brightest area is configured to determine the exposure time for overexposure of the brightest area according to the determined highest brightness value, the exposure time for obtaining the highest brightness value, and the acquired brightness level. 7.根据权利要求5或6所述的装置,其特征在于,所述摄像头的曝光时间确定单元包括:7. The device according to claim 5 or 6, wherein the exposure time determining unit of the camera comprises: 第一摄像头的曝光时间确定模块,用于采用最亮区域过曝的曝光时间T作为第一摄像头的曝光时间T,所述T大于0;The exposure time determination module of the first camera is used to adopt the exposure time T of the brightest area overexposed as the exposure time T of the first camera, and the T is greater than 0; 第二摄像头的曝光时间确定模块,用于采用T/M作为第二摄像头的曝光时间,所述M为大于或等于2,小于或等于10的自然数。The exposure time determination module of the second camera is configured to use T/M as the exposure time of the second camera, where M is a natural number greater than or equal to 2 and less than or equal to 10. 8.根据权利要求7所述的装置,其特征在于,所述照片合成单元包括:8. The device according to claim 7, wherein the photo synthesis unit comprises: 过曝区域确定模块,用于确定第一摄像头拍照得到的照片中的过曝区域;An overexposure area determination module, configured to determine the overexposure area in the photo obtained by the first camera; 过曝区域裁减模块,用于裁减所述确定的过曝区域;an over-exposure area cutting module, configured to cut the determined over-exposure area; 图像合成模块,用于将第二摄像头拍照得到的照片中与裁减的过曝区域对应的区域,与裁减了过曝区域的照片进行合成,得到合成后的照片。The image synthesis module is used to synthesize the area corresponding to the clipped over-exposure area in the photo taken by the second camera with the photo with the clipped over-exposure area to obtain the synthesized photo. 9.一种终端,其特征在于,所述终端包括权利要求5至8任一项所述的拍照装置。9. A terminal, characterized in that the terminal comprises the photographing device according to any one of claims 5 to 8. 10.根据权利要求9所述的终端,其特征在于,所述终端为智能手机或平板电脑。10. The terminal according to claim 9, wherein the terminal is a smart phone or a tablet computer.
CN201710816220.5A 2014-11-28 2014-11-28 Photographic method, camera arrangement and terminal Expired - Fee Related CN107454343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710816220.5A CN107454343B (en) 2014-11-28 2014-11-28 Photographic method, camera arrangement and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410715297.XA CN104333708B (en) 2014-11-28 2014-11-28 Photographic method, camera arrangement and terminal
CN201710816220.5A CN107454343B (en) 2014-11-28 2014-11-28 Photographic method, camera arrangement and terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201410715297.XA Division CN104333708B (en) 2014-11-28 2014-11-28 Photographic method, camera arrangement and terminal

Publications (2)

Publication Number Publication Date
CN107454343A true CN107454343A (en) 2017-12-08
CN107454343B CN107454343B (en) 2019-08-02

Family

ID=52408350

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710816220.5A Expired - Fee Related CN107454343B (en) 2014-11-28 2014-11-28 Photographic method, camera arrangement and terminal
CN201410715297.XA Expired - Fee Related CN104333708B (en) 2014-11-28 2014-11-28 Photographic method, camera arrangement and terminal

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201410715297.XA Expired - Fee Related CN104333708B (en) 2014-11-28 2014-11-28 Photographic method, camera arrangement and terminal

Country Status (1)

Country Link
CN (2) CN107454343B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337445A (en) * 2018-03-26 2018-07-27 华为技术有限公司 Photographic method, relevant device and computer storage media
CN111182093A (en) * 2018-11-12 2020-05-19 奇酷互联网络科技(深圳)有限公司 HDR photographing method based on three cameras, mobile terminal and storage medium

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282428B (en) * 2015-05-28 2019-03-01 维沃移动通信有限公司 A kind of method and mobile terminal of mobile terminal shooting
CN105991939A (en) * 2015-06-19 2016-10-05 乐视移动智能信息技术(北京)有限公司 Image processing method and device
CN105100637A (en) * 2015-08-31 2015-11-25 联想(北京)有限公司 Image processing method and electronic equipment
CN105227837A (en) * 2015-09-24 2016-01-06 努比亚技术有限公司 A kind of image combining method and device
CN105611186B (en) * 2015-12-22 2019-02-12 北京奇虎科技有限公司 Exposure control method and system based on dual cameras
CN105812677B (en) * 2016-04-29 2019-07-30 宇龙计算机通信科技(深圳)有限公司 A kind of image generating method and system
CN106060412A (en) * 2016-08-02 2016-10-26 乐视控股(北京)有限公司 Photographic processing method and device
CN106254790A (en) * 2016-08-02 2016-12-21 乐视控股(北京)有限公司 Take pictures processing method and processing device
CN106534814B (en) * 2016-10-12 2019-01-18 成都西纬科技有限公司 A kind of method and apparatus that dual camera picture quality is synchronous
CN106572311A (en) * 2016-11-11 2017-04-19 努比亚技术有限公司 Shooting apparatus and method thereof
CN106791376B (en) * 2016-11-29 2019-09-13 Oppo广东移动通信有限公司 Imaging device, control method, control device, and electronic device
CN106791377B (en) * 2016-11-29 2019-09-27 Oppo广东移动通信有限公司 Control method, control device, and electronic device
TWI626620B (en) * 2016-12-20 2018-06-11 廣東歐珀移動通訊有限公司 Image processing method and device, electronic device and computer readable storage medium
CN107071291B (en) * 2016-12-28 2020-08-18 南昌黑鲨科技有限公司 Image processing method and device and electronic equipment
CN107040726B (en) * 2017-04-19 2020-04-07 宇龙计算机通信科技(深圳)有限公司 Double-camera synchronous exposure method and system
CN107809582A (en) * 2017-10-12 2018-03-16 广东欧珀移动通信有限公司 Image processing method, electronic device and computer readable storage medium
CN108924436A (en) * 2018-08-01 2018-11-30 湖南拓视觉信息技术有限公司 The generation method and device of high quality graphic
CN108683862B (en) 2018-08-13 2020-01-10 Oppo广东移动通信有限公司 Imaging control method, imaging control device, electronic equipment and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399919A (en) * 2007-09-25 2009-04-01 展讯通信(上海)有限公司 Method for automatic exposure and automatic gain regulation and method thereof
CN101997981A (en) * 2010-11-01 2011-03-30 惠州Tcl移动通信有限公司 Mobile phone camera-based latitude realization method and mobile phone
CN202424857U (en) * 2011-12-22 2012-09-05 鼎创电子股份有限公司 Dual-lens camera module capable of obtaining high-resolution images
CN103780840A (en) * 2014-01-21 2014-05-07 上海果壳电子有限公司 High-quality imaging double camera shooting and imaging device and method thereof
CN104052933A (en) * 2013-03-15 2014-09-17 聚晶半导体股份有限公司 Method for judging dynamic range mode and image acquisition device thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3822393B2 (en) * 1999-08-10 2006-09-20 富士写真フイルム株式会社 Imaging apparatus and imaging control method
JP2002369074A (en) * 2001-06-11 2002-12-20 Ricoh Co Ltd Exposure controller for optical equipment and its program and its method
JP4136464B2 (en) * 2002-06-03 2008-08-20 オリンパス株式会社 Imaging apparatus and imaging method
KR100809345B1 (en) * 2006-06-16 2008-03-05 삼성전자주식회사 Image generating device and method
JP4561912B2 (en) * 2008-09-12 2010-10-13 ソニー株式会社 Imaging apparatus, imaging method, and program
CN101394487B (en) * 2008-10-27 2011-09-14 华为技术有限公司 Image synthesizing method and system
CN102131051B (en) * 2010-12-28 2012-11-28 惠州Tcl移动通信有限公司 Image pick-up equipment and image acquisition method and device thereof
CN102984355A (en) * 2012-11-08 2013-03-20 深圳桑菲消费通信有限公司 Cell phone and dual-camera achieving method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399919A (en) * 2007-09-25 2009-04-01 展讯通信(上海)有限公司 Method for automatic exposure and automatic gain regulation and method thereof
CN101997981A (en) * 2010-11-01 2011-03-30 惠州Tcl移动通信有限公司 Mobile phone camera-based latitude realization method and mobile phone
CN202424857U (en) * 2011-12-22 2012-09-05 鼎创电子股份有限公司 Dual-lens camera module capable of obtaining high-resolution images
CN104052933A (en) * 2013-03-15 2014-09-17 聚晶半导体股份有限公司 Method for judging dynamic range mode and image acquisition device thereof
CN103780840A (en) * 2014-01-21 2014-05-07 上海果壳电子有限公司 High-quality imaging double camera shooting and imaging device and method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337445A (en) * 2018-03-26 2018-07-27 华为技术有限公司 Photographic method, relevant device and computer storage media
CN108337445B (en) * 2018-03-26 2020-06-26 华为技术有限公司 Photographing method, related equipment and computer storage medium
CN111182093A (en) * 2018-11-12 2020-05-19 奇酷互联网络科技(深圳)有限公司 HDR photographing method based on three cameras, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN107454343B (en) 2019-08-02
CN104333708B (en) 2017-10-20
CN104333708A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
CN104333708B (en) Photographic method, camera arrangement and terminal
CN109767467B (en) Image processing method, apparatus, electronic device, and computer-readable storage medium
US9451173B2 (en) Electronic device and control method of the same
CN108337445B (en) Photographing method, related equipment and computer storage medium
CN104580924B (en) The method of adjustment and terminal of a kind of flash power
US10785403B2 (en) Modifying image parameters using wearable device input
CN108391059A (en) A kind of method and apparatus of image procossing
KR102263537B1 (en) Electronic device and control method of the same
CN110324532B (en) An image blurring method, device, storage medium and electronic device
CN107704798B (en) Image blurring method, apparatus, computer-readable storage medium, and computer device
CN111526299B (en) A high dynamic range image synthesis method and electronic device
CN104333710A (en) Camera exposure method, device and equipment
WO2017096866A1 (en) Method and apparatus for generating high dynamic range image
CN105578061A (en) A method, device and mobile terminal for anti-shake taking pictures
CN110349163A (en) Image processing method and apparatus, electronic device, computer-readable storage medium
CN105306806A (en) Mobile terminal and photographing method thereof
WO2017113917A1 (en) Imaging method, imaging apparatus, and terminal
CN105812670B (en) A kind of method and terminal taken pictures
CN110084765A (en) Image processing method, image processing device and terminal equipment
CN109068060B (en) Image processing method and apparatus, terminal device, and computer-readable storage medium
CN110688926A (en) Subject detection method and apparatus, electronic device, and computer-readable storage medium
CN116055712B (en) Method, device, chip, electronic device and medium for determining film formation rate
CN109523456A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN108322648A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN108600631B (en) Image processing method, image processing device, computer-readable storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190802

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