Automatic dimming method and system

By constructing a correlation model and adjusting the brightness of the light source, the problem that traditional equipment cannot accurately dim the light is solved, and automatic brightness adjustment is achieved to ensure reasonable environmental brightness and protect healthy vision.

CN115643661BActive Publication Date: 2024-11-26安徽文香科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211413330.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-11
Publication Date
2024-11-26
Estimated Expiration
2042-11-11

AI Technical Summary

Technical Problem

Due to the poor consistency of the photosensitive sensor, traditional brightness control equipment cannot achieve accurate dimming and cannot automatically adjust brightness according to the ambient brightness.

Method used

Automatic dimming method and system are adopted, including debug mode and usage mode, by controlling the light source state in the target area, obtaining brightness information, building a correlation model, and adjusting the brightness of the light source to achieve the target brightness.

Benefits of technology

It realizes automatic adjustment according to the environment brightness, ensuring that the brightness is within a reasonable range and protecting vision health.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115643661B_ABST
    Figure CN115643661B_ABST
Patent Text Reader

Abstract

The present invention provides an automatic dimming method and system, and relates to the field of dimming technology. The automatic dimming method provided by the present invention. In debugging mode: control at least one light source in the target area to be in a lit state, and other light sources to be in an extinguished state; obtain a first image currently containing brightness information, extract the brightness value of each sub-area on the first image to obtain an array; under the premise that at least one light source is in a lit state, switch the state of any number of light sources to obtain corresponding different arrays; build a correlation model based on all arrays; in use mode: obtain a second image that actually contains brightness information at a preset frequency; based on the second image, call the correlation model to obtain the first adjustment direction and size of the brightness of each light source; repeat the adjustment until the brightness of the target area meets the requirements. Automatically adjust the brightness for different occasions to ensure people's healthy vision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of dimming technology, and in particular to an automatic dimming method and system. Background Art

[0002] In people's lives and workplaces, they will encounter various brightness environments, such as day / night, sunny / thunderstorm and cloudy days, etc. In this ever-changing environment, it is best to always keep the indoor brightness within a relatively reasonable range.

[0003] Traditional brightness control devices can basically only realize the on / off control function of lamps. One of the reasons is that the photosensors used in such traditional control devices have poor consistency and the output ratio of electrical parameters to brightness is highly discrete, resulting in the inability to accurately dim the light. In view of this, it is necessary to provide a solution that can automatically adjust the brightness according to the ambient brightness. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] In view of the deficiencies of the prior art, the present invention provides an automatic dimming method and system, which solves the technical problem that the brightness cannot be automatically adjusted according to the ambient brightness.

[0006] (II) Technical solution

[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0008] An automatic dimming method includes a debugging mode and a use mode; the method includes:

[0009] In debug mode:

[0010] S11, controlling at least one light source in the target area to be in a lit state, and other light sources to be in an extinguished state;

[0011] S12, obtaining a first image currently containing brightness information, and extracting brightness values ​​of each sub-region on the first image to obtain an array;

[0012] S13, under the premise that at least one light source is in a lit state, switching the states of any number of light sources, and repeatedly executing S11 and S12 to obtain corresponding different arrays; wherein, in each repeated execution process, the states of the light sources in the target area are not completely the same;

[0013] S14, constructing a correlation model based on all arrays;

[0014] In use mode:

[0015] S21, acquiring a second image actually containing brightness information at a preset frequency, without limiting the state of each light source in the target area when acquiring the second image;

[0016] S22. According to the second image, retrieve the correlation model to obtain the initial adjustment direction and magnitude of the brightness of each light source;

[0017] S23, repeat S21 and S22 until the brightness of the target area meets the requirements.

[0018] Preferably, in debug mode:

[0019] S11, controlling any light source in the target area to be in a lit state, and other light sources to be in an extinguished state;

[0020] S12, obtaining a first image currently containing brightness information, and extracting brightness values ​​of each sub-region on the first image to obtain an array;

[0021] S13, traverse each light source, repeat S11 and S12, and obtain the array corresponding to each light source;

[0022] S14. Construct a correlation model based on all arrays.

[0023] Preferably, in S14, a correlation matrix and a feature matching method are used to obtain a correlation model:

[0024]

[0025] in, Respectively represent the array corresponding to the i-th light source; l ij It represents the brightness value of the i-th light source in the j-th sub-region. There are m light sources and n sub-regions in total.

[0026] Preferably, the S22 includes:

[0027] X=L -1 *(RC)

[0028]

[0029] Where X represents the matrix composed of compensation values ​​of each light source;

[0030] L -1 Represents the inverse matrix of the correlation model L;

[0031] R represents the matrix composed of the ideal brightness of each light source;

[0032] C represents the matrix composed of the actual brightness of each light source.

[0033] Preferably, the method further comprises:

[0034] All light sources in the target area are controlled to be in a lit state, and are manually adjusted to a brightness that meets the requirements of the target area, a third image actually containing brightness information in this state is obtained, and a matrix R composed of ideal brightness of each light source is obtained according to the third image.

[0035] Preferably, the method further comprises:

[0036] Before extracting the brightness value of each sub-region on the image, the image is filtered for brightness interference factors.

[0037] An automatic dimming system includes a debugging mode and a use mode; the system includes a photometric circuit module, a PC and a light source driver:

[0038] In debug mode:

[0039] The photometric circuit module is used to obtain a first image currently containing brightness information, extract the brightness value of each sub-area on the first image to obtain an array; when obtaining the first image, it is required to control at least one light source in the target area to be in a lit state, and other light sources to be in an extinguished state; and is used to switch the states of any number of light sources on the premise that at least one light source is in a lit state, and obtain corresponding different arrays; wherein, in each repeated execution process, the states of the light sources in the target area are not exactly the same, and an array corresponding to each light source is obtained;

[0040] In use mode:

[0041] The photometry circuit module is used to obtain a second image that actually contains brightness information at a preset frequency; when obtaining the second image, the state of each light source in the target area is not restricted, and based on the second image, the correlation model is retrieved to obtain the initial adjustment direction and size of the brightness of each light source and send it to the light source driver; and it is used for multiple adjustments until the brightness of the target area meets the requirements.

[0042] Preferably, in debug mode:

[0043] The photometric circuit module is used to obtain the first image currently containing brightness information, extract the brightness value of each sub-region on the first image to obtain an array; when obtaining the first image, it is required to control any light source in the target area to be in a lit state and other light sources to be in an extinguished state; and to traverse each light source to obtain an array corresponding to each light source;

[0044] The PC machine is used to receive all arrays and construct a correlation model.

[0045] Preferably, the photometry circuit module includes a fixed-focus lens, a CMOS photosensor, a computing unit and a communication interface;

[0046] The fixed-focus lens and the CMOS photosensor are used to periodically capture images containing brightness information within the target area;

[0047] The computing unit is used to extract the brightness value of each sub-region on the image; and to retrieve the correlation model to obtain the brightness adjustment direction and size of each light source;

[0048] The communication interface is used to communicate with the PC or the light source driver.

[0049] Preferably, the computing unit is further used to filter brightness interference factors of the image before extracting the brightness value of each sub-region on the image.

[0050] (III) Beneficial effects

[0051] The present invention provides an automatic dimming method and system. Compared with the prior art, the present invention has the following beneficial effects:

[0052] The present invention includes a debugging mode and a use mode; in the debugging mode: at least one light source in the target area is controlled to be in a lit state, and other light sources are in an extinguished state; a first image containing brightness information is obtained, and the brightness value of each sub-area on the first image is extracted to obtain an array; on the premise that at least one light source is in a lit state, the state of any number of light sources is switched to obtain corresponding different arrays; a correlation model is constructed based on all arrays; in the use mode: a second image containing brightness information is obtained at a preset frequency; based on the second image, the correlation model is retrieved to obtain the first adjustment direction and size of the brightness of each light source; the adjustment is repeated until the brightness of the target area meets the requirements. Automatic brightness adjustment is performed for different occasions to ensure people's healthy vision. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0054] Figure 1 A schematic diagram of a flow chart of an automatic dimming method provided by an embodiment of the present invention;

[0055] Figure 2 A structural block diagram of an automatic dimming system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] The embodiments of the present application provide an automatic dimming method and system to solve the technical problem that the brightness cannot be automatically adjusted according to the ambient brightness.

[0058] The technical solution in the embodiment of the present application is to solve the above technical problems, and the overall idea is as follows:

[0059] The automatic dimming method provided by the embodiment of the present invention includes a debugging mode and a use mode; in the debugging mode: at least one light source in the target area is controlled to be in a lit state, and other light sources are in an extinguished state; the first image currently containing brightness information is obtained, and the brightness value of each sub-area on the first image is extracted to obtain an array; on the premise that at least one light source is in a lit state, the state of any number of light sources is switched to obtain corresponding different arrays; based on all arrays, a correlation model is constructed; in the use mode: a second image actually containing brightness information is obtained at a preset frequency; based on the second image, the correlation model is retrieved to obtain the first adjustment direction and size of the brightness of each light source; and the adjustment is repeated until the brightness of the target area meets the requirements. Automatic brightness adjustment is automatically performed for different occasions to ensure people's vision health.

[0060] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0061] Embodiment 1:

[0062] like Figure 1 As shown, an embodiment of the present invention provides an automatic dimming method, including a debugging mode and a use mode; the method includes:

[0063] A. In debug mode:

[0064] S11, controlling at least one light source in the target area to be in a lit state, and other light sources to be in an unlit state; for example, controlling any light source in the target area to be in a lit state, and other light sources to be in an unlit state.

[0065] S12, obtaining a first image currently containing brightness information, extracting the brightness value of each sub-region on the first image to obtain an array

[0066] S13, traverse each light source, under the premise that at least one light source is in the lit state, switch the state of any number of light sources, repeat S11 and S12, and obtain different arrays corresponding to each light source; wherein, in each repeated execution process, the state of each light source in the target area is not exactly the same; for example, traverse each light source, repeat S11 and S12, and obtain the array corresponding to each light source

[0067] S14. Construct a correlation model based on all arrays; use a correlation matrix and feature matching method to obtain the correlation model:

[0068]

[0069] Among them, l ij It represents the brightness value of the i-th light source in the j-th sub-region. There are m light sources and n sub-regions in total.

[0070] B. In use mode:

[0071] S21. Acquire a second image actually containing brightness information at a preset frequency, without limiting the state of each light source in the target area when acquiring the second image.

[0072] S22, according to the second image, calling the correlation model to obtain the first adjustment direction and magnitude of the brightness of each light source; specifically:

[0073] X=L -1 *(RC)

[0074]

[0075] Where X represents the matrix composed of compensation values ​​of each light source;

[0076] L -1 Represents the inverse matrix of the correlation model L;

[0077] R represents the matrix composed of the ideal brightness of each light source;

[0078] C represents the matrix composed of the actual brightness of each light source.

[0079] S23, repeat S21 and S22 until the brightness of the target area meets the requirements.

[0080] It is not difficult to understand that in order to make the target area brightness meet the requirements, the adjustment direction and size of the brightness of each light source include brightening or dimming in the lit state. At the same time, since the current actual brightness and the state of each light source are variables, the following special cases are also included, switching the light source from the extinguished state to the lit state, or from the lit state to the extinguished state.

[0081] In one embodiment, in the debugging mode, the method further comprises:

[0082] All light sources in the target area are controlled to be in a lit state, and are manually adjusted to a brightness that meets the requirements of the target area, a third image actually containing brightness information in this state is obtained, and a matrix R composed of ideal brightness of each light source is obtained according to the third image.

[0083] In particular, in order to control the light source to fill light or reduce light more accurately, in one embodiment, the method further includes:

[0084] Before extracting the brightness value of each sub-area on the image, the image is filtered for brightness interference factors. That is, on the basis of reading the original brightness value, the corresponding mathematical algorithm is used to overcome the noise interference caused by factors such as people's clothing, hair color changes, table and chair reflections, curtain opening and closing, etc., to maximize the accuracy of the light measurement data.

[0085] Embodiment 2:

[0086] like Figure 2 As shown, an embodiment of the present invention provides an automatic dimming system, including a debugging mode and a use mode; the system includes a photometric circuit module, a PC and a light source driver.

[0087] A. In debug mode:

[0088] The photometric circuit module is used to obtain a first image currently containing brightness information, extract the brightness value of each sub-area on the first image to obtain an array; when obtaining the first image, it is required to control at least one light source in the target area to be in a lit state, and the other light sources to be in an extinguished state; and is used to switch the states of any number of light sources on the premise that at least one light source is in a lit state, and obtain corresponding different arrays; wherein, in each repeated execution process, the states of the light sources in the target area are not exactly the same, and the array corresponding to each light source is obtained and sent to the PC via USB;

[0089] The PC machine is used to receive all arrays and construct a correlation model.

[0090] B. In use mode:

[0091] The photometric circuit module is used to obtain a second image actually containing brightness information at a preset frequency; when obtaining the second image, the state of each light source in the target area is not restricted, and according to the second image, the correlation model is retrieved to obtain the first adjustment direction and size of the brightness of each light source and send it to the light source driver via RS485; and is used for multiple adjustments until the brightness of the target area meets the requirements;

[0092] The light source driver is used to output the light source driving voltage according to different commands, and send the output level of the driving voltage to the photometric circuit module, and the photometric circuit module performs calculations based on the measured brightness value and the received driving voltage data.

[0093] In one embodiment, in debug mode:

[0094] The photometric circuit module is used to obtain the first image currently containing brightness information, extract the brightness value of each sub-region on the first image to obtain an array; when obtaining the first image, it is required to control any light source in the target area to be in a lit state and other light sources to be in an extinguished state; and to traverse each light source to obtain an array corresponding to each light source;

[0095] The PC machine is used to receive all arrays and construct a correlation model.

[0096] In one embodiment, the photometric circuit module includes a fixed-focus lens, a CMOS photosensor, a computing unit, and a communication interface;

[0097] The fixed-focus lens and the CMOS photosensor are used to periodically capture images containing brightness information within the target area;

[0098] The computing unit is used to extract the brightness value of each sub-region on the image; and to retrieve the correlation model to obtain the brightness adjustment direction and size of each light source;

[0099] The communication interface is used to communicate with the PC or the light source driver.

[0100] Different from the poor consistency of the photosensors used in traditional control devices, the output ratio of electrical parameters to brightness is highly discrete, which makes it impossible to perform precise dimming. The photosensor used in the embodiment of the present invention is a CMOS photosensor with a minimum resolution of 320*240, and each pixel has its own independent photoelectric element; and the photoelectric curve of each photoelectric element in this type of sensor remains highly consistent.

[0101] In particular, in order to control the light source to fill light or reduce light more accurately, in one embodiment, the computing unit is also used to filter the brightness interference factors of the image before extracting the brightness value of each sub-area on the image. That is, based on reading the original brightness value, the corresponding mathematical algorithm is used to overcome the noise interference caused by factors such as people's clothing, hair color changes, table and chair reflections, and the degree of curtain opening and closing, so as to maximize the accuracy of the light measurement data.

[0102] It should be supplemented that the automatic adjustment method and system provided by the present invention are applicable to places where light sources are needed, such as but not limited to classrooms, to protect the eye health of teachers and students.

[0103] In summary, compared with the prior art, the present invention has the following beneficial effects:

