[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111985022A - Processing method and device for on-line decoration, electronic equipment and storage medium - Google Patents

Processing method and device for on-line decoration, electronic equipment and storage medium Download PDF

Info

Publication number
CN111985022A
CN111985022A CN202010583427.4A CN202010583427A CN111985022A CN 111985022 A CN111985022 A CN 111985022A CN 202010583427 A CN202010583427 A CN 202010583427A CN 111985022 A CN111985022 A CN 111985022A
Authority
CN
China
Prior art keywords
space
furniture
wall
decoration
house
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010583427.4A
Other languages
Chinese (zh)
Other versions
CN111985022B (en
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Urban Network Neighbor Information Technology Co Ltd
Original Assignee
Beijing Urban Network Neighbor Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Urban Network Neighbor Information Technology Co Ltd filed Critical Beijing Urban Network Neighbor Information Technology Co Ltd
Priority to CN202010583427.4A priority Critical patent/CN111985022B/en
Publication of CN111985022A publication Critical patent/CN111985022A/en
Application granted granted Critical
Publication of CN111985022B publication Critical patent/CN111985022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Computer Graphics (AREA)
  • Architecture (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a processing method and device for on-line decoration, electronic equipment and a storage medium. The method comprises the following steps: acquiring modeling data of a target house; building a house object of a target house according to the modeling data; the house object is a three-dimensional house space established according to the modeling data, and the house object at least comprises a space object; aiming at least one space object in the house objects, obtaining decoration data of the at least one space object according to the space attribute of the at least one space object, and displaying a decoration model object corresponding to the decoration data in the at least one space object to obtain an on-line decoration result of a target house; the space attribute at least comprises a space type of at least one space object, the decoration data comprises hardwear data and softwear data, and the softwear data comprises furniture layout data. Therefore, full-automatic house decoration is realized, a user can quickly and accurately sense or display different decoration styles on line, and the user experience is improved.

Description

Processing method and device for on-line decoration, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of home furnishing, in particular to a processing method and device for on-line decoration, electronic equipment and a storage medium.
Background
With the rapid development of the home decoration industry, the house decoration requirements are more and more diversified. As general consumers, there is a demand for intuitive feeling of different decoration styles, and as businesses, there is a demand for quick and intuitive display of on-site display effects of various furniture.
But as ordinary consumers, the planar drawing is difficult to understand when buying a house or decorating and designing, the relation of the whole space of the house source is difficult to embody by the paper effect drawing, and a user can only perceive the decoration style, the space arrangement, the furniture arrangement and the like of the house source after finishing decoration of the house source. After finishing house source decoration, if the expectation of a user cannot be met, the decoration is time-consuming and resource-consuming, and the current design style cannot be adjusted, so that the user expectation is very low, the requirements of the user cannot be met, and the user experience is low. For a merchant, when the merchant displays decoration effects of different furniture to a user, the merchant can only display the decoration effects in entity forms such as sample plates, and the like, and it is difficult to flexibly adjust the displayed furniture entities and decoration styles, so that the display effect and flexibility of the merchant are affected.
Disclosure of Invention
The embodiment of the invention provides a processing method and device for on-line decoration, electronic equipment and a storage medium, which are used for solving the problems that full-automatic decoration of various houses is difficult to realize and the decoration effect of each space in the houses is difficult to preview on line.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for obtaining modeling data of a target house, where the modeling data includes at least one of house layout data and panoramic data, and the house layout includes at least one of a 2D house layout and a 3D house layout;
building a house object of the target house according to the modeling data; the house object is a three-dimensional house space established according to the modeling data, and the house object at least comprises a space object;
aiming at least one space object in the house objects, obtaining decoration data of the at least one space object according to the space attribute of the at least one space object, and displaying a decoration model object corresponding to the decoration data in the at least one space object to obtain an on-line decoration result of the target house;
the space attribute at least comprises a space type of the at least one space object, the decoration data comprises hardwear data and softwear data, and the softwear data comprises furniture layout data.
Optionally, the step of obtaining, for at least one space object in the house objects, decoration data of the at least one space object according to a space attribute of the at least one space object, and displaying a decoration model object corresponding to the decoration data in the at least one space object to obtain an on-line decoration result of the target house includes:
aiming at least one space object in the house objects, acquiring a space attribute of the at least one space object;
acquiring furniture layout data of the at least one space object according to the space attributes, wherein the furniture layout data comprises at least one furniture model object and position information corresponding to the furniture model object;
and displaying the furniture model object in the space object according to the position information to obtain an on-line decoration result of the target house.
Optionally, the spatial attribute at least includes information on a wall object and a size of the at least one spatial object in the three-dimensional room space, and the step of obtaining the furniture layout data of the at least one spatial object according to the spatial attribute includes:
and generating furniture layout data of the at least one space object according to the wall object and the size information.
Optionally, in a case that the space object is the restaurant object, the size information includes a first side length and a second side length of the restaurant object, and the generating of the furniture layout data of the at least one space object according to the wall object and the size information includes:
acquiring a furniture model object matched with the first side length and the second side length of the restaurant object and a furniture size of the furniture model object;
obtaining a target wall object for the furniture model object according to the wall type of the wall object;
and generating the position information of the furniture model object by adopting the furniture size and the target wall object.
Optionally, for a restaurant object in the space object, the furniture model object includes at least one of a table model object, a dining chair model object and a lighting decoration model object, and the step of presenting the furniture model object in the space object according to the position information includes:
displaying at least one of the table model object, the dining chair model object and the lighting model object in the restaurant object according to the position information;
and if the length of the dining table model object is greater than or equal to a preset length threshold value, the position relation between the dining table model object and the lamp decoration model object is a geometric center alignment relation.
Optionally, in a case that the space object is the toilet object, the wall objects at least include a first wall object and a second wall object, the first wall object at least includes a door body object, the size information includes a first side length of the door body object, and a second side length of the first wall object and a third side length of the second wall object, and the step of generating the furniture layout data of the at least one space object according to the wall objects and the size information includes:
calculating a moving line space of the toilet object according to the door body object and the first side length of the door body object;
obtaining a target decoration space of the toilet object according to the third side length of the second wall object and the line moving space;
acquiring a furniture model object matched with the second side length of the first wall object and the third side length of the second wall object;
and matching the furniture model object with the target decoration space according to preset decoration conditions to obtain the position information of the furniture model object.
Optionally, in a case that the space object is the kitchen object, the wall object includes an access wall object, the access wall object includes at least a door object, and the step of generating the furniture layout data of the at least one space object according to the wall object and the size information includes:
if the kitchen object comprises an access wall object and the side length of the access wall object is greater than or equal to a preset length threshold, extending the side length of the door body object to the interior of the kitchen object until the distance between the extended area and the wall object opposite to the door body object is equal to a preset distance threshold, stopping extending, and taking the extended area as a moving line space;
taking the region of the kitchen object except the line moving space as a decoration space of the kitchen object, and taking a wall object corresponding to the decoration space as a decoration wall object;
acquiring a furniture model object matched with the side length of the decoration wall object;
and matching the furniture model object with the decoration wall body object according to a preset decoration condition to obtain the position information of the furniture model object.
Optionally, in a case that the space object is the kitchen object, the wall object includes a closed wall object, the size information includes a side length of the wall object, and the step of generating the furniture layout data of the at least one space object according to the wall object and the size information includes:
taking a closed wall object with the largest side length in the kitchen objects as a target wall object;
matching the target wall object with other wall objects to obtain at least one decoration wall object of the kitchen object;
calculating a decoration space matched with the decoration wall body object according to a preset decoration threshold value;
acquiring a furniture model object matched with the side length of the decoration wall object;
and matching the furniture model object with the decoration wall body object according to a preset decoration condition to obtain the position information of the furniture model object.
Optionally, in a case that the space object is the living room object, the size information includes a side length of the wall object, and the step of generating furniture layout data of the at least one space object according to the wall object and the size information includes:
obtaining a target wall object of the living room object according to the wall type of the wall object and the side length of the wall object;
acquiring a furniture model object matched with the side length of the target wall object;
and matching the furniture model object with the target wall object according to preset decoration conditions to obtain the position information of the furniture model object.
Optionally, the step of obtaining furniture layout data of the at least one spatial object according to the spatial attribute includes:
determining whether a preset space object for specially laying out furniture model objects exists in the room-entering space object according to the space attribute aiming at the room-entering space object in the at least one space object;
under the condition that the preset space object exists, acquiring the furniture layout data according to the preset space object;
and under the condition that the preset space object does not exist, acquiring the position information of the existing object in the entrance space object, and acquiring the furniture layout data at least according to the space attribute and the position information of the existing object.
Optionally, the step of obtaining furniture layout data of the at least one spatial object according to the spatial attribute includes:
for a balcony object of the at least one space object, acquiring at least one furniture model object for layout in the balcony object according to the space attribute;
acquiring the position information of the layout of each furniture model object in the balcony object at least according to the space attribute;
And acquiring the furniture layout data according to the acquired furniture model object and the acquired position information.
Optionally, the step of obtaining furniture layout data of the at least one spatial object according to the spatial attribute includes:
aiming at a bedroom object in the at least one space object, acquiring a plurality of furniture model objects for layout in the bedroom object according to the space attribute;
acquiring the position information of the layout of each furniture model object in the bedroom object at least according to the space attribute;
and acquiring the furniture layout data according to the acquired furniture model object and the acquired position information.
Optionally, the spatial attribute further includes size information of a region of the at least one spatial object under the three-dimensional room space, at least one of window information of a region of a window object included in the at least one spatial object under the three-dimensional room space, and after the step of obtaining the spatial attribute of the at least one spatial object for the at least one spatial object of the room objects, the method further includes:
setting an indoor light object of the at least one space object according to the size information, wherein the indoor light object is used for simulating light rays generated by an indoor light source;
and/or setting an outdoor light object of the window object according to the window information, wherein the outdoor light object is used for simulating light rays generated by an outdoor light source.
Optionally, the spatial attribute further includes size information of an area of the ceiling object under the three-dimensional room space, which is included in the at least one spatial object, and after the step of obtaining the spatial attribute of the at least one spatial object for the at least one of the room objects, the method further includes:
determining down lamp position data of the at least one space object according to the space attribute;
and in the at least one space object, setting a down lamp object according to the down lamp position data, wherein the down lamp object is used for simulating and generating supplementary light.
Optionally, the step of obtaining furniture layout data of the at least one spatial object according to the spatial attribute includes:
and acquiring furniture layout data of the space object according to the space attribute of the space object and a preset collision rule aiming at each space object in the at least one space object.
Optionally, the furniture layout data includes a plurality of furniture styles, a furniture model object in each furniture style, and position information corresponding to the furniture model object;
the step of displaying the furniture model object in the space object according to the position information includes:
and in the space object, according to the currently selected furniture style in the furniture layout data, displaying the furniture model object under the furniture style according to the position information under the furniture style.
Optionally, the step of displaying the furniture model object according to the position information in the spatial object includes:
for each space object in the at least one space object, if there are at least two pieces of furniture layout data of the space object, selecting, from the at least two pieces of furniture layout data, the furniture layout data with the highest layout priority as first furniture layout data of the space object, where the first furniture layout data includes a first group of furniture model objects and first position information corresponding to the first group of furniture model objects;
and displaying the first group of furniture model objects in the space object according to the first position information.
Optionally, the method further comprises:
and generating a panoramic decoration image of the target house based on the online decoration result, and displaying the panoramic decoration image through an image user interface of a preset terminal.
Optionally, for each spatial object in the at least one spatial object, if there are at least two pieces of furniture layout data of the spatial object, the method further includes:
responding to a switching operation acted on the preset terminal, and extracting second furniture layout data corresponding to the switching operation from the at least two furniture layout data, wherein the second furniture layout data comprise a second group of furniture model objects and second position information corresponding to the second furniture model;
and canceling the display of the first group of furniture model objects, and displaying the second group of furniture model objects in the space objects according to the second position information.
Optionally, the method further comprises:
responding to a furniture editing operation acted on the preset terminal, and executing the furniture editing operation aiming at a furniture model object in the space object;
generating and storing new furniture layout data based on the furniture layout data after the furniture editing operation;
wherein the furniture editing operation comprises at least one of a furniture deleting operation, a furniture adding operation, a furniture moving operation, and a furniture replacing operation.
Optionally, the method further comprises:
constructing a furniture model object of each alternative furniture according to the size information of each alternative furniture;
constructing furniture layout data according to the furniture model objects and the placing conditions of each furniture model object;
and setting adaptation conditions of the furniture layout data according to the placing conditions of each furniture model object contained in the furniture layout data, wherein the adaptation conditions comprise at least one of adaptation conditions of space attributes of space objects and adaptation conditions of collision rules of the space objects.
Optionally, the step of constructing a house object of the target house according to the modeling data includes:
under the condition that the modeling data comprises the house type graph data, processing the house type graph data based on a semantic segmentation method to obtain structural body information of the target house, wherein the structural body information comprises at least one of wall modeling information and window modeling information;
performing character recognition on the house type diagram data to acquire marking information of the target house, wherein the marking information comprises at least one of size information, position information and space type information of each room;
and building a house object of the target house according to the structural body information and the marking information.
In a second aspect, an embodiment of the present invention provides an apparatus for processing on-line decoration, the apparatus including:
the modeling data acquisition module is used for acquiring modeling data of a target house, wherein the modeling data comprises at least one of house type graph data and panoramic data, and the house type graph comprises at least one of a 2D house type graph and a 3D house type graph;
the house object construction module is used for constructing a house object of the target house according to the modeling data; the house object is a three-dimensional house space established according to the modeling data, and the house object at least comprises a space object;
the on-line decoration processing module is used for acquiring decoration data of at least one space object in the house objects according to the space attribute of the at least one space object, displaying a decoration model object corresponding to the decoration data in the at least one space object and obtaining an on-line decoration result of the target house;
the space attribute at least comprises a space type of the at least one space object, the decoration data comprises hardwear data and softwear data, and the softwear data comprises furniture layout data.
Optionally, the on-line finishing module includes:
the space data acquisition sub-module is used for acquiring the space attribute of at least one space object in the house objects;
the furniture layout data acquisition submodule is used for acquiring furniture layout data of the at least one space object according to the space attributes, and the furniture layout data comprises at least one furniture model object and position information corresponding to the furniture model object;
and the furniture model object display submodule is used for displaying the furniture model object in the space object according to the position information to obtain an on-line decoration result of the target house.
Optionally, the spatial attribute at least includes a wall object and size information of the at least one spatial object under the three-dimensional room space, and the furniture layout data obtaining sub-module includes:
and the furniture layout data acquisition unit is used for generating furniture layout data of the at least one space object according to the wall object and the size information.
Optionally, in a case that the space object is the restaurant object, the size information includes a first side length and a second side length of the restaurant object, and the furniture layout data obtaining unit is specifically configured to:
acquiring a furniture model object matched with the first side length and the second side length of the restaurant object and a furniture size of the furniture model object;
obtaining a target wall object for the furniture model object according to the wall type of the wall object;
and generating the position information of the furniture model object by adopting the furniture size and the target wall object.
Optionally, for a restaurant object in the space object, the furniture model object includes at least one of a table model object, a dining chair model object, and a lighting decoration model object, and the furniture model object displaying sub-module is specifically configured to:
displaying at least one of the table model object, the dining chair model object and the lighting model object in the restaurant object according to the position information;
and if the length of the dining table model object is greater than or equal to a preset length threshold value, the position relation between the dining table model object and the lamp decoration model object is a geometric center alignment relation.
Optionally, in a case that the space object is the toilet object, the wall object at least includes a first wall object and a second wall object, the first wall object at least includes a door body object, the size information includes a first side length of the door body object, and a second side length of the first wall object and a third side length of the second wall object, and the furniture layout data obtaining unit is specifically configured to:
calculating a moving line space of the toilet object according to the door body object and the first side length of the door body object;
obtaining a target decoration space of the toilet object according to the third side length of the second wall object and the line moving space;
acquiring a furniture model object matched with the second side length of the first wall object and the third side length of the second wall object;
and matching the furniture model object with the target decoration space according to preset decoration conditions to obtain the position information of the furniture model object.
Optionally, in a case that the space object is the kitchen object, the wall object includes an access wall object, the access wall object at least includes a door object, and the furniture layout data obtaining unit is specifically configured to:
if the kitchen object comprises an access wall object and the side length of the access wall object is greater than or equal to a preset length threshold, extending the side length of the door body object to the interior of the kitchen object until the distance between the extended area and the wall object opposite to the door body object is equal to a preset distance threshold, stopping extending, and taking the extended area as a moving line space;
Taking the region of the kitchen object except the line moving space as a decoration space of the kitchen object, and taking a wall object corresponding to the decoration space as a decoration wall object;
acquiring a furniture model object matched with the side length of the decoration wall object;
and matching the furniture model object with the decoration wall body object according to a preset decoration condition to obtain the position information of the furniture model object.
Optionally, in a case that the space object is the kitchen object, the wall object includes a closed wall object, the size information includes a side length of the wall object, and the furniture layout data obtaining unit is specifically configured to:
taking a closed wall object with the largest side length in the kitchen objects as a target wall object;
matching the target wall object with other wall objects to obtain at least one decoration wall object of the kitchen object;
calculating a decoration space matched with the decoration wall body object according to a preset decoration threshold value;
acquiring a furniture model object matched with the side length of the decoration wall object;
and matching the furniture model object with the decoration wall body object according to a preset decoration condition to obtain the position information of the furniture model object.
Optionally, in a case that the space object is the living room object, the size information includes a side length of the wall object, and the furniture layout data obtaining unit is specifically configured to:
obtaining a target wall object of the living room object according to the wall type of the wall object and the side length of the wall object;
acquiring a furniture model object matched with the side length of the target wall object;
and matching the furniture model object with the target wall object according to preset decoration conditions to obtain the position information of the furniture model object.
Optionally, the furniture layout data obtaining sub-module is specifically configured to:
determining whether a preset space object for specially laying out furniture model objects exists in the room-entering space object according to the space attribute aiming at the room-entering space object in the at least one space object;
under the condition that the preset space object exists, acquiring the furniture layout data according to the preset space object;
and under the condition that the preset space object does not exist, acquiring the position information of the existing object in the entrance space object, and acquiring the furniture layout data at least according to the space attribute and the position information of the existing object.
Optionally, the furniture layout data obtaining sub-module is further specifically configured to:
for a balcony object of the at least one space object, acquiring at least one furniture model object for layout in the balcony object according to the space attribute;
acquiring the position information of the layout of each furniture model object in the balcony object at least according to the space attribute;
and acquiring the furniture layout data according to the acquired furniture model object and the acquired position information.
Optionally, the furniture layout data obtaining sub-module is further specifically configured to:
aiming at a bedroom object in the at least one space object, acquiring a plurality of furniture model objects for layout in the bedroom object according to the space attribute;
acquiring the position information of the layout of each furniture model object in the bedroom object at least according to the space attribute;
and acquiring the furniture layout data according to the acquired furniture model object and the acquired position information.
Optionally, the spatial attribute further includes size information of a region of the at least one spatial object under the three-dimensional room space, and the at least one spatial object includes at least one of window information of a region of a window object under the three-dimensional room space, and the apparatus further includes:
the indoor light object setting module is used for setting an indoor light object of the at least one space object according to the size information, and the indoor light object is used for simulating light rays generated by an indoor light source;
and/or the outdoor light object setting module is used for setting an outdoor light object of the window object according to the window information, and the outdoor light object is used for simulating light rays generated by an outdoor light source.
Optionally, the spatial attributes further include size information of an area under the three-dimensional room space of a ceiling object included in the at least one spatial object, and the apparatus further includes:
the down lamp position data acquisition module is used for determining down lamp position data of the at least one space object according to the space attribute;
and the down lamp object setting module is used for setting the down lamp object according to the down lamp position data in the at least one space object, and the down lamp object is used for simulating and generating supplementary light.
Optionally, the furniture layout data obtaining sub-module is further configured to:
and acquiring furniture layout data of the space object according to the space attribute of the space object and a preset collision rule aiming at each space object in the at least one space object.
Optionally, the furniture layout data includes a plurality of furniture styles, a furniture model object in each furniture style, and position information corresponding to the furniture model object;
optionally, the furniture model object display sub-module is further configured to:
and in the space object, according to the currently selected furniture style in the furniture layout data, displaying the furniture model object under the furniture style according to the position information under the furniture style.
Optionally, the furniture model object display sub-module is further configured to:
for each space object in the at least one space object, if there are at least two pieces of furniture layout data of the space object, selecting, from the at least two pieces of furniture layout data, the furniture layout data with the highest layout priority as first furniture layout data of the space object, where the first furniture layout data includes a first group of furniture model objects and first position information corresponding to the first group of furniture model objects;
and displaying the first group of furniture model objects in the space object according to the first position information.
Optionally, the apparatus further comprises:
and the panoramic display module is used for generating the panoramic decoration image of the target house based on the online decoration result and displaying the panoramic decoration image through an image user interface of a preset terminal.
Optionally, for each spatial object in the at least one spatial object, if there are at least two pieces of furniture layout data of the spatial object, the apparatus further includes:
a switching operation response module, configured to extract, in response to a switching operation performed on the preset terminal, second furniture layout data corresponding to the switching operation from the at least two pieces of furniture layout data, where the second furniture layout data includes a second set of furniture model objects and second position information corresponding to the second furniture model;
and the furniture layout data switching module is used for canceling the display of the first group of furniture model objects and displaying the second group of furniture model objects in the space objects according to the second position information.
Optionally, the apparatus further comprises:
the furniture editing operation response module is used for responding to the furniture editing operation acted on the preset terminal and executing the furniture editing operation aiming at the furniture model object in the space object;
the furniture layout data storage module is used for generating and storing new furniture layout data based on the furniture layout data after the furniture editing operation;
wherein the furniture editing operation comprises at least one of a furniture deleting operation, a furniture adding operation, a furniture moving operation, and a furniture replacing operation.
Optionally, the apparatus further comprises:
the alternative furniture model building module is used for building a furniture model object of each alternative furniture according to the size information of each alternative furniture;
the furniture layout data construction module is used for constructing furniture layout data according to the furniture model objects and the placing conditions of each furniture model object;
the adaptation condition setting module is used for setting the adaptation conditions of the furniture layout data according to the placing conditions of each furniture model object contained in the furniture layout data, wherein the adaptation conditions comprise at least one of adaptation conditions aiming at the space attribute of the space object and adaptation conditions aiming at the collision rule of the space object.
Optionally, the house object building module is specifically configured to:
under the condition that the modeling data comprises the house type graph data, processing the house type graph data based on a semantic segmentation method to obtain structural body information of the target house, wherein the structural body information comprises at least one of wall modeling information and window modeling information;
performing character recognition on the house type diagram data to acquire marking information of the target house, wherein the marking information comprises at least one of size information, position information and space type information of each room;
and building a house object of the target house according to the structural body information and the marking information.
In a third aspect, an embodiment of the present invention additionally provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of on-line finishing as described in the first aspect.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the method for processing an online decoration according to the first aspect.
In the embodiment of the invention, the online decoration result of the target house object is displayed through the image user interface of the preset terminal, and a user (including a personal user, a merchant user and the like) can roam in the three-dimensional virtual space to browse the internal decoration condition of the target house object, so that full-automatic house decoration is realized, the user can enable modeling data such as a user type diagram and the like to establish the three-dimensional house space of the target house and automatically decorate the three-dimensional house space, different decoration schemes are automatically acquired online, and the user experience is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a flow chart illustrating steps of a method for on-line finishing in an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of another method for on-line finishing in an embodiment of the present invention;
FIG. 3A is a schematic view of the table position according to the embodiment of the present invention;
FIG. 3B is a schematic view of the dining chair position in accordance with the embodiment of the present invention;
FIG. 3C is a first schematic view of a restaurant furniture setting according to an embodiment of the present invention;
FIG. 3D is a second schematic view of the restaurant furniture arrangement according to the embodiment of the present invention;
FIG. 3E is a third schematic view of the restaurant furniture arrangement of the present embodiment;
FIG. 3F is a fourth schematic view of a restaurant furniture setting in accordance with an embodiment of the present invention;
FIG. 3G is a fifth schematic view of a restaurant furniture setting in accordance with an embodiment of the present invention;
FIG. 3H is a sixth schematic view of a restaurant furniture setting in accordance with an embodiment of the present invention;
FIG. 3I is a seventh schematic view of a restaurant furniture setting in an embodiment of the present invention;
FIG. 3J is an illustration of a restaurant furniture setting according to an embodiment of the present invention;
FIG. 3K is a ninth view of the restaurant furniture in accordance with the present invention;
FIG. 4A is a first schematic view of a toilet track space according to an embodiment of the present invention;
FIG. 4B is a second schematic view of the line space of the toilet in the embodiment of the present invention;
FIG. 4C is a schematic view of a toilet finishing space in an embodiment of the present invention;
FIG. 4D is a first schematic view of a toilet furniture arrangement according to an embodiment of the present invention;
FIG. 4E is a second schematic view of the placement of toilet furniture in an embodiment of the present invention;
FIG. 4F is a third schematic view of the placement of toilet furniture in an embodiment of the present invention;
FIG. 4G is a fourth schematic view of a bathroom furniture display in accordance with an embodiment of the present invention;
FIG. 4H is a fifth schematic view of a bathroom furniture display in an embodiment of the present invention;
FIG. 4I is a sixth schematic view of a toilet furniture display according to an embodiment of the present invention;
FIG. 4J is a seventh schematic view of a toilet furniture display according to an embodiment of the present invention;
FIG. 4K is a schematic view of an eighth embodiment of the present invention showing a furniture display in a toilet;
FIG. 4L is a ninth schematic view of a toilet furniture display in an embodiment of the present invention;
FIG. 4M is a schematic illustration of a bathroom furniture display in an embodiment of the present invention;
FIG. 4N is an eleventh schematic view of a bathroom furniture display in accordance with an embodiment of the present invention;
FIG. 5A is a first schematic diagram of a kitchen path space in an embodiment of the present invention;
FIG. 5B is a second schematic diagram of the kitchen path space in an embodiment of the present invention;
FIG. 5C is a third schematic view of the kitchen path space in an embodiment of the present invention;
FIG. 5D is a first schematic view of the placement of kitchen furniture in accordance with an embodiment of the present invention;
FIG. 5E is a second schematic view of the placement of kitchen furniture in accordance with an embodiment of the present invention;
FIG. 5F is a second schematic view of the placement of kitchen furniture in accordance with an embodiment of the present invention;
FIG. 5G is a fourth schematic view of the placement of kitchen furniture in accordance with an embodiment of the present invention;
FIG. 5H is a fifth schematic view of the placement of kitchen furniture in accordance with an embodiment of the present invention;
FIG. 5I is a schematic view of a moveable door in an embodiment of the present invention;
FIG. 6A is a first schematic view of a furniture arrangement in a living room according to an embodiment of the present invention;
FIG. 6B is a second schematic view of the placement of furniture in a living room according to an embodiment of the present invention;
FIG. 6C is a third schematic view of a layout of furniture in a living room according to an embodiment of the present invention;
FIG. 6D is a fourth schematic view of a furniture arrangement in a living room according to an embodiment of the present invention;
FIG. 6E is a schematic illustration of a fifth example of a layout of furniture in a living room according to an embodiment of the present invention;
FIG. 6F is a sixth schematic view of a layout of furniture in a living room according to an embodiment of the present invention;
FIG. 7A is a first schematic diagram of a room-entering object of the present application;
FIG. 7B is a second schematic view of a room-entering object of the present application;
FIG. 7C is a schematic illustration three of a room-entry object of the present application;
FIG. 7D is a fourth schematic view of a room-entering space object of the present application;
FIG. 7E is a fifth schematic view of a room-entering space object of the present application;
FIG. 7F is a diagram six of a room-entering space object of the present application;
FIG. 7G is a seventh schematic view of a room-entering space object of the present application;
FIG. 7H is a schematic illustration eight of a room-entering space object of the present application;
FIG. 8A is a first schematic view of a balcony object of the present application;
FIG. 8B is a second schematic view of a balcony object of the present application;
FIG. 8C is a third schematic view of a balcony object of the present application;
FIG. 8D is a fourth schematic view of a balcony object of the present application;
FIG. 8E is a schematic illustration of a balcony object of the present application;
FIG. 8F is a schematic illustration six of a balcony object of the present application;
FIG. 8G is a schematic illustration seven of a balcony object of the present application;
FIG. 8H is a schematic illustration eight of one balcony object of the present application;
FIG. 8I is a schematic illustration nine of a balcony object of the present application;
FIG. 8J is a schematic ten view of a balcony object of the present application;
FIG. 8K is a schematic view eleven of one balcony object of the present application;
FIG. 9A is a schematic illustration of a bedroom object of the present application;
FIG. 9B is a second schematic view of a bedroom object of the present application;
FIG. 9C is a schematic illustration three of a bedroom object of the present application;
FIG. 9D is a schematic illustration of a bedroom object of the present application;
FIG. 9E is a schematic illustration of a bedroom object of the present application;
FIG. 10A is a schematic view of a window object with a solar light object in an embodiment of the present invention;
FIG. 10B is a schematic view of a skylight object set for a window object in an embodiment of the present invention;
FIG. 10C is a schematic diagram of an example of setting room light objects in a space object according to an embodiment of the present invention;
FIG. 11 is a schematic illustration of a down light object disposed in a ceiling object of a restaurant in an embodiment of the present invention;
fig. 12 is a schematic diagram of an intermediate result picture in the house type map identification process according to an embodiment of the present invention;
FIG. 13 is a schematic view of an in-line finishing apparatus according to an embodiment of the present invention;
fig. 14 is a schematic hardware structure diagram of an electronic device in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The online decoration processing method in the embodiment of the invention can be operated in electronic equipment or terminals such as a server and the like. The electronic device may be a local electronic device. When the processing method of the spatial light is operated as a server, the spatial light can be displayed as a cloud.
In an optional embodiment, the cloud presentation refers to an information presentation manner based on cloud computing. In the cloud display operation mode, an operation main body and an information picture presentation main body of an information processing program are separated, storage and operation of an on-line decoration processing method are completed on a cloud display server, and a cloud display client is used for receiving and sending data and presenting an information picture, for example, the cloud display client can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the electronic device for processing the information data is a cloud display server at the cloud end. When browsing a three-dimensional house space, a user operates the cloud display client to send an operation instruction to the cloud display server, the cloud display server displays relevant commodity information according to the operation instruction, data such as the commodity information are coded and compressed, the data are returned to the cloud display client through a network, and finally the data are decoded through the cloud display client and the commodity information are output.
In another alternative embodiment, the electronic device may be a local electronic device. The local electronic device stores an application program and is used to present an application interface. The local electronic device is used to interact with the user through a graphical user interface, i.e. the installation application is downloaded and run conventionally through the electronic device. The manner in which the local electronic device provides the graphical user interface to the user may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the user via holographic projection. For example, the local electronic device may include a display screen for presenting a graphical user interface including an application screen and a processor for running the application program, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
When the preset terminal is a local electronic device, the preset terminal may be an electronic device such as a desktop computer, a notebook computer, a tablet computer, a mobile terminal, and a VR (Virtual Reality) device. The VR equipment can comprise a computer, VR head-mounted equipment, VR control equipment and the like, and a user can roam in a specified area through a virtual house source picture displayed in the VR head-mounted equipment, so that the user can roam really in the virtual house source, and meanwhile can interact with the virtual house source through the VR control equipment.
The terminal can run application programs, such as life application programs, audio application programs, game application programs and the like. The life-type application programs can be further divided according to different types, such as a rental and sale room application program, a home service application program, a leisure and entertainment application program and the like. The embodiment of the present application is exemplified by running a life application on a mobile terminal, and it is understood that the present invention is not limited thereto.
Referring to fig. 1, a flow chart of steps of a method for on-line finishing according to an embodiment of the present invention is shown.
And 110, obtaining modeling data of the target house, wherein the modeling data comprises at least one of house type graph data and panoramic data, and the house type graph comprises at least one of a 2D house type graph and a 3D house type graph.
Step 120, building a house object of the target house according to the modeling data; the house object is a three-dimensional house space established according to the modeling data, and the house object at least comprises a space object.
Step 130, aiming at least one space object in the house objects, obtaining decoration data of the at least one space object according to the space attribute of the at least one space object, and displaying a decoration model object corresponding to the decoration data in the at least one space object to obtain an on-line decoration result of the target house; the space attribute at least comprises a space type of the at least one space object, the decoration data comprises hardwear data and softwear data, and the softwear data comprises furniture layout data.
As an example, in the house decoration process, a user often proposes design requirements to a designer, and the designer designs the house decoration style according to the requirements of the user, so as to obtain a house design drawing, and then the house design drawing is handed to a decorator to decorate a blank house. For a user, the final decoration effect of the house can be known only after the house is finished, if the decoration effect does not meet the expectation of the user, because the decoration is time-consuming and resource-consuming, and the user is difficult to adjust the house which is finished, the expectation of the user is easily reduced, and the requirement of the user cannot be met.
Therefore, the embodiment of the invention provides a way for a user to sense the house decoration design, so that the user can initially sense different decoration styles of a house before house decoration, the user can select the corresponding design style according to the own requirements, and the user experience is improved.
In the embodiment of the invention, in order to automatically finish different houses online according to the requirements of merchants or users, a three-dimensional house space of a target house can be constructed in advance as a house object finished online. Specifically, the modeling data of the target house may be obtained, where the modeling data may include any data required for building a three-dimensional house space, and may be specifically set by a user according to a requirement, which is not limited in this embodiment of the present invention. For example, the modeling data may include at least one of a house view data and a panorama data, and the house view may include at least one of a 2D (2 Dimensions) house view and a 3D (3 Dimensions) house view.
In addition, in the embodiment of the present invention, the house pattern data and the panoramic data may be acquired in any available manner, and the embodiment of the present invention is not limited thereto.
For example, panoramic data of each room in a target house may be captured by a panoramic camera, specifically, a location of a capture point in each room in the target house, such as a bedroom, a living room, a dining room, and a kitchen, may be created in advance, then a capture App (Application program) is connected to the panoramic camera for control through a communication protocol provided by the panoramic camera, and a real-time picture of the camera after connection is established may be transmitted to a device, such as a mobile phone, for obtaining panoramic image data. The house layout may be any available house layout, such as a computer-drawn house layout, a hand-drawn house layout, and so on.
In addition, the specific format of the modeling data can be customized according to the requirement, and the embodiment of the invention is not limited. For example, the modeling data may be set in json format, or the modeling data may be set in a specific format, and then after the modeling data is obtained, data that is not in the specific format may need to be further converted into the specific format, and so on.
After obtaining the modeling data of the target house, the house object of the target house may be further constructed according to the modeling data. In the embodiment of the present invention, the house object may be constructed in any modeling manner, which is not limited in the embodiment of the present invention. And at least one spatial object may be included in the house object. Furthermore, in the embodiment of the present invention, the space object included in the house object may be identified or divided by any available method, and the embodiment of the present invention is not limited thereto.
For example, each room in the target premises may be divided into one spatial object. In an example, a two-dimensional house type graph, a three-dimensional house type graph, and panoramic data input by a user may be obtained, then AI (Artificial Intelligence) is performed to perform image Recognition on the two-dimensional house type graph, the three-dimensional house type graph, the panoramic data, and the like of the two-dimensional house type graph, OCR (Optical Character Recognition) is performed to recognize characters in the two-dimensional house type graph, a room division algorithm is performed to divide areas in the two-dimensional house type graph, and the like, so as to obtain different space objects of a target house object, and then house modeling is performed according to house data obtained by AI Recognition, so as to obtain a three-dimensional house space corresponding to the two-dimensional house type graph.
The method can obtain the door, the window, the wall body and the like of a target house object by carrying out image recognition on a two-dimensional house image, a three-dimensional house image, panoramic data and the like, recognize the name, the area, the scale and the like of each different space object of the target house object by OCR, and can divide a guest-dining room by a room division algorithm, for example, the guest-dining room can be divided to obtain a living room, a dining room, an entrance, a passageway and the like, so that the two-dimensional house image is converted into the three-dimensional house space by an AI recognition technology, the house can be displayed in a 3D space mode, the user can preliminarily perceive different decoration styles of the house, and the user can carry out ' roaming ' on the premises ' personally, and the space perception and the sense of reality of the user are further improved.
After building a house object of a target house, obtaining decoration data of at least one space object in the house object according to the space attribute of the at least one space object, and displaying a decoration model object corresponding to the decoration data in the at least one space object to obtain an on-line decoration result of the target house; the space attribute at least comprises a space type of the at least one space object, the decoration data comprises hardwear data and softwear data, and the softwear data comprises furniture layout data.
At least one space object which needs to be decorated can be set in a user-defined manner according to specific requirements and application scenes, and the embodiment of the invention is not limited. Moreover, in practical applications, generally, the decoration modes applied to the space objects of different space types may differ, and therefore, the space attribute of the space object at least includes the space type of the at least one space object.
And the house object is a three-dimensional house space established according to the target house. In practice, a house may be a combination of rooms, spaces, such as living room, dining room, kitchen, bedroom, balcony, bathroom, vestibule, etc. In the embodiment of the present invention, when building a house object of a target house, space objects included therein may be simultaneously identified and set, where a dividing manner of the space objects may be set by a user according to a requirement, which is not limited in the embodiment of the present invention. For example, the space object may be set according to the space type including the aforementioned living room object, restaurant object, toilet object, bedroom object, balcony object, toilet object, entrance object, and the like.
Moreover, in practical applications, the space plans inside different houses may be different, and the connection modes between different spaces may also be different, for example, a wall exists between some spaces (bedrooms and living rooms) and is connected through a door, and an open wall exists between some spaces (living rooms and dining rooms) (i.e., a solid wall does not exist and is connected through an open space). For two spaces which are separated by a wall and connected by a door at the same time, the two spaces can be identified as two spaces by the wall, and for two spaces between which no wall exists, the space object contained in the two spaces can be identified in any available mode such as a rectangular area, and the like, and the embodiment of the invention is not limited.
For example, in the case of a living room and a restaurant connected by an open space, they may be divided into two parts, i.e., a living room object and a restaurant object, by identifying a rectangular area, or may be directly identified as a whole as a living room object and a restaurant object, or the like.
For at least one space object needing decoration, obtaining decoration data of the at least one space object according to the space attribute of the at least one space object, and displaying a decoration model object corresponding to the decoration data in the at least one space object to obtain an on-line decoration result of the target house. Wherein the decoration data comprises at least one of hard decoration data and soft decoration data, and the soft decoration data comprises furniture layout data.
The hard-fit data may include any data related to the hard-fit of the house, such as wall-fitting data, door-window fitting data, floor fitting data, ceiling fitting data, and the like. The soft-fit data may then include any data related to the house soft-fit, such as furniture layout data. The furniture layout data may include layout data related to movable interior decoration such as furniture, home appliances, curtain cloth, green plants, and the like. Furthermore, at least one furniture model object and position information corresponding to each furniture model object can be included in the furniture layout data. The furniture model object may be any of the above-described interior decoration model objects.
For example, the hard-installed data and the soft-installed data of the corresponding at least one space object may be determined according to the space attribute of the at least one space object, then the house hard-installed may be performed on the corresponding at least one space object according to the hard-installed data, and then the house soft-installed may be performed on the corresponding at least one space object according to the soft-installed data, of course, the house hard-installed may be performed first, and then the house hard-installed may be performed, or the house hard-installed and the house soft-installed may be performed simultaneously, which is not limited in the embodiment of the present invention.
Referring to fig. 2, in the embodiment of the present invention, in order to perform house soft-fitting, the step 130 may further include:
step 131, for at least one space object in the house objects, obtaining a space attribute of the at least one space object.
Step 132, obtaining furniture layout data of the at least one spatial object according to the spatial attributes, where the furniture layout data includes at least one furniture model object and position information corresponding to the furniture model object.
And step 133, displaying the furniture model object in the space object according to the position information to obtain an on-line decoration result of the target house.
In this embodiment of the present invention, the preset terminal may be the aforementioned local terminal device, or may also be the aforementioned cloud display client, and the following takes the local terminal device (especially, the mobile terminal) as an example for description.
In the embodiment of the present invention, the content that the terminal can present through the image user interface may include at least a house object, and the house object includes at least one space object. And after the on-line decoration result of the target house is obtained, the on-line decoration result of the house object can be further displayed in the image user interface.
After the three-dimensional house space is obtained, matching of the corresponding furniture model objects can be carried out according to the space attributes corresponding to the different space objects, so that the corresponding furniture model objects can be displayed in the corresponding space objects, display of different decoration design styles is achieved, and users can preliminarily perceive different decoration styles of houses. The terminal can select the corresponding furniture model object for the corresponding space object according to the space attribute, so that the corresponding furniture model object is displayed in different space objects, full-automatic decoration is realized, the actual decoration condition of a house is simulated, and a user can sense the decoration style of the house in advance.
It should be noted that, for a spatial object of a house, it is not necessarily a regular rectangular region, in the embodiment of the present invention, the region may be divided by a corresponding algorithm, so as to divide an irregular region or a region which is not divided by a solid wall into a plurality of different functional regions, for example, for a guest restaurant, the region may be divided by an algorithm into a living room, a restaurant, an entrance, an aisle, and the like, so that the terminal may perform full-automatic decoration on the divided relatively regular region.
In the embodiment of the invention, based on the image user interface of 3D (3-Dimension) space such as VR (Virtual Reality), AR (Augmented Reality), panorama and the like, the invention aims to decorate a house in a Virtual three-dimensional house space and adapt to a reasonable Virtual furniture layout scheme. The furniture can include any furniture related to house interior decoration, and the furniture model objects in the furniture model objects can be different for different space objects and can be specifically set by self-definition according to requirements, and the embodiment of the invention is not limited. For example, for a living room object, its corresponding furniture model object may include, but is not limited to, a sofa model object, a tea table model object, a television cabinet model object, a television model object, a carpet model object, a television wall model object, an air conditioner model object, a corner model object, a green plant model object, a wall painting model object, a ceiling model object, and so on; and for the restaurant object, it may include a table model object, a dining chair model object, a ceiling model object, a table decoration model object, and so on. For the room-entering space object, the furniture model object may include objects for layout in the room-entering space, such as a hallway cabinet, a hall cabinet, and a hook for hanging objects such as clothes.
The content displayed by the image user interface can at least comprise a house object, wherein the house object at least comprises a space object, and the house object is a three-dimensional house space established according to a target house. In practice, a house may be a combination of rooms, spaces, such as a living room, a dining room, a kitchen, a bedroom, a balcony, a restroom, a hallway, and so on. In the embodiment of the present invention, when building a house object of a target house, space objects included therein may be simultaneously identified and set, where a dividing manner of the space objects may be set by a user according to a requirement, which is not limited in the embodiment of the present invention. For example, the space object may be set according to the space type including the aforementioned living room object, restaurant object, kitchen object, bedroom object, balcony object, toilet object, entrance object, and the like.
In the embodiment of the present invention, the space object included in the house object may be identified in any available manner, and the embodiment of the present invention is not limited thereto. Furthermore, the room object included in the room object may be set while the room object is constructed, which is not limited in this embodiment of the present invention.
The invention is based on a digital interface (such as interactive interfaces of VR, AR, panorama and the like) of a 3D space, aims to face each space object in a target house, and can fully automatically realize a reasonable furniture decoration scheme, for example, common bedroom decoration home appliances and furniture such as sofas, tea tables, television cabinets, televisions, carpets, television background walls, air conditioners, corner tables and the like can be placed at a proper position for a living room object.
Different space objects correspond to different space attributes, and the terminal can acquire the furniture layout data of the corresponding space object according to the space attribute of at least one space object. The furniture layout data may include furniture model objects and position information corresponding to the furniture model objects, and the position information may include positions of different furniture model objects in the space object. It can be understood that, the terminal may generate the position information of the furniture model object under the current space object according to the space attribute of the current space object, for example, if the current space object is a toilet object, the position information of common furniture appliances in the toilet is generated according to the space attribute of the toilet object; if the current space object is a restaurant object, the location information of the furniture household appliances commonly found in the restaurant is generated according to the space attribute of the restaurant object, which is not limited in the present invention.
Specifically, the terminal needs to reasonably select the furniture model object according to the space attribute of the space object, so that the space owned by the space object is maximally utilized under the condition that the furniture placing rationality is ensured. For example, for a toilet object, the furniture model object may include common furniture home appliances in a toilet, such as a washbasin, a mirror cabinet, a toilet, a shower head, a shower room, a bathtub, and the like, and after obtaining the spatial attribute of the toilet object in the three-dimensional room space, the terminal may select the furniture model object matched with the spatial attribute according to the spatial attribute, and determine the corresponding position information of each furniture model object in the toilet object, so as to implement full-automatic decoration of furniture.
In addition, in the embodiment of the present invention, at least one piece of furniture layout data may also be preset for each spatial object, and a spatial attribute condition corresponding to each piece of furniture layout data is set at the same time, so that after the spatial attribute of the spatial object is obtained, further according to the spatial attribute condition satisfied by the spatial data, the furniture layout data adapted to the spatial attribute of the corresponding spatial object is selected from the furniture layout data selectable for the corresponding spatial object, and is used as the furniture layout data of the corresponding spatial object.
After the terminal obtains the furniture model objects matched with each space object in the at least one space object and the position information corresponding to each furniture model object, the corresponding furniture model objects can be displayed in the corresponding space objects according to the position information in the furniture layout data, so that the terminal can select the furniture model objects matched with the space objects according to the space attributes of the space objects and then display the furniture model objects, full-automatic decoration is realized, a user can obtain different decoration schemes matched with the space objects on line, different decoration styles are sensed in advance, and user experience is improved.
In the embodiment of the invention, the three-dimensional house space of the target house object can be displayed through the image user interface of the preset terminal, and the user can roam in the three-dimensional virtual space so as to browse the interior decoration condition of the target house object. The method has the advantages that full-automatic house decoration is realized, different decoration schemes are quickly and accurately adapted to each room in the target house, different decoration styles are sensed in advance, and user experience is improved.
Optionally, in this embodiment of the present invention, the spatial attribute at least includes a wall object and size information of the at least one spatial object under the three-dimensional room space, and the step 132 further includes:
step 1321, generating furniture layout data of the at least one space object according to the wall object and the size information.
As described above, in practical applications, the spatial attributes of different spatial objects may specifically include different contents, and the furniture layout rules of the spatial objects in different spatial types may also differ accordingly. Therefore, in order to obtain furniture layout data of different spatial objects in a targeted manner, at least the spatial type of the spatial object may be included in the spatial attributes. Moreover, when acquiring the furniture layout data of each space object, there may be differences due to the furniture layout rules under different space types, applicable furniture model objects, and the like. Therefore, in the embodiment of the present invention, the spatial attribute of the spatial object may further include a wall object and size information of the spatial object under the three-dimensional room space.
The wall object (wall described below) can obtain the wall information of the toilet from the terminal according to the two-dimensional house type diagram input by the user, and the wall information can include an access wall object, a closed wall object, an open wall object and the like; the size information may be a spatial size of the spatial object in the three-dimensional room space (specifically, may include a model size in the built three-dimensional room space, a real size in a real target room, and the like), and may include a side length corresponding to each wall in the spatial object, an area of the spatial object, and the like.
The size information of the space object may be real size information corresponding to a corresponding space object in the two-dimensional house type graph, and the content specifically included in the wall object and the size information of different space objects may also be different, and may be specifically set by a user according to a requirement, which is not limited in the embodiment of the present invention.
For example, for the space object, the size information may include a first side length of the entrance and exit of the space object, and a second side length of the first wall and a third side length of the second wall in the space object, for example, the second side length may be a width of the space object, and the third side length may be a length of the space object, optionally, the two may also be interchanged, or when the space object is a square, the two may also be equal, and for convenience of understanding and description, the second side length is a width of the space object, and the third side length is a length of the space object, which is not limited in the present invention. The first wall of the space object may include an access wall and a wall opposite to the access wall (i.e., a wall opposite to the access door of the space object), and the second wall may be two walls adjacent to the first wall, and optionally, the two walls may also be switched to each other. For the wall of the space object, the wall of the house can be distinguished through different wall marks in the house type diagram, for example, the wall can be marked as a bearing wall through black, the wall can be marked as a non-bearing wall through white or hollow, so that the terminal can identify each wall of the target house according to different wall marks, and can perform region division through a related algorithm, thereby obtaining the wall object of the space object.
As for the wall body, the entrance and exit wall body may be a wall body having a door body object (door body described below); the closed wall body can be a wall body which cannot be passed by a user, such as a bearing wall, a non-bearing wall (a wall body comprising a window), a partition wall and the like; the open wall may be a wall that a user can pass through and does not have a door body, or an open space, for example, a virtual wall that is set up at a terminal may be used to distinguish two different space objects, or an open space that is used to divide two adjacent spaces in a two-dimensional house type diagram, and so on. It will be appreciated that for a toilet it may not include an open wall object, i.e. the toilet may consist of a closed wall and an access wall.
In the embodiment of the invention, the terminal can generate the furniture layout data of the space object according to the wall object and the size information of the space object. For example, it is possible to determine what size of furniture model objects (hereinafter, furniture model) the space object can be placed in, and it is possible to determine what manner of placing the furniture model objects in accordance with the wall object.
In the concrete implementation, which kind of furniture or household appliances are placed on the corresponding wall body can be determined according to the type of the wall body, and the number and the size of the furniture household appliances, ornaments and the like can be determined according to the size of the space object, so that reasonable furniture layout data can be adapted to the space object through the wall body and the size of the space object, and the rationality of furniture decoration is ensured while full-automatic decoration is realized. For example, for kitchen objects, if the wall contains windows, the gas burner needs to be kept away from the windows or not under the windows, etc.
Optionally, in an embodiment of the present invention, in a case that the space object is the restaurant object, the size information includes a first side length and a second side length of the restaurant object, and the step 1321 may further include:
step A1, obtaining a furniture model object matched with the first side length and the second side length of the restaurant object and a furniture size of the furniture model object;
step A2, obtaining a target wall object aiming at the furniture model object according to the wall type of the wall object;
and A3, generating the position information of the furniture model object by adopting the furniture size and the target wall object.
In an alternative embodiment of the present invention, for a restaurant object (hereinafter referred to as a restaurant), the terminal may obtain a furniture model object matching a first side length and a second side length of the restaurant object, obtain a furniture size of the furniture model object, obtain a target wall object for the furniture model object according to a wall type of the wall object, and generate position information of the furniture model object by using the furniture size and the target wall object, thereby obtaining furniture layout data of the restaurant object.
In a specific implementation, after the terminal processes the user-type diagram, a restaurant with a rectangular display area can be obtained, then a first side length and a second side length of the restaurant can be obtained, then an area of the restaurant can be obtained according to a product of the first side length and the second side length, so as to select a furniture model (including the number of pieces of furniture, the type of furniture, the style of furniture, and the like) matching the area of the area, and then a furniture size of the selected furniture model is obtained. Wherein, the dining table in the furniture model is matched with the dining chair, for example, two corresponding dining chairs are placed on the double dining table; and four dining tables and the like corresponding to the four dining tables are arranged on the four dining tables, and the corresponding number of dining tables and dining chairs can be selected from the terminal according to the area of the dining room.
In one example, if the restaurant object includes at least two closed wall objects, the longest side of the closed wall object may be the first target wall object adjacent to the first furniture model object; if the restaurant object includes at least one open wall object, then the closed wall object adjacent or opposite the open wall object of the restaurant object is used as the first target wall object adjacent to the first furniture model object. Then, a first area of the first furniture model object in the restaurant object is calculated by adopting a first furniture size of the first furniture model object, a second area of the second furniture model object in the restaurant object is calculated by adopting a second furniture size of the second furniture model object, the first area and the second area are combined to obtain a target area matched with the first furniture model object and the second furniture model object, and then the target area is matched with the first target wall object according to a preset placing condition to obtain position information of the first furniture model object and the second furniture model object.
In order to more reasonably and maximally utilize the space of the restaurant, the position of the furniture in the restaurant can be limited by setting the placing conditions, so that the optimal position of the furniture in the restaurant can be obtained through the placing conditions. The placing condition can include that the distance between one side of a first furniture model object, which is not adjacent to a first target wall object, and an opposite closed wall object is greater than or equal to a preset distance threshold value, or the distance between the side of the first furniture model object and an opposite open wall object meets a first preset distance interval; the distance between the back of the second furniture model object and the opposite closed wall object or open wall object satisfies at least one of the second preset distance intervals.
For example, the first furniture model object may be a table, the second furniture model object may be a dining chair, and the first target wall is a wall against which a short side of the table rests. If the restaurant comprises at least two closed walls, the two closed walls can be adjacent walls or opposite walls. If the two closed wall bodies are the wall bodies with the same side length, any one wall body can be selected as a first target wall body; if the two closed walls are walls with different side lengths, the wall with the larger length can be used as the first target wall. If the dining room includes at least one open wall, the closed wall adjacent to or opposite to the open wall may be used as a first target wall, and then the table and dining chair positions in the dining room may be determined according to the dimensions of the table and dining chair.
Specifically, referring to fig. 3A, which is a schematic diagram illustrating a position of the dining table in the embodiment of the present invention, the terminal may extend towards the inside of the dining room according to a size of a long side of the dining table (or a side length if the dining table is square) by using the first target wall as a boundary, so as to obtain a first area occupied by the dining table in the dining room. Referring to fig. 3B, a schematic diagram of the position of the dining chair according to the embodiment of the invention is shown, and then a second area occupied by the dining chair in the dining room is obtained according to the matching relationship between the dining chair and the dining chair, wherein the first area and the second area are adjacent areas. The first area can then be spliced to the second area to obtain a target area occupied by the table-dining chair in the dining room.
For the dining tables and dining chairs in the target area, the largest number of dining tables and dining chairs which can be placed in the current size of the dining room can be obtained, and then the target area can be matched with the wall bodies of the dining room and the like according to placing conditions after the largest number of dining tables and dining chairs which can be placed in the dining room are obtained, so that the space of the dining room is utilized to the maximum extent, and meanwhile, the rationality of placing furniture is improved.
For example, the predetermined distance threshold may be 600mm, the first predetermined distance interval may be 300mm to 600mm, and the second predetermined distance interval may be 100mm to 600 mm. Referring to fig. 3C, a schematic diagram of the placement of furniture in mm is shown, where the size of the table is 600 × 600, the size of the dining chair is 450 × 550, and the size of the dining room is 1200 × 2300, and the dining room includes three closed walls, and since the table is a square table, after the target area corresponding to the table and the dining chair is obtained, one side of the table can be placed against the wall, and the distance between the non-wall side of the table and the opposite closed wall is maintained to be greater than or equal to 600 mm. Meanwhile, the distance between the back of the dining chair and the closed wall or the open wall is kept to be 100-600mm, and if the distance between the back of the dining chair and the closed wall is larger than or equal to 600mm, the distance between the dining chair and the closed wall is kept to be 600 mm; if the distance between the back of the dining chair and the closed wall is less than 600mm, the distance between the dining chair and the closed wall can be kept at 100mm at minimum.
Referring to fig. 3D, a second schematic diagram of the placement of furniture according to an embodiment of the present invention is shown, where the size of the dining table is 600 × 1200mm, the size of the dining chair is 450 × 550, the size of the dining room is 1800 × 2300, and the dining table includes three closed walls, so that after the target areas corresponding to the dining table and the dining chair are obtained, the short sides of the dining table can be placed against the wall, and the distance between the non-wall-side of the dining table and the opposite closed wall is maintained to be greater than or equal to 600 mm. For the positional relationship between the dining chair and the wall, reference is made to the above examples, which are not described herein again.
Referring to fig. 3E, a third schematic view of the placement of furniture according to an embodiment of the present invention is shown, where the size of the table is 600 × 1500, the size of the dining chair is 450 × 550, the size of the dining room is 2000 × 3200, and the dining room includes an open wall, so that after the target area corresponding to the table and the dining chair is obtained, the short side of the table can be placed against the closed wall adjacent to the open wall, and the distance between the non-wall-side of the table and the opposite closed wall is maintained to be greater than or equal to 600 mm. Meanwhile, the distance between the back of the dining chair and the closed wall or the open wall is kept to be 100mm-600mm, and if the distance between the back of the dining chair and the closed wall or the open wall is larger than or equal to 600mm, the distance between the dining chair and the closed wall or the open wall is kept to be 600 mm; if the distance between the back of the dining chair and the closed wall or the open wall is less than 600mm, the distance between the dining chair and the closed wall or the open wall can be kept at 100mm at minimum.
Referring to fig. 3F, which is a schematic diagram illustrating a fourth embodiment of the furniture placement according to the present invention, the short side of the dining table can be placed against the closed wall opposite to the open wall, and the distance between the non-wall side of the dining table and the opposite open wall is maintained to be 300mm-600mm, and the positional relationship between the dining chair and the wall can be referred to the above example; referring to fig. 3G, a fifth schematic view illustrating placement of furniture according to an embodiment of the present invention, wherein the dining table and the dining chair can be visited in the middle, and the distance between the dining table and the open wall is maintained to be 300mm to 600mm, and the distance between the dining chair and the closed wall is 600mm, which is not described herein again. The heights of the dining table and the dining chair can be set according to practical situations, and the invention is not limited to this.
In another example, if the furniture model object comprises a third furniture model object, the closed wall object adjacent to the open wall object is taken as a first target wall object adjacent to the first furniture model object; and using the closed wall object opposite the first target wall object as a second target wall object adjacent to the third furniture model object, or using the closed wall object opposite the open wall object as a first target wall object adjacent to the first furniture model object; and using the wall object adjacent to the first target wall object as a second target wall object adjacent to the third furniture model object.
If the restaurant object comprises an access wall object and an open wall object, taking the wall object adjacent to the access wall object and far away from the door body object as a first target wall object adjacent to the first furniture model object along the depth direction of the restaurant object; and using the wall object opposite to the first target wall object as a second target wall object adjacent to the third furniture model object. Wherein the second target wall object may be a wall object against which the third furniture model object rests.
It should be noted that, in the calculation of the third area corresponding to the third furniture model object, the position of the third furniture model object in the restaurant may be obtained based on the length and width of the third furniture model object with the second target wall as a boundary.
For the case that the restaurant does not include an entrance wall and an exit wall, a first area for a first target wall object may be calculated using a first furniture size of a first furniture model object, a second area corresponding to the first area may be calculated using a second furniture size of a second furniture model object, and a third area for a second target wall object may be calculated using a third furniture size of a third furniture model object; combining the first region and the second region to obtain a target region matched with the first furniture model object and the second furniture model object; and matching the target area with the first target wall object and the third area according to a preset placing condition to obtain the position information of the first furniture model object and the second furniture model object.
The placing condition can also comprise that the distance between one side of the first furniture model object, which is not adjacent to the first target wall object, and the third furniture model object is greater than or equal to a preset distance threshold value; and at least one of the distance between the back of the second furniture model object and the third furniture model object is greater than or equal to a preset distance threshold.
For example, the third furniture model object may be a sideboard, and referring to fig. 3E, after obtaining a target area for the table and dining chair, the short side of the table may be placed against a closed wall adjacent to the open wall and the distance between the non-wall side of the table and the opposite sideboard may be maintained at 600mm or more. Meanwhile, the distance between the back of the dining chair and the closed wall or the open wall is kept to be 100mm-600mm, and if the distance between the back of the dining chair and the closed wall or the open wall is larger than or equal to 600mm, the distance between the dining chair and the closed wall or the open wall is kept to be 600 mm; if the distance between the back of the dining chair and the closed wall or the open wall is less than 600mm, the distance between the dining chair and the closed wall or the open wall can be kept at 100mm at minimum.
Referring to fig. 3F, after the target areas corresponding to the dining table and the dining chair are obtained, the short sides of the dining table can be placed against the closed walls opposite to the open walls, and the distance between the non-wall-leaning sides of the dining table and the opposite open walls is kept to be 300mm-600 mm. Meanwhile, the distance between the back of the dining chair and the closed wall or the dining cabinet is kept to be 100mm-600 mm.
When the restaurant comprises an entrance wall and an exit wall, calculating a first area for a first target wall object by adopting a first furniture size of a first furniture model object, calculating a second area corresponding to the first area by adopting a second furniture size of a second furniture model object, and calculating a third area for a second target wall object by adopting a third furniture size of a third furniture model object; combining the first region and the second region to obtain a target region matched with the first furniture model object and the second furniture model object; matching the target area with the wall object and the second area according to the placing condition to obtain first position information of the first furniture model object and the second furniture model object; and matching the third area with the door body object and the target area according to the placing condition to obtain second position information of the third furniture model object.
The area condition can also comprise that the distance between the third furniture model object and the door body object is greater than or equal to a preset distance threshold; the distance between one side of the first furniture model object, which is not adjacent to the first target wall object, and the third furniture model object is greater than or equal to a preset distance threshold value; and the distance between the second furniture model object and the open wall object or the closed wall object satisfies at least one of the first preset distance intervals.
For example, referring to fig. 3H, which shows a sixth schematic view of the placement of furniture in the embodiment of the present invention, the restaurant includes two opposite closed walls, an entrance wall and an exit wall, and the closed wall far from the door can be used as the first wall on which the dining table is leaned, and the other closed wall can be used as the second wall on which the sideboard is leaned. And then obtaining a target area corresponding to the dining table and the dining chair and a third area of the dining cabinet, placing the short edge of the dining table against the first wall, and keeping the distance between the non-wall-against side of the dining table and the opposite dining cabinet to be larger than or equal to 600 mm. Meanwhile, the distance between the back of the dining chair and the closed wall or the open wall is kept to be 100mm-600mm, and if the distance between the back of the dining chair and the closed wall or the open wall is larger than or equal to 600mm, the distance between the dining chair and the closed wall or the open wall is kept to be 600 mm; if the distance between the back of the dining chair and the closed wall or the open wall is less than 600mm, the distance between the dining chair and the closed wall or the open wall can be kept at 100mm at minimum. And the distance between the dining cabinet and the door is kept to be larger than or equal to 600 mm.
In another optional embodiment of the present invention, for a restaurant with a larger size, if both the first side length and the second side length of the restaurant object are greater than or equal to the first size threshold, the furniture model object matching the first size threshold and the furniture size of the furniture model object are obtained, then a fourth area of the furniture model object in the restaurant object is calculated according to the furniture size, and then the fourth area is matched with the middle position of the restaurant object according to the preset placing condition, so as to obtain the position information of the furniture model object. Wherein the region condition comprises at least one of the distance between the second furniture model object and the wall object being greater than or equal to a preset distance threshold.
In a specific implementation, if the side lengths of the dining room are greater than or equal to the first size threshold, it indicates that the area of the dining room is large, and it may be considered whether the line space of the dining room is on one side or both sides of the dining table, and if the line space is on both sides, the furniture model object corresponding to the first size threshold may be a circular dining table and a dining chair matched with the circular dining table. A fourth area in the restaurant can then be calculated based on the dimensions of the table and the dining chair, and then matched to the intermediate position of the restaurant according to the placement conditions, so that the fourth area can be located as centrally as possible in the restaurant and the distance between the back of the dining chair and each wall object of the restaurant is maintained to be greater than or equal to a preset distance threshold. The action line space can be an area where a user moves in the restaurant, and no furniture is placed in the action line space.
For example, referring to fig. 3I, a seventh schematic view of the placement of furniture according to the embodiment of the present invention is shown, if the table is placed in the middle, the size of the table is a circular table with a radius of 1500mm, the dining chair is 450 × 550, and the predetermined distance threshold is 600 mm. According to the depth direction, the width of one side wall, namely an open wall and the width of a door (the whole wall is an open space), is arranged in a dining room, the two sides of the dining table and the dining chair are moving line spaces, and the dining table is placed in the center of the dining room; at this time, the width of the occupied space of the dining table is more than or equal to the width 1500 of the dining table, 550 × 2 of the dining chair and 600 × 2 of the side action spaces 3800mm, and the length of the occupied space of the dining table is 1500+ the width 550 × 2 of the dining chair and 600 × 2 of the side action spaces 3800 mm. Therefore, if the dining table needs to be placed in the middle, the first size threshold can be set to be 3800mm, and when the side length of the dining table is larger than or equal to 3800mm, the terminal can adopt the mode that the dining table is placed in the middle to select furniture of the dining table.
In another optional embodiment of the invention, for a restaurant with a smaller size, if both the first side length and the second side length are greater than or equal to a second size threshold, a furniture model object matched with the second size threshold is obtained; and taking corner areas corresponding to the two adjacent closed wall objects of the restaurant object as the position information of the furniture model object.
In a specific implementation, if the side length of the dining room is smaller than the second size threshold, the dining table and the dining chair are not placed in the dining room; and if the side length of the restaurant is larger than or equal to the second size threshold, placing a double dining table and a corresponding dining chair in the restaurant.
For example, referring to fig. 3J, which shows a schematic view eight illustrating the placement of furniture in an embodiment of the present invention, a dining room includes at least two closed walls, and the size of the wall is 1750mm (minimum size threshold for placing a dining table), so that the corner regions corresponding to the two adjacent closed walls can be used as the placement regions of the dining table and the dining chair.
It should be noted that the embodiment of the present invention includes but is not limited to the above examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art can set the method according to practical situations, and the present invention is not limited to this.
In the specific implementation, the terminal can select corresponding furniture according to the space size of the restaurant, and then determine the placement position of the furniture in the restaurant according to the furniture size, the wall type, the space size and the like, so that the furniture matched with the house type diagram is automatically recommended for the user according to the house type diagram input by the user, and full-automatic decoration is realized.
In an example, the furniture model object may include model objects such as a dining table, a dining chair, a dining cabinet, a card seat, a sofa, a bar stool, a bar table, a turntable, a lamp decoration, a garbage cabinet and a wine cabinet, and after the position corresponding to the lamp decoration and the lamp decoration is included in the furniture layout data, the terminal may show the lamp decoration while showing the dining table and the dining chair. Specifically, the number of the lamp decorations can be determined according to the length of the dining table, and when the length of the dining table is greater than or equal to a preset threshold value, the positions of the lamp decorations can be set according to the positions of the dining table, and the position relation between the lamp decorations and the dining table is kept as the geometric center alignment relation.
For example, referring to fig. 3K, a ninth schematic view of the placement of furniture in the embodiment of the present invention is shown, if the length of the table is greater than or equal to 1200mm, or greater than or equal to 1800mm, the restaurant ceiling lamp may be positioned 1500mm directly above the table according to the position of the table, aligned with the geometric center of the table. Meanwhile, the number of the ceiling lamps can be determined according to the length of the dining table, and the number of the ceiling lamps can be determined according to the length of the dining table, including the ceiling lamp arranged every 400mm and the like.
It should be noted that, the embodiment of the present invention includes, but is not limited to, the above examples, for example, the terminal may set the ceiling lamp at a central position of the ceiling of the restaurant according to the size of the restaurant, and the present invention is not limited to this.
Optionally, in a case that the space object is the toilet object (hereinafter referred to as a toilet), the wall object includes at least a first wall object and a second wall object, the first wall object includes at least a door object, and the size information includes a first side length of the door object, and a second side length of the first wall object and a third side length of the second wall object, and the step 1321 further includes:
step B1, calculating the moving line space of the toilet object according to the door body object and the first side length of the door body object;
step B2, obtaining a target decoration space of the toilet object according to the third side length of the second wall object and the line moving space;
step B3, acquiring a furniture model object matched with the second side length of the first wall object and the third side length of the second wall object;
and step B4, matching the furniture model object with the target decoration space according to preset decoration conditions to obtain the position information of the furniture model object.
In an optional embodiment of the present invention, after the user inputs the two-dimensional house type diagram, the terminal may identify the two-dimensional house type diagram to obtain a three-dimensional house space of the target house, and obtain a side length of a wall body and a side length of a wall body of the toilet and a width of an entrance and exit door, and may calculate a moving line space of the toilet object according to the door body object and the first side length, and then obtain a target decoration space of the toilet object according to the third side length and the moving line space, and obtain a furniture model object matched with the second side length and the third side length, and then match the furniture model object with the target decoration space according to a preset decoration condition to obtain position information of the furniture model object.
In specific implementation, the line moving space can be an area where a user moves in a toilet, no furniture is placed in the line moving space, the decoration space can be a space for placing furniture in the toilet, it can be understood that furniture can not be placed in the decoration space, and then the line moving space and the decoration space of the toilet can be divided by the terminal according to the condition of a wall body of the toilet, so that the area where the user moves and the area where the furniture is placed are determined.
Specifically, the access wall of the toilet may be used as a boundary, the access door may extend toward the inside of the toilet until a distance between the access door and the opposite wall of the access wall satisfies a set distance threshold, the extension may be stopped, and the extended area may be used as a movement space of the toilet and as a movement area of the user in the toilet. Then, the two second walls can be used as boundaries, and preset decoration thresholds are extended towards the interior of the toilet by the width of the second walls, so that initial decoration spaces corresponding to the second walls are obtained. At this time, since there may be an overlapping area between the initial decoration space and the line moving space, the overlapping area may be used as the line moving space to form an overall line moving space of the toilet, and the remaining initial decoration space may be used as a target decoration space, so that the terminal may select a corresponding home appliance for decoration in the target decoration space.
For example, the finishing threshold can be set to 600mm-1000mm for the extension of the finishing space, and a suitable area is set to facilitate the placement of furniture in the toilet in order to adapt to different furniture sizes. Referring to fig. 4A, which is a schematic view illustrating a moving line space of a toilet according to an embodiment of the present invention, when the toilet is communicated with a living room through an access door, the toilet may extend toward the inside of the toilet with the width of the access door with an access wall as a boundary until the distance between the access door and an opposite wall is 1000mm, and the extension is stopped, and the extended area is used as the moving line space.
Referring to fig. 4B, a second schematic diagram of the action line space in the embodiment of the present invention is shown, and if the distance between the entrance door and the opposite wall of the toilet is less than 1000mm, the area extending from the width of the door to the inside of the toilet to the opposite wall is used as the action line space.
When the line moving space of the toilet is obtained, the second wall body can be used as a boundary and extends towards the interior of the toilet according to the width of the second wall body so as to determine the decoration space of the toilet. Referring to fig. 4C, there is shown a schematic view of the finishing space in the embodiment of the present invention, which extends inward with the width of the second wall, and when extending to 600mm, if not overlapping with the space of the dynamic line, it may continue to extend inward until the extended width is 1000mm, and the extended area is used as the finishing space; if the extended part overlaps with the moving line space in the extending process, the overlapped area is used as the moving line space, in one case, the extended width is less than 600mm, the extended areas are all used as the moving line space, in another case, the extended width is more than 600mm, the part more than 600mm is overlapped with the moving line space, the overlapped part is used as the moving line space, and no furniture household appliance is placed in the moving line space.
Optionally, the width of the second wall body needs to be greater than or equal to 600mm, and then the second wall body extends into the toilet, otherwise, the size of the decoration space is too small, and corresponding furniture cannot be placed, so that by setting the decoration threshold and the distance threshold, the space of the toilet can be utilized more reasonably under the condition of realizing full-automatic decoration, and the decoration effect is ensured.
In addition, for the toilet, the target decoration space can be further divided into a first decoration area and a second decoration area, wherein the first decoration area can be a dry area, the second decoration area can be a wet area, and first type of model objects, namely furniture needing a dry environment, such as a washing machine, a washbasin and the like, can be placed in the first decoration area; a second type of model object, such as a shower head, a toilet, etc., can be placed in the second decoration area.
Specifically, the target decoration space can be divided into a dry area and a wet area according to preset area size information, the dry area can be communicated with the wet area through a target door object, and then the acquired furniture can be respectively matched with the dry area and the wet area according to decoration conditions, so that the furniture can be placed in the dry area, and the furniture can be placed in the wet area. The area size information may be size information set according to a finishing condition or a furniture size, for example, the area size information may include a dry area size of (700mm-1000mm) × (500mm-700mm), and then the area except the dry area is used as a wet area, and finishing is performed on the dry area and the wet area respectively according to division between a line space and a finishing space.
It should be noted that, the embodiment of the present invention includes but is not limited to the above examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art may set the length threshold, the distance threshold, the finishing threshold, and the like according to the wall, and the present invention is not limited to this.
In the specific implementation, after the area division of the toilet is finished, the matched furniture model can be obtained according to the size of the toilet, and the furniture model is matched with the target decoration space according to the preset decoration conditions, so that the position information of the furniture model in the toilet is obtained.
In order to decorate the toilet more reasonably, the width of the decoration wall corresponding to the decoration space can be obtained first, so as to determine the number of pieces of furniture, and preferably place which kind of furniture. Moreover, the positions of different pieces of furniture can be limited by decoration conditions, for example, a position close to the access door can be used as a wash basin, or a position opposite to the access door can be used as a wash basin; the washbasin and the closestool are furniture necessary for a toilet; taking the innermost position of the toilet as the position of a shower head, wherein the shower head is arranged in the middle of a shower area and is 2200mm away from the ground; the washing machine can be placed between the wash basin and the closestool and between the closestool and the shower area according to the depth of the toilet; and a certain distance is kept between two adjacent furniture household appliances, so that the selected furniture can be matched with the decoration space according to decoration conditions to obtain the position information of each furniture in the toilet.
In the specific implementation, the terminal can divide the line space and the decoration space of the toilet according to the entrance and exit and the size information of the toilet, then acquire the furniture matched with the size information according to the decoration conditions, match the furniture with the decoration space, and determine the position information of each furniture in the toilet, so that the furniture matched with the house type diagram is automatically recommended for a user according to the house type diagram input by the user, and the full-automatic decoration is realized.
In an example, referring to fig. 4D, a first schematic diagram of placing furniture in a toilet according to an embodiment of the present invention is shown, where the terminal obtains a layout that the toilet can be decorated in a "one-line" layout without separation of dry areas and wet areas according to the type and size of the wall, the position and width of the access door, and the like of the toilet. The washbasin and the closestool are furniture which need to be installed, wherein the back of the washbasin is placed against a wall, one side of the width of the washbasin is placed against the wall, the other side of the width of the washbasin is reserved for 100mm-400mm, then the next model is placed, and 100 mm-infinite spaces are reserved on two sides of the closestool; the shower head is unnecessary furniture and can be arranged at a position 800mm away from the innermost side wall of the toilet, and the size of the shower head is 800mm at minimum; the shower head is arranged in the shower room in the middle; the distance between the top end of the shower head and the ground is 2200 mm; the ceiling lamp is located in the middle of the ceiling of the toilet.
In another example, referring to fig. 4E, a second schematic view of placing furniture in a toilet according to an embodiment of the present invention is shown, where one wall of the toilet has a window, and the toilet can be finished in a "line type" layout without wet and dry area separation. The washbasin and the closestool are furniture which need to be installed, wherein the back of the washbasin is placed against a wall, one side of the width of the washbasin is placed against the wall, the other side of the width of the washbasin is reserved for 100mm-400mm, then the next model is placed, and 100 mm-infinite spaces are reserved on two sides of the closestool; the shower head is unnecessary furniture and can be arranged at a position 800mm away from the innermost side wall of the toilet, and the size of the shower head is 800mm at minimum; the shower head is arranged in the shower room in the middle; the distance between the top end of the shower head and the ground is 2200mm, and if a window is arranged on the wall surface on which the shower head is arranged, the shower head is arranged on the adjacent wall surface; the ceiling lamp is located in the middle of the ceiling of the toilet. In addition, the wash basin with different sizes can be selected according to different lengths of the toilet, for example, when the length of the toilet is [2500mm, 2900mm ], the wash basin with the width of 800mm can be selected; when the length of the toilet is 2300mm and 2500mm, a wash basin with a width of 600mm may be selected, and the present invention is not limited thereto.
In another example, referring to fig. 4F, a third schematic view of placing furniture in a toilet according to an embodiment of the present invention is shown, where the length of the toilet is less than or equal to 2300mm, and the toilet can be finished in a "line-type" layout without separation of wet and dry areas. The washbasin and the closestool are furniture which need to be installed, wherein the back of the washbasin is placed against a wall, one side of the width of the washbasin is placed against the wall, the other side of the width of the washbasin is reserved for 100mm-400mm, then the next model is placed, and 100 mm-infinite spaces are reserved on two sides of the closestool.
In another example, referring to fig. 4G, a schematic diagram of placing furniture in a toilet according to an embodiment of the present invention is shown, where when the width of the toilet is smaller than or equal to 1300, 500mm may be reserved as the width of the door and the space of the moving line, and a layout manner of "one line type" is adopted for decoration, and there is no separation of dry areas and wet areas. The positions of the wash basin, the toilet and the shower head can be referred to the description of the above examples, and the description is omitted.
In another example, referring to fig. 4H, 4I and 4J, schematic diagrams five, six and seven of placing furniture in a toilet according to an embodiment of the present invention are respectively shown, where a wall opposite to an access door is used as a decoration wall to place furniture, and the access door may be sequentially arranged on the right, middle and left sides in the order from right to left, and a wash basin and a toilet are necessary furniture, where the back of the wash basin is placed against a wall, one side of the width is placed against the wall, the other side of the width is reserved for 100mm to 400mm, and then a next model is placed, and both sides of the toilet are reserved for 100mm to infinite space; the shower head is unnecessary furniture and can be arranged at a position 800mm away from the innermost side wall of the toilet, and the size of the shower head is 800mm at minimum; the shower head is arranged in the shower room in the middle; the distance between the top end of the shower head and the ground is 2200 mm.
In another example, when the length of the toilet is between 600mm-1900mm, a 'two-line' layout mode can be adopted, and a layout mode without separation of dry areas and wet areas is adopted. Specifically, a wash basin can be arranged on one wall, and a closestool can be arranged on the other wall. In addition, referring to fig. 4K, a schematic view eight illustrating the placement of furniture according to an embodiment of the present invention is shown, if the length of the toilet is between 1900mm to 2300mm, a wash basin, a toilet, and a shower head may be placed on one wall, and a washing machine may be placed on the other wall.
In another example, referring to fig. 4L, a schematic diagram nine of furniture placement in an embodiment of the present invention is shown, and a layout manner of an "L-shape" may be adopted to place furniture on an opposite wall at an entrance and an exit of a toilet. Specifically, a wash basin and a closestool can be arranged on the opposite wall of the access door, and a shower head is arranged on the wall where the access door is positioned; or, the closestool and the shower head are arranged on the opposite wall of the access door, the wash basin is arranged on the wall body on the right hand side or the left hand side of the access door, and the like.
In another example, referring to fig. 4M and 4N, schematic diagrams of placing furniture are respectively shown, wherein a bathroom can be divided into a dry area and a wet area, a wash basin, a washing machine and the like can be placed in the dry area, and a shower head, a toilet and the like can be placed in the wet area. Specifically, a wash basin and a closestool can be arranged near the outer side; the shower room and the washing machine are placed on the inner side, wherein the two sides of the washing machine are kept at 100mm, and the washing machine is placed between the wash basin and the closestool or between the closestool and the shower room according to the depth of the toilet.
It should be noted that, the embodiment of the present invention includes, but is not limited to, the above examples, and for furniture in a toilet, a bathtub, a mirror cabinet, and the like may also be included, and the terminal may select a suitable furniture to perform full-automatic decoration according to spatial attributes of the toilet, and the present invention is not limited thereto.
In a specific implementation, the terminal may obtain at least one furniture layout data according to the wall object and the size information of the toilet, and it may be understood that as the size of the toilet increases, the number of the furniture layout data may increase, that is, the larger the size is, the more the furniture layout selectable modes are, and thus, for the toilet with the larger size, the terminal may correspond to at least two furniture layout data.
Optionally, in a case that the space object is the kitchen object (hereinafter referred to as a kitchen), the wall object includes an access wall object, and the access wall object includes at least a door object, and the step 1321 may further include:
step C1, if the kitchen object comprises an access wall object and the side length of the access wall object is greater than or equal to a preset length threshold, extending the side length of the door object towards the interior of the kitchen object until the distance between the extended area and the wall object opposite to the door object is equal to a preset distance threshold, stopping extending, and taking the extended area as a line moving space;
step C2, taking the region of the kitchen object except the line moving space as the decoration space of the kitchen object, and taking the wall object corresponding to the decoration space as the decoration wall object;
step C3, obtaining a furniture model object matched with the side length of the decoration wall object;
and step C4, matching the furniture model object with the decoration wall object according to preset decoration conditions to obtain the position information of the furniture model object.
In an optional embodiment of the present invention, after the user inputs the two-dimensional house type diagram, the terminal may identify the two-dimensional house type diagram to obtain a three-dimensional house space of the target house, and obtain the wall body of the kitchen and the size of the wall body, and if the kitchen object includes the wall body object and the side length of the wall body object is greater than or equal to the preset length threshold, extend the kitchen object with the side length of the door body object until the distance between the extended area and the wall body object opposite to the door body object is equal to the preset distance threshold, stop the extension, and use the extended area as the line moving space. If the kitchen object comprises an open wall object and the side length of the open wall object is greater than or equal to a preset length threshold, obtaining an access line from the open wall object according to a preset decoration threshold, extending the access line towards the interior of the kitchen object by the side length of the access line until the distance between the extended area and the wall object opposite to the open wall object is equal to a preset distance threshold, stopping extension, and taking the extended area as a line moving space.
In specific implementation, the line moving space can be an area where a user moves in a kitchen, and no furniture is placed in the line moving space, so that the line moving space and the decoration space of the kitchen can be divided by the terminal according to the condition of a kitchen wall, and the area where the user moves and the area where the furniture is placed are determined.
Specifically, when the kitchen in the three-dimensional house object includes an access door, and the length of the wall where the access door is located is greater than or equal to a preset length threshold, the door width may be used to extend towards the interior of the kitchen, and when the distance between the extended area and the wall opposite to the door is equal to the preset distance threshold, the extension is stopped, and the extended area is used as a moving line space of the kitchen. In one case, if there is only one access door in the kitchen (e.g., a door in communication with a restaurant), a space for a live line may be obtained by extending the width of the door; in another case, if the kitchen includes at least two access doors (e.g., a door communicating with a restaurant and a door communicating with a balcony), the access doors may extend toward the interior of the kitchen by the width of the doors, respectively, and stop extending until the distance between the extended area and the wall opposite to the door is equal to a preset distance threshold, so that a plurality of motion line spaces may be obtained, and then the motion line spaces respectively extending may be combined to form an overall target motion line space of the kitchen.
For example, referring to fig. 5A, a first schematic diagram of a moving line space of a kitchen in an embodiment of the present invention is shown, where the kitchen includes a wall body that enters and exits on one side, and the length of the wall body that enters and exits is greater than or equal to 2000mm, the kitchen may extend into the kitchen by the width of a door until the distance from the wall body opposite to the door is 800mm, the kitchen may stop extending, and the extended area may be used as the moving line space. If the kitchen comprises two access walls, referring to fig. 5B, a schematic diagram ii of the movable line space of the kitchen in the embodiment of the present invention is shown, the kitchen comprises an access door i communicated with the restaurant and an access door ii communicated with the balcony, the access door i and the access door ii can respectively extend towards the inside of the kitchen by the width of the access door i and the access door ii to obtain two movable line spaces, and then the two movable line spaces are combined to form the whole movable line space inside the kitchen. For the case that three sides of the wall body come in and go out, the process of forming the moving line space of two sides of the wall body come in and go out can be referred to, and the description is omitted here. In addition, referring to fig. 5C, a third schematic diagram of the line moving space of the kitchen in the embodiment of the present invention is shown, where the two line moving spaces are intersected to form an integral "line moving in and out space", and the "line moving in and out space" is mostly overlapped with one of the decoration spaces 4, so that the decoration space 4 is not decorated, and only the spaces 1, 2, and 3 are decorated.
In addition, when the kitchen comprises at least one wall body which is an open wall body, corresponding widths can be reserved on two sides of the open wall body according to a decoration threshold value to obtain an access line positioned in the middle of the open wall body, the length of the access line is extended towards the interior of the kitchen until the distance between the extended area and a wall body object opposite to the open wall body object is equal to a preset distance threshold value, the extension is stopped, and the extended area is used as a line moving space.
For example, if the kitchen includes an open wall (i.e., one side of the kitchen is an open space), and the length of the open wall is greater than or equal to 2000, 600mm of decoration width is reserved on each side of the open wall, the width of the remaining part in the middle of the open wall is taken as the width of the access line, the open wall is extended toward the interior of the kitchen by the width, and when the distance from the opposite wall is 800mm, the extension is stopped, and the extended area is taken as the line moving space. If the kitchen includes two open walls, reference may be made to the above-mentioned situation of the line-moving space combination, which is not described herein again.
It should be noted that, the embodiment of the present invention includes but is not limited to the above examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art may set the length threshold, the distance threshold, the finishing threshold, and the like according to the wall, and the present invention is not limited to this.
In the embodiment of the invention, after the terminal divides the kitchen into the line space, the region except the line space in the kitchen object can be used as the decoration space of the kitchen object, the wall object corresponding to the decoration space is used as the decoration wall object, then the furniture model object matched with the side length of the decoration wall object and the decoration condition aiming at the furniture model object are obtained, and then the furniture model object is matched with the decoration wall object according to the decoration condition, so that the position information of the furniture model object is obtained.
The decoration space can be a space for placing furniture in a kitchen, and in order to decorate the kitchen more reasonably, the side length of a decoration wall body can be obtained firstly, so that which kind of furniture is placed can be determined. And, for different furniture, the position can be limited by decoration conditions.
Alternatively, the decoration condition may be a condition set according to a position where the kitchen furniture appliance is placed in an actual application, for example, for a gas stove, a window needs to be avoided, or the decoration condition cannot be right below the window; the gas stove and the range hood need to be decorated up and down symmetrically, and the gas stove is arranged at a position corresponding to the outer wall; the refrigerator can be placed close to the door; a cupboard or a filling cube can be inserted between the water tank and the gas stove; the ceiling lamp can be arranged in the middle of the ceiling of the kitchen; the down lamps can be arranged below the hanging cabinet, and different numbers of the down lamps are arranged according to a certain interval distance; the hanging cabinet is correspondingly arranged with the cabinet and the sink cabinet; a middle island operating platform is arranged on one side of an open space of a kitchen; and certain distance gaps are reserved among different pieces of furniture, so that the selected furniture can be matched with a decorated wall according to decoration conditions, and the position information of each piece of furniture in a kitchen is obtained.
In an optional embodiment of the present invention, after the user inputs the two-dimensional house type map, the terminal may identify the two-dimensional house type map to obtain a three-dimensional house space of the target house and obtain a space attribute of the kitchen, and then may use a closed wall object with a largest side length in the kitchen objects as the target wall object and match the target wall object with other wall objects to obtain at least one decorated wall object of the kitchen objects.
In the specific implementation, the decoration space of the kitchen can be determined according to the type and the size of the wall body of the kitchen except that the line moving space is determined firstly and then the decoration space of the kitchen is determined according to the line moving space. Specifically, the side lengths of all walls in the kitchen can be acquired first, and the wall with the length larger than or equal to a preset threshold value is selected as the wall to be processed, wherein the preset threshold value can be set according to the sizes of the water tank and the gas stove. And then, taking the closed wall with the longest side length as a target wall from the walls to be processed, and matching the target wall with other walls to be processed, thereby determining the decoration wall.
Specifically, the target wall body can be sequentially matched with adjacent and opposite wall bodies, and if the distance between the target wall body and the door body entering and exiting from the wall body is greater than or equal to a first space threshold value, the target wall body is used as a decoration wall body; and if the closed wall body adjacent to the decoration wall body exists, the closed wall body adjacent to the decoration wall body is also used as the decoration wall body. The position relations among the decoration walls, the decoration walls and the non-decoration walls meet the specified space conditions, and the space conditions can include that the distance between the decoration walls and the corresponding non-decoration walls is larger than or equal to a second space threshold value; the distance between the finished wall and the opposite finished wall is greater than or equal to at least one of the third spatial thresholds.
For example, for walls of a kitchen, a closed wall with a length of 910mm or more may be selected as a wall to be treated, then, from among the walls, the longest wall is selected as a target wall, and then the target wall is collided with the remaining walls in sequence, and the wall left after the collision is used as a finishing wall. Specifically, if the wall body adjacent to the target wall body is an in-out wall body, the width of 600mm collides with a door of the in-out wall body, if the distance between the target wall body and the door is greater than or equal to 600mm, the target wall body can be used as a decoration wall body, and if the distance is less than 600mm, the target wall body is used as a non-decoration wall body; if the wall body adjacent to the target wall body is a closed wall body, both the target wall body and the closed wall body adjacent to the target wall body can be used as decoration wall bodies; and if the closed wall body adjacent to the decoration wall body exists, the closed wall body is also used as the decoration wall body.
The position relation between the decoration wall and the decoration wall, and between the decoration wall and the non-decoration wall can satisfy the following conditions: the distance between the decoration wall and the kitchen door is more than or equal to 600 mm; the distance between the decoration wall and the opposite decoration wall is more than or equal to 2200 mm; the distance between the decorated wall and the opposite non-decorated wall is greater than or equal to 1000mm, and the like. Wherein 600mm may be the width of the door; 2200mm may include a width of both sides finishing space of 600mm and a width of user movement of 1000mm, etc.
It should be noted that the embodiment of the present invention includes, but is not limited to, the above examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art may set the specified conditions according to different decoration styles, and the present invention is not limited to this.
After at least one decoration wall of a kitchen is obtained, a decoration space matched with the decoration wall can be calculated according to a preset decoration threshold value, then a furniture model matched with the side length of the decoration wall is obtained, and then the furniture model is matched with the decoration wall according to preset decoration conditions to obtain the position information of the furniture model.
Specifically, the finishing threshold may be set according to the width, ergonomics, design style, etc. used for the furniture size, and may be set to 600mm to 800mm, for example. After at least one decoration wall is determined from the kitchen, the decoration wall can be used as a boundary, a distance corresponding to a decoration threshold value is extended towards the interior of the kitchen, and the extended area is used as a decoration space. And then counting the number of decoration walls corresponding to the decoration space, and acquiring the furniture matched with the decoration space by adopting the number and the side length of the decoration walls. And finally, matching the furniture with a decoration wall in a decoration space according to decoration conditions, thereby obtaining the position information of the furniture model.
For example, for a gas stove, it needs to avoid a window, or cannot be under the window, and then the gas stove can be matched with each decoration wall, and if the decoration wall is a wall including a window, the window needs to be avoided, and a certain distance is kept from other furniture, so as to obtain the position of the gas stove. For other furniture; for a refrigerator, it may be placed at a position closest to a door, and the like. Similarly, the furniture can be matched with a decoration wall body of a decoration space according to decoration conditions to obtain the position of the furniture, so that the full-automatic decoration of the house is realized.
In an example, corresponding furniture can be obtained according to the number and the side length of the decoration walls in the decoration space, and specifically, if one side of the decoration space corresponds to one decoration wall, and the side length of the decoration wall is greater than or equal to a first side length threshold and is less than a second side length threshold, at least one furniture model matched with the decoration space is obtained; if the decoration space corresponds to a decoration wall body on one side, and the side length of the decoration wall body is equal to the second side length threshold value, at least two furniture models matched with the decoration space are obtained; and if the decoration space corresponds to a decoration wall body and the side length of the decoration wall body is greater than the second side length threshold value, acquiring at least two furniture models matched with the decoration space.
If only one decoration wall body is arranged in the decoration space, the kitchen can be decorated into a linear layout mode, the terminal can acquire the furniture matched with the length according to the length of the decoration wall body, including the type of the furniture, the number of the furniture and the like, and then the position of each furniture in the kitchen is determined according to decoration conditions.
For example, the first edge length threshold may be 1820mm and the second edge length threshold may be 2620 mm. Furniture can be placed on only one wall body in the decoration space of the kitchen, and if the length of the wall body is between (1820 mm, 2620mm), a water tank and a gas stove can be placed according to the size of the furniture; if the length of the wall body is 2620mm, a water tank, a gas stove and a refrigerator can be placed; if the length of wall body is greater than 2620mm, then outside obtaining furniture household appliances such as basin, gas range and refrigerator, can also obtain cupboard or filling cube, can be between basin and gas range cupboard or filling cube etc..
If the decoration space corresponds to two-sided decoration wall bodies, the kitchen decoration can be in a two-line type or L-shaped layout mode, and therefore the terminal can obtain corresponding furniture according to the length of the wall bodies. Specifically, if the decoration space corresponds to two decoration walls, and the side lengths of the two decoration walls are smaller than a first side length threshold value, a first furniture model corresponding to the decoration space for the first decoration wall and a second furniture model corresponding to the decoration space for the second decoration wall are obtained; if the decoration space corresponds to two decoration walls, the side length of the first decoration wall is greater than or equal to a first side length threshold value, and the side length of the second decoration wall is smaller than a first side length threshold value, at least one first furniture model of the decoration space corresponding to the first decoration wall and a second furniture model of the decoration space corresponding to the second decoration wall are obtained; if the decoration space corresponds to two decoration walls, the side length of the first decoration wall is larger than or equal to the first side length threshold, and the side length of the second decoration wall is larger than or equal to the first side length threshold, at least one first furniture model corresponding to the decoration space of the first decoration wall and at least one second furniture model corresponding to the decoration space of the second decoration wall are obtained.
For example, when the lengths of two decorative walls in the decorative space are both less than 1820mm, only a water tank and a gas stove are placed, one decorative wall is placed on one side, and the gas stove is kept away from a window; if the length of one of the decorated walls is greater than or equal to 1820mm, and the length of the other decorated wall is less than 1820mm, two pieces of furniture can be placed on one of the decorated walls, and one piece of furniture can be placed on the other side, so that the terminal can obtain corresponding furniture according to the corresponding size; if the lengths of the two decorated walls are both greater than or equal to 1820mm, two pieces of furniture can be placed, the terminal can take the corresponding position of the wall close to the kitchen access door as the position of the refrigerator, and when the wall where the refrigerator is located is longer, the corresponding position of the wall is taken as the positions of the water tank and the gas stove; and when the other wall is longer, the position corresponding to the other wall is used as the position of the water tank and the gas stove, and the like.
If the decoration space corresponds to a three-side decoration wall body, the kitchen decoration can be in a U-shaped or island-shaped layout mode, and therefore the terminal can obtain corresponding furniture according to the length of the wall body. Specifically, if the decoration space corresponds to a three-sided decoration wall, at least two furniture models matched with the decoration space are obtained; and if the decoration space corresponds to a three-side decoration wall body and the side length of the kitchen is greater than or equal to a third side length threshold value, acquiring at least two furniture models matched with the decoration space and a middle island model.
It should be noted that the embodiment of the present invention includes but is not limited to the above examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art can set the method according to practical situations, and the present invention is not limited to this.
In the specific implementation, the terminal can select corresponding furniture according to the space size of the kitchen, and then determine the placement position of the furniture in the kitchen according to decoration conditions, wall types, space sizes and the like, so that the furniture matched with the house type diagram is automatically recommended for the user according to the house type diagram input by the user, and full-automatic decoration is realized.
In an example, referring to fig. 5D, a first schematic diagram of placing kitchen furniture is shown, and according to the type and size of a wall of a kitchen, a terminal obtains that the kitchen can be decorated in a "line type" layout manner. Specifically, the gas stove is closest to the door, the water tank is next, the operating platform is located between the gas stove and the water tank, the wall cabinet is placed corresponding to the cabinet and the water tank cabinet, the height from the ground to the bottom of the wall cabinet is 750 (the height of the cabinet) +750 (the height of an operating space above the cabinet) is 1500mm, the range hood is placed corresponding to the gas stove, and the range hood is aligned in the middle; the distance between the bottom of the range hood and the top of the gas stove is 500 mm; the range hood and the gas stove are correspondingly arranged and aligned in the middle; the distance between the bottom of the smoke exhaust ventilator and the top of the gas stove is 500 mm. Meanwhile, the gas stove avoids the window or is not arranged below the window; the ceiling lamp of the kitchen is arranged in the middle of the ceiling of the kitchen; the down lamp can set up in the wall cabinet below, sets up one per 800mm, is less than 800mm and only sets up one, is less than 1600 more than 800mm and sets up one, puts the second again when being greater than 1600.
In another example, referring to fig. 5E, a second schematic view of the placement of kitchen furniture according to an embodiment of the present invention is shown, and the kitchen can be finished in a "two-line" layout. Specifically, the refrigerator may be located at a corner of the right hand side closest to the doorway, the minimum distance from the corner may be 100mm, and other settings may refer to the settings of the above example, which is not described herein again.
In another example, referring to fig. 5F, a third schematic view of the placement of kitchen furniture in the embodiment of the present invention is shown, and a kitchen may be finished in an "L-shaped" layout. Specifically, the refrigerator is positioned at the corner of the right hand side closest to the doorway, and the minimum distance from the corner is 100 mm; the gas stove is positioned on the outer wall side, and the minimum distance from the gas stove to the refrigerator is 100 mm; the water tank is positioned on a wall beside the gas stove wall; the wall cabinet is placed corresponding to cupboard, basin cabinet, and the wall cabinet bottom is 750 (cupboard height) +750 (cupboard top operating space height) ═ 1500mm from the ground height, and the setting of above-mentioned example can be referred to in other settings, and is no longer described herein.
In another example, referring to fig. 5G, a fourth schematic view of the placement of kitchen furniture in the embodiment of the present invention is shown, and a kitchen may be finished in a "U-shaped" layout. Specifically, the refrigerator is positioned at the corner of the right hand side closest to the doorway, and the minimum distance from the corner is 100 mm; the gas stove is positioned on the outer wall side, and the minimum distance from the gas stove to the refrigerator is 100 mm; the water tank is positioned in the middle of the wall beside the gas stove wall; the wall cabinet is placed corresponding to cupboard, basin cabinet, and the wall cabinet bottom is 750 (cupboard height) +750 (cupboard top operating space height) ═ 1500mm from the ground height, and the setting of above-mentioned example can be referred to in other settings, and is no longer described herein.
In another example, referring to fig. 5H, a fifth schematic view of the placement of kitchen furniture in the embodiment of the present invention is shown, and a kitchen may be finished in a "U-shaped" layout. Specifically, if the width (or length) of the kitchen is greater than or equal to 2500mm, a center island type layout mode may be adopted, a center island operating platform is arranged on one side of the open wall of the kitchen, and the other settings may refer to the settings of the above example, which is not described herein again.
It should be noted that the embodiment of the present invention includes but is not limited to the above examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art can set the method according to practical situations, and the present invention is not limited to this.
In an optional embodiment of the present invention, if the kitchen object includes an open wall object and does not include an access wall object, a model size for accommodating the model object is obtained, and a moving door object matching the model size is obtained, and then the moving door object is displayed in the open wall object of the kitchen object.
In a specific implementation, the receiving model may be a cabinet, which may occupy part of the door space depending on the width of the door in the kitchen, in case of installing the cabinet. In this case, the size of the cabinet can be obtained, the movable door matched with the size can be obtained, and the movable door can be displayed on the open wall of the kitchen, so that better decoration effect can be brought by reasonably installing the movable door for the kitchen, a user can sense different decoration styles in advance, and user experience is improved.
For example, referring to fig. 5I, a schematic diagram of a mobile door in an embodiment of the present invention is shown, where a kitchen includes a line space and a decoration space, where a sink, a cabinet, a gas stove, a refrigerator, and the like are placed in the decoration space, and then the mobile door matching the size of the cabinet can be obtained according to the size of the cabinet, and the mobile door is installed at a connection between the kitchen and another space object, so as to bring a better decoration effect to the kitchen and improve user experience.
Optionally, in an embodiment of the present invention, in a case that the space object is the living room object, the size information includes a side length of the wall object, and the step 1321 may further include:
d1, obtaining a target wall object of the living room object according to the wall type of the wall object and the side length of the wall object;
d2, acquiring a furniture model object matched with the side length of the target wall object;
d3, matching the furniture model object with the target wall object according to preset decoration conditions to obtain the position information of the furniture model object.
In an optional embodiment of the present invention, after the user inputs the two-dimensional house type map, the terminal may identify the two-dimensional house type map to obtain a three-dimensional house space of the target house, and obtain a wall type of the living room and a side length of the wall, and then may obtain a target wall object of the living room object according to the wall type of the wall object and the side length of the wall object, and obtain a furniture model object matched with the side length of the target wall object, and then match the furniture model object with the target wall object according to a preset decoration condition to obtain position information of the furniture model object.
The decoration condition can be set according to the position, design style, furniture combination and the like of the household appliances of the living room furniture in practical application. For example, a longer solid wall body is used as a backrest wall of a sofa, and the opposite side wall is used as a television cabinet or a backrest wall of a television; the distance between the tea table and the sofa is kept to be larger than or equal to 400 mm; the distance between the tea table and the television cabinet is more than or equal to 600mm, and when the distance is less than 600mm, the television cabinet is abandoned; the entrance door and the common entrance door extend to a 600mm area inside the living room, no furniture is placed, and the entrance door and the common entrance door serve as a line moving space which can be an area where a user moves in a space object; the television can not be hung on a window, a door or an open wall (open space), and the distance between the two sides of the television and the window, the door or the open wall/open space is more than or equal to 300 mm; the longest sofa capable of being placed is preferentially placed according to the width of the living room, and if a corner cabinet exists in redundant space, the corner cabinet is placed; according to the length of the sofa, the number of decorative pictures placed on the sofa back against the wall is determined.
In a specific implementation, if the target house includes a guest restaurant, the terminal may first divide the guest restaurant to obtain areas such as a living room, a restaurant, an entrance, an aisle, and the like, then determine wall types of walls of the living room, such as an entrance wall, an exit wall, a closed wall, and an open wall, and obtain side lengths of the walls, so as to generate furniture layout data of the living room according to the wall types and the side lengths of the walls.
Specifically, the parallel walls in the living room may be grouped to obtain the decoration walls parallel to each other, where the decoration walls may be walls having solid walls in the living room, such as an entrance wall and an exit wall and a closed wall. And then, the decoration walls can be classified according to the types and the side lengths of the walls, wherein one wall is used as a wall for placing a sofa, the other wall is used as a wall for placing a television cabinet, and the like.
In one example, if the decoration wall objects parallel to each other are all closed wall objects with different side lengths, the closed wall object with the longer side length is used as a first target wall object, and the other closed wall object is used as a second target wall object; and if the decoration wall objects which are parallel to each other are closed wall objects with the same side length, taking the closed wall object of the entrance door far away from the target house object as a first target wall object, and taking the other closed wall object as a second target wall object.
In another example, if the finishing wall objects that are parallel to each other include a closing wall object and an access wall object, the closing wall object is taken as a first target wall object, and the access wall object is taken as a second target wall object.
In another example, if the distance between the finishing wall objects parallel to each other is greater than or equal to a first preset distance threshold, a closed wall object of an entrance door far from the target house object is taken as a first target wall object, and another closed wall object is taken as a second target wall object; or, the closed wall object is taken as a first target wall object, and the access wall object is taken as a second target wall object.
Wherein, first target wall body can be for being used for putting the wall of leaning on of sofa etc. and the second fitment wall body can be for being used for putting the wall of leaning on of TV bench etc.. Specifically, if the side lengths of the first target wall and the second target wall are different, and the region where the sofa is located is used as a region where people move, so that the requirement of the sofa on the space size is higher, the wall with the longer side length can be used as a sofa back wall, and the wall with the shorter side length can be used as a television cabinet or a television back wall; if the side lengths of the first target wall body and the second target wall body are the same or cannot be accurately identified, in one case, any wall body can be used as a sofa back-to-wall, in the other case, the wall body close to the entrance door can be used as a television cabinet or a television back-to-wall, and the wall body far away from the entrance door can be used as the sofa back-to-wall; if the two side decoration walls comprise one side closed wall and one side in-out wall, the closed wall can be used as the back wall of the sofa, and the in-out wall can be used as the back wall of the television or the television cabinet.
It should be noted that the sofa may be classified into a straight shape, an L shape, a U-like shape and other different specifications and formed sofas according to the shape of the sofa, the sofa back-to-back wall described in this embodiment may be a wall body on which the main body portion of the sofa is leaned, and the sofa back-to-back wall may include at least one wall body, for example, the sofa may be backed by one closed wall body, one open wall body and the like, which is not limited in the present invention.
In another optional embodiment of the present invention, when the size of the living room meets the preset threshold, it may be determined that the living room belongs to a large cross hall, and then the living room may be automatically decorated in a layout manner of the large cross hall. Specifically, if the distance between the first target wall object and the second target wall object is greater than or equal to a preset distance threshold, the living room object is divided into at least two furniture display areas according to a preset decoration condition, then a furniture model object matched with the side length of the target wall object (including the first target wall object and the second target wall object) is obtained, and then the furniture model object is respectively matched with the at least two furniture display areas according to the decoration condition, so that the position information of the furniture model object is obtained.
In one example, if the distance between the first target wall and the second target wall is greater than or equal to a preset threshold, it can be determined that the living room belongs to a large cross hall, and the living room is automatically decorated by adopting a furniture layout mode of the large cross hall. When the living room belongs to a big cross-hall, according to the set decoration conditions, the first target wall body can be used as a back wall of other furniture, such as a bookcase, instead of only being used as the back wall of a sofa; the sofa can be placed at a central position of the living room, and the placement position of the sofa can be determined according to the size of each piece of furniture.
It should be noted that the embodiment of the present invention includes but is not limited to the above examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art can set the method according to practical situations, and the present invention is not limited to this.
In the specific implementation, the terminal can select corresponding furniture according to the space size of the living room, and then determine the placement position of the furniture in the living room according to decoration conditions, wall types, space sizes and the like, so that the furniture matched with the house type diagram is automatically recommended for the user according to the house type diagram input by the user, and full-automatic decoration is realized.
In one example, the furniture model object may include a lamp model object, and if the lamp model object is a ceiling lamp model object, the ceiling lamp model object may be displayed at a middle position of the top surface of the living room; if the lamp model object is a down lamp model object (also called a down lamp object), the down lamp model objects with the number corresponding to the side length of the target wall object can be displayed at the middle position of the top surface of the wall of the target wall object. Wherein, the width between two down lamps can be greater than or equal to certain threshold value, for example, the distance between two down lamps is 1500mm and so on.
In an optional embodiment of the invention, the terminal may further determine whether to decorate the ceiling for the living room according to the size of the living room, specifically, if the side length of the wall body of the living room is greater than or equal to the preset size threshold, the ceiling width information matched with the side length of the wall body is obtained, and the corresponding ceiling is displayed in the living room according to the ceiling width information. For example, the size threshold may be 2500mm, and a suspended ceiling may be displayed in the living room when the width or length of the living room is greater than or equal to 2500 mm.
In one example, if the living room is a rectangular living room, the ceiling width may be set to 400mm if the living room width is greater than 3500 mm; if the rectangular living room is adopted, the width of the suspended ceiling can be set to be 500mm if the width of the living room is larger than 4000 mm; if for square sitting room, if the width is greater than 3500mm, the furred ceiling width can set up to 400mm, if the width is greater than 4000mm, the furred ceiling width can set up to 500mm etc. to the terminal can judge whether for the sitting room fitment furred ceiling through the size information in sitting room, for the user demonstrates different fitment schemes, improves user experience.
In another example, referring to fig. 6A and 6B, schematic diagrams of a first and a second placing of furniture in a living room according to an embodiment of the present invention are shown, in which a sofa with a corresponding size and a corner cabinet, a carpet and a decorative painting corresponding to the sofa can be placed on one side of the furniture, and a television is placed on the opposite side of the wall. Specifically, when the sofa is placed, the sofa is placed in a large size, the corner cabinets are placed in the residual space, and the distance between each corner cabinet and the sofa is 100 mm; if no space is arranged, the corner table can be abandoned; the distance between the sofa and the tea table is 400 mm; the distance between the carpet and the television is more than or equal to 600mm, and if the distance is less than 600mm, the television is removed; the width of the television and the width of the sofa are centered, and if the television cannot be placed, the television and the solid wall can be placed in the center. In addition, the ceiling lamp can be arranged in the middle of the ceiling of the living room; for the decorative painting, when 1800< the width of the sofa <2700, a single decorative painting is placed; when 2700< the width of the sofa <3600, two decorative paintings are placed; when the width of the sofa is more than or equal to 3600, placing at least three decorative paintings, wherein the decorative paintings are centered with the width of the sofa and keep 1200mm away from the ground; the carpet can be determined according to the size of the sofa and is centered with the sofa; in one case, if one wall of the living room is a glass wall communicated with the balcony, the glass wall can be provided with a curtain which is as wide as the glass wall, and the same applies to the window.
In another example, referring to fig. 6C, a third schematic diagram of the placement of furniture in a living room according to an embodiment of the present invention is shown, in which a decorative wall on one side can be used to place a sofa with a corresponding size, a corner cabinet, a tea table, and a decorative picture corresponding to the sofa, and another sofa matching with the sofa against the wall is placed in a corresponding position in the living room, and so on. Specifically, the sofa: placing 3600mm by 1600mm and the corner 700 mm; tea table: the distance between the sofa and the sofa is 400mm, and the distance between the sofa and the sofa is 400 mm; corner cabinet: placing 500x500 and the side edge distance of the sofa is 100 mm; a television: the wall and the television cabinet are centered, and the distance from the lower edge to the ground is 1000; a television cabinet: the width of the wall and the wall surface is centered; carpet: size 3600x1800, centered with the sofa; decorating and hanging the picture: the lower edge is 1200mm away from the ground; a floor lamp: the sofa is placed against a wall, the width of the base is 240mm, and the base is aligned with the side face of the sofa; ceiling lamp in living room: centered with the roof; the down lamp: the distance width between the two down lamps is more than or equal to 1500mm and is centered with the width of the suspended ceiling; curtain: the same width as the wall with the window; air conditioning: placing the window against the wall surface of the window with the distance of 300mm, aligning the top surface with the ceiling and the like.
In another example, referring to fig. 6D and 6E, schematic diagrams of placing furniture in a living room are shown, wherein one side of the furniture can be decorated with a wall to place a sofa with a corresponding size, a corner cabinet, a tea table and a decorative picture corresponding to the sofa, another sofa matching with the sofa against the wall is placed in a corresponding position in the living room, and a television cabinet or a television is placed on the other side of the wall. Specifically, the sofa: 3600mm and 900mm are placed against the wall; tea table: the distance between the sofa and the sofa is 400 mm; a television: the wall and the television cabinet are centered, and the distance from the lower edge to the ground is 1000 mm; carpet: the size is 3600mm 1600mm, and the sofa is centered; decorating and hanging the picture: the lower edge is 1200mm away from the ground; ceiling lamp in living room: centered with the roof; the down lamp: the distance width between the two down lamps is more than or equal to 1500mm and is centered with the width of the suspended ceiling; curtain: the same width as the wall with the window; air conditioning: placing the window against the wall surface of the window with the distance of 300mm, aligning the top surface with the ceiling and the like.
In another example, referring to fig. 6F, a schematic diagram six of placing furniture in a living room in the embodiment of the present invention is shown, when the living room belongs to a large horizontal hall, a television cabinet can be placed on one wall, a bookcase can be placed on the other wall, and meanwhile, furniture appliances such as a sofa, a writing desk, a corner cabinet, a tea table, a floor lamp and the like are placed in the middle position of the living room, and other settings may refer to the settings of the above examples, and are not described herein again.
Optionally, in an embodiment of the present invention, the step 132 further includes:
step S1, aiming at the room-entering space object in the at least one space object, determining whether a preset space object for specially laying out furniture model objects exists in the room-entering space object according to the space attribute;
step S2, under the condition that the preset space object exists, acquiring the furniture layout data according to the preset space object;
and step S3, in a case that the preset space object does not exist, obtaining the position information of an existing object in the entrance space object, and obtaining the furniture layout data according to at least the space attribute and the position information of the existing object.
In one embodiment of the present application, the entrance space object sometimes has a preset space object for specially laying out the furniture model object, for example, referring to fig. 7A, after entering the target house from the entrance door, the entrance is entered, and the right side of the entrance includes two parts, an area near the entrance door has an outwardly protruding part, the outwardly protruding part occupies a part of the toilet, an area far away from the entrance door has a toilet door, and the entrance as a whole appears not to be rectangular.
In general, the outwardly protruding portion is often a preset space object reserved by a house designer when designing a target house for a special layout of furniture model objects, for example, a space object specially used for layout of an entrance cabinet, a shoe cabinet, a hook, or the like.
In another embodiment of the present application, referring to fig. 7B, the entrance space object may be a rectangle, a preset space object for specially laying out the furniture model object is not included in the entrance space object, and after entering the target house from the entrance door, the entrance is entered into the entrance, the right side is a door of the toilet, and the entrance is a rectangle as a whole.
In the present application, the furniture layout data in the case where the preset space object exists in the room-entering space object is different from the furniture layout data in the case where the preset space object does not exist in the room-entering space object, and often needs to be obtained in a different manner.
Therefore, in the present embodiment, it may be determined whether a preset space object for exclusively laying out furniture model objects exists in the entry space objects according to the space attributes of the entry space objects, and then step S2 may be performed in case that the preset space object exists, or step S3 may be performed in case that the preset space object does not exist.
After the three-dimensional house space is established according to the target house in advance, technicians can manually determine whether a preset space object for specially laying out the furniture model objects exists in the room-entering space object, and can mark the preset space object for specially laying out the furniture model objects in the room-entering space object in the three-dimensional house space of the target house under the condition that the preset space object for specially laying out the furniture model objects exists in the room-entering space object. In this way, it can be determined whether a preset space object for specifically laying out the furniture model object exists in the room-entering space object according to the annotation data in the three-dimensional room space.
Certainly, in another embodiment of the present application, the mechanism of the room-entering space object may be automatically identified through an identification algorithm, so as to determine whether a preset space object for specially laying out the furniture model object exists in the room-entering space object, which may avoid the manual labeling work, thereby reducing the labor cost, and the application does not limit the specific identification algorithm.
In the case where the preset space object exists, in step S2, acquiring furniture layout data according to the preset space object;
in one embodiment of the present application, the preset space object is used for specially laying out the furniture model object, and therefore, the position information of the preset space object can be acquired and used as the target position information.
And, in another embodiment of the present application, a plurality of furniture model objects each qualifying a layout in the room-entering space may be prepared in advance.
In a plurality of furniture model objects prepared in advance, the size information and the like of different furniture model objects are different. If the furniture model object needs to be laid out in the preset space object, the furniture model object needs to be placed in the preset space object, that is, the furniture model object needs to be accommodated in the preset space object.
Therefore, a furniture model object having size information smaller than or equal to the size information of the area where the preset space object is located may be selected among the plurality of furniture model objects and used as the furniture model object corresponding to the preset space object.
In one embodiment of the present application, among the plurality of furniture model objects, there may be at least two furniture model objects having size information smaller than or equal to size information of an area where the preset space object is located, in which case, one furniture model object may be randomly selected among the at least two furniture model objects.
However, the styles, functions, and the like of different furniture model objects are often different, and the priority of each furniture model object may be set in advance according to the styles or functions, so that, in the case where there are at least two furniture model objects whose size information is less than or equal to the size information of the region where the preset space object is located, one furniture model object with the highest priority may be selected from the at least two furniture model objects.
In the case where the preset space object does not exist, in step S3, the position information of the existing object in the entry space object is acquired, and the furniture layout data is extracted based on at least the space attribute of the entry space object and the position information of the existing object.
In the application, the existing object may include an entrance door object, and may also include a door object in other space objects, and may also include an electrical box object, a window object, and the like. In addition, a roaming point in a VR (Virtual Reality) scenario, and the like may also be included.
The process of extracting furniture layout data according to at least the spatial attribute of the room entry space object and the position information of the existing object may specifically include:
s31, acquiring a plurality of candidate areas with different priorities in the room-entering space object at least according to the space attribute of the room-entering space object and the position information of the existing object;
in the present application, the existing object is exemplified as the entrance object.
The entry space object includes: the wall body object of the entrance door, the wall body object adjacent to the wall body object of the entrance door and the wall body object not adjacent to the wall body object of the entrance door.
According to the statistics of the inventor on the actual situation, under the general situation, most users tend to preferentially place furniture in the area where the wall object where the entrance door is located, if the furniture cannot be placed in the area where the wall object where the entrance door is located, then the furniture tends to be preferentially placed in the area where the wall object adjacent to the wall object where the entrance door is located, and if the furniture cannot be placed, the furniture is placed in the area where the wall object not adjacent to the wall object where the entrance door is located. And often furniture is placed against a wall.
Therefore, in the present application, for the entry space object, the acquired candidate region may include at least one of the following: a first area in which a first wall object in which an existing object in the room-to-room space object is located, a second area in which a second wall object in the room-to-room space object adjacent to the first wall object is located, a third area in which a third wall object in the room-to-room space object not adjacent to the first wall object is located, and so on.
The priority of the first area is higher than that of the second area, and the priority of the second area is higher than that of the third area.
S32, acquiring a plurality of furniture model objects with different priorities;
there are various furniture model objects, such as hall cabinets, vestibule cabinets, hooks, etc., and there are hall cabinets of various styles and sizes, vestibule cabinets of various styles and sizes, and hooks of various styles and sizes. The priorities of the different furniture model objects can be set in advance.
For example, the priority may be set according to the kind of the furniture model object. For example, the priority of one kind of furniture model object is set to be higher than that of another kind of furniture model object. For example, in one embodiment, the priority of the vestibule cabinet may be greater than the priority of the hook, and the priority of the vestibule cabinet may be greater than the priority of the hook. For another example, in another embodiment, the priority of the hallway cabinet may be greater than the priority of the hall cabinet, which may be greater than the priority of the hook.
For any one kind of furniture model object, the kind of furniture model object has furniture model objects of various sizes and styles, and thus, priorities can be set according to the sizes or styles of the furniture model objects. For example, the priority of the furniture model object of one size of the category may be set higher than the priority of the furniture model object of the other size of the category, and for example, the priority of the furniture model object of the category having a larger size may be set higher than the priority of the furniture model object of the category having a smaller size.
In another embodiment of the present application, there may be a plurality of spatial types of the room-entering spatial object, for example, an entrance and a non-entrance, where the non-entrance is: the entrance object is not provided with an entrance, and after entering the three-dimensional room space of the target room through the entrance object, the entrance object directly enters the restaurant object or the living room object in the three-dimensional room space of the target room, and the entrance object inputs a part of the restaurant object or a part of the living room object.
In one example, when the entrance space object is an entrance, an entrance cabinet or the like may be placed in the entrance space object, and when the entrance space object is a non-entrance, a hall cabinet may be placed in the entrance space object, wherein the entrance cabinet may be set to the ceiling and the hall cabinet may not be set to the ceiling.
Therefore, in this step, the space type of the room-entering space object may be acquired, and then a plurality of furniture model objects having different priorities and suitable for the space type may be acquired.
After the three-dimensional house space is established according to the target house in advance, the technician may mark the space type of the user space object in the three-dimensional house space, for example, mark the user space object as a hallway, or mark the user space object as a non-hallway, for example, mark the user space object as a part of a restaurant object, or mark the user space object as a part of a living room object, etc. Therefore, the space type of the room-entering space object can be directly obtained according to the labeling data in the three-dimensional room space.
Of course, in another embodiment of the present application, the space type of the room-entering space object may also be automatically identified through the identification algorithm, and the work of manual labeling may be omitted, so that the labor cost may be reduced, and the application does not limit the specific identification algorithm.
S33, respectively matching each candidate area and each furniture model object according to the position information of the existing object at least according to the sequence from high priority to low priority in a plurality of furniture model objects with different priorities and a plurality of candidate areas with different priorities;
in the present application, for any one furniture model object and any one candidate region, it may be determined whether the candidate region can accommodate the furniture model object according to the size information of the furniture model object and the size information of the candidate region;
in the event that the candidate region is unable to accommodate the furniture model object, determining that the candidate region does not successfully match the furniture model object.
And if the candidate area can accommodate the furniture model object, judging whether the furniture model object blocks the existing object after the furniture model object is laid in the candidate area according to the position information of the candidate area and the position information of the existing object.
And in the case that the furniture model object does not obstruct the existing object, determining that the candidate region is successfully matched with the furniture model object.
Determining that the candidate region does not match the furniture model object if the furniture model object occludes an existing object.
And S34, acquiring furniture layout data according to the successfully matched candidate area and the furniture model object.
In the present application, when a candidate region is successfully matched with a furniture model object, a furniture layout data may be obtained according to the candidate region and the furniture model object, for example, the position information of the candidate region may be obtained, and then the position information of the candidate region and the furniture model object are combined into a furniture layout data.
In one example, assume that the entrance space object is an entrance, the furniture model object is an entrance cabinet, and the existing object is an entrance door.
Whether the vestibule cabinet can be placed against the wall object where the entrance door is located or not can be judged according to the size information of the vestibule cabinet and the size information of the wall object where the entrance door is located, and at least one side surface of the vestibule cabinet is close to the wall object adjacent to the wall object where the entrance door is located.
At this time, there may be two placing modes, where one side surface of the vestibule cabinet is next to the wall object adjacent to the wall object where the entrance door is located, or the other side surface of the vestibule cabinet is next to the wall object adjacent to the wall object where the entrance door is located.
Then, whether the entrance door is shielded by the vestibule cabinet in the two placing modes is judged.
If the entrance doors are not shielded by the two placing modes, the entrance doors can be placed in the entrance by one of the two placing modes.
If the entrance door is shielded by the entrance cabinet of one of the two placing modes and the entrance door is not shielded by the entrance cabinet of the other placing mode, the entrance cabinet can be placed in the entrance by adopting the other placing mode of the two placing modes.
For example, referring to fig. 7C and 7D, the entrance door is shielded by the entrance cabinet in the arrangement shown in fig. 7C, and the entrance door is not shielded by the entrance cabinet in the arrangement shown in fig. 7D.
If the entrance doors are shielded by the vestibule cabinets in the two placing modes, the two placing modes are not adopted.
Then, whether the vestibule cabinet can be placed against a wall object adjacent to the wall object where the entrance door is located and at least one side surface of the vestibule cabinet is adjacent to the wall object where the entrance door is located can be judged according to the size information of the vestibule cabinet and the size information of the wall object where the entrance door is located,
at this time, two placing modes can be provided, the vestibule cabinet is backed against one wall object adjacent to the wall object where the entrance door is located, and the vestibule cabinet is backed against the other wall object adjacent to the wall object where the entrance door is located.
Then, whether the entrance door is shielded by the vestibule cabinet in the two placing modes is judged.
If the entrance doors are not shielded by the two placing modes, the entrance doors can be placed in the entrance by one of the two placing modes.
If the entrance door is shielded by the entrance cabinet of one of the two placing modes and the entrance door is not shielded by the entrance cabinet of the other placing mode, the entrance cabinet can be placed in the entrance by adopting the other placing mode of the two placing modes.
For example, referring to fig. 7E and 7F, the entrance door is shielded by the arrangement type entrance cabinet shown in fig. 7E, and the entrance door is not shielded by the arrangement type entrance cabinet shown in fig. 7F.
If the entrance doors are shielded by the vestibule cabinets in the two placing modes, the two placing modes are not adopted.
Then, it can be determined whether the vestibule cabinet can be placed against a wall object that is not adjacent to the wall object where the entrance door is located (e.g., the wall object opposite to the entrance door), and at least one side of the vestibule cabinet is next to the wall object adjacent to the wall object where the entrance door is located, according to the size information of the vestibule cabinet and the size information of the area of the wall object where the entrance door is located,
at this time, there may be two placing manners, referring to fig. 7G, one side surface of the vestibule cabinet is next to the wall object adjacent to the wall object where the entrance door is located, or, referring to fig. 7H, the other side surface of the vestibule cabinet is next to the wall object adjacent to the wall object where the entrance door is located, and the vestibule cabinet is placed in the vestibule by using one of the two placing manners.
In one embodiment of the present application, the wall of the hallway cabinet that is backed against and the wall that is next to the side can be solid walls.
In another embodiment of the present application, if the hook is hung on the wall in the space object to be entered into the home, the hanging height may be obtained, where the hanging height is determined by a technician in advance according to the usage habits of a large number of users, for example, the hanging height may be 1.9 meters to 2 meters away from the ground, and a distance, for example, 20cm to 30cm, needs to be provided between the hook and the entrance door, and/or a distance, for example, 20cm to 30cm, needs to be provided between the hook and the wall object adjacent to the wall object where the hook is located.
In another embodiment of the present application, in the case that the hall cabinet is a non-through top, if the matching of the hall cabinet and the area where a certain wall object is located is successful, after the hall cabinet is displayed, if the upper side of the wall backed by the hall cabinet has a space to accommodate the hook, the hook may also be displayed in cooperation with the upper side of the wall backed by the hall cabinet, and the position of the hook is centered with respect to the horizontal direction of the hall cabinet, however, if the upper side of the hall cabinet backed by the wall has other objects, so that the upper side of the hall cabinet backed by the wall has no space to accommodate the hook, the hook may not be displayed in cooperation.
In yet another embodiment of the present application, the hall cabinet can be centered against a wall object if it is desired to place the hall cabinet against the wall object.
Optionally, in an embodiment of the present invention, the step 132 further includes:
step S4, aiming at the balcony object in the at least one space object, obtaining at least one furniture model object for layout in the balcony object according to the space attribute;
step S5, obtaining the position information of each furniture model object in the balcony object according to the space attribute of the balcony object;
and step S6, acquiring the furniture layout data according to the acquired furniture model object and the acquired position information.
The spatial attribute may include at least size information of a region of the spatial object under the three-dimensional room space, and certainly may also include shape information, and the like, and may also include a situation where the spatial object is adjacent to another spatial object in the target room, which is not limited in this application.
The size information may include the length, height, and the like of the wall object in the space object.
The furniture model object includes objects for layout in a space object, for example, a washing machine cabinet, a rack, a green plant, a washing machine frame, a balcony table and chair, etc. in a balcony object; an entrance cabinet, a hall cabinet, a hook for hanging objects such as clothes, and the like in the room space object. In this step, at least one furniture model object may be selected from the plurality of furniture model objects for layout in the balcony object, for example, all of the plurality of furniture model objects may be selected, or some of the plurality of furniture model objects may be selected, and which furniture model objects are specifically selected may be determined according to actual conditions. Reference may be made in detail to the following examples, which are not intended to be exhaustive.
For example, for any one of the acquired furniture model objects, the furniture model object and the acquired position information of the layout of the furniture model object in the balcony object may be combined into one furniture layout data, and the same is true for each of the acquired other furniture model objects.
Optionally, in another embodiment of the present application, the step S4 further includes:
s41, acquiring the space type of the balcony object according to the space attribute of the balcony object;
in the present application, in general, a living room in a house may be associated with a balcony, a bedroom may be associated with a balcony, a living room may be associated with a balcony, a restaurant may be associated with a balcony, and a bathroom may also be associated with a balcony, and the like. Thus, more than two balconies may be included in a single house.
Therefore, in the present application, the space type of the balcony object, that is, the space type of the space object associated with the balcony object, may be determined according to the space to which the balcony object is directly connected in the three-dimensional room space of the target room.
In one embodiment of the present application, the space attribute of the balcony object includes a space object to which a preset connection object among the balcony objects is connected; the preset space object includes a door object or the like entering a balcony. As such, the space type of the balcony object can be acquired according to the space object.
For example, in the case where a space object to which a preset connection object among the balcony objects is connected is a living room object, the space type of the balcony object may be determined as a living room class. In the case where the space object to which the preset connection object among the balcony objects is connected is a bedroom object, the space type of the balcony object may be determined as a bedroom class. In case that a space object to which a preset connection object among the balcony objects is connected is an entrance object, the space type of the balcony object may be determined as an entrance class. In the case where the space object to which the preset connection object among the balcony objects is connected is a restaurant object, the space type of the balcony object may be determined as a restaurant class. In case that a space object to which a preset connection object among the balcony objects is connected is a kitchen object, the space type of the balcony object may be determined as a kitchen class. And, in case that a space object to which a preset connection object among the balcony objects is connected is a toilet object, the space type of the balcony object may be determined as a toilet class, etc.
In step S42, at least one furniture model object is obtained according to at least the space type of the balcony object.
In the present application, the furniture model objects that can be arranged in balcony objects of different space types are not all identical.
For example, a washing machine model object, a green plant model object, a washing machine cabinet model object, and the like may be arranged in the balcony object of the living room class.
A balcony table model object, a balcony chair model object, a washing machine model object, a green plant model object, a washing machine cabinet model object, and the like may be arranged in the balcony object of the bedroom type.
Furniture model objects that can be arranged in the respective space-type balcony objects can be provided in advance. Thus, in this step, at least one furniture model object may be selected from the plurality of furniture model objects for layout in the balcony object of the space type, for example, all furniture model objects of the plurality of furniture model objects may be selected, or some furniture model objects of the plurality of furniture model objects may be selected, and which furniture model objects are specifically selected may be determined according to actual conditions.
In one embodiment of the application, the spatial attribute of the balcony object includes size information of the balcony object; the size information of different balconies is different, and for example, the size information includes the length, width, height, etc. of the balcony. In general, the larger the size information of the balcony object, the more furniture model objects can be accommodated in the balcony object, and thus, the more the number of furniture model objects can be arranged in the balcony object. However, the smaller the size information of the balcony object, the less furniture model objects can be accommodated in the balcony object, and thus, the fewer the number of furniture model objects that can be arranged in the balcony object can be.
Furniture model objects that can be arranged in balcony objects of different size information for each space type can be set in advance, respectively.
In this way, when at least one furniture model object is acquired at least according to the space type of a balcony object, at least one furniture model object can be selected among a plurality of furniture model objects for layout in the balcony object of the space type according to the size information of the balcony object.
Wherein, for any space type, the size information of the balcony object of the space type can be divided into a plurality of different size information sets. Then, for any one size information set, at least one furniture model object that can be arranged in the balcony objects of the space type of the size information set can be determined; and then forming a corresponding table item by the size information set and the determined at least one furniture model object, and storing the corresponding table item in the corresponding relation between the size information set and the furniture model object, which corresponds to the space type. The above operation is also performed for each of the other size information sets. The size information set may include at least a length set, a width set, and the like, and of course, a height set, and the like, and the number of furniture model objects that can be laid out in different size information sets and/or the size information are different, and the like.
The above operation is also performed for each of the other spatial types.
In this way, when at least one furniture model object is selected from a plurality of furniture model objects for layout in a balcony object of the space type according to the size information of the balcony object, a size information set where the size information is located may be found in a correspondence relationship between the size information set and the furniture model object corresponding to the space type, and then the furniture model object corresponding to the size information set may be found in the correspondence relationship.
In the present application, the plurality of space objects in the three-dimensional house space includes a plurality of balcony objects and the like.
For any one of the preset furniture models, the furniture model object has a disposition qualification in at least two spatial objects, but there is a limit to the number of the furniture model objects disposed as a whole in the entire three-dimensional house space.
For example, in one instance, a large number of users typically have at most one washing machine disposed in a balcony. Without placing the washing machine in both the living room balcony and the bedroom balcony.
However, in the case where a plurality of balcony objects exist in the three-dimensional house space, it is necessary to determine in which balcony object the washing machine is to be disposed with priority.
Specifically, the priorities of different space objects in the three-dimensional house space may be set in advance, and the priorities of the different space objects are different.
When different furniture model objects are respectively displayed in the plurality of space objects for a user to enable the user to perceive the decoration style of the space objects in advance, the different furniture model objects can be respectively displayed in the plurality of space objects for the user sequentially by any one of the methods shown in the embodiments of the present invention according to the sequence of the priorities of the space objects from high to low.
Wherein the plurality of space objects include a plurality of balcony objects, such that, for any one balcony object, when at least one furniture model object for layout in the balcony object is acquired at least according to a space type of the balcony object, for any one furniture model object among the plurality of furniture model objects for layout in the balcony object of the space type, in a case where a furniture type of the furniture model object is a preset type, a priority of the balcony object can be acquired according to the space type; the furniture model objects of the preset type are arranged in a plurality of space objects, but can be arranged in only one space object. Then, a space object higher than the priority in the three-dimensional house space can be obtained, and whether the furniture model object is displayed in the space object is judged. In case the furniture model object is not shown in the space object, the furniture model object may then be acquired and then shown in the balcony object. In the case where the furniture model object is already represented in the space object, the furniture model object may not be acquired.
The same is true for each of the other furniture model objects for layout in the balcony object of the space type.
Optionally, in an embodiment of the present application, step S5 may include:
in step S51, the priorities of the respective furniture model objects are acquired;
in the case where there are at least two furniture model objects for layout in the balcony object acquired in step S51, the priorities of the respective furniture model objects may be acquired, and then the position information of the layout of the respective furniture model objects in the balcony object may be sequentially acquired again in order of the priorities from the top to the bottom.
Wherein the technician has previously set the priorities of the respective preset furniture models for layout in the balcony object, and thus, it is sufficient that the priorities of the respective furniture model objects can be directly acquired.
For example, it is assumed that the furniture model objects for layout in the balcony object include a washing machine object, a green plant object, a washing machine cabinet object, a balcony desk and chair object, and the like. The priority of the green plant object is greater than that of the washing machine object, the priority of the washing machine object is greater than that of the washing machine cabinet object, and the priority of the washing machine cabinet object is greater than that of the balcony table and chair object.
In step S52, the position information of the layout of each furniture model object in the balcony object is sequentially obtained in the order of priority from high to low based on at least the spatial attributes.
In one example, assuming that the acquired preset furniture model for layout in the balcony object includes a preset furniture model a, a preset furniture model B, and the like, and the priority of the preset furniture model a is greater than that of the preset furniture model B, the position information a of the furniture model object a laid out in the balcony object may be preferentially acquired, and then the position information B of the furniture model object B laid out in the balcony object may be preferentially acquired in the position information of the balcony object other than the position information a.
For any furniture model object, the position information of the furniture model object in the layout of the balcony object can be obtained in the following way, and the method specifically comprises the following steps:
4021. according to the space attribute of the balcony object and the position information of the layout of other furniture model objects in the balcony object, a plurality of candidate areas with different priorities are obtained in the balcony object, wherein the priority of the furniture model object is lower than the priorities of the other furniture model objects.
In the present application, a door object is included in the balcony object, and the door object is used to communicate the balcony object with other objects.
The balcony object includes: the wall object where the door object is located, the wall object adjacent to the wall object where the door object is located, and the wall object not adjacent to the wall object where the door object is located.
According to the statistics of the inventor on the actual situation, generally, a great number of users tend to preferentially place furniture in the area where the wall object adjacent to the wall object where the door object is located.
If furniture cannot be placed preferentially in the area where the wall object adjacent to the wall object where the door object is located, then furniture tends to be placed preferentially in the area where the wall object where the door object is located, and if furniture cannot be placed, furniture is placed in the area where the wall object not adjacent to the wall object where the door object is located. And often furniture is placed against a wall.
Therefore, in the present application, for the balcony object, the acquired candidate regions may include at least: and at least one of a first region in which a first wall object in the balcony object is located with the door object, a second region in which a second wall object in the balcony object adjacent to the first wall object is located, and a third region in which a third wall object in the balcony object not adjacent to the first wall object is located.
The priority of the second area is higher than that of the first area, and the priority of the first area is higher than that of the third area.
4022. Respectively matching the furniture model object with each candidate region according to the sequence of the priority of the candidate region from high to low;
in the application, for any one candidate area, whether the candidate area can accommodate the furniture model object can be judged according to the size information of the furniture model object, the position information of the layout of other furniture model objects in the balcony object and the size information of the candidate area; and in the case that the candidate area can accommodate the furniture model object, determining that the candidate area is successfully matched with the furniture model object. In the event that the candidate region is unable to accommodate the furniture model object, determining that the candidate region does not successfully match the furniture model object.
4033. And acquiring the position information of the layout of the furniture model object in the balcony object according to the candidate region of the highest level successfully matched with the furniture model object.
For example, the position information of the candidate region of the highest level that is successfully matched with the furniture model object may be acquired, and then the position information of the candidate region may be determined as the position information of the layout of the furniture model object in the balcony object.
The present application is exemplified by an example in which, assuming that a balcony object is a living room class balcony object, it is found that size information of the living room class balcony object has a size after counting a large number of houses.
When the size information of the living room balcony objects is large, the fact that the space of the living room balcony objects is large is often indicated, and a large number of furniture model objects with large size information can be distributed in the living room balcony objects to fill the living room balcony objects and avoid bringing the feeling that the living room balcony objects are free and swing to users.
When the size information of the balcony objects of the living room class is small, the small space of the balcony objects of the living room class is often indicated, and a small number of furniture model objects with small size information can be distributed in the balcony objects of the living room class, so that enough free space is reserved for the balcony objects of the living room class, and the user is prevented from feeling crowded.
In the present application, the size information of the balcony object of living room class may be divided into a plurality of different size information sets, and the number and/or size information of the furniture model objects that may be laid out in the different size information sets may be different, and the like.
The restaurant class balcony object can refer to the living room class balcony object for illustration, and is not detailed here.
For example, in one example, the size information of the balcony object of living room class may be divided into three different size information sets, namely, a size information set 1, a size information set 2, a size information set 3, and the like, wherein the size information set 1 is larger than the size information set 2, and the size information set 2 is larger than the size information set 3.
The length, width and height in the size information set 1 are respectively greater than those in the size information set 2, and the length, width and height in the size information set 2 are respectively greater than those in the size information set 3.
For the size information set 1, it is assumed that the size information of the living room class balcony object includes: the length is 3m and the width is 1.5 m, and under the condition that the dimension information of the living room type balcony object is positioned in the dimension information set 1, a plurality of furniture model objects with larger dimension information can be arranged in the living room type balcony object, for example, a green plant with larger dimension information, a washing machine cabinet with larger dimension information, a washing machine and the like can be arranged to fill the living room type balcony object, so that the feeling of the living room type balcony object swinging is avoided for users.
In order to avoid wasting space in the living room class balcony object as much as possible, the furniture model object may be laid out against the wall object in the living room class balcony object.
For example, referring to fig. 8A, a green plant having a larger size information may be laid against one of the short-side wall objects in the living room type balcony objects, a washing machine cabinet may be laid against the other of the short-side wall objects in the living room type balcony objects, and a washing machine (not shown) may be laid in the washing machine cabinet, and since the size information of the living room type balcony objects is larger, the size information of the washing machine cabinet may be larger, for example, the width of the washing machine cabinet may be larger, the width thereof may be slightly smaller than the length of one of the short-side wall objects, etc., or the washing machine cabinet may fill the entire short-side wall object.
For the size information set 2, assuming that the size information of the living room balcony object includes a length of 2.3m and a width of 1.1 m, in the case that the size information of the living room balcony object is located in the size information set 2, a furniture model object with a moderate number and size information can be laid out in the living room balcony object, for example, a green plant with a moderate size information, a washing machine frame with a moderate size information, a washing machine and the like can be laid out, so that a sufficient free space is reserved for the living room balcony object while the living room balcony object is filled, a feeling that the living room balcony object is free from swinging is avoided for a user, and a feeling that the living room balcony object is crowded is brought for the user is avoided.
In order to avoid wasting space in the living room class balcony object as much as possible, the furniture model object may be laid out against the wall object in the living room class balcony object.
For example, referring to fig. 8B, a green plant having smaller dimension information may be laid out against one of the short-side wall objects in the living room class balcony object, a laundry rack may be laid out against the other of the short-side wall objects in the living room class balcony object, the laundry rack may be laid against the wall object where the door object is located at the same time, and a laundry machine (not shown in the drawings) may be laid out in the laundry rack, and since the dimension information of the living room class balcony object is moderate, the dimension information of the laundry rack may be moderate, for example, the width of the laundry rack may be moderate, the width thereof may be between one-half to two-thirds of the length of the short-side wall object.
For the size information set 3, assuming that the size information of the living room balcony object includes a length of 1.9m and a width of 1.1 m, in the case that the size information of the living room balcony object is located in the size information set 3, a small number of furniture model objects with small size information, for example, a green plant with small size information, a washing machine rack with small size information, a washing machine, etc., can be laid out in the living room balcony object to reserve enough free space for the living room balcony object, thereby avoiding the feeling of crowding the living room balcony object for the user.
In order to avoid wasting space in the living room class balcony object as much as possible, the furniture model object may be laid out against the wall object in the living room class balcony object.
For example, referring to fig. 8C, a green plant of a moderate size may be laid out against one of the short side wall objects in the living room class balcony object, a washing machine may be laid out against the other short side wall object in the living room class balcony object, and the washing machine may be laid against the wall object where the door object is located at the same time, and since the size information of the living room class balcony object is small, the size information of the washing machine may be small, for example, the width of the washing machine may be small, the width of which is less than one-half of the length of the short side wall object, and so on.
The present application is exemplified by an example in which, assuming that a balcony object is a kitchen-like balcony object, it is found that size information of the kitchen-like balcony object has a size after counting a large number of houses.
When the dimension information of the kitchen balcony object is large, the space of the kitchen balcony object is often large, and a large number of furniture model objects with large dimension information can be distributed in the kitchen balcony object to fill the kitchen balcony object, so that the user is prevented from feeling that the kitchen balcony object is swung.
When the size information of the kitchen balcony objects is small, the space of the kitchen balcony objects is often indicated to be small, and a small number of furniture model objects with small size information can be arranged in the kitchen balcony objects, so that enough free space is reserved for the kitchen balcony objects, and the user is prevented from feeling crowded with the kitchen balcony objects.
In the present application, the dimension information of the kitchen-like balcony object may be divided into a plurality of different dimension information sets, and the number and/or dimension information of the furniture model objects that may be laid out in the different dimension information sets may be different, and the like.
For example, in one example, the size information of the kitchen-like balcony object may be divided into three different size information sets, namely, a size information set 1, a size information set 2, a size information set 3, and the like, wherein the size information set 1 is larger than the size information set 2, and the size information set 2 is larger than the size information set 3.
The length, width and height in the size information set 1 are respectively greater than those in the size information set 2, and the length, width and height in the size information set 2 are respectively greater than those in the size information set 3.
For the size information set 1, it is assumed that the size information of the kitchen-like balcony object includes: the length is 2.3m and the width is 1.1 m, and when the dimension information of the kitchen balcony object is located in the dimension information set 1, a large number of furniture model objects with large dimension information can be laid out in the kitchen balcony object, for example, green plants with large dimension information, washing machine frames with large dimension information, washing machines and the like can be laid out to fill the kitchen balcony object, so that the user is prevented from feeling that the kitchen balcony object is swayed.
In order to avoid wasting space in the kitchen-like balcony object as much as possible, the furniture model object may be laid out against a wall object in the kitchen-like balcony object.
For example, referring to fig. 8D, a green plant having a larger size information may be laid against one of the short-side wall objects in the kitchen-like balcony object, a laundry rack may be laid against the other short-side wall object in the kitchen-like balcony object, the laundry rack may be laid against the wall object where the door object is located at the same time, and a laundry machine (not shown) may be laid in the laundry rack, and since the size information of the kitchen-like balcony object is larger, the size information of the laundry rack may be larger, for example, the width of the laundry rack may be larger, the width thereof may be between one-half to two-thirds of the length of the short-side wall object, and so on. Alternatively, the washing machine cabinet may fill the entire short-edge wall object.
For the size information set 2, assuming that the size information of the kitchen-like balcony object includes a length of 1.9m and a width of 1.1 m, in the case that the size information of the kitchen-like balcony object is located in the size information set 2, a furniture model object with a moderate number and size information, for example, a green plant with a moderate size information, a washing machine with a moderate size information, or the like, may be laid out in the kitchen-like balcony object to reserve a sufficient free space for the kitchen-like balcony object while filling the kitchen-like balcony object, to avoid giving the user a feeling of empty swinging of the kitchen-like balcony object, and to avoid giving the user a feeling of crowding the kitchen-like balcony object.
In order to avoid wasting space in the kitchen-like balcony object as much as possible, the furniture model object may be laid out against a wall object in the kitchen-like balcony object.
For example, referring to fig. 8E, a green plant of a moderate size may be laid out against one of the short side wall objects in the kitchen-like balcony object, a washing machine may be laid out against the other short side wall object in the kitchen-like balcony object, and the washing machine may be laid against the wall object where the door object is located at the same time, and since the size information of the kitchen-like balcony object is small, the size information of the washing machine may be small, for example, the width of the washing machine may be small, and the width thereof is less than one-half of the length of the short side wall object, and so on.
For the size information set 3, assuming that the size information of the kitchen-like balcony object includes a length of 1.6m and a width of 1.1 m, in the case that the size information of the kitchen-like balcony object is located in the size information set 3, a smaller number of furniture model objects with smaller size information can be laid out in the kitchen-like balcony object, for example, only green plants with smaller size information can be laid out to reserve enough free space for the kitchen-like balcony object, avoiding giving the user a feeling of crowding the kitchen-like balcony object.
In order to avoid wasting space in the kitchen-like balcony object as much as possible, the furniture model object may be laid out against a wall object in the kitchen-like balcony object.
For example, referring to fig. 8F, a moderately sized greenery may be placed against one of the kitchen-like balcony objects, and in one embodiment, may also be placed against a wall object that is not adjacent to the wall object on which the door object is located (the opposite wall object to the door object).
The present application is illustrated by an example in which, assuming that the balcony object is a bedroom type balcony object, it is found that the size information of the bedroom type balcony object has a size after counting a large number of houses.
When the dimension information of the bedroom balcony object is large, the fact that the space of the bedroom balcony object is large is often indicated, a large number of furniture model objects with large dimension information can be arranged in the bedroom balcony object to fill the bedroom balcony object, and the feeling that the bedroom balcony object is swung in an empty mode is avoided for a user.
When the size information of the bedroom balcony objects is small, the fact that the space of the bedroom balcony objects is small is often indicated, and a small number of furniture model objects with small size information can be arranged in the bedroom balcony objects, so that enough free space is reserved for the bedroom balcony objects, and the user is prevented from being crowded with the bedroom balcony objects.
In the present application, the size information of the bedroom balcony object can be divided into a plurality of different size information sets, and the number and/or size information of the furniture model objects which can be laid out in the different size information sets are different.
For example, in one example, the size information of the bedroom balcony object may be divided into five different size information sets, namely, a size information set 1, a size information set 2, a size information set 3, and the like, a size information set 4, a size information set 5, and the like, wherein the size information set 1 is larger than the size information set 2, the size information set 2 is larger than the size information set 3, the size information set 3 is larger than the size information set 4, and the size information set 4 is larger than the size information set 5.
The length, width and height in the size information set 1 are respectively greater than the length, width and height in the size information set 2, the length, width and height in the size information set 2 are respectively greater than the length, width and height in the size information set 3, the length, width and height in the size information set 3 are respectively greater than the length, width and height in the size information set 4, and the length, width and height in the size information set 4 are respectively greater than the length, width and height in the size information set 5.
That is, the size information set 1 is larger than the size information set 2, the size information set 2 is larger than the size information set 3, the size information set 3 is larger than the size information set 4, and the size information set 4 is larger than the size information set 5.
In the case where the size information of the bedroom balcony object is located in the size information set 1, assuming that the size information of the bedroom balcony object includes a length of 3.2m and a width of 1.6m, a furniture model object having larger size information, for example, a balcony table and a balcony chair, may be laid out in the bedroom balcony object.
For example, referring to fig. 8G, a balcony table and a balcony chair may be placed in an intermediate position in a bedroom-type balcony object.
For the size information set 2, assuming that the size information of the bedroom balcony object includes a length of 3m and a width of 1.5 m, in the case that the size information of the bedroom balcony object is located in the size information set 2, a large number of furniture model objects with large size information can be laid out in the bedroom balcony object, for example, a green plant with large size information and a washing machine cabinet with large size information and the like can be laid out, so that sufficient free space is reserved for the bedroom balcony object while the bedroom balcony object is filled, the feeling that the bedroom balcony object is free from swinging is avoided, and the feeling that the bedroom balcony object is crowded is avoided for the user.
In order to avoid wasting space in the bedroom type balcony object as much as possible, the furniture model object can be laid out against the wall object in the bedroom type balcony object.
For example, referring to fig. 8H, a green plant having a larger dimension information may be laid against one of the short-side wall objects in the bedroom balcony objects, a washing machine cabinet may be laid against the other of the short-side wall objects in the bedroom balcony objects, and a washing machine (not shown) may be laid in the washing machine cabinet, and since the dimension information of the bedroom balcony objects is larger, the dimension information of the washing machine cabinet may be larger, for example, the width of the washing machine cabinet may be larger and slightly smaller than the length of one of the short-side wall objects, or the washing machine cabinet may fill the entire short-side wall object.
For the size information set 3, assuming that the size information of the bedroom balcony object includes a length of 2.3m and a width of 1.1 m, when the size information of the bedroom balcony object is located in the size information set 3, a large number of furniture model objects with large size information can be laid out in the bedroom balcony object, for example, a green plant with large size information, a washing machine frame with large size information, a washing machine and the like can be laid out to fill the bedroom balcony object, so as to avoid giving the user a feeling that the bedroom balcony object is swayed.
In order to avoid wasting space in the bedroom type balcony object as much as possible, the furniture model object can be laid out against the wall object in the bedroom type balcony object.
For example, referring to fig. 8I, a green plant having a larger layout size information may be laid against one of the short-side wall objects in the bedroom type balcony object, a laundry rack may be laid against the other of the short-side wall objects in the bedroom type balcony object, the laundry rack may be laid against the wall object where the door object is located at the same time, and a laundry machine (not shown in the drawings) may be laid in the laundry rack, and since the size information of the bedroom type balcony object is larger, the size information of the laundry rack may be larger, for example, the width of the laundry rack may be larger, the width thereof may be between one-half to two-thirds of the length of the short-side wall object, and. Alternatively, the washing machine cabinet may fill the entire short-edge wall object.
For the size information set 4, assuming that the size information of the bedroom balcony object includes a length of 1.9m and a width of 1.1 m, in the case that the size information of the bedroom balcony object is located in the size information set 4, a furniture model object with a moderate number and size information can be laid out in the bedroom balcony object, for example, a green plant with a moderate size information and a washing machine with a moderate size information can be laid out, so that sufficient free space is reserved for the bedroom balcony object while the bedroom balcony object is filled, the feeling that the bedroom balcony object is swung freely is avoided, and the feeling that the bedroom balcony object is crowded is avoided.
In order to avoid wasting space in the bedroom type balcony object as much as possible, the furniture model object can be laid out against the wall object in the bedroom type balcony object.
For example, referring to fig. 8J, a green plant of a moderate size may be laid out against one of the short side wall objects in the bedroom type balcony object, a washing machine may be laid out against the other short side wall object in the bedroom type balcony object, and the washing machine may be laid against the wall object where the door object is located at the same time.
For the size information set 5, assuming that the size information of the bedroom balcony object includes a length of 1.6m and a width of 1.1 m, in the case that the size information of the bedroom balcony object is located in the size information set 5, a small number of furniture model objects with small size information can be laid out in the bedroom balcony object, for example, only green plants with small size information can be laid out to reserve enough free space for the bedroom balcony object, so as to avoid giving the user a feeling of crowding the bedroom balcony object.
In order to avoid wasting space in the bedroom type balcony object as much as possible, the furniture model object can be laid out against the wall object in the bedroom type balcony object.
For example, referring to fig. 8K, a moderately sized green plant may be placed against one of the short-edge wall objects in the bedroom-type balcony object, while the green plant is placed against a wall object that is not adjacent to the wall object on which the door object is located (the opposite wall object to the door object).
Optionally, in an embodiment of the present invention, the step 132 further includes:
s7, aiming at a bedroom object in the at least one space object, acquiring a plurality of furniture model objects for layout in the bedroom object according to the space attribute;
in this step, a furniture model object may be selected from a plurality of furniture model objects for layout in the bedroom object, for example, all of the furniture model objects may be selected, or some of the furniture model objects may be selected, and which furniture model objects are specifically selected may be determined according to actual conditions. Reference may be made in detail to the following examples, which are not intended to be exhaustive.
S8, acquiring the layout position information of each furniture model object in the bedroom object at least according to the space attribute;
and S9, acquiring the furniture layout data according to the acquired furniture model object and the acquired position information.
In another embodiment, the spatial attribute of the bedroom object comprises at least bedroom dimension information of the bedroom object, and the step S7 may comprise:
in step S71, in the first correspondence between the size information set and the furniture type, the size information set in which the bedroom size information is located is searched;
when the size information of the bedroom object is larger, the size information of the bedroom object is often indicated to be larger, and more kinds of furniture model objects can be arranged in the bedroom object, so that the bedroom object is filled, the bedroom object is diversified, and the feeling that the bedroom object is monotonous and sloshing is brought to a user is avoided.
When the size information of the bedroom object is small, the situation that the space of the bedroom object is small is often indicated, and fewer kinds of furniture model objects can be arranged in the bedroom object, so that enough free space is reserved for the bedroom object, and the user is prevented from being crowded with the bedroom object.
In the present application, the size information of the bedroom object may be divided into a plurality of different size information sets, and the types of furniture model objects that can be laid out in the different size information sets are different.
For example, for any one size information set, a plurality of categories of furniture model objects which can be laid out in the bedroom object corresponding to the size information set can be set in advance, and then the size information set and each set category are respectively formed into corresponding table items and stored in a first corresponding relation between the size information set and the furniture category. The same is true for each of the other sets of size information.
In this way, in the present application, the first size information set where the first size information is located may be searched in the first corresponding relationship between the size information set and the furniture category, and then step S302 is performed.
In step S72, a plurality of furniture categories corresponding to the size information set are searched for in the first correspondence;
in step S73, a furniture model object of any one of the searched furniture categories is acquired.
In one embodiment of the present application, the number of the furniture model objects of the furniture category is at least two, and the furniture size information of the respective furniture model objects of the furniture category is different.
In one embodiment of the present application, sometimes, there are at least two preset furniture model objects of the furniture category, and the furniture size information of the respective preset furniture model objects of the furniture category is different. Thus, under the condition, when the preset furniture model object of the furniture type is obtained, one preset furniture model object can be selected from at least two preset furniture model objects with different furniture size information according to the bedroom size information, so that the obtained furniture size information of the preset furniture model object of the furniture type is adaptive to the bedroom size information of the bedroom object, the situation that the obtained furniture size information of the preset furniture model object of the furniture type is too large and occupies more space in the bedroom object is avoided, and the situation that the other types of preset furniture model objects are distributed in the bedroom object is further avoided being influenced.
In the case where the furniture size information of at least two furniture model objects of any furniture type is different from each other, the size information set in which the bedroom size information of the bedroom object is located may be divided into a plurality of different size information subsets, where the size information subsets may include at least a length subset and a width subset, and may also include a height subset, and the furniture size information of the furniture model objects that may be laid out in the bedroom objects corresponding to the different size information subsets is different.
For any one size information subset, the furniture size information of the furniture model object of the furniture type which can be laid out in the bedroom object of the size information subset can be set in advance, then the size information subset and the set furniture size information form a corresponding table item, and the corresponding table item is stored in a second corresponding relation between the size information subset and the furniture size information. The same is true for each of the other subsets of size information.
The same is true for every other furniture category.
In this way, in the present application, in the second correspondence between the size information subset included in the size information set and the furniture size information, the size information subset in which the bedroom size information of the bedroom object is located may be searched, then, in the second correspondence, the furniture size information corresponding to the size information subset may be searched, and then, in at least two furniture model objects, the furniture model object corresponding to the furniture size information may be selected.
In another embodiment, step S8 may include:
in step S81, the priorities of the respective furniture model objects are acquired;
in the case where there are at least two furniture model objects for layout in the bedroom object acquired in step S7, the priority of each furniture model object may be acquired. And then sequentially acquiring the position information of the layout of each furniture model object in the bedroom object according to the sequence of the priority from high to low.
Wherein the technician has set in advance the priorities for the respective furniture model objects laid out in the bedroom object, and therefore, the priorities of the respective furniture model objects can be directly acquired.
For example, it is assumed that the furniture model object for layout in the bedroom object includes a bed object, a bedside table object, a desk table object, a wardrobe object, a television cabinet object such as a television object, and the like.
The priority of the bed object is greater than that of the bedside cabinet object, the priority of the bedside cabinet object is greater than that of the wardrobe object, the priority of the wardrobe object is greater than that of the television object, and the priority of the television object is greater than that of the television cabinet object.
In step S82, the position information of the layout of each furniture model object in the bedroom object is sequentially obtained in the order of priority from high to low according to at least the spatial attributes of the bedroom object.
In one example, assuming that the acquired furniture model objects for layout in the bedroom object include a furniture model object a and a furniture model object B, etc., and the priority of the furniture model object a is higher than the priority of the furniture model object B, it is possible to preferentially acquire the position information a in which the furniture model object a is laid out in the bedroom object, and then acquire the position information B in which the furniture model object B is laid out in the bedroom object, etc., in the position information other than the position information a in the bedroom object.
In another embodiment of the present application, for any one of the obtained plurality of furniture model objects, the position information of the layout of the furniture model object in the bedroom object may be obtained at least according to the spatial attribute of the bedroom object, and the same is true for each of the obtained plurality of furniture model objects.
Optionally, the obtaining manner of the position information of the layout of the specific furniture model object in the bedroom object may include:
in step S501, according to the spatial attributes of the bedroom object, determining whether a preset spatial object for specifically laying out the furniture model object exists in the bedroom object;
in one embodiment of the present application, the bedroom object sometimes has a preset space object for the exclusive layout of the furniture model object, for example, the bedroom object has an outwardly convex portion therein, and the bedroom object as a whole appears to be not rectangular. In general, the outwardly protruding portion is often a preset space object reserved by a house designer when designing a target house, for example, a space object specially used for laying out a wardrobe object or a desk object.
In another embodiment of the present application, the bedroom object may be a rectangle, there is no preset space object in the bedroom object for the specific preset type of furniture model object to be laid out, and the bedroom object as a whole appears as a rectangle.
In the present application, the furniture layout data in the case where the preset space object exists in the bedroom object is different from the furniture layout data in the case where the preset space object does not exist in the bedroom object, and often needs to be acquired in a different manner.
Therefore, in the present embodiment, it may be determined whether a preset space object for specifically laying out the furniture model object exists in the bedroom object according to the space attribute of the bedroom object, and then step S501 is performed in the case where the preset space object exists, or step S502 is performed in the case where the preset space object does not exist.
After the three-dimensional house space is established according to the target house in advance, a technician can manually determine whether a preset space object for specially laying out the furniture model objects exists in the bedroom objects, and under the condition that the preset space object for specially laying out the furniture model objects exists in the bedroom objects, the preset space object for specially laying out the furniture model objects can be marked in the three-dimensional house space of the target house. In this way, it can be determined whether a preset space object for specifically laying out the furniture model object exists in the bedroom object based on the labeling data in the three-dimensional house space.
Certainly, in another embodiment of the present application, the structure of the bedroom object may be automatically identified through an identification algorithm, so as to determine whether a preset space object for specially laying out the furniture model object exists in the bedroom object, and the work of manual labeling may be omitted, so that the labor cost may be reduced, and the application does not limit a specific identification algorithm.
The preset spatial objects may include, but are not limited to: at least one of a storage room object, a cloakroom object, and an open convex space object. The open projected space object includes a portion having an outward projection in the bedroom object mentioned above.
Sometimes, the bedroom object includes a storage room object or a cloakroom object, and a large number of users tend to arrange a wardrobe and a dresser in the storage room object or the cloakroom object, so that the storage room object and the cloakroom object can be used as preset space objects.
In the case that the preset space object exists, in step S502, position information of the layout of the furniture model object in the bedroom object is obtained according to the preset space object;
in this application, the preset space object is used for specifically laying out the furniture model object, and therefore, in an alternative manner, the position information of the preset space object may be obtained and used as the position information of the furniture model object laid out in the bedroom object.
In another embodiment of the present application, the furniture model object belongs to a furniture category, for example, a wardrobe category or a dresser category, and a plurality of furniture model objects of the furniture category, each of which is qualified to be laid out in a bedroom object, may be prepared in advance.
In a plurality of furniture model objects of the furniture type prepared in advance, the size information and the like of different furniture model objects are different.
If the furniture model object needs to be laid out in the preset space object, the furniture model object needs to be able to be placed in the preset space object, that is, the preset space object needs to be able to accommodate the furniture model object.
Therefore, if the size information of the furniture model object is large so that the preset space object cannot accommodate the furniture model object, a furniture model object having size information smaller than or equal to the size information of the preset space object may be selected from among the plurality of furniture model objects of the furniture category, and the newly selected furniture model object may be used to replace the previously acquired furniture model object. That is, the newly selected furniture model object may be displayed in the preset space object later, instead of displaying the previously acquired furniture model object.
In one embodiment of the present application, of the plurality of furniture model objects of the furniture category, the size information of the size information smaller than or equal to the preset space object may sometimes be at least two, in which case, of the at least two preset furniture models, the furniture model object having the largest size information may be selected.
In the case that the preset space object does not exist, in step S503, the position information of the existing object in the bedroom object is acquired, and the position information of the layout of the furniture model object in the bedroom object is acquired at least according to the space attribute of the bedroom object and/or the position information of the existing object.
In one embodiment of the present application, the existing object includes: the obtained furniture model objects have a higher priority than other furniture model objects, or may further include objects that cannot be occluded in bedroom objects, such as door objects, window objects, electrical box objects located on a wall, and the like.
In another embodiment of the present application, obtaining the position information of the furniture model object laid out in the bedroom object at least according to the spatial attribute of the bedroom object and/or the position information of the existing object comprises:
in step S601, a plurality of candidate regions with different priorities are obtained from the bedroom object according to at least the spatial attribute of the bedroom object and/or the position information of the existing object;
in the present application, the bedroom object includes a door object, which is used to communicate the bedroom object with other objects, and may further include a short-edge wall object and a long-edge wall object.
According to the statistics of the actual situation by the inventor, generally, a large number of users tend to preferentially lay out furniture in the area where the long-side wall object of the bedroom object is located, for example, preferentially lay out furniture against the long-side wall object of the bedroom object.
Thus, in the present application, for a bedroom subject, the obtained candidate regions may include at least: and the priority of the area where the long-edge wall object is located is higher than that of the area where the short-edge wall object is located.
For example, in one implementation, the furniture model object with the highest priority is first laid out in the area where the long-side wall object is located, then the furniture model object with the highest priority is continuously laid out in the free area of the area where the long-side wall object is located, and if the furniture model object with the highest priority cannot be successfully laid out in the free area of the area where the long-side wall object is located due to insufficient free area, the furniture model object with the highest priority may be laid out in the free area of the area where the short-side wall object is located.
Alternatively, in another embodiment of the present application, in a case where the priority of the furniture model object is the highest, a plurality of candidate regions different in priority may be acquired in the bedroom object at least according to the spatial attribute of the bedroom object.
In the case that the priority of the furniture model object is not the highest, a plurality of candidate areas with different priorities can be acquired in the bedroom object at least according to the spatial attribute of the bedroom object and the position information of the existing object; the existing object is another furniture model object with a priority higher than that of the furniture model object, and at this time, the furniture model object needs to be arranged in an area except for the area where the other furniture model object is located in the bedroom object.
In step S602, matching the furniture model object with each candidate region in order of priority from high to low of the candidate region;
in the present application, for any one candidate area, it may be determined whether the candidate area can accommodate the furniture model object according to the size information of the furniture model object, the position information of the existing object, and the size information of the candidate area; in the case that the candidate region can accommodate the furniture model object, it may be determined that the candidate region is successfully matched with the furniture model object. In the event that the candidate region is unable to accommodate the furniture model object, it may be determined that the candidate region does not successfully match the furniture model object.
However, although a plurality of furniture model objects can be laid out in the bedroom object, the furniture model objects may be closer to each other, so that the free space in the bedroom object is less, and the user feels crowded in the bedroom object, and the user experience is affected.
Therefore, in order to avoid affecting the user experience, it is necessary to avoid giving the user a feeling of crowding in the bedroom object, and in order to avoid giving the user a feeling of crowding in the bedroom object, it is necessary to avoid that the furniture model objects in the bedroom object are closer to each other.
For this purpose, in a case where the candidate area can accommodate the furniture model object, it is determined whether or not the furniture type of the furniture model object is a preset type.
When the furniture type of the furniture model object is a preset type, according to the position information of the candidate area and the position information of the existing object, it can be determined whether the spatial distance between the furniture model object and the existing object is greater than a preset distance after the furniture model object is laid out in the candidate area. In the case that the spatial distance is greater than the preset distance, it may be determined that the candidate region is successfully matched with the furniture model object. In the case that the spatial distance is smaller than or equal to the preset distance, it may be determined that the candidate region is successfully matched with the furniture model object.
Among them, TV cabinets and TV racks, etc.
For example, in a typical case, a bed object may be laid out against one long side wall, a furniture model object such as a television cabinet or a television rack may be laid out against another long side wall, and the bed object and the furniture model object such as the television cabinet or the television rack are laid out positionally relative to each other.
However, if the distance between the bed end of the bed object and the furniture model object such as the television cabinet or the television rack is large, it indicates that there is a large space between the bed end of the bed object and the furniture model object such as the television cabinet or the television rack, and the furniture model object such as the television cabinet or the television rack can be laid out by leaning on the other long-side wall.
If the distance between the bed tail of the bed object and the furniture model object such as the television cabinet or the television rack is smaller, it is indicated that only a smaller space exists between the bed tail of the bed object and the furniture model object such as the television cabinet or the television rack, and the furniture model object such as the television cabinet or the television rack can be laid out without leaning on another long-side wall, for example, the television object can be laid out only by leaning on another long-side wall, so as to avoid bringing the feeling of crowding the bedroom object to the user.
Further, when the furniture model object is not successfully matched with each candidate region, it is often indicated that the furniture model object cannot be properly laid out in the bedroom object, and therefore, the furniture model object may be discarded, that is, the furniture model object model may not be displayed in the bedroom object.
In step S603, position information of the layout of the furniture model object in the bedroom object is obtained according to the candidate region of the highest level successfully matched with the furniture model object.
For example, the position information of the candidate region of the highest level that is successfully matched with the furniture model object may be acquired and used as the position information of the furniture model object laid out in the bedroom object.
The present application is illustrated by way of an example, where it is found after counting a large number of houses that the size information of the bedroom object is large or small.
When the size information of the bedroom object is larger, the size information of the bedroom object is often indicated to be larger, and a large number of furniture model objects with larger size information can be arranged in the bedroom object to fill the bedroom object, so that the user is prevented from feeling that the bedroom object is swung.
When the size information of the bedroom object is small, the situation that the space of the bedroom object is small is often indicated, and a small number of furniture model objects with small size information can be arranged in the bedroom object, so that enough free space is reserved for the bedroom object, and the user is prevented from being crowded.
In the present application, the size information of the bedroom object may be divided into a plurality of different size information sets, and the types of furniture model objects that can be laid out in the different size information sets are different.
For example, in one example, the size information of the bedroom object may be divided into n different size information sets, respectively size information set 1, size information set 2, size information set 3.
If the size information of the bedroom object is located in the size information set 1, a large number of types of furniture model objects can be laid out in the bedroom object.
For example, at least one bed object, two bedside table objects, one dresser object, and one wardrobe object may be laid out to fill the bedroom object to avoid giving the user a feeling of having the bedroom object slosh.
Any one kind of furniture model object includes a plurality of furniture model objects of different size information.
Therefore, in order to reserve enough free space for the bedroom object while filling the bedroom object, avoid giving the user a feeling of the bedroom object being sloshing, and avoid giving the user a feeling of the bedroom object being crowded, the size information set 1 may be divided into a plurality of size information subsets, for example two size information subsets, a size information subset a and a size information subset B, respectively, and the size information subset a is larger than the size information subset B.
In one example, assume that the dimension information of the bedroom object includes: the length is 4.4 meters and the width is 2.5 meters, and the size information of the bedroom object is positioned in the size information set A.
The width of the bed object may be 2 meters, the width of both bedside table objects may be 0.5 meters, the width of the dresser object may be 0.8 meters, and the width of the wardrobe object may be 0.6 meters.
To avoid wasting space in the bedroom object as much as possible, multiple furniture model objects may be laid out against the long side wall object in the bedroom object, and multiple furniture model objects laid out against the long side wall object in the bedroom object may be next to each other two by two.
For example, referring to FIG. 9A, a bedside table object, a bed object, another bedside table object, and a vanity object may be laid out in sequence against one of the long side wall objects in the bedroom objects, and then a wardrobe object may be laid out against one of the short side walls in the bedroom objects, with one side of the wardrobe object against the one long side wall.
And after the furniture model objects such as the television cabinets or the television racks are arranged on the other long-side wall object opposite to the bed tail of the bed object, if the distance between the bed tail of the bed object and the furniture model objects such as the television cabinets or the television racks is smaller than 0.5 m, for example, it is indicated that only a small space exists between the bed tail of the bed object and the furniture model objects such as the television cabinets or the television racks, the furniture model objects such as the television cabinets or the television racks can be arranged on the other long-side wall object opposite to the bed tail of the bed object instead of, for example, the television objects can be arranged on the other long-side wall object opposite to the bed tail of the bed object only, so that the user is prevented from feeling that the bedroom objects are crowded.
In addition, referring to fig. 9B, after the furniture model objects such as the tv cabinet or the tv rack are laid out by the other long-side wall object opposite to the bed tail of the bed object, if the distance between the bed tail of the bed object and the tv cabinet object or the tv rack object is larger, for example, greater than or equal to 0.5 m, which indicates that there is a larger space between the bed tail of the bed object and the tv cabinet object or the tv rack object, the furniture model objects such as the tv cabinet or the tv rack object can be laid out by the other long-side wall object opposite to the bed tail of the bed object to fill up the bedroom object, so as to avoid giving the user a feeling that the bedroom object is swayed.
Wherein, in the above example, the priority of the bed object and the bedside table object may be greater than the priority of the dresser object, the priority of the dresser object may be greater than the priority of the wardrobe object, and the priority of the wardrobe object may be greater than the priority of the television object and the television cabinet object.
In the case where a wardrobe object having a width of 0.6 m cannot be laid out on the rightmost side of the bedroom object shown in fig. 9A, a wardrobe object having a local width of 0.6 m in other areas in the bedroom object may be tried.
For example, referring to fig. 9C, the areas in which the wardrobe object may be laid out in the bedroom object may include 5 areas, area 1, area 2, area 3, area 4, area 5, and area 6, and the priority of area 1 is greater than the priority of area 2, the priority of area 2 is greater than the priority of area 3, the priority of area 3 is greater than the priority of area 4, the priority of area 4 is greater than the priority of area 5, and the priority of area 5 is greater than the priority of area 6.
For example, if a wardrobe object with a width of 0.6 m can be accommodated in the area 1, a wardrobe object with a width of 0.6 m is laid out in the area 1 without considering the area 2, the area 3, the area 4 and the area 5, if a wardrobe object with a width of 0.6 m cannot be accommodated in the area 1, then the area 2 is considered, and so on, until a wardrobe object with a width of 0.6 m cannot be accommodated in the area 6, the wardrobe object with a width of 0.6 m is discarded, the wardrobe object with a smaller size information is selected, and the selected wardrobe object with a smaller size information is laid out again, or the wardrobe object is not laid out again in the bedroom object.
When a wardrobe object with a width of 0.6 m is laid out in the area 1, the wardrobe object leans against the right short-side wall object in the bedroom object, and the upper side of the wardrobe object leans against the upper long-side wall object in the bedroom object, that is, the long-side wall object against which the upper side of the wardrobe object leans is the same as the long-side wall object against which the bed object and the bedside table object lean.
When a wardrobe object having a width of 0.6 m is laid out in the area 2, the wardrobe object is backed against the right short-side wall object in the bedroom object, and the lower side surface of the wardrobe object is abutted against the lower long-side wall object in the bedroom object, that is, the long-side wall object against which the lower side surface of the wardrobe object is abutted is different from the long-side wall object against which the bed object and the bedside table object are backed.
When a wardrobe object having a width of 0.6 m is laid out in the area 3, the wardrobe object is backed against the long-side wall object on the lower side in the bedroom object, that is, the long-side wall object against which the wardrobe object is backed is different from the long-side wall object against which the bed object and the bedside table object are backed, and the right side face of the wardrobe object is abutted against the short-side wall object on the right side of the bedroom object.
When a wardrobe object having a width of 0.6 m is laid out in the area 4, the wardrobe object is backed against the long-side wall object on the lower side in the bedroom object, that is, the long-side wall object against which the wardrobe object is backed is different from the long-side wall object against which the bed object and the bedside table object are backed, and the left side face of the wardrobe object is abutted against the short-side wall object on the left side of the bedroom object.
When a wardrobe object having a width of 0.6 m is laid out in the area 5, the wardrobe object is backed against the left short-side wall object in the bedroom object, and the lower side surface of the wardrobe object is backed against the lower long-side wall object in the bedroom object, that is, the long-side wall object against which the lower side surface of the wardrobe object is backed is different from the long-side wall object against which the bed object and the bedside table object are backed.
When a wardrobe object having a width of 0.6 m is laid out in the area 6, the wardrobe object is backed against the short-side wall object on the left side in the bedroom object, and the upper side of the wardrobe object is abutted against the long-side wall object on the upper side in the bedroom object, that is, the long-side wall object against which the upper side of the wardrobe object is abutted is the same as the long-side wall object against which the bed object and the bedside table object are backed.
After the wardrobe objects are laid out, if the wardrobe objects occupy the wall object opposite to the bed end of the bed object and the television cabinet objects and the television objects cannot be laid out by the wall object opposite to the bed end of the bed object, the television cabinet objects and the television objects can be discarded because the priority of the wardrobe objects can be greater than the priority of the television objects and the television cabinet objects, that is, the television cabinet objects and the television objects are not laid out at this time.
In another example, assume that the dimension information of the bedroom object includes: a length of 4.2 meters and a width of 2.5 meters, the size information of the bedroom object is located within the size information set B.
The width of the bed object may be 1.8 meters, the width of both bedside table objects may be 0.5 meters, the width of the dresser object may be 0.8 meters, and the width of the wardrobe object may be 0.6 meters, i.e., in this example, the widths of the two bedside table objects, the dresser object, and the wardrobe object are the same as in the previous example, respectively.
To avoid wasting space in the bedroom object as much as possible, multiple furniture model objects may be laid out against the long side wall object in the bedroom object, and multiple furniture model objects laid out against the long side wall object in the bedroom object may be next to each other two by two.
For example, referring to FIG. 9D, a bedside table object, a bed object, another bedside table object, and a vanity object may be laid out in sequence against one of the long side wall objects in the bedroom objects, and then a wardrobe object may be laid out against one of the short side walls in the bedroom objects, with one side of the wardrobe object against the one long side wall.
And after the furniture model objects such as the television cabinets or the television racks are arranged on the other long-side wall object opposite to the bed tail of the bed object, if the distance between the bed tail of the bed object and the furniture model objects such as the television cabinets or the television racks is smaller than 0.5 m, for example, it is indicated that only a small space exists between the bed tail of the bed object and the furniture model objects such as the television cabinets or the television racks, the furniture model objects such as the television cabinets or the television racks can be arranged on the other long-side wall object opposite to the bed tail of the bed object instead of, for example, the television objects can be arranged on the other long-side wall object opposite to the bed tail of the bed object only, so that the user is prevented from feeling that the bedroom objects are crowded.
In addition, referring to fig. 9E, after the furniture model objects such as the tv cabinet or the tv rack are laid out by the other long-side wall object opposite to the bed tail of the bed object, if the distance between the bed tail of the bed object and the tv cabinet object or the tv rack object is larger, for example, greater than or equal to 0.5 m, which indicates that there is a larger space between the bed tail of the bed object and the tv cabinet object or the tv rack object, the furniture model objects such as the tv cabinet or the tv rack object can be laid out by the other long-side wall object opposite to the bed tail of the bed object to fill up the bedroom object, so as to avoid giving the user a feeling that the bedroom object is swayed.
Further, for other size information sets and the like in the n size information sets, reference may be made to the size information set 1, which is not described in detail herein.
Optionally, in an embodiment of the present invention, the spatial attribute further includes size information of a region of the at least one spatial object under the three-dimensional room space, and the at least one spatial object includes at least one of window information of a region of a window object under the three-dimensional room space, and the method may further include:
step 134, setting an indoor light object of the at least one space object according to the size information, wherein the indoor light object is used for simulating light rays generated by an indoor light source; and/or the presence of a gas in the gas,
and 135, setting an outdoor light object of the window object according to the window information, wherein the outdoor light object is used for simulating light rays generated by an outdoor light source.
In the embodiment of the present invention, the visual effect of light such as ambient light and light can be simulated in a Virtual three-dimensional room space based on an image user interface in a 3D (3-Dimension) space such as VR (Virtual Reality), AR (Augmented Reality), panorama, and the like, so as to realize a light and shade effect close to a real scene.
Moreover, in practical applications, the light of the space may include indoor light generated by indoor light sources such as lamps, and outdoor light generated by outdoor light sources such as the sun and the sky. As described above, to show a house object in the graphical user interface, a light and shade effect close to a real scene is achieved. The indoor light and the outdoor light can be respectively simulated and displayed.
Specifically, for at least one space object in the room objects, a space attribute of the at least one space object may be obtained, where the space attribute includes size information of a region of the at least one space object in the three-dimensional room space, and the at least one space object includes at least one of window information of a region of a window object in the three-dimensional room space.
In the embodiment of the present invention, the spatial attribute may be obtained by any available method, and the embodiment of the present invention is not limited thereto. For example, data used to construct a corresponding at least one space object in the three-dimensional room space may be acquired as its spatial attribute, data of a corresponding at least one space object in the three-dimensional room space after the construction may be acquired as its spatial attribute, and so on. Furthermore, the three-dimensional room space can be constructed in any available manner in the embodiments of the present invention, and the embodiments of the present invention are not limited thereto. For example, a three-dimensional house space of the target house may be constructed based on at least one of data of a 2D house figure, a 3D house figure, a panorama figure, and the like of the target house, and so on.
At least one of the space objects can be set by user according to requirements, and the light and shade effects of the real scene can be different for different space objects, so that the modes for simulating the light and shade effects of the real scene for different space objects can also be different, the setting by user can be specifically set by user according to requirements, and the embodiment of the invention is not limited. Furthermore, the size information may include size information of an area of the space object in the three-dimensional room space, size information of the space object corresponding to the actual size of the target room, and the like. In addition, the size information may include size information of any structural body object such as any wall object, door frame object, etc. in the space object, and the window information may include any information related to the window object, such as a position of the window object, an orientation of the window object, size information of the window object, a space type of the space object to which the window object belongs, whether the window object is associated with a balcony object, etc. Specifically, in different application scenarios, the size information of the space object and the window information of the window object may be set by a user according to a requirement, which is not limited in the embodiment of the present invention.
In the embodiment of the present invention, the spatial attribute may be obtained by any available method, and the embodiment of the present invention is not limited thereto. For example, data used to construct a corresponding at least one space object in the three-dimensional room space may be acquired as its spatial attribute, data of a corresponding at least one space object in the three-dimensional room space after the construction may be acquired as its spatial attribute, and so on. Furthermore, the three-dimensional room space can be constructed in any available manner in the embodiments of the present invention, and the embodiments of the present invention are not limited thereto. For example, a three-dimensional house space of the target house may be constructed based on at least one of data of a 2D house figure, a 3D house figure, a panorama figure, and the like of the target house, and so on.
Moreover, the light and dark conditions in the real environment as described above may be affected by indoor light sources (e.g., ceiling lights), outdoor light sources (e.g., sunlight, sky light). Then, after obtaining the spatial attribute of at least one spatial object in the room objects, the indoor light object corresponding to the at least one spatial object may be set according to the size information of the at least one spatial object contained therein, and/or the outdoor light object corresponding to the window object may be set according to the window information contained therein. Wherein, the indoor light object (such as the ceiling lamp model object) is used for simulating the light generated by the indoor light source, and the outdoor light object is used for simulating the light generated by the outdoor light source.
In the embodiment of the present invention, the indoor light object and the outdoor light object may be generated by any algorithm capable of simulating a light source, and the simulation algorithm of the indoor light object and the simulation algorithm of the outdoor light object may be different, and the setting manner of the indoor light object and the setting manner of the outdoor light object may also be different, and the indoor light object and the outdoor light object may be specifically set by a user according to a requirement, which is not limited in the embodiment of the present invention. Moreover, the relationship between the indoor light object of the space object and the size information of the corresponding space object, and the relationship between the outdoor light object of the window object and the window information of the corresponding window object, may be set by user according to requirements, and the embodiment of the present invention is not limited thereto.
Optionally, in an embodiment of the present invention, the outdoor light object includes at least one of a solar light object and a skylight object, the window information includes at least one of a space type of a space object to which the window object belongs, size information of an area of the window object under the three-dimensional house space, and whether the window object is associated with a balcony object, and the step 135 further includes:
step 1351, setting a skylight object of each window object according to the size information of the window object and a preset relative position parameter between the skylight objects; and/or the presence of a gas in the gas,
step 1352, setting the sunlight object of the window object according to the space type of the space object to which the window object belongs, the size information of the area of the window object under the three-dimensional house space, whether the window object is associated with the balcony object, and a preset relative position parameter between the sunlight object and the window object.
In a real scene, the light generated by the outdoor light source of the house may include sunlight, skylight, and the like, and therefore, in the embodiment of the present invention, in order to improve the closeness between the light effect generated by the outdoor light source in the three-dimensional house space shown by the image user interface and the real environment, at least one of a skylight object and a sunlight object may be set for each window object, respectively. The sky light object is used for simulating light rays generated by diffuse reflection of the sky, and the sunlight object is used for simulating light rays generated by the sun.
Specifically, for each window object, a skylight object of the window object may be set according to size information of a region of the window object under the three-dimensional house space and a preset relative position parameter between the skylight object and the window object; and/or setting the sunlight object of the window object according to the space type of the space object to which the window object belongs, the size information of the area of the window object under the three-dimensional house space, whether the window object is associated with the balcony object or not and the preset relative position parameter between the sunlight object and the window object.
The size information of the area of the window object in the three-dimensional room space may include any information related to the space size, such as real-time size information of the area of the window object in the three-dimensional room space, and real size information of the window object corresponding to the target room; the space type may be understood as a room type of the space object, for example, including the aforementioned dining room, bedroom, living room, entrance, kitchen, washroom, and the like, and in the embodiment of the present invention, the space type may also be set according to a specific application scenario, which is not limited in this embodiment of the present invention.
The relative position parameter between the skylight object and the window object and the relative position parameter between the sunlight object and the window object may also be preset according to the requirements and specific application scenarios, and the embodiment of the present invention is not limited thereto.
Moreover, in practical applications, a plurality of window objects may be included in the same house object, and the orientations of the window objects are not completely consistent, that is, there may be a portion of the window objects facing the sun, and another portion of the window objects facing away from the sun, so that in order to achieve the light and shade effects close to the real scene, there may be a portion of the window objects that do not need to be set with sunlight objects, and only a portion of the window objects may be set with sunlight objects, and so on. Moreover, when selecting the window objects needing to be provided with the sunlight objects, the actual position of each window object in the target house can be referred to, and the window objects needing to be provided with the sunlight objects can also be determined according to whether the window objects are associated with balcony objects or not and the priorities of different space types.
For example, the principle that the window object to be set can be selected includes the following: 1. preferentially selecting a window object associated with a balcony object as a window object facing sunlight, then selecting a window object in the space objects with the space type of bedroom as the window object facing the sunlight, 2, setting the window object on the same side as the window object facing the sunlight in the step 1 or a window object with a tolerance value within 30 degrees, and 3, when the space object has a plurality of window objects, selecting only one window object consistent with or close to the direction facing the sunlight to set the sunlight object; and so on. And after the window object needing to be provided with the sunlight object is selected, when the sunlight object of the corresponding window object is provided, determining the position of the sunlight object corresponding to the corresponding window object in the three-dimensional room space according to the size information of the area of the window object in the three-dimensional room space and the relative position parameter between the sunlight object and the window object.
Correspondingly, when the skylight object of the window object is set, the position of the skylight object corresponding to the corresponding window object in the three-dimensional room space can be determined according to the size information of the area of the window object in the three-dimensional room space and the relative position parameter between the skylight object and the window object.
In the embodiment of the present invention, the sunlight object and the skylight object may be simulated and generated by any available method, but the embodiment of the present invention is not limited thereto. For example, a solar light object may be simulated by any light fixture simulation algorithm such as a parallel light simulation object, a spotlight simulation object, a floodlight simulation object, a skylight simulation object may be simulated by a surface light source, and so on.
Optionally, in an embodiment of the present invention, the step 1352 further includes:
step 13521, acquiring a target window object needing to be provided with a sunlight object according to the space type of the space object to which the window object belongs and whether the window object is associated with a balcony object;
step 13522, setting the sunlight object of the target window object according to the size information of the region of the target window object in the three-dimensional room space and the preset relative position parameter between the sunlight object and the window object for each target window object.
As described above, in practical applications, a plurality of window objects may be included in the same house object, and the orientations of the window objects are not completely consistent, that is, there may be a portion of the window objects facing the sun, and another portion of the window objects facing away from the sun, so that in order to achieve the light and shade effects close to the real scene, there may be a portion of the window objects that are not needed to be set with the sunlight objects, but only a portion of the window objects are set with the sunlight objects, and so on.
Then, at this time, preferably, a target window object to be provided with the sunlight object can be obtained according to the space type of the space object to which each window object belongs and whether the window object is associated with the balcony object; and then, for each target window object, setting the sunlight object of the target window object according to the size information of the area of the target window object under the three-dimensional house space and the preset relative position parameter between the sunlight object and the window object.
When the target window object is selected, the relationship between the set selection principle, the space type of the space object to which the window object belongs, and whether the window object is associated with the balcony object or not may be set by user according to requirements, and the embodiment of the present invention is not limited.
For example, the selection principle may be set to include the following: 1. preferentially selecting a window object associated with a balcony object as a window object facing sunlight, then selecting a window object in the space objects with the space type of bedroom as the window object facing the sunlight, 2, setting the window object on the same side as the window object facing the sunlight in the step 1 or a window object with a tolerance value within 30 degrees, and 3, when the space object has a plurality of window objects, selecting only one window object consistent with or close to the direction facing the sunlight to set the sunlight object; and so on.
Optionally, in an embodiment of the present invention, the step 13521 further includes:
step T1, extracting a window object associated with the balcony object from the at least one space object to obtain a first window object;
step T2, if the number of the first window objects is 1, taking the first window object as a reference window object;
step T3, if the number of the first window objects is greater than 1, according to the space type of the space object to which the first window object belongs and the priority of the preset space type, acquiring the first window object with the highest priority as a reference window object;
step T4, if the number of the first window objects is 0, acquiring the window object with the highest priority as a reference window object according to the space type of the space object to which each window object belongs and the priority of the preset space type;
and step T5, taking the reference window object as a target window object, and simultaneously acquiring a window object with the orientation deviation of the reference window object within a preset tolerance value as the target window object.
In the embodiment of the present invention, when selecting a target window object, one of the window objects may be determined as a reference object, and then a window object whose orientation deviation from the reference object is within a preset tolerance value may be selected as the target window object, and the reference window object may also be used as a target window object. That is, the target window object may include the reference window object, and the window object whose orientation is deviated from the reference window object within the preset tolerance value.
The preset tolerance value can be set by user according to requirements, and the embodiment of the invention is not limited. For example, a preset tolerance value of 30 ° may be set, and so on.
When the reference window object is selected, the window object associated with the balcony object may be prioritized. Specifically, window objects associated with a balcony object in the at least one space object may be extracted to obtain first window objects, and then the number of the first window objects is counted, and if the number of the first window objects is 1, the first window objects may be directly used as reference window objects; if the number of the first window objects is greater than 1, acquiring a first window object with the highest priority as a reference window object according to the space type of the space object to which each first window object belongs and the priority of the preset space type; and if the number of the first window objects is 0, acquiring a window object with the highest priority as a reference window object according to the space type of the space object to which each window object belongs and the priority of the preset space type.
The priority of the space type may be set by user according to requirements, and the embodiment of the present invention is not limited. For example, the space types may be prioritized sequentially for living room, main bed, sub bed, restaurant, restroom, and so on.
For example, if the number of the first window objects is 3, and the spatial types of the spatial objects to which the respective first window objects belong are a living room, a home-sleeping room, and a restroom in sequence, at this time, the window object with the highest priority may be selected, that is, the first window object in the spatial objects with the spatial type of the living room is the reference window object.
Optionally, in this embodiment of the present invention, the window information further includes an actual position of the window object, and step 13521 further includes: and acquiring the window object with the actual position within a preset position range according to the actual position of the window object, and taking the window object as the target window object.
If the window information further includes the actual position of the window object in the real environment, in order to enable a user to conveniently perceive the actual position of each window object in the house object while simulating the brightness degree in the real environment of the house, the target window object to be provided with the sunlight object may be selected by referring to the actual position of each window object. Specifically, the window object with the actual orientation within the preset orientation range may be acquired as the target window object according to the actual orientation of the window object. The preset azimuth range may be preset according to a requirement, and the embodiment of the present invention is not limited.
For example, the preset azimuth range may be set to an upright south direction, an upright east direction, an azimuth whose azimuth deviation from the upright south direction is within a first angle range, an azimuth whose azimuth deviation from the upright east direction is within a second angle range, and the like.
Optionally, in an embodiment of the present invention, each window object corresponds to a skylight object, and a horizontal distance between the skylight object and its corresponding window object is a first preset distance, an included angle between the skylight object and the window object is 0 °, and a connection line between a center point of the skylight object and a center point of the window object is parallel to the bottom of the house object; the skylight object is an indoor-oriented surface light source simulation object, the area of the surface light source simulation object is a preset proportion of the area of a corresponding window object, the color value of the surface light source simulation object is E8F4FF, the intensity is 70W (watt), and the highlight value is 0; the preset proportion is 90%, the first preset distance is 150 mm, or the first preset distance can be set to 100 mm.
The horizontal distance between the sunlight object and the corresponding window object is a second preset distance, and the vertical distance between the sunlight object and the bottom of the house object is a third preset distance; the irradiation direction of the sunlight object is horizontally and downwards rotated by a preset angle; the sunlight object is a spotlight simulation object facing indoors, the light spot radiation angle of the spotlight simulation object is the included angle formed by two points with the longest distance in the window object (for example, two end points of the longest diagonal line in the frame of the window object) and the spotlight simulation object (the vertex of the included angle is the position of the spotlight simulation object), the color value of the spotlight simulation object is FFEBCC, the intensity is 15000W, the highlight value is 0, the shadow fuzzy radius is 0.25 m, and the fuzzy value of the light edge is 0.15; the second preset distance is 4200 mm, the third preset distance is 6600 mm, and the preset angle is 55 °.
The shadow blurring radius can represent the blurring degree of the shadow, if the value of the shadow blurring radius is 0, the shadow does not have a blurring effect, and the larger the value of the shadow is, the more blurred the shadow edge is; highlight refers to when a light source irradiates an object and then reflects the light into the eyes of a person, the brightest point on the object is highlight, and highlight is not light, but the brightest part of the object. The blur value of the light edge characterizes the degree of blur of the light edge. The spot radiation angle may characterize the maximum radiation angle of the spot produced by the spotlight simulation object. Moreover, the first preset distance is a horizontal distance between the skylight object and the corresponding window object in the real scene of the target house, and when the house object of the target house is constructed, the corresponding skylight object can be constructed at the corresponding position of the house object by referring to the first preset distance; of course, in the embodiment of the present invention, the first preset distance may also be set as the distance in the three-dimensional room space according to the three-dimensional room space, and the embodiment of the present invention is not limited thereto. Moreover, the second predetermined distance and the third predetermined distance are similar to the first predetermined distance, and are not described herein again.
In addition, in the embodiment of the present invention, the area light source simulation object and the spotlight simulation object may be implemented by any available simulation algorithm, which is not limited to the embodiment of the present invention. Further, when the surface light source simulation object or the spotlight simulation object is provided, it is possible to set whether or not the shadow is generated, and to set the degree of the generated shadow blur by setting the shadow blur radius.
Fig. 10A is a schematic view illustrating a solar light object set for a window object, and fig. 10B is a schematic view illustrating a skylight object set for a window object.
Optionally, in an embodiment of the present invention, the step 134 further includes:
step 1341, identifying a rectangular area on the top of the at least one space object according to the size information, and obtaining size information of each rectangular area;
step 1342, for each rectangular area, filling the rectangular area with a preset transparent rectangular scale according to the size information of the rectangular area, and setting an indoor light object at the center of each transparent rectangular scale.
In order to simulate diffuse reflection of light generated by an indoor light source in a space object and balance the light and shade balance degree of each indoor part, a rectangular area at the top of at least one space object can be identified according to the size information, the size information of each rectangular area is acquired, and then a corresponding rectangular area is filled through a preset transparent rectangular scale according to the size information of the rectangular area aiming at each rectangular area obtained through identification, and an indoor light object is arranged at the center of each transparent rectangular scale.
Furthermore, in the embodiment of the present invention, the rectangular area on the top of the space object may be identified in any available manner, and the embodiment of the present invention is not limited thereto. And when filling the rectangle region through transparent rectangle scale, can begin from a corner in the rectangle region, fill transparent rectangle scale in proper order, until filling corresponding rectangle region and not overflowing, each transparent rectangle scale is mutually not coincide moreover, and no clearance is between the adjacent transparent rectangle scale. The specific size of the transparent rectangular scale can be set by user according to requirements, and the specific sizes of the transparent rectangular scales of different space objects can be different, so that the embodiment of the invention is not limited. For example, the transparent rectangular scale may be set to be a square with a length of 3000mm (millimeter), at this time, the size of the transparent rectangular scale is the size in a real scene, and when a rectangular region is filled, the transparent rectangular scale may be correspondingly scaled according to the size information of the rectangular region, so as to fill the rectangular region. Moreover, the start position of the filled transparent rectangular scale can be set by user according to the requirement, or set randomly, which is not limited in the embodiment of the present invention.
For example, if the transparent rectangular scale is a square with a length of 3000mm, and the size information of the rectangular area includes that the size of the rectangular area in the real scene is 5000mm × 4000mm, then only one transparent rectangular scale can be filled in the rectangular area, and an indoor light object is set at the center of the corresponding transparent rectangular scale.
Alternatively, in the embodiment of the present invention, it may also be set that if only one transparent rectangular scale can be filled in the rectangular region, one room light object may be directly set at the center position of the rectangular region.
In addition, in the embodiment of the present invention, the rectangular region may not be filled with the transparent rectangular scale, but the rectangular region may be directly divided according to the transparent rectangular scale, and one indoor light object may be set at the center position of each sub-region obtained by the division. Accordingly, if the number of sub-regions obtained by dividing the rectangular region is 1, an indoor light object may be directly disposed at the center of the rectangular region.
Optionally, in an embodiment of the present invention, a distance between the indoor light object and the top of the space object is a fourth preset distance; the fourth preset distance is 10 mm, or the first preset distance can be 1 mm, and the like, and the transparent rectangular scale is a square with the side length of 3000 mm; the indoor light object is a spotlight simulation object facing the ground, the color value of the spotlight simulation object is FFF0DF, the intensity is 15W, the highlight value is 0.1, the shadow fuzzy radius is 0.34 m, the light spot radiation angle is 180 degrees, and the fuzzy value of the light ray edge is 0.3.
Accordingly, the fourth predetermined distance may refer to the first predetermined distance, which is not described herein. Fig. 10C is a schematic diagram of an indoor light object installed in a space object.
Optionally, in an embodiment of the present invention, the spatial attribute further includes size information of an area of the ceiling object included in the at least one spatial object under the three-dimensional room space, and the method may further include:
step 136, determining down lamp position data of the at least one space object according to the space attribute;
and 137, setting a down lamp object in the at least one space object according to the down lamp position data, wherein the down lamp object is used for simulating and generating the supplementary light.
In the embodiment of the invention, the down lamp object can be arranged in the virtual three-dimensional house space to perform appropriate light supplement so as to improve the light effect and visual effect of virtual decoration.
The light and shade and the light effect of the real scene can be different for different space objects, so that the placing modes of the down lamp objects for light supplement can be different for different space objects, the down lamp objects can be specifically set by self-definition according to requirements, and the embodiment of the invention is not limited. Therefore, in the embodiment of the present invention, after obtaining the spatial attribute of at least one spatial object in the house objects, the downlight position data corresponding to the at least one spatial object may be further determined according to the spatial attribute. Specifically, the down lamp position data of the corresponding space object may be determined according to the space attribute of each space object. The determination rule of the down lamp position of the space object can be set by self according to requirements, and the determination rules of different space objects can be different or the same, and the embodiment of the invention is not limited. Moreover, the down lamp object may be located on the surface of the wall object, or may be located on any position such as the surface of the ceiling object, and the embodiment of the present invention is not limited thereto.
After the position data of the down lamp is determined, the down lamp object can be set in the area where the corresponding at least one space object is located in the three-dimensional house space according to the position data of the down lamp, and the down lamp object is used for simulating and generating the supplementary light.
In the embodiment of the present invention, the generation of the down lamp object may be simulated in any available manner, and parameters of the down lamp object may also be set by self-definition according to requirements, which is not limited in the embodiment of the present invention. For example, a downlight object may be generated by simulation of a simulation algorithm of a light fixture such as a parallel light simulation object, a floodlight simulation object, a spotlight simulation object, and so on.
Optionally, in this embodiment of the present invention, the spatial attribute includes size information of an area of the ceiling object included in the at least one spatial object under the three-dimensional room space, and the step 136 may further include:
step 1361, for each space object in the at least one space object, acquiring downlight position data of the space object according to the size information of the ceiling object included in the space object, where the ceiling object includes at least one ceiling edge object.
In practical application, in order to realize balanced light supplement and avoid the down lamp object from occupying too much space, the down lamp object can be set in the ceiling object at the top of the space object, and then the down lamp position data of the corresponding space object can be determined according to the size information of the ceiling object contained in the space object for each space object in the at least one space object, wherein the ceiling object comprises at least one ceiling edge object.
In addition, in practical applications, the ceiling object generally includes a plurality of ceiling edge objects, for example, the ceiling object is generally a rectangular frame, and each edge in the rectangular frame is a ceiling edge object. And when the down lamp position data is obtained, the down lamp position data of each ceiling object can be obtained by taking the ceiling object as a unit, or the down lamp position data of each ceiling object can be further obtained by taking the ceiling edge object as a unit, which is not limited by the embodiment of the invention.
For example, for each ceiling object, the position of the down lamp corresponding to each corner can be determined, and then the positions of other down lamps are determined according to the relative position condition between adjacent down lamp objects and the size information of the ceiling object, so that the down lamp position data of the ceiling object is obtained; or, the position of the down lamp corresponding to each end of each ceiling edge object can be determined according to the ceiling edge object, and then the positions of other down lamps are determined according to the relative position condition between the adjacent down lamp objects and the size information of the ceiling edge object, so that the down lamp position data of the ceiling edge object is obtained; and so on. The relative position condition can be set by self-definition according to requirements, and the embodiment of the invention is not limited. For example, the relative position condition may be set such that the distance between two adjacent down lamp objects in the same ceiling edge object is between 1000mm (millimeter) and 1500mm, and so on.
Optionally, in this embodiment of the present invention, the spatial attribute further includes furniture layout data of the at least one spatial object, where the furniture layout data includes at least one furniture model object and location information corresponding to the furniture model object, and the step 1361 may further include:
step 13611, for each space object in the at least one space object, obtaining a ceiling edge object at the top of the target background wall object according to the furniture layout data of the space object; the target background wall object is a background wall object corresponding to the target furniture model object, and the target furniture model object comprises at least one of a sofa model object, a television model object and a bed model object.
Step 13612, for the ceiling edge object on the top of the target background wall object, acquiring the down lamp position data of the space object according to the size information of the ceiling edge object.
In practical application, in order to enable the light supplement effect to be closer to the visual demand of a user, the light supplement can be only performed on partial positions or partial areas of a sofa wall, a television wall, a bedside wall and the like. The obtained spatial attributes may further include furniture layout data corresponding to the at least one spatial object, where the furniture layout data includes at least one furniture model object and position information corresponding to the furniture model object. Therefore, the target background wall object corresponding to the target furniture model object can be obtained according to furniture layout data, and then the down lamp object is only set aiming at the ceiling edge object at the top of the target background wall, so that the down lamp position data can be obtained aiming at the ceiling edge object at the top of the target background wall.
The furniture layout data of the space objects can be set in a user-defined manner according to requirements, for example, at least one furniture layout template and the adaptation conditions of each furniture layout template can be set for each space object in advance, and then the adapted furniture layout template can be determined according to the size information of each space object, and the furniture layout data corresponding to the corresponding furniture layout template can be obtained; alternatively, the furniture layout data of each space object can be set by the related user; and so on.
Correspondingly, for each space object in the at least one space object, the ceiling edge object at the top of the target background wall object can be obtained according to the furniture layout data of the space object. And then aiming at the ceiling edge object at the top of the target background wall object, acquiring down lamp position data of the space object according to the size information of the ceiling edge object.
The target background wall object is a background wall object corresponding to the target furniture model object, and the target furniture model object comprises at least one of a sofa model object, a television model object and a bed model object.
In addition, in the embodiment of the present invention, when the target background wall object is selected, the wall objects including the door object, the window object, the open space object, and the like may be excluded by an exclusion method, and other wall objects that are not excluded may be used as the target background wall object, and the like.
Optionally, in the embodiment of the present invention, when obtaining the down lamp position data of the space object according to the size information of the ceiling object, and/or obtaining the down lamp position data of the space object according to the size information of the ceiling edge object, the following method may be specifically used: determining down lamp position data of the ceiling edge object according to the size information of the ceiling edge object and a preset down lamp spacing condition; the distance between any two adjacent down lamp objects is the same, the distance between each down lamp object and the two sides of the ceiling edge object where the down lamp object is located is the same, the down lamp objects are placed in the middle according to the length of the whole ceiling edge object, and the tops of the down lamp objects are aligned with the bottoms of the ceiling edge objects.
In the embodiment of the invention, in order to balance the lighting effect of each down lamp object, the down lamp spacing condition between two adjacent down lamp objects in the same ceiling edge object can be set according to requirements, and then the down lamp position data of the ceiling edge object is determined according to the size information of each ceiling edge object in the selected ceiling object, and/or the size information of each selected ceiling edge object and the preset down lamp spacing condition. And need to guarantee that the interval between two arbitrary adjacent down lamp objects is the same, every down lamp object is the same apart from the distance of its place furred ceiling limit object both sides (also the central line that also falls down lamp object is located the central line of furred ceiling limit object), and the down lamp object is put between two parties according to the length of whole furred ceiling limit object (also the central point that the central line that also falls down lamp object is the central point of furred ceiling limit object), just the top of down lamp object with the bottom of furred ceiling limit object aligns.
For example, for each ceiling edge object, the positions of the down lamps at two ends of the ceiling edge object can be set firstly, and then the positions of other down lamps are set, when the positions of the down lamps are set, the same distance between any two adjacent down lamp objects needs to be ensured and the preset down lamp distance condition is met, the distance between each down lamp object and two sides of the ceiling edge object where the down lamp object is located is the same, and if the same distance between any two adjacent down lamp objects cannot be ensured and the preset down lamp distance condition is met when other down lamp positions are set, the positions of the down lamps at two ends of the initially set ceiling edge object can be further adjusted until the same distance between any two adjacent down lamp objects after the setting is finished and the preset down lamp distance condition is met; and if the same furred ceiling edge object has multiple down lamp placing schemes, and each down lamp placing scheme can meet the conditions, then the priority strategy for selecting the down lamp placing schemes can be preset at the moment, for example, the down lamp position data of the down lamp placing scheme with the largest number of down lamps is selected preferentially to serve as the currently applicable down lamp position data, and the like.
For example, assuming that the preset tube light spacing condition is that the distance between two tube lights is 1000 to 1500mm, the first distance between the initial tube light position at two ends of the ceiling edge object and the nearest ceiling edge object section is 300mm, for the ceiling edge object with the length of 4000mm, in order to ensure that the distance between any two adjacent tube light objects is the same at this time, if three tube light objects are arranged in the ceiling edge object, the distance between two adjacent tube light objects is (4000-300 x 2)/2, namely 1700mm, exceeding the tube light spacing condition, and if four tube light objects are arranged in the ceiling edge object, the distance between two adjacent tube light objects is (4000-300 x 2)/3, namely 1133.3mm, the preset tube light spacing condition is satisfied, so that four tube light objects can be arranged in the ceiling edge object with the length of 4000mm, therefore, the down lamp position data of each down lamp object is obtained, namely the down lamp position data of the suspended ceiling edge object is obtained.
And for the furred ceiling limit object that length is 2200mm, then if set up two down lamp objects in this furred ceiling limit object, the interval between two adjacent down lamp objects is 2200-300 x 2 this moment, promptly be 1600mm, exceed the above-mentioned down lamp interval condition, and if set up three down lamp objects in this furred ceiling limit object, the interval between two adjacent down lamp objects this moment is (2200-300 x 2)/2, promptly 800mm, still unsatisfied preset down lamp interval condition, and continue to increase the quantity of down lamp object this moment and can further reduce the interval between two adjacent down lamp objects on the contrary, unsatisfied preset down lamp interval condition all the time. Then, at this time, in order to enable the distance between two adjacent down lamp objects to satisfy the preset down lamp distance condition, the first distance between the initial down lamp positions at the two ends of the ceiling edge object and the ceiling edge object section closest to the initial down lamp positions can be adjusted, for example, the first distance is adjusted to 500mm, at this time, if two down lamp objects are arranged in the ceiling edge object, the distance between two adjacent down lamp objects is 2200 to 500 x 2, that is, 1200mm, and the preset down lamp distance condition is satisfied.
In the embodiment of the present invention, an adjustment principle of the first distance may be set according to a requirement, and the embodiment of the present invention is not limited. For example, the adjustment principle of the first distance may be set to be that the value range of the first distance is [200mm, 600mm ], and the variation range of each adjustment is 100mm, and the first distance is preferably sequentially increased on the basis of the initial first distance, and then the first distance is sequentially decreased on the basis of the initial first distance, and so on.
And if to a certain furred ceiling limit object, no matter how to adjust first distance, all can't make wherein arbitrary two adjacent down lamp objects satisfy foretell down lamp interval condition in the value range of first distance, then can not set up the down lamp object at this furred ceiling limit object this moment, also can not acquire the down lamp position data of this furred ceiling limit object.
Optionally, in the embodiment of the present invention, the tube lamp spacing condition includes that a spacing between any two adjacent tube lamp objects is greater than or equal to 1000 mm and less than or equal to 1500 mm.
Moreover, the above-mentioned down lamp spacing condition is a down lamp spacing condition set for a real distance in a real scene of a target house, and the corresponding obtained down lamp position data can also be understood as position data of a down lamp object relative to a ceiling object in the real scene of the target house, so that when the house object of the target house is displayed, the down lamp position data can be referred to, and the corresponding down lamp object is set at a corresponding position to simulate a lighting effect in the real scene.
Optionally, in an embodiment of the present invention, each of the downlight objects is obtained by combining two spotlight simulation objects which are overlapped in position and oriented perpendicular to the ground in the three-dimensional room space, highlight values of both the spotlight simulation objects are 0, color values of both the spotlight simulation objects are FFD5a6, shadow blur radii of both the spotlight simulation objects are 0.085 m, a spot radiation angle of one of the spotlight simulation objects is 70 °, a blur value of a light edge of the spotlight simulation object is 0.5, and an intensity of the spotlight simulation object is 10w (watt), a spot radiation angle of the other spotlight simulation object is 90 °, a blur value of the light edge of the spotlight simulation object is 0.2, and an intensity of the spotlight simulation.
The shadow blurring radius can represent the blurring degree of the shadow, if the value of the shadow blurring radius is 0, the shadow does not have a blurring effect, and the larger the value of the shadow is, the more blurred the shadow edge is; highlight refers to when a light source irradiates an object and then reflects the light into the eyes of a person, the brightest point on the object is highlight, and highlight is not light, but the brightest part of the object. The blur value of the light edge characterizes the degree of blur of the light edge. The spot radiation angle may characterize the maximum radiation angle of the spot produced by the spotlight simulation object.
In addition, in the embodiment of the present invention, the spotlight simulation object may be implemented by any available simulation algorithm, and the embodiment of the present invention is not limited thereto. Moreover, when the spotlight simulation object is set, it is also possible to set the generation of the shadow thereof in a targeted manner, and to set the degree of the shadow blur by setting the shadow blur radius described above.
Fig. 11 is a schematic view showing a down lamp object installed in a ceiling object of a restaurant. Can set up down lamp object this moment in two relative furred ceiling limit objects of this furred ceiling object, and first distance is 300mm, and all sets up two down lamp objects in each furred ceiling limit object.
In the embodiment of the invention, the down lamp position data of at least one space object in the three-dimensional house space is determined fully automatically, and the down lamp object is installed to supplement indoor light, so that a user can rapidly simulate and supplement the indoor light under the condition that the three-dimensional house space is obtained by using a self-owned house type picture and a panoramic picture and constructing, and the user experience is improved.
In an optional embodiment of the present invention, for any space object, if there are at least two pieces of furniture layout data, the furniture layout data with the highest layout priority may be selected from the at least two pieces of furniture layout data as first furniture layout data, where the first furniture layout data includes a first set of furniture model objects and first position information corresponding to the first set of furniture model objects, and then the first set of furniture model objects is displayed in the corresponding space object according to the first position information. It should be noted that any one of the at least two pieces of furniture layout data may correspond to one furniture layout template, and the furniture layout of the corresponding space object may be completed through any one of the at least two pieces of furniture layout data. Furthermore, at least one furniture model object may be included in one furniture layout data, which is not limited to the embodiment of the present invention.
Referring to fig. 2, in the embodiment of the present invention, the method may further include:
and 140, generating a panoramic decoration image of the target house based on the online decoration result, and displaying the panoramic decoration image through an image user interface of a preset terminal.
After the on-line decoration result of the house object is obtained, in order to facilitate a user to check the decoration effect, the panoramic decoration image of the target house can be further generated based on the on-line decoration result, and the panoramic decoration image is displayed through an image user interface of a preset terminal. Furthermore, in the embodiment of the present invention, the panoramic decoration image may be generated in any available manner, which is not limited to this embodiment of the present invention.
For example, a panoramic decoration image may be generated based on a camera point location corresponding to panoramic data in the modeling data, and the panoramic decoration image of each room may be displayed based on the corresponding camera point location of each room; if the modeling data does not contain panoramic data, the camera position of each room can be determined through a preset algorithm, or the center position with the height being a designated height in each room is used as the camera position of the corresponding room, and the like. The setting can be customized according to the requirement, and the embodiment of the invention is not limited.
Moreover, the image user interface of the preset terminal may be a Web-side interface, an interface in App, or the like, and the embodiment of the present invention is not limited.
Meanwhile, in the process of displaying the panoramic decoration image by the preset terminal, aiming at each space object in the at least one space object, if the furniture layout data of the space objects are at least two, the switching operation input by the user through the preset terminal can be responded, the furniture layout data selected by the user can be obtained and displayed, so that the terminal can select the furniture matched with the space object according to the space attributes of the space objects and then display the furniture, full-automatic decoration can be realized, the user can enable the user type diagram to obtain different decoration schemes, the user experience is improved, different decoration schemes can be displayed according to the requirements of the user, and the browsing diversity of the user is enriched.
It should be noted that, as for the layout priority, the priority may be set according to the furniture size, the priority may also be set according to the design style, the priority may also be set according to the preference of the user, and the like.
In addition, the terminal can also output prompt information at the same time to inform a user that at least two furniture layout data exist at the moment, and the user can switch and display the furniture layout data, for example, after the user perceives the prompt information, the user can know that other furniture layout data exist, and if the user needs to check the furniture model objects displayed according to the other furniture layout data, the user can input switching operation to enable the terminal to display the furniture model objects in other layout modes.
Referring to fig. 2, in the embodiment of the present invention, the method may further include:
step 150, in response to a switching operation acting on the preset terminal, extracting second furniture layout data corresponding to the switching operation from the at least two furniture layout data, where the second furniture layout data includes a second set of furniture model objects and second position information corresponding to the second furniture model;
and 160, canceling the display of the currently displayed first group of furniture model objects, and displaying the second group of furniture model objects in the space object according to the second position information.
Referring to fig. 2, in the embodiment of the present invention, the method may further include:
step 170, responding to a furniture editing operation acting on the preset terminal, and executing the furniture editing operation aiming at a furniture model object in the space object; wherein the furniture editing operation comprises at least one of a furniture deleting operation, a furniture adding operation, a furniture moving operation, and a furniture replacing operation.
And 180, generating and storing new furniture layout data based on the furniture layout data after the furniture editing operation.
When a user wants to switch the currently displayed furniture model object, the terminal can respond to the switching operation acted on the preset terminal and extract second furniture layout data corresponding to the switching operation from at least two furniture layout data, wherein the second furniture layout data comprise a second group of furniture model objects and second position information corresponding to a second furniture model; the display of the first group of furniture model objects is cancelled, the second group of furniture model objects are displayed in the restaurant objects according to the second position information, so that the terminal can provide at least one furniture layout mode for the user according to the space attributes of the space objects, the user can sense multiple decoration designs of different styles in advance while realizing full-automatic decoration, the browsing diversity of the user is enriched, and the user experience is greatly improved.
It should be noted that a set of furniture model objects may include at least one furniture type and at least one furniture model object, for example, a set of furniture model objects may include furniture such as dining tables, dining chairs and sideboard, and a corresponding number of furniture model objects. The furniture model objects in different groups may be in different furniture layout modes with different design styles, different furniture layout modes with different sizes, and different furniture layout modes with different numbers, which is not limited in the present invention.
For example, when the local terminal is a mobile terminal, a user may input a switching operation instruction in the mobile terminal, or click a related switching control, or perform switching through a voice instruction, or the like; when the local terminal is a VR terminal, the user may switch through the VR handheld device, or switch through a voice instruction, and the like, which is not limited in the present invention.
In a specific implementation, the terminal may obtain at least one piece of furniture layout data according to the spatial attribute of the spatial object, and it can be understood that as the size of the spatial object increases, the number of corresponding pieces of furniture layout data may increase, that is, the larger the size is, the more the furniture layout is selectable, and therefore, for a restaurant with a larger size, the terminal may correspond to at least two pieces of furniture layout data.
In one example, in order to more reasonably and maximally utilize the space of the space object, the layout priority may be a priority set according to the size of the furniture, for example, for the restaurant object, the priority of the four-person table is greater than the priority of the two-person table, the priority of the six-person table is greater than the priority of the four-person table, the priority of the two-person table, and the like, and after acquiring the at least one furniture model matching the size information, the terminal may select the furniture closest to the size of the restaurant according to the layout priority and display the furniture.
It should be noted that, the embodiment of the present invention includes but is not limited to the above example, and optionally, the priority for layout may also be set according to the decoration style, the furniture price, and the like, which is not limited by the present invention.
Secondly, in practical applications, the automatically adapted furniture layout data may not be completely adapted to the requirements of the user, or the user wants to replace or edit any furniture model object in the space objects to intuitively preview the decoration effect before and after editing, so as to facilitate the user to edit the furniture model in any space object in the currently displayed three-dimensional house space.
For example, when the local terminal is a mobile terminal, a user may input a furniture editing operation instruction in the mobile terminal, or click a related furniture editing operation control, or perform a furniture editing operation through a voice instruction, or the like; when the local terminal is a VR terminal, the user may perform a furniture editing operation through the VR handheld device, or perform a furniture editing operation through a voice instruction, and the like, which is not limited in the present invention.
For example, for a furniture deleting operation, a furniture moving operation and a furniture replacing operation, a corresponding furniture model object can be selected by clicking or long-pressing the furniture model object, and then the furniture editing operation panel displaying the corresponding furniture model object is triggered, so that the specific type of the furniture editing operation can be selected in the corresponding furniture editing operation panel; for the furniture adding operation, the furniture editing operation panel displaying the corresponding space object can be triggered by clicking or long-pressing any area or a designated area in the currently displayed space object, so that the specific type of the furniture editing operation can be selected in the corresponding furniture editing operation panel; in addition, for the furniture replacement operation and the furniture adding operation, a user can conveniently select a furniture model object required by the user, and a preset furniture model object library can be called in response to the furniture editing operation, so that the user can conveniently select a proper furniture model object from the furniture model object library.
In addition, in order to facilitate that the relevant user can repeatedly use the edited furniture layout data next time, after the furniture editing operation, a new furniture layout data can be automatically generated and stored based on the furniture layout data after the furniture editing operation. Of course, a new furniture layout data may be generated and stored based on the furniture layout data after the current furniture editing operation only when the related user triggers the storage instruction, which is not limited in the embodiment of the present invention. The newly generated furniture layout data may be stored only in the local terminal where the relevant user is located, or may be stored in a cloud storage area for storing the furniture layout data, which may be called by any user, and the embodiment of the present invention is not limited thereto.
In an example, in order to facilitate a user to know visual effects in different decoration styles, a plurality of furniture styles (for example, a modern style, a simple and American style, a new Chinese style, a northern european style, a japanese style, and the like) may be preset, so that the obtained furniture layout data may include furniture layout data in the plurality of furniture styles, and in a furniture display process, a furniture model object in the furniture style may be displayed in the space object according to a currently selected furniture style in the furniture layout data and according to position information in the furniture style. Generally, a default furniture style can be set, the default value of the furniture style can be set by self according to requirements, and a user can switch the furniture style of the space object at any time, which is not limited in the embodiment of the invention.
In an example, one or more pieces of furniture layout data may be set for different space types, and then, for any space object in the house objects, according to the space attribute of the space object, the furniture layout data applicable thereto may be obtained by referring to any one of the above-mentioned methods, further, according to a preset collision rule, the furniture layout data applicable thereto may be further filtered to obtain final furniture layout data thereof, and if there are still a plurality of pieces of final furniture layout data of the space object at this time, the furniture layout data with the highest layout priority may be selected as the first furniture layout data of the space object by referring to the above-mentioned method, and so on.
The collision rules can be set by self according to requirements, and the collision rules of different space objects can be different or the same, which is not limited in the embodiments of the present invention. For example, the collision rule may be set to include that the furniture is located at a position where there is no collision with the door window, or no collision with a part of the wall, etc.
Referring to fig. 2, in the embodiment of the present invention, the method may further include:
step 101, constructing a furniture model object of each alternative furniture according to the size information of each alternative furniture;
102, constructing furniture layout data according to the furniture model objects and the placing conditions of each furniture model object;
103, setting adaptation conditions of the furniture layout data according to the placing conditions of each furniture model object contained in the furniture layout data, wherein the adaptation conditions comprise at least one of adaptation conditions of space attributes of space objects and adaptation conditions of collision rules of the space objects.
In the embodiment of the invention, in order to conveniently and quickly adapt to the appropriate furniture layout data for each space object in the house object, a plurality of furniture layout data can be pre-constructed for selection, and specifically, the furniture model object of each candidate furniture can be constructed according to the size information of each candidate furniture. The alternative furniture may be any furniture having a right of use, and in the embodiment of the present invention, the alternative furniture may be obtained in any available manner, which is not limited in the embodiment of the present invention. For example, the alternative furniture and the size information thereof may be purchased by a supplier, or the alternative furniture and the size information thereof may be provided by a partner merchant, and so on. And then a furniture model object for each of the alternative furniture available in the present solution can be constructed. In addition, in the embodiment of the present invention, the furniture model object may be stored in a preset furniture model object library, and the storage location of the furniture model object library may be set by user according to requirements, which is not limited in the embodiment of the present invention. For example, the furniture model object library may be located locally in the terminal, or in a cloud storage area, and so on.
After obtaining the furniture model object of each alternative furniture, furniture layout data can be further constructed, and in the practical application, applicable rooms of different furniture can be different, and different furniture can have requirements on the size, specification, shape and the like of the space, that is, the placing conditions of different furniture model objects can be different, and when house decoration is carried out, the actual placing state of each furniture model object is required to meet the placing conditions of the furniture model object. Therefore, in the embodiment of the present invention, the furniture layout data may be pre-constructed according to the furniture model object of each candidate furniture and the placing condition of each furniture model object. Specifically, for each space type, the placing conditions of the furniture model objects that can be selected for use at different placing positions are considered according to the furniture model objects that can be selected for use under the space type. The placing conditions of different furniture model objects can be set by self according to requirements, and the embodiment of the invention is not limited.
For example, for a double table, two dining chairs are correspondingly arranged, and the setting conditions of the double table can include that when one side of the table leans against a wall, the opposite side of the table must be kept 600 mm; if the distance between the dining chair and the wall is less than 600mm, the minimum distance between the dining chair and the wall is 100 mm; and the dining table leans against the wall; and so on. In this case, in different furniture layout data, the position of each furniture model object may also be set according to specific situations, and this embodiment of the present invention is not limited thereto.
After the furniture layout data are obtained, in order to facilitate subsequent adaptation of the furniture layout data according to the spatial attributes of each spatial object in the house object, the adaptation conditions of the furniture layout data may be further set according to the placement conditions of each furniture model object included in each pre-constructed furniture layout data. And then when the furniture layout data of each space object is acquired subsequently, the furniture layout data corresponding to the adaptation condition met by the space attribute can be acquired according to the space attribute of the space object and used as the furniture layout data of the space object, so that the adaptation efficiency of the furniture layout data can be improved.
For example, for a double table with a length and a width of 600mm and a dining chair with a width of 550mm, if the placing conditions include that the dining table leans against the wall on one side and the width of the action line space is 300mm, the fitting conditions of the furniture layout data of the dining table and chair combination at this time can include: the length of the occupied space is 600mm of the dining table and 600mm of the line moving space is 1200 mm; the occupied space width is 600+ 550x2+ 300x 2+ 2300 mm; and so on. At this time, if the size of the restaurant object in the house object is greater than or equal to 1200mm 2300mm, the furniture layout data may be selected.
In addition, in the embodiment of the present invention, adaptation conditions for collision rules may be set for different collision rules, for example, for a living room object, the setting of the collision rules of the sofa model object may include that the sofa needs to lean against a closed wall and does not collide with any doors and windows or an open wall, that is, the back of the sofa does not contact with any doors and windows or an open wall, and then the adaptation conditions for setting the furniture layout data including the sofa model object may include: satisfy the collision rules described above, and so on.
Of course, in the embodiment of the present invention, the placing condition of the furniture model object of each alternative furniture and the relationship between the adaptation condition of the furniture layout data and the placing condition of each furniture model object included therein may be set according to requirements, and the embodiment of the present invention is not limited thereto.
Optionally, in an embodiment of the present invention, the step 120 further includes:
step P1, processing the house type graph data based on a semantic segmentation method under the condition that the modeling data comprises the house type graph data to obtain structural body information of the target house, wherein the structural body information comprises at least one of wall modeling information and window modeling information;
step P2, performing character recognition on the layout data to obtain indication information of the target house, where the indication information includes at least one of size information, position information, and space type information of each room;
and a step P3 of constructing a house object of the target house according to the structural body information and the marking information.
The existing method for extracting modeling information based on a house type image is mostly based on a traditional image processing method and uses methods of center line extraction, edge detection, denoising, vectorization, extension, merging and the like for processing. The conventional procedure for identifying and generating modeling information by the house type graph is to input a house type graph picture, and perform operations such as extraction and comparison of lines and edges through a traditional image processing method to finally generate the position information of the wall body in the house type graph.
However, the existing house type graphs are rich in types, and the traditional image processing method is difficult to complete the identification of the house type graphs with various types. Moreover, the number of the distracters in the house type chart is large, and the final effect can be influenced by furniture, house names and the like in the identification process. Furthermore, conventional methods generally do not support the detection of accessories such as windows, doors, and house name detection identification.
In the embodiment of the invention, the conventional house pattern recognition method is improved so as to increase the accuracy and the integrity of the recognition output of the house pattern. In the embodiment of the invention, three points of optimization are made on the process: 1. the method has the advantages that the semantic segmentation method based on deep learning is adopted to process the house type graph data, compared with the traditional image processing method, the precision is higher, in addition, the door and window information 2 can be directly obtained, any available character recognition method such as an OCR recognition method is adopted, the name (namely the room type) and the position (such as dimension information and position information of each room in the house type graph) 3 of each room can be obtained, the house type graph constructed by the traditional image processing method is poor in recognition robustness, new types of house type graphs (such as three-dimensional house type graphs and two-dimensional house type graphs) are added, and the algorithm can be greatly changed integrally.
Specifically, the house type graph data may be processed based on a semantic segmentation method to obtain structural information of the target house, where the structural information includes at least one of wall modeling information and window modeling information; meanwhile, character recognition can be carried out on the house type graph data to obtain marking information of the target house, wherein the marking information comprises at least one of size information, position information and space type information of each room; further, a house object of the target house may be constructed based on the structural body information and the indication information. Specifically, when the house object of the target house is constructed according to the structural body information and the indication information, the outline of each room may be obtained based on the structural body information and the indication information, and then any processing operation required for modeling, such as line detection, vectorization, extension, and merging, may be performed to obtain the house object of the target house.
For example, fig. 12 is a middle result picture in the house type graph recognition process, and from left to right, the original house type graph picture, the result picture after semantic segmentation, and the extracted outline picture of each room are sequentially shown.
Referring to fig. 13, there is shown a schematic structural view of an in-line finishing apparatus according to an embodiment of the present invention.
The on-line decoration processing device of the embodiment of the invention comprises: a modeling data acquisition module 210, a house object construction module 220, and an online finishing processing module 230.
The functions of the modules and the interaction relationship between the modules are described in detail below.
A modeling data obtaining module 210, configured to obtain modeling data of a target house, where the modeling data includes at least one of house layout data and panoramic data, and the house layout includes at least one of a 2D house layout and a 3D house layout;
a house object construction module 220, configured to construct a house object of the target house according to the modeling data; the house object is a three-dimensional house space established according to the modeling data, and the house object at least comprises a space object;
an online decoration processing module 230, configured to, for at least one space object in the house objects, obtain decoration data of the at least one space object according to a space attribute of the at least one space object, and display a decoration model object corresponding to the decoration data in the at least one space object, so as to obtain an online decoration result of the target house;
the space attribute at least comprises a space type of the at least one space object, the decoration data comprises hardwear data and softwear data, and the softwear data comprises furniture layout data.
Optionally, the on-line finishing module includes:
the space data acquisition sub-module is used for acquiring the space attribute of at least one space object in the house objects;
the furniture layout data acquisition submodule is used for acquiring furniture layout data of the at least one space object according to the space attributes, and the furniture layout data comprises at least one furniture model object and position information corresponding to the furniture model object;
and the furniture model object display submodule is used for displaying the furniture model object in the space object according to the position information to obtain an on-line decoration result of the target house.
Optionally, the spatial attribute at least includes a wall object and size information of the at least one spatial object under the three-dimensional room space, and the furniture layout data obtaining sub-module includes:
and the furniture layout data acquisition unit is used for generating furniture layout data of the at least one space object according to the wall object and the size information.
Optionally, in a case that the space object is the restaurant object, the size information includes a first side length and a second side length of the restaurant object, and the furniture layout data obtaining unit is specifically configured to:
acquiring a furniture model object matched with the first side length and the second side length of the restaurant object and a furniture size of the furniture model object;
obtaining a target wall object for the furniture model object according to the wall type of the wall object;
and generating the position information of the furniture model object by adopting the furniture size and the target wall object.
Optionally, for a restaurant object in the space object, the furniture model object includes at least one of a table model object, a dining chair model object, and a lighting decoration model object, and the furniture model object displaying sub-module is specifically configured to:
displaying at least one of the table model object, the dining chair model object and the lighting model object in the restaurant object according to the position information;
and if the length of the dining table model object is greater than or equal to a preset length threshold value, the position relation between the dining table model object and the lamp decoration model object is a geometric center alignment relation.
Optionally, in a case that the space object is the toilet object, the wall object at least includes a first wall object and a second wall object, the first wall object at least includes a door body object, the size information includes a first side length of the door body object, and a second side length of the first wall object and a third side length of the second wall object, and the furniture layout data obtaining unit is specifically configured to:
calculating a moving line space of the toilet object according to the door body object and the first side length of the door body object;
obtaining a target decoration space of the toilet object according to the third side length of the second wall object and the line moving space;
acquiring a furniture model object matched with the second side length of the first wall object and the third side length of the second wall object;
and matching the furniture model object with the target decoration space according to preset decoration conditions to obtain the position information of the furniture model object.
Optionally, in a case that the space object is the kitchen object, the wall object includes an access wall object, the access wall object at least includes a door object, and the furniture layout data obtaining unit is specifically configured to:
if the kitchen object comprises an access wall object and the side length of the access wall object is greater than or equal to a preset length threshold, extending the side length of the door body object to the interior of the kitchen object until the distance between the extended area and the wall object opposite to the door body object is equal to a preset distance threshold, stopping extending, and taking the extended area as a moving line space;
taking the region of the kitchen object except the line moving space as a decoration space of the kitchen object, and taking a wall object corresponding to the decoration space as a decoration wall object;
acquiring a furniture model object matched with the side length of the decoration wall object;
and matching the furniture model object with the decoration wall body object according to a preset decoration condition to obtain the position information of the furniture model object.
Optionally, in a case that the space object is the kitchen object, the wall object includes a closed wall object, the size information includes a side length of the wall object, and the furniture layout data obtaining unit is specifically configured to:
taking a closed wall object with the largest side length in the kitchen objects as a target wall object;
matching the target wall object with other wall objects to obtain at least one decoration wall object of the kitchen object;
calculating a decoration space matched with the decoration wall body object according to a preset decoration threshold value;
acquiring a furniture model object matched with the side length of the decoration wall object;
and matching the furniture model object with the decoration wall body object according to a preset decoration condition to obtain the position information of the furniture model object.
Optionally, in a case that the space object is the living room object, the size information includes a side length of the wall object, and the furniture layout data obtaining unit is specifically configured to:
obtaining a target wall object of the living room object according to the wall type of the wall object and the side length of the wall object;
Acquiring a furniture model object matched with the side length of the target wall object;
and matching the furniture model object with the target wall object according to preset decoration conditions to obtain the position information of the furniture model object.
Optionally, the furniture layout data obtaining sub-module is specifically configured to:
determining whether a preset space object for specially laying out furniture model objects exists in the room-entering space object according to the space attribute aiming at the room-entering space object in the at least one space object;
under the condition that the preset space object exists, acquiring the furniture layout data according to the preset space object;
and under the condition that the preset space object does not exist, acquiring the position information of the existing object in the entrance space object, and acquiring the furniture layout data at least according to the space attribute and the position information of the existing object.
Optionally, the furniture layout data obtaining sub-module is further specifically configured to:
for a balcony object of the at least one space object, acquiring at least one furniture model object for layout in the balcony object according to the space attribute;
acquiring the position information of the layout of each furniture model object in the balcony object at least according to the space attribute;
and acquiring the furniture layout data according to the acquired furniture model object and the acquired position information.
Optionally, the furniture layout data obtaining sub-module is further specifically configured to:
aiming at a bedroom object in the at least one space object, acquiring a plurality of furniture model objects for layout in the bedroom object according to the space attribute;
acquiring the position information of the layout of each furniture model object in the bedroom object at least according to the space attribute;
and acquiring the furniture layout data according to the acquired furniture model object and the acquired position information.
Optionally, the spatial attribute further includes size information of a region of the at least one spatial object under the three-dimensional room space, and the at least one spatial object includes at least one of window information of a region of a window object under the three-dimensional room space, and the apparatus further includes:
the indoor light object setting module is used for setting an indoor light object of the at least one space object according to the size information, and the indoor light object is used for simulating light rays generated by an indoor light source;
and/or the outdoor light object setting module is used for setting an outdoor light object of the window object according to the window information, and the outdoor light object is used for simulating light rays generated by an outdoor light source.
Optionally, the spatial attributes further include size information of an area under the three-dimensional room space of a ceiling object included in the at least one spatial object, and the apparatus further includes:
the down lamp position data acquisition module is used for determining down lamp position data of the at least one space object according to the space attribute;
and the down lamp object setting module is used for setting the down lamp object according to the down lamp position data in the at least one space object, and the down lamp object is used for simulating and generating supplementary light.
Optionally, the furniture layout data obtaining sub-module is further configured to:
and acquiring furniture layout data of the space object according to the space attribute of the space object and a preset collision rule aiming at each space object in the at least one space object.
Optionally, the furniture layout data includes a plurality of furniture styles, a furniture model object in each furniture style, and position information corresponding to the furniture model object;
the furniture model object display submodule is further used for:
and in the space object, according to the currently selected furniture style in the furniture layout data, displaying the furniture model object under the furniture style according to the position information under the furniture style.
Optionally, the furniture model object display sub-module is further configured to:
for each space object in the at least one space object, if there are at least two pieces of furniture layout data of the space object, selecting, from the at least two pieces of furniture layout data, the furniture layout data with the highest layout priority as first furniture layout data of the space object, where the first furniture layout data includes a first group of furniture model objects and first position information corresponding to the first group of furniture model objects;
and displaying the first group of furniture model objects in the space object according to the first position information.
Optionally, the apparatus further comprises:
and the panoramic display module is used for generating the panoramic decoration image of the target house based on the online decoration result and displaying the panoramic decoration image through an image user interface of a preset terminal.
Optionally, for each spatial object in the at least one spatial object, if there are at least two pieces of furniture layout data of the spatial object, the apparatus further includes:
a switching operation response module, configured to extract, in response to a switching operation performed on the preset terminal, second furniture layout data corresponding to the switching operation from the at least two pieces of furniture layout data, where the second furniture layout data includes a second set of furniture model objects and second position information corresponding to the second furniture model;
and the furniture layout data switching module is used for canceling the display of the first group of furniture model objects and displaying the second group of furniture model objects in the space objects according to the second position information.
Optionally, the apparatus further comprises:
the furniture editing operation response module is used for responding to the furniture editing operation acted on the preset terminal and executing the furniture editing operation aiming at the furniture model object in the space object;
the furniture layout data storage module is used for generating and storing new furniture layout data based on the furniture layout data after the furniture editing operation;
wherein the furniture editing operation comprises at least one of a furniture deleting operation, a furniture adding operation, a furniture moving operation, and a furniture replacing operation.
Optionally, the apparatus further comprises:
the alternative furniture model building module is used for building a furniture model object of each alternative furniture according to the size information of each alternative furniture;
the furniture layout data construction module is used for constructing furniture layout data according to the furniture model objects and the placing conditions of each furniture model object;
the adaptation condition setting module is used for setting the adaptation conditions of the furniture layout data according to the placing conditions of each furniture model object contained in the furniture layout data, wherein the adaptation conditions comprise at least one of adaptation conditions aiming at the space attribute of the space object and adaptation conditions aiming at the collision rule of the space object.
Optionally, the house object constructing module 220 is specifically configured to:
under the condition that the modeling data comprises the house type graph data, processing the house type graph data based on a semantic segmentation method to obtain structural body information of the target house, wherein the structural body information comprises at least one of wall modeling information and window modeling information;
performing character recognition on the house type diagram data to acquire marking information of the target house, wherein the marking information comprises at least one of size information, position information and space type information of each room;
and building a house object of the target house according to the structural body information and the marking information.
The on-line decoration processing device provided by the embodiment of the invention can realize each process realized in the method embodiments of fig. 1 to 2, and is not described again to avoid repetition.
Preferably, an embodiment of the present invention further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when being executed by the processor, implement each process of the above-mentioned on-line decoration processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the above-mentioned online decoration processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 14 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 14 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 14, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (25)

1. A method of treating an on-line finish, comprising:
acquiring modeling data of a target house, wherein the modeling data comprises at least one of house type graph data and panoramic data, and the house type graph comprises at least one of a 2D house type graph and a 3D house type graph;
building a house object of the target house according to the modeling data; the house object is a three-dimensional house space established according to the modeling data, and the house object at least comprises a space object;
aiming at least one space object in the house objects, obtaining decoration data of the at least one space object according to the space attribute of the at least one space object, and displaying a decoration model object corresponding to the decoration data in the at least one space object to obtain an on-line decoration result of the target house;
the space attribute at least comprises a space type of the at least one space object, the decoration data comprises hardwear data and softwear data, and the softwear data comprises furniture layout data.
2. The method of claim 1, wherein the step of obtaining, for at least one of the house objects, decoration data of the at least one space object according to a spatial attribute of the at least one space object, and displaying a decoration model object corresponding to the decoration data in the at least one space object to obtain an on-line decoration result of the target house comprises:
aiming at least one space object in the house objects, acquiring a space attribute of the at least one space object;
acquiring furniture layout data of the at least one space object according to the space attributes, wherein the furniture layout data comprises at least one furniture model object and position information corresponding to the furniture model object;
And displaying the furniture model object in the space object according to the position information to obtain an on-line decoration result of the target house.
3. The method of claim 2, wherein the spatial attributes include at least wall object and dimension information of the at least one spatial object under the three-dimensional room space, and the step of obtaining furniture layout data of the at least one spatial object according to the spatial attributes includes:
and generating furniture layout data of the at least one space object according to the wall object and the size information.
4. The method of claim 3, wherein in the case that the space object is the restaurant object, the dimension information includes a first side length and a second side length of the restaurant object, and the step of generating furniture layout data for the at least one space object based on the wall object and the dimension information includes:
acquiring a furniture model object matched with the first side length and the second side length of the restaurant object and a furniture size of the furniture model object;
obtaining a target wall object for the furniture model object according to the wall type of the wall object;
and generating the position information of the furniture model object by adopting the furniture size and the target wall object.
5. The method according to any one of claims 2 to 4, wherein the step of presenting the furniture model object in the space object according to the position information includes, for a restaurant object in the space object, at least one of a table model object, a dining chair model object, and a lighting decoration model object, the step of:
displaying at least one of the table model object, the dining chair model object and the lighting model object in the restaurant object according to the position information;
and if the length of the dining table model object is greater than or equal to a preset length threshold value, the position relation between the dining table model object and the lamp decoration model object is a geometric center alignment relation.
6. The method of claim 3, wherein in the case that the space object is the toilet object, the wall objects include at least a first wall object and a second wall object, the first wall object includes at least a door body object, the size information includes a first side length of the door body object, and a second side length of the first wall object and a third side length of the second wall object, and the step of generating furniture layout data of the at least one space object based on the wall objects and the size information includes:
calculating a moving line space of the toilet object according to the door body object and the first side length of the door body object;
obtaining a target decoration space of the toilet object according to the third side length of the second wall object and the line moving space;
acquiring a furniture model object matched with the second side length of the first wall object and the third side length of the second wall object;
and matching the furniture model object with the target decoration space according to preset decoration conditions to obtain the position information of the furniture model object.
7. The method of claim 3, wherein in the case that the space object is the kitchen object, the wall object includes an access wall object including at least a door body object, and the step of generating furniture layout data of the at least one space object based on the wall object and the size information includes:
if the kitchen object comprises an access wall object and the side length of the access wall object is greater than or equal to a preset length threshold, extending the side length of the door body object to the interior of the kitchen object until the distance between the extended area and the wall object opposite to the door body object is equal to a preset distance threshold, stopping extending, and taking the extended area as a moving line space;
taking the region of the kitchen object except the line moving space as a decoration space of the kitchen object, and taking a wall object corresponding to the decoration space as a decoration wall object;
acquiring a furniture model object matched with the side length of the decoration wall object;
and matching the furniture model object with the decoration wall body object according to a preset decoration condition to obtain the position information of the furniture model object.
8. The method of claim 3, wherein in the case that the space object is the kitchen object, the wall object comprises a closed wall object, the size information comprises a side length of the wall object, and the step of generating furniture layout data of the at least one space object according to the wall object and the size information comprises:
taking a closed wall object with the largest side length in the kitchen objects as a target wall object;
matching the target wall object with other wall objects to obtain at least one decoration wall object of the kitchen object;
calculating a decoration space matched with the decoration wall body object according to a preset decoration threshold value;
acquiring a furniture model object matched with the side length of the decoration wall object;
and matching the furniture model object with the decoration wall body object according to a preset decoration condition to obtain the position information of the furniture model object.
9. The method of claim 3, wherein the size information includes a side length of the wall object in a case where the space object is the living room object, and the step of generating the furniture layout data of the at least one space object according to the wall object and the size information includes:
obtaining a target wall object of the living room object according to the wall type of the wall object and the side length of the wall object;
acquiring a furniture model object matched with the side length of the target wall object;
and matching the furniture model object with the target wall object according to preset decoration conditions to obtain the position information of the furniture model object.
10. The method of claim 2, wherein the step of obtaining furniture layout data for the at least one spatial object based on the spatial attributes comprises:
determining whether a preset space object for specially laying out furniture model objects exists in the room-entering space object according to the space attribute aiming at the room-entering space object in the at least one space object;
under the condition that the preset space object exists, acquiring the furniture layout data according to the preset space object;
and under the condition that the preset space object does not exist, acquiring the position information of the existing object in the entrance space object, and acquiring the furniture layout data at least according to the space attribute and the position information of the existing object.
11. The method of claim 2, wherein the step of obtaining furniture layout data for the at least one spatial object based on the spatial attributes comprises:
for a balcony object of the at least one space object, acquiring at least one furniture model object for layout in the balcony object according to the space attribute;
acquiring the position information of the layout of each furniture model object in the balcony object at least according to the space attribute;
and acquiring the furniture layout data according to the acquired furniture model object and the acquired position information.
12. The method of claim 2, wherein the step of obtaining furniture layout data for the at least one spatial object based on the spatial attributes comprises:
aiming at a bedroom object in the at least one space object, acquiring a plurality of furniture model objects for layout in the bedroom object according to the space attribute;
acquiring the position information of the layout of each furniture model object in the bedroom object at least according to the space attribute;
and acquiring the furniture layout data according to the acquired furniture model object and the acquired position information.
13. The method according to claim 1, wherein the spatial attributes further include size information of a region of the at least one spatial object under the three-dimensional room space, at least one of window information of a region of a window object under the three-dimensional room space that the at least one spatial object contains, after the step of obtaining the spatial attributes of the at least one spatial object for at least one of the room objects, the method further comprising:
setting an indoor light object of the at least one space object according to the size information, wherein the indoor light object is used for simulating light rays generated by an indoor light source;
and/or setting an outdoor light object of the window object according to the window information, wherein the outdoor light object is used for simulating light rays generated by an outdoor light source.
14. The method of claim 2, wherein the spatial attributes further include dimensional information of an area under the three-dimensional room space of a ceiling object included in the at least one spatial object, and wherein after the step of obtaining the spatial attributes of the at least one spatial object for at least one of the room objects, the method further comprises:
determining down lamp position data of the at least one space object according to the space attribute;
and in the at least one space object, setting a down lamp object according to the down lamp position data, wherein the down lamp object is used for simulating and generating supplementary light.
15. The method of claim 2, wherein the step of obtaining furniture layout data for the at least one spatial object based on the spatial attributes comprises:
and acquiring furniture layout data of the space object according to the space attribute of the space object and a preset collision rule aiming at each space object in the at least one space object.
16. The method of claim 2, wherein the furniture layout data comprises a plurality of furniture styles, and a furniture model object and corresponding position information of the furniture model object in each furniture style;
the step of displaying the furniture model object in the space object according to the position information includes:
and in the space object, according to the currently selected furniture style in the furniture layout data, displaying the furniture model object under the furniture style according to the position information under the furniture style.
17. The method of claim 2, wherein the step of presenting the furniture model object in the spatial object according to the location information comprises:
for each space object in the at least one space object, if there are at least two pieces of furniture layout data of the space object, selecting, from the at least two pieces of furniture layout data, the furniture layout data with the highest layout priority as first furniture layout data of the space object, where the first furniture layout data includes a first group of furniture model objects and first position information corresponding to the first group of furniture model objects;
and displaying the first group of furniture model objects in the space object according to the first position information.
18. The method of claim 1, further comprising:
And generating a panoramic decoration image of the target house based on the online decoration result, and displaying the panoramic decoration image through an image user interface of a preset terminal.
19. The method according to claim 18, wherein for each of the at least one spatial object, if there are at least two spatial objects with furniture layout data, the method further comprises:
responding to a switching operation acted on the preset terminal, and extracting second furniture layout data corresponding to the switching operation from the at least two furniture layout data, wherein the second furniture layout data comprise a second group of furniture model objects and second position information corresponding to the second furniture model;
and canceling the display of the first group of furniture model objects, and displaying the second group of furniture model objects in the space objects according to the second position information.
20. The method of claim 18, further comprising:
responding to a furniture editing operation acted on the preset terminal, and executing the furniture editing operation aiming at a furniture model object in the space object;
generating and storing new furniture layout data based on the furniture layout data after the furniture editing operation;
wherein the furniture editing operation comprises at least one of a furniture deleting operation, a furniture adding operation, a furniture moving operation, and a furniture replacing operation.
21. The method of claim 1, further comprising:
constructing a furniture model object of each alternative furniture according to the size information of each alternative furniture;
constructing furniture layout data according to the furniture model objects and the placing conditions of each furniture model object;
and setting adaptation conditions of the furniture layout data according to the placing conditions of each furniture model object contained in the furniture layout data, wherein the adaptation conditions comprise at least one of adaptation conditions of space attributes of space objects and adaptation conditions of collision rules of the space objects.
22. The method of claim 1, wherein said step of constructing a house object of said target house from said modeling data comprises:
under the condition that the modeling data comprises the house type graph data, processing the house type graph data based on a semantic segmentation method to obtain structural body information of the target house, wherein the structural body information comprises at least one of wall modeling information and window modeling information;
performing character recognition on the house type diagram data to acquire marking information of the target house, wherein the marking information comprises at least one of size information, position information and space type information of each room;
and building a house object of the target house according to the structural body information and the marking information.
23. An on-line finishing processing apparatus, comprising:
the modeling data acquisition module is used for acquiring modeling data of a target house, wherein the modeling data comprises at least one of house type graph data and panoramic data, and the house type graph comprises at least one of a 2D house type graph and a 3D house type graph;
the house object construction module is used for constructing a house object of the target house according to the modeling data; the house object is a three-dimensional house space established according to the modeling data, and the house object at least comprises a space object;
the on-line decoration processing module is used for acquiring decoration data of at least one space object in the house objects according to the space attribute of the at least one space object, displaying a decoration model object corresponding to the decoration data in the at least one space object and obtaining an on-line decoration result of the target house;
the space attribute at least comprises a space type of the at least one space object, the decoration data comprises hardwear data and softwear data, and the softwear data comprises furniture layout data.
24. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the on-line finishing processing method as claimed in any one of claims 1 to 22.
25. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of processing of an on-line finishing as claimed in any one of claims 1 to 22.
CN202010583427.4A 2020-06-23 2020-06-23 Processing method and device for on-line decoration, electronic equipment and storage medium Active CN111985022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010583427.4A CN111985022B (en) 2020-06-23 2020-06-23 Processing method and device for on-line decoration, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010583427.4A CN111985022B (en) 2020-06-23 2020-06-23 Processing method and device for on-line decoration, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111985022A true CN111985022A (en) 2020-11-24
CN111985022B CN111985022B (en) 2022-07-19

Family

ID=73441855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010583427.4A Active CN111985022B (en) 2020-06-23 2020-06-23 Processing method and device for on-line decoration, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111985022B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112668085A (en) * 2020-12-31 2021-04-16 杭州群核信息技术有限公司 Home decoration plane automatic design method and device, computer equipment and storage medium
CN112765706A (en) * 2020-12-31 2021-05-07 杭州群核信息技术有限公司 Home decoration material moving method and device, computer equipment and storage medium
CN113609557A (en) * 2021-07-26 2021-11-05 阿里巴巴(中国)有限公司 Home decoration layout method, home decoration layout device, and storage medium
CN113763138A (en) * 2021-11-10 2021-12-07 全屋优品科技(深圳)有限公司 Method, device and system for processing images of furniture soft goods
CN113779660A (en) * 2021-07-26 2021-12-10 北京房江湖科技有限公司 Socket point position ordering method and socket wiring method
CN114417485A (en) * 2022-03-11 2022-04-29 深圳小库科技有限公司 Layout method and device for interior decoration, electronic equipment and readable storage medium
CN114463104A (en) * 2022-04-12 2022-05-10 贝壳技术有限公司 Method, apparatus and computer program product for processing VR scenarios
CN114596417A (en) * 2022-02-22 2022-06-07 北京城市网邻信息技术有限公司 Data processing method and device for house decoration, electronic equipment and storage medium
CN115098927A (en) * 2022-07-07 2022-09-23 武汉美立森家居有限公司 Cloud computing-based home decoration design cloud service platform
CN117115383A (en) * 2023-10-23 2023-11-24 深圳开鸿数字产业发展有限公司 Lighting lamp arrangement method, computer device and readable storage medium
CN118313048A (en) * 2024-05-09 2024-07-09 广西建设职业技术学院 AR-based indoor design system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060265969A1 (en) * 2005-05-25 2006-11-30 Marilyn Broderick Design layout kit
CN104778756A (en) * 2015-04-10 2015-07-15 北京明兰网络科技有限公司 Intelligent home decoration design system
CN107590852A (en) * 2017-08-21 2018-01-16 北京航空航天大学 The indoor three-dimensional scenic method for auto constructing of behavior restraint
CN108959669A (en) * 2017-05-19 2018-12-07 深圳市掌网科技股份有限公司 The Home Fashion & Design Shanghai method and system of intelligence
CN111028333A (en) * 2019-11-25 2020-04-17 贝壳技术有限公司 Method and device for generating article placement effect image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060265969A1 (en) * 2005-05-25 2006-11-30 Marilyn Broderick Design layout kit
CN104778756A (en) * 2015-04-10 2015-07-15 北京明兰网络科技有限公司 Intelligent home decoration design system
CN108959669A (en) * 2017-05-19 2018-12-07 深圳市掌网科技股份有限公司 The Home Fashion & Design Shanghai method and system of intelligence
CN107590852A (en) * 2017-08-21 2018-01-16 北京航空航天大学 The indoor three-dimensional scenic method for auto constructing of behavior restraint
CN111028333A (en) * 2019-11-25 2020-04-17 贝壳技术有限公司 Method and device for generating article placement effect image

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022141888A1 (en) * 2020-12-31 2022-07-07 杭州群核信息技术有限公司 Home decoration material moving method and apparatus, and computer device and storage medium
CN112765706A (en) * 2020-12-31 2021-05-07 杭州群核信息技术有限公司 Home decoration material moving method and device, computer equipment and storage medium
CN112668085B (en) * 2020-12-31 2024-06-11 杭州群核信息技术有限公司 Automatic design method and device for home decoration plane, computer equipment and storage medium
CN112765706B (en) * 2020-12-31 2024-02-20 杭州群核信息技术有限公司 Home decoration material moving method and device, computer equipment and storage medium
CN112668085A (en) * 2020-12-31 2021-04-16 杭州群核信息技术有限公司 Home decoration plane automatic design method and device, computer equipment and storage medium
CN113609557A (en) * 2021-07-26 2021-11-05 阿里巴巴(中国)有限公司 Home decoration layout method, home decoration layout device, and storage medium
CN113779660A (en) * 2021-07-26 2021-12-10 北京房江湖科技有限公司 Socket point position ordering method and socket wiring method
CN113609557B (en) * 2021-07-26 2023-09-26 阿里巴巴(中国)有限公司 Home decoration layout method, apparatus and storage medium
CN113763138A (en) * 2021-11-10 2021-12-07 全屋优品科技(深圳)有限公司 Method, device and system for processing images of furniture soft goods
CN113763138B (en) * 2021-11-10 2022-03-11 全屋优品科技(深圳)有限公司 Method, device and system for processing images of furniture soft goods
CN114596417A (en) * 2022-02-22 2022-06-07 北京城市网邻信息技术有限公司 Data processing method and device for house decoration, electronic equipment and storage medium
CN114417485B (en) * 2022-03-11 2022-06-14 深圳小库科技有限公司 Layout method and device for interior decoration, electronic equipment and readable storage medium
CN114417485A (en) * 2022-03-11 2022-04-29 深圳小库科技有限公司 Layout method and device for interior decoration, electronic equipment and readable storage medium
CN114463104B (en) * 2022-04-12 2022-07-26 贝壳技术有限公司 Method, apparatus, and computer-readable storage medium for processing VR scene
CN114463104A (en) * 2022-04-12 2022-05-10 贝壳技术有限公司 Method, apparatus and computer program product for processing VR scenarios
CN115098927A (en) * 2022-07-07 2022-09-23 武汉美立森家居有限公司 Cloud computing-based home decoration design cloud service platform
CN117115383A (en) * 2023-10-23 2023-11-24 深圳开鸿数字产业发展有限公司 Lighting lamp arrangement method, computer device and readable storage medium
CN117115383B (en) * 2023-10-23 2024-02-13 深圳开鸿数字产业发展有限公司 Lighting lamp arrangement method, computer device and readable storage medium
CN118313048A (en) * 2024-05-09 2024-07-09 广西建设职业技术学院 AR-based indoor design system and method

Also Published As

Publication number Publication date
CN111985022B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN111985022B (en) Processing method and device for on-line decoration, electronic equipment and storage medium
CN111986305A (en) Furniture display method and device, electronic equipment and storage medium
CN104778756B (en) Smart home Art Design system
US10956626B2 (en) Artificial intelligence systems and methods for interior design
CN112001997B (en) Furniture display method and device
CN105787230B (en) A kind of household simulation design system and method
US11062383B2 (en) Systems and methods for displaying a simulated room and portions thereof
AU2019447524B2 (en) Method, apparatus and storage medium for displaying three-dimensional space view
CN106055762A (en) Home decoration design system and method
US20210392307A1 (en) Object Feature Visualization Apparatus and Methods
CN106527719A (en) House for sale investigation system based on AR (Augmented Reality) technology and real-time three-dimensional modeling
CN113761614B (en) Plane home decoration design auxiliary method
CN111882649A (en) Furniture display method and device
CN106485784B (en) Indoor design imaging processing method based on multi-terminal equipment data synchronization
CN110276824A (en) A kind of automatic lighting method, medium, equipment and device
CN106504337A (en) House for sale based on AR virtual reality technologies is investigated and collaboration decorations system
JP2022544679A (en) Target feature visualization device and method
CN107527277B (en) Intelligent curtain decoration design system based on mobile terminal
CN114385289B (en) Rendering display method and device, computer equipment and storage medium
CN109544697B (en) Automatic fitting, positioning and placing method for home model in virtual space
TWI566113B (en) Interior design system and method
CN106779900A (en) House for sale based on AR virtual reality technologies investigates system
CN111882644A (en) Furniture display method and device
US20210065433A1 (en) Display of item information in current space
CN114820108A (en) Decoration scheme recommendation method and device, electronic equipment, medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant