CN110730262A - Environment brightness value detection method and device and electronic equipment - Google Patents

Environment brightness value detection method and device and electronic equipment Download PDF

Info

Publication number
CN110730262A
CN110730262A CN201911051897.XA CN201911051897A CN110730262A CN 110730262 A CN110730262 A CN 110730262A CN 201911051897 A CN201911051897 A CN 201911051897A CN 110730262 A CN110730262 A CN 110730262A
Authority
CN
China
Prior art keywords
display screen
brightness value
light
determining
value
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
CN201911051897.XA
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201911051897.XA priority Critical patent/CN110730262A/en
Publication of CN110730262A publication Critical patent/CN110730262A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/006Electronic inspection or testing of displays and display drivers, e.g. of LED or LCD displays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly

Abstract

The embodiment of the disclosure discloses an environment brightness value detection method and device and electronic equipment. One embodiment of the method comprises: in response to the fact that the terminal meets the preset condition, acquiring a brightness value acquired by a light sensing sensor covered by a display screen of the terminal through a light sensing area on the display screen; acquiring the brightness value of a display screen and the target color displayed in a light sensing area; determining the interference value of the display screen to the light sensor according to the brightness value and the target color of the display screen; and taking the difference between the brightness value acquired by the light sensor and the interference value of the display screen on the light sensor as the brightness value of the detected environment where the display screen is located. The embodiment realizes the detection of the environment brightness value on the premise of reducing the storage space occupation of the electronic equipment.

Description

Environment brightness value detection method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for detecting an environmental brightness value, and an electronic device.
Background
As is well known, in electronic devices such as smart phones, a light sensor installed in the electronic device detects a brightness value of an environment in which a display screen is located.
In order to widen the area occupied by the display screen on the electronic device, the light-sensitive sensor may be disposed below the display screen.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides an environment brightness value detection method and device and electronic equipment, which are used for realizing detection of an environment brightness value on the premise of reducing the storage space occupation of the electronic equipment.
In a first aspect, an embodiment of the present disclosure provides an environment brightness value detection method applied to a terminal, where the method includes: in response to the fact that the terminal meets the preset condition, acquiring a brightness value acquired by a light sensing sensor covered by a display screen of the terminal through a light sensing area on the display screen; acquiring the brightness value of a display screen and the target color displayed in a light sensing area; determining the interference value of the display screen to the light sensor according to the brightness value and the target color of the display screen; and taking the difference between the brightness value acquired by the light sensor and the interference value of the display screen on the light sensor as the brightness value of the detected environment where the display screen is located.
In a second aspect, an embodiment of the present disclosure provides an ambient brightness value detection apparatus, applied to a terminal, the apparatus including: the terminal comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for responding to the fact that the terminal meets the preset condition, and acquiring the brightness value acquired by a light sensing sensor covered by a display screen of the terminal through a light sensing area on the display screen; the second acquisition unit is used for acquiring the brightness value of the display screen and the target color displayed in the light sensing area; the determining unit is used for determining the interference value of the display screen on the light sensor according to the brightness value and the target color of the display screen; and the detection unit is used for taking the difference between the brightness value acquired by the light sensor and the interference value of the display screen on the light sensor as the detected brightness value of the environment where the display screen is located.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the ambient brightness value detection method according to the first aspect.
In a fourth aspect, the disclosed embodiments provide a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the steps of the ambient brightness value detection method according to the first aspect.
According to the method and the device for detecting the environmental brightness value and the electronic equipment, after the terminal is determined to meet the preset condition, the brightness value acquired by the light sensation sensor covered by the display screen of the terminal through the light sensation area on the display screen can be acquired. The brightness value of the display screen and the target color displayed in the light sensing area can also be obtained. Furthermore, the interference value of the display screen to the photosensitive sensor can be determined according to the brightness value and the target color of the display screen. Further, the difference between the brightness value acquired by the light sensor and the interference value of the display screen on the light sensor can be used as the detected brightness value of the environment where the display screen is located. Because a large number of color characteristics and interference values corresponding to each color characteristic do not need to be stored in advance, the occupation of the storage space of the electronic equipment is reduced.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a flow diagram of one embodiment of an ambient brightness value detection method according to the present disclosure;
fig. 2 is a schematic diagram of an application scenario of the ambient brightness value detection method according to the present disclosure;
FIG. 3 is a flow diagram of yet another embodiment of an ambient brightness value detection method according to the present disclosure;
FIG. 4 is a schematic structural diagram of an embodiment of an ambient brightness value detection apparatus according to the present disclosure;
FIG. 5 is an exemplary system architecture to which the ambient brightness value detection method of one embodiment of the present disclosure may be applied;
fig. 6 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, a flow of an embodiment of an ambient brightness value detection method according to the present disclosure is shown. The method for detecting the ambient brightness value as shown in fig. 1 includes the following steps:
step 101, in response to determining that the terminal meets a preset condition, acquiring a brightness value acquired by a light sensing sensor covered by a display screen of the terminal through a light sensing area on the display screen.
In this embodiment, in response to determining that the terminal satisfies the preset condition, the electronic device executing the environment brightness value detection method may acquire the brightness value collected by the light-sensing sensor covered by the display screen of the terminal through the light-sensing area of the display screen. The display screen may be a display screen mounted on the terminal. In practical applications, the Display screen may be a Light Emitting Diode (LED) Display screen or a Liquid Crystal Display (LCD) Display screen. Optionally, the display screen may be an AMOLED (Active-matrix organic light-emitting diode) display screen.
The light sensing area may be an area preset in the display screen and used as a light sensor to sense light. In practice, the light-sensing area may be a smaller area. Alternatively, the light sensing area may be located at an upper end area of the display screen.
The light sensor may be covered by the display screen. In some application scenarios, the light-sensing area may completely cover the light-sensing sensor. The light sensing sensor may sense light transmitted from the light sensing area. Therefore, the light-sensing sensor detects the brightness value of the light passing through the light-sensing area.
It should be noted that the electronic device executing the ambient brightness value detection method and the terminal may be the same electronic device or different electronic devices. When the two are the same electronic device, the electronic device executing the environment brightness value detection method may detect the brightness value of the environment in which the display screen mounted thereon is located. When the two are not the same electronic device, the electronic device executing the environment brightness value detection method may detect the brightness value of the environment where the display screen installed in the terminal is located.
In some optional implementations, the preset condition may include at least one of: the display screen of the terminal is in a bright screen state; the terminal is in a preset display mode; the terminal currently runs a preset program; and the program currently operated by the terminal is in a preset mode. Here, the above-mentioned bright screen state may refer to a state in which the display screen is lit.
In these alternative implementations, the amount of computation of the electronic device executing the environment brightness value detection method is reduced by setting a limit condition for detecting the brightness value of the environment where the display screen is located.
And 102, acquiring the brightness value of the display screen and the target color displayed in the light sensing area.
In this embodiment, in response to determining that the terminal satisfies the preset condition, the electronic device executing the environment brightness value detection method may acquire the brightness value of the display screen and the target color displayed in the light sensing area on the display screen.
The target color may be the only color displayed in the light-sensing area, or may be one color selected from a plurality of colors displayed in the light-sensing area.
Specifically, the electronic device executing the environment brightness value detection method may obtain the brightness value of the display screen and the target color displayed in the light sensing area in real time through a built-in interface.
And 103, determining the interference value of the display screen to the light sensor according to the brightness value and the target color of the display screen.
In this embodiment, after obtaining the brightness value of the display screen and the target color displayed in the light sensing area, the electronic device executing the environment brightness value detection method may further determine the interference value of the display screen on the light sensing sensor according to the determined brightness value and the target color.
In practice, when the display screen is in a bright state, the light sensor can sense light rays of the environment where the display screen is located and light rays formed when the display screen is in the bright state. Therefore, the brightness value acquired by the light sensor not only includes the brightness value of the environment where the display screen is located, but also includes the brightness value of the light formed when the display screen is lighted. Here, the brightness value of the light formed when the display screen is in the lighting state is the interference value of the display screen on the light sensor.
In some application scenarios, the electronic device executing the ambient brightness value detection method has a corresponding relationship table built therein. In the corresponding relation table, the brightness value of the display screen and the displayed color correspond to one interference value. Therefore, the electronic device executing the ambient brightness value detection method can determine the interference value of the display screen to the light sensor by querying the corresponding relation table.
In other application scenarios, the electronic device executing the method for detecting the ambient brightness value may perform step 103 by using steps S1 to S3 similar to those described in the embodiment shown in fig. 3, and details thereof are not repeated here.
And step 104, taking the difference between the brightness value acquired by the light sensor and the interference value of the display screen to the light sensor as the brightness value of the detected environment where the display screen is located.
In this embodiment, after determining the interference value of the display screen to the photo sensor, the electronic device executing the method for detecting the brightness value of the environment may determine a difference between the brightness value collected by the photo sensor and the interference value of the display screen to the photo sensor, and use the obtained difference as the brightness value of the environment where the display screen is located.
In some alternative implementations, after step 104, the electronic device executing the environment brightness value detection method may adjust the brightness value of the display screen according to the brightness value of the environment where the display screen is located.
Specifically, the electronic device executing the ambient brightness value detection method has a correspondence relationship between the ambient brightness value and the display screen brightness value built in advance. Therefore, the electronic device executing the environment brightness value detection method can determine the brightness value of the display screen corresponding to the brightness value of the environment where the display screen is located by querying the corresponding relationship, and adjust the brightness value of the display screen to the queried brightness value.
In these optional implementations, the brightness value of the display screen is adjusted by taking the brightness value of the environment where the display screen is located into consideration, so that the brightness value of the display screen can be accurately adjusted.
Referring to fig. 2, an application scenario of the ambient brightness value detection method according to the embodiment of the present disclosure is shown. As shown in fig. 2, the electronic device 201 detects the brightness value of the environment in which the display screen mounted thereon is located, according to the steps shown below. First, in response to determining that a preset condition is satisfied, the electronic apparatus 201 may acquire the brightness value 202 collected by the light-sensing sensor covered by the display screen mounted thereon through the light-sensing area on the display screen. Then, the electronic device 201 may obtain the brightness value 203 of the display screen and the target color 204 displayed in the light sensing area. Then, the electronic device 201 can determine a disturbance value 205 of the display screen to the light sensor according to the brightness value 203 and the target color 204. Further, the electronic device 201 may use the difference between the brightness value 202 and the interference value 205 as the brightness value 206 of the detected environment in which the display screen is located.
At present, when detecting the brightness value of the environment where the display screen of the electronic device is located, one of the related methods is to store a large number of color features (e.g., color histograms) and interference values corresponding to each color feature in advance, and use the color features extracted from the light sensing area to match with the large number of color features stored in advance to determine the interference values of the display screen to the light sensing sensor, thereby detecting the brightness value of the environment where the display screen is located. In this embodiment, the interference value of the display screen to the light-sensing sensor is determined according to the brightness value of the display screen and the target color displayed in the light-sensing area, so as to further realize the detection of the brightness value of the environment where the display screen is located. Because a large number of color characteristics and interference values corresponding to each color characteristic do not need to be stored in advance, the occupation of the storage space of the electronic equipment is reduced.
With continued reference to fig. 3, a flow chart of yet another embodiment of the ambient brightness value detection method according to the present disclosure is shown. As shown in fig. 3, the method for detecting an ambient brightness value includes the following steps:
step 301, in response to determining that the terminal meets the preset condition, obtaining a brightness value acquired by a light sensing sensor covered by a display screen of the terminal through a light sensing area on the display screen.
Step 302, obtaining the brightness value of the display screen and the target color displayed in the light sensing area.
Step 301 and step 302 may be performed in a similar manner as step 101 and step 102 in the embodiment shown in fig. 1, and the above description for step 101 and step 102 also applies to step 301 and step 302, which is not described herein again.
In step 303, the interference value of each of the three primary colors on the light sensor at the luminance value of the display screen is determined.
In this embodiment, after acquiring the luminance value of the display screen and the target color displayed in the light sensing area, the electronic device executing the ambient luminance value detection method may determine the interference value of each of the three primary colors with the light sensing sensor at the luminance value of the display screen.
The three primary colors may be basic colors combined into any one of the colors displayed by the display screen. For example, the three primary colors may include pure red, pure green, and pure blue. Here, RGB (Red, Green, Blue) color values of pure Red, pure Green, and pure Blue may be (255,0,0), (0,255,0), and (0, 255), respectively.
Specifically, the electronic device that executes the ambient brightness value detection method has a relational expression for determining the interference value of each of the three primary colors with respect to the photosensor in advance built therein. Here, the relationship corresponding to each of the three primary colors corresponds to one interference value at each luminance value. Therefore, the electronic device executing the environment brightness value detection method can input the brightness value of the display screen into the relational expression corresponding to each of the three primary colors, and obtain the interference value of each of the three primary colors on the light sensor under the brightness value of the display screen.
And step 304, determining the interference value of the display screen to the light sensor according to the interference value of each of the three primary colors to the light sensor.
In this embodiment, the execution subject of the ambient brightness value detection method may determine the interference value of the display screen with respect to the light sensor according to the interference value of each of the three primary colors with respect to the light sensor.
Specifically, for the interference value of each of the three primary colors to the light sensor, the execution subject of the ambient brightness value detection method may select a maximum interference value as the interference value of the display screen to the light sensor.
In some alternative implementations, the electronic device executing the ambient brightness value detection method may perform step 304 in the manner shown in steps S1 through S3.
Step S1, determining a weight corresponding to the interference value of each of the three primary colors to the light sensor according to the color value corresponding to the target color.
The color values may be RGB color values of the target color.
The above-mentioned weights can be used to characterize the interference weight of each of the three primary colors on the photosensor.
Specifically, the electronic device that executes the ambient brightness value detection method for each of the three primary colors has a relational expression built in advance for determining a weight corresponding to an interference value of the color with respect to the photosensor. Here, each of the three primary colors corresponds to a relational expression in which the RGB components of the color correspond to a weight at each value. For example, the RGB component of pure red is R, and accordingly, the component R corresponds to a weight under each value. Therefore, for each of the three primary colors, the electronic device executing the ambient brightness value detection method may input the RGB component values of the color to the relational expression corresponding to the color, and obtain the weight corresponding to the interference value of the color on the light sensor.
In step S2, for each of the three primary colors, the product of the interference value and the corresponding weight of the color on the photo sensor is determined.
And step S3, determining the sum of the obtained products as the interference value of the display screen to the light-sensitive sensor. In these alternative implementations, any one of the colors displayed by the display screen can be obtained by superimposing the three primary colors. Accordingly, the interference value of the display screen to the light sensor can be obtained by superposing the interference values of the three primary colors to the display screen. Therefore, the interference values of the three primary colors to the light sensor are superposed through the corresponding weights, so that the interference values of the three primary colors to the light sensor can be effectively superposed, and the accuracy of determining the interference values of the display screen to the light sensor is further improved.
Step 305, determining the difference between the brightness value acquired by the light sensor and the interference value of the display screen on the light sensor as the brightness value of the detected environment where the display screen is located.
The above steps 305 may be performed in a similar manner as the steps 104 in the embodiment shown in fig. 1, and the above description for the steps 104 also applies to the steps 305, which is not described herein again.
In this embodiment, the interference value of the target color on the photo sensor is refined into the interference value of each of the three primary colors on the photo sensor, so as to improve the accuracy of determining the interference value of the display screen on the photo sensor, and further improve the accuracy of detecting the brightness value of the environment where the display screen is located.
With further reference to fig. 4, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides an embodiment of an ambient brightness value detection apparatus, which corresponds to the method embodiment shown in fig. 1, and which is particularly applicable to various electronic devices.
As shown in fig. 4, the ambient brightness value detection apparatus of the present embodiment includes: a first acquisition unit 401, a second acquisition unit 402, a determination unit 403, and a detection unit 404. Wherein, the first obtaining unit 401 is configured to: and in response to the fact that the terminal meets the preset condition, acquiring the brightness value acquired by the light sensing sensor covered by the display screen of the terminal through the light sensing area on the display screen. The second obtaining unit 402 is configured to: and acquiring the brightness value of the display screen and the target color displayed in the light sensing area. The determination unit 403 is configured to: and determining the interference value of the display screen on the light sensor according to the brightness value and the target color of the display screen. The detection unit 404 is configured to: and taking the difference between the brightness value acquired by the light sensor and the interference value of the display screen on the light sensor as the brightness value of the detected environment where the display screen is located.
In this embodiment, specific processes of the first obtaining unit 401, the second obtaining unit 402, the determining unit 403, and the detecting unit 404 of the ambient brightness value detecting apparatus and technical effects thereof may refer to the related descriptions of step 101, step 102, step 103, and step 104 in the corresponding embodiment of fig. 1, which are not repeated herein.
In some optional implementations, the determining unit 403 may include: a first determining module (not shown in the figure), a second determining module (not shown in the figure). Wherein the first determining module may be configured to: the interference value of each of the three primary colors with the photosensor at the luminance value of the display screen is determined. The second determining module may be configured to: and determining the interference value of the display screen to the light sensor according to the interference value of each of the three primary colors to the light sensor.
In some optional implementations, the second determining module may be further configured to: determining a weight corresponding to an interference value of each of the three primary colors to the light sensor according to a color value corresponding to the target color, wherein the weight is used for representing the interference proportion of each of the three primary colors to the light sensor; for each color of the three primary colors, determining the product of the interference value of the color on the light sensor and the corresponding weight; and determining the sum of the obtained products as the interference value of the display screen to the light-sensitive sensor.
In some alternative implementations, the light sensing area is located at an upper end area of the display screen.
In some optional implementations, the preset condition may include at least one of: the display screen of the terminal is in a bright screen state; the terminal is in a preset display mode; the terminal currently runs a preset program; and the program currently operated by the terminal is in a preset mode.
In some alternative implementations, the above-mentioned ambient brightness value detection apparatus may further include an adjustment unit (not shown in the figure). Wherein, the above-mentioned regulating unit can be used for: and adjusting the brightness value of the display screen according to the brightness value of the environment where the display screen is located.
With further reference to fig. 5, fig. 5 illustrates an exemplary system architecture to which the ambient brightness value detection method of one embodiment of the present disclosure may be applied.
As shown in fig. 5, the system architecture may include a terminal device 501. The terminal device 501 is provided with a display screen 5011 and a light sensor 5012. The light sensor 5012 is installed below the display screen 5011. In addition, a light sensing area 5013 is provided on the display 5011 as an area where the light sensor 5012 senses light through the display 5011. The positional relationship among the display screen 5011, the light-sensing sensor 5012, and the light-sensing area 5013 can be referred to the side view shown in fig. 5.
In practice, after determining that the preset condition is satisfied, the terminal device 501 may determine the interference value of the display screen 5011 with the light-sensing sensor 5012 according to the brightness value of the display screen 5011 and the target color displayed in the light-sensing area 5013. Further, the terminal device 501 may use the difference between the brightness value and the interference value collected by the light-sensing sensor 5012 as the brightness value of the environment where the display screen 5011 is located.
The terminal device 501 may be hardware or software. When the terminal device 501 is hardware, it may be various electronic devices having a display screen and supporting detection of ambient brightness values, including but not limited to a smart phone, a tablet computer, an e-book reader, a laptop portable computer, a desktop computer, and the like. When the terminal device 501 is software, it can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for detecting an ambient brightness value provided by the embodiment of the present disclosure may be executed by the terminal device 501, and accordingly, the ambient brightness value detecting apparatus may be disposed in the terminal device 501.
It should be understood that the number of display screens, light-sensing sensors, and light-sensing areas in fig. 5 are merely illustrative. There may be any number of display screens, light-sensing sensors, and light-sensing areas, as desired for implementation.
Referring now to fig. 6, shown is a schematic diagram of an electronic device (e.g., the terminal device of fig. 5) suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to the fact that the terminal meets the preset condition, acquiring a brightness value acquired by a light sensing sensor covered by a display screen of the terminal through a light sensing area on the display screen; acquiring the brightness value of a display screen and the target color displayed in a light sensing area; determining the interference value of the display screen to the light sensor according to the brightness value and the target color of the display screen; and taking the difference between the brightness value acquired by the light sensor and the interference value of the display screen on the light sensor as the brightness value of the detected environment where the display screen is located.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Here, the name of the cell does not constitute a limitation of the cell itself in some cases, and for example, the second acquisition unit may also be described as "a cell that acquires a luminance value of the display screen and a target color displayed in the light sensing area".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (14)

