A method, device, equipment and storage medium for intelligent indoor lighting control in a building

Through surveillance cameras and machine learning algorithms, indoor lighting solutions are optimized, which solves the problems of difficult installation and high cost in indoor lighting control technology, achieves a balance between lighting demand and energy consumption, and improves lighting energy efficiency.

CN117177418BInactive Publication Date: 2024-09-06BAOYI (SHENZHEN) LIGHTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311423512.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing indoor lighting control technology has problems with installation difficulties and high hardware costs when it comes to allocating lighting brightness on demand, and cannot strike a balance between lighting needs and energy consumption, making it difficult to improve energy efficiency.

Method used

Monitoring cameras are used to collect video data in real time, and multi-target tracking algorithms are used to track indoor personnel, determine lighting target areas and illuminated areas, perform binarization processing, calculate lighting area satisfaction, and use machine learning and gray wolf optimization algorithms to optimize lighting solutions. , reducing the total power required for lighting.

Benefits of technology

It can improve lighting energy efficiency, reduce the balance between lighting demand and energy consumption without increasing hardware costs, simplify the installation process, and facilitate practical application and promotion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117177418B
    Figure CN117177418B
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for intelligent indoor lighting control in a building, and relates to the field of intelligent lighting technology. The method is based on the on-site video data collected in real time by the indoor monitoring camera of the building, firstly determining the current lighting target area by indoor personnel tracking, and determining the current illuminated area by binarization processing, and then determining the current lighting area satisfaction based on these two results, and finally optimizing the current indoor lighting scheme according to the current lighting area satisfaction and the total power required for the current lighting, with the goal of higher lighting area satisfaction and lower total power required for lighting, obtaining a new indoor lighting scheme and sending it to multiple indoor lighting lamps of the building for execution, so that only the camera needs to be configured, which can greatly reduce the installation difficulty and hardware cost, and at the same time can maintain a balance between lighting demand and lighting energy consumption, and effectively improve lighting energy efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of smart lighting technology, and specifically relates to a method, device, equipment and storage medium for controlling indoor smart lighting in a building. Background Art

[0002] Smart lighting refers to the technical concept of combining the Internet of Things (IoT) technology to achieve automatic control of lighting and energy conservation and emission reduction. It has become a popular industry at present because it can improve user experience and living comfort.

[0003] At present, indoor lighting in buildings generally includes multiple lamps, wherein the multiple lamps are arranged at different positions in the same room so as to illuminate the entire indoor area. However, when there is no one or only one or two people in the building, if all the lamps are turned on, it will cause unnecessary waste; and if you want to combine the Internet of Things technology to automatically realize the functions of turning on the lights when people come and turning off the lights when people leave, and allocating the lighting brightness on demand, you need to install expensive infrared sensors at various positions in the room to detect whether there are people at the corresponding positions, which will lead to problems of difficult installation and extremely high hardware costs. In addition, the existing indoor lighting control technology cannot strike a balance between lighting demand and lighting energy consumption, resulting in the problem of difficulty in improving energy efficiency. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device, computer equipment and computer-readable storage medium for intelligent indoor lighting control in buildings, so as to solve the problems of difficult installation and extremely high hardware cost in existing indoor lighting control technologies for achieving on-demand distribution of lighting brightness, as well as the inability to achieve a balance between lighting demand and lighting energy consumption, which leads to difficulty in improving energy efficiency.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, a method for controlling indoor intelligent lighting in a building is provided, comprising:

[0007] Obtain live video data collected in real time by indoor surveillance cameras in buildings;

[0008] According to the on-site video data, a multi-target tracking algorithm is used to track each indoor person appearing in the building in real time to obtain an indoor person tracking result;

[0009] Determine the recent activity area of ​​each indoor person in real time according to the indoor person tracking result, and use the union of the recent activity areas of all indoor people as the current lighting target area;

[0010] Extracting video frame images from the live video data in real time, and converting the video frame images into images to be processed in a color space of HSV in real time;

[0011] According to a preset target brightness threshold, the image to be processed is binarized to obtain a binarized image containing at least one highlighted image area, wherein the highlighted image area refers to an image area in which the brightness values ​​of all pixels in the domain are greater than or equal to the target brightness threshold;

[0012] According to the known correspondence between each coordinate point in the building and each pixel point in the binary image, taking the building indoor coordinate area corresponding to the at least one highlighted image area as the current illuminated area;

[0013] According to the current lighting target area and the currently illuminated area, taking the ratio of the intersection area of ​​the current lighting target area and the currently illuminated area to the current lighting target area as the current lighting area satisfaction;

[0014] Determine the total power required for current lighting according to the current indoor lighting scheme, wherein the current indoor lighting scheme includes current brightness values ​​of multiple indoor lighting lamps of the building;

[0015] According to the current lighting target area, the current lighting area satisfaction and the current lighting required total power, the current indoor lighting solution is optimized to achieve a higher lighting area satisfaction and a lower total lighting required power, so as to obtain a new indoor lighting solution;

[0016] The new indoor lighting plan is sent to the plurality of indoor lighting lamps of the building for execution.

[0017] Based on the above invention content, a new lighting control scheme for updating indoor lighting strategies based on indoor on-site video data of a building is provided, that is, according to the on-site video data collected in real time by the indoor monitoring camera of the building, the current lighting target area is first determined by indoor personnel tracking, and the current illuminated area is determined by binarization processing, and then the current lighting area satisfaction is determined based on these two results, and finally, according to the current lighting area satisfaction and the total power required for the current lighting, the current indoor lighting scheme is optimized with the goal of higher lighting area satisfaction and lower total lighting power required, and a new indoor lighting scheme is obtained and sent to multiple indoor lighting lamps of the building for execution. In this way, only cameras need to be configured, which can greatly reduce installation difficulties and hardware costs. At the same time, a balance can be maintained between lighting demand and lighting energy consumption, effectively improving lighting energy efficiency, and facilitating practical application and promotion.

[0018] In a possible design, the multi-target tracking algorithm adopts a deepsort target tracking algorithm, wherein the deepsort target tracking algorithm includes: for unmatched tracking targets, judging whether they have left the building according to the corresponding current predicted position; if so, the tracking target is discarded in the next position prediction; otherwise, the Kalman filter method is still used to predict the corresponding position in the next position prediction.

[0019] In a possible design, determining the recent activity area of ​​each indoor person in real time according to the indoor person tracking result includes:

[0020] For a certain indoor person, determining at least one corresponding trajectory point within a preset recent time range according to the indoor person tracking result;

[0021] Determine at least one indoor coordinate point corresponding to the at least one trajectory point according to a known correspondence between each coordinate point in the building and each pixel point in the live video image;

