CN114786295A - Lamp brightness adjusting method and device, lamp, electronic equipment and medium - Google Patents

Lamp brightness adjusting method and device, lamp, electronic equipment and medium Download PDF

Info

Publication number
CN114786295A
CN114786295A CN202210488825.7A CN202210488825A CN114786295A CN 114786295 A CN114786295 A CN 114786295A CN 202210488825 A CN202210488825 A CN 202210488825A CN 114786295 A CN114786295 A CN 114786295A
Authority
CN
China
Prior art keywords
lamp
brightness
current
data format
brightness parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210488825.7A
Other languages
Chinese (zh)
Inventor
吴凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ziguang Computer Technology Co Ltd
Original Assignee
Ziguang Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ziguang Computer Technology Co Ltd filed Critical Ziguang Computer Technology Co Ltd
Priority to CN202210488825.7A priority Critical patent/CN114786295A/en
Publication of CN114786295A publication Critical patent/CN114786295A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • H05B45/12Controlling the intensity of the light using optical feedback

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides a method and a device for adjusting lamp brightness, a lamp, electronic equipment and a medium, wherein the method comprises the following steps: acquiring an environment image of a target area, wherein the environment image has a first data format, and at least one lamp is arranged in the target area; performing data format conversion processing on the environment image, and acquiring a current exposure index in the data format conversion processing process; determining a current brightness parameter corresponding to the current exposure index according to a preset mapping relation, wherein the preset mapping relation is the mapping relation between the exposure index and the brightness parameter; the brightness of the at least one lamp is adjusted based on the current brightness parameter. The invention shortens the time for brightness adjustment and can adjust the brightness more accurately.

Description

