CN110012572B - Brightness control method and device, equipment and storage medium - Google Patents

Brightness control method and device, equipment and storage medium Download PDF

Info

Publication number
CN110012572B
CN110012572B CN201910229105.7A CN201910229105A CN110012572B CN 110012572 B CN110012572 B CN 110012572B CN 201910229105 A CN201910229105 A CN 201910229105A CN 110012572 B CN110012572 B CN 110012572B
Authority
CN
China
Prior art keywords
target image
color
determining
illumination
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
CN201910229105.7A
Other languages
Chinese (zh)
Other versions
CN110012572A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910229105.7A priority Critical patent/CN110012572B/en
Publication of CN110012572A publication Critical patent/CN110012572A/en
Application granted granted Critical
Publication of CN110012572B publication Critical patent/CN110012572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

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

Abstract

The embodiment of the application discloses a brightness control method, which is applied to lighting equipment and comprises the following steps: acquiring a target image of an illumination object; the illumination object is located in an illumination area of the illumination device; determining color features of the target image; and adjusting the intensity of the light emitted by the lighting equipment according to the color characteristics of the target image. The embodiment of the application also discloses a brightness control device, electronic equipment and a storage medium for realizing the brightness control method.

Description

Brightness control method and device, equipment and storage medium
Technical Field
The present application relates to computer technologies, and in particular, to a method and an apparatus for controlling brightness, a device, and a storage medium.
Background
Lighting equipment such as table lamps is an essential product in daily life. The existing lighting devices are all common turn-on and turn-off lamp systems, however, with the continuous progress of society, people are not simply satisfied to obtain sufficient lighting. The intensity of the emitted light of the lighting device is fixed during the use of the lighting device by a person. Under the same intensity of illumination, the eyes have different visual feelings for different lighting objects. Therefore, the fixed intensity of light emitted by the existing lighting devices causes discomfort to the eyes.
Disclosure of Invention
The embodiment of the application provides a brightness control method, a brightness control device, equipment and a storage medium, which can adaptively adjust the intensity of light of illumination equipment based on an illumination object in an illumination area.
On one hand, the brightness control method provided by the embodiment of the application comprises the following steps:
acquiring a target image of an illumination object; the illumination object is located in an illumination area of the illumination device;
determining color features of the target image;
and adjusting the intensity of the light emitted by the lighting equipment according to the color characteristics of the target image.
In one aspect, a brightness control apparatus provided in an embodiment of the present application includes: the device comprises an acquisition unit, a determination unit and an adjustment unit; wherein the content of the first and second substances,
the acquisition unit is used for acquiring a target image of the illumination object; the illumination object is located in an illumination area of the illumination device;
the determining unit is used for determining the color characteristics of the target image;
the adjusting unit is used for adjusting the intensity of the light emitted by the lighting equipment according to the color characteristics of the target image.
In one aspect, the present application provides a lighting device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the brightness control method when executing the computer program.
In one aspect, an embodiment of the present application provides a storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for controlling brightness is implemented.
In the embodiment of the application, when the illumination object illuminates through the light emitted by the illumination device, the image of the illumination object located in the illumination area is collected, the intensity of the light emitted by the illumination device is adjusted according to the color characteristics of the image of the illumination object, so that the intensity of the light emitted by the illumination device is adjusted according to the color characteristics of the illumination object located in the illumination area, the illumination brightness can be adaptively adjusted according to the color of the illumination object, the influence of the brightness reflection colors of different colors on the eyesight of a user is reduced, and the effectiveness is improved.
Drawings
FIG. 1 is a schematic view of a lighting device according to an embodiment of the present application;
FIG. 2 is a schematic view of an illumination system according to an embodiment of the present application;
fig. 3 is a first schematic flow chart illustrating an implementation of a brightness control method according to an embodiment of the present application;
FIG. 4 is a schematic view of an illumination area according to an embodiment of the present application;
FIG. 5 is a schematic view of an illumination area and a collection area according to an embodiment of the present application;
FIG. 6A is a first diagram illustrating region block division according to an embodiment of the present disclosure;
FIG. 6B is a second schematic diagram illustrating region block division according to an embodiment of the present invention;
FIG. 7 is a schematic view of a distribution of light sources according to an embodiment of the present application;
fig. 8 is a schematic diagram of a second implementation flow of the brightness control method according to the embodiment of the present application;
FIG. 9 is a diagram illustrating a relationship between brightness and a light reflection system according to an embodiment of the present application;
FIG. 10A is a first diagram illustrating a partitioned image partition according to an embodiment of the present disclosure;
FIG. 10B is a second schematic diagram illustrating division of a partitioned image according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of a brightness control apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present application and are not intended to limit the present application. In addition, the following examples are provided as partial examples for implementing the present application, not all examples for implementing the present application, and the technical solutions described in the examples of the present application may be implemented in any combination without conflict.
In various embodiments of the present application: the lighting device acquires a target image of a lighting object; the illumination object is located in an illumination area of the illumination device; determining color features of the target image; and adjusting the intensity of the light emitted by the lighting equipment according to the color characteristics of the target image.
The lighting device 10 of the present application can be seen in fig. 1, where the lighting device 10 includes a light source 11, and the light source 11 can emit light rays, such as: the Light source 11 is a Light Emitting Diode (LED) that emits Light to an illumination object located in an illumination area to illuminate the illumination object. The illumination object also includes an image capturing device 12, such as a camera, and the image capturing device 12 captures an image of the illumination object, which is referred to herein as a target image, captured by the image capturing device 12.
In fig. 1, the image capturing device 12 is disposed at the position of the light source 11, in practical application, the image capturing device is located on the image capturing device 20 of the lighting system as shown in fig. 2, the lighting system 20 includes an image capturing device 21 and a lighting device 10, and the image capturing device 21 and the lighting device 10 communicate with each other through a network 30 such as WIFI, bluetooth, and a carrier network. When the image capturing device in the image capturing apparatus 21 captures the target image of the illumination object in the illumination area of the illumination apparatus, the target image of the illumination object is transmitted to the illumination apparatus 10 through the network 30, and the illumination apparatus 10 acquires the target image of the illumination object.
Fig. 2 is an example of an illumination system, the image capturing device 21 in fig. 2 is a mobile terminal, and in practical applications, the image capturing device 20 may also be a device having an image capturing apparatus, such as a projector, besides the mobile terminal.
The embodiment of the application provides a brightness control method, which is applied to lighting equipment, and each functional module in the lighting equipment can be cooperatively realized by hardware resources of the equipment (such as a desk lamp), such as computing resources of a processor and the like, and communication resources (such as being used for supporting and realizing various modes of communication among different components, optical cables, honeycomb and the like).
Of course, the embodiments of the present application are not limited to being provided as methods and hardware, and may be provided as a storage medium (storing instructions for executing the brightness control method provided by the embodiments of the present application) in various ways.
An embodiment of the present application provides a brightness control method, as shown in fig. 3, the brightness control method includes:
s301, acquiring a target image of the illumination object.
The lighting device stores a lighting control program, the lighting control program can control lighting parameters of a light source of the lighting device through a control signal, and the lighting parameters may include: brightness, color temperature, etc. The lighting control program may also receive an operation instruction of the user based on a user operation such as a touch operation, a key operation, or the like. Such as: when the user turns off the light source of the lighting device based on the key operation instruction, the lighting device receives the light source turning-off instruction and controls the light source to be turned off, and when the user turns on the light source of the lighting device based on the key operation instruction, the lighting device receives the light source turning-on instruction and controls the light source to be turned on.
The lighting control program in the lighting apparatus may instruct the image capturing device of the lighting apparatus or the image capturing device of the image capturing apparatus connected to the lighting apparatus to capture an image of the lighting object based on the image acquisition instruction, resulting in the target image. Wherein the illumination object is located in an illumination area of the illumination device; as shown in fig. 4, the illumination area of the illumination apparatus 10 is a spatial range shown by 401 to 402, and an illumination object 403 is located in the illumination area.
The image acquisition instruction may be triggered based on an operation input by a user, a light source turn-on instruction, or periodically, and the triggering manner of the image acquisition instruction is not limited in any way in the embodiments of the present application.
When the image acquisition device is positioned on the lighting equipment, the lighting control program sends an image acquisition instruction to the image acquisition device, and the image acquisition device acquires images based on the image acquisition instruction to obtain a target image.
When the image acquisition device is positioned on the image acquisition equipment, the illumination control program sends the image acquisition instruction to the image acquisition equipment through an external communication interface of the illumination equipment, and the image acquisition equipment acquires a target image of the illumination object through the image acquisition device. When the image acquisition equipment receives the image acquisition instruction, the prompt information can be output to prompt a user to acquire a target image of the illumination object currently, and the user is reminded to adjust the acquisition area of the image acquisition device to the adjustment object so as to accurately acquire the target image of the illumination object. After the image acquisition equipment acquires the target image, the target image is sent to an external communication interface of the lighting equipment, and the external communication interface sends the received target image to the lighting control program.
After the target image is acquired by the image acquisition device of the illumination equipment or the image acquisition device, the target image can be subjected to image analysis, whether the target image comprises the illumination object or not is detected, and when the target image does not comprise the illumination object, the target image is acquired again.
In an embodiment, when the image acquisition device is located at the light source position of the lighting device as shown in fig. 1, the acquiring the target image of the lighting object includes: and controlling an image acquisition device arranged at a light source of the lighting equipment to acquire an image of the lighting area of the lighting equipment to obtain a target image of the lighting object.
The lighting control program sends an image acquisition instruction to the image acquisition device located at the light source position to instruct the image acquisition device to acquire an image. Here, the collection angle of the image collection device is adjustable, and when the collection area corresponding to the collection angle of the image collection device is not the illumination area of the illumination device, the collection angle of the image collection device can be controlled to be adjusted, so that the collection area corresponding to the collection angle of the image collection device is matched with the illumination area of the illumination device. When the collection area of the image collection device is matched with the illumination area of the illumination apparatus, the collection area and the illumination area may overlap on a plane corresponding to the illumination object as shown in fig. 5.
S302, determining the color characteristics of the target image.
And the lighting control program in the lighting equipment performs image processing on the acquired target object to obtain the color characteristics of the target image. The color feature of the target image may be represented by a two-dimensional color distribution, wherein the color distribution of the target image may be a two-dimensional color distribution composed of colors and position coordinates.
Colors can be described by RGB (red-green-blue), HLS (lightness-chroma-hue), YUV (grayscale-blue difference component-red interpolation component), and the like color systems. The description manner of the color feature of the target image is not limited in any way in the embodiment of the present application.
S303, adjusting the intensity of the light emitted by the lighting equipment according to the color characteristics of the target image.
And determining the main color of the target image according to the color feature of the target image in the step S302, and adjusting the light emitted by the lighting device according to the reflection feature, namely the light reflection coefficient, corresponding to the main color of the target image.
In practice, the dominant color may be determined from the colors comprised by the target image according to a specified selection policy.
The selection strategy can be as follows: the set number of colors, which occupy a large area in a large proportion, among the colors included in the target image, is used as the color feature of the target image. Such as: determining the color of the target image according to the color feature of the target image comprises: red, blue, green, white and yellow, the proportion of the occupied areas is as follows: 53%, 22%, 15%, 7%, 3%, the colors in the first three digits are determined as the main colors of the target image, i.e., the main colors of the target image are red, blue, green.
The selection strategy can be as follows: and taking the color which occupies the area with the proportion size larger than the specified area proportion threshold value in the colors included in the target image as the main color of the target image. Such as: the colors of the target image include: red, blue, green, white and yellow, and the proportion of the occupied areas is as follows: 53%, 22%, 15%, 7%, 3%, the main color of the target image is red when the area ratio threshold value is 50%, and the main color of the target image is red and blue when the area ratio threshold value is 20%.
The selection strategy can be as follows: and determining the color with the largest proportion size of the occupied area in the colors included in the target image as the color characteristic of the target image. Such as: the colors of the target image include: red, blue, green, white and yellow, and the proportion of the occupied areas is as follows: 53%, 22%, 15%, 7%, 3%, the dominant color of the target image is determined to be red.
In practical applications, when the main color of the target image is a color, the light reflection coefficient corresponding to the main color is taken as the light reflection coefficient of the target image, for example, when the main color of the target image is red, the light reflection coefficient corresponding to red is taken as the light reflection coefficient of the target image. And when the main color of the target image is a plurality of colors, calculating the light reflection coefficient corresponding to each color through a specified reflection algorithm to obtain the light reflection coefficient of the target image. Such as: when the main colors of the target image are red and blue, and the reflection algorithm is averaging, the light reflection coefficient 1 corresponding to the red and the light reflection coefficient 2 corresponding to the blue are averaged, and the calculation result is used as the light reflection coefficient of the target image.
Each color corresponds to a different light reflectance, for example, a light reflectance of 7% for red and a reflectance of 5% for blue. In the illumination control program, the correspondence between the color and the light reflection coefficient can be set.
In an embodiment, when the light source corresponding to the illumination area of the illumination object includes at least two light sources, that is, the illumination device includes at least two light sources, the partition image corresponding to each light source in the target image is determined according to the distribution of the light sources, and the corresponding light source is adjusted according to the color feature of each partition image.
In one embodiment, the adjusting the intensity of the light emitted by the illumination device according to the color characteristics of the target image includes: determining the reflection characteristics of the target image according to the color characteristics of the target image; and adjusting the intensity of the light emitted by the lighting equipment according to the reflection characteristics.
According to the color characteristics of the target image, the mode of determining the reflection characteristics of the target image at least comprises one of the following two modes:
dividing the target image into at least two region blocks according to a dividing strategy; determining the color characteristics of each of the at least two region blocks according to the color characteristics of the target image; and determining the reflection characteristics of the target image according to the block reflection characteristics corresponding to the color characteristics of each region block.
At this time, the main color of each region block may be determined according to the selection policy, and the light reflection coefficient corresponding to the main color of each region block, that is, the block reflection characteristic of the region block, may be determined, and the light reflection coefficient of the target image may be calculated according to the block reflection characteristic of each region block.
The selection strategy of the main color of each area block is different from that of the target image in the selection range, the main color of each area block is selected from the colors included in each area block, and the main color of the target image is selected from the colors included in the target image.
Selecting a reference region from the target image according to a region selection rule; and determining the reflection characteristics of the target image according to the color characteristics of the reference region in the color characteristics of the target image.
At this time, the dominant color of each reference region may be determined according to a selection strategy, and a light reflection coefficient corresponding to the dominant color of the reference region may be determined, and the light reflection coefficient of the reference region may be used as the light reflection coefficient of the target image.
The selection strategy of the main color of the reference area is different from that of the target image in the selection range, the main color of the reference area is selected from the colors included in the reference area, and the main color of the target image is selected from the colors included in the target image.
In an embodiment, after determining the reflection characteristics of the target image, the adjusting the intensity of the light emitted by the lighting device according to the reflection characteristics of the target image may include: determining target brightness information corresponding to the reflection features; and adjusting the intensity of the light emitted by the lighting equipment according to the target brightness information.
After the light reflection coefficient of the target image is determined, the target brightness information is determined according to the light reflection coefficient of the target image, and the brightness of the light source of the lighting equipment is adjusted according to the target brightness information corresponding to the light reflection coefficient of the target image, so that the intensity of light emitted by the lighting equipment is adjusted.
The brightness information may be a brightness level, for example, the brightness level of the light source includes three levels of strong, medium, and weak, and the range of the light reflection coefficient corresponding to the strong brightness level is: r1 to R2, the range of the corresponding light reflection coefficients in the luminance levels being: r2 to R3, the range of light reflectance corresponding to weak brightness levels is: r3 to R4; when the light reflection coefficient of the target image is located at R2 to R3, the target brightness level is determined to be medium.
The luminance information may be a luminance value determined based on a value range of luminance and a value range of light reflection coefficient, wherein a maximum value Lmax of the luminance corresponds to a minimum value Rmin of the light reflection coefficient, and the minimum value Lmin of the luminance corresponds to the maximum value Rmax of the light reflection coefficient. For the light reflection coefficient R of the target image, and the brightness value corresponding to R, there is a relation:
(L-Lmin)/(R-Rmax) to (Lmax-Lmin)/(Rmin-Rmax); thereby determining a target brightness value L corresponding to the light reflection coefficient R of the target image.
In practical applications, a reference brightness value may be set, and the intensity of the light emitted by the lighting device may be adjusted to the target brightness value L based on the adjustment relationship between the target brightness value and the reference brightness value.
Based on the brightness control method provided by the embodiment of the application, when a user draws on the drawing paper under the irradiation of the desk lamp, the intensity of the light of the desk lamp is adjusted along with the change of the color on the drawing paper, for example: before the drawing, the drawing paper is the white paper, and the luminance of desk lamp is darker for the user is when seeing the drawing paper, can not be too dazzling, at the in-process of drawing, is the dark colours such as grey when the drawing paper, transfers the luminance of desk lamp to light, and glasses can not produce fatigue when making the user see the drawing paper again.
In the embodiment of the application, the image of the illumination object in the illumination area of the illumination device is collected, the collected image is subjected to image processing to obtain the color feature of the illumination object, and the intensity of the light emitted by the illumination object is adjusted according to the color feature of the illumination object, so that the intensity of the light emitted by the illumination device is adjusted according to the color feature of the illumination object in the illumination area, the illumination brightness can be adaptively adjusted according to the color of the illumination object, the influence of the brightness reflection colors of different colors on the eyesight of a user is reduced, and the effectiveness is improved.
Next, a first way of determining the reflection feature of the target image according to the color feature of the target image is exemplarily described.
In the first mode, the target image is divided into at least two area blocks according to a division strategy; determining the color characteristics of each of the at least two region blocks according to the color characteristics of the target image; and determining the reflection characteristics of the target image according to the block reflection characteristics corresponding to the color characteristics of each region block.
The division strategy may be to divide the target image into region blocks according to colors, for example; the target image may be segmented based on color, and regions corresponding to different colors may be divided into different region blocks. In this case, the reflection characteristics of the target image can be calculated by using the proportional size of the region occupied by each color as the weight of each color.
Such as: the target image is divided into red area blocks 1, blue area blocks 2 and green area blocks 3 based on different colors, the proportion of the area blocks 1 to the areas is 53%, the proportion of the area blocks 2 to the areas is 22%, and the proportion of the area blocks 3 to the areas is 15%, and at the moment, the size R of the reflection characteristic of the target image is equal to R red 53% + R blue 22% + R green 15%; r red is a light reflection coefficient corresponding to red, namely a block reflection characteristic corresponding to the region block 1; r blue is a light reflection coefficient corresponding to blue, namely a block reflection characteristic corresponding to the area block 2; r green is the light reflection coefficient corresponding to green, i.e. the block reflection characteristic corresponding to the area block 3.
The partitioning policy may also be to differentiate the target image into a specified number of equally sized region blocks, such as: the target image is divided into four region blocks with equal size, such as: the target image is divided into nine area blocks of equal size. At this time, the reflection characteristics of the target image may be calculated by averaging the reflection characteristics of each region block.
Such as: as shown in fig. 6A, the target image is divided into nine area blocks: region block 1 to region block 9, the size R of the reflection feature of the target image being (R1+ R2 … + R9)/9; r1 is the block reflection characteristic of area block 1, R2 is the block reflection characteristic of area block 2, and so on.
The embodiment of the application does not limit the specific content of the division strategy at all, and the user can set the division strategy according to actual requirements.
In the first mode, the target image is divided into a plurality of areas, the color block distribution of each area is respectively obtained, and the light reflection coefficient of the target image is obtained based on the color block distribution of each area, so that the brightness of the light source is adjusted to ensure the consistency of the brightness after being reflected to human eyes.
Next, a second way of determining the reflection feature of the target image according to the color feature of the target image is exemplarily described.
In the second mode, a reference region is selected from the target image according to a region selection rule; and determining the reflection characteristics of the target image according to the color characteristics of the reference region in the color characteristics of the target image.
The region selection rule may be a selection according to a location, such as: as shown in fig. 6B, the central area of the specified size of the target image, i.e., the central area, is selected as the reference area. When the reference area includes a plurality of colors, the reference area may be divided into a plurality of area blocks based on the colors, color features of the area blocks may be respectively obtained, a light reflection coefficient of each area block may be determined based on the color features of the area blocks, an average reflection coefficient of the reference area may be calculated based on the light reflection coefficient of each area block, and the average reflection coefficient of the reference area may be used as a light reflection coefficient of the target image.
Based on the lighting device shown in fig. 1 and the lighting system shown in fig. 2, the embodiment of the present application provides a brightness control method, where the method is applied to the lighting device, and each functional module in the lighting device may be cooperatively implemented by hardware resources of the device (e.g., a desk lamp), such as a computing resource like a processor, and a communication resource (e.g., for supporting various ways of communication between different components, optical cables, and cells).
The light sources of the lighting device may be as shown in fig. 7, and the brightness of each light source may be independently controlled. In the light source shown in fig. 7, the number of the light sources is 4, and in practical applications, the lighting device includes at least two light sources, and the number of the light sources is not limited in any way.
Of course, the embodiments of the present application are not limited to being provided as methods and hardware, and may be provided as a storage medium (storing instructions for executing the brightness control method provided by the embodiments of the present application) in various ways.
An embodiment of the present application provides a brightness control method, as shown in fig. 8, the brightness control method includes:
s801, acquiring a target image of the lighting object.
S802, determining the color characteristics of the target image.
And S803, partitioning the target image according to the distribution information of the at least two light sources to obtain at least two partitioned images.
In S803, after determining the color features of the target image, the target image is partitioned according to the distribution information of at least two light sources, such as: when the distribution of the light sources is as shown in fig. 7, the target image is divided into regions, and position information corresponding to each of the divided images is determined.
In practical applications, before the target image is partitioned, the illumination area boundary may be determined based on at least two light source configuration light source shapes, wherein the illumination area boundary configures an illumination area having the same shape as the light source shape.
When the target image is divided into the divisional images according to the light source distribution information, a plurality of sub-light sources may be combined into one light source.
S804, determining the color characteristics of the subarea image.
And determining the color characteristics of the subarea images based on the distribution of the subarea images in the target area and the color characteristics of the target image.
S805, adjusting the intensity of the light emitted by the light source corresponding to the subarea image according to the color characteristics of the subarea image.
And determining the main color of the subarea image according to the color characteristics of the subarea image, and adjusting the light rays emitted by the light source corresponding to the subarea image according to the main color of the subarea image.
The main color of each of the divided images may be determined based on all the colors included in each of the divided images, or a local area of the divided image may be used as a reference area of the divided image, and the color of the reference area of the divided image may be used as the main color of the divided image.
In practice, the dominant color may be determined from the colors included in the segmented image according to a specified selection policy. The selection strategy can be as follows: and a specified number of colors which occupy a larger area in proportion among the colors included in the subarea image are taken as the color features of the subarea image. The selection strategy can be as follows: and the color of which the proportion size of the occupied area is larger than the specified area proportion threshold value in the colors included in the subarea image is taken as the main color of the subarea image. The selection strategy can also be as follows: and determining the color with the largest proportion size of the occupied area in the colors included in the subarea image as the color characteristic of the subarea image.
When each light source is adjusted according to the main color of each subarea image, the light reflection coefficient corresponding to each subarea is determined according to the main color of each subarea image, the target brightness information corresponding to the light reflection coefficient is determined, and the light source corresponding to each subarea image is further adjusted according to the target brightness information corresponding to each subarea.
When the lighting apparatus includes at least two light sources, the light reflection coefficient of the target image may be determined to perform uniform adjustment on the plurality of light sources so that the luminances of the plurality of light sources are uniform, or the target image may be divided into a plurality of divisional images corresponding to the distribution of the light sources, and the light sources may be individually adjusted based on the light reflection coefficient of each divisional image. When the plurality of light sources are independently adjusted, the brightness of each light source can be adjusted based on the image of the illumination area of each light source.
In the following, taking the lighting device as a desk lamp as an example, an exemplary description is given to the brightness control method in the embodiment of the present application, including the following steps:
1. the target image which is the image of the object in the light irradiation area is obtained through a camera on the desk lamp.
2. Analyzing the color distribution of the target image, and acquiring the light reflection coefficient of the target image based on the color distribution of the target image. The obtaining of the light reflection coefficient of the target image based on the color distribution of the target image may include the following two schemes:
scheme a, uniform blocking scheme:
dividing the target image into a plurality of region blocks, obtaining the color of each region block, and comprehensively calculating the light reflection coefficient of the whole target image by searching the light reflection coefficient of each region block, namely the block reflection characteristic.
Scheme b, central scheme:
and (3) intercepting the area of the center 1/4 as a reference area, acquiring the color distribution of the reference area, and taking the light reflection coefficient of the reference area as the light reflection coefficient of the target image.
The light reflection coefficients corresponding to different colors are different, and table 1 is an example of the light reflection coefficients corresponding to partial colors.
Table 1 examples of light reflectance of part of colors
Figure GDA0002550067180000121
Figure GDA0002550067180000131
3. Under the reference brightness, the brightness of the desk lamp is adjusted by following the light reflection coefficient.
As shown in fig. 9, the reference luminance corresponds to the reference light reflection coefficient, and the luminance and the light reflection coefficient corresponding to the luminance are in a linear relationship. Wherein, the value range of the brightness is as follows: lmin to Lmax, the value range of the light reflection coefficient is as follows: rmin to Rmax, Rmin may be 3%, Rmax may be 75%.
When the desk lamp comprises a plurality of luminous sources, the brightness of the corresponding luminous sources is adjusted according to the color (light reflection coefficient) distribution of each area corresponding to each light source.
As shown in fig. 10A, the region of the target image is divided into 9 regions, i.e., 9 divisional images, according to the distribution of the light sources: 1201 to 1209, the reflection coefficients of the 9 areas 1201 to 1209 are respectively obtained, the brightness of the LED modules in the corresponding areas can be respectively adjusted, and the whole brightness is kept uniform. For example, if the difference between the reflection coefficients of the 8 and 9 regions is large, the brightness of the LED light sources corresponding to 8 and 9 can be adjusted in a distributed manner.
As shown in fig. 10B, the light source may be divided into 2 regions, i.e., a central region 1010 and a peripheral region 1011, and when the color difference between the central region 1010 and the peripheral region 1011 is large, the brightness of the corresponding light source is adjusted.
In the embodiment of the application, when the image acquisition device is arranged near the light source, an image of the whole illumination area (illumination area) of the table lamp can be shot.
The brightness control method of the embodiment of the application has the following technical effects: the influence of the excessively high reflected light of the white paper on the vision is reduced. The change of the color on the drawing paper is reduced, and the brightness is not enough.
In order to implement the method of the embodiment of the present application, an embodiment of the present application provides a brightness control apparatus 1100, which is applied to an illumination device in an illumination system, and each unit included in the brightness control apparatus and each module included in each unit may be implemented by a processor in the illumination device; of course, the implementation can also be realized through a specific logic circuit; in the implementation process, the Processor may be a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
As shown in fig. 11, the apparatus 1100 includes: an acquisition unit 1101, a determination unit 1102, and an adjustment unit 1103, wherein,
an acquisition unit 1101 for acquiring a target image of the illumination object; the illumination object is located in an illumination area of the illumination device.
A determining unit 1102 for determining color features of the target image.
An adjusting unit 1103, configured to adjust intensity of the light emitted by the lighting device according to color characteristics of the target image.
In an embodiment, the obtaining unit 1101 is configured to:
and controlling an image acquisition device arranged at a light source of the lighting equipment to acquire an image of the lighting area of the lighting equipment to obtain a target image of the lighting object.
In an embodiment, the lighting device comprises at least two light sources; an adjusting unit 1103 for:
and partitioning the target image according to the distribution information of the at least two light sources to obtain at least two partitioned images.
Determining color characteristics of the segmented image.
And adjusting the intensity of the light emitted by the light source corresponding to the subarea image according to the color characteristics of the subarea image.
In an embodiment, the adjusting unit 1103 is configured to include: a determining module and an adjusting module;
and the determining module is used for determining the reflection characteristic of the target image according to the color characteristic of the target image.
And the adjusting module is used for adjusting the intensity of the light rays emitted by the lighting equipment according to the reflection characteristics.
In one embodiment, the determining module is configured to:
and dividing the target image into at least two region blocks according to a dividing strategy.
And determining the color characteristics of each of the at least two region blocks according to the color characteristics of the target image.
And determining the reflection characteristics of the target image according to the block reflection characteristics corresponding to the color characteristics of each region block.
In one embodiment, the determining module is configured to:
and selecting a reference area from the target image according to an area selection rule.
And determining the reflection characteristics of the target image according to the color characteristics of the reference region in the color characteristics of the target image.
In one embodiment, the adjustment module is configured to:
and determining target brightness information corresponding to the reflection features.
And adjusting the intensity of the light emitted by the lighting equipment according to the target brightness information.
It is noted that the description of the apparatus embodiment, similar to the description of the method embodiment above, has similar advantageous effects as the method embodiment. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
An embodiment of the present application provides an electronic device, where the electronic device may be used as a lighting device, fig. 12 is a schematic view of a composition structure of the electronic device in the embodiment of the present application, and as shown in fig. 12, the electronic device 1200 includes: a processor 1201, at least one communication bus 1202, a user interface 1203, at least one external communication interface 1204 and a memory 1205. Wherein the communication bus 1202 is configured to enable connective communication between such components. The user interface 1203 may include a touch interface, a key switch, etc. for interacting with a user, and the external communication interface 1204 may include a standard wired interface and a wireless interface, among others. The electronic device 1200 further includes a light source (not shown) such as an LED, and the electronic device 1200 may further include an image collector such as a camera.
Wherein the processor 1201 is configured to execute a computer program stored in a memory to implement the steps of:
acquiring a target image of an illumination object; the illumination object is located in an illumination area of the illumination device.
Determining color characteristics of the target image.
And adjusting the intensity of the light emitted by the lighting equipment according to the color characteristics of the target image.
Accordingly, an embodiment of the present application further provides a storage medium, i.e., a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the brightness control method described above.
The above description of the electronic device and computer-readable storage medium embodiments, similar to the description of the method embodiments above, has similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the electronic device, the storage system and the computer-readable storage medium of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
In the embodiment of the present application, if the brightness control method is implemented in the form of a software functional module and is sold or used as a standalone product, the brightness control method may also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And 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 magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A brightness control method is applied to a lighting device, and comprises the following steps:
acquiring a target image of an illumination object; the illumination object is located in an illumination area of the illumination device;
determining the main color of the target image according to a specified selection strategy, wherein the specified selection strategy at least comprises the following steps: in the colors included in the target image, the proportion of the occupied area is larger than the color of the proportion threshold of the specified area;
determining the color feature of the main color as the color feature of the target image;
determining the reflection characteristics of the target image according to the color characteristics of the target image;
determining target brightness information corresponding to the reflection features;
and adjusting the intensity of the light emitted by the lighting equipment according to the target brightness information.
2. The method of claim 1, wherein said acquiring a target image of an illuminated object comprises:
and controlling an image acquisition device arranged at a light source of the lighting equipment to acquire an image of the lighting area of the lighting equipment to obtain a target image of the lighting object.
3. The method of claim 1, wherein the lighting device comprises at least two light sources; the method further comprises the following steps:
partitioning the target image according to the distribution information of the at least two light sources to obtain at least two partitioned images;
determining color features of the partitioned image;
and adjusting the intensity of the light emitted by the light source corresponding to the subarea image according to the color characteristics of the subarea image.
4. The method of claim 1, wherein the determining the reflection characteristics of the target image from the color characteristics of the target image comprises:
dividing the target image into at least two region blocks according to a division strategy;
determining the color characteristics of each of the at least two region blocks according to the color characteristics of the target image;
and determining the reflection characteristics of the target image according to the block reflection characteristics corresponding to the color characteristics of each region block.
5. The method of claim 1, wherein the determining the reflection characteristics of the target image from the color characteristics of the target image comprises:
selecting a reference region from the target image according to a region selection rule;
and determining the reflection characteristics of the target image according to the color characteristics of the reference region in the color characteristics of the target image.
6. A brightness control apparatus, the apparatus comprising: the device comprises an acquisition unit, a first determination unit, a second determination unit and an adjustment unit; wherein the content of the first and second substances,
the acquisition unit is used for acquiring a target image of the illumination object; the illumination object is located in an illumination area of an illumination device;
the first determining unit is configured to determine a dominant color of the target image according to a specified selection policy, where the specified selection policy at least includes: in the colors included in the target image, the proportion of the occupied area is larger than the color of the proportion threshold of the specified area;
the second determining unit is configured to determine a color feature of the main color as a color feature of the target image; determining the reflection characteristics of the target image according to the color characteristics of the target image; determining target brightness information corresponding to the reflection characteristics;
and the adjusting unit is used for adjusting the intensity of the light rays emitted by the lighting equipment according to the target brightness information.
7. An illumination device, the illumination device comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is configured to perform the steps of the brightness control method of any one of claims 1 to 5 when running the computer program.
8. A storage medium having stored thereon a computer program which, when executed by a processor, implements the brightness control method of any one of claims 1 to 5.
CN201910229105.7A 2019-03-25 2019-03-25 Brightness control method and device, equipment and storage medium Active CN110012572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910229105.7A CN110012572B (en) 2019-03-25 2019-03-25 Brightness control method and device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910229105.7A CN110012572B (en) 2019-03-25 2019-03-25 Brightness control method and device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110012572A CN110012572A (en) 2019-07-12
CN110012572B true CN110012572B (en) 2021-01-15

Family

ID=67168052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910229105.7A Active CN110012572B (en) 2019-03-25 2019-03-25 Brightness control method and device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110012572B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698409A (en) * 2020-06-23 2020-09-22 韶关市启之信息技术有限公司 Indoor photographing light dimming method
CN112004301A (en) * 2020-08-24 2020-11-27 佛山市银河兰晶照明电器有限公司 Control method and control system of adaptive lamp and adaptive lamp
CN112390103B (en) * 2020-10-13 2022-06-21 日立楼宇技术(广州)有限公司 Method and device for monitoring elevator waiting, computer equipment and storage medium
CN112436889B (en) * 2020-10-27 2021-11-30 江汉大学 Method and device for automatically adjusting light source emission power
CN113301316B (en) * 2021-05-25 2022-04-05 深圳市皓龙激光设备有限公司 Outdoor laser brightening method, system, controller and storage medium
CN113329547B (en) * 2021-06-08 2023-02-03 广州奕至家居科技有限公司 Method for automatically adjusting illumination area of partitioned illumination table lamp
CN113597065B (en) * 2021-07-23 2023-05-26 北京字节跳动网络技术有限公司 Desk lamp adjusting method and device and electronic equipment
CN113709949B (en) * 2021-08-20 2023-11-03 深圳市智岩科技有限公司 Lighting device control method and device, electronic device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108469B (en) * 2013-01-31 2015-02-18 北京半导体照明科技促进中心 Method and device for controlling output light of illuminating device and illuminating system
CN104363676B (en) * 2014-10-28 2017-10-20 许敏 A kind of LED operation shadowless lamp systems of the permanent photocontrol of fully-automatic intelligent
CN106102210B (en) * 2016-06-02 2017-12-19 北京印刷学院 It is a kind of can Intelligent adjustment LED art work illuminators
CN108040387B (en) * 2017-09-04 2024-05-10 林铭钊 Light detection device and illumination device
CN108882439A (en) * 2018-05-16 2018-11-23 广东小天才科技有限公司 A kind of illumination control method and lighting apparatus

Also Published As

Publication number Publication date
CN110012572A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN110012572B (en) Brightness control method and device, equipment and storage medium
CN108713316B (en) Optoelectronic light emitting device, method of illuminating a scene, camera and mobile terminal
CN109076680B (en) Controlling a lighting system
EP2639675B1 (en) High resolution and high sensitivity optically activated motion detection device using multiple color light sources
JP6139017B2 (en) Method for determining characteristics of light source and mobile device
CN202033568U (en) Illuminating system
US20150227028A1 (en) Method and System for Filming
US10222007B2 (en) Lighting apparatus with lower color temperature lighting to a peripheral region
CN106797692A (en) Illumination preference ruling
CN107771313B (en) Color extractor
JP6108150B2 (en) Lighting control system
JP2009099510A (en) Lighting apparatus
CN117202451B (en) Atmosphere lamp equipment, and light-emitting control method, device and medium thereof
US10616540B2 (en) Lamp control
CN108361606B (en) Lighting device
CN110677949A (en) Lamp control method and system and electronic equipment
EP3265765B1 (en) Sensing images and light sources
JP5763114B2 (en) LIGHTING DEVICE AND LIGHTING DEVICE CONTROL METHOD
US11747004B2 (en) Apparatus for providing semantic information and a method of operating the same
CN109812727B (en) Control device, lighting device, and lighting system
EP2785140A1 (en) Lighting control system and lighting control method
KR101971938B1 (en) Lighting control system
JP6390885B2 (en) Lighting production system and program
KR102258568B1 (en) Reward for vignetting
JP7113302B2 (en) Spatial production system

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