WO2019047077A1 - White balance processing method of terminal, and terminal and computer-readable storage medium - Google Patents

White balance processing method of terminal, and terminal and computer-readable storage medium Download PDF

Info

Publication number
WO2019047077A1
WO2019047077A1 PCT/CN2017/100776 CN2017100776W WO2019047077A1 WO 2019047077 A1 WO2019047077 A1 WO 2019047077A1 CN 2017100776 W CN2017100776 W CN 2017100776W WO 2019047077 A1 WO2019047077 A1 WO 2019047077A1
Authority
WO
WIPO (PCT)
Prior art keywords
white balance
terminal
rgb data
color temperature
subject
Prior art date
Application number
PCT/CN2017/100776
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 PCT/CN2017/100776 priority Critical patent/WO2019047077A1/en
Priority to CN201780096515.8A priority patent/CN111602390A/en
Publication of WO2019047077A1 publication Critical patent/WO2019047077A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths

Definitions

  • the present invention relates to the field of camera technologies, and in particular, to a terminal white balance processing method, a terminal, and a computer readable storage medium.
  • the human eye has a certain adaptability to the color temperature, so the color seen is less affected by the color temperature shift, and the terminal camera does not have this ability, so the photograph taken and the color seen by the human eye will have a large deviation. , need to perform white balance processing.
  • Some white balance methods are based on the gray world hypothesis algorithm.
  • the main object of the present invention is to provide a terminal white balance processing method, which aims to solve the problem that the accuracy of the RGB data of the subject determining the white balance parameter is greatly affected by the terminal camera and the ISP, and is easily caused by any change of factors.
  • the data is not accurate technical issues.
  • the present invention provides a terminal white balance processing method, and the method includes:
  • a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image
  • the white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
  • the method includes:
  • the RGB data of the subject determined according to the image signal processor is acquired, the white balance parameter is determined according to the RGB data, and the terminal framing image is subjected to white balance processing.
  • the step of determining a white balance parameter according to the RGB data includes:
  • a reference area in the subject is determined based on the RGB data, and a white balance parameter is determined based on RGB data of the reference area.
  • the determining, according to the RGB data, the reference area in the object includes:
  • the region corresponding to the RGB ratio is the first reference region, and the first reference region is the reference region.
  • the region corresponding to the RGB ratio is after the step of the first reference region include:
  • a first reference region having the largest RGB is determined, and the first reference region corresponding to the maximum RGB is a reference region.
  • the method for processing a terminal white balance further includes:
  • the current color temperature value is converted into RGB data, and the white balance parameter is updated according to the RGB data.
  • the step of determining the three primary colors RGB data of the subject according to the current color temperature value of the subject includes:
  • the determining the white balance parameter according to the RGB data, and performing white balance processing on the original imaging image includes:
  • the RGB data of the corresponding area of all the subjects on the original imaged image is adjusted to the correction value.
  • the present invention further provides a terminal, the terminal comprising: a processor, a color temperature sensor, a camera, a memory, and a terminal white balance processing stored on the memory and executable on the processor
  • the program when the terminal white balance processing program is executed by the processor, implements the following steps:
  • a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image
  • the white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
  • the present invention further provides a computer readable storage medium, where the terminal white balance processing program is stored, and when the terminal white balance processing program is executed by the processor, the following steps are implemented. :
  • a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image
  • the white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
  • the color temperature sensor is activated to perform color temperature detection, the color temperature value obtained by the color temperature sensor is converted into RGB data, and the final white balance parameter is determined according to the RGB data, and white balance processing is performed;
  • the detected color temperature value is more accurate, and the RGB data converted from the detected color temperature value is more accurate, so the white balance parameter determined according to the more accurate RGB data is also more accurate.
  • it is more realistic to restore the actual color of the subject, as close as possible to the effect of the human eye, and enhance the user experience.
  • FIG. 1 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for processing white balance of a terminal according to the present invention
  • step S30 is a schematic flowchart of step S30 in the third embodiment of the terminal white balance processing method according to the present invention.
  • FIG. 4 is a schematic flowchart of a prior art process related to a seventh embodiment of a white balance processing method of the present invention
  • FIG. 5 is a schematic flowchart diagram of a seventh embodiment of a method for processing a terminal white balance according to the present invention.
  • FIG. 1 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention.
  • the terminal in the embodiment of the present invention may be a PC, or may be a smart phone, a tablet computer, an e-book reader, and an MP3 (Moving Picture).
  • Experts Group Audio Layer III, Motion Picture Expert Compress Standard Audio Level 3) Player, MP4 (Moving Picture Experts Group Audio Layer IV, motion imaging experts compress standard audio layers 3) players, laptops, PDAs, personal digital assistants (Personal Digital Assistant, PDA), Portable Media Player (Portable Media) Players, PMPs, navigation devices, portable computers, and the like have portable display devices, and fixed terminals such as desktop computers.
  • the terminal may include a processor 1001, such as a CPU, a color temperature sensor 1002, a camera 1003, a memory 1005, and a communication bus 1004.
  • the communication bus 1004 is used to implement connection communication between these components.
  • the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
  • the memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
  • the color temperature sensor 1002 can be a chip.
  • Camera 1003 can be one or more cameras.
  • the terminal may further include an RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more.
  • sensors such as light sensors, motion sensors, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display according to the brightness of the ambient light, and the proximity sensor may turn off the display and/or when the mobile terminal moves to the ear. Backlighting.
  • the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
  • terminal structure shown in FIG. 1 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • a memory white balance processing program is included in a memory 1005 as a computer storage medium.
  • the camera 1003 is used for framing shooting;
  • the color temperature sensor 1002 is for detecting the color temperature value of the subject in the camera framing image area; and the processor 1001 can be used to call the terminal white stored in the memory 1005.
  • a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image
  • the white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
  • processor 1001 may call the terminal white balance processing program stored in the memory 1005, and further perform the following operations:
  • the step after detecting the shooting request includes:
  • the RGB data of the subject determined according to the image signal processor is acquired, the white balance parameter is determined according to the RGB data, and the terminal framing image is subjected to white balance processing.
  • the step of determining a white balance parameter according to the RGB data includes:
  • a reference area in the subject is determined based on the RGB data, and a white balance parameter is determined based on RGB data of the reference area.
  • the determining the reference area in the subject according to the RGB data comprises:
  • the region corresponding to the RGB ratio is the first reference region, and the first reference region is the reference region.
  • processor 1001 may call the terminal white balance processing program stored in the memory 1005, and further perform the following operations:
  • the step of the region corresponding to the RGB ratio being the first reference region includes:
  • a first reference region having the largest RGB is determined, and the first reference region corresponding to the maximum RGB is a reference region.
  • processor 1001 may call the terminal white balance processing program stored in the memory 1005, and further perform the following operations:
  • the terminal white balance processing method further includes:
  • the current color temperature value is converted into RGB data, and the white balance parameter is updated according to the RGB data.
  • the step of determining the three primary colors RGB data of the subject according to the current color temperature value of the subject includes:
  • the determining the white balance parameter according to the RGB data, and performing white balance processing on the original imaging image includes:
  • the RGB data of the corresponding area of all the subjects on the original imaged image is adjusted to the correction value.
  • the terminal white balance processing method includes:
  • Step S10 when detecting the shooting request, starting a color temperature sensor on the terminal, and acquiring a current color temperature value of the object in the terminal framing image;
  • the terminal generally has a plurality of white balance modes.
  • one of the automatic white balance modes is used.
  • the terminal When the terminal is in the automatic white balance mode, the user inputs a shooting request to the terminal, and the input mode is different according to the terminal.
  • the terminal If the terminal is a mobile phone, the user inputs a shooting request, and if the terminal is a camera, the user button is turned on as a shooting request.
  • the terminal processor can detect the shooting request, activate the color temperature sensor while starting the shooting device (such as the camera).
  • the color temperature sensor may be adjacent to the camera, and may be connected to the camera under the lens to obtain a color temperature value of the subject within the range of the camera frame.
  • the subject may have one color or multiple colors. Therefore, the color temperature sensor can detect a plurality of color temperature values.
  • Step S11 determining three primary color RGB data of the subject according to a current color temperature value of the subject
  • the subject may be one or more, and the color may be one or more, there may be one or more color temperature values, and there may be more than one corresponding RGB data.
  • the RGB data can refer to three values of red, green, and blue, and can also refer to the ratio of the three values of the three colors.
  • the white balance parameter can be expressed by the ratio between the gain coefficients of the three primary colors of red, green, and blue. According to the ratio between the gain coefficients of the three colors, respectively, the three colors in the color of the captured object. Make adjustments.
  • the RGB data is obtained according to the color temperature value, and can be calculated according to a specific table or formula, or can be obtained by calling a specific function calculation. Since the conversion of the color temperature value to the RGB data belongs to the prior art, it will not be described again.
  • Step S12 determining a white balance parameter according to the RGB data, and performing white balance processing on the original image.
  • the original imaging image in this embodiment refers to an initial image captured by the photographing device that has not been subjected to white balance processing.
  • the RGB data may be multiple, and the RGB data may be averaged according to the RGB data.
  • the white balance processing module converts the average RGB data into a white balanced RGB gain parameter.
  • White balance processing a special RGB data (such as white or near-white RGB data) in the RGB data may be selected, and the RGB data is algorithmically calibrated, and then output to the white balance processing module to be converted into a white balance parameter.
  • RGB data select a special value in the RGB data, perform an operation (such as averaging calculation) to obtain an RGB data, and after performing algorithm calibration, the output to the white balance processing module is converted into a white balance parameter; or A specific algorithm that determines which white balance parameters are determined based on which RGB data.
  • the sensor (sensor) in the camera device generally outputs the original image
  • the ISP Image Signal Processor, image signal processing
  • the sensor sensor in the camera device
  • the ISP Image Signal Processor, image signal processing
  • R/G red/green
  • B/G blue/green
  • Obtaining RGB data here involves two key components, one is the camera and the other is the ISP.
  • the accuracy of RGB is affected by these two components, and because the two components need to perform other functions at the same time, the performance requirements of the components are better.
  • the acquisition of the physical object RGB is not as good as the function focusing on the color acquisition component.
  • the color temperature sensor is activated to perform color temperature detection, the color temperature value obtained by the color temperature sensor is converted into RGB data, and the final white balance parameter is determined according to the RGB data, and white balance processing is performed;
  • the color temperature sensor has higher accuracy than the camera or ISP, and the detected color temperature value is more accurate, and the RGB data converted from the detected color temperature value is also more accurate, so the white balance parameter determined according to the more accurate RGB data is It is also more accurate, and it can more realistically restore the actual color of the subject, as close as possible to the effect of the human eye, and enhance the user experience.
  • the step includes:
  • Step S20 detecting whether the color temperature sensor is faulty
  • Step S21 if it is detected that the color temperature sensor has no fault, performing the step of starting the color temperature sensor on the terminal;
  • Step S22 if it is detected that the color temperature sensor is faulty, acquiring RGB data of the object determined according to the image signal processor, determining a white balance parameter according to the RGB data, and performing white balance processing on the terminal view image.
  • the color temperature sensor is used as an important component for detecting the color temperature value of the subject, determining the RGB data of the subject, and determining the white balance parameter.
  • the image signal processor (ISP) can be used as a spare component in order not to affect the user experience. That is, after detecting the shooting request, if the color temperature sensor is detected to be faulty, the image signal processor (ISP) can be called to read the original image, obtain RGB data, and perform traditional white balance processing; if the color temperature sensor is detected to operate normally, The color temperature sensor is preferentially used to obtain the white balance parameter to ensure the accuracy of the parameter.
  • the secondary spare component when the color temperature sensor is faulty, the secondary spare component is set, that is, the image signal processor replaces the color temperature sensor, so that when the color temperature sensor is faulty, the terminal can still perform normal white balance processing when shooting.
  • the color temperature sensor when the color temperature sensor is not faulty, it is preferable to use the color temperature sensor to obtain important parameters and to ensure the accuracy of the finally obtained white balance parameter.
  • the step of determining the white balance parameter according to the RGB data in the step S12 includes:
  • Step S30 determining a reference area in the object according to the RGB data
  • Step S31 determining a white balance parameter according to the RGB data of the reference area.
  • the reference region in the subject can be determined from the RGB data; the characteristics of the corresponding RGB data can also be determined according to the characteristics of the reference region, thereby determining the reference region.
  • the camera When performing white balance processing, the camera generally needs to select a reference point, and determine the white balance parameter according to the RGB data of the reference point. If the RGB data of the reference point is adjusted to 1:1:1, the entire image can be Restore its true color.
  • the reference area selected in this embodiment is the reference point.
  • the RGB data can be expressed in the form of (R:G:B).
  • R:G:B the closer the R, G, and B are, the closer the color of the object is to white or gray or black.
  • white balance calibration is generally performed by using white or gray or black as a reference point, so that an object region having the closest three values of R, G, and B can be selected as the reference region.
  • the reference area of the subject is determined according to the RGB data converted by the color temperature sensor, and the reference area is used as a reference point for the white balance processing of the imaging apparatus, and the white balance parameter is determined according to the RGB data of the reference area, so that the white balance can be more accurately obtained.
  • the parameter maximizes the image to restore its true color, closer to what the human eye sees, and enhances the user experience.
  • step S30 includes:
  • Step S32 determining a first ratio of red to blue and a second ratio of red to green according to the RGB data
  • Step S33 If the first ratio is smaller than the first threshold, and the second ratio is smaller than the second threshold, the region corresponding to the RGB ratio is the first reference region, and the first reference region is the reference region.
  • the first ratio determined in this embodiment is a ratio of red to blue
  • the second ratio is a ratio of red to green
  • the first ratio may refer to a ratio of any two of the three colors of RGB, such as a ratio of red to green. , red-blue ratio, blue-red ratio, etc.
  • the second ratio is determined according to the first ratio, and one color of the first ratio is replaced. If the first ratio is red-green ratio, the second ratio may be red-blue ratio, green blue Than wait.
  • the first threshold and the second threshold may be the same or different, and should be small enough to reduce the judgment error, which may be set by the terminal or set by the user. If the first ratio is less than the first threshold and the second ratio is less than the second threshold, the three values of the RGB of the corresponding object are relatively close, and the corresponding object region is the first reference region, and the first reference region can be determined as the reference. region.
  • the RGB three color values are close to each other, and then the region where the RGB three color values are close is used as the reference region, so that the RGB data for determining the white balance parameter is further Accurate, which in turn makes the white balance parameter more accurate and better to restore the actual color of the object.
  • the step of the region corresponding to the RGB ratio being the first reference region includes:
  • Step S33 if there are multiple first reference regions, compare RGB data sizes of the plurality of first reference regions;
  • Step S34 determining a first reference area having the largest RGB data, and the first reference area corresponding to the maximum RGB data is a reference area.
  • RGB data can be expressed in the form of (R:G:B).
  • R:G:B the closer the R, G, and B are, the closer the color of the object is to white or gray or black, and the larger the three values of R, G, and B are.
  • the white area in the subject can be judged based on this rule.
  • the reference area using the white area as the white balance is more accurate than the other colors. Therefore, after the first reference area is determined, if there are multiple first reference areas, it can be determined according to a certain algorithm or a preset rule.
  • White area the closer the R, G, and B are, the closer the color of the object is to white or gray or black, and the larger the three values of R, G, and B are.
  • the closer the object is to white the smaller it is closer to black.
  • the white area in the subject can be judged based on this rule.
  • the reference area using the white area as the white balance is more accurate than the
  • the first reference area corresponding to the maximum RGB data is a reference area.
  • the white area in the first reference area may be selected as the reference area of the last white balance or The reference area, because of the special nature of white, allows the final imaging to be more accurately restored.
  • the terminal white balance processing method further includes:
  • Step S40 When it is detected that the color temperature value of the object in the terminal framing image changes, the current color temperature value of the object is acquired;
  • Step S41 converting the current color temperature value into RGB data, and updating the white balance parameter according to the RGB data.
  • the color temperature sensor monitors the color temperature of the subject in real time during shooting. If the color temperature changes during shooting, the change should be fed back to the processor and return to the current color temperature value after the subject changes.
  • the changed color temperature value is converted into RGB data by a certain algorithm, and the white balance parameter determined according to the color temperature value before the change is updated according to the RGB data.
  • the color temperature sensor responds to the color temperature change in real time, and the changed color temperature value can be fed back in real time, so that the current white balance parameter can be updated according to the change of the color temperature of the subject, so that the picture taken by the terminal at any time can be Obtain a more accurate white balance parameter for white balance processing, and then restore the true color of the subject.
  • step S11 includes:
  • Step S50 converting the color temperature values of all the objects in the terminal framing image into RGB data, and obtaining an average value of the three color channels of the object in R, G, and B according to the RGB data, wherein the average value is The three primary colors RGB data of the subject.
  • the color temperature sensor may detect many color temperature values.
  • the plurality of color temperature values detected by the color temperature sensor are converted into a plurality of RGB data, and the RGB data may be values of the object on the three color channels of R, G, and B. Calculating an average value of all the objects in the framing image of the entire camera in the R, G, and B color channels according to all the RGB data, and finally obtaining a unique RGB value, the RGB value is three of the subject
  • the primary color RGB data is to be used as a basis for determining the white balance parameter.
  • the unique RGB data that ultimately determines the white balance parameter is determined by the plurality of RGB data converted from the plurality of color temperature values, so that the step of determining the white balance parameter is performed smoothly; determining the subject in R, G, and B.
  • the average value of the color channels is used as the unique RGB data, which integrates the overall RGB data of the subject, ensuring a certain degree of accuracy, and ensuring accurate restoration of the actual object color by the subsequent white balance processing.
  • step S12 includes:
  • Step S60 determining an RGB gain value of the white balance according to the RGB data of the reference area, and determining a final correction value of all the objects according to the RGB gain value and RGB data of all the objects;
  • Step S61 adjusting RGB data of corresponding regions of all the subjects on the original imaging image to the correction value.
  • CCD electronic coupling components There are three CCD electronic coupling components inside the camera. They respectively sense the blue, green and red light.
  • the electronic amplification ratios of the three photosensitive circuits are the same, which is 1:1:1, white balance.
  • the adjustment is to change this proportional relationship according to the scene being adjusted. For example, the ratio of blue, green, and red light of the adjusted scene is 2:1:1 (more blue light ratio, higher color temperature), then the ratio of white balance adjustment is 1:2:2, the adjusted circuit The proportion of the apparent blue in the magnification ratio is reduced, and the ratio of green to red is increased, so that the adjusted scene passes through the white balance adjustment circuit to the captured image, and the ratios of blue, green, and red are the same.
  • the white balance adjustment changes the normal proportional relationship to weaken the amplification of the blue circuit, and at the same time increases the ratio of green and red, so that the resulting image is still white.
  • the RGB data value of all the subjects in the embodiment the RGB data (three ratios) of the subject in the original image or the original image, the RGB gain value according to the white balance and the RGB data of the subject
  • the final correction value of all the subjects, that is, the last restored RGB data is determined.
  • the RGB data of the corresponding area of the subject on the original image is adjusted to the correction value according to the RGB gain value of the white balance.
  • the white balance RGB gain value is determined according to the RGB value of the reference region, and then the RGB data of the subject converted from the color temperature value detected by the color temperature sensor is used to determine the RGB of the corresponding region of the subject on the original imaging image.
  • the final correction value avoids the inaccuracy of the final correction value due to the inaccuracy of the camera or ISP, so that the final restored color is closer to the real color, and the picture is closer to the human eye to improve the user experience.
  • FIG. 4 is a related prior art drawing
  • FIG. 5 is a schematic view of a modification of the present embodiment.
  • This embodiment is based on the Google Android software architecture (can be Android 6.0 and above) and the three-party color temperature sensor chip implementation, the relevant code is written in the hal layer (hardware abstraction layer), the kernel layer (kernel layer), and the three-party algorithm library.
  • the shooting of this embodiment is started by a three-party camera application, and the user opens the camera.
  • the app starts shooting, and opens the three-party library when the hal layer starts isp processing.
  • the loadSmartCam() is called in the constructor of the hal layer IspTuningMgr to open the three-party library libsmartcam_asb5.so, and the color temperature sensor driver interface is called in the three-party library to obtain the color temperature.
  • IspTuningMgr::init call the start function in the library to start working (call the wake-up awake interface of the color temperature sensor driver interface), call the correlation function in the library in IspTuningMgr::setAWBGain to obtain the color temperature and convert it into RGB values, and perform algorithm calibration. And output the final RGB value to 3A (automatic exposure control (AE), auto focus control (AF), automatic white balance control (AWB)) for AWB processing, and finally through ISP image processing, and finally achieve dynamic calibration according to color temperature.
  • 3A automatic exposure control
  • AF auto focus control
  • AVB automatic white balance control
  • the embodiment can be based on the kernel driver of kernel-3.18, and the driver is written according to the nxu8010 chip data manual of the color temperature sensor, and mainly realizes the following functional interfaces: an initialization node, a node for obtaining the value of RGBW, and a node for letting the chip sleep, The node used to wake up the chip, the node used to provide factory and engineering mode display information, and the node used to view the working state during debugging.
  • This embodiment can implement the processing of opening the three-party library and the 3A and the ISP based on the 3A and ISP related files of the hal layer of the MTK platform.
  • the call to the driver interface and the algorithm processing can be implemented based on the three-party library file libsmartcam_asb5.so of NEUSCHIPS. Code debugging can be performed based on the Android system compilation environment.
  • the present embodiment compensates the RGB gain of the automatic white balance, so that the picture obtains a color similar to the eye, so that the picture color is more realistic and accurate.
  • the embodiment of the present invention further provides a computer readable storage medium, where the terminal white balance processing program is stored, and when the terminal white balance processing program is executed by the processor, the implementation is as described in the foregoing embodiment. The steps described. Because the specific content is generally consistent, it will not be repeated.
  • portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Abstract

