A lighting control system and method based on computer vision and BIM technology

Through the lighting control system of computer vision and BIM technology, combined with video stream data and BIM model, intelligent lighting control is realized, which solves the problems of high sensor control cost and insufficient data fusion, and improves energy consumption management and operation and maintenance efficiency.

CN118433972BActive Publication Date: 2024-10-29SHENZHEN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410845556.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-29
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

The existing lighting control system uses independent sensor control, which cannot effectively integrate multi-source heterogeneous data, resulting in the inability to fully reduce energy consumption and electricity costs. The initial installation cost of the sensor is high and the later operation and maintenance is difficult.

Method used

A lighting control system based on computer vision and BIM technology is used to collect video stream data and lighting information through the real-life lighting system. It is combined with the visual operation and maintenance platform to intelligently control the lighting devices. It uses environmental perception and pedestrian detection information to generate control instructions and maps them to BIM. model to enable intelligent decision-making.

Benefits of technology

It improves the accuracy of lighting control and energy consumption management, reduces energy consumption and electricity costs, simplifies the operation and maintenance process, and reduces detection equipment hardware costs and energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118433972B_ABST
    Figure CN118433972B_ABST
Patent Text Reader

Abstract

The present invention discloses a lighting control system and method based on computer vision and BIM technology, which collects video stream data in a target scene; analyzes the video stream data to obtain pedestrian detection information, and controls the lighting device according to the pedestrian detection information; obtains the lighting information of the actual lighting system and the pedestrian information, and uses a pre-built visual operation and maintenance platform to control the lighting device according to the lighting information and the pedestrian information. The method provided in this embodiment combines the actual lighting system with the visual operation and maintenance platform, uses environmental perception to analyze the acquired video stream data, and uses the visual operation and maintenance platform to make intelligent decisions on the lighting device, thereby improving the accuracy of lighting control, reducing energy consumption and electricity costs, and the visual operation and maintenance platform can realize the visualization of lighting system information, thereby improving the maintenance time and labor costs of lighting control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control technology, and in particular to a lighting control system and method based on computer vision and BIM technology. Background Art

[0002] At present, the commonly used energy-saving control method for lighting control systems includes using sensors to control LED lights. However, sensor control cannot perform integrated management and intelligent control. In addition, the initial installation cost of sensors is high and the subsequent operation and maintenance are difficult, which limits the scope of promotion.

[0003] Furthermore, current lighting control systems focus on intelligent control, ignoring the visual management of the lighting system control process, and are unable to fully utilize the overall efficiency of the building system, thereby failing to effectively reduce energy consumption and electricity costs.

