CN112333898B - Lamp brightness adjusting method and device, lamp and storage medium - Google Patents
Lamp brightness adjusting method and device, lamp and storage medium Download PDFInfo
- Publication number
- CN112333898B CN112333898B CN201910816899.7A CN201910816899A CN112333898B CN 112333898 B CN112333898 B CN 112333898B CN 201910816899 A CN201910816899 A CN 201910816899A CN 112333898 B CN112333898 B CN 112333898B
- Authority
- CN
- China
- Prior art keywords
- preset
- brightness
- lamp
- exposure information
- sensitivity
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000035945 sensitivity Effects 0.000 claims description 52
- 238000013507 mapping Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 10
- 238000004364 calculation method Methods 0.000 claims description 8
- 230000001105 regulatory effect Effects 0.000 claims description 4
- 206010034960 Photophobia Diseases 0.000 claims description 2
- 208000013469 light sensitivity Diseases 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the disclosure discloses a lamp brightness adjusting method, a device, a lamp and a storage medium, wherein the method comprises the following steps: acquiring exposure information of an image shot by the camera; determining a current environment brightness value according to the exposure information; and comparing the current ambient brightness value with a preset ambient brightness threshold value, and adjusting the brightness of the lamp according to a comparison result. According to the embodiment of the disclosure, the dynamic adjustment of the brightness of the lamp is realized by analyzing the exposure information of the image shot by the camera, the adjustment cost is reduced, and the adjustment efficiency is improved.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of light control, in particular to a lamp brightness adjusting method, a device, a lamp and a storage medium.
Background
With the continuous development of social economy, public lighting fixtures such as road squares of cities and enterprises are more and more, and meanwhile, the lighting fixtures are also indispensable in household life.
However, most of the public lighting lamps are traditional control lamps, the brightness of some lamps is fixed, the brightness adjustment cannot be realized, and the electric power waste is easily caused; some lamps need to realize brightness adjustment by manually adjusting a plurality of brightness gears on the lamps, or directly sensing the brightness of the environment through a photosensitive element, so that the adjustment cost is high and the adjustment speed is low.
BRIEF SUMMARY OF THE PRESENT DISCLOSURE
The embodiment of the disclosure provides a lamp brightness adjusting method, a device, a lamp and a storage medium, which are used for solving the technical problems of high adjusting cost and low adjusting speed in the prior art when the lamp brightness is adjusted.
In a first aspect, an embodiment of the present disclosure provides a method for adjusting brightness of a lamp, including:
acquiring exposure information of an image shot by the camera;
determining a current environment brightness value according to the exposure information;
and comparing the current ambient brightness value with a preset ambient brightness threshold value, and adjusting the brightness of the lamp according to a comparison result.
In a second aspect, embodiments of the present disclosure further provide a device for adjusting brightness of a lamp, where the device includes:
the acquisition module is used for acquiring exposure information of the image shot by the camera;
the environment brightness calculation module is used for determining a current environment brightness value according to the exposure information;
and the adjusting module is used for comparing the current ambient brightness value with a preset ambient brightness threshold value and adjusting the brightness of the lamp according to a comparison result. In a third aspect, embodiments of the present disclosure further provide a lamp, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a luminaire brightness adjustment method as described in any one of the embodiments of the present disclosure.
In a fourth aspect, the embodiments of the present disclosure further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a luminaire brightness adjustment method according to any of the embodiments of the present disclosure.
According to the embodiment of the disclosure, the current environment brightness value is determined according to the exposure information by acquiring the exposure information of the image shot by the camera on the lamp, the current environment brightness value is compared with the preset environment brightness threshold value, and the brightness of the lamp is adjusted according to the comparison result. Therefore, by analyzing the exposure information of the image shot by the camera, the dynamic adjustment of the brightness of the lamp is realized, the adjustment cost is reduced, and the adjustment efficiency is improved.
Drawings
FIG. 1 is a flow chart of a method for adjusting the brightness of a luminaire in an embodiment of the present disclosure;
FIG. 2 is a flow chart of another luminaire brightness adjustment method in an embodiment of the present disclosure;
FIG. 3 is a schematic view of a lamp brightness adjusting device according to an embodiment of the disclosure;
fig. 4 is a schematic structural view of a luminaire in an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the present disclosure and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present disclosure are shown in the drawings.
It should be noted that the terms "system" and "network" are often used interchangeably herein in this disclosure. References to "and/or" in embodiments of the present disclosure are intended to "include any and all combinations of one or more of the associated listed items. The terms first, second and the like in the description and in the claims and drawings are used for distinguishing between different objects and not for limiting a particular order.
It should be further noted that, the following embodiments of the present disclosure may be implemented separately or in combination with each other, and the embodiments of the present disclosure are not limited in this regard.
In the following embodiments, optional features and examples are provided in each embodiment at the same time, and the features described in the embodiments may be combined to form multiple alternatives, and each numbered embodiment should not be considered as only one technical solution.
Referring to fig. 1, a flow chart of a method for adjusting brightness of a lamp according to an embodiment of the present disclosure is shown, where the method disclosed in the embodiment of the present disclosure is mainly applicable to a situation that brightness of the lamp is automatically adjusted according to an image captured by a camera on the lamp, for example, the method is applied to a scene where a user learns by using an intelligent desk lamp with a click-to-read function, and the image of a desktop or a book is captured by the camera on the click-to-read desk lamp in the scene, and the current environment brightness is determined according to the image of the desktop or the book, so that brightness of the intelligent desk lamp is adjusted to ensure that the user learns under comfortable light brightness; the method can also be used for determining the ambient brightness of the image shot by the monitoring camera under the monitoring shooting scene, and adjusting the brightness of the infrared lamp of the camera according to the continuous reading of the environment so as to ensure the quality of the image shot by the monitoring camera. The method can be executed by a corresponding lamp brightness adjusting device, and the device can be realized in a software and/or hardware mode and can be configured on a lamp, such as an intelligent click reading desk lamp with a camera or a monitoring camera.
As shown in fig. 1, the method specifically includes the following steps:
s101, acquiring exposure information of an image shot by the camera.
Wherein the exposure information includes at least exposure time and sensitivity. Since the basic information of the image, such as format, size or exposure information, is stored in the image captured by the camera, the exposure time and sensitivity of capturing the image stored in the image can be obtained by performing image recognition on the image captured by the camera. Alternatively, since photographing parameters, such as exposure information, at the time of photographing are also stored in the camera device, the exposure information may also be acquired through a specific interface.
S102, determining a current environment brightness value according to the exposure information.
For example, the ambient brightness value corresponding to the exposure information is determined according to a pre-stored mapping table of the exposure information and the ambient brightness value, wherein the mapping table stores the ambient brightness values corresponding to different exposure time and sensitivity, so that the current ambient brightness value corresponding to the exposure information can be determined only by acquiring the exposure time and the sensitivity of the image.
The mapping table is determined by counting exposure information of images shot by the camera under different environment brightness values. For example, in a light box, a camera is controlled to shoot images under different ambient brightness values, and exposure time and sensitivity corresponding to the images are acquired, wherein the different ambient brightness values are detected by standard light brightness detection equipment, for example, a standard illuminometer is used for measurement, so that a mapping table can be determined according to the different exposure time and sensitivity and the corresponding ambient brightness. Further, in order to ensure the accuracy of the obtained mapping table, the signal-to-noise ratio of the image shot by the camera can be obtained, and the accuracy of the mapping table of the exposure information and the ambient brightness value is determined according to the signal-to-noise ratio. Since the more the noise of the image is, the larger the sensitivity of the corresponding image should be, whether the sensitivity of the image is accurate or not can be determined by the noise in the calculated image, thereby achieving the purpose of verification.
In another alternative embodiment, fitting operation is performed according to the acquired different exposure time and sensitivity and the corresponding ambient brightness, so as to obtain a nonlinear equation of the ambient brightness, the exposure time and the sensitivity, and the brightness of the current environment is calculated directly according to the acquired nonlinear equation by the acquired exposure time and the acquired sensitivity.
S103, comparing the current ambient brightness value with a preset ambient brightness threshold value, and adjusting the brightness of the lamp according to a comparison result.
For example, the brightness of the lamp may be adjusted according to the difference between the current ambient brightness value and the preset ambient brightness threshold. For example, the current ambient brightness value is the same as the preset ambient brightness threshold by either turning up the brightness of the luminaire or turning down the luminaire brightness based on the difference between the current ambient brightness value and the preset ambient brightness threshold.
According to the embodiment of the disclosure, the current environment brightness value is determined according to the exposure information by acquiring the exposure information of the image shot by the camera on the lamp, the current environment brightness value is compared with the preset environment brightness threshold value, and the brightness of the lamp is adjusted according to the comparison result. Therefore, by analyzing the exposure information of the image shot by the camera, the dynamic adjustment of the brightness of the lamp is realized, the adjustment cost is reduced, and the adjustment efficiency is improved.
Referring to fig. 2, a flowchart of another method for adjusting brightness of a lamp according to an embodiment of the disclosure is shown, in order to avoid frequent adjustment of brightness of the lamp, an operation for determining whether adjustment of brightness of the lamp is required is added, and an operation for verifying an adjustment result is added. As shown in fig. 2, the method includes:
s201, acquiring exposure information of an image shot by the camera.
S202, judging whether the exposure information meets a preset condition, and if not, executing S203.
The preset condition is used for indicating that brightness adjustment of the lamp is not needed. Since the exposure information at least includes exposure time and sensitivity, the preset condition at least includes a preset exposure time interval and a preset sensitivity interval corresponding to the exposure time and the sensitivity, respectively; the preset exposure time interval and the preset sensitivity interval are used for representing the range of values of exposure time and sensitivity required for shooting images meeting the requirements of users. Thus, after the exposure time and the sensitivity of the captured image are obtained in S201, it may be determined whether the brightness of the lamp needs to be adjusted by determining whether the exposure time and the sensitivity are within respective preset intervals.
S203, determining the current ambient brightness value according to the exposure information.
S204, comparing the current ambient brightness value with a preset ambient brightness threshold value, and adjusting the brightness of the lamp according to a comparison result.
The preset ambient brightness threshold is an ambient brightness value corresponding to whether the exposure time and the sensitivity are within respective preset intervals. Therefore, if the determined current ambient brightness value is different from the preset ambient brightness threshold value, the current ambient brightness value and the preset ambient brightness threshold value can be the same by adjusting the brightness of the lamp. For example, when the current ambient brightness value is smaller than the preset ambient brightness threshold value, the current ambient brightness may be increased by increasing the brightness of the lamp.
Further, after the brightness of the lamp is adjusted, the exposure information of the image newly shot by the camera is obtained, and whether the exposure information meets the preset condition is judged, so that whether the brightness adjustment of the lamp light is accurate is verified. For example, after adjusting the brightness of the lamp, if the exposure time and the sensitivity of the newly shot image are both within the corresponding preset exposure time interval and preset sensitivity interval, respectively, the brightness adjustment of the lamp is considered to be accurate.
According to the embodiment of the disclosure, whether the brightness of the lamp needs to be adjusted or not is judged by judging whether the exposure time and the light sensitivity of the image shot by the camera on the lamp are in the respective preset intervals, so that frequent adjustment of the brightness of the lamp is avoided, and after the brightness of the lamp is adjusted each time, whether the exposure information of the newly shot image meets the preset conditions or not is judged to verify the accuracy of the adjustment operation.
Fig. 3 is a schematic structural diagram of a lamp brightness adjusting device according to an embodiment of the disclosure, where the device is configured on a lamp with a camera. As shown in fig. 3, the apparatus includes:
an acquiring module 301, configured to acquire exposure information of an image captured by the camera;
an ambient brightness calculation module 302, configured to determine a current ambient brightness value according to the exposure information;
and the adjusting module 303 is used for comparing the current ambient brightness value with a preset ambient brightness threshold value and adjusting the brightness of the lamp according to a comparison result.
According to the embodiment of the disclosure, the current environment brightness value is determined according to the exposure information by acquiring the exposure information of the image shot by the camera on the lamp, the current environment brightness value is compared with the preset environment brightness threshold value, and the brightness of the lamp is adjusted according to the comparison result. Therefore, by analyzing the exposure information of the image shot by the camera, the dynamic adjustment of the brightness of the lamp is realized, the adjustment cost is reduced, and the adjustment efficiency is improved.
Optionally, the apparatus further includes:
the judging module is used for judging whether the exposure information meets preset conditions or not, wherein the preset conditions are used for judging whether brightness adjustment is needed to be carried out on the lamp or not.
Optionally, the exposure information includes at least exposure time and sensitivity;
correspondingly, the preset conditions at least comprise a preset exposure time interval and a preset sensitivity interval corresponding to the exposure time and the sensitivity respectively;
the preset exposure time interval and the preset sensitivity interval are used for representing the range of values of exposure time and sensitivity required for shooting images meeting the requirements of users.
Optionally, the ambient brightness calculation module is specifically configured to:
determining an environment brightness value corresponding to exposure information according to a mapping table of the pre-stored exposure information and the environment brightness value;
the mapping table is determined by counting exposure information of images shot by the camera under different environment brightness values.
Optionally, the apparatus further includes:
and the mapping precision adjusting module is used for acquiring the signal-to-noise ratio of the image shot by the camera, and determining the accuracy of the mapping table of the exposure information and the environment brightness value according to the signal-to-noise ratio.
Optionally, the apparatus further includes:
and the verification module is used for acquiring exposure information of the image newly shot by the camera after the brightness of the lamp is regulated, and judging whether the exposure information meets preset conditions or not so as to verify whether the brightness regulation of the lamp is accurate or not.
The lamp brightness adjusting device provided by the embodiment of the disclosure can execute the lamp brightness adjusting method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the executing method.
Fig. 4 is a schematic structural diagram of a lamp provided in an embodiment of the present disclosure, and as shown in fig. 4, the schematic structural diagram of a lamp suitable for implementing an embodiment of the present disclosure is shown. The luminaire illustrated in fig. 4 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 4, a luminaire 400 may include a processor (e.g., central processor, graphics processor, etc.) 401 that may perform various suitable actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage 408 into a Random Access Memory (RAM) 403, such as implementing a luminaire brightness adjustment method provided by an embodiment of the present disclosure, wherein the luminaire brightness adjustment method includes:
acquiring exposure information of an image shot by the camera;
determining a current environment brightness value according to the exposure information;
and comparing the current ambient brightness value with a preset ambient brightness threshold value, and adjusting the brightness of the lamp according to a comparison result.
In the RAM 403, various programs and data required for the operation of the luminaire 400 are also stored. The processor 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the luminaire 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates a luminaire 400 having various devices, it is to be understood that not all illustrated devices are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processor 401.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 context of this 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 the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the luminaire; or may be present alone without being fitted into the luminaire.
The computer readable medium carries one or more programs, which when executed by the light fixture, cause the server to execute the associated information pushing method provided in the embodiment, including: acquiring reading behavior data of a user aiming at a target article, which is collected by a client; acquiring an association relation between a target article and a target element from a storage module, wherein the target element is associated with at least one object article; acquiring the association value of the user and the target element according to the reading behavior data of the user aiming at the target article and the association relation between the target article and the target element; and pushing recommendation information associated with the target element to the user according to the association value of the user to the target element.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 modules described in the embodiments of the present disclosure may be implemented in software or hardware. The name of the module is not limited to the module itself in some cases, and for example, the ambient brightness calculation module may be also described as "a module that determines a current ambient brightness value from exposure information".
In accordance with one or more embodiments of the present disclosure, the following is also disclosed:
a1, a lamp brightness adjusting method is applied to a lamp with a camera and comprises the following steps:
acquiring exposure information of an image shot by the camera;
determining a current environment brightness value according to the exposure information;
and comparing the current ambient brightness value with a preset ambient brightness threshold value, and adjusting the brightness of the lamp according to a comparison result.
A2, the method according to A1, before determining the current ambient brightness value according to the exposure information, the method further comprises:
judging whether the exposure information meets preset conditions or not, wherein the preset conditions are used for judging whether brightness adjustment is needed to be carried out on the lamp or not.
A3, the method according to A2, wherein the exposure information at least comprises exposure time and sensitivity;
correspondingly, the preset conditions at least comprise a preset exposure time interval and a preset sensitivity interval corresponding to the exposure time and the sensitivity respectively;
the preset exposure time interval and the preset sensitivity interval are used for representing the range of values of exposure time and sensitivity required for shooting images meeting the requirements of users.
A4, determining a current environment brightness value according to the exposure information according to the method of A1, wherein the method comprises the following steps:
determining an environment brightness value corresponding to exposure information according to a mapping table of the pre-stored exposure information and the environment brightness value;
the mapping table is determined by counting exposure information of images shot by the camera under different environment brightness values.
A5, the method according to A4, the method further comprising:
and acquiring the signal-to-noise ratio of the image shot by the camera, and determining the accuracy of the mapping table of the exposure information and the environment brightness value according to the signal-to-noise ratio.
A6, the method of A1, the method further comprising:
after the brightness of the lamp is regulated, acquiring exposure information of an image newly shot by the camera, and judging whether the exposure information meets preset conditions or not so as to verify whether the brightness regulation of the lamp light is accurate or not.
B1, a lamp brightness adjusting device, configured in a lamp with a camera, the device comprises:
the acquisition module is used for acquiring exposure information of the image shot by the camera;
the environment brightness calculation module is used for determining a current environment brightness value according to the exposure information;
and the adjusting module is used for comparing the current ambient brightness value with a preset ambient brightness threshold value and adjusting the brightness of the lamp according to a comparison result.
B2, the apparatus of B1, the apparatus further comprising:
the judging module is used for judging whether the exposure information meets preset conditions or not, wherein the preset conditions are used for judging whether brightness adjustment is needed to be carried out on the lamp or not.
B3, the device according to B2, wherein the exposure information at least comprises exposure time and sensitivity;
correspondingly, the preset conditions at least comprise a preset exposure time interval and a preset sensitivity interval corresponding to the exposure time and the sensitivity respectively;
the preset exposure time interval and the preset sensitivity interval are used for representing the range of values of exposure time and sensitivity required for shooting images meeting the requirements of users.
B4, the device according to B1, the said ambient brightness calculation module is specifically used for:
determining an environment brightness value corresponding to exposure information according to a mapping table of the pre-stored exposure information and the environment brightness value;
the mapping table is determined by counting exposure information of images shot by the camera under different environment brightness values.
B5, the apparatus of B4, the apparatus further comprising:
and the mapping precision adjusting module is used for acquiring the signal-to-noise ratio of the image shot by the camera, and determining the accuracy of the mapping table of the exposure information and the environment brightness value according to the signal-to-noise ratio.
B6, the apparatus of B1, the apparatus further comprising:
and the verification module is used for acquiring exposure information of the image newly shot by the camera after the brightness of the lamp is regulated, and judging whether the exposure information meets preset conditions or not so as to verify whether the brightness regulation of the lamp is accurate or not.
C. A light fixture, comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the luminaire brightness adjustment method as described in any one of the present disclosure.
D. A computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements a luminaire brightness adjustment method according to any of the present disclosure.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although 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. In 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 limiting the scope of the present 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 example forms of implementing the claims.
Claims (7)
1. The lamp brightness adjusting method is characterized by being applied to a lamp with a camera, and comprises the following steps:
acquiring exposure information of an image shot by the camera, wherein the exposure information comprises exposure time and light sensitivity of the image;
determining a current environment brightness value according to the exposure information;
comparing the current ambient brightness value with a preset ambient brightness threshold value, and adjusting the brightness of the lamp according to a comparison result;
the determining the current ambient brightness value according to the exposure information comprises the following steps:
determining an environment brightness value corresponding to exposure information according to a mapping table of the pre-stored exposure information and the environment brightness value;
the mapping table is determined by counting exposure information of images shot by the camera under different environment brightness values;
before determining the current ambient brightness value according to the exposure information, the method further comprises:
judging whether the exposure information meets preset conditions or not, wherein the preset conditions are used for indicating that brightness adjustment of the lamp is not needed;
if not, executing the operation of determining the current environment brightness value according to the exposure information;
the preset conditions at least comprise a preset exposure time interval and a preset sensitivity interval corresponding to the exposure time and the sensitivity; the preset exposure time interval and the preset sensitivity interval are used for representing the range of values of exposure time and sensitivity required for shooting images meeting the requirements of users.
2. The method according to claim 1, wherein the exposure information includes at least exposure time and sensitivity;
correspondingly, the preset conditions at least comprise a preset exposure time interval and a preset sensitivity interval corresponding to the exposure time and the sensitivity respectively;
the preset exposure time interval and the preset sensitivity interval are used for representing the range of values of exposure time and sensitivity required for shooting images meeting the requirements of users.
3. The method according to claim 1, wherein the method further comprises:
and acquiring the signal-to-noise ratio of the image shot by the camera, and determining the accuracy of the mapping table of the exposure information and the environment brightness value according to the signal-to-noise ratio.
4. The method according to claim 1, wherein the method further comprises:
after the brightness of the lamp is regulated, acquiring exposure information of an image newly shot by the camera, and judging whether the exposure information meets preset conditions or not so as to verify whether the brightness regulation of the lamp light is accurate or not.
5. A luminaire brightness adjustment device configured in a luminaire with a camera, said device comprising:
the acquisition module is used for acquiring exposure information of the image shot by the camera, wherein the exposure information comprises exposure time and sensitivity of the image;
the environment brightness calculation module is used for determining a current environment brightness value according to the exposure information;
the adjusting module is used for comparing the current ambient brightness value with a preset ambient brightness threshold value and adjusting the brightness of the lamp according to a comparison result;
the ambient brightness calculation module is specifically identical to:
determining an ambient brightness value corresponding to the exposure information according to a pre-stored mapping table of the exposure information and the ambient brightness value;
the mapping table is determined by counting exposure information of images shot by the camera under different environment brightness values;
the apparatus further comprises:
the judging module is used for judging whether the exposure information meets preset conditions or not, wherein the preset conditions are used for judging whether brightness adjustment is needed to be carried out on the lamp or not; the preset conditions at least comprise a preset exposure time interval and a preset sensitivity interval which correspond to the exposure time and the sensitivity respectively;
the preset exposure time interval and the preset sensitivity interval are used for representing the range of values of exposure time and sensitivity required for shooting images meeting the requirements of users; the preset exposure time interval and the preset sensitivity interval are used for representing the range of values of exposure time and sensitivity required for shooting images meeting the requirements of users.
6. A light fixture, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the luminaire brightness adjustment method of any one of claims 1-4.
7. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a luminaire brightness adjustment method as claimed in any one of claims 1-4.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910816899.7A CN112333898B (en) | 2019-08-30 | 2019-08-30 | Lamp brightness adjusting method and device, lamp and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910816899.7A CN112333898B (en) | 2019-08-30 | 2019-08-30 | Lamp brightness adjusting method and device, lamp and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112333898A CN112333898A (en) | 2021-02-05 |
| CN112333898B true CN112333898B (en) | 2023-04-25 |
Family
ID=74319319
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910816899.7A Active CN112333898B (en) | 2019-08-30 | 2019-08-30 | Lamp brightness adjusting method and device, lamp and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112333898B (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112954850A (en) * | 2021-02-22 | 2021-06-11 | 天津久曜灯具制造有限公司 | Classroom lamp brightness control method and device and classroom lamp |
| CN113596343A (en) * | 2021-07-23 | 2021-11-02 | 北京字节跳动网络技术有限公司 | Lamplight brightness adjusting method and device and electronic equipment |
| CN113473035A (en) * | 2021-07-23 | 2021-10-01 | 北京字节跳动网络技术有限公司 | Ambient brightness determination method and device and electronic equipment |
| CN113364993B (en) * | 2021-07-23 | 2023-04-18 | 北京字节跳动网络技术有限公司 | Exposure parameter value processing method and device and electronic equipment |
| CN113923828A (en) * | 2021-09-16 | 2022-01-11 | 深圳世元云标识科技有限公司 | Control method, device, identification product, system and storage medium for marking product |
| CN114399618A (en) * | 2022-01-06 | 2022-04-26 | 北京爱笔科技有限公司 | Illumination control method, device, computer equipment and storage medium |
| CN114786295B (en) * | 2022-05-06 | 2024-12-13 | 紫光计算机科技有限公司 | Method, device, lamp, electronic device and medium for adjusting lamp brightness |
| CN115175416A (en) * | 2022-06-24 | 2022-10-11 | 淮阴师范学院 | Automatic control method for automobile headlamp based on machine vision |
| CN117692781B (en) * | 2023-05-23 | 2025-02-07 | 荣耀终端有限公司 | Flickering light source detection method and electronic device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104780323A (en) * | 2015-03-04 | 2015-07-15 | 广东欧珀移动通信有限公司 | A method and device for adjusting the brightness of a soft light lamp |
| CN105636294A (en) * | 2014-10-30 | 2016-06-01 | 曾承旺 | Illumination energy-saving method |
| WO2018121185A1 (en) * | 2016-12-27 | 2018-07-05 | 杭州萤石网络有限公司 | Method for adjusting power of infrared lamp, and photographic equipment |
| CN108601139A (en) * | 2018-04-26 | 2018-09-28 | 莆田市烛火信息技术有限公司 | A kind of Intelligent House Light collecting method |
| CN109640442A (en) * | 2018-12-14 | 2019-04-16 | 东南大学 | A kind of classroom luminous environment control system based on NB-IOT |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101140184B (en) * | 2007-10-30 | 2010-07-07 | 北京中星微电子有限公司 | Method and device for automatically measuring ambient brightness |
| CN101534395B (en) * | 2008-03-14 | 2011-02-02 | 鸿富锦精密工业(深圳)有限公司 | System and method for adjusting screen brightness |
| CN105825838A (en) * | 2016-04-28 | 2016-08-03 | 乐视控股(北京)有限公司 | Brightness controlling method and apparatus |
| WO2019080123A1 (en) * | 2017-10-27 | 2019-05-02 | 深圳和而泰智能控制股份有限公司 | Method for controlling illuminating lamp and device thereof, and illuminating lamp |
| CN108600649B (en) * | 2018-04-26 | 2020-09-29 | 温州米诺实业有限公司 | Intelligent household illumination brightness acquisition and control method |
| CN109743825A (en) * | 2019-03-12 | 2019-05-10 | 深圳市沃特沃德股份有限公司 | Light adjusting method, device, storage medium and intelligent arrangement for reading |
-
2019
- 2019-08-30 CN CN201910816899.7A patent/CN112333898B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105636294A (en) * | 2014-10-30 | 2016-06-01 | 曾承旺 | Illumination energy-saving method |
| CN104780323A (en) * | 2015-03-04 | 2015-07-15 | 广东欧珀移动通信有限公司 | A method and device for adjusting the brightness of a soft light lamp |
| WO2018121185A1 (en) * | 2016-12-27 | 2018-07-05 | 杭州萤石网络有限公司 | Method for adjusting power of infrared lamp, and photographic equipment |
| CN108601139A (en) * | 2018-04-26 | 2018-09-28 | 莆田市烛火信息技术有限公司 | A kind of Intelligent House Light collecting method |
| CN109640442A (en) * | 2018-12-14 | 2019-04-16 | 东南大学 | A kind of classroom luminous environment control system based on NB-IOT |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112333898A (en) | 2021-02-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112333898B (en) | Lamp brightness adjusting method and device, lamp and storage medium | |
| CN111552470A (en) | Data analysis task creation method and device in Internet of things and storage medium | |
| US10261393B2 (en) | Method for controlling infrared illuminator and related image-recording device | |
| WO2023001001A1 (en) | Light brightness adjustment method and apparatus, and electronic device | |
| CN113473035A (en) | Ambient brightness determination method and device and electronic equipment | |
| CN110766780A (en) | Method and device for rendering room image, electronic equipment and computer readable medium | |
| CN110619807B (en) | Method and device for generating global thermodynamic diagram | |
| CN111402220A (en) | Method and apparatus for obtaining information | |
| CN109040729B (en) | Image white balance correction method and device, storage medium and terminal | |
| CN113099101B (en) | Camera shooting parameter adjusting method and device and electronic equipment | |
| CN113556850B (en) | Lamp brightness calibration method, determination method, device and electronic equipment | |
| CN114063964B (en) | Volume compensation optimization method, device, electronic device and readable storage medium | |
| CN112037280A (en) | Object distance measuring method and device | |
| CN112465940B (en) | Image rendering method, device, electronic device and storage medium | |
| CN113038026B (en) | Image processing method and electronic device | |
| CN113364993B (en) | Exposure parameter value processing method and device and electronic equipment | |
| CN111414921B (en) | Sample image processing method, device, electronic equipment and computer storage medium | |
| CN118037602B (en) | Image quality optimization method, device, electronic equipment, medium and program product | |
| US9992407B2 (en) | Image context based camera configuration | |
| CN112235563B (en) | Focusing test method and device, computer equipment and storage medium | |
| CN111292245B (en) | Image processing method and device | |
| CN113066166B (en) | Image processing method, device and electronic device | |
| CN112104812A (en) | Method and device for acquiring picture | |
| CN115131877B (en) | Image processing method, device, equipment and storage medium | |
| CN113824938A (en) | Projection control method, device, terminal and storage 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |