Neural network binocular distance measurement opening fan switch detection positioning method and system

By using a neural network binocular ranging method, combined with a camera array and a data processing unit, precise positioning and automated monitoring of building operable doors were achieved. This solved the problems of low efficiency and inaccurate positioning of manual inspections, and improved the safety and management efficiency of buildings.

CN119850735BActive Publication Date: 2026-11-20SHENZHEN CHENGXIN TECHNOLOGY CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510050090.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2026-11-20
Estimated Expiration
2045-01-13

AI Technical Summary

Technical Problem

In existing technologies, manual inspection is inefficient, lacks precise positioning of operable sashes, has poor adaptability, and is not timely or continuous enough, resulting in low efficiency in building safety management. In particular, it is difficult to accurately detect unlocked operable sashes in complex building curtain wall environments.

Method used

The system employs a neural network binocular ranging method, which acquires image data through at least two pairs of camera arrays. Combined with a data processing unit and a matching module, it utilizes perspective transformation, annotation, data augmentation, and target detection algorithms to achieve precise positioning of the openable fan. Triangulation is used to determine the three-dimensional position, and an alarm feedback module is equipped to monitor and provide real-time position information.

Benefits of technology

It enables automated monitoring of the status of operable curtain walls, improves inspection efficiency and accuracy, enhances building safety, reduces operating costs, supports 24/7 monitoring, adapts to different types of operable curtain wall panels and complex backgrounds, and promotes the modernization of building management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119850735B_ABST
    Figure CN119850735B_ABST
Patent Text Reader

Abstract

The application provides a neural network binocular distance measurement opening sash switch detection and positioning method and system, which comprises: at least one pair of camera arrays installed at the bottom of a building; a data processing unit receiving data collected by the camera arrays and performing intelligent analysis, wherein the analysis process comprises using a target detection algorithm to identify an opening sash in an open state; a matching module calculating a matching score of the same opening sash in two different view images based on geometric constraints to determine the opening sash; a positioning module determining the position coordinates of the opening sash in a three-dimensional space by using a triangulation method combined with camera calibration parameters, and determining the floor and the number of the opening sash; and an alarm feedback module triggering an alarm and providing position information to managers when an opening sash that is not locked is detected. The application provides an efficient, accurate and intelligent opening sash switch state detection and positioning scheme, greatly improves the safety management level of the building, and promotes the technical innovation and development of the building industry.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of building safety technology, specifically to a neural network binocular ranging method and system for detecting and locating openable fan switches. Background Technology

[0002] With the development of intelligent building management and automated inspection technology, higher requirements have been placed on the safety and management efficiency of buildings. Traditional manual inspection methods are gradually failing to meet the requirements of modern buildings for safety and management efficiency due to their low efficiency, susceptibility to human factors, and inability to achieve efficient and continuous monitoring. Especially in extreme weather, open or locked doors may cause serious safety hazards, such as water leakage, air intrusion, or even safety accidents.

[0003] Existing methods based on deep learning and image data can be used to detect unlocked operable windows, but they are generally limited to detection and cannot provide precise positioning capabilities. This limitation is particularly evident in complex building facade environments, as different operable windows may look very similar, making it difficult to accurately distinguish their specific locations from a single viewpoint. Furthermore, some existing solutions rely on manual inspection, which not only increases labor costs but also reduces the speed and frequency of inspections, thereby affecting the level of building security management.

[0004] The shortcomings of existing technology: 1. Low efficiency of manual inspection: Traditional manual inspection methods require a lot of human resources, and the inspection process is easily affected by human factors, such as negligence or fatigue, which can lead to inconsistent inspection results or omission of important information.

[0005] 2. Lack of precise positioning capability: Although existing deep learning-based methods can detect unlocked opening windows to a certain extent, they cannot provide the specific location of these opening windows, especially on complex building facades with almost identical appearances, which makes subsequent processing difficult.

[0006] 3. Poor adaptability: Current technical solutions are often designed for specific types of operable windows or specific environments. When faced with different types of curtain wall operable windows (such as top-hinged, casement, etc.) and complex backgrounds, their performance may drop significantly, and they cannot guarantee consistent high-precision detection results.

[0007] 4. Insufficient real-time performance and continuity: Some existing automatic inspection systems cannot achieve true real-time monitoring, or even if they can achieve real-time monitoring, they are difficult to maintain stable operation for a long time due to limitations in computing resources, thus affecting the continuity and timeliness of inspection.

[0008] Therefore, existing technologies have shortcomings and need further improvement. Summary of the Invention

[0009] To address the problems existing in the prior art, this invention provides a neural network binocular ranging method and system for detecting and locating open-side fan switches.

