WO2019090591A1 - Photography method and photography system based on smart terminal - Google Patents

Photography method and photography system based on smart terminal Download PDF

Info

Publication number
WO2019090591A1
WO2019090591A1 PCT/CN2017/110170 CN2017110170W WO2019090591A1 WO 2019090591 A1 WO2019090591 A1 WO 2019090591A1 CN 2017110170 W CN2017110170 W CN 2017110170W WO 2019090591 A1 WO2019090591 A1 WO 2019090591A1
Authority
WO
WIPO (PCT)
Prior art keywords
color temperature
temperature value
face
module
light
Prior art date
Application number
PCT/CN2017/110170
Other languages
French (fr)
Chinese (zh)
Inventor
詹昌松
Original Assignee
深圳传音通讯有限公司
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 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to CN201780096712.XA priority Critical patent/CN111345030A/en
Priority to PCT/CN2017/110170 priority patent/WO2019090591A1/en
Publication of WO2019090591A1 publication Critical patent/WO2019090591A1/en

Links

Images

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

Definitions

  • the present invention relates to the technical field of intelligent terminals, and in particular, to a photographing method and a photographing system based on a smart terminal.
  • Smart terminals have become an increasingly indispensable part of today's life. With the rapid development of smart terminals, its built-in functions are becoming more diverse. Listening to music, business, games, and taking pictures has become a must-have feature for smart terminals. At present, in order to further improve the functions and user experience of smart terminals, technicians have continuously innovated and optimized existing functions.
  • the white balance option is often adjusted manually.
  • the so-called white balance is to let the smart terminal shoot white in different ambient color temperatures to represent real white, where white is a standard, because if the white is accurate, then The other colors are also accurate, so it is called white balance.
  • Those white balance modes such as cloudy, flash, fluorescent lights, etc., are all set by the smart terminal in response to different color temperatures, just to make the color of the photo closer to the real scene color.
  • this adjustment often requires manual operation by the user, and an additional representation of the color is required by additionally filling the light with the tool or replacing the shooting scene.
  • the invention is based on a smart terminal photographing method and a photographing system.
  • the compensating light of different intensities can be automatically generated according to the color temperature value of the face to ensure that the photo can be presented more.
  • Real colors provide users with a more optimized shooting and shooting experience.
  • the invention provides a photographing method for a smart terminal, and the photographing method comprises the following steps:
  • the step of extracting the color temperature value of the face of the face further comprises:
  • the average eye color temperature value of the eye position is detected as a facial color temperature value.
  • the compensation light is emitted by a soft light and/or a flash of the smart terminal.
  • the intensity of the compensated light is adjusted by the flash according to a difference between the facial color temperature value and the preset color temperature value.
  • the present invention further provides a camera system for an intelligent terminal, the camera system comprising: an acquisition module, an extraction module, a determination module, and a compensation module;
  • the collecting module collects a preview image of a face including a shooting object
  • the extraction module is communicatively coupled to the acquisition module and the determined module to extract a facial color temperature value of the face;
  • the compensation module When the color temperature value of the face is lower than a preset color temperature value, the compensation module emits a compensation light.
  • the extraction module further comprises:
  • An identification unit that performs face recognition on the face to determine an eye position in the face
  • the detecting unit detects an average eye color temperature value of the eye position as a facial color temperature value.
  • the intensity of the compensated light is adjusted by the flash according to a difference between the facial color temperature value and the preset color temperature value.
  • the photographing system further includes a prompting module, and the prompting module is communicatively connected to the determining module;
  • the extraction module is further connected to the compensation module, and extracts a compensated color temperature value after the face receives the compensation light;
  • the determining module determines whether the compensated color temperature value is lower than a preset color temperature value
  • the prompting module issues a prompt for reminding the photo.
  • the compensation light of different intensity can be automatically generated according to the color temperature value of the face
  • FIG. 1 is a schematic flowchart of a method for photographing based on an intelligent terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for photographing based on an intelligent terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for photographing based on an intelligent terminal according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a camera system based on an intelligent terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a camera system based on an intelligent terminal according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a camera system based on an intelligent terminal according to an embodiment of the present invention.
  • the smart terminal can be implemented in various forms.
  • the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, and the like, and such as Fixed terminal for digital TV, desktop computer, etc.
  • a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, and the like
  • the terminal is a smart terminal.
  • those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
  • the photographing method includes the following steps:
  • the camera of the smart terminal (including the front camera and the rear camera) needs to be first turned on, and after opening, a preview image is collected through the camera.
  • the preview image includes at least one or more face images of the subject.
  • the smart terminal After acquiring the facial image including one or more photographic subjects, the smart terminal further detects the face in the preview image through the built-in color temperature sensor for the subsequent smart terminal to accurately adjust the facial color temperature value according to the current shooting state.
  • the color temperature value is the color temperature of the face.
  • Color temperature is a feature of visible light that has important applications in photography, video, and publishing.
  • Color temperature is a sign that indicates the color of light, not the temperature of light.
  • the color temperature value is expressed by K. Different light sources exhibit different colors because the spectral components are different, and white light contains equal amounts of red, green, and blue light, that is, the same amount of red, green, and blue light are mixed in white light.
  • the color temperature of this white light is about 5400K.
  • a light source contains more red light components, its color temperature is lower than 5400K, for example, the tungsten light color temperature is about 2800K; if a light source contains more blue light components, its color temperature is higher than 5400K, such as sunny days.
  • the color temperature can reach about 20000K. Therefore, the simple understanding is that the more red light, the lower the color temperature value; the more blue the light, the higher the color temperature value.
  • the smart terminal After collecting the color temperature value of the face in the current shooting state, the smart terminal compares the color temperature value of the face with a preset color temperature value to determine whether the current color temperature value of the face reaches the preset standard, that is, determines the current shooting state. Is it possible to realistically present the color of the picture? Based on this, the smart terminal will calculate whether the current facial color temperature value is lower than the preset color temperature value by calling a function for judgment.
  • a compensated light is emitted when the facial color temperature value is below a predetermined color temperature value.
  • the compensation light is emitted by a soft light and/or a flash of the smart terminal.
  • the intensity of the compensated light is adjusted by the flash according to a difference between the facial color temperature value and the preset color temperature value.
  • the smart terminal determines that the photo collected under the current light state cannot present the true color, and the light condition is not good, which affects the photo quality.
  • the current shooting weather is cloudy, rainy, or at night.
  • the setting of the preset color temperature value can refer to the sensitivity of the color temperature of the human eye according to each region.
  • the method of filling light includes: automatically turning on the soft light and/or the flash to increase the current shooting brightness, and adjusting and adjusting the color temperature value of the face of the subject.
  • the smart terminal can adjust the manner of emitting the compensated light and compensate the intensity of the light according to the difference between the color temperature of the face and the preset color temperature value.
  • the difference is small, the light compensation can be performed only by the soft light; if the difference is large, the light compensation should be combined with the soft light and the flash, and further Steps increase the light intensity of the flash, so that the compensated face color temperature value reaches the standard of the preset color temperature value.
  • the step of extracting the color temperature value of the face of the face further includes:
  • the step of extracting the face color temperature value of the subject further includes face recognition of the subject.
  • face recognition includes the extraction of the feature information of the specific part of the face and the overall feature information, and the representation methods can be roughly divided into three categories:
  • the first one is a point to represent facial features, that is, some feature points defined according to our understanding of facial features.
  • facial features are defined by points, which we call boundaries. point. This is divided into three kinds of boundaries: extreme points. Generally, such boundaries have only one definition in a local range, such as the pupil of the eye, the tip of the nose and the nostrils.
  • Boundary point which can be considered as a boundary point on a local boundary, but considering the position and distance between adjacent boundary points, it is generally extracted uniformly over the entire edge, such as a face contour point. , eyebrow contour points, lip contour points, etc.
  • Interpolation points which have no obvious texture features locally, are calculated by interpolation of other boundary points, such as the center point of the mouth, the eyebrow, and those that are occluded or invisible.
  • the second is to define facial features with lines or borders.
  • the outline of the face is defined as a parabola
  • the boundary of the eyeball is defined as a circle, and so on.
  • the third type is to define facial features by region. For example, in some methods of segmentation by color or gray value, the region of the pixel with lip color is segmented as a mouth by statistically counting the lip color; eyes, eyebrows, etc. The difference is made by the difference between the corresponding color and brightness and other areas of the face, and then the area composed of the eligible pixels is taken as the corresponding target area.
  • the eye position of the photographed person can be obtained by identifying the points, lines, and faces in the face image collected by the smart terminal.
  • the smart terminal After the face recognition is used to lock the eye position in the face of the subject, the smart terminal detects and extracts the eye color temperature value for the eye position through its built-in color temperature sensor, and then averages the extracted N times eye color temperature value. Calculate, and finally get the color temperature of the face.
  • FIG. 3 it is a schematic flowchart of a method for photographing based on an intelligent terminal according to an embodiment of the present invention.
  • the photographing method further comprises:
  • the photographing method provided by the present invention further includes the compensated color temperature after being compensated. The value is further extracted.
  • the smart terminal After the smart terminal extracts the compensated color temperature value after the light compensation, the smart terminal compares the compensated color temperature value with a preset color temperature value to determine whether the compensated color temperature value of the current face reaches the preset standard, that is, the judgment Whether the color of the picture can be realistically displayed under the current shooting state. Based on this, the smart terminal will calculate whether the compensated color temperature value of the current face is lower than the preset color temperature value by calling a function.
  • the smart terminal can detect the current photographing state and can take a photo showing the real color. At this time, the smart terminal will send a prompt to the screen to remind The user can take a photo by taking a photo instruction to capture a preview image to generate a photo corresponding to the preview image.
  • the photographing system includes: an acquisition module, an extraction module, a determination module, and a compensation module;
  • the acquisition module acquiring a preview image of a face including a photographic subject
  • the camera system When the user needs to capture an image including a human face through the smart terminal, the camera system provided by the present invention needs to first open the camera (including the front camera and the rear camera) in the acquisition module, and after opening, through the acquisition module The camera captures a preview image that includes at least one or more facial images of the subject.
  • the extraction module is communicatively coupled to the acquisition module and the determined module to extract a facial color temperature value of the face;
  • the extraction module further detects the color temperature sensor according to the current shooting state, and the extraction module further detects the preview image through its built-in color temperature sensor.
  • the color temperature value of the face is the color temperature of the face.
  • Color temperature is a feature of visible light that has important applications in photography, video, and publishing.
  • Color temperature is a sign that indicates the color of light, not the temperature of light.
  • the color temperature value is expressed by K. Different light sources exhibit different colors because the spectral components are different, and white light contains equal amounts of red, green, and blue light, that is, the same amount of red, green, and blue light are mixed in white light.
  • the color temperature of this white light is about 5400K.
  • a light source contains more red light components, its color temperature is lower than 5400K, for example, the tungsten light color temperature is about 2800K; if a light source contains more blue light components, its color temperature is higher than 5400K, such as sunny days.
  • the color temperature can reach about 20000K. Therefore, the simple understanding is that the more red light, the lower the color temperature value; the more blue the light, the higher the color temperature value.
  • the determining module compares the color temperature value of the face with a preset color temperature value to determine whether the current color temperature value of the face reaches a preset standard, that is, determines the current Whether the color of the picture can be realistically displayed in the shooting state. Based on this, the judging module will calculate whether the current facial color temperature value is lower than the preset color temperature value by calling the function for judgment.
  • the compensation module emits a compensation light when the facial color temperature value is lower than a preset color temperature value.
  • the compensation module emits the compensation light by a soft light and/or a flash.
  • the intensity of the compensated light is adjusted by the flash according to a difference between the facial color temperature value and the preset color temperature value.
  • the judging module judges that the color temperature value of the face obtained by the judging module is lower than a preset color temperature value, the judging module judges that the photo taken under the current light state cannot present the true color, the light condition is not good, and the photo quality is affected.
  • the current shooting weather is cloudy, rainy, or at night.
  • the setting of the preset color temperature value can refer to the sensitivity of the color temperature of the human eye according to each region.
  • the method of filling light includes: automatically turning on the soft light and/or the flash to increase the current shooting brightness, and adjusting and adjusting the color temperature value of the face of the subject.
  • the compensation module can adjust the manner of emitting the compensated light and compensate the intensity of the light according to the difference between the color temperature of the face and the preset color temperature value.
  • the difference is small, the light compensation can be performed only by the soft light in the compensation module; if the difference is large, the soft light and the flash in the compensation module should be combined to compensate the light, and the light intensity change of the flash is further increased. , so that the compensated face color temperature value reaches the standard of the preset color temperature value.
  • the extraction module further includes: an identification unit that performs face recognition on the face to determine an eye position in the face;
  • the extraction module further includes an identification unit and a detection unit.
  • the identification unit is used for face recognition of the photographic subject.
  • the face recognition includes the extraction of the feature information of the specific part of the face and the overall feature information, and the representation methods can be roughly divided into three categories:
  • the first one is a point to represent facial features, that is, some feature points defined according to our understanding of facial features.
  • facial features are defined by points, which we call boundaries. point. This is divided into three kinds of boundaries: extreme points. Generally, such boundaries have only one definition in a local range, such as eyes. Pupils, nose tips and nostrils.
  • Boundary point which can be considered as a boundary point on a local boundary, but considering the position and distance between adjacent boundary points, it is generally extracted uniformly over the entire edge, such as a face contour point. , eyebrow contour points, lip contour points, etc.
  • Interpolation points which have no obvious texture features locally, are calculated by interpolation of other boundary points, such as the center point of the mouth, the eyebrow, and those that are occluded or invisible.
  • the second is to define facial features with lines or borders.
  • the outline of the face is defined as a parabola
  • the boundary of the eyeball is defined as a circle, and so on.
  • the third type is to define facial features by region. For example, in some methods of segmentation by color or gray value, the region of the pixel with lip color is segmented as a mouth by statistically counting the lip color; eyes, eyebrows, etc. The difference is made by the difference between the corresponding color and brightness and other areas of the face, and then the area composed of the eligible pixels is taken as the corresponding target area.
  • the recognition unit of the extraction module can obtain the eye position of the photographed person by the recognition of the points, lines and faces in the facial image collected by the acquisition module.
  • a detecting unit that detects an average eye color temperature value of the eye position as a facial color temperature value.
  • the detecting unit After recognizing the face of the subject by the recognition unit and locking the position of the eye in the face of the subject, the detecting unit can detect and extract the color temperature value of the eye for the eye position through the built-in color temperature sensor thereof, and then extract the obtained eye color value.
  • the N-eye color temperature value is averaged, and finally the face color temperature value is obtained.
  • FIG. 6 is a schematic structural diagram of a camera system based on an intelligent terminal according to an embodiment of the present invention.
  • the photographing system further includes a prompting module, the prompt a module, which is in communication with the determining module;
  • the extraction module is further connected in communication with the compensation module, and extracts a compensated color temperature value after the face receives the compensation light;
  • the extraction module in the photographing system provided by the present invention further The compensation module communication connection is further used for further extracting the compensated compensation color temperature value.
  • the determining module determining whether the compensated color temperature value is lower than a preset color temperature value
  • the determining module further compares the compensated color temperature value with a preset color temperature value to determine whether the compensated color temperature value of the current face reaches a preset standard, that is, Determine whether the color of the picture can be realistically displayed under the current shooting state. Based on this, the judgment module will calculate whether the compensated color temperature value of the current face is lower than the preset color temperature value by calling the function for judgment.
  • the prompting module issues a reminder to remind the photo.
  • the judging module judges that the photograph of the real color can be captured under the current photographing state, and at this time, the prompting module of the photographing system will issue a photo to the screen.
  • the prompt reminds the user that the photo can be taken by taking a photo instruction, and the preview image is captured to generate a photo corresponding to the preview image.
  • the invention adopts a smart terminal-based photographing method and a photographing system provided by the invention, and the user does not need to manually adjust the white balance option when taking photos, without using the fill light tool, and is not restricted by the shooting location, and the face of the photographed object is adopted.
  • Face color temperature value extraction can automatically emit different intensity compensation light according to the color temperature value of the face to ensure that the photo is shot under a certain standard brightness, providing users with a more optimized shooting effect and shooting experience.