[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a lighting control system and method based on computer vision and BIM (Building Information Modeling) technology to solve the problem that the existing lighting control system uses independent sensor control and lacks multi-source heterogeneous data fusion with other digital systems, resulting in the inability to effectively reduce energy consumption and electricity costs.

[0006] The technical solution of the present invention is as follows:

[0007] In a first aspect, this embodiment further discloses a lighting control system based on computer vision and BIM technology, which includes: a connected real lighting system and a visual operation and maintenance platform;

[0008] The real lighting system is used to collect video stream data and lighting information of a target scene, determine ambient light information and pedestrian information of the target scene based on the video stream data, and control a lighting device in the lighting system according to the determined ambient light information and pedestrian information;

[0009] The visual operation and maintenance platform is used to obtain lighting system information and pedestrian information of the real lighting system, control the lighting devices in the real lighting system based on the lighting system information and pedestrian information, and map the lighting information contained in the lighting system information to the BIM model corresponding to the target scene.

[0010] Optionally, the actual lighting system comprises: at least one lighting device, at least one monitoring device, at least one detection device and at least one control device connected to each other;

[0011] A monitoring device for collecting video stream data within a target scene;

[0012] A detection device, used to obtain the video stream data and the lighting system information in the target scene, analyze the video stream data to obtain pedestrian detection information, generate a first control instruction according to the pedestrian detection information, and send the lighting system information to the visual operation and maintenance platform;

[0013] The visual operation and maintenance platform includes: a digital twin lighting system and an operation and maintenance system;

[0014] The digital twin lighting system is used to obtain lighting system information, build a BIM model of a target scene according to the lighting system information, and map the lighting information contained in the lighting system information to the BIM model corresponding to the target scene;

[0015] The operation and maintenance system is used to obtain the lighting system information and the pedestrian information in the actual lighting system, and generate a second control instruction according to the lighting system information and the pedestrian information;

[0016] The control device is used to receive and execute the first control instruction and the second control instruction to control the lighting device.

[0017] Optionally, the detection device includes: a brightness detection module and a pedestrian detection module;

[0018] The brightness detection module is used to obtain the ambient brightness value corresponding to the key frame in the video stream data, and determine whether the ambient brightness value is lower than a preset ambient brightness value;

[0019] The pedestrian detection module is used to calculate the similarity between each key frame when the ambient brightness value is lower than a preset ambient brightness value, and to detect pedestrian information in the video stream data using a target detection algorithm to obtain pedestrian information when the similarity between adjacent key frames is lower than a preset value.

[0020] Optionally, the detection device includes: a brightness detection module and a multi-channel detection module;

[0021] The brightness detection module is used to obtain the ambient brightness value corresponding to the key frame in the video stream data, and determine whether the ambient brightness value is lower than a preset ambient brightness value;

[0022] The multi-channel detection module is used to obtain key frames in the target scene of each monitoring device detection equipment when the ambient brightness value is lower than the preset ambient brightness value, cut each key frame into a target size, splice them into a detection image in sequence, and use the target detection algorithm to perform pedestrian detection on the detection image.

[0023] Optionally, the lighting information includes: lighting information, energy consumption information and equipment information;

[0024] The operation and maintenance system is used to obtain pedestrian information, lighting information, energy consumption information and equipment information in the actual lighting system, and generate a second control instruction based on the pedestrian information, lighting information, energy consumption information and equipment information.

[0025] Optionally, the visual operation and maintenance platform is deployed on a cloud server, and the cloud server is connected to the actual lighting system; the cloud server is also connected to a cloud database; the cloud database stores lighting information, energy consumption information and equipment information in the actual lighting system;

[0026] The cloud server is used to obtain lighting information, energy consumption information and equipment information in the actual lighting system from the cloud database, and update the BIM model according to the lighting information, energy consumption information and equipment information.

[0027] Optionally, the operation and maintenance system further includes a command receiving and responding unit;

[0028] The instruction receiving and responding unit is used to receive a manually or automatically started light control instruction, and send a second control instruction to the control device in response to the light control instruction.

[0029] In a second aspect, this embodiment further discloses a lighting control method based on computer vision and BIM technology, which includes:

[0030] Collecting video stream data and lighting information of a target scene, determining ambient light information and pedestrian information of the target scene based on the video stream data, and controlling a lighting device in a lighting system according to the determined ambient light information and pedestrian information;

[0031] Acquire lighting system information and pedestrian information of a real lighting system, control lighting devices in the real lighting system based on the lighting system information and pedestrian information, and map the lighting information contained in the lighting system information to a BIM model corresponding to the target scene.

[0032] Optionally, the step of determining the ambient light information and pedestrian information of the target scene based on the video stream data includes:

[0033] Obtain the RGB value corresponding to each key frame in the video stream data, calculate the ambient brightness information corresponding to each key frame according to the RGB value, and determine whether the ambient brightness value is lower than the preset ambient brightness value;

[0034] When the ambient brightness value is lower than the preset ambient brightness value, the grayscale histogram of two adjacent key frames is obtained, and the similarity corresponding to the two adjacent key frames is determined according to the grayscale histogram. When the similarity between adjacent key frames is lower than the preset value, the target detection algorithm is used to detect the pedestrian information in the video stream data to obtain the pedestrian information.

[0035] Optionally, the method for constructing the BIM model includes:

[0036] Use 3D architectural design software to build an initial BIM model;

[0037] Convert the format of the initial BIM model to obtain a lightweight BIM model;

[0038] The lighting information contained in the lighting system information is mapped to the lightweight BIM model to obtain a BIM model corresponding to the target scene.

[0039] This embodiment provides a lighting control system and method based on computer vision and BIM technology, which collects video stream data in the target scene; analyzes the video stream data to obtain pedestrian detection information, and controls the lighting device according to the pedestrian detection information; obtains the lighting information of the actual lighting system and the pedestrian information, and uses a pre-built visual operation and maintenance platform to control the lighting device according to the lighting information and pedestrian information. The method provided in this embodiment combines the actual lighting system with the visual operation and maintenance platform, uses environmental perception to analyze the acquired video stream data, and uses the visual operation and maintenance platform to make intelligent decisions on the lighting device, thereby improving the accuracy of lighting control, reducing energy consumption and electricity costs, and the visual operation and maintenance platform can realize the visualization of lighting system information, thereby improving the maintenance time and labor costs of lighting control. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] 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 personnel in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0041] Figure 1 It is a principle structure block diagram of the lighting control system based on computer vision and BIM technology described in this embodiment;

[0042] Figure 2 is a control schematic diagram of the lighting control system based on computer vision and BIM technology described in this embodiment;

[0043] Figure 3Schematic diagram of the principle of the target detection algorithm in this embodiment;

[0044] Figure 4 Schematic diagram of the principle of multi-channel detection in this embodiment;

[0045] Figure 5 is a schematic diagram of information interaction between the real lighting system and the digital twin lighting system in this embodiment;

[0046] Figure 6 is a schematic diagram of the BIM model in this embodiment;

[0047] Figure 7 It is a flowchart of the steps of the lighting control method based on computer vision and BIM technology described in this embodiment. DETAILED DESCRIPTION

[0048] The present invention provides a lighting control system and method based on computer vision and BIM technology. In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. 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.

[0049] In the embodiments and patent claims, unless otherwise specified, "a", "an" and "the" may refer to a single or a plurality of items.

[0050] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0051] As the global urbanization process continues to accelerate, the improvement of energy intensity in the construction industry has been slow, resulting in a continuous increase in the proportion of building energy consumption in the global total energy consumption. Therefore, corresponding methods need to be taken to reduce the energy demand of buildings in order to actively respond to global energy supply pressures.

[0052] In building energy consumption, lighting systems are one of the main components of building energy consumption compensation, and their potential energy-saving effects are particularly prominent and urgent. However, the current energy-saving methods of lighting systems still face many problems. First, the use of sensor control and LED lights instead of manual switch control can reduce energy consumption, but the initial installation cost is high, and the subsequent operation and maintenance are difficult, which limits its promotion in practical applications. Secondly, few solutions consider combining lighting systems with other building systems to complete the fusion of multi-source heterogeneous data, resulting in limitations in intelligent operation and control, and unable to give full play to the overall efficiency of the building system. In addition, the current invention mainly focuses on light switching control in simple scenes, lacking in-depth exploration and application of complex scenes. Insufficient attention to data fusion and analysis of building digital assets limits the effective implementation of full life cycle operation and maintenance of lighting equipment and energy consumption analysis.