[0022] For each indoor coordinate point in the at least one indoor coordinate point, determining a corresponding circular area with the corresponding coordinate point as the center according to a preset radius;

[0023] The union of all the circular areas located in the indoor area is taken as the recent activity area of ​​the indoor person.

[0024] In a possible design, according to the current lighting target area, the current lighting area satisfaction and the total power required for the current lighting, the current indoor lighting solution is optimized to achieve a higher lighting area satisfaction and a lower total power required for lighting, so as to obtain a new indoor lighting solution, including:

[0025] Acquire historical indoor lighting plans, historical lighting target areas, and historical illuminated areas in multiple historical lighting periods, wherein the historical indoor lighting plans include historical brightness values ​​of the indoor lighting lamps of the multiple buildings in corresponding historical lighting periods;

[0026] For each historical lighting period in the plurality of historical lighting periods, according to the corresponding historical lighting target area and the historical illuminated area, a corresponding historical lighting area satisfaction is calculated;

[0027] Taking the historical indoor lighting schemes and historical lighting target areas of each historical lighting period as input items, and the historical lighting area satisfaction corresponding to each historical lighting period as output items, calibrating and validating the artificial intelligence model based on the machine learning algorithm to obtain a lighting area satisfaction prediction model;

[0028] According to the current lighting target area, the current lighting area satisfaction and the total power required for the current lighting, the lighting area satisfaction prediction model is applied, and the gray wolf optimization algorithm is used to iteratively optimize the brightness values ​​of the multiple building indoor lighting lamps to obtain an optimal indoor lighting solution and a lighting area satisfaction prediction value of the optimal indoor lighting solution;

[0029] According to the current lighting area satisfaction, the total power required for the current lighting, the optimal indoor lighting solution and the lighting area satisfaction prediction value, the satisfaction increase ratio is calculated according to the following formula: And the total power reduction ratio :

[0030]

[0031] In the formula, Indicates the current lighting area satisfaction, represents the predicted value of the lighting area satisfaction, represents the total power required for the current lighting, represents the total power required for lighting determined according to the optimal indoor lighting solution;

[0032] Judgment conditions Is it established, among which, and Respectively represent the preset weight coefficients and have ;

[0033] If established, the optimal indoor lighting solution is used as an optimization processing result of optimizing the current indoor lighting solution with the goal of higher lighting area satisfaction and lower total lighting power required, to obtain a new indoor lighting solution.

[0034] In one possible design, the machine learning algorithm uses a support vector machine, a K nearest neighbor method, a stochastic gradient descent method, a multivariate linear regression, a multilayer perceptron, a decision tree, a back propagation neural network, or a radial basis function network.

[0035] In a possible design, according to the current lighting target area, the current lighting area satisfaction and the total power required for the current lighting, the lighting area satisfaction prediction model is applied, and the gray wolf optimization algorithm is used to iteratively optimize the brightness values ​​of the multiple building indoor lighting lamps to obtain the optimal indoor lighting solution and the lighting area satisfaction prediction value of the optimal indoor lighting solution, including the following steps S941 to S949:

[0036] S941. Initialize the population: The number of gray wolves is set to , the number of iterations is set to times, and initialize the brightness value search range of the plurality of indoor lighting lamps of the building, and then execute step S942, wherein: represents a positive integer greater than or equal to 5, Represents a positive integer greater than or equal to 100;

[0037] S942. Initialize the gray wolf: Three gray wolves are randomly selected from the gray wolves as the initial Wolf, Wolf and Wolf, and initialize the search range in the brightness value set in the The individual position vector of each gray wolf in the gray wolves is then executed to step S943, wherein the individual position vector includes the brightness search value of the indoor lighting lamps of the multiple buildings;

[0038] S943. For each of the gray wolves, the corresponding current individual position vector is input into the lighting area satisfaction prediction model together with the current lighting target area as an indoor lighting scheme to obtain the corresponding lighting area satisfaction prediction value, and then execute step S944;

[0039] S944. For each of the gray wolves, the corresponding individual fitness value is calculated based on the current lighting target area, the current lighting area satisfaction, the total power required for the current lighting, and the corresponding lighting area satisfaction prediction value. Then, step S945 is executed, wherein the individual fitness value Calculated according to the following formula:

[0040]

[0041] In the formula, Indicates the current lighting area satisfaction, represents the predicted value of lighting area satisfaction corresponding to the gray wolf, represents the total power required for the current lighting, represents the total lighting power required according to the current individual position vector corresponding to the gray wolf, and Respectively represent the preset weight coefficients and have ;

[0042] S945. Determine whether the current number of iterations has reached If yes, execute step S949, otherwise the gray wolf with the largest individual fitness value is used as the new wolves, and the gray wolf with the second largest individual fitness value as the new wolves, and also gray wolves with large individual fitness values ​​as new Wolf, then execute step S946;

[0043] S946. Calculate the convergence factor separately , synergy vector and synergy vector , then execute step S947, wherein the convergence factor , the synergy vector and the synergy vector The calculation formulas are as follows:

[0044]

[0045] In the formula, Indicates the current iteration number, represents the hyperbolic tangent function, and represent random vectors of [0,1] respectively;

[0046] S947. For each Wolf, according to the new Wolf, Wolf and The current individual position vector of the wolf is calculated and the corresponding The individual position vector in iteration , then execute step S948, wherein the individual position vector Calculated according to the following formula:

[0047]

[0048] In the formula, Indicates the new The wolf's current individual position vector, Indicates the new The wolf's current individual position vector, Indicates the new The wolf's current individual position vector, Indicated in The individual position vector in the iteration, , and Respectively represent the synergy vectors obtained by random calculation , , and Respectively represent the synergy vectors obtained by random calculation ;

[0049] S948. Increment the number of iterations by 1, and then return to step S943;

[0050] S949. Use the current individual position vector of the gray wolf with the maximum individual fitness value as the optimal indoor lighting solution, and use the current lighting area satisfaction prediction value corresponding to the gray wolf as the lighting area satisfaction prediction value of the optimal indoor lighting solution.

[0051] In a possible design, the building's indoor surveillance camera uses a binocular camera.

[0052] In a second aspect, a building indoor intelligent lighting control device is provided, including a video data acquisition module, an indoor personnel tracking module, a target area determination module, an image conversion processing module, a binarization processing module, an illuminated area determination module, a satisfaction calculation module, a total power determination module, a scheme optimization processing module and a lighting scheme sending module;

[0053] The video data acquisition module is used to acquire the on-site video data collected in real time by the indoor monitoring camera of the building;

[0054] The indoor personnel tracking module is communicatively connected to the video data acquisition module and is used to track each indoor person appearing in the building in real time using a multi-target tracking algorithm according to the on-site video data to obtain indoor personnel tracking results;