Abstract

A photography method based on a smart terminal, comprising the following steps: collecting a preview image comprising a face of a photography subject; extracting a facial colour temperature value; determining whether the facial colour temperature value is lower than a preset colour temperature value; and, when the facial colour temperature value is lower than the preset colour temperature value, emitting a compensation light ray. The photography system based on a smart terminal comprises: a collection module, an extraction module, a determining module, and a compensation module.

Description

一种基于智能终端的拍照方法及拍照系统Photographing method based on intelligent terminal and photographing system 技术领域Technical field
本发明涉及智能终端的技术领域,尤其涉及一种基于智能终端的拍照方法及拍照系统。The present invention relates to the technical field of intelligent terminals, and in particular, to a photographing method and a photographing system based on a smart terminal.
背景技术Background technique
智能终端成为了当今生活中越来越不可或缺的一部分。随着智能终端的飞速发展,其内置的功能也越来越多样化。听音乐、商务、游戏、拍照已然成为了智能终端必备的成熟功能。目前,为进一步改善智能终端的功能和用户体验,技术人员针对现有的功能作出了不断的革新和优化。Smart terminals have become an increasingly indispensable part of today's life. With the rapid development of smart terminals, its built-in functions are becoming more diverse. Listening to music, business, games, and taking pictures has become a must-have feature for smart terminals. At present, in order to further improve the functions and user experience of smart terminals, technicians have continuously innovated and optimized existing functions.
例如,对于智能终端的拍照功能,通过技术人员的不断努力从像素、色调、美颜等方面都作出了不少的贡献。为了进一步增加拍摄效果,常常会通过手动调节白平衡选项,所谓白平衡就是让智能终端在不同的环境色温中拍摄白色呈现为真正的白色,其中的白是一个标准,因为如果白色准确了,那么其他的颜色也就准确了,所以叫做白平衡。那些白平衡模式如阴天、闪光灯、荧光灯等,都是智能终端为了应对不同的色温而设定的,就是为了让照片的颜色拍出来与真实场景颜色更加接近。然而,该调节往往需要用户手动操作,需要额外通过借助工具补光、或更换拍摄场地,来实现对色彩的真实呈现。For example, for the camera function of the smart terminal, the constant efforts of the technicians have made a lot of contributions from the aspects of pixels, color, beauty, and the like. In order to further increase the shooting effect, the white balance option is often adjusted manually. The so-called white balance is to let the smart terminal shoot white in different ambient color temperatures to represent real white, where white is a standard, because if the white is accurate, then The other colors are also accurate, so it is called white balance. Those white balance modes such as cloudy, flash, fluorescent lights, etc., are all set by the smart terminal in response to different color temperatures, just to make the color of the photo closer to the real scene color. However, this adjustment often requires manual operation by the user, and an additional representation of the color is required by additionally filling the light with the tool or replacing the shooting scene.
为此,需要提供一种基于智能终端的拍照方法及拍照系统,无需手动操作、借助补光工具,也不受于拍摄地点的限制,通过对拍摄对象脸部的脸部色温值提取,可自动根据脸部色温值进行发出不同强度的补偿光线,以确保照片能够呈现更为真实的色彩,为用户提供一种更为优化的拍摄效果和拍摄体验。To this end, it is necessary to provide a photographing method and a photographing system based on a smart terminal, which can be automatically operated without the need of manual operation, by means of a fill light tool, and by the limitation of the shooting location, by extracting the color temperature value of the face of the subject face. Different levels of compensation light are emitted according to the color temperature value of the face to ensure that the photo can present more realistic colors, providing users with a more optimized shooting effect and shooting experience.
发明内容Summary of the invention
本发明提出的一种基于智能终端拍照方法及拍照系统,通过对拍摄对象脸部的脸部色温值提取,可自动根据脸部色温值进行发出不同强度的补偿光线,以确保照片能够呈现更为真实的色彩,为用户提供一种更为优化的拍摄效果和拍摄体验。The invention is based on a smart terminal photographing method and a photographing system. By extracting the color temperature value of the face of the photographed subject, the compensating light of different intensities can be automatically generated according to the color temperature value of the face to ensure that the photo can be presented more. Real colors provide users with a more optimized shooting and shooting experience.
本发明提供了一种智能终端的拍照方法,所述拍照方法包括以下步骤:The invention provides a photographing method for a smart terminal, and the photographing method comprises the following steps:
采集包含一拍摄对象的脸部的预览图像;Collecting a preview image of a face containing a subject;
提取所述脸部的脸部色温值;Extracting a facial color temperature value of the face;
判断所述脸部色温值是否低于一预设色温值;Determining whether the color temperature value of the face is lower than a preset color temperature value;
当所述脸部色温值低于一预设色温值时,发出一补偿光线。When the color temperature value of the face is lower than a preset color temperature value, a compensation light is emitted.
优选地,提取所述脸部的脸部色温值的步骤中,进一步包括:Preferably, the step of extracting the color temperature value of the face of the face further comprises:
对所述脸部进行脸部识别,以确定所述脸部中的眼睛位置;Performing face recognition on the face to determine an eye position in the face;
检测所述眼睛位置的平均眼睛色温值,以作为脸部色温值。The average eye color temperature value of the eye position is detected as a facial color temperature value.
优选地,所述补偿光线通过所述智能终端的柔光灯和/或闪光灯发出。Preferably, the compensation light is emitted by a soft light and/or a flash of the smart terminal.
优选地,所述补偿光线的强度由所述闪光灯根据所述脸部色温值与所述预设色温值的差值调整。Preferably, the intensity of the compensated light is adjusted by the flash according to a difference between the facial color temperature value and the preset color temperature value.
优选地,于当所述脸部色温值低于一预设色温值时,发出一补偿光线的步骤之后,所述拍照方法进一步包括:Preferably, after the step of emitting a compensation light when the color temperature value of the face is lower than a preset color temperature value, the photographing method further comprises:
提取所述脸部接收所述补偿光线后的补偿色温值; Extracting a compensated color temperature value after the face receives the compensation light;
判断所述补偿色温值是否低于一预设色温值;Determining whether the compensated color temperature value is lower than a preset color temperature value;
当所述补偿色温值等于或高于所述预设色温值时,发出一提醒拍照的提示。When the compensated color temperature value is equal to or higher than the preset color temperature value, a reminder to remind the photo is issued.
本发明进一步提供了一种智能终端的拍照系统,所述拍照系统包括:采集模块,提取模块、判断模块及补偿模块;The present invention further provides a camera system for an intelligent terminal, the camera system comprising: an acquisition module, an extraction module, a determination module, and a compensation module;
所述采集模块,采集包含一拍摄对象的脸部的预览图像;The collecting module collects a preview image of a face including a shooting object;
所述提取模块,与所述采集模块、判的模块通讯连接,提取所述脸部的脸部色温值;The extraction module is communicatively coupled to the acquisition module and the determined module to extract a facial color temperature value of the face;
所述判断模块,与所述提取模块、补偿模块,判断所述脸部色温值是否低于一预设色温值;The determining module, and the extracting module and the compensation module, determining whether the color temperature value of the face is lower than a preset color temperature value;
当所述脸部色温值低于一预设色温值时,所述补偿模块发出一补偿光线。When the color temperature value of the face is lower than a preset color temperature value, the compensation module emits a compensation light.
优选地,所述提取模块进一步包括:Preferably, the extraction module further comprises:
识别单元,对所述脸部进行脸部识别,以确定所述脸部中的眼睛位置;An identification unit that performs face recognition on the face to determine an eye position in the face;
检测单元,检测所述眼睛位置的平均眼睛色温值,以作为脸部色温值。The detecting unit detects an average eye color temperature value of the eye position as a facial color temperature value.
优选地,所述补偿模块通过柔光灯和/或闪光灯发出所述补偿光线。Preferably, the compensation module emits the compensation light by a soft light and/or a flash.
优选地,所述补偿光线的强度由所述闪光灯根据所述脸部色温值与所述预设色温值的差值调整。Preferably, the intensity of the compensated light is adjusted by the flash according to a difference between the facial color temperature value and the preset color temperature value.
优选地,所述拍照系统进一步包括一提示模块,所述提示模块,与所述判断模块通讯连接;Preferably, the photographing system further includes a prompting module, and the prompting module is communicatively connected to the determining module;
所述提取模块,进一步与所述补偿模块通讯连接,提取所述脸部接收所述补偿光线后的补偿色温值;The extraction module is further connected to the compensation module, and extracts a compensated color temperature value after the face receives the compensation light;
所述判断模块,判断所述补偿色温值是否低于一预设色温值;The determining module determines whether the compensated color temperature value is lower than a preset color temperature value;
当所述补偿色温值等于或高于所述预设色温值时,所述提示模块发出一提醒拍照的提示。When the compensated color temperature value is equal to or higher than the preset color temperature value, the prompting module issues a prompt for reminding the photo.
与现有技术相比较,本发明的技术优势在于:Compared with the prior art, the technical advantages of the present invention are:
1.无需借助补光工具;1. No need to use the fill light tool;
2.无需手动调节白平衡选项;2. There is no need to manually adjust the white balance option;
3.不受于拍摄地点的限制;3. Not subject to the restrictions of the location;
4.通过对拍摄对象脸部的脸部色温值提取,可自动根据脸部色温值进行发出不同强度的补偿光线;4. By extracting the color temperature value of the face of the subject's face, the compensation light of different intensity can be automatically generated according to the color temperature value of the face;
5.能够确保照片在一定标准光亮度下拍摄,为用户提供一种更为优化的拍摄效果和拍摄体验。5. It can ensure that the photo is taken under a certain standard brightness, providing users with a more optimized shooting effect and shooting experience.
附图说明DRAWINGS
图1为符合本发明实施例中的一种基于智能终端的拍照方法的流程示意图;1 is a schematic flowchart of a method for photographing based on an intelligent terminal according to an embodiment of the present invention;
图2为符合本发明实施例中的一种基于智能终端的拍照方法的流程示意图;2 is a schematic flowchart of a method for photographing based on an intelligent terminal according to an embodiment of the present invention;
图3为符合本发明实施例中的一种基于智能终端的拍照方法的流程示意图;3 is a schematic flowchart of a method for photographing based on an intelligent terminal according to an embodiment of the present invention;
图4为符合本发明实施例中的一种基于智能终端的拍照系统的结构示意图;4 is a schematic structural diagram of a camera system based on an intelligent terminal according to an embodiment of the present invention;
图5为符合本发明实施例中的一种基于智能终端的拍照系统的结构示意图;FIG. 5 is a schematic structural diagram of a camera system based on an intelligent terminal according to an embodiment of the present invention; FIG.
图6为符合本发明实施例中的一种基于智能终端的拍照系统的结构示意图。FIG. 6 is a schematic structural diagram of a camera system based on an intelligent terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图及具体实施例详细阐述本发明的优异性。The superiority of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。 Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with aspects of the present disclosure as detailed in the appended claims.
在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the present disclosure are for the purpose of describing particular embodiments only, and are not intended to limit the disclosure. The singular forms "a", "the" and "the"
智能终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是智能终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。The smart terminal can be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, and the like, and such as Fixed terminal for digital TV, desktop computer, etc. In the following, it is assumed that the terminal is a smart terminal. However, those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
在后续的描述中,使用用于表示元件的诸如“模块”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。In the following description, the use of a suffix such as "module" for indicating an element is merely an explanation for facilitating the present invention, and does not have a specific meaning per se.
参阅图1,为符合本发明实施例中的一种基于智能终端的拍照方法的流程示意图。如图所示,本实施例中,所述拍照方法包括以下步骤:1 is a schematic flowchart of a method for photographing based on an intelligent terminal according to an embodiment of the present invention. As shown in the figure, in the embodiment, the photographing method includes the following steps:
-采集包含一拍摄对象的脸部的预览图像;- collecting a preview image of a face containing a subject;
当用户需要通过智能终端拍摄包含人脸部的图像时,基于本发明提供的拍照方法,需要首先开启智能终端的摄像头(包括前置摄像头和后置摄像头),开启后,通过摄像头采集一预览图像,该预览图像至少包括一个或多个拍摄对象的脸部图像。When the user needs to capture an image including a human face through the smart terminal, according to the photographing method provided by the present invention, the camera of the smart terminal (including the front camera and the rear camera) needs to be first turned on, and after opening, a preview image is collected through the camera. The preview image includes at least one or more face images of the subject.
-提取所述脸部的脸部色温值;Extracting a facial color temperature value of the face;
采集到包含一个或多个拍摄对象的脸部图像后,为了后续智能终端能够根据当前拍摄状态下的脸部色温值作精确调整,智能终端进一步通过其内置的色温传感器检测预览图像中的脸部的色温值,即为脸部色温值。色温是可见光在摄影、录像、出版等领域具有重要应用的特征。色温是表示光线颜色的一种标志,不是指光的温度。色温值用K来表示。不同光源呈现出不同颜色是因为光谱成分不同,白光中包含等量的红、绿、蓝光,即等量的红、绿、蓝光混合呈白光。这种白光的色温约为5400K左右。如果一种光源所含的红色光成分较多,其色温就低于5400K,例如钨丝灯色温为2800K左右;如果一种光源所含蓝色光成分较多,其色温就高于5400K,例如晴天时的色温可以达到20000K左右。所以,简单的理解就是,光线越偏红色,色温值就越低;光线越偏蓝色,色温值就越高。After acquiring the facial image including one or more photographic subjects, the smart terminal further detects the face in the preview image through the built-in color temperature sensor for the subsequent smart terminal to accurately adjust the facial color temperature value according to the current shooting state. The color temperature value is the color temperature of the face. Color temperature is a feature of visible light that has important applications in photography, video, and publishing. Color temperature is a sign that indicates the color of light, not the temperature of light. The color temperature value is expressed by K. Different light sources exhibit different colors because the spectral components are different, and white light contains equal amounts of red, green, and blue light, that is, the same amount of red, green, and blue light are mixed in white light. The color temperature of this white light is about 5400K. If a light source contains more red light components, its color temperature is lower than 5400K, for example, the tungsten light color temperature is about 2800K; if a light source contains more blue light components, its color temperature is higher than 5400K, such as sunny days. The color temperature can reach about 20000K. Therefore, the simple understanding is that the more red light, the lower the color temperature value; the more blue the light, the higher the color temperature value.
-判断所述脸部色温值是否低于一预设色温值;- determining whether the color temperature value of the face is lower than a preset color temperature value;
采集到当前拍摄状态下的脸部色温值后,智能终端将该脸部色温值与一预设色温值进行比较,以判断当前脸部色温值是否达到了预设标准,即判断当前的拍摄状态下是否能真实呈现画面的色彩。基于此,智能终端会通过调用函数,计算当前脸部色温值是否低于预设色温值,以作判断。After collecting the color temperature value of the face in the current shooting state, the smart terminal compares the color temperature value of the face with a preset color temperature value to determine whether the current color temperature value of the face reaches the preset standard, that is, determines the current shooting state. Is it possible to realistically present the color of the picture? Based on this, the smart terminal will calculate whether the current facial color temperature value is lower than the preset color temperature value by calling a function for judgment.
-当所述脸部色温值低于一预设色温值时,发出一补偿光线。- A compensated light is emitted when the facial color temperature value is below a predetermined color temperature value.
优选地,所述补偿光线通过所述智能终端的柔光灯和/或闪光灯发出。Preferably, the compensation light is emitted by a soft light and/or a flash of the smart terminal.
优选地,所述补偿光线的强度由所述闪光灯根据所述脸部色温值与所述预设色温值的差值调整。Preferably, the intensity of the compensated light is adjusted by the flash according to a difference between the facial color temperature value and the preset color temperature value.
当智能终端通过精确计算判断其采集所得的脸部色温值低于一预设色温值时,即智能终端判断当前光线状态下采集所得的照片不能呈现真实的颜色,光线条件欠佳,影响照片质量。例如,当前的拍摄天气为阴天、雨天或晚上等情况。其中,预设色温值的设定可参考根据各地区人眼色温敏感度。此时,为了避免拍出效果欠佳的照片,即使用户发出了拍照指令,智能终端也不会执行该拍照指令,相反,智能终端会自动对当前拍摄对象进行补光。补光的方式包括:自动开启柔光灯和/或闪光灯以增加当前拍摄亮度,对拍摄对象的脸部色温值进行补偿调整。具体地,智能终端可根据脸部色温之与预设色温值的差值大小,调整补偿光线的发出方式以及补偿光线的强度。差值较小时,可仅通过柔光灯进行光线补偿;若差值较大时,则需结合柔光灯和闪光灯进行光线补偿,且进一 步增加闪光灯的光强变化,使补偿后的脸部色温值达到预设色温值的标准。When the intelligent terminal judges that the color temperature value of the face obtained by the smart terminal is lower than a preset color temperature value, the smart terminal determines that the photo collected under the current light state cannot present the true color, and the light condition is not good, which affects the photo quality. . For example, the current shooting weather is cloudy, rainy, or at night. Among them, the setting of the preset color temperature value can refer to the sensitivity of the color temperature of the human eye according to each region. At this time, in order to avoid taking a photo with poor performance, even if the user issues a photographing instruction, the smart terminal does not execute the photographing instruction. On the contrary, the smart terminal automatically fills in the current subject. The method of filling light includes: automatically turning on the soft light and/or the flash to increase the current shooting brightness, and adjusting and adjusting the color temperature value of the face of the subject. Specifically, the smart terminal can adjust the manner of emitting the compensated light and compensate the intensity of the light according to the difference between the color temperature of the face and the preset color temperature value. When the difference is small, the light compensation can be performed only by the soft light; if the difference is large, the light compensation should be combined with the soft light and the flash, and further Steps increase the light intensity of the flash, so that the compensated face color temperature value reaches the standard of the preset color temperature value.
参阅图2,为符合本发明实施例中的一种基于智能终端的拍照方法的流程示意图。在一优选实施例中,提取所述脸部的脸部色温值的步骤中,进一步包括:Referring to FIG. 2, it is a schematic flowchart of a method for photographing based on an intelligent terminal according to an embodiment of the present invention. In a preferred embodiment, the step of extracting the color temperature value of the face of the face further includes:
-对所述脸部进行脸部识别,以确定所述脸部中的眼睛位置;- performing face recognition on the face to determine an eye position in the face;
提取拍摄对象的脸部色温值的步骤中,进一步包括对拍摄对象的脸部识别。其中,脸部识别包括对脸部特定部位的特征信息和整体的特征信息的提取,其表示方法大致可以分为三类:The step of extracting the face color temperature value of the subject further includes face recognition of the subject. Among them, the face recognition includes the extraction of the feature information of the specific part of the face and the overall feature information, and the representation methods can be roughly divided into three categories:
第一种是以点来表示脸部特征,也就是根据我们对脸部特征的理解定义的一些特征点,比如在ASM和AAM中,脸部特征就是用点来定义的,我们称之为界点。这其中又分为三种界点:极值点,一般这种界点在一个局部范围内只有唯一的定义,比如眼睛的瞳孔,鼻尖和鼻孔等。边界点,这种界点在一个局部内的边界上都可以认为是界点,但是考虑相邻界点之间的位置和距离,一般是在整个边缘上均匀的抽取得到,比如人脸轮廓点,眉毛轮廓点,嘴唇轮廓点等。插值点,这种界点在局部上并没有明显的纹理特征,是通过其他的界点插值推算得到的,比如嘴巴中心点,眉心,还有那些被遮挡或不可见的点等等。The first one is a point to represent facial features, that is, some feature points defined according to our understanding of facial features. For example, in ASM and AAM, facial features are defined by points, which we call boundaries. point. This is divided into three kinds of boundaries: extreme points. Generally, such boundaries have only one definition in a local range, such as the pupil of the eye, the tip of the nose and the nostrils. Boundary point, which can be considered as a boundary point on a local boundary, but considering the position and distance between adjacent boundary points, it is generally extracted uniformly over the entire edge, such as a face contour point. , eyebrow contour points, lip contour points, etc. Interpolation points, which have no obvious texture features locally, are calculated by interpolation of other boundary points, such as the center point of the mouth, the eyebrow, and those that are occluded or invisible.
第二种是用线条或者边界来定义脸部特征,比如在可变形模板中就将脸的轮廓定义为一条抛物线,眼珠的边界定义成圆等等。The second is to define facial features with lines or borders. For example, in a deformable template, the outline of the face is defined as a parabola, the boundary of the eyeball is defined as a circle, and so on.
第三种是以区域来定义面部特征,比如在一些通过颜色或者是灰度值进行分割的方法中,通过对唇色的统计分割出具有唇色的像素的区域作为嘴巴;眼睛、眉毛等也通过相应颜色和亮度同人脸其他区域的区别进行分割,然后将符合条件的像素组成的区域作为相应的目标区域。基于上述的三种表示方法,本发明实施例的拍照方法中,可以通过对智能终端采集所得的脸部图像中的点、线及面的识别获取被拍摄人物的眼睛位置。The third type is to define facial features by region. For example, in some methods of segmentation by color or gray value, the region of the pixel with lip color is segmented as a mouth by statistically counting the lip color; eyes, eyebrows, etc. The difference is made by the difference between the corresponding color and brightness and other areas of the face, and then the area composed of the eligible pixels is taken as the corresponding target area. Based on the above three representation methods, in the photographing method of the embodiment of the present invention, the eye position of the photographed person can be obtained by identifying the points, lines, and faces in the face image collected by the smart terminal.
-检测所述眼睛位置的平均眼睛色温值,以作为脸部色温值。- Detecting the average eye color temperature value of the eye position as a facial color temperature value.
通过脸部识别,锁定被拍摄对象脸部中的眼睛位置后,智能终端通过其内置的色温传感器,对眼睛位置检测并提取N次眼睛色温值,再对提取所得的N次眼睛色温值进行均值计算,最后得到脸部色温值。After the face recognition is used to lock the eye position in the face of the subject, the smart terminal detects and extracts the eye color temperature value for the eye position through its built-in color temperature sensor, and then averages the extracted N times eye color temperature value. Calculate, and finally get the color temperature of the face.
参阅图3,为符合本发明实施例中的一种基于智能终端的拍照方法的流程示意图。在一优选实施例中,于当所述脸部色温值低于一预设色温值时,发出一补偿光线的步骤之后,所述拍照方法进一步包括:Referring to FIG. 3, it is a schematic flowchart of a method for photographing based on an intelligent terminal according to an embodiment of the present invention. In a preferred embodiment, after the step of emitting a compensation light when the color temperature value of the face is lower than a preset color temperature value, the photographing method further comprises:
-提取所述脸部接收所述补偿光线后的补偿色温值;Extracting a compensated color temperature value after the face receives the compensated light;
当智能终端根据检测所的脸部色温值发出补偿光线后,为确保被补偿后的脸部色温值可以达到预设色温值的标准,本发明提供的拍照方法进一步包括对被补偿后的补偿色温值进行进一步的提取。After the smart terminal issues the compensation light according to the detected color temperature value of the face, in order to ensure that the compensated facial color temperature value can reach the preset color temperature value, the photographing method provided by the present invention further includes the compensated color temperature after being compensated. The value is further extracted.
-判断所述补偿色温值是否低于一预设色温值;- determining whether the compensated color temperature value is lower than a preset color temperature value;
当智能终端提取到到经光线补偿后的补偿色温值后,智能终端将该补偿色温值与一预设色温值进行比较,以判断当前脸部的补偿色温值是否达到了预设标准,即判断当前的拍摄状态下是否能真实呈现画面的色彩。基于此,智能终端会通过调用函数,计算当前脸部的补偿色温值是否低于预设色温值,以作判断。After the smart terminal extracts the compensated color temperature value after the light compensation, the smart terminal compares the compensated color temperature value with a preset color temperature value to determine whether the compensated color temperature value of the current face reaches the preset standard, that is, the judgment Whether the color of the picture can be realistically displayed under the current shooting state. Based on this, the smart terminal will calculate whether the compensated color temperature value of the current face is lower than the preset color temperature value by calling a function.
-当所述补偿色温值等于或高于所述预设色温值时,发出一提醒拍照的提示。- when the compensated color temperature value is equal to or higher than the preset color temperature value, a reminder to remind the photo is issued.
当脸部的补偿色温值已达到预设的标准预设色温值时,即智能终端判断当前的拍照状态下可拍摄得到呈现真实颜色的照片,此时,智能终端会向屏幕发出一提示,提醒用户可以通过发出拍照指令进行拍照,捕捉预览图像,以生成一与预览图像相应的照片。When the compensated color temperature value of the face has reached the preset standard preset color temperature value, the smart terminal can detect the current photographing state and can take a photo showing the real color. At this time, the smart terminal will send a prompt to the screen to remind The user can take a photo by taking a photo instruction to capture a preview image to generate a photo corresponding to the preview image.
参阅图4,为符合本发明实施例中一种基于智能终端的拍照系统的结构示意图。如图所示,本实施例中,所述拍照系统包括:采集模块,提取模块、判断模块及补偿模块;Referring to FIG. 4, it is a schematic structural diagram of a camera system based on an intelligent terminal according to an embodiment of the present invention. As shown in the figure, in the embodiment, the photographing system includes: an acquisition module, an extraction module, a determination module, and a compensation module;
-所述采集模块,采集包含一拍摄对象的脸部的预览图像; - the acquisition module, acquiring a preview image of a face including a photographic subject;
当用户需要通过智能终端拍摄包含人脸部的图像时,基于本发明提供的拍照系统,需要首先开启采集模块中的摄像头(包括前置摄像头和后置摄像头),开启后,通过采集模块中的摄像头采集一预览图像,该预览图像至少包括一个或多个拍摄对象的脸部图像。When the user needs to capture an image including a human face through the smart terminal, the camera system provided by the present invention needs to first open the camera (including the front camera and the rear camera) in the acquisition module, and after opening, through the acquisition module The camera captures a preview image that includes at least one or more facial images of the subject.
-所述提取模块,与所述采集模块、判的模块通讯连接,提取所述脸部的脸部色温值;- the extraction module is communicatively coupled to the acquisition module and the determined module to extract a facial color temperature value of the face;
采集模块采集到包含一个或多个拍摄对象的脸部图像后,为了后续拍照系统能够根据当前拍摄状态下的脸部色温值作精确调整,提取模块进一步通过其内置的色温传感器检测预览图像中的脸部的色温值,即为脸部色温值。色温是可见光在摄影、录像、出版等领域具有重要应用的特征。色温是表示光线颜色的一种标志,不是指光的温度。色温值用K来表示。不同光源呈现出不同颜色是因为光谱成分不同,白光中包含等量的红、绿、蓝光,即等量的红、绿、蓝光混合呈白光。这种白光的色温约为5400K左右。如果一种光源所含的红色光成分较多,其色温就低于5400K,例如钨丝灯色温为2800K左右;如果一种光源所含蓝色光成分较多,其色温就高于5400K,例如晴天时的色温可以达到20000K左右。所以,简单的理解就是,光线越偏红色,色温值就越低;光线越偏蓝色,色温值就越高。After the acquisition module collects the facial image including one or more photographic objects, the extraction module further detects the color temperature sensor according to the current shooting state, and the extraction module further detects the preview image through its built-in color temperature sensor. The color temperature value of the face is the color temperature of the face. Color temperature is a feature of visible light that has important applications in photography, video, and publishing. Color temperature is a sign that indicates the color of light, not the temperature of light. The color temperature value is expressed by K. Different light sources exhibit different colors because the spectral components are different, and white light contains equal amounts of red, green, and blue light, that is, the same amount of red, green, and blue light are mixed in white light. The color temperature of this white light is about 5400K. If a light source contains more red light components, its color temperature is lower than 5400K, for example, the tungsten light color temperature is about 2800K; if a light source contains more blue light components, its color temperature is higher than 5400K, such as sunny days. The color temperature can reach about 20000K. Therefore, the simple understanding is that the more red light, the lower the color temperature value; the more blue the light, the higher the color temperature value.
-所述判断模块,与所述提取模块、补偿模块,判断所述脸部色温值是否低于一预设色温值;- the determining module, and the extracting module and the compensation module, determining whether the color temperature value of the face is lower than a preset color temperature value;
提取模块提取到当前拍摄状态下的脸部色温值后,判断模块将该脸部色温值与一预设色温值进行比较,以判断当前脸部色温值是否达到了预设标准,即判断当前的拍摄状态下是否能真实呈现画面的色彩。基于此,判断模块会通过调用函数,计算当前脸部色温值是否低于预设色温值,以作判断。After the extraction module extracts the color temperature value of the face in the current shooting state, the determining module compares the color temperature value of the face with a preset color temperature value to determine whether the current color temperature value of the face reaches a preset standard, that is, determines the current Whether the color of the picture can be realistically displayed in the shooting state. Based on this, the judging module will calculate whether the current facial color temperature value is lower than the preset color temperature value by calling the function for judgment.
-当所述脸部色温值低于一预设色温值时,所述补偿模块发出一补偿光线。- the compensation module emits a compensation light when the facial color temperature value is lower than a preset color temperature value.
优选地,所述补偿模块通过柔光灯和/或闪光灯发出所述补偿光线。Preferably, the compensation module emits the compensation light by a soft light and/or a flash.
优选地,所述补偿光线的强度由所述闪光灯根据所述脸部色温值与所述预设色温值的差值调整。Preferably, the intensity of the compensated light is adjusted by the flash according to a difference between the facial color temperature value and the preset color temperature value.
当判断模块通过精确计算判断其采集所得的脸部色温值低于一预设色温值时,即判断模块判断当前光线状态下采集所得的照片不能呈现真实的颜色,光线条件欠佳,影响照片质量。例如,当前的拍摄天气为阴天、雨天或晚上等情况。其中,预设色温值的设定可参考根据各地区人眼色温敏感度。此时,为了避免拍出效果欠佳的照片,即使用户发出了拍照指令,拍照系统也不会执行该拍照指令,相反,拍照系统的补偿模块会自动对当前拍摄对象进行补光。补光的方式包括:自动开启柔光灯和/或闪光灯以增加当前拍摄亮度,对拍摄对象的脸部色温值进行补偿调整。具体地,补偿模块可根据脸部色温之与预设色温值的差值大小,调整补偿光线的发出方式以及补偿光线的强度。差值较小时,可仅通过补偿模块中的柔光灯进行光线补偿;若差值较大时,则需结合补偿模块中的柔光灯和闪光灯进行光线补偿,且进一步增加闪光灯的光强变化,使补偿后的脸部色温值达到预设色温值的标准。When the judging module judges that the color temperature value of the face obtained by the judging module is lower than a preset color temperature value, the judging module judges that the photo taken under the current light state cannot present the true color, the light condition is not good, and the photo quality is affected. . For example, the current shooting weather is cloudy, rainy, or at night. Among them, the setting of the preset color temperature value can refer to the sensitivity of the color temperature of the human eye according to each region. At this time, in order to avoid taking a photo with poor performance, even if the user issues a photographing instruction, the photographing system will not execute the photographing instruction. On the contrary, the compensation module of the photographing system will automatically fill the current subject. The method of filling light includes: automatically turning on the soft light and/or the flash to increase the current shooting brightness, and adjusting and adjusting the color temperature value of the face of the subject. Specifically, the compensation module can adjust the manner of emitting the compensated light and compensate the intensity of the light according to the difference between the color temperature of the face and the preset color temperature value. When the difference is small, the light compensation can be performed only by the soft light in the compensation module; if the difference is large, the soft light and the flash in the compensation module should be combined to compensate the light, and the light intensity change of the flash is further increased. , so that the compensated face color temperature value reaches the standard of the preset color temperature value.
参阅图5,为符合本发明实施例中一种基于智能终端的拍照系统的结构示意图。如图所示,在一优选实施例中,所述提取模块进一步包括:-识别单元,对所述脸部进行脸部识别,以确定所述脸部中的眼睛位置;Referring to FIG. 5, it is a schematic structural diagram of a camera system based on an intelligent terminal according to an embodiment of the present invention. As shown, in a preferred embodiment, the extraction module further includes: an identification unit that performs face recognition on the face to determine an eye position in the face;
提取模块进一步包括识别单元和检测单元。其中,识别单元用于对拍摄对象的脸部识别。其中,脸部识别包括对脸部特定部位的特征信息和整体的特征信息的提取,其表示方法大致可以分为三类:The extraction module further includes an identification unit and a detection unit. Wherein, the identification unit is used for face recognition of the photographic subject. Among them, the face recognition includes the extraction of the feature information of the specific part of the face and the overall feature information, and the representation methods can be roughly divided into three categories:
第一种是以点来表示脸部特征,也就是根据我们对脸部特征的理解定义的一些特征点,比如在ASM和AAM中,脸部特征就是用点来定义的,我们称之为界点。这其中又分为三种界点:极值点,一般这种界点在一个局部范围内只有唯一的定义,比如眼睛 的瞳孔,鼻尖和鼻孔等。边界点,这种界点在一个局部内的边界上都可以认为是界点,但是考虑相邻界点之间的位置和距离,一般是在整个边缘上均匀的抽取得到,比如人脸轮廓点,眉毛轮廓点,嘴唇轮廓点等。插值点,这种界点在局部上并没有明显的纹理特征,是通过其他的界点插值推算得到的,比如嘴巴中心点,眉心,还有那些被遮挡或不可见的点等等。The first one is a point to represent facial features, that is, some feature points defined according to our understanding of facial features. For example, in ASM and AAM, facial features are defined by points, which we call boundaries. point. This is divided into three kinds of boundaries: extreme points. Generally, such boundaries have only one definition in a local range, such as eyes. Pupils, nose tips and nostrils. Boundary point, which can be considered as a boundary point on a local boundary, but considering the position and distance between adjacent boundary points, it is generally extracted uniformly over the entire edge, such as a face contour point. , eyebrow contour points, lip contour points, etc. Interpolation points, which have no obvious texture features locally, are calculated by interpolation of other boundary points, such as the center point of the mouth, the eyebrow, and those that are occluded or invisible.
第二种是用线条或者边界来定义脸部特征,比如在可变形模板中就将脸的轮廓定义为一条抛物线,眼珠的边界定义成圆等等。The second is to define facial features with lines or borders. For example, in a deformable template, the outline of the face is defined as a parabola, the boundary of the eyeball is defined as a circle, and so on.
第三种是以区域来定义面部特征,比如在一些通过颜色或者是灰度值进行分割的方法中,通过对唇色的统计分割出具有唇色的像素的区域作为嘴巴;眼睛、眉毛等也通过相应颜色和亮度同人脸其他区域的区别进行分割,然后将符合条件的像素组成的区域作为相应的目标区域。基于上述的三种表示方法,本发明实施例的拍照系统中,提取模块的识别单元可以通过采集模块采集所得的脸部图像中的点、线及面的识别获取被拍摄人物的眼睛位置。The third type is to define facial features by region. For example, in some methods of segmentation by color or gray value, the region of the pixel with lip color is segmented as a mouth by statistically counting the lip color; eyes, eyebrows, etc. The difference is made by the difference between the corresponding color and brightness and other areas of the face, and then the area composed of the eligible pixels is taken as the corresponding target area. Based on the above three representation methods, in the photographing system of the embodiment of the present invention, the recognition unit of the extraction module can obtain the eye position of the photographed person by the recognition of the points, lines and faces in the facial image collected by the acquisition module.
-检测单元,检测所述眼睛位置的平均眼睛色温值,以作为脸部色温值。a detecting unit that detects an average eye color temperature value of the eye position as a facial color temperature value.
通过识别单元对拍摄对象的脸部识别,锁定被拍摄对象脸部中的眼睛位置后,检测单元能够通过其内置的色温传感器,对眼睛位置检测并提取N次眼睛色温值,再对提取所得的N次眼睛色温值进行均值计算,最后得到脸部色温值。After recognizing the face of the subject by the recognition unit and locking the position of the eye in the face of the subject, the detecting unit can detect and extract the color temperature value of the eye for the eye position through the built-in color temperature sensor thereof, and then extract the obtained eye color value. The N-eye color temperature value is averaged, and finally the face color temperature value is obtained.
参阅图6,为符合本发明实施例中一种基于智能终端的拍照系统的结构示意图。如图所示,在一优选实施例中,于当所述脸部色温值低于一预设色温值时,发出一补偿光线的步骤之后,所述拍照系统进一步包括一提示模块,所述提示模块,与所述判断模块通讯连接;FIG. 6 is a schematic structural diagram of a camera system based on an intelligent terminal according to an embodiment of the present invention. As shown in the figure, in a preferred embodiment, after the step of emitting a compensation light when the color temperature value of the face is lower than a preset color temperature value, the photographing system further includes a prompting module, the prompt a module, which is in communication with the determining module;
-所述提取模块,进一步与所述补偿模块通讯连接,提取所述脸部接收所述补偿光线后的补偿色温值;The extraction module is further connected in communication with the compensation module, and extracts a compensated color temperature value after the face receives the compensation light;
当补偿模块根据提取模块检测所的脸部色温值发出补偿光线后,为确保被补偿后的脸部色温值可以达到预设色温值的标准,本发明提供的拍照系统中的提取模块进一步,与补偿模块通讯连接,进一步用于对被补偿后的补偿色温值进行进一步的提取。After the compensation module sends the compensation light according to the color temperature value of the face detected by the extraction module, in order to ensure that the compensated color temperature value of the face can reach the preset color temperature value, the extraction module in the photographing system provided by the present invention further The compensation module communication connection is further used for further extracting the compensated compensation color temperature value.
-所述判断模块,判断所述补偿色温值是否低于一预设色温值;- the determining module, determining whether the compensated color temperature value is lower than a preset color temperature value;
当提取模块提取到到经光线补偿后的补偿色温值后,判断模块进一步将该补偿色温值与一预设色温值进行比较,以判断当前脸部的补偿色温值是否达到了预设标准,即判断当前的拍摄状态下是否能真实呈现画面的色彩。基于此,判断模块会通过调用函数,计算当前脸部的补偿色温值是否低于预设色温值,以作判断。After the extraction module extracts the compensated color temperature value after the light compensation, the determining module further compares the compensated color temperature value with a preset color temperature value to determine whether the compensated color temperature value of the current face reaches a preset standard, that is, Determine whether the color of the picture can be realistically displayed under the current shooting state. Based on this, the judgment module will calculate whether the compensated color temperature value of the current face is lower than the preset color temperature value by calling the function for judgment.
-当所述补偿色温值等于或高于所述预设色温值时,所述提示模块发出一提醒拍照的提示。- when the compensated color temperature value is equal to or higher than the preset color temperature value, the prompting module issues a reminder to remind the photo.
当脸部的补偿色温值已达到预设的标准预设色温值时,即判断模块判断当前的拍照状态下可拍摄得到呈现真实颜色的照片,此时,拍照系统的提示模块会向屏幕发出一提示,提醒用户可以通过发出拍照指令进行拍照,捕捉预览图像,以生成一与预览图像相应的照片。When the compensated color temperature value of the face has reached the preset standard preset color temperature value, the judging module judges that the photograph of the real color can be captured under the current photographing state, and at this time, the prompting module of the photographing system will issue a photo to the screen. The prompt reminds the user that the photo can be taken by taking a photo instruction, and the preview image is captured to generate a photo corresponding to the preview image.
采用本发明提供的一种基于智能终端的拍照方法及拍照系统,用户拍摄照片时无需手动调节白平衡选项,无需借助补光工具,也不受于拍摄地点的限制,通过对拍摄对象脸部的脸部色温值提取,可自动根据脸部色温值进行发出不同强度的补偿光线,以确保照片在一定标准光亮度下拍摄,为用户提供一种更为优化的拍摄效果和拍摄体验。The invention adopts a smart terminal-based photographing method and a photographing system provided by the invention, and the user does not need to manually adjust the white balance option when taking photos, without using the fill light tool, and is not restricted by the shooting location, and the face of the photographed object is adopted. Face color temperature value extraction, can automatically emit different intensity compensation light according to the color temperature value of the face to ensure that the photo is shot under a certain standard brightness, providing users with a more optimized shooting effect and shooting experience.
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。 It should be noted that the embodiments of the present invention are preferred embodiments, and are not intended to limit the scope of the present invention. Any one skilled in the art may use the above-disclosed technical contents to change or modify the equivalent embodiments. Any modification or equivalent changes and modifications of the above embodiments in accordance with the technical spirit of the present invention are still within the scope of the technical solutions of the present invention.

Claims (10)

  1. 一种基于智能终端的拍照方法,其特征在于,A photographing method based on a smart terminal, characterized in that
    所述拍照方法包括以下步骤:The photographing method includes the following steps:
    采集包含一拍摄对象的脸部的预览图像;Collecting a preview image of a face containing a subject;
    提取所述脸部的脸部色温值;Extracting a facial color temperature value of the face;
    判断所述脸部色温值是否低于一预设色温值;Determining whether the color temperature value of the face is lower than a preset color temperature value;
    当所述脸部色温值低于一预设色温值时,发出一补偿光线。When the color temperature value of the face is lower than a preset color temperature value, a compensation light is emitted.
  2. 如权利要求1所述的拍照方法,其特征在于,The photographing method according to claim 1, wherein
    提取所述脸部的脸部色温值的步骤中,进一步包括:And the step of extracting the color temperature value of the face of the face, further comprising:
    对所述脸部进行脸部识别,以确定所述脸部中的眼睛位置;Performing face recognition on the face to determine an eye position in the face;
    检测所述眼睛位置的平均眼睛色温值,以作为脸部色温值。The average eye color temperature value of the eye position is detected as a facial color temperature value.
  3. 如权利要求1所述的拍照方法,其特征在于,The photographing method according to claim 1, wherein
    所述补偿光线通过所述智能终端的柔光灯和/或闪光灯发出。The compensation light is emitted by a soft light and/or a flash of the smart terminal.
  4. 如权利要求3所述的拍照方法,其特征在于,The photographing method according to claim 3, wherein
    所述补偿光线的强度由所述闪光灯根据所述脸部色温值与所述预设色温值的差值调整。The intensity of the compensated light is adjusted by the flash according to a difference between the facial color temperature value and the preset color temperature value.
  5. 如权利要求1-4任一项所述的拍照方法,其特征在于,The photographing method according to any one of claims 1 to 4, wherein
    于当所述脸部色温值低于一预设色温值时,发出一补偿光线的步骤之后,所述拍照方法进一步包括:After the step of emitting a compensation light when the color temperature value of the face is lower than a preset color temperature value, the photographing method further includes:
    提取所述脸部接收所述补偿光线后的补偿色温值;Extracting a compensated color temperature value after the face receives the compensation light;
    判断所述补偿色温值是否低于一预设色温值;Determining whether the compensated color temperature value is lower than a preset color temperature value;
    当所述补偿色温值等于或高于所述预设色温值时,发出一提醒拍照的提示。When the compensated color temperature value is equal to or higher than the preset color temperature value, a reminder to remind the photo is issued.
  6. 一种基于智能终端的拍照系统,其特征在于,A camera system based on a smart terminal, characterized in that
    所述拍照系统包括:采集模块,提取模块、判断模块及补偿模块;The photographing system comprises: an acquisition module, an extraction module, a judgment module and a compensation module;
    所述采集模块,采集包含一拍摄对象的脸部的预览图像;The collecting module collects a preview image of a face including a shooting object;
    所述提取模块,与所述采集模块、判的模块通讯连接,提取所述脸部的脸部色温值;The extraction module is communicatively coupled to the acquisition module and the determined module to extract a facial color temperature value of the face;
    所述判断模块,与所述提取模块、补偿模块,判断所述脸部色温值是否低于一预设色温值;The determining module, and the extracting module and the compensation module, determining whether the color temperature value of the face is lower than a preset color temperature value;
    当所述脸部色温值低于一预设色温值时,所述补偿模块发出一补偿光线。When the color temperature value of the face is lower than a preset color temperature value, the compensation module emits a compensation light.
  7. 如权利要求6所述的拍照系统,其特征在于,A photographing system according to claim 6 wherein:
    所述提取模块进一步包括:The extraction module further includes:
    识别单元,对所述脸部进行脸部识别,以确定所述脸部中的眼睛位置;An identification unit that performs face recognition on the face to determine an eye position in the face;
    检测单元,检测所述眼睛位置的平均眼睛色温值,以作为脸部色温值。The detecting unit detects an average eye color temperature value of the eye position as a facial color temperature value.
  8. 如权利要求6所述的拍照系统,其特征在于,A photographing system according to claim 6 wherein:
    所述补偿模块通过柔光灯和/或闪光灯发出所述补偿光线。The compensation module emits the compensation light by a soft light and/or a flash.
  9. 如权利要求8所述的拍照系统,其特征在于,A photographing system according to claim 8 wherein:
    所述补偿光线的强度由所述闪光灯根据所述脸部色温值与所述预设色温值的差值调整。The intensity of the compensated light is adjusted by the flash according to a difference between the facial color temperature value and the preset color temperature value.
  10. 如权利要求6-9任一项所述的拍照系统,其特征在于,A photographing system according to any one of claims 6-9, wherein
    所述拍照系统进一步包括一提示模块,所述提示模块,与所述判断模块通讯连接;The photographing system further includes a prompting module, and the prompting module is communicatively connected to the determining module;
    所述提取模块,进一步与所述补偿模块通讯连接,提取所述脸部接收所述补偿光线后的补偿色温值;The extraction module is further connected to the compensation module, and extracts a compensated color temperature value after the face receives the compensation light;
    所述判断模块,判断所述补偿色温值是否低于一预设色温值; The determining module determines whether the compensated color temperature value is lower than a preset color temperature value;
    当所述补偿色温值等于或高于所述预设色温值时,所述提示模块发出一提醒拍照的提示。 When the compensated color temperature value is equal to or higher than the preset color temperature value, the prompting module issues a prompt for reminding the photo.
