WO2020259196A1 - Control method for electronic device and electronic device - Google Patents

Control method for electronic device and electronic device Download PDF

Info

Publication number
WO2020259196A1
WO2020259196A1 PCT/CN2020/093016 CN2020093016W WO2020259196A1 WO 2020259196 A1 WO2020259196 A1 WO 2020259196A1 CN 2020093016 W CN2020093016 W CN 2020093016W WO 2020259196 A1 WO2020259196 A1 WO 2020259196A1
Authority
WO
WIPO (PCT)
Prior art keywords
color temperature
electronic device
value
illuminance value
fusion
Prior art date
Application number
PCT/CN2020/093016
Other languages
French (fr)
Chinese (zh)
Inventor
贾玉虎
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020259196A1 publication Critical patent/WO2020259196A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • This application relates to the technical field of consumer electronic products, in particular to a control method of an electronic device and an electronic device.
  • Electronic equipment is usually provided with a color temperature sensor to detect the color temperature, so as to perform certain operations according to the detected color temperature, such as adjusting the brightness of the display screen.
  • the embodiments of the present application provide a method for controlling an electronic device and an electronic device.
  • the embodiment of the present application provides a control method of an electronic device, the electronic device includes a front color temperature sensor and a rear color temperature sensor, and the control method includes: obtaining front light parameters of ambient light through the front color temperature sensor; Obtain the rear light parameters of the ambient light through the rear color temperature sensor; determine the fusion light parameters according to the front light parameters and the rear light parameters; control the electronic device according to the fusion light parameters.
  • the embodiment of the present application also provides an electronic device, which includes a front color temperature sensor, a rear color temperature sensor, and a processor.
  • the front color temperature sensor is used to obtain the front light parameters of the ambient light;
  • the rear color temperature sensor is used to obtain the rear light parameters of the ambient light;
  • the processor is used to obtain the front light parameters and the rear light parameters. Setting the light parameters determines the fusion light parameters, and controls the electronic device according to the fusion light parameters.
  • the electronic device and the control method thereof according to the embodiments of the present application can accurately determine the fusion light parameters according to the front light parameters acquired by the front color temperature sensor and the rear light parameters acquired by the rear color temperature sensor, thereby controlling the electronic device according to the fusion light parameters , The user experience is better.
  • FIG. 1 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application
  • FIG. 2 is a schematic diagram of a three-dimensional structure of an electronic device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a plan structure of an electronic device according to an embodiment of the present application.
  • FIGS. 4 and 5 are schematic diagrams of scenes of control methods of electronic devices in some embodiments of the present application.
  • FIG. 6 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application.
  • FIG. 7 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application.
  • FIG. 8 is a schematic diagram of a scene of a control method of an electronic device according to some embodiments of the present application.
  • FIG. 9 is a schematic diagram of a scene of an electronic device control method according to some embodiments of the present application.
  • FIG. 10 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application.
  • FIG. 11 is a schematic diagram of a scene of a control method of an electronic device according to some embodiments of the present application.
  • FIG. 12 is a schematic diagram of a scene of a control method of an electronic device according to some embodiments of the present application.
  • FIG. 13 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application.
  • FIG. 14 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application.
  • 15 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application.
  • FIG. 16 is a schematic diagram of a scene of a control method of an electronic device in some embodiments of the present application.
  • the electronic device 100 includes a front color temperature sensor 10 and a rear color temperature sensor 20.
  • the control method includes: acquiring the front light parameters of the ambient light through the front color temperature sensor 10; acquiring the rear light parameters of the ambient light through the rear color temperature sensor 20; determining the fusion light parameters according to the front light parameters and the rear light parameters; The fusion light parameter controls the electronic device 100.
  • the front light parameter includes a front illuminance value and a front color temperature value.
  • the rear light parameters include the rear illuminance value and the rear color temperature value.
  • Determine the fusion light parameters according to the front light parameters and the rear light parameters including: determine the fusion light parameters according to the front illuminance value and the back illuminance value, the fusion light parameters include the fusion illuminance value and/or the fusion color temperature value; according to the fusion light parameters
  • Controlling the electronic device 100 includes: controlling the electronic device 100 according to the fused illuminance value and/or the fused color temperature value.
  • the method for determining the fusion light parameter according to the front illuminance value and the rear illuminance value includes: when the current illuminance value is greater than a predetermined multiple of the rear illuminance value, the front illuminance value is taken as For the fusion illuminance value, the front color temperature value is used as the fusion color temperature value; when the rear illuminance value is greater than the front illuminance value of a predetermined multiple, the rear illuminance value is used as the fusion illuminance value, and the rear color temperature value is used as the fusion color temperature value.
  • the electronic device 100 further includes an attitude sensor 60.
  • the control method further includes: acquiring the posture information of the electronic device 100 through the posture sensor 60; when the front illuminance value is not greater than a predetermined multiple of the rear illuminance value, and the rear illuminance value is not greater than the predetermined multiple of the front illuminance value, according to the attitude
  • the information determines the fusion light parameters.
  • determining the fusion light parameters according to the posture information includes: when the posture information obtained by the posture sensor 60 meets a predetermined condition, the processor 30 uses the front illuminance value as the fusion illuminance value , The front color temperature value is used as the fused color temperature value; when the posture information obtained by the attitude sensor 60 does not meet the predetermined condition, the rear illuminance value is used as the fused illuminance value, and the processor 30 uses the rear color temperature value as the fused color temperature value.
  • the electronic device 100 further includes a display screen 50, and controlling the electronic device 100 according to the fusion light parameter includes: controlling the display state of the display screen 50 according to the fusion light parameter; or
  • the electronic device 100 further includes a camera module 70, which is used to obtain the original image of the object.
  • Controlling the electronic device 100 according to the fusion light parameter includes: performing white balance processing on the original image according to the fusion light parameter.
  • the electronic device 100 further includes a flash 80, and the rear color temperature sensor 20 and the flash 80 share a lens module.
  • determining the fusion light parameter according to the front light parameter and the rear light parameter includes: determining the first predetermined coefficient, the second predetermined coefficient, and the third predetermined coefficient according to the inclination angle of the electronic device 100 And a fourth predetermined coefficient; and determine the fusion illuminance value and the fusion color temperature value according to the fusion formula, the first predetermined coefficient, the second predetermined coefficient, the third predetermined coefficient, and the fourth predetermined coefficient.
  • the predetermined multiple is any value greater than one.
  • the predetermined condition includes that the inclination angle of the electronic device 100 is greater than 0 degrees.
  • the electronic device 100 in the embodiment of the present application includes a front color temperature sensor 10, a rear color temperature sensor 20 and a processor 30.
  • the front color temperature sensor 10 is used to obtain front light parameters of ambient light.
  • the rear color temperature sensor 20 is used to obtain the rear light parameters of the ambient light.
  • the processor 30 is configured to determine the fusion light parameter according to the front light parameter and the rear light parameter, and control the electronic device 100 according to the fusion light parameter.
  • the front light parameter includes a front illuminance value and a front color temperature value.
  • the rear light parameters include the rear illuminance value and the rear color temperature value.
  • the processor 30 is configured to: determine the fusion light parameter according to the front illuminance value and the post illuminance value, the fusion light parameter includes the fusion illuminance value and/or the fusion color temperature value; and control the electronic device 100 according to the fusion illuminance value and/or the fusion color temperature value .
  • the processor 30 is configured to: when the front illuminance value is greater than a predetermined multiple of the rear illuminance value, use the front illuminance value as the fused illuminance value, and use the front color temperature value as the fused illuminance value. Color temperature value; when the post illuminance value is greater than the pre-illumination value of a predetermined multiple, the post illuminance value is used as the fusion illuminance value, and the post color temperature value is used as the fusion color temperature value.
  • the electronic device 100 further includes an attitude sensor 60.
  • the posture sensor 60 is used to obtain posture information of the electronic device 100.
  • the processor 30 is configured to determine the fusion light parameter according to the posture information when the front illuminance value is not greater than the predetermined multiple of the post illuminance value and the rear illuminance value is not greater than the predetermined multiple of the front illuminance value.
  • the processor 30 is configured to: when the posture information meets a predetermined condition, use the front illuminance value as the fused illuminance value and the front color temperature value as the fused color temperature value; When the predetermined conditions are met, the post illuminance value is used as the fusion illuminance value, and the post color temperature value is used as the fusion color temperature value.
  • the electronic device 100 further includes a display screen 50, and the processor 30 is configured to control the display state of the display screen 50 according to the fusion light parameter.
  • the electronic device 100 further includes a camera module 70, and the processor 30 is configured to perform white balance processing on the original image according to the fusion light parameters.
  • the electronic device 100 further includes a flash 80, and the rear color temperature sensor 20 and the flash 80 share a lens module.
  • the processor 30 is configured to determine the first predetermined coefficient, the second predetermined coefficient, the third predetermined coefficient, and the fourth predetermined coefficient according to the inclination angle of the electronic device 100; and according to the fusion formula, the A predetermined coefficient, a second predetermined coefficient, a third predetermined coefficient, and a fourth predetermined coefficient determine the fusion illuminance value and the fusion color temperature value.
  • the predetermined multiple is any value greater than one.
  • the predetermined condition includes that the inclination angle of the electronic device 100 is greater than 0 degrees.
  • an embodiment of the present application provides a method for controlling an electronic device 100.
  • the electronic device 100 includes a front color temperature sensor 10 and a rear color temperature sensor 20.
  • Control methods include:
  • an embodiment of the present application also provides an electronic device 100.
  • the electronic device 100 includes a front color temperature sensor 10, a rear color temperature sensor 20 and a processor 30.
  • the control method of the electronic device 100 in the embodiment of the present application can be implemented by the electronic device 100 in the embodiment of the present application.
  • the front color temperature sensor 10 can be used to execute the method in 01
  • the rear color temperature sensor 20 can be used to execute the method in 02
  • the processor 30 can be used to execute the methods in 03 and 04.
  • the front color temperature sensor 10 can be used to obtain the front light parameters of the ambient light.
  • the rear color temperature sensor 20 may be used to obtain the rear light parameters of the ambient light.
  • the processor 30 may be used to determine the fusion light parameter according to the front light parameter and the rear light parameter, and to control the electronic device 100 according to the fusion light parameter.
  • the electronic device 100 and the control method thereof according to the embodiment of the present application can accurately determine the fusion light parameters according to the front light parameters acquired by the front color temperature sensor 10 and the rear light parameters acquired by the rear color temperature sensor 20, and thus can accurately determine the fusion light parameters according to the fusion light parameters To control the electronic device 100, the user experience is better.
  • the electronic device 100 may be a mobile phone, a tablet computer, a notebook computer, a smart bracelet, a smart watch, etc.
  • the embodiments of the present application are described by taking the electronic device 100 as a mobile phone as an example. It can be understood that the specific form of the electronic device 100 may be other, which is not limited here.
  • the electronic device 100 is provided with a front color temperature sensor 10 and a rear color temperature sensor 20. It can be understood that the color temperature sensor is used to detect the illuminance value and color temperature value of the ambient light.
  • the color temperature sensor usually has multiple light sensing channels such as R ⁇ G ⁇ B ⁇ Clear.
  • the R ⁇ G ⁇ B ⁇ Clear light sensing channel can respectively produce photoelectric response to the red light, green light, blue light and visible light in the ambient light.
  • the analog-to-digital conversion obtains the value of the analog-to-digital converter of each channel, and the illuminance value and color temperature value of the ambient light can be obtained by performing corresponding operations on the values of the multiple-channel analog-to-digital converter.
  • the electronic device 100 may further include a housing 40.
  • the casing 40 includes a front 41 and a back 42 opposite to each other.
  • the front 41 is used to install the display 50.
  • the front color temperature sensor 10 is arranged on the front surface 41. In other words, the front color temperature sensor 10 is arranged on the side of the electronic device 100 where the display screen 50 is installed, and can be located in a non-display area above the display screen 50 or other positions.
  • the front color temperature sensor 10 is used to detect the illuminance value and the color temperature value on the side where the display screen 50 is located.
  • the rear color temperature sensor 20 is provided on the back surface 42. In other words, the rear color temperature sensor 20 is arranged on the side of the electronic device 100 opposite to the display screen 50.
  • the rear color temperature sensor 20 is used to detect the illuminance value and the color temperature value on the side opposite to the display screen 50.
  • the current color temperature sensor cannot accurately detect light parameters in certain specific scenes.
  • the premise that the color temperature sensor can obtain a more accurate color temperature value is that the direct light emitted by the external light source 200 can enter the color temperature sensor more, instead of all the reflected light entering the color temperature sensor. It can be understood that since objects have various colors, the reflectance of objects of various colors to different wavelengths is different, which results in inaccurate color temperature detection when all reflected light enters the color temperature sensor.
  • Both the front color temperature sensor 10 or the rear color temperature sensor 20 alone cannot accurately detect the color temperature in certain scenarios. For example, please refer to FIG. 4.
  • the direct light emitted by the light source 200 cannot enter the front color temperature sensor 10, and basically reflected light enters the front color temperature sensor 10, resulting in the inability to accurately detect the color temperature.
  • the direct light emitted by the light source 200 cannot enter the rear color temperature sensor 20, basically The reflected light enters the rear color temperature sensor 20, which makes it impossible to accurately detect the color temperature.
  • the electronic device 100 of the embodiment of the present application is provided with a front color temperature sensor 10 and a rear color temperature sensor 20 on the front 41 and the back 42 respectively, and the front light parameters obtained by the front color temperature sensor 10 and the rear color temperature sensor 20 obtained by the rear
  • the light parameters determine the fusion light parameters, which avoids the detection caused by the color temperature sensor cannot receive the direct light emitted by the light source 200 (that is, all reflected light enters the color temperature sensor) when the front color temperature sensor 10 or the rear color temperature sensor 20 are separately set
  • the problem of inaccurate color temperature value makes the detected color temperature value more accurate, and the electronic device 100 can be controlled more accurately.
  • the front light parameter includes a front illuminance value and/or a front color temperature value. That is to say, the front light parameter includes the front illuminance value, or the front light parameter includes the front color temperature value, or the front light parameter includes the front illuminance value and the front color temperature value.
  • the rear light parameter includes a rear illuminance value and/or a rear color temperature value. In other words, the rear light parameter includes a rear illuminance value, or the rear light parameter includes a rear color temperature value, or the rear light parameter includes a rear illuminance value and a rear color temperature value.
  • the fusion light parameter includes a fusion illuminance value and/or a fusion color temperature value. That is to say, the fusion light parameter includes the fusion illuminance value, or the fusion light parameter includes the fusion color temperature value, or the fusion light parameter includes the fusion illuminance value and the fusion color temperature value.
  • Determining the fusion light parameters according to the front light parameters and the rear light parameters can be: determining at least one of the fusion illuminance value and the fusion color temperature value according to the front illuminance value and the rear illuminance value, or according to the front color temperature value and the rear color temperature The value determines at least one of the fusion illuminance value and the fusion color temperature value, or determines at least one of the fusion illuminance value and the fusion color temperature value according to the front illuminance value, the front color temperature value, the rear illuminance value, and the rear color temperature value.
  • Controlling the electronic device 100 according to the fusion light parameter may be: controlling the electronic device 100 according to the fusion illuminance value, or controlling the electronic device 100 according to the fusion color temperature value, or controlling the electronic device 100 according to the fusion illuminance value and the fusion color temperature value.
  • controlling the electronic device 100 according to the fusion light parameter may also be: controlling the display state of the display screen 50 according to the fusion light parameter, or assisting the camera module 70 to perform white balance processing.
  • the front light parameters include a front illuminance value and a front color temperature value.
  • the rear light parameters include the rear illuminance value and the rear color temperature value.
  • the fusion light parameter includes the fusion illuminance value and/or the fusion color temperature value;
  • Control the electronic device 100 (ie 04) according to the fusion light parameters including:
  • the processor 30 may be used to execute the methods in 031 and 041.
  • the processor 30 may be used to determine the fusion light parameter according to the front illuminance value and the post illuminance value, the fusion light parameter includes the fusion illuminance value and/or the fusion color temperature value; and according to the fusion illuminance value and/or the fusion The color temperature value controls the electronic device 100.
  • the processor 30 determines the fusion light parameters according to the front illuminance value and the rear illuminance value, and can more accurately determine whether the direct light emitted by the light source 200 enters the front color temperature sensor 10 or the rear color temperature sensor 20, thereby Better to choose between the front light parameters and the rear light parameters to determine the fusion light parameters.
  • Determining the fusion light parameters according to the front light parameters and the rear light parameters, and controlling the electronic device 100 according to the fusion illuminance value and/or the fusion color temperature value can be: 1Determine the fusion illuminance value according to the front illuminance value and the rear illuminance value, according to The fusion illuminance value controls the electronic device 100.
  • the processor 30 determines the fusion illuminance according to the front illuminance value of 300lx and the rear illuminance value of 30lx The value is 300lx, and the electronic device 100 is controlled according to the fused illuminance value of 300lx. 2 Determine the fusion color temperature value according to the front illuminance value and the post illuminance value, and control the electronic device 100 according to the fusion color temperature value.
  • the processor 30 determines the fusion color temperature value according to the front illuminance value 20lx and the rear illuminance value 100lx It is 6000K, and the electronic device 100 is controlled according to the fusion color temperature value of 6000K.
  • 3 Determine the fusion illuminance value and the fusion color temperature value according to the front illuminance value and the post illuminance value, and control the electronic device 100 according to the fusion illuminance value and the fusion color temperature value.
  • the processor 30 determines the fusion illuminance value according to the front illuminance value 25lx and the rear illuminance value 120lx It is 120lx and the blended color temperature value is 6000K, and the electronic device 100 is controlled according to the blended illuminance value of 120lx and the blended color temperature value of 6000K.
  • the method for determining the fusion light parameter (ie 031) according to the front illuminance value and the rear illuminance value includes:
  • the processor 30 may be used to execute the methods in 0311 and 0312.
  • the processor 30 can be used to: when the front illuminance value is greater than a predetermined multiple of the rear illuminance value, the front illuminance value is used as the fused illuminance value, and the front color temperature value is used as the fused color temperature value; When the illuminance value is greater than the front illuminance value of a predetermined multiple, the post illuminance value is used as the fused illuminance value, and the post color temperature value is used as the fused color temperature value.
  • the predetermined multiple may be any value greater than one.
  • the current illuminance value is greater than the rear illuminance value of a predetermined multiple, it indicates that the direct light received by the front color temperature sensor 10 is far more than the direct light received by the rear color temperature sensor 20; when the rear illuminance value is greater than the predetermined multiple
  • the front illuminance value indicates that the direct light received by the rear color temperature sensor 20 is far more than the direct light received by the front color temperature sensor 10 at this time.
  • the front illuminance value is used as the fused illuminance value
  • the front color temperature value is used as the fused color temperature value
  • the post-illuminance value is used as the fusion illuminance value
  • the post-color temperature value is used as the fusion color temperature value.
  • the electronic device 100 of the embodiment of the present application uses the processor 30 to compare the magnitude of the front illuminance value and the rear illuminance value, thereby determining the fusion illuminance value and the fusion color temperature value, and can accurately determine the fusion light parameter, so as to be based on the fusion light parameter To control the electronic device 100, the user experience is better.
  • the illuminance value Lux2 is used as the fused illuminance value Lux
  • the predetermined multiple may also be 3 times, 4 times, 5 times, etc., and when the front illuminance value Lux1 is greater than 3 times, 4 times, or 5 times the rear illuminance value Lux2, the front illuminance The value Lux1 is used as the fusion illuminance value Lux, and the front color temperature value CCT1 is used as the fusion color temperature value CCT; when the rear illuminance value Lux2 is greater than 3, 4, or 5 times the front illuminance value Lux1, the rear illuminance value Lux2 is used as the fusion The illuminance value Lux and the post-color temperature value CCT2 are used as the fusion color temperature value CCT.
  • the light source 200 is usually located above the electronic device 100. Therefore, in FIG. 8, the front color temperature sensor 10 can more easily receive the light emitted by the light source 200; in FIG. 9, the rear color temperature sensor 20 can more easily receive the light emitted by the light source 200.
  • the processor 30 can determine the fusion light parameter according to the posture information of the electronic device 100 obtained by the posture sensor 60, so as to control the electronic device 100.
  • control methods also include:
  • the fusion light parameter is determined according to the posture information.
  • the electronic device 100 further includes an attitude sensor 60.
  • the attitude sensor 60 can be used to execute the method in 05, and the processor 30 can be used to execute the method in 06.
  • the posture sensor 60 can be used to obtain posture information of the electronic device 100.
  • the processor 30 may be configured to determine the fusion light parameter according to the posture information when the front illuminance value is not greater than the predetermined multiple of the post illuminance value and the rear illuminance value is not greater than the predetermined multiple of the front illuminance value.
  • the fusion light parameter is determined according to the posture information of the electronic device 100 obtained by the posture sensor 60.
  • the attitude sensor 60 may be a gravity sensor, a gyroscope, or other sensors.
  • the attitude sensor 60 is installed inside the electronic device 100, and specifically may be located on the main board of the electronic device 100.
  • the posture information of the electronic device 100 includes the inclination angle of the electronic device 100. Please refer to Figure 11, if the electronic device 100 is placed perpendicular to the horizontal plane (shown on the left side of Figure 11 or shown on the right side of Figure 12), it is defined that the posture information of the electronic device 100 is the tilt angle of 0°, then when the electronic device 100 is clockwise When rotated by the angle ⁇ , the posture information of the electronic device 100 is the inclination angle ⁇ ° (shown in the right figure of FIG. 11). Referring to FIG.
  • the posture information of the electronic device 100 is the inclination angle - ⁇ ° (shown in the left diagram of FIG. 12).
  • the electronic device 100 of the embodiment of the present application obtains the posture information of the electronic device 100 by using the posture sensor 60, and the processor 30 determines the fusion light parameter according to the obtained posture information, and then controls the electronic device 100 more accurately according to the fusion light parameter.
  • the fusion light parameter (ie 06) is determined according to the posture information, including:
  • the processor 30 uses the front illuminance value as the fused illuminance value, and the front color temperature value as the fused color temperature value;
  • the post-illumination value is used as the fused illuminance value, and the processor 30 uses the post-color temperature value as the fused color temperature value.
  • the processor 30 may be used to execute the methods in 061 and 062.
  • the processor 30 can be used to: when the posture information meets a predetermined condition, use the pre-illuminance value as the fusion illuminance value and the pre-color temperature value as the fusion color temperature value; when the posture information does not meet the predetermined condition, The post illuminance value is used as the fusion illuminance value, and the post color temperature value is used as the fusion color temperature value.
  • the embodiment of the present application is described by taking the attitude sensor 60 as a gravity sensor as an example.
  • the attitude sensor 60 is used to obtain acceleration values of the Y axis and the Z axis to determine the inclination angle of the electronic device 100.
  • the predetermined condition may be that the inclination angle of the electronic device 100 is greater than zero.
  • determining the fusion light parameters according to the front light parameters and the rear light parameters may also be based on a fusion formula, using the information of the inclination angle of the electronic device 100 to weigh the illuminance value and the color temperature value of the two color temperature sensors, Thus, the fusion illuminance value and the fusion color temperature value of the electronic device 100 are determined.
  • a fusion formula using the information of the inclination angle of the electronic device 100 to weigh the illuminance value and the color temperature value of the two color temperature sensors.
  • the fusion illuminance value and the fusion color temperature value of the electronic device 100 are determined.
  • FIG. 11 When the electronic device 100 rotates clockwise by the angle ⁇ , the inclination angle is ⁇ and is a positive value.
  • FIG. 12 when the electronic device 100 rotates counterclockwise by the angle ⁇ , the inclination angle is ⁇ and is negative. value.
  • the first predetermined coefficient a may be 0, 0.1, 0.2, etc.
  • the second predetermined coefficient b may also be 0, 0.1, 0.2, etc.
  • the first predetermined coefficient a and the second predetermined coefficient b may be the same or different.
  • the first predetermined coefficient a is multiplied by the front illuminance value LuxA plus the second predetermined coefficient b is multiplied by the post illuminance value LuxB, and the final fused illuminance value LuxC can be obtained.
  • the third predetermined coefficient c is a measurement coefficient of the color temperature value of the front color temperature sensor 10
  • the fourth predetermined coefficient d is a measurement coefficient of the color temperature value of the rear color temperature sensor 20
  • the third predetermined coefficient c may be 0, 0.1, 0.2 etc.
  • the fourth predetermined coefficient d may also be 0, 0.1, 0.2, etc.
  • the third predetermined coefficient c and the fourth predetermined coefficient d may be the same or different.
  • the processor 30 can obtain the fusion illuminance value LuxC and the fusion color temperature value CCTC, and then control the electronic device 100 through the fusion illuminance value LuxC and/or the fusion color temperature value CCTC.
  • the electronic device 100 further includes a display screen 50, which controls the electronic device 100 (that is, 04) according to the fusion light parameters, including:
  • the electronic device 100 further includes a camera module 70, and the camera module 70 is used to obtain the original image of the object.
  • the electronic device 100 further includes a display screen 50, and the processor 30 can be used to execute the method in 042.
  • the electronic device 100 further includes a camera module 70, the camera module 70 is used to obtain the original image of the object, and the processor 30 may be used to execute the method in 043.
  • the processor 30 can be used to control the display state of the display screen 50 according to the fusion light parameters.
  • the processor 30 may be used to perform white balance processing on the original image according to the fusion light parameters.
  • the electronic device 100 can adjust the color of the display screen 50 to be warmer through the processor 30 (that is, adjust the display screen 50 The color is a bright warm color, such as yellow, orange, etc.), so that the display screen 50 will not be dazzling and protect human eyes; if the fusion color temperature value is too high, the electronic device 100 can adjust the color shift of the display screen 50 through the processor 30 Cool (that is, adjust the color of the display screen 50 to a dim cool color, such as cyan, blue, etc.), so as to obtain a gorgeous display effect.
  • the camera module 70 may include a front camera 71 and a rear camera 72.
  • the front camera 71 is set close to the front color temperature sensor 10.
  • the rear camera 72 is arranged close to the rear color temperature sensor 20.
  • the processor 30 performs white balance processing on the original image according to the fusion color temperature value, so that the captured photo matches the actual object observed by human eyes.
  • the color of the displayed image will be biased toward red; conversely, when taking pictures under a light source with a higher color temperature value, the displayed image will be captured The color will be biased towards blue.
  • the color of the captured image will be different from the color of the actual object when taking pictures. Therefore, the color of the captured image must be corrected, that is, the white balance. Processing to correct the color close to the actual object.
  • the front color temperature sensor 10 transmits the front color temperature value to the processor 30, the front camera 71 sends the captured original image to the processor 30, and the processor 30 performs white balance processing on the original image according to the front color temperature value.
  • the rear color temperature sensor 20 transmits the rear color temperature value to the processor 30, the rear camera 72 sends the captured original image to the processor 30, and the processor 30 performs white balance processing on the original image according to the rear color temperature value.
  • the field angle ⁇ 1 of the front color temperature sensor 10 receiving light is larger than the field angle ⁇ 2 of the image captured by the front camera 71, and the field of view of the rear color temperature sensor 20 receiving light
  • the angle ⁇ 1 is larger than the field of view ⁇ 2 of the image captured by the rear camera 72, that is, the field of view of the front color temperature sensor 10 and the rear color temperature sensor 20 receiving light is larger than the field of view of the image captured by the camera module 70, so the front color temperature The sensor 10 and the rear color temperature sensor 20 can be used to assist the camera module 70 to realize the white balance processing of the image.
  • the electronic device 100 further includes a flash 80, and the rear color temperature sensor 20 and the flash 80 share a lens module.
  • the lens in the lens module may be a Fresnel lens, a spherical lens, or the like.
  • the rear color temperature sensor 20 and the flash 80 are both arranged under the rear camera 72.
  • the rear color temperature sensor 20 and the flash 80 share a storage cavity. Understandably, the color temperature is an important parameter for controlling the work of the flash 80.
  • the rear color temperature sensor 20 is used to detect the rear illuminance value and the rear color temperature value.
  • the processor 30 controls the flash 80 according to the rear color temperature value, thereby accurately adjusting the flash 80
  • the brightness of the flash 80 and the flash duration of the flash 80 are matched with the rear color temperature sensor 20 to adjust the current color temperature value, so that the flash 80 can work accurately and efficiently.
  • the flash duration of the flash 80 and the accessories of the flash 80 (such as the lens covered on the flash 80) will also have a certain impact on the color temperature value detected by the rear color temperature sensor 20. Therefore, the flash 80 and the rear color temperature sensor 20 sharing a lens can effectively avoid the problem of inaccurate color temperature detected by the rear color temperature sensor 20 due to other factors.
  • the flash 80 and the rear camera 72 share the same lens, which can also effectively save the number of punched holes on the back 42 of the housing 40 of the electronic device 100, reduce the installation space and make the electronic device 100 more beautiful.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Studio Devices (AREA)

Abstract

A control method for an electronic device (100) and an electronic device (100). Said method comprises: (01) acquiring, by means of a front color temperature sensor (10), a front light parameter of ambient light; (02) acquiring, by means of a rear color temperature sensor (20), a rear light parameter of ambient light; (03) determining a fusion light parameter according to the front light parameter and the rear light parameter; and (04) controlling the electronic device (100) according to the fusion light parameter.

Description

电子设备的控制方法和电子设备Control method of electronic equipment and electronic equipment
优先权信息Priority information
本申请请求2019年6月25日向中国国家知识产权局提交的、专利申请号为201910554768.6的专利申请的优先权和权益,并且通过参照将其全文并入此处。This application requests the priority and rights of the patent application with the patent application number 201910554768.6 filed with the State Intellectual Property Office of China on June 25, 2019, and the full text is incorporated herein by reference.
技术领域Technical field
本申请涉及消费性电子产品技术领域,特别涉及一种电子设备的控制方法和电子设备。This application relates to the technical field of consumer electronic products, in particular to a control method of an electronic device and an electronic device.
背景技术Background technique
随着电子技术的快速发展,诸如智能手机、平板电脑等电子设备已经越来越普及。电子设备上通常设置有色温传感器来检测色温,从而根据检测得到的色温来执行某些操作,例如调节显示屏的亮度等。With the rapid development of electronic technology, electronic devices such as smart phones and tablet computers have become more and more popular. Electronic equipment is usually provided with a color temperature sensor to detect the color temperature, so as to perform certain operations according to the detected color temperature, such as adjusting the brightness of the display screen.
发明内容Summary of the invention
本申请实施方式提供一种电子设备的控制方法和电子设备。The embodiments of the present application provide a method for controlling an electronic device and an electronic device.
本申请实施方式提供一种电子设备的控制方法,所述电子设备包括前置色温传感器和后置色温传感器,所述控制方法包括:通过所述前置色温传感器获取环境光的前置光线参数;通过所述后置色温传感器获取环境光的后置光线参数;根据所述前置光线参数和所述后置光线参数确定融合光线参数;根据所述融合光线参数控制所述电子设备。The embodiment of the present application provides a control method of an electronic device, the electronic device includes a front color temperature sensor and a rear color temperature sensor, and the control method includes: obtaining front light parameters of ambient light through the front color temperature sensor; Obtain the rear light parameters of the ambient light through the rear color temperature sensor; determine the fusion light parameters according to the front light parameters and the rear light parameters; control the electronic device according to the fusion light parameters.
本申请实施方式还提供一种电子设备,所述电子设备包括前置色温传感器、后置色温传感器和处理器。所述前置色温传感器用于获取环境光的前置光线参数;所述后置色温传感器用于获取环境光的后置光线参数;所述处理器用于根据所述前置光线参数和所述后置光线参数确定融合光线参数、以及根据所述融合光线参数控制所述电子设备。The embodiment of the present application also provides an electronic device, which includes a front color temperature sensor, a rear color temperature sensor, and a processor. The front color temperature sensor is used to obtain the front light parameters of the ambient light; the rear color temperature sensor is used to obtain the rear light parameters of the ambient light; the processor is used to obtain the front light parameters and the rear light parameters. Setting the light parameters determines the fusion light parameters, and controls the electronic device according to the fusion light parameters.
本申请实施方式的电子设备及其控制方法根据前置色温传感器获取的前置光线参数和后置色温传感器获取的后置光线参数,可以准确地确定融合光线参数,从而根据融合光线参数控制电子设备,用户体验较佳。The electronic device and the control method thereof according to the embodiments of the present application can accurately determine the fusion light parameters according to the front light parameters acquired by the front color temperature sensor and the rear light parameters acquired by the rear color temperature sensor, thereby controlling the electronic device according to the fusion light parameters , The user experience is better.
本申请实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。The additional aspects and advantages of the embodiments of the present application will be partially given in the following description, and some will become obvious from the following description, or be understood through the practice of the present application.
附图说明Description of the drawings
本申请的上述和/或附加的方面和优点可以从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above-mentioned and/or additional aspects and advantages of the present application will become obvious and easy to understand from the description of the embodiments in conjunction with the following drawings, in which:
图1是本申请某些实施方式的电子设备的控制方法的流程示意图;FIG. 1 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application;
图2是本申请实施方式的电子设备的立体结构示意图;2 is a schematic diagram of a three-dimensional structure of an electronic device according to an embodiment of the present application;
图3是本申请实施方式的电子设备的平面结构示意图;FIG. 3 is a schematic diagram of a plan structure of an electronic device according to an embodiment of the present application;
图4及图5是本申请某些实施方式的电子设备的控制方法的场景示意图;4 and 5 are schematic diagrams of scenes of control methods of electronic devices in some embodiments of the present application;
图6是本申请某些实施方式的电子设备的控制方法的流程示意图;6 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application;
图7是本申请某些实施方式的电子设备的控制方法的流程示意图;FIG. 7 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application;
图8是本申请某些实施方式的电子设备的控制方法的场景示意图;FIG. 8 is a schematic diagram of a scene of a control method of an electronic device according to some embodiments of the present application;
图9是本申请某些实施方式的电子设备的控制方法的场景示意图;FIG. 9 is a schematic diagram of a scene of an electronic device control method according to some embodiments of the present application;
图10是本申请某些实施方式的电子设备的控制方法的流程示意图;FIG. 10 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application;
图11是本申请某些实施方式的电子设备的控制方法的场景示意图;FIG. 11 is a schematic diagram of a scene of a control method of an electronic device according to some embodiments of the present application;
图12是本申请某些实施方式的电子设备的控制方法的场景示意图;FIG. 12 is a schematic diagram of a scene of a control method of an electronic device according to some embodiments of the present application;
图13是本申请某些实施方式的电子设备的控制方法的流程示意图;FIG. 13 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application;
图14是本申请某些实施方式的电子设备的控制方法的流程示意图;FIG. 14 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application;
图15是本申请某些实施方式的电子设备的控制方法的流程示意图;15 is a schematic flowchart of a control method of an electronic device according to some embodiments of the present application;
图16是本申请某些实施方式的电子设备的控制方法的场景示意图。FIG. 16 is a schematic diagram of a scene of a control method of an electronic device in some embodiments of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施方式,所述实施方式的示例在附图中示出,其中,相同或类似的标号自始至终表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本申请的实施方式,而不能理解为对本申请的实施方式的限制。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions throughout. The following embodiments described with reference to the drawings are exemplary, and are only used to explain the embodiments of the present application, and should not be understood as limitations to the embodiments of the present application.
请参阅图1和图2,在某些实施方式中,电子设备100包括前置色温传感器10和后置色温传感器20。控制方法包括:通过前置色温传感器10获取环境光的前置光线参数;通过后置色温传感器20获取环境光的后置光线参数;根据前置光线参数和后置光线参数确定融合光线参数;根据融合光线参数控制电子设备100。Referring to FIGS. 1 and 2, in some embodiments, the electronic device 100 includes a front color temperature sensor 10 and a rear color temperature sensor 20. The control method includes: acquiring the front light parameters of the ambient light through the front color temperature sensor 10; acquiring the rear light parameters of the ambient light through the rear color temperature sensor 20; determining the fusion light parameters according to the front light parameters and the rear light parameters; The fusion light parameter controls the electronic device 100.
请参阅图2和图6,在某些实施方式中,前置光线参数包括前置照度值和前置色温值。后置光线参数包括后置照度值和后置色温值。根据前置光线参数和后置光线参数确定融合光线参数,包括:根据前置照度值和后置照度值确定融合光线参数,融合光线参数包括融合照度值和/或融合色温值;根据融合光线参数控制电子设备100,包括:根据融合照度值和/或融合色温值控制电子设备100。Referring to FIG. 2 and FIG. 6, in some embodiments, the front light parameter includes a front illuminance value and a front color temperature value. The rear light parameters include the rear illuminance value and the rear color temperature value. Determine the fusion light parameters according to the front light parameters and the rear light parameters, including: determine the fusion light parameters according to the front illuminance value and the back illuminance value, the fusion light parameters include the fusion illuminance value and/or the fusion color temperature value; according to the fusion light parameters Controlling the electronic device 100 includes: controlling the electronic device 100 according to the fused illuminance value and/or the fused color temperature value.
请参阅图7,在某些实施方式中,根据前置照度值和后置照度值确定融合光线参数的方法包括:当前置照度值大于预定倍数的后置照度值时,将前置照度值作为融合照度值,将前置色温值作为融合色温值;当后置照度值大于预定倍数的前置照度值时,将后置照度值作为融合照度值,将后置色温值作为融合色温值。Referring to FIG. 7, in some embodiments, the method for determining the fusion light parameter according to the front illuminance value and the rear illuminance value includes: when the current illuminance value is greater than a predetermined multiple of the rear illuminance value, the front illuminance value is taken as For the fusion illuminance value, the front color temperature value is used as the fusion color temperature value; when the rear illuminance value is greater than the front illuminance value of a predetermined multiple, the rear illuminance value is used as the fusion illuminance value, and the rear color temperature value is used as the fusion color temperature value.
请参阅图2和图10,在某些实施方式中,电子设备100还包括姿态传感器60。控制方法还包括:通过姿态传感器60获取电子设备100的姿态信息;在前置照度值不大于预定倍数的后置照度值、且后置照度值不大于预定倍数的前置照度值时,根据姿态信息确定融合光线参数。Please refer to FIG. 2 and FIG. 10. In some embodiments, the electronic device 100 further includes an attitude sensor 60. The control method further includes: acquiring the posture information of the electronic device 100 through the posture sensor 60; when the front illuminance value is not greater than a predetermined multiple of the rear illuminance value, and the rear illuminance value is not greater than the predetermined multiple of the front illuminance value, according to the attitude The information determines the fusion light parameters.
请参阅图2和图13,在某些实施方式中,根据姿态信息确定融合光线参数,包括:在姿态传感器60获取的姿态信息满足预定条件时,处理器30将前置照度值作为融合照度值,将前置色温值作为融合色温值;在姿态传感器60获取的姿态信息不满足预定条件时,将后置照度值作为融合照度值,处理器30将后置色温值作为融合色温值。Referring to FIGS. 2 and 13, in some embodiments, determining the fusion light parameters according to the posture information includes: when the posture information obtained by the posture sensor 60 meets a predetermined condition, the processor 30 uses the front illuminance value as the fusion illuminance value , The front color temperature value is used as the fused color temperature value; when the posture information obtained by the attitude sensor 60 does not meet the predetermined condition, the rear illuminance value is used as the fused illuminance value, and the processor 30 uses the rear color temperature value as the fused color temperature value.
请参阅2、图14和图15,在某些实施方式中,电子设备100还包括显示屏50,根据融合光线参数控制电子设备100,包括:根据融合光线参数控制显示屏50的显示状态;或者,电子设备100还包括摄像头模组70,摄像头模组70用于获取被摄物的原始图像。根据融合光线参数控制电子设备100,包括:根据融合光线参数对原始图像进行白平衡处理。Referring to 2, FIG. 14 and FIG. 15, in some embodiments, the electronic device 100 further includes a display screen 50, and controlling the electronic device 100 according to the fusion light parameter includes: controlling the display state of the display screen 50 according to the fusion light parameter; or The electronic device 100 further includes a camera module 70, which is used to obtain the original image of the object. Controlling the electronic device 100 according to the fusion light parameter includes: performing white balance processing on the original image according to the fusion light parameter.
请参阅图2,在某些实施方式中,电子设备100还包括闪光灯80,后置色温传感器20与闪光灯80共用一个透镜模块。Referring to FIG. 2, in some embodiments, the electronic device 100 further includes a flash 80, and the rear color temperature sensor 20 and the flash 80 share a lens module.
请参阅图2,在某些实施方式中,根据前置光线参数和后置光线参数确定融合光线参数,包括:根据电子设备100的倾角确定第一预定系数、第二预定系数、第三预定系数和第四预定系数;及根据融合公式、第一预定系数、第二预定系数、第三预定系数和第四预定系数确定融合照度值及融合色温值。Referring to FIG. 2, in some embodiments, determining the fusion light parameter according to the front light parameter and the rear light parameter includes: determining the first predetermined coefficient, the second predetermined coefficient, and the third predetermined coefficient according to the inclination angle of the electronic device 100 And a fourth predetermined coefficient; and determine the fusion illuminance value and the fusion color temperature value according to the fusion formula, the first predetermined coefficient, the second predetermined coefficient, the third predetermined coefficient, and the fourth predetermined coefficient.
在某些实施方式中,预定倍数为大于1的任意值。In some embodiments, the predetermined multiple is any value greater than one.
请参阅图2,在某些实施方式中,预定条件包括电子装置100的倾角大于0度。Please refer to FIG. 2. In some embodiments, the predetermined condition includes that the inclination angle of the electronic device 100 is greater than 0 degrees.
请参阅图2,本申请实施方式的电子设备100包括前置色温传感器10、后置色温传感器20和处理器30。前置色温传感器10用于获取环境光的前置光线参数。后置色温传感器20用于获取环境光的后置光线参数。处理器30用于根据前置光线参数和后置光线参数确定融合光线参数、以及根据融合光线参数控制电子设备100。Referring to FIG. 2, the electronic device 100 in the embodiment of the present application includes a front color temperature sensor 10, a rear color temperature sensor 20 and a processor 30. The front color temperature sensor 10 is used to obtain front light parameters of ambient light. The rear color temperature sensor 20 is used to obtain the rear light parameters of the ambient light. The processor 30 is configured to determine the fusion light parameter according to the front light parameter and the rear light parameter, and control the electronic device 100 according to the fusion light parameter.
请参阅图2,在某些实施方式中,前置光线参数包括前置照度值和前置色温值。后置光线参数包括后置照度值和后置色温值。处理器30用于:根据前置照度值和后置照度值确定融合光线参数,融合光线参数包括融合照度值和/或融合色温值;及根据融合照度值和/或融合色温值控制电子设备100。Please refer to FIG. 2. In some embodiments, the front light parameter includes a front illuminance value and a front color temperature value. The rear light parameters include the rear illuminance value and the rear color temperature value. The processor 30 is configured to: determine the fusion light parameter according to the front illuminance value and the post illuminance value, the fusion light parameter includes the fusion illuminance value and/or the fusion color temperature value; and control the electronic device 100 according to the fusion illuminance value and/or the fusion color temperature value .
请参阅图2,在某些实施方式中,处理器30用于:在前置照度值大于预定倍数的后置照度值 时,将前置照度值作为融合照度值,将前置色温值作为融合色温值;在后置照度值大于预定倍数的前置照度值时,将后置照度值作为融合照度值,将后置色温值作为融合色温值。Referring to FIG. 2, in some embodiments, the processor 30 is configured to: when the front illuminance value is greater than a predetermined multiple of the rear illuminance value, use the front illuminance value as the fused illuminance value, and use the front color temperature value as the fused illuminance value. Color temperature value; when the post illuminance value is greater than the pre-illumination value of a predetermined multiple, the post illuminance value is used as the fusion illuminance value, and the post color temperature value is used as the fusion color temperature value.
请参阅图2,在某些实施方式中,电子设备100还包括姿态传感器60。姿态传感器60用于获取电子设备100的姿态信息。处理器30用于在前置照度值不大于预定倍数的后置照度值、且后置照度值不大于预定倍数的前置照度值时,根据姿态信息确定融合光线参数。Referring to FIG. 2, in some embodiments, the electronic device 100 further includes an attitude sensor 60. The posture sensor 60 is used to obtain posture information of the electronic device 100. The processor 30 is configured to determine the fusion light parameter according to the posture information when the front illuminance value is not greater than the predetermined multiple of the post illuminance value and the rear illuminance value is not greater than the predetermined multiple of the front illuminance value.
请参阅图2,在某些实施方式中,处理器30用于:在姿态信息满足预定条件时,将前置照度值作为融合照度值,将前置色温值作为融合色温值;在姿态信息不满足预定条件时,将后置照度值作为融合照度值,将后置色温值作为融合色温值。Referring to FIG. 2, in some embodiments, the processor 30 is configured to: when the posture information meets a predetermined condition, use the front illuminance value as the fused illuminance value and the front color temperature value as the fused color temperature value; When the predetermined conditions are met, the post illuminance value is used as the fusion illuminance value, and the post color temperature value is used as the fusion color temperature value.
请参阅图2,在某些实施方式中,电子设备100还包括显示屏50,处理器30用于根据融合光线参数控制显示屏50的显示状态。或者,电子设备100还包括摄像头模组70,处理器30用于根据融合光线参数对原始图像进行白平衡处理。Referring to FIG. 2, in some embodiments, the electronic device 100 further includes a display screen 50, and the processor 30 is configured to control the display state of the display screen 50 according to the fusion light parameter. Alternatively, the electronic device 100 further includes a camera module 70, and the processor 30 is configured to perform white balance processing on the original image according to the fusion light parameters.
请参阅图2,在某些实施方式中,电子设备100还包括闪光灯80,后置色温传感器20与闪光灯80共用一个透镜模块。Referring to FIG. 2, in some embodiments, the electronic device 100 further includes a flash 80, and the rear color temperature sensor 20 and the flash 80 share a lens module.
请参阅图2,在某些实施方式中,处理器30用于根据电子设备100的倾角确定第一预定系数、第二预定系数、第三预定系数和第四预定系数;及根据融合公式、第一预定系数、第二预定系数、第三预定系数和第四预定系数确定融合照度值及融合色温值。Referring to FIG. 2, in some embodiments, the processor 30 is configured to determine the first predetermined coefficient, the second predetermined coefficient, the third predetermined coefficient, and the fourth predetermined coefficient according to the inclination angle of the electronic device 100; and according to the fusion formula, the A predetermined coefficient, a second predetermined coefficient, a third predetermined coefficient, and a fourth predetermined coefficient determine the fusion illuminance value and the fusion color temperature value.
在某些实施方式中,预定倍数为大于1的任意值。In some embodiments, the predetermined multiple is any value greater than one.
请参阅图2,在某些实施方式中,预定条件包括电子装置100的倾角大于0度。Please refer to FIG. 2. In some embodiments, the predetermined condition includes that the inclination angle of the electronic device 100 is greater than 0 degrees.
请参阅图1和图2,本申请实施方式提供一种电子设备100的控制方法。电子设备100包括前置色温传感器10和后置色温传感器20。控制方法包括:Referring to FIG. 1 and FIG. 2, an embodiment of the present application provides a method for controlling an electronic device 100. The electronic device 100 includes a front color temperature sensor 10 and a rear color temperature sensor 20. Control methods include:
01:通过前置色温传感器10获取环境光的前置光线参数;01: Obtain the front light parameters of the ambient light through the front color temperature sensor 10;
02:通过后置色温传感器20获取环境光的后置光线参数;02: Obtain the rear light parameters of the ambient light through the rear color temperature sensor 20;
03:根据前置光线参数和后置光线参数确定融合光线参数;03: Determine the fusion light parameters according to the front light parameters and the rear light parameters;
04:根据融合光线参数控制电子设备100。04: Control the electronic device 100 according to the fusion light parameters.
请参阅图2,本申请实施方式还提供一种电子设备100。电子设备100包括前置色温传感器10、后置色温传感器20和处理器30。本申请实施方式的电子设备100的控制方法可由本申请实施方式的电子设备100实现。例如,前置色温传感器10可用于执行01中的方法,后置色温传感器20可用于执行02中的方法,处理器30可用于执行03和04中的方法。Please refer to FIG. 2, an embodiment of the present application also provides an electronic device 100. The electronic device 100 includes a front color temperature sensor 10, a rear color temperature sensor 20 and a processor 30. The control method of the electronic device 100 in the embodiment of the present application can be implemented by the electronic device 100 in the embodiment of the present application. For example, the front color temperature sensor 10 can be used to execute the method in 01, the rear color temperature sensor 20 can be used to execute the method in 02, and the processor 30 can be used to execute the methods in 03 and 04.
也即是说,前置色温传感器10可以用于获取环境光的前置光线参数。后置色温传感器20可以用于获取环境光的后置光线参数。处理器30可以用于根据前置光线参数和后置光线参数确定融合光线参数、以及根据融合光线参数控制电子设备100。That is to say, the front color temperature sensor 10 can be used to obtain the front light parameters of the ambient light. The rear color temperature sensor 20 may be used to obtain the rear light parameters of the ambient light. The processor 30 may be used to determine the fusion light parameter according to the front light parameter and the rear light parameter, and to control the electronic device 100 according to the fusion light parameter.
本申请实施方式的电子设备100及其控制方法根据前置色温传感器10获取的前置光线参数和后置色温传感器20获取的后置光线参数,可以准确地确定融合光线参数,从而根据融合光线参数控制电子设备100,用户体验较佳。The electronic device 100 and the control method thereof according to the embodiment of the present application can accurately determine the fusion light parameters according to the front light parameters acquired by the front color temperature sensor 10 and the rear light parameters acquired by the rear color temperature sensor 20, and thus can accurately determine the fusion light parameters according to the fusion light parameters To control the electronic device 100, the user experience is better.
具体地,请参阅图2,电子设备100可以是手机、平板电脑、笔记本电脑、智能手环、智能手表等。本申请实施方式以电子设备100是手机为例进行说明,可以理解,电子设备100的具体形式可以是其他,在此不作限制。Specifically, referring to FIG. 2, the electronic device 100 may be a mobile phone, a tablet computer, a notebook computer, a smart bracelet, a smart watch, etc. The embodiments of the present application are described by taking the electronic device 100 as a mobile phone as an example. It can be understood that the specific form of the electronic device 100 may be other, which is not limited here.
电子设备100上设置有前置色温传感器10和后置色温传感器20。可以理解,色温传感器用于检测周围环境光的照度值及色温值。色温传感器通常具有R\G\B\Clear等多个光感通道,R\G\B\Clear光感通道能够分别对环境光中的红光\绿光\蓝光\可见光产生光电反应,再经过模数转换得到每个通道的模数转换器的数值,通过对该多个通道的模数转换器的数值进行相应运算,可以得到环境光的照度值及色温值。The electronic device 100 is provided with a front color temperature sensor 10 and a rear color temperature sensor 20. It can be understood that the color temperature sensor is used to detect the illuminance value and color temperature value of the ambient light. The color temperature sensor usually has multiple light sensing channels such as R\G\B\Clear. The R\G\B\Clear light sensing channel can respectively produce photoelectric response to the red light, green light, blue light and visible light in the ambient light. The analog-to-digital conversion obtains the value of the analog-to-digital converter of each channel, and the illuminance value and color temperature value of the ambient light can be obtained by performing corresponding operations on the values of the multiple-channel analog-to-digital converter.
请参阅图2和图3,电子设备100还可包括机壳40。机壳40包括相背的正面41和背面42。正面41用于安装显示屏50。前置色温传感器10设置在正面41上。也即是说,前置色温传感器10设置在电子设备100的安装有显示屏50的一侧,具体可位于显示屏50上方的非显示区或其他位置均可。前置色温传感器10用于检测显示屏50所在一侧的照度值及色温值。后置色温传感器20设置在背面42上。也即是说,后置色温传感器20设置在电子设备100的与显示屏50相背的 一侧。后置色温传感器20用于检测与显示屏50相背的一侧的照度值及色温值。Please refer to FIGS. 2 and 3, the electronic device 100 may further include a housing 40. The casing 40 includes a front 41 and a back 42 opposite to each other. The front 41 is used to install the display 50. The front color temperature sensor 10 is arranged on the front surface 41. In other words, the front color temperature sensor 10 is arranged on the side of the electronic device 100 where the display screen 50 is installed, and can be located in a non-display area above the display screen 50 or other positions. The front color temperature sensor 10 is used to detect the illuminance value and the color temperature value on the side where the display screen 50 is located. The rear color temperature sensor 20 is provided on the back surface 42. In other words, the rear color temperature sensor 20 is arranged on the side of the electronic device 100 opposite to the display screen 50. The rear color temperature sensor 20 is used to detect the illuminance value and the color temperature value on the side opposite to the display screen 50.
请参阅图4和图5,然而,目前的色温传感器在某些特定场景下无法准确检测光线参数。色温传感器能够获得比较准确的色温值的前提是:外界光源200发出的直射光线能够更多地进入到色温传感器,而不是全部都是反射光进入到色温传感器。可以理解,由于物体具有各种颜色,各种颜色的物体对不同波长的反射率不同,从而导致全部都是反射光进入到色温传感器时,色温检测不准确。单独的前置色温传感器10或后置色温传感器20都存在特定场景下无法准确检测色温的情况,例如,请参阅图4,当光源200处于电子设备100的背面42的上方时,若通过前置色温传感器10来检测色温,则光源200发出的直射光线无法进入前置色温传感器10,基本都是反射光进入前置色温传感器10,导致无法准确检测色温。同理,请参阅图5,当光源200处于电子设备100的正面41的上方时,若通过后置色温传感器20来检测色温,光源200发出的直射光线无法进入后置色温传感器20,基本都是反射光进入后置色温传感器20,导致无法准确检测色温。Please refer to Figures 4 and 5. However, the current color temperature sensor cannot accurately detect light parameters in certain specific scenes. The premise that the color temperature sensor can obtain a more accurate color temperature value is that the direct light emitted by the external light source 200 can enter the color temperature sensor more, instead of all the reflected light entering the color temperature sensor. It can be understood that since objects have various colors, the reflectance of objects of various colors to different wavelengths is different, which results in inaccurate color temperature detection when all reflected light enters the color temperature sensor. Both the front color temperature sensor 10 or the rear color temperature sensor 20 alone cannot accurately detect the color temperature in certain scenarios. For example, please refer to FIG. 4. When the light source 200 is above the back 42 of the electronic device 100, if the front When the color temperature sensor 10 detects the color temperature, the direct light emitted by the light source 200 cannot enter the front color temperature sensor 10, and basically reflected light enters the front color temperature sensor 10, resulting in the inability to accurately detect the color temperature. Similarly, referring to FIG. 5, when the light source 200 is above the front 41 of the electronic device 100, if the color temperature is detected by the rear color temperature sensor 20, the direct light emitted by the light source 200 cannot enter the rear color temperature sensor 20, basically The reflected light enters the rear color temperature sensor 20, which makes it impossible to accurately detect the color temperature.
本申请实施方式的电子设备100在正面41和背面42分别设置前置色温传感器10和后置色温传感器20,根据前置色温传感器10获取的前置光线参数和后置色温传感器20获取的后置光线参数确定融合光线参数,避免了单独设置前置色温传感器10或后置色温传感器20时,色温传感器无法接收到光源200发出的直射光(即全部都是反射光进入到色温传感器)导致检测的色温值不准确的问题,进而使得检测的色温值更加准确,能够更加准确地控制电子设备100。The electronic device 100 of the embodiment of the present application is provided with a front color temperature sensor 10 and a rear color temperature sensor 20 on the front 41 and the back 42 respectively, and the front light parameters obtained by the front color temperature sensor 10 and the rear color temperature sensor 20 obtained by the rear The light parameters determine the fusion light parameters, which avoids the detection caused by the color temperature sensor cannot receive the direct light emitted by the light source 200 (that is, all reflected light enters the color temperature sensor) when the front color temperature sensor 10 or the rear color temperature sensor 20 are separately set The problem of inaccurate color temperature value makes the detected color temperature value more accurate, and the electronic device 100 can be controlled more accurately.
前置光线参数包括前置照度值和/或前置色温值。也即是说,前置光线参数包括前置照度值,或者前置光线参数包括前置色温值,或者前置光线参数包括前置照度值和前置色温值。后置光线参数包括后置照度值和/或后置色温值。也即是说,后置光线参数包括后置照度值,或者后置光线参数包括后置色温值,或者后置光线参数包括后置照度值和后置色温值。融合光线参数包括融合照度值和/或融合色温值。也即是说,融合光线参数包括融合照度值,或者融合光线参数包括融合色温值,或者融合光线参数包括融合照度值和融合色温值。The front light parameter includes a front illuminance value and/or a front color temperature value. That is to say, the front light parameter includes the front illuminance value, or the front light parameter includes the front color temperature value, or the front light parameter includes the front illuminance value and the front color temperature value. The rear light parameter includes a rear illuminance value and/or a rear color temperature value. In other words, the rear light parameter includes a rear illuminance value, or the rear light parameter includes a rear color temperature value, or the rear light parameter includes a rear illuminance value and a rear color temperature value. The fusion light parameter includes a fusion illuminance value and/or a fusion color temperature value. That is to say, the fusion light parameter includes the fusion illuminance value, or the fusion light parameter includes the fusion color temperature value, or the fusion light parameter includes the fusion illuminance value and the fusion color temperature value.
根据前置光线参数和后置光线参数确定融合光线参数可以是:根据前置照度值和后置照度值确定融合照度值和融合色温值中的至少一个,或者根据前置色温值和后置色温值确定融合照度值和融合色温值中的至少一个,或者根据前置照度值、前置色温值、后置照度值和后置色温值确定融合照度值和融合色温值中的至少一个。Determining the fusion light parameters according to the front light parameters and the rear light parameters can be: determining at least one of the fusion illuminance value and the fusion color temperature value according to the front illuminance value and the rear illuminance value, or according to the front color temperature value and the rear color temperature The value determines at least one of the fusion illuminance value and the fusion color temperature value, or determines at least one of the fusion illuminance value and the fusion color temperature value according to the front illuminance value, the front color temperature value, the rear illuminance value, and the rear color temperature value.
根据融合光线参数控制电子设备100可以是:根据融合照度值控制电子设备100,或者根据融合色温值控制电子设备100,或者根据融合照度值及融合色温值控制电子设备100。请参阅图3,根据融合光线参数控制电子设备100还可以是:根据融合光线参数控制显示屏50的显示状态、或是辅助摄像头模组70进行白平衡处理等。Controlling the electronic device 100 according to the fusion light parameter may be: controlling the electronic device 100 according to the fusion illuminance value, or controlling the electronic device 100 according to the fusion color temperature value, or controlling the electronic device 100 according to the fusion illuminance value and the fusion color temperature value. Referring to FIG. 3, controlling the electronic device 100 according to the fusion light parameter may also be: controlling the display state of the display screen 50 according to the fusion light parameter, or assisting the camera module 70 to perform white balance processing.
请参阅图6,在某些实施方式中,前置光线参数包括前置照度值和前置色温值。后置光线参数包括后置照度值和后置色温值。根据前置光线参数和后置光线参数确定融合光线参数(即03),包括:Please refer to FIG. 6. In some embodiments, the front light parameters include a front illuminance value and a front color temperature value. The rear light parameters include the rear illuminance value and the rear color temperature value. Determine the fusion light parameters (ie 03) according to the front light parameters and the rear light parameters, including:
031:根据前置照度值和后置照度值确定融合光线参数,融合光线参数包括融合照度值和/或融合色温值;031: Determine the fusion light parameter according to the front illuminance value and the rear illuminance value, the fusion light parameter includes the fusion illuminance value and/or the fusion color temperature value;
根据融合光线参数控制电子设备100(即04),包括:Control the electronic device 100 (ie 04) according to the fusion light parameters, including:
041:根据融合照度值和/或融合色温值控制电子设备100。041: Control the electronic device 100 according to the fusion illuminance value and/or the fusion color temperature value.
在某些实施方式中,处理器30可用于执行031和041中的方法。In some embodiments, the processor 30 may be used to execute the methods in 031 and 041.
也即是说,处理器30可以用于:根据前置照度值和后置照度值确定融合光线参数,融合光线参数包括融合照度值和/或融合色温值;及根据融合照度值和/或融合色温值控制电子设备100。That is to say, the processor 30 may be used to determine the fusion light parameter according to the front illuminance value and the post illuminance value, the fusion light parameter includes the fusion illuminance value and/or the fusion color temperature value; and according to the fusion illuminance value and/or the fusion The color temperature value controls the electronic device 100.
具体地,当光源200发出的直射光线进入到前置色温传感器10或是进入到后置色温传感器20时,将导致前置色温传感器10检测到的前置照度值与后置色温传感器20检测到的后置照度值差异较大。因此,处理器30根据前置照度值和后置照度值确定融合光线参数,可以更准确地判断出光源200发出的直射光线是进入到前置色温传感器10还是进入到后置色温传感器20,从而更好地对前置光线参数和后置光线参数进行取舍以确定融合光线参数。Specifically, when the direct light emitted by the light source 200 enters the front color temperature sensor 10 or enters the rear color temperature sensor 20, the front illuminance value detected by the front color temperature sensor 10 and the rear color temperature sensor 20 will be detected. The post-illumination value of the camera is quite different. Therefore, the processor 30 determines the fusion light parameters according to the front illuminance value and the rear illuminance value, and can more accurately determine whether the direct light emitted by the light source 200 enters the front color temperature sensor 10 or the rear color temperature sensor 20, thereby Better to choose between the front light parameters and the rear light parameters to determine the fusion light parameters.
根据前置光线参数和后置光线参数确定融合光线参数,以及根据融合照度值和/或融合色温值控制电子设备100可以是:①根据前置照度值和后置照度值确定融合照度值,根据融合照度值控 制电子设备100。例如,前置照度值为300lx,前置色温值为5000K,后置照度值为30lx,后置色温值为2000K,则处理器30根据前置照度值300lx和后置照度值为30lx确定融合照度值为300lx,并根据融合照度值300lx控制电子设备100。②根据前置照度值和后置照度值确定融合色温值,根据融合色温值控制电子设备100。例如,前置照度值为20lx,前置色温值为2000K,后置照度值为100lx,后置色温值为6000K,则处理器30根据前置照度值20lx和后置照度值100lx确定融合色温值为6000K,并根据融合色温值6000K控制电子设备100。③根据前置照度值和后置照度值确定融合照度值和融合色温值,根据融合照度值和融合色温值控制电子设备100。例如,前置照度值为25lx,前置色温值为3000K,后置照度值为120lx,后置色温值为6000K,则处理器30根据前置照度值25lx和后置照度值120lx确定融合照度值为120lx和融合色温值为6000K,并根据融合照度值120lx和融合色温值6000K控制电子设备100。Determining the fusion light parameters according to the front light parameters and the rear light parameters, and controlling the electronic device 100 according to the fusion illuminance value and/or the fusion color temperature value can be: ①Determine the fusion illuminance value according to the front illuminance value and the rear illuminance value, according to The fusion illuminance value controls the electronic device 100. For example, if the front illuminance value is 300lx, the front color temperature value is 5000K, the rear illuminance value is 30lx, and the rear color temperature value is 2000K, the processor 30 determines the fusion illuminance according to the front illuminance value of 300lx and the rear illuminance value of 30lx The value is 300lx, and the electronic device 100 is controlled according to the fused illuminance value of 300lx. ② Determine the fusion color temperature value according to the front illuminance value and the post illuminance value, and control the electronic device 100 according to the fusion color temperature value. For example, if the front illuminance value is 20lx, the front color temperature value is 2000K, the rear illuminance value is 100lx, and the rear color temperature value is 6000K, the processor 30 determines the fusion color temperature value according to the front illuminance value 20lx and the rear illuminance value 100lx It is 6000K, and the electronic device 100 is controlled according to the fusion color temperature value of 6000K. ③ Determine the fusion illuminance value and the fusion color temperature value according to the front illuminance value and the post illuminance value, and control the electronic device 100 according to the fusion illuminance value and the fusion color temperature value. For example, if the front illuminance value is 25lx, the front color temperature value is 3000K, the rear illuminance value is 120lx, and the rear color temperature value is 6000K, the processor 30 determines the fusion illuminance value according to the front illuminance value 25lx and the rear illuminance value 120lx It is 120lx and the blended color temperature value is 6000K, and the electronic device 100 is controlled according to the blended illuminance value of 120lx and the blended color temperature value of 6000K.
请参阅图7,在某些实施方式中,根据前置照度值和后置照度值确定融合光线参数的方法(即031)包括:Referring to FIG. 7, in some embodiments, the method for determining the fusion light parameter (ie 031) according to the front illuminance value and the rear illuminance value includes:
0311:当前置照度值大于预定倍数的后置照度值时,将前置照度值作为融合照度值,将前置色温值作为融合色温值;0311: When the current illuminance value is greater than the predetermined multiple of the rear illuminance value, the front illuminance value is used as the fused illuminance value, and the front color temperature value is used as the fused color temperature value;
0312:当后置照度值大于预定倍数的前置照度值时,将后置照度值作为融合照度值,将后置色温值作为融合色温值。0312: When the rear illuminance value is greater than the pre-illumination value of a predetermined multiple, the rear illuminance value is used as the fused illuminance value, and the rear color temperature value is used as the fused color temperature value.
请参阅图2,在某些实施方式中,处理器30可用于执行0311和0312中的方法。Referring to FIG. 2, in some embodiments, the processor 30 may be used to execute the methods in 0311 and 0312.
也即是说,处理器30可以用于:在前置照度值大于预定倍数的后置照度值时,将前置照度值作为融合照度值,将前置色温值作为融合色温值;在后置照度值大于预定倍数的前置照度值时,将后置照度值作为融合照度值,将后置色温值作为融合色温值。That is to say, the processor 30 can be used to: when the front illuminance value is greater than a predetermined multiple of the rear illuminance value, the front illuminance value is used as the fused illuminance value, and the front color temperature value is used as the fused color temperature value; When the illuminance value is greater than the front illuminance value of a predetermined multiple, the post illuminance value is used as the fused illuminance value, and the post color temperature value is used as the fused color temperature value.
具体地,预定倍数可为大于1的任意值。当前置照度值大于预定倍数的后置照度值时,表明此时前置色温传感器10接收到的直射光远比后置色温传感器20接收到的直射光多;当后置照度值大于预定倍数的前置照度值时,表明此时后置色温传感器20接收到的直射光远比前置色温传感器10接收到的直射光多。因此,当前置照度值大于预定倍数的后置照度值时,选取前置色温传感器10检测的照度值和色温值,将前置照度值作为融合照度值,将前置色温值作为融合色温值;当后置照度值大于预定倍数的前置照度值时,选取后置色温传感器20检测的照度值和色温值,将后置照度值作为融合照度值,将后置色温值作为融合色温值。Specifically, the predetermined multiple may be any value greater than one. When the current illuminance value is greater than the rear illuminance value of a predetermined multiple, it indicates that the direct light received by the front color temperature sensor 10 is far more than the direct light received by the rear color temperature sensor 20; when the rear illuminance value is greater than the predetermined multiple The front illuminance value indicates that the direct light received by the rear color temperature sensor 20 is far more than the direct light received by the front color temperature sensor 10 at this time. Therefore, when the current illuminance value is greater than the rear illuminance value of a predetermined multiple, the illuminance value and color temperature value detected by the front color temperature sensor 10 are selected, the front illuminance value is used as the fused illuminance value, and the front color temperature value is used as the fused color temperature value; When the post-illuminance value is greater than the pre-illumination value of a predetermined multiple, the illuminance value and color temperature value detected by the post-color temperature sensor 20 are selected, the post-illuminance value is used as the fusion illuminance value, and the post-color temperature value is used as the fusion color temperature value.
本申请实施方式的电子设备100利用处理器30对前置照度值和后置照度值的大小进行比较,从而确定融合照度值和融合色温值,可以准确地确定融合光线参数,从而根据融合光线参数控制电子设备100,用户体验较佳。The electronic device 100 of the embodiment of the present application uses the processor 30 to compare the magnitude of the front illuminance value and the rear illuminance value, thereby determining the fusion illuminance value and the fusion color temperature value, and can accurately determine the fusion light parameter, so as to be based on the fusion light parameter To control the electronic device 100, the user experience is better.
在一个例子中,预定倍数为2倍。假设前置照度值为Lux1,前置色温值为CCT1,后置照度值为Lux2,后置色温值为CCT2,若Lux1>2*Lux2,表明此时前置色温传感器10朝向光源200,前置色温传感器10接收到的直射光比后置色温传感器20接收到的直射光更强和更多,则将前置照度值Lux1作为融合照度值Lux,前置色温值CCT1作为融合色温值CCT,即Lux=Lux1,CCT=CCT1,从而根据融合照度值Lux和融合色温值CCT控制电子设备100。若Lux2>2*Lux1,表明此时后置色温传感器20朝向光源200,后置色温传感器20接收到的直射光比前置色温传感器10接收到的直射光更强和更多,则将后置照度值Lux2作为融合照度值Lux,后置色温值CCT2作为融合色温值CCT,即Lux=Lux2,CCT=CCT2,从而根据融合照度值Lux和融合色温值CCT控制电子设备100。In one example, the predetermined multiple is 2 times. Assuming that the front illuminance value is Lux1, the front color temperature value is CCT1, the rear illuminance value is Lux2, and the rear color temperature value is CCT2, if Lux1>2*Lux2, it indicates that the front color temperature sensor 10 is facing the light source 200, and the front The direct light received by the color temperature sensor 10 is stronger and more than the direct light received by the rear color temperature sensor 20, the front illuminance value Lux1 is used as the fused illuminance value Lux, and the front color temperature value CCT1 is used as the fused color temperature value CCT, namely Lux=Lux1, CCT=CCT1, so that the electronic device 100 is controlled according to the fused illuminance value Lux and the fused color temperature value CCT. If Lux2>2*Lux1, it indicates that the rear color temperature sensor 20 faces the light source 200 at this time, and the direct light received by the rear color temperature sensor 20 is stronger and more direct than the direct light received by the front color temperature sensor 10. The illuminance value Lux2 is used as the fused illuminance value Lux, and the post color temperature value CCT2 is used as the fused color temperature value CCT, that is, Lux=Lux2, CCT=CCT2, thereby controlling the electronic device 100 according to the fused illuminance value Lux and the fused color temperature value CCT.
当然,在其他实施方式中,预定倍数还可以是3倍、4倍、5倍等,前置照度值Lux1大于3倍、4倍或5倍的后置照度值Lux2时,则将前置照度值Lux1作为融合照度值Lux、前置色温值CCT1作为融合色温值CCT;后置照度值Lux2大于3倍、4倍或5倍的前置照度值Lux1时,则将后置照度值Lux2作为融合照度值Lux、后置色温值CCT2作为融合色温值CCT。Of course, in other embodiments, the predetermined multiple may also be 3 times, 4 times, 5 times, etc., and when the front illuminance value Lux1 is greater than 3 times, 4 times, or 5 times the rear illuminance value Lux2, the front illuminance The value Lux1 is used as the fusion illuminance value Lux, and the front color temperature value CCT1 is used as the fusion color temperature value CCT; when the rear illuminance value Lux2 is greater than 3, 4, or 5 times the front illuminance value Lux1, the rear illuminance value Lux2 is used as the fusion The illuminance value Lux and the post-color temperature value CCT2 are used as the fusion color temperature value CCT.
请参阅图8和图9,电子设备100在用户日常使用的场景存在如图两种场景。无论是太阳光光源还是各种人造光源,光源200通常都位于电子设备100上方。因此,在图8中,前置色温传感器10更容易接收到光源200发出的光;在图9中,后置色温传感器20更容易接收到光源200发出的光。然而,在这两种情况下,若是前置色温传感器10和后置色温传感器20检测的数据不 一致时,例如,前置照度值不大于预定倍数的后置照度值,且后置照度值不大于预定倍数的前置照度值,则处理器30可以依据姿态传感器60获得的电子设备100的姿态信息确定融合光线参数,从而控制电子设备100。Referring to FIG. 8 and FIG. 9, there are two scenarios in the daily use scene of the electronic device 100 as shown in the figure. Whether it is a solar light source or various artificial light sources, the light source 200 is usually located above the electronic device 100. Therefore, in FIG. 8, the front color temperature sensor 10 can more easily receive the light emitted by the light source 200; in FIG. 9, the rear color temperature sensor 20 can more easily receive the light emitted by the light source 200. However, in these two cases, if the data detected by the front color temperature sensor 10 and the rear color temperature sensor 20 are inconsistent, for example, the front illuminance value is not greater than a predetermined multiple of the rear illuminance value, and the rear illuminance value is not greater than If the pre-illuminance value is a predetermined multiple, the processor 30 can determine the fusion light parameter according to the posture information of the electronic device 100 obtained by the posture sensor 60, so as to control the electronic device 100.
请参阅图2和图10,在某些实施方式中,电子设备100还包括姿态传感器60。控制方法还包括:Please refer to FIG. 2 and FIG. 10. In some embodiments, the electronic device 100 further includes an attitude sensor 60. Control methods also include:
05:通过姿态传感器60获取电子设备100的姿态信息;05: Obtain the attitude information of the electronic device 100 through the attitude sensor 60;
06:在前置照度值不大于预定倍数的后置照度值、且后置照度值不大于预定倍数的前置照度值时,根据姿态信息确定融合光线参数。06: When the front illuminance value is not greater than the predetermined multiple of the rear illuminance value, and the rear illuminance value is not greater than the predetermined multiple of the front illuminance value, the fusion light parameter is determined according to the posture information.
请参阅图2,在某些实施方式中,电子设备100还包括姿态传感器60。姿态传感器60可用于执行05中的方法,处理器30可用于执行06中的方法。Referring to FIG. 2, in some embodiments, the electronic device 100 further includes an attitude sensor 60. The attitude sensor 60 can be used to execute the method in 05, and the processor 30 can be used to execute the method in 06.
也即是说,姿态传感器60可以用于获取电子设备100的姿态信息。处理器30可以用于在前置照度值不大于预定倍数的后置照度值、且后置照度值不大于预定倍数的前置照度值时,根据姿态信息确定融合光线参数。In other words, the posture sensor 60 can be used to obtain posture information of the electronic device 100. The processor 30 may be configured to determine the fusion light parameter according to the posture information when the front illuminance value is not greater than the predetermined multiple of the post illuminance value and the rear illuminance value is not greater than the predetermined multiple of the front illuminance value.
具体地,仍以预定倍数为2倍为例,假设前置照度值为Lux1,前置色温值为CCT1,后置照度值为Lux2,后置色温值为CCT2,若Lux1≯2*Lux2且Lux2≯2*Lux1,则此时根据姿态传感器60获取电子设备100的姿态信息确定融合光线参数。Specifically, still taking the predetermined multiple of 2 times as an example, suppose the front illuminance value is Lux1, the front color temperature value is CCT1, the rear illuminance value is Lux2, and the rear color temperature value is CCT2. If Lux1≯2*Lux2 and Lux2 ≯2*Lux1, at this time, the fusion light parameter is determined according to the posture information of the electronic device 100 obtained by the posture sensor 60.
姿态传感器60可以是重力传感器、陀螺仪或者其它传感器。姿态传感器60安装于电子设备100内部,具体可位于电子设备100的主板上。电子设备100的姿态信息包括电子设备100的倾角。请参阅图11,若将电子设备100垂直于水平面放置(图11左边图所示或图12右边图所示),定义为电子设备100的姿态信息为倾角0°,则当电子设备100顺时针旋转θ角度时,电子设备100的姿态信息为倾角θ°(图11右边图所示)。请参阅图12,当电子设备100逆时针旋转θ角度时,电子设备100的姿态信息为倾角-θ°(图12左边图所示)。本申请实施方式的电子设备100通过利用姿态传感器60获取电子设备100的姿态信息,处理器30根据获取的姿态信息确定融合光线参数,进而根据融合光线参数更加准确地控制电子设备100。The attitude sensor 60 may be a gravity sensor, a gyroscope, or other sensors. The attitude sensor 60 is installed inside the electronic device 100, and specifically may be located on the main board of the electronic device 100. The posture information of the electronic device 100 includes the inclination angle of the electronic device 100. Please refer to Figure 11, if the electronic device 100 is placed perpendicular to the horizontal plane (shown on the left side of Figure 11 or shown on the right side of Figure 12), it is defined that the posture information of the electronic device 100 is the tilt angle of 0°, then when the electronic device 100 is clockwise When rotated by the angle θ, the posture information of the electronic device 100 is the inclination angle θ° (shown in the right figure of FIG. 11). Referring to FIG. 12, when the electronic device 100 rotates counterclockwise by the angle θ, the posture information of the electronic device 100 is the inclination angle -θ° (shown in the left diagram of FIG. 12). The electronic device 100 of the embodiment of the present application obtains the posture information of the electronic device 100 by using the posture sensor 60, and the processor 30 determines the fusion light parameter according to the obtained posture information, and then controls the electronic device 100 more accurately according to the fusion light parameter.
请参阅图13,在某些实施方式中,根据姿态信息确定融合光线参数(即06),包括:Referring to FIG. 13, in some embodiments, the fusion light parameter (ie 06) is determined according to the posture information, including:
061:在姿态传感器60获取的姿态信息满足预定条件时,处理器30将前置照度值作为融合照度值,将前置色温值作为融合色温值;061: When the posture information acquired by the posture sensor 60 meets the predetermined condition, the processor 30 uses the front illuminance value as the fused illuminance value, and the front color temperature value as the fused color temperature value;
062:在姿态传感器60获取的姿态信息不满足预定条件时,将后置照度值作为融合照度值,处理器30将后置色温值作为融合色温值。062: When the posture information acquired by the posture sensor 60 does not meet the predetermined condition, the post-illumination value is used as the fused illuminance value, and the processor 30 uses the post-color temperature value as the fused color temperature value.
请参阅图2,在某些实施方式中,处理器30可用于执行061和062中的方法。Referring to FIG. 2, in some embodiments, the processor 30 may be used to execute the methods in 061 and 062.
也即是说,处理器30可以用于:在姿态信息满足预定条件时,将前置照度值作为融合照度值,将前置色温值作为融合色温值;在姿态信息不满足预定条件时,将后置照度值作为融合照度值,将后置色温值作为融合色温值。In other words, the processor 30 can be used to: when the posture information meets a predetermined condition, use the pre-illuminance value as the fusion illuminance value and the pre-color temperature value as the fusion color temperature value; when the posture information does not meet the predetermined condition, The post illuminance value is used as the fusion illuminance value, and the post color temperature value is used as the fusion color temperature value.
具体地,本申请实施方式以姿态传感器60是重力传感器为例进行说明,姿态传感器60用于获取Y轴和Z轴的加速度数值以判断电子设备100的倾角大小。预定条件可以是电子设备100倾角大于0。请参阅图11,当电子设备100顺时针旋转θ角度时,姿态传感器60获取到电子设备100的Z轴的重力加速度值为负值,且数值为Z=-g*cosθ,Y轴的重力加速度值为正值,且数值为Y=g*sinθ,此时处理器30判断电子设备100倾角大于0,将前置照度值作为融合照度值,将前置色温值作为融合色温值;相反地,请参阅图12,当电子设备100逆时针旋转θ角度时,姿态传感器60获取到电子设备100的Z轴的重力加速度值为正值,且数值为Z=g*cosθ,Y轴的重力加速度值为负值,且数值为Y=-g*sinθ,此时处理器30判断电子设备100倾角小于0,将后置照度值作为融合照度值,将后置色温值作为融合色温值。Specifically, the embodiment of the present application is described by taking the attitude sensor 60 as a gravity sensor as an example. The attitude sensor 60 is used to obtain acceleration values of the Y axis and the Z axis to determine the inclination angle of the electronic device 100. The predetermined condition may be that the inclination angle of the electronic device 100 is greater than zero. Referring to FIG. 11, when the electronic device 100 rotates clockwise by the angle θ, the posture sensor 60 obtains that the gravitational acceleration value of the Z axis of the electronic device 100 is a negative value, and the value is Z=-g*cosθ, the gravitational acceleration of the Y axis The value is positive and the value is Y=g*sinθ. At this time, the processor 30 determines that the inclination angle of the electronic device 100 is greater than 0, and uses the front illuminance value as the fusion illuminance value, and the front color temperature value as the fusion color temperature value; on the contrary, 12, when the electronic device 100 rotates counterclockwise by the angle θ, the posture sensor 60 obtains a positive value of the gravity acceleration of the Z axis of the electronic device 100, and the value is Z=g*cosθ, the gravity acceleration value of the Y axis It is a negative value and the value is Y=-g*sinθ. At this time, the processor 30 determines that the inclination angle of the electronic device 100 is less than 0, and uses the post-illuminance value as the fusion illuminance value, and the post-color temperature value as the fusion color temperature value.
在某些实施方式中,根据前置光线参数和后置光线参数确定融合光线参数还可以是根据一个融合的公式,利用电子设备100的倾角的信息权衡两个色温传感器的照度值和色温值,从而确定电子设备100的融合照度值及融合色温值。例如,请参阅图11,当电子设备100顺时针旋转θ角度时,倾角为θ,且为正值,请参阅图12,当电子设备100逆时针旋转θ角度时,倾角为θ,且为负值。若前置照度值为LuxA,前置色温值为CCTA,后置照度值为LuxB,后置色温值为CCTB, 则处理器30根据前置照度值和后置照度值确定融合光线参数时,还可以根据融合公式确定融合光线参数:aLuxA+bLuxB=LuxC,cCCTA+dCCTB=CCTC,其中,第一预定系数a为前置色温传感器10接收到光源200发出的光的量的衡量系数,第二预定系数b为后置色温传感器20接收到光源200发出的光的量的衡量系数。第一预定系数a可以为0、0.1、0.2等,第二预定系数b也可以为0、0.1、0.2等,第一预定系数a与第二预定系数b可以相同也可以不同。当光源200在机壳40的正面41且电子设备100的倾角θ为正值且绝对值越大时,第一预定系数a的值越大,第二预定系数b的值越小;当光源200在机壳40的背面42且电子设备100的倾角θ为负值且绝对值越大时,第一预定系数a的值越小,第二预定系数b的值越大。第一预定系数a乘以前置照度值LuxA加上第二预定系数b乘以后置照度值LuxB,可以得到最终的融合照度值LuxC。同理,第三预定系数c为前置色温传感器10的色温值的衡量系数,第四预定系数d为后置色温传感器20的色温值的衡量系数,第三预定系数c可以为0、0.1、0.2等,第四预定系数d也可以为0、0.1、0.2等,第三预定系数c与第四预定系数d可以相同也可以不同。当光源200在机壳40的正面41且电子设备100的倾角θ为正值且绝对值越大时,第三预定系数c的值越大,第四预定系数d的值越小;当光源200在机壳40的背面42且电子设备100的倾角θ为负值且绝对值越大时,第三预定系数c的值越小,第四预定系数d的值越大。第三预定系数c乘以前置色温值CCTA加上第四预定系数d乘以后置色温值CCTB,可以得到最终的融合色温值CCTC。因此处理器30可以得到融合照度值为LuxC,融合色温值为CCTC,进而通过融合照度值LuxC和/或融合色温值CCTC控制电子设备100。In some embodiments, determining the fusion light parameters according to the front light parameters and the rear light parameters may also be based on a fusion formula, using the information of the inclination angle of the electronic device 100 to weigh the illuminance value and the color temperature value of the two color temperature sensors, Thus, the fusion illuminance value and the fusion color temperature value of the electronic device 100 are determined. For example, please refer to FIG. 11. When the electronic device 100 rotates clockwise by the angle θ, the inclination angle is θ and is a positive value. Please refer to FIG. 12, when the electronic device 100 rotates counterclockwise by the angle θ, the inclination angle is θ and is negative. value. If the front illuminance value is LuxA, the front color temperature value is CCTA, the rear illuminance value is LuxB, and the rear color temperature value is CCTB, the processor 30 determines the fusion light parameters according to the front illuminance value and the rear illuminance value, and The fusion light parameters can be determined according to the fusion formula: aLuxA+bLuxB=LuxC, cCCTA+dCCTB=CCTC, where the first predetermined coefficient a is a measurement coefficient of the amount of light emitted by the light source 200 received by the front color temperature sensor 10, and the second predetermined The coefficient b is a measurement coefficient of the amount of light emitted by the light source 200 received by the rear color temperature sensor 20. The first predetermined coefficient a may be 0, 0.1, 0.2, etc., the second predetermined coefficient b may also be 0, 0.1, 0.2, etc., and the first predetermined coefficient a and the second predetermined coefficient b may be the same or different. When the light source 200 is on the front 41 of the casing 40 and the inclination angle θ of the electronic device 100 is a positive value and the absolute value is larger, the value of the first predetermined coefficient a is larger, and the value of the second predetermined coefficient b is smaller; when the light source 200 When the inclination angle θ of the electronic device 100 is negative and the absolute value is larger on the back 42 of the casing 40, the value of the first predetermined coefficient a is smaller, and the value of the second predetermined coefficient b is larger. The first predetermined coefficient a is multiplied by the front illuminance value LuxA plus the second predetermined coefficient b is multiplied by the post illuminance value LuxB, and the final fused illuminance value LuxC can be obtained. Similarly, the third predetermined coefficient c is a measurement coefficient of the color temperature value of the front color temperature sensor 10, the fourth predetermined coefficient d is a measurement coefficient of the color temperature value of the rear color temperature sensor 20, and the third predetermined coefficient c may be 0, 0.1, 0.2 etc., the fourth predetermined coefficient d may also be 0, 0.1, 0.2, etc., and the third predetermined coefficient c and the fourth predetermined coefficient d may be the same or different. When the light source 200 is on the front 41 of the casing 40 and the inclination angle θ of the electronic device 100 is a positive value and the absolute value is larger, the value of the third predetermined coefficient c is larger, and the value of the fourth predetermined coefficient d is smaller; when the light source 200 When the inclination angle θ of the electronic device 100 is negative and the absolute value is larger on the back 42 of the casing 40, the value of the third predetermined coefficient c is smaller and the value of the fourth predetermined coefficient d is larger. The third predetermined coefficient c is multiplied by the front color temperature value CCTA plus the fourth predetermined coefficient d is multiplied by the rear color temperature value CCTB to obtain the final blended color temperature value CCTC. Therefore, the processor 30 can obtain the fusion illuminance value LuxC and the fusion color temperature value CCTC, and then control the electronic device 100 through the fusion illuminance value LuxC and/or the fusion color temperature value CCTC.
请参阅2和图14,在某些实施方式中,电子设备100还包括显示屏50,根据融合光线参数控制电子设备100(即04),包括:Referring to 2 and FIG. 14, in some embodiments, the electronic device 100 further includes a display screen 50, which controls the electronic device 100 (that is, 04) according to the fusion light parameters, including:
042:根据融合光线参数控制显示屏50的显示状态;042: Control the display status of the display 50 according to the fusion light parameters;
或者,请参阅图2和图15,电子设备100还包括摄像头模组70,摄像头模组70用于获取被摄物的原始图像。根据融合光线参数控制电子设备100(即04),包括:Or, referring to FIG. 2 and FIG. 15, the electronic device 100 further includes a camera module 70, and the camera module 70 is used to obtain the original image of the object. Control the electronic device 100 (ie 04) according to the fusion light parameters, including:
043:根据融合光线参数对原始图像进行白平衡处理。043: Perform white balance processing on the original image according to the fusion light parameters.
请参阅图2,在某些实施方式中,电子设备100还包括显示屏50,处理器30可用于执行042中的方法。或者,电子设备100还包括摄像头模组70,摄像头模组70用于获取被摄物的原始图像,处理器30可用于执行043中的方法。Referring to FIG. 2, in some embodiments, the electronic device 100 further includes a display screen 50, and the processor 30 can be used to execute the method in 042. Alternatively, the electronic device 100 further includes a camera module 70, the camera module 70 is used to obtain the original image of the object, and the processor 30 may be used to execute the method in 043.
也即是说,处理器30可以用于根据融合光线参数控制显示屏50的显示状态。或者处理器30可以用于根据融合光线参数对原始图像进行白平衡处理。In other words, the processor 30 can be used to control the display state of the display screen 50 according to the fusion light parameters. Or the processor 30 may be used to perform white balance processing on the original image according to the fusion light parameters.
具体地,当处理器30根据融合光线参数控制显示屏50的显示状态时,若融合色温值偏低,则电子设备100可以通过处理器30调节显示屏50颜色偏暖(即调节显示屏50的颜色为明亮的暖色调,如黄色、橙色等颜色),令显示屏50不至于刺眼,保护人眼安全;若融合色温值偏高,则电子设备100可以通过处理器30调节显示屏50颜色偏冷(即调节显示屏50的颜色为暗淡的冷色调,如青色、蓝色等颜色),从而获得艳丽的显示效果。Specifically, when the processor 30 controls the display state of the display screen 50 according to the fusion light parameters, if the fusion color temperature value is low, the electronic device 100 can adjust the color of the display screen 50 to be warmer through the processor 30 (that is, adjust the display screen 50 The color is a bright warm color, such as yellow, orange, etc.), so that the display screen 50 will not be dazzling and protect human eyes; if the fusion color temperature value is too high, the electronic device 100 can adjust the color shift of the display screen 50 through the processor 30 Cool (that is, adjust the color of the display screen 50 to a dim cool color, such as cyan, blue, etc.), so as to obtain a gorgeous display effect.
当处理器30根据融合光线参数对原始图像进行白平衡处理时,请参阅图2,摄像头模组70可包括前置摄像头71及后置摄像头72,前置摄像头71靠近前置色温传感器10设置,后置摄像头72靠近后置色温传感器20设置。处理器30根据融合色温值对原始图像进行白平衡处理,使得拍摄的照片与人眼观察到的实物相符。一般地,在色温值较低的光源200下进行摄影拍照时,所拍摄显示出的影像颜色会偏向红色;相反地,在色温值较高的光源下进行摄影拍照时,所拍摄显示出来的影像的颜色会偏向蓝色。由此可知,在不同色温值的光源200下,进行摄影拍照时,所拍摄得到的影像颜色会与实际物体的颜色有所出入,因此必须对所拍摄得到的影像的颜色进行修正,即白平衡处理,以便修正为接近实际物体的颜色。When the processor 30 performs white balance processing on the original image according to the fusion light parameters, please refer to FIG. 2. The camera module 70 may include a front camera 71 and a rear camera 72. The front camera 71 is set close to the front color temperature sensor 10. The rear camera 72 is arranged close to the rear color temperature sensor 20. The processor 30 performs white balance processing on the original image according to the fusion color temperature value, so that the captured photo matches the actual object observed by human eyes. Generally, when taking photos under a light source 200 with a lower color temperature value, the color of the displayed image will be biased toward red; conversely, when taking pictures under a light source with a higher color temperature value, the displayed image will be captured The color will be biased towards blue. It can be seen that under the light source 200 with different color temperature values, the color of the captured image will be different from the color of the actual object when taking pictures. Therefore, the color of the captured image must be corrected, that is, the white balance. Processing to correct the color close to the actual object.
前置色温传感器10将前置色温值传递给处理器30,前置摄像头71将拍摄的原始图像发送至处理器30,处理器30根据前置色温值对原始图像进行白平衡处理。后置色温传感器20将后置色温值传递给处理器30,后置摄像头72将拍摄的原始图像发送至处理器30,处理器30根据后置色温值对原始图像进行白平衡处理。The front color temperature sensor 10 transmits the front color temperature value to the processor 30, the front camera 71 sends the captured original image to the processor 30, and the processor 30 performs white balance processing on the original image according to the front color temperature value. The rear color temperature sensor 20 transmits the rear color temperature value to the processor 30, the rear camera 72 sends the captured original image to the processor 30, and the processor 30 performs white balance processing on the original image according to the rear color temperature value.
请参阅图16,在某些实施方式中,前置色温传感器10接收光线的视场角α1比前置摄像头 71拍摄图像的视场角α2更大,并且后置色温传感器20接收光线的视场角β1比后置摄像头72拍摄图像的视场角β2更大,即前置色温传感器10及后置色温传感器20接收光线的视野范围比摄像头模组70拍摄图像的视野范围大,因此前置色温传感器10及后置色温传感器20可以用来辅助摄像头模组70实现对图像的白平衡处理。Referring to FIG. 16, in some embodiments, the field angle α1 of the front color temperature sensor 10 receiving light is larger than the field angle α2 of the image captured by the front camera 71, and the field of view of the rear color temperature sensor 20 receiving light The angle β1 is larger than the field of view β2 of the image captured by the rear camera 72, that is, the field of view of the front color temperature sensor 10 and the rear color temperature sensor 20 receiving light is larger than the field of view of the image captured by the camera module 70, so the front color temperature The sensor 10 and the rear color temperature sensor 20 can be used to assist the camera module 70 to realize the white balance processing of the image.
请参阅图2,在某些实施方式中,电子设备100还包括闪光灯80,且后置色温传感器20与闪光灯80共用一个透镜模块。其中,透镜模块中的透镜可以为菲涅尔透镜、球面透镜等。后置色温传感器20及闪光灯80均设置于后置摄像头72下方。后置色温传感器20与闪光灯80共用一个收纳腔。可以理解地,色温是控制闪光灯80工作的一个重要参数,后置色温传感器20用于检测后置照度值和后置色温值,处理器30根据后置色温值控制闪光灯80,从而准确调节闪光灯80的亮度及闪光灯80的闪光持续时间,配合后置色温传感器20调节当前的色温值,使得闪光灯80能够准确、高效率工作。相应地,闪光灯80的闪光持续时间及闪光灯80的附件(例如罩在闪光灯80上的透镜)也会对后置色温传感器20检测的色温值有一定的影响,因此,闪光灯80与后置色温传感器20共用一个透镜,可以有效避免由于其他因素造成后置色温传感器20检测的色温值不准确的问题。Referring to FIG. 2, in some embodiments, the electronic device 100 further includes a flash 80, and the rear color temperature sensor 20 and the flash 80 share a lens module. Among them, the lens in the lens module may be a Fresnel lens, a spherical lens, or the like. The rear color temperature sensor 20 and the flash 80 are both arranged under the rear camera 72. The rear color temperature sensor 20 and the flash 80 share a storage cavity. Understandably, the color temperature is an important parameter for controlling the work of the flash 80. The rear color temperature sensor 20 is used to detect the rear illuminance value and the rear color temperature value. The processor 30 controls the flash 80 according to the rear color temperature value, thereby accurately adjusting the flash 80 The brightness of the flash 80 and the flash duration of the flash 80 are matched with the rear color temperature sensor 20 to adjust the current color temperature value, so that the flash 80 can work accurately and efficiently. Correspondingly, the flash duration of the flash 80 and the accessories of the flash 80 (such as the lens covered on the flash 80) will also have a certain impact on the color temperature value detected by the rear color temperature sensor 20. Therefore, the flash 80 and the rear color temperature sensor 20 sharing a lens can effectively avoid the problem of inaccurate color temperature detected by the rear color temperature sensor 20 due to other factors.
另外,闪光灯80与后置摄像头72共用一个透镜还可以有效节省电子设备100的机壳40的背面42打孔的个数,减小安装空间并使电子设备100更加美观。In addition, the flash 80 and the rear camera 72 share the same lens, which can also effectively save the number of punched holes on the back 42 of the housing 40 of the electronic device 100, reduce the installation space and make the electronic device 100 more beautiful.
在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”或“一些示例”等的描述意指结合所述实施方式或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" etc. means to combine the described implementations The specific features, structures, materials, or characteristics described in the manners or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above-mentioned terms do not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in an appropriate manner. In addition, those skilled in the art can combine and combine the different embodiments or examples and the characteristics of the different embodiments or examples described in this specification without contradicting each other.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in the flowchart or described in other ways herein can be understood as a module, segment, or part of code that includes one or more executable instructions for implementing specific logical functions or steps of the process , And the scope of the preferred embodiments of the present application includes additional implementations, which may not be in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. This should It is understood by those skilled in the art to which the embodiments of this application belong.
尽管上面已经示出和描述了本申请的实施方式,可以理解的是,上述实施方式是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施方式进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application. Those of ordinary skill in the art can comment on the above within the scope of the present application. The implementation is subject to changes, modifications, replacements and modifications.

