A method and device for calibrating a fire-fighting component, an electronic device and a storage medium

By collecting the unique identification information of fire protection components through electronic devices and establishing mapping relationships, the problem of low efficiency in traditional calibration methods is solved, and efficient and accurate calibration of fire protection components is achieved.

CN115062182BActive Publication Date: 2025-11-21HANGZHOU HIKFIRE TECH LTD
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional methods for calibrating fire protection components are inefficient, requiring manual input of component codes and consuming significant human resources.

Method used

The system receives operations via electronic devices, calls cameras to collect unique identification information of fire-fighting components, and establishes a mapping relationship, reducing manual input.

Benefits of technology

This improved the efficiency of fire protection component calibration, reduced the waste of human resources, and ensured the accuracy and speed of calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115062182B_ABST
    Figure CN115062182B_ABST
Patent Text Reader

Abstract

The application discloses a kind of calibration method, device, electronic equipment and storage medium of fire-fighting component, it is related to fire-fighting technical field, can improve calibration efficiency.Method includes: receiving first operation for target fire-fighting component in electronic drawing;Wherein, electronic drawing is used to characterize the position of at least one fire-fighting component in fire-fighting system in fire-fighting system, at least one fire-fighting component includes target fire-fighting component;In response to first operation, call camera start command;Based on camera start command, start camera;Using camera, obtain the unique identification information of target fire-fighting component;Establish the mapping relationship of the unique identification information of target fire-fighting component and the position information of target fire-fighting component in electronic drawing.
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 method, apparatus, electronic device and storage medium for calibrating fire protection components. Background Technology

[0002] A fire protection (linkage) system refers to a system where fire sensors (fire protection components) detect fire signals and automatically display the fire location on a visual interface, allowing fire safety personnel to quickly pinpoint the fire's location. Traditionally, fire protection components have identical factory codes, requiring installers to manually code each component after installation and then manually mark the corresponding code on the CAD electronic drawing using software. The CAD electronic drawing, after component marking, dynamically displays the linkage effects of each component.

[0003] However, due to the large number of fire protection components in a fire protection system and the different application scenarios, such as office buildings, residential areas, and industrial areas, the location of each fire protection component in the fire protection system is also different. The method of manually entering the unique identification information of fire protection components into CAD electronic drawings is inefficient. Therefore, how to provide a more effective method for calibrating fire protection components has become an urgent problem to be solved. Summary of the Invention

[0004] This application provides a calibration method, apparatus, electronic device, and storage medium for fire protection components, which can improve calibration efficiency.

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

[0006] In a first aspect, embodiments of this application provide a method for calibrating fire protection components. This method is applied to an electronic device and includes: receiving a first operation on a target fire protection component in an electronic drawing; wherein the electronic drawing is used to characterize the location of at least one fire protection component in a fire protection system, and the at least one fire protection component includes the target fire protection component; responding to the first operation, invoking a camera activation command; activating a camera based on the camera activation command; acquiring unique identification information of the target fire protection component using the camera; and establishing a mapping relationship between the unique identification information of the target fire protection component and the location information of the target fire protection component in the electronic drawing.

[0007] It is understood that, in this embodiment of the application, the first operation on the target fire-fighting component in the electronic drawing can, on the one hand, trigger the determination and acquisition of the target fire-fighting component's location in the electronic drawing, and on the other hand, trigger the invocation of the camera. This method obtains unique identification information through electronic devices, avoiding the need to search for the fire-fighting component twice, while reducing manual input and improving the efficiency of calibration work.

[0008] In a possible implementation, the unique identification information is in the form of an identification code, which is pasted on the target fire-fighting component.

[0009] It can be understood that the unique identification information can be quickly obtained by capturing the image of the identification code through the camera, avoiding manual coding by the construction personnel and reducing human resources.

[0010] In another possible implementation, after the mapping relationship between the unique identification information of the target fire-fighting component and the position information of the target fire-fighting component in the electronic drawing is established, the method further includes: adding a calibration mark of the target fire-fighting component on the electronic drawing, and the calibration mark is used to represent that the calibration of the target fire-fighting component is completed.

[0011] It can be understood that the construction personnel can clearly see which fire-fighting components have completed the calibration of the unique identification information, avoiding repeated calibration and improving work efficiency.

[0012] In another possible implementation, before the first operation on the target fire-fighting component in the electronic drawing is received, the method further includes: obtaining the electronic drawing and identifying the target fire-fighting component on the electronic drawing; and establishing a calling relationship between the target fire-fighting component and the camera, so that the camera is triggered by the first operation on the target fire-fighting component.

[0013] It can be understood that when the electronic drawing is an externally imported ordinary fire-fighting system drawing, the fire-fighting component in the drawing may be an icon without special attributes. In order to facilitate the first operation on the target fire-fighting component later, it is necessary to establish a calling relationship between the fire-fighting component and the camera. This method is a preparation work before the first operation, which is beneficial to the smooth progress of the subsequent work.

[0014] In another possible implementation, after the target fire-fighting component on the electronic drawing is identified, the method further includes: generating a control for the identified target fire-fighting component and displaying the control on a user interface; wherein the control supports a camera calling event; and establishing a calling relationship between the target fire-fighting component and the camera includes: establishing a calling relationship between the control of the target fire-fighting component and the camera, so that the camera is triggered by the first operation on the control of the target fire-fighting component.

[0015] It can be understood that the target fire-fighting component is generated as a control, and the calling relationship between the control of the target fire-fighting component and the camera is established through the control. Since the control can support the camera calling event, the method can quickly establish the calling relationship between the target fire-fighting component and the camera.

[0016] In another possible implementation, the electronic device includes a display screen, and the receiving the first operation on the target fire-fighting component in the electronic drawing includes: receiving a second operation on the display screen; obtaining screen coordinates of the second operation in the display screen; converting the screen coordinates into logical coordinates in the electronic drawing; and determining that the second operation is the first operation on the target fire-fighting component when the logical coordinates are in a second region; wherein the second region is an effective action region in which the camera can be triggered, and is determined based on position information of the target fire-fighting component in the electronic drawing.

[0017] It can be understood that the electronic device determines, according to the second operation of the construction personnel, whether the second operation is the first operation on the fire-fighting component, so that the electronic device can accurately determine that the operation object is the target fire-fighting component, and the operation of the construction personnel on the screen is corresponded to the operation on the second region in which the target fire-fighting component is located in the electronic drawing, thereby improving the operation accuracy.

[0018] In another possible implementation, the electronic device includes a display screen, and after the camera is started, the method further includes: displaying a first image acquisition frame of the camera at a position of the target fire-fighting control in the display screen; wherein the first image acquisition frame is used to obtain unique identification information of the target fire-fighting control; or switching the display screen from a display interface of the electronic drawing to a display interface of the second image acquisition frame; wherein the second image acquisition frame is used to obtain the unique identification information of the target fire-fighting control, and the second image acquisition frame displays position information of the target fire-fighting component in the electronic drawing.

[0019] It can be understood that by displaying the image acquisition frame of the camera, the construction personnel can visualize the position of the identification code in the display screen when the identification code is acquired, and the above two methods of displaying the image acquisition frame can help the construction personnel to more clearly know the position of the fire-fighting component in the fire-fighting system. The acquisition frame is displayed at the position of the fire-fighting component, so that the position of the corresponding fire-fighting component can be clearly seen; the method of switching the display screen to the acquisition frame display interface can have a larger acquisition frame, which is convenient for aligning the identification code image, and displaying the position information of the target fire-fighting component in the electronic drawing in the acquisition frame can also play a role in prompting the position of the fire-fighting component, and reasonably setting the display position of the position information of the target fire-fighting component in the acquisition frame, for example, displaying in the edge region, so as not to block the acquisition of the identification code image.

[0020] In another possible implementation, according to the established mapping relationship, the unique identification information of the target fire-fighting component is displayed on the electronic drawing; or, based on the established mapping relationship and the target fire-fighting component on the electronic drawing, a fusion drawing is generated to display the unique identification information of the target fire-fighting component on the fusion drawing.

[0021] It can be understood that the electronic device can display the unique identification information of the target fire-fighting component on the electronic drawing paper, or generate a fusion drawing paper in which the unique identification information of the target fire-fighting component is displayed at a corresponding position of the electronic drawing paper. By displaying the target fire-fighting component and its unique identification information on the fusion drawing paper, the original information of the electronic drawing paper can be preserved, and the purpose of calibrating the unique identification information of the target fire-fighting component can also be achieved. Subsequently, if the original information of the target fire-fighting component needs to be applied, the electronic drawing paper can be used again; if the unique identification information of the target fire-fighting component needs to be applied, relevant operations can also be directly performed based on the fusion drawing paper.

[0022] In another possible implementation, the electronic device displays a user interface; the user interface includes the electronic drawing paper or the fusion drawing paper; in the case that a disaster occurs in a scene where the target fire-fighting component is located in the fire-fighting system, a prompt message is displayed at a position corresponding to the target fire-fighting component in the user interface.

[0023] It can be understood that the above application scenarios can enable fire-fighting personnel to quickly and intuitively locate the position where the disaster occurs, so as to carry out rescue.

[0024] In a second aspect, the present application provides a calibration device for a fire-fighting component. The calibration device for the fire-fighting component includes various modules applied to the method of the first aspect or any possible design of the first aspect.

[0025] In a possible implementation, the calibration device for the fire-fighting component includes: a receiving unit configured to receive a first operation for a target fire-fighting component in an electronic drawing paper; the electronic drawing paper is used to represent the position of at least one fire-fighting component in a fire-fighting system, and the at least one fire-fighting component includes the target fire-fighting component; a responding unit configured to, in response to the first operation, invoke a camera starting command; a starting unit configured to start a camera based on the camera starting command; an image acquisition unit configured to acquire unique identification information of the target fire-fighting component by using the camera; and a calibration unit configured to establish a mapping relationship between the unique identification information of the target fire-fighting component and position information of the target fire-fighting component in the electronic drawing paper.

[0026] In another possible implementation, the unique identification information is in the form of an identification code, and the identification code is pasted on the target fire-fighting component.

[0027] In another possible implementation, the calibration device for the fire-fighting component further includes a calibration mark unit configured to add a calibration mark of the target fire-fighting component on the electronic drawing paper after the mapping relationship between the unique identification information of the target fire-fighting component and the position information of the target fire-fighting component in the electronic drawing paper is established, and the calibration mark is used to represent that the calibration of the target fire-fighting component is completed.

[0028] In another possible implementation, the calibration apparatus of the fire-fighting component further includes an obtaining unit, configured to obtain the electronic drawing and identify the target fire-fighting component on the electronic drawing before receiving the first operation on the target fire-fighting component in the electronic drawing; and the calibration apparatus of the fire-fighting component further includes a calling relationship establishing unit, configured to establish a calling relationship between the target fire-fighting component and the camera, so that the camera is triggered by the first operation on the target fire-fighting component.

[0029] In another possible implementation, the calibration apparatus of the fire-fighting component further includes a generating unit, configured to generate a control for the identified target fire-fighting component and display the control on the user interface after identifying the target fire-fighting component on the electronic drawing; and the control supports a camera calling event; and the calling relationship establishing unit is specifically configured to establish a calling relationship between the control of the target fire-fighting component and the camera, so that the camera is triggered by the first operation on the control of the target fire-fighting component.

[0030] In another possible implementation, the electronic device includes a display screen, and the receiving unit is specifically configured to receive a second operation on the display screen; the calibration apparatus of the fire-fighting component further includes an obtaining unit, configured to obtain screen coordinates of the second operation in the display screen; the calibration apparatus of the fire-fighting component further includes a coordinate converting unit, configured to convert the screen coordinates into logical coordinates in the electronic drawing; and the calibration apparatus of the fire-fighting component further includes a determining unit, configured to determine that the second operation is the first operation on the target fire-fighting component when the logical coordinates are in a second region; and the second region is a region in which the target fire-fighting component is located in the electronic drawing.

[0031] In another possible implementation, the electronic device includes a display screen, and the calibration apparatus of the fire-fighting component further includes a display unit, configured to display a first image acquisition frame of the camera at a position of the target fire-fighting control in the display screen after starting the camera; and the first image acquisition frame is used to obtain unique identification information of the target fire-fighting control; or the display screen is switched from a display interface of the electronic drawing to a display interface of the second image acquisition frame; and the second image acquisition frame is used to obtain the unique identification information of the target fire-fighting control, and the second image acquisition frame displays position information of the target fire-fighting component in the electronic drawing.

[0032] In another possible implementation, the display unit is further configured to display the unique identification information of the target fire-fighting component on the electronic drawing according to the established mapping relationship; or generate a fusion drawing based on the established mapping relationship and the target fire-fighting component on the electronic drawing, and display the unique identification information of the target fire-fighting component on the fusion drawing.

[0033] In another possible implementation manner, the display unit is further configured to display a user interface; the user interface comprises the second drawing paper or the third drawing paper; and in a case where it is monitored that a disaster occurs in a scene where the fire-fighting component in the fire-fighting system is located, a prompt message is displayed at a position corresponding to the fire-fighting component in the user interface.

[0034] In a third aspect, the present application provides an electronic device, comprising a memory and a processor. The memory and the processor are coupled; the memory is configured to store computer program codes, the computer program codes comprising computer instructions. When the processor executes the computer instructions, the electronic device executes the method according to the first aspect and any possible implementation manner thereof.