[0053] In order to overcome the above problems, the present embodiment provides a lighting control system and method based on computer vision and BIM technology, wherein the system includes a real lighting system and a visual operation and maintenance platform, wherein video stream data and lighting information of a target scene are collected through the real lighting system, ambient light information and pedestrian information of the target scene are determined based on the video stream data, and lighting devices in the lighting system are controlled according to the determined ambient light information and pedestrian information, and lighting system information and pedestrian information of the real lighting system are obtained by using the visual operation and maintenance platform, and lighting devices in the real lighting system are controlled based on the lighting system information and pedestrian information. Since the system and method disclosed in the present embodiment realize intelligent control of lighting devices through the combination of a real lighting system and a visual operation and maintenance platform, the accuracy of intelligent decision-making is improved, energy consumption and electricity costs are reduced, while the hardware cost and energy consumption of detection equipment are reduced, and operation and maintenance time is saved.

[0054] The system and method of this embodiment are further described in detail below with reference to the accompanying drawings.

[0055] This embodiment discloses a lighting control system based on computer vision and BIM technology, such as Figure 1 As shown, it includes: a connected real lighting system 100 and a visual operation and maintenance platform 200.

[0056] The real lighting system 100 is used to collect video stream data and lighting information of a target scene, determine ambient light information and pedestrian information of the target scene based on the video stream data, and control lighting devices in the lighting system according to the determined ambient light information and pedestrian information.

[0057] Specific, combined Figure 1As shown, the actual lighting system 100 includes: at least one lighting device 110, at least one monitoring device 120, at least one detection device 130 and at least one control device 140 which are connected to each other.

[0058] The lighting device includes lamps arranged in the target scene, which may be LEDs or smart bulb-type lamps, ceiling lamps, induction smart lamps or projection lamps, etc. The lamps in this embodiment can receive control instructions from the control device and adjust the brightness and color temperature according to the received instructions. At the same time, they can also execute switches according to the received instructions to achieve intelligent control of the lamps and save energy.

[0059] In detail, the monitoring device 120 is used to collect video stream data in the target scene. The monitoring device is a device that can be used to monitor, record and control the operating status and behavior of a specific object. It has a sensor or detector for collecting data such as sound, image, temperature or humidity of the target scene. The monitoring device can be a camera or a monitor. Cameras can be divided into various types such as infrared cameras, high-definition or ultra-high-definition cameras, network cameras, mini cameras and panoramic cameras according to their functions.

[0060] When the monitoring device 120 collects the video stream data in the target scene, the collected video stream data is sent to the detection device, and the detection device is used to analyze the video stream data.

[0061] The detection device 130 is used to obtain the video stream data and the lighting system information in the target scene, analyze the video stream data to obtain pedestrian detection information, generate a first control instruction according to the pedestrian detection information, and send the lighting system information to the visual operation and maintenance platform.

[0062] Specifically, the detection device 130 may be an instrument with video image processing and analysis functions, such as a video analyzer with a built-in image processing algorithm or a server or intelligent terminal with image processing software installed. After receiving the video stream data collected by the monitoring device, the detection device analyzes the video stream data to identify the ambient light brightness and pedestrian information.

[0063] At the same time, the detection device is also used to obtain the lighting system information in the target scene, which includes: lighting information, energy consumption information, hardware utilization rate and other information, and sends the above information and the ambient light brightness information and pedestrian information obtained by detection and identification to the visual operation and maintenance platform 200.

[0064] The visualization operation and maintenance platform 200 is used to obtain lighting system information and pedestrian information of the real lighting system, control the lighting devices in the real lighting system based on the lighting system information and pedestrian information, and map the lighting information contained in the lighting system information to the BIM model corresponding to the target scene.

[0065] After the visualization operation and maintenance platform 200 obtains the lighting system information and pedestrian information, it controls the lighting device based on the above information, and also maps the lighting information in the actual lighting system to the pre-created BIM model to realize the visualization of the target scene.

[0066] Furthermore, the visual operation and maintenance platform includes: a digital twin lighting system and an operation and maintenance system.

[0067] The digital twin lighting system is used to obtain lighting system information, build a BIM model of a target scene according to the lighting system information, and map the lighting information contained in the lighting system information to the BIM model corresponding to the target scene.

[0068] The operation and maintenance system is used to obtain the lighting system information and the pedestrian information in the actual lighting system, and generate a second control instruction according to the lighting system information and the pedestrian information.

[0069] Combination Figure 1 As shown, the actual lighting system further includes: a control device 140. The control device 140 is used to receive and execute the first control instruction and the second control instruction to control the lighting device.

[0070] When the control device receives control instructions from the detection device and from the operation and maintenance system, it executes the corresponding control instructions to control the lighting device to perform corresponding brightness and color temperature adjustments.

[0071] Specifically, in order to accurately detect pedestrians, a target detection algorithm is provided in the detection device, and the target detection algorithm is used to detect pedestrians in the video stream data. In order to achieve accuracy and efficiency of detection, in this embodiment, computer vision is used to implement pedestrian detection with a trained model.

[0072] In order to effectively reduce the cost of model detection and improve detection efficiency, this embodiment discloses two different methods to achieve pedestrian detection.

[0073] The first method is to obtain ambient brightness information through the ambient brightness perception mechanism before using the trained target detection model to detect pedestrians. If the ambient brightness is greater than the preset minimum lighting brightness, it is considered that the current ambient brightness meets the lighting requirements. If the ambient brightness is less than the preset minimum lighting brightness, it is necessary to perform similarity analysis on two consecutive frames to determine whether there are pedestrians. If the similarity is less than the preset value, the pedestrian may appear in the key frame, and then the key frame is detected for pedestrians. When the ambient brightness continues to be in a normal lighting state, it usually means that there is no obvious change in the movement of objects in the target scene, and the difference between two adjacent key frames is small. Therefore, there is no need to continuously detect pedestrians in the key frames. Only when the ambient light brightness changes or when the ambient brightness is lower than the preset brightness value, it is necessary to detect the key frames to identify whether there are pedestrians.

[0074] In order to implement the above steps, the detection device includes: a brightness detection module and a pedestrian detection module.

[0075] The brightness detection module is used to obtain the environment brightness value corresponding to the key frame in the video stream data, and determine whether the environment brightness value is lower than a preset environment brightness value.

[0076] The brightness detection model first needs to obtain key frames from the video stream data, and use the ambient brightness perception mechanism (ABPM) to perceive the brightness of the key frames to obtain the ambient light brightness. Specifically, the method for the ambient brightness perception mechanism in this embodiment to obtain the ambient light brightness value is: calculate the ambient brightness by calculating the RGB value of the image, and then convert the ambient illumination by the reflectance coefficient of the material.

[0077] The pedestrian detection module is used to calculate the similarity between each key frame when the ambient brightness value is lower than a preset ambient brightness value, and to detect pedestrian information in the video stream data using a target detection algorithm to obtain pedestrian information when the similarity between adjacent key frames is lower than a preset value.

[0078] In the pedestrian detection module, when the ambient brightness value is lower than the preset ambient brightness value, the key frame similarity judgment mechanism is used to judge the similarity of two adjacent key frames. When the similarity is less than 99%, there may be pedestrians, so pedestrian detection is performed on key frames with similarity less than 99%.

[0079] Specifically, in this embodiment, a trained target detection model is used to detect pedestrians in key frames, and the target detection model is obtained after training and optimization using a target detection algorithm.

[0080] In order to obtain a high-accuracy target detection model, a new pedestrian dataset is created in this embodiment, and the preset neural network is trained using the pedestrian dataset to obtain a trained and optimized target detection model. The pedestrian dataset adjusts all images to 416*416 pixels to improve the overall model evaluation performance. The pedestrian dataset is derived from surveillance videos, which includes three datasets and provides annotation information in XML format. First, the first dataset contains 205 pedestrian images taken from the front or back, and there is no mutual occlusion between pedestrians. Secondly, the second dataset contains 55 pedestrian images that are mutually occluded from multiple perspectives of the video library. Finally, the third dataset contains 100 pedestrian images from multiple perspectives without mutual occlusion. The video stream dataset in the pedestrian dataset provided in this embodiment is composed of key frames extracted from video surveillance at different stages, with a total of 8645 images, including pedestrians from multiple angles such as front, back, and side. In order to further improve the accuracy of training, a data set enhancement strategy can also be adopted to use operations such as rotation, shearing, flipping, and HSV (hue, saturation, value) displacement to change the size, angle, and exposure of the image to increase the number of data in the pedestrian data set.

[0081] The generation of pedestrian datasets also requires obtaining the location of each pedestrian in the image for supervised training. However, manually labeling images is a difficult task. Therefore, the pedestrian dataset can be pseudo-labeled using pre-trained weights, and then the labelImg (an open source graphical image annotation tool) labeling tool is used to correct and save the images in XML format. Important information such as image name, image size, object name, object bounding box, etc. are saved in the XML format file. After labeling the dataset, it is divided into training, testing, and validation datasets in a ratio of 8:1:1.

[0082] In one implementation, the target detection model is trained using the YOLOv4 (You Only Look Once version 4) algorithm. Since the YOLOv4 algorithm includes a backbone network, network training, activation function, and loss function, and uses csparknet53 as its backbone network, the network contains 29 convolutions, 725×725 receptive fields, and 27.6 million parameters, has a faster transport speed, and stronger generalization ability, it is suitable for real-time video stream detection.

[0083] Combination Figure 3As shown in the figure, before using the trained target detection model for pedestrian detection, the key frames in the video stream data are first extracted, and the environment perception mechanism is used to determine whether the ambient brightness is lower than the CIE minimum lighting standard. If it is lower, the key frame similarity judgment mechanism is used to judge the similarity of two adjacent key frames. If the similarity is lower than 99%, the trained target detection model is used to detect pedestrians on the key frames. If the ambient brightness is higher than the CIE minimum lighting standard, or the similarity is higher than 99%, it is determined that there is no obvious change between the two adjacent frames, and pedestrian detection does not need to be performed.

[0084] The ambient brightness perception mechanism (ABPM) and key frame similarity judgment mechanism (K-FSJM) in the above steps directly use the ambient illumination detection algorithm and the Bhattacharyya distance algorithm (i.e., Bhattacharyya distance) to analyze the key frames in the video stream to obtain brightness and similarity without installing sensors.

[0085] The human visual system uses hue (H), saturation (S), and intensity (I) to describe the color of an object, which is the HSI color model we are familiar with. Images composed of RGB channels also use the HSI color model to represent real scenes, and the ambient brightness and illuminance can also be calculated accordingly. CIE (International Commission on Illumination) has established minimum illumination standards for different scenes to ensure safety and visual effects during work. Therefore, after using ABPM to obtain the brightness and illuminance of the real scene, it is also necessary to compare with the CIE standard. K-FSJM obtains the similarity of two images by calculating the difference in histograms. Specifically, it obtains the grayscale histograms of the two frames before and after, and calculates the similarity of the two images through the Bhattacharyya distance.

[0086] The second method is to use a multi-channel keyframe cutting and merging mechanism to merge keyframes before pedestrian detection to improve detection efficiency.

[0087] Specifically, when the key frames extracted from the video stream data meet the requirements that the ambient light brightness is higher than the preset brightness value and the similarity is lower than the preset value, the multi-channel key frame cutting and merging mechanism is used to merge the key frames. Since cutting the detection area in the key frame alone can greatly reduce the detection area, the detection efficiency can be improved. Therefore, this method is suitable for the situation where the camera position or the area corresponding to the target scene is fixed.

[0088] Specifically, the detection device includes: a brightness detection module and a multi-channel detection module;

[0089] The brightness detection module is used to obtain the environment brightness value corresponding to the key frame in the video stream data, and determine whether the environment brightness value is lower than a preset environment brightness value.

[0090] The multi-channel detection module is used to obtain key frames in the target scene of each monitoring device detection equipment when the ambient brightness value is lower than the preset ambient brightness value, cut each key frame into a target size, splice them into a detection image in sequence, and use the target detection algorithm to perform pedestrian detection on the detection image.

[0091] Specifically, the multi-channel detection module first resizes the detection area cut by the key frames of all channels to 416*416, then merges them into a large image and sends it to the YOLOv4 algorithm for detection, such as Figure 4 As shown, the images corresponding to the cut detection areas are stitched together in sequence, and the position of each stitched image needs to correspond to the corresponding camera one by one. A mapping table is used to construct the association between the position of each stitched image and its corresponding camera.

[0092] Therefore, in this embodiment, different methods are used to detect pedestrians. Specifically, the two methods can be combined to achieve accurate detection of pedestrian information. That is, first, key frames are extracted from the video stream data, and when it is determined that the ambient brightness meets the requirements that the ambient light brightness is higher than a preset brightness value and the similarity is lower than a preset value, a multi-channel detection module is used to splice the detection area into a large image, and then the trained target detection model is used to detect pedestrians, so as to achieve fast and accurate detection of pedestrian information.

[0093] Furthermore, the lighting information in this embodiment includes: lighting information, energy consumption information and equipment information;

[0094] The operation and maintenance system is used to obtain pedestrian information, lighting information, energy consumption information and equipment information in the actual lighting system, and generate a second control instruction based on the pedestrian information, lighting information, energy consumption information and equipment information.

[0095] The visual operation and maintenance platform is deployed on a cloud server, which is connected to the real lighting system; the cloud server is also connected to a cloud database; the cloud database stores the lighting information, energy consumption information and equipment information in the real lighting system;

[0096] The cloud server is used to obtain lighting information, energy consumption information and equipment information in the actual lighting system from the cloud database, and update the BIM model according to the lighting information, energy consumption information and equipment information.

[0097] Since cloud servers can be configured and deployed faster, have low usage and maintenance costs, and have high scalability and flexibility, deploying the visual operation and maintenance platform on cloud servers can facilitate users to view and control the target scene in real time, thereby improving control intelligence.

[0098] Furthermore, since cloud databases are professional, high-performance, and highly reliable, and have advantages such as storage integration, deploying cloud databases on cloud servers can also achieve better data storage effects. Cloud databases are generally divided into relational databases and non-relational databases. Cloud databases not only provide a Web interface that can be used for database instance configuration and operation, but also provide reliable data backup and recovery, complete security management, complete monitoring, and easy-to-expand functions. The purpose of selecting a cloud database in the present invention is to make the connection between the various subsystems closer. In addition, the use of a cloud database is to enable administrators to browse and control the entire lighting system through the Internet, and use operation and maintenance data for further analysis and energy consumption prediction.

[0099] Since a consistent table structure is used in a relational database, it is helpful to use SQL statements to perform complex queries between multiple tables. Therefore, in this embodiment, Figure 2 and Figure 5 As shown, a relational database is used to store pedestrian information, lighting information, energy consumption information, and equipment information transmitted by the detection device. In one implementation, three data tables are created to store the control information of the lighting system. The three tables are a lighting information table, an energy consumption information table, and a hardware usage table. The lighting information table is used to store information about all lighting equipment, which can be used for daily operation and maintenance of the lighting system. The energy consumption information table is used to store pedestrian information and energy consumption information, which can be used for pedestrian trend prediction and energy consumption prediction. The hardware usage table is used to store real-time hardware usage, which can be used for hardware analysis and algorithm optimization.

[0100] Further, combined with Figure 5 As shown in the figure, the data interaction between the digital twin lighting system (DTL) and the real lighting system (RL) is further explained.

[0101] The real lighting system is deployed in the target scene, and the lighting devices and monitoring devices are dispersed in the target scene to obtain the video stream data of the target scene. The lighting devices and monitoring devices are connected by wires, and the digital twin lighting system is deployed in the visual operation and maintenance platform, which is deployed on the cloud server.

[0102] First, the monitoring device obtains the video stream of the scene and transmits it to the detection device in real time through the local area network. Second, the YOLOv4 algorithm and the ambient brightness detection algorithm are used to detect pedestrians and perceive the ambient brightness. Third, a command is sent to the control device according to the detection results. If there is a pedestrian in the key frame and the ambient brightness does not meet the minimum lighting requirements, a command is sent to the control device to adjust the lights, including the number and brightness of the lights. On the contrary, if no pedestrian is detected for more than 20 seconds, a command to turn off the lights is sent to the control device, which includes the number of lights. Fourth, data such as lighting information, energy consumption, and hardware utilization are transmitted to the cloud database through the Internet. The control mechanism of the digital twin lighting system is divided into three steps: First, the visualization operation and maintenance platform in the digital twin lighting system sends a real-time request to the server to obtain data such as lighting information, energy consumption information, and hardware utilization. Second, the cloud server accesses the data in the cloud database to respond to the client request in real time. Finally, the client adjusts the digital twin lighting system and visualizes the operation and maintenance data based on the results obtained from the server.

[0103] It is conceivable that the DTL system and RL system provided in this embodiment can interact directly, or can mainly rely on the Internet to access the cloud database to complete data interaction. The data interaction is mainly divided into two steps: First, the visual operation and maintenance platform responds to the manually or automatically started light control command, and then sends the light information to the cloud server through the Internet. Secondly, the cloud server updates the cloud database accordingly, and sends commands to the light controller through the Internet to adjust the light, including quantity and brightness. Therefore, the operation and maintenance system also includes an instruction receiving and responding unit, which uses the instruction receiving and responding unit to receive the manually or automatically started light control command, and responds to the light control command to send a second control command to the control device.

[0104] Furthermore, in a real lighting system, in order to facilitate the control of the lights in the lighting device, taking the lights in the lighting device as LED lights as an example, the LED lights are first numbered in sequence, and then the LEDs are bound to the corresponding cameras. Figure 6 shown.

[0105] LED lamp is a diode with the advantages of small size, light weight, low power consumption, long life, high brightness and fast response speed. Therefore, the lighting system can use PWM (pulse width modulation) dimming method to adaptively adjust the brightness of LED lamp based on the ambient brightness perceived by ABPM. The PWM dimming method mainly controls the conduction and cutoff of the switching device in the inverter circuit so that the output can obtain a series of equal-amplitude pulses, and use these pulses instead of sine waves or required waveforms. The adaptive adjustment process of the RL system is divided into three steps. First, a wire connects the LED lamp to the GPIO interface of NVIDIA Jetson Xavier NX. However, the GPIO interface cannot meet the power supply requirements of the LED lamp; therefore, a relay is used as a bridge between the two. Secondly, NX obtains pedestrian detection results and ambient brightness in real time. Finally, NX uses PWM dimming method to adjust the brightness of LED lamp. Although the old lighting system cannot achieve adaptive adjustment of brightness level, the proposed method can be used to achieve intelligent control. It uses smart switches and WIFI modules, combined with monitoring and lighting systems, to achieve intelligent control through 5G wireless routers.

[0106] In order to make full use of the dimmability of LED lights and further save energy, the ambient brightness perceived by ABPM is divided into three levels, and the adaptive adjustment mechanism is also divided into three levels: (1) If L is less than 50 lx, the lighting equipment around the pedestrian will be adjusted to the maximum brightness; (2) If L is greater than 50 lx and less than 100 lx, the lighting equipment around the pedestrian will be adjusted to medium brightness; (3) If L is greater than or equal to 100 lx, the lighting system will be turned off.

[0107] Furthermore, in one embodiment, the following steps can be used to establish a DTL system. First, use Revit to create a BIM model of the lighting system. Second, process, compress, and convert the BIM model into a data format suitable for sharing and browsing on the Internet. Finally, dynamically map the ambient brightness and pedestrian detection results to the lightweight BIM model. There are multiple LED lights and cameras in the BIM model. The LED lights need to be numbered in sequence and bound to the corresponding cameras to achieve consistency with the RL system, such as Figure 6 shown.

[0108] In a second aspect, this embodiment also discloses a lighting control method based on computer vision and BIM technology, such as Figure 7 As shown, including:

[0109] Step S1, collecting video stream data and lighting information of a target scene, determining ambient light information and pedestrian information of the target scene based on the video stream data, and controlling a lighting device in a lighting system according to the determined ambient light information and pedestrian information.

[0110] Step S2: acquiring lighting system information and pedestrian information of a real lighting system, controlling the lighting devices in the real lighting system based on the lighting system information and pedestrian information, and mapping the lighting information contained in the lighting system information to a BIM model corresponding to the target scene.

[0111] Furthermore, the step of determining the ambient light information and pedestrian information of the target scene based on the video stream data includes:

[0112] Obtain the RGB value corresponding to each key frame in the video stream data, calculate the ambient brightness information corresponding to each key frame according to the RGB value, and determine whether the ambient brightness value is lower than the preset ambient brightness value;

[0113] When the ambient brightness value is lower than the preset ambient brightness value, the grayscale histogram of two adjacent key frames is obtained, and the similarity corresponding to the two adjacent key frames is determined according to the grayscale histogram. When the similarity between adjacent key frames is lower than the preset value, the target detection algorithm is used to detect the pedestrian information in the video stream data to obtain the pedestrian information.

[0114] Furthermore, the method for constructing the BIM model includes:

[0115] An initial BIM model is constructed using three-dimensional architectural design software; the format of the initial BIM model is converted to obtain a lightweight BIM model; and the lighting information contained in the lighting system information is mapped to the lightweight BIM model to obtain a BIM model corresponding to the target scene.

[0116] The visual operation and maintenance platform provided in this embodiment can be divided into multiple small modules, including video monitoring, hardware utilization, energy consumption, pedestrian trends, pedestrian flow within 24 hours, DTL system and lighting information. In addition to adaptively adjusting the DTL system, the platform also allows administrators to remotely control the RL system and browse real-time energy consumption and hardware usage through the Internet. In particular, administrators can also perform daily inspections of the lighting system remotely and set specific inspection times. According to the set detection time, the platform will automatically turn on all lights in sequence, call the environmental perception mechanism to detect key frames, and transmit the ambient brightness level to the cloud database. Finally, the visual operation and maintenance platform will automatically notify the administrator of damaged lights in the cloud database to achieve timely replacement of lights in the real lighting system.

