Drawing examination range determination method and device, electronic equipment and storage medium

CN122990741APending Publication Date: 2026-10-27TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611136036.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-29
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

[0004]本申请提供一种图纸的审查范围确定方法、装置、电子设备及存储介质,以解决相关技术在对建筑施工图进行自动化合规审查时工作效率低、审查误报量大且结果可靠性差的问题,能够精准区分图纸改造区域与保留区域,大幅提升建筑施工图纸审查的效率与准确性

Benefits of technology

[0021]由此,本申请实施例可以在待审查图纸的楼层号属于预设的装修申报楼层集合的情况下,提取待审查图纸的阴影区域并将阴影区域转化为二值图,且将二值图的阴影轮廓转换成多边形区域;识别待审查图纸的图例区域和满足预设边缘条件的图纸边缘区域,并基于预设的待审查构件,从多边形区域、图例区域和图纸边缘区域中滤除无效构件,从而得到最终审查范围。由此,解决了相关技术在对建筑施工图进行自动化合规审查时工作效率低、审查误报量大且结果可靠性差的问题,能够精准区分图纸改造区域与保留区域,大幅提升建筑施工图纸审查的效率与准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122990741A_ABST
    Figure CN122990741A_ABST
Patent Text Reader

Abstract

The application relates to a drawing review range determination method and device, electronic equipment and a storage medium, wherein the method comprises the following steps: in the case that the floor number to which the to-be-reviewed drawing belongs belongs to a preset decoration declaration floor set, extracting a shadow area of the to-be-reviewed drawing, processing the shadow area to obtain a binary graph, and converting a shadow contour of the binary graph into a polygon area; identifying a legend area of the to-be-reviewed drawing and a drawing edge area meeting a preset edge condition, filtering invalid components from the polygon area, the legend area and the drawing edge area based on preset to-be-reviewed components, and determining a final review range according to the to-be-reviewed drawing after filtering the invalid components. Thus, the problems of low work efficiency, large review false report quantity and poor result reliability of related art in automatic compliance review of building construction drawings are solved, the drawing renovation area and the reserved area can be accurately distinguished, and the efficiency and accuracy of building construction drawing review are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent review technology for architectural engineering drawings, and in particular to a method, apparatus, electronic device and storage medium for determining the scope of review of drawings. Background Technology

[0002] In related technologies, automated compliance review of architectural construction drawings based on artificial intelligence (AI) algorithms has been widely applied. For new construction projects, the review scope usually covers the entire set of drawings. AI review typically involves a full review of the input drawings, that is, scanning the entire drawing and identifying and verifying all components and spaces on the drawing.

[0003] However, in urban renewal and existing building renovation scenarios, most projects only involve partial renovations or partial modifications (e.g., limited to specific floors or room areas, renovating only floors 3-5 of a building, or renovating only the public corridor area of ​​a certain floor). The actual scope requiring compliance review is only the renovated areas shown in the drawings, without needing to review the non-renovated areas that remain unchanged. However, the drawings submitted by design units are usually complete base maps of the entire building or floor, without removing areas that do not need to be renovated. This causes the AI ​​review methods in related technologies to still conduct a full-area review of the entire drawing, resulting in a large number of review questions and false alarms for non-renovated areas that are irrelevant to the current construction and renovation. This not only requires reviewers to find the actual problems from a large amount of invalid information, significantly reducing the efficiency of the review work, but also interferes with the usability and reliability of the review results, reducing the reliability and practicality of the AI ​​review results, which urgently needs to be addressed. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, and storage medium for determining the scope of drawing review, in order to solve the problems of low efficiency, large number of false alarms, and poor reliability of results in the automated compliance review of architectural construction drawings. It can accurately distinguish between the modified area and the retained area of ​​the drawing, and greatly improve the efficiency and accuracy of architectural construction drawing review.

[0005] The first aspect of this application provides a method for determining the scope of review of drawings, comprising the following steps: Identify the drawings to be reviewed and determine the floor number to which the drawings belong. If the floor number belongs to the preset set of floors for decoration application, the shaded area of ​​the drawing to be reviewed is extracted, and the shaded area is processed to obtain a binary image. The shaded outline of the binary image is then converted into a polygonal area. Identify the legend area and the edge area of ​​the drawing to be reviewed that meet the preset edge conditions, and filter out invalid components from the polygon area, legend area and edge area based on the preset components to be reviewed, and determine the final review scope based on the drawing to be reviewed after filtering out invalid components.

[0006] Optionally, in some embodiments, the preset components to be reviewed include fire-fighting equipment components. Based on the preset components to be reviewed, invalid components are filtered out from the polygonal area, the legend area, and the drawing edge area, including: Obtain the enclosure of the fire-fighting equipment components, and perform a pre-set outward expansion treatment on the enclosure to obtain the expanded enclosure; Calculate the first overlap area between the expanded bounding box and the polygonal area to the first ratio of the area of ​​the expanded bounding box, and take the fire equipment components whose first ratio is greater than or equal to the first preset overlap ratio as the first target components, and identify the second target components in the legend area or the edge area of ​​the drawing after the expanded bounding box is located. Remove the first target component and the second target component from the drawings to be reviewed.

[0007] Optionally, in some embodiments, the preset components to be reviewed include connected space components. Based on the preset components to be reviewed, invalid components are filtered out from polygonal regions, legend regions, and drawing edge regions, including: Identify room components, door components, and stair components from connected space components, and further identify ordinary room components, vestibule components, and stairwell components from room components; Calculate the second ratio of the second overlapping area between the ordinary room component and the polygonal region to the area of ​​the ordinary room component, and take the ordinary room component whose second ratio is greater than or equal to the second preset overlapping ratio as the third target component. Remove the third target component from the drawings to be reviewed.

[0008] Optionally, in some embodiments, after filtering out the third target component and the fourth target component from the drawing to be reviewed, the method further includes: Based on the drawings to be reviewed, the valid room components are determined according to the third target component; Identify the first boundary door component corresponding to the vestibule component and the second boundary door component corresponding to the stairwell component from the door components, and determine the ordinary door component based on the door component, the first boundary door component and the second boundary door component; The geometric area of ​​the ordinary door component is pre-expanded to obtain the expanded ordinary door area. The third overlap area between the expanded ordinary door area and the polygon area is calculated as the third ratio of the area of ​​the expanded ordinary door area. Ordinary door components whose third ratio is greater than or equal to the third pre-preset overlap ratio and are not connected to effective room components are designated as the fourth target components. The fourth target component is filtered out from the drawings to be reviewed.

