CN113865704A - Ambient light detection method, detection device, light detection module, and electronic apparatus - Google Patents

Ambient light detection method, detection device, light detection module, and electronic apparatus Download PDF

Info

Publication number
CN113865704A
CN113865704A CN202111163521.5A CN202111163521A CN113865704A CN 113865704 A CN113865704 A CN 113865704A CN 202111163521 A CN202111163521 A CN 202111163521A CN 113865704 A CN113865704 A CN 113865704A
Authority
CN
China
Prior art keywords
light
channel value
optical
optical channel
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111163521.5A
Other languages
Chinese (zh)
Inventor
阿迪思
贺宇翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111163521.5A priority Critical patent/CN113865704A/en
Publication of CN113865704A publication Critical patent/CN113865704A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light

Landscapes

  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Spectrometry And Color Measurement (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The application discloses ambient light detection method, detection device, light detection component and electronic equipment, relates to optical sensor technical field, specifically, ambient light detection method is applied to electronic equipment, and electronic equipment includes: light sensor and printing opacity subassembly, the printing opacity subassembly includes first light filtering part and second light filtering part, and first light filtering part is the colour filter piece that grows, and second light filtering part is the colour filter piece that cancels, includes: acquiring a first optical channel value and a second optical channel value of light rays collected by an optical sensor, wherein the first optical channel value is the channel value of the light rays passing through a first optical filter part, and the second optical channel value is the channel value of the light rays passing through a second optical filter part; determining a third optical channel value according to the first optical channel value and the second optical channel value, wherein the third optical channel value is a channel value of the noise light source; and determining a fourth optical channel value according to the first optical channel value and the third optical channel value, wherein the fourth optical channel value is the channel value of the ambient light.

Description

Ambient light detection method, detection device, light detection module, and electronic apparatus
Technical Field
The application belongs to the technical field of optical sensors, and particularly relates to an ambient light detection method, a detection device, a light detection assembly and electronic equipment.
Background
In the related art, the screen dimming function of a terminal device such as a mobile phone needs to rely on the collection of the ambient light intensity, and the display brightness of the screen is dynamically adjusted according to the ambient light intensity.
In the practical application process, the ambient light collected by the optical sensor is affected by the light of the light emitting devices such as the display screen, so that the judgment of the ambient intensity by the optical sensor is inaccurate.
Therefore, how to improve the accuracy of the optical sensor for detecting the ambient light is an urgent technical problem to be solved.
Disclosure of Invention
The embodiment of the application aims to provide an ambient light detection method, a detection device, a light detection assembly and electronic equipment, which can avoid the influence of light emitted by a display screen when the light detection assembly detects ambient light, and improve the accuracy of the light detection assembly in ambient light detection.
In a first aspect, an embodiment of the present application provides an ambient light detection method, which is applied to an electronic device, where the electronic device includes: light sensor and printing opacity subassembly, the printing opacity subassembly includes first light filtering part and second light filtering part, and first light filtering part is the colour filter piece that grows, and second light filtering part is the colour filter piece that cancels, includes: acquiring a first optical channel value and a second optical channel value of light rays collected by an optical sensor, wherein the first optical channel value is the channel value of the light rays passing through a first optical filter part, and the second optical channel value is the channel value of the light rays passing through a second optical filter part; determining a third optical channel value according to the first optical channel value and the second optical channel value, wherein the third optical channel value is a channel value of the noise light source; and determining a fourth optical channel value according to the first optical channel value and the third optical channel value, wherein the fourth optical channel value is the channel value of the ambient light.
In a second aspect, an embodiment of the present application provides an ambient light detection apparatus, which is applied to an electronic device, where the electronic device includes: light sensor and printing opacity subassembly, the printing opacity subassembly includes first light filtering part and second light filtering part, and first light filtering part is the colour filter piece that grows, and second light filtering part is the colour filter piece that cancels, includes: the optical sensor comprises an acquisition unit, a detection unit and a processing unit, wherein the acquisition unit is used for acquiring a first optical channel value and a second optical channel value of light collected by the optical sensor, the first optical channel value is the channel value of the light passing through the first optical filter part, and the second optical channel value is the channel value of the light passing through the second optical filter part; a first determining unit, configured to determine a third optical channel value according to the first optical channel value and the second optical channel value, where the third optical channel value is a channel value of the noise light source; and a second determining unit, configured to determine a fourth optical channel value according to the first optical channel value and the third optical channel value, where the fourth optical channel value is a channel value of the ambient light.
In a third aspect, an embodiment of the present application provides a light detection assembly, including: the optical sensor comprises a collecting end for receiving light; printing opacity subassembly sets up in gathering the end, and the printing opacity subassembly includes: the first optical filter part is a color-constructive optical filter so that the optical sensor can collect constructive color spectrum data, and the second optical filter part is a color-destructive optical filter so that the optical sensor can collect destructive color spectrum data.
In a fourth aspect, embodiments of the present application provide a method for manufacturing a light detection module, which is used for manufacturing the light detection module in the first aspect, and the method includes: coating a film on a light-transmitting substrate to form a first light-filtering part and a second light-filtering part so as to obtain a light-transmitting component; and coating the light-transmitting component on the acquisition end of the light sensor by adopting a coating process.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: a body; the display screen is arranged on the body; as in the photodetection module according to the third aspect, the photodetection module is provided to the main body.
In a sixth aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a seventh aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In an eighth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method according to the first aspect.
In the embodiment of the present application, the parameter value of the light collected by the light sensor includes two parts, one part of the parameter value is from ambient light of the surrounding environment, and the other part of the parameter value is from a noise light source, that is, a display screen in a terminal device such as a mobile phone. The optical sensor obtains the constructive color spectrum data through the first light filtering part, and then obtains the destructive color spectrum data through the second light filtering part, the constructive color spectrum data and the destructive color spectrum data are the same as the luminous color spectrum of the display screen, so the optical sensor analyzes the color spectrum data obtained through the first light filtering part and the second light filtering part, a channel value of light emitted by the display screen can be obtained, and the channel value of environment light is obtained after the channel value is eliminated, thereby the optical detection assembly avoids the influence of the light emitted by the display screen when detecting the environment light, and the accuracy of the optical detection assembly on the environment light detection is improved. And through interference effect, the second light filtering parts of the first light filtering parts with the long color wave bands and the second light filtering parts with the destructive color wave bands are respectively designed, the data of the light sources with the destructive color wave bands and the data of the light sources with the long color wave bands are respectively collected for calculation, the channel value of the light emitted by the screen light is obtained, the relative value of the screen light channel can be dynamically obtained, the accurate screen light channel value can be obtained even if the screen is damaged or replaced in the later stage, not only can the pure environment light channel value be accurately obtained as far as possible on the premise of not increasing the complexity of structural design, the effect of eliminating screen light interference is achieved, the detection accuracy of the environment light sensor is improved, the environment light channel value can be dynamically obtained, and the flexibility of the environment light sensor is improved.
Drawings
FIG. 1 shows one of the flow charts of an ambient light detection method according to an embodiment of the present application;
FIG. 2 shows a second flowchart of an ambient light detection method according to an embodiment of the present application;
FIG. 3 shows a block diagram of an ambient light detection apparatus according to an embodiment of the present application;
FIG. 4 shows one of the schematic structural diagrams of a light detection assembly according to an embodiment of the present application;
FIG. 5 illustrates a schematic view of a light detection assembly collecting light according to an embodiment of the present application;
FIG. 6 shows one of the schematic structural diagrams of a light transmission component according to an embodiment of the present application;
FIG. 7 shows a second schematic structural view of a light transmission assembly according to an embodiment of the present application;
FIG. 8 illustrates a second schematic structural view of a light detection assembly according to an embodiment of the present application;
FIG. 9 shows a flow chart of a method of fabricating a light detection assembly according to an embodiment of the present application;
FIG. 10 shows one of the schematic structural diagrams of an electronic device according to an embodiment of the application;
fig. 11 shows a second schematic structural diagram of an electronic device according to an embodiment of the application;
fig. 12 shows a third schematic structural diagram of an electronic device according to an embodiment of the application;
FIG. 13 shows a block diagram of an electronic device according to an embodiment of the application;
fig. 14 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
Wherein the reference numerals in fig. 6, 7, 8, 10, 11, and 12 are:
400 optical detection subassembly, 420 optical sensor, 440 light transmission component, 442 first optical filter portion, 444 second optical filter portion, 446 base member, 460 pin, A ambient light source, B noise light source, 1000 electronic equipment, 1020 body, 1022 framework, 1024 apron, 1040 display screen, 1060 shading portion, 1062 light trap, 1080 leaded light spare.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The light detection assembly, the ambient light detection method, the detection device and the electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
In some embodiments of the present application, an ambient light detection method is provided, which is applied to an electronic device, where the electronic device includes: an optical sensor and a light transmitting component, the light transmitting component comprising a first optical filter portion and a second optical filter portion, the first optical filter portion being a color-constructive optical filter, the second optical filter portion being a color-destructive optical filter, fig. 1 shows one of the flow charts of an ambient light detection method according to an embodiment of the present application, as shown in fig. 1, the ambient light detection method comprises:
102, acquiring a first optical channel value and a second optical channel value of light collected by an optical sensor;
wherein the first optical channel value is the channel value of the light passing through the first optical filter portion, and the second optical channel value is the channel value of the light passing through the second optical filter portion;
104, determining a third optical channel value according to the first optical channel value and the second optical channel value, wherein the third optical channel value is a channel value of the noise light source;
and 106, determining a fourth optical channel value according to the first optical channel value and the third optical channel value, wherein the fourth optical channel value is the channel value of the ambient light.
In the embodiment of the application, the optical sensor respectively collects the first optical channel value and the second optical channel value through the first optical filtering part and the second optical filtering part. The first optical channel value is a color-constructive optical channel value because the first optical channel value is a channel value collected through the first filtering portion, and the second optical channel value is a color-destructive optical channel value because the second optical channel value is a channel value collected through the second filtering portion. Wherein the color channel value in the first light channel value is enhanced and the color channel value of the second light channel value is eliminated. The first optical channel value and the second optical channel value are calculated to obtain a third optical channel value, the third optical channel value is a channel value of the light emitted by the display screen, the difference value calculation is carried out on the first optical channel value and the third optical channel value, the channel value of the light emitted by the screen in the first optical channel value can be eliminated, and therefore a fourth optical channel value and a channel value of natural light of an environment where the electronic equipment is located are obtained.
It should be noted that the spectrum corresponding to the first optical channel value is any continuous spectrum captured in the external environment, including but not limited to part or all of visible light, near infrared, mid infrared, far infrared, ultraviolet light and other natural spectrums, or part or all of a plurality of different spectrums.
Specifically, the display screen is an RGB display screen, and the first filter portion is an RGB interference constructive filter, and the second filter portion is an RGB interference destructive filter. The first optical channel value collected by the optical sensor through the first light filtering part is CRGB(λ), the second optical channel collected by the optical sensor through the second filter is CD(lambda) by reacting CRGB(lambda) and CD(λ) fusion processing to obtain a third light channel value, i.e. RGB light C emitted by the RGB light source of the display screenS(λ) since the first optical channel value collected by the optical sensor is CRGB(λ) is derived from ambient light and from the light channel values C of the RGB light emitted by the RGB light source of the display screenS(λ) so pass CRGB(lambda) and CS(lambda) a fourth channel value can be obtained,i.e. the channel value of the ambient light. Thus, there is the following equation:
Cam(λ)=CRGB(λ)-CS(λ);
wherein Cam (λ) is the fourth channel value, CRGB(λ) is a first optical channel value, CSAnd (λ) is the third optical channel value.
In the embodiment of the present application, the parameter value of the light collected by the light sensor includes two parts, one part of the parameter value is from ambient light of the surrounding environment, and the other part of the parameter value is from a noise light source, that is, a display screen in a terminal device such as a mobile phone. The optical sensor obtains the constructive color spectrum data through the first light filtering part, and then obtains the destructive color spectrum data through the second light filtering part, the constructive color spectrum data and the destructive color spectrum data are the same as the luminous color spectrum of the display screen, so the optical sensor analyzes the color spectrum data obtained through the first light filtering part and the second light filtering part, a channel value of light emitted by the display screen can be obtained, and the channel value of environment light is obtained after the channel value is eliminated, thereby the optical detection assembly avoids the influence of the light emitted by the display screen when detecting the environment light, and the accuracy of the optical detection assembly on the environment light detection is improved. And through interference effect, the second light filtering parts of the first light filtering parts with the long color wave bands and the second light filtering parts with the destructive color wave bands are respectively designed, the data of the light sources with the destructive color wave bands and the data of the light sources with the long color wave bands are respectively collected for calculation, the channel value of the light emitted by the screen light is obtained, the relative value of the screen light channel can be dynamically obtained, the accurate screen light channel value can be obtained even if the screen is damaged or replaced in the later stage, not only can the pure environment light channel value be accurately obtained as far as possible on the premise of not increasing the complexity of structural design, the effect of eliminating screen light interference is achieved, the detection accuracy of the environment light sensor is improved, the environment light channel value can be dynamically obtained, and the flexibility of the environment light sensor is improved.
In some embodiments of the present application, fig. 2 illustrates a second flowchart of an ambient light detection method according to an embodiment of the present application, and as shown in fig. 2, determining a third optical channel value according to the first optical channel value and the second optical channel value includes:
step 202, acquiring N first sub-channel values in the first optical channel values, where N is an integer greater than 1;
step 204, the N first sub-channel values and the second optical channel value are respectively calculated to obtain a third optical channel value, where the third optical channel value includes N second sub-channel values.
In an embodiment of the present application, the N first sub-channel values include channel values of different color channels, for example, the display screen is an RGB display screen, the first light-filtering portion is an RGB interference constructive light-filtering element, the second light-filtering portion is an RGB interference destructive light-filtering element, N is 3, and the channel value of the three first sub-channel values divided into red light is CRGB(650) Green light channel value of CRGB(550) And a channel value of blue light of CRGB(450). The red, green and blue light has been eliminated in the second light channel value, the second light channel value is CD(lambda). Calculating each first sub-channel value to obtain a corresponding third optical channel value, wherein the third optical channel value comprises N second sub-channel values, and the second sub-channel values are red light C in RGB light emitted by the display screenS(650) Green light CS(550) And blue light CS(450)。
According to the embodiment of the application, the optical channel values of all the color channels in the color spectrum are respectively calculated, so that the third optical channel value, namely the optical channel value sent by the display screen light source, is obtained, and the accuracy of calculation of the optical channel value sent by the display screen light source is improved. The accuracy of the light detection component for detecting the ambient light is further improved.
In some embodiments of the present application, determining the fourth light channel value from the first light channel value and the third light channel value comprises:
calculating the N first sub-channel values and the N second sub-channel values respectively to obtain a fourth optical channel value, wherein the fourth optical channel value comprises N third sub-channel values;
in the embodiment of the present application, the N second sub-channel values are red light C in RGB light emitted from the display screenS(650) Green light CS(550) And blue light CS(450). The first subchannel value ofChannel value of red light is CRGB(650) Green light channel value of CRGB(550) And a channel value of blue light of CRGB(450). Respectively calculating the N first sub-channel values and the N second sub-channel values to obtain a fourth optical channel value, wherein the fourth optical channel value comprises N third sub-channel values which are respectively red channel values Cam(650) Green light channel value Cam(550) And C of blue lightam(450). Thus, there is the following equation:
Cam(650)=CRGB(650)-CS(650);
Cam(550)=CRGB(550)-CS(550);
Cam(450)=CRGB(450)-CS(450);
wherein, Cam(650) Is the channel value of red light in ambient light, Cam(550) Is the channel value of green light in ambient light, Cam(450) Is the channel value of blue light in ambient light, CRGB(650) Is the channel value of red light in the first light channel value, CRGB(650) Is the channel value of green light in the first light channel value, CRGB(650) Is the channel value of blue light in the first optical channel value, CS(650) For displaying the channel value of red light of the RGB light emitted by the screen, CS(550) For green light channel value, C, of RGB light emitted from a display screenS(450) Is the channel value of blue light in the RGB light emitted from the display screen.
According to the embodiment of the application, the optical channel values corresponding to each color channel in the first optical channel value and the third optical channel value are respectively calculated, so that the fourth optical channel value, namely the channel value of natural light of the environment where the electronic equipment is located, is obtained, and the accuracy of the optical detection component in detecting the ambient light is improved.
In some embodiments of the present application, an ambient light detection apparatus is provided, which is applied to an electronic device, and the electronic device includes: an optical sensor and a light transmission component, the light transmission component includes a first optical filter portion and a second optical filter portion, the first optical filter portion is a color-constructive optical filter, the second optical filter portion is a color-destructive optical filter, fig. 3 shows a structural block diagram of an ambient light detection device according to an embodiment of the present application, and as shown in fig. 3, the ambient light detection device 300 includes:
an obtaining unit 302, configured to obtain a first optical channel value and a second optical channel value of light collected by an optical sensor, where the first optical channel value is a channel value of light passing through a first optical filter portion, and the second optical channel value is a channel value of light passing through a second optical filter portion;
a first determining unit 304, configured to determine a third optical channel value according to the first optical channel value and the second optical channel value, where the third optical channel value is a channel value of the noise light source;
a second determining unit 306, configured to determine a fourth optical channel value according to the first optical channel value and the third optical channel value, where the fourth optical channel value is a channel value of the ambient light.
In the embodiment of the application, the optical sensor respectively collects the first optical channel value and the second optical channel value through the first optical filtering part and the second optical filtering part. The first optical channel value is a color-constructive optical channel value because the first optical channel value is a channel value collected through the first filtering portion, and the second optical channel value is a color-destructive optical channel value because the second optical channel value is a channel value collected through the second filtering portion. Wherein the color channel value in the first light channel value is enhanced and the color channel value of the second light channel value is eliminated. The first optical channel value and the second optical channel value are calculated to obtain a third optical channel value, the third optical channel value is a channel value of the light emitted by the display screen, the difference value calculation is carried out on the first optical channel value and the third optical channel value, the channel value of the light emitted by the screen in the first optical channel value can be eliminated, and therefore a fourth optical channel value and a channel value of natural light of an environment where the electronic equipment is located are obtained.
It should be noted that the spectrum corresponding to the first optical channel value is any continuous spectrum captured in the external environment, including but not limited to part or all of visible light, near infrared, mid infrared, far infrared, ultraviolet light and other natural spectrums, or part or all of a plurality of different spectrums.
Specifically, the display screen is an RGB displayThe first filter part is RGB interference constructive filter, and the second filter part is RGB interference destructive filter. The first optical channel value collected by the optical sensor through the first light filtering part is CRGB(λ), the second optical channel collected by the optical sensor through the second filter is CD(lambda) by reacting CRGB(lambda) and CD(λ) fusion processing to obtain a third light channel value, i.e. RGB light C emitted by the RGB light source of the display screenS(λ) since the first optical channel value collected by the optical sensor is CRGB(λ) is derived from ambient light and from the light channel values C of the RGB light emitted by the RGB light source of the display screenS(λ) so pass CRGB(lambda) and CS(λ) a fourth channel value, i.e. the channel value of the ambient light, can be obtained. Thus, there is the following equation:
Cam(λ)=CRGB(λ)-CS(λ);
wherein Cam (λ) is the fourth channel value, CRGB(λ) is a first optical channel value, CSAnd (λ) is the third optical channel value.
In the embodiment of the present application, the parameter value of the light collected by the light sensor includes two parts, one part of the parameter value is from ambient light of the surrounding environment, and the other part of the parameter value is from a noise light source, that is, a display screen in a terminal device such as a mobile phone. The optical sensor obtains the constructive color spectrum data through the first light filtering part, and then obtains the destructive color spectrum data through the second light filtering part, the constructive color spectrum data and the destructive color spectrum data are the same as the luminous color spectrum of the display screen, so the optical sensor analyzes the color spectrum data obtained through the first light filtering part and the second light filtering part, a channel value of light emitted by the display screen can be obtained, and the channel value of environment light is obtained after the channel value is eliminated, thereby the optical detection assembly avoids the influence of the light emitted by the display screen when detecting the environment light, and the accuracy of the optical detection assembly on the environment light detection is improved. And through interference effect, the second light filtering parts of the first light filtering parts with the long color wave bands and the second light filtering parts with the destructive color wave bands are respectively designed, the data of the light sources with the destructive color wave bands and the data of the light sources with the long color wave bands are respectively collected for calculation, the channel value of the light emitted by the screen light is obtained, the relative value of the screen light channel can be dynamically obtained, the accurate screen light channel value can be obtained even if the screen is damaged or replaced in the later stage, not only can the pure environment light channel value be accurately obtained as far as possible on the premise of not increasing the complexity of structural design, the effect of eliminating screen light interference is achieved, the detection accuracy of the environment light sensor is improved, the environment light channel value can be dynamically obtained, and the flexibility of the environment light sensor is improved.
In some embodiments of the present application, the obtaining unit 302 is further configured to obtain N first sub-channel values of the first optical channel values, where N is an integer greater than 1;
the first determining unit 304 is further configured to calculate the N first sub-channel values and the second optical channel values respectively to obtain a third optical channel value, where the third optical channel value includes the N second sub-channel values.
In an embodiment of the present application, the N first sub-channel values include channel values of different color channels, for example, the display screen is an RGB display screen, the first light-filtering portion is an RGB interference constructive light-filtering element, the second light-filtering portion is an RGB interference destructive light-filtering element, N is 3, and the channel value of the three first sub-channel values divided into red light is CRGB(650) Green light channel value of CRGB(550) And a channel value of blue light of CRGB(450). The red, green and blue light has been eliminated in the second light channel value, the second light channel value is CD(lambda). Calculating each first sub-channel value to obtain a corresponding third optical channel value, wherein the third optical channel value comprises N second sub-channel values, and the second sub-channel values are red light C in RGB light emitted by the display screenS(650) Green light CS(550) And blue light CS(450)。
According to the embodiment of the application, the optical channel values of all the color channels in the color spectrum are respectively calculated, so that the third optical channel value, namely the optical channel value sent by the display screen light source, is obtained, and the accuracy of calculation of the optical channel value sent by the display screen light source is improved. The accuracy of the light detection component for detecting the ambient light is further improved.
In some embodiments of the present application, the second determining unit 306 is further configured to calculate the N first sub-channel values and the N second sub-channel values respectively to obtain a fourth optical channel value, where the fourth optical channel value includes N third sub-channel values.
In this embodiment, the N second sub-channel values are red light C in RGB light emitted by the display screenS(650) Green light CS(550) And blue light CS(450). The channel value of the first sub-channel value divided into red light is CRGB(650) Green light channel value of CRGB(550) And a channel value of blue light of CRGB(450). Respectively calculating the N first sub-channel values and the N second sub-channel values to obtain a fourth optical channel value, wherein the fourth optical channel value comprises N third sub-channel values which are respectively red channel values Cam(650) Green light channel value Cam(550) And C of blue lightam(450). Thus, there is the following equation:
Cam(650)=CRGB(650)-CS(650);
Cam(550)=CRGB(550)-CS(550);
Cam(450)=CRGB(450)-CS(450);
wherein, Cam(650) Is the channel value of red light in ambient light, Cam(550) Is the channel value of green light in ambient light, Cam(450) Is the channel value of blue light in ambient light, CRGB(650) Is the channel value of red light in the first light channel value, CRGB(650) Is the channel value of green light in the first light channel value, CRGB(650) Is the channel value of blue light in the first optical channel value, CS(650) For displaying the channel value of red light of the RGB light emitted by the screen, CS(550) For green light channel value, C, of RGB light emitted from a display screenS(450) Is the channel value of blue light in the RGB light emitted from the display screen.
According to the embodiment of the application, the optical channel values corresponding to each color channel in the first optical channel value and the third optical channel value are respectively calculated, so that the fourth optical channel value, namely the channel value of natural light of the environment where the electronic equipment is located, is obtained, and the accuracy of the optical detection component in detecting the ambient light is improved.
The ambient light detection device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The ambient light detection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The ambient light detection device provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and is not described here again to avoid repetition. In some embodiments of the present application, there is provided a light detection assembly 400, and fig. 4 shows one of the schematic structural diagrams of the light detection assembly 400 according to an embodiment of the present application, and as shown in fig. 4, the light detection assembly 400 includes: a light sensor 420 and a light transmissive member 440.
Wherein the optical sensor 420 comprises a collecting end for receiving light;
printing opacity subassembly 440 sets up in gathering the end, and printing opacity subassembly 440 includes:
first 442 and second 444, the first 442 being a color-constructive filter to enable the light sensor 420 to collect constructive color spectral data, and the second 444 being a color-destructive filter to enable the light sensor 420 to collect destructive color spectral data.
In an embodiment of the present application, a light detection assembly 400 is provided, which is disposed in an electronic device, and the light detection assembly 400 is capable of collecting ambient light of the electronic device. The light detection assembly 400 includes a light sensor 420, the light sensor 420 has a collection end capable of receiving light, and the light sensor 420 is capable of identifying parameters such as intensity of the light collected by the collection end. The light transmission component 440 is disposed at the collecting end of the optical sensor 420 through a coating process, the light transmission component 440 includes a first filter portion 442 and a second filter portion 444, light can be reflected and refracted multiple times through the first filter portion 442 and the second filter portion 444, and the collecting section can collect light passing through the first filter portion 442 and the second filter portion 444. The collecting end of the optical sensor 420 can collect the constructive color spectrum data through the first filter portion 442, and the collecting end of the optical sensor 420 can collect the destructive color spectrum data through the second filter portion 444, wherein the color spectrum data corresponds to the color spectrum of the display screen, for example, if the display screen is an RGB (red, green and blue) display screen, the first filter portion 442 is selected as an RGB spectrum constructive filter portion, and the second filter portion 444 is selected as an RGB spectrum destructive filter portion. It should be noted that the specific color spectrum may be selected from red, green, blue, and may also be selected from red, yellow, and blue, which is not limited in the embodiment of the present application.
The interference of the first and second optical filters 442 and 444 with respect to light depends on parameters such as the number of layers of the optical filter, the thickness of each layer, and the difference in refractive index between the interfaces of the layers, and the first and second optical filters 442 and 444 are controlled to allow the first optical filter 442 to constructively interfere with light of different wavelength bands and allow the second optical filter 444 to destructively interfere with light of different wavelength bands. The optical sensor 420 can selectively acquire data of different wave bands of the incident light source, and finally, signal processing is carried out on related data, and the light output by the screen in the collected light incoming amount can be removed by the optical sensor 420, so that the interference of light emitted by the display screen to the optical sensor 420 can be effectively avoided, and the detection accuracy of the ambient light intensity is effectively improved.
Specifically, for a terminal device such as a mobile phone, fig. 5 shows a schematic diagram of the light detection assembly 400 according to the embodiment of the present application for collecting light, as shown in fig. 5, the light detection assembly 400 includes a light sensor 420 and a light-transmitting assembly 440, and light emitted by the ambient light source a and the noise light source B is incident into a collection end of the light sensor 420 through the light-transmitting assembly 440.
In the embodiment of the present application, the parameter value of the light collected by the light sensor 420 includes two parts, one part of the parameter value is from an ambient light source a of the surrounding environment, and the other part of the parameter value is from a noise light source B, that is, a display screen in a terminal device such as a mobile phone. The optical sensor 420 obtains the constructive color spectrum data through the first optical filter portion 442, and then obtains the destructive color spectrum data through the second optical filter portion 444, the constructive color spectrum data and the destructive color spectrum data are the same as the luminous color spectrum of the display screen, so the optical sensor 420 can obtain the channel value of the light emitted by the display screen by analyzing the color spectrum data obtained through the first optical filter portion 442 and the second optical filter portion 444, and obtain the channel value of the ambient light after rejecting the channel value, thereby the optical detection assembly 400 avoids the influence of the light emitted by the display screen when detecting the ambient light, and the accuracy of the optical detection assembly 400 in detecting the ambient light is improved. And through the interference effect, the second optical filter portion 444 with the color wave band long first optical filter portion 442 and the color wave band cancellation are respectively designed, the data with the color wave band light source cancellation and the data with the color wave band light source cancellation are respectively collected to calculate, the channel value of the light emitted by the screen light is obtained, the relative value of the screen light channel can be dynamically obtained, even if the screen is damaged in the later stage or the screen is replaced, the accurate screen light channel value can be obtained, not only can the pure environment light channel value be accurately obtained as far as possible on the premise of not increasing the complexity of the structural design, the effect of eliminating the screen light interference is achieved, the precision of the detection of the environment light sensor 420 is improved, and the environment light channel value can be dynamically obtained, so that the flexibility of the environment light sensor 420 is improved. Through interference effect, the first filter portion 442 with the long color band and the second filter portion 444 with the destructive color band are designed respectively, the data with the destructive color band light source and the data with the long color band light source are collected respectively for calculation, the channel value of the light emitted by the screen light is obtained, the relative value of the screen light channel can be obtained dynamically, even if the screen is damaged in the later stage or the screen is replaced, the accurate screen light channel value can be obtained, not only can the pure environment light channel value be obtained accurately as far as possible on the premise of not increasing the complexity of the structural design, the effect of eliminating the screen light interference is achieved, the precision of detection of the environment light sensor 420 is improved, and the environment light channel value can be obtained dynamically, and the flexibility of the environment light sensor 420 is improved.
In some embodiments of the present application, fig. 6 illustrates one of the schematic structural diagrams of the light transmission assembly 440 according to an embodiment of the present application, and as shown in fig. 6, the light transmission assembly 440 further includes: and a base 446.
The first optical filter element 442 and the second optical filter element 444 are disposed on the substrate 446, and the first optical filter element 442 and the second optical filter element 444 are spaced apart from each other.
In the embodiment of the present application, the base 446 has a first surface and a second surface in the thickness direction of the base 446, the first optical filter portion 442 and the second optical filter portion 444 are arranged on the first surface of the base 446 at intervals, and the second surface of the base 446 is arranged to be attached to the collecting end of the optical sensor 420, so that the collecting end of the optical sensor 420 can be collected by both the first optical filter portion 442 and the second optical filter portion 444.
The first optical filter element 442 and the second optical filter element 444 are disposed on the substrate 446 at an interval, so that a gap is formed between the first optical filter element 442 and the second optical filter element 444, which is convenient for the optical sensor 420 to obtain the chromatographic data of the light passing through the first optical filter element 442 and the second optical filter element 444, and avoids the light passing through two different optical filter elements respectively and then collected by the collection end of the sensor due to the overlapping arrangement of the first optical filter element 442 and the second optical filter element 444.
In some embodiments, the base 446 is a transparent substrate made of a transparent material, the first filter portion 442 and the second filter portion 444 are disposed on the transparent substrate at intervals, and the light sensor 420 in the light detection assembly 400 can collect light passing through the base 446 only.
Specifically, the first optical filter 442 and the second optical filter 444 may be distributed on the substrate 446 from left to right, fig. 7 shows a second schematic structural view of the light-transmitting component 440 according to the embodiment of the present application, as shown in fig. 7, the substrate 446 is a light-transmitting coated film having a quadrilateral shape, the first optical filter 442 and the second optical filter 444 are disposed on the substrate 446, the coated film on the left side of the surface of the substrate 446 is the first optical filter 442, and the coated film on the right side of the surface of the substrate 446 is the second optical filter 444.
In some embodiments, the first and second optical filter portions 442 and 444 may be optionally disposed on the substrate 446 by a plating process.
In other embodiments, the first and second optical filters 442, 444 are disposed on the substrate 446 by means of a mosaic.
In these embodiments, two insertion holes are formed in the base 446, and the first optical filter portion 442 and the second optical filter portion 444 are respectively inserted into the two insertion holes, so that the light passing through the first optical filter portion 442 and the second optical filter portion 444 can be collected by the optical sensor 420 without passing through the base 446.
In some embodiments of the present application, the first and second optical filters 442, 444 may have an area fraction of less than 50% on the substrate 446.
In the embodiment of the present application, the area of the first optical filter portion 442 and the area of the second optical filter portion 444 covered on the substrate 446 are a first area, the total area of the substrate 446 is a second area, and the ratio of the first area to the second area is smaller than 4/2, so that the first optical filter portion 442 and the second optical filter portion 444 are concentrated on one side of the surface of the substrate 446, which makes it suitable for electronic devices with a small gap between the display screen and the frame.
Specifically, the light detection assembly 400 is disposed in the black border between the display screen and the bezel, such that the light detection assembly 400 does not sacrifice the screen's footprint in the electronic device. By arranging the first and second optical filter portions 442, 444 together on one side of the base 446, the space between the first and second optical filter portions 442, 444 can be made more compact. In assembling the light detecting package 400, it is convenient to align the first and second filter portions 442 and 444 with the black border. The light detection assembly 400 can meet the requirements of the full-screen mobile phone and the design requirement of reducing the black edge.
In some embodiments of the present application, the first and second filter portions 442 and 444 are filter members capable of sensing light for red, green and blue channel light sources; or the first filter portion 442 and the second filter portion 444 are filter members capable of sensing light for red, yellow and blue channel light sources.
In the embodiment of the present application, the first optical filter portion 442 and the second optical filter portion 444 are selected as filter members for filtering color channels, and the optical detection assembly 400 is used for collecting ambient light, and processing the color spectrum data collected by the first optical filter portion 442 and the second optical filter portion 444 to obtain the ambient light without the influence of screen light. Therefore, the color spectrum corresponding to the first and second optical filter portions 442 and 444 is set corresponding to the color spectrum of the display screen, so that the effect of the optical detection assembly 400 in filtering the display screen light in the collected light can be ensured.
Specifically, in the case where the display screen is an RGB display screen, the first filter portion 442 and the second filter portion 444 are provided as filter members capable of sensing light for red, green and blue channel light sources. In the case where the display screen is a red-yellow-blue display screen, the first filter portion 442 and the second filter portion 444 are provided as filter members capable of sensing light to the red-yellow-blue channel light source.
It is to be understood that the above description of the display screen is not a specific limitation of the display screen, and the color spectrums of the first and second filter portions 442 and 444 correspond to the kinds of the display screen.
In some embodiments, the first optical filter portion 442 and the second optical filter portion 444 are both selected to be a plated film structure.
In the embodiment of the present application, the substrate 446 is selected as a coating structure, and the substrate 446 having the first optical filter portion 442 and the second optical filter portion 444 is disposed on the substrate 446, and then the substrate 446 having the first optical filter portion 442 and the second optical filter portion 444 is disposed on the collecting end of the optical sensor 420 through a coating process.
Specifically, fig. 8 shows a second schematic structural diagram of the light detection assembly 400 according to the embodiment of the present application, and as shown in fig. 8, the first optical filter portion 442 and the second optical filter portion 444 are respectively disposed on the substrate 446 in the form of plated films, so as to form the light transmission assembly 440. The light-transmitting component 440 is disposed at the collecting end of the optical sensor 420 in a film-coated manner, and the optical sensor 420 is connected to the circuit board of the electronic device through the pins 460.
In some embodiments of the present application, there is provided a method for manufacturing a light detection assembly, and fig. 9 is a flowchart of a method for manufacturing a light detection assembly according to an embodiment of the present application, and as shown in fig. 9, the method for manufacturing a light detection assembly is used for manufacturing a light detection assembly in any of the above embodiments, and the specific method includes:
step 902, coating a film on a substrate to form a first optical filter part and a second optical filter part so as to obtain a light-transmitting component;
step 904, a light-transmitting component is coated on the acquisition end of the light sensor by a coating process.
In the embodiment of the application, in the process of manufacturing the light detection assembly, the light transmission assembly needs to be prepared first. First, the first coating film and the second coating film corresponding to the first light filtering part and the second light filtering part are arranged at the corresponding positions of the base body, and therefore the light-transmitting component is obtained. It is to be noted that the positions of the first optical filter portion and the second optical filter portion are related to the arrangement position of the substrate in the electronic device. And then arranging the light-transmitting component at the acquisition end of the light sensor through a film coating process.
The embodiment of the application prepares the light-transmitting component through the film coating process, realizes the effect of flexibly configuring the first light-filtering part and the second light-filtering part on the substrate, and can flexibly select the size and the position of the first light-filtering part and the second light-filtering part according to the specific setting position of the light detection component. And the prepared light-transmitting component is arranged at the acquisition end of the optical sensor through a film coating process, so that the production cost of the light detection component is further reduced.
In the embodiment of the present application, the parameter value of the light collected by the light sensor includes two parts, one part of the parameter value is from ambient light of the surrounding environment, and the other part of the parameter value is from a noise light source, that is, a display screen in a terminal device such as a mobile phone. The optical sensor obtains the constructive color spectrum data through the first light filtering part, and then obtains the destructive color spectrum data through the second light filtering part, the constructive color spectrum data and the destructive color spectrum data are the same as the luminous color spectrum of the display screen, so the optical sensor analyzes the color spectrum data obtained through the first light filtering part and the second light filtering part, a channel value of light emitted by the display screen can be obtained, and the channel value of environment light is obtained after the channel value is eliminated, thereby the optical detection assembly avoids the influence of the light emitted by the display screen when detecting the environment light, and the accuracy of the optical detection assembly on the environment light detection is improved. And through interference effect, the second light filtering parts of the first light filtering parts with the long color wave bands and the second light filtering parts with the destructive color wave bands are respectively designed, the data of the light sources with the destructive color wave bands and the data of the light sources with the long color wave bands are respectively collected for calculation, the channel value of the light emitted by the screen light is obtained, the relative value of the screen light channel can be dynamically obtained, the accurate screen light channel value can be obtained even if the screen is damaged or replaced in the later stage, not only can the pure environment light channel value be accurately obtained as far as possible on the premise of not increasing the complexity of structural design, the effect of eliminating screen light interference is achieved, the detection accuracy of the environment light sensor is improved, the environment light channel value can be dynamically obtained, and the flexibility of the environment light sensor is improved.
In some embodiments of the present application, an electronic device 1000 is provided, and fig. 10 shows one of the schematic structural diagrams of the electronic device 1000 according to an embodiment of the present application, and as shown in fig. 10, the electronic device 1000 includes: a body 1020, a display screen 1040, and a light detection assembly 400. The light detection package 400 is the light detection package 400 in any of the above embodiments, and the light detection package 400 is disposed on the body 1020.
In this embodiment, the electronic device 1000 includes a body 1020 and a display screen 1040, the display screen 1040 is configured to display image information, the light detection assembly 400 is configured to collect natural light of an environment where the electronic device 1000 is located, the electronic device 1000 further includes a processor, the processor is connected to the light detection assembly 400, and the processor receives a signal sent by the light detection assembly 400 and adjusts brightness of the display screen 1040 according to the received signal.
Specifically, when the intensity of the ambient light is detected to be high, the brightness of the display screen 1040 is also adjusted to be high, so as to avoid that the user cannot see the picture displayed on the display screen 1040 clearly under the influence of the ambient light. When the intensity of the ambient light is detected to be small, the brightness of the display screen 1040 is also adjusted to be small, so that the problem of poor user experience caused by the fact that the display screen 1040 is too bright in a dark environment is solved.
Since the light detection module 400 in the electronic device 1000 is selected as the light detection module 400 in any of the above embodiments, all the advantages of the light detection module 400 are provided.
In the embodiment of the present application, the parameter value of the light collected by the light sensor includes two parts, one part of the parameter value is from ambient light of the surrounding environment, and the other part of the parameter value is from a noise light source, that is, a display screen in a terminal device such as a mobile phone. The optical sensor obtains the constructive color spectrum data through the first light filtering part, and then obtains the destructive color spectrum data through the second light filtering part, the constructive color spectrum data and the destructive color spectrum data are the same as the luminous color spectrum of the display screen, so that the optical sensor can obtain the channel value of the light emitted by the display screen 1040 by analyzing the color spectrum data obtained through the first light filtering part and the second light filtering part, and the channel value of the ambient light is obtained after the elimination of the channel value, thereby realizing that the light detection assembly 400 avoids the influence of the light emitted by the display screen 1040 when detecting the ambient light, and improving the accuracy of the light detection assembly 400 on the ambient light detection. And through interference effect, the second light filtering parts of the first light filtering parts with the long color wave bands and the second light filtering parts with the destructive color wave bands are respectively designed, the data of the light sources with the destructive color wave bands and the data of the light sources with the long color wave bands are respectively collected for calculation, the channel value of the light emitted by the screen light is obtained, the relative value of the screen light channel can be dynamically obtained, the accurate screen light channel value can be obtained even if the screen is damaged or replaced in the later stage, not only can the pure environment light channel value be accurately obtained as far as possible on the premise of not increasing the complexity of structural design, the effect of eliminating screen light interference is achieved, the detection accuracy of the environment light sensor is improved, the environment light channel value can be dynamically obtained, and the flexibility of the environment light sensor is improved.
In some embodiments of the present application, fig. 11 shows a second schematic structural diagram of the electronic device 1000 according to an embodiment of the present application, and as shown in fig. 11, the body 1020 includes a frame 1022 and a cover 1024.
The display screen 1040 is disposed in the frame 1022, and the display screen 1040 and the frame 1022 are disposed at an interval; the cover plate 1024 is disposed on the frame 1022, and the cover plate 1024 is used for covering the display screen 1040;
the light guide 1080 is disposed between the display screen 1040 and the frame 1022, the light detection assembly 400 is disposed opposite to the light guide 1080, and the light guide 1080 can transmit the ambient light transmitted through the cover plate 1024 and the light emitted from the display screen 1040 to the light detection assembly 400.
In this embodiment, the body 1020 of the electronic device 1000 includes a frame 1022, a cover plate 1024, a back plate and a display screen 1040, the frame 1022 is used for supporting and connecting the cover plate 1024 and the back plate, the cover plate 1024 covers above the display screen 1040, the cover plate 1024 is a light-transmitting structure, light output by the display screen 1040 passes through the cover plate 1024 and is output outwards, and a user can observe light output by the display screen 1040 through the cover plate 1024. The area of the display screen 1040 is smaller than the milnaci of the cover plate 1024, a gap is arranged between the display screen 1040 and the frame body 1022, the gap between the display screen 1040 and the frame body 1022 is a 'black edge' of the electronic device 1000, the light guide member 1080 is arranged at the gap position between the display screen 1040 and the frame body 1022, the light detection assembly 400 is arranged opposite to the light guide member 1080, light emitted by the display screen 1040 and external environment light are transmitted to the light detection assembly 400 through the light guide member 1080, so that the light detection assembly 400 can collect the light emitted by the display screen 1040 and the environment light.
Specifically, the display screen 1040 includes a light emitting member, a polarizer, and the substrate body 1020 further includes a light shielding portion 1060, the light shielding portion 1060 is selected as a light shielding foam, the polarizer is disposed between the light emitting member and the cover plate 1024, the substrate is disposed on a lower surface of the light emitting member, the light shielding portion 1060 is disposed on a lower surface of the substrate, an edge of the light emitting member is within a coverage range of the cover plate 1024, a gap is formed between an edge of the display screen 1040 and an edge of the cover plate 1024, and the light guiding member 1080 and the light detecting assembly 400 are disposed between the gaps.
It can be understood that, when the electronic device 1000 is a terminal device such as a mobile phone, the gap between the display screen 1040 and the frame 1022 is a black edge of the screen of the electronic device 1000, and the light detection assembly 400 is disposed at the black edge, so as to collect natural light of the environment where the electronic device 1000 is located.
In some embodiments of the present application, fig. 12 shows a third schematic structural diagram of an electronic device 1000 according to an embodiment of the present application, and as shown in fig. 12, the electronic device 1000 further includes: light-shielding portion 1060 and light-transmitting hole 1062. The light shielding portion 1060 is disposed on the display screen 1040, the light shielding portion 1060 is disposed between the main body 1020 and the display screen 1040, the light hole 1062 is disposed on the light shielding portion 1060, the light detection assembly 400 is disposed opposite to the light hole 1062, and light emitted from the display screen 1040 and ambient light are transmitted to the light detection assembly 400 through the light hole 1062. .
In the embodiment of the present application, the electronic device 1000 further includes a light shielding portion 1060, the light shielding portion 1060 is mounted on the display screen 1040, and the light shielding portion 1060 is located between the display screen 1040 and the back plate. The light shielding portion 1060 makes the display screen 1040 black in the closed state. The light-shielding portion 1060 is provided with a light-transmitting hole 1062, and the light detection unit 400 is attached to a position facing the light-transmitting hole 1062. The natural light of the environment where the electronic device 1000 is located can be transmitted to the light detecting assembly 400 through the cover 1024 and the light holes 1062, and the screen light emitted from the display screen 1040 can also be transmitted to the light detecting assembly 400 through the light holes 1062.
Specifically, the display screen 1040 includes a light emitting element, a polarizing plate, and a base material, the electronic device 1000 further includes a light shielding portion 1060 selected as a light shielding sponge, the polarizing plate is disposed between the light emitting element and the cover plate 1024, the base material is disposed on a lower surface of the light emitting element, the light shielding portion 1060 is disposed on a lower surface of the base material, the light shielding portion 1060 is provided with a light hole 1062, and the light detection assembly 400 is disposed at a position corresponding to the light hole 1062 to collect light.
Optionally, an electronic device 1300 is further provided in an embodiment of the present application, and fig. 13 shows a block diagram of a structure of the electronic device according to the embodiment of the present application, as shown in fig. 13, the electronic device includes a processor 1302, a memory 1304, and a program or an instruction stored in the memory 1304 and executable on the processor 1302, and when the program or the instruction is executed by the processor 1302, the process of the embodiment of the method is implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 14 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1400 includes, but is not limited to: radio unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, and processor 1410.
Those skilled in the art will appreciate that the electronic device 1400 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1410 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 14 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 1410 is configured to obtain a first optical channel value and a second optical channel value of the light collected by the optical sensor, where the first optical channel value is a channel value of the light passing through the first optical filter portion, and the second optical channel value is a channel value of the light passing through the second optical filter portion; determining a third optical channel value according to the first optical channel value and the second optical channel value, wherein the third optical channel value is a channel value of the noise light source; and determining a fourth optical channel value according to the first optical channel value and the third optical channel value, wherein the fourth optical channel value is the channel value of the ambient light.
In the embodiment of the present application, the parameter value of the light collected by the light sensor includes two parts, one part of the parameter value is from ambient light of the surrounding environment, and the other part of the parameter value is from a noise light source, that is, a display screen in a terminal device such as a mobile phone. The optical sensor obtains the constructive color spectrum data through the first light filtering part, and then obtains the destructive color spectrum data through the second light filtering part, the constructive color spectrum data and the destructive color spectrum data are the same as the luminous color spectrum of the display screen, so the optical sensor analyzes the color spectrum data obtained through the first light filtering part and the second light filtering part, a channel value of light emitted by the display screen can be obtained, and the channel value of environment light is obtained after the channel value is eliminated, thereby the optical detection assembly avoids the influence of the light emitted by the display screen when detecting the environment light, and the accuracy of the optical detection assembly on the environment light detection is improved. And through interference effect, the second light filtering parts of the first light filtering parts with the long color wave bands and the second light filtering parts with the destructive color wave bands are respectively designed, the data of the light sources with the destructive color wave bands and the data of the light sources with the long color wave bands are respectively collected for calculation, the channel value of the light emitted by the screen light is obtained, the relative value of the screen light channel can be dynamically obtained, the accurate screen light channel value can be obtained even if the screen is damaged or replaced in the later stage, not only can the pure environment light channel value be accurately obtained as far as possible on the premise of not increasing the complexity of structural design, the effect of eliminating screen light interference is achieved, the detection accuracy of the environment light sensor is improved, the environment light channel value can be dynamically obtained, and the flexibility of the environment light sensor is improved.
Optionally, the processor 1410 is further configured to obtain N first sub-channel values in the first optical channel value, where N is an integer greater than 1; and calculating the N first sub-channel values and the second optical channel values respectively to obtain a third optical channel value, wherein the third optical channel value comprises N second sub-channel values.
According to the embodiment of the application, the optical channel values of all the color channels in the color spectrum are respectively calculated, so that the third optical channel value, namely the optical channel value sent by the display screen light source, is obtained, and the accuracy of calculation of the optical channel value sent by the display screen light source is improved. The accuracy of the light detection component for detecting the ambient light is further improved.
Optionally, the processor 1410 is further configured to calculate the N first sub-channel values and the N second sub-channel values respectively to obtain a fourth optical channel value, where the fourth optical channel value includes N third sub-channel values.
According to the embodiment of the application, the optical channel values corresponding to each color channel in the first optical channel value and the third optical channel value are respectively calculated, so that the fourth optical channel value, namely the channel value of natural light of the environment where the electronic equipment is located, is obtained, and the accuracy of the optical detection component in detecting the ambient light is improved.
It should be understood that in the embodiment of the present application, the input Unit 1404 may include a Graphics Processing Unit (GPU) 14041 and a microphone 14042, and the Graphics processor 14041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode.
The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1407 includes a touch panel 14071 and other input devices 14072. Touch panel 14071, also referred to as a touch screen. The touch panel 14071 may include two parts of a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1409 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 1410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (15)

1. An ambient light detection method applied to an electronic device, the electronic device comprising: the light transmission component comprises a first light filtering part and a second light filtering part, the first light filtering part is a color phase long light filtering piece, the second light filtering part is a color phase light eliminating light filtering piece, and the ambient light detection method comprises the following steps:
acquiring a first optical channel value and a second optical channel value of an optical signal acquired by the optical sensor, wherein the first optical channel value is a channel value of light passing through the first optical filter part, and the second optical channel value is a channel value of light passing through the second optical filter part;
determining a third optical channel value according to the first optical channel value and the second optical channel value, wherein the third optical channel value is a channel value of a noise light source;
and determining a fourth optical channel value according to the first optical channel value and the third optical channel value, wherein the fourth optical channel value is a channel value of the ambient light.
2. The ambient light detection method of claim 1, wherein the determining a third light channel value from the first light channel value and the second light channel value comprises:
acquiring N first sub-channel values in the first optical channel values, wherein N is an integer greater than 1;
and calculating the N first sub-channel values and the second optical channel value respectively to obtain a third optical channel value, wherein the third optical channel value comprises N second sub-channel values.
3. The ambient light detection method of claim 2, wherein the determining a fourth light channel value from the first light channel value and the third light channel value comprises:
and calculating the N first sub-channel values and the N second sub-channel values respectively to obtain a fourth optical channel value, wherein the fourth optical channel value comprises N third sub-channel values.
4. An ambient light detection device applied to an electronic apparatus, the electronic apparatus comprising: optical sensor and printing opacity subassembly, the printing opacity subassembly includes first light filtering part and second light filtering part, first light filtering part is the chromatic phase length filter spare, second light filtering part is the chromatic phase extinction filter spare, the ambient light detection device includes:
an obtaining unit, configured to obtain a first optical channel value and a second optical channel value of an optical signal collected by the optical sensor, where the first optical channel value is a channel value of light passing through the first optical filter portion, and the second optical channel value is a channel value of light passing through the second optical filter portion;
a first determining unit, configured to determine a third optical channel value according to the first optical channel value and the second optical channel value, where the third optical channel value is a channel value of a noise light source;
a second determining unit, configured to determine a fourth optical channel value according to the first optical channel value and the third optical channel value, where the fourth optical channel value is a channel value of ambient light.
5. The ambient light detection device according to claim 4,
the acquiring unit is further configured to acquire N first sub-channel values in the first optical channel value, where N is an integer greater than 1;
the first determining unit is further configured to calculate the N first sub-channel values and the second optical channel values respectively to obtain a third optical channel value, where the third optical channel value includes N second sub-channel values.
6. The ambient light detection device according to claim 5,
the second determining unit is further configured to calculate the N first sub-channel values and the N second sub-channel values, respectively, to obtain a fourth optical channel value, where the fourth optical channel value includes N third sub-channel values.
7. A light detection assembly, comprising:
the optical sensor comprises a collecting end for receiving light;
the printing opacity subassembly set up in gather the end, the printing opacity subassembly includes: the first optical filter part is a color phase-constructive optical filter so that the optical sensor can collect constructive color spectrum data, and the second optical filter part is a color phase-destructive optical filter so that the optical sensor can collect destructive color spectrum data.
8. A light detection assembly as recited in claim 7, wherein the light transmissive assembly further comprises:
the first light filtering part and the second light filtering part are arranged on the base body and distributed at intervals.
9. A light detection assembly as defined in claim 7 or 8,
the first light filtering part and the second light filtering part are filtering pieces capable of sensing red, green and blue channel light sources; or
The first light filtering part and the second light filtering part are filtering pieces capable of sensing light of red, yellow and blue channel light sources.
10. A light detection assembly as defined in claim 7 or 8,
the first light filtering part and the second light filtering part are of film coating structures.
11. A manufacturing method of a light detection package for manufacturing a light detection package according to any one of claims 7 to 10, the manufacturing method comprising:
coating a film on a substrate to form the first light-filtering part and the second light-filtering part so as to obtain the light-transmitting component;
and coating the light-transmitting component on the acquisition end of the optical sensor by adopting a coating process.
12. An electronic device, comprising:
a body;
the display screen is arranged on the body;
the light detection assembly of any one of claims 7 to 10, disposed at the body.
13. The electronic device of claim 12, wherein the body comprises:
the display screen is arranged in the frame body, and the display screen and the frame body are arranged at intervals;
the cover plate is arranged on the frame body and used for covering the display screen;
the light guide piece is arranged between the display screen and the frame body, the light detection assembly is arranged opposite to the light guide piece, and the light guide piece can conduct the ambient light conducted through the cover plate and the light emitted by the display screen to the light detection assembly.
14. The electronic device of claim 12, further comprising:
the shading part is arranged on the display screen and is positioned between the body and the display screen;
the light trap, set up in shading portion, the light detection subassembly with the light trap sets up relatively, light and ambient light that display screen sent pass through the light trap conduction extremely the light detection subassembly.
15. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the method according to any one of claims 1 to 3.
CN202111163521.5A 2021-09-30 2021-09-30 Ambient light detection method, detection device, light detection module, and electronic apparatus Pending CN113865704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111163521.5A CN113865704A (en) 2021-09-30 2021-09-30 Ambient light detection method, detection device, light detection module, and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111163521.5A CN113865704A (en) 2021-09-30 2021-09-30 Ambient light detection method, detection device, light detection module, and electronic apparatus

Publications (1)

Publication Number Publication Date
CN113865704A true CN113865704A (en) 2021-12-31

Family

ID=79001238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111163521.5A Pending CN113865704A (en) 2021-09-30 2021-09-30 Ambient light detection method, detection device, light detection module, and electronic apparatus

Country Status (1)

Country Link
CN (1) CN113865704A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3404379A1 (en) * 2017-05-15 2018-11-21 Ams Ag Optical device for angle measurements
CN111968603A (en) * 2020-08-28 2020-11-20 Oppo广东移动通信有限公司 Display device, electronic apparatus, and control method of electronic apparatus
CN111968601A (en) * 2020-08-28 2020-11-20 Oppo广东移动通信有限公司 Display device, electronic apparatus, and control method of electronic apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3404379A1 (en) * 2017-05-15 2018-11-21 Ams Ag Optical device for angle measurements
CN111968603A (en) * 2020-08-28 2020-11-20 Oppo广东移动通信有限公司 Display device, electronic apparatus, and control method of electronic apparatus
CN111968601A (en) * 2020-08-28 2020-11-20 Oppo广东移动通信有限公司 Display device, electronic apparatus, and control method of electronic apparatus

Similar Documents

Publication Publication Date Title
CN110941112B (en) LCD display screen, electronic equipment and manufacturing method of LCD display screen
EP3637316A1 (en) Lcd fingerprint recognition system, under-screen optical fingerprint recognition device, and electronic device
AU2016218434B2 (en) Electronic device with color sensing ambient light sensor
DE102010028553B4 (en) Ambient light detector assembly comprising a color sensor and a color neutral sensor (Clear Sensor) for infrared suppression and an electronic device
WO2021087742A1 (en) Under-screen fingerprint recognition apparatus, lcd fingerprint recognition system, and electronic device
CN104995909B (en) The infrared image enhancement of time interval
CN111066031B (en) Under-screen fingerprint identification device, LCD fingerprint identification system and electronic equipment
CN107241467A (en) Electronic installation
US20140340364A1 (en) Touch display panel
CN107704024B (en) Display screen and terminal equipment
CN103781261A (en) Infrared lamp control method for infrared network camera
KR20210010533A (en) Optical fingerprint identification assembly and terminal
US20200193120A1 (en) Fingerprint identification apparatus
CN110287908A (en) Calibration method, electronic equipment and non-volatile computer readable storage medium storing program for executing
CN112034650A (en) Color film substrate, display panel and display device
CN110928032A (en) Liquid crystal display panel and liquid crystal display device
US10490160B2 (en) Light sensor with spectral sensing and color matching function channels
WO2020155117A1 (en) Image processing method, storage medium and electronic device
US20210396589A1 (en) Electronic device, method and apparatus for measuring color temperature of ambient light, and storage medium
CN113865704A (en) Ambient light detection method, detection device, light detection module, and electronic apparatus
CN115479665A (en) Ambient light detection method and electronic equipment
CN110286716A (en) Display device, electronic equipment and image acquiring method
CN113865703A (en) Ambient light detection method, detection device, light detection module, and electronic apparatus
CN212134988U (en) Light guide assembly and screen
CN210895484U (en) Under-screen fingerprint identification device, LCD fingerprint identification system and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination