Floor plan generation method, device, equipment and storage medium

Through the combination of the measurement terminal and the distance meter, the house plan is measured and generated in real time, which solves the problem of low efficiency in drawing house plans in the existing technology and achieves the effect of quickly generating closed house plans.

CN116740276BActive Publication Date: 2024-10-29BEIJING QINGYUAN HUAYI ARCHITECTURAL DESIGN CONSULTING CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310687106.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-09
Publication Date
2024-10-29
Estimated Expiration
2043-06-09

AI Technical Summary

Technical Problem

The existing method of drawing house plans is inefficient and cannot draw house plans quickly.

Method used

Through the connection between the measuring terminal and the distance meter, the wall in the target space is measured in real time, and the built-in direction measuring device is used to obtain the wall measurement direction, and the measurement is carried out according to the sequential direction to generate a closed floor plan.

Benefits of technology

It realizes the rapid generation of house plan drawings while conducting field measurements, which significantly improves the efficiency of house plan drawing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116740276B_ABST
    Figure CN116740276B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method for generating a floor plan, the method comprising: taking the N-1th mapping end point of the N-1th mapping wall as the N-th mapping starting point, obtaining the N-th mapping end point according to the N-th mapping distance and the N-th mapping direction to generate the N-th mapping wall; judging whether the N-th mapping end point is an end position point; in response to obtaining that the N-th mapping end point is not an end position point, reusing the N+1th mapping wall as the N-th mapping wall, and returning to execute; in response to obtaining that the N-th mapping end point is an end position point, merging the N-th mapping end point with the first mapping starting point, so that all the mapping walls form a closed plane floor plan. Through this scheme, the measurement wall can be drawn while the target physical space is being measured on the spot, and the floor plan can be generated after the measurement is completed, which greatly improves the efficiency of floor plan drawing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of communication technology and interface interaction technology, and in particular to a floor plan generation method, device, equipment and storage medium. Background Art

[0002] In the existing method of drawing walls of floor plans, designers usually measure the house physically, record the distances between the walls in each room, and then use drawing software to edit and draw the walls according to the measured distances. This method of drawing floor plans has low drawing efficiency and cannot draw floor plans quickly. Summary of the invention

[0003] An embodiment of the present invention provides a method for generating a floor plan, which is used to measure walls in a target physical space in real time, edit the walls on a measurement terminal, and quickly generate contours of each wall and doors and windows in the floor plan.

[0004] In a first aspect, an embodiment of the present invention provides a floor plan generation method, which is applied to a measurement terminal, wherein the measurement terminal is connected to a rangefinder, and the rangefinder is externally fixed to the measurement terminal, so that the ray direction of the rangefinder is the same as the forward direction of the display screen of the measurement terminal, and the rangefinder measures each wall in the target space in a sequential direction, so that the N-1th measurement end point of the N-1th wall is the Nth measurement starting point of the Nth wall, and the method includes:

[0005] Step S1, taking the N-1th mapping end point of the N-1th mapping wall as the Nth mapping starting point, and acquiring the Nth mapping end point according to the Nth mapping distance and the Nth mapping direction to generate the Nth mapping wall; wherein the Nth mapping distance is acquired by the Nth wall distance measured by the rangefinder in the target space, and the Nth mapping direction is acquired according to the measurement direction of the Nth wall acquired by the direction measurement device built into the measurement terminal;

[0006] Step S2, determining whether the Nth mapping end point is an end position point; if so, executing step S3; if not, executing step S4;

[0007] Step S3, in response to obtaining that the Nth mapping end point is not the end position point, re-using the N+1th mapping wall as the Nth mapping wall, and returning to execute step S1;

[0008] Step S4: in response to obtaining the Nth mapping end point as the end position point, merging the Nth mapping end point with the first mapping starting point so that all mapped walls form a closed plan floor plan.

[0009] In a second aspect, an embodiment of the present invention provides a floor plan generating device, which is applied to a measuring terminal, the measuring terminal is connected to a rangefinder, and the rangefinder is externally fixed to the measuring terminal, so that the ray direction of the rangefinder is the same as the forward direction of the display screen of the measuring terminal, and the rangefinder measures each wall in the target space in a sequential direction, so that the N-1th measurement end point of the N-1th wall is the Nth measurement starting point of the Nth wall, and the device includes:

[0010] A wall generation module 21, which is used to take the N-1th mapping end point of the N-1th mapping wall as the Nth mapping starting point, and obtain the Nth mapping end point according to the Nth mapping distance and the Nth mapping direction to generate the Nth mapping wall; wherein the Nth mapping distance is obtained by the Nth wall distance measured by the rangefinder in the target space, and the Nth mapping direction is obtained according to the measurement direction of the Nth wall obtained by the direction measurement device built into the measurement terminal;

[0011] A judgment module 22 is used to judge whether the Nth mapping end point is an end position point; if so, jump to the acquisition module to execute 23; if not, jump to the apartment type generation module 24;

[0012] An acquisition module 23 is used for, in response to obtaining that the Nth mapping end point is not the end position point, re-using the N+1th mapping wall as the Nth mapping wall, and returning to the wall generation module 21;

[0013] The apartment type generating module 24, in response to obtaining the Nth mapping end point as the end position point, merges the Nth mapping end point with the first mapping starting point so that all the mapped walls form a closed plane apartment type diagram.

[0014] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a communication interface; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor can at least implement the floor plan generation method described in the first aspect.

[0015] In a fourth aspect, an embodiment of the present invention provides a non-temporary machine-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor can at least implement the floor plan generation method as described in the first aspect.

[0016] In the solution provided by the embodiment of the present invention, the rangefinder measures any wall in the target physical space in real time. After receiving the corresponding measurement data, the measurement terminal synchronously draws the measured wall in real time on the measurement terminal to generate the apartment type of the target physical space. Based on the solution provided by the embodiment of the present invention, it can be seen that the measured wall can be drawn while the target physical space is being measured on the spot, and the apartment type map can be generated after the measurement is completed, which greatly improves the efficiency of apartment type drawing. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 An exemplary diagram of a distance meter and a measurement terminal provided by an embodiment of the present invention;

[0019] Figure 2 A flowchart generated for a floor plan;

[0020] Figure 3 is a measurement schematic diagram of the target physical space;

[0021] Figure 4 A schematic diagram of an application interface of a method for generating a floor plan on a measurement terminal provided by an embodiment of the present invention;

[0022] Figure 5 A schematic diagram of an application interface of a method for generating a floor plan using a door medium as an example of a mapping medium on a measurement terminal provided by an embodiment of the present invention;

[0023] Figure 6 A schematic diagram of the structure of a floor plan generating device provided by an embodiment of the present invention;

[0024] Figure 7 For Figure 6 A schematic diagram of the structure of an electronic device corresponding to the floor plan generating device provided in the illustrated embodiment. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.

[0027] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0028] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0029] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0030] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.

[0031] The floor plan generation method provided in the embodiment of the present invention can be performed by a measurement terminal and an external range finder. The measurement terminal can be a terminal device such as a PAD, a notebook computer, a smart phone, etc. Figure 1 An example diagram of a rangefinder and a measuring terminal is shown, wherein the rangefinder is externally fixed to the measuring terminal so that the ray direction of the rangefinder is the same as the forward direction of the display screen of the measuring terminal, and the rangefinder does not block the display screen of the measuring terminal, wherein the forward direction of the display screen of the measuring terminal is the direction from the bottom to the top of the display screen of the measuring terminal.

[0032] Among them, the rangefinder and the measuring terminal are connected to each other for data transmission, so that the measuring terminal can obtain the measurement data of the rangefinder; the rangefinder and the measuring terminal can be connected by wire through a data cable, or can be connected wirelessly through the respective wireless modules in the rangefinder and the measuring terminal. Exemplarily, they can be connected via Bluetooth for data transmission, so that the measuring terminal can obtain the measurement data of the rangefinder.

[0033] The measuring terminal is equipped with a direction measuring device. Specifically, the direction of the magnetic field is calculated in three-dimensional space by using the built-in gravity (acceleration) sensor of the mobile phone. The direction indicated by the forward direction of the display screen of the measuring terminal can be effectively measured. Since the rangefinder is externally fixed to the measuring terminal, the ray direction of the rangefinder is the same as the forward direction of the display screen of the measuring terminal. Therefore, the direction indicated by the forward direction of the display screen of the measuring terminal is the measurement direction of the rangefinder in the physical space.

[0034] Figure 2 A flow chart of generating a floor plan provided by an embodiment of the present invention, such as Figure 2 As shown, the following steps may be included:

[0035] Step S1, taking the N-1th mapping end point of the N-1th mapping wall as the Nth mapping starting point, and acquiring the Nth mapping end point according to the Nth mapping distance and the Nth mapping direction to generate the Nth mapping wall; wherein the Nth mapping distance is acquired by the Nth wall distance measured by the rangefinder in the target space, and the Nth mapping direction is acquired according to the measurement direction of the Nth wall acquired by the direction measurement device built into the measurement terminal;

[0036] For example, as shown in the attached Figure 3 As shown, any endpoint point A in the target physical room is taken as the measurement starting point of the rangefinder, the direction from point A to point B is the measurement direction of the wall 1, and there is a wall 2 (exemplarily an obstruction) at the position of point B to intercept the measurement ray of the rangefinder. The measurement terminal obtains the endpoint A of the wall 1 in the target physical space of the rangefinder through the rangefinder as the first measurement starting point, and obtains the first wall distance from the first measurement end point B of the wall 1 to the first measurement starting point A through the rangefinder as L1, and obtains the measurement direction of the wall 1 as A→B through the built-in direction measurement device of the measurement terminal;

[0037] Preferably, a drawing reference orientation may be pre-configured on the measurement terminal, and based on the drawing reference orientation, the mapping direction of the Nth wall is obtained according to the measurement direction of the Nth wall;

[0038] For example, as shown in the attached Figure 4As shown, in this embodiment, the downward direction pointing to the south is used as the drawing reference direction (the drawing reference direction may or may not be shown in the interface). In this way, when the first mapping wall is generated, the mapping direction a→b of the Nth wall can be obtained based on the drawing reference direction and the measurement direction A→B of the first wall.

[0039] When measuring wall 1, wall 1 is assigned as the Nth wall. At this time, N is assigned as 1, and wall 1 is the first wall. When generating the mapping wall of the first wall, it is necessary to use any point as the mapping starting point on the apartment editing interface.

[0040] Under the condition that N is assigned a value of 1, the first mapping distance l1 can be obtained according to the first wall distance L1, and the mapping direction a→b of wall 1 can be obtained according to the measurement direction of wall 1.

[0041] Specifically, on the apartment editing interface of the measurement terminal, any point a is taken as the first mapping starting point, and the mapping coordinates a(ax, ay) of the first mapping starting point are obtained. According to the mapping coordinates a(ax, ay) of the first mapping starting point, the first mapping distance l1, and the mapping direction a→b of the wall 1, the mapping coordinates b(bx, by) of the first mapping end point b of the first mapping wall are obtained, so as to determine the position of the first mapping end point b on the apartment editing interface of the measurement terminal, so as to generate the first mapping wall from the first mapping starting point to the first mapping end point; as shown in the attached figure. Figure 4 As shown in the apartment editing interface;

[0042] Step S2, determining whether the Nth mapping end point is an end position point; if so, executing step S3; if not, executing step S4;

[0043] Specifically, a preset range can be configured for the first mapping starting point. After the Nth mapping end point is obtained, it is determined whether the position of the Nth mapping end point is within the preset range of the first mapping starting point based on the coordinates of the Nth mapping end point. In response to the position of the Nth mapping end point being within the preset range of the first mapping starting point, the Nth mapping end point is determined to be an end position point; in response to the position of the Nth mapping end point not being within the preset range of the first mapping starting point, the Nth mapping end point is determined to be a non-end position point.

[0044] Specifically, it is also possible to determine whether the Nth mapping end point is the end position point according to the stop signal triggered;

[0045] For example, as shown in the attached Figure 3As shown, a stop control can be set on the measurement terminal. After measuring wall 1, the first measurement end point B is obtained. The user triggers the stop control to input an external device end signal to control the stop drawing of the mapping wall. If no signal triggered by the stop control is received, it is assumed that the previous mapping end point is not the end position point, and the next mapping wall needs to be drawn.

[0046] Step S3, in response to obtaining that the Nth mapping end point is not the end position point, re-using the N+1th mapping wall as the Nth mapping wall, and returning to execute step S1;