PCT/CN2017/110170 2017-11-09 2017-11-09 Photography method and photography system based on smart terminal WO2019090591A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780096712.XA CN111345030A (en) 2017-11-09 2017-11-09 Photographing method and photographing system based on intelligent terminal
PCT/CN2017/110170 WO2019090591A1 (en) 2017-11-09 2017-11-09 Photography method and photography system based on smart terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/110170 WO2019090591A1 (en) 2017-11-09 2017-11-09 Photography method and photography system based on smart terminal

Publications (1)

Publication Number Publication Date
WO2019090591A1 true WO2019090591A1 (en) 2019-05-16

Family

ID=66437525

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/110170 WO2019090591A1 (en) 2017-11-09 2017-11-09 Photography method and photography system based on smart terminal

Country Status (2)

Country Link
CN (1) CN111345030A (en)
WO (1) WO2019090591A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI819219B (en) * 2020-04-30 2023-10-21 鴻海精密工業股份有限公司 Photographing method for dynamic scene compensation and a camera using the method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104785A (en) * 2009-12-21 2011-06-22 佳能株式会社 Image pickup apparatus and controlling method therefor
CN104581099A (en) * 2014-12-04 2015-04-29 广东欧珀移动通信有限公司 Shooting method and terminal
CN106954027A (en) * 2017-02-14 2017-07-14 维沃移动通信有限公司 The method and mobile terminal of a kind of image taking

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015098108A1 (en) * 2013-12-27 2015-07-02 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Information processing program, receiving program and information processing device
JP6695021B2 (en) * 2015-11-27 2020-05-20 パナソニックIpマネジメント株式会社 Lighting equipment
CN105744174B (en) * 2016-02-15 2019-03-08 Oppo广东移动通信有限公司 A kind of self-timer method, device and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104785A (en) * 2009-12-21 2011-06-22 佳能株式会社 Image pickup apparatus and controlling method therefor
CN104581099A (en) * 2014-12-04 2015-04-29 广东欧珀移动通信有限公司 Shooting method and terminal
CN106954027A (en) * 2017-02-14 2017-07-14 维沃移动通信有限公司 The method and mobile terminal of a kind of image taking

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI819219B (en) * 2020-04-30 2023-10-21 鴻海精密工業股份有限公司 Photographing method for dynamic scene compensation and a camera using the method