[0010] To achieve the above objectives, the specific solution of the present invention is as follows: This invention provides a neural network binocular ranging method and system for detecting and locating openable fan switches. The system includes: At least two pairs of camera arrays for capturing images of the opening sash of a glass curtain wall, the camera arrays comprising a first pair of cameras aligned vertically and a second pair of cameras aligned horizontally; The data processing unit includes a cloud server, which is used to receive image data collected by the camera array at set time intervals via the Internet of Things, and to perform perspective transformation, annotation, data augmentation, background modeling, motion detection and target detection algorithm processing on the image data to identify open windows in an open state or an unlocked state and generate the bounding box, center coordinates and confidence score of each open window. The matching module is used to calculate the matching score based on the center coordinate constraint of the same open sector, the confidence score, and the intersection-union ratio (IoU) for two different viewpoint images captured by the first camera pair aligned in the vertical direction and the second camera pair aligned in the horizontal direction, and to filter out the successfully matched open sector pairs. The positioning module uses triangulation combined with camera calibration parameters to determine the position coordinates (X, Y, Z) of the operable fan in three-dimensional space, and determines the height and floor of the operable fan based on the first camera, and determines the horizontal position and number of households of the operable fan based on the second camera. The alarm feedback module triggers an alarm when it detects that an openable door is in the open or unlocked state, provides location information including the floor and number of households to the management personnel, and saves the detection result images or videos.

[0011] Furthermore, the camera array captures images at fixed time intervals and transmits the images to the cloud server of the data processing unit for processing via the Internet of Things.

[0012] Furthermore, the data processing unit also includes a data augmentation module, which performs perspective transformation, random cropping, rotation, and color adjustment operations on the original image to enrich the training set and improve the model's generalization ability.

[0013] Furthermore, the data processing unit is equipped with a deep neural network model, which is used to select or adaptively adjust according to different site conditions of the curtain wall building to improve the detection effect of the operable sash.

[0014] Furthermore, the alarm feedback module adopts real-time monitoring or timed monitoring to periodically summarize and analyze the results and send reports, thereby reducing the real-time computing burden and operating costs of the system.

[0015] This invention also provides a neural network binocular ranging method for detecting and locating open fan switches. Based on the above system, the method includes the following steps: S1, At least two pairs of camera arrays are installed at different locations at the bottom of the glass curtain wall building and / or on the same floor, such that the camera arrays include a first pair of cameras aligned vertically and a second pair of cameras aligned horizontally, and images containing the open windows to be monitored are captured at set time intervals. S2 uploads image data to the data processing unit via the Internet of Things, and performs perspective transformation, annotation, data augmentation, background modeling, motion detection and target detection algorithm processing on the image data in the cloud, identifies open or unlocked open windows and generates the bounding box, center coordinates and confidence score for each target; S3, matching the open sectors in the two different viewpoint images captured by the first camera pair and the second camera pair respectively, calculating the matching score by combining the confidence score, coordinate offset constraint and intersection-union ratio (IoU), and filtering out the successfully matched open sectors; S4. The depth Z of the opening fan is calculated using the triangulation method of binocular vision, and the specific position (X, Y, Z) of the opening fan in the world coordinate system is estimated by combining the camera calibration parameters. The height and floor of the opening fan are determined according to the first camera pair, and the horizontal position and number of households of the opening fan are determined according to the second camera pair. S5: When an operable door is detected to be in an open or unlocked state, an alarm is triggered and the location information containing the floor and number of units of the operable door is sent to the building management personnel. At the same time, the detection result image or video is saved.

[0016] Furthermore, in step S2, the processing and analysis further includes preprocessing the labeled image dataset to ensure that images taken from different angles can be correctly parsed, thereby improving the accuracy of subsequent detection.

[0017] Furthermore, in step S2, the target detection algorithms include YOLO and Faster R-CNN, and the most suitable model is flexibly selected according to the actual application scenario to generate the bounding box and confidence score of each target in order to optimize detection efficiency and accuracy.

[0018] Furthermore, in step S3, based on geometric constraints, namely vertical coordinate offset and IoU value, the matching score of the open sector between the two images is calculated, and the successfully matched open sector pairs are selected, thereby more accurately confirming the identity of the open sector.

[0019] Furthermore, in step S5, in addition to real-time feedback, a timed monitoring mode is set to reduce the real-time computing load of the system and allow the system to perform data processing and analysis during off-peak hours, thereby reducing operating costs.

[0020] The technical solution of this invention has the following beneficial effects: 1. Improve inspection efficiency and accuracy: Through intelligent detection and positioning technology, the status of the open fan switch is automatically monitored, eliminating the need for manual inspection and greatly improving inspection efficiency.