[0047] Specifically, the first measurement end point B is not the end position point. Next, it is necessary to control the rangefinder to measure each wall in the target space in a sequential direction. The above wall 1 is measured in the direction from point A to point B. Next, it is necessary to use point B as the measurement starting point of wall 2 and measure wall 2 in the direction from point B to point C. According to the measurement direction from point B to point C, when point C is the measurement end point, there is no obstruction of the rangefinder at point C to intercept the measuring ray. At this time, preferably, during the measurement process, a control switch wirelessly connected to the rangefinder can be used. When measuring wall 2, the rangefinder and the measuring terminal can be placed at point B, and the measurement personnel stand at point C. The measuring distance of wall 2 is obtained by intercepting the measuring ray through the body part of the measurement personnel.

[0048] Optionally, during the measurement process, a ranging baffle can also be used. The ranging baffle can be any movable object used to intercept the measuring ray. When measuring the wall 2, the ranging baffle can be used to assist the rangefinder in measuring the wall 2. Specifically, the rangefinder and the measuring terminal can be placed at point B, and the ranging baffle can be placed at point C. The measuring distance of the wall 2 can be obtained by intercepting the measuring ray by the ranging baffle.

[0049] The measuring terminal obtains through the rangefinder that the rangefinder in the target physical space takes the second measuring starting point B as the measuring starting point of wall 2, the second measuring end point C as the measuring end point of wall 2, and the second measuring starting point B of wall 2 is the first measuring end point B of wall 1; the measuring direction of wall 2 is from point B to point C, and the second wall distance from the second measuring starting point B of wall 2 to the second measuring end point C obtained by the rangefinder is L2, and the measuring direction of wall 2 obtained by the built-in direction measuring device of the measuring terminal is B→C;

[0050] For example, as shown in the attached Figure 4As shown, the downward direction pointing south is still used as the drawing reference direction (the drawing reference direction may or may not be shown in the interface), so when generating the second mapping wall, the mapping direction of the wall 2 may be generated based on the drawing reference direction;

[0051] In the program, wall 2 is now used as the Nth wall, and N is assigned a value of 2.

[0052] Under the condition that N is assigned a value of 2, the measurement direction of wall 2 is B→C. Based on the drawing reference orientation, the obtained mapping direction is b→c, which is also the clockwise direction of the mapping direction a→b of wall 1 above. Next, the second mapping distance l2 can be obtained according to the second wall distance L2; and the execution returns to step S1;

[0053] Taking the N-1th mapping end point of the N-1th mapping wall as the Nth mapping starting point, and obtaining the Nth mapping end point according to the Nth mapping distance and the Nth mapping direction to generate the Nth mapping wall;

[0054] Specifically, the first mapping end point of the first mapping wall is used as the second mapping starting point, and the second mapping end point is obtained according to the second mapping distance and the second mapping direction to generate the second mapping wall;

[0055] Further, on the apartment type editing interface of the measurement terminal, the first mapping end point b is continued to be the second mapping starting point, and the mapping coordinates b (bx, by) of the second mapping starting point are obtained.

[0056] According to the mapping coordinates b(bx, by) of the second mapping starting point, the second mapping distance l2, and the mapping direction b→c of the wall 2, the mapping coordinates c(cx, cy) of the second mapping end point c of the second mapping wall are obtained, so as to determine the position of the second mapping end point c on the apartment type editing interface of the measurement terminal, so as to generate the second mapping wall from the second mapping starting point to the second mapping end point, as shown in the attached figure. Figure 4 As shown in the apartment editing interface;

[0057] At this time, it is necessary to execute step S2 again to determine whether the Nth mapping end point is the end position point; if so, execute step S3; if not, execute step S4;

[0058] Specifically, a preset range can be configured for the first mapping starting point. After the Nth mapping end point is obtained, it is determined whether the position of the Nth mapping end point is within the preset range of the first mapping starting point based on the coordinates of the Nth mapping end point. In response to the position of the Nth mapping end point being within the preset range of the first mapping starting point, the Nth mapping end point is determined to be an end position point; in response to the position of the Nth mapping end point not being within the preset range of the first mapping starting point, the Nth mapping end point is determined to be a non-end position point.

[0059] Specifically, it is also possible to determine whether the Nth mapping end point is the end position point according to the stop signal triggered;

[0060] For example, as shown in the attached Figure 3 As shown, a stop control can be set on the measurement terminal. After measuring wall 2, the second measurement end point C is obtained. The user triggers the stop control to input an external device end signal to control the stop drawing of the mapping wall. If no signal triggered by the stop control is received, it is assumed that the previous mapping end point is not the end position point, and the next mapping wall needs to be drawn.