[0009] Optionally, in some embodiments, after filtering out the fifth and sixth target components from the drawings to be reviewed, the process further includes: Based on the drawings to be reviewed, determine the boundary gate component of the shaded area according to the fourth target component; Traverse all stair components and all vestibule components, calculate the fourth ratio of the fourth overlapping area between the stair component and the polygonal region to the area of ​​the stair component, and designate stair components whose fourth ratio is greater than or equal to the fourth preset overlapping ratio and are not connected to the boundary door component of the shaded region as the fifth target component. Calculate the fifth ratio of the fifth overlapping area between the vestibule component and the polygonal region to the area of ​​the vestibule component, and designate vestibule components whose fifth ratio is greater than or equal to the fifth preset overlapping ratio and are not connected to the boundary door component of the shaded region as the sixth target component. Remove the fifth and sixth target components from the drawings to be reviewed.

[0010] Optionally, in some embodiments, after identifying the floor number to which the drawing to be reviewed belongs from the drawing to be reviewed, the method further includes: If the floor number does not belong to the preset set of floors for decoration application, the drawings to be reviewed are determined to be non-decoration drawings; Remove the drawings to be reviewed from the preset review queue, identify new drawings from the remaining review queue as the drawings to be reviewed, and repeat the step of identifying the floor number of the drawings to be reviewed from the review queue until the preset review end conditions are met.

[0011] Optionally, in some embodiments, before determining whether a floor number belongs to a preset set of floors for renovation applications, the method further includes: Identify the target project corresponding to the drawings to be reviewed, and obtain the project information for the target project; Based on the project data, determine the pre-set set of floors for renovation application.

[0012] A second aspect of this application provides a drawing review scope determination apparatus, comprising: The first identification module is used to determine the drawing to be reviewed and to identify the floor number to which the drawing to be reviewed belongs. The image processing module is used to extract the shaded area of ​​the drawing to be reviewed when the floor number belongs to the preset set of floors for decoration application, process the shaded area to obtain a binary image, and convert the shadow outline of the binary image into a polygonal area. The second identification module is used to identify the legend area and the edge area of ​​the drawing to be reviewed that meet the preset edge conditions, and based on the preset components to be reviewed, to filter out invalid components from the polygon area, legend area and edge area, and to determine the final review scope based on the drawing to be reviewed after filtering out invalid components.

[0013] Optionally, in some embodiments, the preset component to be inspected includes a fire-fighting equipment component, and the second identification module is specifically used for: Obtain the enclosure of the fire-fighting equipment components, and perform a pre-set outward expansion treatment on the enclosure to obtain the expanded enclosure; Calculate the first overlap area between the expanded bounding box and the polygonal area to the first ratio of the area of ​​the expanded bounding box, and take the fire equipment components whose first ratio is greater than or equal to the first preset overlap ratio as the first target components, and identify the second target components in the legend area or the edge area of ​​the drawing after the expanded bounding box is located. Remove the first target component and the second target component from the drawings to be reviewed.

[0014] Optionally, in some embodiments, the preset component to be examined includes a connected space component, and the second identification module is specifically used for: Identify room components, door components, and stair components from connected space components, and further identify ordinary room components, vestibule components, and stairwell components from room components; Calculate the second ratio of the second overlapping area between the ordinary room component and the polygonal region to the area of ​​the ordinary room component, and take the ordinary room component whose second ratio is greater than or equal to the second preset overlapping ratio as the third target component. Remove the third target component from the drawings to be reviewed.

[0015] Optionally, in some embodiments, after filtering out the third and fourth target components from the drawings to be reviewed, the second identification module is further configured to: Based on the drawings to be reviewed, the valid room components are determined according to the third target component; Identify the first boundary door component corresponding to the vestibule component and the second boundary door component corresponding to the stairwell component from the door components, and determine the ordinary door component based on the door component, the first boundary door component and the second boundary door component; The geometric area of ​​the ordinary door component is pre-expanded to obtain the expanded ordinary door area. The third overlap area between the expanded ordinary door area and the polygon area is calculated as the third ratio of the area of ​​the expanded ordinary door area. Ordinary door components whose third ratio is greater than or equal to the third pre-preset overlap ratio and are not connected to effective room components are designated as the fourth target components. The fourth target component is filtered out from the drawings to be reviewed.

[0016] Optionally, in some embodiments, after filtering out the fifth and sixth target components from the drawings to be reviewed, the second identification module is further configured to: Based on the drawings to be reviewed, determine the boundary gate component of the shaded area according to the fourth target component; Traverse all stair components and all vestibule components, calculate the fourth ratio of the fourth overlapping area between the stair component and the polygonal region to the area of ​​the stair component, and designate stair components whose fourth ratio is greater than or equal to the fourth preset overlapping ratio and are not connected to the boundary door component of the shaded region as the fifth target component. Calculate the fifth ratio of the fifth overlapping area between the vestibule component and the polygonal region to the area of ​​the vestibule component, and designate vestibule components whose fifth ratio is greater than or equal to the fifth preset overlapping ratio and are not connected to the boundary door component of the shaded region as the sixth target component. Remove the fifth and sixth target components from the drawings to be reviewed.

[0017] Optionally, in some embodiments, after identifying the floor number to which the drawing to be reviewed belongs from the drawing to be reviewed, the first identification module is further configured to: If the floor number does not belong to the preset set of floors for decoration application, the drawings to be reviewed are determined to be non-decoration drawings; Remove the drawings to be reviewed from the preset review queue, identify new drawings from the remaining review queue as the drawings to be reviewed, and repeat the step of identifying the floor number of the drawings to be reviewed from the review queue until the preset review end conditions are met.

[0018] Optionally, in some embodiments, before determining whether a floor number belongs to a preset set of floors for renovation applications, the first identification module is further configured to: Identify the target project corresponding to the drawings to be reviewed, and obtain the project information for the target project; Based on the project data, determine the pre-set set of floors for renovation application.

[0019] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor executes the program to implement the method for determining the scope of drawing review as described in the first aspect embodiment.

[0020] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the method for determining the scope of review of drawings as described in the first aspect embodiment.

[0021] Therefore, this embodiment of the application can extract the shaded area of ​​the drawing to be reviewed and convert it into a binary image when the floor number of the drawing to be reviewed belongs to a preset set of floors for decoration declaration. The shaded area is then converted into a polygonal region, and the shadow outline of the binary image is further converted into a polygonal region. The legend region and the edge region of the drawing that meet preset edge conditions are identified. Based on preset components to be reviewed, invalid components are filtered out from the polygonal region, legend region, and edge region to obtain the final review scope. This solves the problems of low efficiency, high false alarm rate, and poor reliability of results in the automated compliance review of architectural construction drawings of related technologies. It can accurately distinguish between modified and retained areas of the drawing, significantly improving the efficiency and accuracy of architectural construction drawing review.

[0022] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0023] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a flowchart illustrating a method for determining the scope of review of drawings according to an embodiment of this application; Figure 2 This is a schematic diagram of a binary image of a shaded area in a drawing to be examined, according to an embodiment of this application. Figure 3 This is a schematic diagram of a Basic Information Registration Form provided according to an embodiment of this application; Figure 4 A block diagram illustrating a system for determining the scope of review of drawings according to an embodiment of this application; Figure 5 This is a flowchart illustrating a method for determining the scope of an examination drawing according to an embodiment of this application; Figure 6 This is a flowchart of a local shadow region spatial filtering method according to an embodiment of this application; Figure 7 This is a block diagram of a drawing review scope determination device according to an embodiment of this application; Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0024] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0025] The following description, with reference to the accompanying drawings, outlines a method, apparatus, electronic device, and storage medium for determining the scope of review of architectural construction drawings according to embodiments of this application. Addressing the issues of low efficiency, high false alarm rate, and poor reliability in automated compliance review of architectural construction drawings mentioned in the background, this application provides a method for determining the scope of review of drawings. When the floor number of the drawing to be reviewed belongs to a preset set of floors for decoration applications, the method extracts the shaded area of ​​the drawing to be reviewed and converts it into a binary image, then converts the shaded outline of the binary image into a polygonal area. It identifies the legend area and the edge area of ​​the drawing that meets preset edge conditions, and based on preset components to be reviewed, filters out invalid components from the polygonal area, legend area, and edge area, thereby obtaining the final review scope. This solves the problems of low efficiency, high false alarm rate, and poor reliability in automated compliance review of architectural construction drawings, accurately distinguishing between modified and retained areas of the drawing, and significantly improving the efficiency and accuracy of architectural construction drawing review.

[0026] Specifically, Figure 1 A flowchart of a method for determining the scope of review of drawings provided in an embodiment of this application.

[0027] like Figure 1 As shown, the method for determining the scope of review for this drawing includes the following steps: In step S101, the drawing to be reviewed is determined, and the floor number to which the drawing to be reviewed belongs is identified from the drawing to be reviewed.

[0028] Specifically, this embodiment of the application can iterate through each drawing to be reviewed in the uploaded files. For a single drawing, the drawing title in the drawing frame of the drawing to be reviewed is read through PDF text parsing and Optical Character Recognition (OCR), and the floor number is extracted from the drawing title using regular expressions. If no valid floor information is extracted from the drawing title, the file name of the drawing to be reviewed is read, and the floor number is extracted from the file name as a supplement.

[0029] In step S102, if the floor number belongs to the preset set of floors for decoration application, the shaded area of ​​the drawing to be reviewed is extracted, and the shaded area is processed to obtain a binary image, and the shaded outline of the binary image is converted into a polygonal area.

[0030] The preset set of floors for decoration application is a pre-defined set of floor numbers applicable to the review of decoration drawings.

[0031] Specifically, such as Figure 2 As shown, Figure 2 This is a schematic diagram of a binary image of the shaded area of ​​a drawing to be reviewed, provided as an embodiment of this application. After successfully extracting the floor number of the drawing to be reviewed, this embodiment of the application can compare it with a preset set of floors for decoration applications. If the floor number of the drawing to be reviewed belongs to the preset set of floors for decoration applications (i.e., the scope of this decoration), the drawing to be reviewed is retained, and subsequent processing continues.

[0032] Furthermore, for the retained drawings, this embodiment of the application can extract the shaded areas of the drawings to be examined. Specifically, this embodiment of the application can first perform necessary preprocessing on the drawings to be examined, then call the shadow recognition service to process the shadow areas to obtain a binary image representing the shadow position, and then use a contour extraction method to convert the shadow contour of the binary image into a polygonal region.

[0033] Furthermore, to reduce jagged edges and redundant points caused by pixel edges, embodiments of this application can simplify the boundaries of polygonal regions. Specifically, for fragmented, small, or unstable polygonal regions, embodiments of this application can use buffering operations to smooth the boundaries of the polygonal regions and correct potential geometric problems such as self-intersections. In addition, for shadow regions with nested relationships, embodiments of this application can perform difference calculations based on inclusion relationships to preserve hole structures, such as atriums, which should not be included in the shadow region.

[0034] In step S103, the legend area of ​​the drawing to be reviewed and the edge area of ​​the drawing that meets the preset edge conditions are identified. Based on the preset components to be reviewed, invalid components are filtered out from the polygon area, the legend area and the edge area of ​​the drawing. The final review scope is determined based on the drawing to be reviewed after filtering out invalid components.

[0035] Among them, the preset edge conditions are the contour judgment criteria of the effective drawing boundary of the drawing; the preset components to be reviewed are the building components that are required to be checked in advance.

[0036] Specifically, in addition to the shaded areas, the legends, descriptions, tables, and edge areas of the drawings to be reviewed may also generate invalid components (i.e. misidentified components). In this embodiment, we can first search for possible legend areas based on the text content, such as text containing keywords such as "legend", "description", and "Legend", and generate corresponding legend areas based on the positions of these matched texts.

[0037] Furthermore, this embodiment of the application can combine information such as the effective drawing range and grid range of the drawing to be reviewed to determine whether a component is located within the main drawing area. If a component is located within the legend area, or within the edge area of ​​the drawing that meets the preset edge conditions (i.e., not within the main drawing area or grid area, but outside the effective drawing area), this embodiment of the application can consider that the component is more likely to be a misidentification result in the legend sample, explanatory content, or edge area of ​​the drawing. For such components, this embodiment of the application can mark them as non-review objects and exclude them in the subsequent review output.

[0038] Furthermore, after extracting the shaded areas of the drawing to be reviewed, this embodiment can further read the recognition results of non-main drawing areas such as sidebars and title blocks of the drawing. If a shaded area intersects with the aforementioned non-drawing areas, it is removed, thereby avoiding misidentifying the background color, table, or text description areas in the drawing sidebar as decorative shadows. Finally, this embodiment can convert the filtered shaded areas from image coordinates to engineering drawing coordinates and save them as shadow range objects that can be used later.

[0039] In the review and report generation process, this embodiment automatically excludes invalid components marked as non-reviewable, thereby determining the final review scope. This ensures the final review report accurately focuses on the final review scope of this application (i.e., the scope of the renovation project), effectively avoiding invalid error reports caused by non-renovation areas. After the aforementioned area screening and invalid component removal, this embodiment can accurately retain two types of valid components: first, valid components that are entirely within the final review scope; and second, components that, although located in non-renovation areas, are actually related to the scope of this renovation. Finally, based on all the selected valid components, this embodiment can perform standard clause checks, such as checks on evacuation distances, fire safety distances, and equipment layout.

[0040] Therefore, this application embodiment first automatically analyzes the actual decoration scope of the project's floors to automatically determine whether a single drawing corresponds to the declared decoration scope, achieving drawing selection at the whole-drawing level. Simultaneously, within a single drawing, visual features such as shadows and fills are used to accurately identify the boundaries of irregular decoration areas, and spatial filtering is applied to the AI ​​review results. This application embodiment automatically matches the correspondence between the declared decoration scope and the scope of the drawing, automatically eliminating drawings that do not belong to the current construction scope, enabling the review process to have precise scope definition capabilities. This application embodiment solves the problem in partial decoration projects where AI review algorithms in related technologies cannot distinguish between decorated and non-decorated areas, resulting in a large amount of invalid and redundant information in the review results. It is a method for automatically defining the effective scope of AI review and filtering review results for non-decorated areas based on semantic analysis and image recognition technology in existing building renovation and secondary decoration scenarios. This application embodiment can effectively avoid the interference of non-decorated area drawings on the review results and improve the accuracy of AI drawing review.

[0041] Furthermore, to enable those skilled in the art to better understand the method for determining the scope of examination of drawings in this application, and how invalid components are filtered out from polygonal areas, legend areas, and drawing edge areas, the following description is provided in conjunction with specific embodiments.

[0042] First, let me explain how this application filters out invalid components from fire-fighting equipment components.

[0043] In one possible implementation, in some embodiments, the preset components to be reviewed include fire equipment components. Based on the preset components to be reviewed, invalid components are filtered out from the polygonal area, the legend area, and the drawing edge area. This includes: obtaining the bounding box of the fire equipment component and performing a preset expansion process on the bounding box to obtain an expanded bounding box; calculating a first ratio of the first overlapping area between the expanded bounding box and the polygonal area to the area of ​​the expanded bounding box, and identifying fire equipment components whose first ratio is greater than or equal to the first preset overlapping ratio as first target components, and identifying second target components whose expanded bounding boxes are located in the legend area or the drawing edge area; and filtering out the first target components and the second target components from the drawing to be reviewed.

[0044] The first preset overlap ratio is used to determine whether a fire-fighting equipment component is an invalid component; both the first target component and the second target component are invalid components among the fire-fighting equipment components.

[0045] Specifically, this application embodiment first performs invalid filtering on fire equipment components. For independently distributed fire equipment components such as fire extinguishers, fire alarm equipment, evacuation indicator lights, sprinkler heads, air vents, and pipe fittings, the determination can be made based on the positional relationship between the component's geometric bounding box and the polygonal area (i.e., the non-decorated area). Specifically, this application embodiment can read the bounding box of each fire equipment component one by one and perform a preset outward expansion process (i.e., a small outward expansion process) on the bounding box to reduce the impact of coordinate errors. If the expanded bounding box falls entirely into the polygonal area, or the first overlapping area between the expanded bounding box and the polygonal area is greater than or equal to the first preset overlapping ratio, or the expanded bounding box is located in the legend area or the edge area of ​​the drawing, then the fire equipment component is considered to be located within the non-decorated area. For invalid components among the fire equipment components (i.e., the first target component and the second target component), this application embodiment can set their name, category, and other identification results to empty, and mark them as non-review objects (e.g., mark them as objects within the shaded area), and exclude them in subsequent rule review and report generation.

[0046] Secondly, this application will explain how it filters out invalid room components in connected space components.

[0047] As one possible implementation, in some embodiments, the preset components to be reviewed include connected space components. Based on the preset components to be reviewed, invalid components are filtered out from polygonal regions, legend regions, and drawing edge regions. This includes: identifying room components, door components, and stair components from the connected space components, and further identifying ordinary room components, anteroom components, and stairwell components from the room components; calculating a second ratio of the second overlapping area between the ordinary room component and the polygonal region to the area of ​​the ordinary room component, and identifying ordinary room components whose second ratio is greater than or equal to the second preset overlapping ratio as third target components; and filtering out the third target components from the drawing to be reviewed.

[0048] The second preset overlap ratio is used to determine whether a normal room component is an invalid component; the third target component is an invalid component among the normal room components.

[0049] Specifically, for components such as room components, door components, and stair components that are connected to the space, this application embodiment will not directly delete them based solely on the position of a single component (i.e., whether it falls within the shaded area), but will make a judgment based on its relationship with surrounding room components and door components. For room components, this application embodiment first needs to further identify ordinary room components, anteroom components, and stairwell components from the room components, and calculate the second ratio of the second overlapping area between the ordinary room component and the polygonal area to the area of ​​the ordinary room component. If the second ratio is greater than or equal to the second preset overlapping ratio, the ordinary room component is considered an invalid component (i.e., a third target component) located outside the decoration area. For invalid components in the room components, this application embodiment can mark them as non-review objects (e.g., mark them as objects within the shaded area) and exclude them in subsequent rule review and report generation.

[0050] Next, let me explain how this application filters out invalid gate components in connected space components.

[0051] As one possible implementation, in some embodiments, after filtering out the third target component and the fourth target component from the drawings to be reviewed, the method further includes: determining valid room components based on the third target component according to the drawings to be reviewed; identifying the first boundary door component corresponding to the vestibule component and the second boundary door component corresponding to the stairwell component from the door components, and determining ordinary door components based on the door components, the first boundary door component and the second boundary door component; performing a preset outward expansion process on the geometric area of ​​the ordinary door component to obtain an expanded ordinary door area, and calculating the third overlap area between the expanded ordinary door area and the polygonal area to the third ratio of the area of ​​the expanded ordinary door area, and identifying ordinary door components whose third ratio is greater than or equal to the third preset overlap ratio and which are not connected to the valid room components as the fourth target component; and filtering out the fourth target component from the drawings to be reviewed.

[0052] The third preset overlap ratio is used to determine whether a normal door component is an invalid component; the fourth target component is an invalid component among normal door components.