[0021] By combining deep learning algorithms with binocular vision technology, we can not only accurately identify the state of the fan (such as closed or open), but also precisely locate its position, ensuring a high degree of accuracy in the detection results.

[0022] 2. Enhance building safety: When an unlocked or abnormally opened window is detected, the system will immediately trigger an alarm and send feedback information to the management personnel, including the specific floor and number of households, so that the management personnel can take measures quickly to prevent potential safety hazards (such as water leakage, air leakage, etc.).

[0023] It enables all-weather, all-round monitoring, and can effectively prevent safety accidents caused by fan malfunctions, especially under extreme weather conditions.

[0024] 3. Reduce operating costs: This reduces reliance on manpower and lowers the time and economic costs required for manual inspections.

[0025] The system's real-time and automated features reduce the need for regular maintenance, further lowering long-term operating costs.

[0026] 4. Promote the modernization of building management: This invention provides a new solution for the intelligent management and maintenance of buildings, which helps to promote the development of the construction industry towards digitalization and intelligence.

[0027] The provided data recording and analysis functions can help managers better understand building usage and optimize daily management and emergency response strategies.

[0028] 5. Highly adaptable: The system can be flexibly adjusted according to different types of curtain wall operable windows (such as top-hinged and casement windows) and complex background environments, ensuring consistent high-precision detection results under various conditions.

[0029] It supports a scheduled monitoring mode, allowing the system to perform data processing and analysis during off-peak hours, thereby optimizing resource utilization and reducing the system's real-time computing burden.

[0030] 6. Technical support and scalability: The camera installation location can be flexibly adjusted according to the building layout to ensure that all windows are within the monitoring range.

[0031] Data acquisition and enhancement methods, neural network models, and feedback mechanisms can all be upgraded or replaced based on actual conditions and technological advancements to maintain the system's advanced nature and adaptability. Attached Figure Description

[0032] Figure 1 This is a schematic diagram of the camera array monitoring of the present invention; Figure 2 This is the image before the perspective transformation of the present invention; Figure 3 This is the image after perspective transformation—viewpoint transformation—of the present invention; Figure 4 The present invention enables the neural network to automatically recognize window images; Figure 5 This is the result of the neural network automatically recognizing windows according to the present invention; Figure 6 This is a system principle block diagram of the present invention; Figure 7 This is the overall flowchart of the present invention. Detailed Implementation

[0033] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely for explaining the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention are shown in the accompanying drawings, and not all of them.

[0034] Combination Figures 1-7 As shown, the present invention provides a neural network binocular ranging system for detecting and locating openable fan switches, the system comprising: At least two pairs of camera arrays for capturing images of the opening sash of a glass curtain wall, the camera arrays comprising a first pair of cameras aligned vertically and a second pair of cameras aligned horizontally; The data processing unit includes a cloud server, which is used to receive image data collected by the camera array at set time intervals via the Internet of Things, and to perform perspective transformation, annotation, data augmentation, background modeling, motion detection and target detection algorithm processing on the image data to identify open windows in an open state or an unlocked state and generate the bounding box, center coordinates and confidence score of each open window. The matching module is used to calculate the matching score based on the center coordinate constraint of the same open sector, the confidence score and the intersection-union ratio (IoU) for two different viewpoint images captured by the first camera pair and the second camera pair, and to filter out the successfully matched open sector pairs. The positioning module uses triangulation combined with camera calibration parameters to determine the position coordinates (X, Y, Z) of the operable fan in three-dimensional space, and determines the height and floor of the operable fan based on the first camera, and determines the horizontal position and number of households of the operable fan based on the second camera. The alarm feedback module triggers an alarm when it detects that an openable door is in the open or unlocked state, provides location information including the floor and number of households to the management personnel, and saves the detection result images or videos.

[0035] The camera array captures images at fixed time intervals and transmits the images to the cloud server of the data processing unit for processing via the Internet of Things.

[0036] The data processing unit also includes a data augmentation module, which performs perspective transformation, random cropping, rotation, and color adjustment operations on the original image to enrich the training set and improve the model's generalization ability.

[0037] The data processing unit is equipped with a deep neural network model, which is used to select or adaptively adjust according to different site conditions of curtain wall buildings in order to improve the detection effect of operable sashes.

[0038] The alarm feedback module adopts real-time monitoring or timed monitoring, periodically summarizing and analyzing the results and sending reports to reduce the real-time computing burden and operating costs of the system.

[0039] This invention also provides a neural network binocular ranging method for detecting and locating open fan switches. Based on the above system, the method includes the following steps: S1. Install at least one pair of camera arrays at the bottom of the glass curtain wall building to ensure that all windows to be monitored are within the monitoring range and to capture images at set time intervals; S2 uploads image data to the data processing unit via the Internet of Things, and processes and analyzes the image data in the cloud, including perspective transformation, annotation, data augmentation, and application of target detection algorithms to identify the open state of the open fan; S3, calculate the matching score of the same open sector between two images from different viewpoints, combine the confidence score, vertical coordinate offset and intersection-union ratio (IoU), and filter out the successfully matched open sectors; S4. Use the triangulation method of binocular vision to calculate the depth Z of the opening fan, and combine the camera calibration parameters to calculate the specific position (X, Y, Z) of the opening fan in the world coordinate system, and determine the floor and number of units where it is located. S5: When an operable door is detected to be in the open state, an alarm is triggered and feedback containing the location information of the operable door is sent to the building management personnel.

[0040] In step S2, the processing and analysis further includes preprocessing the labeled image dataset to ensure that images taken from different angles can be correctly parsed, thereby improving the accuracy of subsequent detection.

[0041] In step S2, the target detection algorithms include YOLO and Faster R-CNN, and the most suitable model is flexibly selected according to the actual application scenario to generate the bounding box and confidence score of each target in order to optimize detection efficiency and accuracy.

[0042] In step S3, based on geometric constraints, namely vertical coordinate offset and IoU value, the matching score of the open sector between the two images is calculated, and the successfully matched open sector pairs are filtered out, so as to more accurately confirm the identity of the open sector.

[0043] In step S5, in addition to real-time feedback, a timed monitoring mode is also set to reduce the real-time computing load of the system and allow the system to perform data processing and analysis during off-peak hours, thereby reducing operating costs.

[0044] The system components of this invention mainly include the following key modules: Camera array: Installed at the base of the building to capture data including images of windows. To ensure all windows are within the monitoring range and to accurately determine the position of open windows, at least two pairs of cameras are required in an array.

[0045] Data acquisition and preprocessing module: This includes camera calibration steps, using methods such as those employed by Zhang Zhengyou to calibrate the camera array.

[0046] Preprocessing the original images, such as perspective transformation, random cropping, rotation, and color adjustment, can enhance the diversity of the dataset.

[0047] Label the edges of the open sector and the switch status in the image.

[0048] Data processing unit: including cloud server: used to receive image data uploaded from camera array via IoT and perform intelligent analysis on it, including deep neural network target detection algorithms (such as YOLO, Faster R-CNN, etc.) to identify the status of the open fan.

[0049] Open sector matching module: Based on geometric constraints, it calculates the matching score of the same open sector between two images from different viewpoints, filters out successfully matched open sector pairs, and thus determines that they are the same open sector.

[0050] Binocular positioning module: Using triangulation combined with camera calibration parameters, it calculates the coordinates of the object in three-dimensional space based on the matched image pixel coordinates, that is, the specific position (X, Y, Z) of the open fan, and further determines the floor and number of units it is located on.

[0051] Alarm and Feedback Mechanism: When an operable door is detected to be open, this module will trigger an alarm and send feedback information to building management personnel, including the floor and number of units where the operable door was detected. In addition, the system will save images and videos of the detection results for subsequent verification and processing.

[0052] These components work together to enable automatic detection and precise positioning of the open / closed status of windows in glass curtain wall buildings, as well as real-time or timed monitoring and early warning functions.

[0053] The method of this invention includes the following key steps for automatically detecting and accurately locating the open / closed state of operable windows in glass curtain wall buildings: 1. Install cameras and set up monitoring areas: Install a fixed camera array at the base of the glass curtain wall building to ensure all windows are within the monitoring range. At least two pairs of cameras are required, arranged in an array to cover all windows to be monitored.

[0054] The camera captures images at set time intervals and transmits the image data to the cloud server of the data processing unit via the Internet of Things.

[0055] 2. Data Acquisition and Preprocessing: Use camera calibration methods (such as those used by Zhang Zhengyou et al.) to calibrate the camera array to ensure the accuracy of subsequent image analysis.

[0056] It collects image data containing various open / closed fan states (closed, open), covering different angles, lighting conditions, and background environments.

[0057] 3. Perform image preprocessing, such as perspective transformation, converting tilted images to orthographic images, and using tools like Labelme to mark the edges of the open fan and the on / off state.

[0058] Data augmentation operations, such as random cropping, rotation, and color adjustment, increase the diversity of the training dataset.

[0059] 4. Automatic window recognition using neural networks: Apply object detection algorithms (such as YOLO, Faster R-CNN, etc.) to detect open sectors in two images and generate the bounding box and confidence score for each object.

[0060] 5. Open sector matching based on geometric constraints: The matching score of the same open sector in two images from different viewpoints is calculated, taking into account factors such as confidence score, vertical coordinate constraint and intersection-over-union ratio (IoU).

[0061] Select successfully matched pairs of open sectors, meaning they are considered to represent open sectors in the same physical world.

[0062] 6. Binocular-based opening sector positioning: Using binocular vision triangulation and camera calibration parameters, the coordinates (X, Y, Z) of an object in three-dimensional space are calculated based on the matched image pixel coordinates.

[0063] Based on the calculated depth information Z, the height Y of the operable fan, as well as the floor L or the number of units, are further determined.

[0064] 7. Alarm and Feedback Mechanism: When the system detects that a window is open, it triggers an alarm and sends feedback information to the building management personnel, providing the specific location of the open window (floor and number of units).

[0065] The system saves images and videos of the test results for administrators to verify and process.

[0066] The above steps together constitute a complete process, from hardware deployment, data collection and preprocessing, to intelligent analysis and final early warning feedback, realizing the automated detection and location of the status of open and closed doors, and improving the safety and efficiency of building management.

[0067] Working principle of the invention This invention describes a method and system for detecting and locating the state of an open sector switch based on deep neural networks and binocular ranging. Its working principle mainly includes the following key steps: Camera installation and monitoring area setup: At least one pair of camera arrays are installed at the base of the glass curtain wall building to ensure that all windows to be monitored are within the monitoring range. These cameras capture images at fixed time intervals and transmit the image data to a cloud server in the data processing unit for processing via the Internet of Things.

[0068] Data Acquisition and Preprocessing: Use camera calibration methods (such as those used by Zhang Zhengyou et al.) to calibrate the camera array to ensure the accuracy of subsequent image analysis.

[0069] It collects image data containing various open / closed fan states (closed, open), covering different angles, lighting conditions, and background environments.

[0070] Preprocessing operations are performed on the original images, such as perspective transformation, to convert images taken at an angle to normal images, ensuring that images taken from different angles can be correctly interpreted.

[0071] Use annotation tools (such as Labelme) to annotate the edges of the open sector and the switch status in the image, and perform data augmentation through random cropping, rotation, color adjustment, etc., to increase the diversity of the training set.

[0072] Neural network automatic window recognition: Apply object detection algorithms (such as YOLO, Faster R-CNN, etc.) to detect open sectors in two images and generate the bounding box and confidence score for each object.

[0073] The detection process not only relies on image content, but also combines background modeling and motion detection algorithms to accurately determine whether doors and windows are not locked.

[0074] Geometrically constrained open sector matching: The matching score of the same open sector between two images from different viewpoints is calculated, taking into account factors such as confidence score, vertical coordinate offset, and intersection-over-union ratio (IoU).

[0075] Successfully matched pairs of open sectors are selected, meaning they are considered to represent open sectors in the same physical world. This is done by iterating through the bounding boxes in both images and retaining the pair with the highest matching score in each pair.

[0076] Binocular-based open sector positioning: Using binocular vision triangulation and camera calibration parameters, the coordinates (X, Y, Z) of an object in three-dimensional space are calculated based on the matched image pixel coordinates.

[0077] Based on the calculated depth information Z, the height Y of the operable window, as well as the floor L or number of units it occupies, can be further determined. For a pair of horizontally placed cameras, the number of units the window occupies can be determined.

[0078] Alarm and feedback mechanism: When the system detects that a window is open, it triggers an alarm and sends feedback information to the building management personnel, providing the specific location of the open window (floor and number of units).

[0079] The system saves images and videos of the test results for administrators to verify and process, ensuring that any abnormalities can be responded to in a timely manner.

[0080] Example 1 I. Application Scenarios This invention is applicable to any glass curtain wall building, using fixed cameras installed at the base of the building to monitor the status of each window in real time. The system uses deep neural networks for window contour recognition, combined with background modeling and motion detection algorithms, to accurately determine whether doors and windows are not locked.

[0081] II. Process (1) Installation of cameras and setting up of monitoring areas: Fixed cameras are installed at the base of glass curtain wall buildings to ensure that the monitoring range covers all windows. For example... Figure 1 As shown, to determine the location of an open fan, cameras need to be arranged in an array, meaning at least two pairs of cameras are required. The cameras capture images at fixed time intervals, which are then transmitted to the cloud via the Internet of Things (IoT) for intelligent analysis.

[0082] (2) Data acquisition and processing: Before data acquisition, the camera array was calibrated using the camera calibration method of Zhang Zhengyou et al. Then, image data containing various operable sash states (closed and open) of the curtain wall was acquired, covering different angles, lighting conditions, and background environments. Labelme and other annotation tools were used to annotate the dataset, marking the edges of operable sashes in open and closed states. The dataset needed to cover multiple types of operable sashes (such as top-hinged and casement sashes) and complex backgrounds. Data augmentation was then performed through random cropping, rotation, and color adjustments.

[0083] In addition, perspective transformation of the image is required before recognition, such as... Figure 2-3 As shown, the image taken at an angle is converted to a normal orientation.

[0084]

[0085] (3) Automatic window recognition via neural network: First, object detection algorithms (such as YOLO, Faster R-CNN, etc.) are used to detect open sectors in the two images, and the bounding box and confidence score for each object are generated. Taking a pair of vertically placed cameras as an example, the detection output is as follows: Image 1:

[0086] Image 2:

[0087] in, and Representing the first two images respectively i and the j The target bounding box represents the open sector detected by the neural network. and These represent the pixel coordinates of the four corner points of the bounding box. , These are the confidence scores, respectively. Figure 4-5 The image shows the detection results of one of the cameras.

[0088]

[0089] (4) Open sector matching based on geometric constraints: Let's continue with the example of a pair of vertically placed cameras. In binocular vision, the two cameras are aligned vertically, and parallax mainly occurs in the vertical coordinate direction (assuming stereo camera calibration is complete). Therefore, the horizontal coordinates of the same object are almost identical in both images, while the vertical coordinates will be slightly offset.

[0090] Using the vertical coordinate constraint as a filtering condition, the center coordinates of the bounding box in the image are: Set the vertical constraint condition as .

[0091] If the detected open sector positions and shapes are similar in two images, their IoU is calculated and used as another filtering criterion.

[0092] Based on the combined confidence score, vertical coordinate constraint, and IoU constraint, the matching score is set as follows:

[0093] in, w 1, w 2, w 3 is the weighting coefficient, which is adjusted according to the actual situation.

[0094] Finally, iterate through the bounding boxes in the two images and retain the pair of boxes with the highest matching score in each pair of images. This pair of boxes is the same open sector.

[0095] (5) Binocular opening sector positioning: After matching is complete, the localization of the open fan primarily relies on binocular vision triangulation, which calculates the object's coordinates in 3D space based on the pixel coordinates of the matched images and the camera's calibration parameters, and then derives the height of the open fan from these coordinates. First, the depth Z from the camera to the open fan needs to be obtained. This depth Z is calculated using disparity, specifically by determining the horizontal offset between the two images by using the center points of the bounding boxes of the same open fan image captured by two cameras. The calculation formula is as follows:

[0096]

[0097] In the formula, and These are the center points of the bounding boxes of the same open sector in the two images. B The baseline distance (horizontal or vertical) between cameras. f This refers to the camera's focal length.

[0098] After obtaining the depth distance of the open fan Z Then, using the camera's intrinsic parameter matrix and depth information, the target's position in the world coordinate system is calculated. X, Y, Z The formula for transforming from image coordinates to camera coordinates is:

[0099]

[0100] In the formula, x and y These are arbitrary pixel coordinates within the bounding box. c x and c y These are the optical center pixel coordinates of the camera. f x and f y This refers to the camera's focal length. Taking a pair of vertically placed cameras as an example, the height Y of the opening can be determined using the above formula. Furthermore, the floor level L can be calculated based on the floor height H.

[0101] Similarly, the number of households where a window is located can be determined by using a pair of horizontally placed cameras.

[0102] (6) Alarm and Feedback Mechanism: When an open window is detected, the system will immediately trigger an alarm and send feedback information to the building management personnel, indicating the floor and number of units where the open window was detected. The system can save images and videos of the detection results for subsequent verification and processing by the management personnel.

[0103] This invention solves the problems of inefficiency, high cost, and poor accuracy of existing manual inspections through intelligent detection and positioning technology. Compared with traditional methods, this invention significantly improves inspection efficiency and safety, reduces labor costs, and can accurately locate the position of open doors, realizing the digitalization and intelligentization of building management and promoting the modernization of building maintenance and management.

[0104] The key point of this invention lies in using a combination of deep neural networks and binocular localization to achieve automatic detection and localization of the status of operable windows in glass curtain wall buildings. Specifically, it involves detecting and locating windows in the glass curtain wall using neural networks and binocular vision. First, constraints such as image coordinates, confidence scores, and intersection-over-union (IoU) are used to detect the same operable window in two images. Then, binocular localization is used to locate the building and unit number of the operable window. Finally, an alarm is triggered to feed the operable window information back to the user.

[0105] Example 2: A vertically placed binocular camera array detects and locates open windows. System Deployment Camera Installation: A pair of vertically aligned cameras were installed at the base of a high-rise building to ensure all windows were within the monitoring range. These cameras capture images at fixed time intervals (e.g., every 5 minutes) and transmit the image data to a cloud server in the data processing unit via the Internet of Things (IoT).

[0106] Data Acquisition and Preprocessing: The Zhang Zhengyou camera calibration method was used to calibrate the pair of cameras to ensure the accuracy of subsequent image analysis.

[0107] It collects image data containing various open / closed fan states (closed, open), covering different angles, lighting conditions, and background environments.

[0108] A perspective transformation is applied to the original image to convert an image taken at an angle to an upright image, ensuring that images taken from different angles can be correctly interpreted.

[0109] Detection and Matching Neural network recognition: The YOLOv5 target detection algorithm is applied to detect open sectors in two images and generate the bounding box and confidence score for each target.

[0110] Geometrically constrained open sector matching: The matching score of the same open sector between two images from different viewpoints is calculated, taking into account confidence score, vertical coordinate offset, and intersection-over-union (IoU). Successfully matched open sector pairs are selected, meaning they are considered to represent open sectors in the same physical world.

[0111] Location and Feedback Binocular vision positioning: Using triangulation combined with camera calibration parameters, the coordinates (X, Y, Z) of the object in three-dimensional space are calculated based on the matched image pixel coordinates, and the height Y of the opening fan and the floor L where it is located are determined.

[0112] Alarm and feedback mechanism: When the system detects that a window is open, it triggers an alarm and sends feedback information to building management personnel, providing the specific location of the open window (floor and number of units). The system saves images and videos of the detection results for management personnel to verify and process.

[0113] Example 3: A horizontally placed binocular camera array detects and locates open windows. System Deployment Camera Installation: A pair of horizontally aligned cameras were installed at different locations on the same floor to ensure that all windows on that floor were within the monitoring range. These cameras also captured images at fixed time intervals and uploaded them to the cloud server of the data processing unit via the Internet of Things (IoT).

[0114] Data Acquisition and Preprocessing: The Zhang Zhengyou camera calibration method was used to calibrate the pair of cameras to ensure the accuracy of image resolution.

[0115] It collects image data containing various open / closed fan states (closed, open), covering different angles, lighting conditions, and background environments.

[0116] Perform preprocessing operations on the original image, such as perspective transformation, to ensure that the image can be correctly interpreted.

[0117] Detection and Matching Neural network recognition: The Faster R-CNN target detection algorithm is applied to detect open sectors in two images and generate the bounding box and confidence score for each target.

[0118] Geometrically constrained open sector matching: The matching score of the same open sector between two images from different viewpoints is calculated, taking into account confidence score, horizontal coordinate offset, and intersection-over-union (IoU). Successfully matched open sector pairs are selected, meaning they are considered to represent open sectors in the same physical world.

[0119] Location and Feedback Binocular vision positioning: Using triangulation combined with camera calibration parameters, the coordinates (X, Y, Z) of the object in three-dimensional space are calculated based on the matched image pixel coordinates, and the horizontal position X of the open fan and the number of households it is located in are determined.

[0120] Alarm and feedback mechanism: When the system detects that a window is open, it triggers an alarm and sends feedback information to building management personnel, providing the specific location of the open window (floor and number of units). The system saves images and videos of the detection results for management personnel to verify and process.

[0121] These two embodiments demonstrate how the technology of the present invention can flexibly adjust the camera arrangement according to the needs of different scenarios, thereby achieving efficient and accurate detection and positioning of the open / closed status of windows. Whether the camera array is placed vertically or horizontally, it ensures that all windows to be monitored are within the monitoring range and accurately provides the location information of open / closed windows, improving the building's security management level.

[0122] The above description is only a preferred embodiment of the present invention and does not limit the scope of the invention. All equivalent structural transformations made under the inventive concept of the present invention using the description and drawings of the present invention, or direct / indirect applications in other related technical fields, are included within the protection scope of the present invention.

Claims

1. A neural network binocular ranging system for detecting and locating openable sector switches, characterized in that, The system includes: A camera array, comprising at least two pairs of cameras, wherein the two cameras of the first pair are aligned vertically and the two cameras of the second pair are aligned horizontally, for capturing images of the operable windows of the glass curtain wall from different perspectives; The data processing unit includes a cloud server, which is used to receive image data collected by the camera array and perform intelligent analysis. The intelligent analysis includes performing target detection on two images from different perspectives collected by the same camera to identify open or unlocked windows in the two images from different perspectives, and generating the bounding box, the center coordinates of the bounding box, and the confidence score of each open window. The matching module is used to generate a matching score for two images from different viewpoints captured by the same camera pair, based on the center coordinate constraints of the bounding box of the same opening sector, the confidence score, and the intersection-over-union ratio (IoU). It then traverses each bounding box in the two images from different viewpoints and retains the box pair with the highest matching score as the successfully matched opening sector pair of the same physical opening sector. The positioning module is used to, after obtaining the successfully matched open fan pair, use the coordinate difference between the center points of the two bounding boxes of the successfully matched open fan pair in the baseline direction of the corresponding camera pair as the disparity, and calculate the depth Z of the open fan according to Z=f×B / Disparity, where f is the camera focal length and B is the baseline distance of the corresponding camera pair; then calculate the position (X, Y, Z) of the open fan in the world coordinate system according to the camera intrinsic parameter matrix and the depth Z, wherein the floor L is determined according to the height Y and floor height H determined by the first camera pair, and the number of households is determined according to the horizontal position X determined by the second camera pair, so as to form the joint positioning information of the floor and the number of households of the open fan; The alarm feedback module is used to trigger an alarm when it detects that an openable door is in an open or unlocked state, and to send feedback information containing the combined location information of the floor and the number of households to the building management personnel.

