A fire control room graphic display system and automatic point arrangement method thereof

By automatically identifying and matching fire equipment blocks, the problem of low CRT distribution efficiency in the fire control room is solved, precise automatic distribution is achieved, manual intervention is reduced, and work efficiency and accuracy are improved.

CN115859439BActive Publication Date: 2024-09-27BEIJING JADE BIRD HUANYU FIRE FIGHTING SYST SOFTWARE SERVICE CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211600819.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2024-09-27
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

The layout of CRTs in the fire control room is inefficient and requires a lot of manual processing, resulting in serious problems of work pressure and accuracy.

Method used

Provides a fire control room graphic display system and its automatic point layout method. By acquiring design software user drawings, generating expressions for identifying objects, automatically matching text and fire equipment blocks, converting file formats, realizing automatic recognition and graphic data conversion, reducing Human intervention.

Benefits of technology

It greatly improves the efficiency of CRT point layout, avoids accuracy problems caused by manual operation errors, and relieves the work pressure of technicians.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115859439B
    Figure CN115859439B
Patent Text Reader

Abstract

The present invention discloses a fire control room graphic display system and an automatic point arrangement method thereof, comprising the following steps: obtaining a design software user drawing with fire equipment points arranged on a floor, setting object attributes for the required object in advance, comparing the corresponding same object in the user drawing with the set object attributes and modifying them to be consistent with the object attributes; generating an expression for identifying an object according to a user-configured coding parameter, generating a fire equipment library and a suspected fire equipment library according to a shared equipment rule library, and automatically matching text, fire equipment blocks and suspected fire equipment blocks one by one according to a matching method library to complete identification; adjusting the file vector format of the software user drawing to be consistent with the format of a display module, and adjusting the file of the user drawing to be consistent with the different standard parameter attributes of the display module to convert and input the converted data. The present invention does not require manual processing, improves the efficiency of CRT point arrangement work, and can avoid accuracy problems caused by manual operation errors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of graphic image processing, and in particular to a graphic display system for a fire control room and an automatic point arrangement method thereof. Background Art

[0002] The fire control room graphic display device, referred to as CRT, is a display device installed in the fire control room to display the layout, working status and other fire safety information of various fire-fighting equipment on site in the building. Before CRT is put into on-site application, various fire-fighting equipment needs to be manually arranged on the floor plan, which has the problems of low efficiency and heavy workload. At the same time, there are also problems with the standardization of CAD drawings, which require manual processing. With the increasing market demand for the use of CRT products, the problem of CRT's layout work occupying manpower for a long time has become particularly prominent. Therefore, there is an urgent need for a fire control room graphic display system and its automatic layout method to relieve the work pressure and working hours of technical personnel in this work. Summary of the invention

[0003] The object of the present invention is to provide a fire control room graphic display system and an automatic point arrangement method thereof, which can reduce the manpower point arrangement work of CRT and be more accurate.

[0004] In order to achieve the purpose of the present invention, the present invention provides a fire control room graphic display system and an automatic point arrangement method thereof, comprising the following steps:

[0005] S1: obtaining a user drawing of a design software in which fire-fighting equipment points are arranged on a floor, setting object attributes for required objects in advance, comparing the corresponding same object in the user drawing with its set object attributes and modifying them to be consistent with each other;

[0006] S2: Generate an expression of the recognition object according to the user-configured coding parameters, generate a fire equipment library and a suspected fire equipment library according to the shared equipment rule library, and finally automatically match the text, fire equipment blocks and suspected fire equipment blocks one by one according to the matching method library to complete the recognition;

[0007] S3: Adjust the file vector format of the software user drawing to be consistent with the format of the display module, and adjust the different standard parameter attributes of the file of the user drawing and the display module to convert and input the converted data.

[0008] As a preferred technical solution of the present invention, in step S1, the design software user drawing is a mechanical drawing software CAD drawing, and the required objects are a text style sheet, a layer, a space and a font.

[0009] As a preferred technical solution of the present invention, the user-configured encoding parameters include: encoding format, whether there is a prefix, and whether there is a separator.

[0010] As a preferred technical solution of the present invention, in step S2, the encoding parameters selected by the user generate a regular expression; scan all single-line text in the user-selected area, and if the text meets the regular expression, put it into the library to be identified; otherwise, add the device type shared library regular expression before and after to match, and if it meets the requirements, put it into the library to be identified; otherwise, determine whether to use the two addresses spliced ​​by or.

[0011] As a preferred technical solution of the present invention, in step S2, identifying fire equipment blocks and suspected fire equipment blocks includes the following steps: downloading the latest fire equipment block configuration shared library from the cloud and generating a regular expression, scanning all block references in the drawing area, and if the block name conforms to the regular table, putting it into the fire equipment library; if it does not conform, traversing all attributes of the block definition to see if they conform to the regular expression; obtaining the size of the smoke sensor in the matching fire equipment library, traversing all block references, and if the size is similar to a certain type of fire equipment, putting it into the suspected fire equipment library.

[0012] As a preferred technical solution of the present invention, in step S2, the automatic matching of text, fire equipment blocks and suspected fire equipment blocks includes the following steps: traverse from near to far, traverse all the text to be recognized, scan the surrounding block references, if it is in the fire equipment library and meets the matching regular expression, it is considered to match the text; if there is no match in the fire equipment library, match the block reference of the suspected fire equipment library, if there is no match in the suspected fire equipment library, then create a fire equipment block by itself.

[0013] As a preferred technical solution of the present invention, all the characters to be recognized are traversed, and the surrounding block references are scanned. When there are multiple surrounding block references that exist in the fire equipment library and match the matching regular expression, the distance between each block reference and the character is compared, and finally the closer block reference is matched.

[0014] As a preferred technical solution of the present invention, in step S3, the standard parameter attributes include a graphic vector format and a coordinate system.

[0015] As a preferred technical solution of the present invention, another technical solution disclosed by the present invention is: a fire control room graphic display system, comprising the following modules:

[0016] Attribute processing module: used to obtain the user drawing of the design software with fire equipment points arranged on the floor, set the object attributes for the required objects in advance, compare the corresponding same object in the user drawing with the set object attributes and modify them to be consistent with the object attributes;

[0017] Matching recognition module: used to generate the expression of the recognition object according to the user-configured coding parameters, generate the fire equipment library and the suspected fire equipment library according to the shared equipment rule library, and finally automatically match the text, fire equipment block and suspected fire equipment block one by one according to the matching method library to complete the recognition;

[0018] Graphics and data conversion module: used to adjust the file vector format of the software user drawing to be consistent with the format of the display module, and to adjust the different standard parameter attributes of the user drawing file and the display module for conversion and input of the converted data.

[0019] Compared with the prior art, the present invention provides a fire control room graphic display system and an automatic point arrangement method thereof, which has the following beneficial effects:

[0020] The present invention automatically processes CAD drawings through a process, including an automatic processing method for CAD drawings, automatic identification and text matching of fire equipment blocks in CAD drawings, and conversion of graphics and data from CAD drawings to browsers, and finally directly outputs them to the graphic display system of the fire control room without the need for manual processing, thereby greatly improving the efficiency of CRT layout work and effectively avoiding accuracy problems caused by manual operating errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a schematic flow chart of the automatic point arrangement method of the fire control room graphic display system of the present invention;

[0022] Figure 2 Example diagram of automatic identification CAD drawings of fire fighting equipment provided for the implementation of the present invention;

[0023] Figure 3 An example diagram of a CAD drawing of the equipment coding format (host number-loop number-part number) provided for the implementation of the present invention;

[0024] Figure 4 A schematic diagram of a real host configuration page provided for the implementation of the present invention;

[0025] Figure 5 A schematic diagram of a real loop configuration page provided for the implementation of the present invention;

[0026] Figure 6 An example diagram of a CAD drawing of the equipment coding format (loop number-part number) provided for the implementation of the present invention;

