Method, system and computer equipment for checking fire passages
By obtaining the three-dimensional point cloud and ground area of the fire passage, calculating the area occupied by items, and using the model to identify the location and status of fire equipment, the problem of efficiency and quality in fire safety inspections is solved, and the efficiency of passage cleaning and equipment compliance is improved. Detection accuracy.
Patent Information
- Application Number
- CN202010761984.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-07-31
AI Technical Summary
In fire safety inspections, existing technology cannot effectively guarantee the efficiency and quality of fire escape inspections, making it difficult for inspectors to discover blockages and compliance issues in a timely manner.
By obtaining the three-dimensional point cloud and ground area of the binocular image of the fire passage, perform two-dimensional plane projection, calculate the ratio of the external graphic area of the object to the ground area, determine whether the passage is blocked, and use a fully trained model to identify the location, type and location of fire equipment Quantity to determine compliance and contamination.
It improves the efficiency and quality of fire safety inspections, ensures timely cleaning of passages and compliance of equipment, and reduces labor costs.
Smart Images

Figure CN112001963B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video monitoring, and in particular to a method, system and computer equipment for checking fire passages. Background Art
[0002] Whether the indoor fire escape is blocked and whether the fire-fighting equipment is reasonable or available is one of the most important contents in fire safety inspection, which is directly related to whether personnel can get timely rescue.
[0003] In relevant technologies, during the fire safety inspection process, inspectors are required to conduct careful inspections to see whether fire passages are occupied and whether fire equipment is compliant. This type of inspection requires inspectors to have a high inspection frequency, professionalism, and sense of responsibility. If inspectors do not have the above time and ability, the inspection efficiency and quality cannot be guaranteed.
[0004] With regard to the problem in related technologies that the efficiency and quality of fire safety inspections cannot be guaranteed, no effective solution has been proposed so far. Summary of the invention
[0005] With regard to the problem in the related art that the inspection efficiency and inspection quality of fire safety inspection cannot be guaranteed, the embodiments of the present invention at least solve the above-mentioned problem.
[0006] According to one aspect of the present invention, a method for checking a fire passage is provided, the method comprising: obtaining a three-dimensional point cloud of a binocular image of a fire passage and the ground area of the fire passage; projecting the three-dimensional point cloud on the ground to obtain the point cloud distribution on a two-dimensional plane; obtaining the circumscribed graphic area of an object on the binocular image on the two-dimensional plane; and determining whether the fire passage is blocked based on the ratio of the circumscribed graphic area to the ground area.
[0007] In some implementations, after obtaining the three-dimensional point cloud of the binocular image of the fire passage and the ground area of the fire passage, the method further includes: inputting the monocular image or the binocular image of the binocular image into a well-trained fire equipment placement recognition model to identify the position, type and quantity of the fire equipment in the binocular image; comparing the identified position, type and quantity of the fire equipment with the preset position, type and quantity to determine whether the placement of the fire equipment is in compliance with regulations.
[0008] In some embodiments, the method further includes: obtaining training pictures of fire-fighting equipment and occupied items in the fire passage; labeling the fire-fighting equipment and occupied items in the training pictures, and using the labeled training pictures to train a target detection framework and a classification network to obtain the fire-fighting equipment placement recognition model.
[0009] In some of the embodiments, after obtaining the three-dimensional point cloud of the binocular image of the fire escape and the ground area of the fire escape, the method further includes: inputting the monocular image or the binocular image of the binocular image into a well-trained fire-fighting equipment contamination recognition model to determine whether the fire-fighting equipment in the binocular image is damaged.
[0010] In some embodiments, the method further includes: obtaining training pictures of the fire-fighting equipment in the fire passage; marking the damaged fire-fighting equipment in the training pictures, and using the marked training pictures to train the target detection framework and classification network to obtain the fire-fighting equipment damage recognition model.
[0011] In some embodiments, the method of obtaining a three-dimensional point cloud of a binocular image of a fire escape and the ground area of the fire escape comprises: correcting the binocular image; calculating a disparity map of the corrected binocular image by a semi-global matching algorithm SGBM; obtaining a depth image of the disparity map; and obtaining the three-dimensional point cloud based on the depth image.
[0012] In some of the embodiments, obtaining the circumscribed graphic area of the objects in the binocular image on the two-dimensional plane includes: removing points on the point cloud distribution corresponding to the boundaries of the three-dimensional point cloud, and removing points on the point cloud distribution corresponding to height points in the three-dimensional point cloud that are greater than a preset value; obtaining the minimum circumscribed rectangle of each object on the two-dimensional plane, obtaining the sum of the areas of the minimum circumscribed rectangles of each object, and using the sum of the areas of the minimum circumscribed rectangles as the circumscribed graphic area.
[0013] According to another aspect of the present invention, a fire escape inspection system is provided, the system comprising a binocular camera and a server; the binocular camera is used to obtain a binocular image of the fire escape, and send the obtained binocular image to the server; the server is used to obtain a three-dimensional point cloud of the binocular image of the fire escape and the ground area of the fire escape, project the three-dimensional point cloud on the ground, obtain the point cloud distribution on a two-dimensional plane, obtain the circumscribed graphic area of the objects in the binocular image on the two-dimensional plane, and the server determines whether the fire escape is blocked according to the ratio of the circumscribed graphic area to the ground area.
[0014] In some of the embodiments, the server is also used to input the monocular image or the binocular image of the binocular image into a well-trained fire-fighting equipment recognition model to identify the position, type and quantity of the fire-fighting equipment in the binocular image; and compare the position, type and quantity of the fire-fighting equipment with the preset position, type and quantity to determine whether the placement of the fire-fighting equipment is in compliance with regulations.
[0015] According to another aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above methods when executing the computer program.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, any of the above-mentioned methods is implemented.
[0017] The present invention obtains the three-dimensional point cloud of the binocular image of the fire passage and the ground area of the fire passage, projects the three-dimensional point cloud on the ground, and obtains the point cloud distribution of the two-dimensional plane; obtains the circumscribed graphic area of the object on the binocular image on the two-dimensional plane; and determines whether the fire passage is blocked according to the ratio of the circumscribed graphic area to the ground area. It solves the problem that the inspection efficiency and inspection quality of fire safety supervision cannot be guaranteed, and improves the inspection efficiency and inspection quality of fire safety supervision. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0019] Figure 1 2 is a schematic diagram of an application environment of a method for checking a fire passage according to an embodiment of the present invention;
[0020] Figure 2 is a flow chart of a method for checking a fire passage according to an embodiment of the present invention;
[0021] Figure 3 is a flow chart of a method for checking fire-fighting equipment according to an embodiment of the present invention;
[0022] Figure 4 is a flow chart of a method for checking contamination of fire-fighting equipment according to an embodiment of the present invention;
[0023] Figure 5 is a flow chart of a method for identifying the state of an indoor fire escape passage according to an embodiment of the present invention;
[0024] Figure 6 is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0026] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0027] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0028] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0029] The fire escape inspection system provided in this application can be applied to Figure 1 In the application environment shown, Figure 1 It is a schematic diagram of the application environment of a method for checking a fire passage according to an embodiment of the present invention, wherein a binocular camera 102 and a server 104 are connected via a wired or wireless network. The binocular camera 102 is used to obtain a binocular image of the fire passage, and send the obtained binocular image to the server 104; the server 104 is used to obtain a three-dimensional point cloud of the binocular image of the fire passage and the ground area of the fire passage, project the three-dimensional point cloud on the ground, obtain the point cloud distribution of a two-dimensional plane, and obtain the circumscribed graphic area of the object on the binocular image on the two-dimensional plane. The server 104 can also determine whether the fire passage is blocked based on the ratio of the circumscribed graphic area to the ground area. The present application solves the problem that the checking efficiency and checking quality of fire safety inspections cannot be guaranteed, and improves the checking efficiency and checking quality of fire safety inspections.
[0030] The monitoring area of the binocular camera 102 covers the area of the fire passage. The server 104 can be connected to multiple binocular cameras 102 to check multiple fire passages. It should be noted that the server 104 can be connected to a display terminal, and the display terminal displays the results of the check. The server 104 can also send the results of the check to mobile devices such as mobile phones or tablets in a timely manner.
[0031] In an embodiment of the present invention, a method for checking fire passages is provided. Figure 2 Flow chart of a method for checking a fire passage according to an embodiment of the present invention, the method comprising the following steps:
[0032] Step S202, obtain the three-dimensional point cloud of the binocular image of the fire passage and the ground area of the fire passage. The binocular image can be obtained by a binocular camera, and then the three-dimensional point cloud can be obtained based on the binocular image through the point cloud conversion software. For example, the three-dimensional point cloud of the binocular image can be obtained through the open source point cloud library (Point Cloud Library, referred to as PCL), and the three-dimensional point cloud can be further clustered in three dimensions. When the three-dimensional clustering meets the preset conditions, the clustering target is determined. The ground area is the area of the fire passage in the image pixel coordinate system on the binocular image. In addition, the mature PCL can be used to obtain the three-dimensional point cloud, first remove some meaningless or three-dimensional information abnormal points, and then adopt it to obtain a relatively sparse point cloud, which saves time. The clustering method can adopt a density-based clustering method, such as DBSCAN and various improved methods based on it.
[0033] Step S204, projecting the three-dimensional point cloud onto the ground to obtain the point cloud distribution of the two-dimensional plane. The three-dimensional point cloud of the cluster target can be projected two-dimensionally to obtain a transformation matrix based on the ground, and the three-dimensional point cloud forms the point cloud distribution of the two-dimensional plane through the transformation matrix. Among them, the principle of converting the three-dimensional point cloud of the binocular image into the two-dimensional plane point cloud distribution is to convert the three-dimensional point cloud into the coordinates of the world coordinate system, and then project the height of the relevant three-dimensional point cloud of the cluster target onto the ground, and the height value becomes 0, so that the point cloud distribution of the two-dimensional plane projected onto the ground can be obtained.
[0034] Step S206, obtaining the circumscribed graphic area of the object on the binocular image on the two-dimensional plane. In the process of converting the three-dimensional point cloud into the point cloud distribution on the two-dimensional plane, the depth information of the object can be converted into a grayscale value, and the circumscribed graphic area of the object in the image pixel coordinate system on the binocular image can be determined by the grayscale value. The object can be a non-firefighting equipment object such as a cardboard box, a trash can and a chair, wherein the basic principle of calculating the projected circumscribed rectangle area of the fire passage or the object mapping is that after the object is mapped to the two-dimensional plane, it is consistent with the ordinary two-dimensional image, and the area of the connected domain can be directly calculated. The classic two-pass method or seed filling method is used to distinguish each cluster target when mapping it to two dimensions using different grayscale values. In addition, the category of the outer cluster target has been obtained on the monocular detection image, and the area of a certain type of target can be calculated using the above-mentioned connected domain calculation method on the two-dimensional image.
[0035] Step S208, determine whether the fire passage is blocked according to the ratio of the area of the external graphic to the ground area. If the area of the fire passage occupied by the object is larger than the preset area, it does not meet the requirements of the fire passage inspection, and a reminder message will be sent.
[0036] Through the above steps S202 to S208, the method of background modeling in the related art and the method of identifying foreground targets by establishing the background cannot accurately identify the category and position of the object, and thus cannot calculate whether the fire passage is blocked. The present application converts the three-dimensional point cloud of the binocular image into a point cloud distribution on a two-dimensional plane, calculates the area occupied by the items on the fire passage, and determines whether the fire passage is blocked. The area occupied by the items on the fire passage can be calculated more accurately, which solves the problem that the efficiency and quality of fire safety inspection cannot be guaranteed, and improves the efficiency and quality of fire safety inspection.
[0037] In one embodiment, Figure 3 Flow chart of a method for checking fire-fighting equipment according to an embodiment of the present invention, the method comprising the following steps:
[0038] Step S302, input the single-eye image or the binocular image of the binocular image into a well-trained fire-fighting equipment placement recognition model to identify the position, type and quantity of the fire-fighting equipment in the binocular image, and the types of the fire-fighting equipment include items such as fire hydrants and fire extinguishers. In addition, the binocular positioning in the binocular vision image positioning system is widely used in the fields of part confirmation, dimension measurement, and measuring devices, and is mainly used in the position recognition and positioning of ICs, chips, and circuit boards, and visual image positioning systems, such as: puncher positioning, binding machine positioning, transistor absorption positioning, IC placement machine alignment, machine coordinate positioning, robot hand positioning, and direction recognition positioning.
[0039] Step S304, compare the identified position, type and quantity of the fire-fighting equipment with the preset position, type and quantity to determine whether the placement of the fire-fighting equipment is compliant. For example, the placement regulations of fire-fighting equipment on the fire passage include that there must be 1 fire hydrant and 2 fire extinguishers. The fire extinguishers need to be placed in obvious and easy-to-access locations and must not be placed in passages that affect safe evacuation. If the number of fire extinguishers is identified as 1, the placement of the fire extinguisher is not compliant; or, if the fire extinguisher is identified as being placed on the evacuation passage, the placement of the fire extinguisher is also not compliant.
[0040] Through the above steps S302 to S304, in addition to checking whether the fire passage is blocked, the embodiment of the present application can also check and identify whether the location, type and quantity of fire-fighting equipment are compliant, increase the inspection items of fire safety inspection, and further save labor costs.
[0041] It should be noted that the method also includes: obtaining training pictures of fire-fighting equipment and occupied items in the fire passage; labeling the fire-fighting equipment and the occupied items in the training pictures, and using the labeled training pictures to train the target detection framework and classification network to obtain the fire-fighting equipment placement recognition model.
[0042] The training process of the above model can be trained using YOLO or other target detection frameworks; the fire-fighting equipment or items are classified by network training, and the trained fire-fighting equipment placement recognition model can identify the position, type and quantity of the fire-fighting equipment or items in the left image or the right image of the binocular image.
[0043] Among them, the detection training framework mainly includes: input image preprocessing, such as color space enhancement, rotation, random cropping, etc. of the input image, and of course the label information of the input image must also be processed accordingly. The label information generally includes the width, height and center coordinates of the manually marked target box, the target category; the forward calculation and reverse reasoning calculation functions of each layer of the neural network, such as convolution layer, fully connected layer, concat layer, shortcut layer, activation function calculation and up and down sampling layer; loss function calculation, such as mean square error function, focal loss, etc.; darknet, pytorch and tensorflow are various training frameworks. On these frameworks, the final network model can be designed and built according to the algorithm. Taking yolov3 as an example, the network structure and loss function design of v3 are built under this framework, and the training image and the marked txt information are input. After the convolution, adoption, shortcut and other layers, the deep information of the image is continuously extracted, and finally the position and category of the target are predicted; the predicted position and category and the true value are continuously optimized to solve the parameters of each layer when the loss function is minimized, and the weight parameters of the better model can be obtained. Using this weight, that is, the trained model, calculations can be performed on the test image to predict the location and category information of the target; the classification network training framework is the same as the detection framework, the main difference lies in the training data and network design. The classification training data is usually a single image. Figure 1 The labeling information is the category of the target. There is not much difference between the feature extraction and detection of the backbone in network design, for example, the resnet18 backbone network; the main difference is in the loss function and activation function. The classification network often uses a fully connected layer and a softmax activation function after the last feature layer of the last feature extraction to obtain the probability of each category, and the one with the highest probability is the classification category of the target.
[0044] In one embodiment, Figure 4 Flow chart of a method for checking contamination of fire-fighting equipment according to an embodiment of the present invention, the method comprising the following steps:
[0045] Step S402, inputting a single-eye image or a binocular image of a binocular image into a well-trained fire-fighting equipment contamination recognition model, wherein the binocular image positioning is performed by two cameras, and for a feature point on an object, two cameras fixed at different positions are used to take images of the object, and the coordinates of the point on the image planes of the two cameras are obtained respectively. As long as the precise relative positions of the two cameras are known, the coordinates of the feature point in the coordinate system of a fixed camera can be obtained by a geometric method, that is, the position of the feature point is determined;
[0046] Step S404, determining whether the firefighting equipment in the binocular image is stained, wherein the firefighting equipment includes fire hydrants and fire extinguishers, for example, whether the surface of the fire hydrant is clean, stained or has advertisements pasted on it.
[0047] Through the above steps S402 to S404, the embodiment of the present application can not only check whether the fire passage is blocked, but also check and identify whether the fire-fighting equipment is damaged, increase the inspection items of fire safety inspection, and further save labor costs.
[0048] It should be noted that the preset fire-fighting equipment contamination recognition model is used to obtain the training picture of the fire-fighting equipment in the fire passage, annotate the fire-fighting equipment in the training picture, perform target detection framework training and classification network training, and identify whether the fire-fighting equipment is damaged. The preset fire-fighting equipment contamination recognition model first identifies the type of fire-fighting equipment, and after determining the type, determines whether the type of fire-fighting equipment is damaged. For example, first identify the fire hydrant in the left eye image or the right eye image in the binocular image, and then identify whether the surface of the fire hydrant is clean, whether it is damaged, or whether there are advertisements pasted on it.
[0049] In one embodiment, the process of obtaining a three-dimensional point cloud of a binocular image of a fire escape includes: correcting the binocular image; calculating a disparity map of the corrected binocular image through a semi-global matching algorithm SGBM; obtaining a depth image of the disparity map, and obtaining the three-dimensional point cloud based on the depth image.
[0050] In one embodiment, the process of obtaining the point cloud distribution of a two-dimensional plane and obtaining the circumscribed graphic area of the objects on the binocular image on the two-dimensional plane includes: removing points on the point cloud distribution corresponding to the boundary of the three-dimensional point cloud, and removing points on the point cloud distribution corresponding to height points in the three-dimensional point cloud that are greater than a preset value; obtaining the minimum circumscribed rectangle of each object on the two-dimensional plane, obtaining the sum of the areas of the minimum circumscribed rectangles of each object, and using the sum of the areas of the minimum circumscribed rectangles as the circumscribed graphic area.
[0051] The present invention is described in detail below in conjunction with specific application scenarios. Before identifying the status of indoor fire passages, training pictures of fire-fighting equipment and passage-occupying items are collected and labeled. Common categories of passage-occupying items include chairs, trash cans, cardboard boxes, and boxes, etc., and fire-fighting equipment categories include fire hydrants and fire extinguishers, etc., wherein the fire hydrant attribute is labeled as whether it is damaged; YOLO or other target detection frameworks are used for training; classification network training is performed on fire hydrant pictures, and a binocular camera is installed in the fire passage area, and the monitoring area of the binocular camera covers the area of interest of the fire passage.
[0052] Figure 5 FIG. 4 is a flow chart of a method for identifying the status of an indoor fire escape passage according to an embodiment of the present invention. Figure 5 As shown, the method includes:
[0053] Step S501, after the binocular camera acquires the binocular image, the left image or the right image is selected for deep learning to obtain the image coordinate position and category of each object;
[0054] Step S502, correcting the binocular image, and using a semi-global block matching (SGBM) method to calculate a disparity map and a three-dimensional point cloud;
[0055] Step S503, projecting the three-dimensional point cloud onto the ground to obtain a point cloud distribution on a two-dimensional plane, and removing points in the original three-dimensional point cloud that do not meet the image boundary and height requirements;
[0056] Step S504, obtaining the minimum circumscribed rectangle of each object on the two-dimensional plane, and obtaining the actual length and width of each rectangle according to the mapping relationship; and calculating the occupied area of the channel according to the size of the ground;
[0057] Step S505, respectively analyze the class targets of the fire-fighting equipment in the binocular image, use the classifier to determine whether the detected fire hydrants are damaged, and determine the number of detected fire extinguishers and compare them with a predetermined value to determine whether they are missing.
[0058] Step S506, according to the category of the object occupying the passage, the total floor area occupied by the object, whether the fire hydrant is damaged, and whether the number of fire extinguishers is consistent with the preset value, an alarm is issued according to the above judgment results, and it is notified whether the fire passage is blocked, the fire hydrant is damaged, or the number of fire extinguishers is inconsistent according to the judgment results;
[0059] Through the above steps S501 to S506, relevant states in the fire passage are identified, including the specific type of occupied objects in the fire passage, the severity of occupancy, whether the fire hydrants are damaged, and whether the fire extinguishers are missing. This recognition method improves the accuracy of detection and reduces the requirements for image quality.
[0060] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the above-mentioned license plate tilt correction method is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0061] The present application embodiment provides a computer-readable storage medium, Figure 6 is a schematic diagram of a computer device according to an embodiment of the present invention. Figure 6 As shown, a computer program is stored thereon, and when the program is executed by a processor, the method for checking the fire passage in the first aspect described above is implemented. Those skilled in the art can understand that Figure 6 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0062] In addition, in combination with a method for checking a fire escape in the above embodiment, a person of ordinary skill in the art can understand that all or part of the processes in the above embodiment method can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0063] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0064] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for checking fire passages, characterized in that: The method comprises: Acquire a three-dimensional point cloud of a binocular image of a fire passage and the ground area of the fire passage; Projecting the three-dimensional point cloud onto the ground to obtain a point cloud distribution on a two-dimensional plane projected onto the ground; Acquire the circumscribed graphic area of the object on the binocular image on the two-dimensional plane; the acquiring the circumscribed graphic area of the object on the binocular image on the two-dimensional plane comprises: removing points on the point cloud distribution corresponding to the boundary of the three-dimensional point cloud, and removing points on the point cloud distribution corresponding to height points in the three-dimensional point cloud greater than a preset value; acquiring the minimum circumscribed rectangle of each object on the two-dimensional plane, acquiring the sum of the areas of the minimum circumscribed rectangles of each object, and taking the sum of the areas of the minimum circumscribed rectangles as the circumscribed graphic area; Whether the fire escape passage is blocked is determined based on the ratio of the area of the circumscribed figure to the area of the ground.
2. The method according to claim 1, characterized in that After acquiring the three-dimensional point cloud of the binocular image of the fire escape and the ground area of the fire escape, the method further includes: Inputting a single-eye image or a binocular image of the binocular image into a well-trained fire-fighting equipment placement recognition model to identify the location, type and quantity of the fire-fighting equipment in the binocular image; The identified position, type and quantity of the fire-fighting equipment are compared with the preset position, type and quantity to determine whether the placement of the fire-fighting equipment is in compliance with regulations.
3. The method according to claim 2, characterized in that The following steps are also included: Obtaining training pictures of firefighting equipment and occupied items in the fire passage; The fire-fighting equipment and the occupied items in the training pictures are labeled, and the labeled training pictures are used to train a target detection framework and a classification network to obtain the fire-fighting equipment placement recognition model.
4. The method according to claim 1, characterized in that: After acquiring the three-dimensional point cloud of the binocular image of the fire escape and the ground area of the fire escape, the method further includes: The one-eye image or the binocular image of the binocular image is input into a well-trained fire-fighting equipment contamination recognition model to determine whether the fire-fighting equipment in the binocular image is contaminated.
5. The method according to claim 4, characterized in that The following steps are also included: Obtaining training pictures of firefighting equipment in the fire passage; The damaged fire-fighting equipment in the training image is labeled, and the labeled training image is used to train a target detection framework and a classification network to obtain the fire-fighting equipment damage recognition model.
6. The method according to claim 1, characterized in that The step of obtaining a three-dimensional point cloud of a binocular image of a fire passage and a ground area of the fire passage comprises: Correcting the binocular image; Calculate the corrected disparity map of the binocular image by using a semi-global matching algorithm SGBM; Acquire a depth image of the disparity map; The three-dimensional point cloud is acquired according to the depth image.
7. A fire escape inspection system, characterized in that: The system includes a binocular camera and a server; The binocular camera is used to obtain a binocular image of the fire passage, and send the obtained binocular image to the server; The server is used to obtain the three-dimensional point cloud of the binocular image of the fire passage and the ground area of the fire passage, project the three-dimensional point cloud on the ground, obtain the point cloud distribution of the two-dimensional plane projected onto the ground, and obtain the circumscribed graphic area of the object on the binocular image on the two-dimensional plane. The obtaining of the circumscribed graphic area of the object on the binocular image on the two-dimensional plane includes: removing points on the point cloud distribution corresponding to the boundary of the three-dimensional point cloud, and removing points on the point cloud distribution corresponding to height points in the three-dimensional point cloud that are greater than a preset value; obtaining the minimum circumscribed rectangle of each object on the two-dimensional plane, obtaining the sum of the areas of the minimum circumscribed rectangles of each object, and taking the sum of the areas of the minimum circumscribed rectangles as the circumscribed graphic area. The server determines whether the fire passage is blocked according to the ratio of the circumscribed graphic area to the ground area.
8. The system according to claim 7, characterized in that The server is also used to input the single-eye image or the binocular image of the binocular image into a well-trained fire-fighting equipment recognition model to identify the position, type and quantity of the fire-fighting equipment in the binocular image; and compare the position, type and quantity of the fire-fighting equipment with the preset position, type and quantity to determine whether the placement of the fire-fighting equipment is in compliance with regulations.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Airport surface three-dimensional panoramic monitoring method based on binocular cameras
CN106204595A
Intelligent underground garage and parking method thereof
CN107386730A
Track fault detection method and system based on infrared thermal imaging and computer vision
CN110261436A
Goods shelf obstacle recognition method, device and apparatus and readable storage medium
CN110472486A
Alarm method and system for identifying state of fire fighting access
CN110766915A