2. The system according to claim 1, characterized in that: The camera array captures images at fixed time intervals and transmits the images to the cloud server of the data processing unit for processing via the Internet of Things.

3. The system according to claim 1, characterized in that: The data processing unit also includes a data augmentation module, which performs perspective transformation, random cropping, rotation, and color adjustment operations on the original image to enrich the training set and improve the model's generalization ability.

4. The system according to claim 1, characterized in that: The data processing unit is equipped with a deep neural network model, which is used to select or adaptively adjust according to different site conditions of curtain wall buildings in order to improve the detection effect of operable sashes.

5. The system according to claim 1, characterized in that: The alarm feedback module adopts real-time monitoring or timed monitoring, periodically summarizing and analyzing the results and sending reports to reduce the real-time computing burden and operating costs of the system.

6. A neural network binocular ranging method for detecting and locating a fan switch, based on the system described in any one of claims 1-5, characterized in that, The method includes the following steps: S1. Set up at least two pairs of cameras, where the two cameras of the first pair are aligned vertically and the two cameras of the second pair are aligned horizontally to ensure that the window to be monitored is within the monitoring range and to collect images of the opening sash of the glass curtain wall from different angles at set time intervals. S2 uploads image data to the data processing unit via the Internet of Things, and performs target detection on two images from different perspectives captured by the same camera in the cloud. It identifies open or unlocked windows in the two images from different perspectives and generates the Bounding Box, Bounding Box center coordinates and confidence score for each open window. S3: For two images from different perspectives captured by the same camera, a matching score is formed based on the center coordinate constraints of the Bounding Box of the same opening sector, the confidence score, and the Intersection over Union (IoU). The Bounding Boxes in the two images from different perspectives are traversed, and the box pair with the highest matching score is retained as the successfully matched opening sector pair of the same physical opening sector. S4. After obtaining the successfully matched open fan pair, the coordinate difference between the center points of the two bounding boxes of the successfully matched open fan pair in the baseline direction of the corresponding camera pair is used as the disparity. The depth Z of the open fan is calculated according to Z=f×B / Disparity. Then, the position (X, Y, Z) of the open fan in the world coordinate system is calculated according to the camera intrinsic parameter matrix and the depth Z. The floor L is determined according to the height Y and floor height H determined by the first camera pair, and the number of households is determined according to the horizontal position X determined by the second camera pair, so as to form the joint positioning information of the floor and the number of households of the open fan. S5. When it is detected that the opening fan is in the open state or not locked, an alarm is triggered and feedback containing the floor and number of households is sent to the building management personnel.

7. The method according to claim 6, characterized in that: In step S2, the processing and analysis further includes preprocessing the labeled image dataset to ensure that images taken from different angles can be correctly parsed, thereby improving the accuracy of subsequent detection.

8. The method according to claim 6, characterized in that: In step S2, the target detection algorithms include YOLO and Faster R-CNN, and the most suitable model is flexibly selected according to the actual application scenario to generate the bounding box and confidence score of each target in order to optimize detection efficiency and accuracy.

9. The method according to claim 6, characterized in that: In step S3, based on geometric constraints, namely vertical coordinate offset and IoU value, the matching score of the open sector between the two images is calculated, and the successfully matched open sector pairs are filtered out, so as to more accurately confirm the identity of the open sector.

10. The method according to claim 6, characterized in that: In step S5, in addition to real-time feedback, a timed monitoring mode is also set to reduce the real-time computing load of the system and allow the system to perform data processing and analysis during off-peak hours, thereby reducing operating costs.

Citation Information

Patent Citations

  • Method and device for detecting open states of opening windows of glass curtain wall, equipment and medium

    CN113435508A

  • Pipeline defect detecting, positioning and ranging system based on binocular stereoscopic vision

    CN115272271A