[0027] Figure 7 An example diagram of a CAD drawing of the equipment coding format (part number) provided for the implementation of the present invention;

[0028] Figure 8 A schematic diagram of a loop mixing page provided for the implementation of the present invention;

[0029] Fig. 9 An example diagram of a CAD drawing of the equipment coding format (room number-part number) provided for the implementation of the present invention;

[0030] Fig.10 CAD drawing example diagram of equipment coding format (no coding but fire equipment block) provided for the implementation of the present invention;

[0031] Fig.11 It is a schematic diagram of the process of checking and processing CAD drawings in the present invention;

[0032] Fig.12 This is a schematic diagram of the automatic identification algorithm flow of the fire fighting equipment of the present invention.

[0033] Fig.13 It is a schematic diagram of the process of automatically identifying and matching texts of the present invention;

[0034] Fig.14 It is a schematic diagram of the process of identifying a fire-fighting equipment block and a suspected fire-fighting equipment block according to the present invention;

[0035] Fig.15 It is a schematic diagram of the automatic matching process of the text and the fire equipment block of the present invention;

[0036] Fig.16 It is a schematic diagram of the process of converting graphics and data from CAD drawings to browsers of the present invention. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] See also Figure 1-Figure 16 The present invention supports 6 coding modes: host number-loop number-part number, loop number-part number, part number, room number-part number, no coding with fire equipment block, no coding without fire equipment block.

[0039] The present invention supports customization of device type descriptions before and after encoding, and the defined library is in a cloud sharing mode.

[0040] The present invention supports customization of fire equipment block keywords, and the defined library is in a cloud sharing mode.

[0041] The present invention preferentially matches smoke sensors from near to far because smoke sensors are the most common type of equipment.

[0042] The present invention supports the priority matching and identification of the equipment type and CAD equipment block definition in the fire control room graphic display system to improve the recognition rate (generally speaking, the closer position is preferred, but if the equipment type is more matched, the equipment type that matches is preferred). The matching library is a cloud sharing mode. As shown in the figure below, the part number 42 is closer to the smoke sensor on the left in principle, but its equipment type is manual alarm, so the manual alarm equipment block in the upper right corner is matched first. Figure 2 shown.

[0043] The present invention supports the identification of suspected fire equipment types. If a fire equipment block is found, the fire equipment block with substantially the same size is considered to be the suspected fire equipment block. If no fire equipment block is found, the block with the most identical size on the drawing is considered to be the suspected fire equipment block. The fire equipment block is matched first. If there is no match, the nearest suspected fire equipment block is matched.

[0044] The present invention supports only codes but no fire-fighting equipment blocks, and automatically inserts the fire-fighting equipment blocks below the codes.

[0045] This mode refers to the device encoding format including host number, loop and part number, such as Figure 3 As shown:

[0046] If the drawing host number is inconsistent with the actual host number, you can check the real host setting to map the drawing host number to the actual host number. Multiple mappings are supported, such as Figure 4 As shown:

[0047] If the drawing circuit number is inconsistent with the actual circuit number, you can check the real circuit setting to map the drawing circuit number to the actual circuit number. Multiple mappings are supported, as follows Figure 5 As shown:

[0048] The present invention supports setting prefixes for host numbers and supports setting multiple prefixes at the same time.

[0049] The present invention supports setting prefixes for loop numbers and supports setting multiple prefixes at the same time.

[0050] The present invention supports customization of separators between host numbers, loop numbers and part numbers as well as a mode without separators.

[0051] The present invention supports predefining the color of recognized text to improve the recognition rate.

[0052] The present invention supports rectangular frame selection or irregular frame selection of the recognition area.

[0053] The present invention supports recognition patterns encoded in block attributes.

[0054] The present invention mode refers to the equipment coding format including the circuit and part number, such as Figure 6 As shown:

[0055] If the drawing circuit number is inconsistent with the actual circuit number, you can check the real circuit setting to map the drawing circuit number to the actual circuit number. Multiple mappings are supported, such as Figure 5 shown.

[0056] The present invention supports setting prefixes for loop numbers and supports setting multiple prefixes at the same time.

[0057] The present invention supports customization of separators between loop numbers and part numbers as well as a mode without separators.

[0058] The present invention supports predefining the color of recognized text to improve the recognition rate.

[0059] The present invention supports rectangular frame selection or irregular frame selection of the recognition area.

[0060] The present invention supports recognition patterns encoded in block attributes.

[0061] Part No.

[0062] This mode refers to the device coding format with only the part number, such as Figure 7 As shown:

[0063] The present invention supports setting prefixes for part numbers and supports setting multiple prefixes at the same time.

[0064] The present invention supports predefining the color of recognized text to improve the recognition rate.

[0065] The present invention supports rectangular frame selection or irregular frame selection of the recognition area.

[0066] The present invention supports recognition patterns encoded in block attributes.

[0067] The present invention supports the mixed loop mode of the part number, that is, the part numbers in the area belong to different loops, which can be configured by address range, and the last identification, such as Figure 8 Shown: Room number - Part number

[0068] This mode refers to the equipment coding format including room number and part number, such as Fig. 9 As shown (C01 indicates the room number):

[0069] The present invention supports customization of the prefix of the room number.

[0070] The present invention supports the customization of the separator between the room number and the part number or the absence of the separator.

[0071] The present invention supports predefining the color of recognized text to improve the recognition rate.

[0072] The present invention supports rectangular frame selection or irregular frame selection of the recognition area.

[0073] The present invention supports recognition patterns encoded in block attributes.

[0074] No code with fire equipment block

[0075] This mode means that there are fire equipment blocks on the CAD drawing, but no coding, such as Fig.10 As shown:

[0076] In this mode, all equipment trees of the fire control room graphic display system are automatically loaded and displayed. You can select a certain part to start point layout; select CAD block reference to represent point layout; and automatically implement continuous point layout mode until you press the ESC key to exit.

[0077] No code, no fire equipment block

[0078] This mode means that there are no fire equipment blocks or codes on the CAD drawing. In this mode, all equipment trees of the fire control room graphic display system are automatically loaded and displayed. You can select a certain part to start point distribution; click the CAD drawing position to indicate point distribution; the continuous point distribution mode is automatically realized until you press the ESC key to exit

[0079] The embodiment of the present invention provides a fire control room graphic display system and an automatic point arrangement method thereof, comprising the following steps:

[0080] S1: obtaining a user drawing of a design software in which fire-fighting equipment points are arranged on a floor, setting object attributes for required objects in advance, comparing the corresponding same object in the user drawing with its set object attributes and modifying them to be consistent with each other;

[0081] S2: Generate an expression of the recognition object according to the user-configured coding parameters, generate a fire equipment library and a suspected fire equipment library according to the shared equipment rule library, and finally automatically match the text, fire equipment blocks and suspected fire equipment blocks one by one according to the matching method library to complete the recognition;

[0082] S3: Adjust the file vector format of the software user drawing to be consistent with the format of the display module, and adjust the different standard parameter attributes of the file of the user drawing and the display module to convert and input the converted data.

[0083] like Fig.11As shown, in one embodiment of the present invention, in step S1, the present invention takes the design software user drawing as a mechanical drawing software CAD drawing as an example for explanation: the items to be checked and processed on the CAD drawing include text style sheets, layers, spaces and fonts, including the following steps: S101, detecting the text style sheet, replacing all detected text style sheet fonts with bold; S102, detecting whether all layers are visible, if the detection result is yes, modifying the layer to a non-locked mode and a printable mode; if the detection result is no, no processing operation is performed; S103, detecting whether the current layout space is a drawing space layout, if the detection result is yes, traversing all viewports; if the detection result is no, no processing operation is performed; S104, detecting whether the current layout space is a drawing space layout, if the detection result is yes, traversing all viewports; if the detection result is no, no processing operation is performed; S105, detecting whether the current layout space is a drawing space layout, if the detection result is yes, traversing all viewports; if the detection result is no, no processing operation is performed; S106, detecting whether the current layout space is a drawing space layout, if the detection result is yes, traversing all viewports; if the detection result is no, no processing operation is performed; S107, detecting whether the current layout space is a drawing space layout, if the detection result is yes, traversing all viewports; if the detection result is no, no processing operation is performed; S108, detecting whether the current layout space is a drawing space layout, if the detection result is yes, traversing all viewports; if the detection result is no, no processing operation is performed; S109, detecting whether the current layout space is a drawing space layout, if the detection result is yes, traversing all viewports; if the detection result is no, 4. Check whether the layer is a drawing space viewport. If the test result is yes, the layer will not be printed. If the test result is no, no processing will be performed. S105. Traverse all text to check whether the text is in Tian Zheng font. If the test result is yes, the text will be broken up. If the test result is no, no processing will be performed. S106. Traverse to see whether there are multiple lines of text. If multiple lines of text are detected, the multiple lines of text will be broken up. If the test result is no, no processing will be performed. S107. Check whether all text contains underlines. If underlines are detected, the underlines will be removed. If the test result is no, no processing will be performed. S108. Automatically store the drawings and output them to the fire control room graphic display system.

[0084] like Fig.12 As shown, the algorithm generates a regular expression for identifying text according to the user configuration, and then generates a fire equipment library and a suspected fire equipment library according to the shared equipment rule library. Finally, the text and the block are matched one by one according to the matching algorithm library to complete automatic identification. In one embodiment of the present invention, in step S2, the fire equipment in the CAD drawing is identified, including: S21, generating a regular expression A according to the user configured coding parameters, and identifying matching text; S22, identifying the fire equipment block and the suspected fire equipment block according to the shared equipment rule library, and generating a fire equipment library and a suspected fire equipment library; S23, matching the text and the fire equipment block one by one according to the matching algorithm library to complete automatic identification.

[0085] In one embodiment of the present invention, in step S21, the user configures the encoding parameters including: encoding format, whether there is a prefix and whether there is a separator, and text recognition includes: generating a regular expression according to the encoding mode, prefix, interval, etc. selected by the user; scanning all single-line text in the user-selected area, and if the text meets the regular expression, it is placed in the library to be recognized; otherwise, the device type shared library regular expression is added before and after to match, and if it meets the requirements, it is placed in the library to be recognized; otherwise, it is determined whether to use or / to splice two addresses.

[0086] like Fig.13As shown, in one embodiment of the present invention, in step S21, automatically identifying matching text includes the following steps: S2101, filtering all single-line text in the user-selected area; S2102, obtaining the address code according to whether the text is defined by attributes; S2103, detecting whether the address code conforms to regular expression A, if the detection result is yes, jumping to step S2106; if the detection result is no, jumping to step S2104; S2104, detecting whether the device type prefix regular expression + address code regular expression conforms, if the detection result is yes, jumping to step S2106; if the detection result is no, jumping to step S2104. Go to step S2105; S2105, check whether the address code regular expression + device type suffix regular expression are met, if the test result is yes, jump to step S2106; if the test result is no, jump to step S2108; S2106, check whether the text meets the color condition, if the test result is yes, jump to step S2107; if the test result is no, jump to step S2108; S2107, generate a real address according to the real host, real loop and mixed configuration, put it into the library to be recognized, and end text recognition; S2108, put the text into the unrecognized list, and end text recognition.

[0087] In one embodiment of the present invention, in step S2102, if the text is an attribute definition, the address code is Tag; if the text is not an attribute definition, the address code is TextString.

[0088] Identify fire equipment blocks and suspected fire equipment blocks: Download the latest fire equipment block configuration shared library from the cloud and generate a regular expression, scan all block references in the drawing area, and put the block name into the fire equipment library if it meets the regular expression table; if it does not meet the regular expression, traverse all block definition attributes to see if they meet the regular expression; obtain the size of the smoke sensor in the matching fire equipment library, traverse all block references, and if the size is similar to the smoke sensor, put it into the suspected fire equipment library. For the specific implementation process, refer to Fig.14In one embodiment of the present invention, in step S22, identifying the fire equipment block and the suspected fire equipment block includes the following steps: S2201, downloading the fire equipment block configuration shared library; S2202, generating block keywords and full-word matching regular expression B; S2203, traversing all block references in the current space; S2204, detecting whether the block name conforms to the regular expression B, if the detection result is yes, then jumping to step S2210; if the detection result is no, then jumping to step S2205; S2205, traversing all attributes of the block definition, detecting whether the block definition attribute TextString conforms to the regular expression, if the detection result is yes, then jumping to step S2210; if the detection result is no, then jumping to step S2206; S2206, detecting whether the block definition attribute Prompt conforms to the regular expression, if the detection result is yes, then jumping to step S2210; if the detection result is no, jump to step S2207; S2207, check whether the block definition attribute Tag conforms to the regular expression, if the detection result is yes, jump to step S2210; if the detection result is no, jump to step S2208; S2208, traverse all sub-objects of the block definition, and check whether there is a block reference. If the detection result is yes, jump the referenced block to step S2204; if the detection result is no, jump to step S2209; S2209, check whether the size of the block is consistent with the size of the smoke sensor, if the detection result is yes, jump to step S2212; if the detection result is no, jump to step S2211; S2210, put the block into the fire equipment library and end the recognition work; S2211, throw away the block and end the recognition work; S2212, put the block into the suspected fire equipment library and end the recognition work.

[0089] Automatic matching of text and fire equipment blocks: traverse from near to far, traverse all the text to be recognized, scan the surrounding block references, if it is in the fire equipment library and meets the matching regular expression, it is considered to match the text; if there is no match in the fire equipment library, match the block reference of the suspected fire equipment library, if there is no suspected fire equipment library, create a fire equipment block by yourself, such as Fig.15As shown, in one embodiment of the present invention, in step S23, the automatic matching of text and fire equipment block includes the following steps: S2301, traverse all the texts to be recognized from near to far, and scan the surrounding block references; S2302, detect whether the block reference exists in the fire equipment library, if the detection result is yes, continue to perform subsequent operations; if the detection result is no, discard the block reference; S2303, detect whether the block reference has been identified, if the detection result is yes, discard the block reference; if the detection result is no, continue to perform subsequent operations; S2304, detect whether the block reference is a smoke detection device, if the detection result is yes, discard the block reference If the result is yes, it is determined that the text matches the block reference, the fire equipment block reference is marked, and the text is removed from the library to be identified; if the test result is no, the subsequent operations are continued; S2305, whether the block reference exists in the special type fire equipment library, such as hand alarm sound and light, if the test result is yes, then the subsequent operations are continued; if the test result is no, the block reference is discarded; S2306, whether the block reference has been identified and marked, if the test result is yes, then the block reference is discarded; if the test result is no, then the subsequent operations are continued; S2307, whether the block reference satisfies the special type regular expression, if the test result is yes, then the block reference is discarded; if the test result is no, then the subsequent operations are continued; If the result is yes, it is determined that the text matches the block reference, the fire equipment block reference is marked, and the text is removed from the library to be identified; if the detection result is no, the subsequent operations are continued; S2308, whether the block reference exists in the fire equipment library and the suspected fire equipment library, if the detection result is yes, the subsequent operations are continued; if the detection result is no, the block reference is discarded; S2309, whether the block reference has been identified and marked, if the detection result is yes, the block reference is discarded; if the detection result is no, the subsequent operations are continued; S2310, whether the block reference exists in the fire equipment library, if the detection result is yes , then determine whether the text matches the block reference, mark the fire equipment block reference, and remove the text from the library to be identified; if the detection result is no, continue to perform subsequent operations; S2311, detect whether the block reference exists in the suspected fire equipment library. If the detection result is yes, then determine whether the text matches the block reference, mark the fire equipment block reference, and remove the text from the library to be identified; if the detection result is no, continue to perform subsequent operations; S2312, create a fire equipment block by yourself, match the text with the fire equipment block, mark the fire equipment block, and remove the text from the library to be identified; S2313, end the automatic matching of text and fire equipment block.

[0090] In one embodiment of the present invention, all the characters to be recognized are traversed, and the surrounding block references are scanned. When there are multiple surrounding block references that exist in the fire equipment library and match the regular expression, the distance between each block reference and the character is compared, and finally the closer block reference is matched.

[0091] The CAD coordinate system has a world coordinate system and a user coordinate system. The world coordinate system is invariant, while the user coordinate system can be customized by the user and is variable. Therefore, in theory, the world coordinate system is stored. However, since the user uses the user coordinate system for printing, it is ultimately necessary to convert the world coordinate system of the device into the user coordinate system, and a matrix recorded during the graphic conversion is required during the conversion. The CAD coordinate system is an infinite coordinate system with the origin at the lower left corner, the positive Y-axis upward, and the positive X-axis to the right; while the browser coordinate system has the origin at the upper left corner, the positive Y-axis downward, and the positive X-axis to the right. Therefore, for the conversion from CAD to the browser, the CAD area needs to be scaled to the browser area first, and then the X-axis is scaled proportionally, and the Y-axis is inverted vertically. The specific implementation logic is as Fig.16 shown. In an embodiment of the present invention, in step S3, the graphic and data conversion from the CAD drawing to the browser includes the following steps: S31. Calculate the scaling ratio. The X-axis scaling ratio widthRate = the width of the CAD area / the width of the PNG area; the Y-axis scaling ratio heightRate = the height of the CAD area / the height of the PNG area;

[0092] S32. Determine whether widthRate < heightRate. If the result is yes, jump to step S33; if the result is no, jump to step S34;

[0093] S33. Scale CAD to fill the height on the PNG, and scale the width proportionally and center it; calculate the actual width cadToPngWidth of CAD scaled to PNG = the width of CAD / heightRate; calculate the left offset xStart of CAD scaled to PNG = (the width of PNG - cadToPngWidth) / 2; calculate the X position of CAD scaled to PNG = xStart + the width scaled proportionally of X; calculate the Y position of CAD scaled to PNG = the height of PNG - the height scaled proportionally of Y; calculate the scaling coefficient of the size of the device on CAD scaled to PNG = the width of the CAD device / heightRate;

[0094] S34. Scale CAD to fill the width on the PNG, and scale the height proportionally and center it; calculate the actual height cadToPngHeight of CAD scaled to PNG = the width of CAD / widthRate; calculate the upper offset yStart of CAD scaled to PNG = (the height of PNG - cadToPngHeight) / 2; calculate the Y position of CAD scaled to PNG = the height of PNG - (yStart + the width scaled proportionally of Y); calculate the X position of CAD scaled to PNG = the height scaled proportionally of X; calculate the scaling coefficient of the size of the device on CAD scaled to PNG = the width of the CAD device / widthRate;

[0095] S34. Output the processed graphics to the fire control room graphic display system.

[0096] The above are only preferred specific implementation modes of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solutions and inventive concepts of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. An automatic point arrangement method for a fire control room graphic display system, It is characterized in that The following steps are involved: S1: obtaining a user drawing of a design software in which fire-fighting equipment points are arranged on a floor, setting object attributes for required objects in advance, comparing the corresponding same object in the user drawing with its set object attributes and modifying them to be consistent with each other; S2: Generate an expression of the recognition object according to the user-configured coding parameters, generate a fire equipment library and a suspected fire equipment library according to the shared equipment rule library, and finally automatically match the text, fire equipment blocks and suspected fire equipment blocks one by one according to the matching method library to complete the recognition; The user-configured encoding parameters include: encoding format, whether there is a prefix, and whether there is a separator; Generate a regular expression using the encoding parameters selected by the user; scan all single-line text in the area selected by the user, and if the text matches the regular expression, put it into the library to be identified; otherwise, add the device type shared library regular expression before and after to match, and if it matches, put it into the library to be identified; otherwise, determine whether to use the two addresses concatenated by OR; Identifying fire equipment blocks and suspected fire equipment blocks includes the following steps: downloading the latest fire equipment block configuration shared library from the cloud and generating regular expressions, scanning all block references in the drawing area, and putting the block name into the fire equipment library if it meets the regular expression table; if it does not meet the regular expression, traversing all attributes of the block definition to see if they meet the regular expression; obtaining the size of the smoke sensor in the matching fire equipment library, traversing all block references, and if the size is similar to a certain type of fire equipment, putting it into the suspected fire equipment library; The automatic matching of text, fire equipment blocks and suspected fire equipment blocks includes the following steps: traverse from near to far, traverse all the text to be identified, scan the surrounding block references, if it is in the fire equipment library and meets the matching regular expression, it is considered to match the text; if there is no match in the fire equipment library, match the block reference of the suspected fire equipment library, if there is no match in the suspected fire equipment library, then create a fire equipment block by yourself; Traverse all the characters to be recognized and scan the surrounding block references. If there are multiple surrounding block references in the fire equipment library that match the regular expression, compare the distance between each block reference and the character, and finally match the closer block reference. S3: Adjust the file vector format of the software user drawing to be consistent with the format of the display module, and adjust the different standard parameter attributes of the file of the user drawing and the display module to convert and input the converted data.

2. According to claim 1, a method for automatically arranging points for a fire control room graphic display system, Features: In step S1, the design software user drawing is a mechanical drawing software CAD drawing, and the required objects are text style sheets, layers, spaces and fonts.

3. The automatic point arrangement method of the fire control room graphic display system according to claim 1, Features: In step S3, standard parameter attributes include graphic vector format and coordinate system.

4. A fire control room graphic display system, It is characterized in that Includes the following modules: Attribute processing module: used to obtain the user drawing of the design software with fire equipment points arranged on the floor, set the object attributes for the required objects in advance, compare the corresponding same object in the user drawing with the set object attributes and modify them to be consistent with the object attributes; Matching recognition module: used to generate the expression of the recognition object according to the user-configured coding parameters, generate the fire equipment library and the suspected fire equipment library according to the shared equipment rule library, and finally automatically match the text, fire equipment block and suspected fire equipment block one by one according to the matching method library to complete the recognition; The user-configured encoding parameters include: encoding format, whether there is a prefix, and whether there is a separator; Generate a regular expression using the encoding parameters selected by the user; scan all single-line text in the area selected by the user, and if the text matches the regular expression, put it into the library to be identified; otherwise, add the device type shared library regular expression before and after to match, and if it matches, put it into the library to be identified; otherwise, determine whether to use the two addresses concatenated by OR; Identifying fire equipment blocks and suspected fire equipment blocks includes the following steps: downloading the latest fire equipment block configuration shared library from the cloud and generating regular expressions, scanning all block references in the drawing area, and putting the block name into the fire equipment library if it meets the regular expression table; if it does not meet the regular expression, traversing all attributes of the block definition to see if they meet the regular expression; obtaining the size of the smoke sensor in the matching fire equipment library, traversing all block references, and if the size is similar to a certain type of fire equipment, putting it into the suspected fire equipment library; The automatic matching of text, fire equipment blocks and suspected fire equipment blocks includes the following steps: traverse from near to far, traverse all the text to be identified, scan the surrounding block references, if it is in the fire equipment library and meets the matching regular expression, it is considered to match the text; if there is no match in the fire equipment library, match the block reference of the suspected fire equipment library, if there is no match in the suspected fire equipment library, then create a fire equipment block by yourself; Traverse all the characters to be recognized and scan the surrounding block references. If there are multiple surrounding block references in the fire equipment library that match the regular expression, compare the distance between each block reference and the character, and finally match the closer block reference. Graphics and data conversion module: used to adjust the file vector format of the software user drawing to be consistent with the format of the display module, and to adjust the different standard parameter attributes of the user drawing file and the display module for conversion and input of the converted data.