A calibration method, device, electronic device, and storage medium for a fire protection component

By establishing the correspondence between the unique identification information of the fire-fighting component and the position information, the problem of redundant operation in the traditional calibration method is solved, and more efficient calibration of fire-fighting component is achieved.

CN115063569BActive Publication Date: 2025-06-27HANGZHOU HIKFIRE TECH LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210751115.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2025-06-27
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

The traditional fire-fighting component calibration method has repeated redundant operations and low efficiency. Especially when there are many fire-fighting components in the fire-fighting system and different application scenarios, how to provide a more effective calibration method has become an urgent problem.

Method used

By obtaining the unique identification information of the fire-fighting component in the first drawing and the position information of the fire-fighting component in the second drawing, the correspondence relationship between the two is established, thereby avoiding manual calibration of the corresponding positions in the second drawing one by one, and improving calibration efficiency.

Benefits of technology

This method reduces human resources investment, avoids repeated execution of unique identification information work, and improves the efficiency and accuracy of fire-fighting component calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115063569B_ABST
    Figure CN115063569B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a calibration method, device, electronic device, and storage medium for fire protection components, which relate to the field of fire protection technology and can avoid repeatedly executing the unique identification information work multiple times, reduce human resources, and improve the calibration efficiency at the same time. The method includes: obtaining a first drawing, where the first drawing includes the unique identification information of the fire protection components in the fire protection system; obtaining a second drawing, where the second drawing includes the position information of the fire protection components in the fire protection system; and establishing a correspondence relationship between the unique identification information of the fire protection components and the position information of the fire protection components in the second drawing. Applying the technical solution provided by the embodiments of the present application helps to improve the calibration efficiency of fire protection components on electronic drawings.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of fire protection technology, and in particular, to a calibration method, device, electronic device, and storage medium for fire protection components. Background Art

[0002] The fire protection (linkage) system means that after a fire sensor (fire protection component) detects a fire signal, the fire location can be automatically displayed on the visual interface in the fire protection system, enabling the fire safety personnel to quickly locate the place where the fire occurs through the visual interface. In the traditional method, the codes of fire protection components are the same when they leave the factory. After the components are installed, the construction personnel need to code each fire protection component, and then manually calibrate the code of each fire protection component at the corresponding position of the component in the CAD electronic drawing through software. The linkage effect of each component can be dynamically displayed in the CAD electronic drawing after the component is calibrated.

[0003] However, due to the large number of fire protection components in the fire protection system and different application scenarios, such as office buildings, residential areas, and industrial areas, etc., the positions of each fire protection component in the fire protection system are also different. The method of manually calibrating components has repetitive and redundant operations and low efficiency. Therefore, how to provide a more effective calibration method for fire protection components has become an urgent problem to be solved at present. Summary of the Invention

[0004] This application provides a calibration method, device, electronic device, and storage medium for fire protection components, which can avoid repeatedly performing the work of unique identification information, reduce human resources, and improve the calibration efficiency at the same time.

[0005] To achieve the above technical objectives, this application adopts the following technical solutions:

[0006] In the first aspect, an embodiment of this application provides a calibration method for fire protection components. The method includes: obtaining a first drawing, where the first drawing includes the unique identification information of fire protection components in the fire protection system; obtaining a second drawing, where the second drawing includes the position information of the fire protection components in the fire protection system; establishing a correspondence between the unique identification information of the fire protection components and the position information of the fire protection components in the second drawing.

[0007] It can be understood that since this method establishes a correspondence between the unique identification information of the fire protection components in the first drawing and the position information of the fire protection components in the second drawing, the unique identification information of multiple components in the first drawing does not need to be manually calibrated at the corresponding positions in the second drawing one by one, avoiding repeatedly performing the work of unique identification information, reducing human resources, and improving the calibration efficiency at the same time.

[0008] In a possible implementation, the first drawing is an image of a paper drawing of a fire protection system, and the unique identification information of the fire protection components is marked at the positions of the fire protection components on the paper drawing. The second drawing is an electronic drawing of the fire protection system.

[0009] It can be understood that by collecting the electronic image of the paper drawing through a camera or a scanner, the first drawing containing the unique identification information can be quickly obtained, reducing human resources. The position information of the fire protection components in the second drawing is physical information and can also be directly obtained through electronic devices.

[0010] In another possible implementation, the unique identification information is presented in the form of an identification code, and the identification code is pasted on the paper drawing.

[0011] It can be understood that pasting the unique identification information of the fire protection components on the paper drawing in the form of an identification code avoids the traditional method of manually coding and marking one by one, improving the efficiency of the marking work.

[0012] In another possible implementation, establishing the corresponding relationship between the unique identification information of the fire protection components and the position information of the fire protection components in the second drawing includes: performing a transparency processing on the first drawing, and superposing and aligning the transparently processed first drawing with the second drawing so that the outline of the fire protection system in the transparently processed first drawing overlaps with the outline of the fire protection system in the second drawing; if the overlap rate of the overlapping outlines is greater than or equal to the overlap rate threshold, then establish the corresponding relationship between the unique identification information of the fire protection components and the position information of the fire protection components in the second drawing according to the position corresponding relationship of the same fire protection component in the transparently processed first drawing and the second drawing.

[0013] It can be understood that in this method, after the first drawing is transparently processed and superposed on the second drawing, the two drawings are basically overlapped. Based on the superposition corresponding relationship of the same fire protection component in different drawings, the calibration of the unique identification information of the fire protection components is quickly completed, avoiding repeated manual operations and improving the calibration efficiency.

[0014] In another possible implementation, establishing the corresponding relationship between the unique identification information of the fire protection components and the position information of the fire protection components in the second drawing includes: determining the coordinate mapping relationship between the first drawing and the second drawing; wherein, the coordinate mapping relationship is used to indicate the corresponding relationship between the coordinates of the same position in the first drawing and the second drawing in the first drawing and the second drawing respectively; the coordinate mapping relationship is characterized by a coordinate transformation matrix; determining the first position of the fire protection component in the first drawing; performing a transformation process on the first position according to the coordinate mapping relationship to determine the second position of the fire protection component in the second drawing; establishing the corresponding relationship between the position information of the fire protection component at the second position in the second drawing and the unique identification information of the fire protection component.

[0015] It can be understood that through the coordinate mapping relationship at the same positions in the first drawing and the second drawing, the coordinates of the fire protection components in the first drawing after being mapped to the second position in the second drawing are calculated. Based on the relationship between the second position coordinates and the original fire protection component coordinates in the second drawing, the corresponding relationship between the unique identification information of the fire protection components in the first drawing and the position information of the fire protection components in the second drawing is accurately established, improving the calibration accuracy.

[0016] In another possible implementation manner, the above-mentioned superposition and alignment processing of the first drawing after transparency processing and the second drawing includes: superposing the first drawing after transparency processing and the second drawing, and performing one or more of the following operations on the first drawing after transparency processing and / or the second image according to the position difference between the position of the first drawing after transparency processing and the position of the second drawing: position adjustment, scaling, and rotation.

[0017] It can be understood that operations such as position adjustment, scaling, and rotation are operations on the size and angle of the drawing, and these operations will not change the relative positions of the fire protection components in the fire protection system. Through a series of operations such as position adjustment, scaling, and rotation on the first drawing and / or the second drawing, the outlines of the fire protection systems in the first drawing and the second drawing can better overlap.

[0018] In another possible implementation manner, the above-mentioned method further includes: displaying the unique identification information of the fire protection components on the second drawing according to the established corresponding relationship; or generating a third drawing based on the established corresponding relationship and the fire protection components on the second drawing to display the unique identification information of the fire protection components on the third drawing.

[0019] It can be understood that the electronic device can display the unique identification information of the fire protection components on the second drawing, or generate a third drawing to display the unique identification information of the fire protection components at the corresponding positions in the third drawing and the second drawing. By displaying the fire protection components and their unique identification information through the third drawing, the original information of the second drawing can be saved, and at the same time, the purpose of calibrating the unique identification information of the fire protection components can be achieved.

[0020] In another possible implementation manner, the above-mentioned electronic device displays a user interface; the user interface includes an electronic drawing or a fused drawing; in the case of detecting a disaster in the scene where the target fire protection component in the fire protection system is located, a prompt message is displayed at the corresponding position of the target fire protection component in the user interface.

[0021] It can be understood that in the above application scenario, firefighters can directly and quickly locate the position where the disaster occurs, so as to carry out rescue.

[0022] Second aspect, the present application provides a calibration device for a fire protection component. The calibration device for the fire protection component includes each module that applies the method in the first aspect or any one of the possible design manners in the first aspect.

[0023] In a possible implementation manner, the above-mentioned calibration device for a fire protection component includes: an acquisition unit, configured to acquire a first drawing, where the first drawing includes unique identification information of a fire protection component in a fire protection system; acquire a second drawing, where the second drawing includes position information of the fire protection component in the fire protection system; and a calibration unit, configured to establish a correspondence between the unique identification information of the fire protection component and the position information of the target fire protection component in the second drawing.

[0024] In another possible implementation manner, the first drawing is an image of a paper drawing of a fire protection system, and the unique identification information of the fire protection component is marked at the position of the fire protection component on the paper drawing; the second drawing is an electronic drawing of the fire protection system.

[0025] In another possible implementation manner, the unique identification information of the fire protection component is displayed in the form of an identification code, and the identification code is pasted on the paper drawing.

[0026] In another possible implementation manner, the calibration unit is specifically configured to perform a transparency processing on the first drawing, and perform an overlay and alignment processing on the transparently processed first drawing and the second drawing, so that the outline of the fire protection system in the transparently processed first drawing overlaps with the outline of the fire protection system in the second drawing; if the overlap rate of the overlapping outlines is greater than or equal to an overlap rate threshold, then establish a correspondence between the unique identification information of the fire protection component and the position information of the fire protection component in the second drawing according to the position correspondence relationship of the same fire protection component in the transparently processed first drawing and the second drawing.

[0027] In another possible implementation manner, the calibration unit is specifically configured to determine a coordinate mapping relationship between the first drawing and the second drawing; wherein, the coordinate mapping relationship is used to indicate the corresponding relationship between the coordinates of the same position in the first drawing and the second drawing in the first drawing and the second drawing respectively; the coordinate mapping relationship is characterized by a coordinate transformation matrix; determine a first position of the fire protection component in the first drawing; perform a transformation processing on the first position according to the coordinate mapping relationship to determine a second position of the fire protection component in the second drawing; and establish a correspondence between the position information of the fire protection component at the second position in the second drawing and the unique identification information of the fire protection component.

[0028] In another possible implementation, the calibration unit is specifically configured to superimpose the first drawing after the transparency processing on the second drawing, and perform one or more of the following operations on the first drawing after the transparency processing and / or the second image according to the position difference between the position of the first drawing after the transparency processing and the position of the second drawing: position adjustment, scaling, and rotation.

[0029] In another possible implementation, the calibration device for the fire protection component further includes a display unit. The display unit is configured to display the unique identification information of the fire protection component on the second drawing according to the established corresponding relationship; or generate a third drawing based on the established corresponding relationship and the fire protection component on the second drawing to display the unique identification information of the fire protection component on the third drawing.

[0030] In another possible implementation, the calibration device for the fire protection component further includes a display unit. The display unit is configured to display a user interface; the user interface includes the second drawing or the third drawing; in the case where a disaster occurs in the scene where the fire protection component in the fire protection system is located, a prompt message is displayed at the corresponding position of the fire protection component in the user interface.

[0031] In a third aspect, the present application provides an electronic device, including a memory and a processor. The memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device is caused to execute the method according to the first aspect and any possible design manner thereof.

[0032] In a fourth aspect, the present application provides a computer-readable storage medium, and the computer-readable storage medium includes computer instructions. Wherein, when the computer instructions run on an electronic device, the electronic device is caused to execute the method according to the first aspect and any possible design manner thereof.

[0033] In a fifth aspect, the present application provides a computer program product, and the computer program product includes computer instructions. Wherein, when the computer instructions run on an electronic device, the electronic device is caused to execute the method according to the first aspect and any possible design manner thereof.

[0034] For the specific descriptions of the second aspect to the fifth aspect and their various implementation manners in the present application, reference may be made to the detailed descriptions in the first aspect and its various implementation manners; and for the beneficial effects of the second aspect to the fifth aspect and their various implementation manners, reference may be made to the analysis of the beneficial effects in the first aspect and its various implementation manners, which will not be elaborated here.

[0035] These aspects or other aspects of the present application will be more clearly understood in the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 Schematic diagram of the implementation environment involved in a calibration method for a fire protection component provided by an embodiment of the present application;

[0037] Figure 2 Flowchart of a calibration method for a fire protection component provided by an embodiment of the present application;

[0038] Figure 3 Process diagram of the fusion of the first drawing and the second drawing provided by an embodiment of the present application;

[0039] Figure 4 Schematic diagram of the unique identification information of a fire protection component provided by an embodiment of the present application;

[0040] Figure 5 Schematic structural diagram of a calibration device for a fire protection component provided by an embodiment of the present application;

[0041] Figure 6 Schematic structural diagram of another electronic device provided by an embodiment of the present application. Detailed implementation manners

[0042] Hereinafter, terms such as "first", "second", and "third" are only used for descriptive purposes, and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first", "second", or "third" etc. may explicitly or implicitly include one or more of such features.

[0043] CAD (computer aided design) refers to using a computer and its graphic devices to assist designers in the design work. In engineering and product design, the computer can help designers perform tasks such as calculations, information storage, and drawing. In design, computers are usually used to perform a large number of calculations, analyses, and comparisons of different schemes to determine the optimal scheme; all kinds of design information, whether numerical, textual, or graphic, can be stored in the internal or external memory of the computer and retrieved quickly; designers usually start with a sketch, and the heavy work of turning the sketch into a working drawing can be handed over to the computer; the computer can be used for graphic data processing work related to editing, enlarging, reducing, translating, and rotating of graphics.

[0044] A two-dimensional bar code is a pattern of specific geometric shapes distributed in a plane (two-dimensional direction) according to a certain rule, black and white, and used to record data symbol information. In the code compilation, it cleverly utilizes the concept of "0" and "1" bitstreams that form the internal logic basis of a computer, and uses several geometric shapes corresponding to binary to represent alphanumeric information. It can be automatically read by an image input device or an optoelectronic scanning device to achieve automatic information processing. It has some commonalities with bar code technology: each code system has its specific character set; each character occupies a certain width; it has a certain verification function, etc. At the same time, it also has the function of automatically identifying information in different rows and dealing with the rotation and change points of the pattern. The fire monitoring and management system is an information-based system for fire monitoring and management established in accordance with fire laws, regulations and standards, including multi-terminal information-based modules with functions such as fire construction management, fire equipment operation and maintenance, and fire alarm monitoring. For example, it can include terminals such as a fire monitoring platform, a graphical display device for the fire control room, a fire construction application program (APP), and a fire alarm controller.

[0045] Fire components include fire sensors, input / output modules and other fire terminal devices in the fire monitoring and management system.

[0046] In the embodiment of the present application, the fire system at least includes a network formed by various fire components arranged in the monitoring scenario.

[0047] Fire linkage means that after a fire sensor (a type of fire component) detects a fire signal, the fire location can be automatically displayed on the visual interface in the fire system, enabling the fire safety personnel to quickly locate the fire occurrence location through the visual interface. In the traditional method, the codes of fire components are the same when they leave the factory, and the construction personnel need to code each fire component after installation to make it have unique identification information. After all the fire components are installed, the construction personnel need to manually calibrate the code (unique identification information) of each fire component in the corresponding position of the component in the CAD electronic drawing through software, that is, the construction personnel manually calibrate the corresponding relationship between the code and the position of the fire component in the CAD electronic drawing one by one. This method requires looking for fire components twice on paper drawings and electronic drawings, consuming a large amount of human resources, and the repetitive operation leads to low efficiency.

[0048] Based on this, the embodiments of the present application provide a calibration method for fire-fighting components. This method completes the calibration of the unique identification information of fire-fighting components through the correspondence between the unique identification information of fire-fighting components in the first drawing and the position information of fire-fighting components in the second drawing. First, obtain the unique identification information of fire-fighting components through the first drawing. Secondly, obtain the position information of the fire-fighting components in the second drawing in the second drawing. Finally, establish a correspondence between the unique identification information of the fire-fighting components in the first drawing and the position information of the fire-fighting components in the second drawing. It can be understood that since the unique identification information of multiple components in the first drawing of this method does not need to be manually calibrated at the corresponding positions in the second drawing one by one, it avoids repeatedly performing the calibration work multiple times, reduces human resources, and improves the calibration efficiency at the same time.

[0049] The implementation manners of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0050] Please refer to Figure 1 , Figure 1 FIG. is a schematic diagram of the implementation environment involved in a calibration method for fire-fighting components provided by an embodiment of the present application, which is applied to a fire-fighting system. The implementation environment includes: an electronic device 110, an image acquisition device 120, and a display 130 (optional).

[0051] The electronic device 110 is used to process the first drawing collected by the image acquisition device 120. The image acquisition device 120 is used to collect the first drawing. The display 130 is used to output a visual interface (optional).

[0052] Exemplarily, the electronic device 110 can be a terminal, such as a mobile phone, a tablet computer, a desktop type, a laptop, a notebook computer, a netbook, etc., or it can be a server. The server can be a single server or a server group. The server group can be centralized or distributed (for example, the server can be a distributed system). In some embodiments, the server can be local or remote. In some embodiments, the server can be pre-installed with image recognition and drawing fusion software. The embodiments of the present application do not make special restrictions on the specific form of this electronic device, and different electronic devices can be selected according to specific application scenarios.

[0053] Optionally, the electronic device 110 includes an input device 140. The input device 140 is used for staff to input operation instructions to the electronic device 110, such as: opening a drawing, translating a drawing, etc.

[0054] Exemplarily, the input device 140 can be a mouse, or a touchpad integrated on the electronic device.

[0055] Exemplarily, the image acquisition device 120 can be a camera or a scanner. The embodiments of the present application do not make special restrictions on the specific form of this image acquisition device.

[0056] The image acquisition device 120 and the electronic device 110 may be integrally provided or independently provided; the display 130 and the electronic device 110 may be integrally provided or independently provided. The embodiments of the present application do not make special limitations on the setting manners among the electronic device, the image acquisition device 120, and the display 130.

[0057] In an application scenario, after the image acquisition device 120 acquires the first drawing, the first drawing is input into the electronic device 110, and the picture of the first drawing is output through the display 130 (optionally). The electronic device 110 obtains the unique identification information of the fire protection components in the first drawing based on the first drawing. The second drawing is the drawing stored in the electronic device 110. The electronic device obtains the position information of the fire protection components in the second drawing based on the second drawing, and establishes a corresponding relationship between the position information of the fire protection components and the unique identification information one by one, thereby completing the calibration of the fire protection components.

[0058] The electronic device 110 may be a device in a fire protection monitoring system (i.e., a system for monitoring a fire protection system). The fire protection monitoring system further includes: a fire protection monitoring platform, a fire control room image display device, a fire alarm controller, etc. After the unique identification information of all the fire protection components in the fire protection system is calibrated at the positions corresponding to the fire protection components in the second drawing, the fire protection monitoring system can monitor the abnormal information sensed by the fire protection components. If a fire occurs at a certain position in a building, at this time, the fire protection components (such as smoke sensors) installed near the fire sense the disaster. The fire protection monitoring and management system will monitor the disaster information sensed by the fire protection components. At this time, the fire protection monitoring and management system will control the position corresponding to the fire protection component in the electronic drawing that senses the fire to give a prompt (such as flashing), and display the prompt through the display screen or the fire control room image display device. The fire protection personnel can quickly locate the disaster site through the position of the fire protection component that gives the prompt in the display screen or the fire control room image display device and implement rescue.

[0059] The following describes the calibration method of the fire protection components provided by the embodiments of the present application:

[0060] The calibration method for fire-fighting components provided by the embodiments of the present application can be applied to an electronic device. The execution subject of the calibration method for fire-fighting components provided by the embodiments of the present application can also be a calibration device for fire-fighting components. The calibration device for fire-fighting components can be an electronic device, or an application program (APP) with the calibration function of fire-fighting components installed on the electronic device, or a central processing unit (CPU) in the electronic device, or a control module in the electronic device for executing the calibration method for fire-fighting components. In the following, it is described by taking the method provided by the embodiments of the present application as an example of an electronic device.

[0061] Please refer to Figure 2 , which is a flowchart of a calibration method for a fire-fighting component provided by an embodiment of the present application. This method can be applied to the above fire-fighting system. As Figure 2 shown, this method may include S101 - S105.

[0062] S101: The electronic device obtains a first drawing, and the first drawing includes the unique identification information of the fire-fighting components in the fire-fighting system.

[0063] Optionally, the first drawing is an image of a paper drawing of the fire-fighting system, and the unique identification information of the fire-fighting components is marked at the positions of the fire-fighting components on the paper drawing. The first drawing can be obtained by taking a photo with a camera or by scanning with a scanner.

[0064] Optionally, the unique identification information is presented in the form of an identification code, and the identification code is pasted on the paper drawing. Among them, the paper drawing without the pasted identification code can be printed from the second drawing in S102.

[0065] The unique identification information contains the unique identification information of the fire-fighting components, and the unique identification information can be characterized by the identification code.

[0066] The identification code can be a barcode or a QR code, etc. The identification code contains at least the unique identification information of the fire-fighting components, and may also contain other information of the fire-fighting components. The present application does not limit the other information of the fire-fighting components contained in the identification code. The identification code of each fire-fighting component is pasted at the position corresponding to the fire-fighting component in the paper drawing.

[0067] In one example, the identification code may contain: device code (unique identification information) (such as 00000000 - FFFFFFFF). Optionally, it may also contain the device model of the fire-fighting equipment (such as module HK-LD-1201), the device type of the fire-fighting equipment (device type code, such as 01 represents smoke detector), etc.

[0068] In one example, when each fire protection component leaves the factory, unique identification information has been compiled by a coding device and recorded in a paper identification code. The paper identification code leaves the factory together with the fire protection component. After the fire protection component is installed, in the fire protection system, the dynamics of each fire protection component can be monitored through the unique identification information.

[0069] The first drawing contains the identification codes of the fire protection components. By identifying the identification codes, the electronic device can obtain the unique identification information of each fire protection component.

[0070] This method records the unique identification information of the fire protection components in the fire protection system through the identification codes, avoiding the process of on-site compilation of unique identification information by fire protection construction personnel in the traditional method, reducing manual steps, saving human resources, and improving work efficiency.

[0071] S102: The electronic device obtains a second drawing, which includes the location information of the fire protection components in the fire protection system.

[0072] The second drawing is an electronic drawing of the fire protection system and is stored in the electronic device. It records the location information of the fire protection components in the second drawing of the fire protection system. The location information of the fire protection components can be represented in the form of logical coordinates. The logical coordinates refer to the coordinate form configured in the electronic drawing.

[0073] In the logical coordinate system of the second drawing, the relationship between the logical coordinates of the fire protection components and the origin of the logical coordinates is relative. When the second drawing is enlarged or reduced, the logical coordinates of the fire protection components do not change due to the enlargement or reduction of the drawing.

[0074] In one example, the second drawing can be a CAD electronic drawing in which the fire protection components in the fire protection system are laid out. The location information of the fire protection components can be the logical coordinates of the fire protection components in the logical coordinate system of the CAD electronic drawing, and these coordinates do not change when the CAD drawing is enlarged or reduced.

[0075] Exemplarily, as shown in Table 1, Table 1 shows the location information of N fire protection components in the second drawing obtained by the electronic device (expressed as "location information (second drawing)").

[0076] Table 1

[0077] Fire protection component Location information (second drawing) Fire protection component 1 (x11, y11) Fire protection component 2 (x22, y22) … … Fire protection component N (xnn, ynn)

[0078] S103: The electronic device establishes a correspondence between the unique identification information of the fire protection components and the location information of the fire protection components in the second drawing.

[0079] The specific method can include Method 1 and / or Method 2:

[0080] Method 1: As in steps S103A - S103C.

[0081] Step S103A: The electronic device performs transparency processing on the first drawing.

[0082] After performing transparency processing on the first drawing (such as adjusting the transparency of the image), it is convenient for subsequent operations on the first drawing without inconvenience caused by occlusion problems.

[0083] Step S103B: The electronic device superimposes and aligns the transparently processed first drawing with the second drawing so that the outline of the fire protection system in the transparently processed first drawing overlaps with the outline of the fire protection system in the second drawing.

[0084] Since the paper drawing of the first drawing without the pasted identification code is printed from the second drawing, the fire protection system in the first drawing and the fire protection system in the second drawing are the same fire protection system. At this time, the outlines of the fire protection systems in the first drawing and the second drawing basically overlap.

[0085] Specifically, the electronic device superimposes the transparently processed first drawing with the second drawing and, according to the position difference between the position of the transparently processed first drawing and the position of the second drawing, performs one or more of the following operations on the transparently processed first drawing and / or the second image: position adjustment, scaling, and rotation.

[0086] Operations such as position adjustment, scaling, and rotation are operations on the size and angle of the drawing, and these operations do not change the relative positions of the fire protection components in the fire protection system. By performing a series of operations such as position adjustment, scaling, and rotation on the first drawing and / or the second drawing, the outlines of the fire protection systems in the first drawing and the second drawing can overlap better.

[0087] Step S103C: If the overlap rate of the overlapping outlines is greater than or equal to the overlap rate threshold, the electronic device establishes a correspondence between the unique identification information of the fire protection component and the position information of the fire protection component in the second drawing according to the position correspondence of the same fire protection component in the transparently processed first drawing and the second drawing.

[0088] In one example, when the overlap rate of the transparently processed first drawing and the second drawing reaches 98% or more, the electronic device identifies the identification code on the first drawing to obtain the unique identification information of the fire protection component in the first drawing, extracts the unique identification information of the fire protection component in the first drawing and the position information of the fire protection component in the second drawing, and establishes a one-to-one correspondence. As Figure 3 shown, Figure 3The figure in the middle is a process diagram for establishing the correspondence between the unique identification information of a fire protection component and the position information of the fire protection component in the second drawing in steps S103A - S103C.

[0089] In this method, after the first drawing is made transparent and superimposed on the second drawing, the two drawings are basically overlapped. Based on the superimposed correspondence of the same fire protection component in different drawings, the calibration of the unique identification information of the fire protection component is quickly completed, avoiding repeated manual operations and improving the calibration efficiency.

[0090] It should be noted that if the overlap rate of the overlapping contours is less than the overlap rate threshold, the position and size of the first drawing can be adjusted continuously so that the overlap rate of the contours of the fire protection systems in the first drawing and the second drawing is greater than or equal to the overlap rate threshold.

[0091] Method 2: As in steps S103a - S103d.

[0092] S103a. The electronic device determines the coordinate mapping relationship between the first drawing and the second drawing.

[0093] Among them, the coordinate mapping relationship is used to indicate the corresponding relationship between the coordinates of the same position in the first drawing and the second drawing in the first drawing and the second drawing respectively; the coordinate mapping relationship is characterized by a coordinate transformation matrix.

[0094] The same position in the first drawing and the second drawing can be selected as a reference position, for example: the upper left corner of the first drawing and the second drawing, or the center position, etc.

[0095] The electronic device selects the same position in the first drawing and the second drawing, obtains the coordinates of the same position in the first drawing and the second drawing respectively, and calculates its coordinate mapping relationship according to the coordinates of the same position in the first drawing and the second drawing. This coordinate mapping relationship can be represented by a coordinate transformation matrix.

[0096] In an example, the upper left corner vertex of the first drawing is selected as the same reference position, corresponding to a point in the upper left corner of the second drawing. Let the upper left corner vertex of the first drawing be the origin in the coordinate system, then the coordinates are (0, 0); the coordinates of a point in the upper left corner of the same position in the second drawing are (xa, yb). Establishing the coordinate mapping relationship from (0, 0) to (xa, yb), that is, the coordinate transformation matrix is f1.

[0097] S103b. The electronic device determines the first position of the fire protection component in the first drawing.

[0098] Since the identification code is pasted at the location where the fire protection component is located, the location of the corresponding fire protection component in the first drawing can be determined according to the pasting location of the identification code. For example, the center position of the identification code can be selected as the first position of the fire protection component. The first position can be characterized by pixel coordinates based on a reference origin. The acquisition method of the first position can be that the electronic device performs recognition and analysis on the first drawing through an image recognition algorithm.

[0099] Exemplarily, as shown in Table 2, Table 2 shows the position information of N fire protection components obtained by the electronic device (denoted as "position information (first drawing)").

[0100] Table 2

[0101] Fire protection component Location information (first drawing) Fire protection component 1 (x1, y1) (first location) Fire protection component 2 (x2, y2) (first location) … … Fire protection component N (xn, yn) (first location)

[0102] S103c. The electronic device performs transformation processing on the first position according to the coordinate mapping relationship to determine the second position of the fire protection component in the second drawing.

[0103] The second position of the fire protection component in the second drawing is the coordinate information obtained through the coordinate mapping relationship, and this coordinate information is consistent with the position information of the fire protection component in the second drawing in S102. Therefore, the second position can be obtained by processing the first position through the coordinate mapping relationship, and this second position corresponds one-to-one with the position information of the fire protection component in the second drawing in S102.