Claims (20)

  1. 一种电子设备的控制方法,其特征在于,所述电子设备包括前置色温传感器和后置色温传感器,所述控制方法包括:A control method of an electronic device, wherein the electronic device includes a front color temperature sensor and a rear color temperature sensor, and the control method includes:
    通过所述前置色温传感器获取环境光的前置光线参数;Acquiring the front light parameters of the ambient light through the front color temperature sensor;
    通过所述后置色温传感器获取环境光的后置光线参数;Acquiring the rear light parameters of the ambient light through the rear color temperature sensor;
    根据所述前置光线参数和所述后置光线参数确定融合光线参数;Determining a fusion light parameter according to the front light parameter and the rear light parameter;
    根据所述融合光线参数控制所述电子设备。The electronic device is controlled according to the fusion light parameter.
  2. 根据权利要求1所述的控制方法,其特征在于,所述前置光线参数包括前置照度值和前置色温值,所述后置光线参数包括后置照度值和后置色温值,所述根据所述前置光线参数和所述后置光线参数确定融合光线参数,包括:The control method according to claim 1, wherein the front light parameter includes a front illuminance value and a front color temperature value, the rear light parameter includes a rear illuminance value and a rear color temperature value, and the The determination of the fusion light parameter according to the front light parameter and the rear light parameter includes:
    根据所述前置照度值和所述后置照度值确定所述融合光线参数,所述融合光线参数包括融合照度值和/或融合色温值;Determining the fusion light parameter according to the front illuminance value and the post illuminance value, where the fusion light parameter includes a fusion illuminance value and/or a fusion color temperature value;
    所述根据所述融合光线参数控制所述电子设备,包括:The controlling the electronic device according to the fusion light parameter includes:
    根据所述融合照度值和/或所述融合色温值控制所述电子设备。The electronic device is controlled according to the fused illuminance value and/or the fused color temperature value.
  3. 根据权利要求2所述的控制方法,其特征在于,所述根据所述前置照度值和所述后置照度值确定所述融合光线参数,包括:The control method according to claim 2, wherein the determining the fusion light parameter according to the front illuminance value and the rear illuminance value comprises:
    在所述前置照度值大于预定倍数的所述后置照度值时,将所述前置照度值作为所述融合照度值,将所述前置色温值作为所述融合色温值;When the front illuminance value is greater than the rear illuminance value of a predetermined multiple, use the front illuminance value as the fused illuminance value, and use the front color temperature value as the fused color temperature value;
    在所述后置照度值大于预定倍数的所述前置照度值时,将所述后置照度值作为所述融合照度值,将所述后置色温值作为所述融合色温值。When the rear illuminance value is greater than the front illuminance value of a predetermined multiple, the rear illuminance value is used as the fused illuminance value, and the rear color temperature value is used as the fused color temperature value.
  4. 根据权利要求2所述的控制方法,其特征在于,所述电子设备还包括姿态传感器,所述控制方法还包括:The control method according to claim 2, wherein the electronic device further comprises a posture sensor, and the control method further comprises:
    通过所述姿态传感器获取所述电子设备的姿态信息;Acquiring the posture information of the electronic device through the posture sensor;
    在所述前置照度值不大于预定倍数的所述后置照度值、且所述后置照度值不大于预定倍数的所述前置照度值时,根据所述姿态信息确定所述融合光线参数。When the front illuminance value is not greater than the rear illuminance value of a predetermined multiple and the rear illuminance value is not greater than the front illuminance value of a predetermined multiple, the fusion light parameter is determined according to the posture information .
  5. 根据权利要求4所述的控制方法,其特征在于,所述根据所述姿态信息确定所述融合光线参数,包括:The control method according to claim 4, wherein the determining the fusion light parameter according to the posture information comprises:
    在所述姿态信息满足预定条件时,将所述前置照度值作为所述融合照度值,将所述前置色温值作为所述融合色温值;When the posture information satisfies a predetermined condition, use the front illuminance value as the fused illuminance value, and use the front color temperature value as the fused color temperature value;
    在所述姿态信息不满足所述预定条件时,将所述后置照度值作为所述融合照度值,将所述后置色温值作为所述融合色温值。When the posture information does not satisfy the predetermined condition, the post illuminance value is used as the fused illuminance value, and the post color temperature value is used as the fused color temperature value.
  6. 根据权利要求1所述的控制方法,其特征在于,所述电子设备还包括显示屏,所述根据所述融合光线参数控制所述电子设备,包括:The control method according to claim 1, wherein the electronic device further comprises a display screen, and the controlling the electronic device according to the fused light parameter comprises:
    根据所述融合光线参数控制所述显示屏的显示状态;或Control the display state of the display screen according to the fusion light parameter; or
    所述电子设备还包括摄像头模组,所述摄像头模组用于获取被摄物的原始图像,所述根据所述融合光线参数控制所述电子设备,包括:The electronic device further includes a camera module, the camera module is used to obtain the original image of the subject, and the control of the electronic device according to the fusion light parameter includes:
    根据所述融合光线参数对所述原始图像进行白平衡处理。White balance processing is performed on the original image according to the fused light parameter.
  7. 根据权利要求1所述的控制方法,其特征在于,所述电子设备还包括闪光灯,所述后置色温传感器与所述闪光灯共用透镜模块。The control method according to claim 1, wherein the electronic device further comprises a flash, and the rear color temperature sensor shares a lens module with the flash.
  8. 根据权利要求2所述的控制方法,其特征在于,所述根据所述前置光线参数和所述后置光 线参数确定融合光线参数,包括:The control method according to claim 2, wherein the determining the fusion light parameter according to the front light parameter and the rear light parameter comprises:
    根据所述电子设备的倾角确定第一预定系数、第二预定系数、第三预定系数和第四预定系数;及Determining a first predetermined coefficient, a second predetermined coefficient, a third predetermined coefficient, and a fourth predetermined coefficient according to the inclination angle of the electronic device; and
    根据融合公式、所述第一预定系数、所述第二预定系数、所述第三预定系数和所述第四预定系数确定所述融合照度值及所述融合色温值。The fusion illuminance value and the fusion color temperature value are determined according to a fusion formula, the first predetermined coefficient, the second predetermined coefficient, the third predetermined coefficient, and the fourth predetermined coefficient.
  9. 根据权利要求3所述的控制方法,其特征在于,所述预定倍数为大于1的任意值。The control method according to claim 3, wherein the predetermined multiple is any value greater than one.
  10. 根据权利要求5所述的控制方法,其特征在于,所述预定条件包括所述电子装置的倾角大于0度。The control method according to claim 5, wherein the predetermined condition includes that the inclination angle of the electronic device is greater than 0 degrees.
  11. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    前置色温传感器,用于获取环境光的前置光线参数;Front color temperature sensor, used to obtain the front light parameters of ambient light;
    后置色温传感器,用于获取环境光的后置光线参数;The rear color temperature sensor is used to obtain the rear light parameters of the ambient light;
    处理器,用于根据所述前置光线参数和所述后置光线参数确定融合光线参数、以及根据所述融合光线参数控制所述电子设备。The processor is configured to determine the fusion light parameter according to the front light parameter and the rear light parameter, and control the electronic device according to the fusion light parameter.
  12. 根据权利要求11所述的电子设备,其特征在于,所述前置光线参数包括前置照度值和前置色温值,所述后置光线参数包括后置照度值和后置色温值,所述处理器用于:The electronic device according to claim 11, wherein the front light parameter includes a front illuminance value and a front color temperature value, and the rear light parameter includes a rear illuminance value and a rear color temperature value, and the The processor is used for:
    根据所述前置照度值和所述后置照度值确定所述融合光线参数,所述融合光线参数包括融合照度值和/或融合色温值;Determining the fusion light parameter according to the front illuminance value and the post illuminance value, where the fusion light parameter includes a fusion illuminance value and/or a fusion color temperature value;
    根据所述融合照度值和/或所述融合色温值控制所述电子设备。The electronic device is controlled according to the fused illuminance value and/or the fused color temperature value.
  13. 根据权利要求12所述的电子设备,其特征在于,所述处理器用于:The electronic device according to claim 12, wherein the processor is configured to:
    在所述前置照度值大于预定倍数的所述后置照度值时,将所述前置照度值作为所述融合照度值,将所述前置色温值作为所述融合色温值;When the front illuminance value is greater than the rear illuminance value of a predetermined multiple, use the front illuminance value as the fused illuminance value, and use the front color temperature value as the fused color temperature value;
    在所述后置照度值大于预定倍数的所述前置照度值时,将所述后置照度值作为所述融合照度值,将所述后置色温值作为所述融合色温值。When the rear illuminance value is greater than the front illuminance value of a predetermined multiple, the rear illuminance value is used as the fused illuminance value, and the rear color temperature value is used as the fused color temperature value.
  14. 根据权利要求12所述的电子设备,其特征在于,所述电子设备还包括姿态传感器,所述姿态传感器用于获取所述电子设备的姿态信息;The electronic device according to claim 12, wherein the electronic device further comprises a posture sensor, and the posture sensor is used to obtain posture information of the electronic device;
    所述处理器用于在所述前置照度值不大于预定倍数的所述后置照度值、且所述后置照度值不大于预定倍数的所述前置照度值时,根据所述姿态信息确定所述融合光线参数。The processor is configured to determine according to the posture information when the front illuminance value is not greater than the rear illuminance value of a predetermined multiple and the rear illuminance value is not greater than the front illuminance value of a predetermined multiple The fusion light parameter.
  15. 根据权利要求14所述的电子设备,其特征在于,所述处理器用于:The electronic device according to claim 14, wherein the processor is configured to:
    在所述姿态信息满足预定条件时,将所述前置照度值作为所述融合照度值,将所述前置色温值作为所述融合色温值;When the posture information satisfies a predetermined condition, use the front illuminance value as the fused illuminance value, and use the front color temperature value as the fused color temperature value;
    在所述姿态信息不满足所述预定条件时,将所述后置照度值作为所述融合照度值,将所述后置色温值作为所述融合色温值。When the posture information does not satisfy the predetermined condition, the post illuminance value is used as the fused illuminance value, and the post color temperature value is used as the fused color temperature value.
  16. 根据权利要求11所述的电子设备,其特征在于,所述电子设备还包括显示屏,所述处理器用于根据所述融合光线参数控制所述显示屏的显示状态;或The electronic device according to claim 11, wherein the electronic device further comprises a display screen, and the processor is configured to control the display state of the display screen according to the fused light parameter; or
    所述电子设备还包括摄像头模组,所述摄像头模组用于获取被摄物的原始图像,所述处理器用于根据所述融合光线参数对所述原始图像进行白平衡处理。The electronic device further includes a camera module configured to obtain an original image of the subject, and the processor is configured to perform white balance processing on the original image according to the fusion light parameter.
  17. 根据权利要求11所述的电子设备,其特征在于,所述电子设备还包括闪光灯,所述后置色温传感器与所述闪光灯共用透镜模块。11. The electronic device of claim 11, wherein the electronic device further comprises a flash, and the rear color temperature sensor shares a lens module with the flash.
  18. 根据权利要求12所述的电子设备,其特征在于,所述处理器用于:The electronic device according to claim 12, wherein the processor is configured to:
    根据所述电子设备的倾角确定第一预定系数、第二预定系数、第三预定系数和第四预定系数;及Determining a first predetermined coefficient, a second predetermined coefficient, a third predetermined coefficient, and a fourth predetermined coefficient according to the inclination angle of the electronic device; and
    根据融合公式、所述第一预定系数、所述第二预定系数、所述第三预定系数和所述第四预定系数确定所述融合照度值及所述融合色温值。The fusion illuminance value and the fusion color temperature value are determined according to a fusion formula, the first predetermined coefficient, the second predetermined coefficient, the third predetermined coefficient, and the fourth predetermined coefficient.
  19. 根据权利要求13所述的电子设备,其特征在于,所述预定倍数为大于1的任意值。The electronic device according to claim 13, wherein the predetermined multiple is any value greater than 1.
  20. 根据权利要求15所述的电子设备,其特征在于,所述预定条件包括所述电子装置的倾角大于0度。The electronic device according to claim 15, wherein the predetermined condition comprises that the inclination angle of the electronic device is greater than 0 degrees.
PCT/CN2020/093016 2019-06-25 2020-05-28 Control method for electronic device and electronic device WO2020259196A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910554768.6 2019-06-25
CN201910554768.6A CN112134972A (en) 2019-06-25 2019-06-25 Control method of electronic equipment and electronic equipment

Publications (1)

Publication Number Publication Date
WO2020259196A1 true WO2020259196A1 (en) 2020-12-30

Family

ID=73849045

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/093016 WO2020259196A1 (en) 2019-06-25 2020-05-28 Control method for electronic device and electronic device

Country Status (2)

Country Link
CN (1) CN112134972A (en)
WO (1) WO2020259196A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010008289A (en) * 2008-06-27 2010-01-14 Sharp Corp Portable terminal device
CN103903539A (en) * 2012-12-24 2014-07-02 联想(北京)有限公司 Screen brightness adjusting method and system
CN104428829A (en) * 2012-06-21 2015-03-18 华为终端有限公司 Color control method and communication apparatus
CN105575361A (en) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 Screen brightness adjusting method and apparatus thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104517585A (en) * 2013-09-29 2015-04-15 联想(北京)有限公司 Method and device for adjusting display screen
CN104780320B (en) * 2014-01-15 2020-02-21 联想(北京)有限公司 Ambient light detection method and electronic device
CN105988559B (en) * 2015-02-03 2019-02-05 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN106331344B (en) * 2016-08-23 2019-10-29 维沃移动通信有限公司 A kind of adjusting method and mobile terminal of screen color temp
CN106791164A (en) * 2017-01-11 2017-05-31 广东欧珀移动通信有限公司 terminal control method, device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010008289A (en) * 2008-06-27 2010-01-14 Sharp Corp Portable terminal device
CN104428829A (en) * 2012-06-21 2015-03-18 华为终端有限公司 Color control method and communication apparatus
CN103903539A (en) * 2012-12-24 2014-07-02 联想(北京)有限公司 Screen brightness adjusting method and system
CN105575361A (en) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 Screen brightness adjusting method and apparatus thereof