Disclosed are a white balance processing method of a terminal, and a terminal and a computer-readable storage medium. The method comprises: when a photographing request is detected, starting a color temperature sensor on a terminal, and acquiring the current color temperature value of a photographed object in a viewfinder image of the terminal; determining three primary color RGB data of the photographed object according to the current color temperature value of the photographed object; and determining a white balance parameter according to the RGB data, and carrying out white balance processing on an original imaged picture. The present invention can obtain more accurate RGB data, and a white balance parameter determined according to the more accurate RGB data is also more accurate, and can more truly restore the actual color of a photographed object as closely as possible to the effect of a human eye, thereby improving the user experience.

Description

终端白平衡处理方法、终端及计算机可读存储介质  Terminal white balance processing method, terminal and computer readable storage medium
技术领域Technical field
本发明涉及摄像技术领域,尤其涉及一种终端白平衡处理方法、终端及计算机可读存储介质。The present invention relates to the field of camera technologies, and in particular, to a terminal white balance processing method, a terminal, and a computer readable storage medium.
背景技术Background technique
随着智能手机行业的迅猛发展,人们对终端的摄像效果要求越来越高,比如,要求图像色彩尽可能的逼真、接近人眼的效果。With the rapid development of the smart phone industry, people are increasingly demanding the camera's camera effect, for example, requiring the image color to be as realistic as possible and close to the human eye.
人眼对色温有一定的自适应性,所以看到的颜色受色温偏移的影响较小,而终端摄像机没有这种能力,所以拍出来的照片和人眼看到的颜色会有较大的偏差,需要进行白平衡处理。某些白平衡方法建立在灰度世界假设算法上,The human eye has a certain adaptability to the color temperature, so the color seen is less affected by the color temperature shift, and the terminal camera does not have this ability, so the photograph taken and the color seen by the human eye will have a large deviation. , need to perform white balance processing. Some white balance methods are based on the gray world hypothesis algorithm.
该算法认为所拍摄图像的R、G、B三色分量的统计平均值应该相等,所以,通过对拍摄的图像进行统计平均来调整目标图像,使得目标图像的 R=G=B,从而使得图像达到白平衡。因而,如何准确获得被摄对象的RGB数据成为一个值得研究的技术问题。The algorithm considers that the statistical average of the three color components of the R, G, and B components of the captured image should be equal. Therefore, the target image is adjusted by statistically averaging the captured image so that the target image is R = G = B, so that the image reaches white balance. Therefore, how to accurately obtain the RGB data of the subject becomes a technical problem worth studying.
现有技术中,一般是由终端上的ISP(Image Signal Processor图像信号处理)读取拍摄的初始图像获得被摄对象的RGB数据,该RGB的准确性由摄像头和ISP共同决定,该RGB数据受终端摄像头和ISP影响较大,容易因为任一因素的变化而导致不准确的RGB数据。In the prior art, it is generally an ISP (Image Signal) on the terminal. Processor image signal processing) reading the captured initial image to obtain the RGB data of the subject. The accuracy of the RGB is determined by the camera and the ISP. The RGB data is greatly affected by the terminal camera and the ISP, and is easily changed by any factor. This leads to inaccurate RGB data.
发明内容Summary of the invention
本发明的主要目的在于提供一种终端白平衡处理方法,旨在解决确定白平衡参数的被摄对象的RGB数据的准确性受终端摄像头和ISP影响较大,容易因为任一因素的变化而导致该数据不准确的技术问题。The main object of the present invention is to provide a terminal white balance processing method, which aims to solve the problem that the accuracy of the RGB data of the subject determining the white balance parameter is greatly affected by the terminal camera and the ISP, and is easily caused by any change of factors. The data is not accurate technical issues.
为实现上述目的,本发明提供一种终端白平衡处理方法,所述方法包括:To achieve the above objective, the present invention provides a terminal white balance processing method, and the method includes:
当检测到拍摄请求时,启动终端上的色温传感器,获取终端取景图像内被摄对象的当前色温值;When a shooting request is detected, a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image;
根据所述被摄对象的当前色温值确定所述被摄对象的三基色RGB数据;Determining three primary color RGB data of the subject according to a current color temperature value of the subject;
根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理。The white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
在一种可选的实施方式中,所述当检测到拍摄请求时的步骤之后包括:In an optional implementation manner, after the step of detecting the shooting request, the method includes:
检测色温传感器是否出现故障;Detecting whether the color temperature sensor is faulty;
若检测到色温传感器无故障,则执行所述启动终端上的色温传感器的步骤;If it is detected that the color temperature sensor is not faulty, performing the step of starting the color temperature sensor on the terminal;
若检测到色温传感器出现故障,则获取根据图像信号处理器确定的被摄对象的RGB数据,根据该RGB数据确定白平衡参数,对终端取景图像进行白平衡处理。If it is detected that the color temperature sensor is faulty, the RGB data of the subject determined according to the image signal processor is acquired, the white balance parameter is determined according to the RGB data, and the terminal framing image is subjected to white balance processing.
在一种可选的实施方式中,所述根据所述RGB数据确定白平衡参数的步骤包括:In an optional implementation manner, the step of determining a white balance parameter according to the RGB data includes:
根据所述RGB数据确定被摄对象中的基准区域,根据该基准区域的RGB数据确定白平衡参数。A reference area in the subject is determined based on the RGB data, and a white balance parameter is determined based on RGB data of the reference area.
在一种可选的实施方式中,所述根据所述RGB数据确定被摄对象中的基准区域的步骤包括:In an optional implementation manner, the determining, according to the RGB data, the reference area in the object includes:
根据所述RGB数据确定红色与蓝色的第一比值、红色与绿色的第二比值;Determining a first ratio of red to blue and a second ratio of red to green according to the RGB data;
若所述第一比值小于第一阈值,且所述第二比值小于第二阈值,则所述RGB比值对应的区域为第一基准区域,该第一基准区域为基准区域。If the first ratio is smaller than the first threshold, and the second ratio is smaller than the second threshold, the region corresponding to the RGB ratio is the first reference region, and the first reference region is the reference region.
在一种可选的实施方式中,所述若所述第一比值小于第一阈值,且所述第二比值小于第二阈值,则所述RGB比值对应的区域为第一基准区域的步骤之后包括:In an optional implementation manner, if the first ratio is less than the first threshold, and the second ratio is less than the second threshold, the region corresponding to the RGB ratio is after the step of the first reference region include:
若所述第一基准区域有多个,则比较多个所述第一基准区域的RGB大小;If there are multiple first reference regions, compare RGB sizes of the plurality of first reference regions;
确定RGB最大的第一基准区域,该最大RGB对应的第一基准区域为基准区域。A first reference region having the largest RGB is determined, and the first reference region corresponding to the maximum RGB is a reference region.
在一种可选的实施方式中,所述终端白平衡处理方法还包括:In an optional implementation manner, the method for processing a terminal white balance further includes:
当检测到终端取景图像内被摄对象的色温值发生变化时,获取被摄对象的当前色温值;Obtaining a current color temperature value of the subject when detecting that a color temperature value of the subject changes within the terminal view image;
将所述当前色温值转化为RGB数据,根据该RGB数据更新所述白平衡参数。The current color temperature value is converted into RGB data, and the white balance parameter is updated according to the RGB data.
在一种可选的实施方式中,所述根据所述被摄对象的当前色温值确定所述被摄对象的三基色RGB数据的步骤包括:In an optional implementation manner, the step of determining the three primary colors RGB data of the subject according to the current color temperature value of the subject includes:
将所述终端取景图像内所有被摄对象的色温值转换为RGB数据,根据该RGB数据获取所述被摄对象在R、G、B三个颜色通道的平均值,该平均值为所述被摄对象的三基色RGB数据。Converting a color temperature value of all the objects in the terminal view image into RGB data, and acquiring an average value of the three color channels of the object in R, G, and B according to the RGB data, the average value being the The three primary color RGB data of the subject.
在一种可选的实施方式中,所述根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理的步骤包括:In an optional implementation manner, the determining the white balance parameter according to the RGB data, and performing white balance processing on the original imaging image includes:
根据所述基准区域的RGB数据确定白平衡的RGB增益值,根据该RGB增益值和所有所述被摄对象的RGB数据,确定所有所述被摄对象最后的校正值;Determining an RGB gain value of the white balance according to the RGB data of the reference area, and determining a last correction value of all the objects according to the RGB gain value and RGB data of all the objects;
将所有所述被摄对象在原始成像图上的对应区域的RGB数据调整至所述校正值。The RGB data of the corresponding area of all the subjects on the original imaged image is adjusted to the correction value.
此外,为实现上述目的,本发明还提供一种终端,所述终端包括:处理器、色温传感器、摄像头、存储器及存储在所述存储器上并可在所述处理器上执行的终端白平衡处理程序,所述终端白平衡处理程序被所述处理器执行时实现如下步骤:In addition, in order to achieve the above object, the present invention further provides a terminal, the terminal comprising: a processor, a color temperature sensor, a camera, a memory, and a terminal white balance processing stored on the memory and executable on the processor The program, when the terminal white balance processing program is executed by the processor, implements the following steps:
当检测到拍摄请求时,启动终端上的色温传感器,获取终端取景图像内被摄对象的当前色温值;When a shooting request is detected, a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image;
根据所述被摄对象的当前色温值确定所述被摄对象的三原色RGB数据;Determining three primary color RGB data of the subject according to a current color temperature value of the subject;
根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理。The white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有终端白平衡处理程序,所述终端白平衡处理程序被处理器执行时实现如下步骤:In addition, in order to achieve the above object, the present invention further provides a computer readable storage medium, where the terminal white balance processing program is stored, and when the terminal white balance processing program is executed by the processor, the following steps are implemented. :
当检测到拍摄请求时,启动终端上的色温传感器,获取终端取景图像内被摄对象的当前色温值;When a shooting request is detected, a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image;
根据所述被摄对象的当前色温值确定所述被摄对象的三原色RGB数据;Determining three primary color RGB data of the subject according to a current color temperature value of the subject;
根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理。The white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
本发明实施例在终端拍摄的同时,启动色温传感器进行色温检测,将色温传感器获得的色温值转化为RGB数据,并根据所述RGB数据确定最终的白平衡参数,进行白平衡处理;因为色温传感器相较摄像头或者ISP具有较高精确性,其检测到的色温值更精确,由其检测到的色温值转化的RGB数据也更准确,因此根据该更准确的RGB数据确定的白平衡参数也更为准确,更能真实还原被摄对象的实际色彩,尽可能的接近人眼的效果,提升用户体验。In the embodiment of the invention, the color temperature sensor is activated to perform color temperature detection, the color temperature value obtained by the color temperature sensor is converted into RGB data, and the final white balance parameter is determined according to the RGB data, and white balance processing is performed; Compared with the camera or ISP, the detected color temperature value is more accurate, and the RGB data converted from the detected color temperature value is more accurate, so the white balance parameter determined according to the more accurate RGB data is also more accurate. To be accurate, it is more realistic to restore the actual color of the subject, as close as possible to the effect of the human eye, and enhance the user experience.
附图说明DRAWINGS
图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图;1 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention;
图2为本发明终端白平衡处理方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a method for processing white balance of a terminal according to the present invention;
图3为本发明终端白平衡处理方法第三实施例中步骤S30细化后的流程示意图;3 is a schematic flowchart of step S30 in the third embodiment of the terminal white balance processing method according to the present invention;
图4为本发明终端白平衡处理方法第七实施例涉及的现有技术的流程示意图;4 is a schematic flowchart of a prior art process related to a seventh embodiment of a white balance processing method of the present invention;
图5为本发明终端白平衡处理方法第七实施例的流程示意图。FIG. 5 is a schematic flowchart diagram of a seventh embodiment of a method for processing a terminal white balance according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the following description, the use of suffixes such as "module", "component" or "unit" for indicating an element is merely an explanation for facilitating the present invention, and has no specific meaning per se. Therefore, "module", "component" or "unit" can be used in combination.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1, FIG. 1 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention.
本发明实施例终端可以是PC,也可以是智能手机、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面3)播放器、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、便携计算机等具有显示功能的可移动式终端设备,以及诸如台式计算机等固定终端。The terminal in the embodiment of the present invention may be a PC, or may be a smart phone, a tablet computer, an e-book reader, and an MP3 (Moving Picture). Experts Group Audio Layer III, Motion Picture Expert Compress Standard Audio Level 3) Player, MP4 (Moving Picture Experts Group Audio Layer IV, motion imaging experts compress standard audio layers 3) players, laptops, PDAs, personal digital assistants (Personal Digital Assistant, PDA), Portable Media Player (Portable Media) Players, PMPs, navigation devices, portable computers, and the like have portable display devices, and fixed terminals such as desktop computers.
后续描述中将以移动终端为例进行说明,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。The following description will be made by taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to an embodiment of the present invention can be applied to a fixed type of terminal, in addition to an element particularly for mobile purposes.
如图1所示,该终端可以包括:处理器1001,例如CPU,色温传感器1002、摄像头1003、,存储器1005,通信总线1004。其中,通信总线1004用于实现这些组件之间的连接通信。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。色温传感器1002可以是一个芯片。摄像头1003可以为一个或多个摄像头。As shown in FIG. 1, the terminal may include a processor 1001, such as a CPU, a color temperature sensor 1002, a camera 1003, a memory 1005, and a communication bus 1004. Among them, the communication bus 1004 is used to implement connection communication between these components. The memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage. The memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001. The color temperature sensor 1002 can be a chip. Camera 1003 can be one or more cameras.
可选地,终端还可以包括RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the terminal may further include an RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more. Among them, sensors such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display according to the brightness of the ambient light, and the proximity sensor may turn off the display and/or when the mobile terminal moves to the ear. Backlighting. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It will be understood by those skilled in the art that the terminal structure shown in FIG. 1 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
如图1所示,作为一种计算机存储介质的存储器1005中包括终端白平衡处理程序。As shown in FIG. 1, a memory white balance processing program is included in a memory 1005 as a computer storage medium.
在图1所示的终端中,摄像头1003用于取景拍摄;色温传感器1002用于检测摄像头取景图像区域内的被摄对象的色温值;而处理器1001可以用于调用存储器1005中存储的终端白平衡处理程序,并执行以下操作:In the terminal shown in FIG. 1, the camera 1003 is used for framing shooting; the color temperature sensor 1002 is for detecting the color temperature value of the subject in the camera framing image area; and the processor 1001 can be used to call the terminal white stored in the memory 1005. Balance the handler and do the following:
当检测到拍摄请求时,启动终端上的色温传感器,获取终端取景图像内被摄对象的当前色温值;When a shooting request is detected, a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image;
根据所述被摄对象的当前色温值确定所述被摄对象的三基色RGB数据;Determining three primary color RGB data of the subject according to a current color temperature value of the subject;
根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理。The white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
进一步地,处理器1001可以调用存储器1005中存储的终端白平衡处理程序,还执行以下操作:Further, the processor 1001 may call the terminal white balance processing program stored in the memory 1005, and further perform the following operations:
所述当检测到拍摄请求时的步骤之后包括:The step after detecting the shooting request includes:
检测色温传感器是否出现故障;Detecting whether the color temperature sensor is faulty;
若检测到色温传感器无故障,则执行所述启动终端上的色温传感器的步骤;If it is detected that the color temperature sensor is not faulty, performing the step of starting the color temperature sensor on the terminal;
若检测到色温传感器出现故障,则获取根据图像信号处理器确定的被摄对象的RGB数据,根据该RGB数据确定白平衡参数,对终端取景图像进行白平衡处理。If it is detected that the color temperature sensor is faulty, the RGB data of the subject determined according to the image signal processor is acquired, the white balance parameter is determined according to the RGB data, and the terminal framing image is subjected to white balance processing.
所述根据所述RGB数据确定白平衡参数的步骤包括:The step of determining a white balance parameter according to the RGB data includes:
根据所述RGB数据确定被摄对象中的基准区域,根据该基准区域的RGB数据确定白平衡参数。A reference area in the subject is determined based on the RGB data, and a white balance parameter is determined based on RGB data of the reference area.
所述根据所述RGB数据确定被摄对象中的基准区域的步骤包括:The determining the reference area in the subject according to the RGB data comprises:
根据所述RGB数据确定红色与蓝色的第一比值、红色与绿色的第二比值;Determining a first ratio of red to blue and a second ratio of red to green according to the RGB data;
若所述第一比值小于第一阈值,且所述第二比值小于第二阈值,则所述RGB比值对应的区域为第一基准区域,该第一基准区域为基准区域。If the first ratio is smaller than the first threshold, and the second ratio is smaller than the second threshold, the region corresponding to the RGB ratio is the first reference region, and the first reference region is the reference region.
进一步地,处理器1001可以调用存储器1005中存储的终端白平衡处理程序,还执行以下操作:Further, the processor 1001 may call the terminal white balance processing program stored in the memory 1005, and further perform the following operations:
所述若所述第一比值小于第一阈值,且所述第二比值小于第二阈值,则所述RGB比值对应的区域为第一基准区域的步骤之后包括:If the first ratio is less than the first threshold, and the second ratio is less than the second threshold, the step of the region corresponding to the RGB ratio being the first reference region includes:
若所述第一基准区域有多个,则比较多个所述第一基准区域的RGB大小;If there are multiple first reference regions, compare RGB sizes of the plurality of first reference regions;
确定RGB最大的第一基准区域,该最大RGB对应的第一基准区域为基准区域。A first reference region having the largest RGB is determined, and the first reference region corresponding to the maximum RGB is a reference region.
进一步地,处理器1001可以调用存储器1005中存储的终端白平衡处理程序,还执行以下操作:Further, the processor 1001 may call the terminal white balance processing program stored in the memory 1005, and further perform the following operations:
所述终端白平衡处理方法还包括:The terminal white balance processing method further includes:
当检测到终端取景图像内被摄对象的色温值发生变化时,获取被摄对象的当前色温值;Obtaining a current color temperature value of the subject when detecting that a color temperature value of the subject changes within the terminal view image;
将所述当前色温值转化为RGB数据,根据该RGB数据更新所述白平衡参数。The current color temperature value is converted into RGB data, and the white balance parameter is updated according to the RGB data.
所述根据所述被摄对象的当前色温值确定所述被摄对象的三基色RGB数据的步骤包括:The step of determining the three primary colors RGB data of the subject according to the current color temperature value of the subject includes:
将所述终端取景图像内所有被摄对象的色温值转换为RGB数据,根据该RGB数据获取所述被摄对象在R、G、B三个颜色通道的平均值,该平均值为所述被摄对象的三基色RGB数据。Converting a color temperature value of all the objects in the terminal view image into RGB data, and acquiring an average value of the three color channels of the object in R, G, and B according to the RGB data, the average value being the The three primary color RGB data of the subject.
所述根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理的步骤包括:The determining the white balance parameter according to the RGB data, and performing white balance processing on the original imaging image includes:
根据所述基准区域的RGB数据确定白平衡的RGB增益值,根据该RGB增益值和所有所述被摄对象的RGB数据,确定所有所述被摄对象最后的校正值;Determining an RGB gain value of the white balance according to the RGB data of the reference area, and determining a last correction value of all the objects according to the RGB gain value and RGB data of all the objects;
将所有所述被摄对象在原始成像图上的对应区域的RGB数据调整至所述校正值。The RGB data of the corresponding area of all the subjects on the original imaged image is adjusted to the correction value.
参照图2,在本发明终端白平衡处理方法第一实施例中,所述终端白平衡处理方法包括: Referring to FIG. 2, in the first embodiment of the terminal white balance processing method of the present invention, the terminal white balance processing method includes:
步骤S10,当检测到拍摄请求时,启动终端上的色温传感器,获取终端取景图像内被摄对象的当前色温值;Step S10, when detecting the shooting request, starting a color temperature sensor on the terminal, and acquiring a current color temperature value of the object in the terminal framing image;
终端一般有多种白平衡模式,本实施例为其中的一种自动白平衡模式,当终端处于自动白平衡模式时,用户向终端输入拍摄请求,输入方式根据终端的不同而不同。若终端为移动手机,则用户触控输入拍摄请求,若终端为摄像机,则用户按钮开机为拍摄请求。终端接收到用户输入的拍摄请求时,终端处理器可检测到拍摄请求,启动拍摄装置(如摄像头)的同时,也启动色温传感器。所述色温传感器可以与摄像头相邻,可以在镜头下,与摄像头有线路连接,以获得摄像头取景框范围内的被摄对象的色温值。The terminal generally has a plurality of white balance modes. In this embodiment, one of the automatic white balance modes is used. When the terminal is in the automatic white balance mode, the user inputs a shooting request to the terminal, and the input mode is different according to the terminal. If the terminal is a mobile phone, the user inputs a shooting request, and if the terminal is a camera, the user button is turned on as a shooting request. When the terminal receives the shooting request input by the user, the terminal processor can detect the shooting request, activate the color temperature sensor while starting the shooting device (such as the camera). The color temperature sensor may be adjacent to the camera, and may be connected to the camera under the lens to obtain a color temperature value of the subject within the range of the camera frame.
所述被摄对象可能有一个颜色,或者多个颜色。因此,色温传感器检测输出的色温值可以有多个。The subject may have one color or multiple colors. Therefore, the color temperature sensor can detect a plurality of color temperature values.
步骤S11,根据所述被摄对象的当前色温值确定所述被摄对象的三原色RGB数据;Step S11, determining three primary color RGB data of the subject according to a current color temperature value of the subject;
因为被摄对象可以为一个或多个,颜色也可能为一个或多个,所以色温值也可以有一个或多个,对应的RGB数据也可能有多个。RGB数据可以指红、绿、蓝三色的三个值,也可以指该三色三个值的比例,比例值可以有多种形式,如可以是R:G:B=1:1:2,也可以是R:G=1:2,且R:B=1:3。比例调整时,白平衡参数可以用红、绿、蓝三基色的增益系数之间的比例来表示,根据三种颜色的增益系数之间的比例,分别对拍摄到的物体颜色中的三种颜色进行调整。Since the subject may be one or more, and the color may be one or more, there may be one or more color temperature values, and there may be more than one corresponding RGB data. The RGB data can refer to three values of red, green, and blue, and can also refer to the ratio of the three values of the three colors. The ratio can have various forms, such as R:G:B=1:1:2 It can also be R:G=1:2, and R:B=1:3. In the case of proportional adjustment, the white balance parameter can be expressed by the ratio between the gain coefficients of the three primary colors of red, green, and blue. According to the ratio between the gain coefficients of the three colors, respectively, the three colors in the color of the captured object. Make adjustments.
根据色温值获得RGB数据,可以根据特定表格或者公式计算,或者可以调用特定函数计算获得,因色温值到RGB数据的换算属于现有技术,故不再赘述。The RGB data is obtained according to the color temperature value, and can be calculated according to a specific table or formula, or can be obtained by calling a specific function calculation. Since the conversion of the color temperature value to the RGB data belongs to the prior art, it will not be described again.
步骤S12,根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理。Step S12, determining a white balance parameter according to the RGB data, and performing white balance processing on the original image.
本实施例中的原始成像图指拍摄装置拍摄的尚未经过白平衡处理的初始图像。所述RGB数据可以有多个,可以根据RGB数据取平均RGB数据,进行算法校准后,输出给白平衡处理模块后,由白平衡处理模块将该平均RGB数据转化为白平衡的RGB增益参数,进行白平衡处理;也可以选取所述RGB数据中的特殊的一个RGB数据(如白色或近白色的RGB数据),将该RGB数据进行算法校准后,输出到白平衡处理模块转化为白平衡参数;或者选取所述RGB数据中的特殊的几个值,进行运算(如取平均值计算)后获得一个RGB数据,进行算法校准后,输出到白平衡处理模块转化为白平衡参数;或者可以根据特定算法,确定根据哪些RGB数据确定白平衡参数。The original imaging image in this embodiment refers to an initial image captured by the photographing device that has not been subjected to white balance processing. The RGB data may be multiple, and the RGB data may be averaged according to the RGB data. After the algorithm is calibrated and output to the white balance processing module, the white balance processing module converts the average RGB data into a white balanced RGB gain parameter. White balance processing; a special RGB data (such as white or near-white RGB data) in the RGB data may be selected, and the RGB data is algorithmically calibrated, and then output to the white balance processing module to be converted into a white balance parameter. Or select a special value in the RGB data, perform an operation (such as averaging calculation) to obtain an RGB data, and after performing algorithm calibration, the output to the white balance processing module is converted into a white balance parameter; or A specific algorithm that determines which white balance parameters are determined based on which RGB data.
现有技术中,一般是摄像装置中的sensor(传感器)输出原始图像后,ISP(Image Signal Processor,图像信号处理)一般通过统计整幅图像的R/G(红/绿),B/G (蓝/绿),然后通过算法去估计哪些是需要还原成R:G:B=1:1:1。此处获取RGB数据涉及到两个关键部件,一个是摄像头,一个是ISP,最后RGB的准确性受这两个部件的影响,而因为该两个部件需要同时承担其他功能,对部件性能要求较高的同时,对于实体被摄对象RGB的获取也是不如功能集中在色彩获取的部件的。In the prior art, the sensor (sensor) in the camera device generally outputs the original image, and the ISP (Image Signal) Processor, image signal processing) generally by counting the R/G (red/green) of the entire image, B/G (blue/green), then use an algorithm to estimate which ones need to be reduced to R:G:B=1:1:1. Obtaining RGB data here involves two key components, one is the camera and the other is the ISP. Finally, the accuracy of RGB is affected by these two components, and because the two components need to perform other functions at the same time, the performance requirements of the components are better. At the same time, the acquisition of the physical object RGB is not as good as the function focusing on the color acquisition component.
在本实施例中,在终端拍摄的同时,启动色温传感器进行色温检测,将色温传感器获得的色温值转化为RGB数据,并根据所述RGB数据确定最终的白平衡参数,进行白平衡处理;因为色温传感器相较摄像头或者ISP具有较高精确性,其检测到的色温值更精确,由其检测到的色温值转化的RGB数据也更准确,因此根据该更准确的RGB数据确定的白平衡参数也更为准确,更能真实还原被摄对象的实际色彩,尽可能的接近人眼的效果,提升用户体验。In this embodiment, at the same time as the terminal photographs, the color temperature sensor is activated to perform color temperature detection, the color temperature value obtained by the color temperature sensor is converted into RGB data, and the final white balance parameter is determined according to the RGB data, and white balance processing is performed; The color temperature sensor has higher accuracy than the camera or ISP, and the detected color temperature value is more accurate, and the RGB data converted from the detected color temperature value is also more accurate, so the white balance parameter determined according to the more accurate RGB data is It is also more accurate, and it can more realistically restore the actual color of the subject, as close as possible to the effect of the human eye, and enhance the user experience.
进一步的,本发明终端白平衡处理方法第二实施例中,基于第一实施例,所述步骤S10中当检测到拍摄请求时这一步骤之后包括:Further, in the second embodiment of the terminal white balance processing method of the present invention, based on the first embodiment, after the step of detecting the photographing request in the step S10, the step includes:
步骤S20,检测色温传感器是否出现故障;Step S20, detecting whether the color temperature sensor is faulty;
步骤S21,若检测到色温传感器无故障,则执行所述启动终端上的色温传感器的步骤;Step S21, if it is detected that the color temperature sensor has no fault, performing the step of starting the color temperature sensor on the terminal;
步骤S22,若检测到色温传感器出现故障,则获取根据图像信号处理器确定的被摄对象的RGB数据,根据该RGB数据确定白平衡参数,对终端取景图像进行白平衡处理。Step S22, if it is detected that the color temperature sensor is faulty, acquiring RGB data of the object determined according to the image signal processor, determining a white balance parameter according to the RGB data, and performing white balance processing on the terminal view image.
色温传感器作为检测被摄对象色温值,确定被摄对象RGB数据,进而确定白平衡参数的重要部件,在出故障时,为了不影响用户体验,可以将图像信号处理器(ISP)作为备用部件,即在检测到拍摄请求后,若检测到色温传感器出现故障,则可调用图像信号处理器(ISP)读取原始图像,获取RGB数据,进行传统的白平衡处理;若检测到色温传感器正常运行,则优先使用色温传感器方式获取白平衡参数,以保证参数的准确性。The color temperature sensor is used as an important component for detecting the color temperature value of the subject, determining the RGB data of the subject, and determining the white balance parameter. In the event of a failure, the image signal processor (ISP) can be used as a spare component in order not to affect the user experience. That is, after detecting the shooting request, if the color temperature sensor is detected to be faulty, the image signal processor (ISP) can be called to read the original image, obtain RGB data, and perform traditional white balance processing; if the color temperature sensor is detected to operate normally, The color temperature sensor is preferentially used to obtain the white balance parameter to ensure the accuracy of the parameter.
本实施例通过在色温传感器出现故障时,设置二级备用部件,即图像信号处理器替代色温传感器的作用,可保证在色温传感器出现故障时,终端仍可在拍摄时进行正常的白平衡处理,保证用户良好的使用体验;同时,若是色温传感器无故障,则可优选使用色温传感器获得重要参数,又保证了最后得到的白平衡参数的精确性。In the embodiment, when the color temperature sensor is faulty, the secondary spare component is set, that is, the image signal processor replaces the color temperature sensor, so that when the color temperature sensor is faulty, the terminal can still perform normal white balance processing when shooting. To ensure a good user experience; at the same time, if the color temperature sensor is not faulty, it is preferable to use the color temperature sensor to obtain important parameters and to ensure the accuracy of the finally obtained white balance parameter.
进一步的,本发明终端白平衡处理方法第三实施例中,基于第一实施例或者第二实施例,所述步骤S12中根据所述RGB数据确定白平衡参数的步骤包括:Further, in the third embodiment of the terminal white balance processing method of the present invention, based on the first embodiment or the second embodiment, the step of determining the white balance parameter according to the RGB data in the step S12 includes:
步骤S30,根据所述RGB数据确定被摄对象中的基准区域;Step S30, determining a reference area in the object according to the RGB data;
步骤S31,根据该基准区域的RGB数据确定白平衡参数。Step S31, determining a white balance parameter according to the RGB data of the reference area.
根据一定算法,可从根据所述RGB数据确定被摄对象中的基准区域;也可根据基准区域的特性确定对应的RGB数据的特点,进而确定基准区域。摄像装置在进行白平衡处理时,一般需要选定一个基准点,根据该基准点的RGB数据,确定白平衡参数,只要将该基准点的RGB数据调整为1:1:1,整个图像就可以还原其真实色彩。本实施例选定的基准区域即为基准点。According to a certain algorithm, the reference region in the subject can be determined from the RGB data; the characteristics of the corresponding RGB data can also be determined according to the characteristics of the reference region, thereby determining the reference region. When performing white balance processing, the camera generally needs to select a reference point, and determine the white balance parameter according to the RGB data of the reference point. If the RGB data of the reference point is adjusted to 1:1:1, the entire image can be Restore its true color. The reference area selected in this embodiment is the reference point.
RGB数据可以(R:G:B)形式表示,一般而言,R、G、B三者越接近,表示该物体色彩越接近白色或者灰色或者黑色。根据传统白平衡技术,一般通过将白色或者灰色或者黑色作为基准点进行白平衡校准,所以可以选择R、G、B三个值最接近的物体区域作为基准区域。The RGB data can be expressed in the form of (R:G:B). In general, the closer the R, G, and B are, the closer the color of the object is to white or gray or black. According to the conventional white balance technique, white balance calibration is generally performed by using white or gray or black as a reference point, so that an object region having the closest three values of R, G, and B can be selected as the reference region.
通过根据色温传感器转换的RGB数据确定被摄对象的基准区域,将该基准区域作为摄像装置白平衡处理的基准点,根据该基准区域的RGB数据确定白平衡参数,可更为准确地获取白平衡参数,最大化的将图像还原其真实色彩,更接近人眼所见,提升用户体验。The reference area of the subject is determined according to the RGB data converted by the color temperature sensor, and the reference area is used as a reference point for the white balance processing of the imaging apparatus, and the white balance parameter is determined according to the RGB data of the reference area, so that the white balance can be more accurately obtained. The parameter maximizes the image to restore its true color, closer to what the human eye sees, and enhances the user experience.
具体地,如图3,步骤S30包括:Specifically, as shown in FIG. 3, step S30 includes:
步骤S32,根据所述RGB数据确定红色与蓝色的第一比值、红色与绿色的第二比值; Step S32, determining a first ratio of red to blue and a second ratio of red to green according to the RGB data;
步骤S33,若所述第一比值小于第一阈值,且所述第二比值小于第二阈值,则所述RGB比值对应的区域为第一基准区域,该第一基准区域为基准区域。Step S33: If the first ratio is smaller than the first threshold, and the second ratio is smaller than the second threshold, the region corresponding to the RGB ratio is the first reference region, and the first reference region is the reference region.
本实施例中确定的第一比值为红色与蓝色比值,第二比值为红色与绿色的比值,但是实际上,第一比值可以指RGB三色中的任意两色之比,如红绿比、红蓝比、蓝红比等,第二比值根据第一比值确定,换掉第一比值中的一个颜色,如第一比值为红绿比,则第二比值可以为红蓝比,绿蓝比等。The first ratio determined in this embodiment is a ratio of red to blue, and the second ratio is a ratio of red to green, but in practice, the first ratio may refer to a ratio of any two of the three colors of RGB, such as a ratio of red to green. , red-blue ratio, blue-red ratio, etc., the second ratio is determined according to the first ratio, and one color of the first ratio is replaced. If the first ratio is red-green ratio, the second ratio may be red-blue ratio, green blue Than wait.
第一阈值和第二阈值可以相同也可以不同,应当足够小,以减少判断误差,可以由终端出厂设置,也可以由用户设置。若同时存在第一比值小于第一阈值和第二比值小于第二阈值,则说明对应物体的RGB三个值比较接近,该对应物体区域为第一基准区域,该第一基准区域可确定为基准区域。The first threshold and the second threshold may be the same or different, and should be small enough to reduce the judgment error, which may be set by the terminal or set by the user. If the first ratio is less than the first threshold and the second ratio is less than the second threshold, the three values of the RGB of the corresponding object are relatively close, and the corresponding object region is the first reference region, and the first reference region can be determined as the reference. region.
本实施例通过比较RGB三色中任意两色的比值是否小于阈值,进而判断RGB三色值是否互相接近,进而将RGB三色值接近的区域作为基准区域,使得确定白平衡参数的RGB数据更加准确,进而使得白平衡参数更加准确更好地还原物体的实际色彩。In this embodiment, by comparing whether the ratio of any two colors of the RGB three colors is smaller than the threshold value, it is further determined whether the RGB three color values are close to each other, and then the region where the RGB three color values are close is used as the reference region, so that the RGB data for determining the white balance parameter is further Accurate, which in turn makes the white balance parameter more accurate and better to restore the actual color of the object.
进一步地,步骤S32中若所述第一比值小于第一阈值,且所述第二比值小于第二阈值,则所述RGB比值对应的区域为第一基准区域的步骤之后包括:Further, if the first ratio is smaller than the first threshold and the second ratio is smaller than the second threshold in step S32, the step of the region corresponding to the RGB ratio being the first reference region includes:
步骤S33,若所述第一基准区域有多个,则比较多个所述第一基准区域的RGB数据大小;Step S33, if there are multiple first reference regions, compare RGB data sizes of the plurality of first reference regions;
步骤S34,确定RGB数据最大的第一基准区域,该最大RGB数据对应的第一基准区域为基准区域。Step S34, determining a first reference area having the largest RGB data, and the first reference area corresponding to the maximum RGB data is a reference area.
RGB数据可以(R:G:B)形式表示,一般而言,R、G、B三者越接近,表示该物体色彩越接近白色或者灰色或者黑色,而R、G、B三个值越大,该物体越接近白色,越小则越接近黑色。可以根据这一规则判断被摄对象中的白色区域。使用白色区域作为白平衡的基准区域相较于其他颜色更加准确,所以,在确定了第一基准区域后,若所述第一基准区域有多个,则可根据一定算法或者预设规则从中确定白色区域。RGB data can be expressed in the form of (R:G:B). Generally speaking, the closer the R, G, and B are, the closer the color of the object is to white or gray or black, and the larger the three values of R, G, and B are. The closer the object is to white, the smaller it is closer to black. The white area in the subject can be judged based on this rule. The reference area using the white area as the white balance is more accurate than the other colors. Therefore, after the first reference area is determined, if there are multiple first reference areas, it can be determined according to a certain algorithm or a preset rule. White area.
本实施例所用的方法为比较RGB数据大小。因为RGB数据涉及到三个颜色的大小,但如果要进行大小比较,需确定一个数值。因为RGB三值相差很小(前文已述第一基准区域比值小于阈值),所以可以选择三色中的最大值与其他区域RGB三色中的最大值进行比较,(如RGB1=(250,253,252), RGB2=(250,254,252),可直接比较),也可以用三色的平均值进行比较,也可以根据特定算法,选择其中RGB数据最大的。该最大RGB数据对应的第一基准区域为基准区域。The method used in this embodiment is to compare RGB data sizes. Because RGB data involves the size of three colors, if you want to make a size comparison, you need to determine a value. Since the RGB three values have a small difference (the first reference area ratio is less than the threshold), the maximum of the three colors can be selected to be compared with the maximum of the other areas RGB (for example, RGB1=(250,253) , 252), RGB2 = (250, 254, 252), can be directly compared), you can also use the average of the three colors to compare, or you can choose the largest RGB data according to the specific algorithm. The first reference area corresponding to the maximum RGB data is a reference area.
本实施例通过从第一基准区域中,确定最大RGB数据,进而确定最大RGB数据对应的第一基准区域为基准区域,可以选出第一基准区域中的白色区域作为最后白平衡的参考区域或者基准区域,因为白色的特殊性,使得最后成像能得到更为准确的还原。In this embodiment, by determining the maximum RGB data from the first reference area, and further determining that the first reference area corresponding to the maximum RGB data is the reference area, the white area in the first reference area may be selected as the reference area of the last white balance or The reference area, because of the special nature of white, allows the final imaging to be more accurately restored.
进一步的,本发明终端白平衡处理方法第四实施例中,基于第一实施例或者第二实施例或者第三实施例,所述终端白平衡处理方法还包括:Further, in the fourth embodiment of the terminal white balance processing method of the present invention, the terminal white balance processing method further includes:
步骤S40,当检测到终端取景图像内被摄对象的色温值发生变化时,获取被摄对象的当前色温值;Step S40: When it is detected that the color temperature value of the object in the terminal framing image changes, the current color temperature value of the object is acquired;
步骤S41,将所述当前色温值转化为RGB数据,根据该RGB数据更新所述白平衡参数。Step S41, converting the current color temperature value into RGB data, and updating the white balance parameter according to the RGB data.
色温传感器在拍摄过程中实时监测被摄对象的色温情况,若在拍摄过程中,色温发生变化,则应该将该变化反馈到处理器,并返回被摄对象变化后的当前色温值。将该变化后的色温值通过一定算法转化为RGB数据,根据该RGB数据更新根据变化前的色温值确定的白平衡参数。The color temperature sensor monitors the color temperature of the subject in real time during shooting. If the color temperature changes during shooting, the change should be fed back to the processor and return to the current color temperature value after the subject changes. The changed color temperature value is converted into RGB data by a certain algorithm, and the white balance parameter determined according to the color temperature value before the change is updated according to the RGB data.
本实施例通过色温传感器对色温变化的实时响应,可实时反馈变化后的色温值,进而使得当前的白平衡参数能随被摄对象色温的变化而更新,可使得终端任何时候拍摄的图片都能获得较为准确的白平衡参数进行白平衡处理,进而还原被摄对象的真实色彩。In this embodiment, the color temperature sensor responds to the color temperature change in real time, and the changed color temperature value can be fed back in real time, so that the current white balance parameter can be updated according to the change of the color temperature of the subject, so that the picture taken by the terminal at any time can be Obtain a more accurate white balance parameter for white balance processing, and then restore the true color of the subject.
进一步的,本发明终端白平衡处理方法第五实施例中,基于第一实施例或者第二实施例或者第三实施例或者第四实施例,步骤S11包括:Further, in the fifth embodiment of the terminal white balance processing method of the present invention, based on the first embodiment or the second embodiment or the third embodiment or the fourth embodiment, step S11 includes:
步骤S50,将所述终端取景图像内所有被摄对象的色温值转换为RGB数据,根据该RGB数据获取所述被摄对象在R、G、B三个颜色通道的平均值,该平均值为所述被摄对象的三基色RGB数据。Step S50, converting the color temperature values of all the objects in the terminal framing image into RGB data, and obtaining an average value of the three color channels of the object in R, G, and B according to the RGB data, wherein the average value is The three primary colors RGB data of the subject.
被摄对象可能有多个,同一被摄对象或者不同被摄对象均可能有多种颜色,因而色温传感器可能检测到许多色温值。根据色温传感器检测到的多个色温值,转化为多个RGB数据,所述RGB数据可以为被摄对象在R、G、B三个颜色通道上的值。根据所有所述RGB数据计算整个拍摄装置取景图像内所有被摄对象在R、G、B三个颜色通道的平均值,最后获得唯一的一个RGB值,该RGB值为所述被摄对象的三基色RGB数据,以待后续作为确定白平衡参数的依据。There may be more than one subject, and the same subject or different subjects may have multiple colors, so the color temperature sensor may detect many color temperature values. The plurality of color temperature values detected by the color temperature sensor are converted into a plurality of RGB data, and the RGB data may be values of the object on the three color channels of R, G, and B. Calculating an average value of all the objects in the framing image of the entire camera in the R, G, and B color channels according to all the RGB data, and finally obtaining a unique RGB value, the RGB value is three of the subject The primary color RGB data is to be used as a basis for determining the white balance parameter.
本实施例通过从多个色温值转化的多个RGB数据中确定最终决定白平衡参数的唯一的RGB数据,以便后续确定白平衡参数的步骤顺利进行;确定被摄对象在R、G、B三个颜色通道的平均值作为所述唯一的RGB数据,综合了被摄对象的总体RGB数据情况,保证了一定程度的准确性,保证后续白平衡处理对实际物体色彩的准确还原。In this embodiment, the unique RGB data that ultimately determines the white balance parameter is determined by the plurality of RGB data converted from the plurality of color temperature values, so that the step of determining the white balance parameter is performed smoothly; determining the subject in R, G, and B. The average value of the color channels is used as the unique RGB data, which integrates the overall RGB data of the subject, ensuring a certain degree of accuracy, and ensuring accurate restoration of the actual object color by the subsequent white balance processing.
进一步的,本发明终端白平衡处理方法第六实施例中,基于第一实施例或者第二实施例或者第三实施例或者第四实施例或者第五实施例,步骤S12包括:Further, in the sixth embodiment of the terminal white balance processing method of the present invention, based on the first embodiment or the second embodiment or the third embodiment or the fourth embodiment or the fifth embodiment, step S12 includes:
步骤S60,根据所述基准区域的RGB数据确定白平衡的RGB增益值,根据该RGB增益值和所有所述被摄对象的RGB数据,确定所有所述被摄对象最后的校正值;Step S60, determining an RGB gain value of the white balance according to the RGB data of the reference area, and determining a final correction value of all the objects according to the RGB gain value and RGB data of all the objects;
步骤S61,将所有所述被摄对象在原始成像图上的对应区域的RGB数据调整至所述校正值。Step S61, adjusting RGB data of corresponding regions of all the subjects on the original imaging image to the correction value.
一般而言,将作为基准区域的RGB数据调整至1:1:1后,其他区域的颜色也会还原至其真实色彩。In general, after adjusting the RGB data as the reference area to 1:1:1, the colors of other areas are also restored to their true colors.
拍摄装置内部有三个CCD电子耦合元件,他们分别感受蓝色、绿色、红色的光线,在预置情况下这三个感光电路电子放大比例是相同的,为1:1:1的关系,白平衡的调整就是根据被调校的景物改变了这种比例关系。比如被调校景物的蓝、绿、红色光的比例关系是2:1:1(蓝光比例多,色温偏高),那么白平衡调整后的比例关系为1:2:2,调整后的电路放大比例中明显蓝的比例减少,增加了绿和红的比例,这样被调校景物通过白平衡调整电路到所拍摄的影像,蓝、绿、红的比例才会相同。也就是说如果被调校的白色偏一点蓝,那么白平衡调整就改变正常的比例关系减弱蓝电路的放大,同时增加绿和红的比例,使所成影像依然为白色。There are three CCD electronic coupling components inside the camera. They respectively sense the blue, green and red light. In the preset case, the electronic amplification ratios of the three photosensitive circuits are the same, which is 1:1:1, white balance. The adjustment is to change this proportional relationship according to the scene being adjusted. For example, the ratio of blue, green, and red light of the adjusted scene is 2:1:1 (more blue light ratio, higher color temperature), then the ratio of white balance adjustment is 1:2:2, the adjusted circuit The proportion of the apparent blue in the magnification ratio is reduced, and the ratio of green to red is increased, so that the adjusted scene passes through the white balance adjustment circuit to the captured image, and the ratios of blue, green, and red are the same. That is to say, if the white that is adjusted is a little blue, then the white balance adjustment changes the normal proportional relationship to weaken the amplification of the blue circuit, and at the same time increases the ratio of green and red, so that the resulting image is still white.
本实施例中白平衡的RGB增益值即将所述基准区域的RGB数据调整至1:1:1的放大比例,如所述基准区域的RGB数据为R:G:B=1:1:2,将其调整至R:G:B=1:1:1需要的放大比例为R:G:B=2:2:1。In this embodiment, the RGB gain value of the white balance is to adjust the RGB data of the reference region to an amplification ratio of 1:1:1, such as the RGB data of the reference region is R:G:B=1:1:2, Adjust it to R:G:B=1:1:1 The required magnification ratio is R:G:B=2:2:1.
本实施例中所有所述被摄对象的RGB数据值拍摄装置取景图或者原始成像图内的被摄对象的RGB数据(三者比值),根据白平衡的RGB增益值和被摄对象的RGB数据确定所有所述被摄对象最后的校正值,即最后还原后的RGB数据。In the RGB data value of all the subjects in the embodiment, the RGB data (three ratios) of the subject in the original image or the original image, the RGB gain value according to the white balance and the RGB data of the subject The final correction value of all the subjects, that is, the last restored RGB data, is determined.
确定上述白平衡参数后,将被摄对象在原始成像图上的对应区域的RGB数据根据白平衡的RGB增益值调整至校正值。After determining the above white balance parameter, the RGB data of the corresponding area of the subject on the original image is adjusted to the correction value according to the RGB gain value of the white balance.
本实施例通过根据基准区域的RGB值确定白平衡RGB增益值,再根据色温传感器检测的色温值转化来的被摄对象的RGB数据,确定被摄对象在原始成像图上的对应区域的RGB的最后校正值,避免了因为摄像头或者ISP的不准确导致最后校正值的不准确,使得最后还原的色彩更接近真实色彩,出图更加接近人眼所见,提升用户体验。In this embodiment, the white balance RGB gain value is determined according to the RGB value of the reference region, and then the RGB data of the subject converted from the color temperature value detected by the color temperature sensor is used to determine the RGB of the corresponding region of the subject on the original imaging image. The final correction value avoids the inaccuracy of the final correction value due to the inaccuracy of the camera or ISP, so that the final restored color is closer to the real color, and the picture is closer to the human eye to improve the user experience.
为便于理解,参照图4和图5,在本发明终端白平衡处理方法第七实施例中,基于Google Android 软件架构,描述本实施例。图4为相关现有技术附图,图5为本实施例改进点示意图。For ease of understanding, referring to FIG. 4 and FIG. 5, in the seventh embodiment of the terminal white balance processing method of the present invention, based on Google Android Software Architecture, This Embodiment is described. 4 is a related prior art drawing, and FIG. 5 is a schematic view of a modification of the present embodiment.
本实施例基于Google Android 软件架构(可以是Android 6.0及以上系统)和三方色温传感器芯片实施,相关代码编写涉及hal层(硬件抽象层)、kernel层(内核层),三方算法库。This embodiment is based on the Google Android software architecture (can be Android 6.0 and above) and the three-party color temperature sensor chip implementation, the relevant code is written in the hal layer (hardware abstraction layer), the kernel layer (kernel layer), and the three-party algorithm library.
本实施例的拍摄是由三方摄像应用(camera app)启动,用户打开camera app开始拍摄,在hal层开始isp处理时打开三方库,具体而言,在hal层IspTuningMgr的构造函数中调用loadSmartCam()去打开三方库libsmartcam_asb5.so,在三方库中调用色温传感器驱动接口获取色温,在IspTuningMgr::init中去调用库中start函数开始工作(调用色温传感器驱动接口的唤醒awake接口),在IspTuningMgr::setAWBGain中调用库中相关函数进行获取色温转换成RGB值,并进行算法校准,并输出最终RGB值给3A(自动曝光控制(AE)、自动聚焦控制(AF)、自动白平衡控制(AWB))进行AWB处理,最后通过ISP进行图像处理,最终实现动态根据色温来校准。The shooting of this embodiment is started by a three-party camera application, and the user opens the camera. The app starts shooting, and opens the three-party library when the hal layer starts isp processing. Specifically, the loadSmartCam() is called in the constructor of the hal layer IspTuningMgr to open the three-party library libsmartcam_asb5.so, and the color temperature sensor driver interface is called in the three-party library to obtain the color temperature. In IspTuningMgr::init, call the start function in the library to start working (call the wake-up awake interface of the color temperature sensor driver interface), call the correlation function in the library in IspTuningMgr::setAWBGain to obtain the color temperature and convert it into RGB values, and perform algorithm calibration. And output the final RGB value to 3A (automatic exposure control (AE), auto focus control (AF), automatic white balance control (AWB)) for AWB processing, and finally through ISP image processing, and finally achieve dynamic calibration according to color temperature.
其中,本实施例可基于kernel-3.18的内核驱动,根据色温传感器的nxu8010芯片数据手册编写驱动程序,主要实现以下功能接口:初始化节点,获取RGBW的值的节点,用来让芯片休眠的节点,用来唤醒芯片的节点,用来提供工厂和工程模式显示信息的节点,用来调试时查看工作状态的节点。The embodiment can be based on the kernel driver of kernel-3.18, and the driver is written according to the nxu8010 chip data manual of the color temperature sensor, and mainly realizes the following functional interfaces: an initialization node, a node for obtaining the value of RGBW, and a node for letting the chip sleep, The node used to wake up the chip, the node used to provide factory and engineering mode display information, and the node used to view the working state during debugging.
本实施例可基于MTK平台hal层的3A和ISP相关文件,实现打开三方库,以及3A和ISP的处理。可基于NEUSCHIPS公司的三方库文件libsmartcam_asb5.so,实现对驱动接口的调用以及算法处理。可基于Android系统编译环境进行代码调试。This embodiment can implement the processing of opening the three-party library and the 3A and the ISP based on the 3A and ISP related files of the hal layer of the MTK platform. The call to the driver interface and the algorithm processing can be implemented based on the three-party library file libsmartcam_asb5.so of NEUSCHIPS. Code debugging can be performed based on the Android system compilation environment.
本实施例中的特定函数或专有名词或者接口层为安卓系统或相关的现有技术,不再赘述。The specific function or proper noun or interface layer in this embodiment is an Android system or related prior art, and will not be described again.
从技术方案图和描述可以看出,本实施例通过补偿自动白平衡的RGB增益,使图片获得与眼睛相似的颜色,这样图片色彩更加真实,精确。 As can be seen from the technical scheme diagram and description, the present embodiment compensates the RGB gain of the automatic white balance, so that the picture obtains a color similar to the eye, so that the picture color is more realistic and accurate.
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有终端白平衡处理程序,所述终端白平衡处理程序被处理器执行时实现如上述实施例所述的步骤。因具体内容大体一致,故不再赘述。In addition, the embodiment of the present invention further provides a computer readable storage medium, where the terminal white balance processing program is stored, and when the terminal white balance processing program is executed by the processor, the implementation is as described in the foregoing embodiment. The steps described. Because the specific content is generally consistent, it will not be repeated.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (10)

  1. 一种终端白平衡处理方法,其特征在于,所述终端白平衡处理方法包括: A terminal white balance processing method, wherein the terminal white balance processing method comprises:
    当检测到拍摄请求时,启动终端上的色温传感器,获取终端取景图像内被摄对象的当前色温值;When a shooting request is detected, a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image;
    根据所述被摄对象的当前色温值确定所述被摄对象的三基色RGB数据;Determining three primary color RGB data of the subject according to a current color temperature value of the subject;
    根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理。The white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
  2. 如权利要求1所述的终端白平衡处理方法,其特征在于,所述当检测到拍摄请求时的步骤之后包括:The terminal white balance processing method according to claim 1, wherein the step of detecting the photographing request comprises:
    检测色温传感器是否出现故障;Detecting whether the color temperature sensor is faulty;
    若检测到色温传感器无故障,则执行所述启动终端上的色温传感器的步骤;If it is detected that the color temperature sensor is not faulty, performing the step of starting the color temperature sensor on the terminal;
    若检测到色温传感器出现故障,则获取根据图像信号处理器确定的被摄对象的RGB数据,根据该RGB数据确定白平衡参数,对终端取景图像进行白平衡处理。If it is detected that the color temperature sensor is faulty, the RGB data of the subject determined according to the image signal processor is acquired, the white balance parameter is determined according to the RGB data, and the terminal framing image is subjected to white balance processing.
  3. 如权利要求1所述的终端白平衡处理方法,其特征在于,所述根据所述RGB数据确定白平衡参数的步骤包括:The terminal white balance processing method according to claim 1, wherein the step of determining a white balance parameter according to the RGB data comprises:
    根据所述RGB数据确定被摄对象中的基准区域,根据该基准区域的RGB数据确定白平衡参数。A reference area in the subject is determined based on the RGB data, and a white balance parameter is determined based on RGB data of the reference area.
  4. 如权利要求3所述的终端白平衡处理方法,其特征在于,所述根据所述RGB数据确定被摄对象中的基准区域的步骤包括:The terminal white balance processing method according to claim 3, wherein the determining the reference region in the subject based on the RGB data comprises:
    根据所述RGB数据确定红色与蓝色的第一比值、红色与绿色的第二比值;Determining a first ratio of red to blue and a second ratio of red to green according to the RGB data;
    若所述第一比值小于第一阈值,且所述第二比值小于第二阈值,则所述RGB比值对应的区域为第一基准区域,该第一基准区域为基准区域。If the first ratio is smaller than the first threshold, and the second ratio is smaller than the second threshold, the region corresponding to the RGB ratio is the first reference region, and the first reference region is the reference region.
  5. 如权利要求4所述的终端白平衡处理方法,其特征在于,所述若所述第一比值小于第一阈值,且所述第二比值小于第二阈值,则所述RGB比值对应的区域为第一基准区域的步骤之后包括:The terminal white balance processing method according to claim 4, wherein if the first ratio is smaller than a first threshold and the second ratio is smaller than a second threshold, an area corresponding to the RGB ratio is The steps of the first reference area are followed by:
    若所述第一基准区域有多个,则比较多个所述第一基准区域的RGB大小;If there are multiple first reference regions, compare RGB sizes of the plurality of first reference regions;
    确定RGB最大的第一基准区域,该最大RGB对应的第一基准区域为基准区域。A first reference region having the largest RGB is determined, and the first reference region corresponding to the maximum RGB is a reference region.
  6. 如权利要求1所述的终端白平衡处理方法,其特征在于,所述终端白平衡处理方法还包括:The terminal white balance processing method according to claim 1, wherein the terminal white balance processing method further comprises:
    当检测到终端取景图像内被摄对象的色温值发生变化时,获取被摄对象的当前色温值;Obtaining a current color temperature value of the subject when detecting that a color temperature value of the subject changes within the terminal view image;
    将所述当前色温值转化为RGB数据,根据该RGB数据更新所述白平衡参数。The current color temperature value is converted into RGB data, and the white balance parameter is updated according to the RGB data.
  7. 如权利要求1所述的终端白平衡处理方法,其特征在于,所述根据所述被摄对象的当前色温值确定所述被摄对象的三基色RGB数据的步骤包括:The terminal white balance processing method according to claim 1, wherein the determining the three primary colors RGB data of the subject according to the current color temperature value of the subject comprises:
    将所述终端取景图像内所有被摄对象的色温值转换为RGB数据,根据该RGB数据获取所述被摄对象在R、G、B三个颜色通道的平均值,该平均值为所述被摄对象的三基色RGB数据。Converting a color temperature value of all the objects in the terminal view image into RGB data, and acquiring an average value of the three color channels of the object in R, G, and B according to the RGB data, the average value being the The three primary color RGB data of the subject.
  8. 如权利要求3所述的终端白平衡处理方法,其特征在于,所述根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理的步骤包括:The terminal white balance processing method according to claim 3, wherein the step of determining a white balance parameter according to the RGB data, and performing white balance processing on the original imaging image comprises:
    根据所述基准区域的RGB数据确定白平衡的RGB增益值,根据该RGB增益值和所有所述被摄对象的RGB数据,确定所有所述被摄对象最后的校正值;Determining an RGB gain value of the white balance according to the RGB data of the reference area, and determining a last correction value of all the objects according to the RGB gain value and RGB data of all the objects;
    将所有所述被摄对象在原始成像图上的对应区域的RGB数据调整至所述校正值。The RGB data of the corresponding area of all the subjects on the original imaged image is adjusted to the correction value.
  9. 一种终端,其特征在于,所述终端包括:处理器、色温传感器、摄像头、存储器及存储在所述存储器上并可在所述处理器上执行的终端白平衡处理程序,所述终端白平衡处理程序被所述处理器执行时实现如下步骤:A terminal, comprising: a processor, a color temperature sensor, a camera, a memory, and a terminal white balance processing program stored on the memory and executable on the processor, the terminal white balance The following steps are implemented when the handler is executed by the processor:
    当检测到拍摄请求时,启动终端上的色温传感器,获取终端取景图像内被摄对象的当前色温值;When a shooting request is detected, a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image;
    根据所述被摄对象的当前色温值确定所述被摄对象的三原色RGB数据;Determining three primary color RGB data of the subject according to a current color temperature value of the subject;
    根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理。The white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有终端白平衡处理程序,所述终端白平衡处理程序被处理器执行时实现如下步骤:A computer readable storage medium, wherein the computer readable storage medium stores a terminal white balance processing program, and when the terminal white balance processing program is executed by the processor, the following steps are implemented:
    当检测到拍摄请求时,启动终端上的色温传感器,获取终端取景图像内被摄对象的当前色温值;When a shooting request is detected, a color temperature sensor on the terminal is activated to acquire a current color temperature value of the subject in the terminal framing image;
    根据所述被摄对象的当前色温值确定所述被摄对象的三原色RGB数据;Determining three primary color RGB data of the subject according to a current color temperature value of the subject;
    根据所述RGB数据确定白平衡参数,对原始成像图进行白平衡处理。 The white balance parameter is determined according to the RGB data, and the original image is subjected to white balance processing.