Lamp brightness adjusting method and device, lamp, electronic equipment and medium
Technical Field
The invention relates to the field of lamp brightness control, in particular to a method and a device for adjusting lamp brightness, a lamp, electronic equipment and a medium.
Background
With the continuous development of social economy and the increasingly prominent problem of global energy shortage, people pay more and more attention to environmental protection and energy conservation. In the field of lighting, Light Emitting Diode (LED) lamps attract more and more users by virtue of their advantages of energy saving, environmental protection, good color rendering and response speed. The lamp is used as a novel green light source product and is widely applied to the field of illumination of roads, houses, enterprises and the like.
In the related art, lamps can be roughly classified into two types according to whether brightness can be adjusted: the brightness of the LED lamp can be adjusted, and the brightness of the LED lamp can not be adjusted. The brightness of the non-adjustable brightness lamp is not adjustable, so that power waste is often caused; however, the brightness adjustable lamp in the related art needs to be dimmed by a power switch or other external devices, and the dimming precision is poor, which still causes power waste to a certain extent.
Therefore, the prior art has the problem that the brightness of the lamp is not adjusted accurately enough.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the defect of the prior art that the brightness adjustment of the lamp is not accurate enough, so as to provide a method, an apparatus, a lamp, an electronic device and a medium for adjusting the brightness of the lamp.
In a first aspect of the present invention, a method for lamp dimming is provided, which may include, but is not limited to, at least one of the following steps:
acquiring an environment image of a target area, wherein the environment image has a first data format, and at least one lamp is arranged in the target area;
performing data format conversion processing on the environment image, and acquiring a current exposure index in the data format conversion processing process;
determining a current brightness parameter corresponding to the current exposure index according to a preset mapping relation, wherein the preset mapping relation is the mapping relation between the exposure index and the brightness parameter;
the brightness of the at least one lamp is adjusted based on the current brightness parameter.
In the technical scheme, the current exposure index is acquired in the process of carrying out format conversion processing on the environment image data, and the brightness parameter is determined based on the current exposure index, so that the brightness of the lamp is adjusted, the time for adjusting the brightness is greatly shortened, the brightness is adjusted more linearly, accurate brightness adjustment is realized, discomfort caused by flicker generated by a low-precision brightness adjustment scheme in the traditional technology is reduced and even avoided, and the use experience of a user is improved.
With reference to the first aspect of the present invention, a first implementation manner of the first aspect of the present invention provides a method for adjusting lamp brightness, wherein performing data format conversion processing on an environment image includes:
the environment image is converted from the first data format to a second data format.
In the above embodiments, the present invention can facilitate image browsing by converting an image in a first data format readable by a computer, for example, Bayer array (BR) or Red Green Blue (RGB) format, into a second data format convenient for human eye recognition, for example, YUV data format ("Y" represents brightness or Luma, i.e., gray scale value, "U" and "V" represent Chroma (Chroma or Chroma) for specifying a color of a pixel), based on converting the environment image data format from the first data format into the second data format, for example, converting the data format of the environment image from BR data format into YUV data format.
In combination with the first implementation manner of the first aspect of the present invention, the second implementation manner of the first aspect of the present invention provides a method for adjusting lamp brightness, wherein acquiring a current exposure index during a data format conversion process includes:
the current exposure index is obtained before the environmental image is updated from the first data format to the second data format.
In the above embodiment, the present invention can obtain the current exposure index before the format of the environment image data is updated to the second data format, for example, obtain the current exposure index before the format of the environment image data becomes the YUV data format, so as to determine the current exposure index and the corresponding brightness parameter early, and further achieve the purpose of adjusting the lamp brightness faster based on the determined brightness parameter, so as to effectively improve the precision of adjusting the lamp brightness by accelerating the speed of adjusting the lamp brightness.
With reference to any one of the first aspect of the present invention, the first implementation manner of the first aspect, and the second implementation manner of the first aspect, a third implementation manner of the first aspect of the present invention provides a method for adjusting lamp brightness, wherein obtaining a current exposure index during performing a data format conversion process includes:
after the process of automatic exposure control is finished, acquiring a current exposure index;
wherein, the process of the data format conversion processing includes a process of the Automatic Exposure Control (AEC).
In the technical scheme, the AEC process can be utilized to adjust the image into the image with proper brightness, so that the resolution of human eyes on picture details and the identification of a target are met, and the color expression of the image can meet the visual psychological needs and the indexes of actual engineering.
In combination with any one of the first aspect of the present invention, the first implementation manner of the first aspect, and the second implementation manner of the first aspect, a fourth implementation manner of the first aspect of the present invention provides a method for adjusting brightness of a lamp, wherein adjusting the brightness of at least one lamp based on a current brightness parameter comprises:
comparing the current brightness parameter with the standard brightness parameter to obtain a comparison result;
adjusting a supply current of the lamps based on the comparison result to adjust a brightness of at least one lamp;
the standard brightness parameter is a brightness parameter corresponding to the required ambient brightness.
In the above embodiment, the desired ambient brightness may be set according to a specific application scenario or a preference requirement of an individual, so that the whole lighting environment is more comfortable.
In combination with the fourth implementation manner of the first aspect of the present invention, the fifth implementation manner of the first aspect of the present invention provides a method for adjusting lamp brightness, wherein adjusting the supply current of the lamp based on the comparison result comprises:
if the current brightness parameter is greater than the standard brightness parameter, reducing a first percentage of the lamp supply current;
if the current brightness parameter is less than the standard brightness parameter, increasing the power supply current of the lamp by a second percentage;
if the current brightness parameter is equal to the standard brightness parameter, the supply current of the lamp is kept unchanged.
In the above embodiment, the current is adjusted according to the numerical relationship between the brightness parameters respectively corresponding to the real ambient brightness and the required ambient brightness, so that the brightness of the lamp can be adjusted more accurately.
In combination with the fifth embodiment of the first aspect of the invention, a sixth embodiment of the first aspect of the invention provides a method of lamp dimming, wherein the first percentage and the second percentage are determined by a difference of a current brightness parameter and a standard brightness parameter.
In the embodiment, the brightness of the lamp is adjusted through the accurate calculation process, so that the lamp is more suitable for the daily life and work needs of people, the brightness adjustment is more accurate, and the loss of electric power can be reduced.
With reference to any one of the first aspect of the present invention, the first implementation manner of the first aspect of the present invention, and the second implementation manner of the first aspect of the present invention, a seventh implementation manner of the first aspect of the present invention provides a method for adjusting brightness of a lamp, wherein after adjusting the brightness of at least one lamp based on the current brightness parameter, the method further comprises:
and returning to the step of acquiring the environment image of the target area.
In the above embodiment, the brightness of the lamp can be adjusted by adopting a plurality of steps, the brightness adjustment process is more linear, the loss of the lamp is reduced, and discomfort of people caused by sudden brightness change is avoided.
In combination with any one of the first aspect of the present invention, the first embodiment of the first aspect of the present invention, and the second embodiment of the first aspect of the present invention, an eighth embodiment of the first aspect of the present invention provides a method of dimming a lamp, wherein the lamp comprises an LED.
In the embodiment, the LED lamp is more energy-saving and environment-friendly. Meanwhile, the LED lamp has the advantages of good color rendering and response speed, and can be widely applied to the illumination fields of roads, houses, enterprises and the like.
With reference to any one of the first aspect of the present invention, the first implementation manner of the first aspect of the present invention, and the second implementation manner of the first aspect of the present invention, a ninth implementation manner of the first aspect of the present invention provides a method of lamp brightness adjustment, wherein acquiring an environment image of a target area includes:
and acquiring an environment image when the camera is in a preview state, wherein the camera is used for collecting the environment image.
In the above embodiment, the camera may be turned on periodically or at regular time, and LOG information (LOG file, LOG) of the camera is read when the camera is in a preview state, so as to obtain the exposure index from the LOG information, thereby reducing the use time of the camera and saving more energy.
A second aspect of the present invention provides an apparatus for lamp brightness adjustment, which may include, but is not limited to, an image acquisition module, a first data determination module, a second data determination module, and a brightness adjustment module.
The system comprises an image acquisition module, a data processing module and a data processing module, wherein the image acquisition module is used for acquiring an environment image of a target area, the environment image has a first data format, and at least one lamp is arranged in the target area;
the first data determining module is used for performing data format conversion processing on the environment image and acquiring a current exposure index in the process of performing the data format conversion processing;
the second data determining module is used for determining a current brightness parameter corresponding to the current exposure index according to a preset mapping relation, wherein the preset mapping relation is the mapping relation between the exposure index and the brightness parameter;
and the brightness adjusting module is used for adjusting the brightness of at least one lamp based on the current brightness parameter.
A third aspect of the present invention provides a luminaire including, but not limited to, at least one lamp and a control portion, the at least one lamp and the control portion being electrically connected therebetween, the control portion being configured to perform the aforementioned method of lamp brightness adjustment.
A fourth aspect of the present invention provides an electronic device, which includes, but is not limited to, a memory and a processor, wherein the memory stores computer readable instructions, and when executed by the processor, the computer readable instructions cause the processor to execute the method for adjusting the brightness of a lamp.
A fifth aspect of the present invention provides a storage medium storing computer readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the aforementioned method of lamp dimming.
It can be understood that the apparatuses, the lamps, the electronic devices, or the computer storage media provided above are all used for executing the corresponding methods provided above, and therefore, the beneficial effects achieved by the apparatuses, the lamps, the electronic devices, or the computer storage media can refer to the beneficial effects in the corresponding methods, and are not described herein again.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is an exemplary flow chart of a method of lamp dimming in accordance with an embodiment of the present invention;
FIG. 2 is an exemplary hardware schematic of a method for implementing lamp dimming in accordance with an embodiment of the present invention;
FIG. 3 is an exemplary software flowchart of a method for implementing lamp dimming in accordance with an embodiment of the present invention;
FIG. 4 is an exemplary flow diagram of an ambient image format conversion process according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating an exemplary structure of an apparatus for adjusting brightness of a lamp according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in a specific case to those of ordinary skill in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
As shown in fig. 1, one or more embodiments of the present invention provide a method of lamp dimming including, but not limited to, the following steps.
Step S110: an environmental image of a target area is acquired, the environmental image having a first data format, at least one light disposed in the target area.
Specifically, in conjunction with the illustration in fig. 2, a power supply provides power to a Digital Signal Processing (DSP) that is electrically connected to the camera and from which an environmental image of a target area may be obtained, wherein the target area has at least one light (e.g., an LED light).
In one or more embodiments of the present invention, acquiring the environment image of the target area may include, but is not limited to, acquiring the environment image with a Camera in a Preview (Camera Preview) state, the Camera being used for acquiring the environment image.
Specifically, with reference to fig. 3, the camera may be turned on periodically or at regular time, and LOG information (LOG file, LOG) of the camera is read when the camera is in a preview state, so as to obtain an environmental image from the LOG information, thereby reducing the usage time of the camera and saving more energy.
In a specific example of the present invention, the camera sends the acquired image to the DSP, where the image has a first data format, and the first data format may be a BR data format or an RGB data format. The BR data format refers to a common method used when collecting digital images when a Charge Coupled Device (CCD) or a Complementary Metal Oxide Semiconductor (CMOS) device is used as a photosensor. The RGB data format is a color standard in the industry, which obtains various colors by changing three color channels of red (R), green (G) and blue (B) and superimposing them on each other, where RGB represents the colors of the three channels of red, green and blue, and the standard includes almost all colors that can be perceived by human vision, and is one of the most widely used color systems.
Step S120: and performing data format conversion processing on the environment image, and acquiring the current exposure index in the data format conversion processing process.
Specifically, in conjunction with fig. 2 and 3, the data format conversion process may be performed on the environment image by the DSP, and the current exposure index of the image is acquired by a designated Application program (APP).
In one or more embodiments of the present invention, the data format conversion processing of the environment image may include: the environment image is converted from a first data format to a second data format.
For example, in conjunction with fig. 4, the DSP may perform Image Signal Processing (ISP) on the received Image in the first data format (BR data format). The process of processing the image by the ISP may include converting the image in BR data format into an image in RGB data format by AEC, black level correction, dead pixel removal, bayer noise removal, lens screening, bilinear interpolation algorithm, etc., and then obtaining an image in a second data format (e.g., YUV data format) by processing such as auto white balance, color correction, tone mapping, chroma enhancement, skin color enhancement, hardware wavelet denoising, adaptive spatial filter, etc.
In the embodiment, the image in the BR data format which is easy to read by a computer is converted into the YUV data format which is convenient for human eye recognition, so that the image browsing is more convenient.
In one or more embodiments of the present invention, obtaining the current exposure index during the data format conversion process may include: the current exposure index is obtained before the environmental image is updated from the first data format to the second data format.
In one or more embodiments of the present invention, obtaining the current exposure index in the course of performing the data format conversion process includes:
after the process of automatic exposure control is finished, acquiring a current exposure index;
wherein the process of the data format conversion processing includes a process of automatic exposure control.
Specifically, in conjunction with fig. 4, the DSP may be utilized to obtain the current exposure index through the AEC process during the ISP process before the image in BR data format is converted into the image in YUV data format. Wherein, the APP reads LOG information of the AEC through a DSP provided in a Central Processing Unit (CPU) to read a current exposure index from the LOG information.
At least one embodiment of the invention can acquire the current exposure index before the environment image data format is updated to the second data format, for example, the exposure index is acquired before the environment image data format becomes the YUV data format, so that the current exposure index and the corresponding brightness parameter can be determined early, the aim of adjusting the lamp brightness based on the determined brightness parameter can be achieved, and the accuracy of adjusting the lamp brightness can be effectively improved by accelerating the speed of adjusting the lamp brightness. In addition, the AEC process can be utilized to adjust the image into the image with proper brightness, so that the resolution of human eyes on picture details and the identification of targets are met, and the color expression of the image can meet the visual and psychological needs and the indexes of actual engineering.
Step S130: and determining a current brightness parameter corresponding to the current exposure index according to a preset mapping relation, wherein the preset mapping relation is the mapping relation between the exposure index and the brightness parameter.
Specifically, in conjunction with fig. 3, the current luminance parameter (e.g., the actual luminance value) corresponding to the current exposure index may be determined by querying a mapping table that records a mapping relationship (i.e., a preset mapping relationship) between the exposure index and the luminance parameter, where the preset mapping relationship is obtained through a light box luminance test. The exposure index is changed by adjusting the luminance number of the light box, for example, the luminance parameter 1500 corresponds to the exposure index a, the luminance parameter 780 corresponds to the exposure index b, … …; reading the brightness parameter by a brightness meter, and recording the exposure index and the brightness parameter corresponding thereto as
Table 1.
Figure BDA0003630486220000121
Figure BDA0003630486220000131
TABLE 1
Step S140: the brightness of the at least one lamp is adjusted based on the current brightness parameter.
Specifically, in one or more embodiments of the present invention, adjusting the brightness of at least one lamp based on the current brightness parameter may include:
comparing the current brightness parameter with the standard brightness parameter to obtain a comparison result;
adjusting a supply current of the lamps based on the comparison result to adjust a brightness of at least one lamp;
the standard brightness parameter is a brightness parameter corresponding to the required ambient brightness.
In the above embodiment, the desired ambient brightness may be set according to a specific application scenario or a preference requirement of an individual, so that the whole lighting environment is more comfortable.
Specifically, in one or more embodiments of the present invention, adjusting the supply current of the lamp based on the comparison result may include:
if the current brightness parameter is greater than the standard brightness parameter, reducing a first percentage of the lamp supply current;
if the current brightness parameter is less than the standard brightness parameter, increasing the power supply current of the lamp by a second percentage;
if the current brightness parameter is equal to the standard brightness parameter, the supply current of the lamp is kept unchanged.
In the above embodiment, the current is adjusted according to the numerical relationship between the brightness parameters respectively corresponding to the actual ambient brightness and the required ambient brightness, so that the brightness of the lamp can be adjusted more accurately.
In one or more embodiments of the present invention, after adjusting the brightness of the at least one lamp based on the current brightness parameter, further comprising:
and returning to the step of acquiring the environment image of the target area.
In the above embodiment, the brightness of the lamp may also be adjusted by multiple steps, so that the brightness adjustment process is more linear, the loss of the lamp is reduced, and discomfort of people due to sudden brightness change is avoided.
Specifically, with reference to fig. 3, the actual brightness value may be compared with a preset standard brightness value (i.e., a standard brightness parameter), and if the actual brightness value is smaller than the preset standard brightness value, the power supply current of the lamp is increased, and if the actual brightness value is larger than the preset standard brightness value, the power supply current of the lamp is decreased.
In one specific example of the invention, in connection with fig. 2, the supply current of the lamp can be adjusted on the basis of the comparison of the actual brightness value X with a preset standard brightness value Y:
if X is larger than Y, the DSP reduces the current to the lamp by 10% through a Pulse Width Modulation (PWM), and after the lamp brightness is stable, the exposure index continues to feed back the current brightness value X until X is equal to Y.
If X is smaller than Y, the DSP increases the current to the lamp by 10% through PWM, and after the lamp brightness is stable, the exposure index continues to feed back the current brightness value X until X is equal to Y.
In one or more embodiments of the present invention, the first percentage and the second percentage may be determined by a difference of the current luminance parameter and the standard luminance parameter.
In the embodiment, the brightness of the lamp is adjusted through the accurate calculation process, so that the lamp is more suitable for the daily life and work needs of people, the brightness adjustment is more accurate, and the loss of electric power can be reduced.
In the foregoing embodiment, the DSP, PWM and camera may be connected via an Inter-Integrated Circuit (I2C), and the I2C bus is a simple, bi-directional two-wire synchronous serial bus. It requires only two wires to transfer information between devices connected to the bus.
In the embodiment, the brightness mapping relation is made by using a camera general AEC algorithm, so that the DSP has a function of reading the current brightness, the brightness of the lamp can be accurately and dynamically adjusted, and the science and technology can help to save energy and reduce emission.
Compared with the prior art that the digital camera photosensitivity quantification regulation (ISO) information is read from the photographed YUV picture and then the brightness mapping relation is deduced reversely, the exposure index can be read in real time in the first module AEC in the ISP processing flow, and compared with the brightness information fed back by other patents, the brightness control method is quicker in brightness regulation, more linear in brightness regulation and capable of reducing discomfort caused by flicker.
One or more embodiments of the present invention also provide a lamp brightness adjusting apparatus, as shown in fig. 5. The apparatus provided by the embodiment of the present invention includes, but is not limited to, an image obtaining module, a first data determining module, a second data determining module, and a brightness adjusting module, which is described in detail below.
The image acquisition module 110 is configured to acquire an environment image of a target area, where the environment image has a first data format and at least one lamp is disposed in the target area.
In one or more embodiments of the invention, the light may include an LED.
In one or more embodiments of the present invention, the image acquiring module 110 may acquire the environment image when the camera is in a preview state, and the camera is used for acquiring the environment image.
The first data determining module 120 is configured to perform data format conversion processing on the environment image, and obtain a current exposure index during the data format conversion processing.
In one or more embodiments of the invention, the first data determination module 120 may include:
the format conversion sub-module is used for converting the environment image from a first data format to a second data format;
and the data acquisition sub-module is used for acquiring the current exposure index before the environment image is updated from the first data format to the second data format.
In one or more embodiments of the present invention, the data acquisition sub-module may acquire the current exposure index after the process of the automatic exposure control is finished; wherein the process of the data format conversion processing includes a process of automatic exposure control.
The second data determining module 130 is configured to determine a current brightness parameter corresponding to the current exposure index according to a preset mapping relationship, where the preset mapping relationship is a mapping relationship between the exposure index and the brightness parameter.
A brightness adjustment module 140 for adjusting the brightness of at least one lamp based on the current brightness parameter.
In one or more embodiments of the present invention, the brightness adjustment module 140 may include:
the comparison submodule is used for comparing the current brightness parameter with the standard brightness parameter to obtain a comparison result;
a current adjusting submodule for adjusting a supply current of the lamps based on the comparison result to adjust a brightness of at least one of the lamps;
the standard brightness parameter is a brightness parameter corresponding to the required ambient brightness.
In one or more embodiments of the invention, the current adjustment sub-module may decrease the supply current to the lamp by a first percentage when the current brightness parameter is greater than the standard brightness parameter; increasing a second percentage of the lamp supply current when the current brightness parameter is less than the standard brightness parameter; when the current brightness parameter is equal to the standard brightness parameter, the supply current of the lamp is kept unchanged.
In one or more embodiments of the invention, the current adjustment sub-module may determine the first percentage and the second percentage by a difference of the present brightness parameter and the standard brightness parameter.
In one or more embodiments of the invention, the current adjustment sub-module may feed back the result to the image acquisition module after adjusting the brightness of the at least one lamp based on the current brightness parameter.
One or more embodiments of the present invention also provide a light fixture, including at least one lamp and a control part, where the at least one lamp is electrically connected to the control part, and the control part is configured to perform the method for adjusting the brightness of the lamp in the foregoing embodiments.
Furthermore, as shown in fig. 6, one or more embodiments of the present invention further provide an electronic device 300, which includes a processor 301 and a memory 302, where the processor 301 and the memory 302 are communicatively connected to each other through a communication bus 303, the memory 302 stores computer instructions therein, and the processor 301 executes the computer instructions so as to execute the aforementioned obstacle information determination method or the aforementioned vehicle obstacle avoidance method.
Finally, one or more embodiments of the present invention also provide a computer-readable storage medium. The computer-readable storage medium stores computer instructions for causing a computer to execute the aforementioned obstacle information determination method or the aforementioned vehicle obstacle avoidance method. The aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The detailed implementation process of the video processing method has been described in detail in this specification, and is not described herein again.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable storage medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer cartridge (magnetic device), a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM or flash Memory), an optical fiber device, and a portable Compact Disc Read-Only Memory (CDROM). Further, the computer readable storage medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following technologies, which are well known in the art, may be used: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having appropriate combinational logic gates, Programmable Gate Arrays (PGAs), Field Programmable Gate Arrays (FPGAs), and the like.
It can be understood that the apparatuses, computer devices, or computer storage media provided above are all used for executing the corresponding methods provided above, and therefore, the beneficial effects achieved by the apparatuses, the computer devices, or the computer storage media may refer to the beneficial effects in the corresponding methods, and are not described herein again.
In the description herein, references to the description of the term "the present embodiment," "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and simplifications made in the spirit of the present invention are intended to be included in the scope of the present invention.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (14)