Also Published As

Publication number Publication date
CN112134972A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US20210180783A1 (en) Systems and methods for a suction cup device holder
US8953094B2 (en) Illumination system
CN104954697B (en) Image processing apparatus and image processing method
TWI566216B (en) Ambient light adaptive displays
US20150222868A1 (en) White-balance color temperature measuring device for image pick-up device
US20150334258A1 (en) Auxiliary photography systems for mobile devices
US8417109B2 (en) Photographing device and photographing control method
US10057549B2 (en) Computer-implemented system and method for color sensing, storage and comparison
CN104301598A (en) Method of setting lighting effect of front camera by mobile terminal
KR20160067633A (en) Method for controlling white balance and an electronic device thereof
US10649713B1 (en) Calibrating multiple displays of a computing device to have a similar perceived appearance
CN111294576B (en) Automatic white balance processing method and device and electronic equipment
TWI719369B (en) Camera modules and electronic equipment using the camera modules
TW201307979A (en) Electronic device providing adjustable flash
CN113545028A (en) Gain control for face authentication
US9774839B2 (en) Systems and methods for color correction of images captured using a mobile computing device
TWI665649B (en) Micro led array, display and electronic device
WO2020259196A1 (en) Control method for electronic device and electronic device
US9350964B2 (en) Barrel-based white balance filter
US20130093914A1 (en) Transformations and White Point Constraint Solutions for a Novel Chromaticity Space
US20190087640A1 (en) Image capturing device, image capturing method and storage medium
US20140253780A1 (en) Method of adjusting light detection algorithm
TWI582515B (en) Method,computer system and computer program product for spherical lighting with backlighting coronal ring
US20160040869A1 (en) System and remotely controlled compact camera flash for camera enabled smart devices
CN203522942U (en) Image pick-up device white balance color temperature measurement device

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

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

Country of ref document: EP

Kind code of ref document: A1