[0035] In a fourth aspect, the present application provides a computer readable storage medium, comprising computer instructions. When the computer instructions are run on an electronic device, the electronic device executes the method according to the first aspect and any possible implementation manner thereof.

[0036] In a fifth aspect, the present application provides a computer program product, comprising computer instructions. When the computer instructions are run on an electronic device, the electronic device executes the method according to the first aspect and any possible implementation manner thereof.

[0037] The detailed description of the second aspect to the fifth aspect and various implementation manners thereof in the present application can refer to the detailed description in the first aspect and various implementation manners thereof; and the beneficial effects of the second aspect to the fifth aspect and various implementation manners thereof can refer to the beneficial effect analysis in the first aspect and various implementation manners thereof, which will not be repeated here.

[0038] These aspects or other aspects of the present application will be more apparent in the following description. BRIEF DESCRIPTION OF DRAWINGS

[0039] Figure 1 An implementation environment schematic diagram related to a fire-fighting component calibration method provided by an embodiment of the present application;

[0040] Figure 2 A flowchart of a fire-fighting component calibration method provided by an embodiment of the present application;

[0041] Figure 3 A user interface diagram of an electronic device provided by an embodiment of the present application;

[0042] Figure 4 A coordinate conversion schematic diagram of a position a provided by an embodiment of the present application;

[0043] Figure 5 An image acquisition frame schematic diagram provided by an embodiment of the present application;

[0044] Figure 6 Another schematic diagram of an image acquisition frame provided by an embodiment of the present application;

[0045] Figure 7 A schematic diagram of a target fire-fighting component to which an identification code is attached provided by an embodiment of the present application;

[0046] Figure 8 A user interface diagram of another electronic device provided by an embodiment of the present application;

[0047] Figure 9 A structural schematic diagram of a calibration device of a fire-fighting component provided by an embodiment of the present application;

[0048] Figure 10 A structural schematic diagram of another electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0049] Hereinafter, the terms "first", "second", and "third" and the like are used only for descriptive purposes, and cannot be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second" or "third" and the like can explicitly or implicitly include one or more of the features.

[0050] CAD (computer aided design) refers to using a computer and its graphic equipment to help designers to perform design work. In engineering and product design, a computer can help designers to undertake calculation, information storage and drawing, etc. In design, a computer is usually used to perform a large number of calculations, analysis and comparison of different schemes to determine the optimal scheme; various design information, whether digital, textual or graphical, can be stored in the memory or external storage of the computer and can be quickly retrieved; the heavy work of converting sketches into working drawings can be completed by the computer; using a computer can perform graphic data processing work related to editing, enlarging, reducing, translating and rotating graphics, etc.

[0051] A two-dimensional bar code is a black-and-white symbol pattern that records data and symbol information in a plane (two-dimensional direction) according to a certain rule by using a certain specific geometric pattern; in code design, the concept of "0" and "1" bit stream, which is the basis of computer internal logic, is ingeniously used, and several geometric shapes corresponding to binary are used to represent text and numerical information, which is automatically recognized by image input devices or photoelectric scanning devices to realize automatic information processing. It has some commonalities with bar code technology: each code has its own character set; each character occupies a certain width; it has a certain check function. At the same time, it also has the functions of automatically identifying different rows of information and processing graphical rotation changes.

[0052] The fire monitoring and management system is an information system for fire monitoring and management established according to fire laws, regulations and standards, including multiple information modules for functions such as fire construction management, fire equipment operation and maintenance, and fire alarm monitoring. For example, it can include a fire monitoring platform, a fire control room graphical display device, a fire construction application program (APP), a fire alarm controller, and other terminals.

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

[0054] In the embodiments of the present application, the fire system at least includes a network formed by various fire components arranged in a monitoring scene.

[0055] The fire linkage system refers to the automatic display of the fire location on the visual interface in the fire system after the fire sensor (fire component) detects the fire signal, so that the fire safety officer can quickly locate the fire occurrence site through the visual interface. In the traditional method, the fire components have the same code when they are shipped, and the construction personnel need to code each fire component after installing the components, so that they have unique identification information. After the construction personnel complete the installation of all fire components, they need to manually mark the code (unique identification information) of each fire component in the components at the corresponding position on the CAD electronic drawing through software, that is, the construction personnel manually input the code of the corresponding fire component in the position of the fire component on the CAD electronic drawing. This method searches for the fire components on the paper drawing and the electronic drawing twice, which consumes a large amount of human resources and has low manual marking efficiency.

[0056] Based on this, the embodiment of the present application provides a calibration method of a fire-fighting component. The method calibrates the unique identification information of the fire-fighting component on an electronic drawing by operating the target fire-fighting component on the electronic drawing. Specifically, the method first receives a first operation on the target fire-fighting component, so that the electronic device calls the camera to collect the unique identification information of the fire-fighting component, and finally saves the unique identification information of the target fire-fighting component corresponding to the position information of the target fire-fighting component on the electronic drawing. It can be understood that, since the method collects the unique identification information image through the electronic device to obtain the unique identification information before the fire-fighting component is installed, the fire-fighting component is searched twice, and manual input is reduced, thereby improving the calibration efficiency.

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

[0058] Please refer to Figure 1 , Figure 1 The embodiment of the present application provides a calibration method of a fire-fighting component, and the implementation environment thereof is shown in the figure. The implementation environment includes an electronic device 110 and a fire-fighting system. The fire-fighting system includes at least one fire-fighting component 120.

[0059] The electronic device 110 includes a processor, a camera, and a display screen.

[0060] The processor is used to process the identification code image collected by the camera, the camera is used to collect the identification code image of the fire-fighting component 120, and the display screen is used to output a visual interface under the control of the processor. Optionally, the display screen can also be used to receive user instructions (for example, opening the drawing, panning the drawing, etc.), in which case the display screen can be used as an input device.

[0061] For example, the electronic device 110 can be a terminal, such as a mobile phone, a tablet computer, a laptop, a notebook computer, a netbook, etc. When the electronic device 110 is a tablet computer, a laptop, a notebook computer, a netbook, etc., the display screen is generally used as an output device, in which case the electronic device 110 can also include an input device (such as a mouse). The specific form of the electronic device is not specially limited in the embodiment of the present application, and different electronic devices can be selected according to specific application scenarios.

[0062] For example, the display screen can be a general display screen or a touch display screen.

[0063] The electronic device 110, the camera, the display screen, and the input device can be independently arranged or integrated. The arrangement mode between the electronic device 110, the camera, the display screen, and the input device is not specially limited in the embodiment of the present application.

[0064] In one application scenario, the construction personnel long press a fire-fighting component 120 on the electronic drawing through the display screen of the electronic device 110 for a preset time period (for example, 3 seconds), and the electronic device 110 starts the camera. The construction personnel aims the image acquisition frame of the camera at the identification code (for example, a two-dimensional code) pasted on the fire-fighting component 120. After the processor of the electronic device 110 obtains the unique identification information of the fire-fighting component 120 through the identification code of the fire-fighting component 120, the processor establishes a mapping relationship between the unique identification information and the position information of the fire-fighting component 120 in the electronic drawing, and completes the calibration of the unique identification information of the fire-fighting component 120 on the electronic drawing. Optionally, the display screen of the electronic device 110 displays the calibrated electronic drawing.

[0065] The electronic device 110 can be a device in a fire-fighting monitoring system (that is, a system for monitoring a fire-fighting system). The fire-fighting monitoring system further includes a fire-fighting monitoring platform, a fire-fighting control room image display device, a fire alarm controller, and the like. After the unique identification information of the fire-fighting components in the fire-fighting system is calibrated at the positions of the corresponding fire-fighting components in the electronic drawing, the fire-fighting monitoring system can monitor the abnormal information sensed by the fire-fighting components. If a fire occurs at a certain position in the building, the fire-fighting component (for example, a smoke sensor) installed near the fire senses the disaster, and the fire-fighting monitoring management system monitors the disaster information sensed by the fire-fighting component. At this time, the fire-fighting monitoring management system controls the position of the corresponding fire-fighting component in the electronic drawing to issue a prompt (for example, flicker), and displays the prompt through the display screen or the fire-fighting control room image display device. The fire-fighting personnel can quickly locate the disaster site through the position of the fire-fighting component issuing the prompt in the display screen or the fire-fighting control room image display device, and implement rescue.

[0066] The calibration method of the fire-fighting component provided in the embodiments of the present application is described below:

[0067] The calibration method of the fire-fighting component provided in the embodiments of the present application can be applied to an electronic device. The execution subject of the calibration method of the fire-fighting component provided in the embodiments of the present application can also be a calibration device of the fire-fighting component. The calibration device of the fire-fighting component can be an electronic device, or an application program (APP) installed on the electronic device and having a calibration function of the fire-fighting component, or a central processing unit (CPU) in the electronic device, or a control module in the electronic device for executing the calibration method of the fire-fighting component. Hereinafter, the method provided in the embodiments of the present application is taken as an example for description.

[0068] Please refer to Figure 2 , a flowchart of a calibration method of a fire-fighting component provided in the embodiments of the present application. The method can be applied to the fire-fighting system described above. As shown in FIG. 2, the method includes the following steps.Figure 2 As shown, the method can include S101-S111.

[0069] S101: The electronic device obtains an electronic drawing and identifies a target fire-fighting component on the electronic drawing.

[0070] The electronic drawing is used to represent the position of at least one fire-fighting component in a fire-fighting system, and the at least one fire-fighting component includes the target fire-fighting component, wherein the target fire-fighting component can be any one of the at least one fire-fighting component.

[0071] The electronic drawing can be a drawing in the electronic device or a drawing imported from an external device. For example, a CAD drawing, a construction worker can install the physical fire-fighting component to the corresponding physical position of the building according to the logical position of the multiple fire-fighting components in the fire-fighting system displayed in the electronic drawing.

[0072] The fire-fighting component can be a fire-fighting sensor, an input / output module, or other fire-fighting terminal device in the fire-fighting system, such as a smoke sensor, a temperature sensor. The fire-fighting component contained in the electronic drawing is an icon used to represent the fire-fighting component.

[0073] The position of the fire-fighting component in the fire-fighting system can be represented by the logical coordinates of the fire-fighting component in the logical reference coordinate system of the electronic drawing. The relationship between the logical coordinates of each fire-fighting component and the reference coordinate origin of the logical reference coordinate system is a relative relationship, and when the electronic drawing is enlarged or reduced, the logical coordinates of the multiple fire-fighting components do not change due to the enlargement or reduction of the drawing.

[0074] In one example, the electronic drawing can be a CAD electronic drawing, which displays multiple fire-fighting components in the fire-fighting system and also contains position information of the multiple fire-fighting components, i.e. logical coordinates, which do not change when the CAD electronic drawing is enlarged or reduced. For example, when the CAD electronic drawing is one size, the logical coordinates of the target fire-fighting component are (x1, y1), and when the CAD electronic drawing is enlarged by ten times, the logical coordinates of the target fire-fighting component are still (x1, y1).

[0075] For example, as shown in Table 1, Table 1 contains the position information of N fire-fighting components in the electronic drawing (indicated as "position information (electronic drawing)"), wherein the target fire-fighting component is fire-fighting component 1. The position information of each fire-fighting component is represented by the logical coordinates of each fire-fighting component in the electronic map.

[0076] Table 1

[0077]

[0078]

[0079] When the electronic drawing contains icons of fire-fighting components in the fire-fighting system, the electronic device identifies the icon of the target fire-fighting component and the icons of the remaining fire-fighting components in the electronic drawing through an identification algorithm. The electronic device can identify the fire-fighting components in the fire-fighting system one by one through the identification algorithm, or identify all the fire-fighting components in the fire-fighting system at one time.

[0080] S102: The electronic device generates a control for the identified target fire-fighting component and displays the control on the user interface.

[0081] The control supports a camera calling event.

[0082] The control is an encapsulation of data and methods, and has its own attributes and methods.

[0083] In the embodiment of the application, the control for the target fire-fighting component is generated to support the camera calling event, that is, the control for the target fire-fighting component supports encapsulating the camera calling instruction after being generated.

[0084] After the control for the target fire-fighting component is generated, the control is displayed on the user interface, that is, the user display interface displays the control for the target fire-fighting component.

[0085] S103: The electronic device establishes a calling relationship between the target fire-fighting component and the camera, so as to trigger the calling of the camera through the first operation on the target fire-fighting component.

[0086] Specifically, the calling relationship between the control for the target fire-fighting component and the camera is established, so as to trigger the calling of the camera through the first operation on the control for the target fire-fighting component.

[0087] The calling relationship between the control for the target fire-fighting component and the camera can be established by sequentially operating each fire-fighting component or by uniformly operating the controls for all the fire-fighting components in the fire-fighting system. Sequential operation can be selectively operated, which is flexible and convenient; uniform operation can reduce the number of operations and improve work efficiency.

[0088] S101-S103 are optional steps. When the electronic drawing is imported from the outside and the fire-fighting components therein do not have attribute icons, S101-S103 need to be operated; when the fire-fighting components in the electronic drawing have control attributes and have established a calling relationship with the camera, S101-S103 need not be executed.

[0089] S104: The electronic device receives the first operation on the target fire-fighting component in the electronic drawing.

[0090] The first operation may include: actions performed by construction personnel on the target fire protection components in the electronic drawings, such as clicking or long-pressing the target fire protection component displayed on the screen, or giving voice instructions to the target fire protection component. As indicated by S104, the first operation is an operation on the target fire protection control. Once a calling relationship is established between the control of the target fire protection component and the camera, the camera can be invoked through the first operation on the target fire protection component.

[0091] Optionally, the electronic device displays a user interface. The user interface includes a first area in the electronic drawing, the first area containing controls for the target fire-fighting component. In this case, the electronic device receives a first operation on the target fire-fighting component in the electronic drawing, including: the electronic device receiving a first operation on the controls of the target fire-fighting component.

[0092] The first area can be the entire electronic drawing, or a portion of the electronic drawing containing controls for the target fire protection component. By zooming in or out, or panning the electronic drawing, the controls representing the target fire protection component are displayed on the user interface.

[0093] In one example, such as Figure 3 As shown, Figure 3 This is a user interface diagram of an electronic device used to display fire protection engineering floor plans. The electronic device contains CAD electronic drawings of multiple floors in multiple buildings. The CAD electronic drawing displayed on the interface is CAD drawing a of floor 1 in building 1. The first area of ​​CAD drawing a displayed by the user interface contains controls for the target fire protection components.

[0094] In one example, the construction worker completes the first operation on the target fire protection component by long-pressing (for example, 3 seconds) the control of the target fire protection component in the electronic drawing displayed on the user interface.

[0095] Optionally, the electronic device includes a display screen. Receiving a first operation on a target fire protection component in the electronic drawing may include: when the electronic device receives a second operation on the display screen (e.g., pressing and holding position a on the display screen for 3 seconds), determining whether the second operation is a first operation step on the fire protection component, such as steps 1-3:

[0096] Step 1: The electronic device acquires the screen coordinates of the second operation on the display screen.

[0097] For example: Get the screen coordinates of position 'a' on the display screen as (xa, ya).

[0098] Step 2: The electronic device converts the screen coordinates into logical coordinates in the electronic drawing.

[0099] The construction personnel operates position a in the electronic drawing through the display screen, and the electronic device converts position a in the display screen from the screen reference coordinate system to the logical reference coordinate system in the electronic drawing. After the conversion, the corresponding logical coordinate of position a in the electronic drawing is (Xa, Ya). The logical coordinate refers to the coordinate form configured in the electronic drawing. The specific conversion calculation of the coordinate system can refer to the existing principles, and the embodiments of the present application are not limited specifically.

[0100] Step 3, when the logical coordinate is in the second area, the electronic device determines that the second operation is the first operation for the target fire-fighting component; wherein the second area is an effective action area that can trigger the camera call, which is determined based on the position information of the target fire-fighting component in the electronic drawing.

[0101] If the user interface contains the control of the target fire-fighting component, the second area can be the area where the control of the target fire-fighting component is located, that is, the control area of the target fire-fighting component is an effective touch area that can trigger the camera call. The second area can also be a region that is larger or smaller than the area where the control of the target fire-fighting component is located, and is centered on the area where the control of the target fire-fighting component is located. If the user interface does not contain the control of the target fire-fighting component, but only the icon of the target fire-fighting component, the second area can be a preset size of an effective touch area that can trigger the camera call.

[0102] As shown in FIG. 1, Figure 4 As shown in FIG. 2, Figure 4 FIG. 2 is a coordinate conversion schematic diagram of position a in steps 1-3.

[0103] Since the second area is the area where the target fire-fighting component is located in the electronic drawing, when the logical coordinate (Xa, Ya) is in the second area, it indicates that the operation position of the second operation is in the position of the target fire-fighting component, that is, the second operation is an operation for the target fire-fighting component. Therefore, it is confirmed that the second operation is the first operation for the target fire-fighting component.

[0104] The user can more intuitively and conveniently select the target fire-fighting component by operating the touch display screen. In fact, according to the touch principle of the touch display screen, no matter where the second operation is performed on the target fire-fighting component on the display screen, the electronic device can convert the operation on the screen coordinates to the logical coordinates of the target fire-fighting component in the electronic drawing. That is, based on the conversion principle between the screen coordinates of the electronic device and the coordinates of the electronic drawing, no matter where the target fire-fighting component is clicked or long-pressed on the screen, the electronic device can convert the screen coordinates to the corresponding logical coordinates in the electronic drawing, and then determine whether the operation object is the target fire-fighting component according to the distance between the determined logical coordinates and the logical coordinates of the fire-fighting component. For example, if the determined distance is less than the distance threshold, it is determined that the operation object is the target fire-fighting component, and the camera is further started to obtain the unique identification information of the target fire-fighting component.

[0105] S105: The electronic device responds to the first operation by calling a camera start command.

[0106] When the electronic device receives the first operation on the target fire-fighting component, it responds to the first operation by calling a camera start command.

[0107] The camera start command is a function encapsulated in the system for starting the camera. For example: “webcam –i 1”.

[0108] S106: The electronic device starts the camera based on the camera start command.

[0109] Optionally, the electronic device includes a display screen. When the electronic device calls the camera start command, a first image acquisition frame of the camera is displayed on the display screen at the position of the target fire-fighting control. The first image acquisition frame is used to obtain the unique identification information of the target fire-fighting control.

[0110] Optionally, the display screen is switched from the display interface of the electronic drawing to the display interface of the second image acquisition frame. The second image acquisition frame is used to obtain the unique identification information of the target fire-fighting control, and the position information of the target fire-fighting component in the electronic drawing is displayed in the second image acquisition frame.

[0111] Displaying the first image acquisition frame of the camera at the position of the target fire-fighting component can effectively and intuitively prompt the construction personnel which target fire-fighting component is currently being operated.

[0112] Displaying the position information of the target fire-fighting component in the electronic drawing in the second image acquisition frame can be used to prompt the construction personnel which target fire-fighting component is currently being operated, and the display position of the position information of the target fire-fighting component in the acquisition frame can be reasonably set, for example, displayed in the edge area, which will not cause obstruction and other influences when the image is acquired.

[0113] In one example, as shown in Figure 5 , Figure 5 is a schematic diagram of an image collection frame after starting a camera command displayed in an electronic device user interface.

[0114] In another example, as shown in Figure 6 , Figure 6 is a schematic diagram of an image collection frame after starting a camera command displayed in another electronic device user interface.

[0115] S107: The electronic device acquires the unique identification information of the target fire-fighting component using a camera.

[0116] Optionally, the unique identification information is in the form of an identification code, which is pasted on the target fire-fighting component.

[0117] The identification code can include: device code (identification information) (such as 00000000-FFFFFFFF). Optionally, it can also include the device model of the fire-fighting device (such as module HK-LD-1201), the device type of the fire-fighting device (device type code, such as 01 indicating smoke sensing), etc.

[0118] The unique identification information of the target fire-fighting component can be represented by an identification code, or can be directly printed in the form of text and pasted on the fire-fighting component. The identification code can be a bar code or a two-dimensional code, etc. The specific form of the identification code is not limited in the embodiments of the present application.

