[go: up one dir, main page]

CN114786295B - Method, device, lamp, electronic device and medium for adjusting lamp brightness - Google Patents

Method, device, lamp, electronic device and medium for adjusting lamp brightness Download PDF

Info

Publication number
CN114786295B
CN114786295B CN202210488825.7A CN202210488825A CN114786295B CN 114786295 B CN114786295 B CN 114786295B CN 202210488825 A CN202210488825 A CN 202210488825A CN 114786295 B CN114786295 B CN 114786295B
Authority
CN
China
Prior art keywords
lamp
brightness
data format
current
image
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
Application number
CN202210488825.7A
Other languages
Chinese (zh)
Other versions
CN114786295A (en
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/CN114786295B/en
Publication of CN114786295A publication Critical patent/CN114786295A/en
Application granted granted Critical
Publication of CN114786295B publication Critical patent/CN114786295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

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

Abstract

本发明提供了一种灯亮度调节的方法、装置、灯具、电子设备及介质,其中,该方法包括:获取目标区域的环境图像,环境图像具有第一数据格式,在目标区域中设置有至少一个灯;对环境图像进行数据格式转换处理,在进行数据格式转换处理的过程中获取当前曝光指数;根据预设映射关系确定与当前曝光指数对应的当前亮度参数,预设映射关系为曝光指数与亮度参数之间的映射关系;基于当前亮度参数调节至少一个灯的亮度。本发明缩短了亮度调节所用的时间并且可以更加精准地调整亮度。

The present invention provides a method, device, lamp, electronic device and medium for adjusting the brightness of a lamp, wherein the method comprises: obtaining an environmental image of a target area, the environmental image having a first data format, and at least one lamp being arranged in the target area; performing data format conversion processing on the environmental image, and obtaining a current exposure index in the process of performing the data format conversion processing; determining a current brightness parameter corresponding to the current exposure index according to a preset mapping relationship, the preset mapping relationship being a mapping relationship between the exposure index and the brightness parameter; and adjusting the brightness of at least one lamp based on the current brightness parameter. The present invention shortens the time used 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 regulating lamp brightness, a lamp, electronic equipment and a medium.
Background
With the continuous development of social economy and the increasing prominence of global energy shortage, people have an increasing degree of attention to environmental protection and energy conservation. In the field of illumination, light emitting Diode (LIGHT EMITTING Diode, LED) lamps attract more and more users by virtue of energy conservation, 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 illumination fields of roads, households, enterprises and the like.
In the related art, lamps can be roughly classified into two types, a brightness-adjustable LED lamp and a brightness-non-adjustable LED lamp, according to whether brightness can be adjusted. The non-adjustable brightness lamp usually causes power waste due to non-adjustable brightness, and the adjustable brightness lamp in the related art needs to adjust light through a power switch or other external devices, so that the adjustment precision is poor, and the power waste is still caused to a certain extent.
It follows that the prior art has the problem of not being sufficiently accurate in the adjustment of the brightness of the lamp.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defect of insufficient precision of the brightness adjustment of the lamp in the prior art, thereby providing a method, a device, a lamp, electronic equipment and a medium for adjusting the brightness of the lamp.
In a first aspect of the invention, a method of lamp brightness adjustment 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 process of performing the data format conversion processing;
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;
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 performing the format conversion processing of the environmental 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 flickering generated by a low-precision brightness adjustment scheme in the traditional technology is reduced or 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 brightness of a lamp, where the data format conversion processing is performed on an environmental image, including:
the ambient image is converted from a first data format to a second data format.
In the above embodiment, by converting a computer-readable first data format, for example, bayer array (BR) or Red Green Blue (RGB) format, into a second data format that is convenient for human eyes to recognize, for example, YUV data format ("Y" represents brightness (luminence or Luma), that is, gray scale value, "U" and "V" represent chromaticity (Chrominance or Chroma), which functions to describe image color and saturation, for specifying pixel color), the present invention can make image browsing more convenient based on converting the environmental image data format from the first data format into the second data format, for example, converting the data format of the environmental image from BR data format into YUV data format.
With reference to the first implementation manner of the first aspect of the present invention, a second implementation manner of the first aspect of the present invention provides a method for adjusting a lamp brightness, wherein obtaining a current exposure index during a data format conversion process includes:
the current exposure index is obtained before the ambient image is updated from the first data format to the second data format.
In the above embodiment, the present invention can acquire the current exposure index before the environment image data format is updated to the second data format, for example, acquire the current exposure index before the environment image data format is changed to the YUV data format, so as to achieve the purpose of early determining the current exposure index and the corresponding brightness parameter thereof, and further achieve the purpose of adjusting the brightness of the lamp faster based on the determined brightness parameter, so as to effectively improve the precision of adjusting the brightness of the lamp by accelerating the speed of adjusting the brightness of the lamp.
With reference to the first aspect of the present invention, any one of 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 a lamp brightness, wherein obtaining a current exposure index during a data format conversion process includes:
After the automatic exposure control process is finished, acquiring a current exposure index;
wherein the process of the data format conversion process includes a process of the automatic exposure control (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 targets are met, and the color expression of the image can meet the requirements on visual psychology and indexes of actual engineering.
With reference to 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 brightness of at least one lamp based on a current brightness parameter includes:
Comparing the current brightness parameter with the standard brightness parameter to obtain a comparison result;
adjusting a supply current of the lamp 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 appropriate required ambient brightness may be set according to a specific application scenario or personal preference requirement, so that the entire lighting environment is more comfortable.
With reference to the fourth implementation manner of the first aspect of the present invention, a fifth implementation manner of the first aspect of the present invention provides a method for adjusting a lamp brightness, wherein adjusting a supply current of a lamp based on a comparison result includes:
if the current brightness parameter is greater than the standard brightness parameter, reducing the power supply current of the lamp with a first percentage;
if the current brightness parameter is smaller than the standard brightness parameter, increasing the power supply current of the lamp with a second percentage;
if the current brightness parameter is equal to the standard brightness parameter, the power supply current of the lamp is kept unchanged.
In the above embodiment, the current is adjusted according to the numerical relation between the brightness parameters corresponding to the actual ambient brightness and the required ambient brightness, so that the brightness of the lamp is adjusted, and the lamp can be more accurate.
With reference to the fifth implementation manner of the first aspect of the present invention, a sixth implementation manner of the first aspect of the present invention provides a method for adjusting the brightness of a lamp, wherein the first percentage and the second percentage are determined by a difference between a current brightness parameter and a standard brightness parameter.
In the above 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 of people, the brightness adjustment is more accurate, and the power loss 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 brightness of at least one lamp based on a current brightness parameter, the method further includes:
And returning to the step of acquiring the environment image of the target area.
In the above embodiment, the lamp brightness can be adjusted by adopting a plurality of steps, the brightness adjustment process is more linear, the loss of the lamp is reduced, and the discomfort of people caused by abrupt brightness change is avoided.
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, an eighth implementation manner of the first aspect of the present invention provides a method for adjusting the brightness of 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, households, enterprises and the like.
With reference to 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 for adjusting brightness of a lamp, wherein acquiring an environmental 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 acquiring the environment image.
In the embodiment, the camera can be opened at regular time or periodically, and the camera LOG information (Logfile, LOG) is read when the camera is in the preview state, so that the exposure index is obtained from the LOG information, the service time of the camera is shortened, and the energy is saved.
A second aspect of the present invention provides an apparatus for lamp brightness adjustment that 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 image acquisition module is used for 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;
the first data determining module is used for carrying out data format conversion processing on the environment image and acquiring a current exposure index in the process of carrying out 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 a mapping relation between the exposure index and the brightness parameter;
and a brightness adjustment module for adjusting the brightness of the at least one lamp based on the current brightness parameter.
A third aspect of the invention provides a luminaire comprising, but not limited to, at least one lamp and a control part electrically connected therebetween, the control part being adapted to perform the aforementioned method of lamp brightness adjustment.
A fourth aspect of the invention provides an electronic device comprising, but not limited to, a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the method of lamp brightness adjustment described previously.
A fifth aspect of the invention provides a storage medium storing computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the method of lamp brightness adjustment described previously.
It can be appreciated that the above-provided device, lamp, electronic device or computer storage medium are all used for executing the corresponding method provided above, and therefore, the beneficial effects achieved by the above-provided device, lamp, electronic device or computer storage medium can refer to the beneficial effects in the corresponding method, and are not repeated herein.
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 that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is an exemplary flow chart of a method of lamp brightness adjustment according to an embodiment of the present invention;
FIG. 2 is an exemplary hardware schematic of a method of implementing lamp brightness adjustment according to an embodiment of the present invention;
FIG. 3 is an exemplary software flow chart of a method of implementing lamp brightness adjustment according to an embodiment of the invention;
FIG. 4 is an exemplary flow chart of an ambient image format conversion process according to an embodiment of the present invention;
FIG. 5 is a schematic view showing an exemplary structure of a lamp brightness adjusting apparatus 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 following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected, mechanically connected, electrically connected, directly connected, indirectly connected via an intermediate medium, and in communication with each other between two elements, and wirelessly connected, or wired. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
As shown in fig. 1, one or more embodiments of the present invention provide a method of lamp brightness adjustment, including but not limited to the following steps.
Step S110, an environment image of a target area is acquired, wherein the environment image has a first data format, and at least one lamp is arranged in the target area.
Specifically, as shown in connection with fig. 2, a power supply provides power to a digital signal processor (DIGITAL SIGNAL Processing, DSP) that is electrically connected to the camera and can acquire an environmental image of a target area from the camera, where the target area has at least one light (e.g., LED light).
In one or more embodiments of the invention, acquiring an ambient image of the target area may include, but is not limited to, acquiring the ambient image with the camera in a preview (CAMERA PREVIEW) state, the camera being used to acquire the ambient image.
Specifically, in combination with fig. 3, the camera may be turned on periodically or periodically, and the camera LOG information (Logfile, LOG) is read when the camera is in the preview state, so as to obtain the environment image from the LOG information, thereby reducing the service 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, which may be a BR data format or an RGB data format. The BR data format refers to a common method used when a charge coupled device (charge coupled device, CCD) or a complementary metal oxide semiconductor (Complementary Metal Oxide Semiconductor, CMOS) device is used as a photosensor to capture digital images. RGB data format is a color standard in industry, which is to obtain various colors by changing three color channels of red (R), green (G) and blue (B) and overlapping them with each other, and RGB is a color representing three channels of red, green and blue, and this standard includes almost all colors perceived by human eyesight, and is one of the most widely used color systems.
Step S120, 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.
Specifically, in connection with fig. 2 and 3, the DSP may perform data format conversion processing on the environmental image, and obtain the current exposure index of the image through a designated Application (APP).
In one or more embodiments of the invention, data format conversion processing of an ambient image may include converting the ambient image from a first data format to a second data format.
For example, in connection with fig. 4, the dsp may perform image signal processing (IMAGE SIGNAL Processor, ISP) on the received image in the first data format (BR data format). The ISP processing the image may include converting the BR data format image into the RGB data format image through AEC, black level correction, dead pixel removal, bayer noise removal, lens screening, bilinear interpolation algorithm, etc., and then obtaining the second data format (e.g., YUV data format) image through automatic white balancing, color correction, tone mapping, chromaticity enhancement, skin color enhancement, hardware wavelet noise removal, adaptive spatial filter, etc.
In the above embodiment, by converting the image in the BR data format readable by a computer into the YUV data format which is easy for human eyes to recognize, image browsing can be more convenient.
In one or more embodiments of the present invention, obtaining the current exposure index during the data format conversion process may include obtaining the current exposure index before the ambient image is updated from the first data format to the second data format.
In one or more embodiments of the present invention, acquiring a current exposure index during a data format conversion process includes:
After the automatic exposure control process is finished, acquiring a current exposure index;
Wherein, the process of the data format conversion process comprises a process of automatic exposure control.
Specifically, in connection with fig. 4, the current exposure index may be acquired by an AEC process before an image of a BR data format is converted into an image of a YUV data format in an ISP process using a DSP. Wherein the APP reads LOG information of the AEC through a DSP provided in a central processing unit (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, acquire the exposure index before the environment image data format is changed to the YUV data format, so as to realize early determination of the current exposure index and the corresponding brightness parameter thereof, further achieve the aim of adjusting the brightness of the lamp faster based on the determined brightness parameter, and effectively improve the precision of adjusting the brightness of the lamp by accelerating the speed of adjusting the brightness of the lamp. In addition, the AEC process can be utilized to adjust the image into an 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 requirements on visual psychology and indexes of actual engineering.
Step S130, 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.
Specifically, in connection with fig. 3, the current brightness parameter (e.g., actual brightness value) corresponding to the current exposure index may be determined by querying a map table that records a mapping relationship (i.e., a preset mapping relationship) between the exposure index and the brightness parameter, wherein the preset mapping relationship is obtained through a lamp box brightness test. By adjusting the number of lamp box brightness levels, the exposure index is also changed, for example, brightness parameter 1500 corresponds to exposure index a, brightness parameter 780 corresponds to exposure index b, and the brightness parameter is read by a brightness meter, and the exposure index and the brightness parameter corresponding thereto are recorded to obtain, for example
Mapping table shown in table 1.
TABLE 1
Step S140, adjusting the brightness of the at least one lamp 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 lamp 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 appropriate required ambient brightness may be set according to a specific application scenario or personal preference requirement, so that the entire 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 the power supply current of the lamp with a first percentage;
if the current brightness parameter is smaller than the standard brightness parameter, increasing the power supply current of the lamp with a second percentage;
if the current brightness parameter is equal to the standard brightness parameter, the power supply current of the lamp is kept unchanged.
In the above embodiment, the current is adjusted according to the numerical relation between the brightness parameters corresponding to the actual ambient brightness and the required ambient brightness, so as to adjust the brightness of the lamp, which can be more accurate.
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 lamp brightness can be adjusted by adopting a plurality of steps, the brightness adjustment process is more linear, the loss of the lamp is reduced, and the discomfort of people caused by abrupt brightness change is avoided.
Specifically, referring to fig. 3, the actual brightness value may be compared with a preset standard brightness value (i.e., a standard brightness parameter), 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 a specific example of the invention, in connection with fig. 2, the supply current of the lamp can be adjusted based on the actual luminance value X compared to a preset standard luminance value Y:
If X is larger than Y, the DSP reduces the current to the lamp by 10% through a pulse modulator (Pulse Width Modulation, PWM), and after the brightness of the lamp is stable, the exposure index continues to feed back the current brightness value X until X=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=y.
In one or more embodiments of the 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 above 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 of people, the brightness adjustment is more accurate, and the power loss can be reduced.
In the foregoing embodiments, the DSP, PWM and camera may be connected via a two-wire serial bus (Inter-INTEGRATED CIRCUIT, I2C), the I2C bus being 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 foregoing embodiment, the general AEC algorithm for the camera is used to make the brightness mapping relationship, so that the DSP has a function of reading the current brightness, and can accurately and dynamically adjust the brightness of the lamp, thereby realizing scientific assistance, energy saving and emission reduction.
Compared with the prior art, the method and the device for reading the digital camera sensitization degree quantitative regulation (International Standards Organization, ISO) information from the shot YUV picture and then reversely deducing the brightness mapping relation, the exposure index can be read in real time in the first module AEC in the ISP processing flow, and compared with other patents, the method and the device for reading the digital camera sensitization degree quantitative regulation (International Standards Organization, ISO) information from the shot YUV picture are faster in brightness adjustment, brightness adjustment is faster, brightness adjustment is more linear, and discomfort caused by flicker is reduced.
As shown in fig. 5, one or more embodiments of the present invention also provide an apparatus for lamp brightness adjustment. The device provided by the embodiment of the invention comprises, but is not limited to, an image acquisition module, a first data determination module, a second data determination module and a brightness adjustment module, and is specifically described below.
The image acquisition module 110 is configured to acquire an environmental image of a target area, where at least one lamp is disposed, the environmental image having a first data format.
In one or more embodiments of the invention, the lamp may include an LED.
In one or more embodiments of the invention, the image acquisition module 110 may acquire the environmental image while the camera is in a preview state, and the camera is used to acquire the environmental image.
The first data determining module 120 is configured to perform data format conversion processing on the environmental 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:
a format conversion sub-module for converting the ambient 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 automatic exposure control is completed, wherein the process of data format conversion processing includes the 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 the 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 sub-module is used for comparing the current brightness parameter with the standard brightness parameter to obtain a comparison result;
A current adjustment sub-module for adjusting a supply current of the lamp 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 one or more embodiments of the invention, the current adjustment sub-module may decrease the supply current of the lamp by a first percentage when the current brightness parameter is greater than the standard brightness parameter, increase the supply current of the lamp by a second percentage when the current brightness parameter is less than the standard brightness parameter, and maintain the supply current of the lamp unchanged when the current brightness parameter is equal to the standard brightness parameter.
In one or more embodiments of the invention, the current adjustment submodule may determine the first percentage and the second percentage by a difference of a current luminance parameter and a standard luminance 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 lamp including at least one lamp and a control part electrically connected therebetween, the control part being configured to perform the method of adjusting the brightness of the lamp in the previous embodiments.
Further, as shown in fig. 6, one or more embodiments of the present invention further provide an electronic device 300 including a processor 301 and a memory 302, the processor 301 and the memory 302 being communicatively connected to each other through a communication bus 303, computer instructions being stored in the memory 302, the processor 301 executing the computer instructions to thereby perform 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 storage medium includes various media capable of storing program codes, such as a U disk, a removable hard disk, a read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk. The detailed implementation process of the video processing method is described in detail in the present specification, and will not be described herein.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing 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 include an electrical connection (an electronic device) having one or more wires, a portable computer diskette (a magnetic device), a random access Memory (Random Access Memory, RAM), a Read-Only Memory (ROM), an erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM, or flash Memory), an optical fiber device, and a portable compact disc Read-Only Memory (Compact Disc Read-Only Memory, CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium upon which the program is printed, as the program may 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 is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the 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, may be implemented using any one or combination of techniques known in the art, discrete logic circuits with logic gates for implementing logic functions on data signals, application specific integrated circuits with appropriate combinational logic gates, programmable gate arrays (GATE ARRAY, PGA), field Programmable gate arrays (Field Programmable GATE ARRAY, FPGA), and the like.
It will be appreciated that the apparatus, the computer device, the computer storage medium, or the like provided above are all used to perform the corresponding method provided above, and therefore, the advantages achieved by the apparatus, the computer device, the computer storage medium, or the like may refer to the advantages in the corresponding method, and are not described herein.
In the description of the present specification, a description referring to the terms "present embodiment," "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., means 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, schematic representations of the above terms are not necessarily directed 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, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
The above description is only of the preferred embodiments of the present invention, and is not intended to limit the invention, but any modifications, equivalents, and simple improvements made within the spirit of the present invention should be included in the scope of the present invention.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the invention.

Claims (10)

1. A method of lamp brightness adjustment comprising:
Acquiring an environment image of a target area under the preview state of a camera, wherein the environment image has a first data format, at least one lamp is arranged in the target area, the camera which is opened regularly or periodically is used for acquiring the environment image, and the first data format is a BR data format;
Performing data format conversion processing on the environment image to convert the BR data format image into a YUV data format image, converting the BR data format image into the RGB data format image through the processing procedures of automatic exposure control, black level correction, dead pixel removal, bayer noise removal, lens screening and bilinear interpolation algorithm, obtaining the YUV data format image through the processing procedures of automatic white balance, color correction, tone mapping, chroma enhancement, hardware wavelet noise elimination and adaptive space filter, and reading camera log information in the automatic exposure control process of the data format conversion processing to obtain the current exposure index from the camera log information;
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 lamp brightness adjustment according to claim 1, wherein said adjusting the brightness of the at least one lamp based on the current brightness parameter comprises:
comparing the current brightness parameter with a standard brightness parameter to obtain a comparison result;
adjusting a supply current of the lamp based on the comparison result to adjust a brightness of the at least one lamp;
The standard brightness parameter is a brightness parameter corresponding to the required ambient brightness.
3. The method of lamp brightness adjustment according to claim 2, 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 the power supply current of the lamp by a first percentage;
If the current brightness parameter is smaller than the standard brightness parameter, increasing the power supply current of the lamp with 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.
4. A method of lamp brightness adjustment according to claim 3, characterized in that the first and second percentages are determined by the difference of the current brightness parameter and the standard brightness parameter.
5. The method of lamp brightness adjustment according to claim 1, further comprising, after said adjusting the brightness of the at least one lamp based on the current brightness parameter:
And returning to the step of acquiring the environment image of the target area.
6. The method of lamp brightness adjustment according to claim 1, characterized in that the lamp comprises a light emitting diode lamp.
7. An apparatus for lamp brightness adjustment, comprising:
The image acquisition module is used for acquiring an environment image of a target area when the camera is in a preview state, the environment image has a first data format, at least one lamp is arranged in the target area, the camera which is opened regularly or periodically is used for acquiring the environment image, and the first data format is a BR data format;
The first data determining module is used for converting the image in the BR data format into the image in the RGB data format through the processing procedures of automatic exposure control, black level correction, dead pixel removal, bayer noise removal, lens screening and bilinear interpolation algorithm, the first data determining module is used for obtaining the image in the YUV data format through the processing procedures of automatic white balance, color correction, tone mapping, chroma enhancement, hardware wavelet noise elimination and adaptive spatial filter, and the first data determining module is used for reading camera log information in the automatic exposure control in the data format conversion process so as to obtain the current exposure index from the camera log information;
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 a mapping relation between the exposure index and the brightness parameter;
And a brightness adjustment module for adjusting the brightness of the at least one lamp based on the current brightness parameter.
8. A luminaire comprising at least one lamp and a control part, said at least one lamp and said control part being electrically connected, said control part being adapted to perform the method of lamp brightness adjustment according to any one of claims 1-6.
9. An electronic device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the method of lamp brightness adjustment of any of claims 1-6.
10. A storage medium storing computer readable instructions 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-6.
CN202210488825.7A 2022-05-06 2022-05-06 Method, device, lamp, electronic device and medium for adjusting lamp brightness Active CN114786295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210488825.7A CN114786295B (en) 2022-05-06 2022-05-06 Method, device, lamp, electronic device and medium for adjusting lamp brightness

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210488825.7A CN114786295B (en) 2022-05-06 2022-05-06 Method, device, lamp, electronic device and medium for adjusting lamp brightness

Publications (2)

Publication Number Publication Date
CN114786295A CN114786295A (en) 2022-07-22
CN114786295B true CN114786295B (en) 2024-12-13

Family

ID=82434627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210488825.7A Active CN114786295B (en) 2022-05-06 2022-05-06 Method, device, lamp, electronic device and medium for adjusting lamp brightness

Country Status (1)

Country Link
CN (1) CN114786295B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333898A (en) * 2019-08-30 2021-02-05 北京字节跳动网络技术有限公司 Lamp brightness adjusting method and device, lamp and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011015222A (en) * 2009-07-02 2011-01-20 Fujifilm Corp Imaging apparatus, and imaging control method
CN105721762B (en) * 2014-12-04 2019-06-11 中兴通讯股份有限公司 Flash lamp control method and device
WO2019061546A1 (en) * 2017-09-30 2019-04-04 深圳传音通讯有限公司 Mobile terminal photographing method, device and computer readable storage medium
CN110351490B (en) * 2018-04-04 2021-06-08 杭州海康威视数字技术股份有限公司 Exposure method, exposure device and image pickup equipment
CN110944117B (en) * 2019-11-15 2021-08-31 浙江大华技术股份有限公司 Image processing method, computer equipment, storage device and intelligent monitoring system
CN113538215B (en) * 2021-06-11 2022-12-27 展讯半导体(成都)有限公司 Image format conversion method, device and system, electronic equipment and storage medium
CN113473035A (en) * 2021-07-23 2021-10-01 北京字节跳动网络技术有限公司 Ambient brightness determination method and device and electronic equipment
CN113556477B (en) * 2021-09-23 2021-12-14 南昌龙旗信息技术有限公司 Ambient brightness determination method and device, medium and camera

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333898A (en) * 2019-08-30 2021-02-05 北京字节跳动网络技术有限公司 Lamp brightness adjusting method and device, lamp and storage medium

Also Published As

Publication number Publication date
CN114786295A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
US11375128B2 (en) Method for obtaining exposure compensation values of high dynamic range image, terminal device and non-transitory computer-readable storage medium
CN102830573B (en) A kind of flash control method and device
JP4063418B2 (en) Auto white balance device
CN109274985B (en) Video transcoding method and device, computer equipment and storage medium
US20140240533A1 (en) Imaging device and image signal processor
JP2010535352A (en) Method for adjusting image characteristics
RU2496250C1 (en) Image processing apparatus and method
US20110096190A1 (en) Automatic white balancing for photography
US7355611B2 (en) Method and arrangement for improving image quality on a display of an imaging device
US8885078B2 (en) Image processing apparatus, image processing method, and recording medium storing image processing program
KR20150081153A (en) Apparatus and method for processing image, and computer-readable recording medium
US20180025476A1 (en) Apparatus and method for processing image, and storage medium
US20100295977A1 (en) Image processor and recording medium
CN116668838B (en) Image processing methods and electronic equipment
CN115239578A (en) Image processing method and apparatus, computer-readable storage medium, and terminal device
CN114999414A (en) Display compensation method, computer device, and medium
CN107635124A (en) White balance processing method, device and equipment for face shooting
US10631016B2 (en) Dynamic range compression device and image processing device
CN107580205B (en) white balance adjusting method and device
CN110807735A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium
CN114999363B (en) Color shift correction method, device, apparatus, storage medium and program product
CN114786295B (en) Method, device, lamp, electronic device and medium for adjusting lamp brightness
WO2025055758A1 (en) Video dark-light enhancement method, apparatus and device, and storage medium and product
US10044940B1 (en) Picture brightness adjusted motion detection
US12052516B2 (en) Flexible region of interest color processing for cameras

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