Method for automatically generating large sample drawing of small toilet
By establishing a large-scale bathroom drawing database and utilizing graphic recognition technology to automatically identify and match the sanitary ware and piping layout of small bathrooms, the problems of long drawing time and low quality are solved, and fast and accurate drawing generation is achieved.
Patent Information
- Application Number
- CN202510673397.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2025-09-26
AI Technical Summary
In the existing technology, the drawing of large-scale drawings of small and medium-sized bathrooms is time-consuming and of low quality, which puts a heavy burden on designers and is prone to problems such as unreasonable piping layout or violation of national standards.
By establishing a database of bathroom drawings containing various layout forms, using graphic recognition technology to identify the locations of sanitary ware and drainage risers in the bathroom, generating identification codes, and combining the water supply and drainage system forms input by the user, automatic retrieval and matching of the drawings in the database can be achieved, providing download or expansion of database samples.
The automatic output of bathroom drawings is realized, which reduces the workload of designers, improves the quality of drawings and work efficiency, reduces the probability of errors, and standardizes product quality.
Smart Images

Figure CN120705940A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of engineering design and drawing, and in particular to a method for automatically generating a large-scale drawing of a small bathroom. Background Art
[0002] Small bathrooms in residences, dormitories, and hotels typically have a regular layout, typically consisting of a toilet, a washbasin, and a shower, with the room generally arranged in a rectangular shape. Based on the actual building dimensions, the aforementioned sanitary ware is arranged within the rectangular space through mirroring, rotation, and movement, ultimately forming the bathroom floor plan. According to existing engineering drawing depth standards, designers are required to submit bathroom detail drawings (including water supply detail drawings, water supply system diagrams, drainage detail drawings, and drainage system diagrams) to guide on-site construction. The creation of each bathroom detail drawing often requires designers to spend several hours or even longer. Furthermore, due to varying understandings of specifications and technical skills among designers, they often fail to comprehensively consider relevant requirements such as general and industry specifications, often resulting in inconsistent product quality, unreasonable piping layouts, and even violations of national mandatory standards. Summary of the Invention
[0003] The present application provides a method for automatically generating a large-scale drawing of a small bathroom. The method can more quickly realize the automatic output of large-scale drawings of bathrooms of various layouts, reduce the burden on engineering designers, and standardize product quality.
[0004] The method for automatically generating a large-scale drawing of a small bathroom provided in this application includes the following steps: 1) establishing a generation system, the generation system including a database containing bathroom layout drawings of various layout forms; 2) The user uploads a bathroom image by selecting a screenshot. The generation system identifies the layout of the sanitary ware and the layout of the drainage riser in the bathroom through the image and generates an identification code; 3) The user enters the water supply system type and drainage system type of the bathroom, and the generation system generates an identification code based on the entered water supply system type and drainage system type; 4) Retrieving bathroom sample images in the database based on the generated identification code. If a bathroom sample image that matches the bathroom image uploaded by the user is retrieved, a preview image is displayed and provided for download to the user. If no matching bathroom sample image is retrieved, an upload port is provided to further expand the sample capacity of the database.
[0005] In addition, the method for automatically generating a large-scale drawing of a small bathroom provided by this application may also have the following additional technical features: In an optional solution, in step 2), the generation system includes the following steps when identifying the arrangement position of the sanitary ware in the bathroom: 2.1) Perform image recognition on the uploaded image to obtain the first control point in the upper left corner of the bathroom's outer contour. Starting from this first control point, further identify four contour lines around the bathroom in a clockwise direction. 2.2) Identify and record each sanitary appliance on each contour line in a clockwise direction, and abbreviate each sanitary appliance and form a corresponding code; 2.3) Analyze the center points of the four contour lines, connect them to obtain the central control point of the bathroom, and establish a plane rectangular coordinate system with the central control point as the center to divide the interior space of the bathroom into four quadrants; 2.4) Identify the bathroom water pipe well's graphical location and match it to its quadrant location. Record the result and generate a corresponding code to serve as the riser location identification code.
[0006] In an optional solution, the step 2.2) specifically includes the following steps: Identify and record the sanitary appliances on the upper contour line among the four contour lines. Sanitary appliances are expressed in abbreviated form, i.e., washbasin is A, shower is B, toilet is C, squat toilet is D, washing machine is E. If there is no sanitary appliance on the upper contour line, it is recorded as X. The recorded results form the first-level code; The sanitary appliances on the right contour line, the lower contour line and the left contour line of the four contour lines are identified and recorded respectively, and the recording results form the second level code, the third level code and the fourth level code respectively. The first level code to the fourth level code are used as the sanitary ware layout identification code.
[0007] In an optional solution, during the identification process of step 2.2), if the sanitary ware is located at a corner position and can be identified in the identification of at least two contour lines, the generation system automatically assigns the contour edge line to which the sanitary ware belongs according to its angle valve installation position. The automatic assignment method includes: using the contour line of the wall facing the position where the sanitary ware user is standing as the identification control line.
[0008] In an optional solution, the four quadrants are divided into a first quadrant, a second quadrant, a third quadrant, and a fourth quadrant, and step 2.4) includes the following steps: When the bathroom water pipe well is in the first quadrant, it is recorded as I, when it is in the second quadrant, it is recorded as II, when it is in the third quadrant, it is recorded as III, and when it is in the fourth quadrant, it is recorded as IV. The recording results are formed into the fifth level code.
[0009] In an optional solution, step 3) includes the following steps: An information entry window is displayed to the user, and the user selects the type of water supply system for the bathroom. If a single cold water system is used for water supply, it is recorded as L, and if a dual hot and cold water system is used for water supply, it is recorded as R. The recorded result is converted into a sixth-level code as the identification code for the type of water supply system for the bathroom; An information entry window is displayed to the user, and the user selects the drainage system type of the bathroom. If a sewage and wastewater combined discharge system is adopted, it is recorded as H; if a sewage and wastewater are discharged separately, it is recorded as F; the recording result is formed into a seventh-level code as the bathroom drainage system type identification code.
[0010] The beneficial effects of this application are: The automatic generation method of small bathroom drawings in this application realizes the automatic selection of bathroom drawings through graphic recognition, separate coding of each component of the bathroom, and retrieval and matching with bathroom drawings in the database. It also realizes software-automated matching of sanitary ware layout, pipeline layout, water supply form, and drainage form of various bathrooms. It effectively solves the current problem of long time consumption and low drawing quality when manually drawing bathroom drawings, reduces the burden on engineering designers, and standardizes product quality. As the sample capacity of the database continues to expand, it can also be conducive to further replacing manual labor with computers, changing from drawing drawings to selecting drawings, liberating productivity, improving work efficiency, and reducing the probability of engineering errors.
[0011] It should be understood that the foregoing general description and the following detailed description are merely illustrative and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is the logic block diagram of the method for automatically generating a large-scale drawing of a small bathroom provided in this application; Figure 2 To generate system-wide toilet identification code coding rules; Figure 3 To generate a schematic diagram of the system when performing bathroom fixture recognition; Figure 4 To generate a schematic diagram of the system when identifying the bathroom pipe well; Figure 5 This is a diagram of a typical small bathroom layout.
[0013] Reference numerals: first control point 1 , upper contour line 2 , right contour line 3 , lower contour line 4 , left contour line 5 , center control point 6 , first quadrant area 7 , second quadrant area 8 , third quadrant area 9 , fourth quadrant area 10 .
[0014] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. DETAILED DESCRIPTION
[0015] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0016] It should be clear that the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other technical solutions obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0017] The terms used in the embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. The singular forms "a", "an", "the" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.
[0018] It should be understood that the term "and / or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0019] It should be noted that the directional words such as "upper", "lower", "left", and "right" described in the embodiments of the present application are described based on the angles shown in the accompanying drawings and should not be understood as limiting the embodiments of the present application. In addition, in the context, it should be understood that when it is mentioned that an element is connected to another element "on" or "under", it can not only be directly connected to the other element "on" or "under", but also be indirectly connected to the other element "on" or "under" through an intermediate element.
[0020] like Figure 1-4 As shown, the embodiment of the present application provides a method for automatically generating a large-scale drawing of a small bathroom. The method can automatically output large-scale drawings of bathrooms of various layouts. The application scenario is small bathrooms in residences, dormitories, hotels, etc. The method mainly includes the following steps: 1) Establish a generation system, which includes a database containing bathroom layout drawings of various layout forms; 2) The user uploads a bathroom image by selecting a screenshot. The generation system uses the image to identify the layout of the sanitary ware and the layout of the drainage riser in the bathroom and generates an identification code. 3) The user enters the water supply system and drainage system of the bathroom, and the generation system generates an identification code based on the entered water supply system and drainage system; 4) Retrieve bathroom sample images from the database based on the generated identification code. If a bathroom sample image that matches the one uploaded by the user is found, a preview image will be displayed and available for download to the user. If no matching bathroom sample image is found, an upload port will be provided to further expand the sample capacity of the database for subsequent user retrieval.
[0021] The method for automatically generating a small bathroom master plan in this embodiment achieves automatic selection of bathroom master plans through graphic recognition, separate coding of each bathroom component, and retrieval and matching with bathroom master plans in a database. It also implements software-automated matching of sanitary ware layouts, plumbing layouts, water supply forms, and drainage forms for various bathrooms. This effectively solves the current problem of manual drawing of bathroom master plans, which is time-consuming and of low quality, reducing the burden on engineering designers and standardizing product quality. As the database sample capacity continues to expand, it can also facilitate the further replacement of manual labor with computers, shifting from drawing drawings to selecting drawings, liberating productivity, improving work efficiency, and reducing the probability of engineering errors.
[0022] like Figure 1 and Figure 3 As shown, in a specific embodiment, in step 2), the generation system includes the following steps when identifying the arrangement position of sanitary ware in the bathroom: 2.1) Perform image recognition on the uploaded image to obtain the first control point 1 in the upper left corner of the bathroom's outer contour. Starting from this first control point 1, proceed clockwise to further identify the four contour lines surrounding the bathroom. 2.2) Identify and record each sanitary appliance on each contour line in a clockwise direction, abbreviate each sanitary appliance and form a corresponding code; the specific steps include the following: Identify and record the sanitary appliances on the upper contour line 2 among the four contour lines. Sanitary appliances are expressed in abbreviated form, i.e., washbasin is A, shower is B, toilet is C, squat toilet is D, washing machine is E. If there is no sanitary appliance on the upper contour line 2, it is recorded as X. The recorded results form the first-level code; Then, the sanitary appliances on the right contour line 3, the lower contour line 4 and the left contour line 5 of the four contour lines are identified and recorded respectively. The identification and recording process is similar to the process of identifying the upper contour line 2, so this article will not go into details one by one. After identification, the recording results form the second-level code, the third-level code and the fourth-level code respectively. The first-level code to the fourth-level code are used as the sanitary ware layout identification code.
[0023] During the recognition process, if the fishway sanitary ware is located at a corner position and can be identified in the recognition of at least two contour lines, the generation system can automatically assign the contour edge line of the sanitary ware according to its angle valve installation position. The automatic allocation method includes: using the contour line of the wall facing the position where the sanitary ware user stands as the recognition control line.
[0024] 2.3) Analyze the center points of the four contour lines and connect them to obtain the central control point 6 of the bathroom. Establish a plane rectangular coordinate system with the central control point 6 as the center. This means that the bathroom is encoded according to the quadrant division principle of the plane rectangular coordinate system, dividing the interior space of the bathroom into four quadrants. 2.4) Perform graphic position identification on the bathroom water pipe well and match its quadrant position. Record the result and form a corresponding code to serve as the standpipe position identification code. Specifically, Figure 4 As shown, the four quadrants are divided into the first quadrant area 7, the second quadrant area 8, the third quadrant area 9 and the fourth quadrant area 10. When the bathroom water pipe well is in the first quadrant area 7, it is recorded as I, when it is in the second quadrant area 8, it is recorded as II, when it is in the third quadrant area 9, it is recorded as III, and when it is in the fourth quadrant area 10, it is recorded as IV. The recording results are formed into the fifth level code.
[0025] In a specific embodiment, step 3) includes the following steps: An information entry window is displayed to the user, and the user selects the type of water supply system for the bathroom. If a single cold water system is used for water supply, it is recorded as L, and if a dual hot and cold water system is used for water supply, it is recorded as R. The recorded result is converted into a sixth-level code as the identification code for the type of water supply system for the bathroom; An information entry window is displayed to the user, and the user selects the drainage system type of the bathroom. If a sewage and wastewater combined discharge system is adopted, it is recorded as H; if a sewage and wastewater are discharged separately, it is recorded as F; the recording result is formed into a seventh-level code as the bathroom drainage system type identification code.
[0026] As can be seen from the above embodiments, according to the above coding method, each bathroom can be distinguished by a unique identification code. The first-level coding is the upper contour line 2 sanitary ware layout code, typically consisting of ≥ 1 letter; the second-level coding is the right contour line 3 sanitary ware layout code, typically consisting of ≥ 1 letter; the third-level coding is the lower contour line 4 sanitary ware layout code, typically consisting of ≥ 1 letter; the fourth-level coding is the left contour line 5 sanitary ware layout code, typically consisting of ≥ 1 letter; the fifth-level coding is the pipe well location code, typically consisting of 1 Roman numeral; the sixth-level coding is the water supply system type code, typically consisting of 1 letter; and the seventh-level coding is the drainage system type code, typically consisting of 1 letter. As shown in the following table: Attach Figure 5 For example, for the bathroom shown, when a cold water only system and waste diversion system are used, its identification code can be recorded as CB-AXXILF. Therefore, the generation system can display the corresponding bathroom sample drawing to the user from the data control.
[0027] The automatic generation method of small bathroom layout drawings in this application is based on graphic recognition technology. A coding recognition rule is established for the sanitary ware layout and pipe well layout of each bathroom. In combination with user needs, the type of water supply system and drainage system is identified, and a unique seven-level code is formed for each type of bathroom. The one-click output of the bathroom layout drawing is achieved through database retrieval.
[0028] The bathroom layout generated by the encoding rules above is essentially identical to the user-uploaded screenshot, with only minor deviations along the contour lines. Designers can easily modify this using the Stretch command in AutoCAD. Axonometric drawings, on the other hand, are unaffected by these deviations and can be directly applied. In actual practice, designers can finalize and modify the output layout in just a few seconds, significantly reducing engineering drawing time and improving accuracy.
[0029] The above are merely preferred embodiments of the present application and are not intended to limit the present application. Those skilled in the art will readily appreciate that various modifications and variations are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A method for automatically generating a large-scale drawing of a small bathroom, characterized in that: The following steps are involved: 1) establishing a generation system, the generation system including a database containing bathroom layout drawings of various layout forms; 2) The user uploads a bathroom image by selecting a screenshot. The generation system identifies the layout of the sanitary ware and the layout of the drainage riser in the bathroom through the image and generates an identification code; 3) The user enters the water supply system type and drainage system type of the bathroom, and the generation system generates an identification code based on the entered water supply system type and drainage system type; 4) Retrieving bathroom sample images in the database based on the generated identification code. If a bathroom sample image that matches the bathroom image uploaded by the user is retrieved, a preview image is displayed and provided for download to the user. If no matching bathroom sample image is retrieved, an upload port is provided to further expand the sample capacity of the database.
2. The method for automatically generating a large-scale drawing of a small bathroom according to claim 1 is characterized in that: In step 2), the generation system includes the following steps when identifying the arrangement position of sanitary ware in the bathroom: 2.1) Perform image recognition on the uploaded image to obtain the first control point in the upper left corner of the bathroom's outer contour. Starting from this first control point, further identify four contour lines around the bathroom in a clockwise direction. 2.2) Identify and record each sanitary appliance on each contour line in a clockwise direction, and abbreviate each sanitary appliance and form a corresponding code; 2.3) Analyze the center points of the four contour lines, connect them to obtain the central control point of the bathroom, and establish a plane rectangular coordinate system with the central control point as the center to divide the interior space of the bathroom into four quadrants; 2.4) Identify the bathroom water pipe well's graphical location and match it to its quadrant location. Record the result and generate a corresponding code to serve as the riser location identification code.
3. The method for automatically generating a large-scale drawing of a small bathroom according to claim 2 is characterized in that: The step 2.2) includes the following steps: Identify and record the sanitary appliances on the upper contour line among the four contour lines. Sanitary appliances are expressed in abbreviated form, i.e., washbasin is A, shower is B, toilet is C, squat toilet is D, washing machine is E. If there is no sanitary appliance on the upper contour line, it is recorded as X. The recorded results form the first-level code; The sanitary appliances on the right contour line, the lower contour line and the left contour line of the four contour lines are identified and recorded respectively, and the recording results form the second level code, the third level code and the fourth level code respectively. The first level code to the fourth level code are used as the sanitary ware layout identification code.
4. The method for automatically generating a large-scale drawing of a small bathroom according to claim 2 or 3, characterized in that: During the recognition process of step 2.2), if the sanitary ware is located at a corner position and can be identified in the recognition of at least two contour lines, the generation system automatically assigns the contour edge line to which the sanitary ware belongs according to its angle valve installation position. The automatic assignment method includes: using the contour line of the wall facing the position where the sanitary ware user is standing as the recognition control line.
5. The method for automatically generating a large-scale drawing of a small bathroom according to claim 2 is characterized in that: The four quadrants are divided into a first quadrant, a second quadrant, a third quadrant, and a fourth quadrant. Step 2.4) includes the following steps: When the bathroom water pipe well is in the first quadrant, it is recorded as I, when it is in the second quadrant, it is recorded as II, when it is in the third quadrant, it is recorded as III, and when it is in the fourth quadrant, it is recorded as IV. The recording results are formed into the fifth level code.
6. The method for automatically generating a large-scale drawing of a small bathroom according to any one of claims 1 to 3 or 5, characterized in that: The step 3) includes the following steps: An information entry window is displayed to the user, and the user selects the type of water supply system for the bathroom. If a single cold water system is used for water supply, it is recorded as L, and if a dual hot and cold water system is used for water supply, it is recorded as R. The recorded result is converted into a sixth-level code as the identification code for the type of water supply system for the bathroom; An information entry window is displayed to the user, and the user selects the drainage system type of the bathroom. If a sewage and wastewater combined discharge system is adopted, it is recorded as H; if a sewage and wastewater are discharged separately, it is recorded as F; the recording result is formed into a seventh-level code as the bathroom drainage system type identification code.