[0061] Execute step S3 again, in response to obtaining that the Nth mapping end point is not the end position point, use the N+1th mapping wall as the Nth mapping wall again, and return to execute step S1;

[0062] The second measurement end point C is not the end position point. Next, the rangefinder needs to be controlled to measure each wall in the target space in a sequential direction. The above wall 2 is measured from point B to point C. Next, point C needs to be used as the measurement starting point of wall 3, and wall 3 is measured from point C to point D. At point D, there is a wall 3 (exemplarily an obstruction) to intercept the measurement ray of the rangefinder. The measurement terminal obtains through the rangefinder that the rangefinder uses the third measurement starting point C as the measurement starting point of wall 3 in the target physical space, the third measurement end point D is the measurement end point of wall 3, and the measurement direction C→D of wall 3 is from point C to point D. The third wall distance from the third measurement end point D of wall 3 to the third measurement starting point C obtained by the rangefinder is L3;

[0063] For example, as shown in the attached Figure 4 As shown, the downward direction pointing to the south is still used as the drawing reference direction (the drawing reference direction may or may not be shown in the interface), so when generating the third mapping wall, the mapping direction of the wall 3 may be generated based on the drawing reference direction;

[0064] In the program, wall 3 is now used as the Nth wall, and N is assigned a value of 3.

[0065] Under the condition that N is assigned a value of 3, the measurement direction of wall 3 is C→D. Based on the drawing reference orientation, the obtained mapping direction is c→d, which is the sequential direction with the mapping direction b→c of wall 2 above. Next, the third mapping distance l3 can be obtained according to the third wall distance L3, and the execution returns to step S1;

[0066] Taking the N-1th mapping end point of the N-1th mapping wall as the Nth mapping starting point, and obtaining the Nth mapping end point according to the Nth mapping distance and the Nth mapping direction to generate the Nth mapping wall;

[0067] Specifically, the second mapping end point of the second mapping wall is used as the third mapping starting point, and the third mapping end point is obtained according to the third mapping distance and the third mapping direction to generate the third mapping wall;

[0068] Further, on the apartment type editing interface of the measurement terminal, the second mapping starting point c is continued to be the third mapping starting point, and the mapping coordinates c (cx, cy) of the third mapping starting point are obtained.

[0069] According to the mapping coordinates c(cx, cy) of the third mapping starting point, the third mapping distance l3, and the mapping direction c→d of the wall 3, the mapping coordinates d(dx, dy) of the third mapping end point d of the third mapping wall are obtained, so as to determine the position of the third mapping end point d on the apartment type editing interface of the measurement terminal, so as to generate the third mapping wall from the third mapping starting point to the third mapping end point; as shown in the attached figure Figure 4 As shown in the apartment editing interface;

