Floor plan processing method, device, readable storage medium and electronic device
By receiving the target body and filling mark input by the user and using the reference base map to determine the display elements in the preset area, the problem of cumbersome and low-precision element filling operations in floor plans in the existing technology is solved, and the effect of simplifying operations and improving accuracy is achieved.
Patent Information
- Application Number
- CN202111678447.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In the prior art, when filling elements such as doors and windows in a floor plan, manually dragging and adjusting the size is cumbersome and inaccurate, resulting in complex operations and low precision.
By receiving the target body and fill mark input by the user, the fill element is automatically displayed in the preset area, and the position and size information of the element are determined by the reference background map, which simplifies the operation process and improves accuracy.
It simplifies the operation process and improves the efficiency and accuracy of floor plan drawing. Users do not need to manually adjust the element size to ensure the accuracy of element position and size.
Smart Images

Figure CN114332299B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method, device, readable storage medium and electronic device for processing floor plans. Background Art
[0002] In the prior art, when drawing a floor plan based on a reference base map, it is sometimes necessary to fill in elements such as doors, windows, window lights, door lintels, and sliding doors on the wall. However, manually dragging and adjusting the size of the elements is rather cumbersome, and the size of the drawn elements is not accurate. How to provide a method for quickly and accurately filling in elements such as doors, windows, etc. on the wall has become a problem that needs to be solved urgently. Summary of the Invention
[0003] The purpose of the embodiments of the present application is to provide a method, device, readable storage medium and electronic device for processing floor plans, which can solve the problem of manually dragging and dropping to adjust the size of elements when filling elements such as doors and windows on the wall, which is cumbersome. In addition, the position and size of the filled elements can be adjusted by inputting commands, so that the size and position of the drawn elements such as doors and windows are more accurate.
[0004] In a first aspect, an embodiment of the present application provides a method for processing a floor plan, the processing method comprising: when displaying the floor plan, receiving a first input of a first target body and a fill identifier determined by a user; in response to the first input, displaying a fill element in a preset area of the first target body, the fill element being an element indicated by the fill identifier.
[0005] In the second aspect, an embodiment of the present application provides a floor plan processing device, the processing device including: a receiving unit for receiving a first input of a first target body and a fill identifier determined by a user when displaying the floor plan; a display unit for displaying a fill element in a preset area of the first target body in response to the first input, the fill element being an element indicated by the fill identifier.
[0006] In a third aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
[0007] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a floor plan processing device as provided in the second aspect above; and / or a readable storage medium as provided in the third aspect above.
[0008] In an embodiment of the present application, the floor plan processing method is performed by a floor plan processing device. Specifically, when displaying the floor plan, the processing device receives a first target object determined by a user and a first input regarding a fill indicator. Specifically, the first target object is a wall on which an element needs to be filled, and the fill indicator is used to indicate the element to be filled. Furthermore, in response to the first input, the processing device displays the element to be filled within a preset area of the first target object.
[0009] In the above process, the user only needs to identify the first object and the element to be filled. The processing device automatically displays the element to be filled within a preset area of the first object, eliminating the need for the user to manually adjust the size of the element by dragging it. This simplifies the operation process and improves the user experience. Furthermore, the preset area is determined by the processing device based on the positional information of the element to be filled within the object corresponding to the first object in the reference base map, ensuring the accuracy of the size of the filled element.
[0010] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 One of the flow charts of the method for processing a floor plan in an embodiment of the present application is shown;
[0012] Figure 2 The second flowchart of the method for processing a floor plan in an embodiment of the present application is shown;
[0013] Figure 3 The third flowchart of the method for processing a floor plan in an embodiment of the present application is shown;
[0014] Figure 4 A partial schematic diagram of a reference base map corresponding to a floor plan in an embodiment of the present application is shown;
[0015] Figure 5 FIG4 is a flowchart of a method for processing a floor plan in an embodiment of the present application;
[0016] Figure 6 FIG5 shows a fifth flow chart of a method for processing a floor plan in an embodiment of the present application;
[0017] Figure 7 FIG6 shows a sixth flow chart of a method for processing a floor plan in an embodiment of the present application;
[0018] Figure 8 A schematic block diagram of a floor plan processing device in an embodiment of the present application is shown;
[0019] Figure 9 A schematic block diagram of an electronic device in an embodiment of the present application is shown;
[0020] Figure 10 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0021] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0022] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0023] The following, in combination with the accompanying drawings, describes in detail the floor plan processing method, device, readable storage medium and electronic device provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0024] like Figure 1 As shown, in one embodiment, a method for processing a floor plan is proposed, and the processing method includes:
[0025] Step S102: When displaying a floor plan, receiving a first target object and a first input of a fill mark determined by a user;
[0026] Step S104: In response to the first input, a filling element is displayed in a preset area of the first object, where the filling element is the element indicated by the filling mark.
[0027] It should be noted that the execution subject of the floor plan processing method proposed in this embodiment may be a floor plan processing device. In order to more clearly describe the floor plan processing method proposed in this embodiment, the method in the following embodiment is exemplified by taking the execution subject of the floor plan processing method as the floor plan processing device.
[0028] In this embodiment, the first target body is a wall determined by the user on which an element needs to be filled, the fill identifier is used to indicate the element that needs to be filled, the first input includes a first sub-input and a second sub-input, the first sub-input is used to determine the first target body, and the second sub-input is used to determine the fill identifier. Specifically, the user can determine the first input by clicking the first target body and the fill identifier with the mouse.
[0029] Specifically, the first input is specifically the user's touch input on the interface displaying the floor plan. The touch input can be specifically a single-click input, a double-click input, a long press input, a preset track sliding input, etc., and is not specifically limited here.
[0030] Specifically, when the electronic device displays a floor plan, it indicates that the user is drawing the floor plan. At this time, the processing device receives the user's first input of the determined first target body and the filling mark.
[0031] Furthermore, the processing device responds to the first input and determines the first target body and the filling mark on which the element needs to be filled according to the first input, and determines the element to be filled according to the filling mark.
[0032] Furthermore, the processing device determines a preset area according to the first target body and the elements to be filled, and displays the filling elements in the preset area of the first target body.
[0033] Exemplarily, after the user clicks on the first wall (first sub-input) in the floor plan drawing interface with the mouse and clicks on the identification symbol representing the window element (second sub-input), the server outputs the first input, the processing device detects and receives the first input, and determines based on the first input that the target wall on which the element needs to be filled is the first wall, and the element to be filled is the window element, and then displays the window element in a specific area on the first wall based on the position information of the first wall and the window element.
[0034] The floor plan processing method proposed in this embodiment is that the user only needs to determine the first input including the first target body and the fill identifier, and the processing device can automatically display the elements that need to be filled in the preset area of the first target body, without the user having to adjust the size of the fill element display area by manually dragging, thereby simplifying the operation process, improving the efficiency of drawing the floor plan, and enhancing the user experience.
[0035] Combine Figure 1 ,like Figure 2 As shown, in a possible embodiment, before displaying the filling element in the preset area of the first target body, the processing method further includes:
[0036] Step S202: establishing a correspondence between the reference base map and the floor plan, and determining a second target object corresponding to the first target object in the reference base map according to the correspondence;
[0037] Step S204: Determine a preset area of the first target according to the second target.
[0038] In this embodiment, the reference base map is a reference map for the user to draw the floor plan. The position information and size information of all elements in the floor plan can be determined based on the reference base map.
[0039] Specifically, the processing device obtains a reference base map and establishes a correspondence between the reference base map and the floor plan. Then, based on the correspondence, a second target body in the reference base map that corresponds to the first target body is determined. It can be understood that the second target body indicates the same type of element as the first target body, and is specifically used to indicate a wall element in the reference base map. Specifically, the elements in the reference base map correspond one-to-one to the elements in the floor plan. By establishing an association between the reference base map and the floor plan, the position information and size information of all elements in the floor plan can be clarified, so that the user can quickly determine the preset area of the first target wall based on the position information and size information. Furthermore, other elements can be determined based on the above position information and size information, for example, drawing a refrigerator, sofa, TV, etc.
[0040] Furthermore, a preset area on the first target object is determined according to the position information and size information of the filling elements on the second target object in the reference base image.
[0041] In this embodiment, by establishing a correspondence between the reference base map and the floor plan, a second target body in the reference base map that has a correspondence with the first target body is determined, and based on the position information and size information of the second target body in the reference base map, the preset area on the first target body is accurately determined.
[0042] Combine Figure 2 ,like Figure 3 As shown, in a possible embodiment, determining the preset area of the first target object according to the second target object specifically includes:
[0043] Step S302: determining position information of an avoidance element at a first preset distance from a second target;
[0044] Step S304: Determine a preset area according to the position information of the avoidance element.
[0045] Among them, the preset area and the avoidance elements are set separately.
[0046] In this embodiment, the avoidance element is used to indicate an element located near the first target in the reference base image, such as a wardrobe, a sofa, a refrigerator, etc. placed near a wall.
[0047] Specifically, the processing device determines an element at a first preset distance from the second target as an avoidance element based on the reference background map, determines position information of the avoidance element, and then determines a preset area of the first target based on the position information of the avoidance element.
[0048] It should be noted that the first preset distance is set according to the actual situation of the floor plan.
[0049] For example, Figure 4 As shown, it is a partial schematic diagram of the reference base map corresponding to the floor plan. In this schematic diagram, the wall indicated by 306 is the second target body corresponding to the first target body, the window indicated by 308 is the element corresponding to the filling element, and the bedside table indicated by 310 is the avoidance element with a first preset distance from the second target body. When determining the preset area of the first target, it is necessary to reserve a distance on the wall according to the position information of the avoidance element 310 (bedside table) to avoid the preset area from overlapping with the area where the avoidance element is located, thereby ensuring the accuracy of the preset area of the determined first target body.
[0050] It can be understood that the above-mentioned preset area and the above-mentioned avoidance elements are separately set, that is, the preset area does not overlap with the area where the avoidance elements are located, which ensures that the drawn floor plan can accurately express the specific structure of the target house.
[0051] Combine Figure 2 ,like Figure 5 As shown, in a possible embodiment, determining the preset area of the first target object according to the second target object specifically includes:
[0052] Step S402: determining the position information of a target element in the second target body, where the target element corresponds to the filling element;
[0053] Step S404: Determine a preset area according to the location information of the target element.
[0054] The location information includes the starting location information and the ending location information of the target element.
[0055] In this embodiment, the target element is an element corresponding to the fill element indicated by the fill marker in the reference background image, for example, a door, a French window, a closet, etc. on a wall.
[0056] Specifically, the processing device determines the position information of the target element on the second target body based on the reference base map, and then determines the preset area of the first target body based on the position information of the target element. Specifically, all elements in the reference base map correspond one-to-one to the elements in the floor plan. There is a target element corresponding to the filling element on the second target. According to the position information of the target element on the second target body, the position information of the filling element on the first target body can be accurately determined, and then the preset area of the first target body can be accurately determined based on the position information of the filling element on the first target body.
[0057] It should be noted that the above position information includes the starting position information and the ending position information of the target element. The position of the filling element on the first target body, that is, the preset area of the first target body, can be accurately determined based on the starting position information and the ending position information.
[0058] In this embodiment, the processing device can directly determine the preset area of the first target body based on the position information of the target element corresponding to the element indicated by the fill mark in the reference base map, and then display the fill element in the preset area of the first target body. The user does not need to determine the preset area by manual dragging, which simplifies the operational process of drawing the floor plan.
[0059] Combine Figure 1 ,like Figure 6 As shown, in a possible embodiment, before displaying the fill element in the preset area of the first target body, the processing method further includes: determining the preset area, and the step of determining the preset area specifically includes:
[0060] Step S502: Determine parameter information of the first target object, and determine a preset area based on the parameter information;
[0061] The parameter information includes the length of the inner wall of the first target body, and the preset area is an area at a second preset distance from the inner wall.
[0062] In the floor plan processing method proposed in this embodiment, before displaying the fill element in the preset area of the first target body, the processing device also needs to determine the preset area.
[0063] In this embodiment, the parameter information of the first target is the size information of the first target, including the length of the inner wall of the first target, etc. The preset area is an area at a certain distance from the inner wall of the first target.
[0064] Specifically, the processing device determines the parameter information of the first target body by referring to the size information and position information of an object corresponding to the first target body in the reference base map, and determines the length of the inner wall of the first target body based on the parameter information, and then determines the second preset distance based on the filling mark, that is, the distance between the preset area and the inner wall of the first target body, and finally determines the preset area based on the length of the inner wall of the first target body and the second preset distance.
[0065] It should be noted that the aforementioned second preset distance is related to the type of filler element. Different types of filler elements fill different preset areas on the first object. Specifically, the user pre-sets the second preset distance in the processing device based on the type of filler element. Generally speaking, when the filler element is a window, the second preset distance is preferably 5cm to 10cm, and when the filler element is a door, the second preset distance is preferably 10cm to 15cm.
[0066] In this embodiment, the processing device can determine the preset area of the first target body based on the parameter information of the first target body and the type of filling element, and then display the filling element within the preset area of the first target body. The user does not need to determine the preset area by manual dragging, which simplifies the operational process of drawing the floor plan.
[0067] Combine Figure 1 ,like Figure 7 As shown, in a possible embodiment, after displaying the filling element in the preset area of the first target body, the processing method further includes:
[0068] Step S602: displaying an operation mark at the end of the filling element;
[0069] Step S604: Based on the user's input of the operation identifier, the display area of the filling element is adjusted.
[0070] In the floor plan processing method proposed in this embodiment, after the filling element is displayed in the preset area of the first target body, the processing device can adjust the display area of the filling element based on the user's input of the operation identifier.
[0071] Specifically, an operation mark is provided at the end of the filling element, and the operation mark is displayed in the form of an endpoint at the end of the display area of the filling element. The user can adjust the above-mentioned display area by dragging the endpoint with the mouse, thereby realizing the change of the display area of the filling element on the first target body according to user needs, so that the drawing of the floor plan can meet the needs of the user.
[0072] Furthermore, an input box is provided in the floor plan drawing interface, which is used for users to input instructions or values. The processing device can adjust the display area of the filling elements according to the instructions or values input by the user, thereby adjusting the display area of the filling elements on the first target body by inputting instructions or values according to user needs, thereby improving the drawing accuracy.
[0073] like Figure 8 As shown, in one embodiment, a floor plan processing device 700 is proposed, and the floor plan processing device 700 includes: a receiving unit 702, for receiving a first input of a first target body and a fill identifier determined by a user when displaying the floor plan; a display unit 704, for displaying a fill element in a preset area of the first target body in response to the first input, and the fill element is an element indicated by the fill identifier.
[0074] In this embodiment, the first target body is a wall determined by the user on which an element needs to be filled, the fill identifier is used to indicate the element that needs to be filled, and the first input includes a first sub-input and a second sub-input. The first sub-input is used to determine the first target body, and the second sub-input is used to determine the fill identifier. Specifically, the user can determine the first input by clicking the first target body and the fill identifier with the mouse.
[0075] Specifically, the first input is specifically the user's touch input on the interface displaying the floor plan. The touch input can be specifically a single-click input, a double-click input, a long press input, a preset track sliding input, etc., and is not specifically limited here.
[0076] Specifically, when the electronic device displays a floor plan, it indicates that the user is drawing the floor plan. At this time, the receiving unit 702 receives the user's first input of the determined first target body and the filling mark.
[0077] Furthermore, the floor plan processing device 700 also includes a processing unit 706, which is used to determine the first target body and the filling mark on which the elements need to be filled based on the first input, determine the elements to be filled based on the filling mark, and determine a preset area based on the first target body and the elements to be filled, and display the above-mentioned filling elements in the preset area of the first target body.
[0078] Furthermore, the display unit 704 displays an element corresponding to the fill mark in a preset area of the first object in response to the first input.
[0079] For example, after the user clicks on the first wall (first sub-input) in the floor plan drawing interface with the mouse and clicks on the identification symbol representing the window element (second sub-input), the server outputs the first input, the receiving unit 702 detects and receives the first input, the processing unit 706 determines based on the first input that the target wall on which the element needs to be filled is the first wall, and the element to be filled is the window element, and the display unit 704 displays the window element in a specific area on the first wall based on the position information of the first wall and the window element.
[0080] In the floor plan processing device 700 proposed in this embodiment, when the user determines the first input including the first target body and the fill mark, the display unit 704 can automatically display the elements to be filled in the preset area of the first target body, without the user having to adjust the size of the display area of the fill element by manually dragging, thereby simplifying the operation process, improving the efficiency of drawing the floor plan, and enhancing the user experience.
[0081] In addition, the floor plan processing device 700 proposed in this embodiment may also have the following additional technical features:
[0082] In a possible embodiment, before displaying the fill element in the preset area of the first target body, the processing unit 706 is further used to establish a correspondence between the reference base map and the floor plan, and determine a second target body corresponding to the first target body in the reference base map based on the correspondence; and determine the preset area of the first target body based on the second target body.
[0083] In this embodiment, the reference base map is a reference map for the user to draw the floor plan. The position information and size information of all elements in the floor plan can be determined based on the reference base map.
[0084] Specifically, the reference base map is obtained by the receiving unit 702, and the corresponding relationship between the reference base map and the floor plan is established by the processing unit 706. The processing unit 706 determines a second target body in the reference base map that has a corresponding relationship with the first target body based on the corresponding relationship. It can be understood that the second target body indicates the same type of element as the first target body, and is specifically used to indicate the wall elements in the reference base map. Specifically, the elements in the reference base map correspond one-to-one with the elements in the floor plan. By establishing an association relationship between the reference base map and the floor plan, the position information and size information of all elements in the floor plan can be clarified, so that the user can quickly determine the preset area of the first target wall based on the position information and size information. Furthermore, other elements can be drawn based on the above position information and size information, for example, drawing a refrigerator, sofa, TV, etc.
[0085] Furthermore, the processing unit 706 is further configured to determine a preset area on the first object according to the position information and size information of the filling element on the second object in the reference base image.
[0086] In this embodiment, the processing unit 706 establishes a correspondence between the reference base map and the floor plan, and determines a second target body in the reference base map that corresponds to the first target body, and then accurately determines the preset area on the first target body based on the position information and size information of the second target body in the reference base map.
[0087] In a possible embodiment, in the step of determining a preset area of a first target body based on a second target body, the processing unit 706 is used to determine the position information of an avoidance element that has a first preset distance from the second target body; and determine the preset area based on the position information of the avoidance element; wherein the preset area is set separately from the avoidance element.
[0088] In this embodiment, the avoidance element is used to indicate an element placed near the first target in the reference base map, such as a wardrobe, a sofa, a refrigerator, etc. placed near a wall.
[0089] Specifically, the processing unit 706 is used to determine an element with a first preset distance from the second target body as an avoidance element based on the reference background map, and determine the position information of the avoidance element, and then determine the preset area of the first target body based on the position information of the avoidance element.
[0090] It should be noted that the first preset distance is set according to the actual situation of the floor plan.
[0091] For example, Figure 4 As shown, it is a partial schematic diagram of the reference base map corresponding to the floor plan. In this schematic diagram, the wall indicated by 306 is the second target body corresponding to the first target body, the window indicated by 308 is the element corresponding to the filling element, and the bedside table indicated by 310 is the avoidance element with a first preset distance from the second target body. When determining the preset area of the first target, it is necessary to reserve a distance on the wall according to the position information of the avoidance element 310 (bedside table) to avoid the preset area from overlapping with the area where the avoidance element is located, thereby ensuring the accuracy of the preset area of the determined first target body.
[0092] It can be understood that the above-mentioned preset area and the above-mentioned avoidance elements are set separately, that is, the preset area and the area where the avoidance elements are located do not overlap, which ensures that the drawn floor plan can accurately express the specific structure of the target house.
[0093] In a possible embodiment, in the step of determining a preset area of a first target body based on a second target body, the processing unit 706 is used to determine the position information of a target element in the second target body, where the target element corresponds to a filling element; and determine the preset area based on the position information of the target element; wherein the position information includes the starting position information and the ending position information of the target element.
[0094] In this embodiment, the target element refers to an element corresponding to the fill element indicated by the fill marker in the reference background image, such as a door, a French window, a closet, etc. on a wall.
[0095] Specifically, the processing unit 706 is used to determine the position information of the target element on the second target body based on the reference base map, and then determine the preset area of the first target body based on the position information of the target element. Specifically, all elements in the reference base map correspond one-to-one to the elements in the floor plan. There is a target element corresponding to the filling element on the second target. Based on the position information of the target element on the second target body, the position information of the filling element on the first target body can be accurately determined, and then the preset area of the first target body can be accurately determined based on the position information of the filling element on the first target body.
[0096] It should be noted that the above position information includes the starting position information and the ending position information of the target element. The position of the filling element on the first target body, that is, the preset area of the first target body, can be accurately determined based on the starting position information and the ending position information.
[0097] In this embodiment, the processing unit 706 can directly determine the preset area of the first target body based on the position information of the target element corresponding to the element indicated by the fill marker in the reference base map, and then display the fill element in the preset area of the first target body. The user does not need to determine the preset area by manual dragging, which simplifies the operational process of drawing the floor plan.
[0098] In a possible embodiment, before displaying the fill element in the preset area of the first target body, the processing unit 706 is further used to determine the preset area, and the step of determining the preset area specifically includes: determining parameter information of the first target body, and determining the preset area based on the parameter information; wherein the parameter information includes the length of the inner wall of the first target body, and the preset area is an area at a second preset distance from the inner wall.
[0099] In the floor plan processing method proposed in this embodiment, before displaying the fill element in the preset area of the first target body, the processing unit 706 needs to determine the preset area.
[0100] In this embodiment, the parameter information of the first target is the size information of the first target, including the length of the inner wall of the first target, etc. The preset area is an area at a certain distance from the inner wall of the first target.
[0101] Specifically, the processing unit 706 determines the parameter information of the first target body by referring to the size information and position information of an object corresponding to the first target body in the base map, and determines the length of the inner wall of the first target body based on the parameter information, and then determines the second preset distance based on the filling mark, that is, the distance between the preset area and the inner wall of the first target body, and finally determines the preset area based on the length of the inner wall of the first target body and the second preset distance.
[0102] It should be noted that the aforementioned second preset distance is related to the type of filler element. Different types of filler elements fill different preset areas on the first object. Specifically, the user pre-sets the second preset distance in the processing device based on the type of filler element. Generally speaking, when the filler element is a window, the second preset distance is preferably 5cm to 10cm, and when the filler element is a door, the second preset distance is preferably 10cm to 15cm.
[0103] In this embodiment, the processing unit 706 can determine the preset area of the first target body based on the parameter information of the first target body and the type of filling element, and then display the filling element within the preset area of the first target body. The user does not need to determine the preset area by manual dragging, which simplifies the operational process of drawing the floor plan.
[0104] In a possible embodiment, after the filling element is displayed in the preset area of the first target body, the display unit 704 is further used to display an operation identifier at the end of the filling element; the processing unit 706 is further used to adjust the display area of the filling element based on the user's input of the operation identifier.
[0105] In the floor plan processing method proposed in this embodiment, after the filling element is displayed in the preset area of the first target body, the processing unit 706 can adjust the display area of the filling element based on the user input in the operation identifier.
[0106] Specifically, an operation mark is provided at the end of the filling element, and the operation mark is displayed in the form of an endpoint at the end of the display area of the filling element. The user can adjust the above-mentioned display area by dragging the endpoint with the mouse, thereby realizing the change of the display area of the filling element on the first target body according to user needs, so that the drawing of the floor plan can meet the needs of the user.
[0107] Furthermore, an input box is provided in the floor plan drawing interface, which is used for users to input instructions or values. The processing unit 706 can adjust the display area of the filling elements according to the instructions or values input by the user, thereby adjusting the display area of the filling elements on the first target body according to user needs, thereby improving the drawing accuracy.
[0108] In an embodiment of the present application, a user can request an initial three-dimensional scene of a three-dimensional model from a server through an electronic device, and receive second image data associated with the initial three-dimensional scene transmitted back by the server, further simplifying the resource usage of the electronic device.
[0109] In the embodiment of the present application, the processing device of the floor plan can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be an electronic device or a device other than an electronic device. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0110] The floor plan processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0111] The floor plan processing device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be repeated here.
[0112] In one embodiment, a readable storage medium is provided. The readable storage medium stores a program or instructions. When executed by a processor, the program or instructions implement the steps of the method for processing a liquid floor plan as described in the above embodiment. Therefore, all the beneficial technical effects of the embodiment are achieved, and further details are omitted here.
[0113] like Figure 9 As shown, in one embodiment, an electronic device 800 is proposed, including the floor plan processing device 700 and / or the readable storage medium 802 proposed in the above embodiment, and thus has all the beneficial technical effects of the floor plan processing device 700 and / or the readable storage medium 802, which will not be further elaborated here.
[0114] Figure 10 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0115] The electronic device 900 includes but is not limited to components such as a radio frequency unit 901 , a network module 902 , an audio output unit 903 , an input unit 904 , a sensor 905 , a display unit 906 , a user input unit 907 , an interface unit 908 , a memory 909 , and a processor 910 .
[0116] Those skilled in the art will understand that the electronic device 900 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0117] The processor 910 is configured to receive a first input of a first target object and a fill mark determined by a user when displaying a floor plan;
[0118] The processor 910 displays a fill element in a preset area of the first object in response to the first input, where the fill element is an element indicated by the fill marker.
[0119] In the embodiment of the present application, the electronic device only needs to receive the user's operation input, and the processor 910 can automatically display the elements that need to be filled in the preset area of the first target body, without the user having to adjust the size of the display area of the filled elements by manually dragging, thereby simplifying the operation process, improving the efficiency of drawing floor plans, and enhancing the user experience.
[0120] Furthermore, the processor 910 is configured to establish a correspondence between the reference base map and the floor plan, and determine a second target object corresponding to the first target object in the reference base map according to the correspondence;
[0121] The processor 910 determines a preset area of the first target according to the second target.
[0122] In an embodiment of the present application, a correspondence is established between the reference base map and the floor plan to determine a second target body in the reference base map that corresponds to the first target body. Based on the position information and size information of the second target body in the reference base map, the preset area on the first target body is accurately determined.
[0123] Furthermore, the processor 910 is configured to determine position information of an avoidance element at a first preset distance from the second target object;
[0124] The processor 910 is configured to determine a preset area based on the position information of the avoidance element.
[0125] Among them, the preset area and the avoidance elements are set separately.
[0126] In the embodiment of the present application, the preset area and the avoidance element are separately set, that is, the preset area cannot include the area where the avoidance element is located, ensuring that the drawn floor plan can accurately express the specific structure of the target house.
[0127] It should be understood that in an embodiment of the present application, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.
[0128] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or inputs and a second storage area for storing data, wherein the first storage area may store an operating system, applications or inputs required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0129] Processor 910 may include one or more processing units. Optionally, processor 910 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 910.
[0130] An embodiment of the present application also provides a readable storage medium, on which a program or input is stored. When the program or input is executed by a processor, the various processes of the above-mentioned three-dimensional scene display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0131] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0132] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or inputs to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, they will not be repeated here.
[0133] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0134] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the embodiment of the floor plan processing method as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0135] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0136] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several inputs for enabling an electronic device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0137] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A method for processing a floor plan, wherein the method is used to draw the floor plan, and wherein: The processing method comprises: When the user draws the floor plan, receiving a first target body and a first input of a fill mark determined by the user, wherein the first target body includes a wall determined by the user to be filled with elements on the floor plan; In response to the first input, displaying a filling element in a preset area of the first object, the filling element being the element indicated by the filling mark; Before displaying the fill element in the preset area of the first object, the method further includes: Establishing a correspondence between a reference base map and the floor plan, and determining a second target object in the reference base map corresponding to the first target object based on the correspondence; and determining the preset area of the first target according to the second target, The second target body and the first target body indicate the same element type, the reference base map corresponds to the elements in the floor plan one-to-one, and the position information and size information of all elements in the floor plan can be determined based on the reference base map; or before displaying the fill element in the preset area of the first target body, the method further includes: Determining parameter information of the first target object, and determining the preset area according to the parameter information; The parameter information includes the length of the inner wall of the first target body, and the preset area is an area at a second preset distance from the inner wall.
2. The method for processing floor plan according to claim 1, characterized in that: The determining the preset area of the first target according to the second target specifically includes: Determining position information of an avoidance element at a first preset distance from the second target object; Determining the preset area according to the position information of the avoidance element; Wherein, the preset area and the avoidance element are set separately.
3. The method for processing floor plan according to claim 1, characterized in that: The determining the preset area of the first target according to the second target specifically includes: Determining position information of a target element in the second target volume, the target element corresponding to the filling element; Determining the preset area according to the position information of the target element; The position information includes the starting position information and the ending position information of the target element.
4. The method for processing floor plan according to claim 1, characterized in that: The second preset distance is related to the type of the filling element.
5. The method for processing a floor plan according to any one of claims 1 to 4, characterized in that: After displaying the fill element in the preset area of the first object, the method further includes: Displaying an operation mark at an end of the filling element; Based on the user's input of the operation identifier, the display area of the filling element is adjusted.
6. A floor plan processing device, the processing device is used to draw the floor plan, characterized in that: include: a receiving unit configured to receive a first target body and a first input of a fill mark determined by the user when the user draws the floor plan, wherein the first target body includes a wall determined by the user to be filled with elements on the floor plan; a display unit, configured to display a filling element in a preset area of the first object in response to the first input, the filling element being the element indicated by the filling mark; a processing unit, before displaying the fill element in the preset area of the first object, the processing unit being configured to establish a correspondence between a reference base map and the floor plan, determine a second object in the reference base map corresponding to the first object based on the correspondence, and determine the preset area of the first object based on the second object; Or before displaying the filling element in the preset area of the first object, the processing unit determines parameter information of the first object and determines the preset area according to the parameter information, The second target body and the first target body indicate the same element type, the reference base map corresponds to the elements in the floor plan one by one, and the processing unit can determine the position information and size information of all elements in the floor plan according to the reference base map, and The parameter information includes the length of the inner wall of the first target body, and the preset area is an area at a second preset distance from the inner wall.
7. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method for processing a floor plan according to any one of claims 1 to 5 are implemented.
8. An electronic device, characterized in that: include: The floor plan processing device according to claim 6; and / or The readable storage medium according to claim 7.
Citation Information
Patent Citations
Floor plan identification method and device and electronic equipment
CN111798340A