[0117] The lighting control system and method provided in this embodiment establish a visual operation and maintenance platform, and use environmental perception, key frame similarity judgment and multi-channel key frame cutting and merging mechanism to perform real-time preprocessing on the video stream data collected by the monitoring device. The pedestrians detected by the YOLOv4 algorithm and the ambient brightness perceived by the environmental perception mechanism are transmitted to the cloud database and continuously read by the visual operation and maintenance platform, which significantly improves the accuracy of intelligent decision-making control, reduces energy consumption and electricity costs, and greatly reduces the hardware cost and energy consumption of the detection equipment, as well as the time and cost of operation and maintenance, realizes visual operation and intelligent control of the entire lighting control process, and improves the intelligence and accuracy of lighting control.

[0118] It should be noted that the above application scenarios are only shown to facilitate understanding of the present invention, and the embodiments of the present invention are not limited in this respect. On the contrary, the embodiments of the present invention can be applied to any applicable scenarios.

[0119] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A lighting control system based on computer vision and BIM technology, characterized in that: include: Connected reality lighting system and visual operation and maintenance platform; The real lighting system is used to collect video stream data and lighting information of a target scene, determine ambient light information and pedestrian information of the target scene based on the video stream data, and control a lighting device in the lighting system according to the determined ambient light information and pedestrian information; The visual operation and maintenance platform is used to obtain lighting system information and pedestrian information of the real lighting system, control the lighting devices in the real lighting system based on the lighting system information and pedestrian information, and map the lighting information contained in the lighting system information to the BIM model corresponding to the target scene; The actual lighting system comprises: at least one lighting device, at least one monitoring device, at least one detection device and at least one control device connected to each other; A monitoring device for collecting video stream data within a target scene; A detection device, used to obtain the video stream data and the lighting system information in the target scene, analyze the video stream data to obtain pedestrian detection information, generate a first control instruction according to the pedestrian detection information, and send the lighting system information to the visual operation and maintenance platform; The detection device comprises: a brightness detection module and a multi-channel detection module; The brightness detection module is used to obtain the ambient brightness value corresponding to the key frame in the video stream data, and determine whether the ambient brightness value is lower than a preset ambient brightness value; The multi-channel detection module is used to obtain key frames in the target scene of each monitoring device detection device when the ambient brightness value is lower than the preset ambient brightness value, cut each key frame into a target size, and sequentially splice them into a detection image, and use the target detection algorithm to perform pedestrian detection on the detection image; The multi-channel detection module first resizes the detection area cut by the key frames of all channels to the target size, then merges them into one image and sends it to the YOLOv4 algorithm for detection; the images corresponding to the cut detection areas are stitched in sequence, and the position of each stitched image needs to correspond to the corresponding camera one by one. The relationship between the position of each stitched image and its corresponding camera is constructed through a mapping table; The visual operation and maintenance platform includes: a digital twin lighting system and an operation and maintenance system; The digital twin lighting system is used to obtain lighting system information, build a BIM model of a target scene according to the lighting system information, and map the lighting information contained in the lighting system information to the BIM model corresponding to the target scene; The operation and maintenance system is used to obtain the lighting system information and the pedestrian information in the actual lighting system, and generate a second control instruction according to the lighting system information and the pedestrian information; The control device is used to receive and execute the first control instruction and the second control instruction to control the lighting device; The lighting information includes: lighting information, energy consumption information and equipment information; The operation and maintenance system is used to obtain pedestrian information, lighting information, energy consumption information and equipment information in the actual lighting system, and generate a second control instruction according to the pedestrian information, lighting information, energy consumption information and equipment information; The visual operation and maintenance platform is deployed on a cloud server, which is connected to the real lighting system; the cloud server is also connected to a cloud database; the cloud database stores the lighting information, energy consumption information and equipment information in the real lighting system; The cloud server is used to obtain lighting information, energy consumption information and equipment information in the actual lighting system from the cloud database, and update the BIM model according to the lighting information, energy consumption information and equipment information; The visual operation and maintenance platform sends real-time requests to the cloud server to obtain lighting information, energy consumption information, and hardware utilization data. The cloud server accesses the data in the cloud database to respond to the visual operation and maintenance platform request in real time. The visual operation and maintenance platform client adjusts the digital twin lighting system and visualizes the operation and maintenance data based on the results obtained from the cloud server. The detection device comprises: a pedestrian detection module; The pedestrian detection module is used to calculate the similarity between each key frame when the ambient brightness value is lower than a preset ambient brightness value, and to detect pedestrian information in the video stream data using a target detection algorithm to obtain pedestrian information when the similarity between adjacent key frames is lower than a preset value; Before the step of using the target detection algorithm to detect pedestrians in the detection image, it also includes: The ambient brightness information is obtained through the ambient brightness perception mechanism. If the ambient brightness is greater than the preset minimum lighting brightness, it is considered that the current ambient brightness meets the lighting requirements. If the ambient brightness is less than the preset minimum lighting brightness, it is necessary to perform similarity analysis on two consecutive frames to determine whether there are pedestrians. The method for the ambient brightness perception mechanism to obtain the ambient brightness information is as follows: the ambient brightness is calculated by calculating the RGB value of the image, and then the ambient illumination is converted by the reflection coefficient of the material. The ambient brightness perception mechanism and the key frame similarity judgment mechanism directly use the ambient illumination detection algorithm and the Bhattacharyya distance algorithm to analyze the key frames in the video stream to obtain brightness and similarity. The operation and maintenance system also includes a command receiving and responding unit; The command receiving and responding unit is used to receive a manually or automatically started light control command, and send a second control command to the control device in response to the light control command; The visual operation and maintenance platform responds to manually or automatically initiated lighting control commands, and then sends the lighting information to the cloud server via the Internet; the cloud server updates the cloud database accordingly and sends commands to the lighting controller via the Internet to adjust the lights, including quantity and brightness.

2. A lighting control method based on computer vision and BIM technology, characterized in that: include: Collecting video stream data and lighting information of a target scene, determining ambient light information and pedestrian information of the target scene based on the video stream data, and controlling a lighting device in a lighting system according to the determined ambient light information and pedestrian information; Acquire lighting system information and pedestrian information of a real lighting system, control lighting devices in the real lighting system based on the lighting system information and pedestrian information, and map the lighting information contained in the lighting system information to a BIM model corresponding to the target scene; The actual lighting system comprises: at least one lighting device, at least one monitoring device, at least one detection device and at least one control device connected to each other; A monitoring device for collecting video stream data within a target scene; A detection device, used to obtain the video stream data and the lighting system information in the target scene, analyze the video stream data to obtain pedestrian detection information, generate a first control instruction according to the pedestrian detection information, and send the lighting system information to the visual operation and maintenance platform; The detection device comprises: a brightness detection module and a multi-channel detection module; The brightness detection module is used to obtain the ambient brightness value corresponding to the key frame in the video stream data, and determine whether the ambient brightness value is lower than a preset ambient brightness value; The multi-channel detection module is used to obtain key frames in the target scene of each monitoring device detection device when the ambient brightness value is lower than the preset ambient brightness value, cut each key frame into a target size, and then splice them into a detection image in sequence, and use the target detection algorithm to perform pedestrian detection on the detection image; the multi-channel detection module first resizes the size of the detection area cut by the key frames of all channels to the target size, and then merges them into one image, and sends it to the YOLOv4 algorithm for detection; the images corresponding to the cut detection areas are spliced ​​in sequence, and the position of each spliced ​​image needs to correspond to the corresponding camera one by one, and the association relationship between the position of each spliced ​​image and its corresponding camera is constructed through a mapping table; The visual operation and maintenance platform includes: a digital twin lighting system and an operation and maintenance system; The digital twin lighting system is used to obtain lighting system information, build a BIM model of a target scene according to the lighting system information, and map the lighting information contained in the lighting system information to the BIM model corresponding to the target scene; The operation and maintenance system is used to obtain the lighting system information and the pedestrian information in the actual lighting system, and generate a second control instruction according to the lighting system information and the pedestrian information; The control device is used to receive and execute the first control instruction and the second control instruction to control the lighting device; The lighting information includes: lighting information, energy consumption information and equipment information; The operation and maintenance system is used to obtain pedestrian information, lighting information, energy consumption information and equipment information in the actual lighting system, and generate a second control instruction according to the pedestrian information, lighting information, energy consumption information and equipment information; The visual operation and maintenance platform is deployed on a cloud server, which is connected to the real lighting system; the cloud server is also connected to a cloud database; the cloud database stores the lighting information, energy consumption information and equipment information in the real lighting system; The cloud server is used to obtain lighting information, energy consumption information and equipment information in the actual lighting system from the cloud database, and update the BIM model according to the lighting information, energy consumption information and equipment information; The visual operation and maintenance platform sends real-time requests to the cloud server to obtain lighting information, energy consumption information, and hardware utilization data. The cloud server accesses the data in the cloud database to respond to the visual operation and maintenance platform request in real time. The visual operation and maintenance platform client adjusts the digital twin lighting system and visualizes the operation and maintenance data based on the results obtained from the cloud server. The step of determining the ambient light information and pedestrian information of the target scene based on the video stream data comprises: Obtain the RGB value corresponding to each key frame in the video stream data, calculate the ambient brightness information corresponding to each key frame according to the RGB value, and determine whether the ambient brightness value is lower than the preset ambient brightness value; When the ambient brightness value is lower than the preset ambient brightness value, the grayscale histogram of two adjacent key frames is obtained, and the similarity corresponding to the two adjacent key frames is determined according to the grayscale histogram. When the similarity between adjacent key frames is lower than the preset value, the target detection algorithm is used to detect the pedestrian information in the video stream data to obtain the pedestrian information; Before the step of using the target detection algorithm to detect pedestrians in the detection image, it also includes: The ambient brightness information is obtained through the ambient brightness perception mechanism. If the ambient brightness is greater than the preset minimum lighting brightness, it is considered that the current ambient brightness meets the lighting requirements. If the ambient brightness is less than the preset minimum lighting brightness, it is necessary to perform similarity analysis on two consecutive frames to determine whether there are pedestrians. The method for the ambient brightness perception mechanism to obtain the ambient brightness information is as follows: the ambient brightness is calculated by calculating the RGB value of the image, and then the ambient illumination is converted by the reflection coefficient of the material. The ambient brightness perception mechanism and the key frame similarity judgment mechanism directly use the ambient illumination detection algorithm and the Bhattacharyya distance algorithm to analyze the key frames in the video stream to obtain brightness and similarity. The operation and maintenance system also includes a command receiving and responding unit; The command receiving and responding unit is used to receive a manually or automatically started light control command, and send a second control command to the control device in response to the light control command; The visual operation and maintenance platform responds to manually or automatically initiated lighting control commands, and then sends the lighting information to the cloud server via the Internet; the cloud server updates the cloud database accordingly and sends commands to the lighting controller via the Internet to adjust the lights, including quantity and brightness.

3. The lighting control method based on computer vision and BIM technology according to claim 2 is characterized in that: The method for constructing the BIM model includes: Use 3D architectural design software to build an initial BIM model; Convert the format of the initial BIM model to obtain a lightweight BIM model; The lighting information contained in the lighting system information is mapped to the lightweight BIM model to obtain a BIM model corresponding to the target scene.

Citation Information

Patent Citations

  • High-rise ultra-low energy consumption residence sensor device based on BIM operation and maintenance platform

    CN117119026A

  • Indoor illumination energy-saving control method based on combination of machine vision and illumination prediction

    CN118139246A