[0053] Specifically, in this embodiment, valid room components can be obtained by filtering out the third target component (i.e., invalid ordinary room components) from the drawings to be examined, and the door components can be further processed separately. Specifically, in this embodiment, the first boundary door component corresponding to the vestibule component and the second boundary door component corresponding to the stairwell component can be identified from the door components. The remaining door components after removing the first and second boundary door components are taken as ordinary door components. The geometric area of ​​the ordinary door components is subjected to a preset outward expansion process to obtain an expanded ordinary door area. It is then determined whether the third overlap area between the expanded ordinary door area and the polygonal area is greater than or equal to the third preset overlap ratio. If the third ratio is greater than or equal to the third preset overlap ratio (i.e., the expanded ordinary door area is completely within the shaded area), the room components connected to the ordinary door component are then searched. If a valid room component exists among the room components connected to the ordinary door component (i.e., a room component that does not belong to the shaded area), it indicates that the ordinary door component may be located at the boundary between the decorated and undecorated areas. In this case, the ordinary door component is not deleted, but is retained and marked as a "shaded area boundary door" to avoid mistakenly deleting ordinary door components that are still related to the actual decorated area, allowing them to still participate in subsequent evacuation-related calculations. If no valid room component exists among the room components connected to the ordinary door component, and the third overlapping area between the extended ordinary door area and the polygonal area corresponding to the ordinary door component is greater than or equal to the third preset overlapping ratio, then the ordinary door component is considered an invalid component (i.e., the fourth target component) located within the undecorated area, and the fourth target component is filtered out from the drawings to be reviewed.

[0054] Finally, this application describes how it filters out invalid staircase components and invalid vestibule components in the connecting space components.

[0055] As one possible implementation, in some embodiments, after filtering out the fifth and sixth target components from the drawings to be reviewed, the method further includes: determining the shaded area boundary door component based on the fourth target component according to the drawings to be reviewed; traversing all stair components and all vestibule components, calculating the fourth ratio of the fourth overlapping area between the stair component and the polygonal area to the area of ​​the stair component, and designating stair components whose fourth ratio is greater than or equal to the fourth preset overlapping ratio and are not connected to the shaded area boundary door component as the fifth target component; calculating the fifth ratio of the fifth overlapping area between the vestibule component and the polygonal area to the area of ​​the vestibule component, and designating vestibule components whose fifth ratio is greater than or equal to the fifth preset overlapping ratio and are not connected to the shaded area boundary door component as the sixth target component; and filtering out the fifth and sixth target components from the drawings to be reviewed.

[0056] Among them, the fourth preset overlap ratio is used to determine whether the staircase component is an invalid component; the fifth preset overlap ratio is used to determine whether the vestibule component is an invalid component; the fifth target component is an invalid component in the staircase component; and the sixth target component is an invalid component in the vestibule component.

[0057] Specifically, in this embodiment, the fourth target component (i.e., invalid ordinary door components) can be filtered out from the drawings to be examined to obtain the shaded area boundary door components, and further, the stair components and anteroom components, and other space components related to evacuation can be processed separately. Specifically, in this embodiment, the door components connected to the stair components and anteroom components can be checked first. If the fourth overlapping area between a stair component and the polygonal area is greater than or equal to the fourth preset overlapping ratio of the stair component area (i.e., a stair component is mostly located within the shaded area), or the fifth overlapping area between a anteroom component and the polygonal area is greater than or equal to the fifth preset overlapping ratio of the anteroom component area (i.e., a anteroom component is mostly located within the shaded area), but there are still shaded area boundary door components (i.e., door components leading to the decoration area) connected to it, it indicates that the space may still have an evacuation relationship with the current decoration area, and the stair component, anteroom component, and shaded area boundary door components connected to it are retained. If the fourth overlapping area between a staircase component and a polygonal area is greater than or equal to the fourth preset overlapping area of ​​the staircase component, or if the fifth overlapping area between a vestibule component and a polygonal area is greater than or equal to the fifth preset overlapping area of ​​the vestibule component, and there is no connection with the decoration area, then the staircase component and the vestibule component are filtered as invalid components (i.e., the fifth target component and the sixth target component). In this way, the embodiments of this application can balance the filtering of shadow areas and the preservation of evacuation relationships, reducing accidental deletion. In addition, for components such as stairs and elevators, the overlap ratio with the shadow area can also be used for judgment, and components with a high overlap ratio are marked as components inside the shadow area.

[0058] Therefore, this application proposes a method for determining the scope of local review by combining the shaded area and the connection relationship between components. When filtering non-renovation areas using the shaded area, the method not only deletes components based on whether they fall within the shaded area, but also considers the connection relationship between components. For door components, if they are located within the shaded area, the room components connected to the door are further examined. If the door component connects to a room within the renovation area, the door component is retained and treated as a boundary component of the shaded area. For evacuation-related space components such as vestibules and stairwells, if there are door components that need to be retained in their boundary doors, the vestibule or stairwell and related components are retained, thus avoiding the accidental deletion of evacuation spaces that are still related to the current renovation area. Simultaneously, this application also proposes a space filtering method for different component types, employing different filtering rules based on the component type. For fire extinguishers, fire alarm equipment, sprinkler heads, indicator lights, air vents, pipe fittings, and other fire-fighting equipment, the method mainly determines whether the component enclosure falls within the shaded area. For space components such as rooms, stairs, vestibules, and stairwells, the method determines the area based on the proportion of their intersection with the shaded area, and further adjusts the method based on the connection relationship between doors and rooms. In this way, the embodiments of this application can reduce the accidental deletion of critical space and boundary components while filtering components in non-decorated areas.

[0059] Furthermore, to enable those skilled in the art to better understand how the method for determining the scope of examination of drawings in this application determines the drawings to be examined, the following description is provided in conjunction with specific embodiments.

[0060] As one possible implementation, in some embodiments, after identifying the floor number of the drawing to be reviewed from the drawings to be reviewed, the method further includes: if the floor number does not belong to the preset set of floors for decoration applications, then the drawing to be reviewed is determined to be a non-decoration drawing; the drawing to be reviewed is deleted from the preset queue of drawings to be reviewed, and a new drawing is determined from the remaining queue of drawings to be reviewed as the drawing to be reviewed, and the step of identifying the floor number of the drawing to be reviewed from the drawings to be reviewed is repeated until the preset review end condition is met.

[0061] The preset queue to be reviewed is the set of all decoration drawings to be reviewed for this decoration review project; the remaining queue to be reviewed is the set of drawings to be reviewed remaining in the preset queue to be reviewed after removing drawings that have been determined to be non-decoration drawings; the preset review end condition is that all drawings in the preset queue to be reviewed have completed the review process.

[0062] Specifically, after successfully extracting the floor number of the drawing to be reviewed, before proceeding to the detailed AI review, this embodiment first needs to preprocess and screen the drawing file. Specifically, this embodiment can compare it with a preset set of floors for decoration applications. If the floor number of the drawing to be reviewed does not belong to the preset set of floors for decoration applications (i.e., the drawing to be reviewed is not within the scope of this decoration), then the drawing to be reviewed is marked as a non-decoration drawing and directly deleted from the preset queue of drawings to be reviewed without further processing. For example, if a drawing to be reviewed is a "2nd floor plan," and the preset set of floors for decoration applications is "3rd to 5th floors," then the drawing to be reviewed is determined to be a non-decoration drawing.

[0063] Therefore, this application proposes a layered filtering method for the review scope of decoration drawings, involving two levels: filtering at the drawing set level and filtering within a single drawing. At the drawing set level, irrelevant drawings are first excluded based on the scope of the decoration floors. Within a single drawing, irrelevant components are filtered based on shaded areas, legend areas, the effective drawing range of the drawing, and the spatial positional relationship of components. This application eliminates the need for manual selection of the review scope for each drawing. Instead, it automatically determines the decoration and non-decoration scope based on information such as project application materials, drawing file names, drawing titles, and shaded areas in the drawings. This simplifies the manual operation process and reduces the impact of inconsistent processing methods among different personnel. Before formal review, this application first removes drawings that do not belong to the floors being decorated and filters non-decoration components within the drawings. This reduces the number of drawings and components that the subsequent review algorithm needs to process, thereby reducing computational load and saving system resources. The overall process of this application includes project application information parsing, drawing floor filtering, shaded area identification, component identification, non-decoration component filtering, and review result output. Compared to the approach of uniformly reviewing all drawings and all areas in related technologies, the embodiments of this application, by accurately defining the drawings and areas corresponding to this renovation in advance and then conducting targeted reviews, can effectively reduce the problem of false reports caused by non-renovation areas, making the review results more in line with the actual rectification needs and improving the usability of the review results.

[0064] Furthermore, to enable those skilled in the art to better understand how the method for determining the scope of review of drawings in this application determines the preset set of floors for decoration declaration, the following description is provided in conjunction with specific embodiments.

[0065] As one possible implementation, in some embodiments, before determining whether a floor number belongs to a preset set of floors for renovation applications, the method further includes: determining the target project corresponding to the drawings to be reviewed, and obtaining the project information of the target project; and determining the preset set of floors for renovation applications based on the project information.

[0066] Specifically, such as Figure 3 As shown, Figure 3 This is a schematic diagram of a "Basic Information Registration Form" provided in an embodiment of this application. Before determining whether a floor number belongs to a preset set of floors for renovation applications, this embodiment of the application needs to perform project initialization and application information parsing. Specifically, this embodiment of the application can receive engineering drawing files and project information (i.e., project application materials) uploaded by the user, extract the range of floors involved in the renovation project from the project information of the target project, and use the range of floors involved in the renovation as a preset set of floors for renovation applications for subsequent drawing screening. Among them, the project information of the target project includes: "Basic Information Registration Form", "Design Description", and other related documents. These documents contain the overall attribute information of the project to be reviewed, such as floor height and the number of floors to be renovated.

[0067] Therefore, in this embodiment of the application, before performing the floor selection process, project initialization and automatic parsing of application information are completed. By reading application materials such as the project's "Basic Information Registration Form" and "Design Description," the scope of decoration floors officially approved by the project is extracted, thereby generating a preset set of decoration application floors. This provides an authoritative basis for subsequent drawing selection. This preprocessing method can replace manual subjective definition of the scope, reduce manual operation costs and human judgment differences, and ensure the standardization and uniformity of drawing scope selection.

[0068] Furthermore, to enable those skilled in the art to better understand the method for determining the scope of examination of drawings in this application, the following is combined with... Figures 4 to 6 The specific embodiments shown will be described in detail.

[0069] Figure 4 This is a block diagram illustrating a system for determining the scope of a drawing review according to an embodiment of this application.

[0070] like Figure 4 As shown, the system 40 for determining the scope of review of the drawings includes: a data input module 401, a non-decoration drawing whole drawing rejection module 402, a local shadow area space filtering module 403, and a result output module 404.

[0071] The data input module 401 is used to input, read, and parse project data (including engineering drawings, the Basic Information Registration Form, design specifications, and other related documents) of the target project. The non-decoration drawing removal module 402 is used to delete non-decoration drawings from the preset review queue and determine new drawings from the remaining review queue as the review drawings. The local shadow area spatial filtering module 403 is used to solve the problem of AI review generating false alarms for non-decoration areas in local decoration drawings: it extracts all shadow areas in the review drawings, stores the results in the database, and preprocesses the extracted shadow areas. For shadow areas composed of multiple broken polygons, it uses a geometric calculation library (such as Shapely) to convert these scattered shadow areas into MultiPolygons to complete geometric fusion. It also performs buffering operations on the fused shadow areas to repair possible geometric topological errors (such as self-intersection) and establishes a unified "non-review area" spatial mask. The result output module 404 is used to identify the legend area and the edge area of ​​the drawing to be reviewed that meet the preset edge conditions, and based on the preset components to be reviewed, to filter out invalid components from the polygon area, legend area and edge area, and to determine and output the final review scope based on the drawing to be reviewed after filtering out invalid components.

[0072] Furthermore, when processing components outside the decoration area, the local shaded area spatial filtering module 403 first identifies architectural and professional components in the drawings, obtaining the categories and geometric ranges of components such as walls, doors, windows, stairs, rooms, fire extinguishers, fire alarm equipment, indicator lights, air vents, and pipe fittings. All identification results are accompanied by corresponding bounding box or polygon information, used to subsequently determine whether a component is within the non-decoration area, and different spatial filtering strategies are selected based on the component type. The non-decoration area in the drawings to be reviewed mainly includes polygonal areas (i.e., shaded areas), legend areas, and drawing edge areas (i.e., areas outside the valid range of the drawing). After filtering, all components falling into the above-mentioned non-decoration areas will be marked as invalid components (i.e., internal components) and will no longer participate in subsequent review judgments and report outputs, ultimately ensuring that the review results only reflect compliance issues within the actual decoration area.

[0073] Furthermore, Figure 5 This is a flowchart of a method for removing non-decoration drawings according to an embodiment of this application.

[0074] like Figure 5 As shown, the method for removing non-decoration drawings in their entirety includes the following steps: S501, extract the floor to which the drawings belong from the decoration drawing file, and extract the floor to be decorated from the basic information registration form.

[0075] S502, Determine whether the floor in the decoration drawing file belongs to the floor range of this decoration? If yes, proceed to step S503; otherwise, proceed to step S504.

[0076] S503, Keep the drawing; this drawing will be subject to further review.

