A fire rescue positioning method, device, computer equipment and storage medium
By using small programs in instant messaging tools to identify and locate fire and other accidents, the problem of ambiguous positioning in fire rescue is solved and more efficient fire rescue operations are achieved.
Patent Information
- Application Number
- CN202110896562.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-05
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-08-05
AI Technical Summary
In existing fire rescue systems, the location of fires and other accidents is unclear, causing fire rescue personnel to spend more time arriving at the scene, which affects the implementation of rescue operations.
Receive alarm requests through small programs running in instant messaging tools, identify accident objects in video data, calculate their locations, and converge multiple locations on the electronic map to buildings that match the accident to determine where the accident occurred. The method includes speech recognition of video data, the use of target detection models, distance calculations and matching calculations to ensure positioning accuracy.
It improves the accuracy of accident location, reduces dependence on user descriptions, simplifies the alarm process, narrows the identification scope of accident locations, and improves the efficiency of rescue operations.
Smart Images

Figure CN113590880B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of real-time positioning, and in particular to a positioning method, device, computer equipment and storage medium for fire rescue. Background Art
[0002] With the development of society, people's quality of life continues to improve, but along with it comes highly dense housing, crowded traffic, highly dangerous fires, polluted and desolate nature, etc. Various safety accidents occur every day across the country, and fire rescue teams face different rescue tasks every day.
[0003] At present, the main way for the public to report fire accidents is by phone, in which the command center responsible for fire rescue is informed of the location of the accident, the situation at the scene of the accident, etc. through voice dialogue. This method is limited by the cognitive and expressive abilities of the caller. The caller's description of the accident in an emergency is relatively vague, especially for accidents such as fires. The area near the accident site is relatively dangerous, and the public generally reports the accident at a distance from the accident. The description of the location of the accident is mostly vague, causing fire rescue personnel to spend more time locating the accident and have a vague understanding of the details of the disaster, which affects the implementation of rescue operations. Summary of the invention
[0004] To this end, the embodiments of the present invention provide a fire rescue positioning method, device, computer equipment and storage medium to solve the shortcoming of the fuzzy positioning of the disaster site in the existing firefighting operations.
[0005] In a first aspect, an embodiment of the present invention provides a fire rescue positioning method, comprising:
[0006] Receiving an alarm request sent by a small program running in an instant messaging tool, the alarm request including video data collected by the small program and a first position located by the small program;
[0007] identifying, in the video data, an object where an accident occurred as a target object;
[0008] Calculating a second position of the target object in the video data based on the first position;
[0009] The plurality of second locations are converged to a building matching the accident on an electronic map to determine that the accident occurred in the building.
[0010] Further, converging the plurality of second positions to a building matching the accident on the electronic map to determine that the accident occurred in the building includes:
[0011] Searching for buildings matching the accident on an electronic map;
[0012] Determining the building area where the building is located on the electronic map;
[0013] calculating a matching degree between a plurality of the second positions and the building area;
[0014] The building corresponding to the building area with the highest matching degree is selected to determine that the accident occurred in the building.
[0015] Further, the calculating the matching degree between the plurality of second positions and the building area comprises:
[0016] Counting the number of the second positions included in the building area;
[0017] A ratio between the number of the second positions and the area of the building area is calculated as a matching degree between the plurality of the second positions and the building area.
[0018] Furthermore, the calculating the matching degree between the plurality of second positions and the building area further includes:
[0019] Fitting a plurality of the second positions to the accident area;
[0020] Counting the accident areas contained in the building area as target areas;
[0021] A ratio between an area of the target area and an area of the building area is calculated as a matching degree between the plurality of second positions and the building area.
[0022] Further, the identifying the object where the accident occurred in the video data as the target object includes:
[0023] Reading audio data from the video data;
[0024] Performing speech recognition on the audio data to obtain text information;
[0025] Searching for preset keywords in the text information to characterize the accident;
[0026] Find an object detection model trained for the accident;
[0027] Taking the accident as a target, the video data is input into the target detection model to detect the object where the accident occurred in the video data as the target object.
[0028] Furthermore, the alarm request also includes the position of the video data collected by the applet, and the second position of the target object is calculated based on the first position in the video data, including:
[0029] Calculating the distance between the target object and the first position in the video data;
[0030] The distance is added along the direction on the basis of the first position to obtain a second position of the target object.
[0031] Further, generating accident information according to the accident and the second position, wherein the accident information has a time period;
[0032] The accident information is pushed to other instant messaging tools through the official account or service account supporting the mini program, and the instant messaging tool is used to load the mini program when the accident information is triggered within the time period.
[0033] In a second aspect, an embodiment of the present invention provides a positioning device for fire rescue, including:
[0034] An alarm request receiving module, used to receive an alarm request sent by a small program running in an instant messaging tool, wherein the alarm request contains video data collected by the small program and a first position located by the small program;
[0035] A target object recognition module, used to recognize the object where the accident occurred in the video data as the target object;
[0036] a position determination module, configured to calculate a second position of the target object in the video data based on the first position;
[0037] The building positioning module is used to converge the plurality of second positions to a building matching the accident on an electronic map, so as to determine that the accident occurred in the building.
[0038] Furthermore, the target object recognition module includes:
[0039] An audio data reading module, used for reading audio data from the video data;
[0040] A speech recognition module, used to perform speech recognition on the audio data to obtain text information;
[0041] A keyword search module, used to search for preset keywords in the text information to characterize the accident;
[0042] A target detection model search module, used to search for a target detection model trained for the accident;
[0043] The target detection module is used to take the accident as a target and input the video data into the target detection model to detect the object where the accident occurred in the video data as the target object.
[0044] Furthermore, the location determination module includes:
[0045] A distance calculation module, used for calculating the distance between the target object and the first position in the video data;
[0046] A second position acquisition module is used to add the distance along the direction based on the first position to obtain a second position of the target object.
[0047] Furthermore, the building positioning module includes:
[0048] A building query module is used to query the building matching the accident on the electronic map;
[0049] A building area determination module, used to determine the building area where the building is located on the electronic map;
[0050] A matching degree calculation module, used for calculating the matching degree between the plurality of second positions and the building area;
[0051] A selection module is used to select a building corresponding to the building area with the highest matching degree to determine that the accident occurred in the building.
[0052] Furthermore, the matching degree calculation module is used to include:
[0053] A statistical module, used for counting the number of the second positions included in the building area;
[0054] A quantity ratio module is used to calculate the ratio between the quantity of the second positions and the area of the building area as the matching degree between the plurality of the second positions and the building area.
[0055] Furthermore, the module for calculating the matching degree is further configured to include:
[0056] An accident area fitting module, used for fitting the plurality of second positions to an accident area;
[0057] A target area module, used for counting the accident area contained in the building area as a target area;
[0058] An area ratio module is used to calculate the ratio between the area of the target area and the area of the building area as the matching degree between the plurality of second positions and the building area.
[0059] Optionally, based on the above device, the device further includes:
[0060] A time period module, used to generate accident information according to the accident and the second position, wherein the accident information has a time period;
[0061] An information push module is used to push the accident information to other instant messaging tools through a public account or service account that matches the mini program. The instant messaging tool is used to load the mini program when the accident information is triggered within the time period.
[0062] In a third aspect, an embodiment of the present invention further provides a computer device, the computer device comprising:
[0063] one or more processors;
[0064] a memory for storing one or more programs,
[0065] When the one or more programs are executed by the one or more processors, the one or more processors implement the fire rescue positioning method as described in the first aspect.
[0066] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, and when the computer program is executed by a processor, the fire rescue positioning method as described in the first aspect is implemented.
[0067] In this embodiment, the user can use the small program in the instant messaging tool to report an alarm. Since the user uses the instant messaging tool frequently and the small program is embedded in the instant messaging tool, the small program can be directly started when there is an alarm demand without installation, and the alarm efficiency is high. The alarm request contains the video data collected by the small program and the first position located by the small program; the object where the accident occurred is identified in the video data as the target object, and the target object is automatically identified, which gets rid of the dependence on the user's description of the accident, simplifies the alarm measures, and avoids the impact of messy information on rescue; the second position of the target object is calculated based on the first position in the video data. Since the current hardware-based The positioning accuracy of the parts is high, that is, the positioning accuracy of the first position is high. The second position is positioned based on the first position, and the second position can be guaranteed to have a high accuracy. On the electronic map, multiple second positions are converged to the building matching the accident to determine that the accident occurred in the building. On the one hand, the accident is associated with the building. By matching the building with the accident, the scope of identifying the real location of the accident can be narrowed, and the positioning accuracy of the real location of the accident can be improved. On the other hand, by converging multiple second positions, the real location of the accident is identified, the influence of the fluctuation of the parameters of the collected video data on the second position is reduced, and the positioning accuracy of the real location of the accident is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 A flowchart of a fire rescue positioning method provided in Embodiment 1 of the present invention;
[0069] Figure 2 A flowchart of a fire rescue positioning method provided in Embodiment 2 of the present invention;
[0070] Figure 3 is a schematic diagram of a fire rescue positioning device provided by Embodiment 3 of the present invention;
[0071] Figure 4 A schematic diagram of the structure of a computer device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0072] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0073] Embodiment 1
[0074] Figure 1 This is a flow chart of a fire rescue positioning method provided in the first embodiment of the present invention. This embodiment is applicable to the case where a user uses a small program of an instant messaging tool to make a video alarm, automatically identify the location of an accident from a video, and then converge on the location to improve the positioning accuracy. The method can be executed by a fire rescue device. The method can be implemented by software and / or hardware and can be configured in a computer device, such as a server, a workstation, a personal computer, etc. Specifically, it includes the following steps:
[0075] S101, receiving an alarm request sent by a small program running in an instant messaging tool.
[0076] When a disaster occurs, the user calls the police and informs the disaster address, which is likely to be inaccurate. At the same time, the familiarity of the alarm personnel with the disaster address affects the accuracy of the rescue personnel's arrival. The rescue personnel need to talk to the alarm personnel several times on the way to the scene to continuously correct the accurate location. In addition, factors such as road conditions changes and road emergencies make it impossible to go to the scene in the first time, wasting precious time. Based on the rapid development of Beidou and GPS (Global Positioning System) satellite positioning systems, the dispatcher who receives the alarm can accurately mobilize the corresponding fire rescue forces by receiving the alarm request sent by the applet running in the instant messaging tool, avoiding the mobilization of too few forces to delay the opportunity, or mobilizing too many forces to waste resources.
[0077] Among them, the mini-programs running in instant messaging tools refer to applications that can be used without downloading or installation. Users can open the application by scanning or searching, which also realizes the concept of use and go. Users do not need to install too many applications. The applications can be used everywhere, but there is no need to install or uninstall them.
[0078] An alarm request refers to the alarm person taking photos or videos with a mobile terminal near the disaster site, recording the disaster and uploading it to a small program running in an instant messaging tool. It can refer to multiple requests or one request, and can be issued by a party in the disaster or by other people.
[0079] Specifically, the alarm request contains the video data collected by the applet and the first location located by the applet. By using the built-in shooting function of the applet or uploading the video shot by the mobile terminal to the applet, the applet collects the data of the video, and uses GPS positioning, Beidou satellite positioning, base station positioning, wifi (Wireless-Fidelity) positioning or Bluetooth positioning technology to record the location where the video is sent as the first location, and records the video data and the first location information as the main information of the alarm request.
[0080] S102: Identify the object where the accident occurred in the video data as the target object.
[0081] It is understandable that after the video data in the mini program is recognized, the object in the video where the accident occurred is modeled using pattern recognition technology, thereby marking the object in the video. The determination of the target object can be determined based on the content provided by the video. For example, the target object can be a person, an object, a car, a river, a building, etc., and this embodiment does not impose specific restrictions on this.
[0082] In one embodiment of the present invention, S102 includes the following steps:
[0083] Step 1021: Read audio data from video data.
[0084] When the user reports an alarm, he or she records the on-site situation by filming. At the same time, the user will give some explanations of the on-site situation when filming the video, for example, describing the location of the disaster and explaining the severity of the situation. Therefore, the video data includes a large amount of audio data. After the video data is identified, the audio data in the video data needs to be read to obtain the audio data. It should be noted that the audio in the video can be stripped in CDA format, WAV waveform audio format, MP3 / MP3 Pro format, etc.
[0085] Step 1022: Perform speech recognition on the audio data to obtain text information.
[0086] Speech recognition technology is used to recognize audio data and obtain the text information of the audio data. The audio data is input, the input audio is preprocessed, and then the audio features are extracted to obtain the text information of the speech data. Speech recognition technology, also known as automatic speech recognition (ASR), aims to convert the vocabulary content in human speech into computer-readable input, such as keystrokes, binary codes or character sequences. The applications of speech recognition technology include voice dialing, voice navigation, indoor equipment control, voice document retrieval, simple dictation data entry, etc. Speech recognition technology can be combined with other natural language processing technologies such as machine translation and speech synthesis technology to build more complex applications.
[0087] Step 1023: Search for preset keywords in the text information to characterize the accident.
[0088] Since the scene is chaotic when users make alarms, the content recorded in the text information is relatively messy, and there is some information irrelevant to the disaster situation, so it is necessary to filter the content recorded in the text information to obtain the key information. Therefore, a large amount of keyword information has been preset in the applet running in the instant messaging tool. The keyword information is modeled using Faster R-CNN, SSD and YOLO models, and the keyword database in the applet is used to filter the obtained text information. For example, when keywords such as fire, explosion, jumping from a building, car crash, drowning, etc. appear in the text, the filtered keywords such as fire, explosion, jumping from a building, car crash, drowning, etc. are used to characterize the accident.
[0089] Step 1024: Find the target detection model trained for accidents.
[0090] The target detection model refers to a model obtained by processing the accident object occurring in the video data as the target object through a target detection algorithm (such as a one-stage algorithm, a classic two-stage algorithm, and a multi-stage algorithm). Furthermore, in the present invention, one target detection model can be trained for one accident, and the same target detection model can be trained for multiple accidents. Exemplarily, when there is only one alarm request about "fire", one target detection model can be trained for one "fire" accident in the alarm request; when there are multiple alarm requests about "fire", the same target detection model can be trained for the multiple "fire" accidents, and there is no need to train multiple target detection models for the "fire" accidents in multiple alarm requests.
[0091] Step 1025: Taking the accident as the target, the video data is input into the target detection model to detect the object where the accident occurred in the video data as the target object.
[0092] Through the above method, the filtered keywords are used to represent the accident captured in the video, and the video data is input into the target detection model for search, and the object where the accident occurred is detected in the video data as the target object.
[0093] S103: Calculate a second position of the target object in the video data based on the first position.
[0094] It can be understood that the mini program has an automatic positioning function. The mini program provides some map APIs (Application Programming Interface) for obtaining information such as the current user's geographic location. The map API is an API that embeds maps into web pages through JavaScript (or other languages). The API provides a large number of practical tools for processing maps and adding content to maps through various services, so that a full-featured map application can be created on the website. Therefore, when shooting or uploading videos at the accident scene, the mini program automatically locates the first position by calling the map API. After the camera of the mobile terminal shoots, it can call SLAM (simultaneous localization and mapping) technology, that is, SLAM obtains relevant information through the observation of the environment by the moving subject, and then performs pose inference, trajectory estimation and environmental mapping through multi-sensor fusion and global information fusion. All SLAM algorithms are based on the environmental information collected by the sensor. Through SLAM, the distance between the address of the video shooting location and the location of the accident can be calculated, so as to determine the location of the target object. Furthermore, the distance between the target object and the first position is calculated in the video data, and the distance is added along the azimuth on the basis of the first position. After obtaining the second position where the target object is located, the longitude and latitude of the first position can be determined through the automatic positioning function of the applet. When the target object and the first position are very close, the distance can be calculated using the Pythagorean theorem. When the target object and the first position are far away, the distance between the two can be calculated using the length of the minor arc of the standard spherical great circle. The first position is taken as the starting point, and the calculated distance is used as the radius to determine the area where the target object may be located. Based on the first position, the area with the calculated distance as the radius is used as the range, and the range of the second position is gradually narrowed.
[0095] S104: Converging the plurality of second locations to a building matching the accident on the electronic map to determine that the accident occurred in the building.
[0096] For example, in actual operation, if a fire occurs in a building in a community, the distance between the target object and the first position is calculated according to the video data, and the distance is added along the azimuth on the basis of the first position to obtain the second position of the target object. At this time, the second position obtained is the position of multiple buildings with the same distance between the first position and the target position, and the fire position cannot be accurately located. Therefore, it is necessary to further determine multiple second positions in the electronic map, converge the second positions by using a multi-objective algorithm, and finally determine the building that best matches the target feature. Exemplarily, the building may include buildings, parks, streets, rivers, etc., where jumping from a building corresponds to a building, a car crash corresponds to a street, and drowning corresponds to a river, etc. After determining the building where the accident occurred and the type of accident, the fire rescue personnel can specify the rescue route on the electronic map, and can query the fixed fire-fighting facilities available in the surrounding area of the disaster according to the location of the accident, and specify the best rescue plan and prepare the most needed equipment in the shortest time.
[0097] In one embodiment of the present invention, S104 includes the following steps:
[0098] Step 1041: Search the electronic map for buildings that match the accident.
[0099] Electronic map is a system for map production and application. It is a map generated by electronic computer control. It is a screen map based on digital mapping technology and a visualized real map. Electronic map uses satellite remote sensing technology, that is, satellites detect the reflection of electromagnetic waves and the electromagnetic waves emitted by objects on the earth's surface in space, so as to extract the information of these objects and complete the long-distance identification of objects. When matching electronic maps, the commonly used matching method is the cross-correlation method, which requires that correlation operations be performed on each position in the searched map. Sequential detection method, hierarchical search method and edge feature matching method can also be used. The scene of the accident is recorded in the video data. The target features can be determined according to the specific scene, and the building complex can be matched according to the target features. Since different buildings correspond to different accident types, that is, the buildings themselves have different attributes, the objects equipped on the building and the objects traveling on the building are limited, thus limiting the accidents that occur on the building. For example, if a fire occurs in a residential area, the fire is the accident recorded in the video data, and the building is the building that matches the fire; if a drowning incident occurs in a pond, the drowning is the accident recorded in the video data, and the pond is the building that matches the drowning incident.
[0100] Step 1042: Determine the building area where the building is located on the electronic map.
[0101] According to the building matched to the accident, the area where the building exists can be searched on the electronic map. There will be multiple ROIs (Regions of Interest) in the electronic map, so the ROI pooling technology is used to determine the building area, that is, according to the input image, the ROI is mapped to the corresponding position of the feature map, and the mapped area is divided into sections of the same size (the number of sections is the same as the output dimension), and each section is subjected to the max pooling operation, so that the corresponding feature maps of fixed size can be obtained from boxes of different sizes.
[0102] Step 1043: Calculate the matching degree between the multiple second positions and the building area.
[0103] The multiple building areas provided by the electronic map are obviously not enough to meet the rescue needs, so the multiple building areas need to be screened and the second location needs to be matched with the multiple determined building areas one by one. Therefore, when matching, correlation analysis, classification clustering (K-Means, etc.) and other algorithms can be used to calculate the matching degree.
[0104] When determining the second position, one method is to count the number of second positions included in the building area; and calculate the ratio between the number of second positions and the area of the building area as the matching degree between the multiple second positions and the building area.
[0105] Specifically, the number of second positions is counted, and the ratio of the number of second positions to the area of the building area is used as the matching degree. Multiple matching degrees can be obtained through calculation. The calculated ratios are sorted from large to small using a quick sorting algorithm, and a matching degree table is generated. The second position is determined based on the matching degree table.
[0106] Another method is to fit the accident area to the multiple second positions; count the accident areas included in the building area as the target area; and calculate the ratio between the area of the target area and the area of the building area as the matching degree between the multiple second positions and the building area.
[0107] The second position is fitted into an accident area by a geometric fitting algorithm, the number of accident areas contained in the building area on the electronic map is counted, and the accident area is set as the target area. The area size of the target area and the building area is calculated by a mathematical formula, and the ratio of the area of the target area to the area of the building area is used as the matching degree between the second position and the building area. The calculated ratios are sorted from large to small by a quick sorting algorithm, and a matching degree table is generated, and the second position is determined according to the matching degree table.
[0108] The advantage of this setting is that by calculating the matching degree between the second position and the building area, the second position is converged, and finally the highest matching degree is used as the place where the accident occurred. The correspondence between the building and the accident can be used, and through precise calculation, the determination of the accident site can be made more accurate, further providing a precise location for the development of fire rescue and implementing targeted rescue operations.
[0109] Step 1044: Select the building corresponding to the building area with the highest matching degree to determine the accident occurred in the building. Select the building where the accident occurred in the building area with the highest matching value in the matching degree table, and determine the accident occurred in the building.
[0110] In this embodiment, the user can use the small program in the instant messaging tool to report an alarm. Since the user uses the instant messaging tool frequently and the small program is embedded in the instant messaging tool, the small program can be directly started when there is an alarm demand without installation, and the alarm efficiency is high. The alarm request contains the video data collected by the small program and the first position located by the small program; the object where the accident occurred is identified in the video data as the target object, and the target object is automatically identified, which gets rid of the dependence on the user's description of the accident, simplifies the alarm measures, and avoids the impact of messy information on rescue; the second position of the target object is calculated based on the first position in the video data. Since the current hardware-based The positioning accuracy of the parts is high, that is, the positioning accuracy of the first position is high. The second position is positioned based on the first position, and the second position can be guaranteed to have a high accuracy. On the electronic map, multiple second positions are converged to the building matching the accident to determine that the accident occurred in the building. On the one hand, the accident is associated with the building. By matching the building with the accident, the scope of identifying the real location of the accident can be narrowed, and the positioning accuracy of the real location of the accident can be improved. On the other hand, by converging multiple second positions, the real location of the accident is identified, the influence of the fluctuation of the parameters of the collected video data on the second position is reduced, and the positioning accuracy of the real location of the accident is improved.
[0111] Embodiment 2
[0112] Figure 2A flowchart of a fire rescue positioning method for looping is provided for the second embodiment of the present invention. This embodiment is based on the previous embodiment and further adds an operation of accident information processing. The method specifically includes the following steps:
[0113] S201, receiving an alarm request sent by a small program running in an instant messaging tool, wherein the alarm request includes video data collected by the small program and a first position located by the small program;
[0114] S202, identifying the object where the accident occurred in the video data as the target object;
[0115] S203, calculating a second position of the target object based on the first position in the video data;
[0116] S204: Converging the plurality of second locations to a building matching the accident on the electronic map to determine that the accident occurred in the building.
[0117] S205, generating accident information according to the accident and the second position, where the accident information has a time period;
[0118] In the embodiment of the present invention, there is a time period for accident information, that is, the accident information needs to be processed in a short time. When the accident has not been processed, the accident will remain in a pending state. When the accident is processed, the time period ends. Optionally, the accidents can be divided into levels, that is, they can be divided into emergency, relatively urgent, urgent, etc. The time periods corresponding to different levels are also different. When accidents of different levels conflict, the higher level accidents will be processed first, but they must not exceed the corresponding time period.
[0119] S206. Push the accident information to other instant messaging tools through the official account or service account that matches the mini program. The instant messaging tool is used to load the mini program within a time period when the accident information is triggered.
[0120] The accident information is sent to other instant messaging tools through the official account or service account that matches the mini program. Since authorization is required to log in on the mini program, it is not convenient for users to quickly view the information. Therefore, the public account or service account of the public security department is used to push the accident information to ensure the authority and convenience of the information. Further, since the WeChat mini program has a positioning function, when pushing the accident information, it will focus on pushing the information to people who are closer to the accident site. When the pushed accident information is within the processing time range, when the accident information is received by the holder of the instant messaging tool, when the information is clicked or slid, the official account or service account will be automatically loaded into the WeChat mini program, and the video information, target object, second location, accident information and other detailed information will be displayed to the holder of the instant messaging tool receiving the accident information, so that the user can quickly understand the accident information, thereby achieving the effect of information sharing, and then the user also provides more detailed accident conditions and accident locations, so that firefighters can make correct judgments and formulate rescue plans in the shortest time.
[0121] After executing S206, return to execute S201.
[0122] In a specific example, when a fire breaks out in a building in a community, the first person to discover the fire can record the fire situation through a video through the WeChat applet. In the video, the person shooting can explain the fire situation so that the fire brigade can make the right rescue plan. In an emergency, there may only be a blurry video message, and the on-site information cannot be accurately obtained at this time. Therefore, the fire situation can be sent to the instant messaging tools of nearby people using the public account or service account of the public security system. When nearby people receive the accident information, they can view the information of the accident information. That is, after clicking on the information pushed by the public account or service account, the instant messaging tool will automatically go to the WeChat applet for detailed information. The person in the attachment can take a video to further supplement the place where the fire occurred and the on-site situation.
[0123] The technical solution of this embodiment generates accident information based on the accident and the second location. The accident information has a time period, and a judgment can be made on the urgency of the accidents occurring at the same time, so as to determine the policy of firefighting and rescue. The accident information is pushed to other instant messaging tools through the official account or service account that is matched with the mini program. The instant messaging tool is used to load the mini program within the time period and when the accident information is triggered, and share the accident information with users near the accident site, so as to obtain more detailed information on the accident, thereby facilitating firefighters to formulate the best rescue plan and achieve the technical effect of reliable command and dispatch.
[0124] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0125] Embodiment 3
[0126] Figure 3 The structural block diagram of a positioning device for fire rescue provided in the third embodiment of the present invention may specifically include the following modules:
[0127] The alarm request receiving module 301 is used to receive an alarm request sent by a small program running in an instant messaging tool, wherein the alarm request contains video data collected by the small program and a first position located by the small program.
[0128] The target object recognition module 302 is used to recognize the object where the accident occurred in the video data as the target object.
[0129] The position determination module 303 is configured to calculate a second position of the target object in the video data based on the first position.
[0130] The building positioning module 304 is used to converge the plurality of second locations to a building matching the accident on an electronic map, so as to determine that the accident occurred in the building.
[0131] Furthermore, the target object identification module 302 includes:
[0132] An audio data reading module, used for reading audio data from the video data;
[0133] A speech recognition module, used to perform speech recognition on the audio data to obtain text information;
[0134] A keyword search module, used to search for preset keywords in the text information to characterize the accident;
[0135] A target detection model search module, used to search for a target detection model trained for the accident;
[0136] The target detection module is used to take the accident as a target and input the video data into the target detection model to detect the object where the accident occurred in the video data as the target object.
[0137] Furthermore, the location determination module 303 includes:
[0138] A distance calculation module, used for calculating the distance between the target object and the first position in the video data;
[0139] A second position acquisition module is used to add the distance along the direction based on the first position to obtain a second position of the target object.
[0140] Furthermore, the building positioning module 304 includes:
[0141] A building query module is used to query the building matching the accident on the electronic map;
[0142] A building area determination module, used to determine the building area where the building is located on the electronic map;
[0143] A matching degree calculation module, used for calculating the matching degree between the plurality of second positions and the building area;
[0144] A selection module is used to select a building corresponding to the building area with the highest matching degree to determine that the accident occurred in the building.
[0145] Furthermore, the matching degree calculation module is used to include:
[0146] A statistical module, used for counting the number of the second positions included in the building area;
[0147] A quantity ratio module is used to calculate the ratio between the quantity of the second positions and the area of the building area as the matching degree between the plurality of the second positions and the building area.
[0148] Furthermore, the module 3043 for calculating the matching degree further includes:
[0149] An accident area fitting module, used for fitting the plurality of second positions to an accident area;
[0150] A target area module, used for counting the accident area contained in the building area as a target area;
[0151] An area ratio module is used to calculate the ratio between the area of the target area and the area of the building area as the matching degree between the plurality of second positions and the building area.
[0152] Optionally, based on the above device, the device further includes:
[0153] A time period module, used to generate accident information according to the accident and the second position, wherein the accident information has a time period;
[0154] An information push module is used to push the accident information to other instant messaging tools through a public account or service account that matches the mini program. The instant messaging tool is used to load the mini program when the accident information is triggered within the time period.
[0155] A fire rescue positioning device provided in an embodiment of the present invention can execute the fire rescue positioning method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0156] It is worth noting that in the embodiment of the function adjustment device of the above-mentioned application, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0157] Embodiment 4
[0158] Figure 4 A schematic diagram of the structure of a computer device provided in Embodiment 4 of the present invention. Figure 4 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0159] like Figure 4 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0160] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0161] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0162] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0163] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0164] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the computer device 12, and / or may communicate with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0165] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the fire rescue positioning method provided in the embodiment of the present invention.
[0166] Embodiment 5
[0167] Embodiment 5 of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned fire rescue positioning method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0168] Among them, computer-readable storage media may include, for example, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.
[0169] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A fire rescue positioning method, characterized in that: include: Receiving an alarm request sent by a small program running in an instant messaging tool, the alarm request including video data collected by the small program and a first position located by the small program; identifying, in the video data, an object where an accident occurred as a target object; Calculating a second position of the target object in the video data based on the first position; Converging the plurality of second locations to a building matching the accident on an electronic map to determine that the accident occurred in the building; The method further comprises: generating accident information according to the accident and the second position, wherein the accident information has a time period; Pushing the accident information to other instant messaging tools through the official account or service account associated with the mini program, the instant messaging tool being used to load the mini program when the accident information is triggered within the time period; grading the incident; When there is a conflict between the incidents of different levels, the incident with the higher level will be handled first; The step of identifying the object where the accident occurred in the video data as the target object includes: Reading audio data from the video data; Performing speech recognition on the audio data to obtain text information; Searching for preset keywords in the text information to characterize the accident; Searching for a target detection model trained for the accident; wherein the same target detection model is trained for at least one of the accidents; Taking the accident as a target, inputting the video data into the target detection model to detect the object where the accident occurred in the video data as the target object; The step of converging the plurality of second positions on the electronic map to a building matching the accident to determine that the accident occurred in the building includes: Searching for buildings matching the accident on an electronic map; Determining the building area where the building is located on the electronic map; calculating a matching degree between a plurality of the second positions and the building area; The building corresponding to the building area with the highest matching degree is selected to determine that the accident occurred in the building.
2. The method according to claim 1, characterized in that The calculating the matching degree between the plurality of second positions and the building area comprises: Counting the number of the second positions included in the building area; A ratio between the number of the second positions and the area of the building area is calculated as a matching degree between the plurality of the second positions and the building area.
3. The method according to claim 1, characterized in that The calculating the matching degree between the plurality of second positions and the building area comprises: Fitting a plurality of the second positions to the accident area; Counting the accident areas contained in the building area as target areas; A ratio between an area of the target area and an area of the building area is calculated as a matching degree between the plurality of second positions and the building area.
4. The method according to any one of claims 1 to 3, characterized in that: The alarm request also includes the position of the video data collected by the applet, and the second position of the target object is calculated based on the first position in the video data, including: Calculating the distance between the target object and the first position in the video data; The distance is added along the direction on the basis of the first position to obtain a second position of the target object.
5. A positioning device for fire rescue, characterized in that: include: An alarm request receiving module, used to receive an alarm request sent by a small program running in an instant messaging tool, wherein the alarm request contains video data collected by the small program and a first position located by the small program; A target object recognition module, used to recognize the object where the accident occurred in the video data as the target object; a position determination module, configured to calculate a second position of the target object in the video data based on the first position; A building positioning module, used for converging the plurality of second positions to a building matching the accident on an electronic map, so as to determine that the accident occurred in the building; The device also includes: A time period module, used to generate accident information according to the accident and the second position, wherein the accident information has a time period; An information push module, used to push the accident information to other instant messaging tools through the official account or service account supporting the mini program, and the instant messaging tool is used to load the mini program when the accident information is triggered within the time period; grading the incident; When there is a conflict between the incidents of different levels, the incident with the higher level will be handled first; The target object recognition module comprises: An audio data reading module, used for reading audio data from the video data; A speech recognition module, used to perform speech recognition on the audio data to obtain text information; A keyword search module, used to search for preset keywords in the text information to characterize the accident; A target detection model search module, used to search for a target detection model trained for the accident; wherein the same target detection model is trained for at least one of the accidents; A target detection module, used to take the accident as a target, input the video data into the target detection model, and detect the object where the accident occurred in the video data as the target object; Wherein, the building positioning module includes: A building query module is used to query the building matching the accident on the electronic map; A building area determination module, used to determine the building area where the building is located on the electronic map; A matching degree calculation module, used for calculating the matching degree between the plurality of second positions and the building area; A selection module is used to select a building corresponding to the building area with the highest matching degree to determine that the accident occurred in the building.
6. A computer device, characterized in that: The computer device comprises: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the firefighting and rescue positioning method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the fire rescue positioning method according to any one of claims 1 to 4 is implemented.