[0055] The target area determination module is communicatively connected to the indoor personnel tracking module, and is used to determine the recent activity area of ​​each indoor person in real time according to the indoor personnel tracking result, and use the union of the recent activity areas of all the indoor persons as the current lighting target area;

[0056] The image conversion processing module is communicatively connected to the video data acquisition module, and is used to extract video frame images from the on-site video data in real time, and convert the video frame images into images to be processed in a color space of HSV in real time;

[0057] The binarization processing module is communicatively connected to the image conversion processing module, and is used to perform binarization processing on the image to be processed according to a preset target brightness threshold to obtain a binarized image containing at least one highlighted image area, wherein the highlighted image area refers to an image area in which the brightness values ​​of all pixels in the domain are greater than or equal to the target brightness threshold;

[0058] The illuminated area determination module is communicatively connected to the binarization processing module, and is used to use the building indoor coordinate area corresponding to the at least one highlighted image area as the current illuminated area according to the known correspondence between each coordinate point in the building indoor and each pixel point in the binarized image;

[0059] The satisfaction calculation module is respectively connected to the target area determination module and the illuminated area determination module for taking the ratio of the intersection area of ​​the current illumination target area and the current illuminated area to the current illumination target area as the satisfaction level of the current illumination area according to the current illumination target area and the current illuminated area;

[0060] The total power determination module is used to determine the total power required for current lighting according to the current indoor lighting scheme, wherein the current indoor lighting scheme includes current brightness values ​​of multiple indoor lighting lamps of the building;

[0061] The scheme optimization processing module is respectively communicatively connected to the satisfaction calculation module and the total power determination module, and is used to optimize the current indoor lighting scheme according to the current lighting target area, the current lighting area satisfaction and the current lighting required total power, so as to obtain a new indoor lighting scheme with the optimization goal of higher lighting area satisfaction and lower lighting required total power;

[0062] The lighting scheme sending module is communicatively connected to the scheme optimization processing module, and is used to send the new indoor lighting scheme to the multiple building indoor lighting lamps for execution.

[0063] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the building indoor intelligent lighting control method as described in the first aspect or any possible design of the first aspect.

[0064] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are run on a computer, the method for controlling indoor intelligent lighting in a building as described in the first aspect or any possible design of the first aspect is executed.

[0065] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the method for controlling indoor intelligent lighting in a building as described in the first aspect or any possible design of the first aspect.

[0066] Beneficial effects of the above scheme:

[0067] (1) The present invention creatively provides a new lighting control scheme for updating indoor lighting strategies based on indoor on-site video data of a building. That is, based on the on-site video data collected in real time by the indoor surveillance camera of the building, the current lighting target area is first determined by indoor personnel tracking, and the current illuminated area is determined by binarization processing. Then, based on these two results, the current lighting area satisfaction is determined. Finally, based on the current lighting area satisfaction and the total power required for the current lighting, the current indoor lighting scheme is optimized to achieve higher lighting area satisfaction and lower total lighting power. A new indoor lighting scheme is obtained and sent to multiple indoor lighting lamps of the building for execution. In this way, only the camera needs to be configured, which can greatly reduce the installation difficulty and hardware cost. At the same time, a balance can be maintained between lighting demand and lighting energy consumption, effectively improving lighting energy efficiency, and facilitating practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] 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.

[0069] Figure 1 A flow chart of a method for controlling indoor intelligent lighting in a building provided in an embodiment of the present application.

[0070] Figure 2 A schematic diagram of the structure of a building indoor intelligent lighting control device provided in an embodiment of the present application.

[0071] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0073] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.

[0074] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.

[0075] Example:

[0076] like Figure 1 As shown, the building indoor intelligent lighting control method provided in the first aspect of this embodiment can be executed by, but not limited to, a computer device having certain computing resources and communicating with a building indoor surveillance camera and a plurality of building indoor lighting lamps, such as an industrial computer, a platform server, a personal computer (PC, a multi-purpose computer with a size, price and performance suitable for personal use; desktops, laptops, small laptops, tablets and ultrabooks are all personal computers), smart phones, personal digital assistants (PDA) or wearable devices. Figure 1 As shown, the building indoor intelligent lighting control method may include but is not limited to the following steps S1 to S10.

[0077] S1. Obtain the on-site video data collected in real time by the building's indoor surveillance camera.

[0078] In step S1, the indoor surveillance camera of the building is mainly used for remote monitoring and data retention of the interior of the building (for example, the interior of a classroom, a cafeteria, or a large conference hall, etc.). The lens field of view of the indoor surveillance camera of the building will cover the indoor area of ​​the building, and is used to collect video frame images of the indoor area of ​​the building in real time to obtain live video data containing several continuous video frame images. In order to facilitate the subsequent accurate correspondence between each coordinate point and each pixel point in the building, the indoor surveillance camera of the building preferably uses a binocular camera so that each pixel point has a three-dimensional coordinate in the camera coordinate system. In addition, the indoor surveillance camera of the building can transmit the collected data to the local device in a conventional manner.

[0079] S2. Based on the on-site video data, a multi-target tracking algorithm is used to track each indoor person appearing in the building in real time to obtain indoor person tracking results.

[0080] In step S2, the multi-target tracking algorithm is used to detect the image of indoor persons in the video frame image, and perform video tracking on the detected indoor persons (during the tracking process, each detected indoor person can be assigned a unique person number, such as a digital number such as 1, 2, 3 or 4). The multi-target tracking algorithm preferably adopts a deepsort target tracking algorithm, wherein the specific process of the deepsort target tracking algorithm is as follows: first, a target bounding box bbox is detected by a target detector, and detection target information detections (which is used to save all targets detected in the current frame image) is generated according to the target bounding box bbox, and then the Kalman filter method is used to predict the position of the tracking target information tracks (which is used to save all targets tracked in the previous frame image) in the previous frame image in the current frame image, and then the Mahalanobis distance based on the appearance feature is used to calculate the cost matrix of the tracking target and the detection target, and then the tracking target and the detection target are cascade matched and IOU (Intersection over Union) matched successively, and finally all matching pairs, unmatched tracking targets and unmatched detection targets of the current frame image are obtained, and for each successfully matched tracking target, the corresponding detection target is used to update the position, and the unmatched tracking targets and detection targets are processed. In addition, in the deepsort target tracking algorithm, the target detector, the Kalman filter method, the appearance feature, the Mahalanobis distance, the cosine distance, the cost matrix, the cascade matching, and the IOU matching are all existing terms or technical features, and those skilled in the art can routinely obtain the specific process details of the deepsort target tracking algorithm.

[0081] This embodiment considers that the unmatched tracking target may include the occluded target, but it is not detected in the current frame image. Therefore, in the deepsort target tracking algorithm, it is preferably included: for the unmatched tracking target, judging whether it leaves the building indoor according to the corresponding current predicted position (that is, judging whether it still appears in the frame image according to the positional relationship between the current predicted position and the frame image boundary, if it does, it is judged that it has not left the building indoor, otherwise it is judged that it has left the building indoor), if so, the tracking target is abandoned in the next position prediction, otherwise the Kalman filter method is still used to predict the corresponding position in the next position prediction. In this way, when it is found that the tracking target is occluded (that is, when the tracking target does not match the detection target and the current predicted position still appears in the current frame image), the tracking target can be marked as masked, and then the Kalman filter method is still used to predict the position in the next frame image until the detection target is matched or the tracking target is found to be beyond the range of the image, thereby avoiding the premature termination of video tracking due to occlusion and ensuring the long-term continuity of tracking compared to the general discarding processing method.

[0082] S3. Determine the recent activity area of ​​each indoor person in real time according to the indoor person tracking result, and take the union of the recent activity areas of all the indoor people as the current lighting target area.

[0083] In step S3, the recent activity area is used as the personal lighting demand area corresponding to the indoor person, and then the current lighting target area can be combined. In order to accurately obtain the personal lighting demand area, preferably, the recent activity area of ​​each indoor person is determined in real time according to the indoor person tracking result, including but not limited to the following steps S31 to S34.

[0084] S31. For a certain indoor person, determine at least one corresponding trajectory point within a preset recent time range according to the indoor person tracking result.

[0085] In the step S31, the preset most recent time range may be, but is not limited to, the most recent 10 minutes.

[0086] S32. According to the known correspondence between each coordinate point in the building and each pixel point in the on-site video image, determine at least one indoor coordinate point corresponding to the at least one trajectory point.

[0087] In step S32, since the location of the indoor surveillance camera of the building is known in advance, the corresponding pixel points of each coordinate point in the camera coordinate system of the indoor surveillance camera of the building are also known in advance, and then the at least one indoor coordinate point can be conventionally determined based on the known corresponding relationship.

[0088] S33. For each indoor coordinate point in the at least one indoor coordinate point, determine a corresponding circular area with the corresponding coordinate point as the center according to a preset radius.

[0089] In the step S33, the preset radius may be, but is not limited to, 3 meters.

[0090] S34. The union of all the circular areas located in the indoor area is used as the recent activity area of ​​the indoor person.

[0091] S4. Extract video frame images from the on-site video data in real time, and convert the video frame images into images to be processed in real time with a color space of HSV.

[0092] In step S4, HSV (Hue, Saturation, Value) represents hue, saturation and brightness, wherein V represents the brightness of the color, ranging from 0 to 255, so that it is convenient to perform binary processing on brightness later. In addition, the specific image conversion method is an existing conventional method.

[0093] S5. According to a preset target brightness threshold, the image to be processed is binarized to obtain a binarized image containing at least one highlighted image area, wherein the highlighted image area refers to an image area in which the brightness values ​​of all pixels in the domain are greater than or equal to the target brightness threshold.

[0094] In step S5, the target brightness threshold may be determined in advance according to the minimum brightness required for lighting, for example, 150.

[0095] S6. According to the known correspondence between each coordinate point in the building and each pixel point in the binary image, the building indoor coordinate area corresponding to the at least one highlighted image area is used as the current illuminated area.

[0096] In step S6, since each pixel point in the binary image also has coordinates in the camera coordinate system of the building's indoor surveillance camera, the building's indoor coordinate area corresponding to the at least one highlighted image area can also be conventionally determined based on the known corresponding relationship.

[0097] S7. According to the current lighting target area and the current illuminated area, a ratio of an intersection area between the current lighting target area and the current illuminated area to the current lighting target area is used as a satisfaction level of the current lighting area.

[0098] In step S7, the ratio may be, but is not limited to, a ratio in an area dimension or a volume dimension.

[0099] S8. Determine the total power required for current lighting according to the current indoor lighting scheme, wherein the current indoor lighting scheme includes current brightness values ​​of multiple indoor lighting lamps of the building.

[0100] In step S8, since the brightness of the indoor lighting lamps of the building is positively correlated with the required power, the corresponding current lighting required power can be conventionally determined according to the current brightness value of the indoor lighting lamps of the building, and then the total power required for the current lighting can be summarized.

[0101] S9. Based on the current lighting target area, the current lighting area satisfaction and the total power required for the current lighting, the current indoor lighting solution is optimized to achieve higher lighting area satisfaction and lower total power required for lighting, to obtain a new indoor lighting solution.

[0102] In step S8, since the purpose of the invention of this embodiment is to strike a balance between lighting demand and lighting energy consumption in order to improve lighting energy efficiency, the optimization goal must be to make the lighting area more satisfactory and the total power required for lighting lower. Specifically, according to the current lighting target area, the current lighting area satisfaction and the current lighting required total power, the current indoor lighting scheme is optimized to achieve a higher lighting area satisfaction and a lower total power required for lighting, and a new indoor lighting scheme is obtained, including but not limited to the following steps S91 to S97.

[0103] S91. Obtain historical indoor lighting plans, historical lighting target areas, and historical illuminated areas in multiple historical lighting periods, wherein the historical indoor lighting plans include historical brightness values ​​of the multiple indoor lighting lamps of the buildings in corresponding historical lighting periods.

[0104] In step S91, the specific method for obtaining the historical lighting target area can be obtained by referring to the aforementioned steps S1 to S3 in the corresponding historical time period, and the specific method for obtaining the historical illuminated area can be obtained by referring to the aforementioned steps S4 to S6 in the corresponding historical time period, which will not be repeated here. In addition, the multiple historical lighting time periods are preferably multiple historical lighting time periods in the same period of the day. For example, if the current time period is 20:00 to 20:01, the multiple historical lighting time periods can be 20:00 to 20:01 yesterday, 20:00 to 20:01 the day before yesterday, ..., 20:00 to 20:01 on this day last year, and so on.

[0105] S92. For each historical lighting period in the plurality of historical lighting periods, calculate the corresponding historical lighting area satisfaction level according to the corresponding historical lighting target area and the historical illuminated area.

[0106] In the step S92, the specific method for obtaining the historical lighting area satisfaction can be obtained by referring to the aforementioned step S7 in the corresponding historical period, and will not be repeated here.

[0107] S93. Take the historical indoor lighting plans and historical lighting target areas of each historical lighting period as input items, and the historical lighting area satisfaction corresponding to each historical lighting period as output items, calibrate and verify the modeling of the artificial intelligence model based on the machine learning algorithm, and obtain a lighting area satisfaction prediction model.

[0108] In step S93, specifically, the machine learning algorithm may be, but is not limited to, support vector machine, K nearest neighbor method, stochastic gradient descent method, multivariate linear regression, multilayer perceptron, decision tree, back propagation neural network or radial basis function network, wherein the support vector machine, the K nearest neighbor method, the stochastic gradient descent method, the multivariate linear regression, the multilayer perceptron, the decision tree, the back propagation neural network and the radial basis function network are all common solutions in the existing artificial intelligence methods. The specific process of the calibration verification modeling includes the calibration process and the verification process of the model, that is, firstly comparing the model simulation results with the measured data, and then adjusting the model parameters according to the comparison results, so that the simulation results are consistent with the actual process, so the lighting area satisfaction prediction model can be obtained through the conventional calibration verification modeling method. In addition, the input form of the historical lighting target area may include but is not limited to: first dividing the indoor area of ​​the building into multiple grids, and then, for each grid, determining a corresponding indication value that reflects whether the corresponding grid is located in the historical lighting target area (for example, 1 indicates that it is located, and 0 indicates that it is not located), and finally inputting the indication values ​​of all grids as the historical lighting target area into the artificial intelligence model to ensure that the input data items are constant.

[0109] S94. According to the current lighting target area, the current lighting area satisfaction and the total power required for the current lighting, the lighting area satisfaction prediction model is applied, and the gray wolf optimization algorithm is used to iteratively optimize the brightness values ​​of the multiple building indoor lighting lamps to obtain the optimal indoor lighting scheme and the lighting area satisfaction prediction value of the optimal indoor lighting scheme.

[0110] In step S94, the Grey Wolf Optimizer (GWO) is an optimization algorithm inspired by the hunting rules of grey wolves in the natural environment (it mainly imitates the hunting communication mechanism of the wolf pack and the social status between the wolves, which are respectively reflected in hunting and hierarchy), and has the following algorithm principles:

[0111] Assume that there are four different levels of wolves in the wolf pack, from top to bottom: Wolf, Wolf, Wolf and Wolves, the high-ranking wolves give instructions to the low-ranking wolves to surround the prey first. This part of the algorithm is expressed as follows:

[0112]

[0113] In the formula, represents the distance between the individual gray wolf and its prey, Indicates the current iteration number, represents the position vector of the prey, represents the position vector of the individual gray wolf, and They represent the synergy vectors respectively and are calculated as follows:

[0114]

[0115] In the formula, Represents the convergence factor, which decreases linearly from 2 to 0 during the iteration process. and Represents a random vector of [0,1] respectively; then hunting is carried out, and the hunting is carried out by Wolf, Wolf and Wolf leadership Wolves hunt, i.e. Wolf, Wolf and The wolf does not move. The wolf iterates, and the algorithm is as follows:

[0116]

[0117] In the formula, , and Respectively represent the iteration Wolf, Wolf and The wolf's position vector, , and Respectively represent the synergy vectors obtained by random calculation , , and Respectively represent the synergy vectors obtained by random calculation , , and Respectively represent other individuals in the group and Wolf, Wolf and The distance between wolves, Indicated in The individual position vector in the iteration, Indicated in The individual position vector in the iteration. Thus, the Gray Wolf Optimization Algorithm can be applied to the present embodiment to achieve the purpose of iteratively optimizing the brightness values ​​of the multiple building indoor lighting lamps. Specifically, according to the current lighting target area, the current lighting area satisfaction and the total power required for the current lighting, the lighting area satisfaction prediction model is applied, and the Gray Wolf Optimization Algorithm is used to iteratively optimize the brightness values ​​of the multiple building indoor lighting lamps to obtain the optimal indoor lighting solution and the lighting area satisfaction prediction value of the optimal indoor lighting solution, including but not limited to the following steps S941 to S949.

[0118] S941. Initialize the population: The number of gray wolves is set to , the number of iterations is set to times, and initialize the brightness value search range of the plurality of indoor lighting lamps of the building, and then execute step S942, wherein: represents a positive integer greater than or equal to 5, Represents a positive integer greater than or equal to 100.

[0119] In step S941, the indoor lighting lamp of the building may be, but is not limited to, a lighting lamp that realizes brightness adjustment based on a PWM (Pulse width modulation) signal, so that the brightness value search range may be, but is not limited to, 0 to 100% in a full brightness state. In addition, for example, For example, 10 An example is 200.

[0120] S942. Initialize the gray wolf: Three gray wolves are randomly selected from the gray wolves as the initial Wolf, Wolf and Wolf, and initialize the search range in the brightness value set in the The individual position vector of each gray wolves in the gray wolves is obtained, and then step S943 is executed, wherein the individual position vector includes the brightness search values ​​of the indoor lighting lamps of the multiple buildings.

[0121] In the step S942, the individual position vector includes a plurality of values ​​corresponding one-to-one to the plurality of indoor lighting lamps of the building: the brightness search value of each indoor lighting lamp of the building, which can be obtained by randomly taking values ​​from the corresponding search range during initialization.

[0122] S943. For each of the gray wolves, the corresponding current individual position vector is input into the lighting area satisfaction prediction model together with the current lighting target area as an indoor lighting plan to obtain the corresponding lighting area satisfaction prediction value, and then execute step S944.

[0123] S944. For each of the gray wolves, the corresponding individual fitness value is calculated based on the current lighting target area, the current lighting area satisfaction, the total power required for the current lighting, and the corresponding lighting area satisfaction prediction value. Then, step S945 is executed, wherein the individual fitness value Calculated according to the following formula:

[0124]

[0125] In the formula, Indicates the current lighting area satisfaction, represents the predicted value of lighting area satisfaction corresponding to the gray wolf, represents the total power required for the current lighting, represents the total lighting power required according to the current individual position vector corresponding to the gray wolf, and Respectively represent the preset weight coefficients and have .

[0126] In step S944, the weight coefficient and Examples include, but are not limited to, 0.5 and 0.5 respectively.

[0127] S945. Determine whether the current number of iterations has reached If yes, execute step S949, otherwise the gray wolf with the largest individual fitness value is used as the new wolves, and the gray wolf with the second largest individual fitness value as the new wolves, and also gray wolves with large individual fitness values ​​as new Wolf, then execute step S946.

[0128] In step S945, for example, if the fitness values ​​of the first four individuals in the ranking are 0.08, 0.06, 0.03 and 0.01 respectively, the gray wolf with fitness value 0.08 can be used as the new Wolf, and the gray wolf with 0.06 as the new Wolf, and the gray wolf with 0.03 as the new Wolf.

[0129] S946. Calculate the convergence factor separately , synergy vector and synergy vector , then execute step S947, wherein the convergence factor , the synergy vector and the synergy vector The calculation formulas are as follows:

[0130]

[0131] In the formula, Indicates the current iteration number, represents the hyperbolic tangent function, and represent random vectors in [0,1] respectively.

[0132] In step S946, considering that the convergence factor of the traditional grey wolf algorithm has the defect of pure linearity, in order to realize the nonlinearization of the convergence factor and facilitate the algorithm to achieve the global optimization purpose, this embodiment is affected by the image of the tanh activation function in the neural network (that is, the image of the function in the range of [-3,3] is selected, and the transformation operations such as scaling, symmetry and translation are performed successively), and the number of iterations is substituted into the function, and the above-mentioned convergence factor expression is improved to obtain.

[0133] S947. For each Wolf, according to the new Wolf, Wolf and The current individual position vector of the wolf is calculated and the corresponding The individual position vector in iteration , then execute step S948, wherein the individual position vector Calculated according to the following formula:

[0134]

[0135] In the formula, Indicates the new The wolf's current individual position vector, Indicates the new The wolf's current individual position vector, Indicates the new The wolf's current individual position vector, Indicated in The individual position vector in the iteration, , and Respectively represent the synergy vectors obtained by random calculation , , and Respectively represent the synergy vectors obtained by random calculation .

[0136] In step S947, this embodiment also performs weighted assignment on the gray wolf position update strategy, that is, weight coefficients are calculated respectively. , and , so as to constitute the improvement point of the Grey Wolf Optimization Algorithm together with the new convergence factor expression, and through the performance under 10 commonly used international standard test functions, it is found that it has good accuracy and convergence speed.

[0137] S948. Increment the number of iterations by 1, and then return to step S943;

[0138] S949. Use the current individual position vector of the gray wolf with the maximum individual fitness value as the optimal indoor lighting solution, and use the current lighting area satisfaction prediction value corresponding to the gray wolf as the lighting area satisfaction prediction value of the optimal indoor lighting solution.

[0139] In step S949, according to the Grey Wolf Algorithm principle, the current The current individual position vector of the wolf is the current brightness search value of the multiple indoor lighting lamps of the building obtained through searching, which can be used as the optimal indoor lighting solution.

[0140] S95. According to the current lighting area satisfaction, the total power required for the current lighting, the optimal indoor lighting solution and the lighting area satisfaction prediction value, the satisfaction increase ratio is calculated according to the following formula And the total power reduction ratio :

[0141]

[0142] In the formula, Indicates the current lighting area satisfaction, represents the predicted value of the lighting area satisfaction, represents the total power required for the current lighting, It represents the total power required for lighting determined according to the optimal indoor lighting solution.

[0143] S96. Judgment conditions Is it established, among which, and Respectively represent the preset weight coefficients and have .

[0144] In step S96, the condition That is, it is a criterion for judging whether the optimal indoor lighting solution or the current indoor lighting solution is better. That is, if this condition is met, the optimal indoor lighting solution is better than the current indoor lighting solution, and vice versa.

[0145] S97. If established, the optimal indoor lighting solution is used as an optimization processing result of optimizing the current indoor lighting solution with the goal of higher lighting area satisfaction and lower total lighting power required, to obtain a new indoor lighting solution.

[0146] In step S97, the optimal indoor lighting solution is also the new indoor lighting solution. In addition, if the condition is not met, the current indoor lighting solution is not replaced.

[0147] S10. Send the new indoor lighting plan to the multiple indoor lighting lamps of the building for execution.

[0148] In the step S10, the specific method of implementing the new indoor lighting solution on the lighting lamp side is the existing common lamp brightness adjustment method, such as lamp brightness adjustment based on a PWM signal.

[0149] Therefore, based on the building indoor intelligent lighting control method described in the aforementioned steps S1 to S10, a new lighting control scheme for updating indoor lighting strategies based on indoor on-site video data of a building is provided, that is, according to the on-site video data collected in real time by the indoor surveillance camera of the building, the current lighting target area is first determined by indoor personnel tracking, and the current illuminated area is determined by binarization processing, and then the current lighting area satisfaction is determined based on these two results, and finally, according to the current lighting area satisfaction and the total power required for the current lighting, the current indoor lighting scheme is optimized with the goal of higher lighting area satisfaction and lower total lighting power required, and a new indoor lighting scheme is obtained and sent to multiple indoor lighting lamps of the building for execution. In this way, only cameras need to be configured, which can greatly reduce installation difficulties and hardware costs. At the same time, a balance can be maintained between lighting demand and lighting energy consumption, effectively improving lighting energy efficiency, and facilitating practical application and promotion.

[0150] like Figure 2 As shown, the second aspect of this embodiment provides a virtual device for implementing the building indoor intelligent lighting control method described in the first aspect, including a video data acquisition module, an indoor personnel tracking module, a target area determination module, an image conversion processing module, a binarization processing module, an illuminated area determination module, a satisfaction calculation module, a total power determination module, a scheme optimization processing module and a lighting scheme sending module;

[0151] The video data acquisition module is used to acquire the on-site video data collected in real time by the indoor monitoring camera of the building;

[0152] The indoor personnel tracking module is communicatively connected to the video data acquisition module and is used to track each indoor person appearing in the building in real time using a multi-target tracking algorithm according to the on-site video data to obtain indoor personnel tracking results;

[0153] The target area determination module is communicatively connected to the indoor personnel tracking module, and is used to determine the recent activity area of ​​each indoor person in real time according to the indoor personnel tracking result, and use the union of the recent activity areas of all the indoor persons as the current lighting target area;

[0154] The image conversion processing module is communicatively connected to the video data acquisition module, and is used to extract video frame images from the on-site video data in real time, and convert the video frame images into images to be processed in a color space of HSV in real time;

[0155] The binarization processing module is communicatively connected to the image conversion processing module, and is used to perform binarization processing on the image to be processed according to a preset target brightness threshold to obtain a binarized image containing at least one highlighted image area, wherein the highlighted image area refers to an image area in which the brightness values ​​of all pixels in the domain are greater than or equal to the target brightness threshold;

[0156] The illuminated area determination module is communicatively connected to the binarization processing module, and is used to use the building indoor coordinate area corresponding to the at least one highlighted image area as the current illuminated area according to the known correspondence between each coordinate point in the building indoor and each pixel point in the binarized image;

[0157] The satisfaction calculation module is respectively connected to the target area determination module and the illuminated area determination module for taking the ratio of the intersection area of ​​the current illumination target area and the current illuminated area to the current illumination target area as the satisfaction level of the current illumination area according to the current illumination target area and the current illuminated area;

[0158] The total power determination module is used to determine the total power required for current lighting according to the current indoor lighting scheme, wherein the current indoor lighting scheme includes current brightness values ​​of multiple indoor lighting lamps of the building;

[0159] The scheme optimization processing module is respectively communicatively connected to the satisfaction calculation module and the total power determination module, and is used to optimize the current indoor lighting scheme according to the current lighting target area, the current lighting area satisfaction and the current lighting required total power, so as to obtain a new indoor lighting scheme with the optimization goal of higher lighting area satisfaction and lower lighting required total power;

[0160] The lighting scheme sending module is communicatively connected to the scheme optimization processing module, and is used to send the new indoor lighting scheme to the multiple building indoor lighting lamps for execution.

[0161] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be referred to the building indoor intelligent lighting control method described in the first aspect, and will not be repeated here.

[0162] like Figure 3 As shown, the third aspect of this embodiment provides a computer device for executing the building indoor intelligent lighting control method as described in the first aspect, including a memory, a processor and a transceiver that are sequentially connected in communication, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the building indoor intelligent lighting control method as described in the first aspect. For example, the memory may include, but is not limited to, a random access memory (Random-Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), a flash memory (Flash Memory), a first-in-first-out memory (First Input First Output, FIFO) and / or a first-in-last-out memory (First Input Last Output, FILO), etc.; the processor may include, but is not limited to, a microprocessor of the STM32F105 series. In addition, the computer device may also include, but is not limited to, a power module, a display screen and other necessary components.

[0163] The working process, working details and technical effects of the aforementioned computer equipment provided in the third aspect of this embodiment can be found in the building indoor intelligent lighting control method described in the first aspect, and will not be repeated here.

[0164] In a fourth aspect of this embodiment, there is provided a computer-readable storage medium storing instructions including the building indoor intelligent lighting control method as described in the first aspect, that is, the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the building indoor intelligent lighting control method as described in the first aspect is executed. The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to computer-readable storage media such as floppy disks, optical disks, hard disks, flash memories, USB flash drives, and / or memory sticks, and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0165] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be referred to the building indoor intelligent lighting control method described in the first aspect, and will not be repeated here.

[0166] A fifth aspect of this embodiment provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the building indoor intelligent lighting control method as described in the first aspect. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.

[0167] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for controlling indoor intelligent lighting in a building, characterized in that: include: Obtain live video data collected in real time by indoor surveillance cameras in buildings; According to the on-site video data, a multi-target tracking algorithm is used to track each indoor person appearing in the building in real time to obtain an indoor person tracking result; Determine the recent activity area of ​​each indoor person in real time according to the indoor person tracking result, and use the union of the recent activity areas of all indoor people as the current lighting target area; Extracting video frame images from the live video data in real time, and converting the video frame images into images to be processed in a color space of HSV in real time; According to a preset target brightness threshold, the image to be processed is binarized to obtain a binarized image containing at least one highlighted image area, wherein the highlighted image area refers to an image area in which the brightness values ​​of all pixels in the domain are greater than or equal to the target brightness threshold; According to the known correspondence between each coordinate point in the building and each pixel point in the binary image, taking the building indoor coordinate area corresponding to the at least one highlighted image area as the current illuminated area; According to the current lighting target area and the current illuminated area, taking the ratio of the intersection area of ​​the current lighting target area and the current illuminated area to the current lighting target area in the area dimension or the volume dimension as the current lighting area satisfaction; Determine the total power required for current lighting according to the current indoor lighting scheme, wherein the current indoor lighting scheme includes current brightness values ​​of multiple indoor lighting lamps of the building; According to the current lighting target area, the current lighting area satisfaction and the current lighting required total power, the current indoor lighting solution is optimized to achieve a higher lighting area satisfaction and a lower total lighting required power, so as to obtain a new indoor lighting solution; The new indoor lighting plan is sent to the plurality of indoor lighting lamps of the building for execution.

2. The building indoor intelligent lighting control method according to claim 1, characterized in that: The multi-target tracking algorithm adopts a deepsort target tracking algorithm, wherein the deepsort target tracking algorithm includes: for unmatched tracking targets, judging whether they have left the building according to the corresponding current predicted position; if so, the tracking target is discarded in the next position prediction; otherwise, the Kalman filter method is still used to predict the corresponding position in the next position prediction.

3. The building indoor intelligent lighting control method according to claim 1, characterized in that: Determining the recent activity area of ​​each indoor person in real time according to the indoor person tracking result includes: For a certain indoor person, determining at least one corresponding trajectory point within a preset recent time range according to the indoor person tracking result; Determine at least one indoor coordinate point corresponding to the at least one trajectory point according to a known correspondence between each coordinate point in the building and each pixel point in the live video image; For each indoor coordinate point in the at least one indoor coordinate point, determining a corresponding circular area with the corresponding coordinate point as the center according to a preset radius; The union of all the circular areas located in the indoor area is taken as the recent activity area of ​​the indoor person.

4. The building indoor intelligent lighting control method according to claim 1, characterized in that: According to the current lighting target area, the current lighting area satisfaction and the current lighting required total power, the current indoor lighting solution is optimized to achieve a higher lighting area satisfaction and lower lighting required total power, to obtain a new indoor lighting solution, including: Acquire historical indoor lighting plans, historical lighting target areas, and historical illuminated areas in multiple historical lighting periods, wherein the historical indoor lighting plans include historical brightness values ​​of the indoor lighting lamps of the multiple buildings in corresponding historical lighting periods; For each historical lighting period in the plurality of historical lighting periods, according to the corresponding historical lighting target area and the historical illuminated area, a corresponding historical lighting area satisfaction is calculated; Taking the historical indoor lighting schemes and historical lighting target areas of each historical lighting period as input items, and the historical lighting area satisfaction corresponding to each historical lighting period as output items, calibrating and validating the artificial intelligence model based on the machine learning algorithm to obtain a lighting area satisfaction prediction model; According to the current lighting target area, the current lighting area satisfaction and the total power required for the current lighting, the lighting area satisfaction prediction model is applied, and the gray wolf optimization algorithm is used to iteratively optimize the brightness values ​​of the multiple building indoor lighting lamps to obtain an optimal indoor lighting solution and a lighting area satisfaction prediction value of the optimal indoor lighting solution; According to the current lighting area satisfaction, the total power required for the current lighting, the optimal indoor lighting solution and the lighting area satisfaction prediction value, the satisfaction increase ratio is calculated according to the following formula: And the total power reduction ratio : In the formula, Indicates the current lighting area satisfaction, represents the predicted value of the lighting area satisfaction, represents the total power required for the current lighting, represents the total power required for lighting determined according to the optimal indoor lighting solution; Judgment conditions Is it established, among which, and Respectively represent the preset weight coefficients and have ; If established, the optimal indoor lighting solution is used as an optimization processing result of optimizing the current indoor lighting solution with the goal of higher lighting area satisfaction and lower total lighting power required, to obtain a new indoor lighting solution.

5. The building indoor intelligent lighting control method according to claim 4 is characterized in that: The machine learning algorithm adopts support vector machine, K nearest neighbor method, stochastic gradient descent method, multivariate linear regression, multilayer perceptron, decision tree, back propagation neural network or radial basis function network.

6. The building indoor intelligent lighting control method according to claim 4, characterized in that: According to the current lighting target area, the current lighting area satisfaction and the total power required for the current lighting, the lighting area satisfaction prediction model is applied, and the brightness values ​​of the multiple building indoor lighting lamps are iteratively optimized using the gray wolf optimization algorithm to obtain the optimal indoor lighting solution and the lighting area satisfaction prediction value of the optimal indoor lighting solution, including the following steps S941 to S949: S941. Initialize the population: The number of gray wolves is set to , the number of iterations is set to times, and initialize the brightness value search range of the plurality of indoor lighting lamps of the building, and then execute step S942, wherein: represents a positive integer greater than or equal to 5, Represents a positive integer greater than or equal to 100; S942. Initialize the gray wolf: Three gray wolves are randomly selected from the gray wolves as the initial Wolf, Wolf and Wolf, and initialize the search range in the brightness value set in the The individual position vector of each gray wolf in the gray wolves is then executed to step S943, wherein the individual position vector includes the brightness search value of the indoor lighting lamps of the multiple buildings; S943. For each of the gray wolves, the corresponding current individual position vector is input into the lighting area satisfaction prediction model together with the current lighting target area as an indoor lighting scheme to obtain the corresponding lighting area satisfaction prediction value, and then execute step S944; S944. For each of the gray wolves, the corresponding individual fitness value is calculated based on the current lighting target area, the current lighting area satisfaction, the total power required for the current lighting, and the corresponding lighting area satisfaction prediction value. , then execute step S945, wherein the individual fitness value Calculated according to the following formula: In the formula, Indicates the current lighting area satisfaction, represents the predicted value of lighting area satisfaction corresponding to the gray wolf, represents the total power required for the current lighting, represents the total lighting power required according to the current individual position vector corresponding to the gray wolf, and Respectively represent the preset weight coefficients and have ; S945. Determine whether the current number of iterations has reached If yes, execute step S949, otherwise the gray wolf with the largest individual fitness value is used as the new wolves, and the gray wolf with the second largest individual fitness value as the new wolves, and also gray wolves with large individual fitness values ​​as new Wolf, then execute step S946, wherein the second largest individual fitness value refers to the largest individual fitness value except the largest individual fitness value and the second largest individual fitness value; S946. Calculate the convergence factor separately , synergy vector and synergy vector , then execute step S947, wherein the convergence factor , the synergy vector and the synergy vector The calculation formulas are as follows: In the formula, Indicates the current iteration number, represents the hyperbolic tangent function, and represent random vectors of [0,1] respectively; S947. For each Wolf, according to the new Wolf, Wolf and The current individual position vector of the wolf is calculated and the corresponding The individual position vector in iteration , then execute step S948, wherein the The wolf is the The new Wolf, Wolf and Other wolves other than the wolf, the individual position vector Calculated according to the following formula: In the formula, Indicates the new The wolf's current individual position vector, Indicates the new The wolf's current individual position vector, Indicates the new The wolf's current individual position vector, Indicated in The individual position vector in the iteration, , and Respectively represent the synergy vectors obtained by random calculation , , and Respectively represent the synergy vectors obtained by random calculation ; S948. Increment the number of iterations by 1, and then return to step S943; S949. Use the current individual position vector of the gray wolf with the maximum individual fitness value as the optimal indoor lighting solution, and use the current lighting area satisfaction prediction value corresponding to the gray wolf as the lighting area satisfaction prediction value of the optimal indoor lighting solution.

7. The building indoor intelligent lighting control method according to claim 1, characterized in that: The building indoor monitoring camera adopts a binocular camera.

8. A smart lighting control device for indoor buildings, characterized in that: It includes a video data acquisition module, an indoor personnel tracking module, a target area determination module, an image conversion processing module, a binarization processing module, an illuminated area determination module, a satisfaction calculation module, a total power determination module, a scheme optimization processing module and a lighting scheme sending module; The video data acquisition module is used to acquire the on-site video data collected in real time by the indoor monitoring camera of the building; The indoor personnel tracking module is communicatively connected to the video data acquisition module and is used to track each indoor person appearing in the building in real time using a multi-target tracking algorithm according to the on-site video data to obtain indoor personnel tracking results; The target area determination module is communicatively connected to the indoor personnel tracking module, and is used to determine the recent activity area of ​​each indoor person in real time according to the indoor personnel tracking result, and use the union of the recent activity areas of all the indoor persons as the current lighting target area; The image conversion processing module is communicatively connected to the video data acquisition module, and is used to extract video frame images from the on-site video data in real time, and convert the video frame images into images to be processed in a color space of HSV in real time; The binarization processing module is communicatively connected to the image conversion processing module, and is used to perform binarization processing on the image to be processed according to a preset target brightness threshold to obtain a binarized image containing at least one highlighted image area, wherein the highlighted image area refers to an image area in which the brightness values ​​of all pixels in the domain are greater than or equal to the target brightness threshold; The illuminated area determination module is communicatively connected to the binarization processing module, and is used to use the building indoor coordinate area corresponding to the at least one highlighted image area as the current illuminated area according to the known correspondence between each coordinate point in the building indoor and each pixel point in the binarized image; The satisfaction calculation module is respectively connected to the target area determination module and the illuminated area determination module in communication, and is used to take the ratio of the intersection area of ​​the current illumination target area and the current illuminated area to the current illumination target area in the area dimension or the volume dimension as the satisfaction degree of the current illumination area according to the current illumination target area and the current illuminated area; The total power determination module is used to determine the total power required for current lighting according to the current indoor lighting scheme, wherein the current indoor lighting scheme includes current brightness values ​​of multiple indoor lighting lamps of the building; The scheme optimization processing module is respectively communicatively connected to the satisfaction calculation module and the total power determination module, and is used to optimize the current indoor lighting scheme according to the current lighting target area, the current lighting area satisfaction and the current lighting required total power, so as to obtain a new indoor lighting scheme with the optimization goal of higher lighting area satisfaction and lower lighting required total power; The lighting scheme sending module is communicatively connected to the scheme optimization processing module, and is used to send the new indoor lighting scheme to the multiple building indoor lighting lamps for execution.

9. A computer device, characterized in that: It includes a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the building indoor intelligent lighting control method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on the computer, the building indoor intelligent lighting control method as described in any one of claims 1 to 7 is executed.