CN107948538A - Imaging method, device, mobile terminal and storage medium - Google Patents
Imaging method, device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN107948538A CN107948538A CN201711124811.2A CN201711124811A CN107948538A CN 107948538 A CN107948538 A CN 107948538A CN 201711124811 A CN201711124811 A CN 201711124811A CN 107948538 A CN107948538 A CN 107948538A
- Authority
- CN
- China
- Prior art keywords
- portrait
- picture
- finding
- brightness
- camera
- 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
- 238000003384 imaging method Methods 0.000 title claims abstract description 61
- 230000035945 sensitivity Effects 0.000 claims abstract description 35
- 238000000034 method Methods 0.000 claims abstract description 17
- 238000004590 computer program Methods 0.000 claims description 6
- 230000000694 effects Effects 0.000 abstract description 35
- 238000009432 framing Methods 0.000 description 23
- 238000012545 processing Methods 0.000 description 19
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000002708 enhancing effect Effects 0.000 description 8
- 230000001965 increasing effect Effects 0.000 description 7
- 238000001514 detection method Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 239000013589 supplement Substances 0.000 description 4
- 239000000284 extract Substances 0.000 description 3
- 238000001914 filtration Methods 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 238000003705 background correction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001795 light effect Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 239000000872 buffer Substances 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 210000005069 ears Anatomy 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000000047 product Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- 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/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- 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/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- 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/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Stroboscope Apparatuses (AREA)
Abstract
Description
技术领域technical field
本申请涉及图像处理技术领域,尤其涉及一种成像方法、装置、移动终端和存储介质。The present application relates to the technical field of image processing, and in particular to an imaging method, device, mobile terminal and storage medium.
背景技术Background technique
近年来,移动终端的摄像模组技术有了较大的发展,使用移动终端拍摄出的照片画质越来越好。但是,由于移动终端和摄像模组的尺寸较小,移动终端的拍摄效果与专业摄像器材相比还是存在一定的差距。In recent years, the camera module technology of mobile terminals has developed greatly, and the quality of photos taken by mobile terminals is getting better and better. However, due to the small size of the mobile terminal and the camera module, there is still a certain gap between the shooting effect of the mobile terminal and professional camera equipment.
在日常生活中的部分场景,移动终端拍摄的视频或照片无法达到理想的效果。例如夕阳场景,以夕阳为背景对人进行拍摄时,如果摄像模组根据拍摄场景自动调节拍摄参数,可能会导致背景过度曝光,而人像可能会欠曝,影响整体拍摄效果。In some scenes in daily life, the video or photo taken by the mobile terminal cannot achieve the desired effect. For example, in a sunset scene, when shooting a person with the sunset as the background, if the camera module automatically adjusts the shooting parameters according to the shooting scene, the background may be overexposed, and the portrait may be underexposed, affecting the overall shooting effect.
申请内容application content
本申请提供一种成像方法、装置、移动终端和存储介质,在背景处于弱光状态的目标场景下对人物进行拍摄时,通过调低摄像头的感光度ISO压低背景亮度,和开启闪光灯对人像进行补光,以实现同时压低背景亮度和提升人像亮度的效果,提高了拍摄效果。The application provides an imaging method, device, mobile terminal and storage medium. When shooting a person in a target scene with a low-light background, the background brightness is lowered by lowering the sensitivity ISO of the camera, and the person is imaged by turning on the flashlight. Fill light to achieve the effect of reducing the background brightness and increasing the brightness of the portrait at the same time, which improves the shooting effect.
本申请实施例提供一种成像方法,包括:An embodiment of the present application provides an imaging method, including:
当取景画面属于目标场景时,识别所述取景画面中是否包含人像;所述目标场景的背景处于弱光状态;When the framing picture belongs to the target scene, identify whether the framing picture contains a portrait; the background of the target scene is in a low-light state;
若所述取景画面中包含人像,调低摄像头的感光度ISO;If the viewfinder contains portraits, lower the sensitivity ISO of the camera;
开启闪光灯对人像进行补光;Turn on the flash to fill the portrait;
在所述闪光灯开启的状态下,采用所述摄像头拍摄所述取景画面。When the flash light is turned on, the camera is used to capture the viewfinder picture.
本申请实施例的成像方法,通过当取景画面属于目标场景时,识别取景画面中是否包含人像,其中,目标场景的背景处于弱光状态,若取景画面中包含人像,调低摄像头的感光度ISO,并开启闪光灯对人像进行补光,在闪光灯开启的状态下,采用摄像头拍摄取景画面。本实施例中,在背景处于弱光状态的目标场景下对人物进行拍摄时,通过调低摄像头的感光度ISO压低背景亮度,通过开启闪光灯对人像进行补光,从而实现了同时压低背景亮度和提升人像亮度的效果,提高了拍摄效果,解决了现有技术中不能同时实现压低背景亮度和提升人像亮度的效果的技术问题。In the imaging method of the embodiment of the present application, when the viewfinder picture belongs to the target scene, identify whether there is a portrait in the viewfinder picture, wherein the background of the target scene is in a low-light state, if the viewfinder picture contains a portrait, lower the sensitivity ISO of the camera , and turn on the flash to fill in the light on the portrait. With the flash turned on, use the camera to take pictures of the viewfinder. In this embodiment, when shooting a person in a target scene where the background is in a low-light state, the background brightness is lowered by lowering the sensitivity ISO of the camera, and the portrait is supplemented by turning on the flashlight, thereby simultaneously reducing the background brightness and The effect of enhancing the brightness of the portrait improves the shooting effect, and solves the technical problem that the effects of reducing the brightness of the background and enhancing the brightness of the portrait cannot be simultaneously realized in the prior art.
本申请另一实施例提供一种成像装置,包括:Another embodiment of the present application provides an imaging device, including:
识别模块,用于当取景画面属于目标场景时,识别所述取景画面中是否包含人像;所述目标场景的背景处于弱光状态;The recognition module is used to identify whether the viewfinder contains a portrait when the viewfinder belongs to the target scene; the background of the target scene is in a low-light state;
调整模块,用于若所述取景画面中包含人像,调低摄像头的感光度ISO;An adjustment module, configured to lower the sensitivity ISO of the camera if the viewfinder contains portraits;
补光模块,用于开启闪光灯对人像进行补光;A fill light module, used to turn on the flash to fill the portrait;
控制模块,用于在所述闪光灯开启的状态下,采用所述摄像头拍摄所述取景画面。The control module is configured to use the camera to capture the framing picture when the flash is turned on.
本申请实施例的成像装置,通过当取景画面属于目标场景时,识别取景画面中是否包含人像,其中,目标场景的背景处于弱光状态,若取景画面中包含人像,调低摄像头的感光度ISO,并开启闪光灯对人像进行补光,在闪光灯开启的状态下,采用摄像头拍摄取景画面。本实施例中,在背景处于弱光状态的目标场景下对人物进行拍摄时,通过调低摄像头的感光度ISO压低背景亮度,通过开启闪光灯对人像进行补光,从而实现了同时压低背景亮度和提升人像亮度的效果,提高了拍摄效果,解决了现有技术中不能同时实现压低背景亮度和提升人像亮度的效果的技术问题。The imaging device of the embodiment of the present application recognizes whether the viewfinder contains a portrait when the viewfinder belongs to the target scene, wherein the background of the target scene is in a low-light state, and if the viewfinder contains a portrait, lower the sensitivity ISO of the camera. , and turn on the flash to fill in the light on the portrait. With the flash turned on, use the camera to take pictures of the viewfinder. In this embodiment, when shooting a person in a target scene where the background is in a low-light state, the background brightness is lowered by lowering the sensitivity ISO of the camera, and the portrait is supplemented by turning on the flashlight, thereby simultaneously reducing the background brightness and The effect of enhancing the brightness of the portrait improves the shooting effect, and solves the technical problem that the effects of reducing the brightness of the background and enhancing the brightness of the portrait cannot be simultaneously realized in the prior art.
本申请又一实施例提供一种移动终端,包括:摄像头、闪光灯、存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如上述本申请实施例所述的成像方法。Another embodiment of the present application provides a mobile terminal, including: a camera, a flashlight, a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, the following The imaging method described above in the embodiment of the present application.
本申请再一实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请上述实施例所述的成像方法。Still another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the imaging method as described in the above-mentioned embodiments of the present application is implemented.
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
附图说明Description of drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1为本申请实施例提供的一种成像方法的流程示意图;FIG. 1 is a schematic flow chart of an imaging method provided in an embodiment of the present application;
图2为本申请实施例提供的另一种成像方法的流程示意图;FIG. 2 is a schematic flow chart of another imaging method provided in the embodiment of the present application;
图3为本申请实施例提供的再一种成像方法的流程示意图;FIG. 3 is a schematic flow chart of another imaging method provided in the embodiment of the present application;
图4为三角测距的原理示意图;Fig. 4 is a schematic diagram of the principle of triangular ranging;
图5为本申请实施例提供的一种成像装置的结构示意图;FIG. 5 is a schematic structural diagram of an imaging device provided by an embodiment of the present application;
图6为本申请实施例提供的另一种成像装置的结构示意图;FIG. 6 is a schematic structural diagram of another imaging device provided by an embodiment of the present application;
图7为本申请实施例提供的一种移动终端的结构示意图;FIG. 7 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application;
图8为一个实施例中图像处理电路的示意图。Fig. 8 is a schematic diagram of an image processing circuit in one embodiment.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.
下面参考附图描述本申请实施例的成像方法、装置、移动终端和存储介质。The following describes the imaging method, device, mobile terminal, and storage medium of the embodiments of the present application with reference to the accompanying drawings.
在日常生活中的部分场景中背景处于弱光状态,以下称这类背景处于弱光状态的场景为目标场景。在目标场景下,背景尽管处于弱光状态,但背景仍需要清晰成像。而且背景通常包含光源,导致目标场景下人像处于背光状态时,细节特征无法清晰成像,移动终端拍摄的包含人像的视频或照片无法达到理想的效果。In some scenes in daily life, the background is in a low-light state, and the scene in which the background is in a low-light state is hereinafter referred to as a target scene. In the target scene, the background needs to be clearly imaged despite being in a low-light state. Moreover, the background usually contains a light source, so that when the portrait in the target scene is in a backlit state, the detailed features cannot be clearly imaged, and the video or photo containing the portrait taken by the mobile terminal cannot achieve the desired effect.
例如目标场景为夕阳场景或朝阳场景时,在这类场景下,需要背景和人像均能够较清晰成像。但实际上,由于背景包含光源,且人处于光源和摄像头之间,导致人像为逆光状态。但这种逆光区别于一般情况下的逆光,这种场景下背景的亮度大于人像的亮度的同时,背景的亮度整体偏暗,处于平均亮度低于第一阈值亮度的弱光状态,如果摄像模组根据平均亮度自动调节拍摄参数,可能会导致背景中亮度高于第二阈值亮度的光源区域过度曝光,而人像可能会欠曝,同时,成像图像中,背景整体由于过亮存在失真的情况,影响整体拍摄效果。For example, when the target scene is a sunset scene or a sunrise scene, in such a scene, both the background and the portrait need to be able to be clearly imaged. But in fact, because the background contains a light source, and the person is between the light source and the camera, the portrait is backlit. However, this kind of backlighting is different from backlighting in general situations. In this scene, while the brightness of the background is greater than the brightness of the portrait, the overall brightness of the background is darker, and it is in a weak light state where the average brightness is lower than the first threshold brightness. If the camera mode The group automatically adjusts the shooting parameters according to the average brightness, which may cause the overexposure of the light source area in the background whose brightness is higher than the second threshold brightness, and the portrait may be underexposed. At the same time, in the imaging image, the overall background is distorted due to too bright, affect the overall shooting effect.
针对这一问题,本申请提出一种成像方法,在背景处于弱光状态的目标场景下对人物进行拍摄时,通过调低摄像头的感光度ISO压低背景亮度,和开启闪光灯对人像进行补光,以实现同时压低背景亮度和提升人像亮度的效果,提高了拍摄效果。In response to this problem, this application proposes an imaging method. When shooting a person in a target scene with a low-light background, the background brightness is lowered by lowering the sensitivity of the camera, and the flashlight is turned on to supplement the light of the person. In order to achieve the effect of simultaneously reducing the brightness of the background and increasing the brightness of the portrait, the shooting effect is improved.
图1为本申请实施例提供的一种成像方法的流程示意图。FIG. 1 is a schematic flowchart of an imaging method provided in an embodiment of the present application.
如图1所示,该成像方法包括:As shown in Figure 1, the imaging method includes:
步骤101,当取景画面属于目标场景时,识别取景画面中是否包含人像;目标场景的背景处于弱光状态。Step 101, when the framing frame belongs to the target scene, identify whether the framing frame contains a portrait; the background of the target scene is in a low-light state.
在目标场景如夕阳场景或者朝阳场景下,背景亮度整体偏暗,对人物进行拍摄时,而背景亮度又往往大于人像的亮度,人像与背景之间亮度相差较大,如果压低背景亮度,拍摄出的背景效果不错,但拍摄出的人像较暗,若提升人像亮度,背景可能会过度曝光。In target scenes such as sunset scenes or sunrise scenes, the background brightness is generally dark. When shooting people, the background brightness is often greater than the brightness of the portrait, and the brightness difference between the portrait and the background is large. The background effect is good, but the portrait is darker, and if the brightness of the portrait is increased, the background may be overexposed.
本实施例中,当取景画面属于背景处于弱光状态的场景时,识别取景画面中是否包含人像。In this embodiment, when the viewfinder picture belongs to a scene where the background is in a low-light state, it is identified whether the viewfinder picture contains a portrait.
作为一种可能的实现方式,将人体的轮廓数据预先存储在手机、平板电脑等移动终端中,其中,人体轮廓数据可以为多个,包括从正面、侧面等不同角度的人体轮廓对应的人体轮廓数据。当用户利用移动终端的摄像头拍摄时,在摄像头获取到取景画面后,提取取景画面中物体的轮廓,然后与预先存储的人体轮廓进行比较。若提取的轮廓与多个预存的人体轮廓中的至少一个一致时,可以确定取景画面中包含人像。As a possible implementation, the contour data of the human body is pre-stored in mobile terminals such as mobile phones and tablet computers, wherein the data of the human body contour can be multiple, including human body contours corresponding to human body contours from different angles such as front and side data. When the user uses the camera of the mobile terminal to take pictures, after the camera captures the viewfinder picture, it extracts the outline of the object in the viewfinder picture, and then compares it with the pre-stored human body outline. If the extracted outline is consistent with at least one of the multiple pre-stored human outlines, it can be determined that the viewfinder contains a portrait.
作为另一种可能的实现方式,可以采用人脸检测的方式,当检测出取景画面中存在人脸时,确定取景画面中包含人像。作为一个示例,可预先将人脸轮廓数据以及鼻子、眼睛、嘴巴、耳朵等特征点的数据,预先存储在移动终端中,其中,人脸轮廓数据包括正脸、侧脸等轮廓数据,还可包括不同脸型的轮廓数据。在取景画面中,提取物体轮廓以与预存的人脸轮廓进行比较,若提取的轮廓与预存的人脸轮廓中的至少一个一致时,再从取景画面中,人脸轮廓所围成区域内提取关键特征点,与预先存储的鼻子、眼睛、嘴巴等特征点的数据进行比较,以进一步确定取景画面中是否存在人脸。可选的,也可以利用基于opencv人脸检测的原理进行人脸检测,以确定取景画面中是否包含人像。As another possible implementation manner, a manner of face detection may be adopted, and when a human face is detected in the viewfinder picture, it is determined that the viewfinder picture contains a portrait. As an example, the face contour data and the data of feature points such as nose, eyes, mouth, and ears can be pre-stored in the mobile terminal, wherein the face contour data includes contour data such as frontal face and side face, and can also be Includes contour data for different face shapes. In the framing screen, extract the contour of the object to compare with the pre-stored human face contours. If the extracted contour is consistent with at least one of the pre-stored human face contours, then extract it from the area surrounded by the human face contours in the framing screen. The key feature points are compared with the pre-stored data of feature points such as nose, eyes, and mouth to further determine whether there is a human face in the viewfinder. Optionally, face detection can also be performed based on the principle of opencv face detection, so as to determine whether the viewfinder contains a portrait.
需要说明的是,本实施例中的拍摄可以是带有摄像功能的移动终端拍摄照片,也可以是拍摄视频等。It should be noted that the shooting in this embodiment may be a photo taken by a mobile terminal with a camera function, or it may be a video taken.
步骤102,若取景画面中包含人像,调低摄像头的感光度ISO。Step 102, if the viewfinder contains a portrait, lower the sensitivity ISO of the camera.
其中,感光度ISO用于衡量底片对于光线的敏感程度,在数码相机中,用来衡量感光器件对光线的敏感程度。在光圈、快门速度等其他条件相同的情况下,感光度ISO越高,拍摄出的画面越亮。Among them, the sensitivity ISO is used to measure the sensitivity of the film to light, and in digital cameras, it is used to measure the sensitivity of the photosensitive device to light. In the case of the same aperture, shutter speed and other conditions, the higher the sensitivity ISO, the brighter the captured picture.
本实施例中,当确定出属于目标场景的取景画面中包含人像时,调低摄像头的感光度ISO压低背景亮度,使背景变暗。目前感光度ISO的值有100、200、400、800等等,感光度ISO的值越大,在光圈、快门速度等其他条件相同的情况下,成像图像越亮。在具体实现时,可将摄像头的感光度ISO的值调低一个或者多个等级,以压低背景亮度。In this embodiment, when it is determined that the framing picture belonging to the target scene contains a portrait, the sensitivity ISO of the camera is lowered to lower the brightness of the background to make the background darker. At present, the values of sensitivity ISO are 100, 200, 400, 800, etc. The larger the value of sensitivity ISO, the brighter the image will be when the aperture, shutter speed and other conditions are the same. During specific implementation, the sensitivity ISO value of the camera can be lowered by one or more grades to lower the background brightness.
例如:可以设置4个ISO等级,取值分别为100、200、400、800。当测得的ISO应为800时,可以将ISO设置为400。For example: 4 ISO levels can be set, the values are 100, 200, 400, 800 respectively. You can set the ISO to 400 when the measured ISO should be 800.
需要说明的是,本实施例中ISO等级及对应取值方法仅作为示例,不能用于对本实施例进行限制,本领域技术人员可以知晓,不限于采用本实施例提供的方式,还可以采用其他ISO等级及对应取值方式。It should be noted that the ISO grades and corresponding value-taking methods in this embodiment are only examples, and cannot be used to limit this embodiment. Those skilled in the art can know that they are not limited to the methods provided in this embodiment, and other methods can also be used. ISO grade and corresponding value selection method.
步骤103,开启闪光灯对人像进行补光。Step 103, turn on the flash to supplement light on the portrait.
由于人像的亮度低于背景的亮度,当目标场景的取景画面中包含人像时,在调低感光度ISO后,背景亮度被进一步压低,但同时人像无法清晰成像,因此,可以开启闪光灯对人像进行补光。一般来说,闪光灯的补光范围较小,开启闪光灯对人像进行补光对背景的成像影响较小。Because the brightness of the portrait is lower than the brightness of the background, when the target scene contains portraits, after lowering the sensitivity ISO, the background brightness will be further reduced, but at the same time the portraits cannot be clearly imaged, so you can turn on the flash fill light. Generally speaking, the fill light range of the flash is small, and turning on the flash to fill the portrait has little effect on the imaging of the background.
具体地,控制摄像头中的摄像模组停止自动测光、参数调节等操作,其中,摄像模组的自动测光和参数调节操作包括自动对焦点或者当前人像等测光点的测光计算,以对光圈、快门速度、感光度ISO等数值进行调节。摄像模组停止自动测光、参数调节等操作后,移动终端向闪光灯发送开启命令。闪光灯接收到开启命令后,闪光灯开启,以对人像进行补光,提高人像亮度。Specifically, the camera module in the camera is controlled to stop operations such as automatic light metering and parameter adjustment, wherein the automatic light metering and parameter adjustment operations of the camera module include the light metering calculation of the automatic focus point or the light metering point of the current portrait, to Adjust the aperture, shutter speed, sensitivity ISO and other values. After the camera module stops operations such as automatic light metering and parameter adjustment, the mobile terminal sends a start command to the flash. After the flash light receives the turn-on command, the flash light is turned on to fill the portrait and increase the brightness of the portrait.
步骤104,在闪光灯开启的状态下,采用摄像头拍摄取景画面。Step 104 , using the camera to capture a viewfinder picture when the flash is turned on.
在闪光灯开启的状态下,用户点击拍摄按钮后,移动终端接收到拍摄指令,移动终端根据拍摄指令采用摄像头拍摄取景画面。或者,在闪光灯开启预设时长后,如0.1s后,在闪光灯开启的状态下,移动终端采用摄像头拍摄取景画面。从而,可以实现既压低了背景亮度又提升了人像亮度的拍摄效果。When the flashlight is turned on, after the user clicks the shooting button, the mobile terminal receives a shooting instruction, and the mobile terminal uses the camera to take a viewfinder picture according to the shooting instruction. Alternatively, after the flash is turned on for a preset time period, such as 0.1s, the mobile terminal uses the camera to take a viewfinder picture when the flash is turned on. Therefore, it is possible to achieve a shooting effect that not only lowers the brightness of the background but also increases the brightness of the portrait.
为了清楚说明上一实施例,本实施例中以目标场景具体为夕阳场景、朝阳场景为例,进行说明。本实施例提及的夕阳场景、朝阳场景中,对于确认拍摄场景是否为夕阳场景或者朝阳场景至关重要。下面通过另一个实施例,解释本申请提出的成像方法。图2为本申请实施例提供的另一种成像方法的流程示意图。In order to clearly describe the previous embodiment, in this embodiment, the target scene is specifically a sunset scene or a sunrise scene as an example for description. In the sunset scene and the sunrise scene mentioned in this embodiment, it is very important to confirm whether the shooting scene is a sunset scene or a sunrise scene. The imaging method proposed in this application will be explained below through another embodiment. FIG. 2 is a schematic flowchart of another imaging method provided by the embodiment of the present application.
如图2所示,该成像方法包括:As shown in Figure 2, the imaging method includes:
步骤201,获取取景画面中背景的平均亮度。Step 201, acquiring the average brightness of the background in the framing picture.
当用户利用带有摄像头的移动终端进行拍摄时,移动终端可显示出预览取景画面。在获取取景画面后,可将取景画面的背景划分为多个区域,获取每个区域的亮度,进而计算出取景画面中背景的平均亮度。When a user uses a mobile terminal with a camera to take pictures, the mobile terminal can display a preview viewfinder picture. After acquiring the viewfinder picture, the background of the viewfinder picture may be divided into multiple regions, the brightness of each region may be obtained, and then the average brightness of the background in the viewfinder picture may be calculated.
步骤202,若背景的平均亮度低于第一阈值亮度,识别取景画面中的背景是否包含亮度高于第二阈值亮度的光源区域。Step 202, if the average brightness of the background is lower than the first threshold brightness, identify whether the background in the viewfinder contains a light source area whose brightness is higher than the second threshold brightness.
在夕阳或朝阳场景中,背景往往包含太阳以及天空,有时还会在天空出现云彩,导致背景整体偏暗的情况下,各部分区域的亮度还存在不均匀的情况。本申请实施例中,将背景的平均亮度与预设的第一阈值亮度进行比较,当背景亮度低于第一阈值亮度时,说明背景比较昏暗,进而识别取景画面中的背景是否包含亮度高于第二阈值亮度的光源区域。其中,第二阈值亮度大于第一阈值亮度,光源区域可以理解为背景中亮度相对较高的区域,通过以上过程,判断背景中各部分区域的亮度是否存在不均匀的情况。In sunset or sunrise scenes, the background often includes the sun and the sky, and sometimes there are clouds in the sky, causing the overall background to be dark, and the brightness of each part of the area is still uneven. In the embodiment of the present application, the average brightness of the background is compared with the preset first threshold brightness. When the background brightness is lower than the first threshold brightness, it means that the background is relatively dark, and then it is identified whether the background in the viewfinder contains a brightness higher than The area of the light source for the second threshold brightness. Wherein, the second threshold luminance is greater than the first threshold luminance, the light source area can be understood as a relatively high luminance area in the background, through the above process, it is determined whether the luminance of each part of the background is uneven.
具体地,预先设定光源区域在取景画面中的位置、尺寸等,例如若设定的光源区域为长方形,那么尺寸可以是长方形的长和宽,又如设定的光源为圆形,尺寸可以是圆形的半径。在取景画面中设定的位置,按照设定的尺寸可以得到限定的光源区域的范围,在该限定范围内的取景画面中,获取每个像素点的像素值,根据像素值判断是否存在一个或者多个连续的区域范围。若存在,则可以确定连续的区域范围为光源区域。Specifically, the position and size of the light source area in the framing screen are preset. For example, if the set light source area is a rectangle, the size can be the length and width of the rectangle. If the set light source is a circle, the size can be is the radius of the circle. At the position set in the framing screen, the limited range of the light source area can be obtained according to the set size. In the framing screen within the limited range, the pixel value of each pixel is obtained, and it is judged according to the pixel value whether there is one or Multiple contiguous area ranges. If it exists, the continuous area range can be determined as the light source area.
然后,获取取景画面中光源区域的亮度,并与第二阈值亮度进行比较。若光源区域的亮度高于第二阈值亮度,那么该光源区域可能是由于日出或者日落的影响。Then, the brightness of the light source area in the viewfinder picture is acquired, and compared with the second threshold brightness. If the brightness of the light source area is higher than the second threshold brightness, then the light source area may be affected by sunrise or sunset.
步骤203,若识别出取景画面中的背景包含光源区域,获取拍摄时间。Step 203, if it is recognized that the background in the viewfinder picture contains a light source area, the shooting time is acquired.
由于白天的逆光场景以及夜晚星空场景下,在一些情况下也存在背景整体偏暗且背景各部分区域的亮度还存在不均匀,为了排除掉白天的逆光场景以及夜晚星空场景这两种无需压低背景亮度,调高人像亮度的场景,当取景画面中的背景包含亮度高于第二阈值亮度的光源区域时,移动终端获取当前的拍摄时间,以通过拍摄时间排除白天的逆光场景以及夜晚星空场景。Due to the backlight scene during the day and the starry sky scene at night, in some cases, the overall background is dark and the brightness of each part of the background is uneven. In order to eliminate the backlight scene during the day and the starry sky scene at night, it is not necessary to lower the background. Brightness, the scene where the brightness of the portrait is increased. When the background in the viewfinder contains a light source area whose brightness is higher than the second threshold brightness, the mobile terminal obtains the current shooting time, so as to exclude the backlight scene during the day and the starry sky scene at night through the shooting time.
步骤204,若拍摄时间属于日出时段或日落时段,确定取景画面属于夕阳场景或朝阳场景。Step 204, if the shooting time belongs to the sunrise time period or the sunset time period, determine that the viewfinder picture belongs to the sunset scene or the sunrise scene.
作为一种可能的实现方式,由于同一地区不同的季节,日落时段或者日出时段不同,而同一个季节,属于不同时区的地区,日出时段或者日落时段也不相同。因此,本申请实施例中,用户可根据所处的地区和季节,手动设置日出时段或日落时段。例如,北京市在东八区,而乌鲁木齐市位于东六区,时间差为两个小时,居住在北京的用户可将日出时段设置为4点50分至5点40分,乌鲁木齐的用户可将日出时段可设置为6点50分至7点50分。在获取拍摄时间后,移动终端将拍摄时间与用户设置的日出时段和日落时段进行比较,以确定拍摄时间是否属于日落时段或日出时段。As a possible implementation, because of different seasons in the same region, the sunset time or sunrise time is different, and in the same season, regions belonging to different time zones have different sunrise time or sunset time. Therefore, in the embodiment of the present application, the user can manually set the sunrise time period or the sunset time period according to the region and season. For example, Beijing is located in East Eighth District, while Urumqi is located in East Sixth District. The time difference is two hours. Users living in Beijing can set the sunrise time from 4:50 to 5:40, and users in Urumqi can set The sunrise time can be set from 6:50 to 7:50. After acquiring the shooting time, the mobile terminal compares the shooting time with the sunrise time period and the sunset time period set by the user to determine whether the shooting time belongs to the sunset time period or the sunrise time period.
作为另一种可能的实现方式,可以通过与服务器交互的方式,确定当前拍摄时间是否属于日出时段或日落时段。具体而言,移动终端向服务器发送查询请求,该查询请求中携带拍摄时间和拍摄地点。服务器接收到请求后,查询该拍摄地点当日的日出和日落时段,将移动终端所发送的拍摄时间与日出时段和日落时段进行比较。若拍摄时间属于日出或日落时段,服务器向移动终端发送拍摄时间属于日出时段或日落时段的查询结果;若拍摄时间不属于日出或日落时段,服务器向移动终端发送拍摄时间不属于日出时段或日落时段的查询结果。移动终端接收到返回的查询结果后,如果结果为属于日出时段或日落时段,可以确定取景画面属于朝阳场景或夕阳场景。As another possible implementation, it may be determined whether the current shooting time belongs to a sunrise period or a sunset period by interacting with the server. Specifically, the mobile terminal sends a query request to the server, and the query request carries the shooting time and shooting location. After receiving the request, the server queries the sunrise and sunset times of the day at the shooting location, and compares the shooting time sent by the mobile terminal with the sunrise and sunset times. If the shooting time belongs to the sunrise or sunset period, the server sends to the mobile terminal the query result that the shooting time belongs to the sunrise or sunset period; if the shooting time does not belong to the sunrise or sunset period, the server sends the mobile terminal Query results for time of day or sunset. After the mobile terminal receives the returned query result, if the result belongs to the sunrise time period or the sunset time period, it can determine that the viewfinder picture belongs to the sunrise scene or the sunset scene.
本实施例中,通过判断拍摄时间是否属于日出时段或者日落时段,可以排除夜晚路灯场景、白天逆光场景、夜晚星空场景等等,从而提高对夕阳场景或者朝阳场景的判断准确度。In this embodiment, by judging whether the shooting time belongs to the sunrise time period or the sunset time period, night street light scenes, daytime backlight scenes, night starry sky scenes, etc. can be excluded, thereby improving the judgment accuracy of sunset scenes or sunrise scenes.
步骤205,当取景画面属于夕阳场景或朝阳场景时,识别取景画面中是否包含人像。Step 205, when the framing frame belongs to a sunset scene or a sunrise scene, identify whether the framing frame contains a portrait.
识别取景画面中是否包含人像的具体方法,可参见上述实施例中记载的相关内容,在此不再赘述。For a specific method for identifying whether a portrait is included in the viewfinder picture, refer to the relevant content recorded in the above-mentioned embodiments, and details are not repeated here.
步骤206,若取景画面中包含人像,调低摄像头的感光度ISO。Step 206, if the viewfinder contains portraits, lower the sensitivity ISO of the camera.
本实施例中,当确定出属于夕阳场景或者朝阳场景的取景画面中包含人像时,调低摄像头的感光度ISO压低背景亮度,使背景变暗。In this embodiment, when it is determined that the framing picture belonging to the sunset scene or the sunrise scene contains a portrait, the sensitivity ISO of the camera is lowered, the background brightness is lowered, and the background is darkened.
步骤207,开启闪光灯对人像进行补光。Step 207, turn on the flash to supplement light on the portrait.
由于人像的亮度低于背景的亮度,当夕阳场景或者朝阳场景的取景画面中包含人像时,在调低感光度ISO后,背景亮度被进一步压低,但同时人像无法清晰成像,因此,可以开启闪光灯对人像进行补光。一般来说,闪光灯的补光范围较小,开启闪光灯对人像进行补光对背景的成像影响较小。Because the brightness of the portrait is lower than the brightness of the background, when the viewfinder of the sunset scene or the sunrise scene contains portraits, after lowering the sensitivity ISO, the background brightness will be further reduced, but at the same time the portraits cannot be clearly imaged, so you can turn on the flash Fill light on portraits. Generally speaking, the fill light range of the flash is small, and turning on the flash to fill the portrait has little effect on the imaging of the background.
具体地,控制摄像头中的摄像模组停止自动测光、参数调节等操作。摄像模组停止自动测光、参数调节等操作后,移动终端向闪光灯发送开启命令。闪光灯接收到开启命令后,闪光灯开启,以对人像进行补光,提高人像亮度。Specifically, the camera module in the camera is controlled to stop operations such as automatic light metering and parameter adjustment. After the camera module stops operations such as automatic light metering and parameter adjustment, the mobile terminal sends a start command to the flash. After the flash light receives the turn-on command, the flash light is turned on to fill the portrait and increase the brightness of the portrait.
步骤208,在闪光灯开启的状态下,采用摄像头拍摄取景画面。Step 208 , using the camera to capture a viewfinder picture when the flash is turned on.
在闪光灯开启的状态下,用户点击拍摄按钮后,移动终端接收到拍摄指令,移动终端根据拍摄指令采用摄像头拍摄取景画面。或者,在闪光灯开启预设时长后,如0.1s后,在闪光灯开启的状态下,移动终端采用摄像头拍摄取景画面。从而,可以实现既压低了背景亮度又提升了人像亮度的拍摄效果。When the flashlight is turned on, after the user clicks the shooting button, the mobile terminal receives a shooting instruction, and the mobile terminal uses the camera to take a viewfinder picture according to the shooting instruction. Alternatively, after the flash is turned on for a preset time period, such as 0.1s, the mobile terminal uses the camera to take a viewfinder picture when the flash is turned on. Therefore, it is possible to achieve a shooting effect that not only lowers the brightness of the background but also increases the brightness of the portrait.
例如,对处于夕阳场景下的人进行拍摄时,通过调低感光度ISO和开启闪光灯,可以达到提高人像亮度,并同时压低夕阳背景亮度的效果。For example, when shooting a person in a sunset scene, by lowering the sensitivity ISO and turning on the flash, the brightness of the portrait can be increased and the background brightness of the sunset can be lowered at the same time.
本申请实施例的成像方法,通过判断取景画面的背景中是否包含满足条件的光源区域,以及拍摄时间所属的时间段,来确定取景画面是否为夕阳场景或者朝阳场景,从而为后续的操作提供了基础。The imaging method of the embodiment of the present application determines whether the viewfinder picture is a sunset scene or a sunrise scene by judging whether the background of the viewfinder picture contains a light source area that satisfies the conditions, and the time period to which the shooting time belongs, thereby providing support for subsequent operations. Base.
为了进一步提高对夕阳场景或者朝阳场景的判断准确度,可通过天气信息排除由于天气不好导致日落或者日出不可见的情况。In order to further improve the judgment accuracy of the sunset scene or the sunrise scene, weather information can be used to exclude the situation that the sunset or sunrise is not visible due to bad weather.
具体地,在步骤202之后,移动终端可从服务器获取当前拍摄地点的天气信息,进一步判断拍摄地点的天气信息是否为晴朗或者少云天气。若当前拍摄地点的天气信息不是晴朗或者少云天气,那么可以确定日出或者日落不可见,从而可以确定取景画面不属于朝阳场景或者夕阳场景。若当前拍摄地点的天气信息为晴天或者少云天气,且当前拍摄时间属于日出时段或者日落时段,可以更加确认取景画面属于朝阳场景或夕阳场景。Specifically, after step 202, the mobile terminal may obtain weather information of the current shooting location from the server, and further determine whether the weather information of the shooting location is sunny or cloudless. If the weather information of the current shooting location is not sunny or cloudy, it can be determined that the sunrise or sunset is not visible, so that it can be determined that the framing picture does not belong to the sunrise scene or the sunset scene. If the weather information of the current shooting location is sunny or cloudy, and the current shooting time is during sunrise or sunset, it can be more confirmed that the viewfinder picture belongs to a sunrise scene or a sunset scene.
进一步地,由于在日出和日落时,太阳光线受到大气层折射的影响,导致发出的可见光偏暖。人眼在日出和日落时,往往可以见到红色至橘红色的太阳,从而本实施例还可以根据背景中光源区域的色温,校验取景画面是否属于夕阳场景或朝阳场景。Furthermore, due to the refraction of the sun's rays by the atmosphere at sunrise and sunset, the emitted visible light is warmer. Human eyes can often see red to orange sun at sunrise and sunset, so this embodiment can also check whether the viewfinder picture belongs to the sunset scene or the sunrise scene according to the color temperature of the light source area in the background.
具体而言,在步骤202确定出取景画面中包含光源区域后,获取光源区域的平均色温,然后将平均色温与阈值色温进行比较。如果光源区域的平均色温低于阈值色温,且拍摄时间属于日出时段或者日落时段,可以更加确定取景画面属于朝阳场景或夕阳场景。Specifically, after it is determined in step 202 that the framing screen contains the light source area, the average color temperature of the light source area is acquired, and then the average color temperature is compared with the threshold color temperature. If the average color temperature of the light source area is lower than the threshold color temperature, and the shooting time belongs to the sunrise period or the sunset period, it can be more sure that the framing picture belongs to the sunrise scene or the sunset scene.
可以理解的是,在判断取景画面是否属于夕阳场景或朝阳场景时,可在拍摄地点的天气信息、光源区域的平均色温、拍摄时间所属的时间段等,同时满足条件时,确定取景画面属于夕阳场景或者朝阳场景。It can be understood that when judging whether the viewfinder picture belongs to a sunset scene or a sunrise scene, the weather information of the shooting location, the average color temperature of the light source area, the time period of the shooting time, etc., all meet the conditions at the same time, and determine that the viewfinder picture belongs to the sunset scene. scene or sunrise scene.
当取景画面中包含人像时,如果拍摄的人物距摄像头的距离较远,即使开启闪光灯也达不到补光的效果,本申请实施例提出在人物与摄像头之间的距离满足条件时,开启摄像头进行补光。下面结合图3,通过又一个实施例进行详细说明。When the viewfinder contains a portrait, if the photographed person is far away from the camera, even if the flash is turned on, the fill light effect cannot be achieved. The embodiment of the present application proposes that when the distance between the person and the camera satisfies the condition, turn on the camera Make fill light. Hereinafter, with reference to FIG. 3 , another embodiment will be described in detail.
如图3所示,该成像方法包括:As shown in Figure 3, the imaging method includes:
步骤301,当取景画面属于目标场景时,识别取景画面中是否包含人像;目标场景的背景处于弱光状态。Step 301, when the framing frame belongs to the target scene, identify whether the framing frame contains portraits; the background of the target scene is in a low-light state.
本实施例中,当取景画面属于背景处于弱光状态的场景时,识别取景画面中是否包含人像。具体的识别方法可参见前述实施例中记载的相关内容,在此不再赘述。In this embodiment, when the viewfinder picture belongs to a scene where the background is in a low-light state, it is identified whether the viewfinder picture contains a portrait. For a specific identification method, reference may be made to relevant content recorded in the foregoing embodiments, and details are not repeated here.
步骤302,若取景画面中包含人像,调低摄像头的感光度ISO。Step 302, if the viewfinder contains portraits, lower the sensitivity ISO of the camera.
本实施例中,当确定出属于目标场景的取景画面中包含人像时,调低摄像头的感光度ISO压低背景亮度,使背景变暗。在具体实现时,可将摄像头的感光度ISO的值调低一个等级或多个等级。In this embodiment, when it is determined that the framing picture belonging to the target scene contains a portrait, the sensitivity ISO of the camera is lowered to lower the brightness of the background to make the background darker. During specific implementation, the value of the sensitivity ISO of the camera may be lowered by one grade or multiple grades.
步骤303,当在取景画面中人像所占面积比例大于阈值比例时,识别人像对应人物与摄像头之间的距离。Step 303, when the ratio of the area occupied by the portrait in the viewfinder screen is greater than the threshold ratio, identify the distance between the person corresponding to the portrait and the camera.
可以理解的是,在进行拍摄时,当人物距离摄像头一定距离时,开启摄像头才能达到对人像进行补光的目的。It is understandable that when shooting, when the person is at a certain distance from the camera, the camera can only be turned on to achieve the purpose of filling the portrait.
通常,人物与摄像头之间的距离越小,在取景画面中人像所占面积比例越大。由此,可先判断在取景画面中的人像所占面积比例是否大于阈值比例,如阈值比例为当人像在取景画面中所占面积比例大于阈值比例时,识别人像对应人物与摄像头之间的距离。Generally, the smaller the distance between the person and the camera, the larger the proportion of the area occupied by the person in the viewfinder. Thus, it can be judged first whether the proportion of the area occupied by the portrait in the framing screen is greater than the threshold ratio, such as the threshold ratio is When the proportion of the area occupied by the portrait in the framing screen is greater than the threshold proportion, identify the distance between the person corresponding to the portrait and the camera.
作为一种可能的实现方式,可通过三角测距原理,计算人物与摄像头所在平面之间的距离。基于图4中,在实际空间中,画出了成像人物,以及两个摄像头所在位置Ol和Or,以及两个摄像头的焦平面,焦平面距离两个摄像头所在平面的距离为f。As a possible implementation, the distance between the person and the plane where the camera is located can be calculated through the principle of triangulation distance measurement. Based on Figure 4, in the actual space, the imaged person, the positions O l and O r of the two cameras, and the focal planes of the two cameras are drawn, and the distance between the focal plane and the plane where the two cameras are located is f.
p和p′分别是同一人物在不同拍摄图像中的位置。其中,p点距离所在拍摄图像的左侧边界的距离为xl,p′点距离所在拍摄图像的左侧边界的距离为xr。Ol和Or分别为两个摄像头,这两个摄像头在同一平面,两个摄像头之间的距离为Z。p and p' are respectively the positions of the same person in different captured images. Wherein, the distance between point p and the left boundary of the captured image is x l , and the distance between point p′ and the left boundary of the captured image is x r . O l and O r are two cameras respectively, the two cameras are on the same plane, and the distance between the two cameras is Z.
基于三角测距原理,图4中的人物与两个摄像头所在平面之间的距离b,具有如下关系:Based on the triangular ranging principle, the distance b between the person in Figure 4 and the plane where the two cameras are located has the following relationship:
基于此,可以推得其中,d为同一人物在不同拍摄图像中的位置之间的距离差。由于Z、f为定值,因此,根据d可以确定出人物与摄像头所在平面之间的距离b。Based on this, it can be deduced Among them, d is the distance difference between the positions of the same person in different captured images. Since Z and f are fixed values, the distance b between the person and the plane where the camera is located can be determined according to d.
作为另一种可能的实现方式,在摄像头的旁边设置红外线测距仪,摄像头拍摄时,红外线测距仪向人物发射红外线,并接收人物反射回来的红外线,根据光的传播速度和从发射红外线到接收反射的红外线所用的时间,可以计算出人物与摄像头之间的距离。As another possible implementation, an infrared rangefinder is installed next to the camera. When the camera is shooting, the infrared rangefinder emits infrared rays to the person and receives the infrared rays reflected back by the person. The time it takes to receive the reflected infrared rays can calculate the distance between the person and the camera.
步骤304,确定人物与摄像头之间的距离不大于闪光灯的最大有效距离,开启闪光灯对人像进行补光。Step 304, determine that the distance between the person and the camera is not greater than the maximum effective distance of the flash, and turn on the flash to supplement the light on the portrait.
在识别出人物与摄像头之间的距离后,将人物与摄像头之间的距离与闪光灯的最大有效距离进行比较。当人物与摄像头之间的距离不大于闪光灯的最大有效距离时,闪光灯可以对人像达到补光作用,因此向闪光灯发送开启命令。闪光灯根据开启命令,开启闪光灯以对人像进行补光。After identifying the distance between the person and the camera, compare the distance between the person and the camera with the maximum effective distance of the flash. When the distance between the person and the camera is not greater than the maximum effective distance of the flash, the flash can achieve the role of supplementary light on the portrait, so a command to turn on the flash is sent. The flash is turned on according to the turn-on command to fill in light on the portrait.
步骤305,在闪光灯开启的状态下,采用摄像头拍摄取景画面。Step 305, using the camera to capture a viewfinder picture when the flash is turned on.
在闪光灯开启的状态下,用户点击拍摄按钮后,移动终端接收到拍摄指令,移动终端根据拍摄指令采用摄像头拍摄取景画面。或者,在闪光灯开启预设时长后,如0.1s后,在闪光灯开启的状态下,采用摄像头拍摄取景画面。从而,可以实现既压低了背景亮度又提升了人像亮度的拍摄效果。When the flashlight is turned on, after the user clicks the shooting button, the mobile terminal receives a shooting instruction, and the mobile terminal uses the camera to take a viewfinder picture according to the shooting instruction. Alternatively, after the flash is turned on for a preset period of time, such as 0.1s, the camera is used to take a viewfinder picture while the flash is turned on. Therefore, it is possible to achieve a shooting effect that not only lowers the brightness of the background but also increases the brightness of the portrait.
步骤306,若人物与摄像头之间的距离大于闪光灯的最大有效距离,采用摄像头在闪光灯未开启的状态下,拍摄取景画面,得到目标图像。Step 306 , if the distance between the person and the camera is greater than the maximum effective distance of the flash, the camera is used to take a viewfinder picture when the flash is not turned on to obtain the target image.
当人物与摄像头之间的距离大于闪光灯的最大有效距离时,闪光灯对人像达不到补光效果,因此采用摄像头在闪光灯未开启的状态下,拍摄取景画面,得到目标图像。When the distance between the person and the camera is greater than the maximum effective distance of the flash, the flash cannot achieve the fill light effect on the portrait. Therefore, the camera is used to capture the viewfinder and obtain the target image when the flash is not turned on.
步骤307,识别目标图像中的人像区域。Step 307, identifying the portrait area in the target image.
为了提高拍摄效果,可调高人像区域的亮度。具体而言,可提取目标图像中多个物体的轮廓,然后将提取的轮廓与预存的人体轮廓进行比较,从而识别出目标图像中的人像区域。In order to improve the shooting effect, you can increase the brightness of the portrait area. Specifically, the contours of multiple objects in the target image can be extracted, and then the extracted contours can be compared with pre-stored human body contours, so as to identify the portrait area in the target image.
步骤308,对目标图像中的人像区域调高亮度。Step 308, increase the brightness of the portrait area in the target image.
在识别出目标图像中的人像区域后,调高目标图像中的人像区域的亮度,以提高人像在目标图像中显示效果。After the portrait area in the target image is identified, the brightness of the portrait area in the target image is increased to improve the display effect of the portrait in the target image.
由于对人像区域调高亮度,可能会使人像区域与周围区域的亮度显得比较突兀,可利用现有的边缘平滑算法,如均值滤波、高斯滤波等,对人像区域的边缘进行平滑处理,从而使人像区域与周围区域的亮度过渡平滑,进而提高拍摄图像的显示效果。Since the brightness of the portrait area is increased, the brightness of the portrait area and the surrounding area may appear abrupt. Existing edge smoothing algorithms, such as mean filtering and Gaussian filtering, can be used to smooth the edges of the portrait area. The brightness transition between the portrait area and the surrounding area is smooth, thereby improving the display effect of the captured image.
步骤309,对目标图像中除人像区域以外部分,调低亮度。Step 309, lower the brightness of the part of the target image except the portrait area.
为了提高目标图像的整体显示效果,进一步地,可对目标图像中除人像区域以外的部分,调低亮度,以降低人像区域与除人像区域以外部分之间的亮度差异,从而提高目标图像的整体显示效果。In order to improve the overall display effect of the target image, further, the brightness of the parts other than the portrait area in the target image can be lowered to reduce the brightness difference between the portrait area and the parts other than the portrait area, thereby improving the overall brightness of the target image. display effect.
本申请实施例的成像方法,通过将人像对应的人物与摄像头之间的距离与闪光灯的最大有效距离进行比较,根据比较结果采取不同的处理方式,处理方式比较灵活。In the imaging method of the embodiment of the present application, the distance between the person corresponding to the portrait and the camera is compared with the maximum effective distance of the flashlight, and different processing methods are adopted according to the comparison results, and the processing method is relatively flexible.
另外,在拍摄时,如果只想拍摄景物,而不小心拍摄到无关的人物,这时可以点击屏幕进行对焦,采用摄像头在不开启闪光灯的状态下,拍摄取景画面。In addition, when shooting, if you only want to shoot the scenery, but accidentally shoot unrelated people, you can tap the screen to focus, and use the camera to shoot the viewfinder without turning on the flash.
本申请实施例的成像方法,通过当取景画面属于目标场景时,识别取景画面中是否包含人像,其中,目标场景的背景处于弱光状态,若取景画面中包含人像,调低摄像头的感光度ISO,并开启闪光灯对人像进行补光,在闪光灯开启的状态下,采用摄像头拍摄取景画面。本实施例中,在背景处于弱光状态的目标场景下对人物进行拍摄时,通过调低摄像头的感光度ISO压低背景亮度,通过开启闪光灯对人像进行补光,从而实现了同时压低背景亮度和提升人像亮度的效果,提高了拍摄效果,解决了现有技术中不能同时实现压低背景亮度和提升人像亮度的效果的技术问题。In the imaging method of the embodiment of the present application, when the viewfinder picture belongs to the target scene, identify whether there is a portrait in the viewfinder picture, wherein the background of the target scene is in a low-light state, if the viewfinder picture contains a portrait, lower the sensitivity ISO of the camera , and turn on the flash to fill in the light on the portrait. With the flash turned on, use the camera to take pictures of the viewfinder. In this embodiment, when shooting a person in a target scene where the background is in a low-light state, the background brightness is lowered by lowering the sensitivity ISO of the camera, and the portrait is supplemented by turning on the flashlight, thereby simultaneously reducing the background brightness and The effect of enhancing the brightness of the portrait improves the shooting effect, and solves the technical problem that the effects of reducing the brightness of the background and enhancing the brightness of the portrait cannot be simultaneously realized in the prior art.
本申请还提出一种成像装置。图5为本申请实施例提供的一种成像装置的结构示意图。The present application also proposes an imaging device. FIG. 5 is a schematic structural diagram of an imaging device provided by an embodiment of the present application.
如图5所示,该成像装置包括:识别模块510、调整模块520、补光模块530、控制模块540。As shown in FIG. 5 , the imaging device includes: an identification module 510 , an adjustment module 520 , a supplementary light module 530 , and a control module 540 .
其中,识别模块510,用于当取景画面属于目标场景时,识别取景画面中是否包含人像,目标场景的背景处于弱光状态。Wherein, the identification module 510 is configured to identify whether the viewfinder picture contains a portrait when the viewfinder picture belongs to the target scene, and the background of the target scene is in a low-light state.
调整模块520,用于若取景画面中包含人像,调低摄像头的感光度ISO。The adjustment module 520 is configured to lower the sensitivity ISO of the camera if the viewfinder contains portraits.
补光模块530,用于开启闪光灯对人像进行补光。The supplementary light module 530 is used to turn on the flash to provide supplementary light for portraits.
控制模块540,用于在闪光灯开启的状态下,采用摄像头拍摄取景画面。The control module 540 is configured to use the camera to capture a viewfinder picture when the flashlight is turned on.
具体的,本申请实施例提供的成像装置,可以执行本申请实施例提供的成像方法,该装置可以被配置在移动终端中。其中,移动设备的类型很多,可以为手机、平板电脑、笔记本电脑等。图5以移动终端为手机进行示例。Specifically, the imaging device provided in the embodiment of the present application can execute the imaging method provided in the embodiment of the present application, and the device can be configured in a mobile terminal. Among them, there are many types of mobile devices, such as mobile phones, tablet computers, and notebook computers. FIG. 5 takes the mobile terminal as an example for a mobile phone.
在本申请一个实施例中,目标场景包括夕阳场景和/或朝阳场景,在图5的基础上,如图6所示,该成像装置还可以包括:第一获取模块550、光源区域识别模块560、第二获取模块570、确定模块580。In one embodiment of the present application, the target scene includes a sunset scene and/or a sunrise scene. On the basis of FIG. 5, as shown in FIG. , a second acquiring module 570 , and a determining module 580 .
第一获取模块550,用于获取取景画面中背景的平均亮度。The first acquiring module 550 is configured to acquire the average brightness of the background in the viewfinder picture.
光源区域识别模块560,用于若背景的平均亮度低于第一阈值亮度,识别取景画面中的背景是否包含亮度高于第二阈值亮度的光源区域;第二阈值亮度大于第一阈值亮度。The light source area identification module 560 is configured to identify whether the background in the viewfinder contains a light source area with a brightness higher than a second threshold brightness if the average brightness of the background is lower than the first threshold brightness; the second threshold brightness is greater than the first threshold brightness.
第二获取模块570,用于若识别出取景画面中的背景包含光源区域,获取拍摄时间。The second acquiring module 570 is configured to acquire the shooting time if it is recognized that the background in the viewfinder picture contains a light source area.
确定模块580,用于若拍摄时间属于日出时段或日落时段,确定取景画面属于夕阳场景或朝阳场景。The determining module 580 is configured to determine that the viewfinder picture belongs to a sunset scene or a sunrise scene if the shooting time belongs to a sunrise time period or a sunset time period.
在本申请一个实施例中,第二获取模块570,还用于获取拍摄地点的天气信息;In an embodiment of the present application, the second acquisition module 570 is also used to acquire weather information of the shooting location;
确定模块580,还用于确定拍摄地点的天气信息为晴朗或少云天气。The determining module 580 is further configured to determine that the weather information of the shooting location is sunny or cloudy.
在本申请一个实施例中,第二获取模块570,还用于识别取景画面中光源区域的平均色温;In one embodiment of the present application, the second acquisition module 570 is also used to identify the average color temperature of the light source area in the viewfinder picture;
确定模块580,还用于确定平均色温低于阈值色温。The determination module 580 is further configured to determine that the average color temperature is lower than the threshold color temperature.
进一步地,在本申请一个实施例中,该成像装置还包括:Further, in an embodiment of the present application, the imaging device further includes:
第三获取模块,用于当在取景画面中所述人像所占面积比例大于阈值比例时,识别人像对应人物与摄像头之间的距离;The third acquisition module is used to identify the distance between the person corresponding to the portrait and the camera when the proportion of the area occupied by the portrait in the viewfinder screen is greater than the threshold ratio;
确定模块580,还用于确定人物与摄像头之间的距离不大于闪光灯的最大有效距离。The determining module 580 is further configured to determine that the distance between the person and the camera is not greater than the maximum effective distance of the flashlight.
在本申请一个实施例中,该装置还可以包括:In one embodiment of the present application, the device may also include:
控制模块540,还用于若人物与摄像头之间的距离大于闪光灯的最大有效距离,采用摄像头,在闪光灯未开启的状态下,拍摄取景画面,得到目标图像。The control module 540 is also used for if the distance between the person and the camera is greater than the maximum effective distance of the flashlight, the camera is used to take a viewfinder picture when the flashlight is not turned on to obtain the target image.
人像区域识别模块,用于识别目标图像中的人像区域。The portrait area recognition module is used to identify the portrait area in the target image.
亮度调整模块,用于对目标图像中的人像区域调高亮度。The brightness adjustment module is used to increase the brightness of the portrait area in the target image.
在本申请一个实施例中,亮度调整模块,还用于对目标图像中除人像区域以外部分,调低亮度。In an embodiment of the present application, the brightness adjustment module is further configured to lower the brightness of parts of the target image other than the portrait area.
上述成像装置中各个模块的划分仅用于举例说明,在其他实施例中,可将成像装置按照需要划分为不同的模块,以完成上述成像装置的全部或部分功能。The division of each module in the above imaging device is only for illustration. In other embodiments, the imaging device may be divided into different modules according to needs, so as to complete all or part of the functions of the above imaging device.
需要说明的是,前述对成像方法实施例的解释说明,也适用于该实施例的成像装置,故在此不再赘述。It should be noted that the foregoing explanations of the embodiment of the imaging method are also applicable to the imaging device of this embodiment, so details are not repeated here.
本申请实施例的成像装置,通过当取景画面属于目标场景时,识别取景画面中是否包含人像,其中,目标场景的背景处于弱光状态,若取景画面中包含人像,调低摄像头的感光度ISO,并开启闪光灯对人像进行补光,在闪光灯开启的状态下,采用摄像头拍摄取景画面。本实施例中,在背景处于弱光状态的目标场景下对人物进行拍摄时,通过调低摄像头的感光度ISO压低背景亮度,通过开启闪光灯对人像进行补光,从而实现了同时压低背景亮度和提升人像亮度的效果,提高了拍摄效果,解决了现有技术中不能同时实现压低背景亮度和提升人像亮度的效果的技术问题。The imaging device of the embodiment of the present application recognizes whether the viewfinder contains a portrait when the viewfinder belongs to the target scene, wherein the background of the target scene is in a low-light state, and if the viewfinder contains a portrait, lower the sensitivity ISO of the camera. , and turn on the flash to fill in the light on the portrait. With the flash turned on, use the camera to take pictures of the viewfinder. In this embodiment, when shooting a person in a target scene where the background is in a low-light state, the background brightness is lowered by lowering the sensitivity ISO of the camera, and the portrait is supplemented by turning on the flashlight, thereby simultaneously reducing the background brightness and The effect of enhancing the brightness of the portrait improves the shooting effect, and solves the technical problem that the effects of reducing the brightness of the background and enhancing the brightness of the portrait cannot be simultaneously realized in the prior art.
本申请还提出一种移动终端。图7为本申请实施例提供的一种移动终端的结构示意图。The present application also proposes a mobile terminal. FIG. 7 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
如图7所示,该移动终端包括:摄像头710、闪光灯720、存储器730、处理器740以及存储在存储器730上并可在处理器740上运行的计算机程序。As shown in FIG. 7 , the mobile terminal includes: a camera 710 , a flashlight 720 , a memory 730 , a processor 740 and a computer program stored in the memory 730 and operable on the processor 740 .
其中,处理器740执行程序时,实现如前述任一实施例所述的成像方法。Wherein, when the processor 740 executes the program, the imaging method as described in any one of the foregoing embodiments is implemented.
本申请还提出一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如前述任一实施例所述的成像方法。The present application also proposes a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the imaging method as described in any one of the foregoing embodiments is implemented.
上述移动终端中还包括图像处理电路,图像处理电路可以利用硬件和/或软件组件实现,可包括定义ISP(Image Signal Processing,图像信号处理)管线的各种处理单元。图8为一个实施例中图像处理电路的示意图。如图8所示,为便于说明,仅示出与本申请实施例相关的图像处理技术的各个方面。The above mobile terminal further includes an image processing circuit, which may be implemented by hardware and/or software components, and may include various processing units defining an ISP (Image Signal Processing, image signal processing) pipeline. Fig. 8 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 8 , for ease of description, only various aspects of the image processing technology related to the embodiment of the present application are shown.
如图8所示,图像处理电路包括ISP处理器940和控制逻辑器950。成像设备910捕捉的图像数据首先由ISP处理器940处理,ISP处理器940对图像数据进行分析以捕捉可用于确定和/或成像设备910的一个或多个控制参数的图像统计信息。成像设备910具体可以包括两个摄像头,每一个摄像头可包括具有一个或多个透镜912和图像传感器914。图像传感器914可包括色彩滤镜阵列(如Bayer滤镜),图像传感器914可获取用图像传感器914的每个成像像素捕捉的光强度和波长信息,并提供可由ISP处理器940处理的一组原始图像数据。传感器920可基于传感器920接口类型把原始图像数据提供给ISP处理器940。传感器920接口可以利用SMIA(Standard Mobile Imaging Architecture,标准移动成像架构)接口、其它串行或并行照相机接口或上述接口的组合。As shown in FIG. 8 , the image processing circuit includes an ISP processor 940 and a control logic 950 . Image data captured by imaging device 910 is first processed by ISP processor 940 , which analyzes the image data to capture image statistics that may be used to determine and/or control one or more parameters of imaging device 910 . The imaging device 910 may specifically include two cameras, and each camera may include one or more lenses 912 and an image sensor 914 . Image sensor 914 may include a color filter array (such as a Bayer filter), and image sensor 914 may obtain light intensity and wavelength information captured with each imaging pixel of image sensor 914 and provide a set of raw images that may be processed by ISP processor 940. image data. The sensor 920 may provide raw image data to the ISP processor 940 based on the sensor 920 interface type. The interface of the sensor 920 may utilize a SMIA (Standard Mobile Imaging Architecture, Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the above interfaces.
ISP处理器940按多种格式逐个像素地处理原始图像数据。例如,每个图像像素可具有8、10、12或14比特的位深度,ISP处理器940可对原始图像数据进行一个或多个图像处理操作、收集关于图像数据的统计信息。其中,图像处理操作可按相同或不同的位深度精度进行。The ISP processor 940 processes raw image data on a pixel-by-pixel basis in various formats. For example, each image pixel may have a bit depth of 8, 10, 12, or 14 bits, and the ISP processor 940 may perform one or more image processing operations on raw image data, gather statistical information about the image data. Among other things, image processing operations can be performed with the same or different bit depth precision.
ISP处理器940还可从图像存储器930接收像素数据。例如,从传感器920接口将原始像素数据发送给图像存储器930,图像存储器930中的原始像素数据再提供给ISP处理器940以供处理。图像存储器930可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(Direct Memory Access,直接直接存储器存取)特征。ISP processor 940 may also receive pixel data from image memory 930 . For example, raw pixel data is sent from the sensor 920 interface to the image memory 930, and the raw pixel data in the image memory 930 is provided to the ISP processor 940 for processing. The image memory 930 may be a part of a memory device, a storage device, or an independent dedicated memory in an electronic device, and may include a DMA (Direct Memory Access) feature.
当接收到来自传感器920接口或来自图像存储器930的原始图像数据时,ISP处理器940可进行一个或多个图像处理操作,如时域滤波。处理后的图像数据可发送给图像存储器930,以便在被显示之前进行另外的处理。ISP处理器940从图像存储器930接收处理数据,并对所述处理数据进行原始域中以及RGB和YCbCr颜色空间中的图像数据处理。处理后的图像数据可输出给显示器970,以供用户观看和/或由图形引擎或GPU(Graphics ProcessingUnit,图形处理器)进一步处理。此外,ISP处理器940的输出还可发送给图像存储器930,且显示器970可从图像存储器930读取图像数据。在一个实施例中,图像存储器930可被配置为实现一个或多个帧缓冲器。此外,ISP处理器940的输出可发送给编码器/解码器960,以便编码/解码图像数据。编码的图像数据可被保存,并在显示于显示器970设备上之前解压缩。编码器/解码器960可由CPU或GPU或协处理器实现。Upon receiving raw image data from the sensor 920 interface or from the image memory 930, the ISP processor 940 may perform one or more image processing operations, such as temporal filtering. The processed image data may be sent to image memory 930 for additional processing before being displayed. The ISP processor 940 receives processed data from the image memory 930 and performs image data processing on the processed data in the raw domain and in the RGB and YCbCr color spaces. The processed image data may be output to the display 970 for viewing by the user and/or further processed by a graphics engine or a GPU (Graphics Processing Unit, graphics processor). In addition, the output of the ISP processor 940 can also be sent to the image memory 930 , and the display 970 can read image data from the image memory 930 . In one embodiment, image memory 930 may be configured to implement one or more frame buffers. Also, the output of the ISP processor 940 may be sent to an encoder/decoder 960 for encoding/decoding image data. The encoded image data may be saved and decompressed prior to display on the display 970 device. Encoder/decoder 960 may be implemented by a CPU or GPU or a coprocessor.
ISP处理器940确定的统计数据可发送给控制逻辑器950单元。例如,统计数据可包括自动曝光、自动白平衡、自动聚焦、闪烁检测、黑电平补偿、透镜912阴影校正等图像传感器914统计信息。控制逻辑器950可包括执行一个或多个例程(如固件)的处理器和/或微控制器,一个或多个例程可根据接收的统计数据,确定成像设备910的控制参数以及的控制参数。例如,控制参数可包括传感器920控制参数(例如增益、曝光控制的积分时间)、照相机闪光控制参数、透镜912控制参数(例如聚焦或变焦用焦距)、或这些参数的组合。ISP控制参数可包括用于自动白平衡和颜色调整(例如,在RGB处理期间)的增益水平和色彩校正矩阵,以及透镜912阴影校正参数。The statistics determined by the ISP processor 940 may be sent to the control logic 950 unit. For example, statistics may include image sensor 914 statistics such as auto exposure, auto white balance, auto focus, flicker detection, black level compensation, lens 912 shading correction, etc. Control logic 950 may include a processor and/or a microcontroller that executes one or more routines (e.g., firmware) that determine control parameters of imaging device 910 and control of imaging device 910 based on received statistical data. parameter. For example, control parameters may include sensor 920 control parameters (eg, gain, integration time for exposure control), camera flash control parameters, lens 912 control parameters (eg, focal length for focus or zoom), or combinations of these parameters. ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (eg, during RGB processing), as well as lens 912 shading correction parameters.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing custom logical functions or steps of a process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment for use. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented by any one or a combination of the following techniques known in the art: a discrete Logic circuits, ASICs with suitable combinational logic gates, Programmable Gate Arrays (PGA), Field Programmable Gate Arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711124811.2A CN107948538B (en) | 2017-11-14 | 2017-11-14 | Imaging method, device, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711124811.2A CN107948538B (en) | 2017-11-14 | 2017-11-14 | Imaging method, device, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107948538A true CN107948538A (en) | 2018-04-20 |
CN107948538B CN107948538B (en) | 2020-02-21 |
Family
ID=61932120
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711124811.2A Expired - Fee Related CN107948538B (en) | 2017-11-14 | 2017-11-14 | Imaging method, device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107948538B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109120864A (en) * | 2018-10-23 | 2019-01-01 | Oppo广东移动通信有限公司 | Light supplement processing method and device, storage medium and mobile terminal |
CN109348089A (en) * | 2018-11-22 | 2019-02-15 | Oppo广东移动通信有限公司 | Night scene image processing method and device, electronic equipment and storage medium |
CN109462922A (en) * | 2018-09-20 | 2019-03-12 | 百度在线网络技术(北京)有限公司 | Control method, device, equipment and the computer readable storage medium of lighting apparatus |
CN110611774A (en) * | 2019-09-20 | 2019-12-24 | 深圳市梦网百科信息技术有限公司 | Illumination compensation method and system for road surface monitoring video |
CN110826372A (en) * | 2018-08-10 | 2020-02-21 | 浙江宇视科技有限公司 | Method and device for detecting human face characteristic points |
CN110944163A (en) * | 2019-11-21 | 2020-03-31 | 维沃移动通信有限公司 | Image processing method and electronic equipment |
CN111385454A (en) * | 2020-03-20 | 2020-07-07 | 深圳传音控股股份有限公司 | Photographing method, mobile terminal and computer-readable storage medium |
CN112383685A (en) * | 2020-11-02 | 2021-02-19 | 北京如影智能科技有限公司 | Containing device, control method and control device |
CN112687108A (en) * | 2020-06-28 | 2021-04-20 | 浙江大华技术股份有限公司 | Detection method and detection device for man-vehicle matching, shooting device and storage medium |
CN114885096A (en) * | 2022-03-29 | 2022-08-09 | 北京旷视科技有限公司 | Shooting mode switching method, electronic equipment and storage medium |
CN116977332A (en) * | 2023-09-21 | 2023-10-31 | 合肥联宝信息技术有限公司 | Camera light filling lamp performance test method and device, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101626457A (en) * | 2008-07-08 | 2010-01-13 | 华晶科技股份有限公司 | Image acquisition method |
CN101800858A (en) * | 2009-02-06 | 2010-08-11 | 佳能株式会社 | Picture pick-up device and control method thereof |
CN102542552A (en) * | 2010-12-21 | 2012-07-04 | 北京汉王智通科技有限公司 | Frontlighting and backlighting judgment of video images and detection method of shooting time |
CN102685379A (en) * | 2011-03-18 | 2012-09-19 | 卡西欧计算机株式会社 | Image processing apparatus with function for specifying image quality, and method and storage medium |
CN105472268A (en) * | 2015-12-24 | 2016-04-06 | Tcl集团股份有限公司 | Method and device for filling light during photographing |
CN106161980A (en) * | 2016-07-29 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | Photographic method and system based on dual camera |
CN106713780A (en) * | 2017-01-16 | 2017-05-24 | 维沃移动通信有限公司 | Control method for flash lamp and mobile terminal |
CN107135353A (en) * | 2017-04-27 | 2017-09-05 | 努比亚技术有限公司 | A kind of exposure regulating method, mobile terminal and computer-readable recording medium |
-
2017
- 2017-11-14 CN CN201711124811.2A patent/CN107948538B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101626457A (en) * | 2008-07-08 | 2010-01-13 | 华晶科技股份有限公司 | Image acquisition method |
CN101800858A (en) * | 2009-02-06 | 2010-08-11 | 佳能株式会社 | Picture pick-up device and control method thereof |
CN102542552A (en) * | 2010-12-21 | 2012-07-04 | 北京汉王智通科技有限公司 | Frontlighting and backlighting judgment of video images and detection method of shooting time |
CN102685379A (en) * | 2011-03-18 | 2012-09-19 | 卡西欧计算机株式会社 | Image processing apparatus with function for specifying image quality, and method and storage medium |
CN105472268A (en) * | 2015-12-24 | 2016-04-06 | Tcl集团股份有限公司 | Method and device for filling light during photographing |
CN106161980A (en) * | 2016-07-29 | 2016-11-23 | 宇龙计算机通信科技(深圳)有限公司 | Photographic method and system based on dual camera |
CN106713780A (en) * | 2017-01-16 | 2017-05-24 | 维沃移动通信有限公司 | Control method for flash lamp and mobile terminal |
CN107135353A (en) * | 2017-04-27 | 2017-09-05 | 努比亚技术有限公司 | A kind of exposure regulating method, mobile terminal and computer-readable recording medium |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11475708B2 (en) | 2018-08-10 | 2022-10-18 | Zhejiang Uniview Technologies Co., Ltd. | Face feature point detection method and device, equipment and storage medium |
CN110826372B (en) * | 2018-08-10 | 2024-04-09 | 浙江宇视科技有限公司 | Facial feature point detection method and device |
CN110826372A (en) * | 2018-08-10 | 2020-02-21 | 浙江宇视科技有限公司 | Method and device for detecting human face characteristic points |
CN109462922A (en) * | 2018-09-20 | 2019-03-12 | 百度在线网络技术(北京)有限公司 | Control method, device, equipment and the computer readable storage medium of lighting apparatus |
CN109120864A (en) * | 2018-10-23 | 2019-01-01 | Oppo广东移动通信有限公司 | Light supplement processing method and device, storage medium and mobile terminal |
CN109348089A (en) * | 2018-11-22 | 2019-02-15 | Oppo广东移动通信有限公司 | Night scene image processing method and device, electronic equipment and storage medium |
CN110611774B (en) * | 2019-09-20 | 2021-07-16 | 深圳市梦网视讯有限公司 | Illumination compensation method and system for road surface monitoring video |
CN110611774A (en) * | 2019-09-20 | 2019-12-24 | 深圳市梦网百科信息技术有限公司 | Illumination compensation method and system for road surface monitoring video |
CN110944163A (en) * | 2019-11-21 | 2020-03-31 | 维沃移动通信有限公司 | Image processing method and electronic equipment |
CN111385454A (en) * | 2020-03-20 | 2020-07-07 | 深圳传音控股股份有限公司 | Photographing method, mobile terminal and computer-readable storage medium |
CN112687108A (en) * | 2020-06-28 | 2021-04-20 | 浙江大华技术股份有限公司 | Detection method and detection device for man-vehicle matching, shooting device and storage medium |
CN112687108B (en) * | 2020-06-28 | 2022-08-09 | 浙江大华技术股份有限公司 | Detection method and detection device for man-vehicle matching, shooting device and storage medium |
CN112383685A (en) * | 2020-11-02 | 2021-02-19 | 北京如影智能科技有限公司 | Containing device, control method and control device |
CN114885096A (en) * | 2022-03-29 | 2022-08-09 | 北京旷视科技有限公司 | Shooting mode switching method, electronic equipment and storage medium |
CN114885096B (en) * | 2022-03-29 | 2024-03-15 | 北京旷视科技有限公司 | Shooting mode switching method, electronic equipment and storage medium |
CN116977332A (en) * | 2023-09-21 | 2023-10-31 | 合肥联宝信息技术有限公司 | Camera light filling lamp performance test method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107948538B (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107948538B (en) | Imaging method, device, mobile terminal and storage medium | |
CN100565319C (en) | Exposure-control device and image-pickup device | |
CN107888840B (en) | High dynamic range image acquisition method and device | |
CN108712608B (en) | Terminal equipment shooting method and device | |
CN107977940A (en) | background blurring processing method, device and equipment | |
WO2021109620A1 (en) | Exposure parameter adjustment method and apparatus | |
CN107846556B (en) | Imaging method, imaging device, mobile terminal and storage medium | |
CN108616689B (en) | Portrait-based high dynamic range image acquisition method, device and equipment | |
JP2003179810A (en) | System and method for simulating fill flash in photography | |
CN108337447A (en) | High dynamic range image exposure compensation value acquisition method, device, equipment and medium | |
CN108156369B (en) | Image processing method and device | |
CN112040139B (en) | Light supplementing method for camera imaging | |
WO2019105254A1 (en) | Background blur processing method, apparatus and device | |
WO2019019904A1 (en) | White balance processing method and apparatus, and terminal | |
US11601600B2 (en) | Control method and electronic device | |
WO2020034702A1 (en) | Control method, device, electronic equipment and computer readable storage medium | |
CN102413280A (en) | Imaging apparatus and method for controlling same | |
CN109040607A (en) | Imaging control method, imaging control device, electronic device and computer-readable storage medium | |
CN107800971B (en) | Automatic exposure control processing method, device and equipment for panoramic shooting | |
CN107396079A (en) | Method and device for adjusting white balance | |
CN107635124A (en) | White balance processing method, device and equipment for face shooting | |
CN107580205A (en) | Method and device for adjusting white balance | |
CN108093170A (en) | User's photographic method, device and equipment | |
CN114143418B (en) | Dual-sensor imaging system and imaging method thereof | |
CN108337448B (en) | High dynamic range image acquisition method and device, terminal equipment and storage medium |
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: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 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: 20200221 |
|
CF01 | Termination of patent right due to non-payment of annual fee |