A method for automatically arranging evacuation indicator lights in CAD lighting plan
By applying image processing and artificial intelligence technology in CAD construction drawings to automatically identify and arrange evacuation lights, the problem of repetitiveness and errors in residential electrical design is solved, design efficiency and accuracy are improved, and construction safety is ensured.
Patent Information
- Application Number
- CN202111229642.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-21
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-10-21
AI Technical Summary
In the drawing process of existing CAD construction drawings, residential electrical design involves a lot of repetitive designs, resulting in a waste of designer resources, and there may be errors in manual design, which affects the construction quality and building usage.
The automatic arrangement method of evacuation indicators in CAD lighting plans is adopted. Through image processing and artificial intelligence technology, the building plan elements are obtained, spaces and components are identified, safe evacuation routes are calculated, and evacuation indicators are automatically arranged according to space attributes.
It achieves the rapid and efficient issuance of residential lighting plans that comply with national standards, improves design accuracy, saves designer resources, and ensures construction safety.
Smart Images

Figure CN113886929B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of drawing analysis, and in particular relates to a method for automatically arranging evacuation indicator lights in a CAD lighting plan. Background Art
[0002] CAD construction drawings are drawings that are made using AutoCAD software to show the overall layout of a project, the exterior shape of a building, interior layout, structural construction, interior and exterior decoration, material methods, equipment, and construction. CAD construction drawings are complete, accurate, and specific in requirements. They are the basis for engineering construction, preparation of construction drawing budgets, and construction organization design. They are also important technical documents for technical management. Electrical construction drawings for residential buildings are currently contracted by design institutes to draw them based on the design and layout of building space. Since national standards have been pre-customized, the electrical designs for residential buildings are similar and have many repetitive designs. Designers cannot expand their talents and thinking when designing this type of drawings, which wastes designer resources. In addition, human designs may have errors and omissions, which will affect the construction quality and have a certain impact on the use of the building after the construction is completed.
[0003] CAD lighting plan is a type of drawing in the electrical specialty of CAD construction drawings, covering the placement, power supply range, connection relationship, etc. of all electrical appliances for lighting in buildings and residences (including but not limited to evacuation indicator lights, floor indicator lights, emergency lighting, ordinary lights, etc.). With the widespread application of artificial intelligence, some tasks that were previously done manually can be completed by artificial intelligence. The drawing of CAD construction drawings is a time-consuming and labor-intensive repetitive task, and draftsmen are prone to fatigue after working for a long time. With the help of computer vision technology and traditional image processing algorithms, the space / wall lines in the CAD construction drawings can be identified, so as to draw the components of the electrical part, such as floor indicator lights / emergency lights / ordinary lights, etc. The present invention proposes a method for automatically arranging evacuation indicator lights in CAD lighting plan drawings, which can achieve fast and efficient issuance of residential lighting plan drawings that meet national standards. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a method for automatically arranging evacuation indicator lights in a CAD lighting plan, which has the advantages of fast drawing speed and high accuracy.
[0005] To achieve the above object, the present invention provides the following technical solution: a method for automatically arranging evacuation indicator lights in a CAD lighting plan, and the specific operating steps of the method for automatically arranging evacuation indicator lights in a CAD lighting plan are as follows:
[0006] S1. Connect to the CAD parsing service to obtain wall lines, doors, windows and other graphic elements on the CAD architectural plan drawings;
[0007] S2, scaling the CAD drawing frame to a picture with a fixed scale, recording the scaling scale, recording the primitives obtained in step 1 and drawing them on the picture at the same scale, and using image processing methods to obtain the outline of each closed space;
[0008] S3, recording the graphics elements obtained in step 1 and drawing them on the picture in the same proportion, and classifying all components using an artificial intelligence method to obtain components such as doors and windows;
[0009] S4. Find all common spaces based on text matching, and calculate and obtain the door components corresponding to all spaces through the IOU judgment method;
[0010] S5. Find safe evacuation routes through all public spaces, i.e. routes that guide people to evacuate to safe areas;
[0011] S6. A method for obtaining a safe evacuation route is as follows: starting from the corridor, a recursive algorithm is used to obtain the next level of space through the door until the next level of the door of the space is a stairwell or an outdoor space. From the corridor to the stairwell / outdoor, the space and the door of the space are stored in a list dictionary form;
[0012] S7. Arrange evacuation indicator lights in public spaces.
[0013] Preferably, the graphic elements in S1 specifically refer to basic graphics such as points, lines, arcs, etc. when drawing CAD drawings; the CAD architectural plan drawing obtained in S1 is a type of high-rise building; the public space in S4 includes: corridors / walkways / all antechambers / elevator halls / stairwells / door lobbies and all other public spaces; the safe evacuation route in S5 is the route from the entrance door to the external area or stairwell. By parsing and obtaining the graphic elements on the CAD architectural plan drawing, the early efficiency can be accelerated and the subsequent processing is convenient. The safe evacuation route is a very important road that is related to the life safety of the residents.
[0014] Preferably, the public spaces in S7 are divided into three types, wherein the first type is the first space connected to the entrance door, generally a corridor / walkway, the second type is a stairwell, and the third type is other spaces. Different types of public spaces have different arrangements of evacuation indicator lights, and specific arrangements need to be made for different public spaces.
[0015] Preferably, the method for arranging the space evacuation indicator lights of the first space connected to the entrance door is as follows: find the largest inscribed rectangle of the space, determine the direction of the door connected to the next level space, usually maintain visual continuity in the space, or place evacuation indicator lights at intervals of 10m in the same direction, with the direction pointing to the door closest to the position, and placed on the wall line on the side of the nearest door.
[0016] Preferably, the method for arranging the spatial evacuation indicator lights in the stairwell is as follows: first, determine whether the image frame is a ground floor / underground floor / first floor, wherein if it is a ground floor, it is necessary to use regular matching to the text "down" in the stairwell, and the evacuation indicator light is placed on the wall line closest to the text, and the indication direction is pointing to the middle of the stairwell; if it is a basement floor, it is necessary to use regular matching to the text "up" of the stairs, and place it on the wall line closest to the text, and the indication direction is pointing to the middle of the stairwell; if it is the first floor, there is no need to place an evacuation indicator light on the stairs.
[0017] Preferably, the method for arranging spatial evacuation indicator lights in the other spaces is as follows: if there are public spaces both above and below the space, first determine whether the two orientation lines of the door connecting the upper space and the door of the lower space are parallel; if they are parallel and the distance exceeds 5m, it is necessary to arrange evacuation indicator lights in the space, with the direction pointing from the upper connecting door to the lower connecting door; if they are not parallel, it is necessary to arrange them on the door next to the lower connecting door, with the direction pointing to the lower connecting door.
[0018] Compared with the prior art, the present invention has the following beneficial effects:
[0019] The present invention applies traditional algorithms to obtain safe evacuation routes, and places evacuation indicator lights according to different attributes of the space. The most important things about the evacuation indicator lights are their direction and placement. The present application can judge the direction according to different spatial attributes, and select the nearest wall line parallel to the wall line for placement, thereby realizing intelligent drawing of evacuation indicator lights, which can effectively improve the accuracy of the drawings, save designer resources, and has better results. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic diagram of the overall workflow of the present invention;
[0021] Figure 2 It is a schematic diagram of the escape route of the present invention. DETAILED DESCRIPTION
[0022] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making any creative work shall fall within the scope of protection of the present invention.
[0023] like Figure 1 to Figure 2 As shown, the present invention provides a technical solution: a method for automatically arranging evacuation indicator lights in a CAD lighting plan. The specific operation steps of the method for automatically arranging evacuation indicator lights in a CAD lighting plan are as follows:
[0024] S1. Connect to the CAD parsing service to obtain wall lines, doors, windows and other graphic elements on the CAD architectural plan drawings;
[0025] S2, scaling the CAD drawing frame to a picture with a fixed scale, recording the scaling scale, recording the primitives obtained in step 1 and drawing them on the picture at the same scale, and using image processing methods to obtain the outline of each closed space;
[0026] S3, recording the graphics elements obtained in step 1 and drawing them on the picture in the same proportion, and classifying all components using an artificial intelligence method to obtain components such as doors and windows;
[0027] S4. Find all common spaces based on text matching, and calculate and obtain the door components corresponding to all spaces through the IOU judgment method;
[0028] S5. Find safe evacuation routes through all public spaces, i.e. routes that guide people to evacuate to safe areas;
[0029] S6. A method for obtaining a safe evacuation route is as follows: starting from the corridor, a recursive algorithm is used to obtain the next level of space through the door until the next level of the door of the space is a stairwell or an outdoor space. From the corridor to the stairwell / outdoor, the space and the door of the space are stored in a list dictionary form;
[0030] S7. Arrange evacuation indicator lights in public spaces.
[0031] Among them, the graphics elements in S1 specifically refer to basic graphics such as points, lines, arcs, etc. when drawing CAD drawings; the CAD architectural plan drawings obtained in S1 are a type of high-rise building; the public spaces in S4 include: corridors / walkways / all antechambers / elevator halls / stairwells / door lobbies and other public spaces; the safe evacuation route in S5 is the route from the entrance door to the external area or stairwell. By parsing and obtaining the graphics elements on the CAD architectural plan drawings, the early efficiency can be accelerated and the subsequent processing can be facilitated. The safe evacuation route is a very important road that concerns the life safety of the residents.
[0032] Among them, the public spaces in S7 are divided into three types. The first type is the first space connected to the entrance door, which is generally a corridor / walkway. The second type is the stairwell. The third type is other spaces. Different types of public spaces have different arrangements of evacuation indicator lights, and specific arrangements are required for different public spaces.
[0033] Among them, the method for arranging the space evacuation indicator lights in the first space connected to the entrance door is: find the largest inscribed rectangle of the space, determine the direction of the door connected to the next level space, usually maintain visual continuity in the space, or place evacuation indicator lights at intervals of 10m in the same direction, pointing to the door closest to the position, and placed on the wall line on the side of the nearest door.
[0034] Among them, the method for arranging the spatial evacuation indicator lights in the stairwell is as follows: first, determine whether the frame is a ground floor / underground floor / first floor. If it is a ground floor, it is necessary to use regular matching to the text "down" in the stairwell, and the evacuation indicator light is placed on the wall line closest to the text, and the indication direction is pointing to the middle direction of the stairwell; if it is a basement floor, it is necessary to use regular matching to the text "up" of the stairs, and place it on the wall line closest to the text, and the indication direction is pointing to the middle direction of the stairwell; if it is the first floor, there is no need to place an evacuation indicator light on the stairs.
[0035] Among them, the method of arranging spatial evacuation indicator lights in other spaces is as follows: if there are public spaces both above and below the space, first determine whether the two orientation lines of the door connecting the upper space and the door of the lower space are parallel. If they are parallel and the distance exceeds 5m, it is necessary to arrange evacuation indicator lights in the space, with the direction pointing from the upper connecting door to the lower connecting door. If they are not parallel, it is necessary to arrange them on the door next to the lower connecting door, with the direction pointing to the lower connecting door.
[0036] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0037] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for automatically arranging evacuation indicator lights in a CAD lighting plan, characterized in that: The specific steps of the automatic arrangement method of evacuation indicator lights in the CAD lighting plan are as follows: S1. Connect to the CAD parsing service to obtain the wall lines, doors, and windows on the CAD architectural plan drawings; S2, scaling the CAD drawing frame to a picture with a fixed scale, recording the scaling scale, recording the primitives obtained in step 1 and drawing them on the picture at the same scale, and using image processing methods to obtain the outline of each closed space; S3, recording the graphics elements obtained in step 1 and drawing them on the picture in the same proportion, and classifying all components using an artificial intelligence method to obtain door and window components; S4. Find all common spaces based on text matching, and calculate and obtain the door components corresponding to all spaces through the IOU judgment method; S5. Find safe evacuation routes through all public spaces, i.e. routes that guide people to evacuate to safe areas; S6. A method for obtaining a safe evacuation route is as follows: starting from the corridor, a recursive algorithm is used to obtain the next level of space through the door until the next level of the door of the space is a stairwell or an outdoor space. From the corridor to the stairwell / outdoor, the space and the door of the space are stored in a list dictionary form; S7. Arrange evacuation indicator lights in public spaces; The graphic primitives in S1 specifically refer to basic graphics such as points, lines, and arcs when drawing CAD drawings; The CAD architectural plan drawing obtained in S1 is a type of high-rise building; The public space in S4 includes: corridors / walkways / all front rooms / elevator halls / stairwells / door lobbies and all public spaces; The safe evacuation route in S5 is a route from the entrance door to the outside area or stairwell.
2. The method for automatically arranging evacuation indicator lights in a CAD lighting plan according to claim 1, characterized in that: The public spaces in S7 are divided into three types, wherein the first type is the first space connected to the entrance door, generally a corridor / walkway, the second type is the stairwell, and the third type is other spaces.
3. The method for automatically arranging evacuation indicator lights in a CAD lighting plan according to claim 2, characterized in that: The method for arranging the spatial evacuation indicator lights in the first space connected to the entrance door is as follows: find the largest inscribed rectangle of the space, determine the direction of the door connected to the next level space, usually maintain visual continuity in the space, or place evacuation indicator lights at intervals of 10m in the same direction, with the direction pointing to the door closest to the position, and be placed on the wall line on the side of the nearest door.
4. The method for automatically arranging evacuation indicator lights in a CAD lighting plan according to claim 2, characterized in that: The method for arranging the spatial evacuation indicator lights in the stairwell is as follows: first, the frame is judged as being an above-ground floor / underground floor / first floor, wherein if it is an above-ground floor, the text "down" in the stairwell needs to be matched through a regular expression, and the evacuation indicator lights are placed on the wall line closest to the text, and the indication direction is pointing to the middle direction of the stairwell; if it is an underground floor, the text "up" on the stairs needs to be matched through a regular expression, and the evacuation indicator lights are placed on the wall line closest to the text, and the indication direction is pointing to the middle direction of the stairwell; if it is the first floor, no evacuation indicator lights are needed on the stairs.
5. The method for automatically arranging evacuation indicator lights in a CAD lighting plan according to claim 2, characterized in that: The method for arranging spatial evacuation indicator lights in the other spaces is as follows: if there are public spaces both above and below the space, first determine whether the two orientation lines of the door connecting the upper space and the door of the lower space are parallel. If they are parallel and the distance exceeds 5m, it is necessary to arrange evacuation indicator lights in the space, with the direction pointing from the upper connecting door to the lower connecting door. If they are not parallel, it is necessary to arrange them on the door next to the lower connecting door, with the direction pointing to the lower connecting door.