[0070] Similarly, the measurements of wall 4, wall 5, and wall 6 are used to generate the mapping wall 4 (see attached figure). Figure 4 d→e section), mapping wall 5 (as shown in the attached Figure 4 e→f section), mapping wall 6 (as shown in the attached Figure 4 The process of f→a in the middle is the same as the generation method of each mapped wall mentioned above. After each wall is generated, step S2 needs to be executed again to determine whether the Nth mapping end point is the end position point; if so, step S3 is executed; if not, step S4 is executed;

[0071] After the mapping wall 6 is generated, step S2 is executed to determine whether the Nth mapping end point is the end position point; if so, step S3 is executed; if not, step S4 is executed;

[0072] Specifically, a preset range can be configured for the first mapping starting point. After the Nth mapping end point is obtained, it is determined whether the position of the Nth mapping end point is within the preset range of the first mapping starting point based on the coordinates of the Nth mapping end point. In response to the position of the Nth mapping end point being within the preset range of the first mapping starting point, the Nth mapping end point is determined to be an end position point; in response to the position of the Nth mapping end point not being within the preset range of the first mapping starting point, the Nth mapping end point is determined to be a non-end position point.

[0073] For example, after the mapping wall 6 is generated, the sixth mapping end point A'(a'x, a'y) can be obtained, and according to the coordinates of the sixth mapping end point A'(a'x, a'y), it is determined that the position of the sixth mapping end point is within the preset range of the first mapping starting point A(ax, ay), and the sixth mapping end point is determined as the end position point;

[0074] For example, as shown in the attached Figure 3 As shown, a stop control can be set on the measurement terminal, and after the mapping wall 6 is generated, the stop control is triggered to indicate that the sixth mapping end point is the end position point.

[0075] Next, step S4 is executed. In response to obtaining the Nth mapping end point as the end position point, the Nth mapping end point is merged with the first mapping starting point so that all mapped walls form a closed plan floor plan.

[0076] When the 6th mapping end point A' is the end position point, the 6th mapping end point A' and the first mapping starting point A are merged. Specifically, a point can be selected from the 6th mapping end point A' and the first mapping starting point A as the final merge point coordinates, or a final merge point coordinates can be calculated based on the 6th mapping end point A' and the first mapping starting point A so that the mapping coordinates of the 6th mapping end point A' and the first mapping starting point A coincide.

[0077] After the mapping coordinates of the sixth mapping end point A' and the first mapping start point A coincide, all the mapped walls form a closed floor plan, as shown in the figure below. Figure 4 After obtaining the floor plan, it is necessary to edit the mapping medium of the wall based on the floor plan. For example, doors and windows can be mapped as examples of the mapping medium. Here, doors and windows are just examples of the medium. Doors and windows can also include door sills, wall decorations, pipes, etc. In this way, based on the technical solution of this embodiment, a complete floor plan corresponding to the physical space can be quickly generated, which greatly improves the efficiency of floor plan drawing.

[0078] Specifically, the floor plan includes multiple mapping walls. In response to taking any mapping wall as the target mapping wall, a mapping medium is added to the target mapping wall, and the mapping medium is added at any position on the target mapping wall, wherein the mapping medium is connected to at least one medium mapping wall, the medium mapping wall is located on the target mapping wall and is used to connect the mapping wall on either side of the mapping medium, the mapping medium corresponds to a physical medium on the target wall of the target space, the target wall is the wall corresponding to any mapping wall, and the medium mapping wall corresponds to the wall on either side of the physical medium on the target wall.

[0079] For example, as shown in the attached Figure 5 As shown, the door body (exemplary medium) is on the wall 1, and accordingly, as shown in the attached Figure 5 As shown, in response to taking the mapping wall l1 as the target mapping wall, at any position on the mapping wall l1 corresponding to the wall 1, a mapping medium (exemplarily, a door medium mn) is first added, which corresponds to the following Figure 3 The physical medium on the target wall 1 of the target space shown is: a door, the mapping medium is connected with a medium mapping wall am, and a medium mapping wall nb; the medium mapping wall is located on the target mapping wall, and the medium mapping wall corresponds to the wall on either side of the physical medium on the target wall.

[0080] Further, in response to obtaining a mapping distance of a target medium mapping wall and obtaining a selection of a target medium mapping wall, the position of the mapping medium on the target mapping wall is adjusted according to the mapping distance of the target medium mapping wall; wherein the mapping distance of the target medium mapping wall is obtained by measuring the wall distance on the target side of the physical medium by the rangefinder in the target space.

[0081] Exemplarily, the user selects the media mapping wall am as the target media mapping wall, and uses a rangefinder to obtain the wall distance of the target side of the media mapping wall am corresponding to the physical medium (door body) in the target space. According to the wall distance on the target side, the mapping distance of the target media mapping wall am can be obtained. Further, according to the mapping distance of the target media mapping wall am, the position of the mapping medium (exemplarily, the door body medium mn) on the target mapping wall is adjusted.

[0082] For other objects, the editing process of using windows, door sills, wall decorations, pipes, etc. as mapping media is the same as the editing process of the above-mentioned doors, so I will not go into details here.

[0083] The following will describe in detail the floor plan generation device of one or more embodiments of the present invention. Those skilled in the art will appreciate that these devices can be configured using commercially available hardware components through the steps taught in this solution.

[0084] Figure 6 A schematic diagram of the structure of a floor plan generating device provided by an embodiment of the present invention is applied to a measuring terminal, the measuring terminal is connected to a rangefinder, and the rangefinder is externally fixed to the measuring terminal so that the ray direction of the rangefinder is the same as the forward direction of the display screen of the measuring terminal, the rangefinder measures each wall in the target space in a sequential direction so that the N-1th measurement end point of the N-1th wall is the Nth measurement starting point of the Nth wall, and the device includes:

[0085] A wall generation module 21, which is used to take the N-1th mapping end point of the N-1th mapping wall as the Nth mapping starting point, and obtain the Nth mapping end point according to the Nth mapping distance and the Nth mapping direction to generate the Nth mapping wall; wherein the Nth mapping distance is obtained by the Nth wall distance measured by the rangefinder in the target space, and the Nth mapping direction is obtained according to the measurement direction of the Nth wall obtained by the direction measurement device built into the measurement terminal;

[0086] A judgment module 22 is used to judge whether the Nth mapping end point is an end position point; if so, jump to the acquisition module to execute 23; if not, jump to the apartment type generation module 24;

[0087] An acquisition module 23 is used for, in response to obtaining that the Nth mapping end point is not the end position point, re-using the N+1th mapping wall as the Nth mapping wall, and returning to the wall generation module 21;

[0088] The apartment type generating module 24, in response to obtaining the Nth mapping end point as the end position point, merges the Nth mapping end point with the first mapping starting point so that all the mapped walls form a closed plane apartment type diagram.

[0089] The judgment module 22 is further specifically configured to determine the Nth mapping end point as the end point in response to the position of the Nth mapping end point being within a preset range of the first mapping start point; and

[0090] In response to the position of the Nth mapping end point not being within a preset range of the first mapping start point, the Nth mapping end point is determined to be a non-ending position point.

[0091] The apartment type generation module 24 is also used for adding a mapping medium to the target mapping wall in response to taking any mapping wall as the target mapping wall, and then adding the mapping medium at any position on the target mapping wall, wherein the mapping medium is connected to at least one medium mapping wall, the medium mapping wall is located on the target mapping wall and is used to connect the mapping wall on either side of the mapping medium, the mapping medium corresponds to the physical medium on the target wall of the target space, the target wall is the wall corresponding to any mapping wall, and the medium mapping wall corresponds to the wall on either side of the physical medium on the target wall.

[0092] The apartment type generation module 24 is also used to adjust the position of the mapping medium on the target mapping wall in response to obtaining the mapping distance of the target medium mapping wall and obtaining the selection of the target medium mapping wall according to the mapping distance of the target medium mapping wall; wherein the mapping distance of the target medium mapping wall is obtained by measuring the wall distance on the target side of the physical medium by the rangefinder in the target space.

[0093] Figure 6 The device shown can execute the steps introduced in the aforementioned embodiments. For detailed execution process and technical effects, please refer to the description in the aforementioned embodiments, which will not be repeated here.

[0094] In one possible design, the above Figure 6 The structure of the floor plan generating device shown in the figure can be realized as an electronic device, such as Figure 7 As shown, the electronic device may include: a memory 21, a processor 22, and a communication interface 23. The memory 21 stores executable codes, and when the executable codes are executed by the processor 22, the processor 22 can at least implement the floor plan generation method provided in the above-mentioned embodiment.

[0095] In addition, an embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement a floor plan generation device as provided in the aforementioned embodiment.

[0096] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.

[0097] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a floor plan, characterized in that: The method is applied to a measuring terminal, the measuring terminal is connected to a rangefinder, and the rangefinder is externally fixed to the measuring terminal, so that the ray direction of the rangefinder is the same as the forward direction of the display screen of the measuring terminal, and the rangefinder measures each wall in the target space in a sequential direction, so that the N-1th measurement end point of the N-1th wall is the Nth measurement starting point of the Nth wall. The method includes: Step S1, taking the N-1th mapping end point of the N-1th mapping wall as the Nth mapping starting point, and acquiring the Nth mapping end point according to the Nth mapping distance and the Nth mapping direction to generate the Nth mapping wall; wherein the Nth mapping distance is acquired by the Nth wall distance measured by the rangefinder in the target space, and the Nth mapping direction is acquired according to the measurement direction of the Nth wall acquired by the direction measurement device built into the measurement terminal; Step S2, determining whether the Nth mapping end point is an end position point; if so, executing step S3; if not, executing step S4; Step S3, in response to obtaining that the Nth mapping end point is not the end position point, re-using the N+1th mapping wall as the Nth mapping wall, and returning to execute step S1; Step S4: in response to obtaining the Nth mapping end point as the end position point, merging the Nth mapping end point with the first mapping starting point so that all mapped walls form a closed plan floor plan.

2. The method according to claim 1, characterized in that The rangefinder further includes a control switch, which is wirelessly connected to the rangefinder. In response to the absence of an obstruction for intercepting the measurement ray at the Nth measurement end point, the rangefinder is controlled by the control switch to measure the Nth wall, so that the N-1th measurement end point of the N-1th wall is the Nth measurement starting point of the Nth wall, or The rangefinder also includes a ranging baffle. In response to the absence of an obstruction for intercepting the measuring ray at the Nth measurement end point, the rangefinder is assisted by the ranging baffle to measure the Nth wall, so that the N-1th measurement end point of the N-1th wall is the Nth measurement starting point of the Nth wall.

3. The method according to claim 1, characterized in that In response to the position of the Nth mapping end point being within a preset range of the first mapping start point, determining the Nth mapping end point as an end position point; In response to the position of the Nth mapping end point not being within a preset range of the first mapping start point, the Nth mapping end point is determined to be a non-ending position point.

4. The method according to claim 1, characterized in that: include: The measurement terminal is pre-configured with a drawing reference orientation; A mapping direction of the Nth wall is acquired based on the drawing reference orientation and a measurement direction of the Nth wall.

5. The method according to claim 1, characterized in that include: In response to taking any mapping wall as a target mapping wall, a mapping medium is added to the target mapping wall, and the mapping medium is added at any position on the target mapping wall, wherein the mapping medium is connected to at least one medium mapping wall, the medium mapping wall is located on the target mapping wall and is used to connect the mapping wall on either side of the mapping medium, the mapping medium corresponds to a physical medium on the target wall of the target space, the target wall is the wall corresponding to any mapping wall, and the medium mapping wall corresponds to a wall on either side of the physical medium on the target wall.

6. The method according to claim 5, characterized in that include: In response to obtaining a mapping distance of a target medium mapping wall and obtaining a selection of a target medium mapping wall, adjusting the position of the mapping medium on the target mapping wall according to the mapping distance of the target medium mapping wall; wherein the mapping distance of the target medium mapping wall is obtained by measuring the wall distance on the target side of the physical medium by the rangefinder in the target space.

7. A floor plan generating device, characterized in that: The device is applied to a measuring terminal, the measuring terminal is connected to a rangefinder, and the rangefinder is externally fixed to the measuring terminal, so that the ray direction of the rangefinder is the same as the forward direction of the display screen of the measuring terminal, and the rangefinder measures each wall in the target space in a sequential direction, so that the N-1th measurement end point of the N-1th wall is the Nth measurement starting point of the Nth wall. The device includes: A wall generation module 21, which is used to take the N-1th mapping end point of the N-1th mapping wall as the Nth mapping starting point, and obtain the Nth mapping end point according to the Nth mapping distance and the Nth mapping direction to generate the Nth mapping wall; wherein the Nth mapping distance is obtained by the Nth wall distance measured by the rangefinder in the target space, and the Nth mapping direction is obtained according to the measurement direction of the Nth wall obtained by the direction measurement device built into the measurement terminal; A judgment module 22 is used to judge whether the Nth mapping end point is an end position point; if so, jump to the acquisition module to execute 23; if not, jump to the apartment type generation module 24; An acquisition module 23 is used for, in response to obtaining that the Nth mapping end point is not the end position point, re-using the N+1th mapping wall as the Nth mapping wall, and returning to the wall generation module 21; The apartment type generating module 24, in response to obtaining the Nth mapping end point as the end position point, merges the Nth mapping end point with the first mapping starting point so that all the mapped walls form a closed plane apartment type diagram.

8. The device according to claim 7, characterized in that The judgment module 22 is further specifically configured to determine the Nth mapping end point as the end point in response to the position of the Nth mapping end point being within a preset range of the first mapping start point; as well as In response to the position of the Nth mapping end point not being within a preset range of the first mapping start point, the Nth mapping end point is determined to be a non-ending position point.

9. An electronic device, characterized in that: include: A memory, a processor, and a communication interface; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the floor plan generation method as described in any one of claims 1 to 6.

10. A non-transitory machine-readable storage medium, characterized in that: The non-transitory machine-readable storage medium stores executable code, and when the executable code is executed by a processor of an electronic device, the processor executes the floor plan generation method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • House type chart generation method, device and equipment based on image detection and storage medium

    CN110686648A

  • Modeling method for quickly constructing house type structure, electronic equipment and storage medium

    CN112837395A

  • Distance measuring module

    EP2698600A1