[0104] The automatic dimming method provided by the embodiment of the present invention includes a debugging mode and a use mode; in the debugging mode: at least one light source in the target area is controlled to be in a lit state, and other light sources are in an extinguished state; the first image currently containing brightness information is obtained, and the brightness value of each sub-area on the first image is extracted to obtain an array; on the premise that at least one light source is in a lit state, the state of any number of light sources is switched to obtain corresponding different arrays; based on all arrays, a correlation model is constructed; in the use mode: a second image actually containing brightness information is obtained at a preset frequency; based on the second image, the correlation model is retrieved to obtain the first adjustment direction and size of the brightness of each light source; and the adjustment is repeated until the brightness of the target area meets the requirements. Automatic brightness adjustment is automatically performed for different occasions to ensure people's vision health.

[0105] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0106] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An automatic dimming method, It is characterized in that Including debugging mode and using mode; the method includes: In debug mode: S11, controlling any light source in the target area to be in a lit state, and other light sources to be in an extinguished state; S12, obtaining a first image currently containing brightness information, and extracting brightness values ​​of each sub-region on the first image to obtain an array; S13, traverse each light source, repeat S11 and S12, and obtain the array corresponding to each light source; S14, constructing a correlation model based on all arrays; In use mode: S21, acquiring a second image actually containing brightness information at a preset frequency, without limiting the state of each light source in the target area when acquiring the second image; S22. According to the second image, retrieve the correlation model to obtain the initial adjustment direction and magnitude of the brightness of each light source; S23, repeat S21 and S22 until the brightness of the target area meets the requirements; in S14, the correlation matrix and feature matching method are used to obtain the correlation model: in, Respectively represent the array corresponding to the i-th light source; l ij represents the brightness value of the i-th light source in the j-th sub-region, there are m light sources and n sub-regions in total; S22 includes: X=L -1 *(R-C) Where X represents the matrix composed of compensation values ​​of each light source; L -1 Represents the inverse matrix of the correlation model L; R represents the matrix composed of the ideal brightness of each light source; C represents the matrix composed of the actual brightness of each light source.

2. The automatic dimming method according to claim 1, It is characterized in that In the debugging mode, the method further includes: All light sources in the target area are controlled to be in a lit state, and are manually adjusted to a brightness that meets the requirements of the target area, a third image actually containing brightness information in this state is obtained, and a matrix R composed of ideal brightness of each light source is obtained according to the third image.

3. The automatic dimming method according to claim 1, It is characterized in that The method further includes: Before extracting the brightness value of each sub-region on the image, the image is filtered for brightness interference factors.

4. An automatic dimming system, It is characterized in that Used to execute the automatic dimming method as claimed in claim 1, including a debugging mode and a use mode; the system includes a photometric circuit module, a PC and a light source driver: In debug mode: The photometric circuit module is used to obtain the first image currently containing brightness information, extract the brightness value of each sub-region on the first image to obtain an array; when obtaining the first image, it is required to control any light source in the target area to be in a lit state and other light sources to be in an extinguished state; and to traverse each light source to obtain an array corresponding to each light source; The PC is used to receive all arrays and build a correlation model; In use mode: The photometry circuit module is used to obtain a second image that actually contains brightness information at a preset frequency; when obtaining the second image, the state of each light source in the target area is not restricted, and based on the second image, the correlation model is retrieved to obtain the initial adjustment direction and size of the brightness of each light source and send it to the light source driver; and it is used for multiple adjustments until the brightness of the target area meets the requirements.

5. The automatic dimming system according to claim 4, It is characterized in that The photometry circuit module includes a fixed-focus lens, a CMOS photosensor, a computing unit and a communication interface; The fixed-focus lens and the CMOS photosensor are used to periodically capture images containing brightness information within the target area; The computing unit is used to extract the brightness value of each sub-area on the image; and is used to call the correlation model to obtain the brightness adjustment direction and size of each light source; the communication interface is used to communicate with the PC or the light source driver.

6. The automatic dimming system according to claim 5, It is characterized in that The operation unit is also used to filter brightness interference factors of the image before extracting the brightness value of each sub-region on the image.