[0119] In one example, when the target fire-fighting component is manufactured, the unique identification information has been prepared by a coding device, and the unique identification information is recorded in a paper identification code, which is manufactured together with the target fire-fighting component. When the target fire-fighting component is installed, the dynamic of the target fire-fighting component can be monitored in the fire-fighting system through the unique identification information.

[0120] Specifically, the electronic device acquires the image of the identification code using a camera, and identifies and acquires the unique identification information of the target fire-fighting component contained in the identification code image through an image recognition algorithm.

[0121] In one example, the electronic device is a mobile phone, and when the electronic device identifies the identification code using a camera, a two-dimensional code framework zxing-android-embedded supporting the mobile phone camera to complete the scanning and decoding of the identification code is used.

[0122] As shown in Figure 7 , Figure 7 is a schematic diagram of the electronic device acquiring the unique identification information of the target fire-fighting component using a camera, Figure 7 the identification code is pasted on the target fire-fighting component.

[0123] In one example, after the electronic device identifies the identification code of the target fire-fighting component, the unique identification information of the target fire-fighting component is obtained. As shown in Table 2, Table 2 shows the unique identification information of the target fire-fighting component recorded in the electronic device.

[0124] Table 2

[0125] Firefighting component Unique identification information Target firefighting component xxxx0001

[0126] The method records the unique identification code through the identification code, avoiding the process of preparing the unique identification code on site by the fire-fighting construction personnel in the traditional method. Meanwhile, the electronic device obtains the unique identification information contained in the identification code through the image recognition algorithm, avoiding the manual input of the unique identification information in the traditional method, saving human resources and improving work efficiency.

[0127] S108: The electronic device establishes a mapping relationship between the unique identification information of the target fire-fighting component and the position information of the target fire-fighting component in the electronic drawing.

[0128] The electronic device establishes a mapping relationship between the unique identification information of the target fire-fighting component and the position information of the target fire-fighting component in the fire-fighting system, including that the electronic device one-to-one corresponds the unique identification information of the target fire-fighting component and the position information of the target fire-fighting component in the electronic drawing.

[0129] After the electronic device establishes a mapping relationship between the unique identification information of the target fire-fighting component and the position information of the target fire-fighting component in the fire-fighting system, the calibration of the target fire-fighting component is completed.

[0130] The calibration of the fire-fighting component is to bind the unique identification information on the real fire-fighting component and the position of the fire-fighting component displayed in the electronic drawing, so that the fire-fighting monitoring system can monitor the real fire-fighting component through the unique identification information and facilitate other operations.

[0131] In one example, as shown in Table 3, Table 3 shows the mapping relationship between the unique identification information of the target fire-fighting component and the position information of the target fire-fighting component in the electronic drawing (indicated as “position information (electronic drawing)”) established by the electronic device.

[0132] Table 3

[0133] Firefighting component Unique identification information Location information (electronic blueprint) Target firefighting component xxxx0001 (x1, y1)

[0134] S109: The electronic device adds a calibration mark of the target fire-fighting component on the electronic drawing, and the calibration mark is used to represent that the calibration of the target fire-fighting component is completed.

[0135] When the electronic device finishes the calibration of the target fire-fighting component in the electronic drawing, a calibration mark is added to the target fire-fighting component. The added position of the calibration mark can be directly at the position of the target fire-fighting component in the electronic drawing, or a layer can be added to the electronic drawing, and the calibration mark is added to the corresponding position of the target fire-fighting component in the layer.

[0136] The calibration mark can be a color, a symbol, or a map added to the target fire-fighting component that has finished the calibration, which is used to distinguish the target fire-fighting component that has finished the calibration from the fire-fighting components that have not finished the calibration in the user interface of the electronic device. At this time, the construction personnel can clearly see which fire-fighting components have finished the calibration of the unique identification information.

[0137] In one example, as shown in FIG. 4, Figure 8 Figure 8 An interface diagram of the electronic device after the calibration mark is added to the target fire-fighting component.

[0138] When there are multiple fire-fighting components in the fire-fighting system, the calibration method of the target fire-fighting component is repeated as S104-S108 to establish the mapping relationship between the unique identification information and the position information for each fire-fighting component. The unique identification information of each fire-fighting component is calibrated at the position of the corresponding fire-fighting component in the electronic drawing, and the unique identification information and the position information are saved after the calibration.

[0139] In one example, as shown in Table 4, Table 4 shows the mapping relationship between the unique identification information of N fire-fighting components established in the electronic device and the position information (indicated as “position information (electronic drawing)”) of the corresponding fire-fighting component in the electronic drawing.

[0140] Table 4

[0141] Firefighting component Unique identification information Location information (electronic blueprint) Firefighting component 1 xxxx0001 (x1, y1) Firefighting component 2 xxxx0002 (x2, y2) Firefighting component 3 xxxx0003 (x3, y3) … … … Firefighting component N xxxx000n (xn, yn)

[0142] S110: The electronic device displays the unique identification information of the target fire-fighting component on the electronic drawing according to the established mapping relationship.

[0143] Alternatively, the electronic device generates a fusion drawing based on the established mapping relationship and the target fire-fighting component on the electronic drawing, and displays the unique identification information of the target fire-fighting component on the fusion drawing.

[0144] ​The electronic device can display the unique identification information of the target fire-fighting component on the electronic drawing paper, or generate a fusion drawing paper on which the unique identification information of the target fire-fighting component is displayed at a position corresponding to the electronic drawing paper. By displaying the target fire-fighting component and its unique identification information on the fusion drawing paper, the original information of the electronic drawing paper can be preserved, and the purpose of calibrating the unique identification information of the target fire-fighting component can be achieved. Subsequently, if the original information of the target fire-fighting component needs to be applied, the electronic drawing paper can be used again; if the unique identification information of the target fire-fighting component needs to be applied, relevant operations can be directly performed based on the fusion drawing paper.

[0145] S111: The electronic device displays a user interface.

[0146] The user interface includes the electronic drawing paper or the fusion drawing paper.

[0147] In the case where a disaster occurs in a scene where the target fire-fighting component is located in the fire-fighting system, a prompt message is displayed at a position corresponding to the target fire-fighting component in the user interface.

[0148] The disaster in the scene may be, for example, a fire, smoke, etc.

[0149] The prompt message can include an animation flicker of the fire-fighting component and an alarm sound from the monitoring system.

[0150] The above application scenario allows fire-fighting personnel to quickly and intuitively locate the position where the disaster occurs, so as to carry out rescue.

[0151] After the fire-fighting components in the electronic drawing paper are all calibrated, based on the mapping relationship between the unique identification information and the position information of the fire-fighting components in the electronic drawing paper, the data of the mapping relationship can be reused in other modules in the fire-fighting monitoring and management system. For example, the unique identification information and the position information of the fire-fighting components in the above electronic drawing paper and their mapping relationship can also be used in devices such as a fire alarm display module, a fire control room graphic display device, and a fire emergency evacuation controller. The devices that reuse the above data can correctly display the logical coordinate position of the fire-fighting components in the electronic drawing paper.

[0152] The method provided by the embodiment of the application for calibrating a fire-fighting component calibrates the unique identification information of the physical fire-fighting component in the electronic drawing by operating the target fire-fighting component on the electronic drawing. Specifically, the method first receives a first operation on the target fire-fighting component, so that the electronic device calls the camera to collect the unique identification information of the physical fire-fighting component, and finally saves the unique identification information of the target fire-fighting component acquired and the position information of the target fire-fighting component in the electronic drawing in a one-to-one correspondence. It can be understood that, since the method collects the unique identification information by means of the electronic device before the fire-fighting component is installed, the unique identification information is obtained by collecting the image of the unique identification information, thereby avoiding searching for the fire-fighting component twice and reducing manual input, and the calibration efficiency is improved.

[0153] The above mainly introduces the scheme provided by the embodiment of the application from the perspective of the method. To implement the above functions, the hardware structure and / or software module corresponding to the execution of each function are included. The skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the application can be implemented in the form of hardware or the combination of hardware and computer software. Whether a certain function is implemented in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical scheme. The skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the application.

[0154] The embodiment of the application further provides a calibration device for a fire-fighting component. As shown in Figure 9 Fig. 1 is a structural schematic diagram of a calibration device 200 for a fire-fighting component provided by the embodiment of the application.

[0155] The calibration device 200 for the fire-fighting component includes: a receiving unit 201 configured to receive a first operation on a target fire-fighting component in an electronic drawing; the electronic drawing is used to represent the position of at least one fire-fighting component in a fire-fighting system in the fire-fighting system, and the at least one fire-fighting component includes the target fire-fighting component; a responding unit 202 configured to respond to the first operation by calling a camera start command; a starting unit 203 configured to start the camera based on the camera start command; an image collecting unit 204 configured to acquire the unique identification information of the target fire-fighting component by using the camera; and a calibration unit 205 configured to establish a mapping relationship between the unique identification information of the target fire-fighting component and the position information of the target fire-fighting component in the electronic drawing.

[0156] In a possible implementation manner, the unique identification information is in the form of an identification code, and the identification code is pasted on the target fire-fighting component.

[0157] In another possible implementation, the calibration apparatus of the fire-fighting component further includes a calibration mark unit 206 configured to add a calibration mark of the target fire-fighting component on the electronic drawing after the mapping relationship between the unique identification information of the target fire-fighting component and the position information of the target fire-fighting component in the electronic drawing is established, and the calibration mark is used to represent that the calibration of the target fire-fighting component is completed.

[0158] In another possible implementation, the calibration apparatus of the fire-fighting component further includes an acquisition unit 207 configured to acquire the electronic drawing and identify the target fire-fighting component on the electronic drawing before receiving the first operation on the target fire-fighting component in the electronic drawing; and the calibration apparatus of the fire-fighting component further includes a calling relationship establishing unit 208 configured to establish a calling relationship between the target fire-fighting component and the camera, so that the camera is triggered by the first operation on the target fire-fighting component.

[0159] In another possible implementation, the calibration apparatus of the fire-fighting component further includes a generation unit 209 configured to generate a control for the identified target fire-fighting component and display the control on a user interface after the target fire-fighting component on the electronic drawing is identified; and the control supports a camera calling event; and the calling relationship establishing unit 208 is specifically configured to establish a calling relationship between the control of the target fire-fighting component and the camera, so that the camera is triggered by the first operation on the control of the target fire-fighting component.

[0160] In another possible implementation, the electronic device includes a display screen, and the receiving unit 201 is specifically configured to receive a second operation on the display screen; and the acquisition unit 207 is further configured to acquire screen coordinates of the second operation in the display screen; and the calibration apparatus of the fire-fighting component further includes a coordinate conversion unit 210 configured to convert the screen coordinates into logical coordinates in the electronic drawing; and the calibration apparatus of the fire-fighting component further includes a determination unit 211 configured to determine that the second operation is the first operation on the target fire-fighting component when the logical coordinates are in a second region, and the second region is a region in which the target fire-fighting component is located in the electronic drawing.

[0161] In another possible implementation, the electronic device includes a display screen, and the calibration apparatus of the fire-fighting component further includes a display unit 212 configured to display a first image acquisition frame of the camera at a position of the target fire-fighting control in the display screen after the camera is started; and the first image acquisition frame is used to acquire the unique identification information of the target fire-fighting control; or the display screen is switched from a display interface of the electronic drawing to a display interface of the second image acquisition frame; and the second image acquisition frame is used to acquire the unique identification information of the target fire-fighting control, and the position information of the target fire-fighting component in the electronic drawing is displayed in the second image acquisition frame (for example, an edge region of the acquisition frame).

[0162] In a possible implementation, the display unit 212 is further configured to display the unique identification information of the target fire-fighting component on the electronic drawing according to the established mapping relationship; or generate a fusion drawing based on the established mapping relationship and the target fire-fighting component on the electronic drawing, and display the unique identification information of the target fire-fighting component on the fusion drawing.

[0163] In a possible implementation, the display unit 212 is further configured to display a user interface, and the user interface includes the second drawing or the third drawing; and in a case where it is monitored that a disaster occurs in a scene where the fire-fighting component is located in the fire-fighting system, display a prompt message at a position corresponding to the fire-fighting component in the user interface.

[0164] Of course, the calibration device 200 of the fire-fighting component provided in the embodiments of the present application includes but is not limited to the above modules.

[0165] Figure 10 FIG. 3 is a structural schematic diagram of another electronic device 300 provided in the embodiments of the present application. As shown in FIG. 3, the electronic device 300 includes a processor 301, a memory 302, and a network interface 303. Figure 10

[0166] The processor 301 includes one or more CPUs. The CPU can be a single-CPU or a multi-CPU.

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

[0168] Optionally, the processor 301 implements the calibration method of the fire-fighting component provided in the embodiments of the present application by reading the instructions saved in the memory 302, or the processor 301 implements the calibration method of the fire-fighting component provided in the embodiments of the present application by reading the instructions saved in the memory 302. In a case where the processor 301 implements the method in the above embodiments by reading the instructions saved in the memory 302, the memory 302 saves the instructions implementing the calibration method of the fire-fighting component provided in the embodiments of the present application.

[0169] The network interface 303 is a wired interface (port), for example, an FDDI, GE interface. Alternatively, the network interface 303 is a wireless interface. It should be understood that the network interface 303 includes a plurality of physical ports, and the network interface 303 is configured to acquire images, etc.

[0170] Optionally, the electronic device further includes a bus 304, and the above processor 301, memory 302, and network interface 303 are usually connected with each other through the bus 304, or are connected with each other in other manners.

[0171] ​In actual implementation, the calibration device 200, the receiving unit 201, the response unit 202, the starting unit 203, the image acquisition unit 204, the calibration unit 205, the calibration mark unit 206, the obtaining unit 207, the calling relationship establishing unit 208, the generating unit 209, the coordinate conversion unit 210, the determining unit 211 and the display unit 212 of the fire-fighting component can be implemented by a processor calling computer program code in a memory. The specific execution process can refer to the description in the method part, and will not be described here.

[0172] 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 for storing computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes each step of the method shown in the method embodiment.

[0173] Another embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores computer instructions. When the computer instructions run on the electronic device, the electronic device executes each step of the method shown in the method embodiment.

[0174] Another embodiment of the present application further provides a chip system applied to an electronic device. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected through a circuit. The interface circuit is used for receiving a signal from a memory of the electronic device and sending a signal to the processor. The signal includes 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 shown in the method embodiment.

[0175] In another embodiment of the present application, a computer program product is provided, and the computer program product includes computer instructions. When the computer instructions run on the electronic device, the electronic device executes each step of the method shown in the method embodiment.

[0176] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer executes the computer instructions, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer readable storage medium can be any available medium that can be accessed by a computer or include one or more data storage devices that can be integrated with the medium, such as servers, data centers, etc. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0177] The above is only a specific embodiment of the present application. Those skilled in the art can think of changes or replacements based on the specific embodiments provided by the present application, which should be covered within the protection scope of the present application.

Claims

1. A calibration method for fire-fighting components, characterized in that, Applied to an electronic device, the electronic device including a display screen, the method includes: Acquire electronic drawings and identify target fire protection components on the electronic drawings; wherein the electronic drawings are used to characterize the location of at least one fire protection component in the fire protection system, and the at least one fire protection component includes the target fire protection component; A control is generated for the identified target fire protection component, and the control is displayed in the user interface; wherein the control supports camera invocation events; the user interface includes a first area in the electronic drawing, the first area containing the control of the target fire protection component; the first area is the entire electronic drawing or a portion of the electronic drawing containing the control of the target fire protection component; Establish a calling relationship between the control of the target fire-fighting component and the camera, so that the camera is triggered by the first operation on the control of the target fire-fighting component; The system receives a first operation from a control for a target fire protection component in an electronic drawing; the first operation is used to trigger the determination and acquisition of the location of the target fire protection component in the fire protection system, and to trigger the invocation of the camera. In response to the first operation, the camera start command is invoked; Start the camera based on the camera start command; The first image acquisition frame of the camera is displayed at the location of the control of the target fire-fighting component on the display screen; wherein, the first image acquisition frame is used to acquire the unique identification information of the control of the target fire-fighting component; or, the display screen is switched from the display interface of the electronic drawing to the display interface of the second image acquisition frame; wherein, the second image acquisition frame is used to acquire the unique identification information of the control of the target fire-fighting component, and the location information of the target fire-fighting component in the electronic drawing is displayed in the second image acquisition frame; The camera is used to acquire the unique identification information of the target fire-fighting component; Establish a mapping relationship between the unique identification information of the target fire protection component and the location information of the target fire protection component in the electronic drawing.

2. The method according to claim 1, characterized in that, The unique identification information is displayed in the form of an identification code, which is affixed to the target fire protection component.

3. The method according to claim 1, characterized in that, After establishing the mapping relationship between the unique identification information of the target fire protection component and the location information of the target fire protection component in the electronic drawing, the method further includes: Add calibration marks for the target fire protection component to the electronic drawing. These calibration marks are used to indicate that the calibration of the target fire protection component has been completed.

4. The method according to any one of claims 1-3, characterized in that, The electronic device includes a display screen, and the receiving of a first operation for a target fire-fighting component in an electronic drawing includes: Receive a second operation for the display screen; Obtain the screen coordinates of the second operation on the display screen; Convert the screen coordinates into logical coordinates in the electronic drawing; When the logical coordinates are in the second region, it is determined that the second operation is the first operation for the target fire protection component; wherein, the second region is an effective area that can trigger camera access, determined based on the position information of the target fire protection component in the electronic drawing.

5. The method according to claim 1, characterized in that, The method further includes: According to the established mapping relationship, the unique identification information of the target fire protection component is displayed on the electronic drawing; or Based on the established mapping relationship and the target fire protection components on the electronic drawings, a fused drawing is generated to display the unique identification information of the target fire protection components on the fused drawing.

6. The method according to claim 5, characterized in that, The method further includes: The user interface is displayed; the user interface includes the electronic drawing or the fused drawing; When a disaster is detected in the scene where the target fire protection component in the fire protection system is located, a prompt message is displayed at the corresponding location of the target fire protection component in the user interface.

7. A calibration device for fire-fighting components, characterized in that, include: An acquisition unit is used to acquire electronic drawings and identify target fire protection components on the electronic drawings; wherein the electronic drawings are used to characterize the location of at least one fire protection component in the fire protection system, and the at least one fire protection component includes the target fire protection component; A generation unit is configured to generate controls for the identified target fire-fighting component and display the controls on a user interface; wherein the controls support camera invocation events; the user interface includes a first area in the electronic drawing, the first area containing the controls for the target fire-fighting component; the first area is the entire electronic drawing or a portion of the electronic drawing containing the controls for the target fire-fighting component; The call relationship establishment unit is used to establish a call relationship between the control of the target fire-fighting component and the camera, so as to trigger the call of the camera through a first operation on the control of the target fire-fighting component; The receiving unit is configured to receive a first operation of a control on a target fire protection component in an electronic drawing; the first operation is configured to trigger the determination and acquisition of the location of the target fire protection component in the fire protection system, and to trigger the invocation of the camera; A response unit is used to invoke a camera start command in response to the first operation; The startup unit is used to start the camera based on the camera startup command; The display unit is configured to display a first image acquisition frame of the camera at the location of the control of the target fire-fighting component on the display screen; wherein the first image acquisition frame is used to acquire the unique identification information of the control of the target fire-fighting component; or, to switch the display screen from the display interface of the electronic drawing to the display interface of the second image acquisition frame; wherein the second image acquisition frame is used to acquire the unique identification information of the control of the target fire-fighting component, and the second image acquisition frame displays the location information of the target fire-fighting component in the electronic drawing; The image acquisition unit is used to acquire the unique identification information of the target fire-fighting component using the camera; The calibration unit is used to establish a mapping relationship between the unique identification information of the target fire protection component and the location information of the target fire protection component in the electronic drawing.

8. An electronic device, characterized in that, The device includes a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, the computer program code including computer instructions; wherein, when the processor executes the computer instructions, the electronic device performs the method as described in 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 are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Method and device for debugging equipment, processing equipment and computer storage medium

    CN114168400A