[0104] Theoretically, the coordinate values in the above-obtained second position should be the same as the position information included in S102. In practice, due to possible position deviations during the pasting process of the identification code, when the distance difference between the coordinate information of the second position and the position information of the fire protection component in the second drawing in S102 is less than or equal to the threshold value, it can be considered that these two positions are the coordinates of the same fire protection component.

[0105] In one example, assume that the coordinate of the first position of fire protection component 1 in the first drawing is (x1, y1), the coordinate of the mapping point of the reference origin in the second drawing is (xa, yb), and the coordinate transformation matrix indicated by the coordinate mapping relationship is f1. Then, the coordinate of the second position of fire protection component 1 in the second drawing can be calculated as f1(x1 + xa, y1 + yb).

[0106] In another example, the coordinate of the second position of fire protection component 1 in the second drawing obtained in the above example is f1(x1 + xa, y1 + yb), and the position information of fire protection component 1 in the second drawing of Table 1 in S102 is (x11, y11), and f1(x1 + xa, y1 + yb) is consistent with (x11, y11) or the distance difference is less than or equal to the threshold value.

[0107] Exemplarily, as shown in Table 3, Table 3 includes the relationship among the first position of the fire protection component 1 in the first drawing (obtained by electronic device identification and analysis), the second position in the second drawing obtained by coordinate mapping processing of the first position (obtained by the electronic device calculating the coordinate transformation matrix for the first position), and the position information of the fire protection component 1 in the second position (obtained by the electronic device through software). In addition, Table 3 also includes the corresponding relationship between the position information of N fire protection components (first drawing), the mapped coordinates, and the position information (second drawing).

[0108] Table 3

[0109]

[0110] S103d. The electronic device establishes the corresponding relationship between the position information of the fire protection component in the second position in the second drawing and the unique identification information of the fire protection component.

[0111] The acquisition method of the unique identification information of the fire protection component can be obtained by the electronic device through image recognition algorithm to identify and analyze the identification code on the first drawing. The unique identification information can be obtained simultaneously with the first position of the fire protection component in step 6, or can be obtained separately from the first position. The embodiments of the present application do not limit the acquisition order. Generally, to improve the system efficiency, when the first drawing is identified in step 6, the first position and the unique identification information of the fire protection component can be obtained simultaneously.

[0112] In one example, as shown in Table 4, after the electronic device performs image recognition on the first drawing, the first position and the unique identification information of the fire protection component are obtained. Table 4 shows the position information of N fire protection components in the first drawing recorded in the electronic device (expressed as "position information (first drawing)") and the corresponding unique identification information.

[0113] Table 4

[0114] Fire protection component Unique identification information Location information (first drawing) Fire protection component 1 xxxx0001 (x1, y1) Fire protection component 2 xxxx0002 (x2, y2) … … … Fire protection component N xxxx000n (xn, yn)

[0115] Based on the relevant information of the fire protection components in Table 3 and Table 4, the corresponding relationship between the position information of the fire protection components in the second drawing and the unique identification information of the fire protection components can be established.

[0116] In one example, as shown in Table 5, the electronic device records the positions and unique identification information of the fire protection components in a one-to-one correspondence. Table 5 shows the corresponding relationship between the position information of N fire protection components in the second drawing recorded in the electronic device (expressed as "position information (second drawing)") and the corresponding unique identification information.

[0117] Table 5

[0118] Fire protection component Unique identification information Location information (second drawing) Fire protection component 1 xxxx0001 (x11, y11) Fire protection component 2 xxxx0002 (x22, y22) … … … Fire protection component N xxxx000n (xnn, ynn)

[0119] Through the coordinate mapping relationship at the same position in the first drawing and the second drawing, the coordinates after the position of the fire protection component in the first drawing is mapped to the second position in the second drawing are calculated. Based on the relationship between the second position coordinates and the original fire protection component coordinates in the second drawing, the corresponding relationship between the unique identification information of the fire protection component in the first drawing and the position information of the fire protection component in the second drawing is accurately established, improving the calibration accuracy rate.

[0120] Method 1 and Method 2 are used in combination. The specific steps include: S103A - S103B. When the overlap rate of the overlapping contours is greater than or equal to the overlap rate threshold, the steps also include S103a - S103d.

[0121] When Method 1 and Method 2 are used in combination, the positional relationship between the first drawing and the second drawing can be displayed on the interface, and the same position can be quickly selected as the reference origin to establish the coordinate mapping relationship. This method not only ensures the accuracy rate of calibrating the unique information of the fire protection component, but also enables intuitive operation, being fast and convenient.

[0122] During the actual process of the electronic device marking the unique identification information, the unique identification information of the fire protection component can be synchronously marked on the second drawing to obtain the third drawing. Steps 3 - 5 are only illustrated by taking one of the fire protection components as an example.

[0123] Optionally, S104: The electronic device displays the unique identification information of the fire protection component on the second drawing according to the established corresponding relationship.

[0124] Alternatively, the electronic device generates a third drawing based on the established corresponding relationship and the fire protection components on the second drawing to display the unique identification information of the fire protection component on the third drawing.

[0125] The electronic device can display the unique identification information of the fire protection component on the second drawing, or can generate a third drawing and display the unique identification information of the fire protection component at the corresponding position in the third drawing with respect to the second drawing. By displaying the fire protection component and its unique identification information through the third drawing, the original information of the second drawing can be saved, and the purpose of calibrating the unique identification information of the fire protection component can also be achieved. Subsequently, if applications need to be made to the unique information of the fire protection component, operations can be directly based on the third drawing.

[0126] In one example, as Figure 4 shown, Figure 4 is a schematic diagram showing the unique identification information of the fire protection component on the second drawing (or the third drawing). The unique identification information of one of the fire protection components can be shown by clicking on it.

[0127] Optionally, S105: The electronic device displays the user interface.

[0128] The user interface includes a second drawing or a third drawing. In the case where a disaster occurs in the scene where a fire protection component in the fire protection system is located, a prompt message is displayed at the corresponding position of the fire protection component in the user interface.

[0129] Disasters that occur in the scene include, for example, fire hazards, smoke, etc.

[0130] The prompt message may include: the fire protection component animates and flashes, and the monitoring system emits an alarm sound.

[0131] After the unique identification information of the fire protection component is calibrated, based on the correspondence between the unique identification information and the location information of the fire protection component, the data of the above correspondence can be reused in other modules of the fire protection monitoring and management system. For example: the unique identification information, location information and their correspondence of the above fire protection components can also be used in devices such as a fire alarm display module, a graphical display device of the fire control room, and a fire emergency evacuation controller. The devices that reuse the above data can correctly display the logical coordinate positions of the fire protection components in the electronic drawing.

[0132] A calibration method for a fire protection component provided by an embodiment of the present application calibrates the unique identification information of the fire protection component through the correspondence between the unique identification information of the fire protection component in the first drawing and the location information of the fire protection component in the second drawing. First, the unique identification information of the fire protection component is obtained through the first drawing. Secondly, the location information of the fire protection component in the second drawing is obtained in the second drawing. Finally, a correspondence is established between the unique identification information of the fire protection component in the first drawing and the location information of the fire protection component in the second drawing. It can be understood that since the unique identification information of multiple components in the first drawing in this method does not need to be manually calibrated at the corresponding positions in the second drawing one by one, repeated calibration work is avoided, reducing human resources while improving the calibration efficiency.

[0133] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. To implement the above functions, it includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments disclosed in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0134] An embodiment of the present application also provides a calibration device for a fire protection component. As Figure 5 shown, it is a schematic structural diagram of a calibration device 200 for a fire protection component provided by an embodiment of the present application.

[0135] The calibration device 200 of the fire protection components includes: an acquisition unit 210, configured to acquire a first drawing, where the first drawing includes the unique identification information of the fire protection components in the fire protection system; and acquire a second drawing, where the second drawing includes the position information of the fire protection components in the fire protection system; a calibration unit 220, configured to establish a correspondence between the unique identification information of the fire protection components and the position information of the target fire protection components in the second drawing.

[0136] Optionally, the first drawing is an image of a paper drawing of the fire protection system, and the unique identification information of the fire protection components is marked at the positions of the fire protection components on the paper drawing; the second drawing is an electronic drawing of the fire protection system.

[0137] Optionally, the unique identification information of the fire protection components is presented in the form of an identification code, and the identification code is pasted on the paper drawing.

[0138] Optionally, the calibration unit 220 is specifically configured to perform a transparency processing on the first drawing, and perform an overlay and alignment processing on the transparently processed first drawing and the second drawing, so that the outline of the fire protection system in the transparently processed first drawing overlaps with the outline of the fire protection system in the second drawing; if the overlap rate of the overlapping outlines is greater than or equal to the overlap rate threshold, then establish a correspondence between the unique identification information of the fire protection components and the position information of the fire protection components in the second drawing according to the position correspondence of the same fire protection component in the transparently processed first drawing and the second drawing.

[0139] Optionally, the calibration unit 220 is specifically configured to determine the coordinate mapping relationship between the first drawing and the second drawing; where the coordinate mapping relationship is used to indicate the correspondence between the coordinates of the same position in the first drawing and the second drawing in the first drawing and the second drawing respectively; the coordinate mapping relationship is characterized by a coordinate transformation matrix; determine the first position of the fire protection component in the first drawing; perform a transformation process on the first position according to the coordinate mapping relationship to determine the second position of the fire protection component in the second drawing; establish a correspondence between the position information of the fire protection component at the second position in the second drawing and the unique identification information of the fire protection component.

[0140] Optionally, the calibration unit 220 is specifically configured to overlay the transparently processed first drawing and the second drawing, and perform one or more of the following operations on the transparently processed first drawing and / or the second image according to the position difference between the position of the transparently processed first drawing and the position of the second drawing: position adjustment, scaling, and rotation.

[0141] Optionally, the calibration device for fire-fighting components further includes a display unit 230, which is configured to display the unique identification information of the fire-fighting components on the second drawing according to the established corresponding relationship; or generate a third drawing based on the established corresponding relationship and the fire-fighting components on the second drawing, so as to display the unique identification information of the fire-fighting components on the third drawing.

[0142] Optionally, the calibration device for fire-fighting components further includes a display unit 240, which is configured to display a user interface; the user interface includes the second drawing or the third drawing; in the case of detecting a disaster in the scene where the fire-fighting components in the fire-fighting system are located, a prompt message is displayed at the corresponding position of the fire-fighting components in the user interface.

[0143] Of course, the calibration device 200 for fire-fighting components provided by the embodiments of the present application includes but is not limited to the above modules.

[0144] Figure 6 It is a schematic structural diagram of another electronic device 300 provided by the embodiments of the present application. As Figure 6 shown, the electronic device 300 includes a processor 301, a memory 302, and a network interface 303.

[0145] Among them, the processor 301 includes one or more CPUs. The CPU can be a single-core CPU (single-CPU) or a multi-core CPU (multi-CPU).

[0146] The memory 302 includes but is not limited to RAM, ROM, EPROM, flash memory, or optical memory, etc.

[0147] Optionally, the processor 301 implements the calibration method for fire-fighting components provided by the embodiments of the present application by reading the instructions stored in the memory 302, or the processor 301 implements the calibration method for fire-fighting components provided by the embodiments of the present application by the instructions stored internally. In the case where the processor 301 implements the method in the above embodiments by reading the instructions stored in the memory 302, the memory 302 stores the instructions for implementing the calibration method for fire-fighting components provided by the embodiments of the present application.

[0148] The network interface 303 is a wired interface (port), such as an FDDI or GE interface. Alternatively, the network interface 303 is a wireless interface. It should be understood that the network interface 303 includes multiple physical ports, and the network interface 303 is used to obtain images, etc.

[0149] Optionally, the electronic device further includes a bus 304, and the above-mentioned processor 301, memory 302, and network interface 303 are usually interconnected through the bus 304, or are interconnected in other ways.

[0150] In actual implementation, the calibration device 200, acquisition unit 210, calibration unit 220, display unit 230, and display unit 240 of the fire protection component can be implemented by a processor calling computer program code in the memory. The specific execution process can refer to the description in the above method section and will not be elaborated here.

[0151] Another embodiment of the present application further provides an electronic device, including a memory and a processor. The memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions. Among them, when the processor executes the computer instructions, the electronic device executes each step of the method shown in the above method embodiment.

[0152] Another embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions run on an electronic device, the electronic device executes each step of the method flow executed by the electronic device in the above method embodiment.

[0153] Another embodiment of the present application further provides a chip system, which is applied to an electronic device. The chip system includes one or more interface circuits and one or more processors. The interface circuits and the processors are interconnected by lines. The interface circuit is used to receive signals from the memory of the electronic device and send signals to the processor. The signals include computer instructions stored in the memory. When the processor of the electronic device executes the computer instructions, the electronic device executes each step of the method flow executed by the electronic device in the above method embodiment.

[0154] In another embodiment of the present application, a computer program product is further provided. The computer program product includes computer instructions. When the computer instructions run on an electronic device, the electronic device executes each step of the method flow executed by the electronic device in the above method embodiment.

[0155] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer execution instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server or data center that includes one or more media integrated therein. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0156] As described above, the above are only specific embodiments of the present application. Those skilled in the art of this technology can think of variations or substitutions based on the specific embodiments provided by the present application, and all should be covered within the protection scope of the present application.

Claims

1. A calibration method for a fire protection component, characterized in that, The method includes: Obtaining a first drawing, where the first drawing includes the unique identification information of fire protection components in the fire protection system; Obtaining a second drawing, where the second drawing includes the location information of the fire protection components in the fire protection system; Performing a transparency processing on the first drawing, and superimposing and aligning the transparently processed first drawing with the second drawing, so that the outline of the fire protection system in the transparently processed first drawing overlaps with the outline of the fire protection system in the second drawing; If the overlap rate of the overlapping outlines is greater than or equal to the overlap rate threshold, establish the corresponding relationship between the unique identification information of the fire protection components and the location information of the fire protection components in the second drawing according to the position corresponding relationship of the same fire protection component in the transparently processed first drawing and the second drawing; or, Determine the coordinate mapping relationship between the first drawing and the second drawing; wherein, the coordinate mapping relationship is used to indicate the corresponding relationship of the coordinates of the same position in the first drawing and the second drawing in the first drawing and the second drawing respectively; the coordinate mapping relationship is characterized by a coordinate transformation matrix; Determine the first position of the fire protection component in the first drawing; Perform a transformation process on the first position according to the coordinate mapping relationship to determine the second position of the fire protection component in the second drawing; Establish the corresponding relationship between the location information of the fire protection component at the second position in the second drawing and the unique identification information of the fire protection component.

2. The method according to claim 1, wherein The first drawing is an image of a paper drawing of the fire protection system, and the unique identification information of the fire protection component is marked at the position of the fire protection component on the paper drawing; The second drawing is an electronic drawing of the fire protection system.

3. The method according to claim 2, wherein The unique identification information of the fire protection component is displayed in the form of an identification code, and the identification code is pasted on the paper drawing.

4. The method according to claim 1, wherein The superimposing and aligning the transparently processed first drawing with the second drawing includes: Superimposing the transparently processed first drawing with the second drawing, and performing one or more of the following operations on the transparently processed first drawing and / or the second drawing according to the position difference between the position of the transparently processed first drawing and the position of the second drawing: position adjustment, scaling, and rotation.

5. The method according to claim 1, characterized in that The method further includes: Displaying the unique identification information of the fire protection component on the second drawing according to the established corresponding relationship; Or Generating a third drawing based on the established corresponding relationship and the fire protection components on the second drawing to display the unique identification information of the fire protection component on the third drawing.

6. The method according to claim 5, wherein The method further includes: Displaying a user interface; the user interface includes the second drawing or the third drawing; In the case of detecting a disaster in the scene where the fire protection component in the fire protection system is located, displaying a prompt message at the corresponding position of the fire protection component in the user interface.

7. A calibration device for a fire protection component, characterized in that, Includes: An obtaining unit, configured to obtain a first drawing, where the first drawing includes the unique identification information of fire protection components in the fire protection system; Obtain a second drawing, where the second drawing includes the position information of the fire protection components in the fire protection system; A calibration unit, specifically configured to: perform a transparency processing on the first drawing, and superimpose and align the transparently processed first drawing with the second drawing, so that the outline of the fire protection system in the transparently processed first drawing overlaps with the outline of the fire protection system in the second drawing; If the overlap rate of the overlapping outlines is greater than or equal to the overlap rate threshold, establish a correspondence between the unique identification information of the fire protection component and the position information of the fire protection component in the second drawing according to the position correspondence of the same fire protection component in the transparently processed first drawing and the second drawing; or, Determine the coordinate mapping relationship between the first drawing and the second drawing; wherein, the coordinate mapping relationship is used to indicate the corresponding relationship between the coordinates of the same position in the first drawing and the second drawing in the first drawing and the second drawing respectively; the coordinate mapping relationship is characterized by a coordinate transformation matrix; Determine the first position of the fire protection component in the first drawing; Perform a transformation process on the first position according to the coordinate mapping relationship to determine the second position of the fire protection component in the second drawing; Establish a correspondence between the position information of the fire protection component at the second position in the second drawing and the unique identification information of the fire protection component.

8. An electronic device, characterized in that, It includes a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; wherein, when the processor executes the computer instructions, the electronic device executes the method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions; wherein, when the computer instructions run on an electronic device, the electronic device executes the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Integrating location information in a fire control system

    US20210327256A1