WO2023001001A1 - 灯光亮度调节方法、装置和电子设备 - Google Patents

灯光亮度调节方法、装置和电子设备 Download PDF

Info

Publication number
WO2023001001A1
WO2023001001A1 PCT/CN2022/104817 CN2022104817W WO2023001001A1 WO 2023001001 A1 WO2023001001 A1 WO 2023001001A1 CN 2022104817 W CN2022104817 W CN 2022104817W WO 2023001001 A1 WO2023001001 A1 WO 2023001001A1
Authority
WO
WIPO (PCT)
Prior art keywords
output power
value
illuminance value
lamp
illuminance
Prior art date
Application number
PCT/CN2022/104817
Other languages
English (en)
French (fr)
Inventor
刘素光
孙正辉
Original Assignee
北京字节跳动网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2023001001A1 publication Critical patent/WO2023001001A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Definitions

  • the present disclosure relates to the technical field of the Internet, and in particular to a method, device and electronic equipment for adjusting light brightness.
  • various lamps may be used in people's life or work, for example, desk lamps.
  • the desk lamp not only the desk lamp is emitting light, but also a lot of ambient light (for example, the light off from the ceiling lamp in the room, natural light, etc.), that is, all kinds of light may be irradiated on the desktop.
  • ambient light for example, the light off from the ceiling lamp in the room, natural light, etc.
  • an embodiment of the present disclosure provides a method for adjusting light brightness, which is applied to a lamp including an image acquisition device.
  • the brightness value is used to determine the first illuminance value of the acquisition area of the above-mentioned image acquisition device; based on the preset illuminance value and the above-mentioned first illuminance value, it is determined whether to adjust the output power of the above-mentioned lamp.
  • an embodiment of the present disclosure provides a light brightness adjustment device, which is applied to a lamp including an image acquisition device.
  • the above device includes: a first determining unit, configured to respond to detecting that the image acquisition device is in a predefined state, according The ambient brightness value determined by the image acquisition device determines the first illuminance value of the acquisition area of the image acquisition device; the second determination unit is used to determine whether to adjust the output of the lamp based on the preset illuminance value and the first illuminance value power.
  • an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device for storing one or more programs, when the above one or more programs are processed by the above one or more The processor executes, so that the above-mentioned one or more processors implement the light brightness adjustment method as described in the first aspect.
  • an embodiment of the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method for adjusting light brightness as described in the first aspect are implemented.
  • FIG. 1 is a flowchart of an embodiment of a method for adjusting light brightness according to the present disclosure
  • Fig. 2A is a schematic diagram of comparison of illuminated areas according to an embodiment of the method for adjusting light brightness of the present disclosure
  • Fig. 2B is a schematic diagram of the collection area of the collection device according to one embodiment of the light brightness adjustment method of the present disclosure
  • Fig. 3 is a structural schematic diagram of an embodiment of a device for adjusting light brightness according to the present disclosure
  • FIG. 4 is an exemplary system architecture to which a method for adjusting light brightness according to an embodiment of the present disclosure can be applied;
  • Fig. 5 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
  • the term “comprise” and its variations are open-ended, ie “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 further embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
  • FIG. 1 shows the flow of an embodiment of a method for adjusting light brightness according to the present disclosure.
  • the method for adjusting light brightness can be applied to a terminal device including a camera, for example, a desk lamp.
  • the light brightness adjustment method includes the following steps:
  • Step 101 in response to detecting that the image acquisition device is in a predefined state, determine a first illuminance value of an acquisition area of the image acquisition device according to an ambient brightness value determined by the image acquisition device.
  • the image acquisition device can be understood as a device with a camera function, for example, a camera.
  • the predefined state can be understood as the image acquisition device is in the image acquisition state, for example, when the image acquisition device is a camera, it can be understood that the camera is in a state where images can be collected, that is, the camera has completed focusing at this time, And image acquisition can be performed directly.
  • mapping relationship between the ambient brightness value and the illuminance value
  • the relationship between the ambient brightness value and the illuminance value is usually a quadratic function.
  • y a-bx+cx 2 ; wherein, y can represent an illuminance value, x can represent an ambient brightness value, and a, b, and c can be fixed parameters set according to actual conditions.
  • the illuminance value can be determined by using the ambient brightness value.
  • the illuminance of the object in the collection area may also change. For example, when the user turns on the light in the bedroom (that is, the ambient brightness value may become higher), the illuminance value of the collection area may become higher, and when the user turns off the bedroom light, the illuminance value of the collection area may become lower. For another example, when the user opens the curtain, the illuminance value of the collection area may become higher, and when the user closes the curtain, the illuminance value of the collection area may become lower. That is, when the ambient brightness value changes, the illuminance value of the collection area also changes.
  • the acquisition area of the image acquisition device can be understood as a part of the illuminated area of the lamp, and this part of the area can be understood as the user's reading area, or the area that the user will often observe. That is, the user may place books to be read, browse electronic devices, etc. in this area.
  • FIG. 2A-FIG. 2B a schematic diagram of the comparison between the irradiation area and the collection area of the lamp in FIG. 2A . It can be seen from FIG. 2A that the collection area 201 is a part of the irradiation area 202 . 2B is further described in conjunction with FIG. 2B.
  • FIG. 2B is a schematic diagram when the lamp is a desk lamp.
  • the image acquisition device 204 is installed on the top area of the desk lamp 203, and the acquisition area 205 of the image acquisition device 204 can place books, electronic equipment, etc.
  • the first illuminance value when a user places a book in the collection area, the first illuminance value can be understood as the illuminance value of the placed book, and when an electronic device is placed in the collection area, the first illuminance value can be understood as the illuminance value of the placed electronic device.
  • the ambient brightness value can be determined according to the parameters of the camera .
  • the first illuminance value of the collection area can be determined according to the ambient brightness value.
  • Step 102 based on the preset illuminance value and the first illuminance value, determine whether to adjust the output power of the lamp.
  • the output power of the lamp changes, the ambient brightness value will also change, and correspondingly, the illuminance value of the collection area will also change. Therefore, the illuminance value of the collection area can be changed by changing the output power.
  • the illuminance value of the collection area is the preset illuminance value
  • the user can have a better viewing angle sensory experience; it can also be understood that when the user browses under the preset illuminance value, the user’s eyes are not easy to produce tiredness.
  • the illuminance value of the collection area may be The value is adjusted so that the user can have a better visual sensory experience.
  • the first illuminance value of the acquisition area of the image acquisition device can be determined according to the ambient brightness value determined by the image acquisition device, and the first illuminance value can be determined according to the first illuminance value and the preset illuminance value to determine whether to adjust the output power of the lamp, that is, in this way, when the lamp is turned on, the illuminance value of the collection area will not change greatly with the change of the ambient brightness value, thus It can also ensure the user's visual sensory experience in the reading process.
  • the image acquisition device may determine the ambient brightness value in the following manner:
  • the ambient brightness value can be determined according to the aperture size, exposure time and lens sensitivity.
  • the first sum may be determined according to the value of the aperture parameter and the value of the exposure time; and the ambient brightness value may be determined according to the sensitivity value of the lens sensitivity and the first sum.
  • AV+TV BV+SV
  • TV can be understood as an exposure time
  • BV can be understood as an ambient brightness value
  • SV can be understood as a lens sensitivity. Therefore, the ambient brightness value can be determined according to the size of the aperture, the exposure time and the sensitivity of the lens. That is, AV+TV can be regarded as the first sum, and the ambient brightness value can be obtained by subtracting SV from the first sum.
  • AV 2log 2 A , where A can be understood as the F value of the aperture coefficient.
  • T can be understood as the exposure time.
  • B can be understood as the ambient brightness value, K can be understood as a fixed parameter set according to the actual situation; SV can be understood as the lens sensitivity and S can be understood as the standard sensitivity.
  • the installation direction of the image acquisition device can be determined according to the illumination direction of the lamp.
  • the capture area may be the area where the user places data or electronic equipment to be read, that is, the user's browsing area is more likely to be the capture area. That is, in this way, the first illuminance value can more accurately reflect the illuminance value of the user's browsing area, so that it can be more accurately judged whether the output power of the lamp needs to be adjusted
  • step 102 (determine whether to adjust the output power of the lamp based on the preset illuminance value and the first illuminance value) may specifically include: in response to determining that the illuminance difference between the preset illuminance value and the first illuminance value is greater than the Setting a threshold, determining to adjust the output power of the lamp; and determining not to adjust the output power of the lamp in response to determining that the illuminance difference between the preset illuminance value and the first illuminance value is not greater than the preset threshold.
  • the illuminance difference between the preset illuminance value and the first illuminance value is greater than a preset threshold, it may be determined to adjust the output power of the lamp.
  • the preset threshold can be set according to actual conditions, and the specific value of the preset threshold is not limited here.
  • the illuminance value of the collection area is related to the ambient brightness value. Therefore, when the lamps output the same output power, the illuminance value of the collection area may also be different due to interference caused by other light in the external environment. Furthermore, the target output power can be determined based on the illuminance difference, and in this way, the obtained target output power can be made more accurate, so that when the current output power of the lamp is adjusted to the target output power, the collected The illuminance value of the area is equal to or close to the preset illuminance value.
  • the power change amount corresponding to the illuminance difference can be determined according to the illuminance difference; and the target output power can be determined according to the power change amount and the current output power.
  • the power change amount can be understood as the amount that the current output power needs to be changed.
  • the correspondence between the illuminance difference and the power change amount may be preset. Therefore, after the illuminance difference is determined, the power change amount can be determined.
  • the target gear can also be determined according to the first gear corresponding to the current output power and the number of gears to be changed corresponding to the illuminance difference; and the target output power can be determined according to the target gear.
  • the gear position corresponds to the output power.
  • some gears can be preset, and each gear can correspond to an output power, and in this way, some fixed output power can be preset, so that only the output power of the lamp needs to be set at a fixed You can switch between different output powers. In this way, the circuit structure for adjusting the output power can be simplified.
  • 101 gears can be preset, that is, the lamp can have 101 different output powers.
  • the lamp can have 101 different output powers.
  • the illuminance difference between the preset illuminance value and the first illuminance value is greater than a preset threshold, it is determined to adjust the output power of the lamp.
  • the output power of the lamp is adjusted, which can avoid the stroboscopic phenomenon caused by frequent adjustment of the output power, thereby affecting the user's visual experience.
  • the illuminance value is related to the type of objects in the collection area. For example, when the user is reading a book; operations such as turning pages and drinking water may cause changes in the illuminance value. If the output power of the lamp is adjusted immediately after the illuminance value changes, the output power of the lamp may change all the time, which may cause stroboscopic phenomenon.
  • the current output power of the lamp in response to receiving the output power adjustment instruction, is adjusted to the second output power according to the second output power indicated by the output power adjustment instruction; according to the second illuminance value of the collection area, Determine the preset illuminance value.
  • the illuminance value of the collection area is the second illuminance value.
  • some users prefer to read in a cold light environment, some users may like to read in a warm light environment, and some users are reading books with smaller fonts and books with larger fonts, so The brightness of the lights used may also vary. That is, the user can also input the output power adjustment command by himself.
  • a lamp brightness adjustment control or a lamp brightness adjustment button may be set on the lamp.
  • a corresponding predefined operation is performed on the brightness adjustment control of the lamp or the brightness adjustment button of the lamp, it may indicate that the user has input an output power adjustment command, and at this time, the current output power of the lamp may be adjusted to the second output power.
  • the second illuminance value can allow the user to have a better visual experience.
  • the second illuminance value can be determined as the preset illuminance value, so that after the brightness of the external environment changes, the illuminance value of the shooting area can also be kept at the second illuminance value, so that the user can have a better ground visual experience.
  • the adjustment duration is determined according to the difference between the target output power and the current output power.
  • the target output power corresponds to a preset illuminance value.
  • the difference between the target output power and the current output power may be relatively large. Therefore, the adjustment time may be extended appropriately, so as to avoid discomfort to the user's eyes caused by a large change in the illuminance value. Therefore, the adjustment duration can be determined according to the difference between the target output power and the current output power.
  • a difference duration correspondence table can be established, which includes the correspondence between the difference between the target output power and the current output power and the adjustment duration, that is, according to the difference duration correspondence table, it can be known that each The amount of time it takes to adjust the output power.
  • the image acquisition device when the output power of the lamp is greater than a preset power threshold, it is determined that the image acquisition device is in a predefined state.
  • the brightness of the lamp may be adjusted to a low level, in which case the lamp can act like a light indicator. Therefore, in order to save energy consumption, the image acquisition device may not be in the predefined state. That is, only when the output power of the lamp is greater than the preset power threshold, the image acquisition device is in a predefined state, so that the energy consumption of the lamp can be reduced and the lamp can be more energy-efficient.
  • the present disclosure provides an embodiment of a light brightness adjustment device, which corresponds to the embodiment of the light brightness adjustment method shown in FIG. 1 ,
  • the device can be specifically applied to various electronic devices including image acquisition devices.
  • the device for adjusting light brightness in this embodiment can be applied to a lamp including an image acquisition device.
  • the above device includes: a first determination unit 301 configured to respond to detecting that the image acquisition device is in a predefined state, according to the above The ambient brightness value determined by the image acquisition device determines the first illuminance value of the acquisition area of the image acquisition device; the second determination unit 302 is used to determine whether to adjust the output of the lamp based on the preset illuminance value and the first illuminance value power.
  • the image acquisition device determines the ambient brightness value in the following manner: the ambient brightness value is determined according to aperture size, exposure duration, and lens sensitivity.
  • the image acquisition device determines the first sum according to the value of the aperture parameter and the duration of the exposure time; and determines the ambient brightness value according to the light sensitivity value of the lens sensitivity and the first sum.
  • the above apparatus further includes: a third determination unit 303, configured to determine the installation direction of the image acquisition device according to the illumination direction of the lamp.
  • the second determining unit 302 is further specifically configured to: determine to adjust the output power of the lamp in response to determining that the illuminance difference between the preset illuminance value and the first illuminance value is greater than a preset threshold; After determining that the illuminance difference between the preset illuminance value and the first illuminance value is not greater than a preset threshold, it is determined not to adjust the output power of the lamp.
  • the second determination unit 302 is further specifically configured to: determine the power change amount corresponding to the illuminance difference according to the illuminance difference; determine the power change amount and the current output power according to the power change amount and the current output power. the target output power.
  • the second determination unit 302 is further specifically configured to: determine the target gear according to the first gear corresponding to the current output power and the number of gears to be changed corresponding to the illuminance difference, wherein the gear Corresponding to the output power; according to the target gear, determine the target output power
  • the above-mentioned device further includes: a fourth determination unit 304, configured to adjust the current output power of the above-mentioned lamp according to the second output power indicated by the above-mentioned output power adjustment command in response to receiving the output power adjustment command to the above-mentioned second output power; it is also used to determine the above-mentioned preset illuminance value according to the second illuminance value of the above-mentioned collection area, wherein, when the output power of the above-mentioned lamp is the above-mentioned second output power, the illuminance value of the above-mentioned collection area is the first Two illuminance values.
  • a fourth determination unit 304 configured to adjust the current output power of the above-mentioned lamp according to the second output power indicated by the above-mentioned output power adjustment command in response to receiving the output power adjustment command to the above-mentioned second output power; it is also used to determine the above-mentioned preset illuminance value
  • the above apparatus further includes: a fifth determining unit 305, configured to determine that the above image acquisition device is in a predefined state when the output power of the lamp is greater than a preset power threshold.
  • FIG. 4 shows an exemplary system architecture in which the light brightness adjustment method according to an embodiment of the present disclosure can be applied.
  • the system architecture may include terminal devices 401 , 402 , and 403 , a network 404 , and a server 405 .
  • the network 404 may be used as a medium for providing communication links between the terminal devices 401 , 402 , 403 and the server 404 .
  • Network 404 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.
  • the terminal devices 401, 402, 403 can interact with the server 405 through the network 404 to receive or send messages and the like.
  • client applications such as web browser applications, search applications, and news information applications, may be installed on the terminal devices 401, 402, and 403.
  • the client applications in the terminal devices 401, 402, and 403 can receive user instructions and complete corresponding functions according to the user instructions, such as adding corresponding information to information according to the user instructions.
  • Terminal devices 401, 402, and 403 may be hardware or software.
  • the terminal devices 401, 402, and 403 can be various electronic devices with display screens and supporting web browsing, including but not limited to smartphones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, moving picture expert compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, moving picture expert compression standard audio layer 4) player, laptop portable computer and desktop computer, etc.
  • the terminal devices 401, 402, and 403 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (such as software or software modules for providing distributed services), or as a single software or software module. No specific limitation is made here.
  • the server 405 may be a server that provides various services, for example, receives information acquisition requests sent by the terminal devices 401, 402, and 403, and acquires display information corresponding to the information acquisition requests in various ways according to the information acquisition requests. And the related data of displaying information is sent to the terminal devices 401 , 402 , 403 .
  • the light brightness adjustment method provided by the embodiments of the present disclosure may be executed by a terminal device, and correspondingly, the light brightness adjustment apparatus may be set in the terminal devices 401 , 402 , and 403 .
  • the light brightness adjustment method provided by the embodiment of the present disclosure may also be executed by the server 405 , and accordingly, the light brightness adjustment device may be set in the server 405 .
  • terminal devices, networks and servers in Fig. 4 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
  • FIG. 5 it shows a schematic structural diagram of an electronic device (such as the terminal device or server in FIG. 4 ) suitable for implementing the embodiments of the present disclosure.
  • the terminal equipment in the embodiment of the present disclosure may include but not limited to such as smart desk lamp, mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle-mounted mobile terminals such as terminals (for example, car navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, and the like.
  • the electronic device shown in FIG. 5 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
  • an electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 501, which may be loaded into a random access memory according to a program stored in a read-only memory (ROM) 502 or from a storage device 508. (RAM) 503 to execute various appropriate actions and processing. In the RAM 503, various programs and data necessary for the operation of the electronic device 500 are also stored.
  • the processing device 501, ROM 502, and RAM 503 are connected to each other through a bus 504.
  • An input/output (I/O) interface 505 is also connected to the bus 504 .
  • the following devices can be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 507 such as a computer; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509.
  • the communication means 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While FIG. 5 shows an electronic device having various means, it should be understood that implementing or having all of the means shown is not a requirement. Additional or fewer devices may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from a network via communication means 509 , or from storage means 508 , or from ROM 502 .
  • the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
  • the client and the server can communicate using any currently known or future network protocols such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium
  • HTTP HyperText Transfer Protocol
  • the communication eg, communication network
  • Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), internetworks (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 of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: in response to detecting that the image capture device is in a predefined state, according to the determination of the above-mentioned image capture device Determine the first illuminance value of the acquisition area of the above-mentioned image acquisition device based on the ambient brightness value; determine whether to adjust the output power of the above-mentioned lamp based on the preset illuminance value and the above-mentioned first illuminance value.
  • the above-mentioned image acquisition device determines the above-mentioned ambient brightness value in the following manner: according to the size of the aperture, the exposure time, and the sensitivity of the lens, the above-mentioned ambient brightness value is determined.
  • the first sum is determined according to the value of the aperture parameter and the duration of the exposure time; and the ambient brightness value is determined according to the light sensitivity value of the lens sensitivity and the first sum.
  • the installation direction of the image acquisition device is determined according to the illumination direction of the lamp.
  • the illuminance difference between the preset illuminance value and the first illuminance value is greater than a preset threshold, it is determined to adjust the output power of the lamp; in response to determining the difference between the preset illuminance value and the first illuminance value If the illuminance difference is not greater than the preset threshold, it is determined not to adjust the output power of the above-mentioned lamps.
  • the power change amount corresponding to the illuminance difference is determined according to the illuminance difference; and the target output power is determined according to the power change amount and the current output power.
  • the target gear is determined according to the first gear corresponding to the current output power and the number of gears to be changed corresponding to the above-mentioned illuminance difference, wherein the gear corresponds to the output power;
  • the above target output power is determined.
  • the second illuminance value is to determine the preset illuminance value, wherein when the output power of the lamp is the second output power, the illuminance value of the collection area is the second illuminance value.
  • the image acquisition device when the output power of the lamp is greater than a preset power threshold, it is determined that the image acquisition device is in a predefined state.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" 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.
  • the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • 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 they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of the unit does not limit the unit itself in some cases, for example, the first determination unit 301 may also be described as "a unit for determining the first illuminance value of the acquisition area of the image acquisition device".
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs System on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a 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, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.

Abstract

本公开实施例公开了的灯光亮度调节方法、装置和电子设备,当图像采集设备处于预定义状态时,可以根据图像采集设备确定的环境亮度值,确定图像采集设备的采集区域的第一照度值,并可以根据第一照度值和预设照度值,确定是否调节灯具的输出功率。

Description

灯光亮度调节方法、装置和电子设备
相关申请的交叉引用
本申请要求于2021年07月23日提交的,申请号为202110841086.0、发明名称为“灯光亮度调节方法、装置和电子设备”的中国专利申请的优先权,该申请的全文通过引用结合在本申请中。
技术领域
本公开涉及互联网技术领域,尤其涉及一种灯光亮度调节方法、装置和电子设备。
背景技术
随着科学技术的发展,人们的生活或者工作过程中,可能会使用各种灯具,例如,台灯。当人们在使用台灯的过程中,不仅有台灯在发光,可能还有很多环境光(例如,房间的吸顶灯发出的灯关、自然光等),也即,各种光可能均照射在桌面上。
发明内容
提供该公开内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该公开内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。
第一方面,本公开实施例提供了一种灯光亮度调节方法,应用于包括图像采集设备的灯具,上述方法包括:响应于检测到图像采集设备处于预 定义状态,根据上述图像采集设备确定的环境亮度值,确定上述图像采集设备的采集区域的第一照度值;基于预设照度值与上述第一照度值,确定是否调节上述灯具的输出功率。
第二方面,本公开实施例提供了一种灯光亮度调节装置,应用于包括图像采集设备的灯具,上述装置包括:第一确定单元,用于响应于检测到图像采集设备处于预定义状态,根据上述图像采集设备确定的环境亮度值,确定上述图像采集设备的采集区域的第一照度值;第二确定单元,用于基于预设照度值与上述第一照度值,确定是否调节上述灯具的输出功率。
第三方面,本公开实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行,使得上述一个或多个处理器实现如第一方面上述的灯光亮度调节方法。
第四方面,本公开实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面上述的灯光亮度调节方法的步骤。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。
图1是根据本公开的灯光亮度调节方法的一个实施例的流程图;
图2A是根据本公开的灯光亮度调节方法的一个实施例的照射区域对比示意图;
图2B是根据本公开的灯光亮度调节方法的一个实施例的采集设 备的采集区域的示意图;
图3是根据本公开的灯光亮度调节装置的一个实施例的结构示意图;
图4是本公开的一个实施例的灯光亮度调节方法可以应用于其中的示例性系统架构;
图5是根据本公开实施例提供的电子设备的基本结构的示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应 该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
请参考图1,其示出了根据本公开的灯光亮度调节方法的一个实施例的流程。该灯光亮度调节方法可以应用于包括摄像头的终端设备,例如,台灯。如图1所示该灯光亮度调节方法,包括以下步骤:
步骤101,响应于检测到图像采集设备处于预定义状态,根据图像采集设备确定的环境亮度值,确定图像采集设备的采集区域的第一照度值。
在这里,图像采集设备可以理解为带有摄像功能的设备,例如,摄像头。
在这里,预定义状态可以理解为图像采集设备处于图像采集状态,例如,当图像采集设备为摄像头时,则可以理解为,摄像头处于可以采集图像的状态,也即,此时摄像头已经完成对焦,并可以直接进行图像采集。
在这里,环境亮度值与照度值之间可以存在映射关系,环境亮度值与照度值之间通常是二次函数关系。例如,y=a-bx+cx 2;其中,y可以表征照度值,x可以表征环境亮度值,而a、b、c可以是根据实际情况而设置的固定参数。而通过这种映射关系,则可以利用环境亮度值确定照度值。
作为示例,由于环境亮度值与照度值之间存在映射关系,因此,当环境亮度改变之后,采集区域的物体照度也可能会发生改变。例如,当用户开启卧室灯光时(也即,环境亮度值可能变高了),则采集区域的照度值可能会变高,用户关闭卧室灯光时,采集区域的照度值又可能会变低。又如,当用户拉开窗帘时,采集区域的照度值可能会变高,当用户关闭窗帘时,采集区域的照度值可能会变低。也即,当环境亮度值改变之后,采集区域的照度值也在发生变化。
在这里,图像采集设备的采集区域可以理解为灯具照射区域中的部 分区域,而这部分区域可以理解为用户的阅读区域,或者理解为用户会经常观察的区域。也即,用户可能会在这部分区域放置需要阅读的书籍、浏览电子设备等。为了便于理解,可以如图2A-图2B所示,图2A灯具的照射区域与采集区域的对比示意图,从图2A可以看出,采集区域201为照射区域202的部分区域。进一步结合图2B进行说明,图2B为灯具为台灯时的示意图,图像采集设备204安装在台灯203的顶部区域,而图像采集设备204的采集区域205则可以放置书籍、电子设备等。
作为示例,用户在采集区域放置书籍时,则第一照度值可以理解为放置的书籍的照度值,而当在采集区域放置电子设备时,第一照度可以理解为放置的电子设备的照度值。
作为示例,当图像采集设备处于预定义状态(例如,图像采集设备为摄像头),当环境亮度不同时,摄像头的镜头焦距、镜头光圈等参数不同,因此,可以根据摄像头的参数,确定环境亮度值。而环境亮度值与照度值之间存在映射关系,因此,可以根据环境亮度值,确定采集区域的第一照度值。
步骤102,基于预设照度值与第一照度值,确定是否调节灯具的输出功率。
在这里,输出功率越高,则灯具所发出的灯光强度就越高,相应的,当输出功率越低时,灯具发出的灯光强度就越低。而灯具的输出功率发生变化时,环境亮度值也就会发生变化,相应的,采集区域的照度值也就可以发生变更。因此,可以通过更改输出功率,变更采集区域的照度值。
在这里,当采集区域的照度值为预设照度值时,可以让用户拥有较好的视角感官体验;也可以理解为,用户在预设照度值下进行浏览,可以使得用户的眼部不易产生疲惫感。
作为示例,当第一照度值与预设照度值之间的差值较大时,则可以表 征此时采集区域的照度值可能会使用户视觉感官体验较差,进而,可以将采集区域的照度值进行调节;以使用户可以拥有较好的视觉感官体验。
可以看出,在本申请中,当图像采集设备处于预定义状态时,可以根据图像采集设备确定的环境亮度值,确定图像采集设备的采集区域的第一照度值,并可以根据第一照度值和预设照度值,确定是否调节灯具的输出功率,也即,通过这种方式,可以使得当灯具开启之后,采集区域的照度值不会随着环境亮度值的变更而发生较大变更,从而也就可以保证用户在阅读过程中的视觉感官体验。
在一些实施例中,图像采集设备可以通过如下方式确定环境亮度值:
可以根据光圈大小、曝光时长和镜头感光度这三者,确定环境亮度值。
在一些实施例中,可以根据光圈参数的数值与曝光时间的时长数值,确定第一总和;并可以根据镜头感光度的感光值和第一总和,确定环境亮度值。
作为示例,AV+TV=BV+SV,其中,AV可以理解为光圈参数、TV可以理解为曝光时间、BV可以理解为环境亮度值、SV可以理解为镜头感光度。从而,即可根据光圈大小、曝光时长和镜头感光度这三者,确定环境亮度值。也即,AV+TV可以看作第一总和,而第一总和减去SV,则可以得到环境亮度值。
作为示例,AV=2log 2 A,其中,而A可以理解为光圈系数的F值。
Figure PCTCN2022104817-appb-000001
其中,T可以理解为均可以理解为曝光时间。
Figure PCTCN2022104817-appb-000002
B可以理解为环境亮度值,K可以理解为根据实际情况而设定的固定参数;SV可以理解为镜头感光度和S可以理解为标准感光度。
可以看出,通过根据光圈大小、曝光时长和镜头感光度这三者,确定环境亮度值,可以避免桌面颜色及材质的影响,从而可以使得确定出的环境亮度值更加准确。
在一些实施例中,可以根据灯具的照射方向,确定图像采集设备的安装方向。
作为示例,当根据采集设备的照射方向,确定图像采集设备的安装方向时,使得采集区域可能为用户放置需要阅读的数据或者电子设备的区域,也即,用户的浏览区域较为可能为采集区域。也即,通过这种方式,可以使得第一照度值,可以较为准确的反映用户的浏览区域的照度值,从而也就可以更加准确的判断是否需要对灯具的输出功率进行调节
在一些实施例中,步骤102(基于预设照度值与第一照度值,确定是否调节灯具的输出功率)具体可以包括:响应于确定预设照度值与第一照度值的照度差值大于预设阈值,确定调节所述灯具的输出功率;以及,可以响应于确定预设照度值与第一照度值的照度差值不大于预设阈值,确定不调节所述灯具的输出功率。
作为示例,当预设照度值与第一照度值之间的照度差值大于预设阈值时,则可以确定调节灯具的输出功率。而预设阈值可以根据实际情况进行设定,在此并不对预设阈值的具体数值进行限定。
作为示例,采集区域的照度值与环境亮度值相关,因此,当灯具输出相同的输出功率,由于外界环境的其它光线造成的干扰,也可能使得采集区域的照度值不同。进而,可以基于照度差值,确定目标输出功率,而通过这种方式,可以使获得的目标输出功率更为准确,从而,也就可以使得将灯具的当前输出功率调节至目标输出功率时,采集区域的照度值等于或者接近预设照度值。
在一些实施例中,可以根据照度差值,确定与照度差值对应的功率变更量;并可以根据功率变更量和当前输出功率,确定目标输出功率。
在这里,功率变更量可以理解为当前输出功率需要更改的量。
作为示例,可以预先设定照度差值与功率变更量之间的对应关系。从 而,当确定出照度差值之后,则可以确定功率变更量。
在一些实施例中,也可以根据当前输出功率对应的第一档位、照度差值对应的待变更档位数,确定目标档位;并可以根据目标档位,确定目标输出功率。
在这里,档位与输出功率对应。
作为示例,可以预先设定一些档位数,而每个档位可以对应一个输出功率,而通过这种方式,可以预先设定一些固定的输出功率,从而仅需将灯具的输出功率,在固定的输出功率之间进行切换即可。这样,可以简化调节输出功率的电路结构。
作为示例,可以预先设置101个档位数,也即,灯具可以具有101个不同的输出功率。当然,具体需要设置多少个档位数,在此并不进行限定,仅需根据实际情况进行合理设定即可。
在一些实施例中,响应于确定预设照度值与第一照度值之间的照度差大于预设阈值,确定调节上述灯具的输出功率。
在这里,当照度差值大于预设阈值之后,才调节灯具的输出功率,可以避免频繁调节输出功率而引发的频闪现象,从而影响用户的视觉体验。
作为示例,照度值与采集区域的物体类型有关,例如,用户在阅读书籍的过程中;翻页、喝水等操作,均可能会造成照度值的变化。若照度值发生变化之后,立即对灯具的输出功率进行调节,可能使得灯具的输出功率可能一直在变化,从而可能造成频闪现象。
在一些实施例中,响应于接收到输出功率调节指令,根据输出功率调节指令所指示的第二输出功率,将灯具的当前输出功率调节至第二输出功率;根据采集区域的第二照度值,确定预设照度值。
在这里,灯具输出功率为第二输出功率时,采集区域的照度值为第二照度值。
作为示例,用户在浏览过程中,某些用户喜好在冷光环境下阅读,某些用户可能喜欢在暖光环境下阅读,而用户在阅读一些字体较小的书籍和阅读字体较大的书籍,所使用的灯光亮度也可能不同。也即,用户也可以自行输入输出功率调节指令。
作为示例,灯具上可以设置灯具亮度调节控件或者灯具亮度调节按键。当对灯具亮度调节控件或者灯具亮度调节按键执行相应预定义的操作时,则可以表征用户输入了输出功率调节指令,此时,则可以将灯具的当前输出功率调节至第二输出功率。
作为示例,当用户输入输出功率调节指令之后,则可以表征当前照度值并不适合用户阅读,而第二照度值比较适合用户阅读。也可以理解为第二照度值可以让用户拥有较好的视觉体验。此时,也就可以将第二照度值确定为预设照度值,可以使得外界环境亮度变化之后,拍摄区域的照度值还可以一直保持在第二照度值,这样也就可以使用户拥有较好地视觉体验。
在一些实施例中,响应于确定调节灯具的输出功率,根据目标输出功率和当前输出功率之间的差值,确定调节时长。
在这里,目标输出功率与预设照度值对应。
作为示例,目标输出功率与当前输出功率之间的差值可能较大,因此,可以适当延长调节时长,从而避免照度值大幅度变化给用户眼部带来的不适感。因此,可以根据目标输出功率和当前输出功率之间的差值,确定调节时长。
作为示例,可以建立一个差值时长对应表,在差值时长对应表包括目标输出功率和当前输出功率的差值与调节时长的对应关系,也即,可以根据差值时长对应表,获知每次调节输出功率所花费的时长。
在一些实施例中,当灯具的输出功率大于预设功率阈值时,确定图像 采集设备处于预定义状态。
作为示例,在某些情况下(例如,用户需要睡觉时),可能会将灯具亮度调至较低,此时,灯具可以担任类似指示灯的作用。因此,为了节约能耗,图像采集设备可以不处于预定义状态。也即,仅有当灯具的输出功率大于预设功率阈值时,图像采集设备才处于预定义状态,这样,可以减少灯具的能耗,并可以使灯具更加节能。
进一步参考图3,作为对上述各图所示方法的实现,本公开提供了一种灯光亮度调节装置的一个实施例,该装置实施例与图1所示的灯光亮度调节方法实施例相对应,该装置具体可以应用于包括图像采集设备的各种电子设备中。
如图3所示,本实施例的灯光亮度调节装置可以应用于包括图像采集设备的灯具,上述装置包括:第一确定单元301,用于响应于检测到图像采集设备处于预定义状态,根据上述图像采集设备确定的环境亮度值,确定上述图像采集设备的采集区域的第一照度值;第二确定单元302,用于基于预设照度值与上述第一照度值,确定是否调节上述灯具的输出功率。
在一些实施例中,所述图像采集设备通过如下方式确定所述环境亮度值:根据光圈大小、曝光时长和镜头感光度这三者,确定所述环境亮度值。
在一些实施例中,所述图像采集设备根据光圈参数的数值与曝光时间的时长数值,确定第一总和;根据镜头感光度的感光值和所述第一总和,确定所述环境亮度值。
在一些实施例中,上述装置还包括:第三确定单元303,用于根据所述灯具的照射方向,确定图像采集设备的安装方向。
在一些实施例中,上述第二确定单元302还具体用于:响应于确定预设照度值与所述第一照度值的照度差值大于预设阈值,确定调节所述灯具的输出功率;响应于确定预设照度值与所述第一照度值的照度差值不大于预设阈值,确定不调节所述灯具的输出功率。
在一些实施例中,上述第二确定单元302还具体用于:根据所述照度差值,确定与所述照度差值对应的功率变更量;根据所述功率变更量和当前输出功率,确定所述目标输出功率。
在一些实施例中,上述第二确定单元302还具体用于:根据当前输出功率对应的第一档位、所述照度差值对应的待变更档位数,确定目标档位,其中,档位与输出功率对应;根据所述目标档位,确定所述目标输出功率
在一些实施例中,上述装置还包括:第四确定单元304,用于响应于接收到输出功率调节指令,根据上述输出功率调节指令所指示的第二输出功率,将上述灯具的当前输出功率调节至上述第二输出功率;还用于根据上述采集区域的第二照度值,确定上述预设照度值,其中,上述灯具的输出功率为上述第二输出功率时,上述采集区域的照度值为第二照度值。
在一些实施例中,上述装置还包括:第五确定单元305,用于当灯具的输出功率大于预设功率阈值时,确定上述图像采集设备处于预定义状态。
请参考图4,图4示出了本公开的一个实施例的灯光亮度调节方法可以应用于其中的示例性系统架构。
如图4所示,系统架构可以包括终端设备401、402、403,网络404,服务器405。网络404可以用以在终端设备401、402、403和服务器404之间提供通信链路的介质。网络404可以包括各种连接类型, 例如有线、无线通信链路或者光纤电缆等等。
终端设备401、402、403可以通过网络404与服务器405交互,以接收或发送消息等。终端设备401、402、403上可以安装有各种客户端应用,例如网页浏览器应用、搜索类应用、新闻资讯类应用。终端设备401、402、403中的客户端应用可以接收用户的指令,并根据用户的指令完成相应的功能,例如根据用户的指令在信息中添加相应信息。
终端设备401、402、403可以是硬件,也可以是软件。当终端设备401、402、403为硬件时,可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。当终端设备401、402、403为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。
服务器405可以是提供各种服务的服务器,例如接收终端设备401、402、403发送的信息获取请求,根据信息获取请求通过各种方式获取信息获取请求对应的展示信息。并展示信息的相关数据发送给终端设备401、402、403。
需要说明的是,本公开实施例所提供的灯光亮度调节方法可以由终端设备执行,相应地,灯光亮度调节装置可以设置在终端设备401、402、403中。此外,本公开实施例所提供的灯光亮度调节方法还可以由服务器405执行,相应地,灯光亮度调节装置可以设置于服务器405 中。
应该理解,图4中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。
下面参考图5,其示出了适于用来实现本公开实施例的电子设备(例如图4中的终端设备或服务器)的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如智能台灯、移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图5所示,电子设备可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或 更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指 令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:响应于检测到图像采集设备处于预定义状态,根据上述图像采集设备确定的环境亮度值,确定上述图像采集设备的采集区域的第一照度值;基于预设照度值与上述第一照度值,确定是否调节上述灯具的输出功率。
在一些实施例中,上述图像采集设备通过如下方式确定上述环境亮度值:根据光圈大小、曝光时长和镜头感光度这三者,确定上述环境亮度值。
在一些实施例中,根据光圈参数的数值与曝光时间的时长数值,确定第一总和;根据镜头感光度的感光值和上述第一总和,确定上述环境亮度值。
在一些实施例中,根据上述灯具的照射方向,确定图像采集设备的安装方向。
在一些实施例中,响应于确定预设照度值与上述第一照度值的照度 差值大于预设阈值,确定调节上述灯具的输出功率;响应于确定预设照度值与上述第一照度值的照度差值不大于预设阈值,确定不调节上述灯具的输出功率。
在一些实施例中,根据上述照度差值,确定与上述照度差值对应的功率变更量;根据上述功率变更量和当前输出功率,确定上述目标输出功率。
在一些实施例中,根据当前输出功率对应的第一档位、上述照度差值对应的待变更档位数,确定目标档位,其中,档位与输出功率对应;
根据上述目标档位,确定上述目标输出功率。
在一些实施例中,响应于接收到输出功率调节指令,根据上述输出功率调节指令所指示的第二输出功率,将上述灯具的当前输出功率调节至上述第二输出功率;根据上述采集区域的第二照度值,确定上述预设照度值,其中,上述灯具的输出功率为上述第二输出功率时,上述采集区域的照度值为第二照度值。
在一些实施例中,当灯具的输出功率大于预设功率阈值时,确定上述图像采集设备处于预定义状态。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一确定单元301还可以被描述为“确定图像采集设备的采集区域的第一照度值的单元”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者 上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (12)

  1. 一种灯光亮度调节方法,其中,应用于包括图像采集设备的灯具,所述方法包括:
    响应于检测到图像采集设备处于预定义状态,根据所述图像采集设备确定的环境亮度值,确定所述图像采集设备的采集区域的第一照度值;
    基于预设照度值与所述第一照度值,确定是否调节所述灯具的输出功率。
  2. 根据权利要求1所述的方法,其中,所述图像采集设备通过如下方式确定所述环境亮度值:
    根据光圈大小、曝光时长和镜头感光度这三者,确定所述环境亮度值。
  3. 根据权利要求2所述的方法,其中,所述根据光圈大小、曝光时长和镜头感光度这三者,确定所述环境亮度值,包括:
    根据光圈参数的数值与曝光时间的时长数值,确定第一总和;
    根据镜头感光度的感光值和所述第一总和,确定所述环境亮度值。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    根据所述灯具的照射方向,确定图像采集设备的安装方向。
  5. 根据权利要求1所述的方法,其中,所述基于预设照度值与所述第一照度值,确定是否调节所述灯具的输出功率,还包括:
    响应于确定预设照度值与所述第一照度值的照度差值大于预设阈值,确定调节所述灯具的输出功率;
    响应于确定预设照度值与所述第一照度值的照度差值不大于预设阈 值,确定不调节所述灯具的输出功率。
  6. 根据权利要求5所述的方法,其中,在所述确定预设照度值与所述第一照度值的照度差值大于预设阈值,确定调节所述灯具的输出功率之后,所述方法还包括:
    根据所述照度差值,确定与所述照度差值对应的功率变更量;
    根据所述功率变更量和当前输出功率,确定所述目标输出功率。
  7. 根据权利要求5所述的方法,其中,在所述确定预设照度值与所述第一照度值的照度差值大于预设阈值,确定调节所述灯具的输出功率之后,所述方法还包括:
    根据当前输出功率对应的第一档位、所述照度差值对应的待变更档位数,确定目标档位,其中,档位与输出功率对应;
    根据所述目标档位,确定所述目标输出功率。
  8. 根据权利要求1所述的方法,其中,所述方法还包括:
    响应于接收到输出功率调节指令,根据所述输出功率调节指令所指示的第二输出功率,将所述灯具的当前输出功率调节至所述第二输出功率;
    根据所述采集区域的第二照度值,确定所述预设照度值,其中,所述灯具的输出功率为所述第二输出功率时,所述采集区域的照度值为第二照度值。
  9. 根据权利要求1所述的方法,其中,所述方法的还包括:
    当灯具的输出功率大于预设功率阈值时,确定所述图像采集设备处于预定义状态。
  10. 一种灯光亮度调节装置,其中,应用于包括图像采集设备的灯具,所述装置包括:
    第一确定单元,用于响应于检测到图像采集设备处于预定义状态,根据所述图像采集设备确定的环境亮度值,确定所述图像采集设备的采集区域的第一照度值;
    第二确定单元,用于基于预设照度值与所述第一照度值,确定是否调节所述灯具的输出功率。
  11. 一种电子设备,其中,包括:
    一个或多个处理器;
    存储装置,用于存储一个或多个程序,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-9中任一所述的方法。
  12. 一种计算机可读介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-9中任一所述的方法。
PCT/CN2022/104817 2021-07-23 2022-07-11 灯光亮度调节方法、装置和电子设备 WO2023001001A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110841086.0A CN113596343A (zh) 2021-07-23 2021-07-23 灯光亮度调节方法、装置和电子设备
CN202110841086.0 2021-07-23

Publications (1)

Publication Number Publication Date
WO2023001001A1 true WO2023001001A1 (zh) 2023-01-26

Family

ID=78249493

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/104817 WO2023001001A1 (zh) 2021-07-23 2022-07-11 灯光亮度调节方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN113596343A (zh)
WO (1) WO2023001001A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116756469A (zh) * 2023-08-22 2023-09-15 中之力搏建设工程有限公司 一种户外照明灯具优化管理系统
CN117676992A (zh) * 2024-02-02 2024-03-08 东莞莱姆森科技建材有限公司 多组智能灯镜协同照明控制方法和系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596343A (zh) * 2021-07-23 2021-11-02 北京字节跳动网络技术有限公司 灯光亮度调节方法、装置和电子设备
CN117793541A (zh) * 2024-02-27 2024-03-29 广东朝歌智慧互联科技有限公司 环境光线调节方法、装置、电子设备及可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102573239A (zh) * 2012-01-16 2012-07-11 迅驰(北京)视讯科技有限公司 用于摄像机的补光灯亮度智能控制方法及装置
CN107231734A (zh) * 2017-05-04 2017-10-03 深圳市元征科技股份有限公司 车内灯光调节方法、及车内灯光调节装置
CN107707826A (zh) * 2017-09-29 2018-02-16 深圳怡化电脑股份有限公司 补光灯的亮度调节方法及装置
US20200045218A1 (en) * 2018-07-13 2020-02-06 Samsung Electronics Co., Ltd. Electronic device and operating method of controlling brightness of light source
CN112333898A (zh) * 2019-08-30 2021-02-05 北京字节跳动网络技术有限公司 一种灯具亮度调节方法、装置、灯具和存储介质
CN113596343A (zh) * 2021-07-23 2021-11-02 北京字节跳动网络技术有限公司 灯光亮度调节方法、装置和电子设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648210B (zh) * 2013-11-26 2015-06-24 清华大学 基于驾驶员视觉亮度适应机制的车灯控制方法
CN208241958U (zh) * 2018-05-29 2018-12-14 陕西大航联科电子技术有限公司 一种智能灯具和智能灯具控制系统
CN109466436B (zh) * 2018-11-20 2021-02-05 福建工程学院 一种车用吸顶阅读灯照明方法及系统
CN112584057B (zh) * 2019-09-27 2022-05-06 荣耀终端有限公司 一种光照度检测方法和装置
CN111372007B (zh) * 2020-03-03 2021-11-12 荣耀终端有限公司 环境光照度的检测方法、装置和电子设备
CN111770618A (zh) * 2020-06-23 2020-10-13 深圳乐谱照明科技有限公司 一种照度恒定的自适应调光系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102573239A (zh) * 2012-01-16 2012-07-11 迅驰(北京)视讯科技有限公司 用于摄像机的补光灯亮度智能控制方法及装置
CN107231734A (zh) * 2017-05-04 2017-10-03 深圳市元征科技股份有限公司 车内灯光调节方法、及车内灯光调节装置
CN107707826A (zh) * 2017-09-29 2018-02-16 深圳怡化电脑股份有限公司 补光灯的亮度调节方法及装置
US20200045218A1 (en) * 2018-07-13 2020-02-06 Samsung Electronics Co., Ltd. Electronic device and operating method of controlling brightness of light source
CN112333898A (zh) * 2019-08-30 2021-02-05 北京字节跳动网络技术有限公司 一种灯具亮度调节方法、装置、灯具和存储介质
CN113596343A (zh) * 2021-07-23 2021-11-02 北京字节跳动网络技术有限公司 灯光亮度调节方法、装置和电子设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116756469A (zh) * 2023-08-22 2023-09-15 中之力搏建设工程有限公司 一种户外照明灯具优化管理系统
CN116756469B (zh) * 2023-08-22 2023-10-31 中之力搏建设工程有限公司 一种户外照明灯具优化管理系统
CN117676992A (zh) * 2024-02-02 2024-03-08 东莞莱姆森科技建材有限公司 多组智能灯镜协同照明控制方法和系统
CN117676992B (zh) * 2024-02-02 2024-04-26 东莞莱姆森科技建材有限公司 多组智能灯镜协同照明控制方法和系统

Also Published As

Publication number Publication date
CN113596343A (zh) 2021-11-02

Similar Documents

Publication Publication Date Title
WO2023001001A1 (zh) 灯光亮度调节方法、装置和电子设备
CN107622281B (zh) 图像分类方法、装置、存储介质及移动终端
US9967444B2 (en) Apparatus and method for capturing image in electronic device
CN108717432B (zh) 资源查询方法及装置
CN112333898B (zh) 一种灯具亮度调节方法、装置、灯具和存储介质
KR20150072764A (ko) 전자기기에서 해상도 레벨을 제어하기 위한 방법 및 장치
CN109948087B (zh) 网页资源的获取方法、装置及终端
CN111104980B (zh) 确定分类结果的方法、装置、设备及存储介质
US20240086043A1 (en) Information display method and apparatus, electronic device, and storage medium
KR20160064839A (ko) 저주파 화면 표시 방법 및 이를 수행하는 전자장치
US20220394192A1 (en) Video processing method, terminal device and storage medium
CN113721807B (zh) 一种信息展示方法、装置、电子设备和存储介质
CN114363686B (zh) 多媒体内容的发布方法、装置、设备和介质
WO2022134691A1 (zh) 一种终端设备中啸叫处理方法及装置、终端
CN110730262A (zh) 环境亮度值检测方法、装置和电子设备
US20240019985A1 (en) Emoji preview method and apparatus, device and medium
US20230298303A1 (en) Video processing method, electronic device, and storage medium
CN113364993B (zh) 曝光参数值处理方法、装置和电子设备
WO2022267978A1 (zh) 一种背光值调节方法、处理器、显示终端及存储介质
CN113593495A (zh) 校准方法、装置和电子设备
WO2022071875A1 (zh) 图片转视频的方法、装置、设备及存储介质
CN109189525B (zh) 加载子页面的方法、装置、设备及计算机可读存储介质
CN113066166A (zh) 图像处理方法、装置和电子设备
CN113301422A (zh) 获取视频封面的方法、终端及存储介质
CN113556850B (zh) 灯具亮度校准方法、确定方法、装置和电子设备

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE