Classroom lighting control system and method based on infrared array sensor and camera
The classroom lighting system uses infrared sensors and cameras to dynamically control LED lighting based on occupancy and temperature, addressing energy waste and visual fatigue issues.
Patent Information
- Application Number
- CN202211450800.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-11-18
AI Technical Summary
Classrooms often suffer from energy waste due to constant illumination and inappropriate spectral distribution, illumination value, and uniformity, leading to visual fatigue and increased myopia risk, and existing lighting systems lack independent control measures.
A classroom lighting control system using an infrared array sensor and camera to detect occupancy and temperature, adjust LED lighting based on illumination distribution, and simulate sunlight spectra for dynamic lighting.
Achieves energy-efficient lighting control, reduces visual fatigue, and improves lighting uniformity, thereby reducing myopia risk and enhancing classroom comfort.
Smart Images

Figure CN115811648B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a lighting control system and method in the technical field of energy-saving and healthy lighting control and image processing, and in particular to a classroom lighting control system and method based on an infrared array sensor and a camera. Background Art
[0002] The visual effect of light mainly affects visual function and vision-related work efficiency, and is the most basic factor to be considered in healthy lighting. In addition to visual effects, light also has non-visual effects on the human brain, affecting the secretion of hormones that are highly related to emotions, and thus affecting people's emotions, mental state, some behaviors and physiological functions. Human electric lighting has undergone two changes from incandescent lamps to fluorescent lamps and LED lamps. The efficiency of converting electrical energy into light energy has been greatly improved. Coincidentally, the change in the use of light sources coincides with the two growth peaks of myopia. The reason is that the change in the spectral distribution of lighting sources is an important influencing factor.
[0003] Studies have found that the same light stimulation will produce different physiological reactions at different times of the day. People's demand for light has early morning, noon and dusk effects, and is affected by factors such as weather type and season. The optimal light required by the human body is not constant, which puts forward the necessity of dynamic lighting research. In addition, it is also found that insufficient illumination and uniformity of lighting light will increase the rate of poor vision, and improving illumination and uniformity can reduce the rate of poor vision. At present, there is a situation where classrooms are empty but brightly lit, resulting in energy waste; due to single-point illumination collection, the lamps lack independent control measures, and the lighting control adopts a constant illumination mode. The illumination values at different locations in the classroom vary greatly. The inappropriate spectral distribution, illumination value, illumination uniformity and lighting control mode of the light source may cause human rhythm disorders, and there is a risk of causing visual fatigue, leading to the occurrence of myopia and the increase of myopia. Summary of the invention
[0004] The purpose of the present invention is to address the deficiencies of the prior art and provide a classroom lighting control system and method based on infrared array sensors and cameras. Compared with conventional classroom lighting systems, the present invention can detect infrared thermal images in the classroom to determine whether there are people in the room and determine whether to start lighting and abnormal high temperature (fire alarm) alarm control; by detecting the illumination distribution map in the classroom and combining time and geographic location information, the full-spectrum LED used as the lighting source in the classroom can be independently controlled, and the regular changes of sunlight can be simulated by controlling the color temperature and illumination distribution map of the light source to achieve the purpose of dynamic classroom lighting.
[0005] The objective of the present invention is achieved through the following technical solutions:
[0006] 1. An energy-saving classroom lighting control system using an infrared array sensor and a camera includes a lamp arranged on the roof of a classroom;
[0007] Including control system, and electrical connection with lamps;
[0008] The control system comprises a sensing part with infrared and camera and a control part, and the sensing part is electrically connected with the lamp through the control part.
[0009] The control system includes the following modules: infrared array sensor module, camera module, indoor infrared thermal image processing and lighting decision module, adjustable LED lighting module and abnormal high temperature alarm module;
[0010] Infrared array sensor module: electrically connected to the indoor infrared thermal image analysis and lighting decision module, using the infrared array sensor to collect temperature data in the classroom, and transmitting the temperature data to the indoor infrared thermal image analysis and lighting decision module;
[0011] Camera module: electrically connected to the indoor infrared thermal image analysis and lighting decision module, using a camera to capture indoor visible light images, and transmitting the indoor visible light images to the indoor infrared thermal image analysis and lighting decision module;
[0012] Indoor infrared thermal image analysis and lighting decision module:
[0013] Process the temperature data from the infrared array sensor module to obtain the indoor infrared thermal image, analyze whether there is someone in the room and whether there is abnormally high temperature, and generate an alarm signal to the abnormally high temperature alarm module;
[0014] Calculate the brightness distribution map of the indoor visible light image from the camera, then calculate the illumination distribution, and obtain the color temperature and brightness control parameters of each lamp according to the illumination distribution processing;
[0015] Adjustable LED lighting module: electrically connected to the lamps and the indoor infrared thermal image analysis and lighting decision module, receiving the color temperature and brightness control parameters from the indoor infrared thermal image analysis and lighting decision module to control the light emission of the lamps, and adjusting the lighting emitted by the lamps to achieve rhythmic lighting;
[0016] Abnormally high temperature alarm module: electrically connected to the indoor infrared thermal image analysis and lighting decision module, receives the alarm signal from the indoor infrared thermal image analysis and lighting decision module and issues an alarm.
[0017] The indoor area of the classroom is divided into M×N lighting areas, and lamps are evenly arranged in each lighting area, with one lamp arranged in each lighting area.
[0018] In the indoor infrared thermal image analysis and lighting decision module, temperature judgment is performed based on the indoor infrared thermal image. When the temperature value in the indoor infrared thermal image processing signal is higher than a preset abnormally high temperature threshold, an alarm signal is sent to the abnormally high temperature alarm module.
[0019] 2. A classroom lighting control method based on infrared array sensors and cameras
[0020] Step 1: Use the infrared array sensor of the infrared array sensor module to collect temperature data, and obtain an indoor infrared thermal image based on the collected temperature data;
[0021] Step 2: Divide the indoor area into multiple lighting areas, analyze the indoor infrared thermal image according to the preset human body temperature range and abnormal high temperature threshold, and determine whether the lamps in each lighting area are illuminated and whether to alarm;
[0022] Step 3: Use the camera of the camera module to capture and collect indoor visible light images, extract the grayscale information of each pixel from the indoor visible light images, obtain the corresponding brightness distribution map through image processing method, and then obtain the illumination distribution map of the indoor environment as the ambient light illumination distribution map and the illumination value of each lighting area;
[0023] Step 4: Based on the illuminance distribution diagram and the illuminance value of the lighting area, combined with the weight coefficient of each lamp's influence on different lighting areas, the spectrum output by lamps in different lighting areas is adjusted to perform rhythmic lighting.
[0024] In the step 2, the following sub-steps are implemented:
[0025] 2.1. Arrange lamps evenly in the indoor area, divide the classroom into M×N lighting areas according to the number of lamps M×N, so that one lamp is arranged in each lighting area, where M and N are the number of LED lamps in the length and width of the classroom respectively;
[0026] 2.2. According to the distribution and location of the lighting area, the indoor infrared thermal image is also divided into M×N areas;
[0027] 2.3. Analyze the indoor infrared thermal image according to the preset human body temperature range T0-T1, T0<T1, T0 and T1 represent the first and second temperature thresholds respectively, and perform the following judgment and control: if there is an image area within the human body temperature range in the indoor infrared thermal image, it is determined that there is a person in the image area, and the lamps in the lighting area corresponding to the position of the image area are turned on; otherwise, it is determined that there is no person in the image area, and the lamps in the lighting area corresponding to the position of the image area are turned off;
[0028] 2.4. Analyze the indoor infrared thermal image according to the preset abnormally high temperature threshold value T2, T1<T2, T2 represents the third temperature threshold, and perform the following judgment and control: If there is an area in the indoor infrared thermal image with a temperature higher than the abnormally high temperature threshold value T2, it is determined that there are abnormally high temperature objects in the room, and an alarm signal is generated to trigger the alarm device to sound an alarm.
[0029] The step three is implemented in the indoor infrared thermal image analysis and lighting decision module through the following sub-steps:
[0030] 3.1. Directly extract grayscale information from the indoor visible light image detected by the camera and perform digital image filtering to obtain a grayscale image D, where D = {D(i,j)}, where D(i,j) represents the grayscale value of the pixel in the i-th row and j-th column of the grayscale image, i = 1, 2, ..., I, j = 1, 2, ..., J, and I and J are the number of pixels in the horizontal and vertical coordinates of the image;
[0031] 3.2. Calculate the corresponding brightness distribution image B = f(D, G, T) according to the grayscale image D(i, j), B = {B(i, j)}, where B(i, j) represents the brightness value of the pixel in the i-th row and j-th column in the brightness distribution image, G is the camera gain, T is the exposure time, and f() represents the first transformation function;
[0032] Another method of calculating the corresponding brightness distribution image based on the grayscale image is to implement it through a calibration method. A uniform brightness distribution light source with known brightness is used, and different brightnesses are adjusted and recorded. At the same time, an image is captured by a camera to obtain the pixel correspondence between the grayscale image captured by the camera and the brightness distribution image, and curve fitting is performed to obtain the brightness distribution image B=f1(D), where f1() represents the second transformation function.
[0033] 3.3. The illumination distribution map E1 is calculated based on the brightness distribution image:
[0034] E1(i,j)=B(i,j) / K(i,j)
[0035] Among them, E1(i,j) represents the illuminance of the pixel in the i-th row and j-th column in the illuminance distribution diagram, K(i,j) represents the reflectivity of the object corresponding to the pixel in the i-th row and j-th column, and the reflectivity K(i,j) of the object is calibrated by measuring the illuminance of the object surface with a illuminometer and the brightness calculated from the image. Different objects are identified using a deep learning algorithm;
[0036] 3.4. Since the indoor area has been divided into M×N lighting areas, the average value of the illumination in each lighting area is calculated according to the illumination distribution diagram E1 as the illumination value of the lighting area, and E2(m,n) is obtained, m=1,2,…,M, n=1,2,…,N, E2(m,n) represents the illumination value of the lighting area in the direction of the mth row and the nth column in the classroom.
[0037] In the step 4, the weight coefficients of the effects of different lamps on different lighting areas are set, the illumination difference of the lighting area is calculated according to the measured actual illumination distribution map in the classroom and the preset rhythmic lighting requirement illumination distribution map, a set of equations is constructed according to the weight coefficients, the input current of the lamp and the difference of the lighting area, the set of equations is solved, and the color temperature and brightness control parameters of each lamp are obtained and input into the lamps in different lighting areas for regulation.
[0038] In step 4, the indoor infrared thermal image analysis and lighting decision module is implemented through the following sub-steps:
[0039] 4.1. Set the weight coefficients of the effects of different lamps on different lighting areas. The specific settings are as follows:
[0040] When all lamps are off, measure the illuminance values of each lighting area The color temperature is fixed and the preset input current I is used to control the input of the jth lamp I to light up. The illuminance value of each lighting area is measured as The weight coefficient of the jth lamp is for:
[0041]
[0042] in, The weight coefficient of the influence of the j-th lamp on the i-th lighting area is the ratio of the illuminance contribution value to the input current. represents the illuminance value of the i-th lighting area when the j-th lamp I is lit;
[0043] 4.2. According to the measured actual illumination distribution diagram in the classroom And the pre-set rhythmic lighting requirements illumination distribution diagram Calculate the illumination difference of the lighting area:
[0044]
[0045] in, represents the illuminance difference of the i-th lighting area, represents the actual illuminance value of the i-th lighting area in actual situations, represents the required illumination of the rhythmic lighting of the i-th lighting area;
[0046] 4.3. The equation group is constructed based on the weight coefficient, the input current of the lamp and the difference of the lighting area:
[0047]
[0048] in, The weight coefficient of the influence of the j-th lamp on the i-th lighting area is specifically the ratio of the illuminance contribution value to the input current; I j represents the input current of the jth lamp;
[0049] Solve the equations based on the least square method with constraints or other optimization algorithms to obtain the input current I of each lamp. j , according to the input current I j The control input is sent to the corresponding lamps, thereby adjusting the lighting spectrum output by lamps in different lighting areas to achieve rhythmic lighting.
[0050] The present invention adopts an infrared array sensor and a camera module to collect temperature distribution and image information in a classroom, and realizes intelligent control of the lighting mode in the classroom after algorithm analysis.
[0051] The beneficial effects of the present invention are:
[0052] The present invention adopts a low-cost infrared array sensor module to detect and obtain the indoor infrared thermal image of the classroom, realizes the monitoring of whether there are people in the classroom and abnormally high temperature, controls the startup of the lighting system and the abnormal temperature alarm, eliminates the phenomenon of lights on when no one is in the classroom, and can achieve the purpose of energy saving and safety monitoring; the lighting control strategy obtains image information through the camera, and then obtains the illumination distribution map, thereby controlling the color temperature and brightness of each lighting module, which can achieve better lighting uniformity, and adopts a full-spectrum LED light source to simulate the changes in sunlight, which can reduce visual fatigue and better meet the healthy lighting needs of the classroom. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 This is a block diagram of the classroom lighting control system of the present invention;
[0054] Figure 2 A top view of the lighting arrangement and classroom lighting area division provided by an embodiment of the present invention;
[0055] Figure 3 This is a flow chart of the classroom lighting control method of the present invention.
[0056] In the figure: indoor infrared thermal image analysis and lighting decision module 1, infrared array sensor module 2, camera module 3, adjustable LED lighting module 4, abnormal high temperature alarm module 5, control system 6, LED light 7. DETAILED DESCRIPTION
[0057] The present invention will be described in detail below based on the accompanying drawings and preferred embodiments, and the purpose and effects of the present invention will become more clear. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0058] It includes a lamp, which is arranged on the roof of the classroom; the lamp is specifically an LED lamp 7.
[0059] It includes a control system 6, which is electrically connected to the lamp;
[0060] The control system 6 includes a sensing part with infrared and camera and a control part. The sensing part is electrically connected to the lamp through the control part.
[0061] like Figure 1 As shown, the control system 6 includes the following modules: an infrared array sensor module 2, a camera module 3, an indoor infrared thermal image processing and lighting decision module 1, an adjustable LED lighting module 4 and an abnormally high temperature alarm module 5; the infrared array sensor module 2 and the camera module 3 constitute the sensing part, and the indoor infrared thermal image processing and lighting decision module 1, the adjustable LED lighting module 4 and the abnormally high temperature alarm module 5 constitute the control part.
[0062] Infrared array sensor module 2: electrically connected to the indoor infrared thermal image analysis and lighting decision module 1, using the infrared array sensor to collect temperature data in the classroom, and transmitting the temperature data to the indoor infrared thermal image analysis and lighting decision module 1;
[0063] Camera module 3: electrically connected to the indoor infrared thermal image analysis and lighting decision module 1, using a camera to capture indoor visible light images, and transmitting the indoor visible light images to the indoor infrared thermal image analysis and lighting decision module 1;
[0064] Indoor infrared thermal image analysis and lighting decision module 1:
[0065] Process the temperature data from the infrared array sensor module 2 to obtain an indoor infrared thermal image, analyze whether there is someone in the room and whether there is abnormally high temperature, and generate an alarm signal to the abnormally high temperature alarm module 5;
[0066] Calculate the brightness distribution map of the indoor visible light image from the camera, then calculate the illumination distribution, establish a lighting model and obtain the color temperature and brightness control parameters of each lamp according to the illumination distribution;
[0067] The color temperature and brightness control parameter is the input current to the lamp.
[0068] Adjustable LED lighting module 4: electrically connected to the lamp and the indoor infrared thermal image analysis and lighting decision module 1, receiving the color temperature and brightness control parameters from the indoor infrared thermal image analysis and lighting decision module 1 to control the light emission of the lamp, and adjusting the color temperature and brightness of the lighting light emitted by the lamp to achieve rhythmic lighting;
[0069] Abnormally high temperature alarm module 5: electrically connected to the indoor infrared thermal image analysis and lighting decision module 1, receives the alarm signal from the indoor infrared thermal image analysis and lighting decision module 1 and gives an alarm. The alarm can be given by sound and light.
[0070] like Figure 2 As shown, the indoor area of the classroom is divided into M×N lighting areas, and lamps are evenly arranged in each lighting area, with one lamp arranged in each lighting area.
[0071] In the indoor infrared thermal image analysis and lighting decision module 1, temperature judgment is performed based on the indoor infrared thermal image. When the temperature value in the indoor infrared thermal image processing signal is higher than the preset abnormally high temperature threshold, an alarm signal is sent to the abnormally high temperature alarm module 5.
[0072] In specific implementation, the infrared array sensor temperature measurement method is non-contact thermal imaging temperature measurement, which realizes dynamic monitoring of indoor temperature distribution. Figure 2 As shown, the infrared array sensor module and the camera module are installed in the middle above the rear wall of the classroom.
[0073] Embodiments of the present invention are as follows:
[0074] Example 1
[0075] like Figure 3 As shown, applied to the above system, comprising the following steps:
[0076] Step 1: The infrared array sensor obtains the infrared thermal image in the classroom. If it is determined that there is someone in the classroom, the lighting mode is activated, otherwise the lighting mode is turned off. If it is determined that there is an abnormally high temperature object in the room, the alarm module is activated;
[0077] Step 2: Calculate the color temperature and illuminance of the classroom target lighting required to simulate sunlight based on the latitude and longitude, date, and time information of the classroom location. Set the time interval to 5 minutes. Based on the visual and non-visual effects of lighting and the particularity of classroom lighting, set the illuminance to 300-1000lx, the correlated color temperature to 2500k-6500k, and the spectral distribution to simulate the spectral distribution of sunlight.
[0078] Step 3: Obtain image information through the camera and calculate the illumination distribution map. This step is implemented through the following sub-steps:
[0079] (1) The camera forms an image of the target on the photosensitive surface through the lens, and the target grayscale value is extracted and obtained as D;
[0080] (2) According to the target gray value, the actual brightness value B(i,j) is calculated as:
[0081]
[0082] Wherein, T is the exposure time, F is the aperture number, τ is the lens transmittance, γ is the detector sensitivity, G is the amplifier gain of the automatic gain control (AGC) module inside the camera, m represents the dark signal, which is the grayscale average of the output signal of the detector in the dark field, and m is a constant determined by the detector.
[0083] (3) According to the calculated brightness value of the corresponding target object, the illuminance value is calculated, E = B / K, and the illuminance distribution diagram of the actual situation is obtained. The reflectivity K of the object can be calibrated by measuring the illuminance of the object surface with a standard illuminometer and the brightness calculated from the image, and different objects can be identified using a deep learning algorithm.
[0084] Step 4: Based on the target color temperature and illuminance of the lighting, and the illuminance distribution diagram, the adjustment parameters of the lighting module are obtained through processing by the lighting model.
[0085] In the specific implementation, the classroom is divided into M×N lighting areas, and the original illumination distribution map E 1 Transform into E according to M×N regions 2 (m,n), m=1,2,…,M, n=1,2,…,N, then E 2 (m,n) represents the illuminance value of the lighting area corresponding to the LED light in the mth row and nth column in the classroom. One method of obtaining the updated illuminance value is to take the original average illuminance value in the lighting area.
[0086] This is accomplished through the following sub-steps:
[0087] 4.1. Set the weight coefficients of the effects of different lamps on different lighting areas. The specific settings are as follows:
[0088] When all lamps are off, measure the illuminance values of each lighting area The color temperature is fixed and the preset input current I is used to control the input of the jth lamp I to light up. The illuminance value of each lighting area is measured as The weight coefficient of the jth lamp is for:
[0089]
[0090] in, Represents the weight coefficient of the influence of the j-th lamp on the i-th lighting area, represents the illuminance value of the i-th lighting area when the j-th lamp I is lit;
[0091] 4.2. According to the measured actual illumination distribution diagram in the classroom And the pre-set rhythmic lighting requirements illumination distribution diagram Calculate the illumination difference of the lighting area:
[0092]
[0093] in, represents the illuminance difference of the i-th lighting area, represents the actual illumination value of the i-th lighting area, represents the required illumination of the rhythmic lighting of the i-th lighting area;
[0094] 4.3. The equation group is constructed based on the weight coefficient, the input current of the lamp and the difference of the lighting area:
[0095]
[0096] in, The weight coefficient of the influence of the j-th lamp on the i-th lighting area is specifically the ratio of the illuminance contribution value to the input current; I j represents the input current of the jth lamp;
[0097] Solve the equations based on the least square method with constraints or other optimization algorithms to obtain the input current I of each lamp. j , according to the input current I j The control input is sent to the corresponding lamps, thereby adjusting the lighting spectrum output by the lamps to achieve rhythmic lighting.
[0098] Example 2
[0099] It is basically the same as Example 1, except that:
[0100] The illumination distribution diagram of the actual situation is obtained in step 3 in the following way: a light source with uniform brightness distribution is used, different brightness is adjusted, the brightness value is tested and recorded by a standard brightness meter, and an image is collected by a camera at the same time, the corresponding relationship between the grayscale image collected by the camera and the brightness is obtained, and the curve is fitted with a polynomial to obtain a brightness distribution image:
[0101] B=a n D n +a n-1 D n-1 +...+a 2 D 2 +a 1 D1 +a o
[0102] Among them, a n Indicates the corresponding D n The fitting coefficient, D n Represents the nth power of the grayscale value D, where n represents the exponent of the grayscale value D.
[0103] In step three, the illumination value of the lighting area is obtained in the following manner: based on machine vision target recognition, the desk target in the area is identified, and the average original illumination value corresponding to the desk in the area is used as the updated illumination value.
Claims
1. A classroom lighting control method based on infrared array sensors and cameras, characterized in that: The method comprises the following steps: The method uses a classroom lighting control system based on infrared array sensors and cameras: Including lamps, arranged on the roof of the classroom; It includes a control system (6) which is electrically connected to the lamp; The control system (6) comprises a sensing part with infrared and camera and a control part, and the sensing part is electrically connected to the lamp via the control part; Step 1: Collect temperature data and obtain indoor infrared thermal images based on the collected temperature data; Step 2: Divide the indoor area into multiple lighting areas, analyze the indoor infrared thermal image according to the preset human body temperature range and abnormal high temperature threshold, and determine whether the lamps in each lighting area are illuminated and whether to alarm; Step 3: Shoot and collect indoor visible light images, extract the grayscale information of each pixel from the indoor visible light images, obtain the corresponding brightness distribution map through image processing methods, and then obtain the illumination distribution map and the illumination value of each lighting area; Step 4: Based on the illuminance distribution diagram and the illuminance value of the lighting area, combined with the weight coefficient of each lamp's influence on different lighting areas, the spectrum output by the lamps in different lighting areas is adjusted to perform rhythmic lighting; In the step 4, the following sub-steps are implemented: 4.
1. Set the weight coefficients of the effects of different lamps on different lighting areas. The specific settings are as follows: When all lamps are off, measure the illuminance values of each lighting area The color temperature is fixed and the preset input current I is used to control the input of the jth lamp I to light up. The illuminance value of each lighting area is measured as The weight coefficient of the jth lamp is for: in, Represents the weight coefficient of the influence of the j-th lamp on the i-th lighting area, represents the illuminance value of the i-th lighting area when the j-th lamp I is lit; 4.
2. According to the measured actual illumination distribution diagram in the classroom And the pre-set rhythmic lighting requirements illumination distribution diagram Calculate the illumination difference of the illuminated area: in, represents the illuminance difference of the i-th lighting area, represents the actual illumination value of the i-th lighting area, represents the required illumination of the rhythmic lighting of the i-th lighting area; 4.
3. The equation group is constructed based on the weight coefficient, the input current of the lamp and the difference of the lighting area: in, I represents the weight coefficient of the influence of the j-th lamp on the i-th lighting area; j represents the input current of the jth lamp; Solve the equations to obtain the input current I of each lamp j , according to the input current I j The control input is sent to the corresponding lamps, thereby adjusting the lighting spectrum output by lamps in different lighting areas to achieve rhythmic lighting.
2. According to claim 1, a classroom lighting control method based on infrared array sensor and camera is characterized in that: In the step 2, the following sub-steps are implemented: 2.
1. Arrange lamps evenly in the indoor area, divide the classroom into M×N lighting areas according to the number of lamps M×N, so that one lamp is arranged in each lighting area; 2.
2. According to the distribution of lighting areas, the indoor infrared thermal image is also divided into M×N areas; 2.
3. Analyze the indoor infrared thermal image according to the preset human body temperature range T0-T1, T0<T1, T0 and T1 represent the first and second temperature thresholds respectively, and perform the following judgment and control: if there is an image area within the human body temperature range in the indoor infrared thermal image, it is determined that there is a person in the image area, and the lamps in the lighting area corresponding to the image area are turned on; otherwise, it is determined that there is no person in the image area, and the lamps in the lighting area corresponding to the image area are turned off; 2.
4. Analyze the indoor infrared thermal image according to the preset abnormally high temperature threshold value T2, T1<T2, T2 represents the third temperature threshold, and perform the following judgment and control: If there is an area in the indoor infrared thermal image that is higher than the abnormally high temperature threshold value T2, it is determined that there are abnormally high temperature objects in the room, and an alarm signal is generated to alarm.
3. The classroom lighting control method based on infrared array sensor and camera according to claim 1 is characterized in that: The step three is implemented through the following sub-steps: 3.
1. Directly extract grayscale information from the indoor visible light image detected by the camera and perform digital image filtering to obtain a grayscale image D; 3.
2. Calculate the corresponding brightness distribution image B = f(D, G, T) according to the grayscale image D(i, j), B = {B(i, j)}, where B(i, j) represents the brightness value of the pixel in the i-th row and j-th column, G is the camera gain, T is the exposure time, and f() represents the first transformation function; 3.
3. The illumination distribution map E1 is calculated based on the brightness distribution image: E1(i,j)=B(i,j) / K(i,j) Among them, E1(i,j) represents the illumination of the pixel in the i-th row and j-th column, and K(i,j) represents the reflectivity of the object corresponding to the pixel in the i-th row and j-th column; 3.
4. According to the illumination distribution diagram E1, the average illumination value in each illumination area is obtained as the illumination value of the illumination area to obtain E2(m,n), where m=1,2,…,M, n=1,2,…,N, and E2(m,n) represents the illumination value of the illumination area in the direction of the mth row and the nth column.
4. The classroom lighting control method based on infrared array sensor and camera according to claim 1 is characterized in that: In the step 4, the weight coefficients of the effects of different lamps on different lighting areas are set, the illumination difference of the lighting area is calculated according to the measured actual illumination distribution diagram in the classroom and the preset rhythmic lighting requirement illumination distribution diagram, a set of equations is constructed according to the weight coefficients, the input current of the lamp and the difference of the lighting area, the set of equations is solved, and the color temperature and brightness control parameters of each lamp are obtained and input into the lamps in different lighting areas for regulation.
5. The classroom lighting control method based on infrared array sensor and camera according to claim 1 is characterized in that: The control system (6) comprises the following modules: an infrared array sensor module (2), a camera module (3), an indoor infrared thermal image processing and lighting decision module (1), an adjustable LED lighting module (4) and an abnormally high temperature alarm module (5); Infrared array sensor module (2): electrically connected to the indoor infrared thermal image analysis and lighting decision module (1), using the infrared array sensor to collect temperature data in the classroom, and transmitting the temperature data to the indoor infrared thermal image analysis and lighting decision module (1); A camera module (3) is electrically connected to the indoor infrared thermal image analysis and lighting decision module (1), uses a camera to capture indoor visible light images, and transmits the indoor visible light images to the indoor infrared thermal image analysis and lighting decision module (1); Indoor infrared thermal image analysis and lighting decision module (1): Processing the temperature data from the infrared array sensor module (2) to obtain an indoor infrared thermal image, analyzing whether there is someone in the room and whether there is an abnormally high temperature, and generating an alarm signal to the abnormally high temperature alarm module (5); Calculate the brightness distribution map of the indoor visible light image from the camera, then calculate the illumination distribution, and obtain the color temperature and brightness control parameters of each lamp according to the illumination distribution processing; An adjustable LED lighting module (4) is electrically connected to the lamp and the indoor infrared thermal image analysis and lighting decision module (1), receives color temperature and brightness control parameters from the indoor infrared thermal image analysis and lighting decision module (1), controls the light emission of the lamp, and adjusts the lighting emitted by the lamp to achieve rhythmic lighting; Abnormally high temperature alarm module (5): electrically connected to the indoor infrared thermal image analysis and lighting decision module (1), receiving the alarm signal from the indoor infrared thermal image analysis and lighting decision module (1) and issuing an alarm.
6. The classroom lighting control method based on infrared array sensor and camera according to claim 1 is characterized in that: The indoor area of the classroom is divided into M×N lighting areas, and lamps are evenly arranged in each lighting area, with one lamp arranged in each lighting area.
7. The classroom lighting control method based on infrared array sensor and camera according to claim 1 is characterized in that: In the indoor infrared thermal image analysis and lighting decision module (1), temperature judgment is performed based on the indoor infrared thermal image, and when the temperature value in the indoor infrared thermal image processing signal is higher than a preset abnormally high temperature threshold, an alarm signal is sent to the abnormally high temperature alarm module (5).