1. An environment brightness value detection method is applied to a terminal and comprises the following steps:
in response to the fact that the terminal meets the preset condition, acquiring a brightness value acquired by a light sensing sensor covered by a display screen of the terminal through a light sensing area on the display screen;
acquiring the brightness value of the display screen and the target color displayed in the light sensing area;
determining an interference value of the display screen to the light sensation sensor according to the brightness value of the display screen and the target color;
and taking the difference between the brightness value acquired by the light sensor and the interference value of the display screen on the light sensor as the brightness value of the environment where the display screen is located.
2. The method of claim 1, wherein determining the interference value of the display screen with the light-sensing sensor according to the brightness value of the display screen and the target color comprises:
determining the interference value of each of three primary colors on the light-sensing sensor under the brightness value of the display screen;
and determining the interference value of the display screen to the light sensation sensor according to the interference value of each color of the three primary colors to the light sensation sensor.
3. The method as claimed in claim 2, wherein the determining the interference value of the display screen to the light-sensing sensor according to the interference value of each of the three primary colors to the light-sensing sensor comprises:
determining a weight corresponding to an interference value of each of the three primary colors to the light sensation sensor according to a color value corresponding to the target color, wherein the weight is used for representing the interference proportion of each of the three primary colors to the light sensation sensor;
for each color in the three primary colors, determining the product of the interference value of the color on the light-sensitive sensor and the corresponding weight;
and determining the sum of the obtained products as the interference value of the display screen to the light sensor.
4. The method of claim 1, wherein the light-sensitive area is located at an upper end area of the display screen.
5. The method of claim 1, wherein the preset condition comprises at least one of: the display screen of the terminal is in a bright screen state; the terminal is in a preset display mode; the terminal currently runs a preset program; and the current running program of the terminal is in a preset mode.
6. The method according to any one of claims 1-5, further comprising:
and adjusting the brightness value of the display screen according to the brightness value of the environment where the display screen is located.
7. An environment brightness value detection device, which is applied to a terminal, includes:
the first obtaining unit is used for responding to the fact that the terminal meets the preset condition, and obtaining the brightness value collected by the light sensing sensor covered by the display screen of the terminal through the light sensing area on the display screen;
the second acquisition unit is used for acquiring the brightness value of the display screen and the target color displayed in the light sensing area;
the determining unit is used for determining an interference value of the display screen on the light sensation sensor according to the brightness value of the display screen and the target color;
and the detection unit is used for taking the difference between the brightness value acquired by the light-sensitive sensor and the interference value of the display screen to the light-sensitive sensor as the detected brightness value of the environment where the display screen is located.
8. The apparatus of claim 7, wherein the determining unit comprises:
the first determination module is used for determining the interference value of each of three primary colors on the light-sensitive sensor under the brightness value of the display screen;
and the second determining module is used for determining the interference value of the display screen to the light sensation sensor according to the interference value of each color in the three primary colors to the light sensation sensor.
9. The apparatus of claim 8, wherein the second determining module is further configured to:
determining a weight corresponding to an interference value of each of the three primary colors to the light sensation sensor according to a color value corresponding to the target color, wherein the weight is used for representing the interference proportion of each of the three primary colors to the light sensation sensor;
for each color in the three primary colors, determining the product of the interference value of the color on the light-sensitive sensor and the corresponding weight;
and determining the sum of the obtained products as the interference value of the display screen to the light sensor.
10. The device of claim 7, wherein the light-sensing area is located at an upper end area of the display screen.
11. The apparatus of claim 7, wherein the preset condition comprises at least one of: the display screen of the terminal is in a bright screen state; the terminal is in a preset display mode; the terminal currently runs a preset program; and the current running program of the terminal is in a preset mode.
12. The apparatus according to any of claims 7-11, further comprising an adjustment unit for:
and adjusting the brightness value of the display screen according to the brightness value of the environment where the display screen is located.
13. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN201911051897.XA 2019-10-30 2019-10-30 Environment brightness value detection method and device and electronic equipment Pending CN110730262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911051897.XA CN110730262A (en) 2019-10-30 2019-10-30 Environment brightness value detection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911051897.XA CN110730262A (en) 2019-10-30 2019-10-30 Environment brightness value detection method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN110730262A true CN110730262A (en) 2020-01-24

Family

ID=69222691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911051897.XA Pending CN110730262A (en) 2019-10-30 2019-10-30 Environment brightness value detection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110730262A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112365833A (en) * 2021-01-15 2021-02-12 深圳阜时科技有限公司 Method for detecting and correcting brightness adjustment value of light sensation under screen
CN113804290A (en) * 2021-05-17 2021-12-17 荣耀终端有限公司 Ambient light detection method, electronic device and chip system
WO2023000804A1 (en) * 2021-07-19 2023-01-26 荣耀终端有限公司 Method and apparatus for determining ambient light intensity and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902088A (en) * 2015-05-25 2015-09-09 广东欧珀移动通信有限公司 Method and device for adjusting screen brightness of mobile terminal
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN107966209A (en) * 2017-11-22 2018-04-27 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
KR20180132336A (en) * 2017-06-02 2018-12-12 삼성전자주식회사 Electronic device and method for controlling sensitivity of a sensor based on properties of window in electronic device
CN109817152A (en) * 2019-04-09 2019-05-28 Oppo广东移动通信有限公司 Screen luminance adjustment method and Related product
CN109859689A (en) * 2019-04-09 2019-06-07 Oppo广东移动通信有限公司 Screen luminance adjustment method and Related product
CN110139088A (en) * 2019-05-28 2019-08-16 Oppo广东移动通信有限公司 Color temperature compensating method, electronic equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902088A (en) * 2015-05-25 2015-09-09 广东欧珀移动通信有限公司 Method and device for adjusting screen brightness of mobile terminal
KR20180132336A (en) * 2017-06-02 2018-12-12 삼성전자주식회사 Electronic device and method for controlling sensitivity of a sensor based on properties of window in electronic device
CN107818753A (en) * 2017-11-22 2018-03-20 广东欧珀移动通信有限公司 Screen brightness regulation method, device, storage medium and electronic equipment
CN107966209A (en) * 2017-11-22 2018-04-27 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
CN109817152A (en) * 2019-04-09 2019-05-28 Oppo广东移动通信有限公司 Screen luminance adjustment method and Related product
CN109859689A (en) * 2019-04-09 2019-06-07 Oppo广东移动通信有限公司 Screen luminance adjustment method and Related product
CN110139088A (en) * 2019-05-28 2019-08-16 Oppo广东移动通信有限公司 Color temperature compensating method, electronic equipment and computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112365833A (en) * 2021-01-15 2021-02-12 深圳阜时科技有限公司 Method for detecting and correcting brightness adjustment value of light sensation under screen
CN113804290A (en) * 2021-05-17 2021-12-17 荣耀终端有限公司 Ambient light detection method, electronic device and chip system
CN115597706A (en) * 2021-05-17 2023-01-13 荣耀终端有限公司(Cn) Ambient light detection method, electronic device and chip system
CN115597706B (en) * 2021-05-17 2023-10-20 荣耀终端有限公司 Ambient light detection method, electronic equipment and chip system
WO2023000804A1 (en) * 2021-07-19 2023-01-26 荣耀终端有限公司 Method and apparatus for determining ambient light intensity and storage medium

Similar Documents

Publication Publication Date Title
CN111476309B (en) Image processing method, model training method, device, equipment and readable medium
US10726585B2 (en) Method and electronic device for converting color of image
CN110730262A (en) Environment brightness value detection method and device and electronic equipment
CN112333898B (en) Lamp brightness adjusting method and device, lamp and storage medium
CN113132704B (en) Image processing method, device, terminal and storage medium
CN110865862A (en) Page background setting method and device and electronic equipment
CN114494298A (en) Object segmentation method, device, equipment and storage medium
CN112631947B (en) Test control method and device for application program, electronic equipment and storage medium
CN112256371A (en) Method and device for displaying information and electronic equipment
CN113364993B (en) Exposure parameter value processing method and device and electronic equipment
CN113573445B (en) Determination method and device for lamp driving parameters and electronic equipment
CN112805745A (en) Mixed layer processing method and device
CN113593495B (en) Calibration method and device and electronic equipment
CN112801997B (en) Image enhancement quality evaluation method, device, electronic equipment and storage medium
CN110399802B (en) Method, apparatus, medium, and electronic device for processing eye brightness of face image
CN111680754B (en) Image classification method, device, electronic equipment and computer readable storage medium
CN113556850B (en) Lamp brightness calibration method, determination method, device and electronic equipment
CN113656128A (en) Page generation method and device and electronic equipment
CN111835917A (en) Method, device and equipment for showing activity range and computer readable medium
CN112465940A (en) Image rendering method and device, electronic equipment and storage medium
CN111429106A (en) Resource transfer certificate processing method, server, electronic device and storage medium
CN113597065B (en) Desk lamp adjusting method and device and electronic equipment
CN110719407A (en) Picture beautifying method, device, equipment and storage medium
EP4283973A1 (en) Image brightness adjustment method and apparatus, and electronic device and medium
CN115512673B (en) Light intensity value adjusting method, device, terminal equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200124