1. A method of dimming a lamp, comprising:
acquiring an environment image of a target area, wherein the environment image has a first data format, and at least one lamp is arranged in the target area;
performing data format conversion processing on the environment image, and acquiring a current exposure index in the data format conversion processing process;
determining a current brightness parameter corresponding to the current exposure index according to a preset mapping relation, wherein the preset mapping relation is a mapping relation between the exposure index and the brightness parameter;
adjusting the brightness of the at least one lamp based on the current brightness parameter.
2. The method of adjusting brightness of a light according to claim 1, wherein the performing a data format conversion process on the environment image comprises:
and converting the environment image from the first data format to a second data format.
3. The method of claim 2, wherein the obtaining the current exposure index during the data format conversion process comprises:
and acquiring the current exposure index before the environment image is updated from the first data format to the second data format.
4. The method for adjusting brightness of a lamp according to any one of claims 1-3, wherein said obtaining a current exposure index during the data format conversion process comprises:
after the process of automatic exposure control is finished, acquiring the current exposure index;
wherein the process of the data format conversion processing includes the process of the automatic exposure control.
5. A method for lamp brightness adjustment according to any of the claims 1-3, wherein said adjusting the brightness of said at least one lamp based on said current brightness parameter comprises:
comparing the current brightness parameter with a standard brightness parameter to obtain a comparison result;
adjusting a lamp supply current based on the comparison to adjust the brightness of the at least one lamp;
and the standard brightness parameter is a brightness parameter corresponding to the required environment brightness.
6. The method of claim 5, wherein said adjusting the lamp supply current based on the comparison comprises:
if the current brightness parameter is greater than the standard brightness parameter, decreasing a first percentage of a lamp supply current;
if the current brightness parameter is less than the standard brightness parameter, increasing the power supply current of the lamp by a second percentage;
and if the current brightness parameter is equal to the standard brightness parameter, keeping the power supply current of the lamp unchanged.
7. The method of lamp brightness adjustment of claim 6, wherein the first percentage and the second percentage are determined by a difference of the current brightness parameter and the standard brightness parameter.
8. The method for lamp brightness adjustment according to any one of claims 1-3, further comprising, after said adjusting the brightness of said at least one lamp based on said current brightness parameter:
and returning to the step of acquiring the environment image of the target area.
9. The method of claim 1-3, wherein the lamp comprises a light emitting diode lamp.
10. The method of adjusting brightness of a lamp according to any one of claims 1-3, wherein the obtaining an environmental image of a target area comprises:
and acquiring the environment image when the camera is in a preview state, wherein the camera is used for collecting the environment image.
11. An apparatus for dimming a lamp, comprising:
the system comprises an image acquisition module, a data processing module and a data processing module, wherein the image acquisition module is used for acquiring an environment image of a target area, the environment image has a first data format, and at least one lamp is arranged in the target area;
the first data determining module is used for performing data format conversion processing on the environment image and acquiring a current exposure index in the process of performing data format conversion processing;
the second data determining module is used for determining a current brightness parameter corresponding to the current exposure index according to a preset mapping relation, wherein the preset mapping relation is the mapping relation between the exposure index and the brightness parameter;
a brightness adjustment module for adjusting the brightness of the at least one lamp based on the current brightness parameter.
12. A light fixture comprising at least one lamp and a control portion, the at least one lamp and the control portion being electrically connected, the control portion being configured to perform the method of lamp dimming according to any of claims 1-10.
13. An electronic device comprising a memory and a processor, the memory having computer readable instructions stored therein which, when executed by the processor, cause the processor to perform the method of lamp brightness adjustment of any of claims 1-10.
14. A storage medium having computer-readable instructions stored thereon, which, when executed by one or more processors, cause the one or more processors to perform the method of lamp brightness adjustment of any one of claims 1-10.
CN202210488825.7A 2022-05-06 2022-05-06 Lamp brightness adjusting method and device, lamp, electronic equipment and medium Pending CN114786295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210488825.7A CN114786295A (en) 2022-05-06 2022-05-06 Lamp brightness adjusting method and device, lamp, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210488825.7A CN114786295A (en) 2022-05-06 2022-05-06 Lamp brightness adjusting method and device, lamp, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114786295A true CN114786295A (en) 2022-07-22

Family

ID=82434627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210488825.7A Pending CN114786295A (en) 2022-05-06 2022-05-06 Lamp brightness adjusting method and device, lamp, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114786295A (en)

Similar Documents

Publication Publication Date Title
CN102830573B (en) A kind of flash control method and device
CN108462837B (en) Shooting method and device
CN105654898B (en) Image capture device is imaged moire fringes suppressing method and its application
US8698918B2 (en) Automatic white balancing for photography
CN106412534B (en) A kind of brightness of image adjusting method and device
CN110213502A (en) Image processing method, device, storage medium and electronic equipment
US11601600B2 (en) Control method and electronic device
CN113306486B (en) In-vehicle lighting device control method, storage medium, and electronic apparatus
US7355611B2 (en) Method and arrangement for improving image quality on a display of an imaging device
US20180025476A1 (en) Apparatus and method for processing image, and storage medium
US20210392274A1 (en) Leveraging hdr sensors for handling mixed illumination auto white balance
US10977777B2 (en) Image processing apparatus, method for controlling the same, and recording medium
CN117975532A (en) Face recognition method and device, storage medium and computer equipment
US20200029016A1 (en) Moving object monitoring device and moving object monitoring system
CN114786295A (en) Lamp brightness adjusting method and device, lamp, electronic equipment and medium
CN100417199C (en) A digital camera and its method to correct brightness
KR20120122574A (en) Apparatus and mdthod for processing image in a digital camera
JP2007311895A (en) Imaging apparatus, image processor, image processing method and image processing program
KR101131109B1 (en) Auto white balance setting method by white detection considering sensor characteristic
CN111510636B (en) Method and device for acquiring brightness evaluation value and computer storage medium
US8953063B2 (en) Method for white balance adjustment
KR20060131754A (en) System and method for effectively performing an image data transformation prodedure
CN114125311A (en) Automatic switching method and device for wide dynamic mode
WO2023011191A1 (en) Day-night switching method, electronic device, and storage medium
CN116825038B (en) Saturation adjusting method and device, storage medium and color ink screen equipment

Legal Events

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