A method and system for evaluating building fire safety
By identifying and calculating the actual vehicle spacing and smoothness, combined with vehicle saturation and width, the difficulty of passing and giving way to fire passages is solved, which solves the problem of inaccurate detection of fire passage occupancy in the existing technology and realizes the fire safety of buildings. accurate real-time assessment.
Patent Information
- Application Number
- CN202410898990.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-05
AI Technical Summary
Existing fire passage occupancy detection methods ignore passive occupancy conditions such as traffic jams and the impact of fire passage occupancy ratio on the entry and exit of fire trucks, resulting in inaccurate fire safety assessments of buildings and false alarms.
By collecting road images of building scenes in real time, we can identify and label small cars, calculate the actual distance between cars and smoothness, combine the vehicle saturation and width of fire passages and other passages, calculate the difficulty of passing and giving way, evaluate the fire safety factor, and avoid images Errors caused by changes in position and angle of the acquisition device.
Real-time dynamic assessment of building fire safety is achieved, the assessment results are more accurate, suitable for different usage scenarios, and the applicability of the method is improved.
Smart Images

Figure CN118429905B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fire safety technology, and more specifically, to a building fire safety assessment method and system. Background Art
[0002] With the development and progress of society, various types of buildings such as high-rise and large buildings in cities are increasing day by day, which enriches people's production and life, but also creates some safety problems. When a fire or other emergency occurs in a building, the fire truck needs to reach the building through the fire passage to rescue. The occupancy of the fire passage can be used to evaluate the fire safety of the building.
[0003] At present, the patent application document with the publication number CN115810171A discloses a fire passage occupancy detection method and system based on deep learning, which includes: determining sample data for training, training a fire passage feature extraction model M_R; responding to a detection request, obtaining video data in a monitoring device, wherein the video data contains continuous image frames P to be detected, and applying the feature extraction model M_R to sequentially perform fire passage occupancy detection on the image frames P to be detected; setting segments for the detected video data, and counting the percentage of the number of image frames in which the fire passage is occupied in the continuous image frames of any segment of 30 seconds of video data to the total number of image frames as IL_Ratio; comparing and detecting IL_Ratio according to a preset alarm threshold IL_Threshold, if IL_Ratio is greater than or equal to the set alarm threshold IL_Threshold, triggering a fire passage occupied message alarm. By comparing the results to determine the occupancy of the building's fire passage, the fire safety of the building can be evaluated.
[0004] However, the above method directly compares the cosine similarity between the target channel sub-image features and the benchmark library features to determine whether the fire passage is occupied. Although it can determine whether the fire passage is vacant, or whether there are private cars, vendors and pedestrians occupying the fire passage, it ignores the passive occupation of the fire passage due to traffic jams, and ignores the degree of influence of the fire passage occupancy ratio on the entry and exit of fire trucks. In addition, the above method uses a mask to shield the area outside the fire passage in the image, but the area outside the fire passage is also of reference significance for fire passage occupancy detection. Therefore, it will lead to inaccurate assessment of building fire safety and produce false alarms. Summary of the invention
[0005] In order to solve the technical problem that the fire safety detection method in the prior art provides inaccurate assessment results of building fire safety, the present invention provides solutions in the following aspects.
[0006] In a first aspect, the present invention provides a method for assessing fire safety of a building, comprising: acquiring a road image under a building scene in real time, identifying each small car in the road image and marking each small car with a target frame; calculating the corresponding actual inter-vehicle distance according to the difference in ordinate coordinates of the center points of the target frames of each group of front and rear adjacent small cars on the road image and the sum of the target frame heights, wherein the actual inter-vehicle distance is positively correlated with the difference in ordinate coordinates and negatively correlated with the sum of the heights; and then obtaining the minimum inter-vehicle distance on the fire passage of the road, which is recorded as a first inter-vehicle distance, and the minimum inter-vehicle distance on other passages of the road, which is recorded as a second inter-vehicle distance; calculating the smoothness of the road according to the first inter-vehicle distance and the second inter-vehicle distance, wherein the smoothness is positively correlated with both the first inter-vehicle distance and the second inter-vehicle distance; determining the maximum change in the smoothness within a preset time period, and using the maximum change as the fire safety factor of the building.
[0007] The building fire safety assessment method of the present invention, when calculating the inter-vehicle distances of each group of adjacent small cars, not only takes into account the relationship between the difference in the ordinates of the target frames of the same group of small cars and the actual inter-vehicle distances of the group of small cars, but also takes into account the phenomenon that small cars in the captured image are smaller at a distance and larger at a near distance, so that the minimum inter-vehicle distances on the fire passage and the minimum inter-vehicle distances on other passages obtained are more in line with the actual situation, and further the calculated degree of smoothness of the road is more in line with the actual situation; the degree of smoothness of the road is calculated based on the more actual minimum inter-vehicle distance, rather than the distance on the map, so as to avoid the errors caused by changes in the installation position and angle of the image acquisition device, so that the method of the present invention is suitable for different usage scenarios, and the applicability of the method of the present invention is improved.
[0008] Since the degree of smoothness corresponding to a single-frame image can only measure the safety factor of the fire passage corresponding to the building at a certain moment, misjudgment may occur when there are many vehicles and the vehicle mobility is strong. The change in the degree of smoothness within a preset time period is used to measure the mobility of vehicles on the road and the fire safety factor of the building, so that the calculation result of the fire safety factor of the building is more accurate. The building fire safety assessment method of the present invention can perform real-time dynamic assessment of the fire safety of the building, and the assessment result is relatively accurate.
[0009] In one embodiment, the actual vehicle spacing d is calculated as:
[0010] ;
[0011] In the formula, and Respectively represent the ordinates of the target frames of the two small cars in front and behind, and are the heights of the target boxes of the two cars respectively, and H is the average length of a regular small car.
[0012] The actual vehicle spacing d calculation expression of the present invention calculates the actual vehicle spacing based on the principle of similar triangles and combines the average value of the length of small cars, so that the calculated actual vehicle spacing is more consistent with the actual situation.
[0013] In one embodiment, calculating the degree of road smoothness includes:
[0014] The difficulty of giving way for other vehicles when the fire truck passes through the fire passage is calculated based on the first vehicle spacing, the second vehicle spacing and the fire truck's passage difficulty; the giving way difficulty is positively correlated with the passage difficulty, and negatively correlated with the first vehicle spacing and the second vehicle spacing; the passage difficulty is negatively correlated with the width of the fire passage, the width of the other passages and the width of the non-passage vehicle-movable area of the road; the smoothness is calculated based on the giving way difficulty and the vehicle sparseness on the road, and the smoothness is negatively correlated with the giving way difficulty and positively correlated with the vehicle sparseness; the vehicle sparseness is positively correlated with the average vehicle spacing on the fire passage and the other passages.
[0015] When calculating the smoothness of a road, the method of the present invention not only takes into account the effect of the first vehicle spacing and the second vehicle spacing on the difficulty of giving way for other small cars on the road when the fire truck passes, but also takes into account the effect of the width of the fire passage, the width of other passages, and the width of the non-passage vehicle-movable area on the difficulty of giving way for small cars. In addition, the effect of the vehicle sparseness on the road on the normal passage of the fire truck is also taken into account, thereby making the calculated smoothness more accurate.
[0016] In one embodiment, the calculation expression of the passage difficulty is:
[0017]
[0018] in, The difficulty of fire trucks passing through. is the width of the fire truck, is the average width of a small car, is the width of the fire passage, For other channel widths, The width of the non-channel area where vehicles can be moved. is the number of other channels.
[0019] When calculating the difficulty of passage using the calculation expression of the difficulty of passage of the present invention, the width of the fire truck, the width of the passage that can be vacated when a small car exists on the fire passage, the width of the passage that can be vacated when a small car exists on other passages, the width of the non-passage area where cars can be moved, and the influence of the number of other passages on the difficulty of passage are comprehensively considered, thereby making the calculated difficulty of passage more accurate.
[0020] In one embodiment, the method for calculating the difficulty of giving way includes:
[0021] The vehicle saturation E on the fire lane is calculated according to the number of small cars on the fire lane, and the vehicle saturation F on other lanes is calculated according to the number of small cars on other lanes; the difficulty of giving way is calculated according to the vehicle saturation E on the fire lane, the vehicle saturation F on other lanes, the first vehicle spacing, the second vehicle spacing and the difficulty of passing, and the difficulty of giving way is positively correlated with the difficulty of passing, the vehicle saturation E on the fire lane and the vehicle saturation F on other lanes, and negatively correlated with the first vehicle spacing and the second vehicle spacing.
[0022] When calculating the difficulty of giving way, not only the first vehicle distance and the second vehicle distance are taken into consideration, but also the vehicle saturation on the fire lane and the vehicle saturation on other lanes are taken into consideration, so that the calculated difficulty of giving way is more accurate.
[0023] In one embodiment, the calculation expression of the difficulty of giving way is:
[0024] ;
[0025] in, is the difficulty of giving way at the time of acquisition corresponding to the i-th frame of road image, is the difficulty of passage of fire trucks at the time of collection, and are respectively a set of actual vehicle spacings of each group of small cars on the fire channel and other channels at the time of collection, min() is the minimum function, exp() is an exponential function with the natural constant e as the base, and are the first inter-vehicle distance and the second inter-vehicle distance at the collection time, respectively; E represents the vehicle saturation on the fire lane; F represents the vehicle saturation on other lanes; represents the weight coefficient, .
[0026] When the calculation expression of the difficulty of giving way is used to calculate the difficulty of giving way, not only the influence of the saturation of vehicles and the minimum vehicle spacing on the difficulty of giving way on the fire lane is taken into account, but also the influence of the saturation of vehicles and the minimum vehicle spacing on the difficulty of giving way on other lanes is taken into account; more emphasis is placed on the influence of the minimum vehicle spacing and the number of vehicles on the fire lane on the difficulty of giving way, thereby making the calculated difficulty of giving way more accurate.
[0027] In one embodiment, the calculation expression of the vehicle saturation E on the fire channel is:
[0028] ;
[0029] The calculation expression of the vehicle saturation F on the other channels is:
[0030] ;
[0031] In the above two formulas, and Respectively represent the number of small cars on the fire channel and other channels at the time of collection, and Respectively represent the maximum number of small cars that the fire passage and other passages can accommodate.
[0032] In one embodiment, the calculation expression of the patency is:
[0033]
[0034] In the formula, is the smoothness of the road at the time of acquisition corresponding to the i-th frame of road image, is the difficulty of giving way at the time of collection, is the vehicle sparsity at the acquisition moment, and exp() is an exponential function with the natural constant e as the base.
[0035] In one embodiment, the calculation expression of the vehicle sparsity is:
[0036]
[0037] In the formula, is the vehicle sparsity at the acquisition time corresponding to the i-th frame road image, is the distance between the Mth vehicle and the vehicle before it in the fire channel at the time of collection, is the distance between the Mth vehicle and its previous vehicle in other channels at the time of collection, is the number of vehicles in the fire lane identified at the time of collection, is the number of vehicles in other channels identified at the time of collection, is the actual length of the channel corresponding to the i-th frame road image.
[0038] In a second aspect, the present invention provides a building fire safety assessment system, comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the building fire safety assessment method of the present invention is implemented.
[0039] The technical effect of the present invention is that the building fire safety assessment method of the present invention can be used to conduct real-time dynamic assessment of the fire safety of a building, and the assessment result is relatively accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0041] Figure 1 is a flow chart schematically illustrating a method for assessing building fire safety according to an embodiment of the present invention;
[0042] Figure 2 is a schematic diagram schematically showing the regional distribution of roads according to an embodiment of the present invention;
[0043] Figure 3 is a schematic diagram schematically showing the positional relationship between front and rear vehicles according to an embodiment of the present invention;
[0044] Figure 4 is a flow chart schematically illustrating a method for calculating the smoothness of a road according to an embodiment of the present invention;
[0045] Figure 5 is a flow chart schematically illustrating a method for calculating the difficulty of giving way according to an embodiment of the present invention;
[0046] Figure 6 The figure is a schematic diagram showing the structure of a building fire safety assessment system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0048] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0049] Example of building fire safety assessment method:
[0050] like Figure 1 As shown, the building fire safety assessment method of the present invention comprises:
[0051] S101, identifying and labeling small cars, specifically: collecting road images under building scenes in real time, identifying each small car in the road image and labeling each small car with a target frame.
[0052] like Figure 2 As shown, the collected road image in the building scene includes a fire passage 2, other passages 1, a non-passage area where vehicles can be moved 3, and an area 4 such as a building area where vehicles cannot be moved.
[0053] The YOLOv5 object detection neural network can be used to identify the small car in the image. The training process of the YOLOv5 object detection neural network is as follows:
[0054] (1) Collect images of the current scene in different time periods, and mark the vehicles in each image separately to obtain the location of the target box size of each vehicle in the image, thereby forming a dataset.
[0055] (2) Use the samples in the data set to train the YOLOv5 target detection neural network to obtain a trained YOLOv5 target detection neural network.
[0056] The training process is an existing technology and will not be described in detail here.
[0057] After marking each small car, the size, position and number of the target frames on the fire channel, as well as the size, center point coordinates and number of the target frames of vehicles in other channel areas can be counted. The vehicles are sorted in ascending order according to the vertical coordinates of the center points of the identified vehicle target frames to obtain a vehicle sequence. For example, three vehicle target frames are identified on the fire channel. Their center coordinates are car 1 (30, 50), car 2 (35, 200), and car 3 (30, 100). The vehicle sequence obtained is {car 1 (30, 50), car 3 (30, 100), car 2 (35, 200)}.
[0058] S102, calculating the first inter-vehicle distance and the second inter-vehicle distance, specifically: calculating the corresponding actual inter-vehicle distance according to the difference in ordinate coordinates of the center points of the target frames of each group of adjacent small cars on the road image and the sum of the target frame heights, wherein the actual inter-vehicle distance is positively correlated with the difference in ordinate coordinates and negatively correlated with the sum of the heights; and then obtaining the minimum inter-vehicle distance on the fire lane of the road, which is recorded as the first inter-vehicle distance, and the minimum inter-vehicle distance on other lanes of the road, which is recorded as the second inter-vehicle distance.
[0059] For example, assuming that a group of adjacent small cars are small car X and small car Y, the ordinate of the center point of the target frame of small car X is a, and the ordinate of the center point of the target frame of small car Y is b, then the difference between the ordinate of the center point of the target frame of small car X and the ordinate of the center point of the target frame of small car Y is ab.
[0060] Since each small car on the road image is surrounded by a different target frame, and the center point of the target frame can represent the center point of the small car under the perspective of the image shooting, for the small cars adjacent to each other on the road image, the larger the difference between the ordinates of the corresponding target frame centers is, the larger the distance between the two small cars is. Considering that the small cars on the captured image are small in the distance and large in the near distance, for a small car with a larger ordinate, even if the difference between the ordinates of the center point of its corresponding target frame and the center point of the target frame corresponding to the front car is small, the distance between the small car and the front car may still be large. In addition, the height of the corresponding target frame of the small car with a larger ordinate is smaller. Therefore, when calculating the actual vehicle distance, the sum of the target frame height of the rear car and the target frame height of the front car is further combined, and the sum of the target frame height of the rear car and the target frame height of the front car is negatively correlated with the actual vehicle distance, so that the calculated actual vehicle distance is more accurate.
[0061] S103, calculating the degree of smoothness, specifically: calculating the degree of smoothness of the road according to the first inter-vehicle distance and the second inter-vehicle distance, the degree of smoothness is positively correlated with the first inter-vehicle distance and the second inter-vehicle distance.
[0062] The larger the minimum vehicle spacing on the fire lane and the minimum vehicle spacing on other lanes, the easier it is for fire trucks to pass through. Therefore, when calculating the degree of unobstructedness, the degree of unobstructedness is made positively correlated with both the first vehicle spacing and the second vehicle spacing, so that the calculation result of the degree of unobstructedness is more accurate.
[0063] S104. Obtaining the fire safety factor of the building, specifically: determining the maximum change in the degree of unobstructedness within a preset time period, and using the maximum change as the fire safety factor of the building.
[0064] Since multiple frames of road images are continuously collected within a preset time period, the degree of smoothness corresponding to each frame of the road image can be calculated respectively, thereby obtaining the maximum change in the degree of smoothness.
[0065] Since the smoothness can only measure the safety factor of the building corresponding to the fire passage in a single frame image, and the smoothness is constantly changing when the traffic is constantly passing through the passage, the fire safety factor of the building corresponding to the fire passage in the current time period is measured by the maximum change in the smoothness within the preset time length. When the value is larger, it means that the traffic in the fire passage in the current time period is more likely to be constantly flowing, the fire passage is relatively smooth, and the fire trucks can easily reach the building in the current time period. The fire safety factor of the building corresponding to the fire passage is higher; when the value is smaller, it means that the traffic in the fire passage in the current time period is more likely to be blocked, and the fire trucks can hardly reach the building in the current time period. The fire safety factor of the building corresponding to the fire passage is lower. When the number of small cars on the fire passage and other passages is less than or equal to 1, it means that the road is very smooth, fire trucks are most likely to pass through the road, and the fire safety factor of the building corresponding to the fire passage is the highest.
[0066] The building fire safety assessment method of the present invention, when calculating the inter-vehicle distances of each group of adjacent small cars, not only takes into account the relationship between the difference in the ordinates of the target frames of the same group of small cars and the actual inter-vehicle distances of the group of small cars, but also takes into account the phenomenon that small cars in the captured image are smaller at a distance and larger at a near distance, so that the minimum inter-vehicle distances on the fire passage and the minimum inter-vehicle distances on other passages obtained are more in line with the actual situation, and further the calculated degree of smoothness of the road is more in line with the actual situation; the degree of smoothness of the road is calculated based on the more actual minimum inter-vehicle distance, rather than the distance on the map, so as to avoid the errors caused by changes in the installation position and angle of the image acquisition device, so that the method of the present invention is suitable for different usage scenarios, and the applicability of the method of the present invention is improved.
[0067] Since the smoothness corresponding to a single-frame image can only measure the safety factor of the building corresponding to the fire passage at a certain moment, misjudgment may occur when there are many vehicles and the vehicle mobility is strong. The change in the smoothness within a preset time period is used to measure the mobility of vehicles on the road and the fire safety factor of the building, so that the calculation result of the fire safety factor of the building is more accurate. The building fire safety assessment method of the present invention can be used to conduct a real-time dynamic assessment of the fire safety of the building, and the assessment result is relatively accurate. When a fire occurs in the building corresponding to the fire passage, the fire truck can choose a road with a larger fire safety factor according to the size relationship of the fire safety factors corresponding to each road, so that the fire truck can carry out rescue in time.
[0068] In this embodiment, if the number of small cars on the fire passage and other passages is less than or equal to 1, the fire safety factor of the building is directly cancelled to the maximum value of the fire safety factor. In this embodiment, the maximum value of the fire safety factor is 1, and other appropriate values may be taken in other embodiments.
[0069] When calculating the fire safety factor of a building, if there are very few vehicles, the fire safety factor of the building can be directly assigned the maximum value, thereby improving the efficiency of the fire safety factor calculation.
[0070] It can be seen from the above embodiments that the actual inter-vehicle distance is positively correlated with the difference in the ordinates of the center points of the target frames of the front and rear adjacent small cars, and negatively correlated with the sum of the heights of the target frames of the front and rear adjacent small cars. In one embodiment, for a group of front and rear adjacent small cars, the calculation expression of the actual inter-vehicle distance d is:
[0071] ;
[0072] In the formula, and Respectively represent the ordinates of the target frames of the two small cars in front and behind, and are the heights of the target frames of the front and rear small cars respectively, and H is the average length of a regular small car.
[0073] In this embodiment, the average actual length of a small car can be obtained through experiments, for example: all small cars passing by the target road and the specifications of each small car are counted in a preset time period, and the specifications of small cars are divided into Class A, Class A+ and Class B, and the average length of each small car is calculated as the average actual length of the small car. Since the length difference between Class A, Class A+ and Class B vehicles is not large, in another embodiment, the average of the regular length of Class A cars, the regular length of Class A+ cars and the regular length of Class B cars can also be calculated as the average actual length of the small car.
[0074] like Figure 3 As shown in the figure, the derivation process of the calculation expression of the actual vehicle spacing d is as follows:
[0075] Half of the length of the body side of the rear vehicle on the road image is recorded as d2, and the length from the intersection of the extended line of the body side of the rear vehicle and the front vehicle to the left front corner of the rear vehicle is recorded as d1.
[0076] From the principle of similar triangles, it is easy to know , and then there is ;
[0077] The ratio of the length of the vehicle in the image to the actual length of the vehicle can be obtained , and then there is ,Will Substituting the expression of into this formula, we get: .
[0078] The actual inter-vehicle distance d calculation expression of this embodiment calculates the actual inter-vehicle distance based on the principle of similar triangles and combines the average length of small cars for calculation, so that the calculated actual inter-vehicle distance is more in line with the actual situation.
[0079] It can be seen from the above embodiments that the degree of unobstructedness is positively correlated with both the first inter-vehicle distance and the second inter-vehicle distance, such as Figure 4 As shown, in one embodiment, calculating the smoothness of a road includes:
[0080] S401. Calculating the difficulty of giving way, specifically: calculating the difficulty of giving way for other vehicles when the fire truck passes through the fire passage based on the first car distance, the second car distance and the difficulty of fire truck passage; the difficulty of giving way is positively correlated with the difficulty of passage, and negatively correlated with the first car distance and the second car distance; the difficulty of passage is negatively correlated with the width of the fire passage, the width of other passages and the width of the non-passage area of the road where vehicles can be moved.
[0081] S402. Calculate the degree of smoothness, specifically: calculate the degree of smoothness based on the difficulty of giving way and the density of vehicles on the road, the degree of smoothness is negatively correlated with the difficulty of giving way, and positively correlated with the density of vehicles; the density of vehicles is positively correlated with the average distance between vehicles on the fire lane and other lanes.
[0082] When calculating the smoothness of the road, not only is the impact of the first and second car spacing on the difficulty of other small cars on the road giving way when the fire truck passes taken into account, but also the impact of the width of the fire passage, the width of other passages and the width of the non-passage area where cars can be moved on the difficulty of small cars giving way is taken into account. In addition, the impact of the vehicle sparseness on the road on the normal passage of fire trucks is also taken into account, so that the calculated smoothness is more accurate.
[0083] The groups of front-to-back adjacent small cars mentioned in the above embodiments include both the front-to-back adjacent small cars on the fire passage and the front-to-back adjacent small cars on other passages; after calculating the actual inter-vehicle distances corresponding to the groups of front-to-back adjacent small cars, the actual inter-vehicle distances of the groups of front-to-back adjacent small cars on the fire passage are averaged to obtain the average inter-vehicle distance on the fire passage; similarly, the actual inter-vehicle distances of the groups of front-to-back adjacent small cars on other passages are averaged to obtain the average inter-vehicle distance on other passages.
[0084] It can be seen from the above embodiments that the difficulty of passage is negatively correlated with the width of the fire passage, the width of other passages, and the width of the non-passage area of the road where the vehicle can be moved. In one embodiment, the calculation expression of the difficulty of passage is:
[0085]
[0086] in, The difficulty of fire trucks passing through. is the width of the fire truck, is the average width of a small car, is the width of the fire passage, For other channel widths, The width of the non-channel area where vehicles can be moved. is the number of other channels.
[0087] It represents the width of the lane that can be vacated on other lanes when there are private cars on other lanes. The width of the fire passage that can be vacated when there is a private car on the passage. The width of the fire lane and other lanes that can be reserved when there are private cars on both lanes. The larger the width, the easier it is for fire trucks to pass when there are private cars on both lanes. The smaller the width, the more difficult it is for fire trucks to pass when there are private cars on both lanes. and The ratio between them can be used as the difficulty for fire trucks to pass in the current scenario. Usually, the width of a fire truck is is fixed, when The smaller the ratio is, the greater the difficulty for the fire truck to pass through the passage in this scene. The larger the value, the smaller the ratio, and the easier it is for the fire truck to pass through the passage in this scenario. Usually n is 0 or 1, 0 means there is no other passage, and 1 means there is another passage next to the fire passage. Because usually, the difference between the width of the fire passage and the width of a small car, and the sum of the width of the non-passageway area where the car can be moved are greater than the width of the fire truck, therefore, usually, the value of the difficulty of passage is less than 1.
[0088] When calculating the difficulty of passage using the calculation expression of the difficulty of passage in this embodiment, the width of the fire truck, the width of the passage that can be vacated when a small car exists on the fire passage, the width of the passage that can be vacated when a small car exists on other passages, the width of the non-passage area where cars can be moved, and the impact of the number of other passages on the difficulty of passage are comprehensively considered, thereby making the calculated difficulty of passage more accurate.
[0089] It can be seen from the above embodiments that the difficulty of giving way is positively correlated with the difficulty of passing, and negatively correlated with the first vehicle spacing and the second vehicle spacing. Figure 5 As shown, in one embodiment, for the i-th frame of road image collected, the corresponding method for calculating the difficulty of giving way includes:
[0090] S501, calculating the vehicle saturation of the fire channel and other channels, specifically: calculating the vehicle saturation E on the fire channel according to the number of small cars on the fire channel, and calculating the vehicle saturation F on other channels according to the number of small cars on other channels;
[0091] S502. Calculate the difficulty of giving way, specifically: calculate the difficulty of giving way according to the vehicle saturation E on the fire lane, the vehicle saturation F on other lanes, the first vehicle spacing, the second vehicle spacing, and the difficulty of passing. The difficulty of giving way is positively correlated with the difficulty of passing, the vehicle saturation E on the fire lane, and the vehicle saturation F on other lanes, and is negatively correlated with the first vehicle spacing and the second vehicle spacing.
[0092] The saturation of vehicles on the fire lane can, to a certain extent, indicate the density of vehicles on the fire lane. The larger the value, the more vehicles there are on the fire lane, and the more difficult it is to give way. The smaller the value, the fewer vehicles there are on the fire lane, and the easier it is to give way. However, since vehicles need a certain space to give way, when there are the same number of vehicles in the shooting scene, the distance between vehicles also affects the difficulty of vehicles giving way to the fire lane. Therefore, the difficulty of giving way is corrected by the minimum distance between vehicles on the fire lane. When the minimum distance between vehicles is larger, it means that the distance between vehicles is larger, it is easier to give way to the fire truck, and the corrected difficulty of giving way should be smaller; when the minimum distance between vehicles is smaller, it means that the distance between vehicles is smaller, it is more difficult to give way to the fire truck, and the corrected difficulty of giving way should be greater. Similarly, the more vehicles there are in other lanes, the more difficult it is to give way. On the contrary, the fewer vehicles there are, the easier it is to give way. The larger the minimum distance between vehicles on other lanes, the smaller the corrected difficulty of giving way should be. On the contrary, the smaller the minimum distance between vehicles on other lanes, the smaller the corrected difficulty of giving way should be. The method for calculating the difficulty of giving way in this embodiment not only takes into account the first vehicle spacing and the second vehicle spacing when calculating the difficulty of giving way, but also further takes into account the saturation of vehicles on the fire lane and the saturation of vehicles on other lanes, thereby making the calculated difficulty of giving way more accurate.
[0093] In one embodiment, the calculation expression of the difficulty of giving way is:
[0094] ;
[0095] ;
[0096] in, is the difficulty of giving way at the time of acquisition corresponding to the i-th frame of road image, is the difficulty of fire trucks to pass at the time of acquisition corresponding to the i-th frame of road image, and are the sets of actual vehicle spacings of each group of small cars on the fire lane and other lanes at the time of acquisition corresponding to the i-th frame of road image, min() is the minimum function, exp() is the exponential function with the natural constant e as the base, and are the first and second vehicle spacings at the time of acquisition corresponding to the i-th frame of road image, E represents the vehicle saturation on the fire lane; F represents the vehicle saturation on other lanes, Represents the weight coefficient.
[0097] Since usually, The value is less than 1, the difficulty of giving way When the value of is less than 1, The bigger it is, The smaller, The bigger, The smaller the size, the more difficult it is to give way. Similarly, when The larger the value, the more difficult it is to give way. It will get smaller.
[0098] Implementers can adjust the above two weights according to actual conditions, as long as The weight is greater than The weight obtained The larger the value of is, the sparser the vehicles in the current scene are, and the easier it is for fire trucks to pass through the fire passage. The smaller the value, the denser the vehicles in the current scene are, and the more difficult it is for the fire truck to pass through the fire passage. The bigger.
[0099] When calculating the difficulty of giving way using the calculation expression of the difficulty of giving way in this embodiment, not only the influence of the vehicle saturation and the minimum vehicle spacing on the difficulty of giving way on the fire lane is taken into account, but also the influence of the vehicle saturation and the minimum vehicle spacing on the difficulty of giving way on other lanes is taken into account; more emphasis is placed on the influence of the minimum vehicle spacing and the number of vehicles on the fire lane on the difficulty of giving way, thereby making the calculated difficulty of giving way more accurate.
[0100] In one embodiment, the calculation expression of the vehicle saturation E on the fire channel is:
[0101] ;
[0102] The calculation expression of vehicle saturation F on other channels is:
[0103] ;
[0104] In the above two formulas, and They represent the number of small cars on the fire lane and other lanes at the time of acquisition corresponding to the i-th frame of road image, and They respectively represent the maximum number of small cars that the fire passage and other passages can accommodate.
[0105] In the above embodiments, it is mentioned that k1 is greater than 0.5. In one embodiment, the value of k1 is 0.6.
[0106] It can be seen from the above embodiments that the smoothness is negatively correlated with the difficulty of giving way and positively correlated with the vehicle sparseness. In one embodiment, for the i-th frame of road image collected, the calculation expression of the smoothness is:
[0107]
[0108] In the formula, is the smoothness of the i-th frame road image at the acquisition time, is the difficulty of giving way at the time of acquisition corresponding to the i-th frame of road image, is the vehicle sparsity at the time of acquisition corresponding to the i-th frame of road image. exp() is an exponential function with the natural constant e as the base.
[0109] The larger it is, the greater the comprehensive distance between vehicles at the current moment, the easier it is for fire trucks to pass through the fire passage, and the higher the smoothness of the fire passage. The smaller the value, the smaller the comprehensive distance between vehicles at the current moment, the more difficult it is for fire trucks to pass through the fire passage, and the lower the degree of smoothness of the fire passage. and The patency is calculated and The larger it is, the greater the patency. The larger it is, the less patency it has.
[0110] It can be seen from the above embodiments that the vehicle sparsity is positively correlated with the average vehicle spacing on the fire lane and other lanes. In one embodiment, for the i-th frame of road image collected, the calculation expression of the vehicle sparsity is:
[0111]
[0112] Where, is the vehicle sparsity at the acquisition time corresponding to the i-th frame road image, is the distance between the Mth vehicle and the previous vehicle in the fire channel at the time of acquisition corresponding to the i-th frame of road image, is the distance between the Mth vehicle and its previous vehicle in other channels at the time of acquisition corresponding to the i-th frame of road image, is the number of vehicles in the fire lane identified at the time of acquisition corresponding to the i-th frame of road image, is the number of vehicles in other channels identified at the time of acquisition corresponding to the i-th frame of road image, is the actual length of the channel corresponding to the i-th frame road image.
[0113] and The values are the average distances between each vehicle and the previous vehicle in the fire channel and other channels, respectively. The larger the two values, the sparser the vehicles on the channel, and the easier it is for the fire truck to pass through, and the higher the corresponding vehicle sparsity. The smaller the value, the denser the vehicles on the channel, and the more difficult it is for the fire truck to pass through, and the lower the corresponding vehicle sparsity. and Dividing by AL is for normalization. Since fire trucks usually only travel through fire lanes, as long as the vehicles on the fire lanes are not too dense, fire trucks can pass smoothly. Therefore, compared with other lanes, the vehicle sparseness of the fire lane has a greater impact on the smooth passage of fire trucks. and The weights of 0.6 and 0.4 are applied respectively, so that the vehicle sparsity calculation result corresponding to the i-th frame image is more accurate. In other embodiments, other appropriate weights can also be applied, but it is necessary to ensure The weight is greater than The weight of .
[0114] Building fire safety assessment system implementation example:
[0115] The present invention also provides a building fire safety assessment system. Figure 6 As shown, the building fire safety assessment system includes a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the building fire safety assessment method according to the first aspect of the present invention is implemented.
[0116] The building fire safety assessment system of the present invention also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and the configuration and functions of these components are known in the art, so they will not be described in detail here.
[0117] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
[0118] Computer readable storage medium embodiment:
[0119] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly defined.
[0120] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
Claims
1. A building fire safety assessment method, characterized in that: include: Collecting a road image under a building scene in real time, identifying each small car in the road image and marking each small car with a target frame; Calculate the corresponding actual vehicle spacing according to the difference in ordinate coordinates of the center points of the target frames of each group of adjacent small cars on the road image and the sum of the target frame heights, wherein the actual vehicle spacing is positively correlated with the difference in ordinate coordinates and negatively correlated with the sum of the heights; then obtain the minimum vehicle spacing on the fire lane of the road, which is recorded as the first vehicle spacing, and the minimum vehicle spacing on other lanes of the road, which is recorded as the second vehicle spacing; Calculating the smoothness of the road based on the first vehicle spacing and the second vehicle spacing includes: calculating the difficulty of other vehicles giving way when the fire truck passes through the fire passage based on the first vehicle spacing, the second vehicle spacing and the difficulty of fire truck passage; the difficulty of giving way is positively correlated with the difficulty of passage, and negatively correlated with the first vehicle spacing and the second vehicle spacing; the difficulty of passage is negatively correlated with the width of the fire passage, the width of the other passages and the width of the non-passage vehicle-movable area of the road; calculating the smoothness based on the difficulty of giving way and the vehicle sparseness on the road, the smoothness is negatively correlated with the difficulty of giving way and positively correlated with the vehicle sparseness; the vehicle sparseness is positively correlated with the average vehicle spacing on the fire passage and the other passages; The maximum change in the degree of unobstructedness within a preset time period is determined, and the maximum change is used as the fire safety factor of the building.
2. The building fire safety assessment method according to claim 1, characterized in that: The calculation expression of the actual vehicle spacing d is: ; In the formula, and Respectively represent the ordinates of the target frames of the two small cars in front and behind, and are the heights of the target boxes of the two cars respectively, and H is the average length of a regular small car.
3. The building fire safety assessment method according to claim 1, characterized in that: The calculation expression of the passage difficulty is: ; in, The difficulty of fire trucks passing through. is the width of the fire truck, is the average width of a small car, is the width of the fire passage, For other channel widths, The width of the non-channel area where vehicles can be moved. is the number of other channels.
4. The building fire safety assessment method according to claim 1, characterized in that: The calculation method of the difficulty of giving way includes: The vehicle saturation E on the fire lane is calculated based on the number of small cars on the fire lane, and the vehicle saturation F on other lanes is calculated based on the number of small cars on other lanes; The difficulty of giving way is calculated based on the vehicle saturation E on the fire lane, the vehicle saturation F on other lanes, the first vehicle spacing, the second vehicle spacing and the difficulty of passing. The difficulty of giving way is positively correlated with the difficulty of passing, the vehicle saturation E on the fire lane and the vehicle saturation F on other lanes, and is negatively correlated with the first vehicle spacing and the second vehicle spacing.
5. The building fire safety assessment method according to claim 4, characterized in that: The calculation expression of the difficulty of giving way is: ; in, is the difficulty of giving way at the time of acquisition corresponding to the i-th frame of road image, is the difficulty of passage of fire trucks at the time of collection, and are respectively a set of actual vehicle spacings of each group of small cars on the fire channel and other channels at the time of collection, min() is the minimum function, exp() is an exponential function with the natural constant e as the base, and are the first inter-vehicle distance and the second inter-vehicle distance at the collection time, respectively; E represents the vehicle saturation on the fire lane; F represents the vehicle saturation on other lanes; represents the weight coefficient, .
6. The building fire safety assessment method according to claim 5, characterized in that: The calculation expression of the vehicle saturation E on the fire channel is: ; The calculation expression of the vehicle saturation F on the other channels is: ; In the above two formulas, and Respectively represent the number of small cars on the fire channel and other channels at the time of collection, and Respectively represent the maximum number of small cars that the fire passage and other passages can accommodate.
7. The building fire safety assessment method according to claim 1, characterized in that: The calculation expression of the patency is: ; In the formula, is the smoothness of the road at the time of acquisition corresponding to the i-th frame of road image, is the difficulty of giving way at the time of collection, is the vehicle sparsity at the acquisition moment, and exp() is an exponential function with the natural constant e as the base.
8. The building fire safety assessment method according to any one of claims 3 to 7, characterized in that: The calculation expression of the vehicle sparsity is: ; In the formula, is the vehicle sparsity at the acquisition time corresponding to the i-th frame road image, is the distance between the Mth vehicle and the vehicle before it in the fire channel at the time of collection, is the distance between the Mth vehicle and its previous vehicle in other channels at the time of collection, is the number of vehicles in the fire lane identified at the time of collection, is the number of vehicles in other channels identified at the time of collection, is the actual length of the channel corresponding to the i-th frame road image.
9. A building fire safety assessment system, comprising a processor and a memory, wherein the memory stores computer program instructions, characterized in that: When the computer program instructions are executed by the processor, the building fire safety assessment method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Fire fighting access occupation detection method and system based on deep learning
CN115810171A
Vehicle lane changing management method and lane changing management device
CN114446041A