Also Published As

Publication number Publication date
CN111345030A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
US20210329208A1 (en) Illuminant estimation referencing facial color features
USRE47960E1 (en) Methods and devices of illuminant estimation referencing facial color features for automatic white balance
EP3520390B1 (en) Recolorization of infrared image streams
US7912285B2 (en) Foreground/background segmentation in digital images with differential exposure calculations
US7680342B2 (en) Indoor/outdoor classification in digital images
US20220180485A1 (en) Image Processing Method and Electronic Device
CN110163810B (en) Image processing method, device and terminal
CN104735362B (en) Photographic method and device
US8175382B2 (en) Learning image enhancement
US9460521B2 (en) Digital image analysis
JP3018914B2 (en) Gradation correction device
US10965924B2 (en) Correlating illuminant estimation by a plurality of cameras
CN112887582A (en) Image color processing method and device and related equipment
CN109089041A (en) Recognition methods, device, electronic equipment and the storage medium of photographed scene
WO2019218879A1 (en) Photographing interaction method and apparatus, storage medium and terminal device
CN108810397B (en) Image color cast correction method and terminal equipment
WO2019090591A1 (en) Photography method and photography system based on smart terminal
CN110335257A (en) A kind of image color detection method and mobile terminal
KR102334030B1 (en) Method for dyeing hair by using computer device
US20210314541A1 (en) Face recognition based on illuminant estimation
CN114565506B (en) Image color migration method, device, equipment and storage medium
RU2794062C2 (en) Image processing device and method and equipment
CN117793541A (en) Ambient light adjusting method, device, electronic equipment and readable storage medium
CN117523623A (en) Portrait identification method and device
Bocchio et al. CMOS CFA database under varying illumination for benchmarking of face detection algorithms

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17931783

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17931783

Country of ref document: EP

Kind code of ref document: A1