[0077] S504, Delete drawing; this drawing will not be subject to further review.

[0078] Furthermore, Figure 6 This is a flowchart of a local shadow area spatial filtering method provided according to an embodiment of this application.

[0079] like Figure 6 As shown, this local shadow area spatial filtering method includes the following steps: S601, identify shaded areas in the decoration drawings.

[0080] S602, establish the geometry of the shaded area.

[0081] S603 performs differential filtering on components.

[0082] According to the method for determining the scope of review of drawings proposed in this application, when the floor number of the drawing to be reviewed belongs to a preset set of floors for decoration declaration, the shaded area of ​​the drawing to be reviewed can be extracted and converted into a binary image, and the shadow outline of the binary image can be converted into a polygonal area. The legend area and the edge area of ​​the drawing that meet preset edge conditions can be identified, and invalid components can be filtered out from the polygonal area, legend area, and edge area based on preset components to be reviewed, thereby obtaining the final scope of review. This solves the problems of low efficiency, high false alarm rate, and poor reliability of results in the automated compliance review of architectural construction drawings of related technologies. It can accurately distinguish between modified and retained areas of drawings, significantly improving the efficiency and accuracy of architectural construction drawing review.

[0083] Next, the scope of examination device for the drawings proposed in the embodiments of this application is described with reference to the accompanying drawings.

[0084] Figure 7 This is a block diagram of the apparatus for determining the scope of review of drawings as proposed in an embodiment of this application.

[0085] like Figure 7 As shown, the drawing review scope determination device 10 includes: a first identification module 100, an image processing module 200, and a second identification module 300.

[0086] The first identification module 100 is used to determine the drawing to be reviewed and identify the floor number to which the drawing belongs; the image processing module 200 is used to extract the shadow area of ​​the drawing to be reviewed when the floor number belongs to a preset set of floors for decoration applications, process the shadow area to obtain a binary image, and convert the shadow outline of the binary image into a polygonal area; the second identification module 300 is used to identify the legend area and the edge area of ​​the drawing to be reviewed that meet the preset edge conditions, and filter out invalid components from the polygonal area, legend area and edge area of ​​the drawing based on the preset components to be reviewed, and determine the final review scope based on the drawing to be reviewed after filtering out invalid components.

[0087] Optionally, in some embodiments, the preset components to be reviewed include fire equipment components. The second identification module 300 is specifically used to: obtain the bounding box of the fire equipment component, and perform a preset expansion process on the bounding box to obtain an expanded bounding box; calculate the first overlap area between the expanded bounding box and the polygonal area to the first ratio of the area of ​​the expanded bounding box, and take the fire equipment components with the first ratio greater than or equal to the first preset overlap ratio as the first target components, and identify the second target components whose expanded bounding boxes are located in the legend area or the edge area of ​​the drawing; filter out the first target components and the second target components from the drawing to be reviewed.

[0088] Optionally, in some embodiments, the preset components to be reviewed include connected space components. The second identification module 300 is specifically used to: identify room components, door components, and stair components from the connected space components, and further identify ordinary room components, vestibule components, and stairwell components from the room components; calculate the second ratio of the second overlapping area between the ordinary room component and the polygonal region to the area of ​​the ordinary room component, and use ordinary room components whose second ratio is greater than or equal to the second preset overlapping ratio as third target components; and filter out the third target components from the drawings to be reviewed.

[0089] Optionally, in some embodiments, after filtering out the third target component and the fourth target component from the drawings to be reviewed, the second identification module 300 is further configured to: determine the valid room component based on the third target component according to the drawings to be reviewed; identify the first boundary door component corresponding to the vestibule component and the second boundary door component corresponding to the stairwell component from the door components, and determine the ordinary door component based on the door component, the first boundary door component and the second boundary door component; perform a preset outward expansion process on the geometric area of ​​the ordinary door component to obtain an outward expanded ordinary door area, and calculate the third overlap area between the outward expanded ordinary door area and the polygon area to the third ratio of the area of ​​the outward expanded ordinary door area, and designate the ordinary door component whose third ratio is greater than or equal to the third preset overlap ratio and is not connected to the valid room component as the fourth target component; and filter out the fourth target component from the drawings to be reviewed.

[0090] Optionally, in some embodiments, after filtering out the fifth and sixth target components from the drawings to be reviewed, the second identification module 300 is further configured to: determine the shaded area boundary door component based on the fourth target component according to the drawings to be reviewed; traverse all stair components and all vestibule components, calculate the fourth ratio of the fourth overlapping area between the stair component and the polygonal area to the area of ​​the stair component, and designate stair components whose fourth ratio is greater than or equal to the fourth preset overlapping ratio and are not connected to the shaded area boundary door component as the fifth target component; calculate the fifth ratio of the fifth overlapping area between the vestibule component and the polygonal area to the area of ​​the vestibule component, and designate vestibule components whose fifth ratio is greater than or equal to the fifth preset overlapping ratio and are not connected to the shaded area boundary door component as the sixth target component; and filter out the fifth and sixth target components from the drawings to be reviewed.

[0091] Optionally, in some embodiments, after identifying the floor number of the drawing to be reviewed from the drawings to be reviewed, the first identification module 100 is further configured to: if the floor number does not belong to the preset set of floors for decoration applications, determine that the drawing to be reviewed is a non-decoration drawing; delete the drawing to be reviewed from the preset queue of drawings to be reviewed, determine a new drawing from the remaining queue of drawings to be reviewed as the drawing to be reviewed, and re-execute the step of identifying the floor number of the drawing to be reviewed from the drawings to be reviewed until the preset review end condition is met.

[0092] Optionally, in some embodiments, before determining whether the floor number belongs to the preset set of floors for decoration application, the first identification module 100 is further configured to: determine the target project corresponding to the drawings to be reviewed, and obtain the project information of the target project; and determine the preset set of floors for decoration application based on the project information.

[0093] It should be noted that the explanation of the aforementioned method for determining the scope of review of drawings also applies to the drawing scope determination device of this embodiment, and will not be repeated here.

[0094] The drawing review scope determination device proposed in this application can extract the shaded area of ​​the drawing to be reviewed and convert it into a binary image when the floor number of the drawing to be reviewed belongs to a preset set of floors for decoration declaration. It then converts the shaded area into a polygonal region and the shadow outline of the binary image into a polygonal region. The device identifies the legend region and the edge region of the drawing that meets preset edge conditions. Based on preset components to be reviewed, it filters out invalid components from the polygonal region, legend region, and edge region to obtain the final review scope. This solves the problems of low efficiency, high false alarm rate, and poor reliability of related technologies in automated compliance review of architectural construction drawings. It can accurately distinguish between modified and retained areas in the drawing, significantly improving the efficiency and accuracy of architectural construction drawing review.

[0095] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include: The memory 801, the processor 802, and the computer program stored on the memory 801 and capable of running on the processor 802.

[0096] The processor 802 executes a program to implement the method for determining the scope of review of drawings provided in the above embodiments.

[0097] Furthermore, the electronic device also includes: Communication interface 803 is used for communication between memory 801 and processor 802.

[0098] The memory 801 is used to store computer programs that can run on the processor 802.

[0099] The memory 801 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0100] If the memory 801, processor 802, and communication interface 803 are implemented independently, then the communication interface 803, memory 801, and processor 802 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized into address buses, data buses, control buses, etc. For ease of representation, Figure 8 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0101] Optionally, in a specific implementation, if the memory 801, processor 802, and communication interface 803 are integrated on a single chip, then the memory 801, processor 802, and communication interface 803 can communicate with each other through an internal interface.

[0102] The processor 802 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0103] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following... Figure 1 The method for determining the scope of review of the drawings shown.

[0104] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0105] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0106] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0107] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0108] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0109] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0110] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0111] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

Claims

1. A method for determining the scope of review of drawings, characterized in that, include: Identify the drawings to be reviewed and determine the floor number to which the drawings belong. If the floor number belongs to the preset set of floors for decoration application, the shaded area of ​​the drawing to be reviewed is extracted, and the shaded area is processed to obtain a binary image, and the shaded outline of the binary image is converted into a polygonal area. Identify the legend area and the edge area of ​​the drawing to be reviewed that meet the preset edge conditions, and filter out invalid components from the polygon area, the legend area and the edge area of ​​the drawing based on the preset components to be reviewed, and determine the final review scope based on the drawing to be reviewed after filtering out invalid components.

2. The method according to claim 1, characterized in that, The preset components to be reviewed include fire equipment components. The filtering of invalid components from the polygonal area, the legend area, and the drawing edge area based on the preset components to be reviewed includes: Obtain the enclosure of the fire-fighting equipment component, and perform a pre-set outward expansion process on the enclosure to obtain the expanded enclosure; Calculate the first overlap area between the expanded bounding box and the polygonal region to the first ratio of the area of ​​the expanded bounding box, and take the fire equipment components whose first ratio is greater than or equal to the first preset overlap ratio as the first target components, and identify the second target components in the legend area or the edge area of ​​the drawing as the expanded bounding box. The first target component and the second target component are filtered out from the drawings to be reviewed.

3. The method according to claim 1, characterized in that, The preset components to be reviewed include connected space components. The filtering of invalid components from the polygonal region, the legend region, and the drawing edge region based on the preset components to be reviewed includes: Identify room components, door components, and stair components from the connected space components, and further identify ordinary room components, vestibule components, and stairwell components from the room components; Calculate the second ratio of the second overlapping area between the ordinary room component and the polygonal region to the area of ​​the ordinary room component, and take the ordinary room component whose second ratio is greater than or equal to the second preset overlapping ratio as the third target component; The third target component is filtered out from the drawings to be reviewed.

4. The method according to claim 3, characterized in that, After filtering out the third target component from the drawings to be reviewed, the process further includes: Based on the drawings to be reviewed, valid room components are determined according to the third target component; Identify the first boundary door component corresponding to the vestibule component and the second boundary door component corresponding to the stairwell component from the door components, and determine the ordinary door component based on the door component, the first boundary door component and the second boundary door component; The geometric area of ​​the ordinary door component is subjected to a preset outward expansion process to obtain an expanded ordinary door area. The third overlap area between the expanded ordinary door area and the polygonal area is calculated as a third ratio of the area of ​​the expanded ordinary door area. Ordinary door components whose third ratio is greater than or equal to the third preset overlap ratio and are not connected to effective room components are designated as fourth target components. The fourth target component is filtered out from the drawings to be reviewed.

5. The method according to claim 4, characterized in that, After filtering out the fourth target component from the drawings to be reviewed, the process further includes: Based on the drawings to be reviewed, the boundary door component of the shaded area is determined according to the fourth target component; Traverse all stair components and all vestibule components, calculate the fourth ratio of the fourth overlapping area between the stair component and the polygonal region to the area of ​​the stair component, and designate the stair component whose fourth ratio is greater than or equal to the fourth preset overlapping ratio and is not connected to the boundary door component of the shaded region as the fifth target component. Calculate the fifth ratio of the fifth overlapping area between the vestibule component and the polygonal region to the area of ​​the vestibule component, and designate the vestibule component whose fifth ratio is greater than or equal to the fifth preset overlapping ratio and is not connected to the boundary door component of the shaded region as the sixth target component. The fifth target component and the sixth target component are filtered out from the drawings to be reviewed.

6. The method according to claim 1, characterized in that, After identifying the floor number to which the drawing to be reviewed belongs from the drawing to be reviewed, the process further includes: If the floor number does not belong to the preset set of floors for decoration application, then the drawing to be reviewed is determined to be a non-decoration drawing; The drawing to be reviewed is deleted from the preset queue of drawings to be reviewed, and a new drawing is determined from the remaining queue of drawings to be reviewed as the drawing to be reviewed. The step of identifying the floor number of the drawing to be reviewed from the drawings to be reviewed is repeated until the preset review end condition is met.

7. The method according to claim 1, characterized in that, Before determining whether the floor number belongs to the preset set of floors for renovation applications, the process also includes: Identify the target project corresponding to the drawings to be reviewed, and obtain the project information for the target project; Based on the project information, the preset set of floors for renovation applications is determined.

8. A device for determining the scope of drawing review, characterized in that, include: The first identification module is used to determine the drawing to be reviewed and to identify the floor number to which the drawing to be reviewed belongs from the drawing to be reviewed; The image processing module is used to extract the shaded area of ​​the drawing to be reviewed when the floor number belongs to a preset set of floors for decoration application, process the shaded area to obtain a binary image, and convert the shadow outline of the binary image into a polygonal area. The second identification module is used to identify the legend area and the edge area of ​​the drawing to be reviewed that meet the preset edge conditions, and to filter out invalid components from the polygon area, the legend area and the edge area of ​​the drawing based on the preset components to be reviewed, and to determine the final review scope based on the drawing to be reviewed after filtering out invalid components.

9. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the program to implement the method for determining the scope of review of drawings as claimed in any one of claims 1-7.

10. A computer-readable storage medium storing a computer program, characterized in that, When executed by the processor, the program implements the method for determining the scope of review of drawings as described in any one of claims 1-7.