PCT/CN2017/100776 2017-09-06 2017-09-06 White balance processing method of terminal, and terminal and computer-readable storage medium WO2019047077A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/100776 WO2019047077A1 (en) 2017-09-06 2017-09-06 White balance processing method of terminal, and terminal and computer-readable storage medium
CN201780096515.8A CN111602390A (en) 2017-09-06 2017-09-06 Terminal white balance processing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/100776 WO2019047077A1 (en) 2017-09-06 2017-09-06 White balance processing method of terminal, and terminal and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2019047077A1 true WO2019047077A1 (en) 2019-03-14

Family

ID=65633363

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100776 WO2019047077A1 (en) 2017-09-06 2017-09-06 White balance processing method of terminal, and terminal and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN111602390A (en)
WO (1) WO2019047077A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114216573A (en) * 2021-12-13 2022-03-22 Oppo广东移动通信有限公司 Color temperature detection method and device, computer readable medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117678234A (en) * 2021-10-27 2024-03-08 深圳市大疆创新科技有限公司 Imaging method and imaging device of wading scene

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956552A (en) * 2005-10-27 2007-05-02 精工爱普生株式会社 Image processing apparatus, image processing method and image processing program
CN105208364A (en) * 2014-06-27 2015-12-30 联想(北京)有限公司 Image white balance control method, device and electronic apparatus
CN105282451A (en) * 2015-05-26 2016-01-27 维沃移动通信有限公司 Method for adjusting white balance of camera of mobile terminal and mobile terminal thereof
CN106131526A (en) * 2016-07-13 2016-11-16 凌云光技术集团有限责任公司 A kind of white balancing treatment method based on rgb space and device
CN106303488A (en) * 2015-05-18 2017-01-04 小米科技有限责任公司 Camera lens module, mobile terminal and the method for remedial frames colour cast

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222572B (en) * 2007-01-11 2011-12-07 昆山杰得微电子有限公司 White balance processing equipment
JP2009122294A (en) * 2007-11-14 2009-06-04 Nikon Corp Illuminator for photography
JP5821214B2 (en) * 2011-02-28 2015-11-24 ソニー株式会社 Image processing apparatus, image processing method, and program
CN103634581A (en) * 2012-08-21 2014-03-12 联想(北京)有限公司 White balance control method, device and electronic equipment
CN103338383B (en) * 2013-06-25 2016-12-28 努比亚技术有限公司 The method and device of white balance calibration
CN105100764B (en) * 2015-06-26 2018-03-16 小米科技有限责任公司 Image pickup method and device
CN105430366A (en) * 2015-12-24 2016-03-23 广东欧珀移动通信有限公司 Control method, control device and photographing system
CN106791760B (en) * 2016-12-16 2019-02-26 歌尔股份有限公司 Colour temperature for camera detects, adjusts the method, apparatus and camera of white balance

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956552A (en) * 2005-10-27 2007-05-02 精工爱普生株式会社 Image processing apparatus, image processing method and image processing program
CN105208364A (en) * 2014-06-27 2015-12-30 联想(北京)有限公司 Image white balance control method, device and electronic apparatus
CN106303488A (en) * 2015-05-18 2017-01-04 小米科技有限责任公司 Camera lens module, mobile terminal and the method for remedial frames colour cast
CN105282451A (en) * 2015-05-26 2016-01-27 维沃移动通信有限公司 Method for adjusting white balance of camera of mobile terminal and mobile terminal thereof
CN106131526A (en) * 2016-07-13 2016-11-16 凌云光技术集团有限责任公司 A kind of white balancing treatment method based on rgb space and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114216573A (en) * 2021-12-13 2022-03-22 Oppo广东移动通信有限公司 Color temperature detection method and device, computer readable medium and electronic equipment
CN114216573B (en) * 2021-12-13 2023-12-19 Oppo广东移动通信有限公司 Color temperature detection method and device, computer readable medium and electronic equipment

Also Published As

Publication number Publication date
CN111602390A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
WO2020171583A1 (en) Electronic device for stabilizing image and method for operating same
WO2017014415A1 (en) Image capturing apparatus and method of operating the same
WO2015102317A1 (en) Image processing apparatus and method
WO2017090848A1 (en) Photographing device and operating method of the same
WO2021015505A1 (en) Foldable electronic device and photographing method using multiple cameras in foldable electronic device
WO2019156308A1 (en) Apparatus and method for estimating optical image stabilization motion
WO2019164185A1 (en) Electronic device and method for correcting image corrected in first image processing scheme in external electronic device in second image processing scheme
WO2018040269A1 (en) Image processing method and terminal
WO2019142997A1 (en) Apparatus and method for compensating for image change caused by optical image stabilization motion
WO2013089370A1 (en) Image pickup apparatus, method of performing image compensation, and computer readable recording medium
WO2021133025A1 (en) Electronic device comprising image sensor and method of operation thereof
WO2020076128A1 (en) Method and electronic device for switching between first lens and second lens
WO2021066565A1 (en) Image processing method and electronic device supporting the same
WO2019045517A1 (en) Method for controlling synchronization of plurality of image sensors and electronic device for implementing same
WO2020153738A1 (en) Electronic device and method for connecting ground node to camera module
WO2019047077A1 (en) White balance processing method of terminal, and terminal and computer-readable storage medium
WO2019172723A1 (en) Interface connected to image sensor and electronic device comprising interfaces connected among plurality of processors
WO2020134967A1 (en) Polarizer attachment detection method and device, and display device
WO2021157996A1 (en) Electronic device and method for processing image thereof
WO2019160325A1 (en) Electronic device and control method thereof
WO2019054610A1 (en) Electronic device and method for controlling plurality of image sensors
WO2020190008A1 (en) Electronic device for auto focusing function and operating method thereof
WO2020145482A1 (en) Electronic device for controlling frame rate of image sensor and method thereof
WO2020060081A1 (en) Electronic device for driving plurality of cameras on basis of external illuminance
WO2021235884A1 (en) Electronic device and method for generating image by performing awb

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: 17924089

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: 17924089

Country of ref document: EP

Kind code of ref document: A1